@structured-id/proto 0.14.0 → 0.16.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 (50) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/dist/generated/sid/v1/admin/admin.d.ts +48 -17
  3. package/dist/generated/sid/v1/admin/admin.js +55 -62
  4. package/dist/generated/sid/v1/admin/admin.js.map +1 -1
  5. package/dist/generated/sid/v1/admin/branding.d.ts +54 -26
  6. package/dist/generated/sid/v1/admin/branding.js +87 -98
  7. package/dist/generated/sid/v1/admin/branding.js.map +1 -1
  8. package/dist/generated/sid/v1/admin/enrollment.d.ts +63 -44
  9. package/dist/generated/sid/v1/admin/enrollment.js +109 -107
  10. package/dist/generated/sid/v1/admin/enrollment.js.map +1 -1
  11. package/dist/generated/sid/v1/admin/flow.d.ts +90 -42
  12. package/dist/generated/sid/v1/admin/flow.js +143 -155
  13. package/dist/generated/sid/v1/admin/flow.js.map +1 -1
  14. package/dist/generated/sid/v1/admin/security.d.ts +11 -4
  15. package/dist/generated/sid/v1/admin/security.js +14 -14
  16. package/dist/generated/sid/v1/admin/security.js.map +1 -1
  17. package/dist/generated/sid/v1/admin/sessions.d.ts +18 -8
  18. package/dist/generated/sid/v1/admin/sessions.js +27 -29
  19. package/dist/generated/sid/v1/admin/sessions.js.map +1 -1
  20. package/dist/generated/sid/v1/authn/auth.d.ts +13 -7
  21. package/dist/generated/sid/v1/authn/auth.js +20 -20
  22. package/dist/generated/sid/v1/authn/auth.js.map +1 -1
  23. package/dist/generated/sid/v1/authz/authz.d.ts +203 -111
  24. package/dist/generated/sid/v1/authz/authz.js +308 -330
  25. package/dist/generated/sid/v1/authz/authz.js.map +1 -1
  26. package/dist/generated/sid/v1/authz/governance.d.ts +40 -26
  27. package/dist/generated/sid/v1/authz/governance.js +65 -71
  28. package/dist/generated/sid/v1/authz/governance.js.map +1 -1
  29. package/dist/generated/sid/v1/common/types.d.ts +29 -0
  30. package/dist/generated/sid/v1/common/types.js +47 -0
  31. package/dist/generated/sid/v1/common/types.js.map +1 -1
  32. package/dist/generated/sid/v1/federation/upstream.d.ts +34 -16
  33. package/dist/generated/sid/v1/federation/upstream.js +53 -59
  34. package/dist/generated/sid/v1/federation/upstream.js.map +1 -1
  35. package/dist/generated/sid/v1/ids/ids.d.ts +12 -0
  36. package/dist/generated/sid/v1/ids/ids.js +6 -0
  37. package/dist/generated/sid/v1/ids/ids.js.map +1 -1
  38. package/dist/generated/sid/v1/machine/machine_user.d.ts +100 -48
  39. package/dist/generated/sid/v1/machine/machine_user.js +228 -179
  40. package/dist/generated/sid/v1/machine/machine_user.js.map +1 -1
  41. package/dist/generated/sid/v1/machine/pat.d.ts +16 -12
  42. package/dist/generated/sid/v1/machine/pat.js +41 -45
  43. package/dist/generated/sid/v1/machine/pat.js.map +1 -1
  44. package/dist/generated/sid/v1/projects/projects.d.ts +141 -103
  45. package/dist/generated/sid/v1/projects/projects.js +293 -271
  46. package/dist/generated/sid/v1/projects/projects.js.map +1 -1
  47. package/dist/ip.d.ts +31 -0
  48. package/dist/ip.js +84 -0
  49. package/dist/ip.js.map +1 -0
  50. package/package.json +6 -2
@@ -7,13 +7,19 @@ import { WireType } from "@protobuf-ts/runtime";
7
7
  import { UnknownFieldHandler } from "@protobuf-ts/runtime";
8
8
  import { reflectionMergePartial } from "@protobuf-ts/runtime";
9
9
  import { MessageType } from "@protobuf-ts/runtime";
10
- import { MachineUserId } from "../ids/ids.js";
11
10
  import { RequestConfirmation } from "../authn/sender_proof.js";
11
+ import { CedarPolicyId } from "../ids/ids.js";
12
12
  import { ResourceId } from "../ids/ids.js";
13
13
  import { Empty } from "../../../google/protobuf/empty.js";
14
14
  import { Duration } from "../../../google/protobuf/duration.js";
15
15
  import { ProvisioningConnectorId } from "../ids/ids.js";
16
+ import { MachineUserId } from "../ids/ids.js";
17
+ import { ProfileId } from "../ids/ids.js";
18
+ import { RoleAssignmentId } from "../ids/ids.js";
19
+ import { GroupId } from "../ids/ids.js";
16
20
  import { Timestamp } from "../../../google/protobuf/timestamp.js";
21
+ import { ProjectId } from "../ids/ids.js";
22
+ import { RoleId } from "../ids/ids.js";
17
23
  // ── Enums ────────────────────────────────────────────────────────────
18
24
  /**
19
25
  * Consistency level for authorization checks.
@@ -229,8 +235,8 @@ export var SimulationImpactType;
229
235
  class Role$Type extends MessageType {
230
236
  constructor() {
231
237
  super("sid.v1.authz.Role", [
232
- { no: 1, name: "id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
233
- { no: 2, name: "project_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
238
+ { no: 1, name: "id", kind: "message", T: () => RoleId },
239
+ { no: 2, name: "project_id", kind: "message", T: () => ProjectId },
234
240
  { no: 3, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
235
241
  { no: 4, name: "description", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
236
242
  { no: 5, name: "permissions", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
@@ -240,8 +246,6 @@ class Role$Type extends MessageType {
240
246
  }
241
247
  create(value) {
242
248
  const message = globalThis.Object.create((this.messagePrototype));
243
- message.id = "";
244
- message.projectId = "";
245
249
  message.name = "";
246
250
  message.permissions = [];
247
251
  if (value !== undefined)
@@ -253,11 +257,11 @@ class Role$Type extends MessageType {
253
257
  while (reader.pos < end) {
254
258
  let [fieldNo, wireType] = reader.tag();
255
259
  switch (fieldNo) {
256
- case /* string id */ 1:
257
- message.id = reader.string();
260
+ case /* sid.v1.ids.RoleId id */ 1:
261
+ message.id = RoleId.internalBinaryRead(reader, reader.uint32(), options, message.id);
258
262
  break;
259
- case /* string project_id */ 2:
260
- message.projectId = reader.string();
263
+ case /* sid.v1.ids.ProjectId project_id */ 2:
264
+ message.projectId = ProjectId.internalBinaryRead(reader, reader.uint32(), options, message.projectId);
261
265
  break;
262
266
  case /* string name */ 3:
263
267
  message.name = reader.string();
@@ -286,12 +290,12 @@ class Role$Type extends MessageType {
286
290
  return message;
287
291
  }
288
292
  internalBinaryWrite(message, writer, options) {
289
- /* string id = 1; */
290
- if (message.id !== "")
291
- writer.tag(1, WireType.LengthDelimited).string(message.id);
292
- /* string project_id = 2; */
293
- if (message.projectId !== "")
294
- writer.tag(2, WireType.LengthDelimited).string(message.projectId);
293
+ /* sid.v1.ids.RoleId id = 1; */
294
+ if (message.id)
295
+ RoleId.internalBinaryWrite(message.id, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
296
+ /* sid.v1.ids.ProjectId project_id = 2; */
297
+ if (message.projectId)
298
+ ProjectId.internalBinaryWrite(message.projectId, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
295
299
  /* string name = 3; */
296
300
  if (message.name !== "")
297
301
  writer.tag(3, WireType.LengthDelimited).string(message.name);
@@ -321,8 +325,8 @@ export const Role = new Role$Type();
321
325
  class Group$Type extends MessageType {
322
326
  constructor() {
323
327
  super("sid.v1.authz.Group", [
324
- { no: 1, name: "id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
325
- { no: 2, name: "project_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
328
+ { no: 1, name: "id", kind: "message", T: () => GroupId },
329
+ { no: 2, name: "project_id", kind: "message", T: () => ProjectId },
326
330
  { no: 3, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
327
331
  { no: 4, name: "description", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
328
332
  { no: 5, name: "created_at", kind: "message", T: () => Timestamp },
@@ -331,8 +335,6 @@ class Group$Type extends MessageType {
331
335
  }
332
336
  create(value) {
333
337
  const message = globalThis.Object.create((this.messagePrototype));
334
- message.id = "";
335
- message.projectId = "";
336
338
  message.name = "";
337
339
  if (value !== undefined)
338
340
  reflectionMergePartial(this, message, value);
@@ -343,11 +345,11 @@ class Group$Type extends MessageType {
343
345
  while (reader.pos < end) {
344
346
  let [fieldNo, wireType] = reader.tag();
345
347
  switch (fieldNo) {
346
- case /* string id */ 1:
347
- message.id = reader.string();
348
+ case /* sid.v1.ids.GroupId id */ 1:
349
+ message.id = GroupId.internalBinaryRead(reader, reader.uint32(), options, message.id);
348
350
  break;
349
- case /* string project_id */ 2:
350
- message.projectId = reader.string();
351
+ case /* sid.v1.ids.ProjectId project_id */ 2:
352
+ message.projectId = ProjectId.internalBinaryRead(reader, reader.uint32(), options, message.projectId);
351
353
  break;
352
354
  case /* string name */ 3:
353
355
  message.name = reader.string();
@@ -373,12 +375,12 @@ class Group$Type extends MessageType {
373
375
  return message;
374
376
  }
375
377
  internalBinaryWrite(message, writer, options) {
376
- /* string id = 1; */
377
- if (message.id !== "")
378
- writer.tag(1, WireType.LengthDelimited).string(message.id);
379
- /* string project_id = 2; */
380
- if (message.projectId !== "")
381
- writer.tag(2, WireType.LengthDelimited).string(message.projectId);
378
+ /* sid.v1.ids.GroupId id = 1; */
379
+ if (message.id)
380
+ GroupId.internalBinaryWrite(message.id, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
381
+ /* sid.v1.ids.ProjectId project_id = 2; */
382
+ if (message.projectId)
383
+ ProjectId.internalBinaryWrite(message.projectId, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
382
384
  /* string name = 3; */
383
385
  if (message.name !== "")
384
386
  writer.tag(3, WireType.LengthDelimited).string(message.name);
@@ -405,13 +407,13 @@ export const Group = new Group$Type();
405
407
  class RoleAssignment$Type extends MessageType {
406
408
  constructor() {
407
409
  super("sid.v1.authz.RoleAssignment", [
408
- { no: 1, name: "id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
409
- { no: 2, name: "profile_id", kind: "scalar", oneof: "principal", T: 9 /*ScalarType.STRING*/ },
410
- { no: 3, name: "group_id", kind: "scalar", oneof: "principal", T: 9 /*ScalarType.STRING*/ },
411
- { no: 4, name: "machine_user_id", kind: "scalar", oneof: "principal", T: 9 /*ScalarType.STRING*/ },
410
+ { no: 1, name: "id", kind: "message", T: () => RoleAssignmentId },
411
+ { no: 2, name: "profile_id", kind: "message", oneof: "principal", T: () => ProfileId },
412
+ { no: 3, name: "group_id", kind: "message", oneof: "principal", T: () => GroupId },
413
+ { no: 4, name: "machine_user_id", kind: "message", oneof: "principal", T: () => MachineUserId },
412
414
  { no: 5, name: "oauth_client_id", kind: "scalar", oneof: "principal", T: 9 /*ScalarType.STRING*/ },
413
415
  { no: 6, name: "provisioning_connector_id", kind: "message", oneof: "principal", T: () => ProvisioningConnectorId },
414
- { no: 7, name: "role_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
416
+ { no: 7, name: "role_id", kind: "message", T: () => RoleId },
415
417
  { no: 8, name: "scope", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
416
418
  { no: 9, name: "expires_at", kind: "message", T: () => Timestamp },
417
419
  { no: 10, name: "created_at", kind: "message", T: () => Timestamp },
@@ -422,9 +424,7 @@ class RoleAssignment$Type extends MessageType {
422
424
  }
423
425
  create(value) {
424
426
  const message = globalThis.Object.create((this.messagePrototype));
425
- message.id = "";
426
427
  message.principal = { oneofKind: undefined };
427
- message.roleId = "";
428
428
  if (value !== undefined)
429
429
  reflectionMergePartial(this, message, value);
430
430
  return message;
@@ -434,25 +434,25 @@ class RoleAssignment$Type extends MessageType {
434
434
  while (reader.pos < end) {
435
435
  let [fieldNo, wireType] = reader.tag();
436
436
  switch (fieldNo) {
437
- case /* string id */ 1:
438
- message.id = reader.string();
437
+ case /* sid.v1.ids.RoleAssignmentId id */ 1:
438
+ message.id = RoleAssignmentId.internalBinaryRead(reader, reader.uint32(), options, message.id);
439
439
  break;
440
- case /* string profile_id */ 2:
440
+ case /* sid.v1.ids.ProfileId profile_id */ 2:
441
441
  message.principal = {
442
442
  oneofKind: "profileId",
443
- profileId: reader.string()
443
+ profileId: ProfileId.internalBinaryRead(reader, reader.uint32(), options, message.principal.profileId)
444
444
  };
445
445
  break;
446
- case /* string group_id */ 3:
446
+ case /* sid.v1.ids.GroupId group_id */ 3:
447
447
  message.principal = {
448
448
  oneofKind: "groupId",
449
- groupId: reader.string()
449
+ groupId: GroupId.internalBinaryRead(reader, reader.uint32(), options, message.principal.groupId)
450
450
  };
451
451
  break;
452
- case /* string machine_user_id */ 4:
452
+ case /* sid.v1.ids.MachineUserId machine_user_id */ 4:
453
453
  message.principal = {
454
454
  oneofKind: "machineUserId",
455
- machineUserId: reader.string()
455
+ machineUserId: MachineUserId.internalBinaryRead(reader, reader.uint32(), options, message.principal.machineUserId)
456
456
  };
457
457
  break;
458
458
  case /* string oauth_client_id */ 5:
@@ -467,8 +467,8 @@ class RoleAssignment$Type extends MessageType {
467
467
  provisioningConnectorId: ProvisioningConnectorId.internalBinaryRead(reader, reader.uint32(), options, message.principal.provisioningConnectorId)
468
468
  };
469
469
  break;
470
- case /* string role_id */ 7:
471
- message.roleId = reader.string();
470
+ case /* sid.v1.ids.RoleId role_id */ 7:
471
+ message.roleId = RoleId.internalBinaryRead(reader, reader.uint32(), options, message.roleId);
472
472
  break;
473
473
  case /* optional string scope */ 8:
474
474
  message.scope = reader.string();
@@ -500,27 +500,27 @@ class RoleAssignment$Type extends MessageType {
500
500
  return message;
501
501
  }
502
502
  internalBinaryWrite(message, writer, options) {
503
- /* string id = 1; */
504
- if (message.id !== "")
505
- writer.tag(1, WireType.LengthDelimited).string(message.id);
506
- /* string profile_id = 2; */
503
+ /* sid.v1.ids.RoleAssignmentId id = 1; */
504
+ if (message.id)
505
+ RoleAssignmentId.internalBinaryWrite(message.id, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
506
+ /* sid.v1.ids.ProfileId profile_id = 2; */
507
507
  if (message.principal.oneofKind === "profileId")
508
- writer.tag(2, WireType.LengthDelimited).string(message.principal.profileId);
509
- /* string group_id = 3; */
508
+ ProfileId.internalBinaryWrite(message.principal.profileId, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
509
+ /* sid.v1.ids.GroupId group_id = 3; */
510
510
  if (message.principal.oneofKind === "groupId")
511
- writer.tag(3, WireType.LengthDelimited).string(message.principal.groupId);
512
- /* string machine_user_id = 4; */
511
+ GroupId.internalBinaryWrite(message.principal.groupId, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
512
+ /* sid.v1.ids.MachineUserId machine_user_id = 4; */
513
513
  if (message.principal.oneofKind === "machineUserId")
514
- writer.tag(4, WireType.LengthDelimited).string(message.principal.machineUserId);
514
+ MachineUserId.internalBinaryWrite(message.principal.machineUserId, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
515
515
  /* string oauth_client_id = 5; */
516
516
  if (message.principal.oneofKind === "oauthClientId")
517
517
  writer.tag(5, WireType.LengthDelimited).string(message.principal.oauthClientId);
518
518
  /* sid.v1.ids.ProvisioningConnectorId provisioning_connector_id = 6; */
519
519
  if (message.principal.oneofKind === "provisioningConnectorId")
520
520
  ProvisioningConnectorId.internalBinaryWrite(message.principal.provisioningConnectorId, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
521
- /* string role_id = 7; */
522
- if (message.roleId !== "")
523
- writer.tag(7, WireType.LengthDelimited).string(message.roleId);
521
+ /* sid.v1.ids.RoleId role_id = 7; */
522
+ if (message.roleId)
523
+ RoleId.internalBinaryWrite(message.roleId, writer.tag(7, WireType.LengthDelimited).fork(), options).join();
524
524
  /* optional string scope = 8; */
525
525
  if (message.scope !== undefined)
526
526
  writer.tag(8, WireType.LengthDelimited).string(message.scope);
@@ -609,10 +609,10 @@ class AdminEnvelope$Type extends MessageType {
609
609
  constructor() {
610
610
  super("sid.v1.authz.AdminEnvelope", [
611
611
  { no: 1, name: "operations", kind: "enum", repeat: 1 /*RepeatType.PACKED*/, T: () => ["sid.v1.authz.AdminOperation", AdminOperation, "ADMIN_OPERATION_"] },
612
- { no: 2, name: "role_ids", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
612
+ { no: 2, name: "role_ids", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => RoleId },
613
613
  { no: 3, name: "permission_ceiling", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
614
614
  { no: 4, name: "recipient_kinds", kind: "enum", repeat: 1 /*RepeatType.PACKED*/, T: () => ["sid.v1.authz.RecipientKind", RecipientKind, "RECIPIENT_KIND_"] },
615
- { no: 5, name: "recipient_group_id", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
615
+ { no: 5, name: "recipient_group_id", kind: "message", T: () => GroupId },
616
616
  { no: 6, name: "max_validity", kind: "message", T: () => Duration }
617
617
  ]);
618
618
  }
@@ -638,8 +638,8 @@ class AdminEnvelope$Type extends MessageType {
638
638
  else
639
639
  message.operations.push(reader.int32());
640
640
  break;
641
- case /* repeated string role_ids */ 2:
642
- message.roleIds.push(reader.string());
641
+ case /* repeated sid.v1.ids.RoleId role_ids */ 2:
642
+ message.roleIds.push(RoleId.internalBinaryRead(reader, reader.uint32(), options));
643
643
  break;
644
644
  case /* repeated string permission_ceiling */ 3:
645
645
  message.permissionCeiling.push(reader.string());
@@ -651,8 +651,8 @@ class AdminEnvelope$Type extends MessageType {
651
651
  else
652
652
  message.recipientKinds.push(reader.int32());
653
653
  break;
654
- case /* optional string recipient_group_id */ 5:
655
- message.recipientGroupId = reader.string();
654
+ case /* sid.v1.ids.GroupId recipient_group_id */ 5:
655
+ message.recipientGroupId = GroupId.internalBinaryRead(reader, reader.uint32(), options, message.recipientGroupId);
656
656
  break;
657
657
  case /* google.protobuf.Duration max_validity */ 6:
658
658
  message.maxValidity = Duration.internalBinaryRead(reader, reader.uint32(), options, message.maxValidity);
@@ -676,9 +676,9 @@ class AdminEnvelope$Type extends MessageType {
676
676
  writer.int32(message.operations[i]);
677
677
  writer.join();
678
678
  }
679
- /* repeated string role_ids = 2; */
679
+ /* repeated sid.v1.ids.RoleId role_ids = 2; */
680
680
  for (let i = 0; i < message.roleIds.length; i++)
681
- writer.tag(2, WireType.LengthDelimited).string(message.roleIds[i]);
681
+ RoleId.internalBinaryWrite(message.roleIds[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
682
682
  /* repeated string permission_ceiling = 3; */
683
683
  for (let i = 0; i < message.permissionCeiling.length; i++)
684
684
  writer.tag(3, WireType.LengthDelimited).string(message.permissionCeiling[i]);
@@ -689,9 +689,9 @@ class AdminEnvelope$Type extends MessageType {
689
689
  writer.int32(message.recipientKinds[i]);
690
690
  writer.join();
691
691
  }
692
- /* optional string recipient_group_id = 5; */
693
- if (message.recipientGroupId !== undefined)
694
- writer.tag(5, WireType.LengthDelimited).string(message.recipientGroupId);
692
+ /* sid.v1.ids.GroupId recipient_group_id = 5; */
693
+ if (message.recipientGroupId)
694
+ GroupId.internalBinaryWrite(message.recipientGroupId, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
695
695
  /* google.protobuf.Duration max_validity = 6; */
696
696
  if (message.maxValidity)
697
697
  Duration.internalBinaryWrite(message.maxValidity, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
@@ -710,8 +710,8 @@ class AssignmentProvenance$Type extends MessageType {
710
710
  constructor() {
711
711
  super("sid.v1.authz.AssignmentProvenance", [
712
712
  { no: 1, name: "granted_by", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
713
- { no: 2, name: "basis_assignment_id", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
714
- { no: 3, name: "depends_on_assignment_id", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
713
+ { no: 2, name: "basis_assignment_id", kind: "message", T: () => RoleAssignmentId },
714
+ { no: 3, name: "depends_on_assignment_id", kind: "message", T: () => RoleAssignmentId },
715
715
  { no: 4, name: "approved_ceiling", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }
716
716
  ]);
717
717
  }
@@ -731,11 +731,11 @@ class AssignmentProvenance$Type extends MessageType {
731
731
  case /* string granted_by */ 1:
732
732
  message.grantedBy = reader.string();
733
733
  break;
734
- case /* optional string basis_assignment_id */ 2:
735
- message.basisAssignmentId = reader.string();
734
+ case /* sid.v1.ids.RoleAssignmentId basis_assignment_id */ 2:
735
+ message.basisAssignmentId = RoleAssignmentId.internalBinaryRead(reader, reader.uint32(), options, message.basisAssignmentId);
736
736
  break;
737
- case /* optional string depends_on_assignment_id */ 3:
738
- message.dependsOnAssignmentId = reader.string();
737
+ case /* sid.v1.ids.RoleAssignmentId depends_on_assignment_id */ 3:
738
+ message.dependsOnAssignmentId = RoleAssignmentId.internalBinaryRead(reader, reader.uint32(), options, message.dependsOnAssignmentId);
739
739
  break;
740
740
  case /* repeated string approved_ceiling */ 4:
741
741
  message.approvedCeiling.push(reader.string());
@@ -755,12 +755,12 @@ class AssignmentProvenance$Type extends MessageType {
755
755
  /* string granted_by = 1; */
756
756
  if (message.grantedBy !== "")
757
757
  writer.tag(1, WireType.LengthDelimited).string(message.grantedBy);
758
- /* optional string basis_assignment_id = 2; */
759
- if (message.basisAssignmentId !== undefined)
760
- writer.tag(2, WireType.LengthDelimited).string(message.basisAssignmentId);
761
- /* optional string depends_on_assignment_id = 3; */
762
- if (message.dependsOnAssignmentId !== undefined)
763
- writer.tag(3, WireType.LengthDelimited).string(message.dependsOnAssignmentId);
758
+ /* sid.v1.ids.RoleAssignmentId basis_assignment_id = 2; */
759
+ if (message.basisAssignmentId)
760
+ RoleAssignmentId.internalBinaryWrite(message.basisAssignmentId, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
761
+ /* sid.v1.ids.RoleAssignmentId depends_on_assignment_id = 3; */
762
+ if (message.dependsOnAssignmentId)
763
+ RoleAssignmentId.internalBinaryWrite(message.dependsOnAssignmentId, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
764
764
  /* repeated string approved_ceiling = 4; */
765
765
  for (let i = 0; i < message.approvedCeiling.length; i++)
766
766
  writer.tag(4, WireType.LengthDelimited).string(message.approvedCeiling[i]);
@@ -779,7 +779,7 @@ class PolicyScope$Type extends MessageType {
779
779
  constructor() {
780
780
  super("sid.v1.authz.PolicyScope", [
781
781
  { no: 1, name: "installation", kind: "message", oneof: "scope", T: () => Empty },
782
- { no: 2, name: "project_id", kind: "scalar", oneof: "scope", T: 9 /*ScalarType.STRING*/ },
782
+ { no: 2, name: "project_id", kind: "message", oneof: "scope", T: () => ProjectId },
783
783
  { no: 3, name: "resource", kind: "message", oneof: "scope", T: () => ResourceId }
784
784
  ]);
785
785
  }
@@ -801,10 +801,10 @@ class PolicyScope$Type extends MessageType {
801
801
  installation: Empty.internalBinaryRead(reader, reader.uint32(), options, message.scope.installation)
802
802
  };
803
803
  break;
804
- case /* string project_id */ 2:
804
+ case /* sid.v1.ids.ProjectId project_id */ 2:
805
805
  message.scope = {
806
806
  oneofKind: "projectId",
807
- projectId: reader.string()
807
+ projectId: ProjectId.internalBinaryRead(reader, reader.uint32(), options, message.scope.projectId)
808
808
  };
809
809
  break;
810
810
  case /* sid.v1.ids.ResourceId resource */ 3:
@@ -828,9 +828,9 @@ class PolicyScope$Type extends MessageType {
828
828
  /* google.protobuf.Empty installation = 1; */
829
829
  if (message.scope.oneofKind === "installation")
830
830
  Empty.internalBinaryWrite(message.scope.installation, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
831
- /* string project_id = 2; */
831
+ /* sid.v1.ids.ProjectId project_id = 2; */
832
832
  if (message.scope.oneofKind === "projectId")
833
- writer.tag(2, WireType.LengthDelimited).string(message.scope.projectId);
833
+ ProjectId.internalBinaryWrite(message.scope.projectId, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
834
834
  /* sid.v1.ids.ResourceId resource = 3; */
835
835
  if (message.scope.oneofKind === "resource")
836
836
  ResourceId.internalBinaryWrite(message.scope.resource, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
@@ -848,7 +848,7 @@ export const PolicyScope = new PolicyScope$Type();
848
848
  class Policy$Type extends MessageType {
849
849
  constructor() {
850
850
  super("sid.v1.authz.Policy", [
851
- { no: 1, name: "id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
851
+ { no: 1, name: "id", kind: "message", T: () => CedarPolicyId },
852
852
  { no: 2, name: "scope", kind: "message", T: () => PolicyScope },
853
853
  { no: 3, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
854
854
  { no: 4, name: "description", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
@@ -862,7 +862,6 @@ class Policy$Type extends MessageType {
862
862
  }
863
863
  create(value) {
864
864
  const message = globalThis.Object.create((this.messagePrototype));
865
- message.id = "";
866
865
  message.name = "";
867
866
  message.policyText = "";
868
867
  message.effect = 0;
@@ -877,8 +876,8 @@ class Policy$Type extends MessageType {
877
876
  while (reader.pos < end) {
878
877
  let [fieldNo, wireType] = reader.tag();
879
878
  switch (fieldNo) {
880
- case /* string id */ 1:
881
- message.id = reader.string();
879
+ case /* sid.v1.ids.CedarPolicyId id */ 1:
880
+ message.id = CedarPolicyId.internalBinaryRead(reader, reader.uint32(), options, message.id);
882
881
  break;
883
882
  case /* sid.v1.authz.PolicyScope scope */ 2:
884
883
  message.scope = PolicyScope.internalBinaryRead(reader, reader.uint32(), options, message.scope);
@@ -919,9 +918,9 @@ class Policy$Type extends MessageType {
919
918
  return message;
920
919
  }
921
920
  internalBinaryWrite(message, writer, options) {
922
- /* string id = 1; */
923
- if (message.id !== "")
924
- writer.tag(1, WireType.LengthDelimited).string(message.id);
921
+ /* sid.v1.ids.CedarPolicyId id = 1; */
922
+ if (message.id)
923
+ CedarPolicyId.internalBinaryWrite(message.id, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
925
924
  /* sid.v1.authz.PolicyScope scope = 2; */
926
925
  if (message.scope)
927
926
  PolicyScope.internalBinaryWrite(message.scope, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
@@ -1057,7 +1056,7 @@ class PermissionTarget$Type extends MessageType {
1057
1056
  constructor() {
1058
1057
  super("sid.v1.authz.PermissionTarget", [
1059
1058
  { no: 1, name: "resource", kind: "message", oneof: "scope", T: () => ResourceId },
1060
- { no: 2, name: "project_id", kind: "scalar", oneof: "scope", T: 9 /*ScalarType.STRING*/ },
1059
+ { no: 2, name: "project_id", kind: "message", oneof: "scope", T: () => ProjectId },
1061
1060
  { no: 3, name: "object", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
1062
1061
  ]);
1063
1062
  }
@@ -1080,10 +1079,10 @@ class PermissionTarget$Type extends MessageType {
1080
1079
  resource: ResourceId.internalBinaryRead(reader, reader.uint32(), options, message.scope.resource)
1081
1080
  };
1082
1081
  break;
1083
- case /* string project_id */ 2:
1082
+ case /* sid.v1.ids.ProjectId project_id */ 2:
1084
1083
  message.scope = {
1085
1084
  oneofKind: "projectId",
1086
- projectId: reader.string()
1085
+ projectId: ProjectId.internalBinaryRead(reader, reader.uint32(), options, message.scope.projectId)
1087
1086
  };
1088
1087
  break;
1089
1088
  case /* string object */ 3:
@@ -1104,9 +1103,9 @@ class PermissionTarget$Type extends MessageType {
1104
1103
  /* sid.v1.ids.ResourceId resource = 1; */
1105
1104
  if (message.scope.oneofKind === "resource")
1106
1105
  ResourceId.internalBinaryWrite(message.scope.resource, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
1107
- /* string project_id = 2; */
1106
+ /* sid.v1.ids.ProjectId project_id = 2; */
1108
1107
  if (message.scope.oneofKind === "projectId")
1109
- writer.tag(2, WireType.LengthDelimited).string(message.scope.projectId);
1108
+ ProjectId.internalBinaryWrite(message.scope.projectId, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
1110
1109
  /* string object = 3; */
1111
1110
  if (message.object !== "")
1112
1111
  writer.tag(3, WireType.LengthDelimited).string(message.object);
@@ -1496,7 +1495,7 @@ export const BatchCheckPermissionResponse = new BatchCheckPermissionResponse$Typ
1496
1495
  class CreateRoleRequest$Type extends MessageType {
1497
1496
  constructor() {
1498
1497
  super("sid.v1.authz.CreateRoleRequest", [
1499
- { no: 1, name: "project_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1498
+ { no: 1, name: "project_id", kind: "message", T: () => ProjectId },
1500
1499
  { no: 2, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1501
1500
  { no: 3, name: "description", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
1502
1501
  { no: 4, name: "permissions", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }
@@ -1504,7 +1503,6 @@ class CreateRoleRequest$Type extends MessageType {
1504
1503
  }
1505
1504
  create(value) {
1506
1505
  const message = globalThis.Object.create((this.messagePrototype));
1507
- message.projectId = "";
1508
1506
  message.name = "";
1509
1507
  message.permissions = [];
1510
1508
  if (value !== undefined)
@@ -1516,8 +1514,8 @@ class CreateRoleRequest$Type extends MessageType {
1516
1514
  while (reader.pos < end) {
1517
1515
  let [fieldNo, wireType] = reader.tag();
1518
1516
  switch (fieldNo) {
1519
- case /* string project_id */ 1:
1520
- message.projectId = reader.string();
1517
+ case /* sid.v1.ids.ProjectId project_id */ 1:
1518
+ message.projectId = ProjectId.internalBinaryRead(reader, reader.uint32(), options, message.projectId);
1521
1519
  break;
1522
1520
  case /* string name */ 2:
1523
1521
  message.name = reader.string();
@@ -1540,9 +1538,9 @@ class CreateRoleRequest$Type extends MessageType {
1540
1538
  return message;
1541
1539
  }
1542
1540
  internalBinaryWrite(message, writer, options) {
1543
- /* string project_id = 1; */
1544
- if (message.projectId !== "")
1545
- writer.tag(1, WireType.LengthDelimited).string(message.projectId);
1541
+ /* sid.v1.ids.ProjectId project_id = 1; */
1542
+ if (message.projectId)
1543
+ ProjectId.internalBinaryWrite(message.projectId, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
1546
1544
  /* string name = 2; */
1547
1545
  if (message.name !== "")
1548
1546
  writer.tag(2, WireType.LengthDelimited).string(message.name);
@@ -1612,9 +1610,9 @@ export const CreateRoleResponse = new CreateRoleResponse$Type();
1612
1610
  class GetRoleRequest$Type extends MessageType {
1613
1611
  constructor() {
1614
1612
  super("sid.v1.authz.GetRoleRequest", [
1615
- { no: 1, name: "id", kind: "scalar", oneof: "identifier", T: 9 /*ScalarType.STRING*/ },
1613
+ { no: 1, name: "id", kind: "message", oneof: "identifier", T: () => RoleId },
1616
1614
  { no: 2, name: "name", kind: "scalar", oneof: "identifier", T: 9 /*ScalarType.STRING*/ },
1617
- { no: 3, name: "project_id", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }
1615
+ { no: 3, name: "project_id", kind: "message", T: () => ProjectId }
1618
1616
  ]);
1619
1617
  }
1620
1618
  create(value) {
@@ -1629,10 +1627,10 @@ class GetRoleRequest$Type extends MessageType {
1629
1627
  while (reader.pos < end) {
1630
1628
  let [fieldNo, wireType] = reader.tag();
1631
1629
  switch (fieldNo) {
1632
- case /* string id */ 1:
1630
+ case /* sid.v1.ids.RoleId id */ 1:
1633
1631
  message.identifier = {
1634
1632
  oneofKind: "id",
1635
- id: reader.string()
1633
+ id: RoleId.internalBinaryRead(reader, reader.uint32(), options, message.identifier.id)
1636
1634
  };
1637
1635
  break;
1638
1636
  case /* string name */ 2:
@@ -1641,8 +1639,8 @@ class GetRoleRequest$Type extends MessageType {
1641
1639
  name: reader.string()
1642
1640
  };
1643
1641
  break;
1644
- case /* optional string project_id */ 3:
1645
- message.projectId = reader.string();
1642
+ case /* sid.v1.ids.ProjectId project_id */ 3:
1643
+ message.projectId = ProjectId.internalBinaryRead(reader, reader.uint32(), options, message.projectId);
1646
1644
  break;
1647
1645
  default:
1648
1646
  let u = options.readUnknownField;
@@ -1656,15 +1654,15 @@ class GetRoleRequest$Type extends MessageType {
1656
1654
  return message;
1657
1655
  }
1658
1656
  internalBinaryWrite(message, writer, options) {
1659
- /* string id = 1; */
1657
+ /* sid.v1.ids.RoleId id = 1; */
1660
1658
  if (message.identifier.oneofKind === "id")
1661
- writer.tag(1, WireType.LengthDelimited).string(message.identifier.id);
1659
+ RoleId.internalBinaryWrite(message.identifier.id, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
1662
1660
  /* string name = 2; */
1663
1661
  if (message.identifier.oneofKind === "name")
1664
1662
  writer.tag(2, WireType.LengthDelimited).string(message.identifier.name);
1665
- /* optional string project_id = 3; */
1666
- if (message.projectId !== undefined)
1667
- writer.tag(3, WireType.LengthDelimited).string(message.projectId);
1663
+ /* sid.v1.ids.ProjectId project_id = 3; */
1664
+ if (message.projectId)
1665
+ ProjectId.internalBinaryWrite(message.projectId, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
1668
1666
  let u = options.writeUnknownFields;
1669
1667
  if (u !== false)
1670
1668
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -1725,14 +1723,13 @@ export const GetRoleResponse = new GetRoleResponse$Type();
1725
1723
  class UpdateRoleRequest$Type extends MessageType {
1726
1724
  constructor() {
1727
1725
  super("sid.v1.authz.UpdateRoleRequest", [
1728
- { no: 1, name: "id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1726
+ { no: 1, name: "id", kind: "message", T: () => RoleId },
1729
1727
  { no: 2, name: "description", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
1730
1728
  { no: 3, name: "permissions", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }
1731
1729
  ]);
1732
1730
  }
1733
1731
  create(value) {
1734
1732
  const message = globalThis.Object.create((this.messagePrototype));
1735
- message.id = "";
1736
1733
  message.permissions = [];
1737
1734
  if (value !== undefined)
1738
1735
  reflectionMergePartial(this, message, value);
@@ -1743,8 +1740,8 @@ class UpdateRoleRequest$Type extends MessageType {
1743
1740
  while (reader.pos < end) {
1744
1741
  let [fieldNo, wireType] = reader.tag();
1745
1742
  switch (fieldNo) {
1746
- case /* string id */ 1:
1747
- message.id = reader.string();
1743
+ case /* sid.v1.ids.RoleId id */ 1:
1744
+ message.id = RoleId.internalBinaryRead(reader, reader.uint32(), options, message.id);
1748
1745
  break;
1749
1746
  case /* optional string description */ 2:
1750
1747
  message.description = reader.string();
@@ -1764,9 +1761,9 @@ class UpdateRoleRequest$Type extends MessageType {
1764
1761
  return message;
1765
1762
  }
1766
1763
  internalBinaryWrite(message, writer, options) {
1767
- /* string id = 1; */
1768
- if (message.id !== "")
1769
- writer.tag(1, WireType.LengthDelimited).string(message.id);
1764
+ /* sid.v1.ids.RoleId id = 1; */
1765
+ if (message.id)
1766
+ RoleId.internalBinaryWrite(message.id, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
1770
1767
  /* optional string description = 2; */
1771
1768
  if (message.description !== undefined)
1772
1769
  writer.tag(2, WireType.LengthDelimited).string(message.description);
@@ -1833,12 +1830,11 @@ export const UpdateRoleResponse = new UpdateRoleResponse$Type();
1833
1830
  class DeleteRoleRequest$Type extends MessageType {
1834
1831
  constructor() {
1835
1832
  super("sid.v1.authz.DeleteRoleRequest", [
1836
- { no: 1, name: "id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
1833
+ { no: 1, name: "id", kind: "message", T: () => RoleId }
1837
1834
  ]);
1838
1835
  }
1839
1836
  create(value) {
1840
1837
  const message = globalThis.Object.create((this.messagePrototype));
1841
- message.id = "";
1842
1838
  if (value !== undefined)
1843
1839
  reflectionMergePartial(this, message, value);
1844
1840
  return message;
@@ -1848,8 +1844,8 @@ class DeleteRoleRequest$Type extends MessageType {
1848
1844
  while (reader.pos < end) {
1849
1845
  let [fieldNo, wireType] = reader.tag();
1850
1846
  switch (fieldNo) {
1851
- case /* string id */ 1:
1852
- message.id = reader.string();
1847
+ case /* sid.v1.ids.RoleId id */ 1:
1848
+ message.id = RoleId.internalBinaryRead(reader, reader.uint32(), options, message.id);
1853
1849
  break;
1854
1850
  default:
1855
1851
  let u = options.readUnknownField;
@@ -1863,9 +1859,9 @@ class DeleteRoleRequest$Type extends MessageType {
1863
1859
  return message;
1864
1860
  }
1865
1861
  internalBinaryWrite(message, writer, options) {
1866
- /* string id = 1; */
1867
- if (message.id !== "")
1868
- writer.tag(1, WireType.LengthDelimited).string(message.id);
1862
+ /* sid.v1.ids.RoleId id = 1; */
1863
+ if (message.id)
1864
+ RoleId.internalBinaryWrite(message.id, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
1869
1865
  let u = options.writeUnknownFields;
1870
1866
  if (u !== false)
1871
1867
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -1918,14 +1914,13 @@ export const DeleteRoleResponse = new DeleteRoleResponse$Type();
1918
1914
  class ListRolesRequest$Type extends MessageType {
1919
1915
  constructor() {
1920
1916
  super("sid.v1.authz.ListRolesRequest", [
1921
- { no: 1, name: "project_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1917
+ { no: 1, name: "project_id", kind: "message", T: () => ProjectId },
1922
1918
  { no: 2, name: "page_size", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
1923
1919
  { no: 3, name: "page_token", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
1924
1920
  ]);
1925
1921
  }
1926
1922
  create(value) {
1927
1923
  const message = globalThis.Object.create((this.messagePrototype));
1928
- message.projectId = "";
1929
1924
  message.pageSize = 0;
1930
1925
  message.pageToken = "";
1931
1926
  if (value !== undefined)
@@ -1937,8 +1932,8 @@ class ListRolesRequest$Type extends MessageType {
1937
1932
  while (reader.pos < end) {
1938
1933
  let [fieldNo, wireType] = reader.tag();
1939
1934
  switch (fieldNo) {
1940
- case /* string project_id */ 1:
1941
- message.projectId = reader.string();
1935
+ case /* sid.v1.ids.ProjectId project_id */ 1:
1936
+ message.projectId = ProjectId.internalBinaryRead(reader, reader.uint32(), options, message.projectId);
1942
1937
  break;
1943
1938
  case /* int32 page_size */ 2:
1944
1939
  message.pageSize = reader.int32();
@@ -1958,9 +1953,9 @@ class ListRolesRequest$Type extends MessageType {
1958
1953
  return message;
1959
1954
  }
1960
1955
  internalBinaryWrite(message, writer, options) {
1961
- /* string project_id = 1; */
1962
- if (message.projectId !== "")
1963
- writer.tag(1, WireType.LengthDelimited).string(message.projectId);
1956
+ /* sid.v1.ids.ProjectId project_id = 1; */
1957
+ if (message.projectId)
1958
+ ProjectId.internalBinaryWrite(message.projectId, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
1964
1959
  /* int32 page_size = 2; */
1965
1960
  if (message.pageSize !== 0)
1966
1961
  writer.tag(2, WireType.Varint).int32(message.pageSize);
@@ -2036,12 +2031,12 @@ export const ListRolesResponse = new ListRolesResponse$Type();
2036
2031
  class AssignRoleRequest$Type extends MessageType {
2037
2032
  constructor() {
2038
2033
  super("sid.v1.authz.AssignRoleRequest", [
2039
- { no: 1, name: "profile_id", kind: "scalar", oneof: "principal", T: 9 /*ScalarType.STRING*/ },
2040
- { no: 2, name: "group_id", kind: "scalar", oneof: "principal", T: 9 /*ScalarType.STRING*/ },
2041
- { no: 3, name: "machine_user_id", kind: "scalar", oneof: "principal", T: 9 /*ScalarType.STRING*/ },
2034
+ { no: 1, name: "profile_id", kind: "message", oneof: "principal", T: () => ProfileId },
2035
+ { no: 2, name: "group_id", kind: "message", oneof: "principal", T: () => GroupId },
2036
+ { no: 3, name: "machine_user_id", kind: "message", oneof: "principal", T: () => MachineUserId },
2042
2037
  { no: 4, name: "oauth_client_id", kind: "scalar", oneof: "principal", T: 9 /*ScalarType.STRING*/ },
2043
2038
  { no: 5, name: "provisioning_connector_id", kind: "message", oneof: "principal", T: () => ProvisioningConnectorId },
2044
- { no: 6, name: "role_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
2039
+ { no: 6, name: "role_id", kind: "message", T: () => RoleId },
2045
2040
  { no: 7, name: "scope", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
2046
2041
  { no: 8, name: "expires_at", kind: "message", T: () => Timestamp },
2047
2042
  { no: 9, name: "admin", kind: "message", T: () => AdminEnvelope },
@@ -2051,7 +2046,6 @@ class AssignRoleRequest$Type extends MessageType {
2051
2046
  create(value) {
2052
2047
  const message = globalThis.Object.create((this.messagePrototype));
2053
2048
  message.principal = { oneofKind: undefined };
2054
- message.roleId = "";
2055
2049
  if (value !== undefined)
2056
2050
  reflectionMergePartial(this, message, value);
2057
2051
  return message;
@@ -2061,22 +2055,22 @@ class AssignRoleRequest$Type extends MessageType {
2061
2055
  while (reader.pos < end) {
2062
2056
  let [fieldNo, wireType] = reader.tag();
2063
2057
  switch (fieldNo) {
2064
- case /* string profile_id */ 1:
2058
+ case /* sid.v1.ids.ProfileId profile_id */ 1:
2065
2059
  message.principal = {
2066
2060
  oneofKind: "profileId",
2067
- profileId: reader.string()
2061
+ profileId: ProfileId.internalBinaryRead(reader, reader.uint32(), options, message.principal.profileId)
2068
2062
  };
2069
2063
  break;
2070
- case /* string group_id */ 2:
2064
+ case /* sid.v1.ids.GroupId group_id */ 2:
2071
2065
  message.principal = {
2072
2066
  oneofKind: "groupId",
2073
- groupId: reader.string()
2067
+ groupId: GroupId.internalBinaryRead(reader, reader.uint32(), options, message.principal.groupId)
2074
2068
  };
2075
2069
  break;
2076
- case /* string machine_user_id */ 3:
2070
+ case /* sid.v1.ids.MachineUserId machine_user_id */ 3:
2077
2071
  message.principal = {
2078
2072
  oneofKind: "machineUserId",
2079
- machineUserId: reader.string()
2073
+ machineUserId: MachineUserId.internalBinaryRead(reader, reader.uint32(), options, message.principal.machineUserId)
2080
2074
  };
2081
2075
  break;
2082
2076
  case /* string oauth_client_id */ 4:
@@ -2091,8 +2085,8 @@ class AssignRoleRequest$Type extends MessageType {
2091
2085
  provisioningConnectorId: ProvisioningConnectorId.internalBinaryRead(reader, reader.uint32(), options, message.principal.provisioningConnectorId)
2092
2086
  };
2093
2087
  break;
2094
- case /* string role_id */ 6:
2095
- message.roleId = reader.string();
2088
+ case /* sid.v1.ids.RoleId role_id */ 6:
2089
+ message.roleId = RoleId.internalBinaryRead(reader, reader.uint32(), options, message.roleId);
2096
2090
  break;
2097
2091
  case /* optional string scope */ 7:
2098
2092
  message.scope = reader.string();
@@ -2118,24 +2112,24 @@ class AssignRoleRequest$Type extends MessageType {
2118
2112
  return message;
2119
2113
  }
2120
2114
  internalBinaryWrite(message, writer, options) {
2121
- /* string profile_id = 1; */
2115
+ /* sid.v1.ids.ProfileId profile_id = 1; */
2122
2116
  if (message.principal.oneofKind === "profileId")
2123
- writer.tag(1, WireType.LengthDelimited).string(message.principal.profileId);
2124
- /* string group_id = 2; */
2117
+ ProfileId.internalBinaryWrite(message.principal.profileId, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
2118
+ /* sid.v1.ids.GroupId group_id = 2; */
2125
2119
  if (message.principal.oneofKind === "groupId")
2126
- writer.tag(2, WireType.LengthDelimited).string(message.principal.groupId);
2127
- /* string machine_user_id = 3; */
2120
+ GroupId.internalBinaryWrite(message.principal.groupId, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
2121
+ /* sid.v1.ids.MachineUserId machine_user_id = 3; */
2128
2122
  if (message.principal.oneofKind === "machineUserId")
2129
- writer.tag(3, WireType.LengthDelimited).string(message.principal.machineUserId);
2123
+ MachineUserId.internalBinaryWrite(message.principal.machineUserId, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
2130
2124
  /* string oauth_client_id = 4; */
2131
2125
  if (message.principal.oneofKind === "oauthClientId")
2132
2126
  writer.tag(4, WireType.LengthDelimited).string(message.principal.oauthClientId);
2133
2127
  /* sid.v1.ids.ProvisioningConnectorId provisioning_connector_id = 5; */
2134
2128
  if (message.principal.oneofKind === "provisioningConnectorId")
2135
2129
  ProvisioningConnectorId.internalBinaryWrite(message.principal.provisioningConnectorId, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
2136
- /* string role_id = 6; */
2137
- if (message.roleId !== "")
2138
- writer.tag(6, WireType.LengthDelimited).string(message.roleId);
2130
+ /* sid.v1.ids.RoleId role_id = 6; */
2131
+ if (message.roleId)
2132
+ RoleId.internalBinaryWrite(message.roleId, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
2139
2133
  /* optional string scope = 7; */
2140
2134
  if (message.scope !== undefined)
2141
2135
  writer.tag(7, WireType.LengthDelimited).string(message.scope);
@@ -2208,12 +2202,11 @@ export const AssignRoleResponse = new AssignRoleResponse$Type();
2208
2202
  class RevokeRoleRequest$Type extends MessageType {
2209
2203
  constructor() {
2210
2204
  super("sid.v1.authz.RevokeRoleRequest", [
2211
- { no: 1, name: "assignment_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
2205
+ { no: 1, name: "assignment_id", kind: "message", T: () => RoleAssignmentId }
2212
2206
  ]);
2213
2207
  }
2214
2208
  create(value) {
2215
2209
  const message = globalThis.Object.create((this.messagePrototype));
2216
- message.assignmentId = "";
2217
2210
  if (value !== undefined)
2218
2211
  reflectionMergePartial(this, message, value);
2219
2212
  return message;
@@ -2223,8 +2216,8 @@ class RevokeRoleRequest$Type extends MessageType {
2223
2216
  while (reader.pos < end) {
2224
2217
  let [fieldNo, wireType] = reader.tag();
2225
2218
  switch (fieldNo) {
2226
- case /* string assignment_id */ 1:
2227
- message.assignmentId = reader.string();
2219
+ case /* sid.v1.ids.RoleAssignmentId assignment_id */ 1:
2220
+ message.assignmentId = RoleAssignmentId.internalBinaryRead(reader, reader.uint32(), options, message.assignmentId);
2228
2221
  break;
2229
2222
  default:
2230
2223
  let u = options.readUnknownField;
@@ -2238,9 +2231,9 @@ class RevokeRoleRequest$Type extends MessageType {
2238
2231
  return message;
2239
2232
  }
2240
2233
  internalBinaryWrite(message, writer, options) {
2241
- /* string assignment_id = 1; */
2242
- if (message.assignmentId !== "")
2243
- writer.tag(1, WireType.LengthDelimited).string(message.assignmentId);
2234
+ /* sid.v1.ids.RoleAssignmentId assignment_id = 1; */
2235
+ if (message.assignmentId)
2236
+ RoleAssignmentId.internalBinaryWrite(message.assignmentId, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
2244
2237
  let u = options.writeUnknownFields;
2245
2238
  if (u !== false)
2246
2239
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -2293,10 +2286,10 @@ export const RevokeRoleResponse = new RevokeRoleResponse$Type();
2293
2286
  class ListRoleAssignmentsRequest$Type extends MessageType {
2294
2287
  constructor() {
2295
2288
  super("sid.v1.authz.ListRoleAssignmentsRequest", [
2296
- { no: 1, name: "profile_id", kind: "scalar", oneof: "filter", T: 9 /*ScalarType.STRING*/ },
2297
- { no: 2, name: "group_id", kind: "scalar", oneof: "filter", T: 9 /*ScalarType.STRING*/ },
2298
- { no: 3, name: "role_id", kind: "scalar", oneof: "filter", T: 9 /*ScalarType.STRING*/ },
2299
- { no: 4, name: "machine_user_id", kind: "scalar", oneof: "filter", T: 9 /*ScalarType.STRING*/ },
2289
+ { no: 1, name: "profile_id", kind: "message", oneof: "filter", T: () => ProfileId },
2290
+ { no: 2, name: "group_id", kind: "message", oneof: "filter", T: () => GroupId },
2291
+ { no: 3, name: "role_id", kind: "message", oneof: "filter", T: () => RoleId },
2292
+ { no: 4, name: "machine_user_id", kind: "message", oneof: "filter", T: () => MachineUserId },
2300
2293
  { no: 5, name: "oauth_client_id", kind: "scalar", oneof: "filter", T: 9 /*ScalarType.STRING*/ },
2301
2294
  { no: 6, name: "provisioning_connector_id", kind: "message", oneof: "filter", T: () => ProvisioningConnectorId }
2302
2295
  ]);
@@ -2313,28 +2306,28 @@ class ListRoleAssignmentsRequest$Type extends MessageType {
2313
2306
  while (reader.pos < end) {
2314
2307
  let [fieldNo, wireType] = reader.tag();
2315
2308
  switch (fieldNo) {
2316
- case /* string profile_id */ 1:
2309
+ case /* sid.v1.ids.ProfileId profile_id */ 1:
2317
2310
  message.filter = {
2318
2311
  oneofKind: "profileId",
2319
- profileId: reader.string()
2312
+ profileId: ProfileId.internalBinaryRead(reader, reader.uint32(), options, message.filter.profileId)
2320
2313
  };
2321
2314
  break;
2322
- case /* string group_id */ 2:
2315
+ case /* sid.v1.ids.GroupId group_id */ 2:
2323
2316
  message.filter = {
2324
2317
  oneofKind: "groupId",
2325
- groupId: reader.string()
2318
+ groupId: GroupId.internalBinaryRead(reader, reader.uint32(), options, message.filter.groupId)
2326
2319
  };
2327
2320
  break;
2328
- case /* string role_id */ 3:
2321
+ case /* sid.v1.ids.RoleId role_id */ 3:
2329
2322
  message.filter = {
2330
2323
  oneofKind: "roleId",
2331
- roleId: reader.string()
2324
+ roleId: RoleId.internalBinaryRead(reader, reader.uint32(), options, message.filter.roleId)
2332
2325
  };
2333
2326
  break;
2334
- case /* string machine_user_id */ 4:
2327
+ case /* sid.v1.ids.MachineUserId machine_user_id */ 4:
2335
2328
  message.filter = {
2336
2329
  oneofKind: "machineUserId",
2337
- machineUserId: reader.string()
2330
+ machineUserId: MachineUserId.internalBinaryRead(reader, reader.uint32(), options, message.filter.machineUserId)
2338
2331
  };
2339
2332
  break;
2340
2333
  case /* string oauth_client_id */ 5:
@@ -2361,18 +2354,18 @@ class ListRoleAssignmentsRequest$Type extends MessageType {
2361
2354
  return message;
2362
2355
  }
2363
2356
  internalBinaryWrite(message, writer, options) {
2364
- /* string profile_id = 1; */
2357
+ /* sid.v1.ids.ProfileId profile_id = 1; */
2365
2358
  if (message.filter.oneofKind === "profileId")
2366
- writer.tag(1, WireType.LengthDelimited).string(message.filter.profileId);
2367
- /* string group_id = 2; */
2359
+ ProfileId.internalBinaryWrite(message.filter.profileId, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
2360
+ /* sid.v1.ids.GroupId group_id = 2; */
2368
2361
  if (message.filter.oneofKind === "groupId")
2369
- writer.tag(2, WireType.LengthDelimited).string(message.filter.groupId);
2370
- /* string role_id = 3; */
2362
+ GroupId.internalBinaryWrite(message.filter.groupId, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
2363
+ /* sid.v1.ids.RoleId role_id = 3; */
2371
2364
  if (message.filter.oneofKind === "roleId")
2372
- writer.tag(3, WireType.LengthDelimited).string(message.filter.roleId);
2373
- /* string machine_user_id = 4; */
2365
+ RoleId.internalBinaryWrite(message.filter.roleId, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
2366
+ /* sid.v1.ids.MachineUserId machine_user_id = 4; */
2374
2367
  if (message.filter.oneofKind === "machineUserId")
2375
- writer.tag(4, WireType.LengthDelimited).string(message.filter.machineUserId);
2368
+ MachineUserId.internalBinaryWrite(message.filter.machineUserId, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
2376
2369
  /* string oauth_client_id = 5; */
2377
2370
  if (message.filter.oneofKind === "oauthClientId")
2378
2371
  writer.tag(5, WireType.LengthDelimited).string(message.filter.oauthClientId);
@@ -2440,14 +2433,13 @@ export const ListRoleAssignmentsResponse = new ListRoleAssignmentsResponse$Type(
2440
2433
  class CreateGroupRequest$Type extends MessageType {
2441
2434
  constructor() {
2442
2435
  super("sid.v1.authz.CreateGroupRequest", [
2443
- { no: 1, name: "project_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
2436
+ { no: 1, name: "project_id", kind: "message", T: () => ProjectId },
2444
2437
  { no: 2, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
2445
2438
  { no: 3, name: "description", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }
2446
2439
  ]);
2447
2440
  }
2448
2441
  create(value) {
2449
2442
  const message = globalThis.Object.create((this.messagePrototype));
2450
- message.projectId = "";
2451
2443
  message.name = "";
2452
2444
  if (value !== undefined)
2453
2445
  reflectionMergePartial(this, message, value);
@@ -2458,8 +2450,8 @@ class CreateGroupRequest$Type extends MessageType {
2458
2450
  while (reader.pos < end) {
2459
2451
  let [fieldNo, wireType] = reader.tag();
2460
2452
  switch (fieldNo) {
2461
- case /* string project_id */ 1:
2462
- message.projectId = reader.string();
2453
+ case /* sid.v1.ids.ProjectId project_id */ 1:
2454
+ message.projectId = ProjectId.internalBinaryRead(reader, reader.uint32(), options, message.projectId);
2463
2455
  break;
2464
2456
  case /* string name */ 2:
2465
2457
  message.name = reader.string();
@@ -2479,9 +2471,9 @@ class CreateGroupRequest$Type extends MessageType {
2479
2471
  return message;
2480
2472
  }
2481
2473
  internalBinaryWrite(message, writer, options) {
2482
- /* string project_id = 1; */
2483
- if (message.projectId !== "")
2484
- writer.tag(1, WireType.LengthDelimited).string(message.projectId);
2474
+ /* sid.v1.ids.ProjectId project_id = 1; */
2475
+ if (message.projectId)
2476
+ ProjectId.internalBinaryWrite(message.projectId, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
2485
2477
  /* string name = 2; */
2486
2478
  if (message.name !== "")
2487
2479
  writer.tag(2, WireType.LengthDelimited).string(message.name);
@@ -2548,9 +2540,9 @@ export const CreateGroupResponse = new CreateGroupResponse$Type();
2548
2540
  class GetGroupRequest$Type extends MessageType {
2549
2541
  constructor() {
2550
2542
  super("sid.v1.authz.GetGroupRequest", [
2551
- { no: 1, name: "id", kind: "scalar", oneof: "identifier", T: 9 /*ScalarType.STRING*/ },
2543
+ { no: 1, name: "id", kind: "message", oneof: "identifier", T: () => GroupId },
2552
2544
  { no: 2, name: "name", kind: "scalar", oneof: "identifier", T: 9 /*ScalarType.STRING*/ },
2553
- { no: 3, name: "project_id", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }
2545
+ { no: 3, name: "project_id", kind: "message", T: () => ProjectId }
2554
2546
  ]);
2555
2547
  }
2556
2548
  create(value) {
@@ -2565,10 +2557,10 @@ class GetGroupRequest$Type extends MessageType {
2565
2557
  while (reader.pos < end) {
2566
2558
  let [fieldNo, wireType] = reader.tag();
2567
2559
  switch (fieldNo) {
2568
- case /* string id */ 1:
2560
+ case /* sid.v1.ids.GroupId id */ 1:
2569
2561
  message.identifier = {
2570
2562
  oneofKind: "id",
2571
- id: reader.string()
2563
+ id: GroupId.internalBinaryRead(reader, reader.uint32(), options, message.identifier.id)
2572
2564
  };
2573
2565
  break;
2574
2566
  case /* string name */ 2:
@@ -2577,8 +2569,8 @@ class GetGroupRequest$Type extends MessageType {
2577
2569
  name: reader.string()
2578
2570
  };
2579
2571
  break;
2580
- case /* optional string project_id */ 3:
2581
- message.projectId = reader.string();
2572
+ case /* sid.v1.ids.ProjectId project_id */ 3:
2573
+ message.projectId = ProjectId.internalBinaryRead(reader, reader.uint32(), options, message.projectId);
2582
2574
  break;
2583
2575
  default:
2584
2576
  let u = options.readUnknownField;
@@ -2592,15 +2584,15 @@ class GetGroupRequest$Type extends MessageType {
2592
2584
  return message;
2593
2585
  }
2594
2586
  internalBinaryWrite(message, writer, options) {
2595
- /* string id = 1; */
2587
+ /* sid.v1.ids.GroupId id = 1; */
2596
2588
  if (message.identifier.oneofKind === "id")
2597
- writer.tag(1, WireType.LengthDelimited).string(message.identifier.id);
2589
+ GroupId.internalBinaryWrite(message.identifier.id, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
2598
2590
  /* string name = 2; */
2599
2591
  if (message.identifier.oneofKind === "name")
2600
2592
  writer.tag(2, WireType.LengthDelimited).string(message.identifier.name);
2601
- /* optional string project_id = 3; */
2602
- if (message.projectId !== undefined)
2603
- writer.tag(3, WireType.LengthDelimited).string(message.projectId);
2593
+ /* sid.v1.ids.ProjectId project_id = 3; */
2594
+ if (message.projectId)
2595
+ ProjectId.internalBinaryWrite(message.projectId, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
2604
2596
  let u = options.writeUnknownFields;
2605
2597
  if (u !== false)
2606
2598
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -2661,13 +2653,12 @@ export const GetGroupResponse = new GetGroupResponse$Type();
2661
2653
  class UpdateGroupRequest$Type extends MessageType {
2662
2654
  constructor() {
2663
2655
  super("sid.v1.authz.UpdateGroupRequest", [
2664
- { no: 1, name: "id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
2656
+ { no: 1, name: "id", kind: "message", T: () => GroupId },
2665
2657
  { no: 2, name: "description", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }
2666
2658
  ]);
2667
2659
  }
2668
2660
  create(value) {
2669
2661
  const message = globalThis.Object.create((this.messagePrototype));
2670
- message.id = "";
2671
2662
  if (value !== undefined)
2672
2663
  reflectionMergePartial(this, message, value);
2673
2664
  return message;
@@ -2677,8 +2668,8 @@ class UpdateGroupRequest$Type extends MessageType {
2677
2668
  while (reader.pos < end) {
2678
2669
  let [fieldNo, wireType] = reader.tag();
2679
2670
  switch (fieldNo) {
2680
- case /* string id */ 1:
2681
- message.id = reader.string();
2671
+ case /* sid.v1.ids.GroupId id */ 1:
2672
+ message.id = GroupId.internalBinaryRead(reader, reader.uint32(), options, message.id);
2682
2673
  break;
2683
2674
  case /* optional string description */ 2:
2684
2675
  message.description = reader.string();
@@ -2695,9 +2686,9 @@ class UpdateGroupRequest$Type extends MessageType {
2695
2686
  return message;
2696
2687
  }
2697
2688
  internalBinaryWrite(message, writer, options) {
2698
- /* string id = 1; */
2699
- if (message.id !== "")
2700
- writer.tag(1, WireType.LengthDelimited).string(message.id);
2689
+ /* sid.v1.ids.GroupId id = 1; */
2690
+ if (message.id)
2691
+ GroupId.internalBinaryWrite(message.id, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
2701
2692
  /* optional string description = 2; */
2702
2693
  if (message.description !== undefined)
2703
2694
  writer.tag(2, WireType.LengthDelimited).string(message.description);
@@ -2761,12 +2752,11 @@ export const UpdateGroupResponse = new UpdateGroupResponse$Type();
2761
2752
  class DeleteGroupRequest$Type extends MessageType {
2762
2753
  constructor() {
2763
2754
  super("sid.v1.authz.DeleteGroupRequest", [
2764
- { no: 1, name: "id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
2755
+ { no: 1, name: "id", kind: "message", T: () => GroupId }
2765
2756
  ]);
2766
2757
  }
2767
2758
  create(value) {
2768
2759
  const message = globalThis.Object.create((this.messagePrototype));
2769
- message.id = "";
2770
2760
  if (value !== undefined)
2771
2761
  reflectionMergePartial(this, message, value);
2772
2762
  return message;
@@ -2776,8 +2766,8 @@ class DeleteGroupRequest$Type extends MessageType {
2776
2766
  while (reader.pos < end) {
2777
2767
  let [fieldNo, wireType] = reader.tag();
2778
2768
  switch (fieldNo) {
2779
- case /* string id */ 1:
2780
- message.id = reader.string();
2769
+ case /* sid.v1.ids.GroupId id */ 1:
2770
+ message.id = GroupId.internalBinaryRead(reader, reader.uint32(), options, message.id);
2781
2771
  break;
2782
2772
  default:
2783
2773
  let u = options.readUnknownField;
@@ -2791,9 +2781,9 @@ class DeleteGroupRequest$Type extends MessageType {
2791
2781
  return message;
2792
2782
  }
2793
2783
  internalBinaryWrite(message, writer, options) {
2794
- /* string id = 1; */
2795
- if (message.id !== "")
2796
- writer.tag(1, WireType.LengthDelimited).string(message.id);
2784
+ /* sid.v1.ids.GroupId id = 1; */
2785
+ if (message.id)
2786
+ GroupId.internalBinaryWrite(message.id, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
2797
2787
  let u = options.writeUnknownFields;
2798
2788
  if (u !== false)
2799
2789
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -2846,14 +2836,13 @@ export const DeleteGroupResponse = new DeleteGroupResponse$Type();
2846
2836
  class ListGroupsRequest$Type extends MessageType {
2847
2837
  constructor() {
2848
2838
  super("sid.v1.authz.ListGroupsRequest", [
2849
- { no: 1, name: "project_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
2839
+ { no: 1, name: "project_id", kind: "message", T: () => ProjectId },
2850
2840
  { no: 2, name: "page_size", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
2851
2841
  { no: 3, name: "page_token", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
2852
2842
  ]);
2853
2843
  }
2854
2844
  create(value) {
2855
2845
  const message = globalThis.Object.create((this.messagePrototype));
2856
- message.projectId = "";
2857
2846
  message.pageSize = 0;
2858
2847
  message.pageToken = "";
2859
2848
  if (value !== undefined)
@@ -2865,8 +2854,8 @@ class ListGroupsRequest$Type extends MessageType {
2865
2854
  while (reader.pos < end) {
2866
2855
  let [fieldNo, wireType] = reader.tag();
2867
2856
  switch (fieldNo) {
2868
- case /* string project_id */ 1:
2869
- message.projectId = reader.string();
2857
+ case /* sid.v1.ids.ProjectId project_id */ 1:
2858
+ message.projectId = ProjectId.internalBinaryRead(reader, reader.uint32(), options, message.projectId);
2870
2859
  break;
2871
2860
  case /* int32 page_size */ 2:
2872
2861
  message.pageSize = reader.int32();
@@ -2886,9 +2875,9 @@ class ListGroupsRequest$Type extends MessageType {
2886
2875
  return message;
2887
2876
  }
2888
2877
  internalBinaryWrite(message, writer, options) {
2889
- /* string project_id = 1; */
2890
- if (message.projectId !== "")
2891
- writer.tag(1, WireType.LengthDelimited).string(message.projectId);
2878
+ /* sid.v1.ids.ProjectId project_id = 1; */
2879
+ if (message.projectId)
2880
+ ProjectId.internalBinaryWrite(message.projectId, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
2892
2881
  /* int32 page_size = 2; */
2893
2882
  if (message.pageSize !== 0)
2894
2883
  writer.tag(2, WireType.Varint).int32(message.pageSize);
@@ -2964,14 +2953,12 @@ export const ListGroupsResponse = new ListGroupsResponse$Type();
2964
2953
  class AddToGroupRequest$Type extends MessageType {
2965
2954
  constructor() {
2966
2955
  super("sid.v1.authz.AddToGroupRequest", [
2967
- { no: 1, name: "group_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
2968
- { no: 2, name: "profile_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
2956
+ { no: 1, name: "group_id", kind: "message", T: () => GroupId },
2957
+ { no: 2, name: "profile_id", kind: "message", T: () => ProfileId }
2969
2958
  ]);
2970
2959
  }
2971
2960
  create(value) {
2972
2961
  const message = globalThis.Object.create((this.messagePrototype));
2973
- message.groupId = "";
2974
- message.profileId = "";
2975
2962
  if (value !== undefined)
2976
2963
  reflectionMergePartial(this, message, value);
2977
2964
  return message;
@@ -2981,11 +2968,11 @@ class AddToGroupRequest$Type extends MessageType {
2981
2968
  while (reader.pos < end) {
2982
2969
  let [fieldNo, wireType] = reader.tag();
2983
2970
  switch (fieldNo) {
2984
- case /* string group_id */ 1:
2985
- message.groupId = reader.string();
2971
+ case /* sid.v1.ids.GroupId group_id */ 1:
2972
+ message.groupId = GroupId.internalBinaryRead(reader, reader.uint32(), options, message.groupId);
2986
2973
  break;
2987
- case /* string profile_id */ 2:
2988
- message.profileId = reader.string();
2974
+ case /* sid.v1.ids.ProfileId profile_id */ 2:
2975
+ message.profileId = ProfileId.internalBinaryRead(reader, reader.uint32(), options, message.profileId);
2989
2976
  break;
2990
2977
  default:
2991
2978
  let u = options.readUnknownField;
@@ -2999,12 +2986,12 @@ class AddToGroupRequest$Type extends MessageType {
2999
2986
  return message;
3000
2987
  }
3001
2988
  internalBinaryWrite(message, writer, options) {
3002
- /* string group_id = 1; */
3003
- if (message.groupId !== "")
3004
- writer.tag(1, WireType.LengthDelimited).string(message.groupId);
3005
- /* string profile_id = 2; */
3006
- if (message.profileId !== "")
3007
- writer.tag(2, WireType.LengthDelimited).string(message.profileId);
2989
+ /* sid.v1.ids.GroupId group_id = 1; */
2990
+ if (message.groupId)
2991
+ GroupId.internalBinaryWrite(message.groupId, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
2992
+ /* sid.v1.ids.ProfileId profile_id = 2; */
2993
+ if (message.profileId)
2994
+ ProfileId.internalBinaryWrite(message.profileId, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
3008
2995
  let u = options.writeUnknownFields;
3009
2996
  if (u !== false)
3010
2997
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -3057,14 +3044,12 @@ export const AddToGroupResponse = new AddToGroupResponse$Type();
3057
3044
  class RemoveFromGroupRequest$Type extends MessageType {
3058
3045
  constructor() {
3059
3046
  super("sid.v1.authz.RemoveFromGroupRequest", [
3060
- { no: 1, name: "group_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
3061
- { no: 2, name: "profile_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
3047
+ { no: 1, name: "group_id", kind: "message", T: () => GroupId },
3048
+ { no: 2, name: "profile_id", kind: "message", T: () => ProfileId }
3062
3049
  ]);
3063
3050
  }
3064
3051
  create(value) {
3065
3052
  const message = globalThis.Object.create((this.messagePrototype));
3066
- message.groupId = "";
3067
- message.profileId = "";
3068
3053
  if (value !== undefined)
3069
3054
  reflectionMergePartial(this, message, value);
3070
3055
  return message;
@@ -3074,11 +3059,11 @@ class RemoveFromGroupRequest$Type extends MessageType {
3074
3059
  while (reader.pos < end) {
3075
3060
  let [fieldNo, wireType] = reader.tag();
3076
3061
  switch (fieldNo) {
3077
- case /* string group_id */ 1:
3078
- message.groupId = reader.string();
3062
+ case /* sid.v1.ids.GroupId group_id */ 1:
3063
+ message.groupId = GroupId.internalBinaryRead(reader, reader.uint32(), options, message.groupId);
3079
3064
  break;
3080
- case /* string profile_id */ 2:
3081
- message.profileId = reader.string();
3065
+ case /* sid.v1.ids.ProfileId profile_id */ 2:
3066
+ message.profileId = ProfileId.internalBinaryRead(reader, reader.uint32(), options, message.profileId);
3082
3067
  break;
3083
3068
  default:
3084
3069
  let u = options.readUnknownField;
@@ -3092,12 +3077,12 @@ class RemoveFromGroupRequest$Type extends MessageType {
3092
3077
  return message;
3093
3078
  }
3094
3079
  internalBinaryWrite(message, writer, options) {
3095
- /* string group_id = 1; */
3096
- if (message.groupId !== "")
3097
- writer.tag(1, WireType.LengthDelimited).string(message.groupId);
3098
- /* string profile_id = 2; */
3099
- if (message.profileId !== "")
3100
- writer.tag(2, WireType.LengthDelimited).string(message.profileId);
3080
+ /* sid.v1.ids.GroupId group_id = 1; */
3081
+ if (message.groupId)
3082
+ GroupId.internalBinaryWrite(message.groupId, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
3083
+ /* sid.v1.ids.ProfileId profile_id = 2; */
3084
+ if (message.profileId)
3085
+ ProfileId.internalBinaryWrite(message.profileId, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
3101
3086
  let u = options.writeUnknownFields;
3102
3087
  if (u !== false)
3103
3088
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -3150,12 +3135,11 @@ export const RemoveFromGroupResponse = new RemoveFromGroupResponse$Type();
3150
3135
  class ListGroupMembersRequest$Type extends MessageType {
3151
3136
  constructor() {
3152
3137
  super("sid.v1.authz.ListGroupMembersRequest", [
3153
- { no: 1, name: "group_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
3138
+ { no: 1, name: "group_id", kind: "message", T: () => GroupId }
3154
3139
  ]);
3155
3140
  }
3156
3141
  create(value) {
3157
3142
  const message = globalThis.Object.create((this.messagePrototype));
3158
- message.groupId = "";
3159
3143
  if (value !== undefined)
3160
3144
  reflectionMergePartial(this, message, value);
3161
3145
  return message;
@@ -3165,8 +3149,8 @@ class ListGroupMembersRequest$Type extends MessageType {
3165
3149
  while (reader.pos < end) {
3166
3150
  let [fieldNo, wireType] = reader.tag();
3167
3151
  switch (fieldNo) {
3168
- case /* string group_id */ 1:
3169
- message.groupId = reader.string();
3152
+ case /* sid.v1.ids.GroupId group_id */ 1:
3153
+ message.groupId = GroupId.internalBinaryRead(reader, reader.uint32(), options, message.groupId);
3170
3154
  break;
3171
3155
  default:
3172
3156
  let u = options.readUnknownField;
@@ -3180,9 +3164,9 @@ class ListGroupMembersRequest$Type extends MessageType {
3180
3164
  return message;
3181
3165
  }
3182
3166
  internalBinaryWrite(message, writer, options) {
3183
- /* string group_id = 1; */
3184
- if (message.groupId !== "")
3185
- writer.tag(1, WireType.LengthDelimited).string(message.groupId);
3167
+ /* sid.v1.ids.GroupId group_id = 1; */
3168
+ if (message.groupId)
3169
+ GroupId.internalBinaryWrite(message.groupId, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
3186
3170
  let u = options.writeUnknownFields;
3187
3171
  if (u !== false)
3188
3172
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -3197,7 +3181,7 @@ export const ListGroupMembersRequest = new ListGroupMembersRequest$Type();
3197
3181
  class ListGroupMembersResponse$Type extends MessageType {
3198
3182
  constructor() {
3199
3183
  super("sid.v1.authz.ListGroupMembersResponse", [
3200
- { no: 1, name: "profile_ids", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }
3184
+ { no: 1, name: "profile_ids", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ProfileId }
3201
3185
  ]);
3202
3186
  }
3203
3187
  create(value) {
@@ -3212,8 +3196,8 @@ class ListGroupMembersResponse$Type extends MessageType {
3212
3196
  while (reader.pos < end) {
3213
3197
  let [fieldNo, wireType] = reader.tag();
3214
3198
  switch (fieldNo) {
3215
- case /* repeated string profile_ids */ 1:
3216
- message.profileIds.push(reader.string());
3199
+ case /* repeated sid.v1.ids.ProfileId profile_ids */ 1:
3200
+ message.profileIds.push(ProfileId.internalBinaryRead(reader, reader.uint32(), options));
3217
3201
  break;
3218
3202
  default:
3219
3203
  let u = options.readUnknownField;
@@ -3227,9 +3211,9 @@ class ListGroupMembersResponse$Type extends MessageType {
3227
3211
  return message;
3228
3212
  }
3229
3213
  internalBinaryWrite(message, writer, options) {
3230
- /* repeated string profile_ids = 1; */
3214
+ /* repeated sid.v1.ids.ProfileId profile_ids = 1; */
3231
3215
  for (let i = 0; i < message.profileIds.length; i++)
3232
- writer.tag(1, WireType.LengthDelimited).string(message.profileIds[i]);
3216
+ ProfileId.internalBinaryWrite(message.profileIds[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
3233
3217
  let u = options.writeUnknownFields;
3234
3218
  if (u !== false)
3235
3219
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -3375,12 +3359,11 @@ export const CreatePolicyResponse = new CreatePolicyResponse$Type();
3375
3359
  class GetPolicyRequest$Type extends MessageType {
3376
3360
  constructor() {
3377
3361
  super("sid.v1.authz.GetPolicyRequest", [
3378
- { no: 1, name: "id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
3362
+ { no: 1, name: "id", kind: "message", T: () => CedarPolicyId }
3379
3363
  ]);
3380
3364
  }
3381
3365
  create(value) {
3382
3366
  const message = globalThis.Object.create((this.messagePrototype));
3383
- message.id = "";
3384
3367
  if (value !== undefined)
3385
3368
  reflectionMergePartial(this, message, value);
3386
3369
  return message;
@@ -3390,8 +3373,8 @@ class GetPolicyRequest$Type extends MessageType {
3390
3373
  while (reader.pos < end) {
3391
3374
  let [fieldNo, wireType] = reader.tag();
3392
3375
  switch (fieldNo) {
3393
- case /* string id */ 1:
3394
- message.id = reader.string();
3376
+ case /* sid.v1.ids.CedarPolicyId id */ 1:
3377
+ message.id = CedarPolicyId.internalBinaryRead(reader, reader.uint32(), options, message.id);
3395
3378
  break;
3396
3379
  default:
3397
3380
  let u = options.readUnknownField;
@@ -3405,9 +3388,9 @@ class GetPolicyRequest$Type extends MessageType {
3405
3388
  return message;
3406
3389
  }
3407
3390
  internalBinaryWrite(message, writer, options) {
3408
- /* string id = 1; */
3409
- if (message.id !== "")
3410
- writer.tag(1, WireType.LengthDelimited).string(message.id);
3391
+ /* sid.v1.ids.CedarPolicyId id = 1; */
3392
+ if (message.id)
3393
+ CedarPolicyId.internalBinaryWrite(message.id, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
3411
3394
  let u = options.writeUnknownFields;
3412
3395
  if (u !== false)
3413
3396
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -3468,7 +3451,7 @@ export const GetPolicyResponse = new GetPolicyResponse$Type();
3468
3451
  class UpdatePolicyRequest$Type extends MessageType {
3469
3452
  constructor() {
3470
3453
  super("sid.v1.authz.UpdatePolicyRequest", [
3471
- { no: 1, name: "id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
3454
+ { no: 1, name: "id", kind: "message", T: () => CedarPolicyId },
3472
3455
  { no: 2, name: "description", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
3473
3456
  { no: 3, name: "policy_text", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
3474
3457
  { no: 4, name: "effect", kind: "enum", opt: true, T: () => ["sid.v1.authz.PolicyEffect", PolicyEffect, "POLICY_EFFECT_"] },
@@ -3477,7 +3460,6 @@ class UpdatePolicyRequest$Type extends MessageType {
3477
3460
  }
3478
3461
  create(value) {
3479
3462
  const message = globalThis.Object.create((this.messagePrototype));
3480
- message.id = "";
3481
3463
  if (value !== undefined)
3482
3464
  reflectionMergePartial(this, message, value);
3483
3465
  return message;
@@ -3487,8 +3469,8 @@ class UpdatePolicyRequest$Type extends MessageType {
3487
3469
  while (reader.pos < end) {
3488
3470
  let [fieldNo, wireType] = reader.tag();
3489
3471
  switch (fieldNo) {
3490
- case /* string id */ 1:
3491
- message.id = reader.string();
3472
+ case /* sid.v1.ids.CedarPolicyId id */ 1:
3473
+ message.id = CedarPolicyId.internalBinaryRead(reader, reader.uint32(), options, message.id);
3492
3474
  break;
3493
3475
  case /* optional string description */ 2:
3494
3476
  message.description = reader.string();
@@ -3514,9 +3496,9 @@ class UpdatePolicyRequest$Type extends MessageType {
3514
3496
  return message;
3515
3497
  }
3516
3498
  internalBinaryWrite(message, writer, options) {
3517
- /* string id = 1; */
3518
- if (message.id !== "")
3519
- writer.tag(1, WireType.LengthDelimited).string(message.id);
3499
+ /* sid.v1.ids.CedarPolicyId id = 1; */
3500
+ if (message.id)
3501
+ CedarPolicyId.internalBinaryWrite(message.id, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
3520
3502
  /* optional string description = 2; */
3521
3503
  if (message.description !== undefined)
3522
3504
  writer.tag(2, WireType.LengthDelimited).string(message.description);
@@ -3589,12 +3571,11 @@ export const UpdatePolicyResponse = new UpdatePolicyResponse$Type();
3589
3571
  class DeletePolicyRequest$Type extends MessageType {
3590
3572
  constructor() {
3591
3573
  super("sid.v1.authz.DeletePolicyRequest", [
3592
- { no: 1, name: "id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
3574
+ { no: 1, name: "id", kind: "message", T: () => CedarPolicyId }
3593
3575
  ]);
3594
3576
  }
3595
3577
  create(value) {
3596
3578
  const message = globalThis.Object.create((this.messagePrototype));
3597
- message.id = "";
3598
3579
  if (value !== undefined)
3599
3580
  reflectionMergePartial(this, message, value);
3600
3581
  return message;
@@ -3604,8 +3585,8 @@ class DeletePolicyRequest$Type extends MessageType {
3604
3585
  while (reader.pos < end) {
3605
3586
  let [fieldNo, wireType] = reader.tag();
3606
3587
  switch (fieldNo) {
3607
- case /* string id */ 1:
3608
- message.id = reader.string();
3588
+ case /* sid.v1.ids.CedarPolicyId id */ 1:
3589
+ message.id = CedarPolicyId.internalBinaryRead(reader, reader.uint32(), options, message.id);
3609
3590
  break;
3610
3591
  default:
3611
3592
  let u = options.readUnknownField;
@@ -3619,9 +3600,9 @@ class DeletePolicyRequest$Type extends MessageType {
3619
3600
  return message;
3620
3601
  }
3621
3602
  internalBinaryWrite(message, writer, options) {
3622
- /* string id = 1; */
3623
- if (message.id !== "")
3624
- writer.tag(1, WireType.LengthDelimited).string(message.id);
3603
+ /* sid.v1.ids.CedarPolicyId id = 1; */
3604
+ if (message.id)
3605
+ CedarPolicyId.internalBinaryWrite(message.id, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
3625
3606
  let u = options.writeUnknownFields;
3626
3607
  if (u !== false)
3627
3608
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -3940,14 +3921,13 @@ export const EvaluatePolicyResponse = new EvaluatePolicyResponse$Type();
3940
3921
  class PolicyMatch$Type extends MessageType {
3941
3922
  constructor() {
3942
3923
  super("sid.v1.authz.PolicyMatch", [
3943
- { no: 1, name: "policy_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
3924
+ { no: 1, name: "policy_id", kind: "message", T: () => CedarPolicyId },
3944
3925
  { no: 2, name: "policy_name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
3945
3926
  { no: 3, name: "effect", kind: "enum", T: () => ["sid.v1.authz.PolicyEffect", PolicyEffect, "POLICY_EFFECT_"] }
3946
3927
  ]);
3947
3928
  }
3948
3929
  create(value) {
3949
3930
  const message = globalThis.Object.create((this.messagePrototype));
3950
- message.policyId = "";
3951
3931
  message.policyName = "";
3952
3932
  message.effect = 0;
3953
3933
  if (value !== undefined)
@@ -3959,8 +3939,8 @@ class PolicyMatch$Type extends MessageType {
3959
3939
  while (reader.pos < end) {
3960
3940
  let [fieldNo, wireType] = reader.tag();
3961
3941
  switch (fieldNo) {
3962
- case /* string policy_id */ 1:
3963
- message.policyId = reader.string();
3942
+ case /* sid.v1.ids.CedarPolicyId policy_id */ 1:
3943
+ message.policyId = CedarPolicyId.internalBinaryRead(reader, reader.uint32(), options, message.policyId);
3964
3944
  break;
3965
3945
  case /* string policy_name */ 2:
3966
3946
  message.policyName = reader.string();
@@ -3980,9 +3960,9 @@ class PolicyMatch$Type extends MessageType {
3980
3960
  return message;
3981
3961
  }
3982
3962
  internalBinaryWrite(message, writer, options) {
3983
- /* string policy_id = 1; */
3984
- if (message.policyId !== "")
3985
- writer.tag(1, WireType.LengthDelimited).string(message.policyId);
3963
+ /* sid.v1.ids.CedarPolicyId policy_id = 1; */
3964
+ if (message.policyId)
3965
+ CedarPolicyId.internalBinaryWrite(message.policyId, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
3986
3966
  /* string policy_name = 2; */
3987
3967
  if (message.policyName !== "")
3988
3968
  writer.tag(2, WireType.LengthDelimited).string(message.policyName);
@@ -4288,9 +4268,9 @@ class PolicyChange$Type extends MessageType {
4288
4268
  super("sid.v1.authz.PolicyChange", [
4289
4269
  { no: 1, name: "create_policy", kind: "message", oneof: "change", T: () => CreatePolicyRequest },
4290
4270
  { no: 2, name: "update_policy", kind: "message", oneof: "change", T: () => UpdatePolicyRequest },
4291
- { no: 3, name: "delete_policy_id", kind: "scalar", oneof: "change", T: 9 /*ScalarType.STRING*/ },
4271
+ { no: 3, name: "delete_policy_id", kind: "message", oneof: "change", T: () => CedarPolicyId },
4292
4272
  { no: 4, name: "assign_role", kind: "message", oneof: "change", T: () => AssignRoleRequest },
4293
- { no: 5, name: "revoke_assignment_id", kind: "scalar", oneof: "change", T: 9 /*ScalarType.STRING*/ }
4273
+ { no: 5, name: "revoke_assignment_id", kind: "message", oneof: "change", T: () => RoleAssignmentId }
4294
4274
  ]);
4295
4275
  }
4296
4276
  create(value) {
@@ -4317,10 +4297,10 @@ class PolicyChange$Type extends MessageType {
4317
4297
  updatePolicy: UpdatePolicyRequest.internalBinaryRead(reader, reader.uint32(), options, message.change.updatePolicy)
4318
4298
  };
4319
4299
  break;
4320
- case /* string delete_policy_id */ 3:
4300
+ case /* sid.v1.ids.CedarPolicyId delete_policy_id */ 3:
4321
4301
  message.change = {
4322
4302
  oneofKind: "deletePolicyId",
4323
- deletePolicyId: reader.string()
4303
+ deletePolicyId: CedarPolicyId.internalBinaryRead(reader, reader.uint32(), options, message.change.deletePolicyId)
4324
4304
  };
4325
4305
  break;
4326
4306
  case /* sid.v1.authz.AssignRoleRequest assign_role */ 4:
@@ -4329,10 +4309,10 @@ class PolicyChange$Type extends MessageType {
4329
4309
  assignRole: AssignRoleRequest.internalBinaryRead(reader, reader.uint32(), options, message.change.assignRole)
4330
4310
  };
4331
4311
  break;
4332
- case /* string revoke_assignment_id */ 5:
4312
+ case /* sid.v1.ids.RoleAssignmentId revoke_assignment_id */ 5:
4333
4313
  message.change = {
4334
4314
  oneofKind: "revokeAssignmentId",
4335
- revokeAssignmentId: reader.string()
4315
+ revokeAssignmentId: RoleAssignmentId.internalBinaryRead(reader, reader.uint32(), options, message.change.revokeAssignmentId)
4336
4316
  };
4337
4317
  break;
4338
4318
  default:
@@ -4353,15 +4333,15 @@ class PolicyChange$Type extends MessageType {
4353
4333
  /* sid.v1.authz.UpdatePolicyRequest update_policy = 2; */
4354
4334
  if (message.change.oneofKind === "updatePolicy")
4355
4335
  UpdatePolicyRequest.internalBinaryWrite(message.change.updatePolicy, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
4356
- /* string delete_policy_id = 3; */
4336
+ /* sid.v1.ids.CedarPolicyId delete_policy_id = 3; */
4357
4337
  if (message.change.oneofKind === "deletePolicyId")
4358
- writer.tag(3, WireType.LengthDelimited).string(message.change.deletePolicyId);
4338
+ CedarPolicyId.internalBinaryWrite(message.change.deletePolicyId, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
4359
4339
  /* sid.v1.authz.AssignRoleRequest assign_role = 4; */
4360
4340
  if (message.change.oneofKind === "assignRole")
4361
4341
  AssignRoleRequest.internalBinaryWrite(message.change.assignRole, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
4362
- /* string revoke_assignment_id = 5; */
4342
+ /* sid.v1.ids.RoleAssignmentId revoke_assignment_id = 5; */
4363
4343
  if (message.change.oneofKind === "revokeAssignmentId")
4364
- writer.tag(5, WireType.LengthDelimited).string(message.change.revokeAssignmentId);
4344
+ RoleAssignmentId.internalBinaryWrite(message.change.revokeAssignmentId, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
4365
4345
  let u = options.writeUnknownFields;
4366
4346
  if (u !== false)
4367
4347
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -4376,7 +4356,7 @@ export const PolicyChange = new PolicyChange$Type();
4376
4356
  class SimulatePolicyRequest$Type extends MessageType {
4377
4357
  constructor() {
4378
4358
  super("sid.v1.authz.SimulatePolicyRequest", [
4379
- { no: 1, name: "project_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
4359
+ { no: 1, name: "project_id", kind: "message", T: () => ProjectId },
4380
4360
  { no: 2, name: "proposed_changes", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => PolicyChange },
4381
4361
  { no: 3, name: "subject", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
4382
4362
  { no: 4, name: "action", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
@@ -4386,7 +4366,6 @@ class SimulatePolicyRequest$Type extends MessageType {
4386
4366
  }
4387
4367
  create(value) {
4388
4368
  const message = globalThis.Object.create((this.messagePrototype));
4389
- message.projectId = "";
4390
4369
  message.proposedChanges = [];
4391
4370
  message.sampleSize = 0;
4392
4371
  if (value !== undefined)
@@ -4398,8 +4377,8 @@ class SimulatePolicyRequest$Type extends MessageType {
4398
4377
  while (reader.pos < end) {
4399
4378
  let [fieldNo, wireType] = reader.tag();
4400
4379
  switch (fieldNo) {
4401
- case /* string project_id */ 1:
4402
- message.projectId = reader.string();
4380
+ case /* sid.v1.ids.ProjectId project_id */ 1:
4381
+ message.projectId = ProjectId.internalBinaryRead(reader, reader.uint32(), options, message.projectId);
4403
4382
  break;
4404
4383
  case /* repeated sid.v1.authz.PolicyChange proposed_changes */ 2:
4405
4384
  message.proposedChanges.push(PolicyChange.internalBinaryRead(reader, reader.uint32(), options));
@@ -4428,9 +4407,9 @@ class SimulatePolicyRequest$Type extends MessageType {
4428
4407
  return message;
4429
4408
  }
4430
4409
  internalBinaryWrite(message, writer, options) {
4431
- /* string project_id = 1; */
4432
- if (message.projectId !== "")
4433
- writer.tag(1, WireType.LengthDelimited).string(message.projectId);
4410
+ /* sid.v1.ids.ProjectId project_id = 1; */
4411
+ if (message.projectId)
4412
+ ProjectId.internalBinaryWrite(message.projectId, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
4434
4413
  /* repeated sid.v1.authz.PolicyChange proposed_changes = 2; */
4435
4414
  for (let i = 0; i < message.proposedChanges.length; i++)
4436
4415
  PolicyChange.internalBinaryWrite(message.proposedChanges[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
@@ -4563,7 +4542,7 @@ export const SimulationImpact = new SimulationImpact$Type();
4563
4542
  class SimulatePolicyResponse$Type extends MessageType {
4564
4543
  constructor() {
4565
4544
  super("sid.v1.authz.SimulatePolicyResponse", [
4566
- { no: 1, name: "project_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
4545
+ { no: 1, name: "project_id", kind: "message", T: () => ProjectId },
4567
4546
  { no: 2, name: "impacts", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => SimulationImpact },
4568
4547
  { no: 3, name: "total_checked", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
4569
4548
  { no: 4, name: "total_gained", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
@@ -4576,7 +4555,6 @@ class SimulatePolicyResponse$Type extends MessageType {
4576
4555
  }
4577
4556
  create(value) {
4578
4557
  const message = globalThis.Object.create((this.messagePrototype));
4579
- message.projectId = "";
4580
4558
  message.impacts = [];
4581
4559
  message.totalChecked = 0;
4582
4560
  message.totalGained = 0;
@@ -4593,8 +4571,8 @@ class SimulatePolicyResponse$Type extends MessageType {
4593
4571
  while (reader.pos < end) {
4594
4572
  let [fieldNo, wireType] = reader.tag();
4595
4573
  switch (fieldNo) {
4596
- case /* string project_id */ 1:
4597
- message.projectId = reader.string();
4574
+ case /* sid.v1.ids.ProjectId project_id */ 1:
4575
+ message.projectId = ProjectId.internalBinaryRead(reader, reader.uint32(), options, message.projectId);
4598
4576
  break;
4599
4577
  case /* repeated sid.v1.authz.SimulationImpact impacts */ 2:
4600
4578
  message.impacts.push(SimulationImpact.internalBinaryRead(reader, reader.uint32(), options));
@@ -4632,9 +4610,9 @@ class SimulatePolicyResponse$Type extends MessageType {
4632
4610
  return message;
4633
4611
  }
4634
4612
  internalBinaryWrite(message, writer, options) {
4635
- /* string project_id = 1; */
4636
- if (message.projectId !== "")
4637
- writer.tag(1, WireType.LengthDelimited).string(message.projectId);
4613
+ /* sid.v1.ids.ProjectId project_id = 1; */
4614
+ if (message.projectId)
4615
+ ProjectId.internalBinaryWrite(message.projectId, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
4638
4616
  /* repeated sid.v1.authz.SimulationImpact impacts = 2; */
4639
4617
  for (let i = 0; i < message.impacts.length; i++)
4640
4618
  SimulationImpact.internalBinaryWrite(message.impacts[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
@@ -4676,25 +4654,25 @@ export const AuthzService = new ServiceType("sid.v1.authz.AuthzService", [
4676
4654
  { name: "CheckPermission", idempotency: "IDEMPOTENT", options: { "google.api.http": { post: "/v1/authz/check", body: "*" }, "sid.v1.common.retry": { ceremony: "RFC 9449 \u00A711.1: a request-bound check admits its sender proof once, for one original request, and a repeat for that same request confirms the first admission; the decision otherwise reads current state, and only a refused caller is audited, each attempt as its own event" } }, I: CheckPermissionRequest, O: CheckPermissionResponse },
4677
4655
  { name: "BatchCheckPermission", idempotency: "IDEMPOTENT", options: { "google.api.http": { post: "/v1/authz/check/batch", body: "*" }, "sid.v1.common.retry": { ceremony: "RFC 9449 \u00A711.1: a request-bound check admits its sender proof once, for one original request, and a repeat for that same request confirms the first admission; the decisions otherwise read current state, and only a refused caller is audited, each attempt as its own event" } }, I: BatchCheckPermissionRequest, O: BatchCheckPermissionResponse },
4678
4656
  { name: "CreateRole", idempotency: "IDEMPOTENT", options: { "google.api.http": { post: "/v1/authz/roles", body: "*" }, "sid.v1.common.retry": { keyed: true } }, I: CreateRoleRequest, O: CreateRoleResponse },
4679
- { name: "GetRole", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { get: "/v1/authz/roles/{id}" } }, I: GetRoleRequest, O: GetRoleResponse },
4680
- { name: "UpdateRole", idempotency: "IDEMPOTENT", options: { "google.api.http": { patch: "/v1/authz/roles/{id}", body: "*" }, "sid.v1.common.retry": { keyed: true } }, I: UpdateRoleRequest, O: UpdateRoleResponse },
4681
- { name: "DeleteRole", idempotency: "IDEMPOTENT", options: { "google.api.http": { delete: "/v1/authz/roles/{id}" }, "sid.v1.common.retry": { keyed: true } }, I: DeleteRoleRequest, O: DeleteRoleResponse },
4657
+ { name: "GetRole", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { get: "/v1/authz/roles/{id.value}" } }, I: GetRoleRequest, O: GetRoleResponse },
4658
+ { name: "UpdateRole", idempotency: "IDEMPOTENT", options: { "google.api.http": { patch: "/v1/authz/roles/{id.value}", body: "*" }, "sid.v1.common.retry": { keyed: true } }, I: UpdateRoleRequest, O: UpdateRoleResponse },
4659
+ { name: "DeleteRole", idempotency: "IDEMPOTENT", options: { "google.api.http": { delete: "/v1/authz/roles/{id.value}" }, "sid.v1.common.retry": { keyed: true } }, I: DeleteRoleRequest, O: DeleteRoleResponse },
4682
4660
  { name: "ListRoles", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { get: "/v1/authz/roles" } }, I: ListRolesRequest, O: ListRolesResponse },
4683
4661
  { name: "AssignRole", idempotency: "IDEMPOTENT", options: { "google.api.http": { post: "/v1/authz/assignments", body: "*" }, "sid.v1.common.retry": { keyed: true } }, I: AssignRoleRequest, O: AssignRoleResponse },
4684
- { name: "RevokeRole", idempotency: "IDEMPOTENT", options: { "google.api.http": { delete: "/v1/authz/assignments/{assignment_id}" }, "sid.v1.common.retry": { keyed: true } }, I: RevokeRoleRequest, O: RevokeRoleResponse },
4662
+ { name: "RevokeRole", idempotency: "IDEMPOTENT", options: { "google.api.http": { delete: "/v1/authz/assignments/{assignment_id.value}" }, "sid.v1.common.retry": { keyed: true } }, I: RevokeRoleRequest, O: RevokeRoleResponse },
4685
4663
  { name: "ListRoleAssignments", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { get: "/v1/authz/assignments" } }, I: ListRoleAssignmentsRequest, O: ListRoleAssignmentsResponse },
4686
4664
  { name: "CreateGroup", idempotency: "IDEMPOTENT", options: { "google.api.http": { post: "/v1/authz/groups", body: "*" }, "sid.v1.common.retry": { keyed: true } }, I: CreateGroupRequest, O: CreateGroupResponse },
4687
- { name: "GetGroup", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { get: "/v1/authz/groups/{id}" } }, I: GetGroupRequest, O: GetGroupResponse },
4688
- { name: "UpdateGroup", idempotency: "IDEMPOTENT", options: { "google.api.http": { patch: "/v1/authz/groups/{id}", body: "*" }, "sid.v1.common.retry": { keyed: true } }, I: UpdateGroupRequest, O: UpdateGroupResponse },
4689
- { name: "DeleteGroup", idempotency: "IDEMPOTENT", options: { "google.api.http": { delete: "/v1/authz/groups/{id}" }, "sid.v1.common.retry": { keyed: true } }, I: DeleteGroupRequest, O: DeleteGroupResponse },
4665
+ { name: "GetGroup", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { get: "/v1/authz/groups/{id.value}" } }, I: GetGroupRequest, O: GetGroupResponse },
4666
+ { name: "UpdateGroup", idempotency: "IDEMPOTENT", options: { "google.api.http": { patch: "/v1/authz/groups/{id.value}", body: "*" }, "sid.v1.common.retry": { keyed: true } }, I: UpdateGroupRequest, O: UpdateGroupResponse },
4667
+ { name: "DeleteGroup", idempotency: "IDEMPOTENT", options: { "google.api.http": { delete: "/v1/authz/groups/{id.value}" }, "sid.v1.common.retry": { keyed: true } }, I: DeleteGroupRequest, O: DeleteGroupResponse },
4690
4668
  { name: "ListGroups", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { get: "/v1/authz/groups" } }, I: ListGroupsRequest, O: ListGroupsResponse },
4691
- { name: "AddToGroup", idempotency: "IDEMPOTENT", options: { "google.api.http": { post: "/v1/authz/groups/{group_id}/members", body: "*" }, "sid.v1.common.retry": { keyed: true } }, I: AddToGroupRequest, O: AddToGroupResponse },
4692
- { name: "RemoveFromGroup", idempotency: "IDEMPOTENT", options: { "google.api.http": { delete: "/v1/authz/groups/{group_id}/members/{profile_id}" }, "sid.v1.common.retry": { keyed: true } }, I: RemoveFromGroupRequest, O: RemoveFromGroupResponse },
4693
- { name: "ListGroupMembers", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { get: "/v1/authz/groups/{group_id}/members" } }, I: ListGroupMembersRequest, O: ListGroupMembersResponse },
4669
+ { name: "AddToGroup", idempotency: "IDEMPOTENT", options: { "google.api.http": { post: "/v1/authz/groups/{group_id.value}/members", body: "*" }, "sid.v1.common.retry": { keyed: true } }, I: AddToGroupRequest, O: AddToGroupResponse },
4670
+ { name: "RemoveFromGroup", idempotency: "IDEMPOTENT", options: { "google.api.http": { delete: "/v1/authz/groups/{group_id.value}/members/{profile_id.value}" }, "sid.v1.common.retry": { keyed: true } }, I: RemoveFromGroupRequest, O: RemoveFromGroupResponse },
4671
+ { name: "ListGroupMembers", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { get: "/v1/authz/groups/{group_id.value}/members" } }, I: ListGroupMembersRequest, O: ListGroupMembersResponse },
4694
4672
  { name: "CreatePolicy", idempotency: "IDEMPOTENT", options: { "google.api.http": { post: "/v1/authz/policies", body: "*" }, "sid.v1.common.retry": { keyed: true } }, I: CreatePolicyRequest, O: CreatePolicyResponse },
4695
- { name: "GetPolicy", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { get: "/v1/authz/policies/{id}" } }, I: GetPolicyRequest, O: GetPolicyResponse },
4696
- { name: "UpdatePolicy", idempotency: "IDEMPOTENT", options: { "google.api.http": { patch: "/v1/authz/policies/{id}", body: "*" }, "sid.v1.common.retry": { keyed: true } }, I: UpdatePolicyRequest, O: UpdatePolicyResponse },
4697
- { name: "DeletePolicy", idempotency: "IDEMPOTENT", options: { "google.api.http": { delete: "/v1/authz/policies/{id}" }, "sid.v1.common.retry": { keyed: true } }, I: DeletePolicyRequest, O: DeletePolicyResponse },
4673
+ { name: "GetPolicy", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { get: "/v1/authz/policies/{id.value}" } }, I: GetPolicyRequest, O: GetPolicyResponse },
4674
+ { name: "UpdatePolicy", idempotency: "IDEMPOTENT", options: { "google.api.http": { patch: "/v1/authz/policies/{id.value}", body: "*" }, "sid.v1.common.retry": { keyed: true } }, I: UpdatePolicyRequest, O: UpdatePolicyResponse },
4675
+ { name: "DeletePolicy", idempotency: "IDEMPOTENT", options: { "google.api.http": { delete: "/v1/authz/policies/{id.value}" }, "sid.v1.common.retry": { keyed: true } }, I: DeletePolicyRequest, O: DeletePolicyResponse },
4698
4676
  { name: "ListPolicies", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { get: "/v1/authz/policies" } }, I: ListPoliciesRequest, O: ListPoliciesResponse },
4699
4677
  { name: "EvaluatePolicy", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { post: "/v1/authz/policies/evaluate", body: "*" } }, I: EvaluatePolicyRequest, O: EvaluatePolicyResponse },
4700
4678
  { name: "ValidatePolicy", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { post: "/v1/authz/policies/validate", body: "*" } }, I: ValidatePolicyRequest, O: ValidatePolicyResponse },