@structured-id/proto 0.13.0 → 0.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/dist/generated/sid/v1/account/account.d.ts +8 -8
- package/dist/generated/sid/v1/account/account.js +34 -34
- package/dist/generated/sid/v1/account/account.js.map +1 -1
- package/dist/generated/sid/v1/admin/enrollment.d.ts +1 -1
- package/dist/generated/sid/v1/admin/enrollment.js +4 -4
- package/dist/generated/sid/v1/admin/enrollment.js.map +1 -1
- package/dist/generated/sid/v1/admin/operations.d.ts +8 -8
- package/dist/generated/sid/v1/admin/operations.js +32 -32
- package/dist/generated/sid/v1/admin/operations.js.map +1 -1
- package/dist/generated/sid/v1/admin/organizations.d.ts +4 -4
- package/dist/generated/sid/v1/admin/organizations.js +16 -16
- package/dist/generated/sid/v1/admin/organizations.js.map +1 -1
- package/dist/generated/sid/v1/admin/provisioning.d.ts +3 -3
- package/dist/generated/sid/v1/admin/provisioning.js +13 -13
- package/dist/generated/sid/v1/admin/provisioning.js.map +1 -1
- package/dist/generated/sid/v1/authn/auth.d.ts +94 -84
- package/dist/generated/sid/v1/authn/auth.js +315 -315
- package/dist/generated/sid/v1/authn/auth.js.map +1 -1
- package/dist/generated/sid/v1/authn/flows.d.ts +1 -1
- package/dist/generated/sid/v1/authn/flows.js +4 -4
- package/dist/generated/sid/v1/authn/flows.js.map +1 -1
- package/dist/generated/sid/v1/authn/native_session.d.ts +1 -1
- package/dist/generated/sid/v1/authn/native_session.js +5 -5
- package/dist/generated/sid/v1/authn/native_session.js.map +1 -1
- package/dist/generated/sid/v1/authn/password_history.d.ts +8 -8
- package/dist/generated/sid/v1/authn/password_history.js +35 -35
- package/dist/generated/sid/v1/authn/password_history.js.map +1 -1
- package/dist/generated/sid/v1/authz/authz.d.ts +30 -30
- package/dist/generated/sid/v1/authz/authz.js +113 -113
- package/dist/generated/sid/v1/authz/authz.js.map +1 -1
- package/dist/generated/sid/v1/common/operation.d.ts +3 -3
- package/dist/generated/sid/v1/common/operation.js +13 -13
- package/dist/generated/sid/v1/common/operation.js.map +1 -1
- package/dist/generated/sid/v1/federation/upstream.d.ts +16 -12
- package/dist/generated/sid/v1/federation/upstream.js +48 -48
- package/dist/generated/sid/v1/federation/upstream.js.map +1 -1
- package/dist/generated/sid/v1/identity/identity.d.ts +85 -85
- package/dist/generated/sid/v1/identity/identity.js +367 -367
- package/dist/generated/sid/v1/identity/identity.js.map +1 -1
- package/dist/generated/sid/v1/ids/ids.d.ts +12 -0
- package/dist/generated/sid/v1/ids/ids.js +6 -0
- package/dist/generated/sid/v1/ids/ids.js.map +1 -1
- package/dist/generated/sid/v1/machine/machine_user.d.ts +22 -15
- package/dist/generated/sid/v1/machine/machine_user.js +60 -60
- package/dist/generated/sid/v1/machine/machine_user.js.map +1 -1
- package/package.json +5 -5
|
@@ -408,13 +408,13 @@ class RoleAssignment$Type extends MessageType {
|
|
|
408
408
|
{ no: 1, name: "id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
409
409
|
{ no: 2, name: "profile_id", kind: "scalar", oneof: "principal", T: 9 /*ScalarType.STRING*/ },
|
|
410
410
|
{ no: 3, name: "group_id", kind: "scalar", oneof: "principal", T: 9 /*ScalarType.STRING*/ },
|
|
411
|
-
{ no:
|
|
412
|
-
{ no:
|
|
413
|
-
{ no:
|
|
414
|
-
{ no:
|
|
415
|
-
{ no:
|
|
416
|
-
{ no:
|
|
417
|
-
{ no:
|
|
411
|
+
{ no: 4, name: "machine_user_id", kind: "scalar", oneof: "principal", T: 9 /*ScalarType.STRING*/ },
|
|
412
|
+
{ no: 5, name: "oauth_client_id", kind: "scalar", oneof: "principal", T: 9 /*ScalarType.STRING*/ },
|
|
413
|
+
{ no: 6, name: "provisioning_connector_id", kind: "message", oneof: "principal", T: () => ProvisioningConnectorId },
|
|
414
|
+
{ no: 7, name: "role_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
415
|
+
{ no: 8, name: "scope", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
416
|
+
{ no: 9, name: "expires_at", kind: "message", T: () => Timestamp },
|
|
417
|
+
{ no: 10, name: "created_at", kind: "message", T: () => Timestamp },
|
|
418
418
|
{ no: 11, name: "admin", kind: "message", T: () => AdminEnvelope },
|
|
419
419
|
{ no: 12, name: "provenance", kind: "message", T: () => AssignmentProvenance },
|
|
420
420
|
{ no: 13, name: "policy_admin", kind: "message", T: () => PolicyAuthority }
|
|
@@ -449,34 +449,34 @@ class RoleAssignment$Type extends MessageType {
|
|
|
449
449
|
groupId: reader.string()
|
|
450
450
|
};
|
|
451
451
|
break;
|
|
452
|
-
case /* string machine_user_id */
|
|
452
|
+
case /* string machine_user_id */ 4:
|
|
453
453
|
message.principal = {
|
|
454
454
|
oneofKind: "machineUserId",
|
|
455
455
|
machineUserId: reader.string()
|
|
456
456
|
};
|
|
457
457
|
break;
|
|
458
|
-
case /* string oauth_client_id */
|
|
458
|
+
case /* string oauth_client_id */ 5:
|
|
459
459
|
message.principal = {
|
|
460
460
|
oneofKind: "oauthClientId",
|
|
461
461
|
oauthClientId: reader.string()
|
|
462
462
|
};
|
|
463
463
|
break;
|
|
464
|
-
case /* sid.v1.ids.ProvisioningConnectorId provisioning_connector_id */
|
|
464
|
+
case /* sid.v1.ids.ProvisioningConnectorId provisioning_connector_id */ 6:
|
|
465
465
|
message.principal = {
|
|
466
466
|
oneofKind: "provisioningConnectorId",
|
|
467
467
|
provisioningConnectorId: ProvisioningConnectorId.internalBinaryRead(reader, reader.uint32(), options, message.principal.provisioningConnectorId)
|
|
468
468
|
};
|
|
469
469
|
break;
|
|
470
|
-
case /* string role_id */
|
|
470
|
+
case /* string role_id */ 7:
|
|
471
471
|
message.roleId = reader.string();
|
|
472
472
|
break;
|
|
473
|
-
case /* optional string scope */
|
|
473
|
+
case /* optional string scope */ 8:
|
|
474
474
|
message.scope = reader.string();
|
|
475
475
|
break;
|
|
476
|
-
case /* optional google.protobuf.Timestamp expires_at */
|
|
476
|
+
case /* optional google.protobuf.Timestamp expires_at */ 9:
|
|
477
477
|
message.expiresAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.expiresAt);
|
|
478
478
|
break;
|
|
479
|
-
case /* google.protobuf.Timestamp created_at */
|
|
479
|
+
case /* google.protobuf.Timestamp created_at */ 10:
|
|
480
480
|
message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
|
|
481
481
|
break;
|
|
482
482
|
case /* optional sid.v1.authz.AdminEnvelope admin */ 11:
|
|
@@ -509,27 +509,27 @@ class RoleAssignment$Type extends MessageType {
|
|
|
509
509
|
/* string group_id = 3; */
|
|
510
510
|
if (message.principal.oneofKind === "groupId")
|
|
511
511
|
writer.tag(3, WireType.LengthDelimited).string(message.principal.groupId);
|
|
512
|
-
/* string
|
|
512
|
+
/* string machine_user_id = 4; */
|
|
513
|
+
if (message.principal.oneofKind === "machineUserId")
|
|
514
|
+
writer.tag(4, WireType.LengthDelimited).string(message.principal.machineUserId);
|
|
515
|
+
/* string oauth_client_id = 5; */
|
|
516
|
+
if (message.principal.oneofKind === "oauthClientId")
|
|
517
|
+
writer.tag(5, WireType.LengthDelimited).string(message.principal.oauthClientId);
|
|
518
|
+
/* sid.v1.ids.ProvisioningConnectorId provisioning_connector_id = 6; */
|
|
519
|
+
if (message.principal.oneofKind === "provisioningConnectorId")
|
|
520
|
+
ProvisioningConnectorId.internalBinaryWrite(message.principal.provisioningConnectorId, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
|
521
|
+
/* string role_id = 7; */
|
|
513
522
|
if (message.roleId !== "")
|
|
514
|
-
writer.tag(
|
|
515
|
-
/* optional string scope =
|
|
523
|
+
writer.tag(7, WireType.LengthDelimited).string(message.roleId);
|
|
524
|
+
/* optional string scope = 8; */
|
|
516
525
|
if (message.scope !== undefined)
|
|
517
|
-
writer.tag(
|
|
518
|
-
/* optional google.protobuf.Timestamp expires_at =
|
|
526
|
+
writer.tag(8, WireType.LengthDelimited).string(message.scope);
|
|
527
|
+
/* optional google.protobuf.Timestamp expires_at = 9; */
|
|
519
528
|
if (message.expiresAt)
|
|
520
|
-
Timestamp.internalBinaryWrite(message.expiresAt, writer.tag(
|
|
521
|
-
/* google.protobuf.Timestamp created_at =
|
|
529
|
+
Timestamp.internalBinaryWrite(message.expiresAt, writer.tag(9, WireType.LengthDelimited).fork(), options).join();
|
|
530
|
+
/* google.protobuf.Timestamp created_at = 10; */
|
|
522
531
|
if (message.createdAt)
|
|
523
|
-
Timestamp.internalBinaryWrite(message.createdAt, writer.tag(
|
|
524
|
-
/* string machine_user_id = 8; */
|
|
525
|
-
if (message.principal.oneofKind === "machineUserId")
|
|
526
|
-
writer.tag(8, WireType.LengthDelimited).string(message.principal.machineUserId);
|
|
527
|
-
/* string oauth_client_id = 9; */
|
|
528
|
-
if (message.principal.oneofKind === "oauthClientId")
|
|
529
|
-
writer.tag(9, WireType.LengthDelimited).string(message.principal.oauthClientId);
|
|
530
|
-
/* sid.v1.ids.ProvisioningConnectorId provisioning_connector_id = 10; */
|
|
531
|
-
if (message.principal.oneofKind === "provisioningConnectorId")
|
|
532
|
-
ProvisioningConnectorId.internalBinaryWrite(message.principal.provisioningConnectorId, writer.tag(10, WireType.LengthDelimited).fork(), options).join();
|
|
532
|
+
Timestamp.internalBinaryWrite(message.createdAt, writer.tag(10, WireType.LengthDelimited).fork(), options).join();
|
|
533
533
|
/* optional sid.v1.authz.AdminEnvelope admin = 11; */
|
|
534
534
|
if (message.admin)
|
|
535
535
|
AdminEnvelope.internalBinaryWrite(message.admin, writer.tag(11, WireType.LengthDelimited).fork(), options).join();
|
|
@@ -849,7 +849,7 @@ class Policy$Type extends MessageType {
|
|
|
849
849
|
constructor() {
|
|
850
850
|
super("sid.v1.authz.Policy", [
|
|
851
851
|
{ no: 1, name: "id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
852
|
-
{ no:
|
|
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*/ },
|
|
855
855
|
{ no: 5, name: "policy_text", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
@@ -857,7 +857,7 @@ class Policy$Type extends MessageType {
|
|
|
857
857
|
{ no: 7, name: "enabled", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
858
858
|
{ no: 8, name: "created_at", kind: "message", T: () => Timestamp },
|
|
859
859
|
{ no: 9, name: "updated_at", kind: "message", T: () => Timestamp },
|
|
860
|
-
{ no:
|
|
860
|
+
{ no: 10, name: "revision", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ }
|
|
861
861
|
]);
|
|
862
862
|
}
|
|
863
863
|
create(value) {
|
|
@@ -880,7 +880,7 @@ class Policy$Type extends MessageType {
|
|
|
880
880
|
case /* string id */ 1:
|
|
881
881
|
message.id = reader.string();
|
|
882
882
|
break;
|
|
883
|
-
case /* sid.v1.authz.PolicyScope scope */
|
|
883
|
+
case /* sid.v1.authz.PolicyScope scope */ 2:
|
|
884
884
|
message.scope = PolicyScope.internalBinaryRead(reader, reader.uint32(), options, message.scope);
|
|
885
885
|
break;
|
|
886
886
|
case /* string name */ 3:
|
|
@@ -904,7 +904,7 @@ class Policy$Type extends MessageType {
|
|
|
904
904
|
case /* google.protobuf.Timestamp updated_at */ 9:
|
|
905
905
|
message.updatedAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.updatedAt);
|
|
906
906
|
break;
|
|
907
|
-
case /* uint64 revision */
|
|
907
|
+
case /* uint64 revision */ 10:
|
|
908
908
|
message.revision = reader.uint64().toBigInt();
|
|
909
909
|
break;
|
|
910
910
|
default:
|
|
@@ -922,6 +922,9 @@ class Policy$Type extends MessageType {
|
|
|
922
922
|
/* string id = 1; */
|
|
923
923
|
if (message.id !== "")
|
|
924
924
|
writer.tag(1, WireType.LengthDelimited).string(message.id);
|
|
925
|
+
/* sid.v1.authz.PolicyScope scope = 2; */
|
|
926
|
+
if (message.scope)
|
|
927
|
+
PolicyScope.internalBinaryWrite(message.scope, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
925
928
|
/* string name = 3; */
|
|
926
929
|
if (message.name !== "")
|
|
927
930
|
writer.tag(3, WireType.LengthDelimited).string(message.name);
|
|
@@ -943,12 +946,9 @@ class Policy$Type extends MessageType {
|
|
|
943
946
|
/* google.protobuf.Timestamp updated_at = 9; */
|
|
944
947
|
if (message.updatedAt)
|
|
945
948
|
Timestamp.internalBinaryWrite(message.updatedAt, writer.tag(9, WireType.LengthDelimited).fork(), options).join();
|
|
946
|
-
/*
|
|
947
|
-
if (message.scope)
|
|
948
|
-
PolicyScope.internalBinaryWrite(message.scope, writer.tag(10, WireType.LengthDelimited).fork(), options).join();
|
|
949
|
-
/* uint64 revision = 11; */
|
|
949
|
+
/* uint64 revision = 10; */
|
|
950
950
|
if (message.revision !== 0n)
|
|
951
|
-
writer.tag(
|
|
951
|
+
writer.tag(10, WireType.Varint).uint64(message.revision);
|
|
952
952
|
let u = options.writeUnknownFields;
|
|
953
953
|
if (u !== false)
|
|
954
954
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -963,12 +963,12 @@ export const Policy = new Policy$Type();
|
|
|
963
963
|
class CheckPermissionRequest$Type extends MessageType {
|
|
964
964
|
constructor() {
|
|
965
965
|
super("sid.v1.authz.CheckPermissionRequest", [
|
|
966
|
-
{ no:
|
|
967
|
-
{ no:
|
|
968
|
-
{ no:
|
|
969
|
-
{ no:
|
|
970
|
-
{ no:
|
|
971
|
-
{ no:
|
|
966
|
+
{ no: 1, name: "action", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
967
|
+
{ no: 2, name: "consistency", kind: "enum", T: () => ["sid.v1.authz.Consistency", Consistency, "CONSISTENCY_"] },
|
|
968
|
+
{ no: 3, name: "target", kind: "message", T: () => PermissionTarget },
|
|
969
|
+
{ no: 4, name: "request", kind: "message", oneof: "evaluation", T: () => RequestEvaluation },
|
|
970
|
+
{ no: 5, name: "named_subject", kind: "message", oneof: "evaluation", T: () => SubjectReference },
|
|
971
|
+
{ no: 6, name: "self", kind: "message", oneof: "evaluation", T: () => SelfEvaluation }
|
|
972
972
|
]);
|
|
973
973
|
}
|
|
974
974
|
create(value) {
|
|
@@ -985,28 +985,28 @@ class CheckPermissionRequest$Type extends MessageType {
|
|
|
985
985
|
while (reader.pos < end) {
|
|
986
986
|
let [fieldNo, wireType] = reader.tag();
|
|
987
987
|
switch (fieldNo) {
|
|
988
|
-
case /* string action */
|
|
988
|
+
case /* string action */ 1:
|
|
989
989
|
message.action = reader.string();
|
|
990
990
|
break;
|
|
991
|
-
case /* sid.v1.authz.Consistency consistency */
|
|
991
|
+
case /* sid.v1.authz.Consistency consistency */ 2:
|
|
992
992
|
message.consistency = reader.int32();
|
|
993
993
|
break;
|
|
994
|
-
case /* sid.v1.authz.PermissionTarget target */
|
|
994
|
+
case /* sid.v1.authz.PermissionTarget target */ 3:
|
|
995
995
|
message.target = PermissionTarget.internalBinaryRead(reader, reader.uint32(), options, message.target);
|
|
996
996
|
break;
|
|
997
|
-
case /* sid.v1.authz.RequestEvaluation request */
|
|
997
|
+
case /* sid.v1.authz.RequestEvaluation request */ 4:
|
|
998
998
|
message.evaluation = {
|
|
999
999
|
oneofKind: "request",
|
|
1000
1000
|
request: RequestEvaluation.internalBinaryRead(reader, reader.uint32(), options, message.evaluation.request)
|
|
1001
1001
|
};
|
|
1002
1002
|
break;
|
|
1003
|
-
case /* sid.v1.authz.SubjectReference named_subject */
|
|
1003
|
+
case /* sid.v1.authz.SubjectReference named_subject */ 5:
|
|
1004
1004
|
message.evaluation = {
|
|
1005
1005
|
oneofKind: "namedSubject",
|
|
1006
1006
|
namedSubject: SubjectReference.internalBinaryRead(reader, reader.uint32(), options, message.evaluation.namedSubject)
|
|
1007
1007
|
};
|
|
1008
1008
|
break;
|
|
1009
|
-
case /* sid.v1.authz.SelfEvaluation self */
|
|
1009
|
+
case /* sid.v1.authz.SelfEvaluation self */ 6:
|
|
1010
1010
|
message.evaluation = {
|
|
1011
1011
|
oneofKind: "self",
|
|
1012
1012
|
self: SelfEvaluation.internalBinaryRead(reader, reader.uint32(), options, message.evaluation.self)
|
|
@@ -1024,24 +1024,24 @@ class CheckPermissionRequest$Type extends MessageType {
|
|
|
1024
1024
|
return message;
|
|
1025
1025
|
}
|
|
1026
1026
|
internalBinaryWrite(message, writer, options) {
|
|
1027
|
-
/* string action =
|
|
1027
|
+
/* string action = 1; */
|
|
1028
1028
|
if (message.action !== "")
|
|
1029
|
-
writer.tag(
|
|
1030
|
-
/* sid.v1.authz.Consistency consistency =
|
|
1029
|
+
writer.tag(1, WireType.LengthDelimited).string(message.action);
|
|
1030
|
+
/* sid.v1.authz.Consistency consistency = 2; */
|
|
1031
1031
|
if (message.consistency !== 0)
|
|
1032
|
-
writer.tag(
|
|
1033
|
-
/* sid.v1.authz.PermissionTarget target =
|
|
1032
|
+
writer.tag(2, WireType.Varint).int32(message.consistency);
|
|
1033
|
+
/* sid.v1.authz.PermissionTarget target = 3; */
|
|
1034
1034
|
if (message.target)
|
|
1035
|
-
PermissionTarget.internalBinaryWrite(message.target, writer.tag(
|
|
1036
|
-
/* sid.v1.authz.RequestEvaluation request =
|
|
1035
|
+
PermissionTarget.internalBinaryWrite(message.target, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
1036
|
+
/* sid.v1.authz.RequestEvaluation request = 4; */
|
|
1037
1037
|
if (message.evaluation.oneofKind === "request")
|
|
1038
|
-
RequestEvaluation.internalBinaryWrite(message.evaluation.request, writer.tag(
|
|
1039
|
-
/* sid.v1.authz.SubjectReference named_subject =
|
|
1038
|
+
RequestEvaluation.internalBinaryWrite(message.evaluation.request, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
1039
|
+
/* sid.v1.authz.SubjectReference named_subject = 5; */
|
|
1040
1040
|
if (message.evaluation.oneofKind === "namedSubject")
|
|
1041
|
-
SubjectReference.internalBinaryWrite(message.evaluation.namedSubject, writer.tag(
|
|
1042
|
-
/* sid.v1.authz.SelfEvaluation self =
|
|
1041
|
+
SubjectReference.internalBinaryWrite(message.evaluation.namedSubject, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
|
1042
|
+
/* sid.v1.authz.SelfEvaluation self = 6; */
|
|
1043
1043
|
if (message.evaluation.oneofKind === "self")
|
|
1044
|
-
SelfEvaluation.internalBinaryWrite(message.evaluation.self, writer.tag(
|
|
1044
|
+
SelfEvaluation.internalBinaryWrite(message.evaluation.self, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
|
1045
1045
|
let u = options.writeUnknownFields;
|
|
1046
1046
|
if (u !== false)
|
|
1047
1047
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -1341,9 +1341,9 @@ export const SelfEvaluation = new SelfEvaluation$Type();
|
|
|
1341
1341
|
class CheckPermissionResponse$Type extends MessageType {
|
|
1342
1342
|
constructor() {
|
|
1343
1343
|
super("sid.v1.authz.CheckPermissionResponse", [
|
|
1344
|
+
{ no: 1, name: "outcome", kind: "enum", T: () => ["sid.v1.authz.PermissionOutcome", PermissionOutcome, "PERMISSION_OUTCOME_"] },
|
|
1344
1345
|
{ no: 2, name: "reason", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
1345
|
-
{ no: 3, name: "zookie", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }
|
|
1346
|
-
{ no: 4, name: "outcome", kind: "enum", T: () => ["sid.v1.authz.PermissionOutcome", PermissionOutcome, "PERMISSION_OUTCOME_"] }
|
|
1346
|
+
{ no: 3, name: "zookie", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }
|
|
1347
1347
|
]);
|
|
1348
1348
|
}
|
|
1349
1349
|
create(value) {
|
|
@@ -1358,15 +1358,15 @@ class CheckPermissionResponse$Type extends MessageType {
|
|
|
1358
1358
|
while (reader.pos < end) {
|
|
1359
1359
|
let [fieldNo, wireType] = reader.tag();
|
|
1360
1360
|
switch (fieldNo) {
|
|
1361
|
+
case /* sid.v1.authz.PermissionOutcome outcome */ 1:
|
|
1362
|
+
message.outcome = reader.int32();
|
|
1363
|
+
break;
|
|
1361
1364
|
case /* optional string reason */ 2:
|
|
1362
1365
|
message.reason = reader.string();
|
|
1363
1366
|
break;
|
|
1364
1367
|
case /* optional string zookie */ 3:
|
|
1365
1368
|
message.zookie = reader.string();
|
|
1366
1369
|
break;
|
|
1367
|
-
case /* sid.v1.authz.PermissionOutcome outcome */ 4:
|
|
1368
|
-
message.outcome = reader.int32();
|
|
1369
|
-
break;
|
|
1370
1370
|
default:
|
|
1371
1371
|
let u = options.readUnknownField;
|
|
1372
1372
|
if (u === "throw")
|
|
@@ -1379,15 +1379,15 @@ class CheckPermissionResponse$Type extends MessageType {
|
|
|
1379
1379
|
return message;
|
|
1380
1380
|
}
|
|
1381
1381
|
internalBinaryWrite(message, writer, options) {
|
|
1382
|
+
/* sid.v1.authz.PermissionOutcome outcome = 1; */
|
|
1383
|
+
if (message.outcome !== 0)
|
|
1384
|
+
writer.tag(1, WireType.Varint).int32(message.outcome);
|
|
1382
1385
|
/* optional string reason = 2; */
|
|
1383
1386
|
if (message.reason !== undefined)
|
|
1384
1387
|
writer.tag(2, WireType.LengthDelimited).string(message.reason);
|
|
1385
1388
|
/* optional string zookie = 3; */
|
|
1386
1389
|
if (message.zookie !== undefined)
|
|
1387
1390
|
writer.tag(3, WireType.LengthDelimited).string(message.zookie);
|
|
1388
|
-
/* sid.v1.authz.PermissionOutcome outcome = 4; */
|
|
1389
|
-
if (message.outcome !== 0)
|
|
1390
|
-
writer.tag(4, WireType.Varint).int32(message.outcome);
|
|
1391
1391
|
let u = options.writeUnknownFields;
|
|
1392
1392
|
if (u !== false)
|
|
1393
1393
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -2038,12 +2038,12 @@ class AssignRoleRequest$Type extends MessageType {
|
|
|
2038
2038
|
super("sid.v1.authz.AssignRoleRequest", [
|
|
2039
2039
|
{ no: 1, name: "profile_id", kind: "scalar", oneof: "principal", T: 9 /*ScalarType.STRING*/ },
|
|
2040
2040
|
{ no: 2, name: "group_id", kind: "scalar", oneof: "principal", T: 9 /*ScalarType.STRING*/ },
|
|
2041
|
-
{ no:
|
|
2042
|
-
{ no:
|
|
2043
|
-
{ no:
|
|
2044
|
-
{ no:
|
|
2045
|
-
{ no:
|
|
2046
|
-
{ no:
|
|
2041
|
+
{ no: 3, name: "machine_user_id", kind: "scalar", oneof: "principal", T: 9 /*ScalarType.STRING*/ },
|
|
2042
|
+
{ no: 4, name: "oauth_client_id", kind: "scalar", oneof: "principal", T: 9 /*ScalarType.STRING*/ },
|
|
2043
|
+
{ no: 5, name: "provisioning_connector_id", kind: "message", oneof: "principal", T: () => ProvisioningConnectorId },
|
|
2044
|
+
{ no: 6, name: "role_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
2045
|
+
{ no: 7, name: "scope", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
2046
|
+
{ no: 8, name: "expires_at", kind: "message", T: () => Timestamp },
|
|
2047
2047
|
{ no: 9, name: "admin", kind: "message", T: () => AdminEnvelope },
|
|
2048
2048
|
{ no: 10, name: "policy_admin", kind: "message", T: () => PolicyAuthority }
|
|
2049
2049
|
]);
|
|
@@ -2073,31 +2073,31 @@ class AssignRoleRequest$Type extends MessageType {
|
|
|
2073
2073
|
groupId: reader.string()
|
|
2074
2074
|
};
|
|
2075
2075
|
break;
|
|
2076
|
-
case /* string machine_user_id */
|
|
2076
|
+
case /* string machine_user_id */ 3:
|
|
2077
2077
|
message.principal = {
|
|
2078
2078
|
oneofKind: "machineUserId",
|
|
2079
2079
|
machineUserId: reader.string()
|
|
2080
2080
|
};
|
|
2081
2081
|
break;
|
|
2082
|
-
case /* string oauth_client_id */
|
|
2082
|
+
case /* string oauth_client_id */ 4:
|
|
2083
2083
|
message.principal = {
|
|
2084
2084
|
oneofKind: "oauthClientId",
|
|
2085
2085
|
oauthClientId: reader.string()
|
|
2086
2086
|
};
|
|
2087
2087
|
break;
|
|
2088
|
-
case /* sid.v1.ids.ProvisioningConnectorId provisioning_connector_id */
|
|
2088
|
+
case /* sid.v1.ids.ProvisioningConnectorId provisioning_connector_id */ 5:
|
|
2089
2089
|
message.principal = {
|
|
2090
2090
|
oneofKind: "provisioningConnectorId",
|
|
2091
2091
|
provisioningConnectorId: ProvisioningConnectorId.internalBinaryRead(reader, reader.uint32(), options, message.principal.provisioningConnectorId)
|
|
2092
2092
|
};
|
|
2093
2093
|
break;
|
|
2094
|
-
case /* string role_id */
|
|
2094
|
+
case /* string role_id */ 6:
|
|
2095
2095
|
message.roleId = reader.string();
|
|
2096
2096
|
break;
|
|
2097
|
-
case /* optional string scope */
|
|
2097
|
+
case /* optional string scope */ 7:
|
|
2098
2098
|
message.scope = reader.string();
|
|
2099
2099
|
break;
|
|
2100
|
-
case /* optional google.protobuf.Timestamp expires_at */
|
|
2100
|
+
case /* optional google.protobuf.Timestamp expires_at */ 8:
|
|
2101
2101
|
message.expiresAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.expiresAt);
|
|
2102
2102
|
break;
|
|
2103
2103
|
case /* optional sid.v1.authz.AdminEnvelope admin */ 9:
|
|
@@ -2124,24 +2124,24 @@ class AssignRoleRequest$Type extends MessageType {
|
|
|
2124
2124
|
/* string group_id = 2; */
|
|
2125
2125
|
if (message.principal.oneofKind === "groupId")
|
|
2126
2126
|
writer.tag(2, WireType.LengthDelimited).string(message.principal.groupId);
|
|
2127
|
-
/* string
|
|
2128
|
-
if (message.roleId !== "")
|
|
2129
|
-
writer.tag(3, WireType.LengthDelimited).string(message.roleId);
|
|
2130
|
-
/* optional string scope = 4; */
|
|
2131
|
-
if (message.scope !== undefined)
|
|
2132
|
-
writer.tag(4, WireType.LengthDelimited).string(message.scope);
|
|
2133
|
-
/* optional google.protobuf.Timestamp expires_at = 5; */
|
|
2134
|
-
if (message.expiresAt)
|
|
2135
|
-
Timestamp.internalBinaryWrite(message.expiresAt, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
|
2136
|
-
/* string machine_user_id = 6; */
|
|
2127
|
+
/* string machine_user_id = 3; */
|
|
2137
2128
|
if (message.principal.oneofKind === "machineUserId")
|
|
2138
|
-
writer.tag(
|
|
2139
|
-
/* string oauth_client_id =
|
|
2129
|
+
writer.tag(3, WireType.LengthDelimited).string(message.principal.machineUserId);
|
|
2130
|
+
/* string oauth_client_id = 4; */
|
|
2140
2131
|
if (message.principal.oneofKind === "oauthClientId")
|
|
2141
|
-
writer.tag(
|
|
2142
|
-
/* sid.v1.ids.ProvisioningConnectorId provisioning_connector_id =
|
|
2132
|
+
writer.tag(4, WireType.LengthDelimited).string(message.principal.oauthClientId);
|
|
2133
|
+
/* sid.v1.ids.ProvisioningConnectorId provisioning_connector_id = 5; */
|
|
2143
2134
|
if (message.principal.oneofKind === "provisioningConnectorId")
|
|
2144
|
-
ProvisioningConnectorId.internalBinaryWrite(message.principal.provisioningConnectorId, writer.tag(
|
|
2135
|
+
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);
|
|
2139
|
+
/* optional string scope = 7; */
|
|
2140
|
+
if (message.scope !== undefined)
|
|
2141
|
+
writer.tag(7, WireType.LengthDelimited).string(message.scope);
|
|
2142
|
+
/* optional google.protobuf.Timestamp expires_at = 8; */
|
|
2143
|
+
if (message.expiresAt)
|
|
2144
|
+
Timestamp.internalBinaryWrite(message.expiresAt, writer.tag(8, WireType.LengthDelimited).fork(), options).join();
|
|
2145
2145
|
/* optional sid.v1.authz.AdminEnvelope admin = 9; */
|
|
2146
2146
|
if (message.admin)
|
|
2147
2147
|
AdminEnvelope.internalBinaryWrite(message.admin, writer.tag(9, WireType.LengthDelimited).fork(), options).join();
|
|
@@ -3244,7 +3244,7 @@ export const ListGroupMembersResponse = new ListGroupMembersResponse$Type();
|
|
|
3244
3244
|
class CreatePolicyRequest$Type extends MessageType {
|
|
3245
3245
|
constructor() {
|
|
3246
3246
|
super("sid.v1.authz.CreatePolicyRequest", [
|
|
3247
|
-
{ no:
|
|
3247
|
+
{ no: 1, name: "scope", kind: "message", T: () => PolicyScope },
|
|
3248
3248
|
{ no: 2, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
3249
3249
|
{ no: 3, name: "description", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
3250
3250
|
{ no: 4, name: "policy_text", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
@@ -3267,7 +3267,7 @@ class CreatePolicyRequest$Type extends MessageType {
|
|
|
3267
3267
|
while (reader.pos < end) {
|
|
3268
3268
|
let [fieldNo, wireType] = reader.tag();
|
|
3269
3269
|
switch (fieldNo) {
|
|
3270
|
-
case /* sid.v1.authz.PolicyScope scope */
|
|
3270
|
+
case /* sid.v1.authz.PolicyScope scope */ 1:
|
|
3271
3271
|
message.scope = PolicyScope.internalBinaryRead(reader, reader.uint32(), options, message.scope);
|
|
3272
3272
|
break;
|
|
3273
3273
|
case /* string name */ 2:
|
|
@@ -3297,6 +3297,9 @@ class CreatePolicyRequest$Type extends MessageType {
|
|
|
3297
3297
|
return message;
|
|
3298
3298
|
}
|
|
3299
3299
|
internalBinaryWrite(message, writer, options) {
|
|
3300
|
+
/* sid.v1.authz.PolicyScope scope = 1; */
|
|
3301
|
+
if (message.scope)
|
|
3302
|
+
PolicyScope.internalBinaryWrite(message.scope, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
3300
3303
|
/* string name = 2; */
|
|
3301
3304
|
if (message.name !== "")
|
|
3302
3305
|
writer.tag(2, WireType.LengthDelimited).string(message.name);
|
|
@@ -3312,9 +3315,6 @@ class CreatePolicyRequest$Type extends MessageType {
|
|
|
3312
3315
|
/* bool enabled = 6; */
|
|
3313
3316
|
if (message.enabled !== false)
|
|
3314
3317
|
writer.tag(6, WireType.Varint).bool(message.enabled);
|
|
3315
|
-
/* sid.v1.authz.PolicyScope scope = 7; */
|
|
3316
|
-
if (message.scope)
|
|
3317
|
-
PolicyScope.internalBinaryWrite(message.scope, writer.tag(7, WireType.LengthDelimited).fork(), options).join();
|
|
3318
3318
|
let u = options.writeUnknownFields;
|
|
3319
3319
|
if (u !== false)
|
|
3320
3320
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -3674,7 +3674,7 @@ export const DeletePolicyResponse = new DeletePolicyResponse$Type();
|
|
|
3674
3674
|
class ListPoliciesRequest$Type extends MessageType {
|
|
3675
3675
|
constructor() {
|
|
3676
3676
|
super("sid.v1.authz.ListPoliciesRequest", [
|
|
3677
|
-
{ no:
|
|
3677
|
+
{ no: 1, name: "scope", kind: "message", T: () => PolicyScope },
|
|
3678
3678
|
{ no: 2, name: "page_size", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
|
|
3679
3679
|
{ no: 3, name: "page_token", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
3680
3680
|
]);
|
|
@@ -3692,7 +3692,7 @@ class ListPoliciesRequest$Type extends MessageType {
|
|
|
3692
3692
|
while (reader.pos < end) {
|
|
3693
3693
|
let [fieldNo, wireType] = reader.tag();
|
|
3694
3694
|
switch (fieldNo) {
|
|
3695
|
-
case /* sid.v1.authz.PolicyScope scope */
|
|
3695
|
+
case /* sid.v1.authz.PolicyScope scope */ 1:
|
|
3696
3696
|
message.scope = PolicyScope.internalBinaryRead(reader, reader.uint32(), options, message.scope);
|
|
3697
3697
|
break;
|
|
3698
3698
|
case /* int32 page_size */ 2:
|
|
@@ -3713,15 +3713,15 @@ class ListPoliciesRequest$Type extends MessageType {
|
|
|
3713
3713
|
return message;
|
|
3714
3714
|
}
|
|
3715
3715
|
internalBinaryWrite(message, writer, options) {
|
|
3716
|
+
/* sid.v1.authz.PolicyScope scope = 1; */
|
|
3717
|
+
if (message.scope)
|
|
3718
|
+
PolicyScope.internalBinaryWrite(message.scope, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
3716
3719
|
/* int32 page_size = 2; */
|
|
3717
3720
|
if (message.pageSize !== 0)
|
|
3718
3721
|
writer.tag(2, WireType.Varint).int32(message.pageSize);
|
|
3719
3722
|
/* string page_token = 3; */
|
|
3720
3723
|
if (message.pageToken !== "")
|
|
3721
3724
|
writer.tag(3, WireType.LengthDelimited).string(message.pageToken);
|
|
3722
|
-
/* sid.v1.authz.PolicyScope scope = 4; */
|
|
3723
|
-
if (message.scope)
|
|
3724
|
-
PolicyScope.internalBinaryWrite(message.scope, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
3725
3725
|
let u = options.writeUnknownFields;
|
|
3726
3726
|
if (u !== false)
|
|
3727
3727
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -3795,7 +3795,7 @@ class EvaluatePolicyRequest$Type extends MessageType {
|
|
|
3795
3795
|
{ no: 2, name: "action", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
3796
3796
|
{ no: 3, name: "resource", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
3797
3797
|
{ no: 4, name: "context", kind: "map", K: 9 /*ScalarType.STRING*/, V: { kind: "scalar", T: 9 /*ScalarType.STRING*/ } },
|
|
3798
|
-
{ no:
|
|
3798
|
+
{ no: 5, name: "scope", kind: "message", T: () => PolicyScope }
|
|
3799
3799
|
]);
|
|
3800
3800
|
}
|
|
3801
3801
|
create(value) {
|
|
@@ -3825,7 +3825,7 @@ class EvaluatePolicyRequest$Type extends MessageType {
|
|
|
3825
3825
|
case /* map<string, string> context */ 4:
|
|
3826
3826
|
this.binaryReadMap4(message.context, reader, options);
|
|
3827
3827
|
break;
|
|
3828
|
-
case /* sid.v1.authz.PolicyScope scope */
|
|
3828
|
+
case /* sid.v1.authz.PolicyScope scope */ 5:
|
|
3829
3829
|
message.scope = PolicyScope.internalBinaryRead(reader, reader.uint32(), options, message.scope);
|
|
3830
3830
|
break;
|
|
3831
3831
|
default:
|
|
@@ -3868,9 +3868,9 @@ class EvaluatePolicyRequest$Type extends MessageType {
|
|
|
3868
3868
|
/* map<string, string> context = 4; */
|
|
3869
3869
|
for (let k of globalThis.Object.keys(message.context))
|
|
3870
3870
|
writer.tag(4, WireType.LengthDelimited).fork().tag(1, WireType.LengthDelimited).string(k).tag(2, WireType.LengthDelimited).string(message.context[k]).join();
|
|
3871
|
-
/* sid.v1.authz.PolicyScope scope =
|
|
3871
|
+
/* sid.v1.authz.PolicyScope scope = 5; */
|
|
3872
3872
|
if (message.scope)
|
|
3873
|
-
PolicyScope.internalBinaryWrite(message.scope, writer.tag(
|
|
3873
|
+
PolicyScope.internalBinaryWrite(message.scope, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
|
3874
3874
|
let u = options.writeUnknownFields;
|
|
3875
3875
|
if (u !== false)
|
|
3876
3876
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|