@structured-id/proto 0.14.0 → 0.15.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 +8 -0
- package/dist/generated/sid/v1/authz/authz.d.ts +203 -111
- package/dist/generated/sid/v1/authz/authz.js +308 -330
- package/dist/generated/sid/v1/authz/authz.js.map +1 -1
- package/dist/generated/sid/v1/authz/governance.d.ts +40 -26
- package/dist/generated/sid/v1/authz/governance.js +65 -71
- package/dist/generated/sid/v1/authz/governance.js.map +1 -1
- package/dist/generated/sid/v1/ids/ids.d.ts +4 -0
- package/dist/generated/sid/v1/ids/ids.js +2 -0
- package/dist/generated/sid/v1/ids/ids.js.map +1 -1
- package/dist/generated/sid/v1/machine/machine_user.d.ts +100 -48
- package/dist/generated/sid/v1/machine/machine_user.js +228 -179
- package/dist/generated/sid/v1/machine/machine_user.js.map +1 -1
- package/dist/generated/sid/v1/machine/pat.d.ts +16 -12
- package/dist/generated/sid/v1/machine/pat.js +41 -45
- package/dist/generated/sid/v1/machine/pat.js.map +1 -1
- package/dist/generated/sid/v1/projects/projects.d.ts +141 -103
- package/dist/generated/sid/v1/projects/projects.js +293 -271
- package/dist/generated/sid/v1/projects/projects.js.map +1 -1
- package/package.json +2 -2
|
@@ -5,7 +5,12 @@ import type { BinaryReadOptions } from "@protobuf-ts/runtime";
|
|
|
5
5
|
import type { IBinaryReader } from "@protobuf-ts/runtime";
|
|
6
6
|
import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
7
7
|
import { MessageType } from "@protobuf-ts/runtime";
|
|
8
|
+
import { Empty } from "../../../google/protobuf/empty.js";
|
|
9
|
+
import { OrgId } from "../ids/ids.js";
|
|
10
|
+
import { ProfileId } from "../ids/ids.js";
|
|
8
11
|
import { Timestamp } from "../../../google/protobuf/timestamp.js";
|
|
12
|
+
import { ProjectId } from "../ids/ids.js";
|
|
13
|
+
import { MachineUserId } from "../ids/ids.js";
|
|
9
14
|
/**
|
|
10
15
|
* Messages
|
|
11
16
|
*
|
|
@@ -13,14 +18,16 @@ import { Timestamp } from "../../../google/protobuf/timestamp.js";
|
|
|
13
18
|
*/
|
|
14
19
|
export interface MachineUserInfo {
|
|
15
20
|
/**
|
|
16
|
-
* @generated from protobuf field:
|
|
21
|
+
* @generated from protobuf field: sid.v1.ids.MachineUserId id = 1
|
|
17
22
|
*/
|
|
18
|
-
id
|
|
23
|
+
id?: MachineUserId;
|
|
19
24
|
/**
|
|
20
|
-
* @generated from protobuf field:
|
|
25
|
+
* @generated from protobuf field: sid.v1.ids.ProjectId project_id = 2
|
|
21
26
|
*/
|
|
22
|
-
projectId
|
|
27
|
+
projectId?: ProjectId;
|
|
23
28
|
/**
|
|
29
|
+
* The OAuth `client_id` (RFC 6749 §2.2) the machine user authenticates as.
|
|
30
|
+
*
|
|
24
31
|
* @generated from protobuf field: string client_id = 3
|
|
25
32
|
*/
|
|
26
33
|
clientId: string;
|
|
@@ -41,49 +48,84 @@ export interface MachineUserInfo {
|
|
|
41
48
|
*/
|
|
42
49
|
status: MachineUserStatus;
|
|
43
50
|
/**
|
|
44
|
-
*
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* @generated from protobuf field: string owner_id = 9
|
|
51
|
+
* Who the machine user acts for.
|
|
52
|
+
*
|
|
53
|
+
* @generated from protobuf field: sid.v1.machine.MachineUserOwner owner = 8
|
|
49
54
|
*/
|
|
50
|
-
|
|
55
|
+
owner?: MachineUserOwner;
|
|
51
56
|
/**
|
|
52
57
|
* Roles are RoleAssignments of the machine user principal (AuthzService),
|
|
53
58
|
* never a list stored on the machine user.
|
|
54
59
|
*
|
|
55
|
-
* @generated from protobuf field: repeated string scopes =
|
|
60
|
+
* @generated from protobuf field: repeated string scopes = 9
|
|
56
61
|
*/
|
|
57
62
|
scopes: string[];
|
|
58
63
|
/**
|
|
59
|
-
* @generated from protobuf field: repeated string ip_allowlist =
|
|
64
|
+
* @generated from protobuf field: repeated string ip_allowlist = 10
|
|
60
65
|
*/
|
|
61
66
|
ipAllowlist: string[];
|
|
62
67
|
/**
|
|
63
|
-
* @generated from protobuf field: int32 rate_limit_rpm =
|
|
68
|
+
* @generated from protobuf field: int32 rate_limit_rpm = 11
|
|
64
69
|
*/
|
|
65
70
|
rateLimitRpm: number;
|
|
66
71
|
/**
|
|
67
|
-
* @generated from protobuf field: int32 max_token_lifetime =
|
|
72
|
+
* @generated from protobuf field: int32 max_token_lifetime = 12
|
|
68
73
|
*/
|
|
69
74
|
maxTokenLifetime: number;
|
|
70
75
|
/**
|
|
71
|
-
* @generated from protobuf field: google.protobuf.Timestamp expires_at =
|
|
76
|
+
* @generated from protobuf field: google.protobuf.Timestamp expires_at = 13
|
|
72
77
|
*/
|
|
73
78
|
expiresAt?: Timestamp;
|
|
74
79
|
/**
|
|
75
|
-
* @generated from protobuf field: google.protobuf.Timestamp last_used_at =
|
|
80
|
+
* @generated from protobuf field: google.protobuf.Timestamp last_used_at = 14
|
|
76
81
|
*/
|
|
77
82
|
lastUsedAt?: Timestamp;
|
|
78
83
|
/**
|
|
79
|
-
* @generated from protobuf field: google.protobuf.Timestamp created_at =
|
|
84
|
+
* @generated from protobuf field: google.protobuf.Timestamp created_at = 15
|
|
80
85
|
*/
|
|
81
86
|
createdAt?: Timestamp;
|
|
82
87
|
/**
|
|
83
|
-
* @generated from protobuf field: google.protobuf.Timestamp updated_at =
|
|
88
|
+
* @generated from protobuf field: google.protobuf.Timestamp updated_at = 16
|
|
84
89
|
*/
|
|
85
90
|
updatedAt?: Timestamp;
|
|
86
91
|
}
|
|
92
|
+
/**
|
|
93
|
+
* Who a machine user acts for. Set at its creation and never changed.
|
|
94
|
+
*
|
|
95
|
+
* @generated from protobuf message sid.v1.machine.MachineUserOwner
|
|
96
|
+
*/
|
|
97
|
+
export interface MachineUserOwner {
|
|
98
|
+
/**
|
|
99
|
+
* @generated from protobuf oneof: owner
|
|
100
|
+
*/
|
|
101
|
+
owner: {
|
|
102
|
+
oneofKind: "profile";
|
|
103
|
+
/**
|
|
104
|
+
* A Profile's own machine user.
|
|
105
|
+
*
|
|
106
|
+
* @generated from protobuf field: sid.v1.ids.ProfileId profile = 1
|
|
107
|
+
*/
|
|
108
|
+
profile: ProfileId;
|
|
109
|
+
} | {
|
|
110
|
+
oneofKind: "organization";
|
|
111
|
+
/**
|
|
112
|
+
* An organization's machine user, created by its administrators.
|
|
113
|
+
*
|
|
114
|
+
* @generated from protobuf field: sid.v1.ids.OrgId organization = 2
|
|
115
|
+
*/
|
|
116
|
+
organization: OrgId;
|
|
117
|
+
} | {
|
|
118
|
+
oneofKind: "system";
|
|
119
|
+
/**
|
|
120
|
+
* The installation's own, established by its provisioning only.
|
|
121
|
+
*
|
|
122
|
+
* @generated from protobuf field: google.protobuf.Empty system = 3
|
|
123
|
+
*/
|
|
124
|
+
system: Empty;
|
|
125
|
+
} | {
|
|
126
|
+
oneofKind: undefined;
|
|
127
|
+
};
|
|
128
|
+
}
|
|
87
129
|
/**
|
|
88
130
|
* @generated from protobuf message sid.v1.machine.MachineCredentialInfo
|
|
89
131
|
*/
|
|
@@ -122,9 +164,9 @@ export interface ImpersonationGrantInfo {
|
|
|
122
164
|
*/
|
|
123
165
|
id: string;
|
|
124
166
|
/**
|
|
125
|
-
* @generated from protobuf field:
|
|
167
|
+
* @generated from protobuf field: sid.v1.ids.MachineUserId machine_user_id = 2
|
|
126
168
|
*/
|
|
127
|
-
machineUserId
|
|
169
|
+
machineUserId?: MachineUserId;
|
|
128
170
|
/**
|
|
129
171
|
* @generated from protobuf field: sid.v1.machine.ImpersonationTargetType target_type = 3
|
|
130
172
|
*/
|
|
@@ -147,9 +189,9 @@ export interface ImpersonationGrantInfo {
|
|
|
147
189
|
*/
|
|
148
190
|
export interface CreateMachineUserRequest {
|
|
149
191
|
/**
|
|
150
|
-
* @generated from protobuf field:
|
|
192
|
+
* @generated from protobuf field: sid.v1.ids.ProjectId project_id = 1
|
|
151
193
|
*/
|
|
152
|
-
projectId
|
|
194
|
+
projectId?: ProjectId;
|
|
153
195
|
/**
|
|
154
196
|
* @generated from protobuf field: string display_name = 2
|
|
155
197
|
*/
|
|
@@ -199,9 +241,9 @@ export interface CreateMachineUserResponse {
|
|
|
199
241
|
*/
|
|
200
242
|
export interface GetMachineUserRequest {
|
|
201
243
|
/**
|
|
202
|
-
* @generated from protobuf field:
|
|
244
|
+
* @generated from protobuf field: sid.v1.ids.MachineUserId machine_user_id = 1
|
|
203
245
|
*/
|
|
204
|
-
machineUserId
|
|
246
|
+
machineUserId?: MachineUserId;
|
|
205
247
|
}
|
|
206
248
|
/**
|
|
207
249
|
* @generated from protobuf message sid.v1.machine.MachineUserResponse
|
|
@@ -217,9 +259,9 @@ export interface MachineUserResponse {
|
|
|
217
259
|
*/
|
|
218
260
|
export interface UpdateMachineUserRequest {
|
|
219
261
|
/**
|
|
220
|
-
* @generated from protobuf field:
|
|
262
|
+
* @generated from protobuf field: sid.v1.ids.MachineUserId machine_user_id = 1
|
|
221
263
|
*/
|
|
222
|
-
machineUserId
|
|
264
|
+
machineUserId?: MachineUserId;
|
|
223
265
|
/**
|
|
224
266
|
* @generated from protobuf field: string display_name = 2
|
|
225
267
|
*/
|
|
@@ -256,9 +298,9 @@ export interface UpdateMachineUserRequest {
|
|
|
256
298
|
*/
|
|
257
299
|
export interface DeleteMachineUserRequest {
|
|
258
300
|
/**
|
|
259
|
-
* @generated from protobuf field:
|
|
301
|
+
* @generated from protobuf field: sid.v1.ids.MachineUserId machine_user_id = 1
|
|
260
302
|
*/
|
|
261
|
-
machineUserId
|
|
303
|
+
machineUserId?: MachineUserId;
|
|
262
304
|
}
|
|
263
305
|
/**
|
|
264
306
|
* @generated from protobuf message sid.v1.machine.DeleteMachineUserResponse
|
|
@@ -270,9 +312,9 @@ export interface DeleteMachineUserResponse {
|
|
|
270
312
|
*/
|
|
271
313
|
export interface ListMachineUsersRequest {
|
|
272
314
|
/**
|
|
273
|
-
* @generated from protobuf field:
|
|
315
|
+
* @generated from protobuf field: sid.v1.ids.ProjectId project_id = 1
|
|
274
316
|
*/
|
|
275
|
-
projectId
|
|
317
|
+
projectId?: ProjectId;
|
|
276
318
|
}
|
|
277
319
|
/**
|
|
278
320
|
* @generated from protobuf message sid.v1.machine.ListMachineUsersResponse
|
|
@@ -288,27 +330,27 @@ export interface ListMachineUsersResponse {
|
|
|
288
330
|
*/
|
|
289
331
|
export interface SuspendMachineUserRequest {
|
|
290
332
|
/**
|
|
291
|
-
* @generated from protobuf field:
|
|
333
|
+
* @generated from protobuf field: sid.v1.ids.MachineUserId machine_user_id = 1
|
|
292
334
|
*/
|
|
293
|
-
machineUserId
|
|
335
|
+
machineUserId?: MachineUserId;
|
|
294
336
|
}
|
|
295
337
|
/**
|
|
296
338
|
* @generated from protobuf message sid.v1.machine.ReactivateMachineUserRequest
|
|
297
339
|
*/
|
|
298
340
|
export interface ReactivateMachineUserRequest {
|
|
299
341
|
/**
|
|
300
|
-
* @generated from protobuf field:
|
|
342
|
+
* @generated from protobuf field: sid.v1.ids.MachineUserId machine_user_id = 1
|
|
301
343
|
*/
|
|
302
|
-
machineUserId
|
|
344
|
+
machineUserId?: MachineUserId;
|
|
303
345
|
}
|
|
304
346
|
/**
|
|
305
347
|
* @generated from protobuf message sid.v1.machine.AddMachineCredentialRequest
|
|
306
348
|
*/
|
|
307
349
|
export interface AddMachineCredentialRequest {
|
|
308
350
|
/**
|
|
309
|
-
* @generated from protobuf field:
|
|
351
|
+
* @generated from protobuf field: sid.v1.ids.MachineUserId machine_user_id = 1
|
|
310
352
|
*/
|
|
311
|
-
machineUserId
|
|
353
|
+
machineUserId?: MachineUserId;
|
|
312
354
|
/**
|
|
313
355
|
* @generated from protobuf field: sid.v1.machine.MachineCredentialType credential_type = 2
|
|
314
356
|
*/
|
|
@@ -344,9 +386,9 @@ export interface AddMachineCredentialResponse {
|
|
|
344
386
|
*/
|
|
345
387
|
export interface RevokeMachineCredentialRequest {
|
|
346
388
|
/**
|
|
347
|
-
* @generated from protobuf field:
|
|
389
|
+
* @generated from protobuf field: sid.v1.ids.MachineUserId machine_user_id = 1
|
|
348
390
|
*/
|
|
349
|
-
machineUserId
|
|
391
|
+
machineUserId?: MachineUserId;
|
|
350
392
|
/**
|
|
351
393
|
* @generated from protobuf field: string kid = 2
|
|
352
394
|
*/
|
|
@@ -362,9 +404,9 @@ export interface RevokeMachineCredentialResponse {
|
|
|
362
404
|
*/
|
|
363
405
|
export interface ListMachineCredentialsRequest {
|
|
364
406
|
/**
|
|
365
|
-
* @generated from protobuf field:
|
|
407
|
+
* @generated from protobuf field: sid.v1.ids.MachineUserId machine_user_id = 1
|
|
366
408
|
*/
|
|
367
|
-
machineUserId
|
|
409
|
+
machineUserId?: MachineUserId;
|
|
368
410
|
}
|
|
369
411
|
/**
|
|
370
412
|
* @generated from protobuf message sid.v1.machine.ListMachineCredentialsResponse
|
|
@@ -380,9 +422,9 @@ export interface ListMachineCredentialsResponse {
|
|
|
380
422
|
*/
|
|
381
423
|
export interface RotateMachineCredentialRequest {
|
|
382
424
|
/**
|
|
383
|
-
* @generated from protobuf field:
|
|
425
|
+
* @generated from protobuf field: sid.v1.ids.MachineUserId machine_user_id = 1
|
|
384
426
|
*/
|
|
385
|
-
machineUserId
|
|
427
|
+
machineUserId?: MachineUserId;
|
|
386
428
|
/**
|
|
387
429
|
* @generated from protobuf field: string kid = 2
|
|
388
430
|
*/
|
|
@@ -422,9 +464,9 @@ export interface RotateMachineCredentialResponse {
|
|
|
422
464
|
*/
|
|
423
465
|
export interface GrantImpersonationRequest {
|
|
424
466
|
/**
|
|
425
|
-
* @generated from protobuf field:
|
|
467
|
+
* @generated from protobuf field: sid.v1.ids.MachineUserId machine_user_id = 1
|
|
426
468
|
*/
|
|
427
|
-
machineUserId
|
|
469
|
+
machineUserId?: MachineUserId;
|
|
428
470
|
/**
|
|
429
471
|
* @generated from protobuf field: sid.v1.machine.ImpersonationTargetType target_type = 2
|
|
430
472
|
*/
|
|
@@ -452,9 +494,9 @@ export interface GrantImpersonationResponse {
|
|
|
452
494
|
*/
|
|
453
495
|
export interface RevokeImpersonationRequest {
|
|
454
496
|
/**
|
|
455
|
-
* @generated from protobuf field:
|
|
497
|
+
* @generated from protobuf field: sid.v1.ids.MachineUserId machine_user_id = 1
|
|
456
498
|
*/
|
|
457
|
-
machineUserId
|
|
499
|
+
machineUserId?: MachineUserId;
|
|
458
500
|
/**
|
|
459
501
|
* @generated from protobuf field: string target_type = 2
|
|
460
502
|
*/
|
|
@@ -474,9 +516,9 @@ export interface RevokeImpersonationResponse {
|
|
|
474
516
|
*/
|
|
475
517
|
export interface ListImpersonationGrantsRequest {
|
|
476
518
|
/**
|
|
477
|
-
* @generated from protobuf field:
|
|
519
|
+
* @generated from protobuf field: sid.v1.ids.MachineUserId machine_user_id = 1
|
|
478
520
|
*/
|
|
479
|
-
machineUserId
|
|
521
|
+
machineUserId?: MachineUserId;
|
|
480
522
|
}
|
|
481
523
|
/**
|
|
482
524
|
* @generated from protobuf message sid.v1.machine.ListImpersonationGrantsResponse
|
|
@@ -612,6 +654,16 @@ declare class MachineUserInfo$Type extends MessageType<MachineUserInfo> {
|
|
|
612
654
|
* @generated MessageType for protobuf message sid.v1.machine.MachineUserInfo
|
|
613
655
|
*/
|
|
614
656
|
export declare const MachineUserInfo: MachineUserInfo$Type;
|
|
657
|
+
declare class MachineUserOwner$Type extends MessageType<MachineUserOwner> {
|
|
658
|
+
constructor();
|
|
659
|
+
create(value?: PartialMessage<MachineUserOwner>): MachineUserOwner;
|
|
660
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: MachineUserOwner): MachineUserOwner;
|
|
661
|
+
internalBinaryWrite(message: MachineUserOwner, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
662
|
+
}
|
|
663
|
+
/**
|
|
664
|
+
* @generated MessageType for protobuf message sid.v1.machine.MachineUserOwner
|
|
665
|
+
*/
|
|
666
|
+
export declare const MachineUserOwner: MachineUserOwner$Type;
|
|
615
667
|
declare class MachineCredentialInfo$Type extends MessageType<MachineCredentialInfo> {
|
|
616
668
|
constructor();
|
|
617
669
|
create(value?: PartialMessage<MachineCredentialInfo>): MachineCredentialInfo;
|