@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,14 @@ 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 { RoleId } from "../ids/ids.js";
|
|
9
|
+
import { InitialAccessTokenId } from "../ids/ids.js";
|
|
10
|
+
import { ResourceId } from "../ids/ids.js";
|
|
11
|
+
import { OrgId } from "../ids/ids.js";
|
|
12
|
+
import { ApplicationId } from "../ids/ids.js";
|
|
8
13
|
import { Timestamp } from "../../../google/protobuf/timestamp.js";
|
|
14
|
+
import { ProfileId } from "../ids/ids.js";
|
|
15
|
+
import { ProjectId } from "../ids/ids.js";
|
|
9
16
|
/**
|
|
10
17
|
* Project is a container for related applications that share authorization scope.
|
|
11
18
|
*
|
|
@@ -13,9 +20,9 @@ import { Timestamp } from "../../../google/protobuf/timestamp.js";
|
|
|
13
20
|
*/
|
|
14
21
|
export interface Project {
|
|
15
22
|
/**
|
|
16
|
-
* @generated from protobuf field:
|
|
23
|
+
* @generated from protobuf field: sid.v1.ids.ProjectId id = 1
|
|
17
24
|
*/
|
|
18
|
-
id
|
|
25
|
+
id?: ProjectId;
|
|
19
26
|
/**
|
|
20
27
|
* @generated from protobuf field: string name = 2
|
|
21
28
|
*/
|
|
@@ -25,9 +32,12 @@ export interface Project {
|
|
|
25
32
|
*/
|
|
26
33
|
description: string;
|
|
27
34
|
/**
|
|
28
|
-
*
|
|
35
|
+
* Profile that owns the project; absent for the system project and once
|
|
36
|
+
* its owner is gone.
|
|
37
|
+
*
|
|
38
|
+
* @generated from protobuf field: sid.v1.ids.ProfileId owner_profile_id = 4
|
|
29
39
|
*/
|
|
30
|
-
ownerProfileId
|
|
40
|
+
ownerProfileId?: ProfileId;
|
|
31
41
|
/**
|
|
32
42
|
* @generated from protobuf field: bool is_system = 5
|
|
33
43
|
*/
|
|
@@ -53,18 +63,18 @@ export interface Project {
|
|
|
53
63
|
*/
|
|
54
64
|
export interface Application {
|
|
55
65
|
/**
|
|
56
|
-
* Server-assigned application identifier
|
|
57
|
-
*
|
|
66
|
+
* Server-assigned application identifier. Stable for the application's
|
|
67
|
+
* lifetime; not a credential and not a token audience.
|
|
58
68
|
*
|
|
59
|
-
* @generated from protobuf field:
|
|
69
|
+
* @generated from protobuf field: sid.v1.ids.ApplicationId id = 1
|
|
60
70
|
*/
|
|
61
|
-
id
|
|
71
|
+
id?: ApplicationId;
|
|
62
72
|
/**
|
|
63
|
-
* Project
|
|
73
|
+
* Project whose authorization vocabulary the application uses.
|
|
64
74
|
*
|
|
65
|
-
* @generated from protobuf field:
|
|
75
|
+
* @generated from protobuf field: sid.v1.ids.ProjectId project_id = 2
|
|
66
76
|
*/
|
|
67
|
-
projectId
|
|
77
|
+
projectId?: ProjectId;
|
|
68
78
|
/**
|
|
69
79
|
* Name shown to administrators.
|
|
70
80
|
*
|
|
@@ -120,17 +130,17 @@ export interface OAuthClient {
|
|
|
120
130
|
*/
|
|
121
131
|
clientId: string;
|
|
122
132
|
/**
|
|
123
|
-
* Application
|
|
133
|
+
* Application whose client role this is.
|
|
124
134
|
*
|
|
125
|
-
* @generated from protobuf field:
|
|
135
|
+
* @generated from protobuf field: sid.v1.ids.ApplicationId application_id = 2
|
|
126
136
|
*/
|
|
127
|
-
applicationId
|
|
137
|
+
applicationId?: ApplicationId;
|
|
128
138
|
/**
|
|
129
|
-
* Project
|
|
139
|
+
* Project of the application.
|
|
130
140
|
*
|
|
131
|
-
* @generated from protobuf field:
|
|
141
|
+
* @generated from protobuf field: sid.v1.ids.ProjectId project_id = 3
|
|
132
142
|
*/
|
|
133
|
-
projectId
|
|
143
|
+
projectId?: ProjectId;
|
|
134
144
|
/**
|
|
135
145
|
* Client name shown to users (RFC 7591 §2 `client_name`).
|
|
136
146
|
*
|
|
@@ -203,14 +213,14 @@ export interface OAuthClient {
|
|
|
203
213
|
*/
|
|
204
214
|
dynamicallyRegistered: boolean;
|
|
205
215
|
/**
|
|
206
|
-
* Recipient organization of this client
|
|
207
|
-
*
|
|
208
|
-
*
|
|
209
|
-
*
|
|
216
|
+
* Recipient organization of this client. A pairwise recipient's subject is
|
|
217
|
+
* the stored BindingId of the (Profile, organization) pair, so every client
|
|
218
|
+
* of one organization sees the same subject for a user and redirect domains
|
|
219
|
+
* do not change it. Assigned at registration.
|
|
210
220
|
*
|
|
211
|
-
* @generated from protobuf field:
|
|
221
|
+
* @generated from protobuf field: sid.v1.ids.OrgId org_id = 19
|
|
212
222
|
*/
|
|
213
|
-
orgId?:
|
|
223
|
+
orgId?: OrgId;
|
|
214
224
|
/**
|
|
215
225
|
* Exact OIDC issuer identifier this client is registered under, the
|
|
216
226
|
* canonical URL `https://<host>/i/<handle>`. Part of the connection details
|
|
@@ -223,15 +233,14 @@ export interface OAuthClient {
|
|
|
223
233
|
*/
|
|
224
234
|
issuer: string;
|
|
225
235
|
/**
|
|
226
|
-
* The protected resource (ProtectedResource.id
|
|
227
|
-
*
|
|
228
|
-
*
|
|
229
|
-
*
|
|
230
|
-
* substituted.
|
|
236
|
+
* The protected resource (ProtectedResource.id) a token is issued for when
|
|
237
|
+
* a token request names none (RFC 8707 §2). Effective only while the client
|
|
238
|
+
* has access to that resource. Without it, a request naming no resource is
|
|
239
|
+
* refused with `invalid_target`; no other audience is substituted.
|
|
231
240
|
*
|
|
232
|
-
* @generated from protobuf field:
|
|
241
|
+
* @generated from protobuf field: sid.v1.ids.ResourceId default_resource_id = 21
|
|
233
242
|
*/
|
|
234
|
-
defaultResourceId?:
|
|
243
|
+
defaultResourceId?: ResourceId;
|
|
235
244
|
/**
|
|
236
245
|
* Stored revision of the client role.
|
|
237
246
|
*
|
|
@@ -262,19 +271,19 @@ export interface OAuthClient {
|
|
|
262
271
|
*/
|
|
263
272
|
export interface ProtectedResource {
|
|
264
273
|
/**
|
|
265
|
-
* Server-assigned resource identifier
|
|
266
|
-
*
|
|
274
|
+
* Server-assigned resource identifier, used to manage the resource and its
|
|
275
|
+
* access. Not the token audience.
|
|
267
276
|
*
|
|
268
|
-
* @generated from protobuf field:
|
|
277
|
+
* @generated from protobuf field: sid.v1.ids.ResourceId id = 1
|
|
269
278
|
*/
|
|
270
|
-
id
|
|
279
|
+
id?: ResourceId;
|
|
271
280
|
/**
|
|
272
|
-
* Application
|
|
273
|
-
*
|
|
281
|
+
* Application holding this role; absent once the resource is retired with
|
|
282
|
+
* its application.
|
|
274
283
|
*
|
|
275
|
-
* @generated from protobuf field:
|
|
284
|
+
* @generated from protobuf field: sid.v1.ids.ApplicationId application_id = 2
|
|
276
285
|
*/
|
|
277
|
-
applicationId?:
|
|
286
|
+
applicationId?: ApplicationId;
|
|
278
287
|
/**
|
|
279
288
|
* The resource indicator (RFC 8707 §2): an absolute URI without a fragment,
|
|
280
289
|
* in canonical form, e.g. `https://api.example.com/orders`. It is the `aud`
|
|
@@ -333,11 +342,11 @@ export interface ResourceAccess {
|
|
|
333
342
|
*/
|
|
334
343
|
clientId: string;
|
|
335
344
|
/**
|
|
336
|
-
* The resource (ProtectedResource.id
|
|
345
|
+
* The resource (ProtectedResource.id) it may obtain tokens for.
|
|
337
346
|
*
|
|
338
|
-
* @generated from protobuf field:
|
|
347
|
+
* @generated from protobuf field: sid.v1.ids.ResourceId resource_id = 2
|
|
339
348
|
*/
|
|
340
|
-
resourceId
|
|
349
|
+
resourceId?: ResourceId;
|
|
341
350
|
/**
|
|
342
351
|
* Scopes this access grants; always a subset of the resource's scopes.
|
|
343
352
|
*
|
|
@@ -356,13 +365,15 @@ export interface ResourceAccess {
|
|
|
356
365
|
*/
|
|
357
366
|
export interface InitialAccessToken {
|
|
358
367
|
/**
|
|
359
|
-
* @generated from protobuf field:
|
|
368
|
+
* @generated from protobuf field: sid.v1.ids.InitialAccessTokenId id = 1
|
|
360
369
|
*/
|
|
361
|
-
id
|
|
370
|
+
id?: InitialAccessTokenId;
|
|
362
371
|
/**
|
|
363
|
-
*
|
|
372
|
+
* Project the clients registered with this token join.
|
|
373
|
+
*
|
|
374
|
+
* @generated from protobuf field: sid.v1.ids.ProjectId project_id = 2
|
|
364
375
|
*/
|
|
365
|
-
projectId
|
|
376
|
+
projectId?: ProjectId;
|
|
366
377
|
/**
|
|
367
378
|
* @generated from protobuf field: uint32 max_clients = 3
|
|
368
379
|
*/
|
|
@@ -392,9 +403,11 @@ export interface InitialAccessToken {
|
|
|
392
403
|
*/
|
|
393
404
|
createdAt?: Timestamp;
|
|
394
405
|
/**
|
|
395
|
-
*
|
|
406
|
+
* Administrator Profile that created the token.
|
|
407
|
+
*
|
|
408
|
+
* @generated from protobuf field: sid.v1.ids.ProfileId created_by = 10
|
|
396
409
|
*/
|
|
397
|
-
createdBy
|
|
410
|
+
createdBy?: ProfileId;
|
|
398
411
|
/**
|
|
399
412
|
* @generated from protobuf field: bool revoked = 11
|
|
400
413
|
*/
|
|
@@ -413,18 +426,20 @@ export interface CreateProjectRequest {
|
|
|
413
426
|
*/
|
|
414
427
|
description: string;
|
|
415
428
|
/**
|
|
416
|
-
*
|
|
429
|
+
* Profile to own the project; absent, the caller owns it.
|
|
430
|
+
*
|
|
431
|
+
* @generated from protobuf field: sid.v1.ids.ProfileId owner_profile_id = 3
|
|
417
432
|
*/
|
|
418
|
-
ownerProfileId
|
|
433
|
+
ownerProfileId?: ProfileId;
|
|
419
434
|
}
|
|
420
435
|
/**
|
|
421
436
|
* @generated from protobuf message sid.v1.projects.GetProjectRequest
|
|
422
437
|
*/
|
|
423
438
|
export interface GetProjectRequest {
|
|
424
439
|
/**
|
|
425
|
-
* @generated from protobuf field:
|
|
440
|
+
* @generated from protobuf field: sid.v1.ids.ProjectId id = 1
|
|
426
441
|
*/
|
|
427
|
-
id
|
|
442
|
+
id?: ProjectId;
|
|
428
443
|
}
|
|
429
444
|
/**
|
|
430
445
|
* @generated from protobuf message sid.v1.projects.ListProjectsRequest
|
|
@@ -457,9 +472,9 @@ export interface ListProjectsResponse {
|
|
|
457
472
|
*/
|
|
458
473
|
export interface UpdateProjectRequest {
|
|
459
474
|
/**
|
|
460
|
-
* @generated from protobuf field:
|
|
475
|
+
* @generated from protobuf field: sid.v1.ids.ProjectId id = 1
|
|
461
476
|
*/
|
|
462
|
-
id
|
|
477
|
+
id?: ProjectId;
|
|
463
478
|
/**
|
|
464
479
|
* @generated from protobuf field: optional string name = 2
|
|
465
480
|
*/
|
|
@@ -474,9 +489,9 @@ export interface UpdateProjectRequest {
|
|
|
474
489
|
*/
|
|
475
490
|
export interface DeleteProjectRequest {
|
|
476
491
|
/**
|
|
477
|
-
* @generated from protobuf field:
|
|
492
|
+
* @generated from protobuf field: sid.v1.ids.ProjectId id = 1
|
|
478
493
|
*/
|
|
479
|
-
id
|
|
494
|
+
id?: ProjectId;
|
|
480
495
|
}
|
|
481
496
|
/**
|
|
482
497
|
* Settings of a new OAuth client role.
|
|
@@ -567,9 +582,9 @@ export interface ResourceRoleSettings {
|
|
|
567
582
|
*/
|
|
568
583
|
export interface CreateApplicationRequest {
|
|
569
584
|
/**
|
|
570
|
-
* @generated from protobuf field:
|
|
585
|
+
* @generated from protobuf field: sid.v1.ids.ProjectId project_id = 1
|
|
571
586
|
*/
|
|
572
|
-
projectId
|
|
587
|
+
projectId?: ProjectId;
|
|
573
588
|
/**
|
|
574
589
|
* @generated from protobuf field: string name = 2
|
|
575
590
|
*/
|
|
@@ -585,12 +600,12 @@ export interface CreateApplicationRequest {
|
|
|
585
600
|
*/
|
|
586
601
|
resource?: ResourceRoleSettings;
|
|
587
602
|
/**
|
|
588
|
-
* Recipient organization
|
|
589
|
-
*
|
|
603
|
+
* Recipient organization. Absent means the installation's organization;
|
|
604
|
+
* naming any other organization is refused.
|
|
590
605
|
*
|
|
591
|
-
* @generated from protobuf field:
|
|
606
|
+
* @generated from protobuf field: sid.v1.ids.OrgId org_id = 5
|
|
592
607
|
*/
|
|
593
|
-
orgId?:
|
|
608
|
+
orgId?: OrgId;
|
|
594
609
|
}
|
|
595
610
|
/**
|
|
596
611
|
* The application, and the client secret when a client role that holds a
|
|
@@ -614,18 +629,18 @@ export interface CreateApplicationResponse {
|
|
|
614
629
|
*/
|
|
615
630
|
export interface GetApplicationRequest {
|
|
616
631
|
/**
|
|
617
|
-
* @generated from protobuf field:
|
|
632
|
+
* @generated from protobuf field: sid.v1.ids.ApplicationId id = 1
|
|
618
633
|
*/
|
|
619
|
-
id
|
|
634
|
+
id?: ApplicationId;
|
|
620
635
|
}
|
|
621
636
|
/**
|
|
622
637
|
* @generated from protobuf message sid.v1.projects.ListApplicationsRequest
|
|
623
638
|
*/
|
|
624
639
|
export interface ListApplicationsRequest {
|
|
625
640
|
/**
|
|
626
|
-
* @generated from protobuf field:
|
|
641
|
+
* @generated from protobuf field: sid.v1.ids.ProjectId project_id = 1
|
|
627
642
|
*/
|
|
628
|
-
projectId
|
|
643
|
+
projectId?: ProjectId;
|
|
629
644
|
/**
|
|
630
645
|
* @generated from protobuf field: int32 page_size = 2
|
|
631
646
|
*/
|
|
@@ -653,9 +668,9 @@ export interface ListApplicationsResponse {
|
|
|
653
668
|
*/
|
|
654
669
|
export interface UpdateApplicationRequest {
|
|
655
670
|
/**
|
|
656
|
-
* @generated from protobuf field:
|
|
671
|
+
* @generated from protobuf field: sid.v1.ids.ApplicationId id = 1
|
|
657
672
|
*/
|
|
658
|
-
id
|
|
673
|
+
id?: ApplicationId;
|
|
659
674
|
/**
|
|
660
675
|
* @generated from protobuf field: optional string name = 2
|
|
661
676
|
*/
|
|
@@ -666,20 +681,20 @@ export interface UpdateApplicationRequest {
|
|
|
666
681
|
*/
|
|
667
682
|
export interface DeleteApplicationRequest {
|
|
668
683
|
/**
|
|
669
|
-
* @generated from protobuf field:
|
|
684
|
+
* @generated from protobuf field: sid.v1.ids.ApplicationId id = 1
|
|
670
685
|
*/
|
|
671
|
-
id
|
|
686
|
+
id?: ApplicationId;
|
|
672
687
|
}
|
|
673
688
|
/**
|
|
674
689
|
* @generated from protobuf message sid.v1.projects.AddClientRoleRequest
|
|
675
690
|
*/
|
|
676
691
|
export interface AddClientRoleRequest {
|
|
677
692
|
/**
|
|
678
|
-
* Application
|
|
693
|
+
* Application without a client role yet; ALREADY_EXISTS otherwise.
|
|
679
694
|
*
|
|
680
|
-
* @generated from protobuf field:
|
|
695
|
+
* @generated from protobuf field: sid.v1.ids.ApplicationId application_id = 1
|
|
681
696
|
*/
|
|
682
|
-
applicationId
|
|
697
|
+
applicationId?: ApplicationId;
|
|
683
698
|
/**
|
|
684
699
|
* @generated from protobuf field: sid.v1.projects.ClientRoleSettings settings = 2
|
|
685
700
|
*/
|
|
@@ -726,14 +741,12 @@ export interface UpdateClientRoleRequest {
|
|
|
726
741
|
*/
|
|
727
742
|
subjectType?: string;
|
|
728
743
|
/**
|
|
729
|
-
* The resource
|
|
730
|
-
*
|
|
731
|
-
* field `default_resource_id`, otherwise). An empty value removes the
|
|
732
|
-
* default.
|
|
744
|
+
* The default resource tokens are for when a request names none; left
|
|
745
|
+
* out, it is unchanged (see DefaultResource).
|
|
733
746
|
*
|
|
734
|
-
* @generated from protobuf field:
|
|
747
|
+
* @generated from protobuf field: sid.v1.projects.DefaultResource default_resource = 8
|
|
735
748
|
*/
|
|
736
|
-
|
|
749
|
+
defaultResource?: DefaultResource;
|
|
737
750
|
/**
|
|
738
751
|
* Replaces the post-logout redirect URIs (see ClientRoleSettings); left out,
|
|
739
752
|
* they are unchanged.
|
|
@@ -742,16 +755,31 @@ export interface UpdateClientRoleRequest {
|
|
|
742
755
|
*/
|
|
743
756
|
postLogoutRedirectUris?: UriList;
|
|
744
757
|
}
|
|
758
|
+
/**
|
|
759
|
+
* A client's default resource, set as a whole by an update.
|
|
760
|
+
*
|
|
761
|
+
* @generated from protobuf message sid.v1.projects.DefaultResource
|
|
762
|
+
*/
|
|
763
|
+
export interface DefaultResource {
|
|
764
|
+
/**
|
|
765
|
+
* The resource (ProtectedResource.id) tokens are for when a request names
|
|
766
|
+
* none. The client must already have access to it (INVALID_ARGUMENT, field
|
|
767
|
+
* `default_resource`, otherwise). Absent removes the default.
|
|
768
|
+
*
|
|
769
|
+
* @generated from protobuf field: sid.v1.ids.ResourceId resource_id = 1
|
|
770
|
+
*/
|
|
771
|
+
resourceId?: ResourceId;
|
|
772
|
+
}
|
|
745
773
|
/**
|
|
746
774
|
* @generated from protobuf message sid.v1.projects.AddResourceRoleRequest
|
|
747
775
|
*/
|
|
748
776
|
export interface AddResourceRoleRequest {
|
|
749
777
|
/**
|
|
750
|
-
* Application
|
|
778
|
+
* Application without a resource role yet; ALREADY_EXISTS otherwise.
|
|
751
779
|
*
|
|
752
|
-
* @generated from protobuf field:
|
|
780
|
+
* @generated from protobuf field: sid.v1.ids.ApplicationId application_id = 1
|
|
753
781
|
*/
|
|
754
|
-
applicationId
|
|
782
|
+
applicationId?: ApplicationId;
|
|
755
783
|
/**
|
|
756
784
|
* @generated from protobuf field: sid.v1.projects.ResourceRoleSettings settings = 2
|
|
757
785
|
*/
|
|
@@ -773,9 +801,9 @@ export interface ScopeList {
|
|
|
773
801
|
*/
|
|
774
802
|
export interface UpdateResourceRoleRequest {
|
|
775
803
|
/**
|
|
776
|
-
* @generated from protobuf field:
|
|
804
|
+
* @generated from protobuf field: sid.v1.ids.ResourceId resource_id = 1
|
|
777
805
|
*/
|
|
778
|
-
resourceId
|
|
806
|
+
resourceId?: ResourceId;
|
|
779
807
|
/**
|
|
780
808
|
* Replaces the scopes the resource understands. Access already granted
|
|
781
809
|
* keeps its scopes but grants only those the resource still understands.
|
|
@@ -805,11 +833,11 @@ export interface SetResourceAccessRequest {
|
|
|
805
833
|
*/
|
|
806
834
|
clientId: string;
|
|
807
835
|
/**
|
|
808
|
-
* The resource (ProtectedResource.id
|
|
836
|
+
* The resource (ProtectedResource.id).
|
|
809
837
|
*
|
|
810
|
-
* @generated from protobuf field:
|
|
838
|
+
* @generated from protobuf field: sid.v1.ids.ResourceId resource_id = 2
|
|
811
839
|
*/
|
|
812
|
-
resourceId
|
|
840
|
+
resourceId?: ResourceId;
|
|
813
841
|
/**
|
|
814
842
|
* Replaces the scopes of this access. Each must be a scope of the resource
|
|
815
843
|
* (INVALID_ARGUMENT otherwise). The client and the resource must belong to
|
|
@@ -831,11 +859,11 @@ export interface RemoveResourceAccessRequest {
|
|
|
831
859
|
*/
|
|
832
860
|
clientId: string;
|
|
833
861
|
/**
|
|
834
|
-
* The resource (ProtectedResource.id
|
|
862
|
+
* The resource (ProtectedResource.id).
|
|
835
863
|
*
|
|
836
|
-
* @generated from protobuf field:
|
|
864
|
+
* @generated from protobuf field: sid.v1.ids.ResourceId resource_id = 2
|
|
837
865
|
*/
|
|
838
|
-
resourceId
|
|
866
|
+
resourceId?: ResourceId;
|
|
839
867
|
}
|
|
840
868
|
/**
|
|
841
869
|
* @generated from protobuf message sid.v1.projects.ListResourceAccessRequest
|
|
@@ -855,9 +883,9 @@ export interface ListResourceAccessRequest {
|
|
|
855
883
|
} | {
|
|
856
884
|
oneofKind: "resourceId";
|
|
857
885
|
/**
|
|
858
|
-
* @generated from protobuf field:
|
|
886
|
+
* @generated from protobuf field: sid.v1.ids.ResourceId resource_id = 2
|
|
859
887
|
*/
|
|
860
|
-
resourceId:
|
|
888
|
+
resourceId: ResourceId;
|
|
861
889
|
} | {
|
|
862
890
|
oneofKind: undefined;
|
|
863
891
|
};
|
|
@@ -876,9 +904,9 @@ export interface ListResourceAccessResponse {
|
|
|
876
904
|
*/
|
|
877
905
|
export interface AddRoleRequest {
|
|
878
906
|
/**
|
|
879
|
-
* @generated from protobuf field:
|
|
907
|
+
* @generated from protobuf field: sid.v1.ids.ProjectId project_id = 1
|
|
880
908
|
*/
|
|
881
|
-
projectId
|
|
909
|
+
projectId?: ProjectId;
|
|
882
910
|
/**
|
|
883
911
|
* @generated from protobuf field: string key = 2
|
|
884
912
|
*/
|
|
@@ -905,13 +933,13 @@ export interface AddRoleRequest {
|
|
|
905
933
|
*/
|
|
906
934
|
export interface RemoveRoleRequest {
|
|
907
935
|
/**
|
|
908
|
-
* @generated from protobuf field:
|
|
936
|
+
* @generated from protobuf field: sid.v1.ids.ProjectId project_id = 1
|
|
909
937
|
*/
|
|
910
|
-
projectId
|
|
938
|
+
projectId?: ProjectId;
|
|
911
939
|
/**
|
|
912
|
-
* @generated from protobuf field:
|
|
940
|
+
* @generated from protobuf field: sid.v1.ids.RoleId role_id = 2
|
|
913
941
|
*/
|
|
914
|
-
roleId
|
|
942
|
+
roleId?: RoleId;
|
|
915
943
|
}
|
|
916
944
|
/**
|
|
917
945
|
* @generated from protobuf message sid.v1.projects.RegisterClientRequest
|
|
@@ -1132,9 +1160,9 @@ export interface DeleteRegisteredClientRequest {
|
|
|
1132
1160
|
*/
|
|
1133
1161
|
export interface CreateInitialAccessTokenRequest {
|
|
1134
1162
|
/**
|
|
1135
|
-
* @generated from protobuf field:
|
|
1163
|
+
* @generated from protobuf field: sid.v1.ids.ProjectId project_id = 1
|
|
1136
1164
|
*/
|
|
1137
|
-
projectId
|
|
1165
|
+
projectId?: ProjectId;
|
|
1138
1166
|
/**
|
|
1139
1167
|
* @generated from protobuf field: uint32 max_clients = 2
|
|
1140
1168
|
*/
|
|
@@ -1180,9 +1208,9 @@ export interface CreateInitialAccessTokenResponse {
|
|
|
1180
1208
|
*/
|
|
1181
1209
|
export interface ListInitialAccessTokensRequest {
|
|
1182
1210
|
/**
|
|
1183
|
-
* @generated from protobuf field:
|
|
1211
|
+
* @generated from protobuf field: sid.v1.ids.ProjectId project_id = 1
|
|
1184
1212
|
*/
|
|
1185
|
-
projectId
|
|
1213
|
+
projectId?: ProjectId;
|
|
1186
1214
|
}
|
|
1187
1215
|
/**
|
|
1188
1216
|
* @generated from protobuf message sid.v1.projects.ListInitialAccessTokensResponse
|
|
@@ -1198,9 +1226,9 @@ export interface ListInitialAccessTokensResponse {
|
|
|
1198
1226
|
*/
|
|
1199
1227
|
export interface RevokeInitialAccessTokenRequest {
|
|
1200
1228
|
/**
|
|
1201
|
-
* @generated from protobuf field:
|
|
1229
|
+
* @generated from protobuf field: sid.v1.ids.InitialAccessTokenId id = 1
|
|
1202
1230
|
*/
|
|
1203
|
-
id
|
|
1231
|
+
id?: InitialAccessTokenId;
|
|
1204
1232
|
}
|
|
1205
1233
|
/**
|
|
1206
1234
|
* An integration of the installation with itself, provisioned by SID.
|
|
@@ -1570,6 +1598,16 @@ declare class UpdateClientRoleRequest$Type extends MessageType<UpdateClientRoleR
|
|
|
1570
1598
|
* @generated MessageType for protobuf message sid.v1.projects.UpdateClientRoleRequest
|
|
1571
1599
|
*/
|
|
1572
1600
|
export declare const UpdateClientRoleRequest: UpdateClientRoleRequest$Type;
|
|
1601
|
+
declare class DefaultResource$Type extends MessageType<DefaultResource> {
|
|
1602
|
+
constructor();
|
|
1603
|
+
create(value?: PartialMessage<DefaultResource>): DefaultResource;
|
|
1604
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DefaultResource): DefaultResource;
|
|
1605
|
+
internalBinaryWrite(message: DefaultResource, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
1606
|
+
}
|
|
1607
|
+
/**
|
|
1608
|
+
* @generated MessageType for protobuf message sid.v1.projects.DefaultResource
|
|
1609
|
+
*/
|
|
1610
|
+
export declare const DefaultResource: DefaultResource$Type;
|
|
1573
1611
|
declare class AddResourceRoleRequest$Type extends MessageType<AddResourceRoleRequest> {
|
|
1574
1612
|
constructor();
|
|
1575
1613
|
create(value?: PartialMessage<AddResourceRoleRequest>): AddResourceRoleRequest;
|