@structured-id/ui-core 1.2.0 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (101) hide show
  1. package/README.md +9 -5
  2. package/dist/browser-vp/index.d.cts +0 -11
  3. package/dist/browser-vp/index.d.ts +0 -11
  4. package/dist/index.cjs +13721 -9514
  5. package/dist/index.d.cts +4362 -2375
  6. package/dist/index.d.ts +4362 -2375
  7. package/dist/index.js +13937 -9730
  8. package/package.json +3 -3
  9. package/src/browser-vp/crypto.ts +0 -1
  10. package/src/browser-vp/index.ts +0 -2
  11. package/src/browser-vp/prf.ts +0 -2
  12. package/src/browser-vp/storage.ts +0 -2
  13. package/src/browser-vp/types.ts +0 -2
  14. package/src/browser-vp/vp.ts +0 -2
  15. package/src/composables/index.ts +6 -1
  16. package/src/composables/useAccountTransport.test.ts +121 -0
  17. package/src/composables/useAccountTransport.ts +69 -0
  18. package/src/composables/useBffAuth.ts +44 -34
  19. package/src/generated/google/api/httpbody.ts +159 -0
  20. package/src/generated/google/protobuf/any.ts +326 -0
  21. package/src/generated/google/rpc/error_details.ts +1386 -0
  22. package/src/generated/google/rpc/status.ts +127 -0
  23. package/src/generated/sid/v1/account/account.ts +1 -1
  24. package/src/generated/sid/v1/admin/admin.client.ts +15 -12
  25. package/src/generated/sid/v1/admin/admin.ts +24 -89
  26. package/src/generated/sid/v1/admin/enrollment.client.ts +24 -12
  27. package/src/generated/sid/v1/admin/enrollment.ts +65 -3
  28. package/src/generated/sid/v1/admin/events.client.ts +8 -8
  29. package/src/generated/sid/v1/admin/flow.ts +1 -1
  30. package/src/generated/sid/v1/admin/keys.ts +1 -1
  31. package/src/generated/sid/v1/admin/notifications.client.ts +12 -6
  32. package/src/generated/sid/v1/admin/notifications.ts +11 -70
  33. package/src/generated/sid/v1/admin/operations.ts +20 -35
  34. package/src/generated/sid/v1/admin/organizations.client.ts +2 -2
  35. package/src/generated/sid/v1/admin/organizations.ts +15 -32
  36. package/src/generated/sid/v1/admin/provisioning.client.ts +232 -0
  37. package/src/generated/sid/v1/admin/provisioning.ts +1383 -0
  38. package/src/generated/sid/v1/admin/scopes.ts +1 -1
  39. package/src/generated/sid/v1/admin/security.client.ts +22 -24
  40. package/src/generated/sid/v1/admin/security.ts +13 -22
  41. package/src/generated/sid/v1/admin/settings.client.ts +29 -18
  42. package/src/generated/sid/v1/admin/settings.ts +2 -82
  43. package/src/generated/sid/v1/attestation/attestation.client.ts +6 -6
  44. package/src/generated/sid/v1/attestation/attestation.ts +8 -8
  45. package/src/generated/sid/v1/authn/auth.client.ts +101 -58
  46. package/src/generated/sid/v1/authn/auth.ts +842 -414
  47. package/src/generated/sid/v1/authn/flows.ts +0 -12
  48. package/src/generated/sid/v1/authn/issuer.client.ts +489 -0
  49. package/src/generated/sid/v1/authn/issuer.ts +1600 -0
  50. package/src/generated/sid/v1/authn/password_history.client.ts +57 -0
  51. package/src/generated/sid/v1/authn/password_history.ts +578 -0
  52. package/src/generated/sid/v1/authn/system_integration.client.ts +73 -0
  53. package/src/generated/sid/v1/authn/system_integration.ts +218 -0
  54. package/src/generated/sid/v1/authz/authz.ts +1498 -317
  55. package/src/generated/sid/v1/authz/forward_auth.client.ts +97 -0
  56. package/src/generated/sid/v1/authz/forward_auth.ts +79 -0
  57. package/src/generated/sid/v1/authz/governance.client.ts +2 -2
  58. package/src/generated/sid/v1/authz/governance.ts +61 -4
  59. package/src/generated/sid/v1/common/errors.ts +532 -6
  60. package/src/generated/sid/v1/events/event_stream.client.ts +2 -2
  61. package/src/generated/sid/v1/events/event_stream.ts +2 -1
  62. package/src/generated/sid/v1/identity/identity.ts +98 -58
  63. package/src/generated/sid/v1/ids/ids.ts +395 -0
  64. package/src/generated/sid/v1/machine/machine_user.ts +0 -36
  65. package/src/generated/sid/v1/machine/pat.client.ts +2 -19
  66. package/src/generated/sid/v1/machine/pat.ts +1 -186
  67. package/src/generated/sid/v1/projects/projects.client.ts +137 -19
  68. package/src/generated/sid/v1/projects/projects.ts +2105 -405
  69. package/src/generated/sid/v1/scim/scim.client.ts +248 -2
  70. package/src/generated/sid/v1/scim/scim.ts +153 -14
  71. package/src/generated/sid/v1/test/test.ts +1 -1
  72. package/src/i18n/index.ts +0 -11
  73. package/src/index.ts +36 -2
  74. package/src/package-exports.test.ts +18 -0
  75. package/src/profile/components/SidLoginForm.vue +5 -2
  76. package/src/profile/components/SidRegistrationForm.test.ts +58 -1
  77. package/src/profile/components/SidRegistrationForm.vue +110 -12
  78. package/src/profile/components/index.ts +4 -0
  79. package/src/profile/composables/index.ts +2 -1
  80. package/src/profile/composables/useAccountApi.ts +20 -7
  81. package/src/profile/composables/useAuth.test.ts +453 -0
  82. package/src/profile/composables/useAuth.ts +414 -0
  83. package/src/profile/composables/useAuthApi.opaque.test.ts +18 -0
  84. package/src/profile/composables/useAuthApi.ts +188 -20
  85. package/src/profile/composables/useEnrollmentApi.test.ts +33 -0
  86. package/src/profile/composables/useEnrollmentApi.ts +26 -0
  87. package/src/profile/composables/useIdentityApi.ts +17 -7
  88. package/src/profile/composables/useLoginSuccess.test.ts +97 -3
  89. package/src/profile/composables/useLoginSuccess.ts +80 -22
  90. package/src/profile/composables/useSecurityLevel.test.ts +10 -3
  91. package/src/profile/composables/useSecurityLevel.ts +12 -3
  92. package/src/quasar/SidPrincipalInput.vue +4 -7
  93. package/src/utils/normalizePrincipal.test.ts +19 -5
  94. package/src/utils/normalizePrincipal.ts +7 -9
  95. package/src/utils/rpcRefusal.test.ts +151 -0
  96. package/src/utils/rpcRefusal.ts +252 -0
  97. package/src/utils/validators.test.ts +9 -0
  98. package/src/utils/validators.ts +14 -2
  99. package/src/composables/useAuth.ts +0 -40
  100. package/src/profile/composables/useOpaqueAuth.test.ts +0 -290
  101. package/src/profile/composables/useOpaqueAuth.ts +0 -191
@@ -0,0 +1,395 @@
1
+ // @generated by protobuf-ts 2.11.1 with parameter client_generic,generate_dependencies
2
+ // @generated from protobuf file "sid/v1/ids/ids.proto" (package "sid.v1.ids", syntax proto3)
3
+ // tslint:disable
4
+ import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
5
+ import type { IBinaryWriter } from "@protobuf-ts/runtime";
6
+ import { WireType } from "@protobuf-ts/runtime";
7
+ import type { BinaryReadOptions } from "@protobuf-ts/runtime";
8
+ import type { IBinaryReader } from "@protobuf-ts/runtime";
9
+ import { UnknownFieldHandler } from "@protobuf-ts/runtime";
10
+ import type { PartialMessage } from "@protobuf-ts/runtime";
11
+ import { reflectionMergePartial } from "@protobuf-ts/runtime";
12
+ import { MessageType } from "@protobuf-ts/runtime";
13
+ /**
14
+ * A Profile's identity at one organization: the pairwise subject that
15
+ * organization's services see. Opaque and unlinkable across organizations;
16
+ * it never carries or reveals a ProfileId.
17
+ *
18
+ * @generated from protobuf message sid.v1.ids.BindingId
19
+ */
20
+ export interface BindingId {
21
+ /**
22
+ * Exactly 16 bytes: an RFC 9562 UUID of version 7 and the RFC 9562 variant,
23
+ * in network byte order. Nil, max, other lengths, versions and variants are
24
+ * invalid. Issued by SID; compared by exact byte equality.
25
+ *
26
+ * @generated from protobuf field: bytes value = 1
27
+ */
28
+ value: Uint8Array;
29
+ }
30
+ /**
31
+ * One password-installing operation (a registration, change or authorized
32
+ * reset) from its preparation to its commit. Every step and retry of the
33
+ * operation carries it, so a lost response resolves to the operation's one
34
+ * outcome instead of starting another.
35
+ *
36
+ * @generated from protobuf message sid.v1.ids.PasswordOperationId
37
+ */
38
+ export interface PasswordOperationId {
39
+ /**
40
+ * Exactly 16 bytes: an RFC 9562 UUID of version 7 and the RFC 9562 variant,
41
+ * in network byte order. Nil, max, other lengths, versions and variants are
42
+ * invalid. Issued by SID; compared by exact byte equality.
43
+ *
44
+ * @generated from protobuf field: bytes value = 1
45
+ */
46
+ value: Uint8Array;
47
+ }
48
+ /**
49
+ * A non-human actor (a service, bot or agent) with its own SID credentials.
50
+ * Not a Binding, a Profile or a device, whatever its bytes.
51
+ *
52
+ * @generated from protobuf message sid.v1.ids.MachineUserId
53
+ */
54
+ export interface MachineUserId {
55
+ /**
56
+ * Exactly 16 bytes: an RFC 9562 UUID of version 7 and the RFC 9562 variant,
57
+ * in network byte order. Nil, max, other lengths, versions and variants are
58
+ * invalid. Issued by SID; compared by exact byte equality.
59
+ *
60
+ * @generated from protobuf field: bytes value = 1
61
+ */
62
+ value: Uint8Array;
63
+ }
64
+ /**
65
+ * A provisioning connector: one directory source sending SCIM to an
66
+ * organization, or one target the organization provisions, acting as its own
67
+ * actor with its own credentials and grants. Not a machine user or a Profile.
68
+ *
69
+ * @generated from protobuf message sid.v1.ids.ProvisioningConnectorId
70
+ */
71
+ export interface ProvisioningConnectorId {
72
+ /**
73
+ * Exactly 16 bytes: an RFC 9562 UUID of version 7 and the RFC 9562 variant,
74
+ * in network byte order. Nil, max, other lengths, versions and variants are
75
+ * invalid. Issued by SID; compared by exact byte equality.
76
+ *
77
+ * @generated from protobuf field: bytes value = 1
78
+ */
79
+ value: Uint8Array;
80
+ }
81
+ /**
82
+ * A registered protected resource: the application or API at which access is
83
+ * enforced, in its issuer's context. Not an OAuth client and not an audience
84
+ * string; its indicator and issuer come from its registration.
85
+ *
86
+ * @generated from protobuf message sid.v1.ids.ResourceId
87
+ */
88
+ export interface ResourceId {
89
+ /**
90
+ * Exactly 16 bytes: an RFC 9562 UUID of version 7 and the RFC 9562 variant,
91
+ * in network byte order. Nil, max, other lengths, versions and variants are
92
+ * invalid. Issued by SID; compared by exact byte equality.
93
+ *
94
+ * @generated from protobuf field: bytes value = 1
95
+ */
96
+ value: Uint8Array;
97
+ }
98
+ /**
99
+ * One credential of a provisioning connector: the reference listings,
100
+ * rotations, revocations and audit records name. Never the secret itself.
101
+ *
102
+ * @generated from protobuf message sid.v1.ids.ProvisioningCredentialId
103
+ */
104
+ export interface ProvisioningCredentialId {
105
+ /**
106
+ * Exactly 16 bytes: an RFC 9562 UUID of version 7 and the RFC 9562 variant,
107
+ * in network byte order. Nil, max, other lengths, versions and variants are
108
+ * invalid. Issued by SID; compared by exact byte equality.
109
+ *
110
+ * @generated from protobuf field: bytes value = 1
111
+ */
112
+ value: Uint8Array;
113
+ }
114
+ // @generated message type with reflection information, may provide speed optimized methods
115
+ class BindingId$Type extends MessageType<BindingId> {
116
+ constructor() {
117
+ super("sid.v1.ids.BindingId", [
118
+ { no: 1, name: "value", kind: "scalar", T: 12 /*ScalarType.BYTES*/ }
119
+ ]);
120
+ }
121
+ create(value?: PartialMessage<BindingId>): BindingId {
122
+ const message = globalThis.Object.create((this.messagePrototype!));
123
+ message.value = new Uint8Array(0);
124
+ if (value !== undefined)
125
+ reflectionMergePartial<BindingId>(this, message, value);
126
+ return message;
127
+ }
128
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: BindingId): BindingId {
129
+ let message = target ?? this.create(), end = reader.pos + length;
130
+ while (reader.pos < end) {
131
+ let [fieldNo, wireType] = reader.tag();
132
+ switch (fieldNo) {
133
+ case /* bytes value */ 1:
134
+ message.value = reader.bytes();
135
+ break;
136
+ default:
137
+ let u = options.readUnknownField;
138
+ if (u === "throw")
139
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
140
+ let d = reader.skip(wireType);
141
+ if (u !== false)
142
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
143
+ }
144
+ }
145
+ return message;
146
+ }
147
+ internalBinaryWrite(message: BindingId, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
148
+ /* bytes value = 1; */
149
+ if (message.value.length)
150
+ writer.tag(1, WireType.LengthDelimited).bytes(message.value);
151
+ let u = options.writeUnknownFields;
152
+ if (u !== false)
153
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
154
+ return writer;
155
+ }
156
+ }
157
+ /**
158
+ * @generated MessageType for protobuf message sid.v1.ids.BindingId
159
+ */
160
+ export const BindingId = new BindingId$Type();
161
+ // @generated message type with reflection information, may provide speed optimized methods
162
+ class PasswordOperationId$Type extends MessageType<PasswordOperationId> {
163
+ constructor() {
164
+ super("sid.v1.ids.PasswordOperationId", [
165
+ { no: 1, name: "value", kind: "scalar", T: 12 /*ScalarType.BYTES*/ }
166
+ ]);
167
+ }
168
+ create(value?: PartialMessage<PasswordOperationId>): PasswordOperationId {
169
+ const message = globalThis.Object.create((this.messagePrototype!));
170
+ message.value = new Uint8Array(0);
171
+ if (value !== undefined)
172
+ reflectionMergePartial<PasswordOperationId>(this, message, value);
173
+ return message;
174
+ }
175
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PasswordOperationId): PasswordOperationId {
176
+ let message = target ?? this.create(), end = reader.pos + length;
177
+ while (reader.pos < end) {
178
+ let [fieldNo, wireType] = reader.tag();
179
+ switch (fieldNo) {
180
+ case /* bytes value */ 1:
181
+ message.value = reader.bytes();
182
+ break;
183
+ default:
184
+ let u = options.readUnknownField;
185
+ if (u === "throw")
186
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
187
+ let d = reader.skip(wireType);
188
+ if (u !== false)
189
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
190
+ }
191
+ }
192
+ return message;
193
+ }
194
+ internalBinaryWrite(message: PasswordOperationId, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
195
+ /* bytes value = 1; */
196
+ if (message.value.length)
197
+ writer.tag(1, WireType.LengthDelimited).bytes(message.value);
198
+ let u = options.writeUnknownFields;
199
+ if (u !== false)
200
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
201
+ return writer;
202
+ }
203
+ }
204
+ /**
205
+ * @generated MessageType for protobuf message sid.v1.ids.PasswordOperationId
206
+ */
207
+ export const PasswordOperationId = new PasswordOperationId$Type();
208
+ // @generated message type with reflection information, may provide speed optimized methods
209
+ class MachineUserId$Type extends MessageType<MachineUserId> {
210
+ constructor() {
211
+ super("sid.v1.ids.MachineUserId", [
212
+ { no: 1, name: "value", kind: "scalar", T: 12 /*ScalarType.BYTES*/ }
213
+ ]);
214
+ }
215
+ create(value?: PartialMessage<MachineUserId>): MachineUserId {
216
+ const message = globalThis.Object.create((this.messagePrototype!));
217
+ message.value = new Uint8Array(0);
218
+ if (value !== undefined)
219
+ reflectionMergePartial<MachineUserId>(this, message, value);
220
+ return message;
221
+ }
222
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: MachineUserId): MachineUserId {
223
+ let message = target ?? this.create(), end = reader.pos + length;
224
+ while (reader.pos < end) {
225
+ let [fieldNo, wireType] = reader.tag();
226
+ switch (fieldNo) {
227
+ case /* bytes value */ 1:
228
+ message.value = reader.bytes();
229
+ break;
230
+ default:
231
+ let u = options.readUnknownField;
232
+ if (u === "throw")
233
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
234
+ let d = reader.skip(wireType);
235
+ if (u !== false)
236
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
237
+ }
238
+ }
239
+ return message;
240
+ }
241
+ internalBinaryWrite(message: MachineUserId, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
242
+ /* bytes value = 1; */
243
+ if (message.value.length)
244
+ writer.tag(1, WireType.LengthDelimited).bytes(message.value);
245
+ let u = options.writeUnknownFields;
246
+ if (u !== false)
247
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
248
+ return writer;
249
+ }
250
+ }
251
+ /**
252
+ * @generated MessageType for protobuf message sid.v1.ids.MachineUserId
253
+ */
254
+ export const MachineUserId = new MachineUserId$Type();
255
+ // @generated message type with reflection information, may provide speed optimized methods
256
+ class ProvisioningConnectorId$Type extends MessageType<ProvisioningConnectorId> {
257
+ constructor() {
258
+ super("sid.v1.ids.ProvisioningConnectorId", [
259
+ { no: 1, name: "value", kind: "scalar", T: 12 /*ScalarType.BYTES*/ }
260
+ ]);
261
+ }
262
+ create(value?: PartialMessage<ProvisioningConnectorId>): ProvisioningConnectorId {
263
+ const message = globalThis.Object.create((this.messagePrototype!));
264
+ message.value = new Uint8Array(0);
265
+ if (value !== undefined)
266
+ reflectionMergePartial<ProvisioningConnectorId>(this, message, value);
267
+ return message;
268
+ }
269
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ProvisioningConnectorId): ProvisioningConnectorId {
270
+ let message = target ?? this.create(), end = reader.pos + length;
271
+ while (reader.pos < end) {
272
+ let [fieldNo, wireType] = reader.tag();
273
+ switch (fieldNo) {
274
+ case /* bytes value */ 1:
275
+ message.value = reader.bytes();
276
+ break;
277
+ default:
278
+ let u = options.readUnknownField;
279
+ if (u === "throw")
280
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
281
+ let d = reader.skip(wireType);
282
+ if (u !== false)
283
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
284
+ }
285
+ }
286
+ return message;
287
+ }
288
+ internalBinaryWrite(message: ProvisioningConnectorId, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
289
+ /* bytes value = 1; */
290
+ if (message.value.length)
291
+ writer.tag(1, WireType.LengthDelimited).bytes(message.value);
292
+ let u = options.writeUnknownFields;
293
+ if (u !== false)
294
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
295
+ return writer;
296
+ }
297
+ }
298
+ /**
299
+ * @generated MessageType for protobuf message sid.v1.ids.ProvisioningConnectorId
300
+ */
301
+ export const ProvisioningConnectorId = new ProvisioningConnectorId$Type();
302
+ // @generated message type with reflection information, may provide speed optimized methods
303
+ class ResourceId$Type extends MessageType<ResourceId> {
304
+ constructor() {
305
+ super("sid.v1.ids.ResourceId", [
306
+ { no: 1, name: "value", kind: "scalar", T: 12 /*ScalarType.BYTES*/ }
307
+ ]);
308
+ }
309
+ create(value?: PartialMessage<ResourceId>): ResourceId {
310
+ const message = globalThis.Object.create((this.messagePrototype!));
311
+ message.value = new Uint8Array(0);
312
+ if (value !== undefined)
313
+ reflectionMergePartial<ResourceId>(this, message, value);
314
+ return message;
315
+ }
316
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ResourceId): ResourceId {
317
+ let message = target ?? this.create(), end = reader.pos + length;
318
+ while (reader.pos < end) {
319
+ let [fieldNo, wireType] = reader.tag();
320
+ switch (fieldNo) {
321
+ case /* bytes value */ 1:
322
+ message.value = reader.bytes();
323
+ break;
324
+ default:
325
+ let u = options.readUnknownField;
326
+ if (u === "throw")
327
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
328
+ let d = reader.skip(wireType);
329
+ if (u !== false)
330
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
331
+ }
332
+ }
333
+ return message;
334
+ }
335
+ internalBinaryWrite(message: ResourceId, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
336
+ /* bytes value = 1; */
337
+ if (message.value.length)
338
+ writer.tag(1, WireType.LengthDelimited).bytes(message.value);
339
+ let u = options.writeUnknownFields;
340
+ if (u !== false)
341
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
342
+ return writer;
343
+ }
344
+ }
345
+ /**
346
+ * @generated MessageType for protobuf message sid.v1.ids.ResourceId
347
+ */
348
+ export const ResourceId = new ResourceId$Type();
349
+ // @generated message type with reflection information, may provide speed optimized methods
350
+ class ProvisioningCredentialId$Type extends MessageType<ProvisioningCredentialId> {
351
+ constructor() {
352
+ super("sid.v1.ids.ProvisioningCredentialId", [
353
+ { no: 1, name: "value", kind: "scalar", T: 12 /*ScalarType.BYTES*/ }
354
+ ]);
355
+ }
356
+ create(value?: PartialMessage<ProvisioningCredentialId>): ProvisioningCredentialId {
357
+ const message = globalThis.Object.create((this.messagePrototype!));
358
+ message.value = new Uint8Array(0);
359
+ if (value !== undefined)
360
+ reflectionMergePartial<ProvisioningCredentialId>(this, message, value);
361
+ return message;
362
+ }
363
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ProvisioningCredentialId): ProvisioningCredentialId {
364
+ let message = target ?? this.create(), end = reader.pos + length;
365
+ while (reader.pos < end) {
366
+ let [fieldNo, wireType] = reader.tag();
367
+ switch (fieldNo) {
368
+ case /* bytes value */ 1:
369
+ message.value = reader.bytes();
370
+ break;
371
+ default:
372
+ let u = options.readUnknownField;
373
+ if (u === "throw")
374
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
375
+ let d = reader.skip(wireType);
376
+ if (u !== false)
377
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
378
+ }
379
+ }
380
+ return message;
381
+ }
382
+ internalBinaryWrite(message: ProvisioningCredentialId, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
383
+ /* bytes value = 1; */
384
+ if (message.value.length)
385
+ writer.tag(1, WireType.LengthDelimited).bytes(message.value);
386
+ let u = options.writeUnknownFields;
387
+ if (u !== false)
388
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
389
+ return writer;
390
+ }
391
+ }
392
+ /**
393
+ * @generated MessageType for protobuf message sid.v1.ids.ProvisioningCredentialId
394
+ */
395
+ export const ProvisioningCredentialId = new ProvisioningCredentialId$Type();
@@ -58,10 +58,6 @@ export interface MachineUserInfo {
58
58
  * @generated from protobuf field: repeated string scopes = 10
59
59
  */
60
60
  scopes: string[];
61
- /**
62
- * @generated from protobuf field: repeated string roles = 11
63
- */
64
- roles: string[];
65
61
  /**
66
62
  * @generated from protobuf field: repeated string ip_allowlist = 12
67
63
  */
@@ -175,10 +171,6 @@ export interface CreateMachineUserRequest {
175
171
  * @generated from protobuf field: repeated string scopes = 5
176
172
  */
177
173
  scopes: string[];
178
- /**
179
- * @generated from protobuf field: repeated string roles = 6
180
- */
181
- roles: string[];
182
174
  /**
183
175
  * @generated from protobuf field: repeated string ip_allowlist = 7
184
176
  */
@@ -243,10 +235,6 @@ export interface UpdateMachineUserRequest {
243
235
  * @generated from protobuf field: repeated string scopes = 4
244
236
  */
245
237
  scopes: string[];
246
- /**
247
- * @generated from protobuf field: repeated string roles = 5
248
- */
249
- roles: string[];
250
238
  /**
251
239
  * @generated from protobuf field: repeated string ip_allowlist = 6
252
240
  */
@@ -633,7 +621,6 @@ class MachineUserInfo$Type extends MessageType<MachineUserInfo> {
633
621
  { no: 8, name: "owner_type", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
634
622
  { no: 9, name: "owner_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
635
623
  { no: 10, name: "scopes", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
636
- { no: 11, name: "roles", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
637
624
  { no: 12, name: "ip_allowlist", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
638
625
  { no: 13, name: "rate_limit_rpm", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
639
626
  { no: 14, name: "max_token_lifetime", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
@@ -655,7 +642,6 @@ class MachineUserInfo$Type extends MessageType<MachineUserInfo> {
655
642
  message.ownerType = "";
656
643
  message.ownerId = "";
657
644
  message.scopes = [];
658
- message.roles = [];
659
645
  message.ipAllowlist = [];
660
646
  message.rateLimitRpm = 0;
661
647
  message.maxTokenLifetime = 0;
@@ -698,9 +684,6 @@ class MachineUserInfo$Type extends MessageType<MachineUserInfo> {
698
684
  case /* repeated string scopes */ 10:
699
685
  message.scopes.push(reader.string());
700
686
  break;
701
- case /* repeated string roles */ 11:
702
- message.roles.push(reader.string());
703
- break;
704
687
  case /* repeated string ip_allowlist */ 12:
705
688
  message.ipAllowlist.push(reader.string());
706
689
  break;
@@ -764,9 +747,6 @@ class MachineUserInfo$Type extends MessageType<MachineUserInfo> {
764
747
  /* repeated string scopes = 10; */
765
748
  for (let i = 0; i < message.scopes.length; i++)
766
749
  writer.tag(10, WireType.LengthDelimited).string(message.scopes[i]);
767
- /* repeated string roles = 11; */
768
- for (let i = 0; i < message.roles.length; i++)
769
- writer.tag(11, WireType.LengthDelimited).string(message.roles[i]);
770
750
  /* repeated string ip_allowlist = 12; */
771
751
  for (let i = 0; i < message.ipAllowlist.length; i++)
772
752
  writer.tag(12, WireType.LengthDelimited).string(message.ipAllowlist[i]);
@@ -978,7 +958,6 @@ class CreateMachineUserRequest$Type extends MessageType<CreateMachineUserRequest
978
958
  { no: 3, name: "description", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
979
959
  { no: 4, name: "machine_type", kind: "enum", T: () => ["sid.v1.machine.MachineUserType", MachineUserType, "MACHINE_USER_TYPE_"] },
980
960
  { no: 5, name: "scopes", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
981
- { no: 6, name: "roles", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
982
961
  { no: 7, name: "ip_allowlist", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
983
962
  { no: 8, name: "rate_limit_rpm", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
984
963
  { no: 9, name: "max_token_lifetime", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
@@ -992,7 +971,6 @@ class CreateMachineUserRequest$Type extends MessageType<CreateMachineUserRequest
992
971
  message.description = "";
993
972
  message.machineType = 0;
994
973
  message.scopes = [];
995
- message.roles = [];
996
974
  message.ipAllowlist = [];
997
975
  message.rateLimitRpm = 0;
998
976
  message.maxTokenLifetime = 0;
@@ -1020,9 +998,6 @@ class CreateMachineUserRequest$Type extends MessageType<CreateMachineUserRequest
1020
998
  case /* repeated string scopes */ 5:
1021
999
  message.scopes.push(reader.string());
1022
1000
  break;
1023
- case /* repeated string roles */ 6:
1024
- message.roles.push(reader.string());
1025
- break;
1026
1001
  case /* repeated string ip_allowlist */ 7:
1027
1002
  message.ipAllowlist.push(reader.string());
1028
1003
  break;
@@ -1062,9 +1037,6 @@ class CreateMachineUserRequest$Type extends MessageType<CreateMachineUserRequest
1062
1037
  /* repeated string scopes = 5; */
1063
1038
  for (let i = 0; i < message.scopes.length; i++)
1064
1039
  writer.tag(5, WireType.LengthDelimited).string(message.scopes[i]);
1065
- /* repeated string roles = 6; */
1066
- for (let i = 0; i < message.roles.length; i++)
1067
- writer.tag(6, WireType.LengthDelimited).string(message.roles[i]);
1068
1040
  /* repeated string ip_allowlist = 7; */
1069
1041
  for (let i = 0; i < message.ipAllowlist.length; i++)
1070
1042
  writer.tag(7, WireType.LengthDelimited).string(message.ipAllowlist[i]);
@@ -1234,7 +1206,6 @@ class UpdateMachineUserRequest$Type extends MessageType<UpdateMachineUserRequest
1234
1206
  { no: 2, name: "display_name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1235
1207
  { no: 3, name: "description", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1236
1208
  { no: 4, name: "scopes", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
1237
- { no: 5, name: "roles", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
1238
1209
  { no: 6, name: "ip_allowlist", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
1239
1210
  { no: 7, name: "rate_limit_rpm", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
1240
1211
  { no: 8, name: "max_token_lifetime", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
@@ -1247,7 +1218,6 @@ class UpdateMachineUserRequest$Type extends MessageType<UpdateMachineUserRequest
1247
1218
  message.displayName = "";
1248
1219
  message.description = "";
1249
1220
  message.scopes = [];
1250
- message.roles = [];
1251
1221
  message.ipAllowlist = [];
1252
1222
  message.rateLimitRpm = 0;
1253
1223
  message.maxTokenLifetime = 0;
@@ -1272,9 +1242,6 @@ class UpdateMachineUserRequest$Type extends MessageType<UpdateMachineUserRequest
1272
1242
  case /* repeated string scopes */ 4:
1273
1243
  message.scopes.push(reader.string());
1274
1244
  break;
1275
- case /* repeated string roles */ 5:
1276
- message.roles.push(reader.string());
1277
- break;
1278
1245
  case /* repeated string ip_allowlist */ 6:
1279
1246
  message.ipAllowlist.push(reader.string());
1280
1247
  break;
@@ -1311,9 +1278,6 @@ class UpdateMachineUserRequest$Type extends MessageType<UpdateMachineUserRequest
1311
1278
  /* repeated string scopes = 4; */
1312
1279
  for (let i = 0; i < message.scopes.length; i++)
1313
1280
  writer.tag(4, WireType.LengthDelimited).string(message.scopes[i]);
1314
- /* repeated string roles = 5; */
1315
- for (let i = 0; i < message.roles.length; i++)
1316
- writer.tag(5, WireType.LengthDelimited).string(message.roles[i]);
1317
1281
  /* repeated string ip_allowlist = 6; */
1318
1282
  for (let i = 0; i < message.ipAllowlist.length; i++)
1319
1283
  writer.tag(6, WireType.LengthDelimited).string(message.ipAllowlist[i]);
@@ -7,8 +7,6 @@ import { PatService } from "./pat";
7
7
  import type { AdminRevokePatRequest } from "./pat";
8
8
  import type { ListAllPatsResponse } from "./pat";
9
9
  import type { ListAllPatsRequest } from "./pat";
10
- import type { IntrospectPatResponse } from "./pat";
11
- import type { IntrospectPatRequest } from "./pat";
12
10
  import type { ExchangePatResponse } from "./pat";
13
11
  import type { ExchangePatRequest } from "./pat";
14
12
  import type { RevokePatResponse } from "./pat";
@@ -52,12 +50,6 @@ export interface IPatServiceClient {
52
50
  * @generated from protobuf rpc: ExchangePat
53
51
  */
54
52
  exchangePat(input: ExchangePatRequest, options?: RpcOptions): UnaryCall<ExchangePatRequest, ExchangePatResponse>;
55
- /**
56
- * Introspection (RFC 7662, opaque model).
57
- *
58
- * @generated from protobuf rpc: IntrospectPat
59
- */
60
- introspectPat(input: IntrospectPatRequest, options?: RpcOptions): UnaryCall<IntrospectPatRequest, IntrospectPatResponse>;
61
53
  /**
62
54
  * Admin.
63
55
  *
@@ -119,29 +111,20 @@ export class PatServiceClient implements IPatServiceClient, ServiceInfo {
119
111
  const method = this.methods[4], opt = this._transport.mergeOptions(options);
120
112
  return stackIntercept<ExchangePatRequest, ExchangePatResponse>("unary", this._transport, method, opt, input);
121
113
  }
122
- /**
123
- * Introspection (RFC 7662, opaque model).
124
- *
125
- * @generated from protobuf rpc: IntrospectPat
126
- */
127
- introspectPat(input: IntrospectPatRequest, options?: RpcOptions): UnaryCall<IntrospectPatRequest, IntrospectPatResponse> {
128
- const method = this.methods[5], opt = this._transport.mergeOptions(options);
129
- return stackIntercept<IntrospectPatRequest, IntrospectPatResponse>("unary", this._transport, method, opt, input);
130
- }
131
114
  /**
132
115
  * Admin.
133
116
  *
134
117
  * @generated from protobuf rpc: ListAllPats
135
118
  */
136
119
  listAllPats(input: ListAllPatsRequest, options?: RpcOptions): UnaryCall<ListAllPatsRequest, ListAllPatsResponse> {
137
- const method = this.methods[6], opt = this._transport.mergeOptions(options);
120
+ const method = this.methods[5], opt = this._transport.mergeOptions(options);
138
121
  return stackIntercept<ListAllPatsRequest, ListAllPatsResponse>("unary", this._transport, method, opt, input);
139
122
  }
140
123
  /**
141
124
  * @generated from protobuf rpc: AdminRevokePat
142
125
  */
143
126
  adminRevokePat(input: AdminRevokePatRequest, options?: RpcOptions): UnaryCall<AdminRevokePatRequest, RevokePatResponse> {
144
- const method = this.methods[7], opt = this._transport.mergeOptions(options);
127
+ const method = this.methods[6], opt = this._transport.mergeOptions(options);
145
128
  return stackIntercept<AdminRevokePatRequest, RevokePatResponse>("unary", this._transport, method, opt, input);
146
129
  }
147
130
  }