@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
|
@@ -9,7 +9,14 @@ import { WireType } from "@protobuf-ts/runtime";
|
|
|
9
9
|
import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
10
10
|
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
11
11
|
import { MessageType } from "@protobuf-ts/runtime";
|
|
12
|
+
import { RoleId } from "../ids/ids.js";
|
|
13
|
+
import { InitialAccessTokenId } from "../ids/ids.js";
|
|
14
|
+
import { ResourceId } from "../ids/ids.js";
|
|
15
|
+
import { OrgId } from "../ids/ids.js";
|
|
16
|
+
import { ApplicationId } from "../ids/ids.js";
|
|
12
17
|
import { Timestamp } from "../../../google/protobuf/timestamp.js";
|
|
18
|
+
import { ProfileId } from "../ids/ids.js";
|
|
19
|
+
import { ProjectId } from "../ids/ids.js";
|
|
13
20
|
/**
|
|
14
21
|
* An integration of the installation with itself, provisioned by SID.
|
|
15
22
|
*
|
|
@@ -147,10 +154,10 @@ export var ApplicationType;
|
|
|
147
154
|
class Project$Type extends MessageType {
|
|
148
155
|
constructor() {
|
|
149
156
|
super("sid.v1.projects.Project", [
|
|
150
|
-
{ no: 1, name: "id", kind: "
|
|
157
|
+
{ no: 1, name: "id", kind: "message", T: () => ProjectId },
|
|
151
158
|
{ no: 2, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
152
159
|
{ no: 3, name: "description", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
153
|
-
{ no: 4, name: "owner_profile_id", kind: "
|
|
160
|
+
{ no: 4, name: "owner_profile_id", kind: "message", T: () => ProfileId },
|
|
154
161
|
{ no: 5, name: "is_system", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
155
162
|
{ no: 6, name: "created_at", kind: "message", T: () => Timestamp },
|
|
156
163
|
{ no: 7, name: "updated_at", kind: "message", T: () => Timestamp }
|
|
@@ -158,10 +165,8 @@ class Project$Type extends MessageType {
|
|
|
158
165
|
}
|
|
159
166
|
create(value) {
|
|
160
167
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
161
|
-
message.id = "";
|
|
162
168
|
message.name = "";
|
|
163
169
|
message.description = "";
|
|
164
|
-
message.ownerProfileId = "";
|
|
165
170
|
message.isSystem = false;
|
|
166
171
|
if (value !== undefined)
|
|
167
172
|
reflectionMergePartial(this, message, value);
|
|
@@ -172,8 +177,8 @@ class Project$Type extends MessageType {
|
|
|
172
177
|
while (reader.pos < end) {
|
|
173
178
|
let [fieldNo, wireType] = reader.tag();
|
|
174
179
|
switch (fieldNo) {
|
|
175
|
-
case /*
|
|
176
|
-
message.id = reader.
|
|
180
|
+
case /* sid.v1.ids.ProjectId id */ 1:
|
|
181
|
+
message.id = ProjectId.internalBinaryRead(reader, reader.uint32(), options, message.id);
|
|
177
182
|
break;
|
|
178
183
|
case /* string name */ 2:
|
|
179
184
|
message.name = reader.string();
|
|
@@ -181,8 +186,8 @@ class Project$Type extends MessageType {
|
|
|
181
186
|
case /* string description */ 3:
|
|
182
187
|
message.description = reader.string();
|
|
183
188
|
break;
|
|
184
|
-
case /*
|
|
185
|
-
message.ownerProfileId = reader.
|
|
189
|
+
case /* sid.v1.ids.ProfileId owner_profile_id */ 4:
|
|
190
|
+
message.ownerProfileId = ProfileId.internalBinaryRead(reader, reader.uint32(), options, message.ownerProfileId);
|
|
186
191
|
break;
|
|
187
192
|
case /* bool is_system */ 5:
|
|
188
193
|
message.isSystem = reader.bool();
|
|
@@ -205,18 +210,18 @@ class Project$Type extends MessageType {
|
|
|
205
210
|
return message;
|
|
206
211
|
}
|
|
207
212
|
internalBinaryWrite(message, writer, options) {
|
|
208
|
-
/*
|
|
209
|
-
if (message.id
|
|
210
|
-
writer.tag(1, WireType.LengthDelimited).
|
|
213
|
+
/* sid.v1.ids.ProjectId id = 1; */
|
|
214
|
+
if (message.id)
|
|
215
|
+
ProjectId.internalBinaryWrite(message.id, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
211
216
|
/* string name = 2; */
|
|
212
217
|
if (message.name !== "")
|
|
213
218
|
writer.tag(2, WireType.LengthDelimited).string(message.name);
|
|
214
219
|
/* string description = 3; */
|
|
215
220
|
if (message.description !== "")
|
|
216
221
|
writer.tag(3, WireType.LengthDelimited).string(message.description);
|
|
217
|
-
/*
|
|
218
|
-
if (message.ownerProfileId
|
|
219
|
-
writer.tag(4, WireType.LengthDelimited).
|
|
222
|
+
/* sid.v1.ids.ProfileId owner_profile_id = 4; */
|
|
223
|
+
if (message.ownerProfileId)
|
|
224
|
+
ProfileId.internalBinaryWrite(message.ownerProfileId, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
220
225
|
/* bool is_system = 5; */
|
|
221
226
|
if (message.isSystem !== false)
|
|
222
227
|
writer.tag(5, WireType.Varint).bool(message.isSystem);
|
|
@@ -240,8 +245,8 @@ export const Project = new Project$Type();
|
|
|
240
245
|
class Application$Type extends MessageType {
|
|
241
246
|
constructor() {
|
|
242
247
|
super("sid.v1.projects.Application", [
|
|
243
|
-
{ no: 1, name: "id", kind: "
|
|
244
|
-
{ no: 2, name: "project_id", kind: "
|
|
248
|
+
{ no: 1, name: "id", kind: "message", T: () => ApplicationId },
|
|
249
|
+
{ no: 2, name: "project_id", kind: "message", T: () => ProjectId },
|
|
245
250
|
{ no: 3, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
246
251
|
{ no: 4, name: "client", kind: "message", T: () => OAuthClient },
|
|
247
252
|
{ no: 5, name: "resource", kind: "message", T: () => ProtectedResource },
|
|
@@ -253,8 +258,6 @@ class Application$Type extends MessageType {
|
|
|
253
258
|
}
|
|
254
259
|
create(value) {
|
|
255
260
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
256
|
-
message.id = "";
|
|
257
|
-
message.projectId = "";
|
|
258
261
|
message.name = "";
|
|
259
262
|
message.revision = 0n;
|
|
260
263
|
message.systemIntegration = 0;
|
|
@@ -267,11 +270,11 @@ class Application$Type extends MessageType {
|
|
|
267
270
|
while (reader.pos < end) {
|
|
268
271
|
let [fieldNo, wireType] = reader.tag();
|
|
269
272
|
switch (fieldNo) {
|
|
270
|
-
case /*
|
|
271
|
-
message.id = reader.
|
|
273
|
+
case /* sid.v1.ids.ApplicationId id */ 1:
|
|
274
|
+
message.id = ApplicationId.internalBinaryRead(reader, reader.uint32(), options, message.id);
|
|
272
275
|
break;
|
|
273
|
-
case /*
|
|
274
|
-
message.projectId = reader.
|
|
276
|
+
case /* sid.v1.ids.ProjectId project_id */ 2:
|
|
277
|
+
message.projectId = ProjectId.internalBinaryRead(reader, reader.uint32(), options, message.projectId);
|
|
275
278
|
break;
|
|
276
279
|
case /* string name */ 3:
|
|
277
280
|
message.name = reader.string();
|
|
@@ -306,12 +309,12 @@ class Application$Type extends MessageType {
|
|
|
306
309
|
return message;
|
|
307
310
|
}
|
|
308
311
|
internalBinaryWrite(message, writer, options) {
|
|
309
|
-
/*
|
|
310
|
-
if (message.id
|
|
311
|
-
writer.tag(1, WireType.LengthDelimited).
|
|
312
|
-
/*
|
|
313
|
-
if (message.projectId
|
|
314
|
-
writer.tag(2, WireType.LengthDelimited).
|
|
312
|
+
/* sid.v1.ids.ApplicationId id = 1; */
|
|
313
|
+
if (message.id)
|
|
314
|
+
ApplicationId.internalBinaryWrite(message.id, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
315
|
+
/* sid.v1.ids.ProjectId project_id = 2; */
|
|
316
|
+
if (message.projectId)
|
|
317
|
+
ProjectId.internalBinaryWrite(message.projectId, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
315
318
|
/* string name = 3; */
|
|
316
319
|
if (message.name !== "")
|
|
317
320
|
writer.tag(3, WireType.LengthDelimited).string(message.name);
|
|
@@ -348,8 +351,8 @@ class OAuthClient$Type extends MessageType {
|
|
|
348
351
|
constructor() {
|
|
349
352
|
super("sid.v1.projects.OAuthClient", [
|
|
350
353
|
{ no: 1, name: "client_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
351
|
-
{ no: 2, name: "application_id", kind: "
|
|
352
|
-
{ no: 3, name: "project_id", kind: "
|
|
354
|
+
{ no: 2, name: "application_id", kind: "message", T: () => ApplicationId },
|
|
355
|
+
{ no: 3, name: "project_id", kind: "message", T: () => ProjectId },
|
|
353
356
|
{ no: 4, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
354
357
|
{ no: 5, name: "type", kind: "enum", T: () => ["sid.v1.projects.ApplicationType", ApplicationType, "APPLICATION_TYPE_"] },
|
|
355
358
|
{ no: 6, name: "redirect_uris", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
|
@@ -365,9 +368,9 @@ class OAuthClient$Type extends MessageType {
|
|
|
365
368
|
{ no: 16, name: "client_id_issued_at", kind: "message", T: () => Timestamp },
|
|
366
369
|
{ no: 17, name: "client_secret_expires_at", kind: "message", T: () => Timestamp },
|
|
367
370
|
{ no: 18, name: "dynamically_registered", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
368
|
-
{ no: 19, name: "org_id", kind: "
|
|
371
|
+
{ no: 19, name: "org_id", kind: "message", T: () => OrgId },
|
|
369
372
|
{ no: 20, name: "issuer", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
370
|
-
{ no: 21, name: "default_resource_id", kind: "
|
|
373
|
+
{ no: 21, name: "default_resource_id", kind: "message", T: () => ResourceId },
|
|
371
374
|
{ no: 22, name: "revision", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
372
375
|
{ no: 23, name: "jwks", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
373
376
|
{ no: 24, name: "post_logout_redirect_uris", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }
|
|
@@ -376,8 +379,6 @@ class OAuthClient$Type extends MessageType {
|
|
|
376
379
|
create(value) {
|
|
377
380
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
378
381
|
message.clientId = "";
|
|
379
|
-
message.applicationId = "";
|
|
380
|
-
message.projectId = "";
|
|
381
382
|
message.name = "";
|
|
382
383
|
message.type = 0;
|
|
383
384
|
message.redirectUris = [];
|
|
@@ -404,11 +405,11 @@ class OAuthClient$Type extends MessageType {
|
|
|
404
405
|
case /* string client_id */ 1:
|
|
405
406
|
message.clientId = reader.string();
|
|
406
407
|
break;
|
|
407
|
-
case /*
|
|
408
|
-
message.applicationId = reader.
|
|
408
|
+
case /* sid.v1.ids.ApplicationId application_id */ 2:
|
|
409
|
+
message.applicationId = ApplicationId.internalBinaryRead(reader, reader.uint32(), options, message.applicationId);
|
|
409
410
|
break;
|
|
410
|
-
case /*
|
|
411
|
-
message.projectId = reader.
|
|
411
|
+
case /* sid.v1.ids.ProjectId project_id */ 3:
|
|
412
|
+
message.projectId = ProjectId.internalBinaryRead(reader, reader.uint32(), options, message.projectId);
|
|
412
413
|
break;
|
|
413
414
|
case /* string name */ 4:
|
|
414
415
|
message.name = reader.string();
|
|
@@ -455,14 +456,14 @@ class OAuthClient$Type extends MessageType {
|
|
|
455
456
|
case /* bool dynamically_registered */ 18:
|
|
456
457
|
message.dynamicallyRegistered = reader.bool();
|
|
457
458
|
break;
|
|
458
|
-
case /*
|
|
459
|
-
message.orgId = reader.
|
|
459
|
+
case /* sid.v1.ids.OrgId org_id */ 19:
|
|
460
|
+
message.orgId = OrgId.internalBinaryRead(reader, reader.uint32(), options, message.orgId);
|
|
460
461
|
break;
|
|
461
462
|
case /* string issuer */ 20:
|
|
462
463
|
message.issuer = reader.string();
|
|
463
464
|
break;
|
|
464
|
-
case /*
|
|
465
|
-
message.defaultResourceId = reader.
|
|
465
|
+
case /* sid.v1.ids.ResourceId default_resource_id */ 21:
|
|
466
|
+
message.defaultResourceId = ResourceId.internalBinaryRead(reader, reader.uint32(), options, message.defaultResourceId);
|
|
466
467
|
break;
|
|
467
468
|
case /* uint64 revision */ 22:
|
|
468
469
|
message.revision = reader.uint64().toBigInt();
|
|
@@ -488,12 +489,12 @@ class OAuthClient$Type extends MessageType {
|
|
|
488
489
|
/* string client_id = 1; */
|
|
489
490
|
if (message.clientId !== "")
|
|
490
491
|
writer.tag(1, WireType.LengthDelimited).string(message.clientId);
|
|
491
|
-
/*
|
|
492
|
-
if (message.applicationId
|
|
493
|
-
writer.tag(2, WireType.LengthDelimited).
|
|
494
|
-
/*
|
|
495
|
-
if (message.projectId
|
|
496
|
-
writer.tag(3, WireType.LengthDelimited).
|
|
492
|
+
/* sid.v1.ids.ApplicationId application_id = 2; */
|
|
493
|
+
if (message.applicationId)
|
|
494
|
+
ApplicationId.internalBinaryWrite(message.applicationId, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
495
|
+
/* sid.v1.ids.ProjectId project_id = 3; */
|
|
496
|
+
if (message.projectId)
|
|
497
|
+
ProjectId.internalBinaryWrite(message.projectId, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
497
498
|
/* string name = 4; */
|
|
498
499
|
if (message.name !== "")
|
|
499
500
|
writer.tag(4, WireType.LengthDelimited).string(message.name);
|
|
@@ -539,15 +540,15 @@ class OAuthClient$Type extends MessageType {
|
|
|
539
540
|
/* bool dynamically_registered = 18; */
|
|
540
541
|
if (message.dynamicallyRegistered !== false)
|
|
541
542
|
writer.tag(18, WireType.Varint).bool(message.dynamicallyRegistered);
|
|
542
|
-
/*
|
|
543
|
-
if (message.orgId
|
|
544
|
-
writer.tag(19, WireType.LengthDelimited).
|
|
543
|
+
/* sid.v1.ids.OrgId org_id = 19; */
|
|
544
|
+
if (message.orgId)
|
|
545
|
+
OrgId.internalBinaryWrite(message.orgId, writer.tag(19, WireType.LengthDelimited).fork(), options).join();
|
|
545
546
|
/* string issuer = 20; */
|
|
546
547
|
if (message.issuer !== "")
|
|
547
548
|
writer.tag(20, WireType.LengthDelimited).string(message.issuer);
|
|
548
|
-
/*
|
|
549
|
-
if (message.defaultResourceId
|
|
550
|
-
writer.tag(21, WireType.LengthDelimited).
|
|
549
|
+
/* sid.v1.ids.ResourceId default_resource_id = 21; */
|
|
550
|
+
if (message.defaultResourceId)
|
|
551
|
+
ResourceId.internalBinaryWrite(message.defaultResourceId, writer.tag(21, WireType.LengthDelimited).fork(), options).join();
|
|
551
552
|
/* uint64 revision = 22; */
|
|
552
553
|
if (message.revision !== 0n)
|
|
553
554
|
writer.tag(22, WireType.Varint).uint64(message.revision);
|
|
@@ -571,8 +572,8 @@ export const OAuthClient = new OAuthClient$Type();
|
|
|
571
572
|
class ProtectedResource$Type extends MessageType {
|
|
572
573
|
constructor() {
|
|
573
574
|
super("sid.v1.projects.ProtectedResource", [
|
|
574
|
-
{ no: 1, name: "id", kind: "
|
|
575
|
-
{ no: 2, name: "application_id", kind: "
|
|
575
|
+
{ no: 1, name: "id", kind: "message", T: () => ResourceId },
|
|
576
|
+
{ no: 2, name: "application_id", kind: "message", T: () => ApplicationId },
|
|
576
577
|
{ no: 3, name: "indicator", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
577
578
|
{ no: 4, name: "issuer", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
578
579
|
{ no: 5, name: "scopes", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
|
@@ -584,7 +585,6 @@ class ProtectedResource$Type extends MessageType {
|
|
|
584
585
|
}
|
|
585
586
|
create(value) {
|
|
586
587
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
587
|
-
message.id = "";
|
|
588
588
|
message.indicator = "";
|
|
589
589
|
message.issuer = "";
|
|
590
590
|
message.scopes = [];
|
|
@@ -599,11 +599,11 @@ class ProtectedResource$Type extends MessageType {
|
|
|
599
599
|
while (reader.pos < end) {
|
|
600
600
|
let [fieldNo, wireType] = reader.tag();
|
|
601
601
|
switch (fieldNo) {
|
|
602
|
-
case /*
|
|
603
|
-
message.id = reader.
|
|
602
|
+
case /* sid.v1.ids.ResourceId id */ 1:
|
|
603
|
+
message.id = ResourceId.internalBinaryRead(reader, reader.uint32(), options, message.id);
|
|
604
604
|
break;
|
|
605
|
-
case /*
|
|
606
|
-
message.applicationId = reader.
|
|
605
|
+
case /* sid.v1.ids.ApplicationId application_id */ 2:
|
|
606
|
+
message.applicationId = ApplicationId.internalBinaryRead(reader, reader.uint32(), options, message.applicationId);
|
|
607
607
|
break;
|
|
608
608
|
case /* string indicator */ 3:
|
|
609
609
|
message.indicator = reader.string();
|
|
@@ -638,12 +638,12 @@ class ProtectedResource$Type extends MessageType {
|
|
|
638
638
|
return message;
|
|
639
639
|
}
|
|
640
640
|
internalBinaryWrite(message, writer, options) {
|
|
641
|
-
/*
|
|
642
|
-
if (message.id
|
|
643
|
-
writer.tag(1, WireType.LengthDelimited).
|
|
644
|
-
/*
|
|
645
|
-
if (message.applicationId
|
|
646
|
-
writer.tag(2, WireType.LengthDelimited).
|
|
641
|
+
/* sid.v1.ids.ResourceId id = 1; */
|
|
642
|
+
if (message.id)
|
|
643
|
+
ResourceId.internalBinaryWrite(message.id, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
644
|
+
/* sid.v1.ids.ApplicationId application_id = 2; */
|
|
645
|
+
if (message.applicationId)
|
|
646
|
+
ApplicationId.internalBinaryWrite(message.applicationId, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
647
647
|
/* string indicator = 3; */
|
|
648
648
|
if (message.indicator !== "")
|
|
649
649
|
writer.tag(3, WireType.LengthDelimited).string(message.indicator);
|
|
@@ -680,7 +680,7 @@ class ResourceAccess$Type extends MessageType {
|
|
|
680
680
|
constructor() {
|
|
681
681
|
super("sid.v1.projects.ResourceAccess", [
|
|
682
682
|
{ no: 1, name: "client_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
683
|
-
{ no: 2, name: "resource_id", kind: "
|
|
683
|
+
{ no: 2, name: "resource_id", kind: "message", T: () => ResourceId },
|
|
684
684
|
{ no: 3, name: "scopes", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
|
685
685
|
{ no: 4, name: "created_at", kind: "message", T: () => Timestamp }
|
|
686
686
|
]);
|
|
@@ -688,7 +688,6 @@ class ResourceAccess$Type extends MessageType {
|
|
|
688
688
|
create(value) {
|
|
689
689
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
690
690
|
message.clientId = "";
|
|
691
|
-
message.resourceId = "";
|
|
692
691
|
message.scopes = [];
|
|
693
692
|
if (value !== undefined)
|
|
694
693
|
reflectionMergePartial(this, message, value);
|
|
@@ -702,8 +701,8 @@ class ResourceAccess$Type extends MessageType {
|
|
|
702
701
|
case /* string client_id */ 1:
|
|
703
702
|
message.clientId = reader.string();
|
|
704
703
|
break;
|
|
705
|
-
case /*
|
|
706
|
-
message.resourceId = reader.
|
|
704
|
+
case /* sid.v1.ids.ResourceId resource_id */ 2:
|
|
705
|
+
message.resourceId = ResourceId.internalBinaryRead(reader, reader.uint32(), options, message.resourceId);
|
|
707
706
|
break;
|
|
708
707
|
case /* repeated string scopes */ 3:
|
|
709
708
|
message.scopes.push(reader.string());
|
|
@@ -726,9 +725,9 @@ class ResourceAccess$Type extends MessageType {
|
|
|
726
725
|
/* string client_id = 1; */
|
|
727
726
|
if (message.clientId !== "")
|
|
728
727
|
writer.tag(1, WireType.LengthDelimited).string(message.clientId);
|
|
729
|
-
/*
|
|
730
|
-
if (message.resourceId
|
|
731
|
-
writer.tag(2, WireType.LengthDelimited).
|
|
728
|
+
/* sid.v1.ids.ResourceId resource_id = 2; */
|
|
729
|
+
if (message.resourceId)
|
|
730
|
+
ResourceId.internalBinaryWrite(message.resourceId, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
732
731
|
/* repeated string scopes = 3; */
|
|
733
732
|
for (let i = 0; i < message.scopes.length; i++)
|
|
734
733
|
writer.tag(3, WireType.LengthDelimited).string(message.scopes[i]);
|
|
@@ -749,8 +748,8 @@ export const ResourceAccess = new ResourceAccess$Type();
|
|
|
749
748
|
class InitialAccessToken$Type extends MessageType {
|
|
750
749
|
constructor() {
|
|
751
750
|
super("sid.v1.projects.InitialAccessToken", [
|
|
752
|
-
{ no: 1, name: "id", kind: "
|
|
753
|
-
{ no: 2, name: "project_id", kind: "
|
|
751
|
+
{ no: 1, name: "id", kind: "message", T: () => InitialAccessTokenId },
|
|
752
|
+
{ no: 2, name: "project_id", kind: "message", T: () => ProjectId },
|
|
754
753
|
{ no: 3, name: "max_clients", kind: "scalar", T: 13 /*ScalarType.UINT32*/ },
|
|
755
754
|
{ no: 4, name: "clients_registered", kind: "scalar", T: 13 /*ScalarType.UINT32*/ },
|
|
756
755
|
{ no: 5, name: "allowed_scopes", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
|
@@ -758,20 +757,17 @@ class InitialAccessToken$Type extends MessageType {
|
|
|
758
757
|
{ no: 7, name: "allowed_redirect_patterns", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
|
759
758
|
{ no: 8, name: "expires_at", kind: "message", T: () => Timestamp },
|
|
760
759
|
{ no: 9, name: "created_at", kind: "message", T: () => Timestamp },
|
|
761
|
-
{ no: 10, name: "created_by", kind: "
|
|
760
|
+
{ no: 10, name: "created_by", kind: "message", T: () => ProfileId },
|
|
762
761
|
{ no: 11, name: "revoked", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
|
|
763
762
|
]);
|
|
764
763
|
}
|
|
765
764
|
create(value) {
|
|
766
765
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
767
|
-
message.id = "";
|
|
768
|
-
message.projectId = "";
|
|
769
766
|
message.maxClients = 0;
|
|
770
767
|
message.clientsRegistered = 0;
|
|
771
768
|
message.allowedScopes = [];
|
|
772
769
|
message.allowedGrantTypes = [];
|
|
773
770
|
message.allowedRedirectPatterns = [];
|
|
774
|
-
message.createdBy = "";
|
|
775
771
|
message.revoked = false;
|
|
776
772
|
if (value !== undefined)
|
|
777
773
|
reflectionMergePartial(this, message, value);
|
|
@@ -782,11 +778,11 @@ class InitialAccessToken$Type extends MessageType {
|
|
|
782
778
|
while (reader.pos < end) {
|
|
783
779
|
let [fieldNo, wireType] = reader.tag();
|
|
784
780
|
switch (fieldNo) {
|
|
785
|
-
case /*
|
|
786
|
-
message.id = reader.
|
|
781
|
+
case /* sid.v1.ids.InitialAccessTokenId id */ 1:
|
|
782
|
+
message.id = InitialAccessTokenId.internalBinaryRead(reader, reader.uint32(), options, message.id);
|
|
787
783
|
break;
|
|
788
|
-
case /*
|
|
789
|
-
message.projectId = reader.
|
|
784
|
+
case /* sid.v1.ids.ProjectId project_id */ 2:
|
|
785
|
+
message.projectId = ProjectId.internalBinaryRead(reader, reader.uint32(), options, message.projectId);
|
|
790
786
|
break;
|
|
791
787
|
case /* uint32 max_clients */ 3:
|
|
792
788
|
message.maxClients = reader.uint32();
|
|
@@ -809,8 +805,8 @@ class InitialAccessToken$Type extends MessageType {
|
|
|
809
805
|
case /* google.protobuf.Timestamp created_at */ 9:
|
|
810
806
|
message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
|
|
811
807
|
break;
|
|
812
|
-
case /*
|
|
813
|
-
message.createdBy = reader.
|
|
808
|
+
case /* sid.v1.ids.ProfileId created_by */ 10:
|
|
809
|
+
message.createdBy = ProfileId.internalBinaryRead(reader, reader.uint32(), options, message.createdBy);
|
|
814
810
|
break;
|
|
815
811
|
case /* bool revoked */ 11:
|
|
816
812
|
message.revoked = reader.bool();
|
|
@@ -827,12 +823,12 @@ class InitialAccessToken$Type extends MessageType {
|
|
|
827
823
|
return message;
|
|
828
824
|
}
|
|
829
825
|
internalBinaryWrite(message, writer, options) {
|
|
830
|
-
/*
|
|
831
|
-
if (message.id
|
|
832
|
-
writer.tag(1, WireType.LengthDelimited).
|
|
833
|
-
/*
|
|
834
|
-
if (message.projectId
|
|
835
|
-
writer.tag(2, WireType.LengthDelimited).
|
|
826
|
+
/* sid.v1.ids.InitialAccessTokenId id = 1; */
|
|
827
|
+
if (message.id)
|
|
828
|
+
InitialAccessTokenId.internalBinaryWrite(message.id, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
829
|
+
/* sid.v1.ids.ProjectId project_id = 2; */
|
|
830
|
+
if (message.projectId)
|
|
831
|
+
ProjectId.internalBinaryWrite(message.projectId, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
836
832
|
/* uint32 max_clients = 3; */
|
|
837
833
|
if (message.maxClients !== 0)
|
|
838
834
|
writer.tag(3, WireType.Varint).uint32(message.maxClients);
|
|
@@ -854,9 +850,9 @@ class InitialAccessToken$Type extends MessageType {
|
|
|
854
850
|
/* google.protobuf.Timestamp created_at = 9; */
|
|
855
851
|
if (message.createdAt)
|
|
856
852
|
Timestamp.internalBinaryWrite(message.createdAt, writer.tag(9, WireType.LengthDelimited).fork(), options).join();
|
|
857
|
-
/*
|
|
858
|
-
if (message.createdBy
|
|
859
|
-
writer.tag(10, WireType.LengthDelimited).
|
|
853
|
+
/* sid.v1.ids.ProfileId created_by = 10; */
|
|
854
|
+
if (message.createdBy)
|
|
855
|
+
ProfileId.internalBinaryWrite(message.createdBy, writer.tag(10, WireType.LengthDelimited).fork(), options).join();
|
|
860
856
|
/* bool revoked = 11; */
|
|
861
857
|
if (message.revoked !== false)
|
|
862
858
|
writer.tag(11, WireType.Varint).bool(message.revoked);
|
|
@@ -876,14 +872,13 @@ class CreateProjectRequest$Type extends MessageType {
|
|
|
876
872
|
super("sid.v1.projects.CreateProjectRequest", [
|
|
877
873
|
{ no: 1, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
878
874
|
{ no: 2, name: "description", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
879
|
-
{ no: 3, name: "owner_profile_id", kind: "
|
|
875
|
+
{ no: 3, name: "owner_profile_id", kind: "message", T: () => ProfileId }
|
|
880
876
|
]);
|
|
881
877
|
}
|
|
882
878
|
create(value) {
|
|
883
879
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
884
880
|
message.name = "";
|
|
885
881
|
message.description = "";
|
|
886
|
-
message.ownerProfileId = "";
|
|
887
882
|
if (value !== undefined)
|
|
888
883
|
reflectionMergePartial(this, message, value);
|
|
889
884
|
return message;
|
|
@@ -899,8 +894,8 @@ class CreateProjectRequest$Type extends MessageType {
|
|
|
899
894
|
case /* string description */ 2:
|
|
900
895
|
message.description = reader.string();
|
|
901
896
|
break;
|
|
902
|
-
case /*
|
|
903
|
-
message.ownerProfileId = reader.
|
|
897
|
+
case /* sid.v1.ids.ProfileId owner_profile_id */ 3:
|
|
898
|
+
message.ownerProfileId = ProfileId.internalBinaryRead(reader, reader.uint32(), options, message.ownerProfileId);
|
|
904
899
|
break;
|
|
905
900
|
default:
|
|
906
901
|
let u = options.readUnknownField;
|
|
@@ -920,9 +915,9 @@ class CreateProjectRequest$Type extends MessageType {
|
|
|
920
915
|
/* string description = 2; */
|
|
921
916
|
if (message.description !== "")
|
|
922
917
|
writer.tag(2, WireType.LengthDelimited).string(message.description);
|
|
923
|
-
/*
|
|
924
|
-
if (message.ownerProfileId
|
|
925
|
-
writer.tag(3, WireType.LengthDelimited).
|
|
918
|
+
/* sid.v1.ids.ProfileId owner_profile_id = 3; */
|
|
919
|
+
if (message.ownerProfileId)
|
|
920
|
+
ProfileId.internalBinaryWrite(message.ownerProfileId, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
926
921
|
let u = options.writeUnknownFields;
|
|
927
922
|
if (u !== false)
|
|
928
923
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -937,12 +932,11 @@ export const CreateProjectRequest = new CreateProjectRequest$Type();
|
|
|
937
932
|
class GetProjectRequest$Type extends MessageType {
|
|
938
933
|
constructor() {
|
|
939
934
|
super("sid.v1.projects.GetProjectRequest", [
|
|
940
|
-
{ no: 1, name: "id", kind: "
|
|
935
|
+
{ no: 1, name: "id", kind: "message", T: () => ProjectId }
|
|
941
936
|
]);
|
|
942
937
|
}
|
|
943
938
|
create(value) {
|
|
944
939
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
945
|
-
message.id = "";
|
|
946
940
|
if (value !== undefined)
|
|
947
941
|
reflectionMergePartial(this, message, value);
|
|
948
942
|
return message;
|
|
@@ -952,8 +946,8 @@ class GetProjectRequest$Type extends MessageType {
|
|
|
952
946
|
while (reader.pos < end) {
|
|
953
947
|
let [fieldNo, wireType] = reader.tag();
|
|
954
948
|
switch (fieldNo) {
|
|
955
|
-
case /*
|
|
956
|
-
message.id = reader.
|
|
949
|
+
case /* sid.v1.ids.ProjectId id */ 1:
|
|
950
|
+
message.id = ProjectId.internalBinaryRead(reader, reader.uint32(), options, message.id);
|
|
957
951
|
break;
|
|
958
952
|
default:
|
|
959
953
|
let u = options.readUnknownField;
|
|
@@ -967,9 +961,9 @@ class GetProjectRequest$Type extends MessageType {
|
|
|
967
961
|
return message;
|
|
968
962
|
}
|
|
969
963
|
internalBinaryWrite(message, writer, options) {
|
|
970
|
-
/*
|
|
971
|
-
if (message.id
|
|
972
|
-
writer.tag(1, WireType.LengthDelimited).
|
|
964
|
+
/* sid.v1.ids.ProjectId id = 1; */
|
|
965
|
+
if (message.id)
|
|
966
|
+
ProjectId.internalBinaryWrite(message.id, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
973
967
|
let u = options.writeUnknownFields;
|
|
974
968
|
if (u !== false)
|
|
975
969
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -1094,14 +1088,13 @@ export const ListProjectsResponse = new ListProjectsResponse$Type();
|
|
|
1094
1088
|
class UpdateProjectRequest$Type extends MessageType {
|
|
1095
1089
|
constructor() {
|
|
1096
1090
|
super("sid.v1.projects.UpdateProjectRequest", [
|
|
1097
|
-
{ no: 1, name: "id", kind: "
|
|
1091
|
+
{ no: 1, name: "id", kind: "message", T: () => ProjectId },
|
|
1098
1092
|
{ no: 2, name: "name", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
1099
1093
|
{ no: 3, name: "description", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }
|
|
1100
1094
|
]);
|
|
1101
1095
|
}
|
|
1102
1096
|
create(value) {
|
|
1103
1097
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
1104
|
-
message.id = "";
|
|
1105
1098
|
if (value !== undefined)
|
|
1106
1099
|
reflectionMergePartial(this, message, value);
|
|
1107
1100
|
return message;
|
|
@@ -1111,8 +1104,8 @@ class UpdateProjectRequest$Type extends MessageType {
|
|
|
1111
1104
|
while (reader.pos < end) {
|
|
1112
1105
|
let [fieldNo, wireType] = reader.tag();
|
|
1113
1106
|
switch (fieldNo) {
|
|
1114
|
-
case /*
|
|
1115
|
-
message.id = reader.
|
|
1107
|
+
case /* sid.v1.ids.ProjectId id */ 1:
|
|
1108
|
+
message.id = ProjectId.internalBinaryRead(reader, reader.uint32(), options, message.id);
|
|
1116
1109
|
break;
|
|
1117
1110
|
case /* optional string name */ 2:
|
|
1118
1111
|
message.name = reader.string();
|
|
@@ -1132,9 +1125,9 @@ class UpdateProjectRequest$Type extends MessageType {
|
|
|
1132
1125
|
return message;
|
|
1133
1126
|
}
|
|
1134
1127
|
internalBinaryWrite(message, writer, options) {
|
|
1135
|
-
/*
|
|
1136
|
-
if (message.id
|
|
1137
|
-
writer.tag(1, WireType.LengthDelimited).
|
|
1128
|
+
/* sid.v1.ids.ProjectId id = 1; */
|
|
1129
|
+
if (message.id)
|
|
1130
|
+
ProjectId.internalBinaryWrite(message.id, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
1138
1131
|
/* optional string name = 2; */
|
|
1139
1132
|
if (message.name !== undefined)
|
|
1140
1133
|
writer.tag(2, WireType.LengthDelimited).string(message.name);
|
|
@@ -1155,12 +1148,11 @@ export const UpdateProjectRequest = new UpdateProjectRequest$Type();
|
|
|
1155
1148
|
class DeleteProjectRequest$Type extends MessageType {
|
|
1156
1149
|
constructor() {
|
|
1157
1150
|
super("sid.v1.projects.DeleteProjectRequest", [
|
|
1158
|
-
{ no: 1, name: "id", kind: "
|
|
1151
|
+
{ no: 1, name: "id", kind: "message", T: () => ProjectId }
|
|
1159
1152
|
]);
|
|
1160
1153
|
}
|
|
1161
1154
|
create(value) {
|
|
1162
1155
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
1163
|
-
message.id = "";
|
|
1164
1156
|
if (value !== undefined)
|
|
1165
1157
|
reflectionMergePartial(this, message, value);
|
|
1166
1158
|
return message;
|
|
@@ -1170,8 +1162,8 @@ class DeleteProjectRequest$Type extends MessageType {
|
|
|
1170
1162
|
while (reader.pos < end) {
|
|
1171
1163
|
let [fieldNo, wireType] = reader.tag();
|
|
1172
1164
|
switch (fieldNo) {
|
|
1173
|
-
case /*
|
|
1174
|
-
message.id = reader.
|
|
1165
|
+
case /* sid.v1.ids.ProjectId id */ 1:
|
|
1166
|
+
message.id = ProjectId.internalBinaryRead(reader, reader.uint32(), options, message.id);
|
|
1175
1167
|
break;
|
|
1176
1168
|
default:
|
|
1177
1169
|
let u = options.readUnknownField;
|
|
@@ -1185,9 +1177,9 @@ class DeleteProjectRequest$Type extends MessageType {
|
|
|
1185
1177
|
return message;
|
|
1186
1178
|
}
|
|
1187
1179
|
internalBinaryWrite(message, writer, options) {
|
|
1188
|
-
/*
|
|
1189
|
-
if (message.id
|
|
1190
|
-
writer.tag(1, WireType.LengthDelimited).
|
|
1180
|
+
/* sid.v1.ids.ProjectId id = 1; */
|
|
1181
|
+
if (message.id)
|
|
1182
|
+
ProjectId.internalBinaryWrite(message.id, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
1191
1183
|
let u = options.writeUnknownFields;
|
|
1192
1184
|
if (u !== false)
|
|
1193
1185
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -1390,16 +1382,15 @@ export const ResourceRoleSettings = new ResourceRoleSettings$Type();
|
|
|
1390
1382
|
class CreateApplicationRequest$Type extends MessageType {
|
|
1391
1383
|
constructor() {
|
|
1392
1384
|
super("sid.v1.projects.CreateApplicationRequest", [
|
|
1393
|
-
{ no: 1, name: "project_id", kind: "
|
|
1385
|
+
{ no: 1, name: "project_id", kind: "message", T: () => ProjectId },
|
|
1394
1386
|
{ no: 2, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1395
1387
|
{ no: 3, name: "client", kind: "message", T: () => ClientRoleSettings },
|
|
1396
1388
|
{ no: 4, name: "resource", kind: "message", T: () => ResourceRoleSettings },
|
|
1397
|
-
{ no: 5, name: "org_id", kind: "
|
|
1389
|
+
{ no: 5, name: "org_id", kind: "message", T: () => OrgId }
|
|
1398
1390
|
]);
|
|
1399
1391
|
}
|
|
1400
1392
|
create(value) {
|
|
1401
1393
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
1402
|
-
message.projectId = "";
|
|
1403
1394
|
message.name = "";
|
|
1404
1395
|
if (value !== undefined)
|
|
1405
1396
|
reflectionMergePartial(this, message, value);
|
|
@@ -1410,8 +1401,8 @@ class CreateApplicationRequest$Type extends MessageType {
|
|
|
1410
1401
|
while (reader.pos < end) {
|
|
1411
1402
|
let [fieldNo, wireType] = reader.tag();
|
|
1412
1403
|
switch (fieldNo) {
|
|
1413
|
-
case /*
|
|
1414
|
-
message.projectId = reader.
|
|
1404
|
+
case /* sid.v1.ids.ProjectId project_id */ 1:
|
|
1405
|
+
message.projectId = ProjectId.internalBinaryRead(reader, reader.uint32(), options, message.projectId);
|
|
1415
1406
|
break;
|
|
1416
1407
|
case /* string name */ 2:
|
|
1417
1408
|
message.name = reader.string();
|
|
@@ -1422,8 +1413,8 @@ class CreateApplicationRequest$Type extends MessageType {
|
|
|
1422
1413
|
case /* optional sid.v1.projects.ResourceRoleSettings resource */ 4:
|
|
1423
1414
|
message.resource = ResourceRoleSettings.internalBinaryRead(reader, reader.uint32(), options, message.resource);
|
|
1424
1415
|
break;
|
|
1425
|
-
case /*
|
|
1426
|
-
message.orgId = reader.
|
|
1416
|
+
case /* sid.v1.ids.OrgId org_id */ 5:
|
|
1417
|
+
message.orgId = OrgId.internalBinaryRead(reader, reader.uint32(), options, message.orgId);
|
|
1427
1418
|
break;
|
|
1428
1419
|
default:
|
|
1429
1420
|
let u = options.readUnknownField;
|
|
@@ -1437,9 +1428,9 @@ class CreateApplicationRequest$Type extends MessageType {
|
|
|
1437
1428
|
return message;
|
|
1438
1429
|
}
|
|
1439
1430
|
internalBinaryWrite(message, writer, options) {
|
|
1440
|
-
/*
|
|
1441
|
-
if (message.projectId
|
|
1442
|
-
writer.tag(1, WireType.LengthDelimited).
|
|
1431
|
+
/* sid.v1.ids.ProjectId project_id = 1; */
|
|
1432
|
+
if (message.projectId)
|
|
1433
|
+
ProjectId.internalBinaryWrite(message.projectId, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
1443
1434
|
/* string name = 2; */
|
|
1444
1435
|
if (message.name !== "")
|
|
1445
1436
|
writer.tag(2, WireType.LengthDelimited).string(message.name);
|
|
@@ -1449,9 +1440,9 @@ class CreateApplicationRequest$Type extends MessageType {
|
|
|
1449
1440
|
/* optional sid.v1.projects.ResourceRoleSettings resource = 4; */
|
|
1450
1441
|
if (message.resource)
|
|
1451
1442
|
ResourceRoleSettings.internalBinaryWrite(message.resource, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
1452
|
-
/*
|
|
1453
|
-
if (message.orgId
|
|
1454
|
-
writer.tag(5, WireType.LengthDelimited).
|
|
1443
|
+
/* sid.v1.ids.OrgId org_id = 5; */
|
|
1444
|
+
if (message.orgId)
|
|
1445
|
+
OrgId.internalBinaryWrite(message.orgId, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
|
1455
1446
|
let u = options.writeUnknownFields;
|
|
1456
1447
|
if (u !== false)
|
|
1457
1448
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -1520,12 +1511,11 @@ export const CreateApplicationResponse = new CreateApplicationResponse$Type();
|
|
|
1520
1511
|
class GetApplicationRequest$Type extends MessageType {
|
|
1521
1512
|
constructor() {
|
|
1522
1513
|
super("sid.v1.projects.GetApplicationRequest", [
|
|
1523
|
-
{ no: 1, name: "id", kind: "
|
|
1514
|
+
{ no: 1, name: "id", kind: "message", T: () => ApplicationId }
|
|
1524
1515
|
]);
|
|
1525
1516
|
}
|
|
1526
1517
|
create(value) {
|
|
1527
1518
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
1528
|
-
message.id = "";
|
|
1529
1519
|
if (value !== undefined)
|
|
1530
1520
|
reflectionMergePartial(this, message, value);
|
|
1531
1521
|
return message;
|
|
@@ -1535,8 +1525,8 @@ class GetApplicationRequest$Type extends MessageType {
|
|
|
1535
1525
|
while (reader.pos < end) {
|
|
1536
1526
|
let [fieldNo, wireType] = reader.tag();
|
|
1537
1527
|
switch (fieldNo) {
|
|
1538
|
-
case /*
|
|
1539
|
-
message.id = reader.
|
|
1528
|
+
case /* sid.v1.ids.ApplicationId id */ 1:
|
|
1529
|
+
message.id = ApplicationId.internalBinaryRead(reader, reader.uint32(), options, message.id);
|
|
1540
1530
|
break;
|
|
1541
1531
|
default:
|
|
1542
1532
|
let u = options.readUnknownField;
|
|
@@ -1550,9 +1540,9 @@ class GetApplicationRequest$Type extends MessageType {
|
|
|
1550
1540
|
return message;
|
|
1551
1541
|
}
|
|
1552
1542
|
internalBinaryWrite(message, writer, options) {
|
|
1553
|
-
/*
|
|
1554
|
-
if (message.id
|
|
1555
|
-
writer.tag(1, WireType.LengthDelimited).
|
|
1543
|
+
/* sid.v1.ids.ApplicationId id = 1; */
|
|
1544
|
+
if (message.id)
|
|
1545
|
+
ApplicationId.internalBinaryWrite(message.id, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
1556
1546
|
let u = options.writeUnknownFields;
|
|
1557
1547
|
if (u !== false)
|
|
1558
1548
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -1567,14 +1557,13 @@ export const GetApplicationRequest = new GetApplicationRequest$Type();
|
|
|
1567
1557
|
class ListApplicationsRequest$Type extends MessageType {
|
|
1568
1558
|
constructor() {
|
|
1569
1559
|
super("sid.v1.projects.ListApplicationsRequest", [
|
|
1570
|
-
{ no: 1, name: "project_id", kind: "
|
|
1560
|
+
{ no: 1, name: "project_id", kind: "message", T: () => ProjectId },
|
|
1571
1561
|
{ no: 2, name: "page_size", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
|
|
1572
1562
|
{ no: 3, name: "page_token", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
1573
1563
|
]);
|
|
1574
1564
|
}
|
|
1575
1565
|
create(value) {
|
|
1576
1566
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
1577
|
-
message.projectId = "";
|
|
1578
1567
|
message.pageSize = 0;
|
|
1579
1568
|
message.pageToken = "";
|
|
1580
1569
|
if (value !== undefined)
|
|
@@ -1586,8 +1575,8 @@ class ListApplicationsRequest$Type extends MessageType {
|
|
|
1586
1575
|
while (reader.pos < end) {
|
|
1587
1576
|
let [fieldNo, wireType] = reader.tag();
|
|
1588
1577
|
switch (fieldNo) {
|
|
1589
|
-
case /*
|
|
1590
|
-
message.projectId = reader.
|
|
1578
|
+
case /* sid.v1.ids.ProjectId project_id */ 1:
|
|
1579
|
+
message.projectId = ProjectId.internalBinaryRead(reader, reader.uint32(), options, message.projectId);
|
|
1591
1580
|
break;
|
|
1592
1581
|
case /* int32 page_size */ 2:
|
|
1593
1582
|
message.pageSize = reader.int32();
|
|
@@ -1607,9 +1596,9 @@ class ListApplicationsRequest$Type extends MessageType {
|
|
|
1607
1596
|
return message;
|
|
1608
1597
|
}
|
|
1609
1598
|
internalBinaryWrite(message, writer, options) {
|
|
1610
|
-
/*
|
|
1611
|
-
if (message.projectId
|
|
1612
|
-
writer.tag(1, WireType.LengthDelimited).
|
|
1599
|
+
/* sid.v1.ids.ProjectId project_id = 1; */
|
|
1600
|
+
if (message.projectId)
|
|
1601
|
+
ProjectId.internalBinaryWrite(message.projectId, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
1613
1602
|
/* int32 page_size = 2; */
|
|
1614
1603
|
if (message.pageSize !== 0)
|
|
1615
1604
|
writer.tag(2, WireType.Varint).int32(message.pageSize);
|
|
@@ -1685,13 +1674,12 @@ export const ListApplicationsResponse = new ListApplicationsResponse$Type();
|
|
|
1685
1674
|
class UpdateApplicationRequest$Type extends MessageType {
|
|
1686
1675
|
constructor() {
|
|
1687
1676
|
super("sid.v1.projects.UpdateApplicationRequest", [
|
|
1688
|
-
{ no: 1, name: "id", kind: "
|
|
1677
|
+
{ no: 1, name: "id", kind: "message", T: () => ApplicationId },
|
|
1689
1678
|
{ no: 2, name: "name", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }
|
|
1690
1679
|
]);
|
|
1691
1680
|
}
|
|
1692
1681
|
create(value) {
|
|
1693
1682
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
1694
|
-
message.id = "";
|
|
1695
1683
|
if (value !== undefined)
|
|
1696
1684
|
reflectionMergePartial(this, message, value);
|
|
1697
1685
|
return message;
|
|
@@ -1701,8 +1689,8 @@ class UpdateApplicationRequest$Type extends MessageType {
|
|
|
1701
1689
|
while (reader.pos < end) {
|
|
1702
1690
|
let [fieldNo, wireType] = reader.tag();
|
|
1703
1691
|
switch (fieldNo) {
|
|
1704
|
-
case /*
|
|
1705
|
-
message.id = reader.
|
|
1692
|
+
case /* sid.v1.ids.ApplicationId id */ 1:
|
|
1693
|
+
message.id = ApplicationId.internalBinaryRead(reader, reader.uint32(), options, message.id);
|
|
1706
1694
|
break;
|
|
1707
1695
|
case /* optional string name */ 2:
|
|
1708
1696
|
message.name = reader.string();
|
|
@@ -1719,9 +1707,9 @@ class UpdateApplicationRequest$Type extends MessageType {
|
|
|
1719
1707
|
return message;
|
|
1720
1708
|
}
|
|
1721
1709
|
internalBinaryWrite(message, writer, options) {
|
|
1722
|
-
/*
|
|
1723
|
-
if (message.id
|
|
1724
|
-
writer.tag(1, WireType.LengthDelimited).
|
|
1710
|
+
/* sid.v1.ids.ApplicationId id = 1; */
|
|
1711
|
+
if (message.id)
|
|
1712
|
+
ApplicationId.internalBinaryWrite(message.id, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
1725
1713
|
/* optional string name = 2; */
|
|
1726
1714
|
if (message.name !== undefined)
|
|
1727
1715
|
writer.tag(2, WireType.LengthDelimited).string(message.name);
|
|
@@ -1739,12 +1727,11 @@ export const UpdateApplicationRequest = new UpdateApplicationRequest$Type();
|
|
|
1739
1727
|
class DeleteApplicationRequest$Type extends MessageType {
|
|
1740
1728
|
constructor() {
|
|
1741
1729
|
super("sid.v1.projects.DeleteApplicationRequest", [
|
|
1742
|
-
{ no: 1, name: "id", kind: "
|
|
1730
|
+
{ no: 1, name: "id", kind: "message", T: () => ApplicationId }
|
|
1743
1731
|
]);
|
|
1744
1732
|
}
|
|
1745
1733
|
create(value) {
|
|
1746
1734
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
1747
|
-
message.id = "";
|
|
1748
1735
|
if (value !== undefined)
|
|
1749
1736
|
reflectionMergePartial(this, message, value);
|
|
1750
1737
|
return message;
|
|
@@ -1754,8 +1741,8 @@ class DeleteApplicationRequest$Type extends MessageType {
|
|
|
1754
1741
|
while (reader.pos < end) {
|
|
1755
1742
|
let [fieldNo, wireType] = reader.tag();
|
|
1756
1743
|
switch (fieldNo) {
|
|
1757
|
-
case /*
|
|
1758
|
-
message.id = reader.
|
|
1744
|
+
case /* sid.v1.ids.ApplicationId id */ 1:
|
|
1745
|
+
message.id = ApplicationId.internalBinaryRead(reader, reader.uint32(), options, message.id);
|
|
1759
1746
|
break;
|
|
1760
1747
|
default:
|
|
1761
1748
|
let u = options.readUnknownField;
|
|
@@ -1769,9 +1756,9 @@ class DeleteApplicationRequest$Type extends MessageType {
|
|
|
1769
1756
|
return message;
|
|
1770
1757
|
}
|
|
1771
1758
|
internalBinaryWrite(message, writer, options) {
|
|
1772
|
-
/*
|
|
1773
|
-
if (message.id
|
|
1774
|
-
writer.tag(1, WireType.LengthDelimited).
|
|
1759
|
+
/* sid.v1.ids.ApplicationId id = 1; */
|
|
1760
|
+
if (message.id)
|
|
1761
|
+
ApplicationId.internalBinaryWrite(message.id, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
1775
1762
|
let u = options.writeUnknownFields;
|
|
1776
1763
|
if (u !== false)
|
|
1777
1764
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -1786,13 +1773,12 @@ export const DeleteApplicationRequest = new DeleteApplicationRequest$Type();
|
|
|
1786
1773
|
class AddClientRoleRequest$Type extends MessageType {
|
|
1787
1774
|
constructor() {
|
|
1788
1775
|
super("sid.v1.projects.AddClientRoleRequest", [
|
|
1789
|
-
{ no: 1, name: "application_id", kind: "
|
|
1776
|
+
{ no: 1, name: "application_id", kind: "message", T: () => ApplicationId },
|
|
1790
1777
|
{ no: 2, name: "settings", kind: "message", T: () => ClientRoleSettings }
|
|
1791
1778
|
]);
|
|
1792
1779
|
}
|
|
1793
1780
|
create(value) {
|
|
1794
1781
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
1795
|
-
message.applicationId = "";
|
|
1796
1782
|
if (value !== undefined)
|
|
1797
1783
|
reflectionMergePartial(this, message, value);
|
|
1798
1784
|
return message;
|
|
@@ -1802,8 +1788,8 @@ class AddClientRoleRequest$Type extends MessageType {
|
|
|
1802
1788
|
while (reader.pos < end) {
|
|
1803
1789
|
let [fieldNo, wireType] = reader.tag();
|
|
1804
1790
|
switch (fieldNo) {
|
|
1805
|
-
case /*
|
|
1806
|
-
message.applicationId = reader.
|
|
1791
|
+
case /* sid.v1.ids.ApplicationId application_id */ 1:
|
|
1792
|
+
message.applicationId = ApplicationId.internalBinaryRead(reader, reader.uint32(), options, message.applicationId);
|
|
1807
1793
|
break;
|
|
1808
1794
|
case /* sid.v1.projects.ClientRoleSettings settings */ 2:
|
|
1809
1795
|
message.settings = ClientRoleSettings.internalBinaryRead(reader, reader.uint32(), options, message.settings);
|
|
@@ -1820,9 +1806,9 @@ class AddClientRoleRequest$Type extends MessageType {
|
|
|
1820
1806
|
return message;
|
|
1821
1807
|
}
|
|
1822
1808
|
internalBinaryWrite(message, writer, options) {
|
|
1823
|
-
/*
|
|
1824
|
-
if (message.applicationId
|
|
1825
|
-
writer.tag(1, WireType.LengthDelimited).
|
|
1809
|
+
/* sid.v1.ids.ApplicationId application_id = 1; */
|
|
1810
|
+
if (message.applicationId)
|
|
1811
|
+
ApplicationId.internalBinaryWrite(message.applicationId, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
1826
1812
|
/* sid.v1.projects.ClientRoleSettings settings = 2; */
|
|
1827
1813
|
if (message.settings)
|
|
1828
1814
|
ClientRoleSettings.internalBinaryWrite(message.settings, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
@@ -1847,7 +1833,7 @@ class UpdateClientRoleRequest$Type extends MessageType {
|
|
|
1847
1833
|
{ no: 5, name: "grant_types", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
|
1848
1834
|
{ no: 6, name: "active", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ },
|
|
1849
1835
|
{ no: 7, name: "subject_type", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
1850
|
-
{ no: 8, name: "
|
|
1836
|
+
{ no: 8, name: "default_resource", kind: "message", T: () => DefaultResource },
|
|
1851
1837
|
{ no: 9, name: "post_logout_redirect_uris", kind: "message", T: () => UriList }
|
|
1852
1838
|
]);
|
|
1853
1839
|
}
|
|
@@ -1887,8 +1873,8 @@ class UpdateClientRoleRequest$Type extends MessageType {
|
|
|
1887
1873
|
case /* optional string subject_type */ 7:
|
|
1888
1874
|
message.subjectType = reader.string();
|
|
1889
1875
|
break;
|
|
1890
|
-
case /*
|
|
1891
|
-
message.
|
|
1876
|
+
case /* sid.v1.projects.DefaultResource default_resource */ 8:
|
|
1877
|
+
message.defaultResource = DefaultResource.internalBinaryRead(reader, reader.uint32(), options, message.defaultResource);
|
|
1892
1878
|
break;
|
|
1893
1879
|
case /* optional sid.v1.projects.UriList post_logout_redirect_uris */ 9:
|
|
1894
1880
|
message.postLogoutRedirectUris = UriList.internalBinaryRead(reader, reader.uint32(), options, message.postLogoutRedirectUris);
|
|
@@ -1926,9 +1912,9 @@ class UpdateClientRoleRequest$Type extends MessageType {
|
|
|
1926
1912
|
/* optional string subject_type = 7; */
|
|
1927
1913
|
if (message.subjectType !== undefined)
|
|
1928
1914
|
writer.tag(7, WireType.LengthDelimited).string(message.subjectType);
|
|
1929
|
-
/*
|
|
1930
|
-
if (message.
|
|
1931
|
-
writer.tag(8, WireType.LengthDelimited).
|
|
1915
|
+
/* sid.v1.projects.DefaultResource default_resource = 8; */
|
|
1916
|
+
if (message.defaultResource)
|
|
1917
|
+
DefaultResource.internalBinaryWrite(message.defaultResource, writer.tag(8, WireType.LengthDelimited).fork(), options).join();
|
|
1932
1918
|
/* optional sid.v1.projects.UriList post_logout_redirect_uris = 9; */
|
|
1933
1919
|
if (message.postLogoutRedirectUris)
|
|
1934
1920
|
UriList.internalBinaryWrite(message.postLogoutRedirectUris, writer.tag(9, WireType.LengthDelimited).fork(), options).join();
|
|
@@ -1943,16 +1929,61 @@ class UpdateClientRoleRequest$Type extends MessageType {
|
|
|
1943
1929
|
*/
|
|
1944
1930
|
export const UpdateClientRoleRequest = new UpdateClientRoleRequest$Type();
|
|
1945
1931
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
1932
|
+
class DefaultResource$Type extends MessageType {
|
|
1933
|
+
constructor() {
|
|
1934
|
+
super("sid.v1.projects.DefaultResource", [
|
|
1935
|
+
{ no: 1, name: "resource_id", kind: "message", T: () => ResourceId }
|
|
1936
|
+
]);
|
|
1937
|
+
}
|
|
1938
|
+
create(value) {
|
|
1939
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
1940
|
+
if (value !== undefined)
|
|
1941
|
+
reflectionMergePartial(this, message, value);
|
|
1942
|
+
return message;
|
|
1943
|
+
}
|
|
1944
|
+
internalBinaryRead(reader, length, options, target) {
|
|
1945
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1946
|
+
while (reader.pos < end) {
|
|
1947
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1948
|
+
switch (fieldNo) {
|
|
1949
|
+
case /* sid.v1.ids.ResourceId resource_id */ 1:
|
|
1950
|
+
message.resourceId = ResourceId.internalBinaryRead(reader, reader.uint32(), options, message.resourceId);
|
|
1951
|
+
break;
|
|
1952
|
+
default:
|
|
1953
|
+
let u = options.readUnknownField;
|
|
1954
|
+
if (u === "throw")
|
|
1955
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1956
|
+
let d = reader.skip(wireType);
|
|
1957
|
+
if (u !== false)
|
|
1958
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1959
|
+
}
|
|
1960
|
+
}
|
|
1961
|
+
return message;
|
|
1962
|
+
}
|
|
1963
|
+
internalBinaryWrite(message, writer, options) {
|
|
1964
|
+
/* sid.v1.ids.ResourceId resource_id = 1; */
|
|
1965
|
+
if (message.resourceId)
|
|
1966
|
+
ResourceId.internalBinaryWrite(message.resourceId, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
1967
|
+
let u = options.writeUnknownFields;
|
|
1968
|
+
if (u !== false)
|
|
1969
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1970
|
+
return writer;
|
|
1971
|
+
}
|
|
1972
|
+
}
|
|
1973
|
+
/**
|
|
1974
|
+
* @generated MessageType for protobuf message sid.v1.projects.DefaultResource
|
|
1975
|
+
*/
|
|
1976
|
+
export const DefaultResource = new DefaultResource$Type();
|
|
1977
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1946
1978
|
class AddResourceRoleRequest$Type extends MessageType {
|
|
1947
1979
|
constructor() {
|
|
1948
1980
|
super("sid.v1.projects.AddResourceRoleRequest", [
|
|
1949
|
-
{ no: 1, name: "application_id", kind: "
|
|
1981
|
+
{ no: 1, name: "application_id", kind: "message", T: () => ApplicationId },
|
|
1950
1982
|
{ no: 2, name: "settings", kind: "message", T: () => ResourceRoleSettings }
|
|
1951
1983
|
]);
|
|
1952
1984
|
}
|
|
1953
1985
|
create(value) {
|
|
1954
1986
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
1955
|
-
message.applicationId = "";
|
|
1956
1987
|
if (value !== undefined)
|
|
1957
1988
|
reflectionMergePartial(this, message, value);
|
|
1958
1989
|
return message;
|
|
@@ -1962,8 +1993,8 @@ class AddResourceRoleRequest$Type extends MessageType {
|
|
|
1962
1993
|
while (reader.pos < end) {
|
|
1963
1994
|
let [fieldNo, wireType] = reader.tag();
|
|
1964
1995
|
switch (fieldNo) {
|
|
1965
|
-
case /*
|
|
1966
|
-
message.applicationId = reader.
|
|
1996
|
+
case /* sid.v1.ids.ApplicationId application_id */ 1:
|
|
1997
|
+
message.applicationId = ApplicationId.internalBinaryRead(reader, reader.uint32(), options, message.applicationId);
|
|
1967
1998
|
break;
|
|
1968
1999
|
case /* sid.v1.projects.ResourceRoleSettings settings */ 2:
|
|
1969
2000
|
message.settings = ResourceRoleSettings.internalBinaryRead(reader, reader.uint32(), options, message.settings);
|
|
@@ -1980,9 +2011,9 @@ class AddResourceRoleRequest$Type extends MessageType {
|
|
|
1980
2011
|
return message;
|
|
1981
2012
|
}
|
|
1982
2013
|
internalBinaryWrite(message, writer, options) {
|
|
1983
|
-
/*
|
|
1984
|
-
if (message.applicationId
|
|
1985
|
-
writer.tag(1, WireType.LengthDelimited).
|
|
2014
|
+
/* sid.v1.ids.ApplicationId application_id = 1; */
|
|
2015
|
+
if (message.applicationId)
|
|
2016
|
+
ApplicationId.internalBinaryWrite(message.applicationId, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
1986
2017
|
/* sid.v1.projects.ResourceRoleSettings settings = 2; */
|
|
1987
2018
|
if (message.settings)
|
|
1988
2019
|
ResourceRoleSettings.internalBinaryWrite(message.settings, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
@@ -2047,14 +2078,13 @@ export const ScopeList = new ScopeList$Type();
|
|
|
2047
2078
|
class UpdateResourceRoleRequest$Type extends MessageType {
|
|
2048
2079
|
constructor() {
|
|
2049
2080
|
super("sid.v1.projects.UpdateResourceRoleRequest", [
|
|
2050
|
-
{ no: 1, name: "resource_id", kind: "
|
|
2081
|
+
{ no: 1, name: "resource_id", kind: "message", T: () => ResourceId },
|
|
2051
2082
|
{ no: 2, name: "scopes", kind: "message", T: () => ScopeList },
|
|
2052
2083
|
{ no: 3, name: "state", kind: "enum", opt: true, T: () => ["sid.v1.projects.ResourceState", ResourceState, "RESOURCE_STATE_"] }
|
|
2053
2084
|
]);
|
|
2054
2085
|
}
|
|
2055
2086
|
create(value) {
|
|
2056
2087
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
2057
|
-
message.resourceId = "";
|
|
2058
2088
|
if (value !== undefined)
|
|
2059
2089
|
reflectionMergePartial(this, message, value);
|
|
2060
2090
|
return message;
|
|
@@ -2064,8 +2094,8 @@ class UpdateResourceRoleRequest$Type extends MessageType {
|
|
|
2064
2094
|
while (reader.pos < end) {
|
|
2065
2095
|
let [fieldNo, wireType] = reader.tag();
|
|
2066
2096
|
switch (fieldNo) {
|
|
2067
|
-
case /*
|
|
2068
|
-
message.resourceId = reader.
|
|
2097
|
+
case /* sid.v1.ids.ResourceId resource_id */ 1:
|
|
2098
|
+
message.resourceId = ResourceId.internalBinaryRead(reader, reader.uint32(), options, message.resourceId);
|
|
2069
2099
|
break;
|
|
2070
2100
|
case /* optional sid.v1.projects.ScopeList scopes */ 2:
|
|
2071
2101
|
message.scopes = ScopeList.internalBinaryRead(reader, reader.uint32(), options, message.scopes);
|
|
@@ -2085,9 +2115,9 @@ class UpdateResourceRoleRequest$Type extends MessageType {
|
|
|
2085
2115
|
return message;
|
|
2086
2116
|
}
|
|
2087
2117
|
internalBinaryWrite(message, writer, options) {
|
|
2088
|
-
/*
|
|
2089
|
-
if (message.resourceId
|
|
2090
|
-
writer.tag(1, WireType.LengthDelimited).
|
|
2118
|
+
/* sid.v1.ids.ResourceId resource_id = 1; */
|
|
2119
|
+
if (message.resourceId)
|
|
2120
|
+
ResourceId.internalBinaryWrite(message.resourceId, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
2091
2121
|
/* optional sid.v1.projects.ScopeList scopes = 2; */
|
|
2092
2122
|
if (message.scopes)
|
|
2093
2123
|
ScopeList.internalBinaryWrite(message.scopes, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
@@ -2109,14 +2139,13 @@ class SetResourceAccessRequest$Type extends MessageType {
|
|
|
2109
2139
|
constructor() {
|
|
2110
2140
|
super("sid.v1.projects.SetResourceAccessRequest", [
|
|
2111
2141
|
{ no: 1, name: "client_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
2112
|
-
{ no: 2, name: "resource_id", kind: "
|
|
2142
|
+
{ no: 2, name: "resource_id", kind: "message", T: () => ResourceId },
|
|
2113
2143
|
{ no: 3, name: "scopes", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }
|
|
2114
2144
|
]);
|
|
2115
2145
|
}
|
|
2116
2146
|
create(value) {
|
|
2117
2147
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
2118
2148
|
message.clientId = "";
|
|
2119
|
-
message.resourceId = "";
|
|
2120
2149
|
message.scopes = [];
|
|
2121
2150
|
if (value !== undefined)
|
|
2122
2151
|
reflectionMergePartial(this, message, value);
|
|
@@ -2130,8 +2159,8 @@ class SetResourceAccessRequest$Type extends MessageType {
|
|
|
2130
2159
|
case /* string client_id */ 1:
|
|
2131
2160
|
message.clientId = reader.string();
|
|
2132
2161
|
break;
|
|
2133
|
-
case /*
|
|
2134
|
-
message.resourceId = reader.
|
|
2162
|
+
case /* sid.v1.ids.ResourceId resource_id */ 2:
|
|
2163
|
+
message.resourceId = ResourceId.internalBinaryRead(reader, reader.uint32(), options, message.resourceId);
|
|
2135
2164
|
break;
|
|
2136
2165
|
case /* repeated string scopes */ 3:
|
|
2137
2166
|
message.scopes.push(reader.string());
|
|
@@ -2151,9 +2180,9 @@ class SetResourceAccessRequest$Type extends MessageType {
|
|
|
2151
2180
|
/* string client_id = 1; */
|
|
2152
2181
|
if (message.clientId !== "")
|
|
2153
2182
|
writer.tag(1, WireType.LengthDelimited).string(message.clientId);
|
|
2154
|
-
/*
|
|
2155
|
-
if (message.resourceId
|
|
2156
|
-
writer.tag(2, WireType.LengthDelimited).
|
|
2183
|
+
/* sid.v1.ids.ResourceId resource_id = 2; */
|
|
2184
|
+
if (message.resourceId)
|
|
2185
|
+
ResourceId.internalBinaryWrite(message.resourceId, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
2157
2186
|
/* repeated string scopes = 3; */
|
|
2158
2187
|
for (let i = 0; i < message.scopes.length; i++)
|
|
2159
2188
|
writer.tag(3, WireType.LengthDelimited).string(message.scopes[i]);
|
|
@@ -2172,13 +2201,12 @@ class RemoveResourceAccessRequest$Type extends MessageType {
|
|
|
2172
2201
|
constructor() {
|
|
2173
2202
|
super("sid.v1.projects.RemoveResourceAccessRequest", [
|
|
2174
2203
|
{ no: 1, name: "client_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
2175
|
-
{ no: 2, name: "resource_id", kind: "
|
|
2204
|
+
{ no: 2, name: "resource_id", kind: "message", T: () => ResourceId }
|
|
2176
2205
|
]);
|
|
2177
2206
|
}
|
|
2178
2207
|
create(value) {
|
|
2179
2208
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
2180
2209
|
message.clientId = "";
|
|
2181
|
-
message.resourceId = "";
|
|
2182
2210
|
if (value !== undefined)
|
|
2183
2211
|
reflectionMergePartial(this, message, value);
|
|
2184
2212
|
return message;
|
|
@@ -2191,8 +2219,8 @@ class RemoveResourceAccessRequest$Type extends MessageType {
|
|
|
2191
2219
|
case /* string client_id */ 1:
|
|
2192
2220
|
message.clientId = reader.string();
|
|
2193
2221
|
break;
|
|
2194
|
-
case /*
|
|
2195
|
-
message.resourceId = reader.
|
|
2222
|
+
case /* sid.v1.ids.ResourceId resource_id */ 2:
|
|
2223
|
+
message.resourceId = ResourceId.internalBinaryRead(reader, reader.uint32(), options, message.resourceId);
|
|
2196
2224
|
break;
|
|
2197
2225
|
default:
|
|
2198
2226
|
let u = options.readUnknownField;
|
|
@@ -2209,9 +2237,9 @@ class RemoveResourceAccessRequest$Type extends MessageType {
|
|
|
2209
2237
|
/* string client_id = 1; */
|
|
2210
2238
|
if (message.clientId !== "")
|
|
2211
2239
|
writer.tag(1, WireType.LengthDelimited).string(message.clientId);
|
|
2212
|
-
/*
|
|
2213
|
-
if (message.resourceId
|
|
2214
|
-
writer.tag(2, WireType.LengthDelimited).
|
|
2240
|
+
/* sid.v1.ids.ResourceId resource_id = 2; */
|
|
2241
|
+
if (message.resourceId)
|
|
2242
|
+
ResourceId.internalBinaryWrite(message.resourceId, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
2215
2243
|
let u = options.writeUnknownFields;
|
|
2216
2244
|
if (u !== false)
|
|
2217
2245
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -2227,7 +2255,7 @@ class ListResourceAccessRequest$Type extends MessageType {
|
|
|
2227
2255
|
constructor() {
|
|
2228
2256
|
super("sid.v1.projects.ListResourceAccessRequest", [
|
|
2229
2257
|
{ no: 1, name: "client_id", kind: "scalar", oneof: "subject", T: 9 /*ScalarType.STRING*/ },
|
|
2230
|
-
{ no: 2, name: "resource_id", kind: "
|
|
2258
|
+
{ no: 2, name: "resource_id", kind: "message", oneof: "subject", T: () => ResourceId }
|
|
2231
2259
|
]);
|
|
2232
2260
|
}
|
|
2233
2261
|
create(value) {
|
|
@@ -2248,10 +2276,10 @@ class ListResourceAccessRequest$Type extends MessageType {
|
|
|
2248
2276
|
clientId: reader.string()
|
|
2249
2277
|
};
|
|
2250
2278
|
break;
|
|
2251
|
-
case /*
|
|
2279
|
+
case /* sid.v1.ids.ResourceId resource_id */ 2:
|
|
2252
2280
|
message.subject = {
|
|
2253
2281
|
oneofKind: "resourceId",
|
|
2254
|
-
resourceId: reader.
|
|
2282
|
+
resourceId: ResourceId.internalBinaryRead(reader, reader.uint32(), options, message.subject.resourceId)
|
|
2255
2283
|
};
|
|
2256
2284
|
break;
|
|
2257
2285
|
default:
|
|
@@ -2269,9 +2297,9 @@ class ListResourceAccessRequest$Type extends MessageType {
|
|
|
2269
2297
|
/* string client_id = 1; */
|
|
2270
2298
|
if (message.subject.oneofKind === "clientId")
|
|
2271
2299
|
writer.tag(1, WireType.LengthDelimited).string(message.subject.clientId);
|
|
2272
|
-
/*
|
|
2300
|
+
/* sid.v1.ids.ResourceId resource_id = 2; */
|
|
2273
2301
|
if (message.subject.oneofKind === "resourceId")
|
|
2274
|
-
writer.tag(2, WireType.LengthDelimited).
|
|
2302
|
+
ResourceId.internalBinaryWrite(message.subject.resourceId, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
2275
2303
|
let u = options.writeUnknownFields;
|
|
2276
2304
|
if (u !== false)
|
|
2277
2305
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -2333,7 +2361,7 @@ export const ListResourceAccessResponse = new ListResourceAccessResponse$Type();
|
|
|
2333
2361
|
class AddRoleRequest$Type extends MessageType {
|
|
2334
2362
|
constructor() {
|
|
2335
2363
|
super("sid.v1.projects.AddRoleRequest", [
|
|
2336
|
-
{ no: 1, name: "project_id", kind: "
|
|
2364
|
+
{ no: 1, name: "project_id", kind: "message", T: () => ProjectId },
|
|
2337
2365
|
{ no: 2, name: "key", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
2338
2366
|
{ no: 3, name: "display_name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
2339
2367
|
{ no: 4, name: "description", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
@@ -2343,7 +2371,6 @@ class AddRoleRequest$Type extends MessageType {
|
|
|
2343
2371
|
}
|
|
2344
2372
|
create(value) {
|
|
2345
2373
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
2346
|
-
message.projectId = "";
|
|
2347
2374
|
message.key = "";
|
|
2348
2375
|
message.displayName = "";
|
|
2349
2376
|
message.permissions = [];
|
|
@@ -2356,8 +2383,8 @@ class AddRoleRequest$Type extends MessageType {
|
|
|
2356
2383
|
while (reader.pos < end) {
|
|
2357
2384
|
let [fieldNo, wireType] = reader.tag();
|
|
2358
2385
|
switch (fieldNo) {
|
|
2359
|
-
case /*
|
|
2360
|
-
message.projectId = reader.
|
|
2386
|
+
case /* sid.v1.ids.ProjectId project_id */ 1:
|
|
2387
|
+
message.projectId = ProjectId.internalBinaryRead(reader, reader.uint32(), options, message.projectId);
|
|
2361
2388
|
break;
|
|
2362
2389
|
case /* string key */ 2:
|
|
2363
2390
|
message.key = reader.string();
|
|
@@ -2386,9 +2413,9 @@ class AddRoleRequest$Type extends MessageType {
|
|
|
2386
2413
|
return message;
|
|
2387
2414
|
}
|
|
2388
2415
|
internalBinaryWrite(message, writer, options) {
|
|
2389
|
-
/*
|
|
2390
|
-
if (message.projectId
|
|
2391
|
-
writer.tag(1, WireType.LengthDelimited).
|
|
2416
|
+
/* sid.v1.ids.ProjectId project_id = 1; */
|
|
2417
|
+
if (message.projectId)
|
|
2418
|
+
ProjectId.internalBinaryWrite(message.projectId, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
2392
2419
|
/* string key = 2; */
|
|
2393
2420
|
if (message.key !== "")
|
|
2394
2421
|
writer.tag(2, WireType.LengthDelimited).string(message.key);
|
|
@@ -2418,14 +2445,12 @@ export const AddRoleRequest = new AddRoleRequest$Type();
|
|
|
2418
2445
|
class RemoveRoleRequest$Type extends MessageType {
|
|
2419
2446
|
constructor() {
|
|
2420
2447
|
super("sid.v1.projects.RemoveRoleRequest", [
|
|
2421
|
-
{ no: 1, name: "project_id", kind: "
|
|
2422
|
-
{ no: 2, name: "role_id", kind: "
|
|
2448
|
+
{ no: 1, name: "project_id", kind: "message", T: () => ProjectId },
|
|
2449
|
+
{ no: 2, name: "role_id", kind: "message", T: () => RoleId }
|
|
2423
2450
|
]);
|
|
2424
2451
|
}
|
|
2425
2452
|
create(value) {
|
|
2426
2453
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
2427
|
-
message.projectId = "";
|
|
2428
|
-
message.roleId = "";
|
|
2429
2454
|
if (value !== undefined)
|
|
2430
2455
|
reflectionMergePartial(this, message, value);
|
|
2431
2456
|
return message;
|
|
@@ -2435,11 +2460,11 @@ class RemoveRoleRequest$Type extends MessageType {
|
|
|
2435
2460
|
while (reader.pos < end) {
|
|
2436
2461
|
let [fieldNo, wireType] = reader.tag();
|
|
2437
2462
|
switch (fieldNo) {
|
|
2438
|
-
case /*
|
|
2439
|
-
message.projectId = reader.
|
|
2463
|
+
case /* sid.v1.ids.ProjectId project_id */ 1:
|
|
2464
|
+
message.projectId = ProjectId.internalBinaryRead(reader, reader.uint32(), options, message.projectId);
|
|
2440
2465
|
break;
|
|
2441
|
-
case /*
|
|
2442
|
-
message.roleId = reader.
|
|
2466
|
+
case /* sid.v1.ids.RoleId role_id */ 2:
|
|
2467
|
+
message.roleId = RoleId.internalBinaryRead(reader, reader.uint32(), options, message.roleId);
|
|
2443
2468
|
break;
|
|
2444
2469
|
default:
|
|
2445
2470
|
let u = options.readUnknownField;
|
|
@@ -2453,12 +2478,12 @@ class RemoveRoleRequest$Type extends MessageType {
|
|
|
2453
2478
|
return message;
|
|
2454
2479
|
}
|
|
2455
2480
|
internalBinaryWrite(message, writer, options) {
|
|
2456
|
-
/*
|
|
2457
|
-
if (message.projectId
|
|
2458
|
-
writer.tag(1, WireType.LengthDelimited).
|
|
2459
|
-
/*
|
|
2460
|
-
if (message.roleId
|
|
2461
|
-
writer.tag(2, WireType.LengthDelimited).
|
|
2481
|
+
/* sid.v1.ids.ProjectId project_id = 1; */
|
|
2482
|
+
if (message.projectId)
|
|
2483
|
+
ProjectId.internalBinaryWrite(message.projectId, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
2484
|
+
/* sid.v1.ids.RoleId role_id = 2; */
|
|
2485
|
+
if (message.roleId)
|
|
2486
|
+
RoleId.internalBinaryWrite(message.roleId, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
2462
2487
|
let u = options.writeUnknownFields;
|
|
2463
2488
|
if (u !== false)
|
|
2464
2489
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -2930,7 +2955,7 @@ export const DeleteRegisteredClientRequest = new DeleteRegisteredClientRequest$T
|
|
|
2930
2955
|
class CreateInitialAccessTokenRequest$Type extends MessageType {
|
|
2931
2956
|
constructor() {
|
|
2932
2957
|
super("sid.v1.projects.CreateInitialAccessTokenRequest", [
|
|
2933
|
-
{ no: 1, name: "project_id", kind: "
|
|
2958
|
+
{ no: 1, name: "project_id", kind: "message", T: () => ProjectId },
|
|
2934
2959
|
{ no: 2, name: "max_clients", kind: "scalar", T: 13 /*ScalarType.UINT32*/ },
|
|
2935
2960
|
{ no: 3, name: "allowed_scopes", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
|
2936
2961
|
{ no: 4, name: "allowed_grant_types", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
|
@@ -2940,7 +2965,6 @@ class CreateInitialAccessTokenRequest$Type extends MessageType {
|
|
|
2940
2965
|
}
|
|
2941
2966
|
create(value) {
|
|
2942
2967
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
2943
|
-
message.projectId = "";
|
|
2944
2968
|
message.maxClients = 0;
|
|
2945
2969
|
message.allowedScopes = [];
|
|
2946
2970
|
message.allowedGrantTypes = [];
|
|
@@ -2955,8 +2979,8 @@ class CreateInitialAccessTokenRequest$Type extends MessageType {
|
|
|
2955
2979
|
while (reader.pos < end) {
|
|
2956
2980
|
let [fieldNo, wireType] = reader.tag();
|
|
2957
2981
|
switch (fieldNo) {
|
|
2958
|
-
case /*
|
|
2959
|
-
message.projectId = reader.
|
|
2982
|
+
case /* sid.v1.ids.ProjectId project_id */ 1:
|
|
2983
|
+
message.projectId = ProjectId.internalBinaryRead(reader, reader.uint32(), options, message.projectId);
|
|
2960
2984
|
break;
|
|
2961
2985
|
case /* uint32 max_clients */ 2:
|
|
2962
2986
|
message.maxClients = reader.uint32();
|
|
@@ -2985,9 +3009,9 @@ class CreateInitialAccessTokenRequest$Type extends MessageType {
|
|
|
2985
3009
|
return message;
|
|
2986
3010
|
}
|
|
2987
3011
|
internalBinaryWrite(message, writer, options) {
|
|
2988
|
-
/*
|
|
2989
|
-
if (message.projectId
|
|
2990
|
-
writer.tag(1, WireType.LengthDelimited).
|
|
3012
|
+
/* sid.v1.ids.ProjectId project_id = 1; */
|
|
3013
|
+
if (message.projectId)
|
|
3014
|
+
ProjectId.internalBinaryWrite(message.projectId, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
2991
3015
|
/* uint32 max_clients = 2; */
|
|
2992
3016
|
if (message.maxClients !== 0)
|
|
2993
3017
|
writer.tag(2, WireType.Varint).uint32(message.maxClients);
|
|
@@ -3071,12 +3095,11 @@ export const CreateInitialAccessTokenResponse = new CreateInitialAccessTokenResp
|
|
|
3071
3095
|
class ListInitialAccessTokensRequest$Type extends MessageType {
|
|
3072
3096
|
constructor() {
|
|
3073
3097
|
super("sid.v1.projects.ListInitialAccessTokensRequest", [
|
|
3074
|
-
{ no: 1, name: "project_id", kind: "
|
|
3098
|
+
{ no: 1, name: "project_id", kind: "message", T: () => ProjectId }
|
|
3075
3099
|
]);
|
|
3076
3100
|
}
|
|
3077
3101
|
create(value) {
|
|
3078
3102
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
3079
|
-
message.projectId = "";
|
|
3080
3103
|
if (value !== undefined)
|
|
3081
3104
|
reflectionMergePartial(this, message, value);
|
|
3082
3105
|
return message;
|
|
@@ -3086,8 +3109,8 @@ class ListInitialAccessTokensRequest$Type extends MessageType {
|
|
|
3086
3109
|
while (reader.pos < end) {
|
|
3087
3110
|
let [fieldNo, wireType] = reader.tag();
|
|
3088
3111
|
switch (fieldNo) {
|
|
3089
|
-
case /*
|
|
3090
|
-
message.projectId = reader.
|
|
3112
|
+
case /* sid.v1.ids.ProjectId project_id */ 1:
|
|
3113
|
+
message.projectId = ProjectId.internalBinaryRead(reader, reader.uint32(), options, message.projectId);
|
|
3091
3114
|
break;
|
|
3092
3115
|
default:
|
|
3093
3116
|
let u = options.readUnknownField;
|
|
@@ -3101,9 +3124,9 @@ class ListInitialAccessTokensRequest$Type extends MessageType {
|
|
|
3101
3124
|
return message;
|
|
3102
3125
|
}
|
|
3103
3126
|
internalBinaryWrite(message, writer, options) {
|
|
3104
|
-
/*
|
|
3105
|
-
if (message.projectId
|
|
3106
|
-
writer.tag(1, WireType.LengthDelimited).
|
|
3127
|
+
/* sid.v1.ids.ProjectId project_id = 1; */
|
|
3128
|
+
if (message.projectId)
|
|
3129
|
+
ProjectId.internalBinaryWrite(message.projectId, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
3107
3130
|
let u = options.writeUnknownFields;
|
|
3108
3131
|
if (u !== false)
|
|
3109
3132
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -3165,12 +3188,11 @@ export const ListInitialAccessTokensResponse = new ListInitialAccessTokensRespon
|
|
|
3165
3188
|
class RevokeInitialAccessTokenRequest$Type extends MessageType {
|
|
3166
3189
|
constructor() {
|
|
3167
3190
|
super("sid.v1.projects.RevokeInitialAccessTokenRequest", [
|
|
3168
|
-
{ no: 1, name: "id", kind: "
|
|
3191
|
+
{ no: 1, name: "id", kind: "message", T: () => InitialAccessTokenId }
|
|
3169
3192
|
]);
|
|
3170
3193
|
}
|
|
3171
3194
|
create(value) {
|
|
3172
3195
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
3173
|
-
message.id = "";
|
|
3174
3196
|
if (value !== undefined)
|
|
3175
3197
|
reflectionMergePartial(this, message, value);
|
|
3176
3198
|
return message;
|
|
@@ -3180,8 +3202,8 @@ class RevokeInitialAccessTokenRequest$Type extends MessageType {
|
|
|
3180
3202
|
while (reader.pos < end) {
|
|
3181
3203
|
let [fieldNo, wireType] = reader.tag();
|
|
3182
3204
|
switch (fieldNo) {
|
|
3183
|
-
case /*
|
|
3184
|
-
message.id = reader.
|
|
3205
|
+
case /* sid.v1.ids.InitialAccessTokenId id */ 1:
|
|
3206
|
+
message.id = InitialAccessTokenId.internalBinaryRead(reader, reader.uint32(), options, message.id);
|
|
3185
3207
|
break;
|
|
3186
3208
|
default:
|
|
3187
3209
|
let u = options.readUnknownField;
|
|
@@ -3195,9 +3217,9 @@ class RevokeInitialAccessTokenRequest$Type extends MessageType {
|
|
|
3195
3217
|
return message;
|
|
3196
3218
|
}
|
|
3197
3219
|
internalBinaryWrite(message, writer, options) {
|
|
3198
|
-
/*
|
|
3199
|
-
if (message.id
|
|
3200
|
-
writer.tag(1, WireType.LengthDelimited).
|
|
3220
|
+
/* sid.v1.ids.InitialAccessTokenId id = 1; */
|
|
3221
|
+
if (message.id)
|
|
3222
|
+
InitialAccessTokenId.internalBinaryWrite(message.id, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
3201
3223
|
let u = options.writeUnknownFields;
|
|
3202
3224
|
if (u !== false)
|
|
3203
3225
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -3213,30 +3235,30 @@ export const RevokeInitialAccessTokenRequest = new RevokeInitialAccessTokenReque
|
|
|
3213
3235
|
*/
|
|
3214
3236
|
export const ProjectService = new ServiceType("sid.v1.projects.ProjectService", [
|
|
3215
3237
|
{ name: "CreateProject", idempotency: "IDEMPOTENT", options: { "google.api.http": { post: "/v1/projects", body: "*" }, "sid.v1.common.retry": { keyed: true } }, I: CreateProjectRequest, O: Project },
|
|
3216
|
-
{ name: "GetProject", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { get: "/v1/projects/{id}" } }, I: GetProjectRequest, O: Project },
|
|
3238
|
+
{ name: "GetProject", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { get: "/v1/projects/{id.value}" } }, I: GetProjectRequest, O: Project },
|
|
3217
3239
|
{ name: "ListProjects", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { get: "/v1/projects" } }, I: ListProjectsRequest, O: ListProjectsResponse },
|
|
3218
|
-
{ name: "UpdateProject", idempotency: "IDEMPOTENT", options: { "google.api.http": { patch: "/v1/projects/{id}", body: "*" }, "sid.v1.common.retry": { keyed: true } }, I: UpdateProjectRequest, O: Project },
|
|
3219
|
-
{ name: "DeleteProject", idempotency: "IDEMPOTENT", options: { "google.api.http": { delete: "/v1/projects/{id}" }, "sid.v1.common.retry": { keyed: true } }, I: DeleteProjectRequest, O: Empty },
|
|
3220
|
-
{ name: "CreateApplication", idempotency: "IDEMPOTENT", options: { "google.api.http": { post: "/v1/projects/{project_id}/applications", body: "*" }, "sid.v1.common.retry": { keyed: true } }, I: CreateApplicationRequest, O: CreateApplicationResponse },
|
|
3221
|
-
{ name: "GetApplication", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { get: "/v1/applications/{id}" } }, I: GetApplicationRequest, O: Application },
|
|
3222
|
-
{ name: "ListApplications", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { get: "/v1/projects/{project_id}/applications" } }, I: ListApplicationsRequest, O: ListApplicationsResponse },
|
|
3223
|
-
{ name: "UpdateApplication", idempotency: "IDEMPOTENT", options: { "google.api.http": { patch: "/v1/applications/{id}", body: "*" }, "sid.v1.common.retry": { keyed: true } }, I: UpdateApplicationRequest, O: Application },
|
|
3224
|
-
{ name: "DeleteApplication", idempotency: "IDEMPOTENT", options: { "google.api.http": { delete: "/v1/applications/{id}" }, "sid.v1.common.retry": { keyed: true } }, I: DeleteApplicationRequest, O: Empty },
|
|
3225
|
-
{ name: "AddClientRole", idempotency: "IDEMPOTENT", options: { "google.api.http": { post: "/v1/applications/{application_id}/client", body: "*" }, "sid.v1.common.retry": { keyed: true } }, I: AddClientRoleRequest, O: CreateApplicationResponse },
|
|
3240
|
+
{ name: "UpdateProject", idempotency: "IDEMPOTENT", options: { "google.api.http": { patch: "/v1/projects/{id.value}", body: "*" }, "sid.v1.common.retry": { keyed: true } }, I: UpdateProjectRequest, O: Project },
|
|
3241
|
+
{ name: "DeleteProject", idempotency: "IDEMPOTENT", options: { "google.api.http": { delete: "/v1/projects/{id.value}" }, "sid.v1.common.retry": { keyed: true } }, I: DeleteProjectRequest, O: Empty },
|
|
3242
|
+
{ name: "CreateApplication", idempotency: "IDEMPOTENT", options: { "google.api.http": { post: "/v1/projects/{project_id.value}/applications", body: "*" }, "sid.v1.common.retry": { keyed: true } }, I: CreateApplicationRequest, O: CreateApplicationResponse },
|
|
3243
|
+
{ name: "GetApplication", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { get: "/v1/applications/{id.value}" } }, I: GetApplicationRequest, O: Application },
|
|
3244
|
+
{ name: "ListApplications", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { get: "/v1/projects/{project_id.value}/applications" } }, I: ListApplicationsRequest, O: ListApplicationsResponse },
|
|
3245
|
+
{ name: "UpdateApplication", idempotency: "IDEMPOTENT", options: { "google.api.http": { patch: "/v1/applications/{id.value}", body: "*" }, "sid.v1.common.retry": { keyed: true } }, I: UpdateApplicationRequest, O: Application },
|
|
3246
|
+
{ name: "DeleteApplication", idempotency: "IDEMPOTENT", options: { "google.api.http": { delete: "/v1/applications/{id.value}" }, "sid.v1.common.retry": { keyed: true } }, I: DeleteApplicationRequest, O: Empty },
|
|
3247
|
+
{ name: "AddClientRole", idempotency: "IDEMPOTENT", options: { "google.api.http": { post: "/v1/applications/{application_id.value}/client", body: "*" }, "sid.v1.common.retry": { keyed: true } }, I: AddClientRoleRequest, O: CreateApplicationResponse },
|
|
3226
3248
|
{ name: "UpdateClientRole", idempotency: "IDEMPOTENT", options: { "google.api.http": { patch: "/v1/clients/{client_id}", body: "*" }, "sid.v1.common.retry": { keyed: true } }, I: UpdateClientRoleRequest, O: Application },
|
|
3227
|
-
{ name: "AddResourceRole", idempotency: "IDEMPOTENT", options: { "google.api.http": { post: "/v1/applications/{application_id}/resource", body: "*" }, "sid.v1.common.retry": { keyed: true } }, I: AddResourceRoleRequest, O: Application },
|
|
3228
|
-
{ name: "UpdateResourceRole", idempotency: "IDEMPOTENT", options: { "google.api.http": { patch: "/v1/resources/{resource_id}", body: "*" }, "sid.v1.common.retry": { keyed: true } }, I: UpdateResourceRoleRequest, O: ProtectedResource },
|
|
3229
|
-
{ name: "SetResourceAccess", idempotency: "IDEMPOTENT", options: { "google.api.http": { put: "/v1/clients/{client_id}/resources/{resource_id}", body: "*" }, "sid.v1.common.retry": { keyed: true } }, I: SetResourceAccessRequest, O: ResourceAccess },
|
|
3230
|
-
{ name: "RemoveResourceAccess", idempotency: "IDEMPOTENT", options: { "google.api.http": { delete: "/v1/clients/{client_id}/resources/{resource_id}" }, "sid.v1.common.retry": { keyed: true } }, I: RemoveResourceAccessRequest, O: Empty },
|
|
3231
|
-
{ name: "ListResourceAccess", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { get: "/v1/clients/{client_id}/resources", additionalBindings: [{ get: "/v1/resources/{resource_id}/clients" }] } }, I: ListResourceAccessRequest, O: ListResourceAccessResponse },
|
|
3232
|
-
{ name: "AddRole", idempotency: "IDEMPOTENT", options: { "google.api.http": { post: "/v1/projects/{project_id}/roles", body: "*" }, "sid.v1.common.retry": { keyed: true } }, I: AddRoleRequest, O: Role },
|
|
3233
|
-
{ name: "RemoveRole", idempotency: "IDEMPOTENT", options: { "google.api.http": { delete: "/v1/projects/{project_id}/roles/{role_id}" }, "sid.v1.common.retry": { keyed: true } }, I: RemoveRoleRequest, O: Empty },
|
|
3249
|
+
{ name: "AddResourceRole", idempotency: "IDEMPOTENT", options: { "google.api.http": { post: "/v1/applications/{application_id.value}/resource", body: "*" }, "sid.v1.common.retry": { keyed: true } }, I: AddResourceRoleRequest, O: Application },
|
|
3250
|
+
{ name: "UpdateResourceRole", idempotency: "IDEMPOTENT", options: { "google.api.http": { patch: "/v1/resources/{resource_id.value}", body: "*" }, "sid.v1.common.retry": { keyed: true } }, I: UpdateResourceRoleRequest, O: ProtectedResource },
|
|
3251
|
+
{ name: "SetResourceAccess", idempotency: "IDEMPOTENT", options: { "google.api.http": { put: "/v1/clients/{client_id}/resources/{resource_id.value}", body: "*" }, "sid.v1.common.retry": { keyed: true } }, I: SetResourceAccessRequest, O: ResourceAccess },
|
|
3252
|
+
{ name: "RemoveResourceAccess", idempotency: "IDEMPOTENT", options: { "google.api.http": { delete: "/v1/clients/{client_id}/resources/{resource_id.value}" }, "sid.v1.common.retry": { keyed: true } }, I: RemoveResourceAccessRequest, O: Empty },
|
|
3253
|
+
{ name: "ListResourceAccess", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { get: "/v1/clients/{client_id}/resources", additionalBindings: [{ get: "/v1/resources/{resource_id.value}/clients" }] } }, I: ListResourceAccessRequest, O: ListResourceAccessResponse },
|
|
3254
|
+
{ name: "AddRole", idempotency: "IDEMPOTENT", options: { "google.api.http": { post: "/v1/projects/{project_id.value}/roles", body: "*" }, "sid.v1.common.retry": { keyed: true } }, I: AddRoleRequest, O: Role },
|
|
3255
|
+
{ name: "RemoveRole", idempotency: "IDEMPOTENT", options: { "google.api.http": { delete: "/v1/projects/{project_id.value}/roles/{role_id.value}" }, "sid.v1.common.retry": { keyed: true } }, I: RemoveRoleRequest, O: Empty },
|
|
3234
3256
|
{ name: "RegisterClient", options: { "sid.v1.common.retry": { ceremony: "RFC 7591 \u00A73: the client presents no operation key; each registration issues a new client, its secret and registration access token once" } }, I: RegisterClientRequest, O: RegisterClientResponse },
|
|
3235
3257
|
{ name: "GetRegisteredClient", idempotency: "NO_SIDE_EFFECTS", options: {}, I: GetRegisteredClientRequest, O: OAuthClient },
|
|
3236
3258
|
{ name: "UpdateRegisteredClient", idempotency: "IDEMPOTENT", options: { "sid.v1.common.retry": { ceremony: "RFC 7592 \u00A72.2: the request carries the client's whole metadata and replaces it, so a repeat leaves the same registration" } }, I: UpdateRegisteredClientRequest, O: OAuthClient },
|
|
3237
3259
|
{ name: "DeleteRegisteredClient", idempotency: "IDEMPOTENT", options: { "sid.v1.common.retry": { ceremony: "RFC 7592 \u00A72.3: deletion invalidates the client and its registration access token, so a repeat is refused and changes nothing" } }, I: DeleteRegisteredClientRequest, O: Empty },
|
|
3238
|
-
{ name: "CreateInitialAccessToken", idempotency: "IDEMPOTENT", options: { "google.api.http": { post: "/v1/projects/{project_id}/iat", body: "*" }, "sid.v1.common.retry": { keyed: true } }, I: CreateInitialAccessTokenRequest, O: CreateInitialAccessTokenResponse },
|
|
3239
|
-
{ name: "ListInitialAccessTokens", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { get: "/v1/projects/{project_id}/iat" } }, I: ListInitialAccessTokensRequest, O: ListInitialAccessTokensResponse },
|
|
3240
|
-
{ name: "RevokeInitialAccessToken", idempotency: "IDEMPOTENT", options: { "google.api.http": { delete: "/v1/projects/iat/{id}" }, "sid.v1.common.retry": { keyed: true } }, I: RevokeInitialAccessTokenRequest, O: Empty }
|
|
3260
|
+
{ name: "CreateInitialAccessToken", idempotency: "IDEMPOTENT", options: { "google.api.http": { post: "/v1/projects/{project_id.value}/iat", body: "*" }, "sid.v1.common.retry": { keyed: true } }, I: CreateInitialAccessTokenRequest, O: CreateInitialAccessTokenResponse },
|
|
3261
|
+
{ name: "ListInitialAccessTokens", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { get: "/v1/projects/{project_id.value}/iat" } }, I: ListInitialAccessTokensRequest, O: ListInitialAccessTokensResponse },
|
|
3262
|
+
{ name: "RevokeInitialAccessToken", idempotency: "IDEMPOTENT", options: { "google.api.http": { delete: "/v1/projects/iat/{id.value}" }, "sid.v1.common.retry": { keyed: true } }, I: RevokeInitialAccessTokenRequest, O: Empty }
|
|
3241
3263
|
]);
|
|
3242
3264
|
//# sourceMappingURL=projects.js.map
|