@viamrobotics/sdk 0.56.0 → 0.58.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 (76) hide show
  1. package/README.md +0 -5
  2. package/dist/api-version.d.ts +1 -1
  3. package/dist/app/data-client.d.ts +21 -1
  4. package/dist/audio-common.d.ts +1 -1
  5. package/dist/events.d.ts +2 -1
  6. package/dist/gen/app/data/v1/data_connect.d.ts +12 -1
  7. package/dist/gen/app/data/v1/data_pb.d.ts +67 -0
  8. package/dist/gen/app/mltraining/v1/ml_training_connect.d.ts +12 -1
  9. package/dist/gen/app/mltraining/v1/ml_training_pb.d.ts +107 -0
  10. package/dist/gen/app/v1/app_pb.d.ts +65 -0
  11. package/dist/gen/app/v1/billing_pb.d.ts +10 -0
  12. package/dist/gen/app/v1/robot_pb.d.ts +7 -0
  13. package/dist/gen/common/v1/common_pb.d.ts +1 -1
  14. package/dist/gen/component/camera/v1/camera_pb.d.ts +8 -0
  15. package/dist/gen/component/gantry/v1/gantry_connect.d.ts +10 -1
  16. package/dist/gen/google/api/routing_pb.d.ts +508 -0
  17. package/dist/gen/google/iam/v1/iam_policy_connect.d.ts +102 -0
  18. package/dist/gen/google/iam/v1/iam_policy_pb.d.ts +179 -0
  19. package/dist/gen/google/iam/v1/options_pb.d.ts +67 -0
  20. package/dist/gen/google/iam/v1/policy_pb.d.ts +668 -0
  21. package/dist/gen/opentelemetry/proto/collector/logs/v1/logs_service_connect.d.ts +44 -0
  22. package/dist/gen/opentelemetry/proto/collector/logs/v1/logs_service_pb.d.ts +135 -0
  23. package/dist/gen/opentelemetry/proto/collector/metrics/v1/metrics_service_connect.d.ts +44 -0
  24. package/dist/gen/opentelemetry/proto/collector/metrics/v1/metrics_service_pb.d.ts +135 -0
  25. package/dist/gen/opentelemetry/proto/collector/profiles/v1development/profiles_service_connect.d.ts +43 -0
  26. package/dist/gen/opentelemetry/proto/collector/profiles/v1development/profiles_service_pb.d.ts +142 -0
  27. package/dist/gen/opentelemetry/proto/collector/trace/v1/trace_service_connect.d.ts +44 -0
  28. package/dist/gen/opentelemetry/proto/collector/trace/v1/trace_service_pb.d.ts +135 -0
  29. package/dist/gen/opentelemetry/proto/common/v1/common_pb.d.ts +322 -0
  30. package/dist/gen/opentelemetry/proto/logs/v1/logs_pb.d.ts +479 -0
  31. package/dist/gen/opentelemetry/proto/metrics/v1/metrics_pb.d.ts +1349 -0
  32. package/dist/gen/opentelemetry/proto/profiles/v1development/profiles_pb.d.ts +890 -0
  33. package/dist/gen/opentelemetry/proto/resource/v1/resource_pb.d.ts +73 -0
  34. package/dist/gen/opentelemetry/proto/trace/v1/trace_pb.d.ts +683 -0
  35. package/dist/gen/robot/v1/robot_connect.d.ts +10 -1
  36. package/dist/gen/robot/v1/robot_pb.d.ts +83 -0
  37. package/dist/main.es.js +13572 -12946
  38. package/dist/main.umd.js +7 -7
  39. package/dist/robot/client.d.ts +33 -16
  40. package/dist/robot/robot.d.ts +19 -10
  41. package/dist/robot.d.ts +1 -1
  42. package/dist/services/motion/client.d.ts +1 -0
  43. package/dist/services/motion/motion.d.ts +1 -0
  44. package/package.json +11 -7
  45. package/dist/__fixtures__/credentials.d.ts +0 -5
  46. package/dist/__fixtures__/test-constants.d.ts +0 -4
  47. package/dist/__mocks__/transports.d.ts +0 -2
  48. package/dist/__mocks__/webrtc.d.ts +0 -2
  49. package/dist/app/app-client.spec.d.ts +0 -1
  50. package/dist/app/billing-client.spec.d.ts +0 -1
  51. package/dist/app/data-client.spec.d.ts +0 -1
  52. package/dist/app/ml-training-client.spec.d.ts +0 -1
  53. package/dist/app/provisioning-client.spec.d.ts +0 -1
  54. package/dist/app/viam-client.spec.d.ts +0 -1
  55. package/dist/components/audio-in/client.spec.d.ts +0 -1
  56. package/dist/components/audio-out/client.spec.d.ts +0 -1
  57. package/dist/components/board/client.spec.d.ts +0 -1
  58. package/dist/components/input-controller/client.spec.d.ts +0 -1
  59. package/dist/components/movement-sensor/client.spec.d.ts +0 -1
  60. package/dist/components/power-sensor/client.spec.d.ts +0 -1
  61. package/dist/extra/stream/client.spec.d.ts +0 -1
  62. package/dist/robot/__fixtures__/dial-configs.d.ts +0 -4
  63. package/dist/robot/__mocks__/robot-service.d.ts +0 -5
  64. package/dist/robot/__tests__/client.spec.d.ts +0 -1
  65. package/dist/robot/__tests__/grpc-connection-manager.spec.d.ts +0 -1
  66. package/dist/robot/__tests__/session-manager.spec.d.ts +0 -1
  67. package/dist/rpc/__fixtures__/dial-options.d.ts +0 -6
  68. package/dist/rpc/__fixtures__/dial-webrtc-options.d.ts +0 -8
  69. package/dist/rpc/__mocks__/signaling-exchanges.d.ts +0 -3
  70. package/dist/rpc/__tests__/dial.spec.d.ts +0 -1
  71. package/dist/services/discovery/client.spec.d.ts +0 -1
  72. package/dist/services/motion/client.spec.d.ts +0 -1
  73. package/dist/services/navigation/client.spec.d.ts +0 -1
  74. package/dist/services/slam/client.spec.d.ts +0 -1
  75. package/dist/services/vision/client.spec.d.ts +0 -1
  76. package/dist/services/world-state-store/client.spec.d.ts +0 -1
@@ -0,0 +1,508 @@
1
+ // Copyright 2025 Google LLC
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
14
+
15
+ // @generated by protoc-gen-es v1.10.0
16
+ // @generated from file google/api/routing.proto (package google.api, syntax proto3)
17
+ /* eslint-disable */
18
+ // @ts-nocheck
19
+
20
+ import type { BinaryReadOptions, Extension, FieldList, JsonReadOptions, JsonValue, MethodOptions, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
21
+ import { Message, proto3 } from "@bufbuild/protobuf";
22
+
23
+ /**
24
+ * Specifies the routing information that should be sent along with the request
25
+ * in the form of routing header.
26
+ * **NOTE:** All service configuration rules follow the "last one wins" order.
27
+ *
28
+ * The examples below will apply to an RPC which has the following request type:
29
+ *
30
+ * Message Definition:
31
+ *
32
+ * message Request {
33
+ * // The name of the Table
34
+ * // Values can be of the following formats:
35
+ * // - `projects/<project>/tables/<table>`
36
+ * // - `projects/<project>/instances/<instance>/tables/<table>`
37
+ * // - `region/<region>/zones/<zone>/tables/<table>`
38
+ * string table_name = 1;
39
+ *
40
+ * // This value specifies routing for replication.
41
+ * // It can be in the following formats:
42
+ * // - `profiles/<profile_id>`
43
+ * // - a legacy `profile_id` that can be any string
44
+ * string app_profile_id = 2;
45
+ * }
46
+ *
47
+ * Example message:
48
+ *
49
+ * {
50
+ * table_name: projects/proj_foo/instances/instance_bar/table/table_baz,
51
+ * app_profile_id: profiles/prof_qux
52
+ * }
53
+ *
54
+ * The routing header consists of one or multiple key-value pairs. Every key
55
+ * and value must be percent-encoded, and joined together in the format of
56
+ * `key1=value1&key2=value2`.
57
+ * The examples below skip the percent-encoding for readability.
58
+ *
59
+ * Example 1
60
+ *
61
+ * Extracting a field from the request to put into the routing header
62
+ * unchanged, with the key equal to the field name.
63
+ *
64
+ * annotation:
65
+ *
66
+ * option (google.api.routing) = {
67
+ * // Take the `app_profile_id`.
68
+ * routing_parameters {
69
+ * field: "app_profile_id"
70
+ * }
71
+ * };
72
+ *
73
+ * result:
74
+ *
75
+ * x-goog-request-params: app_profile_id=profiles/prof_qux
76
+ *
77
+ * Example 2
78
+ *
79
+ * Extracting a field from the request to put into the routing header
80
+ * unchanged, with the key different from the field name.
81
+ *
82
+ * annotation:
83
+ *
84
+ * option (google.api.routing) = {
85
+ * // Take the `app_profile_id`, but name it `routing_id` in the header.
86
+ * routing_parameters {
87
+ * field: "app_profile_id"
88
+ * path_template: "{routing_id=**}"
89
+ * }
90
+ * };
91
+ *
92
+ * result:
93
+ *
94
+ * x-goog-request-params: routing_id=profiles/prof_qux
95
+ *
96
+ * Example 3
97
+ *
98
+ * Extracting a field from the request to put into the routing
99
+ * header, while matching a path template syntax on the field's value.
100
+ *
101
+ * NB: it is more useful to send nothing than to send garbage for the purpose
102
+ * of dynamic routing, since garbage pollutes cache. Thus the matching.
103
+ *
104
+ * Sub-example 3a
105
+ *
106
+ * The field matches the template.
107
+ *
108
+ * annotation:
109
+ *
110
+ * option (google.api.routing) = {
111
+ * // Take the `table_name`, if it's well-formed (with project-based
112
+ * // syntax).
113
+ * routing_parameters {
114
+ * field: "table_name"
115
+ * path_template: "{table_name=projects/*\/instances/*\/**}"
116
+ * }
117
+ * };
118
+ *
119
+ * result:
120
+ *
121
+ * x-goog-request-params:
122
+ * table_name=projects/proj_foo/instances/instance_bar/table/table_baz
123
+ *
124
+ * Sub-example 3b
125
+ *
126
+ * The field does not match the template.
127
+ *
128
+ * annotation:
129
+ *
130
+ * option (google.api.routing) = {
131
+ * // Take the `table_name`, if it's well-formed (with region-based
132
+ * // syntax).
133
+ * routing_parameters {
134
+ * field: "table_name"
135
+ * path_template: "{table_name=regions/*\/zones/*\/**}"
136
+ * }
137
+ * };
138
+ *
139
+ * result:
140
+ *
141
+ * <no routing header will be sent>
142
+ *
143
+ * Sub-example 3c
144
+ *
145
+ * Multiple alternative conflictingly named path templates are
146
+ * specified. The one that matches is used to construct the header.
147
+ *
148
+ * annotation:
149
+ *
150
+ * option (google.api.routing) = {
151
+ * // Take the `table_name`, if it's well-formed, whether
152
+ * // using the region- or projects-based syntax.
153
+ *
154
+ * routing_parameters {
155
+ * field: "table_name"
156
+ * path_template: "{table_name=regions/*\/zones/*\/**}"
157
+ * }
158
+ * routing_parameters {
159
+ * field: "table_name"
160
+ * path_template: "{table_name=projects/*\/instances/*\/**}"
161
+ * }
162
+ * };
163
+ *
164
+ * result:
165
+ *
166
+ * x-goog-request-params:
167
+ * table_name=projects/proj_foo/instances/instance_bar/table/table_baz
168
+ *
169
+ * Example 4
170
+ *
171
+ * Extracting a single routing header key-value pair by matching a
172
+ * template syntax on (a part of) a single request field.
173
+ *
174
+ * annotation:
175
+ *
176
+ * option (google.api.routing) = {
177
+ * // Take just the project id from the `table_name` field.
178
+ * routing_parameters {
179
+ * field: "table_name"
180
+ * path_template: "{routing_id=projects/*}/**"
181
+ * }
182
+ * };
183
+ *
184
+ * result:
185
+ *
186
+ * x-goog-request-params: routing_id=projects/proj_foo
187
+ *
188
+ * Example 5
189
+ *
190
+ * Extracting a single routing header key-value pair by matching
191
+ * several conflictingly named path templates on (parts of) a single request
192
+ * field. The last template to match "wins" the conflict.
193
+ *
194
+ * annotation:
195
+ *
196
+ * option (google.api.routing) = {
197
+ * // If the `table_name` does not have instances information,
198
+ * // take just the project id for routing.
199
+ * // Otherwise take project + instance.
200
+ *
201
+ * routing_parameters {
202
+ * field: "table_name"
203
+ * path_template: "{routing_id=projects/*}/**"
204
+ * }
205
+ * routing_parameters {
206
+ * field: "table_name"
207
+ * path_template: "{routing_id=projects/*\/instances/*}/**"
208
+ * }
209
+ * };
210
+ *
211
+ * result:
212
+ *
213
+ * x-goog-request-params:
214
+ * routing_id=projects/proj_foo/instances/instance_bar
215
+ *
216
+ * Example 6
217
+ *
218
+ * Extracting multiple routing header key-value pairs by matching
219
+ * several non-conflicting path templates on (parts of) a single request field.
220
+ *
221
+ * Sub-example 6a
222
+ *
223
+ * Make the templates strict, so that if the `table_name` does not
224
+ * have an instance information, nothing is sent.
225
+ *
226
+ * annotation:
227
+ *
228
+ * option (google.api.routing) = {
229
+ * // The routing code needs two keys instead of one composite
230
+ * // but works only for the tables with the "project-instance" name
231
+ * // syntax.
232
+ *
233
+ * routing_parameters {
234
+ * field: "table_name"
235
+ * path_template: "{project_id=projects/*}/instances/*\/**"
236
+ * }
237
+ * routing_parameters {
238
+ * field: "table_name"
239
+ * path_template: "projects/*\/{instance_id=instances/*}/**"
240
+ * }
241
+ * };
242
+ *
243
+ * result:
244
+ *
245
+ * x-goog-request-params:
246
+ * project_id=projects/proj_foo&instance_id=instances/instance_bar
247
+ *
248
+ * Sub-example 6b
249
+ *
250
+ * Make the templates loose, so that if the `table_name` does not
251
+ * have an instance information, just the project id part is sent.
252
+ *
253
+ * annotation:
254
+ *
255
+ * option (google.api.routing) = {
256
+ * // The routing code wants two keys instead of one composite
257
+ * // but will work with just the `project_id` for tables without
258
+ * // an instance in the `table_name`.
259
+ *
260
+ * routing_parameters {
261
+ * field: "table_name"
262
+ * path_template: "{project_id=projects/*}/**"
263
+ * }
264
+ * routing_parameters {
265
+ * field: "table_name"
266
+ * path_template: "projects/*\/{instance_id=instances/*}/**"
267
+ * }
268
+ * };
269
+ *
270
+ * result (is the same as 6a for our example message because it has the instance
271
+ * information):
272
+ *
273
+ * x-goog-request-params:
274
+ * project_id=projects/proj_foo&instance_id=instances/instance_bar
275
+ *
276
+ * Example 7
277
+ *
278
+ * Extracting multiple routing header key-value pairs by matching
279
+ * several path templates on multiple request fields.
280
+ *
281
+ * NB: note that here there is no way to specify sending nothing if one of the
282
+ * fields does not match its template. E.g. if the `table_name` is in the wrong
283
+ * format, the `project_id` will not be sent, but the `routing_id` will be.
284
+ * The backend routing code has to be aware of that and be prepared to not
285
+ * receive a full complement of keys if it expects multiple.
286
+ *
287
+ * annotation:
288
+ *
289
+ * option (google.api.routing) = {
290
+ * // The routing needs both `project_id` and `routing_id`
291
+ * // (from the `app_profile_id` field) for routing.
292
+ *
293
+ * routing_parameters {
294
+ * field: "table_name"
295
+ * path_template: "{project_id=projects/*}/**"
296
+ * }
297
+ * routing_parameters {
298
+ * field: "app_profile_id"
299
+ * path_template: "{routing_id=**}"
300
+ * }
301
+ * };
302
+ *
303
+ * result:
304
+ *
305
+ * x-goog-request-params:
306
+ * project_id=projects/proj_foo&routing_id=profiles/prof_qux
307
+ *
308
+ * Example 8
309
+ *
310
+ * Extracting a single routing header key-value pair by matching
311
+ * several conflictingly named path templates on several request fields. The
312
+ * last template to match "wins" the conflict.
313
+ *
314
+ * annotation:
315
+ *
316
+ * option (google.api.routing) = {
317
+ * // The `routing_id` can be a project id or a region id depending on
318
+ * // the table name format, but only if the `app_profile_id` is not set.
319
+ * // If `app_profile_id` is set it should be used instead.
320
+ *
321
+ * routing_parameters {
322
+ * field: "table_name"
323
+ * path_template: "{routing_id=projects/*}/**"
324
+ * }
325
+ * routing_parameters {
326
+ * field: "table_name"
327
+ * path_template: "{routing_id=regions/*}/**"
328
+ * }
329
+ * routing_parameters {
330
+ * field: "app_profile_id"
331
+ * path_template: "{routing_id=**}"
332
+ * }
333
+ * };
334
+ *
335
+ * result:
336
+ *
337
+ * x-goog-request-params: routing_id=profiles/prof_qux
338
+ *
339
+ * Example 9
340
+ *
341
+ * Bringing it all together.
342
+ *
343
+ * annotation:
344
+ *
345
+ * option (google.api.routing) = {
346
+ * // For routing both `table_location` and a `routing_id` are needed.
347
+ * //
348
+ * // table_location can be either an instance id or a region+zone id.
349
+ * //
350
+ * // For `routing_id`, take the value of `app_profile_id`
351
+ * // - If it's in the format `profiles/<profile_id>`, send
352
+ * // just the `<profile_id>` part.
353
+ * // - If it's any other literal, send it as is.
354
+ * // If the `app_profile_id` is empty, and the `table_name` starts with
355
+ * // the project_id, send that instead.
356
+ *
357
+ * routing_parameters {
358
+ * field: "table_name"
359
+ * path_template: "projects/*\/{table_location=instances/*}/tables/*"
360
+ * }
361
+ * routing_parameters {
362
+ * field: "table_name"
363
+ * path_template: "{table_location=regions/*\/zones/*}/tables/*"
364
+ * }
365
+ * routing_parameters {
366
+ * field: "table_name"
367
+ * path_template: "{routing_id=projects/*}/**"
368
+ * }
369
+ * routing_parameters {
370
+ * field: "app_profile_id"
371
+ * path_template: "{routing_id=**}"
372
+ * }
373
+ * routing_parameters {
374
+ * field: "app_profile_id"
375
+ * path_template: "profiles/{routing_id=*}"
376
+ * }
377
+ * };
378
+ *
379
+ * result:
380
+ *
381
+ * x-goog-request-params:
382
+ * table_location=instances/instance_bar&routing_id=prof_qux
383
+ *
384
+ * @generated from message google.api.RoutingRule
385
+ */
386
+ export declare class RoutingRule extends Message<RoutingRule> {
387
+ /**
388
+ * A collection of Routing Parameter specifications.
389
+ * **NOTE:** If multiple Routing Parameters describe the same key
390
+ * (via the `path_template` field or via the `field` field when
391
+ * `path_template` is not provided), "last one wins" rule
392
+ * determines which Parameter gets used.
393
+ * See the examples for more details.
394
+ *
395
+ * @generated from field: repeated google.api.RoutingParameter routing_parameters = 2;
396
+ */
397
+ routingParameters: RoutingParameter[];
398
+
399
+ constructor(data?: PartialMessage<RoutingRule>);
400
+
401
+ static readonly runtime: typeof proto3;
402
+ static readonly typeName = "google.api.RoutingRule";
403
+ static readonly fields: FieldList;
404
+
405
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RoutingRule;
406
+
407
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RoutingRule;
408
+
409
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RoutingRule;
410
+
411
+ static equals(a: RoutingRule | PlainMessage<RoutingRule> | undefined, b: RoutingRule | PlainMessage<RoutingRule> | undefined): boolean;
412
+ }
413
+
414
+ /**
415
+ * A projection from an input message to the GRPC or REST header.
416
+ *
417
+ * @generated from message google.api.RoutingParameter
418
+ */
419
+ export declare class RoutingParameter extends Message<RoutingParameter> {
420
+ /**
421
+ * A request field to extract the header key-value pair from.
422
+ *
423
+ * @generated from field: string field = 1;
424
+ */
425
+ field: string;
426
+
427
+ /**
428
+ * A pattern matching the key-value field. Optional.
429
+ * If not specified, the whole field specified in the `field` field will be
430
+ * taken as value, and its name used as key. If specified, it MUST contain
431
+ * exactly one named segment (along with any number of unnamed segments) The
432
+ * pattern will be matched over the field specified in the `field` field, then
433
+ * if the match is successful:
434
+ * - the name of the single named segment will be used as a header name,
435
+ * - the match value of the segment will be used as a header value;
436
+ * if the match is NOT successful, nothing will be sent.
437
+ *
438
+ * Example:
439
+ *
440
+ * -- This is a field in the request message
441
+ * | that the header value will be extracted from.
442
+ * |
443
+ * | -- This is the key name in the
444
+ * | | routing header.
445
+ * V |
446
+ * field: "table_name" v
447
+ * path_template: "projects/*\/{table_location=instances/*}/tables/*"
448
+ * ^ ^
449
+ * | |
450
+ * In the {} brackets is the pattern that -- |
451
+ * specifies what to extract from the |
452
+ * field as a value to be sent. |
453
+ * |
454
+ * The string in the field must match the whole pattern --
455
+ * before brackets, inside brackets, after brackets.
456
+ *
457
+ * When looking at this specific example, we can see that:
458
+ * - A key-value pair with the key `table_location`
459
+ * and the value matching `instances/*` should be added
460
+ * to the x-goog-request-params routing header.
461
+ * - The value is extracted from the request message's `table_name` field
462
+ * if it matches the full pattern specified:
463
+ * `projects/*\/instances/*\/tables/*`.
464
+ *
465
+ * **NB:** If the `path_template` field is not provided, the key name is
466
+ * equal to the field name, and the whole field should be sent as a value.
467
+ * This makes the pattern for the field and the value functionally equivalent
468
+ * to `**`, and the configuration
469
+ *
470
+ * {
471
+ * field: "table_name"
472
+ * }
473
+ *
474
+ * is a functionally equivalent shorthand to:
475
+ *
476
+ * {
477
+ * field: "table_name"
478
+ * path_template: "{table_name=**}"
479
+ * }
480
+ *
481
+ * See Example 1 for more details.
482
+ *
483
+ * @generated from field: string path_template = 2;
484
+ */
485
+ pathTemplate: string;
486
+
487
+ constructor(data?: PartialMessage<RoutingParameter>);
488
+
489
+ static readonly runtime: typeof proto3;
490
+ static readonly typeName = "google.api.RoutingParameter";
491
+ static readonly fields: FieldList;
492
+
493
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RoutingParameter;
494
+
495
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RoutingParameter;
496
+
497
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RoutingParameter;
498
+
499
+ static equals(a: RoutingParameter | PlainMessage<RoutingParameter> | undefined, b: RoutingParameter | PlainMessage<RoutingParameter> | undefined): boolean;
500
+ }
501
+
502
+ /**
503
+ * See RoutingRule.
504
+ *
505
+ * @generated from extension: google.api.RoutingRule routing = 72295729;
506
+ */
507
+ export declare const routing: Extension<MethodOptions, RoutingRule>;
508
+
@@ -0,0 +1,102 @@
1
+ // Copyright 2025 Google LLC
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
14
+
15
+ // @generated by protoc-gen-connect-es v1.5.0
16
+ // @generated from file google/iam/v1/iam_policy.proto (package google.iam.v1, syntax proto3)
17
+ /* eslint-disable */
18
+ // @ts-nocheck
19
+
20
+ import { GetIamPolicyRequest, SetIamPolicyRequest, TestIamPermissionsRequest, TestIamPermissionsResponse } from "./iam_policy_pb.js";
21
+ import { Policy } from "./policy_pb.js";
22
+ import { MethodKind } from "@bufbuild/protobuf";
23
+
24
+ /**
25
+ * API Overview
26
+ *
27
+ * Manages Identity and Access Management (IAM) policies.
28
+ *
29
+ * Any implementation of an API that offers access control features
30
+ * implements the google.iam.v1.IAMPolicy interface.
31
+ *
32
+ * ## Data model
33
+ *
34
+ * Access control is applied when a principal (user or service account), takes
35
+ * some action on a resource exposed by a service. Resources, identified by
36
+ * URI-like names, are the unit of access control specification. Service
37
+ * implementations can choose the granularity of access control and the
38
+ * supported permissions for their resources.
39
+ * For example one database service may allow access control to be
40
+ * specified only at the Table level, whereas another might allow access control
41
+ * to also be specified at the Column level.
42
+ *
43
+ * ## Policy Structure
44
+ *
45
+ * See google.iam.v1.Policy
46
+ *
47
+ * This is intentionally not a CRUD style API because access control policies
48
+ * are created and deleted implicitly with the resources to which they are
49
+ * attached.
50
+ *
51
+ * @generated from service google.iam.v1.IAMPolicy
52
+ */
53
+ export declare const IAMPolicy: {
54
+ readonly typeName: "google.iam.v1.IAMPolicy",
55
+ readonly methods: {
56
+ /**
57
+ * Sets the access control policy on the specified resource. Replaces any
58
+ * existing policy.
59
+ *
60
+ * Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
61
+ *
62
+ * @generated from rpc google.iam.v1.IAMPolicy.SetIamPolicy
63
+ */
64
+ readonly setIamPolicy: {
65
+ readonly name: "SetIamPolicy",
66
+ readonly I: typeof SetIamPolicyRequest,
67
+ readonly O: typeof Policy,
68
+ readonly kind: MethodKind.Unary,
69
+ },
70
+ /**
71
+ * Gets the access control policy for a resource.
72
+ * Returns an empty policy if the resource exists and does not have a policy
73
+ * set.
74
+ *
75
+ * @generated from rpc google.iam.v1.IAMPolicy.GetIamPolicy
76
+ */
77
+ readonly getIamPolicy: {
78
+ readonly name: "GetIamPolicy",
79
+ readonly I: typeof GetIamPolicyRequest,
80
+ readonly O: typeof Policy,
81
+ readonly kind: MethodKind.Unary,
82
+ },
83
+ /**
84
+ * Returns permissions that a caller has on the specified resource.
85
+ * If the resource does not exist, this will return an empty set of
86
+ * permissions, not a `NOT_FOUND` error.
87
+ *
88
+ * Note: This operation is designed to be used for building permission-aware
89
+ * UIs and command-line tools, not for authorization checking. This operation
90
+ * may "fail open" without warning.
91
+ *
92
+ * @generated from rpc google.iam.v1.IAMPolicy.TestIamPermissions
93
+ */
94
+ readonly testIamPermissions: {
95
+ readonly name: "TestIamPermissions",
96
+ readonly I: typeof TestIamPermissionsRequest,
97
+ readonly O: typeof TestIamPermissionsResponse,
98
+ readonly kind: MethodKind.Unary,
99
+ },
100
+ }
101
+ };
102
+