@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.
Files changed (47) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/dist/generated/sid/v1/account/account.d.ts +8 -8
  3. package/dist/generated/sid/v1/account/account.js +34 -34
  4. package/dist/generated/sid/v1/account/account.js.map +1 -1
  5. package/dist/generated/sid/v1/admin/enrollment.d.ts +1 -1
  6. package/dist/generated/sid/v1/admin/enrollment.js +4 -4
  7. package/dist/generated/sid/v1/admin/enrollment.js.map +1 -1
  8. package/dist/generated/sid/v1/admin/operations.d.ts +8 -8
  9. package/dist/generated/sid/v1/admin/operations.js +32 -32
  10. package/dist/generated/sid/v1/admin/operations.js.map +1 -1
  11. package/dist/generated/sid/v1/admin/organizations.d.ts +4 -4
  12. package/dist/generated/sid/v1/admin/organizations.js +16 -16
  13. package/dist/generated/sid/v1/admin/organizations.js.map +1 -1
  14. package/dist/generated/sid/v1/admin/provisioning.d.ts +3 -3
  15. package/dist/generated/sid/v1/admin/provisioning.js +13 -13
  16. package/dist/generated/sid/v1/admin/provisioning.js.map +1 -1
  17. package/dist/generated/sid/v1/authn/auth.d.ts +94 -84
  18. package/dist/generated/sid/v1/authn/auth.js +315 -315
  19. package/dist/generated/sid/v1/authn/auth.js.map +1 -1
  20. package/dist/generated/sid/v1/authn/flows.d.ts +1 -1
  21. package/dist/generated/sid/v1/authn/flows.js +4 -4
  22. package/dist/generated/sid/v1/authn/flows.js.map +1 -1
  23. package/dist/generated/sid/v1/authn/native_session.d.ts +1 -1
  24. package/dist/generated/sid/v1/authn/native_session.js +5 -5
  25. package/dist/generated/sid/v1/authn/native_session.js.map +1 -1
  26. package/dist/generated/sid/v1/authn/password_history.d.ts +8 -8
  27. package/dist/generated/sid/v1/authn/password_history.js +35 -35
  28. package/dist/generated/sid/v1/authn/password_history.js.map +1 -1
  29. package/dist/generated/sid/v1/authz/authz.d.ts +30 -30
  30. package/dist/generated/sid/v1/authz/authz.js +113 -113
  31. package/dist/generated/sid/v1/authz/authz.js.map +1 -1
  32. package/dist/generated/sid/v1/common/operation.d.ts +3 -3
  33. package/dist/generated/sid/v1/common/operation.js +13 -13
  34. package/dist/generated/sid/v1/common/operation.js.map +1 -1
  35. package/dist/generated/sid/v1/federation/upstream.d.ts +16 -12
  36. package/dist/generated/sid/v1/federation/upstream.js +48 -48
  37. package/dist/generated/sid/v1/federation/upstream.js.map +1 -1
  38. package/dist/generated/sid/v1/identity/identity.d.ts +85 -85
  39. package/dist/generated/sid/v1/identity/identity.js +367 -367
  40. package/dist/generated/sid/v1/identity/identity.js.map +1 -1
  41. package/dist/generated/sid/v1/ids/ids.d.ts +12 -0
  42. package/dist/generated/sid/v1/ids/ids.js +6 -0
  43. package/dist/generated/sid/v1/ids/ids.js.map +1 -1
  44. package/dist/generated/sid/v1/machine/machine_user.d.ts +22 -15
  45. package/dist/generated/sid/v1/machine/machine_user.js +60 -60
  46. package/dist/generated/sid/v1/machine/machine_user.js.map +1 -1
  47. package/package.json +5 -5
@@ -44,3 +44,15 @@ export declare const ResourceId: MessageType<wire.ResourceId>;
44
44
  export type ResourceId = wire.ResourceId;
45
45
  export declare const ProvisioningCredentialId: MessageType<wire.ProvisioningCredentialId>;
46
46
  export type ProvisioningCredentialId = wire.ProvisioningCredentialId;
47
+ export declare const ProjectId: MessageType<wire.ProjectId>;
48
+ export type ProjectId = wire.ProjectId;
49
+ export declare const RoleId: MessageType<wire.RoleId>;
50
+ export type RoleId = wire.RoleId;
51
+ export declare const GroupId: MessageType<wire.GroupId>;
52
+ export type GroupId = wire.GroupId;
53
+ export declare const RoleAssignmentId: MessageType<wire.RoleAssignmentId>;
54
+ export type RoleAssignmentId = wire.RoleAssignmentId;
55
+ export declare const CedarPolicyId: MessageType<wire.CedarPolicyId>;
56
+ export type CedarPolicyId = wire.CedarPolicyId;
57
+ export declare const AccessRequestId: MessageType<wire.AccessRequestId>;
58
+ export type AccessRequestId = wire.AccessRequestId;
@@ -21,4 +21,10 @@ export const MachineUserId = wire.MachineUserId;
21
21
  export const ProvisioningConnectorId = wire.ProvisioningConnectorId;
22
22
  export const ResourceId = wire.ResourceId;
23
23
  export const ProvisioningCredentialId = wire.ProvisioningCredentialId;
24
+ export const ProjectId = wire.ProjectId;
25
+ export const RoleId = wire.RoleId;
26
+ export const GroupId = wire.GroupId;
27
+ export const RoleAssignmentId = wire.RoleAssignmentId;
28
+ export const CedarPolicyId = wire.CedarPolicyId;
29
+ export const AccessRequestId = wire.AccessRequestId;
24
30
  //# sourceMappingURL=ids.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ids.js","sourceRoot":"","sources":["../../../../../src/generated/sid/v1/ids/ids.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAE1C,MAAM,CAAC,MAAM,SAAS,GAAgC,IAAI,CAAC,SAAS,CAAC;AAErE,MAAM,CAAC,MAAM,WAAW,GAAkC,IAAI,CAAC,WAAW,CAAC;AAE3E,MAAM,CAAC,MAAM,cAAc,GAAqC,IAAI,CAAC,cAAc,CAAC;AAEpF,MAAM,CAAC,MAAM,cAAc,GAAqC,IAAI,CAAC,cAAc,CAAC;AAEpF,MAAM,CAAC,MAAM,QAAQ,GAA+B,IAAI,CAAC,QAAQ,CAAC;AAElE,MAAM,CAAC,MAAM,SAAS,GAAgC,IAAI,CAAC,SAAS,CAAC;AAErE,MAAM,CAAC,MAAM,KAAK,GAA4B,IAAI,CAAC,KAAK,CAAC;AAEzD,MAAM,CAAC,MAAM,QAAQ,GAA+B,IAAI,CAAC,QAAQ,CAAC;AAElE,MAAM,CAAC,MAAM,aAAa,GAAoC,IAAI,CAAC,aAAa,CAAC;AAEjF,MAAM,CAAC,MAAM,mBAAmB,GAA0C,IAAI,CAAC,mBAAmB,CAAC;AAEnG,MAAM,CAAC,MAAM,aAAa,GAAoC,IAAI,CAAC,aAAa,CAAC;AAEjF,MAAM,CAAC,MAAM,SAAS,GAAgC,IAAI,CAAC,SAAS,CAAC;AAErE,MAAM,CAAC,MAAM,YAAY,GAAmC,IAAI,CAAC,YAAY,CAAC;AAE9E,MAAM,CAAC,MAAM,YAAY,GAAmC,IAAI,CAAC,YAAY,CAAC;AAE9E,MAAM,CAAC,MAAM,WAAW,GAAkC,IAAI,CAAC,WAAW,CAAC;AAE3E,MAAM,CAAC,MAAM,iBAAiB,GAAwC,IAAI,CAAC,iBAAiB,CAAC;AAE7F,MAAM,CAAC,MAAM,cAAc,GAAqC,IAAI,CAAC,cAAc,CAAC;AAEpF,MAAM,CAAC,MAAM,yBAAyB,GAAgD,IAAI,CAAC,yBAAyB,CAAC;AAErH,MAAM,CAAC,MAAM,aAAa,GAAoC,IAAI,CAAC,aAAa,CAAC;AAEjF,MAAM,CAAC,MAAM,uBAAuB,GAA8C,IAAI,CAAC,uBAAuB,CAAC;AAE/G,MAAM,CAAC,MAAM,UAAU,GAAiC,IAAI,CAAC,UAAU,CAAC;AAExE,MAAM,CAAC,MAAM,wBAAwB,GAA+C,IAAI,CAAC,wBAAwB,CAAC","sourcesContent":["// The sid.v1.ids messages are owned by @structured-id/ids; this module\n// re-exports its objects so generated messages that carry an identifier\n// share them instead of a second generated copy.\nimport type { MessageType } from \"@protobuf-ts/runtime\";\nimport { wire } from \"@structured-id/ids\";\n\nexport const ProfileId: MessageType<wire.ProfileId> = wire.ProfileId;\nexport type ProfileId = wire.ProfileId;\nexport const PrincipalId: MessageType<wire.PrincipalId> = wire.PrincipalId;\nexport type PrincipalId = wire.PrincipalId;\nexport const ProfileEmailId: MessageType<wire.ProfileEmailId> = wire.ProfileEmailId;\nexport type ProfileEmailId = wire.ProfileEmailId;\nexport const ProfilePhoneId: MessageType<wire.ProfilePhoneId> = wire.ProfilePhoneId;\nexport type ProfilePhoneId = wire.ProfilePhoneId;\nexport const DeviceId: MessageType<wire.DeviceId> = wire.DeviceId;\nexport type DeviceId = wire.DeviceId;\nexport const BindingId: MessageType<wire.BindingId> = wire.BindingId;\nexport type BindingId = wire.BindingId;\nexport const OrgId: MessageType<wire.OrgId> = wire.OrgId;\nexport type OrgId = wire.OrgId;\nexport const IssuerId: MessageType<wire.IssuerId> = wire.IssuerId;\nexport type IssuerId = wire.IssuerId;\nexport const ApplicationId: MessageType<wire.ApplicationId> = wire.ApplicationId;\nexport type ApplicationId = wire.ApplicationId;\nexport const PasswordOperationId: MessageType<wire.PasswordOperationId> = wire.PasswordOperationId;\nexport type PasswordOperationId = wire.PasswordOperationId;\nexport const OpaqueLoginId: MessageType<wire.OpaqueLoginId> = wire.OpaqueLoginId;\nexport type OpaqueLoginId = wire.OpaqueLoginId;\nexport const SessionId: MessageType<wire.SessionId> = wire.SessionId;\nexport type SessionId = wire.SessionId;\nexport const CredentialId: MessageType<wire.CredentialId> = wire.CredentialId;\nexport type CredentialId = wire.CredentialId;\nexport const OtpSessionId: MessageType<wire.OtpSessionId> = wire.OtpSessionId;\nexport type OtpSessionId = wire.OtpSessionId;\nexport const MagicLinkId: MessageType<wire.MagicLinkId> = wire.MagicLinkId;\nexport type MagicLinkId = wire.MagicLinkId;\nexport const StepUpChallengeId: MessageType<wire.StepUpChallengeId> = wire.StepUpChallengeId;\nexport type StepUpChallengeId = wire.StepUpChallengeId;\nexport const ResetSessionId: MessageType<wire.ResetSessionId> = wire.ResetSessionId;\nexport type ResetSessionId = wire.ResetSessionId;\nexport const ImportedPasswordUpgradeId: MessageType<wire.ImportedPasswordUpgradeId> = wire.ImportedPasswordUpgradeId;\nexport type ImportedPasswordUpgradeId = wire.ImportedPasswordUpgradeId;\nexport const MachineUserId: MessageType<wire.MachineUserId> = wire.MachineUserId;\nexport type MachineUserId = wire.MachineUserId;\nexport const ProvisioningConnectorId: MessageType<wire.ProvisioningConnectorId> = wire.ProvisioningConnectorId;\nexport type ProvisioningConnectorId = wire.ProvisioningConnectorId;\nexport const ResourceId: MessageType<wire.ResourceId> = wire.ResourceId;\nexport type ResourceId = wire.ResourceId;\nexport const ProvisioningCredentialId: MessageType<wire.ProvisioningCredentialId> = wire.ProvisioningCredentialId;\nexport type ProvisioningCredentialId = wire.ProvisioningCredentialId;\n"]}
1
+ {"version":3,"file":"ids.js","sourceRoot":"","sources":["../../../../../src/generated/sid/v1/ids/ids.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAE1C,MAAM,CAAC,MAAM,SAAS,GAAgC,IAAI,CAAC,SAAS,CAAC;AAErE,MAAM,CAAC,MAAM,WAAW,GAAkC,IAAI,CAAC,WAAW,CAAC;AAE3E,MAAM,CAAC,MAAM,cAAc,GAAqC,IAAI,CAAC,cAAc,CAAC;AAEpF,MAAM,CAAC,MAAM,cAAc,GAAqC,IAAI,CAAC,cAAc,CAAC;AAEpF,MAAM,CAAC,MAAM,QAAQ,GAA+B,IAAI,CAAC,QAAQ,CAAC;AAElE,MAAM,CAAC,MAAM,SAAS,GAAgC,IAAI,CAAC,SAAS,CAAC;AAErE,MAAM,CAAC,MAAM,KAAK,GAA4B,IAAI,CAAC,KAAK,CAAC;AAEzD,MAAM,CAAC,MAAM,QAAQ,GAA+B,IAAI,CAAC,QAAQ,CAAC;AAElE,MAAM,CAAC,MAAM,aAAa,GAAoC,IAAI,CAAC,aAAa,CAAC;AAEjF,MAAM,CAAC,MAAM,mBAAmB,GAA0C,IAAI,CAAC,mBAAmB,CAAC;AAEnG,MAAM,CAAC,MAAM,aAAa,GAAoC,IAAI,CAAC,aAAa,CAAC;AAEjF,MAAM,CAAC,MAAM,SAAS,GAAgC,IAAI,CAAC,SAAS,CAAC;AAErE,MAAM,CAAC,MAAM,YAAY,GAAmC,IAAI,CAAC,YAAY,CAAC;AAE9E,MAAM,CAAC,MAAM,YAAY,GAAmC,IAAI,CAAC,YAAY,CAAC;AAE9E,MAAM,CAAC,MAAM,WAAW,GAAkC,IAAI,CAAC,WAAW,CAAC;AAE3E,MAAM,CAAC,MAAM,iBAAiB,GAAwC,IAAI,CAAC,iBAAiB,CAAC;AAE7F,MAAM,CAAC,MAAM,cAAc,GAAqC,IAAI,CAAC,cAAc,CAAC;AAEpF,MAAM,CAAC,MAAM,yBAAyB,GAAgD,IAAI,CAAC,yBAAyB,CAAC;AAErH,MAAM,CAAC,MAAM,aAAa,GAAoC,IAAI,CAAC,aAAa,CAAC;AAEjF,MAAM,CAAC,MAAM,uBAAuB,GAA8C,IAAI,CAAC,uBAAuB,CAAC;AAE/G,MAAM,CAAC,MAAM,UAAU,GAAiC,IAAI,CAAC,UAAU,CAAC;AAExE,MAAM,CAAC,MAAM,wBAAwB,GAA+C,IAAI,CAAC,wBAAwB,CAAC;AAElH,MAAM,CAAC,MAAM,SAAS,GAAgC,IAAI,CAAC,SAAS,CAAC;AAErE,MAAM,CAAC,MAAM,MAAM,GAA6B,IAAI,CAAC,MAAM,CAAC;AAE5D,MAAM,CAAC,MAAM,OAAO,GAA8B,IAAI,CAAC,OAAO,CAAC;AAE/D,MAAM,CAAC,MAAM,gBAAgB,GAAuC,IAAI,CAAC,gBAAgB,CAAC;AAE1F,MAAM,CAAC,MAAM,aAAa,GAAoC,IAAI,CAAC,aAAa,CAAC;AAEjF,MAAM,CAAC,MAAM,eAAe,GAAsC,IAAI,CAAC,eAAe,CAAC","sourcesContent":["// The sid.v1.ids messages are owned by @structured-id/ids; this module\n// re-exports its objects so generated messages that carry an identifier\n// share them instead of a second generated copy.\nimport type { MessageType } from \"@protobuf-ts/runtime\";\nimport { wire } from \"@structured-id/ids\";\n\nexport const ProfileId: MessageType<wire.ProfileId> = wire.ProfileId;\nexport type ProfileId = wire.ProfileId;\nexport const PrincipalId: MessageType<wire.PrincipalId> = wire.PrincipalId;\nexport type PrincipalId = wire.PrincipalId;\nexport const ProfileEmailId: MessageType<wire.ProfileEmailId> = wire.ProfileEmailId;\nexport type ProfileEmailId = wire.ProfileEmailId;\nexport const ProfilePhoneId: MessageType<wire.ProfilePhoneId> = wire.ProfilePhoneId;\nexport type ProfilePhoneId = wire.ProfilePhoneId;\nexport const DeviceId: MessageType<wire.DeviceId> = wire.DeviceId;\nexport type DeviceId = wire.DeviceId;\nexport const BindingId: MessageType<wire.BindingId> = wire.BindingId;\nexport type BindingId = wire.BindingId;\nexport const OrgId: MessageType<wire.OrgId> = wire.OrgId;\nexport type OrgId = wire.OrgId;\nexport const IssuerId: MessageType<wire.IssuerId> = wire.IssuerId;\nexport type IssuerId = wire.IssuerId;\nexport const ApplicationId: MessageType<wire.ApplicationId> = wire.ApplicationId;\nexport type ApplicationId = wire.ApplicationId;\nexport const PasswordOperationId: MessageType<wire.PasswordOperationId> = wire.PasswordOperationId;\nexport type PasswordOperationId = wire.PasswordOperationId;\nexport const OpaqueLoginId: MessageType<wire.OpaqueLoginId> = wire.OpaqueLoginId;\nexport type OpaqueLoginId = wire.OpaqueLoginId;\nexport const SessionId: MessageType<wire.SessionId> = wire.SessionId;\nexport type SessionId = wire.SessionId;\nexport const CredentialId: MessageType<wire.CredentialId> = wire.CredentialId;\nexport type CredentialId = wire.CredentialId;\nexport const OtpSessionId: MessageType<wire.OtpSessionId> = wire.OtpSessionId;\nexport type OtpSessionId = wire.OtpSessionId;\nexport const MagicLinkId: MessageType<wire.MagicLinkId> = wire.MagicLinkId;\nexport type MagicLinkId = wire.MagicLinkId;\nexport const StepUpChallengeId: MessageType<wire.StepUpChallengeId> = wire.StepUpChallengeId;\nexport type StepUpChallengeId = wire.StepUpChallengeId;\nexport const ResetSessionId: MessageType<wire.ResetSessionId> = wire.ResetSessionId;\nexport type ResetSessionId = wire.ResetSessionId;\nexport const ImportedPasswordUpgradeId: MessageType<wire.ImportedPasswordUpgradeId> = wire.ImportedPasswordUpgradeId;\nexport type ImportedPasswordUpgradeId = wire.ImportedPasswordUpgradeId;\nexport const MachineUserId: MessageType<wire.MachineUserId> = wire.MachineUserId;\nexport type MachineUserId = wire.MachineUserId;\nexport const ProvisioningConnectorId: MessageType<wire.ProvisioningConnectorId> = wire.ProvisioningConnectorId;\nexport type ProvisioningConnectorId = wire.ProvisioningConnectorId;\nexport const ResourceId: MessageType<wire.ResourceId> = wire.ResourceId;\nexport type ResourceId = wire.ResourceId;\nexport const ProvisioningCredentialId: MessageType<wire.ProvisioningCredentialId> = wire.ProvisioningCredentialId;\nexport type ProvisioningCredentialId = wire.ProvisioningCredentialId;\nexport const ProjectId: MessageType<wire.ProjectId> = wire.ProjectId;\nexport type ProjectId = wire.ProjectId;\nexport const RoleId: MessageType<wire.RoleId> = wire.RoleId;\nexport type RoleId = wire.RoleId;\nexport const GroupId: MessageType<wire.GroupId> = wire.GroupId;\nexport type GroupId = wire.GroupId;\nexport const RoleAssignmentId: MessageType<wire.RoleAssignmentId> = wire.RoleAssignmentId;\nexport type RoleAssignmentId = wire.RoleAssignmentId;\nexport const CedarPolicyId: MessageType<wire.CedarPolicyId> = wire.CedarPolicyId;\nexport type CedarPolicyId = wire.CedarPolicyId;\nexport const AccessRequestId: MessageType<wire.AccessRequestId> = wire.AccessRequestId;\nexport type AccessRequestId = wire.AccessRequestId;\n"]}
@@ -49,35 +49,38 @@ export interface MachineUserInfo {
49
49
  */
50
50
  ownerId: string;
51
51
  /**
52
+ * Roles are RoleAssignments of the machine user principal (AuthzService),
53
+ * never a list stored on the machine user.
54
+ *
52
55
  * @generated from protobuf field: repeated string scopes = 10
53
56
  */
54
57
  scopes: string[];
55
58
  /**
56
- * @generated from protobuf field: repeated string ip_allowlist = 12
59
+ * @generated from protobuf field: repeated string ip_allowlist = 11
57
60
  */
58
61
  ipAllowlist: string[];
59
62
  /**
60
- * @generated from protobuf field: int32 rate_limit_rpm = 13
63
+ * @generated from protobuf field: int32 rate_limit_rpm = 12
61
64
  */
62
65
  rateLimitRpm: number;
63
66
  /**
64
- * @generated from protobuf field: int32 max_token_lifetime = 14
67
+ * @generated from protobuf field: int32 max_token_lifetime = 13
65
68
  */
66
69
  maxTokenLifetime: number;
67
70
  /**
68
- * @generated from protobuf field: google.protobuf.Timestamp expires_at = 15
71
+ * @generated from protobuf field: google.protobuf.Timestamp expires_at = 14
69
72
  */
70
73
  expiresAt?: Timestamp;
71
74
  /**
72
- * @generated from protobuf field: google.protobuf.Timestamp last_used_at = 16
75
+ * @generated from protobuf field: google.protobuf.Timestamp last_used_at = 15
73
76
  */
74
77
  lastUsedAt?: Timestamp;
75
78
  /**
76
- * @generated from protobuf field: google.protobuf.Timestamp created_at = 17
79
+ * @generated from protobuf field: google.protobuf.Timestamp created_at = 16
77
80
  */
78
81
  createdAt?: Timestamp;
79
82
  /**
80
- * @generated from protobuf field: google.protobuf.Timestamp updated_at = 18
83
+ * @generated from protobuf field: google.protobuf.Timestamp updated_at = 17
81
84
  */
82
85
  updatedAt?: Timestamp;
83
86
  }
@@ -160,23 +163,25 @@ export interface CreateMachineUserRequest {
160
163
  */
161
164
  machineType: MachineUserType;
162
165
  /**
166
+ * Roles are granted through AuthzService.AssignRole.
167
+ *
163
168
  * @generated from protobuf field: repeated string scopes = 5
164
169
  */
165
170
  scopes: string[];
166
171
  /**
167
- * @generated from protobuf field: repeated string ip_allowlist = 7
172
+ * @generated from protobuf field: repeated string ip_allowlist = 6
168
173
  */
169
174
  ipAllowlist: string[];
170
175
  /**
171
- * @generated from protobuf field: int32 rate_limit_rpm = 8
176
+ * @generated from protobuf field: int32 rate_limit_rpm = 7
172
177
  */
173
178
  rateLimitRpm: number;
174
179
  /**
175
- * @generated from protobuf field: int32 max_token_lifetime = 9
180
+ * @generated from protobuf field: int32 max_token_lifetime = 8
176
181
  */
177
182
  maxTokenLifetime: number;
178
183
  /**
179
- * @generated from protobuf field: google.protobuf.Timestamp expires_at = 10
184
+ * @generated from protobuf field: google.protobuf.Timestamp expires_at = 9
180
185
  */
181
186
  expiresAt?: Timestamp;
182
187
  }
@@ -224,23 +229,25 @@ export interface UpdateMachineUserRequest {
224
229
  */
225
230
  description: string;
226
231
  /**
232
+ * Roles are granted through AuthzService.AssignRole.
233
+ *
227
234
  * @generated from protobuf field: repeated string scopes = 4
228
235
  */
229
236
  scopes: string[];
230
237
  /**
231
- * @generated from protobuf field: repeated string ip_allowlist = 6
238
+ * @generated from protobuf field: repeated string ip_allowlist = 5
232
239
  */
233
240
  ipAllowlist: string[];
234
241
  /**
235
- * @generated from protobuf field: int32 rate_limit_rpm = 7
242
+ * @generated from protobuf field: int32 rate_limit_rpm = 6
236
243
  */
237
244
  rateLimitRpm: number;
238
245
  /**
239
- * @generated from protobuf field: int32 max_token_lifetime = 8
246
+ * @generated from protobuf field: int32 max_token_lifetime = 7
240
247
  */
241
248
  maxTokenLifetime: number;
242
249
  /**
243
- * @generated from protobuf field: google.protobuf.Timestamp expires_at = 9
250
+ * @generated from protobuf field: google.protobuf.Timestamp expires_at = 8
244
251
  */
245
252
  expiresAt?: Timestamp;
246
253
  }
@@ -142,13 +142,13 @@ class MachineUserInfo$Type extends MessageType {
142
142
  { no: 8, name: "owner_type", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
143
143
  { no: 9, name: "owner_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
144
144
  { no: 10, name: "scopes", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
145
- { no: 12, name: "ip_allowlist", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
146
- { no: 13, name: "rate_limit_rpm", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
147
- { no: 14, name: "max_token_lifetime", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
148
- { no: 15, name: "expires_at", kind: "message", T: () => Timestamp },
149
- { no: 16, name: "last_used_at", kind: "message", T: () => Timestamp },
150
- { no: 17, name: "created_at", kind: "message", T: () => Timestamp },
151
- { no: 18, name: "updated_at", kind: "message", T: () => Timestamp }
145
+ { no: 11, name: "ip_allowlist", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
146
+ { no: 12, name: "rate_limit_rpm", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
147
+ { no: 13, name: "max_token_lifetime", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
148
+ { no: 14, name: "expires_at", kind: "message", T: () => Timestamp },
149
+ { no: 15, name: "last_used_at", kind: "message", T: () => Timestamp },
150
+ { no: 16, name: "created_at", kind: "message", T: () => Timestamp },
151
+ { no: 17, name: "updated_at", kind: "message", T: () => Timestamp }
152
152
  ]);
153
153
  }
154
154
  create(value) {
@@ -205,25 +205,25 @@ class MachineUserInfo$Type extends MessageType {
205
205
  case /* repeated string scopes */ 10:
206
206
  message.scopes.push(reader.string());
207
207
  break;
208
- case /* repeated string ip_allowlist */ 12:
208
+ case /* repeated string ip_allowlist */ 11:
209
209
  message.ipAllowlist.push(reader.string());
210
210
  break;
211
- case /* int32 rate_limit_rpm */ 13:
211
+ case /* int32 rate_limit_rpm */ 12:
212
212
  message.rateLimitRpm = reader.int32();
213
213
  break;
214
- case /* int32 max_token_lifetime */ 14:
214
+ case /* int32 max_token_lifetime */ 13:
215
215
  message.maxTokenLifetime = reader.int32();
216
216
  break;
217
- case /* google.protobuf.Timestamp expires_at */ 15:
217
+ case /* google.protobuf.Timestamp expires_at */ 14:
218
218
  message.expiresAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.expiresAt);
219
219
  break;
220
- case /* google.protobuf.Timestamp last_used_at */ 16:
220
+ case /* google.protobuf.Timestamp last_used_at */ 15:
221
221
  message.lastUsedAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.lastUsedAt);
222
222
  break;
223
- case /* google.protobuf.Timestamp created_at */ 17:
223
+ case /* google.protobuf.Timestamp created_at */ 16:
224
224
  message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
225
225
  break;
226
- case /* google.protobuf.Timestamp updated_at */ 18:
226
+ case /* google.protobuf.Timestamp updated_at */ 17:
227
227
  message.updatedAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.updatedAt);
228
228
  break;
229
229
  default:
@@ -268,27 +268,27 @@ class MachineUserInfo$Type extends MessageType {
268
268
  /* repeated string scopes = 10; */
269
269
  for (let i = 0; i < message.scopes.length; i++)
270
270
  writer.tag(10, WireType.LengthDelimited).string(message.scopes[i]);
271
- /* repeated string ip_allowlist = 12; */
271
+ /* repeated string ip_allowlist = 11; */
272
272
  for (let i = 0; i < message.ipAllowlist.length; i++)
273
- writer.tag(12, WireType.LengthDelimited).string(message.ipAllowlist[i]);
274
- /* int32 rate_limit_rpm = 13; */
273
+ writer.tag(11, WireType.LengthDelimited).string(message.ipAllowlist[i]);
274
+ /* int32 rate_limit_rpm = 12; */
275
275
  if (message.rateLimitRpm !== 0)
276
- writer.tag(13, WireType.Varint).int32(message.rateLimitRpm);
277
- /* int32 max_token_lifetime = 14; */
276
+ writer.tag(12, WireType.Varint).int32(message.rateLimitRpm);
277
+ /* int32 max_token_lifetime = 13; */
278
278
  if (message.maxTokenLifetime !== 0)
279
- writer.tag(14, WireType.Varint).int32(message.maxTokenLifetime);
280
- /* google.protobuf.Timestamp expires_at = 15; */
279
+ writer.tag(13, WireType.Varint).int32(message.maxTokenLifetime);
280
+ /* google.protobuf.Timestamp expires_at = 14; */
281
281
  if (message.expiresAt)
282
- Timestamp.internalBinaryWrite(message.expiresAt, writer.tag(15, WireType.LengthDelimited).fork(), options).join();
283
- /* google.protobuf.Timestamp last_used_at = 16; */
282
+ Timestamp.internalBinaryWrite(message.expiresAt, writer.tag(14, WireType.LengthDelimited).fork(), options).join();
283
+ /* google.protobuf.Timestamp last_used_at = 15; */
284
284
  if (message.lastUsedAt)
285
- Timestamp.internalBinaryWrite(message.lastUsedAt, writer.tag(16, WireType.LengthDelimited).fork(), options).join();
286
- /* google.protobuf.Timestamp created_at = 17; */
285
+ Timestamp.internalBinaryWrite(message.lastUsedAt, writer.tag(15, WireType.LengthDelimited).fork(), options).join();
286
+ /* google.protobuf.Timestamp created_at = 16; */
287
287
  if (message.createdAt)
288
- Timestamp.internalBinaryWrite(message.createdAt, writer.tag(17, WireType.LengthDelimited).fork(), options).join();
289
- /* google.protobuf.Timestamp updated_at = 18; */
288
+ Timestamp.internalBinaryWrite(message.createdAt, writer.tag(16, WireType.LengthDelimited).fork(), options).join();
289
+ /* google.protobuf.Timestamp updated_at = 17; */
290
290
  if (message.updatedAt)
291
- Timestamp.internalBinaryWrite(message.updatedAt, writer.tag(18, WireType.LengthDelimited).fork(), options).join();
291
+ Timestamp.internalBinaryWrite(message.updatedAt, writer.tag(17, WireType.LengthDelimited).fork(), options).join();
292
292
  let u = options.writeUnknownFields;
293
293
  if (u !== false)
294
294
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -479,10 +479,10 @@ class CreateMachineUserRequest$Type extends MessageType {
479
479
  { no: 3, name: "description", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
480
480
  { no: 4, name: "machine_type", kind: "enum", T: () => ["sid.v1.machine.MachineUserType", MachineUserType, "MACHINE_USER_TYPE_"] },
481
481
  { no: 5, name: "scopes", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
482
- { no: 7, name: "ip_allowlist", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
483
- { no: 8, name: "rate_limit_rpm", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
484
- { no: 9, name: "max_token_lifetime", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
485
- { no: 10, name: "expires_at", kind: "message", T: () => Timestamp }
482
+ { no: 6, name: "ip_allowlist", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
483
+ { no: 7, name: "rate_limit_rpm", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
484
+ { no: 8, name: "max_token_lifetime", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
485
+ { no: 9, name: "expires_at", kind: "message", T: () => Timestamp }
486
486
  ]);
487
487
  }
488
488
  create(value) {
@@ -519,16 +519,16 @@ class CreateMachineUserRequest$Type extends MessageType {
519
519
  case /* repeated string scopes */ 5:
520
520
  message.scopes.push(reader.string());
521
521
  break;
522
- case /* repeated string ip_allowlist */ 7:
522
+ case /* repeated string ip_allowlist */ 6:
523
523
  message.ipAllowlist.push(reader.string());
524
524
  break;
525
- case /* int32 rate_limit_rpm */ 8:
525
+ case /* int32 rate_limit_rpm */ 7:
526
526
  message.rateLimitRpm = reader.int32();
527
527
  break;
528
- case /* int32 max_token_lifetime */ 9:
528
+ case /* int32 max_token_lifetime */ 8:
529
529
  message.maxTokenLifetime = reader.int32();
530
530
  break;
531
- case /* google.protobuf.Timestamp expires_at */ 10:
531
+ case /* google.protobuf.Timestamp expires_at */ 9:
532
532
  message.expiresAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.expiresAt);
533
533
  break;
534
534
  default:
@@ -558,18 +558,18 @@ class CreateMachineUserRequest$Type extends MessageType {
558
558
  /* repeated string scopes = 5; */
559
559
  for (let i = 0; i < message.scopes.length; i++)
560
560
  writer.tag(5, WireType.LengthDelimited).string(message.scopes[i]);
561
- /* repeated string ip_allowlist = 7; */
561
+ /* repeated string ip_allowlist = 6; */
562
562
  for (let i = 0; i < message.ipAllowlist.length; i++)
563
- writer.tag(7, WireType.LengthDelimited).string(message.ipAllowlist[i]);
564
- /* int32 rate_limit_rpm = 8; */
563
+ writer.tag(6, WireType.LengthDelimited).string(message.ipAllowlist[i]);
564
+ /* int32 rate_limit_rpm = 7; */
565
565
  if (message.rateLimitRpm !== 0)
566
- writer.tag(8, WireType.Varint).int32(message.rateLimitRpm);
567
- /* int32 max_token_lifetime = 9; */
566
+ writer.tag(7, WireType.Varint).int32(message.rateLimitRpm);
567
+ /* int32 max_token_lifetime = 8; */
568
568
  if (message.maxTokenLifetime !== 0)
569
- writer.tag(9, WireType.Varint).int32(message.maxTokenLifetime);
570
- /* google.protobuf.Timestamp expires_at = 10; */
569
+ writer.tag(8, WireType.Varint).int32(message.maxTokenLifetime);
570
+ /* google.protobuf.Timestamp expires_at = 9; */
571
571
  if (message.expiresAt)
572
- Timestamp.internalBinaryWrite(message.expiresAt, writer.tag(10, WireType.LengthDelimited).fork(), options).join();
572
+ Timestamp.internalBinaryWrite(message.expiresAt, writer.tag(9, WireType.LengthDelimited).fork(), options).join();
573
573
  let u = options.writeUnknownFields;
574
574
  if (u !== false)
575
575
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -727,10 +727,10 @@ class UpdateMachineUserRequest$Type extends MessageType {
727
727
  { no: 2, name: "display_name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
728
728
  { no: 3, name: "description", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
729
729
  { no: 4, name: "scopes", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
730
- { no: 6, name: "ip_allowlist", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
731
- { no: 7, name: "rate_limit_rpm", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
732
- { no: 8, name: "max_token_lifetime", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
733
- { no: 9, name: "expires_at", kind: "message", T: () => Timestamp }
730
+ { no: 5, name: "ip_allowlist", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
731
+ { no: 6, name: "rate_limit_rpm", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
732
+ { no: 7, name: "max_token_lifetime", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
733
+ { no: 8, name: "expires_at", kind: "message", T: () => Timestamp }
734
734
  ]);
735
735
  }
736
736
  create(value) {
@@ -763,16 +763,16 @@ class UpdateMachineUserRequest$Type extends MessageType {
763
763
  case /* repeated string scopes */ 4:
764
764
  message.scopes.push(reader.string());
765
765
  break;
766
- case /* repeated string ip_allowlist */ 6:
766
+ case /* repeated string ip_allowlist */ 5:
767
767
  message.ipAllowlist.push(reader.string());
768
768
  break;
769
- case /* int32 rate_limit_rpm */ 7:
769
+ case /* int32 rate_limit_rpm */ 6:
770
770
  message.rateLimitRpm = reader.int32();
771
771
  break;
772
- case /* int32 max_token_lifetime */ 8:
772
+ case /* int32 max_token_lifetime */ 7:
773
773
  message.maxTokenLifetime = reader.int32();
774
774
  break;
775
- case /* google.protobuf.Timestamp expires_at */ 9:
775
+ case /* google.protobuf.Timestamp expires_at */ 8:
776
776
  message.expiresAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.expiresAt);
777
777
  break;
778
778
  default:
@@ -799,18 +799,18 @@ class UpdateMachineUserRequest$Type extends MessageType {
799
799
  /* repeated string scopes = 4; */
800
800
  for (let i = 0; i < message.scopes.length; i++)
801
801
  writer.tag(4, WireType.LengthDelimited).string(message.scopes[i]);
802
- /* repeated string ip_allowlist = 6; */
802
+ /* repeated string ip_allowlist = 5; */
803
803
  for (let i = 0; i < message.ipAllowlist.length; i++)
804
- writer.tag(6, WireType.LengthDelimited).string(message.ipAllowlist[i]);
805
- /* int32 rate_limit_rpm = 7; */
804
+ writer.tag(5, WireType.LengthDelimited).string(message.ipAllowlist[i]);
805
+ /* int32 rate_limit_rpm = 6; */
806
806
  if (message.rateLimitRpm !== 0)
807
- writer.tag(7, WireType.Varint).int32(message.rateLimitRpm);
808
- /* int32 max_token_lifetime = 8; */
807
+ writer.tag(6, WireType.Varint).int32(message.rateLimitRpm);
808
+ /* int32 max_token_lifetime = 7; */
809
809
  if (message.maxTokenLifetime !== 0)
810
- writer.tag(8, WireType.Varint).int32(message.maxTokenLifetime);
811
- /* google.protobuf.Timestamp expires_at = 9; */
810
+ writer.tag(7, WireType.Varint).int32(message.maxTokenLifetime);
811
+ /* google.protobuf.Timestamp expires_at = 8; */
812
812
  if (message.expiresAt)
813
- Timestamp.internalBinaryWrite(message.expiresAt, writer.tag(9, WireType.LengthDelimited).fork(), options).join();
813
+ Timestamp.internalBinaryWrite(message.expiresAt, writer.tag(8, WireType.LengthDelimited).fork(), options).join();
814
814
  let u = options.writeUnknownFields;
815
815
  if (u !== false)
816
816
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);