@tarkahq/sdk 0.0.0-stage → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/NOTICE +69 -0
- package/README.md +700 -2
- package/api-source.json +38 -0
- package/dist/cjs/client.d.ts +114 -0
- package/dist/cjs/client.js +174 -0
- package/dist/cjs/errors.d.ts +27 -0
- package/dist/cjs/errors.js +78 -0
- package/dist/cjs/generated/google/api/annotations.d.ts +1 -0
- package/dist/cjs/generated/google/api/annotations.js +10 -0
- package/dist/cjs/generated/google/api/http.d.ts +395 -0
- package/dist/cjs/generated/google/api/http.js +421 -0
- package/dist/cjs/generated/google/protobuf/descriptor.d.ts +873 -0
- package/dist/cjs/generated/google/protobuf/descriptor.js +3992 -0
- package/dist/cjs/generated/google/protobuf/empty.d.ts +35 -0
- package/dist/cjs/generated/google/protobuf/empty.js +58 -0
- package/dist/cjs/generated/google/protobuf/struct.d.ts +127 -0
- package/dist/cjs/generated/google/protobuf/struct.js +529 -0
- package/dist/cjs/generated/google/protobuf/timestamp.d.ts +128 -0
- package/dist/cjs/generated/google/protobuf/timestamp.js +95 -0
- package/dist/cjs/generated/protoc-gen-openapiv2/options/annotations.d.ts +1 -0
- package/dist/cjs/generated/protoc-gen-openapiv2/options/annotations.js +10 -0
- package/dist/cjs/generated/protoc-gen-openapiv2/options/openapiv2.d.ts +983 -0
- package/dist/cjs/generated/protoc-gen-openapiv2/options/openapiv2.js +4874 -0
- package/dist/cjs/generated/tarka/access/v1/access.d.ts +322 -0
- package/dist/cjs/generated/tarka/access/v1/access.js +2979 -0
- package/dist/cjs/generated/tarka/channels/v1/channels.d.ts +370 -0
- package/dist/cjs/generated/tarka/channels/v1/channels.js +3603 -0
- package/dist/cjs/generated/tarka/gateway/v1/gateway.d.ts +804 -0
- package/dist/cjs/generated/tarka/gateway/v1/gateway.js +8081 -0
- package/dist/cjs/generated/tarka/iam/v1/iam.d.ts +1291 -0
- package/dist/cjs/generated/tarka/iam/v1/iam.js +13207 -0
- package/dist/cjs/generated/tarka/inference/v1/inference.d.ts +699 -0
- package/dist/cjs/generated/tarka/inference/v1/inference.js +7058 -0
- package/dist/cjs/generated/tarka/provisioning/v1/agent_secrets.d.ts +70 -0
- package/dist/cjs/generated/tarka/provisioning/v1/agent_secrets.js +603 -0
- package/dist/cjs/generated/tarka/provisioning/v1/billing_quote.d.ts +171 -0
- package/dist/cjs/generated/tarka/provisioning/v1/billing_quote.js +1588 -0
- package/dist/cjs/generated/tarka/provisioning/v1/job.d.ts +168 -0
- package/dist/cjs/generated/tarka/provisioning/v1/job.js +1505 -0
- package/dist/cjs/generated/tarka/provisioning/v1/provisioning.d.ts +2644 -0
- package/dist/cjs/generated/tarka/provisioning/v1/provisioning.js +19501 -0
- package/dist/cjs/generated/tarka/provisioning/v1/registry_credentials.d.ts +89 -0
- package/dist/cjs/generated/tarka/provisioning/v1/registry_credentials.js +856 -0
- package/dist/cjs/generated/tarka/provisioning/v1/sandbox.d.ts +431 -0
- package/dist/cjs/generated/tarka/provisioning/v1/sandbox.js +3203 -0
- package/dist/cjs/generated/tarka/provisioning/v1/source_builds.d.ts +291 -0
- package/dist/cjs/generated/tarka/provisioning/v1/source_builds.js +3920 -0
- package/dist/cjs/grpc.d.ts +12 -0
- package/dist/cjs/grpc.js +55 -0
- package/dist/cjs/index.d.ts +6 -0
- package/dist/cjs/index.js +21 -0
- package/dist/cjs/package.json +1 -0
- package/dist/cjs/resources/inference.d.ts +293 -0
- package/dist/cjs/resources/inference.js +451 -0
- package/dist/cjs/resources/provisioning.d.ts +389 -0
- package/dist/cjs/resources/provisioning.js +552 -0
- package/dist/cjs/resources/sandboxes.d.ts +360 -0
- package/dist/cjs/resources/sandboxes.js +732 -0
- package/dist/cjs/rpc-types.d.ts +36 -0
- package/dist/cjs/rpc-types.js +29 -0
- package/dist/cjs/runtime.d.ts +99 -0
- package/dist/cjs/runtime.js +473 -0
- package/dist/cjs/transport.d.ts +60 -0
- package/dist/cjs/transport.js +114 -0
- package/dist/cjs/types.d.ts +309 -0
- package/dist/cjs/types.js +2 -0
- package/dist/esm/client.d.ts +114 -0
- package/dist/esm/client.js +169 -0
- package/dist/esm/errors.d.ts +27 -0
- package/dist/esm/errors.js +71 -0
- package/dist/esm/generated/google/api/annotations.d.ts +1 -0
- package/dist/esm/generated/google/api/annotations.js +7 -0
- package/dist/esm/generated/google/api/http.d.ts +395 -0
- package/dist/esm/generated/google/api/http.js +418 -0
- package/dist/esm/generated/google/protobuf/descriptor.d.ts +873 -0
- package/dist/esm/generated/google/protobuf/descriptor.js +3977 -0
- package/dist/esm/generated/google/protobuf/empty.d.ts +35 -0
- package/dist/esm/generated/google/protobuf/empty.js +55 -0
- package/dist/esm/generated/google/protobuf/struct.d.ts +127 -0
- package/dist/esm/generated/google/protobuf/struct.js +524 -0
- package/dist/esm/generated/google/protobuf/timestamp.d.ts +128 -0
- package/dist/esm/generated/google/protobuf/timestamp.js +92 -0
- package/dist/esm/generated/protoc-gen-openapiv2/options/annotations.d.ts +1 -0
- package/dist/esm/generated/protoc-gen-openapiv2/options/annotations.js +7 -0
- package/dist/esm/generated/protoc-gen-openapiv2/options/openapiv2.d.ts +983 -0
- package/dist/esm/generated/protoc-gen-openapiv2/options/openapiv2.js +4859 -0
- package/dist/esm/generated/tarka/access/v1/access.d.ts +322 -0
- package/dist/esm/generated/tarka/access/v1/access.js +2976 -0
- package/dist/esm/generated/tarka/channels/v1/channels.d.ts +370 -0
- package/dist/esm/generated/tarka/channels/v1/channels.js +3600 -0
- package/dist/esm/generated/tarka/gateway/v1/gateway.d.ts +804 -0
- package/dist/esm/generated/tarka/gateway/v1/gateway.js +8077 -0
- package/dist/esm/generated/tarka/iam/v1/iam.d.ts +1291 -0
- package/dist/esm/generated/tarka/iam/v1/iam.js +13203 -0
- package/dist/esm/generated/tarka/inference/v1/inference.d.ts +699 -0
- package/dist/esm/generated/tarka/inference/v1/inference.js +7055 -0
- package/dist/esm/generated/tarka/provisioning/v1/agent_secrets.d.ts +70 -0
- package/dist/esm/generated/tarka/provisioning/v1/agent_secrets.js +600 -0
- package/dist/esm/generated/tarka/provisioning/v1/billing_quote.d.ts +171 -0
- package/dist/esm/generated/tarka/provisioning/v1/billing_quote.js +1585 -0
- package/dist/esm/generated/tarka/provisioning/v1/job.d.ts +168 -0
- package/dist/esm/generated/tarka/provisioning/v1/job.js +1500 -0
- package/dist/esm/generated/tarka/provisioning/v1/provisioning.d.ts +2644 -0
- package/dist/esm/generated/tarka/provisioning/v1/provisioning.js +19496 -0
- package/dist/esm/generated/tarka/provisioning/v1/registry_credentials.d.ts +89 -0
- package/dist/esm/generated/tarka/provisioning/v1/registry_credentials.js +853 -0
- package/dist/esm/generated/tarka/provisioning/v1/sandbox.d.ts +431 -0
- package/dist/esm/generated/tarka/provisioning/v1/sandbox.js +3192 -0
- package/dist/esm/generated/tarka/provisioning/v1/source_builds.d.ts +291 -0
- package/dist/esm/generated/tarka/provisioning/v1/source_builds.js +3917 -0
- package/dist/esm/grpc.d.ts +12 -0
- package/dist/esm/grpc.js +11 -0
- package/dist/esm/index.d.ts +6 -0
- package/dist/esm/index.js +4 -0
- package/dist/esm/resources/inference.d.ts +293 -0
- package/dist/esm/resources/inference.js +437 -0
- package/dist/esm/resources/provisioning.d.ts +389 -0
- package/dist/esm/resources/provisioning.js +531 -0
- package/dist/esm/resources/sandboxes.d.ts +360 -0
- package/dist/esm/resources/sandboxes.js +718 -0
- package/dist/esm/rpc-types.d.ts +36 -0
- package/dist/esm/rpc-types.js +26 -0
- package/dist/esm/runtime.d.ts +99 -0
- package/dist/esm/runtime.js +466 -0
- package/dist/esm/transport.d.ts +60 -0
- package/dist/esm/transport.js +110 -0
- package/dist/esm/types.d.ts +309 -0
- package/dist/esm/types.js +1 -0
- package/package.json +155 -4
|
@@ -0,0 +1,4874 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
|
+
// versions:
|
|
4
|
+
// protoc-gen-ts_proto v2.12.4
|
|
5
|
+
// protoc v3.19.1
|
|
6
|
+
// source: protoc-gen-openapiv2/options/openapiv2.proto
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.Scopes_ScopeEntry = exports.Scopes = exports.SecurityRequirement_SecurityRequirementEntry = exports.SecurityRequirement_SecurityRequirementValue = exports.SecurityRequirement = exports.SecurityScheme_ExtensionsEntry = exports.SecurityScheme = exports.SecurityDefinitions_SecurityEntry = exports.SecurityDefinitions = exports.Tag_ExtensionsEntry = exports.Tag = exports.JSONSchema_ExtensionsEntry = exports.JSONSchema_FieldConfiguration = exports.JSONSchema = exports.EnumSchema_ExtensionsEntry = exports.EnumSchema = exports.Schema = exports.ExternalDocumentation = exports.License = exports.Contact = exports.Info_ExtensionsEntry = exports.Info = exports.Response_ExtensionsEntry = exports.Response_ExamplesEntry = exports.Response_HeadersEntry = exports.Response = exports.Header = exports.HeaderParameter = exports.Parameters = exports.Operation_ExtensionsEntry = exports.Operation_ResponsesEntry = exports.Operation = exports.Swagger_ExtensionsEntry = exports.Swagger_ResponsesEntry = exports.Swagger = exports.SecurityScheme_Flow = exports.SecurityScheme_In = exports.SecurityScheme_Type = exports.JSONSchema_JSONSchemaSimpleTypes = exports.HeaderParameter_Type = exports.Scheme = exports.protobufPackage = void 0;
|
|
9
|
+
exports.schemeFromJSON = schemeFromJSON;
|
|
10
|
+
exports.schemeToJSON = schemeToJSON;
|
|
11
|
+
exports.headerParameter_TypeFromJSON = headerParameter_TypeFromJSON;
|
|
12
|
+
exports.headerParameter_TypeToJSON = headerParameter_TypeToJSON;
|
|
13
|
+
exports.jSONSchema_JSONSchemaSimpleTypesFromJSON = jSONSchema_JSONSchemaSimpleTypesFromJSON;
|
|
14
|
+
exports.jSONSchema_JSONSchemaSimpleTypesToJSON = jSONSchema_JSONSchemaSimpleTypesToJSON;
|
|
15
|
+
exports.securityScheme_TypeFromJSON = securityScheme_TypeFromJSON;
|
|
16
|
+
exports.securityScheme_TypeToJSON = securityScheme_TypeToJSON;
|
|
17
|
+
exports.securityScheme_InFromJSON = securityScheme_InFromJSON;
|
|
18
|
+
exports.securityScheme_InToJSON = securityScheme_InToJSON;
|
|
19
|
+
exports.securityScheme_FlowFromJSON = securityScheme_FlowFromJSON;
|
|
20
|
+
exports.securityScheme_FlowToJSON = securityScheme_FlowToJSON;
|
|
21
|
+
/* eslint-disable */
|
|
22
|
+
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
23
|
+
const struct_js_1 = require("../../google/protobuf/struct.js");
|
|
24
|
+
exports.protobufPackage = "grpc.gateway.protoc_gen_openapiv2.options";
|
|
25
|
+
/**
|
|
26
|
+
* Scheme describes the schemes supported by the OpenAPI Swagger
|
|
27
|
+
* and Operation objects.
|
|
28
|
+
*/
|
|
29
|
+
var Scheme;
|
|
30
|
+
(function (Scheme) {
|
|
31
|
+
Scheme[Scheme["UNKNOWN"] = 0] = "UNKNOWN";
|
|
32
|
+
Scheme[Scheme["HTTP"] = 1] = "HTTP";
|
|
33
|
+
Scheme[Scheme["HTTPS"] = 2] = "HTTPS";
|
|
34
|
+
Scheme[Scheme["WS"] = 3] = "WS";
|
|
35
|
+
Scheme[Scheme["WSS"] = 4] = "WSS";
|
|
36
|
+
Scheme[Scheme["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
37
|
+
})(Scheme || (exports.Scheme = Scheme = {}));
|
|
38
|
+
function schemeFromJSON(object) {
|
|
39
|
+
switch (object) {
|
|
40
|
+
case 0:
|
|
41
|
+
case "UNKNOWN":
|
|
42
|
+
return Scheme.UNKNOWN;
|
|
43
|
+
case 1:
|
|
44
|
+
case "HTTP":
|
|
45
|
+
return Scheme.HTTP;
|
|
46
|
+
case 2:
|
|
47
|
+
case "HTTPS":
|
|
48
|
+
return Scheme.HTTPS;
|
|
49
|
+
case 3:
|
|
50
|
+
case "WS":
|
|
51
|
+
return Scheme.WS;
|
|
52
|
+
case 4:
|
|
53
|
+
case "WSS":
|
|
54
|
+
return Scheme.WSS;
|
|
55
|
+
case -1:
|
|
56
|
+
case "UNRECOGNIZED":
|
|
57
|
+
default:
|
|
58
|
+
return Scheme.UNRECOGNIZED;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
function schemeToJSON(object) {
|
|
62
|
+
switch (object) {
|
|
63
|
+
case Scheme.UNKNOWN:
|
|
64
|
+
return "UNKNOWN";
|
|
65
|
+
case Scheme.HTTP:
|
|
66
|
+
return "HTTP";
|
|
67
|
+
case Scheme.HTTPS:
|
|
68
|
+
return "HTTPS";
|
|
69
|
+
case Scheme.WS:
|
|
70
|
+
return "WS";
|
|
71
|
+
case Scheme.WSS:
|
|
72
|
+
return "WSS";
|
|
73
|
+
case Scheme.UNRECOGNIZED:
|
|
74
|
+
default:
|
|
75
|
+
return "UNRECOGNIZED";
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* `Type` is a supported HTTP header type.
|
|
80
|
+
* See https://swagger.io/specification/v2/#parameterType.
|
|
81
|
+
*/
|
|
82
|
+
var HeaderParameter_Type;
|
|
83
|
+
(function (HeaderParameter_Type) {
|
|
84
|
+
HeaderParameter_Type[HeaderParameter_Type["UNKNOWN"] = 0] = "UNKNOWN";
|
|
85
|
+
HeaderParameter_Type[HeaderParameter_Type["STRING"] = 1] = "STRING";
|
|
86
|
+
HeaderParameter_Type[HeaderParameter_Type["NUMBER"] = 2] = "NUMBER";
|
|
87
|
+
HeaderParameter_Type[HeaderParameter_Type["INTEGER"] = 3] = "INTEGER";
|
|
88
|
+
HeaderParameter_Type[HeaderParameter_Type["BOOLEAN"] = 4] = "BOOLEAN";
|
|
89
|
+
HeaderParameter_Type[HeaderParameter_Type["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
90
|
+
})(HeaderParameter_Type || (exports.HeaderParameter_Type = HeaderParameter_Type = {}));
|
|
91
|
+
function headerParameter_TypeFromJSON(object) {
|
|
92
|
+
switch (object) {
|
|
93
|
+
case 0:
|
|
94
|
+
case "UNKNOWN":
|
|
95
|
+
return HeaderParameter_Type.UNKNOWN;
|
|
96
|
+
case 1:
|
|
97
|
+
case "STRING":
|
|
98
|
+
return HeaderParameter_Type.STRING;
|
|
99
|
+
case 2:
|
|
100
|
+
case "NUMBER":
|
|
101
|
+
return HeaderParameter_Type.NUMBER;
|
|
102
|
+
case 3:
|
|
103
|
+
case "INTEGER":
|
|
104
|
+
return HeaderParameter_Type.INTEGER;
|
|
105
|
+
case 4:
|
|
106
|
+
case "BOOLEAN":
|
|
107
|
+
return HeaderParameter_Type.BOOLEAN;
|
|
108
|
+
case -1:
|
|
109
|
+
case "UNRECOGNIZED":
|
|
110
|
+
default:
|
|
111
|
+
return HeaderParameter_Type.UNRECOGNIZED;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
function headerParameter_TypeToJSON(object) {
|
|
115
|
+
switch (object) {
|
|
116
|
+
case HeaderParameter_Type.UNKNOWN:
|
|
117
|
+
return "UNKNOWN";
|
|
118
|
+
case HeaderParameter_Type.STRING:
|
|
119
|
+
return "STRING";
|
|
120
|
+
case HeaderParameter_Type.NUMBER:
|
|
121
|
+
return "NUMBER";
|
|
122
|
+
case HeaderParameter_Type.INTEGER:
|
|
123
|
+
return "INTEGER";
|
|
124
|
+
case HeaderParameter_Type.BOOLEAN:
|
|
125
|
+
return "BOOLEAN";
|
|
126
|
+
case HeaderParameter_Type.UNRECOGNIZED:
|
|
127
|
+
default:
|
|
128
|
+
return "UNRECOGNIZED";
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
var JSONSchema_JSONSchemaSimpleTypes;
|
|
132
|
+
(function (JSONSchema_JSONSchemaSimpleTypes) {
|
|
133
|
+
JSONSchema_JSONSchemaSimpleTypes[JSONSchema_JSONSchemaSimpleTypes["UNKNOWN"] = 0] = "UNKNOWN";
|
|
134
|
+
JSONSchema_JSONSchemaSimpleTypes[JSONSchema_JSONSchemaSimpleTypes["ARRAY"] = 1] = "ARRAY";
|
|
135
|
+
JSONSchema_JSONSchemaSimpleTypes[JSONSchema_JSONSchemaSimpleTypes["BOOLEAN"] = 2] = "BOOLEAN";
|
|
136
|
+
JSONSchema_JSONSchemaSimpleTypes[JSONSchema_JSONSchemaSimpleTypes["INTEGER"] = 3] = "INTEGER";
|
|
137
|
+
JSONSchema_JSONSchemaSimpleTypes[JSONSchema_JSONSchemaSimpleTypes["NULL"] = 4] = "NULL";
|
|
138
|
+
JSONSchema_JSONSchemaSimpleTypes[JSONSchema_JSONSchemaSimpleTypes["NUMBER"] = 5] = "NUMBER";
|
|
139
|
+
JSONSchema_JSONSchemaSimpleTypes[JSONSchema_JSONSchemaSimpleTypes["OBJECT"] = 6] = "OBJECT";
|
|
140
|
+
JSONSchema_JSONSchemaSimpleTypes[JSONSchema_JSONSchemaSimpleTypes["STRING"] = 7] = "STRING";
|
|
141
|
+
JSONSchema_JSONSchemaSimpleTypes[JSONSchema_JSONSchemaSimpleTypes["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
142
|
+
})(JSONSchema_JSONSchemaSimpleTypes || (exports.JSONSchema_JSONSchemaSimpleTypes = JSONSchema_JSONSchemaSimpleTypes = {}));
|
|
143
|
+
function jSONSchema_JSONSchemaSimpleTypesFromJSON(object) {
|
|
144
|
+
switch (object) {
|
|
145
|
+
case 0:
|
|
146
|
+
case "UNKNOWN":
|
|
147
|
+
return JSONSchema_JSONSchemaSimpleTypes.UNKNOWN;
|
|
148
|
+
case 1:
|
|
149
|
+
case "ARRAY":
|
|
150
|
+
return JSONSchema_JSONSchemaSimpleTypes.ARRAY;
|
|
151
|
+
case 2:
|
|
152
|
+
case "BOOLEAN":
|
|
153
|
+
return JSONSchema_JSONSchemaSimpleTypes.BOOLEAN;
|
|
154
|
+
case 3:
|
|
155
|
+
case "INTEGER":
|
|
156
|
+
return JSONSchema_JSONSchemaSimpleTypes.INTEGER;
|
|
157
|
+
case 4:
|
|
158
|
+
case "NULL":
|
|
159
|
+
return JSONSchema_JSONSchemaSimpleTypes.NULL;
|
|
160
|
+
case 5:
|
|
161
|
+
case "NUMBER":
|
|
162
|
+
return JSONSchema_JSONSchemaSimpleTypes.NUMBER;
|
|
163
|
+
case 6:
|
|
164
|
+
case "OBJECT":
|
|
165
|
+
return JSONSchema_JSONSchemaSimpleTypes.OBJECT;
|
|
166
|
+
case 7:
|
|
167
|
+
case "STRING":
|
|
168
|
+
return JSONSchema_JSONSchemaSimpleTypes.STRING;
|
|
169
|
+
case -1:
|
|
170
|
+
case "UNRECOGNIZED":
|
|
171
|
+
default:
|
|
172
|
+
return JSONSchema_JSONSchemaSimpleTypes.UNRECOGNIZED;
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
function jSONSchema_JSONSchemaSimpleTypesToJSON(object) {
|
|
176
|
+
switch (object) {
|
|
177
|
+
case JSONSchema_JSONSchemaSimpleTypes.UNKNOWN:
|
|
178
|
+
return "UNKNOWN";
|
|
179
|
+
case JSONSchema_JSONSchemaSimpleTypes.ARRAY:
|
|
180
|
+
return "ARRAY";
|
|
181
|
+
case JSONSchema_JSONSchemaSimpleTypes.BOOLEAN:
|
|
182
|
+
return "BOOLEAN";
|
|
183
|
+
case JSONSchema_JSONSchemaSimpleTypes.INTEGER:
|
|
184
|
+
return "INTEGER";
|
|
185
|
+
case JSONSchema_JSONSchemaSimpleTypes.NULL:
|
|
186
|
+
return "NULL";
|
|
187
|
+
case JSONSchema_JSONSchemaSimpleTypes.NUMBER:
|
|
188
|
+
return "NUMBER";
|
|
189
|
+
case JSONSchema_JSONSchemaSimpleTypes.OBJECT:
|
|
190
|
+
return "OBJECT";
|
|
191
|
+
case JSONSchema_JSONSchemaSimpleTypes.STRING:
|
|
192
|
+
return "STRING";
|
|
193
|
+
case JSONSchema_JSONSchemaSimpleTypes.UNRECOGNIZED:
|
|
194
|
+
default:
|
|
195
|
+
return "UNRECOGNIZED";
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
/**
|
|
199
|
+
* The type of the security scheme. Valid values are "basic",
|
|
200
|
+
* "apiKey" or "oauth2".
|
|
201
|
+
*/
|
|
202
|
+
var SecurityScheme_Type;
|
|
203
|
+
(function (SecurityScheme_Type) {
|
|
204
|
+
SecurityScheme_Type[SecurityScheme_Type["TYPE_INVALID"] = 0] = "TYPE_INVALID";
|
|
205
|
+
SecurityScheme_Type[SecurityScheme_Type["TYPE_BASIC"] = 1] = "TYPE_BASIC";
|
|
206
|
+
SecurityScheme_Type[SecurityScheme_Type["TYPE_API_KEY"] = 2] = "TYPE_API_KEY";
|
|
207
|
+
SecurityScheme_Type[SecurityScheme_Type["TYPE_OAUTH2"] = 3] = "TYPE_OAUTH2";
|
|
208
|
+
SecurityScheme_Type[SecurityScheme_Type["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
209
|
+
})(SecurityScheme_Type || (exports.SecurityScheme_Type = SecurityScheme_Type = {}));
|
|
210
|
+
function securityScheme_TypeFromJSON(object) {
|
|
211
|
+
switch (object) {
|
|
212
|
+
case 0:
|
|
213
|
+
case "TYPE_INVALID":
|
|
214
|
+
return SecurityScheme_Type.TYPE_INVALID;
|
|
215
|
+
case 1:
|
|
216
|
+
case "TYPE_BASIC":
|
|
217
|
+
return SecurityScheme_Type.TYPE_BASIC;
|
|
218
|
+
case 2:
|
|
219
|
+
case "TYPE_API_KEY":
|
|
220
|
+
return SecurityScheme_Type.TYPE_API_KEY;
|
|
221
|
+
case 3:
|
|
222
|
+
case "TYPE_OAUTH2":
|
|
223
|
+
return SecurityScheme_Type.TYPE_OAUTH2;
|
|
224
|
+
case -1:
|
|
225
|
+
case "UNRECOGNIZED":
|
|
226
|
+
default:
|
|
227
|
+
return SecurityScheme_Type.UNRECOGNIZED;
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
function securityScheme_TypeToJSON(object) {
|
|
231
|
+
switch (object) {
|
|
232
|
+
case SecurityScheme_Type.TYPE_INVALID:
|
|
233
|
+
return "TYPE_INVALID";
|
|
234
|
+
case SecurityScheme_Type.TYPE_BASIC:
|
|
235
|
+
return "TYPE_BASIC";
|
|
236
|
+
case SecurityScheme_Type.TYPE_API_KEY:
|
|
237
|
+
return "TYPE_API_KEY";
|
|
238
|
+
case SecurityScheme_Type.TYPE_OAUTH2:
|
|
239
|
+
return "TYPE_OAUTH2";
|
|
240
|
+
case SecurityScheme_Type.UNRECOGNIZED:
|
|
241
|
+
default:
|
|
242
|
+
return "UNRECOGNIZED";
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
/** The location of the API key. Valid values are "query" or "header". */
|
|
246
|
+
var SecurityScheme_In;
|
|
247
|
+
(function (SecurityScheme_In) {
|
|
248
|
+
SecurityScheme_In[SecurityScheme_In["IN_INVALID"] = 0] = "IN_INVALID";
|
|
249
|
+
SecurityScheme_In[SecurityScheme_In["IN_QUERY"] = 1] = "IN_QUERY";
|
|
250
|
+
SecurityScheme_In[SecurityScheme_In["IN_HEADER"] = 2] = "IN_HEADER";
|
|
251
|
+
SecurityScheme_In[SecurityScheme_In["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
252
|
+
})(SecurityScheme_In || (exports.SecurityScheme_In = SecurityScheme_In = {}));
|
|
253
|
+
function securityScheme_InFromJSON(object) {
|
|
254
|
+
switch (object) {
|
|
255
|
+
case 0:
|
|
256
|
+
case "IN_INVALID":
|
|
257
|
+
return SecurityScheme_In.IN_INVALID;
|
|
258
|
+
case 1:
|
|
259
|
+
case "IN_QUERY":
|
|
260
|
+
return SecurityScheme_In.IN_QUERY;
|
|
261
|
+
case 2:
|
|
262
|
+
case "IN_HEADER":
|
|
263
|
+
return SecurityScheme_In.IN_HEADER;
|
|
264
|
+
case -1:
|
|
265
|
+
case "UNRECOGNIZED":
|
|
266
|
+
default:
|
|
267
|
+
return SecurityScheme_In.UNRECOGNIZED;
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
function securityScheme_InToJSON(object) {
|
|
271
|
+
switch (object) {
|
|
272
|
+
case SecurityScheme_In.IN_INVALID:
|
|
273
|
+
return "IN_INVALID";
|
|
274
|
+
case SecurityScheme_In.IN_QUERY:
|
|
275
|
+
return "IN_QUERY";
|
|
276
|
+
case SecurityScheme_In.IN_HEADER:
|
|
277
|
+
return "IN_HEADER";
|
|
278
|
+
case SecurityScheme_In.UNRECOGNIZED:
|
|
279
|
+
default:
|
|
280
|
+
return "UNRECOGNIZED";
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
/**
|
|
284
|
+
* The flow used by the OAuth2 security scheme. Valid values are
|
|
285
|
+
* "implicit", "password", "application" or "accessCode".
|
|
286
|
+
*/
|
|
287
|
+
var SecurityScheme_Flow;
|
|
288
|
+
(function (SecurityScheme_Flow) {
|
|
289
|
+
SecurityScheme_Flow[SecurityScheme_Flow["FLOW_INVALID"] = 0] = "FLOW_INVALID";
|
|
290
|
+
SecurityScheme_Flow[SecurityScheme_Flow["FLOW_IMPLICIT"] = 1] = "FLOW_IMPLICIT";
|
|
291
|
+
SecurityScheme_Flow[SecurityScheme_Flow["FLOW_PASSWORD"] = 2] = "FLOW_PASSWORD";
|
|
292
|
+
SecurityScheme_Flow[SecurityScheme_Flow["FLOW_APPLICATION"] = 3] = "FLOW_APPLICATION";
|
|
293
|
+
SecurityScheme_Flow[SecurityScheme_Flow["FLOW_ACCESS_CODE"] = 4] = "FLOW_ACCESS_CODE";
|
|
294
|
+
SecurityScheme_Flow[SecurityScheme_Flow["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
295
|
+
})(SecurityScheme_Flow || (exports.SecurityScheme_Flow = SecurityScheme_Flow = {}));
|
|
296
|
+
function securityScheme_FlowFromJSON(object) {
|
|
297
|
+
switch (object) {
|
|
298
|
+
case 0:
|
|
299
|
+
case "FLOW_INVALID":
|
|
300
|
+
return SecurityScheme_Flow.FLOW_INVALID;
|
|
301
|
+
case 1:
|
|
302
|
+
case "FLOW_IMPLICIT":
|
|
303
|
+
return SecurityScheme_Flow.FLOW_IMPLICIT;
|
|
304
|
+
case 2:
|
|
305
|
+
case "FLOW_PASSWORD":
|
|
306
|
+
return SecurityScheme_Flow.FLOW_PASSWORD;
|
|
307
|
+
case 3:
|
|
308
|
+
case "FLOW_APPLICATION":
|
|
309
|
+
return SecurityScheme_Flow.FLOW_APPLICATION;
|
|
310
|
+
case 4:
|
|
311
|
+
case "FLOW_ACCESS_CODE":
|
|
312
|
+
return SecurityScheme_Flow.FLOW_ACCESS_CODE;
|
|
313
|
+
case -1:
|
|
314
|
+
case "UNRECOGNIZED":
|
|
315
|
+
default:
|
|
316
|
+
return SecurityScheme_Flow.UNRECOGNIZED;
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
function securityScheme_FlowToJSON(object) {
|
|
320
|
+
switch (object) {
|
|
321
|
+
case SecurityScheme_Flow.FLOW_INVALID:
|
|
322
|
+
return "FLOW_INVALID";
|
|
323
|
+
case SecurityScheme_Flow.FLOW_IMPLICIT:
|
|
324
|
+
return "FLOW_IMPLICIT";
|
|
325
|
+
case SecurityScheme_Flow.FLOW_PASSWORD:
|
|
326
|
+
return "FLOW_PASSWORD";
|
|
327
|
+
case SecurityScheme_Flow.FLOW_APPLICATION:
|
|
328
|
+
return "FLOW_APPLICATION";
|
|
329
|
+
case SecurityScheme_Flow.FLOW_ACCESS_CODE:
|
|
330
|
+
return "FLOW_ACCESS_CODE";
|
|
331
|
+
case SecurityScheme_Flow.UNRECOGNIZED:
|
|
332
|
+
default:
|
|
333
|
+
return "UNRECOGNIZED";
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
function createBaseSwagger() {
|
|
337
|
+
return {
|
|
338
|
+
swagger: "",
|
|
339
|
+
info: undefined,
|
|
340
|
+
host: "",
|
|
341
|
+
basePath: "",
|
|
342
|
+
schemes: [],
|
|
343
|
+
consumes: [],
|
|
344
|
+
produces: [],
|
|
345
|
+
responses: {},
|
|
346
|
+
securityDefinitions: undefined,
|
|
347
|
+
security: [],
|
|
348
|
+
tags: [],
|
|
349
|
+
externalDocs: undefined,
|
|
350
|
+
extensions: {},
|
|
351
|
+
};
|
|
352
|
+
}
|
|
353
|
+
exports.Swagger = {
|
|
354
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
355
|
+
if (message.swagger !== "") {
|
|
356
|
+
writer.uint32(10).string(message.swagger);
|
|
357
|
+
}
|
|
358
|
+
if (message.info !== undefined) {
|
|
359
|
+
exports.Info.encode(message.info, writer.uint32(18).fork()).join();
|
|
360
|
+
}
|
|
361
|
+
if (message.host !== "") {
|
|
362
|
+
writer.uint32(26).string(message.host);
|
|
363
|
+
}
|
|
364
|
+
if (message.basePath !== "") {
|
|
365
|
+
writer.uint32(34).string(message.basePath);
|
|
366
|
+
}
|
|
367
|
+
writer.uint32(42).fork();
|
|
368
|
+
for (const v of message.schemes) {
|
|
369
|
+
writer.int32(v);
|
|
370
|
+
}
|
|
371
|
+
writer.join();
|
|
372
|
+
for (const v of message.consumes) {
|
|
373
|
+
writer.uint32(50).string(v);
|
|
374
|
+
}
|
|
375
|
+
for (const v of message.produces) {
|
|
376
|
+
writer.uint32(58).string(v);
|
|
377
|
+
}
|
|
378
|
+
globalThis.Object.entries(message.responses).forEach(([key, value]) => {
|
|
379
|
+
exports.Swagger_ResponsesEntry.encode({ key: key, value }, writer.uint32(82).fork()).join();
|
|
380
|
+
});
|
|
381
|
+
if (message.securityDefinitions !== undefined) {
|
|
382
|
+
exports.SecurityDefinitions.encode(message.securityDefinitions, writer.uint32(90).fork()).join();
|
|
383
|
+
}
|
|
384
|
+
for (const v of message.security) {
|
|
385
|
+
exports.SecurityRequirement.encode(v, writer.uint32(98).fork()).join();
|
|
386
|
+
}
|
|
387
|
+
for (const v of message.tags) {
|
|
388
|
+
exports.Tag.encode(v, writer.uint32(106).fork()).join();
|
|
389
|
+
}
|
|
390
|
+
if (message.externalDocs !== undefined) {
|
|
391
|
+
exports.ExternalDocumentation.encode(message.externalDocs, writer.uint32(114).fork()).join();
|
|
392
|
+
}
|
|
393
|
+
globalThis.Object.entries(message.extensions).forEach(([key, value]) => {
|
|
394
|
+
if (value !== undefined) {
|
|
395
|
+
exports.Swagger_ExtensionsEntry.encode({ key: key, value }, writer.uint32(122).fork()).join();
|
|
396
|
+
}
|
|
397
|
+
});
|
|
398
|
+
return writer;
|
|
399
|
+
},
|
|
400
|
+
decode(input, length) {
|
|
401
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
402
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
403
|
+
if (previousRecursionDepth >= 100) {
|
|
404
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
405
|
+
}
|
|
406
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
407
|
+
try {
|
|
408
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
409
|
+
const message = createBaseSwagger();
|
|
410
|
+
while (reader.pos < end) {
|
|
411
|
+
const tag = reader.uint32();
|
|
412
|
+
switch (tag >>> 3) {
|
|
413
|
+
case 1: {
|
|
414
|
+
if (tag !== 10) {
|
|
415
|
+
break;
|
|
416
|
+
}
|
|
417
|
+
message.swagger = reader.string();
|
|
418
|
+
continue;
|
|
419
|
+
}
|
|
420
|
+
case 2: {
|
|
421
|
+
if (tag !== 18) {
|
|
422
|
+
break;
|
|
423
|
+
}
|
|
424
|
+
message.info = exports.Info.decode(reader, reader.uint32());
|
|
425
|
+
continue;
|
|
426
|
+
}
|
|
427
|
+
case 3: {
|
|
428
|
+
if (tag !== 26) {
|
|
429
|
+
break;
|
|
430
|
+
}
|
|
431
|
+
message.host = reader.string();
|
|
432
|
+
continue;
|
|
433
|
+
}
|
|
434
|
+
case 4: {
|
|
435
|
+
if (tag !== 34) {
|
|
436
|
+
break;
|
|
437
|
+
}
|
|
438
|
+
message.basePath = reader.string();
|
|
439
|
+
continue;
|
|
440
|
+
}
|
|
441
|
+
case 5: {
|
|
442
|
+
if (tag === 40) {
|
|
443
|
+
message.schemes.push(reader.int32());
|
|
444
|
+
continue;
|
|
445
|
+
}
|
|
446
|
+
if (tag === 42) {
|
|
447
|
+
const end2 = reader.uint32() + reader.pos;
|
|
448
|
+
while (reader.pos < end2) {
|
|
449
|
+
message.schemes.push(reader.int32());
|
|
450
|
+
}
|
|
451
|
+
continue;
|
|
452
|
+
}
|
|
453
|
+
break;
|
|
454
|
+
}
|
|
455
|
+
case 6: {
|
|
456
|
+
if (tag !== 50) {
|
|
457
|
+
break;
|
|
458
|
+
}
|
|
459
|
+
message.consumes.push(reader.string());
|
|
460
|
+
continue;
|
|
461
|
+
}
|
|
462
|
+
case 7: {
|
|
463
|
+
if (tag !== 58) {
|
|
464
|
+
break;
|
|
465
|
+
}
|
|
466
|
+
message.produces.push(reader.string());
|
|
467
|
+
continue;
|
|
468
|
+
}
|
|
469
|
+
case 10: {
|
|
470
|
+
if (tag !== 82) {
|
|
471
|
+
break;
|
|
472
|
+
}
|
|
473
|
+
const entry10 = exports.Swagger_ResponsesEntry.decode(reader, reader.uint32());
|
|
474
|
+
if (entry10.value !== undefined) {
|
|
475
|
+
message.responses[entry10.key] = entry10.value;
|
|
476
|
+
}
|
|
477
|
+
continue;
|
|
478
|
+
}
|
|
479
|
+
case 11: {
|
|
480
|
+
if (tag !== 90) {
|
|
481
|
+
break;
|
|
482
|
+
}
|
|
483
|
+
message.securityDefinitions = exports.SecurityDefinitions.decode(reader, reader.uint32());
|
|
484
|
+
continue;
|
|
485
|
+
}
|
|
486
|
+
case 12: {
|
|
487
|
+
if (tag !== 98) {
|
|
488
|
+
break;
|
|
489
|
+
}
|
|
490
|
+
message.security.push(exports.SecurityRequirement.decode(reader, reader.uint32()));
|
|
491
|
+
continue;
|
|
492
|
+
}
|
|
493
|
+
case 13: {
|
|
494
|
+
if (tag !== 106) {
|
|
495
|
+
break;
|
|
496
|
+
}
|
|
497
|
+
message.tags.push(exports.Tag.decode(reader, reader.uint32()));
|
|
498
|
+
continue;
|
|
499
|
+
}
|
|
500
|
+
case 14: {
|
|
501
|
+
if (tag !== 114) {
|
|
502
|
+
break;
|
|
503
|
+
}
|
|
504
|
+
message.externalDocs = exports.ExternalDocumentation.decode(reader, reader.uint32());
|
|
505
|
+
continue;
|
|
506
|
+
}
|
|
507
|
+
case 15: {
|
|
508
|
+
if (tag !== 122) {
|
|
509
|
+
break;
|
|
510
|
+
}
|
|
511
|
+
const entry15 = exports.Swagger_ExtensionsEntry.decode(reader, reader.uint32());
|
|
512
|
+
if (entry15.value !== undefined) {
|
|
513
|
+
message.extensions[entry15.key] = entry15.value;
|
|
514
|
+
}
|
|
515
|
+
continue;
|
|
516
|
+
}
|
|
517
|
+
}
|
|
518
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
519
|
+
break;
|
|
520
|
+
}
|
|
521
|
+
reader.skip(tag & 7);
|
|
522
|
+
}
|
|
523
|
+
return message;
|
|
524
|
+
}
|
|
525
|
+
finally {
|
|
526
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
527
|
+
}
|
|
528
|
+
},
|
|
529
|
+
fromJSON(object) {
|
|
530
|
+
return {
|
|
531
|
+
swagger: isSet(object.swagger) ? globalThis.String(object.swagger) : "",
|
|
532
|
+
info: isSet(object.info) ? exports.Info.fromJSON(object.info) : undefined,
|
|
533
|
+
host: isSet(object.host) ? globalThis.String(object.host) : "",
|
|
534
|
+
basePath: isSet(object.basePath)
|
|
535
|
+
? globalThis.String(object.basePath)
|
|
536
|
+
: isSet(object.base_path)
|
|
537
|
+
? globalThis.String(object.base_path)
|
|
538
|
+
: "",
|
|
539
|
+
schemes: globalThis.Array.isArray(object?.schemes) ? object.schemes.map((e) => schemeFromJSON(e)) : [],
|
|
540
|
+
consumes: globalThis.Array.isArray(object?.consumes) ? object.consumes.map((e) => globalThis.String(e)) : [],
|
|
541
|
+
produces: globalThis.Array.isArray(object?.produces) ? object.produces.map((e) => globalThis.String(e)) : [],
|
|
542
|
+
responses: isObject(object.responses)
|
|
543
|
+
? globalThis.Object.entries(object.responses).reduce((acc, [key, value]) => {
|
|
544
|
+
globalThis.Object.defineProperty(acc, key, {
|
|
545
|
+
value: exports.Response.fromJSON(value),
|
|
546
|
+
enumerable: true,
|
|
547
|
+
configurable: true,
|
|
548
|
+
writable: true,
|
|
549
|
+
});
|
|
550
|
+
return acc;
|
|
551
|
+
}, {})
|
|
552
|
+
: {},
|
|
553
|
+
securityDefinitions: isSet(object.securityDefinitions)
|
|
554
|
+
? exports.SecurityDefinitions.fromJSON(object.securityDefinitions)
|
|
555
|
+
: isSet(object.security_definitions)
|
|
556
|
+
? exports.SecurityDefinitions.fromJSON(object.security_definitions)
|
|
557
|
+
: undefined,
|
|
558
|
+
security: globalThis.Array.isArray(object?.security)
|
|
559
|
+
? object.security.map((e) => exports.SecurityRequirement.fromJSON(e))
|
|
560
|
+
: [],
|
|
561
|
+
tags: globalThis.Array.isArray(object?.tags)
|
|
562
|
+
? object.tags.map((e) => exports.Tag.fromJSON(e))
|
|
563
|
+
: [],
|
|
564
|
+
externalDocs: isSet(object.externalDocs)
|
|
565
|
+
? exports.ExternalDocumentation.fromJSON(object.externalDocs)
|
|
566
|
+
: isSet(object.external_docs)
|
|
567
|
+
? exports.ExternalDocumentation.fromJSON(object.external_docs)
|
|
568
|
+
: undefined,
|
|
569
|
+
extensions: isObject(object.extensions)
|
|
570
|
+
? globalThis.Object.entries(object.extensions).reduce((acc, [key, value]) => {
|
|
571
|
+
globalThis.Object.defineProperty(acc, key, {
|
|
572
|
+
value: value,
|
|
573
|
+
enumerable: true,
|
|
574
|
+
configurable: true,
|
|
575
|
+
writable: true,
|
|
576
|
+
});
|
|
577
|
+
return acc;
|
|
578
|
+
}, {})
|
|
579
|
+
: {},
|
|
580
|
+
};
|
|
581
|
+
},
|
|
582
|
+
toJSON(message) {
|
|
583
|
+
const obj = {};
|
|
584
|
+
if (message.swagger !== "") {
|
|
585
|
+
obj.swagger = message.swagger;
|
|
586
|
+
}
|
|
587
|
+
if (message.info !== undefined) {
|
|
588
|
+
obj.info = exports.Info.toJSON(message.info);
|
|
589
|
+
}
|
|
590
|
+
if (message.host !== "") {
|
|
591
|
+
obj.host = message.host;
|
|
592
|
+
}
|
|
593
|
+
if (message.basePath !== "") {
|
|
594
|
+
obj.basePath = message.basePath;
|
|
595
|
+
}
|
|
596
|
+
if (message.schemes?.length) {
|
|
597
|
+
obj.schemes = message.schemes.map((e) => schemeToJSON(e));
|
|
598
|
+
}
|
|
599
|
+
if (message.consumes?.length) {
|
|
600
|
+
obj.consumes = message.consumes;
|
|
601
|
+
}
|
|
602
|
+
if (message.produces?.length) {
|
|
603
|
+
obj.produces = message.produces;
|
|
604
|
+
}
|
|
605
|
+
if (message.responses) {
|
|
606
|
+
const entries = globalThis.Object.entries(message.responses);
|
|
607
|
+
if (entries.length > 0) {
|
|
608
|
+
obj.responses = {};
|
|
609
|
+
entries.forEach(([k, v]) => {
|
|
610
|
+
obj.responses[k] = exports.Response.toJSON(v);
|
|
611
|
+
});
|
|
612
|
+
}
|
|
613
|
+
}
|
|
614
|
+
if (message.securityDefinitions !== undefined) {
|
|
615
|
+
obj.securityDefinitions = exports.SecurityDefinitions.toJSON(message.securityDefinitions);
|
|
616
|
+
}
|
|
617
|
+
if (message.security?.length) {
|
|
618
|
+
obj.security = message.security.map((e) => exports.SecurityRequirement.toJSON(e));
|
|
619
|
+
}
|
|
620
|
+
if (message.tags?.length) {
|
|
621
|
+
obj.tags = message.tags.map((e) => exports.Tag.toJSON(e));
|
|
622
|
+
}
|
|
623
|
+
if (message.externalDocs !== undefined) {
|
|
624
|
+
obj.externalDocs = exports.ExternalDocumentation.toJSON(message.externalDocs);
|
|
625
|
+
}
|
|
626
|
+
if (message.extensions) {
|
|
627
|
+
const entries = globalThis.Object.entries(message.extensions);
|
|
628
|
+
if (entries.length > 0) {
|
|
629
|
+
obj.extensions = {};
|
|
630
|
+
entries.forEach(([k, v]) => {
|
|
631
|
+
obj.extensions[k] = v;
|
|
632
|
+
});
|
|
633
|
+
}
|
|
634
|
+
}
|
|
635
|
+
return obj;
|
|
636
|
+
},
|
|
637
|
+
create(base) {
|
|
638
|
+
return exports.Swagger.fromPartial(base ?? {});
|
|
639
|
+
},
|
|
640
|
+
fromPartial(object) {
|
|
641
|
+
const message = createBaseSwagger();
|
|
642
|
+
message.swagger = object.swagger ?? "";
|
|
643
|
+
message.info = (object.info !== undefined && object.info !== null) ? exports.Info.fromPartial(object.info) : undefined;
|
|
644
|
+
message.host = object.host ?? "";
|
|
645
|
+
message.basePath = object.basePath ?? "";
|
|
646
|
+
message.schemes = object.schemes?.map((e) => e) || [];
|
|
647
|
+
message.consumes = object.consumes?.map((e) => e) || [];
|
|
648
|
+
message.produces = object.produces?.map((e) => e) || [];
|
|
649
|
+
message.responses = globalThis.Object.entries(object.responses ?? {}).reduce((acc, [key, value]) => {
|
|
650
|
+
if (value !== undefined) {
|
|
651
|
+
acc[key] = exports.Response.fromPartial(value);
|
|
652
|
+
}
|
|
653
|
+
return acc;
|
|
654
|
+
}, {});
|
|
655
|
+
message.securityDefinitions = (object.securityDefinitions !== undefined && object.securityDefinitions !== null)
|
|
656
|
+
? exports.SecurityDefinitions.fromPartial(object.securityDefinitions)
|
|
657
|
+
: undefined;
|
|
658
|
+
message.security = object.security?.map((e) => exports.SecurityRequirement.fromPartial(e)) || [];
|
|
659
|
+
message.tags = object.tags?.map((e) => exports.Tag.fromPartial(e)) || [];
|
|
660
|
+
message.externalDocs = (object.externalDocs !== undefined && object.externalDocs !== null)
|
|
661
|
+
? exports.ExternalDocumentation.fromPartial(object.externalDocs)
|
|
662
|
+
: undefined;
|
|
663
|
+
message.extensions = globalThis.Object.entries(object.extensions ?? {}).reduce((acc, [key, value]) => {
|
|
664
|
+
if (value !== undefined) {
|
|
665
|
+
acc[key] = value;
|
|
666
|
+
}
|
|
667
|
+
return acc;
|
|
668
|
+
}, {});
|
|
669
|
+
return message;
|
|
670
|
+
},
|
|
671
|
+
};
|
|
672
|
+
function createBaseSwagger_ResponsesEntry() {
|
|
673
|
+
return { key: "", value: undefined };
|
|
674
|
+
}
|
|
675
|
+
exports.Swagger_ResponsesEntry = {
|
|
676
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
677
|
+
if (message.key !== "") {
|
|
678
|
+
writer.uint32(10).string(message.key);
|
|
679
|
+
}
|
|
680
|
+
if (message.value !== undefined) {
|
|
681
|
+
exports.Response.encode(message.value, writer.uint32(18).fork()).join();
|
|
682
|
+
}
|
|
683
|
+
return writer;
|
|
684
|
+
},
|
|
685
|
+
decode(input, length) {
|
|
686
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
687
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
688
|
+
if (previousRecursionDepth >= 100) {
|
|
689
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
690
|
+
}
|
|
691
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
692
|
+
try {
|
|
693
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
694
|
+
const message = createBaseSwagger_ResponsesEntry();
|
|
695
|
+
while (reader.pos < end) {
|
|
696
|
+
const tag = reader.uint32();
|
|
697
|
+
switch (tag >>> 3) {
|
|
698
|
+
case 1: {
|
|
699
|
+
if (tag !== 10) {
|
|
700
|
+
break;
|
|
701
|
+
}
|
|
702
|
+
message.key = reader.string();
|
|
703
|
+
continue;
|
|
704
|
+
}
|
|
705
|
+
case 2: {
|
|
706
|
+
if (tag !== 18) {
|
|
707
|
+
break;
|
|
708
|
+
}
|
|
709
|
+
message.value = exports.Response.decode(reader, reader.uint32());
|
|
710
|
+
continue;
|
|
711
|
+
}
|
|
712
|
+
}
|
|
713
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
714
|
+
break;
|
|
715
|
+
}
|
|
716
|
+
reader.skip(tag & 7);
|
|
717
|
+
}
|
|
718
|
+
return message;
|
|
719
|
+
}
|
|
720
|
+
finally {
|
|
721
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
722
|
+
}
|
|
723
|
+
},
|
|
724
|
+
fromJSON(object) {
|
|
725
|
+
return {
|
|
726
|
+
key: isSet(object.key) ? globalThis.String(object.key) : "",
|
|
727
|
+
value: isSet(object.value) ? exports.Response.fromJSON(object.value) : undefined,
|
|
728
|
+
};
|
|
729
|
+
},
|
|
730
|
+
toJSON(message) {
|
|
731
|
+
const obj = {};
|
|
732
|
+
if (message.key !== "") {
|
|
733
|
+
obj.key = message.key;
|
|
734
|
+
}
|
|
735
|
+
if (message.value !== undefined) {
|
|
736
|
+
obj.value = exports.Response.toJSON(message.value);
|
|
737
|
+
}
|
|
738
|
+
return obj;
|
|
739
|
+
},
|
|
740
|
+
create(base) {
|
|
741
|
+
return exports.Swagger_ResponsesEntry.fromPartial(base ?? {});
|
|
742
|
+
},
|
|
743
|
+
fromPartial(object) {
|
|
744
|
+
const message = createBaseSwagger_ResponsesEntry();
|
|
745
|
+
message.key = object.key ?? "";
|
|
746
|
+
message.value = (object.value !== undefined && object.value !== null)
|
|
747
|
+
? exports.Response.fromPartial(object.value)
|
|
748
|
+
: undefined;
|
|
749
|
+
return message;
|
|
750
|
+
},
|
|
751
|
+
};
|
|
752
|
+
function createBaseSwagger_ExtensionsEntry() {
|
|
753
|
+
return { key: "", value: undefined };
|
|
754
|
+
}
|
|
755
|
+
exports.Swagger_ExtensionsEntry = {
|
|
756
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
757
|
+
if (message.key !== "") {
|
|
758
|
+
writer.uint32(10).string(message.key);
|
|
759
|
+
}
|
|
760
|
+
if (message.value !== undefined) {
|
|
761
|
+
struct_js_1.Value.encode(struct_js_1.Value.wrap(message.value), writer.uint32(18).fork()).join();
|
|
762
|
+
}
|
|
763
|
+
return writer;
|
|
764
|
+
},
|
|
765
|
+
decode(input, length) {
|
|
766
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
767
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
768
|
+
if (previousRecursionDepth >= 100) {
|
|
769
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
770
|
+
}
|
|
771
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
772
|
+
try {
|
|
773
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
774
|
+
const message = createBaseSwagger_ExtensionsEntry();
|
|
775
|
+
while (reader.pos < end) {
|
|
776
|
+
const tag = reader.uint32();
|
|
777
|
+
switch (tag >>> 3) {
|
|
778
|
+
case 1: {
|
|
779
|
+
if (tag !== 10) {
|
|
780
|
+
break;
|
|
781
|
+
}
|
|
782
|
+
message.key = reader.string();
|
|
783
|
+
continue;
|
|
784
|
+
}
|
|
785
|
+
case 2: {
|
|
786
|
+
if (tag !== 18) {
|
|
787
|
+
break;
|
|
788
|
+
}
|
|
789
|
+
message.value = struct_js_1.Value.unwrap(struct_js_1.Value.decode(reader, reader.uint32()));
|
|
790
|
+
continue;
|
|
791
|
+
}
|
|
792
|
+
}
|
|
793
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
794
|
+
break;
|
|
795
|
+
}
|
|
796
|
+
reader.skip(tag & 7);
|
|
797
|
+
}
|
|
798
|
+
return message;
|
|
799
|
+
}
|
|
800
|
+
finally {
|
|
801
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
802
|
+
}
|
|
803
|
+
},
|
|
804
|
+
fromJSON(object) {
|
|
805
|
+
return {
|
|
806
|
+
key: isSet(object.key) ? globalThis.String(object.key) : "",
|
|
807
|
+
value: isSet(object?.value) ? object.value : undefined,
|
|
808
|
+
};
|
|
809
|
+
},
|
|
810
|
+
toJSON(message) {
|
|
811
|
+
const obj = {};
|
|
812
|
+
if (message.key !== "") {
|
|
813
|
+
obj.key = message.key;
|
|
814
|
+
}
|
|
815
|
+
if (message.value !== undefined) {
|
|
816
|
+
obj.value = message.value;
|
|
817
|
+
}
|
|
818
|
+
return obj;
|
|
819
|
+
},
|
|
820
|
+
create(base) {
|
|
821
|
+
return exports.Swagger_ExtensionsEntry.fromPartial(base ?? {});
|
|
822
|
+
},
|
|
823
|
+
fromPartial(object) {
|
|
824
|
+
const message = createBaseSwagger_ExtensionsEntry();
|
|
825
|
+
message.key = object.key ?? "";
|
|
826
|
+
message.value = object.value ?? undefined;
|
|
827
|
+
return message;
|
|
828
|
+
},
|
|
829
|
+
};
|
|
830
|
+
function createBaseOperation() {
|
|
831
|
+
return {
|
|
832
|
+
tags: [],
|
|
833
|
+
summary: "",
|
|
834
|
+
description: "",
|
|
835
|
+
externalDocs: undefined,
|
|
836
|
+
operationId: "",
|
|
837
|
+
consumes: [],
|
|
838
|
+
produces: [],
|
|
839
|
+
responses: {},
|
|
840
|
+
schemes: [],
|
|
841
|
+
deprecated: false,
|
|
842
|
+
security: [],
|
|
843
|
+
extensions: {},
|
|
844
|
+
parameters: undefined,
|
|
845
|
+
};
|
|
846
|
+
}
|
|
847
|
+
exports.Operation = {
|
|
848
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
849
|
+
for (const v of message.tags) {
|
|
850
|
+
writer.uint32(10).string(v);
|
|
851
|
+
}
|
|
852
|
+
if (message.summary !== "") {
|
|
853
|
+
writer.uint32(18).string(message.summary);
|
|
854
|
+
}
|
|
855
|
+
if (message.description !== "") {
|
|
856
|
+
writer.uint32(26).string(message.description);
|
|
857
|
+
}
|
|
858
|
+
if (message.externalDocs !== undefined) {
|
|
859
|
+
exports.ExternalDocumentation.encode(message.externalDocs, writer.uint32(34).fork()).join();
|
|
860
|
+
}
|
|
861
|
+
if (message.operationId !== "") {
|
|
862
|
+
writer.uint32(42).string(message.operationId);
|
|
863
|
+
}
|
|
864
|
+
for (const v of message.consumes) {
|
|
865
|
+
writer.uint32(50).string(v);
|
|
866
|
+
}
|
|
867
|
+
for (const v of message.produces) {
|
|
868
|
+
writer.uint32(58).string(v);
|
|
869
|
+
}
|
|
870
|
+
globalThis.Object.entries(message.responses).forEach(([key, value]) => {
|
|
871
|
+
exports.Operation_ResponsesEntry.encode({ key: key, value }, writer.uint32(74).fork()).join();
|
|
872
|
+
});
|
|
873
|
+
writer.uint32(82).fork();
|
|
874
|
+
for (const v of message.schemes) {
|
|
875
|
+
writer.int32(v);
|
|
876
|
+
}
|
|
877
|
+
writer.join();
|
|
878
|
+
if (message.deprecated !== false) {
|
|
879
|
+
writer.uint32(88).bool(message.deprecated);
|
|
880
|
+
}
|
|
881
|
+
for (const v of message.security) {
|
|
882
|
+
exports.SecurityRequirement.encode(v, writer.uint32(98).fork()).join();
|
|
883
|
+
}
|
|
884
|
+
globalThis.Object.entries(message.extensions).forEach(([key, value]) => {
|
|
885
|
+
if (value !== undefined) {
|
|
886
|
+
exports.Operation_ExtensionsEntry.encode({ key: key, value }, writer.uint32(106).fork()).join();
|
|
887
|
+
}
|
|
888
|
+
});
|
|
889
|
+
if (message.parameters !== undefined) {
|
|
890
|
+
exports.Parameters.encode(message.parameters, writer.uint32(114).fork()).join();
|
|
891
|
+
}
|
|
892
|
+
return writer;
|
|
893
|
+
},
|
|
894
|
+
decode(input, length) {
|
|
895
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
896
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
897
|
+
if (previousRecursionDepth >= 100) {
|
|
898
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
899
|
+
}
|
|
900
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
901
|
+
try {
|
|
902
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
903
|
+
const message = createBaseOperation();
|
|
904
|
+
while (reader.pos < end) {
|
|
905
|
+
const tag = reader.uint32();
|
|
906
|
+
switch (tag >>> 3) {
|
|
907
|
+
case 1: {
|
|
908
|
+
if (tag !== 10) {
|
|
909
|
+
break;
|
|
910
|
+
}
|
|
911
|
+
message.tags.push(reader.string());
|
|
912
|
+
continue;
|
|
913
|
+
}
|
|
914
|
+
case 2: {
|
|
915
|
+
if (tag !== 18) {
|
|
916
|
+
break;
|
|
917
|
+
}
|
|
918
|
+
message.summary = reader.string();
|
|
919
|
+
continue;
|
|
920
|
+
}
|
|
921
|
+
case 3: {
|
|
922
|
+
if (tag !== 26) {
|
|
923
|
+
break;
|
|
924
|
+
}
|
|
925
|
+
message.description = reader.string();
|
|
926
|
+
continue;
|
|
927
|
+
}
|
|
928
|
+
case 4: {
|
|
929
|
+
if (tag !== 34) {
|
|
930
|
+
break;
|
|
931
|
+
}
|
|
932
|
+
message.externalDocs = exports.ExternalDocumentation.decode(reader, reader.uint32());
|
|
933
|
+
continue;
|
|
934
|
+
}
|
|
935
|
+
case 5: {
|
|
936
|
+
if (tag !== 42) {
|
|
937
|
+
break;
|
|
938
|
+
}
|
|
939
|
+
message.operationId = reader.string();
|
|
940
|
+
continue;
|
|
941
|
+
}
|
|
942
|
+
case 6: {
|
|
943
|
+
if (tag !== 50) {
|
|
944
|
+
break;
|
|
945
|
+
}
|
|
946
|
+
message.consumes.push(reader.string());
|
|
947
|
+
continue;
|
|
948
|
+
}
|
|
949
|
+
case 7: {
|
|
950
|
+
if (tag !== 58) {
|
|
951
|
+
break;
|
|
952
|
+
}
|
|
953
|
+
message.produces.push(reader.string());
|
|
954
|
+
continue;
|
|
955
|
+
}
|
|
956
|
+
case 9: {
|
|
957
|
+
if (tag !== 74) {
|
|
958
|
+
break;
|
|
959
|
+
}
|
|
960
|
+
const entry9 = exports.Operation_ResponsesEntry.decode(reader, reader.uint32());
|
|
961
|
+
if (entry9.value !== undefined) {
|
|
962
|
+
message.responses[entry9.key] = entry9.value;
|
|
963
|
+
}
|
|
964
|
+
continue;
|
|
965
|
+
}
|
|
966
|
+
case 10: {
|
|
967
|
+
if (tag === 80) {
|
|
968
|
+
message.schemes.push(reader.int32());
|
|
969
|
+
continue;
|
|
970
|
+
}
|
|
971
|
+
if (tag === 82) {
|
|
972
|
+
const end2 = reader.uint32() + reader.pos;
|
|
973
|
+
while (reader.pos < end2) {
|
|
974
|
+
message.schemes.push(reader.int32());
|
|
975
|
+
}
|
|
976
|
+
continue;
|
|
977
|
+
}
|
|
978
|
+
break;
|
|
979
|
+
}
|
|
980
|
+
case 11: {
|
|
981
|
+
if (tag !== 88) {
|
|
982
|
+
break;
|
|
983
|
+
}
|
|
984
|
+
message.deprecated = reader.bool();
|
|
985
|
+
continue;
|
|
986
|
+
}
|
|
987
|
+
case 12: {
|
|
988
|
+
if (tag !== 98) {
|
|
989
|
+
break;
|
|
990
|
+
}
|
|
991
|
+
message.security.push(exports.SecurityRequirement.decode(reader, reader.uint32()));
|
|
992
|
+
continue;
|
|
993
|
+
}
|
|
994
|
+
case 13: {
|
|
995
|
+
if (tag !== 106) {
|
|
996
|
+
break;
|
|
997
|
+
}
|
|
998
|
+
const entry13 = exports.Operation_ExtensionsEntry.decode(reader, reader.uint32());
|
|
999
|
+
if (entry13.value !== undefined) {
|
|
1000
|
+
message.extensions[entry13.key] = entry13.value;
|
|
1001
|
+
}
|
|
1002
|
+
continue;
|
|
1003
|
+
}
|
|
1004
|
+
case 14: {
|
|
1005
|
+
if (tag !== 114) {
|
|
1006
|
+
break;
|
|
1007
|
+
}
|
|
1008
|
+
message.parameters = exports.Parameters.decode(reader, reader.uint32());
|
|
1009
|
+
continue;
|
|
1010
|
+
}
|
|
1011
|
+
}
|
|
1012
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1013
|
+
break;
|
|
1014
|
+
}
|
|
1015
|
+
reader.skip(tag & 7);
|
|
1016
|
+
}
|
|
1017
|
+
return message;
|
|
1018
|
+
}
|
|
1019
|
+
finally {
|
|
1020
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
1021
|
+
}
|
|
1022
|
+
},
|
|
1023
|
+
fromJSON(object) {
|
|
1024
|
+
return {
|
|
1025
|
+
tags: globalThis.Array.isArray(object?.tags) ? object.tags.map((e) => globalThis.String(e)) : [],
|
|
1026
|
+
summary: isSet(object.summary) ? globalThis.String(object.summary) : "",
|
|
1027
|
+
description: isSet(object.description) ? globalThis.String(object.description) : "",
|
|
1028
|
+
externalDocs: isSet(object.externalDocs)
|
|
1029
|
+
? exports.ExternalDocumentation.fromJSON(object.externalDocs)
|
|
1030
|
+
: isSet(object.external_docs)
|
|
1031
|
+
? exports.ExternalDocumentation.fromJSON(object.external_docs)
|
|
1032
|
+
: undefined,
|
|
1033
|
+
operationId: isSet(object.operationId)
|
|
1034
|
+
? globalThis.String(object.operationId)
|
|
1035
|
+
: isSet(object.operation_id)
|
|
1036
|
+
? globalThis.String(object.operation_id)
|
|
1037
|
+
: "",
|
|
1038
|
+
consumes: globalThis.Array.isArray(object?.consumes) ? object.consumes.map((e) => globalThis.String(e)) : [],
|
|
1039
|
+
produces: globalThis.Array.isArray(object?.produces) ? object.produces.map((e) => globalThis.String(e)) : [],
|
|
1040
|
+
responses: isObject(object.responses)
|
|
1041
|
+
? globalThis.Object.entries(object.responses).reduce((acc, [key, value]) => {
|
|
1042
|
+
globalThis.Object.defineProperty(acc, key, {
|
|
1043
|
+
value: exports.Response.fromJSON(value),
|
|
1044
|
+
enumerable: true,
|
|
1045
|
+
configurable: true,
|
|
1046
|
+
writable: true,
|
|
1047
|
+
});
|
|
1048
|
+
return acc;
|
|
1049
|
+
}, {})
|
|
1050
|
+
: {},
|
|
1051
|
+
schemes: globalThis.Array.isArray(object?.schemes) ? object.schemes.map((e) => schemeFromJSON(e)) : [],
|
|
1052
|
+
deprecated: isSet(object.deprecated) ? globalThis.Boolean(object.deprecated) : false,
|
|
1053
|
+
security: globalThis.Array.isArray(object?.security)
|
|
1054
|
+
? object.security.map((e) => exports.SecurityRequirement.fromJSON(e))
|
|
1055
|
+
: [],
|
|
1056
|
+
extensions: isObject(object.extensions)
|
|
1057
|
+
? globalThis.Object.entries(object.extensions).reduce((acc, [key, value]) => {
|
|
1058
|
+
globalThis.Object.defineProperty(acc, key, {
|
|
1059
|
+
value: value,
|
|
1060
|
+
enumerable: true,
|
|
1061
|
+
configurable: true,
|
|
1062
|
+
writable: true,
|
|
1063
|
+
});
|
|
1064
|
+
return acc;
|
|
1065
|
+
}, {})
|
|
1066
|
+
: {},
|
|
1067
|
+
parameters: isSet(object.parameters) ? exports.Parameters.fromJSON(object.parameters) : undefined,
|
|
1068
|
+
};
|
|
1069
|
+
},
|
|
1070
|
+
toJSON(message) {
|
|
1071
|
+
const obj = {};
|
|
1072
|
+
if (message.tags?.length) {
|
|
1073
|
+
obj.tags = message.tags;
|
|
1074
|
+
}
|
|
1075
|
+
if (message.summary !== "") {
|
|
1076
|
+
obj.summary = message.summary;
|
|
1077
|
+
}
|
|
1078
|
+
if (message.description !== "") {
|
|
1079
|
+
obj.description = message.description;
|
|
1080
|
+
}
|
|
1081
|
+
if (message.externalDocs !== undefined) {
|
|
1082
|
+
obj.externalDocs = exports.ExternalDocumentation.toJSON(message.externalDocs);
|
|
1083
|
+
}
|
|
1084
|
+
if (message.operationId !== "") {
|
|
1085
|
+
obj.operationId = message.operationId;
|
|
1086
|
+
}
|
|
1087
|
+
if (message.consumes?.length) {
|
|
1088
|
+
obj.consumes = message.consumes;
|
|
1089
|
+
}
|
|
1090
|
+
if (message.produces?.length) {
|
|
1091
|
+
obj.produces = message.produces;
|
|
1092
|
+
}
|
|
1093
|
+
if (message.responses) {
|
|
1094
|
+
const entries = globalThis.Object.entries(message.responses);
|
|
1095
|
+
if (entries.length > 0) {
|
|
1096
|
+
obj.responses = {};
|
|
1097
|
+
entries.forEach(([k, v]) => {
|
|
1098
|
+
obj.responses[k] = exports.Response.toJSON(v);
|
|
1099
|
+
});
|
|
1100
|
+
}
|
|
1101
|
+
}
|
|
1102
|
+
if (message.schemes?.length) {
|
|
1103
|
+
obj.schemes = message.schemes.map((e) => schemeToJSON(e));
|
|
1104
|
+
}
|
|
1105
|
+
if (message.deprecated !== false) {
|
|
1106
|
+
obj.deprecated = message.deprecated;
|
|
1107
|
+
}
|
|
1108
|
+
if (message.security?.length) {
|
|
1109
|
+
obj.security = message.security.map((e) => exports.SecurityRequirement.toJSON(e));
|
|
1110
|
+
}
|
|
1111
|
+
if (message.extensions) {
|
|
1112
|
+
const entries = globalThis.Object.entries(message.extensions);
|
|
1113
|
+
if (entries.length > 0) {
|
|
1114
|
+
obj.extensions = {};
|
|
1115
|
+
entries.forEach(([k, v]) => {
|
|
1116
|
+
obj.extensions[k] = v;
|
|
1117
|
+
});
|
|
1118
|
+
}
|
|
1119
|
+
}
|
|
1120
|
+
if (message.parameters !== undefined) {
|
|
1121
|
+
obj.parameters = exports.Parameters.toJSON(message.parameters);
|
|
1122
|
+
}
|
|
1123
|
+
return obj;
|
|
1124
|
+
},
|
|
1125
|
+
create(base) {
|
|
1126
|
+
return exports.Operation.fromPartial(base ?? {});
|
|
1127
|
+
},
|
|
1128
|
+
fromPartial(object) {
|
|
1129
|
+
const message = createBaseOperation();
|
|
1130
|
+
message.tags = object.tags?.map((e) => e) || [];
|
|
1131
|
+
message.summary = object.summary ?? "";
|
|
1132
|
+
message.description = object.description ?? "";
|
|
1133
|
+
message.externalDocs = (object.externalDocs !== undefined && object.externalDocs !== null)
|
|
1134
|
+
? exports.ExternalDocumentation.fromPartial(object.externalDocs)
|
|
1135
|
+
: undefined;
|
|
1136
|
+
message.operationId = object.operationId ?? "";
|
|
1137
|
+
message.consumes = object.consumes?.map((e) => e) || [];
|
|
1138
|
+
message.produces = object.produces?.map((e) => e) || [];
|
|
1139
|
+
message.responses = globalThis.Object.entries(object.responses ?? {}).reduce((acc, [key, value]) => {
|
|
1140
|
+
if (value !== undefined) {
|
|
1141
|
+
acc[key] = exports.Response.fromPartial(value);
|
|
1142
|
+
}
|
|
1143
|
+
return acc;
|
|
1144
|
+
}, {});
|
|
1145
|
+
message.schemes = object.schemes?.map((e) => e) || [];
|
|
1146
|
+
message.deprecated = object.deprecated ?? false;
|
|
1147
|
+
message.security = object.security?.map((e) => exports.SecurityRequirement.fromPartial(e)) || [];
|
|
1148
|
+
message.extensions = globalThis.Object.entries(object.extensions ?? {}).reduce((acc, [key, value]) => {
|
|
1149
|
+
if (value !== undefined) {
|
|
1150
|
+
acc[key] = value;
|
|
1151
|
+
}
|
|
1152
|
+
return acc;
|
|
1153
|
+
}, {});
|
|
1154
|
+
message.parameters = (object.parameters !== undefined && object.parameters !== null)
|
|
1155
|
+
? exports.Parameters.fromPartial(object.parameters)
|
|
1156
|
+
: undefined;
|
|
1157
|
+
return message;
|
|
1158
|
+
},
|
|
1159
|
+
};
|
|
1160
|
+
function createBaseOperation_ResponsesEntry() {
|
|
1161
|
+
return { key: "", value: undefined };
|
|
1162
|
+
}
|
|
1163
|
+
exports.Operation_ResponsesEntry = {
|
|
1164
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1165
|
+
if (message.key !== "") {
|
|
1166
|
+
writer.uint32(10).string(message.key);
|
|
1167
|
+
}
|
|
1168
|
+
if (message.value !== undefined) {
|
|
1169
|
+
exports.Response.encode(message.value, writer.uint32(18).fork()).join();
|
|
1170
|
+
}
|
|
1171
|
+
return writer;
|
|
1172
|
+
},
|
|
1173
|
+
decode(input, length) {
|
|
1174
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1175
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
1176
|
+
if (previousRecursionDepth >= 100) {
|
|
1177
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
1178
|
+
}
|
|
1179
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
1180
|
+
try {
|
|
1181
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1182
|
+
const message = createBaseOperation_ResponsesEntry();
|
|
1183
|
+
while (reader.pos < end) {
|
|
1184
|
+
const tag = reader.uint32();
|
|
1185
|
+
switch (tag >>> 3) {
|
|
1186
|
+
case 1: {
|
|
1187
|
+
if (tag !== 10) {
|
|
1188
|
+
break;
|
|
1189
|
+
}
|
|
1190
|
+
message.key = reader.string();
|
|
1191
|
+
continue;
|
|
1192
|
+
}
|
|
1193
|
+
case 2: {
|
|
1194
|
+
if (tag !== 18) {
|
|
1195
|
+
break;
|
|
1196
|
+
}
|
|
1197
|
+
message.value = exports.Response.decode(reader, reader.uint32());
|
|
1198
|
+
continue;
|
|
1199
|
+
}
|
|
1200
|
+
}
|
|
1201
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1202
|
+
break;
|
|
1203
|
+
}
|
|
1204
|
+
reader.skip(tag & 7);
|
|
1205
|
+
}
|
|
1206
|
+
return message;
|
|
1207
|
+
}
|
|
1208
|
+
finally {
|
|
1209
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
1210
|
+
}
|
|
1211
|
+
},
|
|
1212
|
+
fromJSON(object) {
|
|
1213
|
+
return {
|
|
1214
|
+
key: isSet(object.key) ? globalThis.String(object.key) : "",
|
|
1215
|
+
value: isSet(object.value) ? exports.Response.fromJSON(object.value) : undefined,
|
|
1216
|
+
};
|
|
1217
|
+
},
|
|
1218
|
+
toJSON(message) {
|
|
1219
|
+
const obj = {};
|
|
1220
|
+
if (message.key !== "") {
|
|
1221
|
+
obj.key = message.key;
|
|
1222
|
+
}
|
|
1223
|
+
if (message.value !== undefined) {
|
|
1224
|
+
obj.value = exports.Response.toJSON(message.value);
|
|
1225
|
+
}
|
|
1226
|
+
return obj;
|
|
1227
|
+
},
|
|
1228
|
+
create(base) {
|
|
1229
|
+
return exports.Operation_ResponsesEntry.fromPartial(base ?? {});
|
|
1230
|
+
},
|
|
1231
|
+
fromPartial(object) {
|
|
1232
|
+
const message = createBaseOperation_ResponsesEntry();
|
|
1233
|
+
message.key = object.key ?? "";
|
|
1234
|
+
message.value = (object.value !== undefined && object.value !== null)
|
|
1235
|
+
? exports.Response.fromPartial(object.value)
|
|
1236
|
+
: undefined;
|
|
1237
|
+
return message;
|
|
1238
|
+
},
|
|
1239
|
+
};
|
|
1240
|
+
function createBaseOperation_ExtensionsEntry() {
|
|
1241
|
+
return { key: "", value: undefined };
|
|
1242
|
+
}
|
|
1243
|
+
exports.Operation_ExtensionsEntry = {
|
|
1244
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1245
|
+
if (message.key !== "") {
|
|
1246
|
+
writer.uint32(10).string(message.key);
|
|
1247
|
+
}
|
|
1248
|
+
if (message.value !== undefined) {
|
|
1249
|
+
struct_js_1.Value.encode(struct_js_1.Value.wrap(message.value), writer.uint32(18).fork()).join();
|
|
1250
|
+
}
|
|
1251
|
+
return writer;
|
|
1252
|
+
},
|
|
1253
|
+
decode(input, length) {
|
|
1254
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1255
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
1256
|
+
if (previousRecursionDepth >= 100) {
|
|
1257
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
1258
|
+
}
|
|
1259
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
1260
|
+
try {
|
|
1261
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1262
|
+
const message = createBaseOperation_ExtensionsEntry();
|
|
1263
|
+
while (reader.pos < end) {
|
|
1264
|
+
const tag = reader.uint32();
|
|
1265
|
+
switch (tag >>> 3) {
|
|
1266
|
+
case 1: {
|
|
1267
|
+
if (tag !== 10) {
|
|
1268
|
+
break;
|
|
1269
|
+
}
|
|
1270
|
+
message.key = reader.string();
|
|
1271
|
+
continue;
|
|
1272
|
+
}
|
|
1273
|
+
case 2: {
|
|
1274
|
+
if (tag !== 18) {
|
|
1275
|
+
break;
|
|
1276
|
+
}
|
|
1277
|
+
message.value = struct_js_1.Value.unwrap(struct_js_1.Value.decode(reader, reader.uint32()));
|
|
1278
|
+
continue;
|
|
1279
|
+
}
|
|
1280
|
+
}
|
|
1281
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1282
|
+
break;
|
|
1283
|
+
}
|
|
1284
|
+
reader.skip(tag & 7);
|
|
1285
|
+
}
|
|
1286
|
+
return message;
|
|
1287
|
+
}
|
|
1288
|
+
finally {
|
|
1289
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
1290
|
+
}
|
|
1291
|
+
},
|
|
1292
|
+
fromJSON(object) {
|
|
1293
|
+
return {
|
|
1294
|
+
key: isSet(object.key) ? globalThis.String(object.key) : "",
|
|
1295
|
+
value: isSet(object?.value) ? object.value : undefined,
|
|
1296
|
+
};
|
|
1297
|
+
},
|
|
1298
|
+
toJSON(message) {
|
|
1299
|
+
const obj = {};
|
|
1300
|
+
if (message.key !== "") {
|
|
1301
|
+
obj.key = message.key;
|
|
1302
|
+
}
|
|
1303
|
+
if (message.value !== undefined) {
|
|
1304
|
+
obj.value = message.value;
|
|
1305
|
+
}
|
|
1306
|
+
return obj;
|
|
1307
|
+
},
|
|
1308
|
+
create(base) {
|
|
1309
|
+
return exports.Operation_ExtensionsEntry.fromPartial(base ?? {});
|
|
1310
|
+
},
|
|
1311
|
+
fromPartial(object) {
|
|
1312
|
+
const message = createBaseOperation_ExtensionsEntry();
|
|
1313
|
+
message.key = object.key ?? "";
|
|
1314
|
+
message.value = object.value ?? undefined;
|
|
1315
|
+
return message;
|
|
1316
|
+
},
|
|
1317
|
+
};
|
|
1318
|
+
function createBaseParameters() {
|
|
1319
|
+
return { headers: [] };
|
|
1320
|
+
}
|
|
1321
|
+
exports.Parameters = {
|
|
1322
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1323
|
+
for (const v of message.headers) {
|
|
1324
|
+
exports.HeaderParameter.encode(v, writer.uint32(10).fork()).join();
|
|
1325
|
+
}
|
|
1326
|
+
return writer;
|
|
1327
|
+
},
|
|
1328
|
+
decode(input, length) {
|
|
1329
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1330
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
1331
|
+
if (previousRecursionDepth >= 100) {
|
|
1332
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
1333
|
+
}
|
|
1334
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
1335
|
+
try {
|
|
1336
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1337
|
+
const message = createBaseParameters();
|
|
1338
|
+
while (reader.pos < end) {
|
|
1339
|
+
const tag = reader.uint32();
|
|
1340
|
+
switch (tag >>> 3) {
|
|
1341
|
+
case 1: {
|
|
1342
|
+
if (tag !== 10) {
|
|
1343
|
+
break;
|
|
1344
|
+
}
|
|
1345
|
+
message.headers.push(exports.HeaderParameter.decode(reader, reader.uint32()));
|
|
1346
|
+
continue;
|
|
1347
|
+
}
|
|
1348
|
+
}
|
|
1349
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1350
|
+
break;
|
|
1351
|
+
}
|
|
1352
|
+
reader.skip(tag & 7);
|
|
1353
|
+
}
|
|
1354
|
+
return message;
|
|
1355
|
+
}
|
|
1356
|
+
finally {
|
|
1357
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
1358
|
+
}
|
|
1359
|
+
},
|
|
1360
|
+
fromJSON(object) {
|
|
1361
|
+
return {
|
|
1362
|
+
headers: globalThis.Array.isArray(object?.headers)
|
|
1363
|
+
? object.headers.map((e) => exports.HeaderParameter.fromJSON(e))
|
|
1364
|
+
: [],
|
|
1365
|
+
};
|
|
1366
|
+
},
|
|
1367
|
+
toJSON(message) {
|
|
1368
|
+
const obj = {};
|
|
1369
|
+
if (message.headers?.length) {
|
|
1370
|
+
obj.headers = message.headers.map((e) => exports.HeaderParameter.toJSON(e));
|
|
1371
|
+
}
|
|
1372
|
+
return obj;
|
|
1373
|
+
},
|
|
1374
|
+
create(base) {
|
|
1375
|
+
return exports.Parameters.fromPartial(base ?? {});
|
|
1376
|
+
},
|
|
1377
|
+
fromPartial(object) {
|
|
1378
|
+
const message = createBaseParameters();
|
|
1379
|
+
message.headers = object.headers?.map((e) => exports.HeaderParameter.fromPartial(e)) || [];
|
|
1380
|
+
return message;
|
|
1381
|
+
},
|
|
1382
|
+
};
|
|
1383
|
+
function createBaseHeaderParameter() {
|
|
1384
|
+
return { name: "", description: "", type: 0, format: "", required: false };
|
|
1385
|
+
}
|
|
1386
|
+
exports.HeaderParameter = {
|
|
1387
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1388
|
+
if (message.name !== "") {
|
|
1389
|
+
writer.uint32(10).string(message.name);
|
|
1390
|
+
}
|
|
1391
|
+
if (message.description !== "") {
|
|
1392
|
+
writer.uint32(18).string(message.description);
|
|
1393
|
+
}
|
|
1394
|
+
if (message.type !== 0) {
|
|
1395
|
+
writer.uint32(24).int32(message.type);
|
|
1396
|
+
}
|
|
1397
|
+
if (message.format !== "") {
|
|
1398
|
+
writer.uint32(34).string(message.format);
|
|
1399
|
+
}
|
|
1400
|
+
if (message.required !== false) {
|
|
1401
|
+
writer.uint32(40).bool(message.required);
|
|
1402
|
+
}
|
|
1403
|
+
return writer;
|
|
1404
|
+
},
|
|
1405
|
+
decode(input, length) {
|
|
1406
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1407
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
1408
|
+
if (previousRecursionDepth >= 100) {
|
|
1409
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
1410
|
+
}
|
|
1411
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
1412
|
+
try {
|
|
1413
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1414
|
+
const message = createBaseHeaderParameter();
|
|
1415
|
+
while (reader.pos < end) {
|
|
1416
|
+
const tag = reader.uint32();
|
|
1417
|
+
switch (tag >>> 3) {
|
|
1418
|
+
case 1: {
|
|
1419
|
+
if (tag !== 10) {
|
|
1420
|
+
break;
|
|
1421
|
+
}
|
|
1422
|
+
message.name = reader.string();
|
|
1423
|
+
continue;
|
|
1424
|
+
}
|
|
1425
|
+
case 2: {
|
|
1426
|
+
if (tag !== 18) {
|
|
1427
|
+
break;
|
|
1428
|
+
}
|
|
1429
|
+
message.description = reader.string();
|
|
1430
|
+
continue;
|
|
1431
|
+
}
|
|
1432
|
+
case 3: {
|
|
1433
|
+
if (tag !== 24) {
|
|
1434
|
+
break;
|
|
1435
|
+
}
|
|
1436
|
+
message.type = reader.int32();
|
|
1437
|
+
continue;
|
|
1438
|
+
}
|
|
1439
|
+
case 4: {
|
|
1440
|
+
if (tag !== 34) {
|
|
1441
|
+
break;
|
|
1442
|
+
}
|
|
1443
|
+
message.format = reader.string();
|
|
1444
|
+
continue;
|
|
1445
|
+
}
|
|
1446
|
+
case 5: {
|
|
1447
|
+
if (tag !== 40) {
|
|
1448
|
+
break;
|
|
1449
|
+
}
|
|
1450
|
+
message.required = reader.bool();
|
|
1451
|
+
continue;
|
|
1452
|
+
}
|
|
1453
|
+
}
|
|
1454
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1455
|
+
break;
|
|
1456
|
+
}
|
|
1457
|
+
reader.skip(tag & 7);
|
|
1458
|
+
}
|
|
1459
|
+
return message;
|
|
1460
|
+
}
|
|
1461
|
+
finally {
|
|
1462
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
1463
|
+
}
|
|
1464
|
+
},
|
|
1465
|
+
fromJSON(object) {
|
|
1466
|
+
return {
|
|
1467
|
+
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
1468
|
+
description: isSet(object.description) ? globalThis.String(object.description) : "",
|
|
1469
|
+
type: isSet(object.type) ? headerParameter_TypeFromJSON(object.type) : 0,
|
|
1470
|
+
format: isSet(object.format) ? globalThis.String(object.format) : "",
|
|
1471
|
+
required: isSet(object.required) ? globalThis.Boolean(object.required) : false,
|
|
1472
|
+
};
|
|
1473
|
+
},
|
|
1474
|
+
toJSON(message) {
|
|
1475
|
+
const obj = {};
|
|
1476
|
+
if (message.name !== "") {
|
|
1477
|
+
obj.name = message.name;
|
|
1478
|
+
}
|
|
1479
|
+
if (message.description !== "") {
|
|
1480
|
+
obj.description = message.description;
|
|
1481
|
+
}
|
|
1482
|
+
if (message.type !== 0) {
|
|
1483
|
+
obj.type = headerParameter_TypeToJSON(message.type);
|
|
1484
|
+
}
|
|
1485
|
+
if (message.format !== "") {
|
|
1486
|
+
obj.format = message.format;
|
|
1487
|
+
}
|
|
1488
|
+
if (message.required !== false) {
|
|
1489
|
+
obj.required = message.required;
|
|
1490
|
+
}
|
|
1491
|
+
return obj;
|
|
1492
|
+
},
|
|
1493
|
+
create(base) {
|
|
1494
|
+
return exports.HeaderParameter.fromPartial(base ?? {});
|
|
1495
|
+
},
|
|
1496
|
+
fromPartial(object) {
|
|
1497
|
+
const message = createBaseHeaderParameter();
|
|
1498
|
+
message.name = object.name ?? "";
|
|
1499
|
+
message.description = object.description ?? "";
|
|
1500
|
+
message.type = object.type ?? 0;
|
|
1501
|
+
message.format = object.format ?? "";
|
|
1502
|
+
message.required = object.required ?? false;
|
|
1503
|
+
return message;
|
|
1504
|
+
},
|
|
1505
|
+
};
|
|
1506
|
+
function createBaseHeader() {
|
|
1507
|
+
return { description: "", type: "", format: "", default: "", pattern: "" };
|
|
1508
|
+
}
|
|
1509
|
+
exports.Header = {
|
|
1510
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1511
|
+
if (message.description !== "") {
|
|
1512
|
+
writer.uint32(10).string(message.description);
|
|
1513
|
+
}
|
|
1514
|
+
if (message.type !== "") {
|
|
1515
|
+
writer.uint32(18).string(message.type);
|
|
1516
|
+
}
|
|
1517
|
+
if (message.format !== "") {
|
|
1518
|
+
writer.uint32(26).string(message.format);
|
|
1519
|
+
}
|
|
1520
|
+
if (message.default !== "") {
|
|
1521
|
+
writer.uint32(50).string(message.default);
|
|
1522
|
+
}
|
|
1523
|
+
if (message.pattern !== "") {
|
|
1524
|
+
writer.uint32(106).string(message.pattern);
|
|
1525
|
+
}
|
|
1526
|
+
return writer;
|
|
1527
|
+
},
|
|
1528
|
+
decode(input, length) {
|
|
1529
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1530
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
1531
|
+
if (previousRecursionDepth >= 100) {
|
|
1532
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
1533
|
+
}
|
|
1534
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
1535
|
+
try {
|
|
1536
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1537
|
+
const message = createBaseHeader();
|
|
1538
|
+
while (reader.pos < end) {
|
|
1539
|
+
const tag = reader.uint32();
|
|
1540
|
+
switch (tag >>> 3) {
|
|
1541
|
+
case 1: {
|
|
1542
|
+
if (tag !== 10) {
|
|
1543
|
+
break;
|
|
1544
|
+
}
|
|
1545
|
+
message.description = reader.string();
|
|
1546
|
+
continue;
|
|
1547
|
+
}
|
|
1548
|
+
case 2: {
|
|
1549
|
+
if (tag !== 18) {
|
|
1550
|
+
break;
|
|
1551
|
+
}
|
|
1552
|
+
message.type = reader.string();
|
|
1553
|
+
continue;
|
|
1554
|
+
}
|
|
1555
|
+
case 3: {
|
|
1556
|
+
if (tag !== 26) {
|
|
1557
|
+
break;
|
|
1558
|
+
}
|
|
1559
|
+
message.format = reader.string();
|
|
1560
|
+
continue;
|
|
1561
|
+
}
|
|
1562
|
+
case 6: {
|
|
1563
|
+
if (tag !== 50) {
|
|
1564
|
+
break;
|
|
1565
|
+
}
|
|
1566
|
+
message.default = reader.string();
|
|
1567
|
+
continue;
|
|
1568
|
+
}
|
|
1569
|
+
case 13: {
|
|
1570
|
+
if (tag !== 106) {
|
|
1571
|
+
break;
|
|
1572
|
+
}
|
|
1573
|
+
message.pattern = reader.string();
|
|
1574
|
+
continue;
|
|
1575
|
+
}
|
|
1576
|
+
}
|
|
1577
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1578
|
+
break;
|
|
1579
|
+
}
|
|
1580
|
+
reader.skip(tag & 7);
|
|
1581
|
+
}
|
|
1582
|
+
return message;
|
|
1583
|
+
}
|
|
1584
|
+
finally {
|
|
1585
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
1586
|
+
}
|
|
1587
|
+
},
|
|
1588
|
+
fromJSON(object) {
|
|
1589
|
+
return {
|
|
1590
|
+
description: isSet(object.description) ? globalThis.String(object.description) : "",
|
|
1591
|
+
type: isSet(object.type) ? globalThis.String(object.type) : "",
|
|
1592
|
+
format: isSet(object.format) ? globalThis.String(object.format) : "",
|
|
1593
|
+
default: isSet(object.default) ? globalThis.String(object.default) : "",
|
|
1594
|
+
pattern: isSet(object.pattern) ? globalThis.String(object.pattern) : "",
|
|
1595
|
+
};
|
|
1596
|
+
},
|
|
1597
|
+
toJSON(message) {
|
|
1598
|
+
const obj = {};
|
|
1599
|
+
if (message.description !== "") {
|
|
1600
|
+
obj.description = message.description;
|
|
1601
|
+
}
|
|
1602
|
+
if (message.type !== "") {
|
|
1603
|
+
obj.type = message.type;
|
|
1604
|
+
}
|
|
1605
|
+
if (message.format !== "") {
|
|
1606
|
+
obj.format = message.format;
|
|
1607
|
+
}
|
|
1608
|
+
if (message.default !== "") {
|
|
1609
|
+
obj.default = message.default;
|
|
1610
|
+
}
|
|
1611
|
+
if (message.pattern !== "") {
|
|
1612
|
+
obj.pattern = message.pattern;
|
|
1613
|
+
}
|
|
1614
|
+
return obj;
|
|
1615
|
+
},
|
|
1616
|
+
create(base) {
|
|
1617
|
+
return exports.Header.fromPartial(base ?? {});
|
|
1618
|
+
},
|
|
1619
|
+
fromPartial(object) {
|
|
1620
|
+
const message = createBaseHeader();
|
|
1621
|
+
message.description = object.description ?? "";
|
|
1622
|
+
message.type = object.type ?? "";
|
|
1623
|
+
message.format = object.format ?? "";
|
|
1624
|
+
message.default = object.default ?? "";
|
|
1625
|
+
message.pattern = object.pattern ?? "";
|
|
1626
|
+
return message;
|
|
1627
|
+
},
|
|
1628
|
+
};
|
|
1629
|
+
function createBaseResponse() {
|
|
1630
|
+
return { description: "", schema: undefined, headers: {}, examples: {}, extensions: {} };
|
|
1631
|
+
}
|
|
1632
|
+
exports.Response = {
|
|
1633
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1634
|
+
if (message.description !== "") {
|
|
1635
|
+
writer.uint32(10).string(message.description);
|
|
1636
|
+
}
|
|
1637
|
+
if (message.schema !== undefined) {
|
|
1638
|
+
exports.Schema.encode(message.schema, writer.uint32(18).fork()).join();
|
|
1639
|
+
}
|
|
1640
|
+
globalThis.Object.entries(message.headers).forEach(([key, value]) => {
|
|
1641
|
+
exports.Response_HeadersEntry.encode({ key: key, value }, writer.uint32(26).fork()).join();
|
|
1642
|
+
});
|
|
1643
|
+
globalThis.Object.entries(message.examples).forEach(([key, value]) => {
|
|
1644
|
+
exports.Response_ExamplesEntry.encode({ key: key, value }, writer.uint32(34).fork()).join();
|
|
1645
|
+
});
|
|
1646
|
+
globalThis.Object.entries(message.extensions).forEach(([key, value]) => {
|
|
1647
|
+
if (value !== undefined) {
|
|
1648
|
+
exports.Response_ExtensionsEntry.encode({ key: key, value }, writer.uint32(42).fork()).join();
|
|
1649
|
+
}
|
|
1650
|
+
});
|
|
1651
|
+
return writer;
|
|
1652
|
+
},
|
|
1653
|
+
decode(input, length) {
|
|
1654
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1655
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
1656
|
+
if (previousRecursionDepth >= 100) {
|
|
1657
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
1658
|
+
}
|
|
1659
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
1660
|
+
try {
|
|
1661
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1662
|
+
const message = createBaseResponse();
|
|
1663
|
+
while (reader.pos < end) {
|
|
1664
|
+
const tag = reader.uint32();
|
|
1665
|
+
switch (tag >>> 3) {
|
|
1666
|
+
case 1: {
|
|
1667
|
+
if (tag !== 10) {
|
|
1668
|
+
break;
|
|
1669
|
+
}
|
|
1670
|
+
message.description = reader.string();
|
|
1671
|
+
continue;
|
|
1672
|
+
}
|
|
1673
|
+
case 2: {
|
|
1674
|
+
if (tag !== 18) {
|
|
1675
|
+
break;
|
|
1676
|
+
}
|
|
1677
|
+
message.schema = exports.Schema.decode(reader, reader.uint32());
|
|
1678
|
+
continue;
|
|
1679
|
+
}
|
|
1680
|
+
case 3: {
|
|
1681
|
+
if (tag !== 26) {
|
|
1682
|
+
break;
|
|
1683
|
+
}
|
|
1684
|
+
const entry3 = exports.Response_HeadersEntry.decode(reader, reader.uint32());
|
|
1685
|
+
if (entry3.value !== undefined) {
|
|
1686
|
+
message.headers[entry3.key] = entry3.value;
|
|
1687
|
+
}
|
|
1688
|
+
continue;
|
|
1689
|
+
}
|
|
1690
|
+
case 4: {
|
|
1691
|
+
if (tag !== 34) {
|
|
1692
|
+
break;
|
|
1693
|
+
}
|
|
1694
|
+
const entry4 = exports.Response_ExamplesEntry.decode(reader, reader.uint32());
|
|
1695
|
+
if (entry4.value !== undefined) {
|
|
1696
|
+
message.examples[entry4.key] = entry4.value;
|
|
1697
|
+
}
|
|
1698
|
+
continue;
|
|
1699
|
+
}
|
|
1700
|
+
case 5: {
|
|
1701
|
+
if (tag !== 42) {
|
|
1702
|
+
break;
|
|
1703
|
+
}
|
|
1704
|
+
const entry5 = exports.Response_ExtensionsEntry.decode(reader, reader.uint32());
|
|
1705
|
+
if (entry5.value !== undefined) {
|
|
1706
|
+
message.extensions[entry5.key] = entry5.value;
|
|
1707
|
+
}
|
|
1708
|
+
continue;
|
|
1709
|
+
}
|
|
1710
|
+
}
|
|
1711
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1712
|
+
break;
|
|
1713
|
+
}
|
|
1714
|
+
reader.skip(tag & 7);
|
|
1715
|
+
}
|
|
1716
|
+
return message;
|
|
1717
|
+
}
|
|
1718
|
+
finally {
|
|
1719
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
1720
|
+
}
|
|
1721
|
+
},
|
|
1722
|
+
fromJSON(object) {
|
|
1723
|
+
return {
|
|
1724
|
+
description: isSet(object.description) ? globalThis.String(object.description) : "",
|
|
1725
|
+
schema: isSet(object.schema) ? exports.Schema.fromJSON(object.schema) : undefined,
|
|
1726
|
+
headers: isObject(object.headers)
|
|
1727
|
+
? globalThis.Object.entries(object.headers).reduce((acc, [key, value]) => {
|
|
1728
|
+
globalThis.Object.defineProperty(acc, key, {
|
|
1729
|
+
value: exports.Header.fromJSON(value),
|
|
1730
|
+
enumerable: true,
|
|
1731
|
+
configurable: true,
|
|
1732
|
+
writable: true,
|
|
1733
|
+
});
|
|
1734
|
+
return acc;
|
|
1735
|
+
}, {})
|
|
1736
|
+
: {},
|
|
1737
|
+
examples: isObject(object.examples)
|
|
1738
|
+
? globalThis.Object.entries(object.examples).reduce((acc, [key, value]) => {
|
|
1739
|
+
globalThis.Object.defineProperty(acc, key, {
|
|
1740
|
+
value: globalThis.String(value),
|
|
1741
|
+
enumerable: true,
|
|
1742
|
+
configurable: true,
|
|
1743
|
+
writable: true,
|
|
1744
|
+
});
|
|
1745
|
+
return acc;
|
|
1746
|
+
}, {})
|
|
1747
|
+
: {},
|
|
1748
|
+
extensions: isObject(object.extensions)
|
|
1749
|
+
? globalThis.Object.entries(object.extensions).reduce((acc, [key, value]) => {
|
|
1750
|
+
globalThis.Object.defineProperty(acc, key, {
|
|
1751
|
+
value: value,
|
|
1752
|
+
enumerable: true,
|
|
1753
|
+
configurable: true,
|
|
1754
|
+
writable: true,
|
|
1755
|
+
});
|
|
1756
|
+
return acc;
|
|
1757
|
+
}, {})
|
|
1758
|
+
: {},
|
|
1759
|
+
};
|
|
1760
|
+
},
|
|
1761
|
+
toJSON(message) {
|
|
1762
|
+
const obj = {};
|
|
1763
|
+
if (message.description !== "") {
|
|
1764
|
+
obj.description = message.description;
|
|
1765
|
+
}
|
|
1766
|
+
if (message.schema !== undefined) {
|
|
1767
|
+
obj.schema = exports.Schema.toJSON(message.schema);
|
|
1768
|
+
}
|
|
1769
|
+
if (message.headers) {
|
|
1770
|
+
const entries = globalThis.Object.entries(message.headers);
|
|
1771
|
+
if (entries.length > 0) {
|
|
1772
|
+
obj.headers = {};
|
|
1773
|
+
entries.forEach(([k, v]) => {
|
|
1774
|
+
obj.headers[k] = exports.Header.toJSON(v);
|
|
1775
|
+
});
|
|
1776
|
+
}
|
|
1777
|
+
}
|
|
1778
|
+
if (message.examples) {
|
|
1779
|
+
const entries = globalThis.Object.entries(message.examples);
|
|
1780
|
+
if (entries.length > 0) {
|
|
1781
|
+
obj.examples = {};
|
|
1782
|
+
entries.forEach(([k, v]) => {
|
|
1783
|
+
obj.examples[k] = v;
|
|
1784
|
+
});
|
|
1785
|
+
}
|
|
1786
|
+
}
|
|
1787
|
+
if (message.extensions) {
|
|
1788
|
+
const entries = globalThis.Object.entries(message.extensions);
|
|
1789
|
+
if (entries.length > 0) {
|
|
1790
|
+
obj.extensions = {};
|
|
1791
|
+
entries.forEach(([k, v]) => {
|
|
1792
|
+
obj.extensions[k] = v;
|
|
1793
|
+
});
|
|
1794
|
+
}
|
|
1795
|
+
}
|
|
1796
|
+
return obj;
|
|
1797
|
+
},
|
|
1798
|
+
create(base) {
|
|
1799
|
+
return exports.Response.fromPartial(base ?? {});
|
|
1800
|
+
},
|
|
1801
|
+
fromPartial(object) {
|
|
1802
|
+
const message = createBaseResponse();
|
|
1803
|
+
message.description = object.description ?? "";
|
|
1804
|
+
message.schema = (object.schema !== undefined && object.schema !== null)
|
|
1805
|
+
? exports.Schema.fromPartial(object.schema)
|
|
1806
|
+
: undefined;
|
|
1807
|
+
message.headers = globalThis.Object.entries(object.headers ?? {}).reduce((acc, [key, value]) => {
|
|
1808
|
+
if (value !== undefined) {
|
|
1809
|
+
acc[key] = exports.Header.fromPartial(value);
|
|
1810
|
+
}
|
|
1811
|
+
return acc;
|
|
1812
|
+
}, {});
|
|
1813
|
+
message.examples = globalThis.Object.entries(object.examples ?? {}).reduce((acc, [key, value]) => {
|
|
1814
|
+
if (value !== undefined) {
|
|
1815
|
+
acc[key] = globalThis.String(value);
|
|
1816
|
+
}
|
|
1817
|
+
return acc;
|
|
1818
|
+
}, {});
|
|
1819
|
+
message.extensions = globalThis.Object.entries(object.extensions ?? {}).reduce((acc, [key, value]) => {
|
|
1820
|
+
if (value !== undefined) {
|
|
1821
|
+
acc[key] = value;
|
|
1822
|
+
}
|
|
1823
|
+
return acc;
|
|
1824
|
+
}, {});
|
|
1825
|
+
return message;
|
|
1826
|
+
},
|
|
1827
|
+
};
|
|
1828
|
+
function createBaseResponse_HeadersEntry() {
|
|
1829
|
+
return { key: "", value: undefined };
|
|
1830
|
+
}
|
|
1831
|
+
exports.Response_HeadersEntry = {
|
|
1832
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1833
|
+
if (message.key !== "") {
|
|
1834
|
+
writer.uint32(10).string(message.key);
|
|
1835
|
+
}
|
|
1836
|
+
if (message.value !== undefined) {
|
|
1837
|
+
exports.Header.encode(message.value, writer.uint32(18).fork()).join();
|
|
1838
|
+
}
|
|
1839
|
+
return writer;
|
|
1840
|
+
},
|
|
1841
|
+
decode(input, length) {
|
|
1842
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1843
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
1844
|
+
if (previousRecursionDepth >= 100) {
|
|
1845
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
1846
|
+
}
|
|
1847
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
1848
|
+
try {
|
|
1849
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1850
|
+
const message = createBaseResponse_HeadersEntry();
|
|
1851
|
+
while (reader.pos < end) {
|
|
1852
|
+
const tag = reader.uint32();
|
|
1853
|
+
switch (tag >>> 3) {
|
|
1854
|
+
case 1: {
|
|
1855
|
+
if (tag !== 10) {
|
|
1856
|
+
break;
|
|
1857
|
+
}
|
|
1858
|
+
message.key = reader.string();
|
|
1859
|
+
continue;
|
|
1860
|
+
}
|
|
1861
|
+
case 2: {
|
|
1862
|
+
if (tag !== 18) {
|
|
1863
|
+
break;
|
|
1864
|
+
}
|
|
1865
|
+
message.value = exports.Header.decode(reader, reader.uint32());
|
|
1866
|
+
continue;
|
|
1867
|
+
}
|
|
1868
|
+
}
|
|
1869
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1870
|
+
break;
|
|
1871
|
+
}
|
|
1872
|
+
reader.skip(tag & 7);
|
|
1873
|
+
}
|
|
1874
|
+
return message;
|
|
1875
|
+
}
|
|
1876
|
+
finally {
|
|
1877
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
1878
|
+
}
|
|
1879
|
+
},
|
|
1880
|
+
fromJSON(object) {
|
|
1881
|
+
return {
|
|
1882
|
+
key: isSet(object.key) ? globalThis.String(object.key) : "",
|
|
1883
|
+
value: isSet(object.value) ? exports.Header.fromJSON(object.value) : undefined,
|
|
1884
|
+
};
|
|
1885
|
+
},
|
|
1886
|
+
toJSON(message) {
|
|
1887
|
+
const obj = {};
|
|
1888
|
+
if (message.key !== "") {
|
|
1889
|
+
obj.key = message.key;
|
|
1890
|
+
}
|
|
1891
|
+
if (message.value !== undefined) {
|
|
1892
|
+
obj.value = exports.Header.toJSON(message.value);
|
|
1893
|
+
}
|
|
1894
|
+
return obj;
|
|
1895
|
+
},
|
|
1896
|
+
create(base) {
|
|
1897
|
+
return exports.Response_HeadersEntry.fromPartial(base ?? {});
|
|
1898
|
+
},
|
|
1899
|
+
fromPartial(object) {
|
|
1900
|
+
const message = createBaseResponse_HeadersEntry();
|
|
1901
|
+
message.key = object.key ?? "";
|
|
1902
|
+
message.value = (object.value !== undefined && object.value !== null)
|
|
1903
|
+
? exports.Header.fromPartial(object.value)
|
|
1904
|
+
: undefined;
|
|
1905
|
+
return message;
|
|
1906
|
+
},
|
|
1907
|
+
};
|
|
1908
|
+
function createBaseResponse_ExamplesEntry() {
|
|
1909
|
+
return { key: "", value: "" };
|
|
1910
|
+
}
|
|
1911
|
+
exports.Response_ExamplesEntry = {
|
|
1912
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1913
|
+
if (message.key !== "") {
|
|
1914
|
+
writer.uint32(10).string(message.key);
|
|
1915
|
+
}
|
|
1916
|
+
if (message.value !== "") {
|
|
1917
|
+
writer.uint32(18).string(message.value);
|
|
1918
|
+
}
|
|
1919
|
+
return writer;
|
|
1920
|
+
},
|
|
1921
|
+
decode(input, length) {
|
|
1922
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1923
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
1924
|
+
if (previousRecursionDepth >= 100) {
|
|
1925
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
1926
|
+
}
|
|
1927
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
1928
|
+
try {
|
|
1929
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1930
|
+
const message = createBaseResponse_ExamplesEntry();
|
|
1931
|
+
while (reader.pos < end) {
|
|
1932
|
+
const tag = reader.uint32();
|
|
1933
|
+
switch (tag >>> 3) {
|
|
1934
|
+
case 1: {
|
|
1935
|
+
if (tag !== 10) {
|
|
1936
|
+
break;
|
|
1937
|
+
}
|
|
1938
|
+
message.key = reader.string();
|
|
1939
|
+
continue;
|
|
1940
|
+
}
|
|
1941
|
+
case 2: {
|
|
1942
|
+
if (tag !== 18) {
|
|
1943
|
+
break;
|
|
1944
|
+
}
|
|
1945
|
+
message.value = reader.string();
|
|
1946
|
+
continue;
|
|
1947
|
+
}
|
|
1948
|
+
}
|
|
1949
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1950
|
+
break;
|
|
1951
|
+
}
|
|
1952
|
+
reader.skip(tag & 7);
|
|
1953
|
+
}
|
|
1954
|
+
return message;
|
|
1955
|
+
}
|
|
1956
|
+
finally {
|
|
1957
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
1958
|
+
}
|
|
1959
|
+
},
|
|
1960
|
+
fromJSON(object) {
|
|
1961
|
+
return {
|
|
1962
|
+
key: isSet(object.key) ? globalThis.String(object.key) : "",
|
|
1963
|
+
value: isSet(object.value) ? globalThis.String(object.value) : "",
|
|
1964
|
+
};
|
|
1965
|
+
},
|
|
1966
|
+
toJSON(message) {
|
|
1967
|
+
const obj = {};
|
|
1968
|
+
if (message.key !== "") {
|
|
1969
|
+
obj.key = message.key;
|
|
1970
|
+
}
|
|
1971
|
+
if (message.value !== "") {
|
|
1972
|
+
obj.value = message.value;
|
|
1973
|
+
}
|
|
1974
|
+
return obj;
|
|
1975
|
+
},
|
|
1976
|
+
create(base) {
|
|
1977
|
+
return exports.Response_ExamplesEntry.fromPartial(base ?? {});
|
|
1978
|
+
},
|
|
1979
|
+
fromPartial(object) {
|
|
1980
|
+
const message = createBaseResponse_ExamplesEntry();
|
|
1981
|
+
message.key = object.key ?? "";
|
|
1982
|
+
message.value = object.value ?? "";
|
|
1983
|
+
return message;
|
|
1984
|
+
},
|
|
1985
|
+
};
|
|
1986
|
+
function createBaseResponse_ExtensionsEntry() {
|
|
1987
|
+
return { key: "", value: undefined };
|
|
1988
|
+
}
|
|
1989
|
+
exports.Response_ExtensionsEntry = {
|
|
1990
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1991
|
+
if (message.key !== "") {
|
|
1992
|
+
writer.uint32(10).string(message.key);
|
|
1993
|
+
}
|
|
1994
|
+
if (message.value !== undefined) {
|
|
1995
|
+
struct_js_1.Value.encode(struct_js_1.Value.wrap(message.value), writer.uint32(18).fork()).join();
|
|
1996
|
+
}
|
|
1997
|
+
return writer;
|
|
1998
|
+
},
|
|
1999
|
+
decode(input, length) {
|
|
2000
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
2001
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
2002
|
+
if (previousRecursionDepth >= 100) {
|
|
2003
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
2004
|
+
}
|
|
2005
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
2006
|
+
try {
|
|
2007
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2008
|
+
const message = createBaseResponse_ExtensionsEntry();
|
|
2009
|
+
while (reader.pos < end) {
|
|
2010
|
+
const tag = reader.uint32();
|
|
2011
|
+
switch (tag >>> 3) {
|
|
2012
|
+
case 1: {
|
|
2013
|
+
if (tag !== 10) {
|
|
2014
|
+
break;
|
|
2015
|
+
}
|
|
2016
|
+
message.key = reader.string();
|
|
2017
|
+
continue;
|
|
2018
|
+
}
|
|
2019
|
+
case 2: {
|
|
2020
|
+
if (tag !== 18) {
|
|
2021
|
+
break;
|
|
2022
|
+
}
|
|
2023
|
+
message.value = struct_js_1.Value.unwrap(struct_js_1.Value.decode(reader, reader.uint32()));
|
|
2024
|
+
continue;
|
|
2025
|
+
}
|
|
2026
|
+
}
|
|
2027
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2028
|
+
break;
|
|
2029
|
+
}
|
|
2030
|
+
reader.skip(tag & 7);
|
|
2031
|
+
}
|
|
2032
|
+
return message;
|
|
2033
|
+
}
|
|
2034
|
+
finally {
|
|
2035
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
2036
|
+
}
|
|
2037
|
+
},
|
|
2038
|
+
fromJSON(object) {
|
|
2039
|
+
return {
|
|
2040
|
+
key: isSet(object.key) ? globalThis.String(object.key) : "",
|
|
2041
|
+
value: isSet(object?.value) ? object.value : undefined,
|
|
2042
|
+
};
|
|
2043
|
+
},
|
|
2044
|
+
toJSON(message) {
|
|
2045
|
+
const obj = {};
|
|
2046
|
+
if (message.key !== "") {
|
|
2047
|
+
obj.key = message.key;
|
|
2048
|
+
}
|
|
2049
|
+
if (message.value !== undefined) {
|
|
2050
|
+
obj.value = message.value;
|
|
2051
|
+
}
|
|
2052
|
+
return obj;
|
|
2053
|
+
},
|
|
2054
|
+
create(base) {
|
|
2055
|
+
return exports.Response_ExtensionsEntry.fromPartial(base ?? {});
|
|
2056
|
+
},
|
|
2057
|
+
fromPartial(object) {
|
|
2058
|
+
const message = createBaseResponse_ExtensionsEntry();
|
|
2059
|
+
message.key = object.key ?? "";
|
|
2060
|
+
message.value = object.value ?? undefined;
|
|
2061
|
+
return message;
|
|
2062
|
+
},
|
|
2063
|
+
};
|
|
2064
|
+
function createBaseInfo() {
|
|
2065
|
+
return {
|
|
2066
|
+
title: "",
|
|
2067
|
+
description: "",
|
|
2068
|
+
termsOfService: "",
|
|
2069
|
+
contact: undefined,
|
|
2070
|
+
license: undefined,
|
|
2071
|
+
version: "",
|
|
2072
|
+
extensions: {},
|
|
2073
|
+
};
|
|
2074
|
+
}
|
|
2075
|
+
exports.Info = {
|
|
2076
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
2077
|
+
if (message.title !== "") {
|
|
2078
|
+
writer.uint32(10).string(message.title);
|
|
2079
|
+
}
|
|
2080
|
+
if (message.description !== "") {
|
|
2081
|
+
writer.uint32(18).string(message.description);
|
|
2082
|
+
}
|
|
2083
|
+
if (message.termsOfService !== "") {
|
|
2084
|
+
writer.uint32(26).string(message.termsOfService);
|
|
2085
|
+
}
|
|
2086
|
+
if (message.contact !== undefined) {
|
|
2087
|
+
exports.Contact.encode(message.contact, writer.uint32(34).fork()).join();
|
|
2088
|
+
}
|
|
2089
|
+
if (message.license !== undefined) {
|
|
2090
|
+
exports.License.encode(message.license, writer.uint32(42).fork()).join();
|
|
2091
|
+
}
|
|
2092
|
+
if (message.version !== "") {
|
|
2093
|
+
writer.uint32(50).string(message.version);
|
|
2094
|
+
}
|
|
2095
|
+
globalThis.Object.entries(message.extensions).forEach(([key, value]) => {
|
|
2096
|
+
if (value !== undefined) {
|
|
2097
|
+
exports.Info_ExtensionsEntry.encode({ key: key, value }, writer.uint32(58).fork()).join();
|
|
2098
|
+
}
|
|
2099
|
+
});
|
|
2100
|
+
return writer;
|
|
2101
|
+
},
|
|
2102
|
+
decode(input, length) {
|
|
2103
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
2104
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
2105
|
+
if (previousRecursionDepth >= 100) {
|
|
2106
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
2107
|
+
}
|
|
2108
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
2109
|
+
try {
|
|
2110
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2111
|
+
const message = createBaseInfo();
|
|
2112
|
+
while (reader.pos < end) {
|
|
2113
|
+
const tag = reader.uint32();
|
|
2114
|
+
switch (tag >>> 3) {
|
|
2115
|
+
case 1: {
|
|
2116
|
+
if (tag !== 10) {
|
|
2117
|
+
break;
|
|
2118
|
+
}
|
|
2119
|
+
message.title = reader.string();
|
|
2120
|
+
continue;
|
|
2121
|
+
}
|
|
2122
|
+
case 2: {
|
|
2123
|
+
if (tag !== 18) {
|
|
2124
|
+
break;
|
|
2125
|
+
}
|
|
2126
|
+
message.description = reader.string();
|
|
2127
|
+
continue;
|
|
2128
|
+
}
|
|
2129
|
+
case 3: {
|
|
2130
|
+
if (tag !== 26) {
|
|
2131
|
+
break;
|
|
2132
|
+
}
|
|
2133
|
+
message.termsOfService = reader.string();
|
|
2134
|
+
continue;
|
|
2135
|
+
}
|
|
2136
|
+
case 4: {
|
|
2137
|
+
if (tag !== 34) {
|
|
2138
|
+
break;
|
|
2139
|
+
}
|
|
2140
|
+
message.contact = exports.Contact.decode(reader, reader.uint32());
|
|
2141
|
+
continue;
|
|
2142
|
+
}
|
|
2143
|
+
case 5: {
|
|
2144
|
+
if (tag !== 42) {
|
|
2145
|
+
break;
|
|
2146
|
+
}
|
|
2147
|
+
message.license = exports.License.decode(reader, reader.uint32());
|
|
2148
|
+
continue;
|
|
2149
|
+
}
|
|
2150
|
+
case 6: {
|
|
2151
|
+
if (tag !== 50) {
|
|
2152
|
+
break;
|
|
2153
|
+
}
|
|
2154
|
+
message.version = reader.string();
|
|
2155
|
+
continue;
|
|
2156
|
+
}
|
|
2157
|
+
case 7: {
|
|
2158
|
+
if (tag !== 58) {
|
|
2159
|
+
break;
|
|
2160
|
+
}
|
|
2161
|
+
const entry7 = exports.Info_ExtensionsEntry.decode(reader, reader.uint32());
|
|
2162
|
+
if (entry7.value !== undefined) {
|
|
2163
|
+
message.extensions[entry7.key] = entry7.value;
|
|
2164
|
+
}
|
|
2165
|
+
continue;
|
|
2166
|
+
}
|
|
2167
|
+
}
|
|
2168
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2169
|
+
break;
|
|
2170
|
+
}
|
|
2171
|
+
reader.skip(tag & 7);
|
|
2172
|
+
}
|
|
2173
|
+
return message;
|
|
2174
|
+
}
|
|
2175
|
+
finally {
|
|
2176
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
2177
|
+
}
|
|
2178
|
+
},
|
|
2179
|
+
fromJSON(object) {
|
|
2180
|
+
return {
|
|
2181
|
+
title: isSet(object.title) ? globalThis.String(object.title) : "",
|
|
2182
|
+
description: isSet(object.description) ? globalThis.String(object.description) : "",
|
|
2183
|
+
termsOfService: isSet(object.termsOfService)
|
|
2184
|
+
? globalThis.String(object.termsOfService)
|
|
2185
|
+
: isSet(object.terms_of_service)
|
|
2186
|
+
? globalThis.String(object.terms_of_service)
|
|
2187
|
+
: "",
|
|
2188
|
+
contact: isSet(object.contact) ? exports.Contact.fromJSON(object.contact) : undefined,
|
|
2189
|
+
license: isSet(object.license) ? exports.License.fromJSON(object.license) : undefined,
|
|
2190
|
+
version: isSet(object.version) ? globalThis.String(object.version) : "",
|
|
2191
|
+
extensions: isObject(object.extensions)
|
|
2192
|
+
? globalThis.Object.entries(object.extensions).reduce((acc, [key, value]) => {
|
|
2193
|
+
globalThis.Object.defineProperty(acc, key, {
|
|
2194
|
+
value: value,
|
|
2195
|
+
enumerable: true,
|
|
2196
|
+
configurable: true,
|
|
2197
|
+
writable: true,
|
|
2198
|
+
});
|
|
2199
|
+
return acc;
|
|
2200
|
+
}, {})
|
|
2201
|
+
: {},
|
|
2202
|
+
};
|
|
2203
|
+
},
|
|
2204
|
+
toJSON(message) {
|
|
2205
|
+
const obj = {};
|
|
2206
|
+
if (message.title !== "") {
|
|
2207
|
+
obj.title = message.title;
|
|
2208
|
+
}
|
|
2209
|
+
if (message.description !== "") {
|
|
2210
|
+
obj.description = message.description;
|
|
2211
|
+
}
|
|
2212
|
+
if (message.termsOfService !== "") {
|
|
2213
|
+
obj.termsOfService = message.termsOfService;
|
|
2214
|
+
}
|
|
2215
|
+
if (message.contact !== undefined) {
|
|
2216
|
+
obj.contact = exports.Contact.toJSON(message.contact);
|
|
2217
|
+
}
|
|
2218
|
+
if (message.license !== undefined) {
|
|
2219
|
+
obj.license = exports.License.toJSON(message.license);
|
|
2220
|
+
}
|
|
2221
|
+
if (message.version !== "") {
|
|
2222
|
+
obj.version = message.version;
|
|
2223
|
+
}
|
|
2224
|
+
if (message.extensions) {
|
|
2225
|
+
const entries = globalThis.Object.entries(message.extensions);
|
|
2226
|
+
if (entries.length > 0) {
|
|
2227
|
+
obj.extensions = {};
|
|
2228
|
+
entries.forEach(([k, v]) => {
|
|
2229
|
+
obj.extensions[k] = v;
|
|
2230
|
+
});
|
|
2231
|
+
}
|
|
2232
|
+
}
|
|
2233
|
+
return obj;
|
|
2234
|
+
},
|
|
2235
|
+
create(base) {
|
|
2236
|
+
return exports.Info.fromPartial(base ?? {});
|
|
2237
|
+
},
|
|
2238
|
+
fromPartial(object) {
|
|
2239
|
+
const message = createBaseInfo();
|
|
2240
|
+
message.title = object.title ?? "";
|
|
2241
|
+
message.description = object.description ?? "";
|
|
2242
|
+
message.termsOfService = object.termsOfService ?? "";
|
|
2243
|
+
message.contact = (object.contact !== undefined && object.contact !== null)
|
|
2244
|
+
? exports.Contact.fromPartial(object.contact)
|
|
2245
|
+
: undefined;
|
|
2246
|
+
message.license = (object.license !== undefined && object.license !== null)
|
|
2247
|
+
? exports.License.fromPartial(object.license)
|
|
2248
|
+
: undefined;
|
|
2249
|
+
message.version = object.version ?? "";
|
|
2250
|
+
message.extensions = globalThis.Object.entries(object.extensions ?? {}).reduce((acc, [key, value]) => {
|
|
2251
|
+
if (value !== undefined) {
|
|
2252
|
+
acc[key] = value;
|
|
2253
|
+
}
|
|
2254
|
+
return acc;
|
|
2255
|
+
}, {});
|
|
2256
|
+
return message;
|
|
2257
|
+
},
|
|
2258
|
+
};
|
|
2259
|
+
function createBaseInfo_ExtensionsEntry() {
|
|
2260
|
+
return { key: "", value: undefined };
|
|
2261
|
+
}
|
|
2262
|
+
exports.Info_ExtensionsEntry = {
|
|
2263
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
2264
|
+
if (message.key !== "") {
|
|
2265
|
+
writer.uint32(10).string(message.key);
|
|
2266
|
+
}
|
|
2267
|
+
if (message.value !== undefined) {
|
|
2268
|
+
struct_js_1.Value.encode(struct_js_1.Value.wrap(message.value), writer.uint32(18).fork()).join();
|
|
2269
|
+
}
|
|
2270
|
+
return writer;
|
|
2271
|
+
},
|
|
2272
|
+
decode(input, length) {
|
|
2273
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
2274
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
2275
|
+
if (previousRecursionDepth >= 100) {
|
|
2276
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
2277
|
+
}
|
|
2278
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
2279
|
+
try {
|
|
2280
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2281
|
+
const message = createBaseInfo_ExtensionsEntry();
|
|
2282
|
+
while (reader.pos < end) {
|
|
2283
|
+
const tag = reader.uint32();
|
|
2284
|
+
switch (tag >>> 3) {
|
|
2285
|
+
case 1: {
|
|
2286
|
+
if (tag !== 10) {
|
|
2287
|
+
break;
|
|
2288
|
+
}
|
|
2289
|
+
message.key = reader.string();
|
|
2290
|
+
continue;
|
|
2291
|
+
}
|
|
2292
|
+
case 2: {
|
|
2293
|
+
if (tag !== 18) {
|
|
2294
|
+
break;
|
|
2295
|
+
}
|
|
2296
|
+
message.value = struct_js_1.Value.unwrap(struct_js_1.Value.decode(reader, reader.uint32()));
|
|
2297
|
+
continue;
|
|
2298
|
+
}
|
|
2299
|
+
}
|
|
2300
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2301
|
+
break;
|
|
2302
|
+
}
|
|
2303
|
+
reader.skip(tag & 7);
|
|
2304
|
+
}
|
|
2305
|
+
return message;
|
|
2306
|
+
}
|
|
2307
|
+
finally {
|
|
2308
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
2309
|
+
}
|
|
2310
|
+
},
|
|
2311
|
+
fromJSON(object) {
|
|
2312
|
+
return {
|
|
2313
|
+
key: isSet(object.key) ? globalThis.String(object.key) : "",
|
|
2314
|
+
value: isSet(object?.value) ? object.value : undefined,
|
|
2315
|
+
};
|
|
2316
|
+
},
|
|
2317
|
+
toJSON(message) {
|
|
2318
|
+
const obj = {};
|
|
2319
|
+
if (message.key !== "") {
|
|
2320
|
+
obj.key = message.key;
|
|
2321
|
+
}
|
|
2322
|
+
if (message.value !== undefined) {
|
|
2323
|
+
obj.value = message.value;
|
|
2324
|
+
}
|
|
2325
|
+
return obj;
|
|
2326
|
+
},
|
|
2327
|
+
create(base) {
|
|
2328
|
+
return exports.Info_ExtensionsEntry.fromPartial(base ?? {});
|
|
2329
|
+
},
|
|
2330
|
+
fromPartial(object) {
|
|
2331
|
+
const message = createBaseInfo_ExtensionsEntry();
|
|
2332
|
+
message.key = object.key ?? "";
|
|
2333
|
+
message.value = object.value ?? undefined;
|
|
2334
|
+
return message;
|
|
2335
|
+
},
|
|
2336
|
+
};
|
|
2337
|
+
function createBaseContact() {
|
|
2338
|
+
return { name: "", url: "", email: "" };
|
|
2339
|
+
}
|
|
2340
|
+
exports.Contact = {
|
|
2341
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
2342
|
+
if (message.name !== "") {
|
|
2343
|
+
writer.uint32(10).string(message.name);
|
|
2344
|
+
}
|
|
2345
|
+
if (message.url !== "") {
|
|
2346
|
+
writer.uint32(18).string(message.url);
|
|
2347
|
+
}
|
|
2348
|
+
if (message.email !== "") {
|
|
2349
|
+
writer.uint32(26).string(message.email);
|
|
2350
|
+
}
|
|
2351
|
+
return writer;
|
|
2352
|
+
},
|
|
2353
|
+
decode(input, length) {
|
|
2354
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
2355
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
2356
|
+
if (previousRecursionDepth >= 100) {
|
|
2357
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
2358
|
+
}
|
|
2359
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
2360
|
+
try {
|
|
2361
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2362
|
+
const message = createBaseContact();
|
|
2363
|
+
while (reader.pos < end) {
|
|
2364
|
+
const tag = reader.uint32();
|
|
2365
|
+
switch (tag >>> 3) {
|
|
2366
|
+
case 1: {
|
|
2367
|
+
if (tag !== 10) {
|
|
2368
|
+
break;
|
|
2369
|
+
}
|
|
2370
|
+
message.name = reader.string();
|
|
2371
|
+
continue;
|
|
2372
|
+
}
|
|
2373
|
+
case 2: {
|
|
2374
|
+
if (tag !== 18) {
|
|
2375
|
+
break;
|
|
2376
|
+
}
|
|
2377
|
+
message.url = reader.string();
|
|
2378
|
+
continue;
|
|
2379
|
+
}
|
|
2380
|
+
case 3: {
|
|
2381
|
+
if (tag !== 26) {
|
|
2382
|
+
break;
|
|
2383
|
+
}
|
|
2384
|
+
message.email = reader.string();
|
|
2385
|
+
continue;
|
|
2386
|
+
}
|
|
2387
|
+
}
|
|
2388
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2389
|
+
break;
|
|
2390
|
+
}
|
|
2391
|
+
reader.skip(tag & 7);
|
|
2392
|
+
}
|
|
2393
|
+
return message;
|
|
2394
|
+
}
|
|
2395
|
+
finally {
|
|
2396
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
2397
|
+
}
|
|
2398
|
+
},
|
|
2399
|
+
fromJSON(object) {
|
|
2400
|
+
return {
|
|
2401
|
+
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
2402
|
+
url: isSet(object.url) ? globalThis.String(object.url) : "",
|
|
2403
|
+
email: isSet(object.email) ? globalThis.String(object.email) : "",
|
|
2404
|
+
};
|
|
2405
|
+
},
|
|
2406
|
+
toJSON(message) {
|
|
2407
|
+
const obj = {};
|
|
2408
|
+
if (message.name !== "") {
|
|
2409
|
+
obj.name = message.name;
|
|
2410
|
+
}
|
|
2411
|
+
if (message.url !== "") {
|
|
2412
|
+
obj.url = message.url;
|
|
2413
|
+
}
|
|
2414
|
+
if (message.email !== "") {
|
|
2415
|
+
obj.email = message.email;
|
|
2416
|
+
}
|
|
2417
|
+
return obj;
|
|
2418
|
+
},
|
|
2419
|
+
create(base) {
|
|
2420
|
+
return exports.Contact.fromPartial(base ?? {});
|
|
2421
|
+
},
|
|
2422
|
+
fromPartial(object) {
|
|
2423
|
+
const message = createBaseContact();
|
|
2424
|
+
message.name = object.name ?? "";
|
|
2425
|
+
message.url = object.url ?? "";
|
|
2426
|
+
message.email = object.email ?? "";
|
|
2427
|
+
return message;
|
|
2428
|
+
},
|
|
2429
|
+
};
|
|
2430
|
+
function createBaseLicense() {
|
|
2431
|
+
return { name: "", url: "" };
|
|
2432
|
+
}
|
|
2433
|
+
exports.License = {
|
|
2434
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
2435
|
+
if (message.name !== "") {
|
|
2436
|
+
writer.uint32(10).string(message.name);
|
|
2437
|
+
}
|
|
2438
|
+
if (message.url !== "") {
|
|
2439
|
+
writer.uint32(18).string(message.url);
|
|
2440
|
+
}
|
|
2441
|
+
return writer;
|
|
2442
|
+
},
|
|
2443
|
+
decode(input, length) {
|
|
2444
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
2445
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
2446
|
+
if (previousRecursionDepth >= 100) {
|
|
2447
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
2448
|
+
}
|
|
2449
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
2450
|
+
try {
|
|
2451
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2452
|
+
const message = createBaseLicense();
|
|
2453
|
+
while (reader.pos < end) {
|
|
2454
|
+
const tag = reader.uint32();
|
|
2455
|
+
switch (tag >>> 3) {
|
|
2456
|
+
case 1: {
|
|
2457
|
+
if (tag !== 10) {
|
|
2458
|
+
break;
|
|
2459
|
+
}
|
|
2460
|
+
message.name = reader.string();
|
|
2461
|
+
continue;
|
|
2462
|
+
}
|
|
2463
|
+
case 2: {
|
|
2464
|
+
if (tag !== 18) {
|
|
2465
|
+
break;
|
|
2466
|
+
}
|
|
2467
|
+
message.url = reader.string();
|
|
2468
|
+
continue;
|
|
2469
|
+
}
|
|
2470
|
+
}
|
|
2471
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2472
|
+
break;
|
|
2473
|
+
}
|
|
2474
|
+
reader.skip(tag & 7);
|
|
2475
|
+
}
|
|
2476
|
+
return message;
|
|
2477
|
+
}
|
|
2478
|
+
finally {
|
|
2479
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
2480
|
+
}
|
|
2481
|
+
},
|
|
2482
|
+
fromJSON(object) {
|
|
2483
|
+
return {
|
|
2484
|
+
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
2485
|
+
url: isSet(object.url) ? globalThis.String(object.url) : "",
|
|
2486
|
+
};
|
|
2487
|
+
},
|
|
2488
|
+
toJSON(message) {
|
|
2489
|
+
const obj = {};
|
|
2490
|
+
if (message.name !== "") {
|
|
2491
|
+
obj.name = message.name;
|
|
2492
|
+
}
|
|
2493
|
+
if (message.url !== "") {
|
|
2494
|
+
obj.url = message.url;
|
|
2495
|
+
}
|
|
2496
|
+
return obj;
|
|
2497
|
+
},
|
|
2498
|
+
create(base) {
|
|
2499
|
+
return exports.License.fromPartial(base ?? {});
|
|
2500
|
+
},
|
|
2501
|
+
fromPartial(object) {
|
|
2502
|
+
const message = createBaseLicense();
|
|
2503
|
+
message.name = object.name ?? "";
|
|
2504
|
+
message.url = object.url ?? "";
|
|
2505
|
+
return message;
|
|
2506
|
+
},
|
|
2507
|
+
};
|
|
2508
|
+
function createBaseExternalDocumentation() {
|
|
2509
|
+
return { description: "", url: "" };
|
|
2510
|
+
}
|
|
2511
|
+
exports.ExternalDocumentation = {
|
|
2512
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
2513
|
+
if (message.description !== "") {
|
|
2514
|
+
writer.uint32(10).string(message.description);
|
|
2515
|
+
}
|
|
2516
|
+
if (message.url !== "") {
|
|
2517
|
+
writer.uint32(18).string(message.url);
|
|
2518
|
+
}
|
|
2519
|
+
return writer;
|
|
2520
|
+
},
|
|
2521
|
+
decode(input, length) {
|
|
2522
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
2523
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
2524
|
+
if (previousRecursionDepth >= 100) {
|
|
2525
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
2526
|
+
}
|
|
2527
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
2528
|
+
try {
|
|
2529
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2530
|
+
const message = createBaseExternalDocumentation();
|
|
2531
|
+
while (reader.pos < end) {
|
|
2532
|
+
const tag = reader.uint32();
|
|
2533
|
+
switch (tag >>> 3) {
|
|
2534
|
+
case 1: {
|
|
2535
|
+
if (tag !== 10) {
|
|
2536
|
+
break;
|
|
2537
|
+
}
|
|
2538
|
+
message.description = reader.string();
|
|
2539
|
+
continue;
|
|
2540
|
+
}
|
|
2541
|
+
case 2: {
|
|
2542
|
+
if (tag !== 18) {
|
|
2543
|
+
break;
|
|
2544
|
+
}
|
|
2545
|
+
message.url = reader.string();
|
|
2546
|
+
continue;
|
|
2547
|
+
}
|
|
2548
|
+
}
|
|
2549
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2550
|
+
break;
|
|
2551
|
+
}
|
|
2552
|
+
reader.skip(tag & 7);
|
|
2553
|
+
}
|
|
2554
|
+
return message;
|
|
2555
|
+
}
|
|
2556
|
+
finally {
|
|
2557
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
2558
|
+
}
|
|
2559
|
+
},
|
|
2560
|
+
fromJSON(object) {
|
|
2561
|
+
return {
|
|
2562
|
+
description: isSet(object.description) ? globalThis.String(object.description) : "",
|
|
2563
|
+
url: isSet(object.url) ? globalThis.String(object.url) : "",
|
|
2564
|
+
};
|
|
2565
|
+
},
|
|
2566
|
+
toJSON(message) {
|
|
2567
|
+
const obj = {};
|
|
2568
|
+
if (message.description !== "") {
|
|
2569
|
+
obj.description = message.description;
|
|
2570
|
+
}
|
|
2571
|
+
if (message.url !== "") {
|
|
2572
|
+
obj.url = message.url;
|
|
2573
|
+
}
|
|
2574
|
+
return obj;
|
|
2575
|
+
},
|
|
2576
|
+
create(base) {
|
|
2577
|
+
return exports.ExternalDocumentation.fromPartial(base ?? {});
|
|
2578
|
+
},
|
|
2579
|
+
fromPartial(object) {
|
|
2580
|
+
const message = createBaseExternalDocumentation();
|
|
2581
|
+
message.description = object.description ?? "";
|
|
2582
|
+
message.url = object.url ?? "";
|
|
2583
|
+
return message;
|
|
2584
|
+
},
|
|
2585
|
+
};
|
|
2586
|
+
function createBaseSchema() {
|
|
2587
|
+
return { jsonSchema: undefined, discriminator: "", readOnly: false, externalDocs: undefined, example: "" };
|
|
2588
|
+
}
|
|
2589
|
+
exports.Schema = {
|
|
2590
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
2591
|
+
if (message.jsonSchema !== undefined) {
|
|
2592
|
+
exports.JSONSchema.encode(message.jsonSchema, writer.uint32(10).fork()).join();
|
|
2593
|
+
}
|
|
2594
|
+
if (message.discriminator !== "") {
|
|
2595
|
+
writer.uint32(18).string(message.discriminator);
|
|
2596
|
+
}
|
|
2597
|
+
if (message.readOnly !== false) {
|
|
2598
|
+
writer.uint32(24).bool(message.readOnly);
|
|
2599
|
+
}
|
|
2600
|
+
if (message.externalDocs !== undefined) {
|
|
2601
|
+
exports.ExternalDocumentation.encode(message.externalDocs, writer.uint32(42).fork()).join();
|
|
2602
|
+
}
|
|
2603
|
+
if (message.example !== "") {
|
|
2604
|
+
writer.uint32(50).string(message.example);
|
|
2605
|
+
}
|
|
2606
|
+
return writer;
|
|
2607
|
+
},
|
|
2608
|
+
decode(input, length) {
|
|
2609
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
2610
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
2611
|
+
if (previousRecursionDepth >= 100) {
|
|
2612
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
2613
|
+
}
|
|
2614
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
2615
|
+
try {
|
|
2616
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2617
|
+
const message = createBaseSchema();
|
|
2618
|
+
while (reader.pos < end) {
|
|
2619
|
+
const tag = reader.uint32();
|
|
2620
|
+
switch (tag >>> 3) {
|
|
2621
|
+
case 1: {
|
|
2622
|
+
if (tag !== 10) {
|
|
2623
|
+
break;
|
|
2624
|
+
}
|
|
2625
|
+
message.jsonSchema = exports.JSONSchema.decode(reader, reader.uint32());
|
|
2626
|
+
continue;
|
|
2627
|
+
}
|
|
2628
|
+
case 2: {
|
|
2629
|
+
if (tag !== 18) {
|
|
2630
|
+
break;
|
|
2631
|
+
}
|
|
2632
|
+
message.discriminator = reader.string();
|
|
2633
|
+
continue;
|
|
2634
|
+
}
|
|
2635
|
+
case 3: {
|
|
2636
|
+
if (tag !== 24) {
|
|
2637
|
+
break;
|
|
2638
|
+
}
|
|
2639
|
+
message.readOnly = reader.bool();
|
|
2640
|
+
continue;
|
|
2641
|
+
}
|
|
2642
|
+
case 5: {
|
|
2643
|
+
if (tag !== 42) {
|
|
2644
|
+
break;
|
|
2645
|
+
}
|
|
2646
|
+
message.externalDocs = exports.ExternalDocumentation.decode(reader, reader.uint32());
|
|
2647
|
+
continue;
|
|
2648
|
+
}
|
|
2649
|
+
case 6: {
|
|
2650
|
+
if (tag !== 50) {
|
|
2651
|
+
break;
|
|
2652
|
+
}
|
|
2653
|
+
message.example = reader.string();
|
|
2654
|
+
continue;
|
|
2655
|
+
}
|
|
2656
|
+
}
|
|
2657
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2658
|
+
break;
|
|
2659
|
+
}
|
|
2660
|
+
reader.skip(tag & 7);
|
|
2661
|
+
}
|
|
2662
|
+
return message;
|
|
2663
|
+
}
|
|
2664
|
+
finally {
|
|
2665
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
2666
|
+
}
|
|
2667
|
+
},
|
|
2668
|
+
fromJSON(object) {
|
|
2669
|
+
return {
|
|
2670
|
+
jsonSchema: isSet(object.jsonSchema)
|
|
2671
|
+
? exports.JSONSchema.fromJSON(object.jsonSchema)
|
|
2672
|
+
: isSet(object.json_schema)
|
|
2673
|
+
? exports.JSONSchema.fromJSON(object.json_schema)
|
|
2674
|
+
: undefined,
|
|
2675
|
+
discriminator: isSet(object.discriminator) ? globalThis.String(object.discriminator) : "",
|
|
2676
|
+
readOnly: isSet(object.readOnly)
|
|
2677
|
+
? globalThis.Boolean(object.readOnly)
|
|
2678
|
+
: isSet(object.read_only)
|
|
2679
|
+
? globalThis.Boolean(object.read_only)
|
|
2680
|
+
: false,
|
|
2681
|
+
externalDocs: isSet(object.externalDocs)
|
|
2682
|
+
? exports.ExternalDocumentation.fromJSON(object.externalDocs)
|
|
2683
|
+
: isSet(object.external_docs)
|
|
2684
|
+
? exports.ExternalDocumentation.fromJSON(object.external_docs)
|
|
2685
|
+
: undefined,
|
|
2686
|
+
example: isSet(object.example) ? globalThis.String(object.example) : "",
|
|
2687
|
+
};
|
|
2688
|
+
},
|
|
2689
|
+
toJSON(message) {
|
|
2690
|
+
const obj = {};
|
|
2691
|
+
if (message.jsonSchema !== undefined) {
|
|
2692
|
+
obj.jsonSchema = exports.JSONSchema.toJSON(message.jsonSchema);
|
|
2693
|
+
}
|
|
2694
|
+
if (message.discriminator !== "") {
|
|
2695
|
+
obj.discriminator = message.discriminator;
|
|
2696
|
+
}
|
|
2697
|
+
if (message.readOnly !== false) {
|
|
2698
|
+
obj.readOnly = message.readOnly;
|
|
2699
|
+
}
|
|
2700
|
+
if (message.externalDocs !== undefined) {
|
|
2701
|
+
obj.externalDocs = exports.ExternalDocumentation.toJSON(message.externalDocs);
|
|
2702
|
+
}
|
|
2703
|
+
if (message.example !== "") {
|
|
2704
|
+
obj.example = message.example;
|
|
2705
|
+
}
|
|
2706
|
+
return obj;
|
|
2707
|
+
},
|
|
2708
|
+
create(base) {
|
|
2709
|
+
return exports.Schema.fromPartial(base ?? {});
|
|
2710
|
+
},
|
|
2711
|
+
fromPartial(object) {
|
|
2712
|
+
const message = createBaseSchema();
|
|
2713
|
+
message.jsonSchema = (object.jsonSchema !== undefined && object.jsonSchema !== null)
|
|
2714
|
+
? exports.JSONSchema.fromPartial(object.jsonSchema)
|
|
2715
|
+
: undefined;
|
|
2716
|
+
message.discriminator = object.discriminator ?? "";
|
|
2717
|
+
message.readOnly = object.readOnly ?? false;
|
|
2718
|
+
message.externalDocs = (object.externalDocs !== undefined && object.externalDocs !== null)
|
|
2719
|
+
? exports.ExternalDocumentation.fromPartial(object.externalDocs)
|
|
2720
|
+
: undefined;
|
|
2721
|
+
message.example = object.example ?? "";
|
|
2722
|
+
return message;
|
|
2723
|
+
},
|
|
2724
|
+
};
|
|
2725
|
+
function createBaseEnumSchema() {
|
|
2726
|
+
return {
|
|
2727
|
+
description: "",
|
|
2728
|
+
default: "",
|
|
2729
|
+
title: "",
|
|
2730
|
+
required: false,
|
|
2731
|
+
readOnly: false,
|
|
2732
|
+
externalDocs: undefined,
|
|
2733
|
+
example: "",
|
|
2734
|
+
ref: "",
|
|
2735
|
+
extensions: {},
|
|
2736
|
+
};
|
|
2737
|
+
}
|
|
2738
|
+
exports.EnumSchema = {
|
|
2739
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
2740
|
+
if (message.description !== "") {
|
|
2741
|
+
writer.uint32(10).string(message.description);
|
|
2742
|
+
}
|
|
2743
|
+
if (message.default !== "") {
|
|
2744
|
+
writer.uint32(18).string(message.default);
|
|
2745
|
+
}
|
|
2746
|
+
if (message.title !== "") {
|
|
2747
|
+
writer.uint32(26).string(message.title);
|
|
2748
|
+
}
|
|
2749
|
+
if (message.required !== false) {
|
|
2750
|
+
writer.uint32(32).bool(message.required);
|
|
2751
|
+
}
|
|
2752
|
+
if (message.readOnly !== false) {
|
|
2753
|
+
writer.uint32(40).bool(message.readOnly);
|
|
2754
|
+
}
|
|
2755
|
+
if (message.externalDocs !== undefined) {
|
|
2756
|
+
exports.ExternalDocumentation.encode(message.externalDocs, writer.uint32(50).fork()).join();
|
|
2757
|
+
}
|
|
2758
|
+
if (message.example !== "") {
|
|
2759
|
+
writer.uint32(58).string(message.example);
|
|
2760
|
+
}
|
|
2761
|
+
if (message.ref !== "") {
|
|
2762
|
+
writer.uint32(66).string(message.ref);
|
|
2763
|
+
}
|
|
2764
|
+
globalThis.Object.entries(message.extensions).forEach(([key, value]) => {
|
|
2765
|
+
if (value !== undefined) {
|
|
2766
|
+
exports.EnumSchema_ExtensionsEntry.encode({ key: key, value }, writer.uint32(74).fork()).join();
|
|
2767
|
+
}
|
|
2768
|
+
});
|
|
2769
|
+
return writer;
|
|
2770
|
+
},
|
|
2771
|
+
decode(input, length) {
|
|
2772
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
2773
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
2774
|
+
if (previousRecursionDepth >= 100) {
|
|
2775
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
2776
|
+
}
|
|
2777
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
2778
|
+
try {
|
|
2779
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2780
|
+
const message = createBaseEnumSchema();
|
|
2781
|
+
while (reader.pos < end) {
|
|
2782
|
+
const tag = reader.uint32();
|
|
2783
|
+
switch (tag >>> 3) {
|
|
2784
|
+
case 1: {
|
|
2785
|
+
if (tag !== 10) {
|
|
2786
|
+
break;
|
|
2787
|
+
}
|
|
2788
|
+
message.description = reader.string();
|
|
2789
|
+
continue;
|
|
2790
|
+
}
|
|
2791
|
+
case 2: {
|
|
2792
|
+
if (tag !== 18) {
|
|
2793
|
+
break;
|
|
2794
|
+
}
|
|
2795
|
+
message.default = reader.string();
|
|
2796
|
+
continue;
|
|
2797
|
+
}
|
|
2798
|
+
case 3: {
|
|
2799
|
+
if (tag !== 26) {
|
|
2800
|
+
break;
|
|
2801
|
+
}
|
|
2802
|
+
message.title = reader.string();
|
|
2803
|
+
continue;
|
|
2804
|
+
}
|
|
2805
|
+
case 4: {
|
|
2806
|
+
if (tag !== 32) {
|
|
2807
|
+
break;
|
|
2808
|
+
}
|
|
2809
|
+
message.required = reader.bool();
|
|
2810
|
+
continue;
|
|
2811
|
+
}
|
|
2812
|
+
case 5: {
|
|
2813
|
+
if (tag !== 40) {
|
|
2814
|
+
break;
|
|
2815
|
+
}
|
|
2816
|
+
message.readOnly = reader.bool();
|
|
2817
|
+
continue;
|
|
2818
|
+
}
|
|
2819
|
+
case 6: {
|
|
2820
|
+
if (tag !== 50) {
|
|
2821
|
+
break;
|
|
2822
|
+
}
|
|
2823
|
+
message.externalDocs = exports.ExternalDocumentation.decode(reader, reader.uint32());
|
|
2824
|
+
continue;
|
|
2825
|
+
}
|
|
2826
|
+
case 7: {
|
|
2827
|
+
if (tag !== 58) {
|
|
2828
|
+
break;
|
|
2829
|
+
}
|
|
2830
|
+
message.example = reader.string();
|
|
2831
|
+
continue;
|
|
2832
|
+
}
|
|
2833
|
+
case 8: {
|
|
2834
|
+
if (tag !== 66) {
|
|
2835
|
+
break;
|
|
2836
|
+
}
|
|
2837
|
+
message.ref = reader.string();
|
|
2838
|
+
continue;
|
|
2839
|
+
}
|
|
2840
|
+
case 9: {
|
|
2841
|
+
if (tag !== 74) {
|
|
2842
|
+
break;
|
|
2843
|
+
}
|
|
2844
|
+
const entry9 = exports.EnumSchema_ExtensionsEntry.decode(reader, reader.uint32());
|
|
2845
|
+
if (entry9.value !== undefined) {
|
|
2846
|
+
message.extensions[entry9.key] = entry9.value;
|
|
2847
|
+
}
|
|
2848
|
+
continue;
|
|
2849
|
+
}
|
|
2850
|
+
}
|
|
2851
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2852
|
+
break;
|
|
2853
|
+
}
|
|
2854
|
+
reader.skip(tag & 7);
|
|
2855
|
+
}
|
|
2856
|
+
return message;
|
|
2857
|
+
}
|
|
2858
|
+
finally {
|
|
2859
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
2860
|
+
}
|
|
2861
|
+
},
|
|
2862
|
+
fromJSON(object) {
|
|
2863
|
+
return {
|
|
2864
|
+
description: isSet(object.description) ? globalThis.String(object.description) : "",
|
|
2865
|
+
default: isSet(object.default) ? globalThis.String(object.default) : "",
|
|
2866
|
+
title: isSet(object.title) ? globalThis.String(object.title) : "",
|
|
2867
|
+
required: isSet(object.required) ? globalThis.Boolean(object.required) : false,
|
|
2868
|
+
readOnly: isSet(object.readOnly)
|
|
2869
|
+
? globalThis.Boolean(object.readOnly)
|
|
2870
|
+
: isSet(object.read_only)
|
|
2871
|
+
? globalThis.Boolean(object.read_only)
|
|
2872
|
+
: false,
|
|
2873
|
+
externalDocs: isSet(object.externalDocs)
|
|
2874
|
+
? exports.ExternalDocumentation.fromJSON(object.externalDocs)
|
|
2875
|
+
: isSet(object.external_docs)
|
|
2876
|
+
? exports.ExternalDocumentation.fromJSON(object.external_docs)
|
|
2877
|
+
: undefined,
|
|
2878
|
+
example: isSet(object.example) ? globalThis.String(object.example) : "",
|
|
2879
|
+
ref: isSet(object.ref) ? globalThis.String(object.ref) : "",
|
|
2880
|
+
extensions: isObject(object.extensions)
|
|
2881
|
+
? globalThis.Object.entries(object.extensions).reduce((acc, [key, value]) => {
|
|
2882
|
+
globalThis.Object.defineProperty(acc, key, {
|
|
2883
|
+
value: value,
|
|
2884
|
+
enumerable: true,
|
|
2885
|
+
configurable: true,
|
|
2886
|
+
writable: true,
|
|
2887
|
+
});
|
|
2888
|
+
return acc;
|
|
2889
|
+
}, {})
|
|
2890
|
+
: {},
|
|
2891
|
+
};
|
|
2892
|
+
},
|
|
2893
|
+
toJSON(message) {
|
|
2894
|
+
const obj = {};
|
|
2895
|
+
if (message.description !== "") {
|
|
2896
|
+
obj.description = message.description;
|
|
2897
|
+
}
|
|
2898
|
+
if (message.default !== "") {
|
|
2899
|
+
obj.default = message.default;
|
|
2900
|
+
}
|
|
2901
|
+
if (message.title !== "") {
|
|
2902
|
+
obj.title = message.title;
|
|
2903
|
+
}
|
|
2904
|
+
if (message.required !== false) {
|
|
2905
|
+
obj.required = message.required;
|
|
2906
|
+
}
|
|
2907
|
+
if (message.readOnly !== false) {
|
|
2908
|
+
obj.readOnly = message.readOnly;
|
|
2909
|
+
}
|
|
2910
|
+
if (message.externalDocs !== undefined) {
|
|
2911
|
+
obj.externalDocs = exports.ExternalDocumentation.toJSON(message.externalDocs);
|
|
2912
|
+
}
|
|
2913
|
+
if (message.example !== "") {
|
|
2914
|
+
obj.example = message.example;
|
|
2915
|
+
}
|
|
2916
|
+
if (message.ref !== "") {
|
|
2917
|
+
obj.ref = message.ref;
|
|
2918
|
+
}
|
|
2919
|
+
if (message.extensions) {
|
|
2920
|
+
const entries = globalThis.Object.entries(message.extensions);
|
|
2921
|
+
if (entries.length > 0) {
|
|
2922
|
+
obj.extensions = {};
|
|
2923
|
+
entries.forEach(([k, v]) => {
|
|
2924
|
+
obj.extensions[k] = v;
|
|
2925
|
+
});
|
|
2926
|
+
}
|
|
2927
|
+
}
|
|
2928
|
+
return obj;
|
|
2929
|
+
},
|
|
2930
|
+
create(base) {
|
|
2931
|
+
return exports.EnumSchema.fromPartial(base ?? {});
|
|
2932
|
+
},
|
|
2933
|
+
fromPartial(object) {
|
|
2934
|
+
const message = createBaseEnumSchema();
|
|
2935
|
+
message.description = object.description ?? "";
|
|
2936
|
+
message.default = object.default ?? "";
|
|
2937
|
+
message.title = object.title ?? "";
|
|
2938
|
+
message.required = object.required ?? false;
|
|
2939
|
+
message.readOnly = object.readOnly ?? false;
|
|
2940
|
+
message.externalDocs = (object.externalDocs !== undefined && object.externalDocs !== null)
|
|
2941
|
+
? exports.ExternalDocumentation.fromPartial(object.externalDocs)
|
|
2942
|
+
: undefined;
|
|
2943
|
+
message.example = object.example ?? "";
|
|
2944
|
+
message.ref = object.ref ?? "";
|
|
2945
|
+
message.extensions = globalThis.Object.entries(object.extensions ?? {}).reduce((acc, [key, value]) => {
|
|
2946
|
+
if (value !== undefined) {
|
|
2947
|
+
acc[key] = value;
|
|
2948
|
+
}
|
|
2949
|
+
return acc;
|
|
2950
|
+
}, {});
|
|
2951
|
+
return message;
|
|
2952
|
+
},
|
|
2953
|
+
};
|
|
2954
|
+
function createBaseEnumSchema_ExtensionsEntry() {
|
|
2955
|
+
return { key: "", value: undefined };
|
|
2956
|
+
}
|
|
2957
|
+
exports.EnumSchema_ExtensionsEntry = {
|
|
2958
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
2959
|
+
if (message.key !== "") {
|
|
2960
|
+
writer.uint32(10).string(message.key);
|
|
2961
|
+
}
|
|
2962
|
+
if (message.value !== undefined) {
|
|
2963
|
+
struct_js_1.Value.encode(struct_js_1.Value.wrap(message.value), writer.uint32(18).fork()).join();
|
|
2964
|
+
}
|
|
2965
|
+
return writer;
|
|
2966
|
+
},
|
|
2967
|
+
decode(input, length) {
|
|
2968
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
2969
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
2970
|
+
if (previousRecursionDepth >= 100) {
|
|
2971
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
2972
|
+
}
|
|
2973
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
2974
|
+
try {
|
|
2975
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2976
|
+
const message = createBaseEnumSchema_ExtensionsEntry();
|
|
2977
|
+
while (reader.pos < end) {
|
|
2978
|
+
const tag = reader.uint32();
|
|
2979
|
+
switch (tag >>> 3) {
|
|
2980
|
+
case 1: {
|
|
2981
|
+
if (tag !== 10) {
|
|
2982
|
+
break;
|
|
2983
|
+
}
|
|
2984
|
+
message.key = reader.string();
|
|
2985
|
+
continue;
|
|
2986
|
+
}
|
|
2987
|
+
case 2: {
|
|
2988
|
+
if (tag !== 18) {
|
|
2989
|
+
break;
|
|
2990
|
+
}
|
|
2991
|
+
message.value = struct_js_1.Value.unwrap(struct_js_1.Value.decode(reader, reader.uint32()));
|
|
2992
|
+
continue;
|
|
2993
|
+
}
|
|
2994
|
+
}
|
|
2995
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2996
|
+
break;
|
|
2997
|
+
}
|
|
2998
|
+
reader.skip(tag & 7);
|
|
2999
|
+
}
|
|
3000
|
+
return message;
|
|
3001
|
+
}
|
|
3002
|
+
finally {
|
|
3003
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
3004
|
+
}
|
|
3005
|
+
},
|
|
3006
|
+
fromJSON(object) {
|
|
3007
|
+
return {
|
|
3008
|
+
key: isSet(object.key) ? globalThis.String(object.key) : "",
|
|
3009
|
+
value: isSet(object?.value) ? object.value : undefined,
|
|
3010
|
+
};
|
|
3011
|
+
},
|
|
3012
|
+
toJSON(message) {
|
|
3013
|
+
const obj = {};
|
|
3014
|
+
if (message.key !== "") {
|
|
3015
|
+
obj.key = message.key;
|
|
3016
|
+
}
|
|
3017
|
+
if (message.value !== undefined) {
|
|
3018
|
+
obj.value = message.value;
|
|
3019
|
+
}
|
|
3020
|
+
return obj;
|
|
3021
|
+
},
|
|
3022
|
+
create(base) {
|
|
3023
|
+
return exports.EnumSchema_ExtensionsEntry.fromPartial(base ?? {});
|
|
3024
|
+
},
|
|
3025
|
+
fromPartial(object) {
|
|
3026
|
+
const message = createBaseEnumSchema_ExtensionsEntry();
|
|
3027
|
+
message.key = object.key ?? "";
|
|
3028
|
+
message.value = object.value ?? undefined;
|
|
3029
|
+
return message;
|
|
3030
|
+
},
|
|
3031
|
+
};
|
|
3032
|
+
function createBaseJSONSchema() {
|
|
3033
|
+
return {
|
|
3034
|
+
ref: "",
|
|
3035
|
+
title: "",
|
|
3036
|
+
description: "",
|
|
3037
|
+
default: "",
|
|
3038
|
+
readOnly: false,
|
|
3039
|
+
example: "",
|
|
3040
|
+
multipleOf: 0,
|
|
3041
|
+
maximum: 0,
|
|
3042
|
+
exclusiveMaximum: false,
|
|
3043
|
+
minimum: 0,
|
|
3044
|
+
exclusiveMinimum: false,
|
|
3045
|
+
maxLength: 0n,
|
|
3046
|
+
minLength: 0n,
|
|
3047
|
+
pattern: "",
|
|
3048
|
+
maxItems: 0n,
|
|
3049
|
+
minItems: 0n,
|
|
3050
|
+
uniqueItems: false,
|
|
3051
|
+
maxProperties: 0n,
|
|
3052
|
+
minProperties: 0n,
|
|
3053
|
+
required: [],
|
|
3054
|
+
array: [],
|
|
3055
|
+
type: [],
|
|
3056
|
+
format: "",
|
|
3057
|
+
enum: [],
|
|
3058
|
+
fieldConfiguration: undefined,
|
|
3059
|
+
extensions: {},
|
|
3060
|
+
};
|
|
3061
|
+
}
|
|
3062
|
+
exports.JSONSchema = {
|
|
3063
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
3064
|
+
if (message.ref !== "") {
|
|
3065
|
+
writer.uint32(26).string(message.ref);
|
|
3066
|
+
}
|
|
3067
|
+
if (message.title !== "") {
|
|
3068
|
+
writer.uint32(42).string(message.title);
|
|
3069
|
+
}
|
|
3070
|
+
if (message.description !== "") {
|
|
3071
|
+
writer.uint32(50).string(message.description);
|
|
3072
|
+
}
|
|
3073
|
+
if (message.default !== "") {
|
|
3074
|
+
writer.uint32(58).string(message.default);
|
|
3075
|
+
}
|
|
3076
|
+
if (message.readOnly !== false) {
|
|
3077
|
+
writer.uint32(64).bool(message.readOnly);
|
|
3078
|
+
}
|
|
3079
|
+
if (message.example !== "") {
|
|
3080
|
+
writer.uint32(74).string(message.example);
|
|
3081
|
+
}
|
|
3082
|
+
if (message.multipleOf !== 0) {
|
|
3083
|
+
writer.uint32(81).double(message.multipleOf);
|
|
3084
|
+
}
|
|
3085
|
+
if (message.maximum !== 0) {
|
|
3086
|
+
writer.uint32(89).double(message.maximum);
|
|
3087
|
+
}
|
|
3088
|
+
if (message.exclusiveMaximum !== false) {
|
|
3089
|
+
writer.uint32(96).bool(message.exclusiveMaximum);
|
|
3090
|
+
}
|
|
3091
|
+
if (message.minimum !== 0) {
|
|
3092
|
+
writer.uint32(105).double(message.minimum);
|
|
3093
|
+
}
|
|
3094
|
+
if (message.exclusiveMinimum !== false) {
|
|
3095
|
+
writer.uint32(112).bool(message.exclusiveMinimum);
|
|
3096
|
+
}
|
|
3097
|
+
if (message.maxLength !== 0n) {
|
|
3098
|
+
if (BigInt.asUintN(64, message.maxLength) !== message.maxLength) {
|
|
3099
|
+
throw new globalThis.Error("value provided for field message.maxLength of type uint64 too large");
|
|
3100
|
+
}
|
|
3101
|
+
writer.uint32(120).uint64(message.maxLength);
|
|
3102
|
+
}
|
|
3103
|
+
if (message.minLength !== 0n) {
|
|
3104
|
+
if (BigInt.asUintN(64, message.minLength) !== message.minLength) {
|
|
3105
|
+
throw new globalThis.Error("value provided for field message.minLength of type uint64 too large");
|
|
3106
|
+
}
|
|
3107
|
+
writer.uint32(128).uint64(message.minLength);
|
|
3108
|
+
}
|
|
3109
|
+
if (message.pattern !== "") {
|
|
3110
|
+
writer.uint32(138).string(message.pattern);
|
|
3111
|
+
}
|
|
3112
|
+
if (message.maxItems !== 0n) {
|
|
3113
|
+
if (BigInt.asUintN(64, message.maxItems) !== message.maxItems) {
|
|
3114
|
+
throw new globalThis.Error("value provided for field message.maxItems of type uint64 too large");
|
|
3115
|
+
}
|
|
3116
|
+
writer.uint32(160).uint64(message.maxItems);
|
|
3117
|
+
}
|
|
3118
|
+
if (message.minItems !== 0n) {
|
|
3119
|
+
if (BigInt.asUintN(64, message.minItems) !== message.minItems) {
|
|
3120
|
+
throw new globalThis.Error("value provided for field message.minItems of type uint64 too large");
|
|
3121
|
+
}
|
|
3122
|
+
writer.uint32(168).uint64(message.minItems);
|
|
3123
|
+
}
|
|
3124
|
+
if (message.uniqueItems !== false) {
|
|
3125
|
+
writer.uint32(176).bool(message.uniqueItems);
|
|
3126
|
+
}
|
|
3127
|
+
if (message.maxProperties !== 0n) {
|
|
3128
|
+
if (BigInt.asUintN(64, message.maxProperties) !== message.maxProperties) {
|
|
3129
|
+
throw new globalThis.Error("value provided for field message.maxProperties of type uint64 too large");
|
|
3130
|
+
}
|
|
3131
|
+
writer.uint32(192).uint64(message.maxProperties);
|
|
3132
|
+
}
|
|
3133
|
+
if (message.minProperties !== 0n) {
|
|
3134
|
+
if (BigInt.asUintN(64, message.minProperties) !== message.minProperties) {
|
|
3135
|
+
throw new globalThis.Error("value provided for field message.minProperties of type uint64 too large");
|
|
3136
|
+
}
|
|
3137
|
+
writer.uint32(200).uint64(message.minProperties);
|
|
3138
|
+
}
|
|
3139
|
+
for (const v of message.required) {
|
|
3140
|
+
writer.uint32(210).string(v);
|
|
3141
|
+
}
|
|
3142
|
+
for (const v of message.array) {
|
|
3143
|
+
writer.uint32(274).string(v);
|
|
3144
|
+
}
|
|
3145
|
+
writer.uint32(282).fork();
|
|
3146
|
+
for (const v of message.type) {
|
|
3147
|
+
writer.int32(v);
|
|
3148
|
+
}
|
|
3149
|
+
writer.join();
|
|
3150
|
+
if (message.format !== "") {
|
|
3151
|
+
writer.uint32(290).string(message.format);
|
|
3152
|
+
}
|
|
3153
|
+
for (const v of message.enum) {
|
|
3154
|
+
writer.uint32(370).string(v);
|
|
3155
|
+
}
|
|
3156
|
+
if (message.fieldConfiguration !== undefined) {
|
|
3157
|
+
exports.JSONSchema_FieldConfiguration.encode(message.fieldConfiguration, writer.uint32(8010).fork()).join();
|
|
3158
|
+
}
|
|
3159
|
+
globalThis.Object.entries(message.extensions).forEach(([key, value]) => {
|
|
3160
|
+
if (value !== undefined) {
|
|
3161
|
+
exports.JSONSchema_ExtensionsEntry.encode({ key: key, value }, writer.uint32(386).fork()).join();
|
|
3162
|
+
}
|
|
3163
|
+
});
|
|
3164
|
+
return writer;
|
|
3165
|
+
},
|
|
3166
|
+
decode(input, length) {
|
|
3167
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
3168
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
3169
|
+
if (previousRecursionDepth >= 100) {
|
|
3170
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
3171
|
+
}
|
|
3172
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
3173
|
+
try {
|
|
3174
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
3175
|
+
const message = createBaseJSONSchema();
|
|
3176
|
+
while (reader.pos < end) {
|
|
3177
|
+
const tag = reader.uint32();
|
|
3178
|
+
switch (tag >>> 3) {
|
|
3179
|
+
case 3: {
|
|
3180
|
+
if (tag !== 26) {
|
|
3181
|
+
break;
|
|
3182
|
+
}
|
|
3183
|
+
message.ref = reader.string();
|
|
3184
|
+
continue;
|
|
3185
|
+
}
|
|
3186
|
+
case 5: {
|
|
3187
|
+
if (tag !== 42) {
|
|
3188
|
+
break;
|
|
3189
|
+
}
|
|
3190
|
+
message.title = reader.string();
|
|
3191
|
+
continue;
|
|
3192
|
+
}
|
|
3193
|
+
case 6: {
|
|
3194
|
+
if (tag !== 50) {
|
|
3195
|
+
break;
|
|
3196
|
+
}
|
|
3197
|
+
message.description = reader.string();
|
|
3198
|
+
continue;
|
|
3199
|
+
}
|
|
3200
|
+
case 7: {
|
|
3201
|
+
if (tag !== 58) {
|
|
3202
|
+
break;
|
|
3203
|
+
}
|
|
3204
|
+
message.default = reader.string();
|
|
3205
|
+
continue;
|
|
3206
|
+
}
|
|
3207
|
+
case 8: {
|
|
3208
|
+
if (tag !== 64) {
|
|
3209
|
+
break;
|
|
3210
|
+
}
|
|
3211
|
+
message.readOnly = reader.bool();
|
|
3212
|
+
continue;
|
|
3213
|
+
}
|
|
3214
|
+
case 9: {
|
|
3215
|
+
if (tag !== 74) {
|
|
3216
|
+
break;
|
|
3217
|
+
}
|
|
3218
|
+
message.example = reader.string();
|
|
3219
|
+
continue;
|
|
3220
|
+
}
|
|
3221
|
+
case 10: {
|
|
3222
|
+
if (tag !== 81) {
|
|
3223
|
+
break;
|
|
3224
|
+
}
|
|
3225
|
+
message.multipleOf = reader.double();
|
|
3226
|
+
continue;
|
|
3227
|
+
}
|
|
3228
|
+
case 11: {
|
|
3229
|
+
if (tag !== 89) {
|
|
3230
|
+
break;
|
|
3231
|
+
}
|
|
3232
|
+
message.maximum = reader.double();
|
|
3233
|
+
continue;
|
|
3234
|
+
}
|
|
3235
|
+
case 12: {
|
|
3236
|
+
if (tag !== 96) {
|
|
3237
|
+
break;
|
|
3238
|
+
}
|
|
3239
|
+
message.exclusiveMaximum = reader.bool();
|
|
3240
|
+
continue;
|
|
3241
|
+
}
|
|
3242
|
+
case 13: {
|
|
3243
|
+
if (tag !== 105) {
|
|
3244
|
+
break;
|
|
3245
|
+
}
|
|
3246
|
+
message.minimum = reader.double();
|
|
3247
|
+
continue;
|
|
3248
|
+
}
|
|
3249
|
+
case 14: {
|
|
3250
|
+
if (tag !== 112) {
|
|
3251
|
+
break;
|
|
3252
|
+
}
|
|
3253
|
+
message.exclusiveMinimum = reader.bool();
|
|
3254
|
+
continue;
|
|
3255
|
+
}
|
|
3256
|
+
case 15: {
|
|
3257
|
+
if (tag !== 120) {
|
|
3258
|
+
break;
|
|
3259
|
+
}
|
|
3260
|
+
message.maxLength = reader.uint64();
|
|
3261
|
+
continue;
|
|
3262
|
+
}
|
|
3263
|
+
case 16: {
|
|
3264
|
+
if (tag !== 128) {
|
|
3265
|
+
break;
|
|
3266
|
+
}
|
|
3267
|
+
message.minLength = reader.uint64();
|
|
3268
|
+
continue;
|
|
3269
|
+
}
|
|
3270
|
+
case 17: {
|
|
3271
|
+
if (tag !== 138) {
|
|
3272
|
+
break;
|
|
3273
|
+
}
|
|
3274
|
+
message.pattern = reader.string();
|
|
3275
|
+
continue;
|
|
3276
|
+
}
|
|
3277
|
+
case 20: {
|
|
3278
|
+
if (tag !== 160) {
|
|
3279
|
+
break;
|
|
3280
|
+
}
|
|
3281
|
+
message.maxItems = reader.uint64();
|
|
3282
|
+
continue;
|
|
3283
|
+
}
|
|
3284
|
+
case 21: {
|
|
3285
|
+
if (tag !== 168) {
|
|
3286
|
+
break;
|
|
3287
|
+
}
|
|
3288
|
+
message.minItems = reader.uint64();
|
|
3289
|
+
continue;
|
|
3290
|
+
}
|
|
3291
|
+
case 22: {
|
|
3292
|
+
if (tag !== 176) {
|
|
3293
|
+
break;
|
|
3294
|
+
}
|
|
3295
|
+
message.uniqueItems = reader.bool();
|
|
3296
|
+
continue;
|
|
3297
|
+
}
|
|
3298
|
+
case 24: {
|
|
3299
|
+
if (tag !== 192) {
|
|
3300
|
+
break;
|
|
3301
|
+
}
|
|
3302
|
+
message.maxProperties = reader.uint64();
|
|
3303
|
+
continue;
|
|
3304
|
+
}
|
|
3305
|
+
case 25: {
|
|
3306
|
+
if (tag !== 200) {
|
|
3307
|
+
break;
|
|
3308
|
+
}
|
|
3309
|
+
message.minProperties = reader.uint64();
|
|
3310
|
+
continue;
|
|
3311
|
+
}
|
|
3312
|
+
case 26: {
|
|
3313
|
+
if (tag !== 210) {
|
|
3314
|
+
break;
|
|
3315
|
+
}
|
|
3316
|
+
message.required.push(reader.string());
|
|
3317
|
+
continue;
|
|
3318
|
+
}
|
|
3319
|
+
case 34: {
|
|
3320
|
+
if (tag !== 274) {
|
|
3321
|
+
break;
|
|
3322
|
+
}
|
|
3323
|
+
message.array.push(reader.string());
|
|
3324
|
+
continue;
|
|
3325
|
+
}
|
|
3326
|
+
case 35: {
|
|
3327
|
+
if (tag === 280) {
|
|
3328
|
+
message.type.push(reader.int32());
|
|
3329
|
+
continue;
|
|
3330
|
+
}
|
|
3331
|
+
if (tag === 282) {
|
|
3332
|
+
const end2 = reader.uint32() + reader.pos;
|
|
3333
|
+
while (reader.pos < end2) {
|
|
3334
|
+
message.type.push(reader.int32());
|
|
3335
|
+
}
|
|
3336
|
+
continue;
|
|
3337
|
+
}
|
|
3338
|
+
break;
|
|
3339
|
+
}
|
|
3340
|
+
case 36: {
|
|
3341
|
+
if (tag !== 290) {
|
|
3342
|
+
break;
|
|
3343
|
+
}
|
|
3344
|
+
message.format = reader.string();
|
|
3345
|
+
continue;
|
|
3346
|
+
}
|
|
3347
|
+
case 46: {
|
|
3348
|
+
if (tag !== 370) {
|
|
3349
|
+
break;
|
|
3350
|
+
}
|
|
3351
|
+
message.enum.push(reader.string());
|
|
3352
|
+
continue;
|
|
3353
|
+
}
|
|
3354
|
+
case 1001: {
|
|
3355
|
+
if (tag !== 8010) {
|
|
3356
|
+
break;
|
|
3357
|
+
}
|
|
3358
|
+
message.fieldConfiguration = exports.JSONSchema_FieldConfiguration.decode(reader, reader.uint32());
|
|
3359
|
+
continue;
|
|
3360
|
+
}
|
|
3361
|
+
case 48: {
|
|
3362
|
+
if (tag !== 386) {
|
|
3363
|
+
break;
|
|
3364
|
+
}
|
|
3365
|
+
const entry48 = exports.JSONSchema_ExtensionsEntry.decode(reader, reader.uint32());
|
|
3366
|
+
if (entry48.value !== undefined) {
|
|
3367
|
+
message.extensions[entry48.key] = entry48.value;
|
|
3368
|
+
}
|
|
3369
|
+
continue;
|
|
3370
|
+
}
|
|
3371
|
+
}
|
|
3372
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3373
|
+
break;
|
|
3374
|
+
}
|
|
3375
|
+
reader.skip(tag & 7);
|
|
3376
|
+
}
|
|
3377
|
+
return message;
|
|
3378
|
+
}
|
|
3379
|
+
finally {
|
|
3380
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
3381
|
+
}
|
|
3382
|
+
},
|
|
3383
|
+
fromJSON(object) {
|
|
3384
|
+
return {
|
|
3385
|
+
ref: isSet(object.ref) ? globalThis.String(object.ref) : "",
|
|
3386
|
+
title: isSet(object.title) ? globalThis.String(object.title) : "",
|
|
3387
|
+
description: isSet(object.description) ? globalThis.String(object.description) : "",
|
|
3388
|
+
default: isSet(object.default) ? globalThis.String(object.default) : "",
|
|
3389
|
+
readOnly: isSet(object.readOnly)
|
|
3390
|
+
? globalThis.Boolean(object.readOnly)
|
|
3391
|
+
: isSet(object.read_only)
|
|
3392
|
+
? globalThis.Boolean(object.read_only)
|
|
3393
|
+
: false,
|
|
3394
|
+
example: isSet(object.example) ? globalThis.String(object.example) : "",
|
|
3395
|
+
multipleOf: isSet(object.multipleOf)
|
|
3396
|
+
? globalThis.Number(object.multipleOf)
|
|
3397
|
+
: isSet(object.multiple_of)
|
|
3398
|
+
? globalThis.Number(object.multiple_of)
|
|
3399
|
+
: 0,
|
|
3400
|
+
maximum: isSet(object.maximum) ? globalThis.Number(object.maximum) : 0,
|
|
3401
|
+
exclusiveMaximum: isSet(object.exclusiveMaximum)
|
|
3402
|
+
? globalThis.Boolean(object.exclusiveMaximum)
|
|
3403
|
+
: isSet(object.exclusive_maximum)
|
|
3404
|
+
? globalThis.Boolean(object.exclusive_maximum)
|
|
3405
|
+
: false,
|
|
3406
|
+
minimum: isSet(object.minimum) ? globalThis.Number(object.minimum) : 0,
|
|
3407
|
+
exclusiveMinimum: isSet(object.exclusiveMinimum)
|
|
3408
|
+
? globalThis.Boolean(object.exclusiveMinimum)
|
|
3409
|
+
: isSet(object.exclusive_minimum)
|
|
3410
|
+
? globalThis.Boolean(object.exclusive_minimum)
|
|
3411
|
+
: false,
|
|
3412
|
+
maxLength: isSet(object.maxLength)
|
|
3413
|
+
? BigInt(object.maxLength)
|
|
3414
|
+
: isSet(object.max_length)
|
|
3415
|
+
? BigInt(object.max_length)
|
|
3416
|
+
: 0n,
|
|
3417
|
+
minLength: isSet(object.minLength)
|
|
3418
|
+
? BigInt(object.minLength)
|
|
3419
|
+
: isSet(object.min_length)
|
|
3420
|
+
? BigInt(object.min_length)
|
|
3421
|
+
: 0n,
|
|
3422
|
+
pattern: isSet(object.pattern) ? globalThis.String(object.pattern) : "",
|
|
3423
|
+
maxItems: isSet(object.maxItems)
|
|
3424
|
+
? BigInt(object.maxItems)
|
|
3425
|
+
: isSet(object.max_items)
|
|
3426
|
+
? BigInt(object.max_items)
|
|
3427
|
+
: 0n,
|
|
3428
|
+
minItems: isSet(object.minItems)
|
|
3429
|
+
? BigInt(object.minItems)
|
|
3430
|
+
: isSet(object.min_items)
|
|
3431
|
+
? BigInt(object.min_items)
|
|
3432
|
+
: 0n,
|
|
3433
|
+
uniqueItems: isSet(object.uniqueItems)
|
|
3434
|
+
? globalThis.Boolean(object.uniqueItems)
|
|
3435
|
+
: isSet(object.unique_items)
|
|
3436
|
+
? globalThis.Boolean(object.unique_items)
|
|
3437
|
+
: false,
|
|
3438
|
+
maxProperties: isSet(object.maxProperties)
|
|
3439
|
+
? BigInt(object.maxProperties)
|
|
3440
|
+
: isSet(object.max_properties)
|
|
3441
|
+
? BigInt(object.max_properties)
|
|
3442
|
+
: 0n,
|
|
3443
|
+
minProperties: isSet(object.minProperties)
|
|
3444
|
+
? BigInt(object.minProperties)
|
|
3445
|
+
: isSet(object.min_properties)
|
|
3446
|
+
? BigInt(object.min_properties)
|
|
3447
|
+
: 0n,
|
|
3448
|
+
required: globalThis.Array.isArray(object?.required)
|
|
3449
|
+
? object.required.map((e) => globalThis.String(e))
|
|
3450
|
+
: [],
|
|
3451
|
+
array: globalThis.Array.isArray(object?.array)
|
|
3452
|
+
? object.array.map((e) => globalThis.String(e))
|
|
3453
|
+
: [],
|
|
3454
|
+
type: globalThis.Array.isArray(object?.type)
|
|
3455
|
+
? object.type.map((e) => jSONSchema_JSONSchemaSimpleTypesFromJSON(e))
|
|
3456
|
+
: [],
|
|
3457
|
+
format: isSet(object.format) ? globalThis.String(object.format) : "",
|
|
3458
|
+
enum: globalThis.Array.isArray(object?.enum)
|
|
3459
|
+
? object.enum.map((e) => globalThis.String(e))
|
|
3460
|
+
: [],
|
|
3461
|
+
fieldConfiguration: isSet(object.fieldConfiguration)
|
|
3462
|
+
? exports.JSONSchema_FieldConfiguration.fromJSON(object.fieldConfiguration)
|
|
3463
|
+
: isSet(object.field_configuration)
|
|
3464
|
+
? exports.JSONSchema_FieldConfiguration.fromJSON(object.field_configuration)
|
|
3465
|
+
: undefined,
|
|
3466
|
+
extensions: isObject(object.extensions)
|
|
3467
|
+
? globalThis.Object.entries(object.extensions).reduce((acc, [key, value]) => {
|
|
3468
|
+
globalThis.Object.defineProperty(acc, key, {
|
|
3469
|
+
value: value,
|
|
3470
|
+
enumerable: true,
|
|
3471
|
+
configurable: true,
|
|
3472
|
+
writable: true,
|
|
3473
|
+
});
|
|
3474
|
+
return acc;
|
|
3475
|
+
}, {})
|
|
3476
|
+
: {},
|
|
3477
|
+
};
|
|
3478
|
+
},
|
|
3479
|
+
toJSON(message) {
|
|
3480
|
+
const obj = {};
|
|
3481
|
+
if (message.ref !== "") {
|
|
3482
|
+
obj.ref = message.ref;
|
|
3483
|
+
}
|
|
3484
|
+
if (message.title !== "") {
|
|
3485
|
+
obj.title = message.title;
|
|
3486
|
+
}
|
|
3487
|
+
if (message.description !== "") {
|
|
3488
|
+
obj.description = message.description;
|
|
3489
|
+
}
|
|
3490
|
+
if (message.default !== "") {
|
|
3491
|
+
obj.default = message.default;
|
|
3492
|
+
}
|
|
3493
|
+
if (message.readOnly !== false) {
|
|
3494
|
+
obj.readOnly = message.readOnly;
|
|
3495
|
+
}
|
|
3496
|
+
if (message.example !== "") {
|
|
3497
|
+
obj.example = message.example;
|
|
3498
|
+
}
|
|
3499
|
+
if (message.multipleOf !== 0) {
|
|
3500
|
+
obj.multipleOf = message.multipleOf;
|
|
3501
|
+
}
|
|
3502
|
+
if (message.maximum !== 0) {
|
|
3503
|
+
obj.maximum = message.maximum;
|
|
3504
|
+
}
|
|
3505
|
+
if (message.exclusiveMaximum !== false) {
|
|
3506
|
+
obj.exclusiveMaximum = message.exclusiveMaximum;
|
|
3507
|
+
}
|
|
3508
|
+
if (message.minimum !== 0) {
|
|
3509
|
+
obj.minimum = message.minimum;
|
|
3510
|
+
}
|
|
3511
|
+
if (message.exclusiveMinimum !== false) {
|
|
3512
|
+
obj.exclusiveMinimum = message.exclusiveMinimum;
|
|
3513
|
+
}
|
|
3514
|
+
if (message.maxLength !== 0n) {
|
|
3515
|
+
obj.maxLength = message.maxLength.toString();
|
|
3516
|
+
}
|
|
3517
|
+
if (message.minLength !== 0n) {
|
|
3518
|
+
obj.minLength = message.minLength.toString();
|
|
3519
|
+
}
|
|
3520
|
+
if (message.pattern !== "") {
|
|
3521
|
+
obj.pattern = message.pattern;
|
|
3522
|
+
}
|
|
3523
|
+
if (message.maxItems !== 0n) {
|
|
3524
|
+
obj.maxItems = message.maxItems.toString();
|
|
3525
|
+
}
|
|
3526
|
+
if (message.minItems !== 0n) {
|
|
3527
|
+
obj.minItems = message.minItems.toString();
|
|
3528
|
+
}
|
|
3529
|
+
if (message.uniqueItems !== false) {
|
|
3530
|
+
obj.uniqueItems = message.uniqueItems;
|
|
3531
|
+
}
|
|
3532
|
+
if (message.maxProperties !== 0n) {
|
|
3533
|
+
obj.maxProperties = message.maxProperties.toString();
|
|
3534
|
+
}
|
|
3535
|
+
if (message.minProperties !== 0n) {
|
|
3536
|
+
obj.minProperties = message.minProperties.toString();
|
|
3537
|
+
}
|
|
3538
|
+
if (message.required?.length) {
|
|
3539
|
+
obj.required = message.required;
|
|
3540
|
+
}
|
|
3541
|
+
if (message.array?.length) {
|
|
3542
|
+
obj.array = message.array;
|
|
3543
|
+
}
|
|
3544
|
+
if (message.type?.length) {
|
|
3545
|
+
obj.type = message.type.map((e) => jSONSchema_JSONSchemaSimpleTypesToJSON(e));
|
|
3546
|
+
}
|
|
3547
|
+
if (message.format !== "") {
|
|
3548
|
+
obj.format = message.format;
|
|
3549
|
+
}
|
|
3550
|
+
if (message.enum?.length) {
|
|
3551
|
+
obj.enum = message.enum;
|
|
3552
|
+
}
|
|
3553
|
+
if (message.fieldConfiguration !== undefined) {
|
|
3554
|
+
obj.fieldConfiguration = exports.JSONSchema_FieldConfiguration.toJSON(message.fieldConfiguration);
|
|
3555
|
+
}
|
|
3556
|
+
if (message.extensions) {
|
|
3557
|
+
const entries = globalThis.Object.entries(message.extensions);
|
|
3558
|
+
if (entries.length > 0) {
|
|
3559
|
+
obj.extensions = {};
|
|
3560
|
+
entries.forEach(([k, v]) => {
|
|
3561
|
+
obj.extensions[k] = v;
|
|
3562
|
+
});
|
|
3563
|
+
}
|
|
3564
|
+
}
|
|
3565
|
+
return obj;
|
|
3566
|
+
},
|
|
3567
|
+
create(base) {
|
|
3568
|
+
return exports.JSONSchema.fromPartial(base ?? {});
|
|
3569
|
+
},
|
|
3570
|
+
fromPartial(object) {
|
|
3571
|
+
const message = createBaseJSONSchema();
|
|
3572
|
+
message.ref = object.ref ?? "";
|
|
3573
|
+
message.title = object.title ?? "";
|
|
3574
|
+
message.description = object.description ?? "";
|
|
3575
|
+
message.default = object.default ?? "";
|
|
3576
|
+
message.readOnly = object.readOnly ?? false;
|
|
3577
|
+
message.example = object.example ?? "";
|
|
3578
|
+
message.multipleOf = object.multipleOf ?? 0;
|
|
3579
|
+
message.maximum = object.maximum ?? 0;
|
|
3580
|
+
message.exclusiveMaximum = object.exclusiveMaximum ?? false;
|
|
3581
|
+
message.minimum = object.minimum ?? 0;
|
|
3582
|
+
message.exclusiveMinimum = object.exclusiveMinimum ?? false;
|
|
3583
|
+
message.maxLength = (object.maxLength !== undefined && object.maxLength !== null) ? BigInt(object.maxLength) : 0n;
|
|
3584
|
+
message.minLength = (object.minLength !== undefined && object.minLength !== null) ? BigInt(object.minLength) : 0n;
|
|
3585
|
+
message.pattern = object.pattern ?? "";
|
|
3586
|
+
message.maxItems = (object.maxItems !== undefined && object.maxItems !== null) ? BigInt(object.maxItems) : 0n;
|
|
3587
|
+
message.minItems = (object.minItems !== undefined && object.minItems !== null) ? BigInt(object.minItems) : 0n;
|
|
3588
|
+
message.uniqueItems = object.uniqueItems ?? false;
|
|
3589
|
+
message.maxProperties = (object.maxProperties !== undefined && object.maxProperties !== null)
|
|
3590
|
+
? BigInt(object.maxProperties)
|
|
3591
|
+
: 0n;
|
|
3592
|
+
message.minProperties = (object.minProperties !== undefined && object.minProperties !== null)
|
|
3593
|
+
? BigInt(object.minProperties)
|
|
3594
|
+
: 0n;
|
|
3595
|
+
message.required = object.required?.map((e) => e) || [];
|
|
3596
|
+
message.array = object.array?.map((e) => e) || [];
|
|
3597
|
+
message.type = object.type?.map((e) => e) || [];
|
|
3598
|
+
message.format = object.format ?? "";
|
|
3599
|
+
message.enum = object.enum?.map((e) => e) || [];
|
|
3600
|
+
message.fieldConfiguration = (object.fieldConfiguration !== undefined && object.fieldConfiguration !== null)
|
|
3601
|
+
? exports.JSONSchema_FieldConfiguration.fromPartial(object.fieldConfiguration)
|
|
3602
|
+
: undefined;
|
|
3603
|
+
message.extensions = globalThis.Object.entries(object.extensions ?? {}).reduce((acc, [key, value]) => {
|
|
3604
|
+
if (value !== undefined) {
|
|
3605
|
+
acc[key] = value;
|
|
3606
|
+
}
|
|
3607
|
+
return acc;
|
|
3608
|
+
}, {});
|
|
3609
|
+
return message;
|
|
3610
|
+
},
|
|
3611
|
+
};
|
|
3612
|
+
function createBaseJSONSchema_FieldConfiguration() {
|
|
3613
|
+
return { pathParamName: "", deprecated: false };
|
|
3614
|
+
}
|
|
3615
|
+
exports.JSONSchema_FieldConfiguration = {
|
|
3616
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
3617
|
+
if (message.pathParamName !== "") {
|
|
3618
|
+
writer.uint32(378).string(message.pathParamName);
|
|
3619
|
+
}
|
|
3620
|
+
if (message.deprecated !== false) {
|
|
3621
|
+
writer.uint32(392).bool(message.deprecated);
|
|
3622
|
+
}
|
|
3623
|
+
return writer;
|
|
3624
|
+
},
|
|
3625
|
+
decode(input, length) {
|
|
3626
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
3627
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
3628
|
+
if (previousRecursionDepth >= 100) {
|
|
3629
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
3630
|
+
}
|
|
3631
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
3632
|
+
try {
|
|
3633
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
3634
|
+
const message = createBaseJSONSchema_FieldConfiguration();
|
|
3635
|
+
while (reader.pos < end) {
|
|
3636
|
+
const tag = reader.uint32();
|
|
3637
|
+
switch (tag >>> 3) {
|
|
3638
|
+
case 47: {
|
|
3639
|
+
if (tag !== 378) {
|
|
3640
|
+
break;
|
|
3641
|
+
}
|
|
3642
|
+
message.pathParamName = reader.string();
|
|
3643
|
+
continue;
|
|
3644
|
+
}
|
|
3645
|
+
case 49: {
|
|
3646
|
+
if (tag !== 392) {
|
|
3647
|
+
break;
|
|
3648
|
+
}
|
|
3649
|
+
message.deprecated = reader.bool();
|
|
3650
|
+
continue;
|
|
3651
|
+
}
|
|
3652
|
+
}
|
|
3653
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3654
|
+
break;
|
|
3655
|
+
}
|
|
3656
|
+
reader.skip(tag & 7);
|
|
3657
|
+
}
|
|
3658
|
+
return message;
|
|
3659
|
+
}
|
|
3660
|
+
finally {
|
|
3661
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
3662
|
+
}
|
|
3663
|
+
},
|
|
3664
|
+
fromJSON(object) {
|
|
3665
|
+
return {
|
|
3666
|
+
pathParamName: isSet(object.pathParamName)
|
|
3667
|
+
? globalThis.String(object.pathParamName)
|
|
3668
|
+
: isSet(object.path_param_name)
|
|
3669
|
+
? globalThis.String(object.path_param_name)
|
|
3670
|
+
: "",
|
|
3671
|
+
deprecated: isSet(object.deprecated) ? globalThis.Boolean(object.deprecated) : false,
|
|
3672
|
+
};
|
|
3673
|
+
},
|
|
3674
|
+
toJSON(message) {
|
|
3675
|
+
const obj = {};
|
|
3676
|
+
if (message.pathParamName !== "") {
|
|
3677
|
+
obj.pathParamName = message.pathParamName;
|
|
3678
|
+
}
|
|
3679
|
+
if (message.deprecated !== false) {
|
|
3680
|
+
obj.deprecated = message.deprecated;
|
|
3681
|
+
}
|
|
3682
|
+
return obj;
|
|
3683
|
+
},
|
|
3684
|
+
create(base) {
|
|
3685
|
+
return exports.JSONSchema_FieldConfiguration.fromPartial(base ?? {});
|
|
3686
|
+
},
|
|
3687
|
+
fromPartial(object) {
|
|
3688
|
+
const message = createBaseJSONSchema_FieldConfiguration();
|
|
3689
|
+
message.pathParamName = object.pathParamName ?? "";
|
|
3690
|
+
message.deprecated = object.deprecated ?? false;
|
|
3691
|
+
return message;
|
|
3692
|
+
},
|
|
3693
|
+
};
|
|
3694
|
+
function createBaseJSONSchema_ExtensionsEntry() {
|
|
3695
|
+
return { key: "", value: undefined };
|
|
3696
|
+
}
|
|
3697
|
+
exports.JSONSchema_ExtensionsEntry = {
|
|
3698
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
3699
|
+
if (message.key !== "") {
|
|
3700
|
+
writer.uint32(10).string(message.key);
|
|
3701
|
+
}
|
|
3702
|
+
if (message.value !== undefined) {
|
|
3703
|
+
struct_js_1.Value.encode(struct_js_1.Value.wrap(message.value), writer.uint32(18).fork()).join();
|
|
3704
|
+
}
|
|
3705
|
+
return writer;
|
|
3706
|
+
},
|
|
3707
|
+
decode(input, length) {
|
|
3708
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
3709
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
3710
|
+
if (previousRecursionDepth >= 100) {
|
|
3711
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
3712
|
+
}
|
|
3713
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
3714
|
+
try {
|
|
3715
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
3716
|
+
const message = createBaseJSONSchema_ExtensionsEntry();
|
|
3717
|
+
while (reader.pos < end) {
|
|
3718
|
+
const tag = reader.uint32();
|
|
3719
|
+
switch (tag >>> 3) {
|
|
3720
|
+
case 1: {
|
|
3721
|
+
if (tag !== 10) {
|
|
3722
|
+
break;
|
|
3723
|
+
}
|
|
3724
|
+
message.key = reader.string();
|
|
3725
|
+
continue;
|
|
3726
|
+
}
|
|
3727
|
+
case 2: {
|
|
3728
|
+
if (tag !== 18) {
|
|
3729
|
+
break;
|
|
3730
|
+
}
|
|
3731
|
+
message.value = struct_js_1.Value.unwrap(struct_js_1.Value.decode(reader, reader.uint32()));
|
|
3732
|
+
continue;
|
|
3733
|
+
}
|
|
3734
|
+
}
|
|
3735
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3736
|
+
break;
|
|
3737
|
+
}
|
|
3738
|
+
reader.skip(tag & 7);
|
|
3739
|
+
}
|
|
3740
|
+
return message;
|
|
3741
|
+
}
|
|
3742
|
+
finally {
|
|
3743
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
3744
|
+
}
|
|
3745
|
+
},
|
|
3746
|
+
fromJSON(object) {
|
|
3747
|
+
return {
|
|
3748
|
+
key: isSet(object.key) ? globalThis.String(object.key) : "",
|
|
3749
|
+
value: isSet(object?.value) ? object.value : undefined,
|
|
3750
|
+
};
|
|
3751
|
+
},
|
|
3752
|
+
toJSON(message) {
|
|
3753
|
+
const obj = {};
|
|
3754
|
+
if (message.key !== "") {
|
|
3755
|
+
obj.key = message.key;
|
|
3756
|
+
}
|
|
3757
|
+
if (message.value !== undefined) {
|
|
3758
|
+
obj.value = message.value;
|
|
3759
|
+
}
|
|
3760
|
+
return obj;
|
|
3761
|
+
},
|
|
3762
|
+
create(base) {
|
|
3763
|
+
return exports.JSONSchema_ExtensionsEntry.fromPartial(base ?? {});
|
|
3764
|
+
},
|
|
3765
|
+
fromPartial(object) {
|
|
3766
|
+
const message = createBaseJSONSchema_ExtensionsEntry();
|
|
3767
|
+
message.key = object.key ?? "";
|
|
3768
|
+
message.value = object.value ?? undefined;
|
|
3769
|
+
return message;
|
|
3770
|
+
},
|
|
3771
|
+
};
|
|
3772
|
+
function createBaseTag() {
|
|
3773
|
+
return { name: "", description: "", externalDocs: undefined, extensions: {} };
|
|
3774
|
+
}
|
|
3775
|
+
exports.Tag = {
|
|
3776
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
3777
|
+
if (message.name !== "") {
|
|
3778
|
+
writer.uint32(10).string(message.name);
|
|
3779
|
+
}
|
|
3780
|
+
if (message.description !== "") {
|
|
3781
|
+
writer.uint32(18).string(message.description);
|
|
3782
|
+
}
|
|
3783
|
+
if (message.externalDocs !== undefined) {
|
|
3784
|
+
exports.ExternalDocumentation.encode(message.externalDocs, writer.uint32(26).fork()).join();
|
|
3785
|
+
}
|
|
3786
|
+
globalThis.Object.entries(message.extensions).forEach(([key, value]) => {
|
|
3787
|
+
if (value !== undefined) {
|
|
3788
|
+
exports.Tag_ExtensionsEntry.encode({ key: key, value }, writer.uint32(34).fork()).join();
|
|
3789
|
+
}
|
|
3790
|
+
});
|
|
3791
|
+
return writer;
|
|
3792
|
+
},
|
|
3793
|
+
decode(input, length) {
|
|
3794
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
3795
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
3796
|
+
if (previousRecursionDepth >= 100) {
|
|
3797
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
3798
|
+
}
|
|
3799
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
3800
|
+
try {
|
|
3801
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
3802
|
+
const message = createBaseTag();
|
|
3803
|
+
while (reader.pos < end) {
|
|
3804
|
+
const tag = reader.uint32();
|
|
3805
|
+
switch (tag >>> 3) {
|
|
3806
|
+
case 1: {
|
|
3807
|
+
if (tag !== 10) {
|
|
3808
|
+
break;
|
|
3809
|
+
}
|
|
3810
|
+
message.name = reader.string();
|
|
3811
|
+
continue;
|
|
3812
|
+
}
|
|
3813
|
+
case 2: {
|
|
3814
|
+
if (tag !== 18) {
|
|
3815
|
+
break;
|
|
3816
|
+
}
|
|
3817
|
+
message.description = reader.string();
|
|
3818
|
+
continue;
|
|
3819
|
+
}
|
|
3820
|
+
case 3: {
|
|
3821
|
+
if (tag !== 26) {
|
|
3822
|
+
break;
|
|
3823
|
+
}
|
|
3824
|
+
message.externalDocs = exports.ExternalDocumentation.decode(reader, reader.uint32());
|
|
3825
|
+
continue;
|
|
3826
|
+
}
|
|
3827
|
+
case 4: {
|
|
3828
|
+
if (tag !== 34) {
|
|
3829
|
+
break;
|
|
3830
|
+
}
|
|
3831
|
+
const entry4 = exports.Tag_ExtensionsEntry.decode(reader, reader.uint32());
|
|
3832
|
+
if (entry4.value !== undefined) {
|
|
3833
|
+
message.extensions[entry4.key] = entry4.value;
|
|
3834
|
+
}
|
|
3835
|
+
continue;
|
|
3836
|
+
}
|
|
3837
|
+
}
|
|
3838
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3839
|
+
break;
|
|
3840
|
+
}
|
|
3841
|
+
reader.skip(tag & 7);
|
|
3842
|
+
}
|
|
3843
|
+
return message;
|
|
3844
|
+
}
|
|
3845
|
+
finally {
|
|
3846
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
3847
|
+
}
|
|
3848
|
+
},
|
|
3849
|
+
fromJSON(object) {
|
|
3850
|
+
return {
|
|
3851
|
+
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
3852
|
+
description: isSet(object.description) ? globalThis.String(object.description) : "",
|
|
3853
|
+
externalDocs: isSet(object.externalDocs)
|
|
3854
|
+
? exports.ExternalDocumentation.fromJSON(object.externalDocs)
|
|
3855
|
+
: isSet(object.external_docs)
|
|
3856
|
+
? exports.ExternalDocumentation.fromJSON(object.external_docs)
|
|
3857
|
+
: undefined,
|
|
3858
|
+
extensions: isObject(object.extensions)
|
|
3859
|
+
? globalThis.Object.entries(object.extensions).reduce((acc, [key, value]) => {
|
|
3860
|
+
globalThis.Object.defineProperty(acc, key, {
|
|
3861
|
+
value: value,
|
|
3862
|
+
enumerable: true,
|
|
3863
|
+
configurable: true,
|
|
3864
|
+
writable: true,
|
|
3865
|
+
});
|
|
3866
|
+
return acc;
|
|
3867
|
+
}, {})
|
|
3868
|
+
: {},
|
|
3869
|
+
};
|
|
3870
|
+
},
|
|
3871
|
+
toJSON(message) {
|
|
3872
|
+
const obj = {};
|
|
3873
|
+
if (message.name !== "") {
|
|
3874
|
+
obj.name = message.name;
|
|
3875
|
+
}
|
|
3876
|
+
if (message.description !== "") {
|
|
3877
|
+
obj.description = message.description;
|
|
3878
|
+
}
|
|
3879
|
+
if (message.externalDocs !== undefined) {
|
|
3880
|
+
obj.externalDocs = exports.ExternalDocumentation.toJSON(message.externalDocs);
|
|
3881
|
+
}
|
|
3882
|
+
if (message.extensions) {
|
|
3883
|
+
const entries = globalThis.Object.entries(message.extensions);
|
|
3884
|
+
if (entries.length > 0) {
|
|
3885
|
+
obj.extensions = {};
|
|
3886
|
+
entries.forEach(([k, v]) => {
|
|
3887
|
+
obj.extensions[k] = v;
|
|
3888
|
+
});
|
|
3889
|
+
}
|
|
3890
|
+
}
|
|
3891
|
+
return obj;
|
|
3892
|
+
},
|
|
3893
|
+
create(base) {
|
|
3894
|
+
return exports.Tag.fromPartial(base ?? {});
|
|
3895
|
+
},
|
|
3896
|
+
fromPartial(object) {
|
|
3897
|
+
const message = createBaseTag();
|
|
3898
|
+
message.name = object.name ?? "";
|
|
3899
|
+
message.description = object.description ?? "";
|
|
3900
|
+
message.externalDocs = (object.externalDocs !== undefined && object.externalDocs !== null)
|
|
3901
|
+
? exports.ExternalDocumentation.fromPartial(object.externalDocs)
|
|
3902
|
+
: undefined;
|
|
3903
|
+
message.extensions = globalThis.Object.entries(object.extensions ?? {}).reduce((acc, [key, value]) => {
|
|
3904
|
+
if (value !== undefined) {
|
|
3905
|
+
acc[key] = value;
|
|
3906
|
+
}
|
|
3907
|
+
return acc;
|
|
3908
|
+
}, {});
|
|
3909
|
+
return message;
|
|
3910
|
+
},
|
|
3911
|
+
};
|
|
3912
|
+
function createBaseTag_ExtensionsEntry() {
|
|
3913
|
+
return { key: "", value: undefined };
|
|
3914
|
+
}
|
|
3915
|
+
exports.Tag_ExtensionsEntry = {
|
|
3916
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
3917
|
+
if (message.key !== "") {
|
|
3918
|
+
writer.uint32(10).string(message.key);
|
|
3919
|
+
}
|
|
3920
|
+
if (message.value !== undefined) {
|
|
3921
|
+
struct_js_1.Value.encode(struct_js_1.Value.wrap(message.value), writer.uint32(18).fork()).join();
|
|
3922
|
+
}
|
|
3923
|
+
return writer;
|
|
3924
|
+
},
|
|
3925
|
+
decode(input, length) {
|
|
3926
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
3927
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
3928
|
+
if (previousRecursionDepth >= 100) {
|
|
3929
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
3930
|
+
}
|
|
3931
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
3932
|
+
try {
|
|
3933
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
3934
|
+
const message = createBaseTag_ExtensionsEntry();
|
|
3935
|
+
while (reader.pos < end) {
|
|
3936
|
+
const tag = reader.uint32();
|
|
3937
|
+
switch (tag >>> 3) {
|
|
3938
|
+
case 1: {
|
|
3939
|
+
if (tag !== 10) {
|
|
3940
|
+
break;
|
|
3941
|
+
}
|
|
3942
|
+
message.key = reader.string();
|
|
3943
|
+
continue;
|
|
3944
|
+
}
|
|
3945
|
+
case 2: {
|
|
3946
|
+
if (tag !== 18) {
|
|
3947
|
+
break;
|
|
3948
|
+
}
|
|
3949
|
+
message.value = struct_js_1.Value.unwrap(struct_js_1.Value.decode(reader, reader.uint32()));
|
|
3950
|
+
continue;
|
|
3951
|
+
}
|
|
3952
|
+
}
|
|
3953
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3954
|
+
break;
|
|
3955
|
+
}
|
|
3956
|
+
reader.skip(tag & 7);
|
|
3957
|
+
}
|
|
3958
|
+
return message;
|
|
3959
|
+
}
|
|
3960
|
+
finally {
|
|
3961
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
3962
|
+
}
|
|
3963
|
+
},
|
|
3964
|
+
fromJSON(object) {
|
|
3965
|
+
return {
|
|
3966
|
+
key: isSet(object.key) ? globalThis.String(object.key) : "",
|
|
3967
|
+
value: isSet(object?.value) ? object.value : undefined,
|
|
3968
|
+
};
|
|
3969
|
+
},
|
|
3970
|
+
toJSON(message) {
|
|
3971
|
+
const obj = {};
|
|
3972
|
+
if (message.key !== "") {
|
|
3973
|
+
obj.key = message.key;
|
|
3974
|
+
}
|
|
3975
|
+
if (message.value !== undefined) {
|
|
3976
|
+
obj.value = message.value;
|
|
3977
|
+
}
|
|
3978
|
+
return obj;
|
|
3979
|
+
},
|
|
3980
|
+
create(base) {
|
|
3981
|
+
return exports.Tag_ExtensionsEntry.fromPartial(base ?? {});
|
|
3982
|
+
},
|
|
3983
|
+
fromPartial(object) {
|
|
3984
|
+
const message = createBaseTag_ExtensionsEntry();
|
|
3985
|
+
message.key = object.key ?? "";
|
|
3986
|
+
message.value = object.value ?? undefined;
|
|
3987
|
+
return message;
|
|
3988
|
+
},
|
|
3989
|
+
};
|
|
3990
|
+
function createBaseSecurityDefinitions() {
|
|
3991
|
+
return { security: {} };
|
|
3992
|
+
}
|
|
3993
|
+
exports.SecurityDefinitions = {
|
|
3994
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
3995
|
+
globalThis.Object.entries(message.security).forEach(([key, value]) => {
|
|
3996
|
+
exports.SecurityDefinitions_SecurityEntry.encode({ key: key, value }, writer.uint32(10).fork()).join();
|
|
3997
|
+
});
|
|
3998
|
+
return writer;
|
|
3999
|
+
},
|
|
4000
|
+
decode(input, length) {
|
|
4001
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
4002
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
4003
|
+
if (previousRecursionDepth >= 100) {
|
|
4004
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
4005
|
+
}
|
|
4006
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
4007
|
+
try {
|
|
4008
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
4009
|
+
const message = createBaseSecurityDefinitions();
|
|
4010
|
+
while (reader.pos < end) {
|
|
4011
|
+
const tag = reader.uint32();
|
|
4012
|
+
switch (tag >>> 3) {
|
|
4013
|
+
case 1: {
|
|
4014
|
+
if (tag !== 10) {
|
|
4015
|
+
break;
|
|
4016
|
+
}
|
|
4017
|
+
const entry1 = exports.SecurityDefinitions_SecurityEntry.decode(reader, reader.uint32());
|
|
4018
|
+
if (entry1.value !== undefined) {
|
|
4019
|
+
message.security[entry1.key] = entry1.value;
|
|
4020
|
+
}
|
|
4021
|
+
continue;
|
|
4022
|
+
}
|
|
4023
|
+
}
|
|
4024
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
4025
|
+
break;
|
|
4026
|
+
}
|
|
4027
|
+
reader.skip(tag & 7);
|
|
4028
|
+
}
|
|
4029
|
+
return message;
|
|
4030
|
+
}
|
|
4031
|
+
finally {
|
|
4032
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
4033
|
+
}
|
|
4034
|
+
},
|
|
4035
|
+
fromJSON(object) {
|
|
4036
|
+
return {
|
|
4037
|
+
security: isObject(object.security)
|
|
4038
|
+
? globalThis.Object.entries(object.security).reduce((acc, [key, value]) => {
|
|
4039
|
+
globalThis.Object.defineProperty(acc, key, {
|
|
4040
|
+
value: exports.SecurityScheme.fromJSON(value),
|
|
4041
|
+
enumerable: true,
|
|
4042
|
+
configurable: true,
|
|
4043
|
+
writable: true,
|
|
4044
|
+
});
|
|
4045
|
+
return acc;
|
|
4046
|
+
}, {})
|
|
4047
|
+
: {},
|
|
4048
|
+
};
|
|
4049
|
+
},
|
|
4050
|
+
toJSON(message) {
|
|
4051
|
+
const obj = {};
|
|
4052
|
+
if (message.security) {
|
|
4053
|
+
const entries = globalThis.Object.entries(message.security);
|
|
4054
|
+
if (entries.length > 0) {
|
|
4055
|
+
obj.security = {};
|
|
4056
|
+
entries.forEach(([k, v]) => {
|
|
4057
|
+
obj.security[k] = exports.SecurityScheme.toJSON(v);
|
|
4058
|
+
});
|
|
4059
|
+
}
|
|
4060
|
+
}
|
|
4061
|
+
return obj;
|
|
4062
|
+
},
|
|
4063
|
+
create(base) {
|
|
4064
|
+
return exports.SecurityDefinitions.fromPartial(base ?? {});
|
|
4065
|
+
},
|
|
4066
|
+
fromPartial(object) {
|
|
4067
|
+
const message = createBaseSecurityDefinitions();
|
|
4068
|
+
message.security = globalThis.Object.entries(object.security ?? {}).reduce((acc, [key, value]) => {
|
|
4069
|
+
if (value !== undefined) {
|
|
4070
|
+
acc[key] = exports.SecurityScheme.fromPartial(value);
|
|
4071
|
+
}
|
|
4072
|
+
return acc;
|
|
4073
|
+
}, {});
|
|
4074
|
+
return message;
|
|
4075
|
+
},
|
|
4076
|
+
};
|
|
4077
|
+
function createBaseSecurityDefinitions_SecurityEntry() {
|
|
4078
|
+
return { key: "", value: undefined };
|
|
4079
|
+
}
|
|
4080
|
+
exports.SecurityDefinitions_SecurityEntry = {
|
|
4081
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
4082
|
+
if (message.key !== "") {
|
|
4083
|
+
writer.uint32(10).string(message.key);
|
|
4084
|
+
}
|
|
4085
|
+
if (message.value !== undefined) {
|
|
4086
|
+
exports.SecurityScheme.encode(message.value, writer.uint32(18).fork()).join();
|
|
4087
|
+
}
|
|
4088
|
+
return writer;
|
|
4089
|
+
},
|
|
4090
|
+
decode(input, length) {
|
|
4091
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
4092
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
4093
|
+
if (previousRecursionDepth >= 100) {
|
|
4094
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
4095
|
+
}
|
|
4096
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
4097
|
+
try {
|
|
4098
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
4099
|
+
const message = createBaseSecurityDefinitions_SecurityEntry();
|
|
4100
|
+
while (reader.pos < end) {
|
|
4101
|
+
const tag = reader.uint32();
|
|
4102
|
+
switch (tag >>> 3) {
|
|
4103
|
+
case 1: {
|
|
4104
|
+
if (tag !== 10) {
|
|
4105
|
+
break;
|
|
4106
|
+
}
|
|
4107
|
+
message.key = reader.string();
|
|
4108
|
+
continue;
|
|
4109
|
+
}
|
|
4110
|
+
case 2: {
|
|
4111
|
+
if (tag !== 18) {
|
|
4112
|
+
break;
|
|
4113
|
+
}
|
|
4114
|
+
message.value = exports.SecurityScheme.decode(reader, reader.uint32());
|
|
4115
|
+
continue;
|
|
4116
|
+
}
|
|
4117
|
+
}
|
|
4118
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
4119
|
+
break;
|
|
4120
|
+
}
|
|
4121
|
+
reader.skip(tag & 7);
|
|
4122
|
+
}
|
|
4123
|
+
return message;
|
|
4124
|
+
}
|
|
4125
|
+
finally {
|
|
4126
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
4127
|
+
}
|
|
4128
|
+
},
|
|
4129
|
+
fromJSON(object) {
|
|
4130
|
+
return {
|
|
4131
|
+
key: isSet(object.key) ? globalThis.String(object.key) : "",
|
|
4132
|
+
value: isSet(object.value) ? exports.SecurityScheme.fromJSON(object.value) : undefined,
|
|
4133
|
+
};
|
|
4134
|
+
},
|
|
4135
|
+
toJSON(message) {
|
|
4136
|
+
const obj = {};
|
|
4137
|
+
if (message.key !== "") {
|
|
4138
|
+
obj.key = message.key;
|
|
4139
|
+
}
|
|
4140
|
+
if (message.value !== undefined) {
|
|
4141
|
+
obj.value = exports.SecurityScheme.toJSON(message.value);
|
|
4142
|
+
}
|
|
4143
|
+
return obj;
|
|
4144
|
+
},
|
|
4145
|
+
create(base) {
|
|
4146
|
+
return exports.SecurityDefinitions_SecurityEntry.fromPartial(base ?? {});
|
|
4147
|
+
},
|
|
4148
|
+
fromPartial(object) {
|
|
4149
|
+
const message = createBaseSecurityDefinitions_SecurityEntry();
|
|
4150
|
+
message.key = object.key ?? "";
|
|
4151
|
+
message.value = (object.value !== undefined && object.value !== null)
|
|
4152
|
+
? exports.SecurityScheme.fromPartial(object.value)
|
|
4153
|
+
: undefined;
|
|
4154
|
+
return message;
|
|
4155
|
+
},
|
|
4156
|
+
};
|
|
4157
|
+
function createBaseSecurityScheme() {
|
|
4158
|
+
return {
|
|
4159
|
+
type: 0,
|
|
4160
|
+
description: "",
|
|
4161
|
+
name: "",
|
|
4162
|
+
in: 0,
|
|
4163
|
+
flow: 0,
|
|
4164
|
+
authorizationUrl: "",
|
|
4165
|
+
tokenUrl: "",
|
|
4166
|
+
scopes: undefined,
|
|
4167
|
+
extensions: {},
|
|
4168
|
+
};
|
|
4169
|
+
}
|
|
4170
|
+
exports.SecurityScheme = {
|
|
4171
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
4172
|
+
if (message.type !== 0) {
|
|
4173
|
+
writer.uint32(8).int32(message.type);
|
|
4174
|
+
}
|
|
4175
|
+
if (message.description !== "") {
|
|
4176
|
+
writer.uint32(18).string(message.description);
|
|
4177
|
+
}
|
|
4178
|
+
if (message.name !== "") {
|
|
4179
|
+
writer.uint32(26).string(message.name);
|
|
4180
|
+
}
|
|
4181
|
+
if (message.in !== 0) {
|
|
4182
|
+
writer.uint32(32).int32(message.in);
|
|
4183
|
+
}
|
|
4184
|
+
if (message.flow !== 0) {
|
|
4185
|
+
writer.uint32(40).int32(message.flow);
|
|
4186
|
+
}
|
|
4187
|
+
if (message.authorizationUrl !== "") {
|
|
4188
|
+
writer.uint32(50).string(message.authorizationUrl);
|
|
4189
|
+
}
|
|
4190
|
+
if (message.tokenUrl !== "") {
|
|
4191
|
+
writer.uint32(58).string(message.tokenUrl);
|
|
4192
|
+
}
|
|
4193
|
+
if (message.scopes !== undefined) {
|
|
4194
|
+
exports.Scopes.encode(message.scopes, writer.uint32(66).fork()).join();
|
|
4195
|
+
}
|
|
4196
|
+
globalThis.Object.entries(message.extensions).forEach(([key, value]) => {
|
|
4197
|
+
if (value !== undefined) {
|
|
4198
|
+
exports.SecurityScheme_ExtensionsEntry.encode({ key: key, value }, writer.uint32(74).fork()).join();
|
|
4199
|
+
}
|
|
4200
|
+
});
|
|
4201
|
+
return writer;
|
|
4202
|
+
},
|
|
4203
|
+
decode(input, length) {
|
|
4204
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
4205
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
4206
|
+
if (previousRecursionDepth >= 100) {
|
|
4207
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
4208
|
+
}
|
|
4209
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
4210
|
+
try {
|
|
4211
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
4212
|
+
const message = createBaseSecurityScheme();
|
|
4213
|
+
while (reader.pos < end) {
|
|
4214
|
+
const tag = reader.uint32();
|
|
4215
|
+
switch (tag >>> 3) {
|
|
4216
|
+
case 1: {
|
|
4217
|
+
if (tag !== 8) {
|
|
4218
|
+
break;
|
|
4219
|
+
}
|
|
4220
|
+
message.type = reader.int32();
|
|
4221
|
+
continue;
|
|
4222
|
+
}
|
|
4223
|
+
case 2: {
|
|
4224
|
+
if (tag !== 18) {
|
|
4225
|
+
break;
|
|
4226
|
+
}
|
|
4227
|
+
message.description = reader.string();
|
|
4228
|
+
continue;
|
|
4229
|
+
}
|
|
4230
|
+
case 3: {
|
|
4231
|
+
if (tag !== 26) {
|
|
4232
|
+
break;
|
|
4233
|
+
}
|
|
4234
|
+
message.name = reader.string();
|
|
4235
|
+
continue;
|
|
4236
|
+
}
|
|
4237
|
+
case 4: {
|
|
4238
|
+
if (tag !== 32) {
|
|
4239
|
+
break;
|
|
4240
|
+
}
|
|
4241
|
+
message.in = reader.int32();
|
|
4242
|
+
continue;
|
|
4243
|
+
}
|
|
4244
|
+
case 5: {
|
|
4245
|
+
if (tag !== 40) {
|
|
4246
|
+
break;
|
|
4247
|
+
}
|
|
4248
|
+
message.flow = reader.int32();
|
|
4249
|
+
continue;
|
|
4250
|
+
}
|
|
4251
|
+
case 6: {
|
|
4252
|
+
if (tag !== 50) {
|
|
4253
|
+
break;
|
|
4254
|
+
}
|
|
4255
|
+
message.authorizationUrl = reader.string();
|
|
4256
|
+
continue;
|
|
4257
|
+
}
|
|
4258
|
+
case 7: {
|
|
4259
|
+
if (tag !== 58) {
|
|
4260
|
+
break;
|
|
4261
|
+
}
|
|
4262
|
+
message.tokenUrl = reader.string();
|
|
4263
|
+
continue;
|
|
4264
|
+
}
|
|
4265
|
+
case 8: {
|
|
4266
|
+
if (tag !== 66) {
|
|
4267
|
+
break;
|
|
4268
|
+
}
|
|
4269
|
+
message.scopes = exports.Scopes.decode(reader, reader.uint32());
|
|
4270
|
+
continue;
|
|
4271
|
+
}
|
|
4272
|
+
case 9: {
|
|
4273
|
+
if (tag !== 74) {
|
|
4274
|
+
break;
|
|
4275
|
+
}
|
|
4276
|
+
const entry9 = exports.SecurityScheme_ExtensionsEntry.decode(reader, reader.uint32());
|
|
4277
|
+
if (entry9.value !== undefined) {
|
|
4278
|
+
message.extensions[entry9.key] = entry9.value;
|
|
4279
|
+
}
|
|
4280
|
+
continue;
|
|
4281
|
+
}
|
|
4282
|
+
}
|
|
4283
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
4284
|
+
break;
|
|
4285
|
+
}
|
|
4286
|
+
reader.skip(tag & 7);
|
|
4287
|
+
}
|
|
4288
|
+
return message;
|
|
4289
|
+
}
|
|
4290
|
+
finally {
|
|
4291
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
4292
|
+
}
|
|
4293
|
+
},
|
|
4294
|
+
fromJSON(object) {
|
|
4295
|
+
return {
|
|
4296
|
+
type: isSet(object.type) ? securityScheme_TypeFromJSON(object.type) : 0,
|
|
4297
|
+
description: isSet(object.description) ? globalThis.String(object.description) : "",
|
|
4298
|
+
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
4299
|
+
in: isSet(object.in) ? securityScheme_InFromJSON(object.in) : 0,
|
|
4300
|
+
flow: isSet(object.flow) ? securityScheme_FlowFromJSON(object.flow) : 0,
|
|
4301
|
+
authorizationUrl: isSet(object.authorizationUrl)
|
|
4302
|
+
? globalThis.String(object.authorizationUrl)
|
|
4303
|
+
: isSet(object.authorization_url)
|
|
4304
|
+
? globalThis.String(object.authorization_url)
|
|
4305
|
+
: "",
|
|
4306
|
+
tokenUrl: isSet(object.tokenUrl)
|
|
4307
|
+
? globalThis.String(object.tokenUrl)
|
|
4308
|
+
: isSet(object.token_url)
|
|
4309
|
+
? globalThis.String(object.token_url)
|
|
4310
|
+
: "",
|
|
4311
|
+
scopes: isSet(object.scopes) ? exports.Scopes.fromJSON(object.scopes) : undefined,
|
|
4312
|
+
extensions: isObject(object.extensions)
|
|
4313
|
+
? globalThis.Object.entries(object.extensions).reduce((acc, [key, value]) => {
|
|
4314
|
+
globalThis.Object.defineProperty(acc, key, {
|
|
4315
|
+
value: value,
|
|
4316
|
+
enumerable: true,
|
|
4317
|
+
configurable: true,
|
|
4318
|
+
writable: true,
|
|
4319
|
+
});
|
|
4320
|
+
return acc;
|
|
4321
|
+
}, {})
|
|
4322
|
+
: {},
|
|
4323
|
+
};
|
|
4324
|
+
},
|
|
4325
|
+
toJSON(message) {
|
|
4326
|
+
const obj = {};
|
|
4327
|
+
if (message.type !== 0) {
|
|
4328
|
+
obj.type = securityScheme_TypeToJSON(message.type);
|
|
4329
|
+
}
|
|
4330
|
+
if (message.description !== "") {
|
|
4331
|
+
obj.description = message.description;
|
|
4332
|
+
}
|
|
4333
|
+
if (message.name !== "") {
|
|
4334
|
+
obj.name = message.name;
|
|
4335
|
+
}
|
|
4336
|
+
if (message.in !== 0) {
|
|
4337
|
+
obj.in = securityScheme_InToJSON(message.in);
|
|
4338
|
+
}
|
|
4339
|
+
if (message.flow !== 0) {
|
|
4340
|
+
obj.flow = securityScheme_FlowToJSON(message.flow);
|
|
4341
|
+
}
|
|
4342
|
+
if (message.authorizationUrl !== "") {
|
|
4343
|
+
obj.authorizationUrl = message.authorizationUrl;
|
|
4344
|
+
}
|
|
4345
|
+
if (message.tokenUrl !== "") {
|
|
4346
|
+
obj.tokenUrl = message.tokenUrl;
|
|
4347
|
+
}
|
|
4348
|
+
if (message.scopes !== undefined) {
|
|
4349
|
+
obj.scopes = exports.Scopes.toJSON(message.scopes);
|
|
4350
|
+
}
|
|
4351
|
+
if (message.extensions) {
|
|
4352
|
+
const entries = globalThis.Object.entries(message.extensions);
|
|
4353
|
+
if (entries.length > 0) {
|
|
4354
|
+
obj.extensions = {};
|
|
4355
|
+
entries.forEach(([k, v]) => {
|
|
4356
|
+
obj.extensions[k] = v;
|
|
4357
|
+
});
|
|
4358
|
+
}
|
|
4359
|
+
}
|
|
4360
|
+
return obj;
|
|
4361
|
+
},
|
|
4362
|
+
create(base) {
|
|
4363
|
+
return exports.SecurityScheme.fromPartial(base ?? {});
|
|
4364
|
+
},
|
|
4365
|
+
fromPartial(object) {
|
|
4366
|
+
const message = createBaseSecurityScheme();
|
|
4367
|
+
message.type = object.type ?? 0;
|
|
4368
|
+
message.description = object.description ?? "";
|
|
4369
|
+
message.name = object.name ?? "";
|
|
4370
|
+
message.in = object.in ?? 0;
|
|
4371
|
+
message.flow = object.flow ?? 0;
|
|
4372
|
+
message.authorizationUrl = object.authorizationUrl ?? "";
|
|
4373
|
+
message.tokenUrl = object.tokenUrl ?? "";
|
|
4374
|
+
message.scopes = (object.scopes !== undefined && object.scopes !== null)
|
|
4375
|
+
? exports.Scopes.fromPartial(object.scopes)
|
|
4376
|
+
: undefined;
|
|
4377
|
+
message.extensions = globalThis.Object.entries(object.extensions ?? {}).reduce((acc, [key, value]) => {
|
|
4378
|
+
if (value !== undefined) {
|
|
4379
|
+
acc[key] = value;
|
|
4380
|
+
}
|
|
4381
|
+
return acc;
|
|
4382
|
+
}, {});
|
|
4383
|
+
return message;
|
|
4384
|
+
},
|
|
4385
|
+
};
|
|
4386
|
+
function createBaseSecurityScheme_ExtensionsEntry() {
|
|
4387
|
+
return { key: "", value: undefined };
|
|
4388
|
+
}
|
|
4389
|
+
exports.SecurityScheme_ExtensionsEntry = {
|
|
4390
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
4391
|
+
if (message.key !== "") {
|
|
4392
|
+
writer.uint32(10).string(message.key);
|
|
4393
|
+
}
|
|
4394
|
+
if (message.value !== undefined) {
|
|
4395
|
+
struct_js_1.Value.encode(struct_js_1.Value.wrap(message.value), writer.uint32(18).fork()).join();
|
|
4396
|
+
}
|
|
4397
|
+
return writer;
|
|
4398
|
+
},
|
|
4399
|
+
decode(input, length) {
|
|
4400
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
4401
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
4402
|
+
if (previousRecursionDepth >= 100) {
|
|
4403
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
4404
|
+
}
|
|
4405
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
4406
|
+
try {
|
|
4407
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
4408
|
+
const message = createBaseSecurityScheme_ExtensionsEntry();
|
|
4409
|
+
while (reader.pos < end) {
|
|
4410
|
+
const tag = reader.uint32();
|
|
4411
|
+
switch (tag >>> 3) {
|
|
4412
|
+
case 1: {
|
|
4413
|
+
if (tag !== 10) {
|
|
4414
|
+
break;
|
|
4415
|
+
}
|
|
4416
|
+
message.key = reader.string();
|
|
4417
|
+
continue;
|
|
4418
|
+
}
|
|
4419
|
+
case 2: {
|
|
4420
|
+
if (tag !== 18) {
|
|
4421
|
+
break;
|
|
4422
|
+
}
|
|
4423
|
+
message.value = struct_js_1.Value.unwrap(struct_js_1.Value.decode(reader, reader.uint32()));
|
|
4424
|
+
continue;
|
|
4425
|
+
}
|
|
4426
|
+
}
|
|
4427
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
4428
|
+
break;
|
|
4429
|
+
}
|
|
4430
|
+
reader.skip(tag & 7);
|
|
4431
|
+
}
|
|
4432
|
+
return message;
|
|
4433
|
+
}
|
|
4434
|
+
finally {
|
|
4435
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
4436
|
+
}
|
|
4437
|
+
},
|
|
4438
|
+
fromJSON(object) {
|
|
4439
|
+
return {
|
|
4440
|
+
key: isSet(object.key) ? globalThis.String(object.key) : "",
|
|
4441
|
+
value: isSet(object?.value) ? object.value : undefined,
|
|
4442
|
+
};
|
|
4443
|
+
},
|
|
4444
|
+
toJSON(message) {
|
|
4445
|
+
const obj = {};
|
|
4446
|
+
if (message.key !== "") {
|
|
4447
|
+
obj.key = message.key;
|
|
4448
|
+
}
|
|
4449
|
+
if (message.value !== undefined) {
|
|
4450
|
+
obj.value = message.value;
|
|
4451
|
+
}
|
|
4452
|
+
return obj;
|
|
4453
|
+
},
|
|
4454
|
+
create(base) {
|
|
4455
|
+
return exports.SecurityScheme_ExtensionsEntry.fromPartial(base ?? {});
|
|
4456
|
+
},
|
|
4457
|
+
fromPartial(object) {
|
|
4458
|
+
const message = createBaseSecurityScheme_ExtensionsEntry();
|
|
4459
|
+
message.key = object.key ?? "";
|
|
4460
|
+
message.value = object.value ?? undefined;
|
|
4461
|
+
return message;
|
|
4462
|
+
},
|
|
4463
|
+
};
|
|
4464
|
+
function createBaseSecurityRequirement() {
|
|
4465
|
+
return { securityRequirement: {} };
|
|
4466
|
+
}
|
|
4467
|
+
exports.SecurityRequirement = {
|
|
4468
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
4469
|
+
globalThis.Object.entries(message.securityRequirement).forEach(([key, value]) => {
|
|
4470
|
+
exports.SecurityRequirement_SecurityRequirementEntry.encode({ key: key, value }, writer.uint32(10).fork())
|
|
4471
|
+
.join();
|
|
4472
|
+
});
|
|
4473
|
+
return writer;
|
|
4474
|
+
},
|
|
4475
|
+
decode(input, length) {
|
|
4476
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
4477
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
4478
|
+
if (previousRecursionDepth >= 100) {
|
|
4479
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
4480
|
+
}
|
|
4481
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
4482
|
+
try {
|
|
4483
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
4484
|
+
const message = createBaseSecurityRequirement();
|
|
4485
|
+
while (reader.pos < end) {
|
|
4486
|
+
const tag = reader.uint32();
|
|
4487
|
+
switch (tag >>> 3) {
|
|
4488
|
+
case 1: {
|
|
4489
|
+
if (tag !== 10) {
|
|
4490
|
+
break;
|
|
4491
|
+
}
|
|
4492
|
+
const entry1 = exports.SecurityRequirement_SecurityRequirementEntry.decode(reader, reader.uint32());
|
|
4493
|
+
if (entry1.value !== undefined) {
|
|
4494
|
+
message.securityRequirement[entry1.key] = entry1.value;
|
|
4495
|
+
}
|
|
4496
|
+
continue;
|
|
4497
|
+
}
|
|
4498
|
+
}
|
|
4499
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
4500
|
+
break;
|
|
4501
|
+
}
|
|
4502
|
+
reader.skip(tag & 7);
|
|
4503
|
+
}
|
|
4504
|
+
return message;
|
|
4505
|
+
}
|
|
4506
|
+
finally {
|
|
4507
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
4508
|
+
}
|
|
4509
|
+
},
|
|
4510
|
+
fromJSON(object) {
|
|
4511
|
+
return {
|
|
4512
|
+
securityRequirement: isObject(object.securityRequirement)
|
|
4513
|
+
? globalThis.Object.entries(object.securityRequirement).reduce((acc, [key, value]) => {
|
|
4514
|
+
globalThis.Object.defineProperty(acc, key, {
|
|
4515
|
+
value: exports.SecurityRequirement_SecurityRequirementValue.fromJSON(value),
|
|
4516
|
+
enumerable: true,
|
|
4517
|
+
configurable: true,
|
|
4518
|
+
writable: true,
|
|
4519
|
+
});
|
|
4520
|
+
return acc;
|
|
4521
|
+
}, {})
|
|
4522
|
+
: isObject(object.security_requirement)
|
|
4523
|
+
? globalThis.Object.entries(object.security_requirement).reduce((acc, [key, value]) => {
|
|
4524
|
+
globalThis.Object.defineProperty(acc, key, {
|
|
4525
|
+
value: exports.SecurityRequirement_SecurityRequirementValue.fromJSON(value),
|
|
4526
|
+
enumerable: true,
|
|
4527
|
+
configurable: true,
|
|
4528
|
+
writable: true,
|
|
4529
|
+
});
|
|
4530
|
+
return acc;
|
|
4531
|
+
}, {})
|
|
4532
|
+
: {},
|
|
4533
|
+
};
|
|
4534
|
+
},
|
|
4535
|
+
toJSON(message) {
|
|
4536
|
+
const obj = {};
|
|
4537
|
+
if (message.securityRequirement) {
|
|
4538
|
+
const entries = globalThis.Object.entries(message.securityRequirement);
|
|
4539
|
+
if (entries.length > 0) {
|
|
4540
|
+
obj.securityRequirement = {};
|
|
4541
|
+
entries.forEach(([k, v]) => {
|
|
4542
|
+
obj.securityRequirement[k] = exports.SecurityRequirement_SecurityRequirementValue.toJSON(v);
|
|
4543
|
+
});
|
|
4544
|
+
}
|
|
4545
|
+
}
|
|
4546
|
+
return obj;
|
|
4547
|
+
},
|
|
4548
|
+
create(base) {
|
|
4549
|
+
return exports.SecurityRequirement.fromPartial(base ?? {});
|
|
4550
|
+
},
|
|
4551
|
+
fromPartial(object) {
|
|
4552
|
+
const message = createBaseSecurityRequirement();
|
|
4553
|
+
message.securityRequirement =
|
|
4554
|
+
globalThis.Object.entries(object.securityRequirement ?? {}).reduce((acc, [key, value]) => {
|
|
4555
|
+
if (value !== undefined) {
|
|
4556
|
+
acc[key] = exports.SecurityRequirement_SecurityRequirementValue.fromPartial(value);
|
|
4557
|
+
}
|
|
4558
|
+
return acc;
|
|
4559
|
+
}, {});
|
|
4560
|
+
return message;
|
|
4561
|
+
},
|
|
4562
|
+
};
|
|
4563
|
+
function createBaseSecurityRequirement_SecurityRequirementValue() {
|
|
4564
|
+
return { scope: [] };
|
|
4565
|
+
}
|
|
4566
|
+
exports.SecurityRequirement_SecurityRequirementValue = {
|
|
4567
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
4568
|
+
for (const v of message.scope) {
|
|
4569
|
+
writer.uint32(10).string(v);
|
|
4570
|
+
}
|
|
4571
|
+
return writer;
|
|
4572
|
+
},
|
|
4573
|
+
decode(input, length) {
|
|
4574
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
4575
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
4576
|
+
if (previousRecursionDepth >= 100) {
|
|
4577
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
4578
|
+
}
|
|
4579
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
4580
|
+
try {
|
|
4581
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
4582
|
+
const message = createBaseSecurityRequirement_SecurityRequirementValue();
|
|
4583
|
+
while (reader.pos < end) {
|
|
4584
|
+
const tag = reader.uint32();
|
|
4585
|
+
switch (tag >>> 3) {
|
|
4586
|
+
case 1: {
|
|
4587
|
+
if (tag !== 10) {
|
|
4588
|
+
break;
|
|
4589
|
+
}
|
|
4590
|
+
message.scope.push(reader.string());
|
|
4591
|
+
continue;
|
|
4592
|
+
}
|
|
4593
|
+
}
|
|
4594
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
4595
|
+
break;
|
|
4596
|
+
}
|
|
4597
|
+
reader.skip(tag & 7);
|
|
4598
|
+
}
|
|
4599
|
+
return message;
|
|
4600
|
+
}
|
|
4601
|
+
finally {
|
|
4602
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
4603
|
+
}
|
|
4604
|
+
},
|
|
4605
|
+
fromJSON(object) {
|
|
4606
|
+
return { scope: globalThis.Array.isArray(object?.scope) ? object.scope.map((e) => globalThis.String(e)) : [] };
|
|
4607
|
+
},
|
|
4608
|
+
toJSON(message) {
|
|
4609
|
+
const obj = {};
|
|
4610
|
+
if (message.scope?.length) {
|
|
4611
|
+
obj.scope = message.scope;
|
|
4612
|
+
}
|
|
4613
|
+
return obj;
|
|
4614
|
+
},
|
|
4615
|
+
create(base) {
|
|
4616
|
+
return exports.SecurityRequirement_SecurityRequirementValue.fromPartial(base ?? {});
|
|
4617
|
+
},
|
|
4618
|
+
fromPartial(object) {
|
|
4619
|
+
const message = createBaseSecurityRequirement_SecurityRequirementValue();
|
|
4620
|
+
message.scope = object.scope?.map((e) => e) || [];
|
|
4621
|
+
return message;
|
|
4622
|
+
},
|
|
4623
|
+
};
|
|
4624
|
+
function createBaseSecurityRequirement_SecurityRequirementEntry() {
|
|
4625
|
+
return { key: "", value: undefined };
|
|
4626
|
+
}
|
|
4627
|
+
exports.SecurityRequirement_SecurityRequirementEntry = {
|
|
4628
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
4629
|
+
if (message.key !== "") {
|
|
4630
|
+
writer.uint32(10).string(message.key);
|
|
4631
|
+
}
|
|
4632
|
+
if (message.value !== undefined) {
|
|
4633
|
+
exports.SecurityRequirement_SecurityRequirementValue.encode(message.value, writer.uint32(18).fork()).join();
|
|
4634
|
+
}
|
|
4635
|
+
return writer;
|
|
4636
|
+
},
|
|
4637
|
+
decode(input, length) {
|
|
4638
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
4639
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
4640
|
+
if (previousRecursionDepth >= 100) {
|
|
4641
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
4642
|
+
}
|
|
4643
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
4644
|
+
try {
|
|
4645
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
4646
|
+
const message = createBaseSecurityRequirement_SecurityRequirementEntry();
|
|
4647
|
+
while (reader.pos < end) {
|
|
4648
|
+
const tag = reader.uint32();
|
|
4649
|
+
switch (tag >>> 3) {
|
|
4650
|
+
case 1: {
|
|
4651
|
+
if (tag !== 10) {
|
|
4652
|
+
break;
|
|
4653
|
+
}
|
|
4654
|
+
message.key = reader.string();
|
|
4655
|
+
continue;
|
|
4656
|
+
}
|
|
4657
|
+
case 2: {
|
|
4658
|
+
if (tag !== 18) {
|
|
4659
|
+
break;
|
|
4660
|
+
}
|
|
4661
|
+
message.value = exports.SecurityRequirement_SecurityRequirementValue.decode(reader, reader.uint32());
|
|
4662
|
+
continue;
|
|
4663
|
+
}
|
|
4664
|
+
}
|
|
4665
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
4666
|
+
break;
|
|
4667
|
+
}
|
|
4668
|
+
reader.skip(tag & 7);
|
|
4669
|
+
}
|
|
4670
|
+
return message;
|
|
4671
|
+
}
|
|
4672
|
+
finally {
|
|
4673
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
4674
|
+
}
|
|
4675
|
+
},
|
|
4676
|
+
fromJSON(object) {
|
|
4677
|
+
return {
|
|
4678
|
+
key: isSet(object.key) ? globalThis.String(object.key) : "",
|
|
4679
|
+
value: isSet(object.value) ? exports.SecurityRequirement_SecurityRequirementValue.fromJSON(object.value) : undefined,
|
|
4680
|
+
};
|
|
4681
|
+
},
|
|
4682
|
+
toJSON(message) {
|
|
4683
|
+
const obj = {};
|
|
4684
|
+
if (message.key !== "") {
|
|
4685
|
+
obj.key = message.key;
|
|
4686
|
+
}
|
|
4687
|
+
if (message.value !== undefined) {
|
|
4688
|
+
obj.value = exports.SecurityRequirement_SecurityRequirementValue.toJSON(message.value);
|
|
4689
|
+
}
|
|
4690
|
+
return obj;
|
|
4691
|
+
},
|
|
4692
|
+
create(base) {
|
|
4693
|
+
return exports.SecurityRequirement_SecurityRequirementEntry.fromPartial(base ?? {});
|
|
4694
|
+
},
|
|
4695
|
+
fromPartial(object) {
|
|
4696
|
+
const message = createBaseSecurityRequirement_SecurityRequirementEntry();
|
|
4697
|
+
message.key = object.key ?? "";
|
|
4698
|
+
message.value = (object.value !== undefined && object.value !== null)
|
|
4699
|
+
? exports.SecurityRequirement_SecurityRequirementValue.fromPartial(object.value)
|
|
4700
|
+
: undefined;
|
|
4701
|
+
return message;
|
|
4702
|
+
},
|
|
4703
|
+
};
|
|
4704
|
+
function createBaseScopes() {
|
|
4705
|
+
return { scope: {} };
|
|
4706
|
+
}
|
|
4707
|
+
exports.Scopes = {
|
|
4708
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
4709
|
+
globalThis.Object.entries(message.scope).forEach(([key, value]) => {
|
|
4710
|
+
exports.Scopes_ScopeEntry.encode({ key: key, value }, writer.uint32(10).fork()).join();
|
|
4711
|
+
});
|
|
4712
|
+
return writer;
|
|
4713
|
+
},
|
|
4714
|
+
decode(input, length) {
|
|
4715
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
4716
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
4717
|
+
if (previousRecursionDepth >= 100) {
|
|
4718
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
4719
|
+
}
|
|
4720
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
4721
|
+
try {
|
|
4722
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
4723
|
+
const message = createBaseScopes();
|
|
4724
|
+
while (reader.pos < end) {
|
|
4725
|
+
const tag = reader.uint32();
|
|
4726
|
+
switch (tag >>> 3) {
|
|
4727
|
+
case 1: {
|
|
4728
|
+
if (tag !== 10) {
|
|
4729
|
+
break;
|
|
4730
|
+
}
|
|
4731
|
+
const entry1 = exports.Scopes_ScopeEntry.decode(reader, reader.uint32());
|
|
4732
|
+
if (entry1.value !== undefined) {
|
|
4733
|
+
message.scope[entry1.key] = entry1.value;
|
|
4734
|
+
}
|
|
4735
|
+
continue;
|
|
4736
|
+
}
|
|
4737
|
+
}
|
|
4738
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
4739
|
+
break;
|
|
4740
|
+
}
|
|
4741
|
+
reader.skip(tag & 7);
|
|
4742
|
+
}
|
|
4743
|
+
return message;
|
|
4744
|
+
}
|
|
4745
|
+
finally {
|
|
4746
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
4747
|
+
}
|
|
4748
|
+
},
|
|
4749
|
+
fromJSON(object) {
|
|
4750
|
+
return {
|
|
4751
|
+
scope: isObject(object.scope)
|
|
4752
|
+
? globalThis.Object.entries(object.scope).reduce((acc, [key, value]) => {
|
|
4753
|
+
globalThis.Object.defineProperty(acc, key, {
|
|
4754
|
+
value: globalThis.String(value),
|
|
4755
|
+
enumerable: true,
|
|
4756
|
+
configurable: true,
|
|
4757
|
+
writable: true,
|
|
4758
|
+
});
|
|
4759
|
+
return acc;
|
|
4760
|
+
}, {})
|
|
4761
|
+
: {},
|
|
4762
|
+
};
|
|
4763
|
+
},
|
|
4764
|
+
toJSON(message) {
|
|
4765
|
+
const obj = {};
|
|
4766
|
+
if (message.scope) {
|
|
4767
|
+
const entries = globalThis.Object.entries(message.scope);
|
|
4768
|
+
if (entries.length > 0) {
|
|
4769
|
+
obj.scope = {};
|
|
4770
|
+
entries.forEach(([k, v]) => {
|
|
4771
|
+
obj.scope[k] = v;
|
|
4772
|
+
});
|
|
4773
|
+
}
|
|
4774
|
+
}
|
|
4775
|
+
return obj;
|
|
4776
|
+
},
|
|
4777
|
+
create(base) {
|
|
4778
|
+
return exports.Scopes.fromPartial(base ?? {});
|
|
4779
|
+
},
|
|
4780
|
+
fromPartial(object) {
|
|
4781
|
+
const message = createBaseScopes();
|
|
4782
|
+
message.scope = globalThis.Object.entries(object.scope ?? {}).reduce((acc, [key, value]) => {
|
|
4783
|
+
if (value !== undefined) {
|
|
4784
|
+
acc[key] = globalThis.String(value);
|
|
4785
|
+
}
|
|
4786
|
+
return acc;
|
|
4787
|
+
}, {});
|
|
4788
|
+
return message;
|
|
4789
|
+
},
|
|
4790
|
+
};
|
|
4791
|
+
function createBaseScopes_ScopeEntry() {
|
|
4792
|
+
return { key: "", value: "" };
|
|
4793
|
+
}
|
|
4794
|
+
exports.Scopes_ScopeEntry = {
|
|
4795
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
4796
|
+
if (message.key !== "") {
|
|
4797
|
+
writer.uint32(10).string(message.key);
|
|
4798
|
+
}
|
|
4799
|
+
if (message.value !== "") {
|
|
4800
|
+
writer.uint32(18).string(message.value);
|
|
4801
|
+
}
|
|
4802
|
+
return writer;
|
|
4803
|
+
},
|
|
4804
|
+
decode(input, length) {
|
|
4805
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
4806
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
4807
|
+
if (previousRecursionDepth >= 100) {
|
|
4808
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
4809
|
+
}
|
|
4810
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
4811
|
+
try {
|
|
4812
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
4813
|
+
const message = createBaseScopes_ScopeEntry();
|
|
4814
|
+
while (reader.pos < end) {
|
|
4815
|
+
const tag = reader.uint32();
|
|
4816
|
+
switch (tag >>> 3) {
|
|
4817
|
+
case 1: {
|
|
4818
|
+
if (tag !== 10) {
|
|
4819
|
+
break;
|
|
4820
|
+
}
|
|
4821
|
+
message.key = reader.string();
|
|
4822
|
+
continue;
|
|
4823
|
+
}
|
|
4824
|
+
case 2: {
|
|
4825
|
+
if (tag !== 18) {
|
|
4826
|
+
break;
|
|
4827
|
+
}
|
|
4828
|
+
message.value = reader.string();
|
|
4829
|
+
continue;
|
|
4830
|
+
}
|
|
4831
|
+
}
|
|
4832
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
4833
|
+
break;
|
|
4834
|
+
}
|
|
4835
|
+
reader.skip(tag & 7);
|
|
4836
|
+
}
|
|
4837
|
+
return message;
|
|
4838
|
+
}
|
|
4839
|
+
finally {
|
|
4840
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
4841
|
+
}
|
|
4842
|
+
},
|
|
4843
|
+
fromJSON(object) {
|
|
4844
|
+
return {
|
|
4845
|
+
key: isSet(object.key) ? globalThis.String(object.key) : "",
|
|
4846
|
+
value: isSet(object.value) ? globalThis.String(object.value) : "",
|
|
4847
|
+
};
|
|
4848
|
+
},
|
|
4849
|
+
toJSON(message) {
|
|
4850
|
+
const obj = {};
|
|
4851
|
+
if (message.key !== "") {
|
|
4852
|
+
obj.key = message.key;
|
|
4853
|
+
}
|
|
4854
|
+
if (message.value !== "") {
|
|
4855
|
+
obj.value = message.value;
|
|
4856
|
+
}
|
|
4857
|
+
return obj;
|
|
4858
|
+
},
|
|
4859
|
+
create(base) {
|
|
4860
|
+
return exports.Scopes_ScopeEntry.fromPartial(base ?? {});
|
|
4861
|
+
},
|
|
4862
|
+
fromPartial(object) {
|
|
4863
|
+
const message = createBaseScopes_ScopeEntry();
|
|
4864
|
+
message.key = object.key ?? "";
|
|
4865
|
+
message.value = object.value ?? "";
|
|
4866
|
+
return message;
|
|
4867
|
+
},
|
|
4868
|
+
};
|
|
4869
|
+
function isObject(value) {
|
|
4870
|
+
return typeof value === "object" && value !== null;
|
|
4871
|
+
}
|
|
4872
|
+
function isSet(value) {
|
|
4873
|
+
return value !== null && value !== undefined;
|
|
4874
|
+
}
|