@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.
Files changed (130) hide show
  1. package/LICENSE +201 -0
  2. package/NOTICE +69 -0
  3. package/README.md +700 -2
  4. package/api-source.json +38 -0
  5. package/dist/cjs/client.d.ts +114 -0
  6. package/dist/cjs/client.js +174 -0
  7. package/dist/cjs/errors.d.ts +27 -0
  8. package/dist/cjs/errors.js +78 -0
  9. package/dist/cjs/generated/google/api/annotations.d.ts +1 -0
  10. package/dist/cjs/generated/google/api/annotations.js +10 -0
  11. package/dist/cjs/generated/google/api/http.d.ts +395 -0
  12. package/dist/cjs/generated/google/api/http.js +421 -0
  13. package/dist/cjs/generated/google/protobuf/descriptor.d.ts +873 -0
  14. package/dist/cjs/generated/google/protobuf/descriptor.js +3992 -0
  15. package/dist/cjs/generated/google/protobuf/empty.d.ts +35 -0
  16. package/dist/cjs/generated/google/protobuf/empty.js +58 -0
  17. package/dist/cjs/generated/google/protobuf/struct.d.ts +127 -0
  18. package/dist/cjs/generated/google/protobuf/struct.js +529 -0
  19. package/dist/cjs/generated/google/protobuf/timestamp.d.ts +128 -0
  20. package/dist/cjs/generated/google/protobuf/timestamp.js +95 -0
  21. package/dist/cjs/generated/protoc-gen-openapiv2/options/annotations.d.ts +1 -0
  22. package/dist/cjs/generated/protoc-gen-openapiv2/options/annotations.js +10 -0
  23. package/dist/cjs/generated/protoc-gen-openapiv2/options/openapiv2.d.ts +983 -0
  24. package/dist/cjs/generated/protoc-gen-openapiv2/options/openapiv2.js +4874 -0
  25. package/dist/cjs/generated/tarka/access/v1/access.d.ts +322 -0
  26. package/dist/cjs/generated/tarka/access/v1/access.js +2979 -0
  27. package/dist/cjs/generated/tarka/channels/v1/channels.d.ts +370 -0
  28. package/dist/cjs/generated/tarka/channels/v1/channels.js +3603 -0
  29. package/dist/cjs/generated/tarka/gateway/v1/gateway.d.ts +804 -0
  30. package/dist/cjs/generated/tarka/gateway/v1/gateway.js +8081 -0
  31. package/dist/cjs/generated/tarka/iam/v1/iam.d.ts +1291 -0
  32. package/dist/cjs/generated/tarka/iam/v1/iam.js +13207 -0
  33. package/dist/cjs/generated/tarka/inference/v1/inference.d.ts +699 -0
  34. package/dist/cjs/generated/tarka/inference/v1/inference.js +7058 -0
  35. package/dist/cjs/generated/tarka/provisioning/v1/agent_secrets.d.ts +70 -0
  36. package/dist/cjs/generated/tarka/provisioning/v1/agent_secrets.js +603 -0
  37. package/dist/cjs/generated/tarka/provisioning/v1/billing_quote.d.ts +171 -0
  38. package/dist/cjs/generated/tarka/provisioning/v1/billing_quote.js +1588 -0
  39. package/dist/cjs/generated/tarka/provisioning/v1/job.d.ts +168 -0
  40. package/dist/cjs/generated/tarka/provisioning/v1/job.js +1505 -0
  41. package/dist/cjs/generated/tarka/provisioning/v1/provisioning.d.ts +2644 -0
  42. package/dist/cjs/generated/tarka/provisioning/v1/provisioning.js +19501 -0
  43. package/dist/cjs/generated/tarka/provisioning/v1/registry_credentials.d.ts +89 -0
  44. package/dist/cjs/generated/tarka/provisioning/v1/registry_credentials.js +856 -0
  45. package/dist/cjs/generated/tarka/provisioning/v1/sandbox.d.ts +431 -0
  46. package/dist/cjs/generated/tarka/provisioning/v1/sandbox.js +3203 -0
  47. package/dist/cjs/generated/tarka/provisioning/v1/source_builds.d.ts +291 -0
  48. package/dist/cjs/generated/tarka/provisioning/v1/source_builds.js +3920 -0
  49. package/dist/cjs/grpc.d.ts +12 -0
  50. package/dist/cjs/grpc.js +55 -0
  51. package/dist/cjs/index.d.ts +6 -0
  52. package/dist/cjs/index.js +21 -0
  53. package/dist/cjs/package.json +1 -0
  54. package/dist/cjs/resources/inference.d.ts +293 -0
  55. package/dist/cjs/resources/inference.js +451 -0
  56. package/dist/cjs/resources/provisioning.d.ts +389 -0
  57. package/dist/cjs/resources/provisioning.js +552 -0
  58. package/dist/cjs/resources/sandboxes.d.ts +360 -0
  59. package/dist/cjs/resources/sandboxes.js +732 -0
  60. package/dist/cjs/rpc-types.d.ts +36 -0
  61. package/dist/cjs/rpc-types.js +29 -0
  62. package/dist/cjs/runtime.d.ts +99 -0
  63. package/dist/cjs/runtime.js +473 -0
  64. package/dist/cjs/transport.d.ts +60 -0
  65. package/dist/cjs/transport.js +114 -0
  66. package/dist/cjs/types.d.ts +309 -0
  67. package/dist/cjs/types.js +2 -0
  68. package/dist/esm/client.d.ts +114 -0
  69. package/dist/esm/client.js +169 -0
  70. package/dist/esm/errors.d.ts +27 -0
  71. package/dist/esm/errors.js +71 -0
  72. package/dist/esm/generated/google/api/annotations.d.ts +1 -0
  73. package/dist/esm/generated/google/api/annotations.js +7 -0
  74. package/dist/esm/generated/google/api/http.d.ts +395 -0
  75. package/dist/esm/generated/google/api/http.js +418 -0
  76. package/dist/esm/generated/google/protobuf/descriptor.d.ts +873 -0
  77. package/dist/esm/generated/google/protobuf/descriptor.js +3977 -0
  78. package/dist/esm/generated/google/protobuf/empty.d.ts +35 -0
  79. package/dist/esm/generated/google/protobuf/empty.js +55 -0
  80. package/dist/esm/generated/google/protobuf/struct.d.ts +127 -0
  81. package/dist/esm/generated/google/protobuf/struct.js +524 -0
  82. package/dist/esm/generated/google/protobuf/timestamp.d.ts +128 -0
  83. package/dist/esm/generated/google/protobuf/timestamp.js +92 -0
  84. package/dist/esm/generated/protoc-gen-openapiv2/options/annotations.d.ts +1 -0
  85. package/dist/esm/generated/protoc-gen-openapiv2/options/annotations.js +7 -0
  86. package/dist/esm/generated/protoc-gen-openapiv2/options/openapiv2.d.ts +983 -0
  87. package/dist/esm/generated/protoc-gen-openapiv2/options/openapiv2.js +4859 -0
  88. package/dist/esm/generated/tarka/access/v1/access.d.ts +322 -0
  89. package/dist/esm/generated/tarka/access/v1/access.js +2976 -0
  90. package/dist/esm/generated/tarka/channels/v1/channels.d.ts +370 -0
  91. package/dist/esm/generated/tarka/channels/v1/channels.js +3600 -0
  92. package/dist/esm/generated/tarka/gateway/v1/gateway.d.ts +804 -0
  93. package/dist/esm/generated/tarka/gateway/v1/gateway.js +8077 -0
  94. package/dist/esm/generated/tarka/iam/v1/iam.d.ts +1291 -0
  95. package/dist/esm/generated/tarka/iam/v1/iam.js +13203 -0
  96. package/dist/esm/generated/tarka/inference/v1/inference.d.ts +699 -0
  97. package/dist/esm/generated/tarka/inference/v1/inference.js +7055 -0
  98. package/dist/esm/generated/tarka/provisioning/v1/agent_secrets.d.ts +70 -0
  99. package/dist/esm/generated/tarka/provisioning/v1/agent_secrets.js +600 -0
  100. package/dist/esm/generated/tarka/provisioning/v1/billing_quote.d.ts +171 -0
  101. package/dist/esm/generated/tarka/provisioning/v1/billing_quote.js +1585 -0
  102. package/dist/esm/generated/tarka/provisioning/v1/job.d.ts +168 -0
  103. package/dist/esm/generated/tarka/provisioning/v1/job.js +1500 -0
  104. package/dist/esm/generated/tarka/provisioning/v1/provisioning.d.ts +2644 -0
  105. package/dist/esm/generated/tarka/provisioning/v1/provisioning.js +19496 -0
  106. package/dist/esm/generated/tarka/provisioning/v1/registry_credentials.d.ts +89 -0
  107. package/dist/esm/generated/tarka/provisioning/v1/registry_credentials.js +853 -0
  108. package/dist/esm/generated/tarka/provisioning/v1/sandbox.d.ts +431 -0
  109. package/dist/esm/generated/tarka/provisioning/v1/sandbox.js +3192 -0
  110. package/dist/esm/generated/tarka/provisioning/v1/source_builds.d.ts +291 -0
  111. package/dist/esm/generated/tarka/provisioning/v1/source_builds.js +3917 -0
  112. package/dist/esm/grpc.d.ts +12 -0
  113. package/dist/esm/grpc.js +11 -0
  114. package/dist/esm/index.d.ts +6 -0
  115. package/dist/esm/index.js +4 -0
  116. package/dist/esm/resources/inference.d.ts +293 -0
  117. package/dist/esm/resources/inference.js +437 -0
  118. package/dist/esm/resources/provisioning.d.ts +389 -0
  119. package/dist/esm/resources/provisioning.js +531 -0
  120. package/dist/esm/resources/sandboxes.d.ts +360 -0
  121. package/dist/esm/resources/sandboxes.js +718 -0
  122. package/dist/esm/rpc-types.d.ts +36 -0
  123. package/dist/esm/rpc-types.js +26 -0
  124. package/dist/esm/runtime.d.ts +99 -0
  125. package/dist/esm/runtime.js +466 -0
  126. package/dist/esm/transport.d.ts +60 -0
  127. package/dist/esm/transport.js +110 -0
  128. package/dist/esm/types.d.ts +309 -0
  129. package/dist/esm/types.js +1 -0
  130. package/package.json +155 -4
@@ -0,0 +1,983 @@
1
+ import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
2
+ export declare const protobufPackage = "grpc.gateway.protoc_gen_openapiv2.options";
3
+ /**
4
+ * Scheme describes the schemes supported by the OpenAPI Swagger
5
+ * and Operation objects.
6
+ */
7
+ export declare enum Scheme {
8
+ UNKNOWN = 0,
9
+ HTTP = 1,
10
+ HTTPS = 2,
11
+ WS = 3,
12
+ WSS = 4,
13
+ UNRECOGNIZED = -1
14
+ }
15
+ export declare function schemeFromJSON(object: any): Scheme;
16
+ export declare function schemeToJSON(object: Scheme): string;
17
+ /**
18
+ * `Swagger` is a representation of OpenAPI v2 specification's Swagger object.
19
+ *
20
+ * See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#swaggerObject
21
+ *
22
+ * Example:
23
+ *
24
+ * option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_swagger) = {
25
+ * info: {
26
+ * title: "Echo API";
27
+ * version: "1.0";
28
+ * description: "";
29
+ * contact: {
30
+ * name: "gRPC-Gateway project";
31
+ * url: "https://github.com/grpc-ecosystem/grpc-gateway";
32
+ * email: "none@example.com";
33
+ * };
34
+ * license: {
35
+ * name: "BSD 3-Clause License";
36
+ * url: "https://github.com/grpc-ecosystem/grpc-gateway/blob/main/LICENSE";
37
+ * };
38
+ * };
39
+ * schemes: HTTPS;
40
+ * consumes: "application/json";
41
+ * produces: "application/json";
42
+ * };
43
+ */
44
+ export interface Swagger {
45
+ /**
46
+ * Specifies the OpenAPI Specification version being used. It can be
47
+ * used by the OpenAPI UI and other clients to interpret the API listing. The
48
+ * value MUST be "2.0".
49
+ */
50
+ swagger: string;
51
+ /**
52
+ * Provides metadata about the API. The metadata can be used by the
53
+ * clients if needed.
54
+ */
55
+ info: Info | undefined;
56
+ /**
57
+ * The host (name or ip) serving the API. This MUST be the host only and does
58
+ * not include the scheme nor sub-paths. It MAY include a port. If the host is
59
+ * not included, the host serving the documentation is to be used (including
60
+ * the port). The host does not support path templating.
61
+ */
62
+ host: string;
63
+ /**
64
+ * The base path on which the API is served, which is relative to the host. If
65
+ * it is not included, the API is served directly under the host. The value
66
+ * MUST start with a leading slash (/). The basePath does not support path
67
+ * templating.
68
+ * Note that using `base_path` does not change the endpoint paths that are
69
+ * generated in the resulting OpenAPI file. If you wish to use `base_path`
70
+ * with relatively generated OpenAPI paths, the `base_path` prefix must be
71
+ * manually removed from your `google.api.http` paths and your code changed to
72
+ * serve the API from the `base_path`.
73
+ */
74
+ basePath: string;
75
+ /**
76
+ * The transfer protocol of the API. Values MUST be from the list: "http",
77
+ * "https", "ws", "wss". If the schemes is not included, the default scheme to
78
+ * be used is the one used to access the OpenAPI definition itself.
79
+ */
80
+ schemes: Scheme[];
81
+ /**
82
+ * A list of MIME types the APIs can consume. This is global to all APIs but
83
+ * can be overridden on specific API calls. Value MUST be as described under
84
+ * Mime Types.
85
+ */
86
+ consumes: string[];
87
+ /**
88
+ * A list of MIME types the APIs can produce. This is global to all APIs but
89
+ * can be overridden on specific API calls. Value MUST be as described under
90
+ * Mime Types.
91
+ */
92
+ produces: string[];
93
+ /**
94
+ * An object to hold responses that can be used across operations. This
95
+ * property does not define global responses for all operations.
96
+ */
97
+ responses: {
98
+ [key: string]: Response;
99
+ };
100
+ /** Security scheme definitions that can be used across the specification. */
101
+ securityDefinitions: SecurityDefinitions | undefined;
102
+ /**
103
+ * A declaration of which security schemes are applied for the API as a whole.
104
+ * The list of values describes alternative security schemes that can be used
105
+ * (that is, there is a logical OR between the security requirements).
106
+ * Individual operations can override this definition.
107
+ */
108
+ security: SecurityRequirement[];
109
+ /**
110
+ * A list of tags for API documentation control. Tags can be used for logical
111
+ * grouping of operations by resources or any other qualifier.
112
+ */
113
+ tags: Tag[];
114
+ /** Additional external documentation. */
115
+ externalDocs: ExternalDocumentation | undefined;
116
+ /**
117
+ * Custom properties that start with "x-" such as "x-foo" used to describe
118
+ * extra functionality that is not covered by the standard OpenAPI Specification.
119
+ * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
120
+ */
121
+ extensions: {
122
+ [key: string]: any | undefined;
123
+ };
124
+ }
125
+ export interface Swagger_ResponsesEntry {
126
+ key: string;
127
+ value: Response | undefined;
128
+ }
129
+ export interface Swagger_ExtensionsEntry {
130
+ key: string;
131
+ value: any | undefined;
132
+ }
133
+ /**
134
+ * `Operation` is a representation of OpenAPI v2 specification's Operation object.
135
+ *
136
+ * See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#operationObject
137
+ *
138
+ * Example:
139
+ *
140
+ * service EchoService {
141
+ * rpc Echo(SimpleMessage) returns (SimpleMessage) {
142
+ * option (google.api.http) = {
143
+ * get: "/v1/example/echo/{id}"
144
+ * };
145
+ *
146
+ * option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
147
+ * summary: "Get a message.";
148
+ * operation_id: "getMessage";
149
+ * tags: "echo";
150
+ * responses: {
151
+ * key: "200"
152
+ * value: {
153
+ * description: "OK";
154
+ * }
155
+ * }
156
+ * };
157
+ * }
158
+ * }
159
+ */
160
+ export interface Operation {
161
+ /**
162
+ * A list of tags for API documentation control. Tags can be used for logical
163
+ * grouping of operations by resources or any other qualifier.
164
+ */
165
+ tags: string[];
166
+ /**
167
+ * A short summary of what the operation does. For maximum readability in the
168
+ * swagger-ui, this field SHOULD be less than 120 characters.
169
+ */
170
+ summary: string;
171
+ /**
172
+ * A verbose explanation of the operation behavior. GFM syntax can be used for
173
+ * rich text representation.
174
+ */
175
+ description: string;
176
+ /** Additional external documentation for this operation. */
177
+ externalDocs: ExternalDocumentation | undefined;
178
+ /**
179
+ * Unique string used to identify the operation. The id MUST be unique among
180
+ * all operations described in the API. Tools and libraries MAY use the
181
+ * operationId to uniquely identify an operation, therefore, it is recommended
182
+ * to follow common programming naming conventions.
183
+ */
184
+ operationId: string;
185
+ /**
186
+ * A list of MIME types the operation can consume. This overrides the consumes
187
+ * definition at the OpenAPI Object. An empty value MAY be used to clear the
188
+ * global definition. Value MUST be as described under Mime Types.
189
+ */
190
+ consumes: string[];
191
+ /**
192
+ * A list of MIME types the operation can produce. This overrides the produces
193
+ * definition at the OpenAPI Object. An empty value MAY be used to clear the
194
+ * global definition. Value MUST be as described under Mime Types.
195
+ */
196
+ produces: string[];
197
+ /**
198
+ * The list of possible responses as they are returned from executing this
199
+ * operation.
200
+ */
201
+ responses: {
202
+ [key: string]: Response;
203
+ };
204
+ /**
205
+ * The transfer protocol for the operation. Values MUST be from the list:
206
+ * "http", "https", "ws", "wss". The value overrides the OpenAPI Object
207
+ * schemes definition.
208
+ */
209
+ schemes: Scheme[];
210
+ /**
211
+ * Declares this operation to be deprecated. Usage of the declared operation
212
+ * should be refrained. Default value is false.
213
+ */
214
+ deprecated: boolean;
215
+ /**
216
+ * A declaration of which security schemes are applied for this operation. The
217
+ * list of values describes alternative security schemes that can be used
218
+ * (that is, there is a logical OR between the security requirements). This
219
+ * definition overrides any declared top-level security. To remove a top-level
220
+ * security declaration, an empty array can be used.
221
+ */
222
+ security: SecurityRequirement[];
223
+ /**
224
+ * Custom properties that start with "x-" such as "x-foo" used to describe
225
+ * extra functionality that is not covered by the standard OpenAPI Specification.
226
+ * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
227
+ */
228
+ extensions: {
229
+ [key: string]: any | undefined;
230
+ };
231
+ /**
232
+ * Custom parameters such as HTTP request headers.
233
+ * See: https://swagger.io/docs/specification/2-0/describing-parameters/
234
+ * and https://swagger.io/specification/v2/#parameter-object.
235
+ */
236
+ parameters: Parameters | undefined;
237
+ }
238
+ export interface Operation_ResponsesEntry {
239
+ key: string;
240
+ value: Response | undefined;
241
+ }
242
+ export interface Operation_ExtensionsEntry {
243
+ key: string;
244
+ value: any | undefined;
245
+ }
246
+ /**
247
+ * `Parameters` is a representation of OpenAPI v2 specification's parameters object.
248
+ * Note: This technically breaks compatibility with the OpenAPI 2 definition structure as we only
249
+ * allow header parameters to be set here since we do not want users specifying custom non-header
250
+ * parameters beyond those inferred from the Protobuf schema.
251
+ * See: https://swagger.io/specification/v2/#parameter-object
252
+ */
253
+ export interface Parameters {
254
+ /**
255
+ * `Headers` is one or more HTTP header parameter.
256
+ * See: https://swagger.io/docs/specification/2-0/describing-parameters/#header-parameters
257
+ */
258
+ headers: HeaderParameter[];
259
+ }
260
+ /**
261
+ * `HeaderParameter` a HTTP header parameter.
262
+ * See: https://swagger.io/specification/v2/#parameter-object
263
+ */
264
+ export interface HeaderParameter {
265
+ /** `Name` is the header name. */
266
+ name: string;
267
+ /** `Description` is a short description of the header. */
268
+ description: string;
269
+ /**
270
+ * `Type` is the type of the object. The value MUST be one of "string", "number", "integer", or "boolean". The "array" type is not supported.
271
+ * See: https://swagger.io/specification/v2/#parameterType.
272
+ */
273
+ type: HeaderParameter_Type;
274
+ /** `Format` The extending format for the previously mentioned type. */
275
+ format: string;
276
+ /** `Required` indicates if the header is optional */
277
+ required: boolean;
278
+ }
279
+ /**
280
+ * `Type` is a supported HTTP header type.
281
+ * See https://swagger.io/specification/v2/#parameterType.
282
+ */
283
+ export declare enum HeaderParameter_Type {
284
+ UNKNOWN = 0,
285
+ STRING = 1,
286
+ NUMBER = 2,
287
+ INTEGER = 3,
288
+ BOOLEAN = 4,
289
+ UNRECOGNIZED = -1
290
+ }
291
+ export declare function headerParameter_TypeFromJSON(object: any): HeaderParameter_Type;
292
+ export declare function headerParameter_TypeToJSON(object: HeaderParameter_Type): string;
293
+ /**
294
+ * `Header` is a representation of OpenAPI v2 specification's Header object.
295
+ *
296
+ * See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#headerObject
297
+ */
298
+ export interface Header {
299
+ /** `Description` is a short description of the header. */
300
+ description: string;
301
+ /** The type of the object. The value MUST be one of "string", "number", "integer", or "boolean". The "array" type is not supported. */
302
+ type: string;
303
+ /** `Format` The extending format for the previously mentioned type. */
304
+ format: string;
305
+ /**
306
+ * `Default` Declares the value of the header that the server will use if none is provided.
307
+ * See: https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-6.2.
308
+ * Unlike JSON Schema this value MUST conform to the defined type for the header.
309
+ */
310
+ default: string;
311
+ /** 'Pattern' See https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-5.2.3. */
312
+ pattern: string;
313
+ }
314
+ /**
315
+ * `Response` is a representation of OpenAPI v2 specification's Response object.
316
+ *
317
+ * See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#responseObject
318
+ */
319
+ export interface Response {
320
+ /**
321
+ * `Description` is a short description of the response.
322
+ * GFM syntax can be used for rich text representation.
323
+ */
324
+ description: string;
325
+ /**
326
+ * `Schema` optionally defines the structure of the response.
327
+ * If `Schema` is not provided, it means there is no content to the response.
328
+ */
329
+ schema: Schema | undefined;
330
+ /**
331
+ * `Headers` A list of headers that are sent with the response.
332
+ * `Header` name is expected to be a string in the canonical format of the MIME header key
333
+ * See: https://golang.org/pkg/net/textproto/#CanonicalMIMEHeaderKey
334
+ */
335
+ headers: {
336
+ [key: string]: Header;
337
+ };
338
+ /**
339
+ * `Examples` gives per-mimetype response examples.
340
+ * See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#example-object
341
+ */
342
+ examples: {
343
+ [key: string]: string;
344
+ };
345
+ /**
346
+ * Custom properties that start with "x-" such as "x-foo" used to describe
347
+ * extra functionality that is not covered by the standard OpenAPI Specification.
348
+ * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
349
+ */
350
+ extensions: {
351
+ [key: string]: any | undefined;
352
+ };
353
+ }
354
+ export interface Response_HeadersEntry {
355
+ key: string;
356
+ value: Header | undefined;
357
+ }
358
+ export interface Response_ExamplesEntry {
359
+ key: string;
360
+ value: string;
361
+ }
362
+ export interface Response_ExtensionsEntry {
363
+ key: string;
364
+ value: any | undefined;
365
+ }
366
+ /**
367
+ * `Info` is a representation of OpenAPI v2 specification's Info object.
368
+ *
369
+ * See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#infoObject
370
+ *
371
+ * Example:
372
+ *
373
+ * option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_swagger) = {
374
+ * info: {
375
+ * title: "Echo API";
376
+ * version: "1.0";
377
+ * description: "";
378
+ * contact: {
379
+ * name: "gRPC-Gateway project";
380
+ * url: "https://github.com/grpc-ecosystem/grpc-gateway";
381
+ * email: "none@example.com";
382
+ * };
383
+ * license: {
384
+ * name: "BSD 3-Clause License";
385
+ * url: "https://github.com/grpc-ecosystem/grpc-gateway/blob/main/LICENSE";
386
+ * };
387
+ * };
388
+ * ...
389
+ * };
390
+ */
391
+ export interface Info {
392
+ /** The title of the application. */
393
+ title: string;
394
+ /**
395
+ * A short description of the application. GFM syntax can be used for rich
396
+ * text representation.
397
+ */
398
+ description: string;
399
+ /** The Terms of Service for the API. */
400
+ termsOfService: string;
401
+ /** The contact information for the exposed API. */
402
+ contact: Contact | undefined;
403
+ /** The license information for the exposed API. */
404
+ license: License | undefined;
405
+ /**
406
+ * Provides the version of the application API (not to be confused
407
+ * with the specification version).
408
+ */
409
+ version: string;
410
+ /**
411
+ * Custom properties that start with "x-" such as "x-foo" used to describe
412
+ * extra functionality that is not covered by the standard OpenAPI Specification.
413
+ * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
414
+ */
415
+ extensions: {
416
+ [key: string]: any | undefined;
417
+ };
418
+ }
419
+ export interface Info_ExtensionsEntry {
420
+ key: string;
421
+ value: any | undefined;
422
+ }
423
+ /**
424
+ * `Contact` is a representation of OpenAPI v2 specification's Contact object.
425
+ *
426
+ * See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#contactObject
427
+ *
428
+ * Example:
429
+ *
430
+ * option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_swagger) = {
431
+ * info: {
432
+ * ...
433
+ * contact: {
434
+ * name: "gRPC-Gateway project";
435
+ * url: "https://github.com/grpc-ecosystem/grpc-gateway";
436
+ * email: "none@example.com";
437
+ * };
438
+ * ...
439
+ * };
440
+ * ...
441
+ * };
442
+ */
443
+ export interface Contact {
444
+ /** The identifying name of the contact person/organization. */
445
+ name: string;
446
+ /**
447
+ * The URL pointing to the contact information. MUST be in the format of a
448
+ * URL.
449
+ */
450
+ url: string;
451
+ /**
452
+ * The email address of the contact person/organization. MUST be in the format
453
+ * of an email address.
454
+ */
455
+ email: string;
456
+ }
457
+ /**
458
+ * `License` is a representation of OpenAPI v2 specification's License object.
459
+ *
460
+ * See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#licenseObject
461
+ *
462
+ * Example:
463
+ *
464
+ * option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_swagger) = {
465
+ * info: {
466
+ * ...
467
+ * license: {
468
+ * name: "BSD 3-Clause License";
469
+ * url: "https://github.com/grpc-ecosystem/grpc-gateway/blob/main/LICENSE";
470
+ * };
471
+ * ...
472
+ * };
473
+ * ...
474
+ * };
475
+ */
476
+ export interface License {
477
+ /** The license name used for the API. */
478
+ name: string;
479
+ /** A URL to the license used for the API. MUST be in the format of a URL. */
480
+ url: string;
481
+ }
482
+ /**
483
+ * `ExternalDocumentation` is a representation of OpenAPI v2 specification's
484
+ * ExternalDocumentation object.
485
+ *
486
+ * See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#externalDocumentationObject
487
+ *
488
+ * Example:
489
+ *
490
+ * option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_swagger) = {
491
+ * ...
492
+ * external_docs: {
493
+ * description: "More about gRPC-Gateway";
494
+ * url: "https://github.com/grpc-ecosystem/grpc-gateway";
495
+ * }
496
+ * ...
497
+ * };
498
+ */
499
+ export interface ExternalDocumentation {
500
+ /**
501
+ * A short description of the target documentation. GFM syntax can be used for
502
+ * rich text representation.
503
+ */
504
+ description: string;
505
+ /**
506
+ * The URL for the target documentation. Value MUST be in the format
507
+ * of a URL.
508
+ */
509
+ url: string;
510
+ }
511
+ /**
512
+ * `Schema` is a representation of OpenAPI v2 specification's Schema object.
513
+ *
514
+ * See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#schemaObject
515
+ */
516
+ export interface Schema {
517
+ jsonSchema: JSONSchema | undefined;
518
+ /**
519
+ * Adds support for polymorphism. The discriminator is the schema property
520
+ * name that is used to differentiate between other schema that inherit this
521
+ * schema. The property name used MUST be defined at this schema and it MUST
522
+ * be in the required property list. When used, the value MUST be the name of
523
+ * this schema or any schema that inherits it.
524
+ */
525
+ discriminator: string;
526
+ /**
527
+ * Relevant only for Schema "properties" definitions. Declares the property as
528
+ * "read only". This means that it MAY be sent as part of a response but MUST
529
+ * NOT be sent as part of the request. Properties marked as readOnly being
530
+ * true SHOULD NOT be in the required list of the defined schema. Default
531
+ * value is false.
532
+ */
533
+ readOnly: boolean;
534
+ /** Additional external documentation for this schema. */
535
+ externalDocs: ExternalDocumentation | undefined;
536
+ /**
537
+ * A free-form property to include an example of an instance for this schema in JSON.
538
+ * This is copied verbatim to the output.
539
+ */
540
+ example: string;
541
+ }
542
+ /**
543
+ * `EnumSchema` is subset of fields from the OpenAPI v2 specification's Schema object.
544
+ * Only fields that are applicable to Enums are included
545
+ * See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#schemaObject
546
+ *
547
+ * Example:
548
+ *
549
+ * option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_enum) = {
550
+ * ...
551
+ * title: "MyEnum";
552
+ * description:"This is my nice enum";
553
+ * example: "ZERO";
554
+ * required: true;
555
+ * ...
556
+ * };
557
+ */
558
+ export interface EnumSchema {
559
+ /** A short description of the schema. */
560
+ description: string;
561
+ default: string;
562
+ /** The title of the schema. */
563
+ title: string;
564
+ required: boolean;
565
+ readOnly: boolean;
566
+ /** Additional external documentation for this schema. */
567
+ externalDocs: ExternalDocumentation | undefined;
568
+ example: string;
569
+ /**
570
+ * Ref is used to define an external reference to include in the message.
571
+ * This could be a fully qualified proto message reference, and that type must
572
+ * be imported into the protofile. If no message is identified, the Ref will
573
+ * be used verbatim in the output.
574
+ * For example:
575
+ * `ref: ".google.protobuf.Timestamp"`.
576
+ */
577
+ ref: string;
578
+ /**
579
+ * Custom properties that start with "x-" such as "x-foo" used to describe
580
+ * extra functionality that is not covered by the standard OpenAPI Specification.
581
+ * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
582
+ */
583
+ extensions: {
584
+ [key: string]: any | undefined;
585
+ };
586
+ }
587
+ export interface EnumSchema_ExtensionsEntry {
588
+ key: string;
589
+ value: any | undefined;
590
+ }
591
+ /**
592
+ * `JSONSchema` represents properties from JSON Schema taken, and as used, in
593
+ * the OpenAPI v2 spec.
594
+ *
595
+ * This includes changes made by OpenAPI v2.
596
+ *
597
+ * See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#schemaObject
598
+ *
599
+ * See also: https://cswr.github.io/JsonSchema/spec/basic_types/,
600
+ * https://github.com/json-schema-org/json-schema-spec/blob/master/schema.json
601
+ *
602
+ * Example:
603
+ *
604
+ * message SimpleMessage {
605
+ * option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema) = {
606
+ * json_schema: {
607
+ * title: "SimpleMessage"
608
+ * description: "A simple message."
609
+ * required: ["id"]
610
+ * }
611
+ * };
612
+ *
613
+ * // Id represents the message identifier.
614
+ * string id = 1; [
615
+ * (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
616
+ * description: "The unique identifier of the simple message."
617
+ * }];
618
+ * }
619
+ */
620
+ export interface JSONSchema {
621
+ /**
622
+ * Ref is used to define an external reference to include in the message.
623
+ * This could be a fully qualified proto message reference, and that type must
624
+ * be imported into the protofile. If no message is identified, the Ref will
625
+ * be used verbatim in the output.
626
+ * For example:
627
+ * `ref: ".google.protobuf.Timestamp"`.
628
+ */
629
+ ref: string;
630
+ /** The title of the schema. */
631
+ title: string;
632
+ /** A short description of the schema. */
633
+ description: string;
634
+ default: string;
635
+ readOnly: boolean;
636
+ /**
637
+ * A free-form property to include a JSON example of this field. This is copied
638
+ * verbatim to the output swagger.json. Quotes must be escaped.
639
+ * This property is the same for 2.0 and 3.0.0 https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/3.0.0.md#schemaObject https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#schemaObject
640
+ */
641
+ example: string;
642
+ multipleOf: number;
643
+ /**
644
+ * Maximum represents an inclusive upper limit for a numeric instance. The
645
+ * value of MUST be a number,
646
+ */
647
+ maximum: number;
648
+ exclusiveMaximum: boolean;
649
+ /**
650
+ * minimum represents an inclusive lower limit for a numeric instance. The
651
+ * value of MUST be a number,
652
+ */
653
+ minimum: number;
654
+ exclusiveMinimum: boolean;
655
+ maxLength: bigint;
656
+ minLength: bigint;
657
+ pattern: string;
658
+ maxItems: bigint;
659
+ minItems: bigint;
660
+ uniqueItems: boolean;
661
+ maxProperties: bigint;
662
+ minProperties: bigint;
663
+ required: string[];
664
+ /** Items in 'array' must be unique. */
665
+ array: string[];
666
+ type: JSONSchema_JSONSchemaSimpleTypes[];
667
+ /** `Format` */
668
+ format: string;
669
+ /** Items in `enum` must be unique https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-5.5.1 */
670
+ enum: string[];
671
+ /** Additional field level properties used when generating the OpenAPI v2 file. */
672
+ fieldConfiguration: JSONSchema_FieldConfiguration | undefined;
673
+ /**
674
+ * Custom properties that start with "x-" such as "x-foo" used to describe
675
+ * extra functionality that is not covered by the standard OpenAPI Specification.
676
+ * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
677
+ */
678
+ extensions: {
679
+ [key: string]: any | undefined;
680
+ };
681
+ }
682
+ export declare enum JSONSchema_JSONSchemaSimpleTypes {
683
+ UNKNOWN = 0,
684
+ ARRAY = 1,
685
+ BOOLEAN = 2,
686
+ INTEGER = 3,
687
+ NULL = 4,
688
+ NUMBER = 5,
689
+ OBJECT = 6,
690
+ STRING = 7,
691
+ UNRECOGNIZED = -1
692
+ }
693
+ export declare function jSONSchema_JSONSchemaSimpleTypesFromJSON(object: any): JSONSchema_JSONSchemaSimpleTypes;
694
+ export declare function jSONSchema_JSONSchemaSimpleTypesToJSON(object: JSONSchema_JSONSchemaSimpleTypes): string;
695
+ /**
696
+ * 'FieldConfiguration' provides additional field level properties used when generating the OpenAPI v2 file.
697
+ * These properties are not defined by OpenAPIv2, but they are used to control the generation.
698
+ */
699
+ export interface JSONSchema_FieldConfiguration {
700
+ /**
701
+ * Alternative parameter name when used as path parameter. If set, this will
702
+ * be used as the complete parameter name when this field is used as a path
703
+ * parameter. Use this to avoid having auto generated path parameter names
704
+ * for overlapping paths.
705
+ */
706
+ pathParamName: string;
707
+ /**
708
+ * Declares this field to be deprecated. Allows for the generated OpenAPI
709
+ * parameter to be marked as deprecated without affecting the proto field.
710
+ */
711
+ deprecated: boolean;
712
+ }
713
+ export interface JSONSchema_ExtensionsEntry {
714
+ key: string;
715
+ value: any | undefined;
716
+ }
717
+ /**
718
+ * `Tag` is a representation of OpenAPI v2 specification's Tag object.
719
+ *
720
+ * See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#tagObject
721
+ */
722
+ export interface Tag {
723
+ /**
724
+ * The name of the tag. Use it to allow override of the name of a
725
+ * global Tag object, then use that name to reference the tag throughout the
726
+ * OpenAPI file.
727
+ */
728
+ name: string;
729
+ /**
730
+ * A short description for the tag. GFM syntax can be used for rich text
731
+ * representation.
732
+ */
733
+ description: string;
734
+ /** Additional external documentation for this tag. */
735
+ externalDocs: ExternalDocumentation | undefined;
736
+ /**
737
+ * Custom properties that start with "x-" such as "x-foo" used to describe
738
+ * extra functionality that is not covered by the standard OpenAPI Specification.
739
+ * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
740
+ */
741
+ extensions: {
742
+ [key: string]: any | undefined;
743
+ };
744
+ }
745
+ export interface Tag_ExtensionsEntry {
746
+ key: string;
747
+ value: any | undefined;
748
+ }
749
+ /**
750
+ * `SecurityDefinitions` is a representation of OpenAPI v2 specification's
751
+ * Security Definitions object.
752
+ *
753
+ * See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#securityDefinitionsObject
754
+ *
755
+ * A declaration of the security schemes available to be used in the
756
+ * specification. This does not enforce the security schemes on the operations
757
+ * and only serves to provide the relevant details for each scheme.
758
+ */
759
+ export interface SecurityDefinitions {
760
+ /**
761
+ * A single security scheme definition, mapping a "name" to the scheme it
762
+ * defines.
763
+ */
764
+ security: {
765
+ [key: string]: SecurityScheme;
766
+ };
767
+ }
768
+ export interface SecurityDefinitions_SecurityEntry {
769
+ key: string;
770
+ value: SecurityScheme | undefined;
771
+ }
772
+ /**
773
+ * `SecurityScheme` is a representation of OpenAPI v2 specification's
774
+ * Security Scheme object.
775
+ *
776
+ * See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#securitySchemeObject
777
+ *
778
+ * Allows the definition of a security scheme that can be used by the
779
+ * operations. Supported schemes are basic authentication, an API key (either as
780
+ * a header or as a query parameter) and OAuth2's common flows (implicit,
781
+ * password, application and access code).
782
+ */
783
+ export interface SecurityScheme {
784
+ /**
785
+ * The type of the security scheme. Valid values are "basic",
786
+ * "apiKey" or "oauth2".
787
+ */
788
+ type: SecurityScheme_Type;
789
+ /** A short description for security scheme. */
790
+ description: string;
791
+ /**
792
+ * The name of the header or query parameter to be used.
793
+ * Valid for apiKey.
794
+ */
795
+ name: string;
796
+ /**
797
+ * The location of the API key. Valid values are "query" or
798
+ * "header".
799
+ * Valid for apiKey.
800
+ */
801
+ in: SecurityScheme_In;
802
+ /**
803
+ * The flow used by the OAuth2 security scheme. Valid values are
804
+ * "implicit", "password", "application" or "accessCode".
805
+ * Valid for oauth2.
806
+ */
807
+ flow: SecurityScheme_Flow;
808
+ /**
809
+ * The authorization URL to be used for this flow. This SHOULD be in
810
+ * the form of a URL.
811
+ * Valid for oauth2/implicit and oauth2/accessCode.
812
+ */
813
+ authorizationUrl: string;
814
+ /**
815
+ * The token URL to be used for this flow. This SHOULD be in the
816
+ * form of a URL.
817
+ * Valid for oauth2/password, oauth2/application and oauth2/accessCode.
818
+ */
819
+ tokenUrl: string;
820
+ /**
821
+ * The available scopes for the OAuth2 security scheme.
822
+ * Valid for oauth2.
823
+ */
824
+ scopes: Scopes | undefined;
825
+ /**
826
+ * Custom properties that start with "x-" such as "x-foo" used to describe
827
+ * extra functionality that is not covered by the standard OpenAPI Specification.
828
+ * See: https://swagger.io/docs/specification/2-0/swagger-extensions/
829
+ */
830
+ extensions: {
831
+ [key: string]: any | undefined;
832
+ };
833
+ }
834
+ /**
835
+ * The type of the security scheme. Valid values are "basic",
836
+ * "apiKey" or "oauth2".
837
+ */
838
+ export declare enum SecurityScheme_Type {
839
+ TYPE_INVALID = 0,
840
+ TYPE_BASIC = 1,
841
+ TYPE_API_KEY = 2,
842
+ TYPE_OAUTH2 = 3,
843
+ UNRECOGNIZED = -1
844
+ }
845
+ export declare function securityScheme_TypeFromJSON(object: any): SecurityScheme_Type;
846
+ export declare function securityScheme_TypeToJSON(object: SecurityScheme_Type): string;
847
+ /** The location of the API key. Valid values are "query" or "header". */
848
+ export declare enum SecurityScheme_In {
849
+ IN_INVALID = 0,
850
+ IN_QUERY = 1,
851
+ IN_HEADER = 2,
852
+ UNRECOGNIZED = -1
853
+ }
854
+ export declare function securityScheme_InFromJSON(object: any): SecurityScheme_In;
855
+ export declare function securityScheme_InToJSON(object: SecurityScheme_In): string;
856
+ /**
857
+ * The flow used by the OAuth2 security scheme. Valid values are
858
+ * "implicit", "password", "application" or "accessCode".
859
+ */
860
+ export declare enum SecurityScheme_Flow {
861
+ FLOW_INVALID = 0,
862
+ FLOW_IMPLICIT = 1,
863
+ FLOW_PASSWORD = 2,
864
+ FLOW_APPLICATION = 3,
865
+ FLOW_ACCESS_CODE = 4,
866
+ UNRECOGNIZED = -1
867
+ }
868
+ export declare function securityScheme_FlowFromJSON(object: any): SecurityScheme_Flow;
869
+ export declare function securityScheme_FlowToJSON(object: SecurityScheme_Flow): string;
870
+ export interface SecurityScheme_ExtensionsEntry {
871
+ key: string;
872
+ value: any | undefined;
873
+ }
874
+ /**
875
+ * `SecurityRequirement` is a representation of OpenAPI v2 specification's
876
+ * Security Requirement object.
877
+ *
878
+ * See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#securityRequirementObject
879
+ *
880
+ * Lists the required security schemes to execute this operation. The object can
881
+ * have multiple security schemes declared in it which are all required (that
882
+ * is, there is a logical AND between the schemes).
883
+ *
884
+ * The name used for each property MUST correspond to a security scheme
885
+ * declared in the Security Definitions.
886
+ */
887
+ export interface SecurityRequirement {
888
+ /**
889
+ * Each name must correspond to a security scheme which is declared in
890
+ * the Security Definitions. If the security scheme is of type "oauth2",
891
+ * then the value is a list of scope names required for the execution.
892
+ * For other security scheme types, the array MUST be empty.
893
+ */
894
+ securityRequirement: {
895
+ [key: string]: SecurityRequirement_SecurityRequirementValue;
896
+ };
897
+ }
898
+ /**
899
+ * If the security scheme is of type "oauth2", then the value is a list of
900
+ * scope names required for the execution. For other security scheme types,
901
+ * the array MUST be empty.
902
+ */
903
+ export interface SecurityRequirement_SecurityRequirementValue {
904
+ scope: string[];
905
+ }
906
+ export interface SecurityRequirement_SecurityRequirementEntry {
907
+ key: string;
908
+ value: SecurityRequirement_SecurityRequirementValue | undefined;
909
+ }
910
+ /**
911
+ * `Scopes` is a representation of OpenAPI v2 specification's Scopes object.
912
+ *
913
+ * See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#scopesObject
914
+ *
915
+ * Lists the available scopes for an OAuth2 security scheme.
916
+ */
917
+ export interface Scopes {
918
+ /**
919
+ * Maps between a name of a scope to a short description of it (as the value
920
+ * of the property).
921
+ */
922
+ scope: {
923
+ [key: string]: string;
924
+ };
925
+ }
926
+ export interface Scopes_ScopeEntry {
927
+ key: string;
928
+ value: string;
929
+ }
930
+ export declare const Swagger: MessageFns<Swagger>;
931
+ export declare const Swagger_ResponsesEntry: MessageFns<Swagger_ResponsesEntry>;
932
+ export declare const Swagger_ExtensionsEntry: MessageFns<Swagger_ExtensionsEntry>;
933
+ export declare const Operation: MessageFns<Operation>;
934
+ export declare const Operation_ResponsesEntry: MessageFns<Operation_ResponsesEntry>;
935
+ export declare const Operation_ExtensionsEntry: MessageFns<Operation_ExtensionsEntry>;
936
+ export declare const Parameters: MessageFns<Parameters>;
937
+ export declare const HeaderParameter: MessageFns<HeaderParameter>;
938
+ export declare const Header: MessageFns<Header>;
939
+ export declare const Response: MessageFns<Response>;
940
+ export declare const Response_HeadersEntry: MessageFns<Response_HeadersEntry>;
941
+ export declare const Response_ExamplesEntry: MessageFns<Response_ExamplesEntry>;
942
+ export declare const Response_ExtensionsEntry: MessageFns<Response_ExtensionsEntry>;
943
+ export declare const Info: MessageFns<Info>;
944
+ export declare const Info_ExtensionsEntry: MessageFns<Info_ExtensionsEntry>;
945
+ export declare const Contact: MessageFns<Contact>;
946
+ export declare const License: MessageFns<License>;
947
+ export declare const ExternalDocumentation: MessageFns<ExternalDocumentation>;
948
+ export declare const Schema: MessageFns<Schema>;
949
+ export declare const EnumSchema: MessageFns<EnumSchema>;
950
+ export declare const EnumSchema_ExtensionsEntry: MessageFns<EnumSchema_ExtensionsEntry>;
951
+ export declare const JSONSchema: MessageFns<JSONSchema>;
952
+ export declare const JSONSchema_FieldConfiguration: MessageFns<JSONSchema_FieldConfiguration>;
953
+ export declare const JSONSchema_ExtensionsEntry: MessageFns<JSONSchema_ExtensionsEntry>;
954
+ export declare const Tag: MessageFns<Tag>;
955
+ export declare const Tag_ExtensionsEntry: MessageFns<Tag_ExtensionsEntry>;
956
+ export declare const SecurityDefinitions: MessageFns<SecurityDefinitions>;
957
+ export declare const SecurityDefinitions_SecurityEntry: MessageFns<SecurityDefinitions_SecurityEntry>;
958
+ export declare const SecurityScheme: MessageFns<SecurityScheme>;
959
+ export declare const SecurityScheme_ExtensionsEntry: MessageFns<SecurityScheme_ExtensionsEntry>;
960
+ export declare const SecurityRequirement: MessageFns<SecurityRequirement>;
961
+ export declare const SecurityRequirement_SecurityRequirementValue: MessageFns<SecurityRequirement_SecurityRequirementValue>;
962
+ export declare const SecurityRequirement_SecurityRequirementEntry: MessageFns<SecurityRequirement_SecurityRequirementEntry>;
963
+ export declare const Scopes: MessageFns<Scopes>;
964
+ export declare const Scopes_ScopeEntry: MessageFns<Scopes_ScopeEntry>;
965
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | bigint | undefined;
966
+ export type DeepPartial<T> = T extends bigint ? string | number | bigint : T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {
967
+ $case: string;
968
+ value: unknown;
969
+ } ? {
970
+ $case: T["$case"];
971
+ value?: DeepPartial<T["value"]>;
972
+ } : T extends {} ? {
973
+ [K in keyof T]?: DeepPartial<T[K]>;
974
+ } : Partial<T>;
975
+ export interface MessageFns<T> {
976
+ encode(message: T, writer?: BinaryWriter): BinaryWriter;
977
+ decode(input: BinaryReader | Uint8Array, length?: number): T;
978
+ fromJSON(object: any): T;
979
+ toJSON(message: T): unknown;
980
+ create(base?: DeepPartial<T>): T;
981
+ fromPartial(object: DeepPartial<T>): T;
982
+ }
983
+ export {};