From add40eea6d55e8ba6ee4a19030a627811275b964 Mon Sep 17 00:00:00 2001 From: John Fucking Wick <34117229+Ubisoft-potato@users.noreply.github.com> Date: Wed, 11 Dec 2024 01:44:22 +0000 Subject: [PATCH] chore: swagger doc --- api-description/web-api.swagger.yaml | 2 +- .../src/google/api/field_behavior_pb.d.ts | 21 ++++++ ui/web-v2/src/google/api/field_behavior_pb.js | 72 +++++++++++++++++++ .../google/api/field_behavior_pb_service.d.ts | 2 + .../google/api/field_behavior_pb_service.js | 2 + ui/web-v2/src/proto/account/service_pb.d.ts | 1 + ui/web-v2/src/proto/account/service_pb.js | 2 + 7 files changed, 101 insertions(+), 1 deletion(-) create mode 100644 ui/web-v2/src/google/api/field_behavior_pb.d.ts create mode 100644 ui/web-v2/src/google/api/field_behavior_pb.js create mode 100644 ui/web-v2/src/google/api/field_behavior_pb_service.d.ts create mode 100644 ui/web-v2/src/google/api/field_behavior_pb_service.js diff --git a/api-description/web-api.swagger.yaml b/api-description/web-api.swagger.yaml index 3173a0362..188a2c9ab 100644 --- a/api-description/web-api.swagger.yaml +++ b/api-description/web-api.swagger.yaml @@ -966,7 +966,7 @@ paths: collectionFormat: multi - name: organizationId in: query - required: false + required: true type: string tags: - API Key diff --git a/ui/web-v2/src/google/api/field_behavior_pb.d.ts b/ui/web-v2/src/google/api/field_behavior_pb.d.ts new file mode 100644 index 000000000..4b339384c --- /dev/null +++ b/ui/web-v2/src/google/api/field_behavior_pb.d.ts @@ -0,0 +1,21 @@ +// package: google.api +// file: google/api/field_behavior.proto + +import * as jspb from 'google-protobuf'; +import * as google_protobuf_descriptor_pb from 'google-protobuf/google/protobuf/descriptor_pb'; + +export const fieldBehavior: jspb.ExtensionFieldInfo; + +export interface FieldBehaviorMap { + FIELD_BEHAVIOR_UNSPECIFIED: 0; + OPTIONAL: 1; + REQUIRED: 2; + OUTPUT_ONLY: 3; + INPUT_ONLY: 4; + IMMUTABLE: 5; + UNORDERED_LIST: 6; + NON_EMPTY_DEFAULT: 7; + IDENTIFIER: 8; +} + +export const FieldBehavior: FieldBehaviorMap; diff --git a/ui/web-v2/src/google/api/field_behavior_pb.js b/ui/web-v2/src/google/api/field_behavior_pb.js new file mode 100644 index 000000000..b9166f33c --- /dev/null +++ b/ui/web-v2/src/google/api/field_behavior_pb.js @@ -0,0 +1,72 @@ +// source: google/api/field_behavior.proto +/** + * @fileoverview + * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. + * @suppress {messageConventions} JS Compiler reports an error if a variable or + * field starts with 'MSG_' and isn't a translatable message. + * @public + */ +// GENERATED CODE -- DO NOT EDIT! +/* eslint-disable */ +// @ts-nocheck + +var jspb = require('google-protobuf'); +var goog = jspb; +var global = + (typeof globalThis !== 'undefined' && globalThis) || + (typeof window !== 'undefined' && window) || + (typeof global !== 'undefined' && global) || + (typeof self !== 'undefined' && self) || + function () { + return this; + }.call(null) || + Function('return this')(); + +var google_protobuf_descriptor_pb = require('google-protobuf/google/protobuf/descriptor_pb.js'); +goog.object.extend(proto, google_protobuf_descriptor_pb); +goog.exportSymbol('proto.google.api.FieldBehavior', null, global); +goog.exportSymbol('proto.google.api.fieldBehaviorList', null, global); +/** + * @enum {number} + */ +proto.google.api.FieldBehavior = { + FIELD_BEHAVIOR_UNSPECIFIED: 0, + OPTIONAL: 1, + REQUIRED: 2, + OUTPUT_ONLY: 3, + INPUT_ONLY: 4, + IMMUTABLE: 5, + UNORDERED_LIST: 6, + NON_EMPTY_DEFAULT: 7, + IDENTIFIER: 8 +}; + +/** + * A tuple of {field number, class constructor} for the extension + * field named `fieldBehaviorList`. + * @type {!jspb.ExtensionFieldInfo>} + */ +proto.google.api.fieldBehaviorList = new jspb.ExtensionFieldInfo( + 1052, + { fieldBehaviorList: 0 }, + null, + /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (null), + 1 +); + +google_protobuf_descriptor_pb.FieldOptions.extensionsBinary[1052] = + new jspb.ExtensionFieldBinaryInfo( + proto.google.api.fieldBehaviorList, + jspb.BinaryReader.prototype.readEnum, + jspb.BinaryWriter.prototype.writeRepeatedEnum, + undefined, + undefined, + false + ); +// This registers the extension field with the extended class, so that +// toObject() will function correctly. +google_protobuf_descriptor_pb.FieldOptions.extensions[1052] = + proto.google.api.fieldBehaviorList; + +goog.object.extend(exports, proto.google.api); diff --git a/ui/web-v2/src/google/api/field_behavior_pb_service.d.ts b/ui/web-v2/src/google/api/field_behavior_pb_service.d.ts new file mode 100644 index 000000000..6be23cded --- /dev/null +++ b/ui/web-v2/src/google/api/field_behavior_pb_service.d.ts @@ -0,0 +1,2 @@ +// package: google.api +// file: google/api/field_behavior.proto diff --git a/ui/web-v2/src/google/api/field_behavior_pb_service.js b/ui/web-v2/src/google/api/field_behavior_pb_service.js new file mode 100644 index 000000000..6be23cded --- /dev/null +++ b/ui/web-v2/src/google/api/field_behavior_pb_service.js @@ -0,0 +1,2 @@ +// package: google.api +// file: google/api/field_behavior.proto diff --git a/ui/web-v2/src/proto/account/service_pb.d.ts b/ui/web-v2/src/proto/account/service_pb.d.ts index a474d7cd4..a2f9f9f2c 100644 --- a/ui/web-v2/src/proto/account/service_pb.d.ts +++ b/ui/web-v2/src/proto/account/service_pb.d.ts @@ -4,6 +4,7 @@ import * as jspb from 'google-protobuf'; import * as google_protobuf_wrappers_pb from 'google-protobuf/google/protobuf/wrappers_pb'; import * as google_api_annotations_pb from '../../google/api/annotations_pb'; +import * as google_api_field_behavior_pb from '../../google/api/field_behavior_pb'; import * as protoc_gen_openapiv2_options_annotations_pb from '../../protoc-gen-openapiv2/options/annotations_pb'; import * as proto_account_account_pb from '../../proto/account/account_pb'; import * as proto_account_api_key_pb from '../../proto/account/api_key_pb'; diff --git a/ui/web-v2/src/proto/account/service_pb.js b/ui/web-v2/src/proto/account/service_pb.js index be8847237..c996eebee 100644 --- a/ui/web-v2/src/proto/account/service_pb.js +++ b/ui/web-v2/src/proto/account/service_pb.js @@ -27,6 +27,8 @@ var google_protobuf_wrappers_pb = require('google-protobuf/google/protobuf/wrapp goog.object.extend(proto, google_protobuf_wrappers_pb); var google_api_annotations_pb = require('../../google/api/annotations_pb.js'); goog.object.extend(proto, google_api_annotations_pb); +var google_api_field_behavior_pb = require('../../google/api/field_behavior_pb.js'); +goog.object.extend(proto, google_api_field_behavior_pb); var protoc$gen$openapiv2_options_annotations_pb = require('../../protoc-gen-openapiv2/options/annotations_pb.js'); goog.object.extend(proto, protoc$gen$openapiv2_options_annotations_pb); var proto_account_account_pb = require('../../proto/account/account_pb.js');