@structured-id/proto 0.19.0 → 0.21.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 +15 -0
- package/dist/generated/sid/v1/admin/enrollment.d.ts +0 -8
- package/dist/generated/sid/v1/admin/enrollment.js +1 -9
- package/dist/generated/sid/v1/admin/enrollment.js.map +1 -1
- package/dist/generated/sid/v1/admin/settings.client.d.ts +69 -1
- package/dist/generated/sid/v1/admin/settings.client.js +61 -17
- package/dist/generated/sid/v1/admin/settings.client.js.map +1 -1
- package/dist/generated/sid/v1/admin/settings.d.ts +205 -12
- package/dist/generated/sid/v1/admin/settings.js +313 -31
- package/dist/generated/sid/v1/admin/settings.js.map +1 -1
- package/dist/generated/sid/v1/authn/auth.client.d.ts +47 -10
- package/dist/generated/sid/v1/authn/auth.client.js +66 -45
- package/dist/generated/sid/v1/authn/auth.client.js.map +1 -1
- package/dist/generated/sid/v1/authn/auth.d.ts +47 -3
- package/dist/generated/sid/v1/authn/auth.js +64 -1
- package/dist/generated/sid/v1/authn/auth.js.map +1 -1
- package/dist/generated/sid/v1/authn/auth_flow.client.d.ts +140 -0
- package/dist/generated/sid/v1/authn/auth_flow.client.js +81 -0
- package/dist/generated/sid/v1/authn/auth_flow.client.js.map +1 -0
- package/dist/generated/sid/v1/authn/auth_flow.d.ts +418 -0
- package/dist/generated/sid/v1/authn/auth_flow.js +623 -0
- package/dist/generated/sid/v1/authn/auth_flow.js.map +1 -0
- package/dist/generated/sid/v1/common/claims.d.ts +138 -0
- package/dist/generated/sid/v1/common/claims.js +168 -0
- package/dist/generated/sid/v1/common/claims.js.map +1 -0
- package/dist/generated/sid/v1/ids/ids.d.ts +2 -0
- package/dist/generated/sid/v1/ids/ids.js +1 -0
- package/dist/generated/sid/v1/ids/ids.js.map +1 -1
- package/dist/generated/sid/v1/projects/projects.d.ts +46 -0
- package/dist/generated/sid/v1/projects/projects.js +74 -3
- package/dist/generated/sid/v1/projects/projects.js.map +1 -1
- package/package.json +6 -6
|
@@ -9,6 +9,41 @@ import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
|
9
9
|
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
10
10
|
import { MessageType } from "@protobuf-ts/runtime";
|
|
11
11
|
import { OrgId } from "../ids/ids.js";
|
|
12
|
+
// ── Session cookie scope ──
|
|
13
|
+
/**
|
|
14
|
+
* Where the installation's browser session cookie is sent.
|
|
15
|
+
*
|
|
16
|
+
* @generated from protobuf enum sid.v1.admin.SessionCookieDomain
|
|
17
|
+
*/
|
|
18
|
+
export var SessionCookieDomain;
|
|
19
|
+
(function (SessionCookieDomain) {
|
|
20
|
+
/**
|
|
21
|
+
* @generated from protobuf enum value: SESSION_COOKIE_DOMAIN_UNSPECIFIED = 0;
|
|
22
|
+
*/
|
|
23
|
+
SessionCookieDomain[SessionCookieDomain["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
24
|
+
/**
|
|
25
|
+
* The exact public host only (host-only cookie, the default).
|
|
26
|
+
*
|
|
27
|
+
* @generated from protobuf enum value: SESSION_COOKIE_DOMAIN_THIS_HOST = 1;
|
|
28
|
+
*/
|
|
29
|
+
SessionCookieDomain[SessionCookieDomain["THIS_HOST"] = 1] = "THIS_HOST";
|
|
30
|
+
/**
|
|
31
|
+
* The base domain and every subdomain, including future ones: the cookie
|
|
32
|
+
* carries `Domain` and reaches every server under it.
|
|
33
|
+
*
|
|
34
|
+
* @generated from protobuf enum value: SESSION_COOKIE_DOMAIN_ALL_SUBDOMAINS = 2;
|
|
35
|
+
*/
|
|
36
|
+
SessionCookieDomain[SessionCookieDomain["ALL_SUBDOMAINS"] = 2] = "ALL_SUBDOMAINS";
|
|
37
|
+
/**
|
|
38
|
+
* The base domain and the subdomains that match `subdomains` or
|
|
39
|
+
* `subdomain_pattern`: each such host establishes its own host-only
|
|
40
|
+
* cookie through the installation's session endpoint served there; no
|
|
41
|
+
* other host receives one.
|
|
42
|
+
*
|
|
43
|
+
* @generated from protobuf enum value: SESSION_COOKIE_DOMAIN_SELECTED_SUBDOMAINS = 3;
|
|
44
|
+
*/
|
|
45
|
+
SessionCookieDomain[SessionCookieDomain["SELECTED_SUBDOMAINS"] = 3] = "SELECTED_SUBDOMAINS";
|
|
46
|
+
})(SessionCookieDomain || (SessionCookieDomain = {}));
|
|
12
47
|
/**
|
|
13
48
|
* @generated from protobuf enum sid.v1.admin.RequiredAction
|
|
14
49
|
*/
|
|
@@ -173,16 +208,14 @@ class RealmSettings$Type extends MessageType {
|
|
|
173
208
|
super("sid.v1.admin.RealmSettings", [
|
|
174
209
|
{ no: 1, name: "realm_name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
175
210
|
{ no: 2, name: "display_name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
176
|
-
{ no: 3, name: "
|
|
177
|
-
{ no: 4, name: "
|
|
178
|
-
{ no: 5, name: "user_managed_access", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
|
|
211
|
+
{ no: 3, name: "enabled", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
212
|
+
{ no: 4, name: "user_managed_access", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
|
|
179
213
|
]);
|
|
180
214
|
}
|
|
181
215
|
create(value) {
|
|
182
216
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
183
217
|
message.realmName = "";
|
|
184
218
|
message.displayName = "";
|
|
185
|
-
message.frontendUrl = "";
|
|
186
219
|
message.enabled = false;
|
|
187
220
|
message.userManagedAccess = false;
|
|
188
221
|
if (value !== undefined)
|
|
@@ -200,13 +233,10 @@ class RealmSettings$Type extends MessageType {
|
|
|
200
233
|
case /* string display_name */ 2:
|
|
201
234
|
message.displayName = reader.string();
|
|
202
235
|
break;
|
|
203
|
-
case /*
|
|
204
|
-
message.frontendUrl = reader.string();
|
|
205
|
-
break;
|
|
206
|
-
case /* bool enabled */ 4:
|
|
236
|
+
case /* bool enabled */ 3:
|
|
207
237
|
message.enabled = reader.bool();
|
|
208
238
|
break;
|
|
209
|
-
case /* bool user_managed_access */
|
|
239
|
+
case /* bool user_managed_access */ 4:
|
|
210
240
|
message.userManagedAccess = reader.bool();
|
|
211
241
|
break;
|
|
212
242
|
default:
|
|
@@ -227,15 +257,12 @@ class RealmSettings$Type extends MessageType {
|
|
|
227
257
|
/* string display_name = 2; */
|
|
228
258
|
if (message.displayName !== "")
|
|
229
259
|
writer.tag(2, WireType.LengthDelimited).string(message.displayName);
|
|
230
|
-
/*
|
|
231
|
-
if (message.frontendUrl !== "")
|
|
232
|
-
writer.tag(3, WireType.LengthDelimited).string(message.frontendUrl);
|
|
233
|
-
/* bool enabled = 4; */
|
|
260
|
+
/* bool enabled = 3; */
|
|
234
261
|
if (message.enabled !== false)
|
|
235
|
-
writer.tag(
|
|
236
|
-
/* bool user_managed_access =
|
|
262
|
+
writer.tag(3, WireType.Varint).bool(message.enabled);
|
|
263
|
+
/* bool user_managed_access = 4; */
|
|
237
264
|
if (message.userManagedAccess !== false)
|
|
238
|
-
writer.tag(
|
|
265
|
+
writer.tag(4, WireType.Varint).bool(message.userManagedAccess);
|
|
239
266
|
let u = options.writeUnknownFields;
|
|
240
267
|
if (u !== false)
|
|
241
268
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -251,9 +278,8 @@ class UpdateRealmRequest$Type extends MessageType {
|
|
|
251
278
|
constructor() {
|
|
252
279
|
super("sid.v1.admin.UpdateRealmRequest", [
|
|
253
280
|
{ no: 1, name: "display_name", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
254
|
-
{ no: 2, name: "
|
|
255
|
-
{ no: 3, name: "
|
|
256
|
-
{ no: 4, name: "user_managed_access", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }
|
|
281
|
+
{ no: 2, name: "enabled", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ },
|
|
282
|
+
{ no: 3, name: "user_managed_access", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }
|
|
257
283
|
]);
|
|
258
284
|
}
|
|
259
285
|
create(value) {
|
|
@@ -270,13 +296,10 @@ class UpdateRealmRequest$Type extends MessageType {
|
|
|
270
296
|
case /* optional string display_name */ 1:
|
|
271
297
|
message.displayName = reader.string();
|
|
272
298
|
break;
|
|
273
|
-
case /* optional
|
|
274
|
-
message.frontendUrl = reader.string();
|
|
275
|
-
break;
|
|
276
|
-
case /* optional bool enabled */ 3:
|
|
299
|
+
case /* optional bool enabled */ 2:
|
|
277
300
|
message.enabled = reader.bool();
|
|
278
301
|
break;
|
|
279
|
-
case /* optional bool user_managed_access */
|
|
302
|
+
case /* optional bool user_managed_access */ 3:
|
|
280
303
|
message.userManagedAccess = reader.bool();
|
|
281
304
|
break;
|
|
282
305
|
default:
|
|
@@ -294,15 +317,12 @@ class UpdateRealmRequest$Type extends MessageType {
|
|
|
294
317
|
/* optional string display_name = 1; */
|
|
295
318
|
if (message.displayName !== undefined)
|
|
296
319
|
writer.tag(1, WireType.LengthDelimited).string(message.displayName);
|
|
297
|
-
/* optional
|
|
298
|
-
if (message.frontendUrl !== undefined)
|
|
299
|
-
writer.tag(2, WireType.LengthDelimited).string(message.frontendUrl);
|
|
300
|
-
/* optional bool enabled = 3; */
|
|
320
|
+
/* optional bool enabled = 2; */
|
|
301
321
|
if (message.enabled !== undefined)
|
|
302
|
-
writer.tag(
|
|
303
|
-
/* optional bool user_managed_access =
|
|
322
|
+
writer.tag(2, WireType.Varint).bool(message.enabled);
|
|
323
|
+
/* optional bool user_managed_access = 3; */
|
|
304
324
|
if (message.userManagedAccess !== undefined)
|
|
305
|
-
writer.tag(
|
|
325
|
+
writer.tag(3, WireType.Varint).bool(message.userManagedAccess);
|
|
306
326
|
let u = options.writeUnknownFields;
|
|
307
327
|
if (u !== false)
|
|
308
328
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -314,6 +334,264 @@ class UpdateRealmRequest$Type extends MessageType {
|
|
|
314
334
|
*/
|
|
315
335
|
export const UpdateRealmRequest = new UpdateRealmRequest$Type();
|
|
316
336
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
337
|
+
class InstallationAddresses$Type extends MessageType {
|
|
338
|
+
constructor() {
|
|
339
|
+
super("sid.v1.admin.InstallationAddresses", [
|
|
340
|
+
{ no: 1, name: "public_url", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
341
|
+
{ no: 2, name: "public_url_overridden", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
342
|
+
{ no: 3, name: "console_url", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
343
|
+
]);
|
|
344
|
+
}
|
|
345
|
+
create(value) {
|
|
346
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
347
|
+
message.publicUrl = "";
|
|
348
|
+
message.publicUrlOverridden = false;
|
|
349
|
+
message.consoleUrl = "";
|
|
350
|
+
if (value !== undefined)
|
|
351
|
+
reflectionMergePartial(this, message, value);
|
|
352
|
+
return message;
|
|
353
|
+
}
|
|
354
|
+
internalBinaryRead(reader, length, options, target) {
|
|
355
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
356
|
+
while (reader.pos < end) {
|
|
357
|
+
let [fieldNo, wireType] = reader.tag();
|
|
358
|
+
switch (fieldNo) {
|
|
359
|
+
case /* string public_url */ 1:
|
|
360
|
+
message.publicUrl = reader.string();
|
|
361
|
+
break;
|
|
362
|
+
case /* bool public_url_overridden */ 2:
|
|
363
|
+
message.publicUrlOverridden = reader.bool();
|
|
364
|
+
break;
|
|
365
|
+
case /* string console_url */ 3:
|
|
366
|
+
message.consoleUrl = reader.string();
|
|
367
|
+
break;
|
|
368
|
+
default:
|
|
369
|
+
let u = options.readUnknownField;
|
|
370
|
+
if (u === "throw")
|
|
371
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
372
|
+
let d = reader.skip(wireType);
|
|
373
|
+
if (u !== false)
|
|
374
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
return message;
|
|
378
|
+
}
|
|
379
|
+
internalBinaryWrite(message, writer, options) {
|
|
380
|
+
/* string public_url = 1; */
|
|
381
|
+
if (message.publicUrl !== "")
|
|
382
|
+
writer.tag(1, WireType.LengthDelimited).string(message.publicUrl);
|
|
383
|
+
/* bool public_url_overridden = 2; */
|
|
384
|
+
if (message.publicUrlOverridden !== false)
|
|
385
|
+
writer.tag(2, WireType.Varint).bool(message.publicUrlOverridden);
|
|
386
|
+
/* string console_url = 3; */
|
|
387
|
+
if (message.consoleUrl !== "")
|
|
388
|
+
writer.tag(3, WireType.LengthDelimited).string(message.consoleUrl);
|
|
389
|
+
let u = options.writeUnknownFields;
|
|
390
|
+
if (u !== false)
|
|
391
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
392
|
+
return writer;
|
|
393
|
+
}
|
|
394
|
+
}
|
|
395
|
+
/**
|
|
396
|
+
* @generated MessageType for protobuf message sid.v1.admin.InstallationAddresses
|
|
397
|
+
*/
|
|
398
|
+
export const InstallationAddresses = new InstallationAddresses$Type();
|
|
399
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
400
|
+
class UpdateInstallationAddressesRequest$Type extends MessageType {
|
|
401
|
+
constructor() {
|
|
402
|
+
super("sid.v1.admin.UpdateInstallationAddressesRequest", [
|
|
403
|
+
{ no: 1, name: "public_url", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
404
|
+
{ no: 2, name: "console_url", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }
|
|
405
|
+
]);
|
|
406
|
+
}
|
|
407
|
+
create(value) {
|
|
408
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
409
|
+
if (value !== undefined)
|
|
410
|
+
reflectionMergePartial(this, message, value);
|
|
411
|
+
return message;
|
|
412
|
+
}
|
|
413
|
+
internalBinaryRead(reader, length, options, target) {
|
|
414
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
415
|
+
while (reader.pos < end) {
|
|
416
|
+
let [fieldNo, wireType] = reader.tag();
|
|
417
|
+
switch (fieldNo) {
|
|
418
|
+
case /* optional string public_url */ 1:
|
|
419
|
+
message.publicUrl = reader.string();
|
|
420
|
+
break;
|
|
421
|
+
case /* optional string console_url */ 2:
|
|
422
|
+
message.consoleUrl = reader.string();
|
|
423
|
+
break;
|
|
424
|
+
default:
|
|
425
|
+
let u = options.readUnknownField;
|
|
426
|
+
if (u === "throw")
|
|
427
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
428
|
+
let d = reader.skip(wireType);
|
|
429
|
+
if (u !== false)
|
|
430
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
return message;
|
|
434
|
+
}
|
|
435
|
+
internalBinaryWrite(message, writer, options) {
|
|
436
|
+
/* optional string public_url = 1; */
|
|
437
|
+
if (message.publicUrl !== undefined)
|
|
438
|
+
writer.tag(1, WireType.LengthDelimited).string(message.publicUrl);
|
|
439
|
+
/* optional string console_url = 2; */
|
|
440
|
+
if (message.consoleUrl !== undefined)
|
|
441
|
+
writer.tag(2, WireType.LengthDelimited).string(message.consoleUrl);
|
|
442
|
+
let u = options.writeUnknownFields;
|
|
443
|
+
if (u !== false)
|
|
444
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
445
|
+
return writer;
|
|
446
|
+
}
|
|
447
|
+
}
|
|
448
|
+
/**
|
|
449
|
+
* @generated MessageType for protobuf message sid.v1.admin.UpdateInstallationAddressesRequest
|
|
450
|
+
*/
|
|
451
|
+
export const UpdateInstallationAddressesRequest = new UpdateInstallationAddressesRequest$Type();
|
|
452
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
453
|
+
class SessionCookieScope$Type extends MessageType {
|
|
454
|
+
constructor() {
|
|
455
|
+
super("sid.v1.admin.SessionCookieScope", [
|
|
456
|
+
{ no: 1, name: "domain", kind: "enum", T: () => ["sid.v1.admin.SessionCookieDomain", SessionCookieDomain, "SESSION_COOKIE_DOMAIN_"] },
|
|
457
|
+
{ no: 2, name: "base_domain", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
458
|
+
{ no: 3, name: "subdomains", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
|
459
|
+
{ no: 4, name: "subdomain_pattern", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
460
|
+
{ no: 5, name: "revision", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ }
|
|
461
|
+
]);
|
|
462
|
+
}
|
|
463
|
+
create(value) {
|
|
464
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
465
|
+
message.domain = 0;
|
|
466
|
+
message.baseDomain = "";
|
|
467
|
+
message.subdomains = [];
|
|
468
|
+
message.subdomainPattern = "";
|
|
469
|
+
message.revision = 0n;
|
|
470
|
+
if (value !== undefined)
|
|
471
|
+
reflectionMergePartial(this, message, value);
|
|
472
|
+
return message;
|
|
473
|
+
}
|
|
474
|
+
internalBinaryRead(reader, length, options, target) {
|
|
475
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
476
|
+
while (reader.pos < end) {
|
|
477
|
+
let [fieldNo, wireType] = reader.tag();
|
|
478
|
+
switch (fieldNo) {
|
|
479
|
+
case /* sid.v1.admin.SessionCookieDomain domain */ 1:
|
|
480
|
+
message.domain = reader.int32();
|
|
481
|
+
break;
|
|
482
|
+
case /* string base_domain */ 2:
|
|
483
|
+
message.baseDomain = reader.string();
|
|
484
|
+
break;
|
|
485
|
+
case /* repeated string subdomains */ 3:
|
|
486
|
+
message.subdomains.push(reader.string());
|
|
487
|
+
break;
|
|
488
|
+
case /* string subdomain_pattern */ 4:
|
|
489
|
+
message.subdomainPattern = reader.string();
|
|
490
|
+
break;
|
|
491
|
+
case /* uint64 revision */ 5:
|
|
492
|
+
message.revision = reader.uint64().toBigInt();
|
|
493
|
+
break;
|
|
494
|
+
default:
|
|
495
|
+
let u = options.readUnknownField;
|
|
496
|
+
if (u === "throw")
|
|
497
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
498
|
+
let d = reader.skip(wireType);
|
|
499
|
+
if (u !== false)
|
|
500
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
501
|
+
}
|
|
502
|
+
}
|
|
503
|
+
return message;
|
|
504
|
+
}
|
|
505
|
+
internalBinaryWrite(message, writer, options) {
|
|
506
|
+
/* sid.v1.admin.SessionCookieDomain domain = 1; */
|
|
507
|
+
if (message.domain !== 0)
|
|
508
|
+
writer.tag(1, WireType.Varint).int32(message.domain);
|
|
509
|
+
/* string base_domain = 2; */
|
|
510
|
+
if (message.baseDomain !== "")
|
|
511
|
+
writer.tag(2, WireType.LengthDelimited).string(message.baseDomain);
|
|
512
|
+
/* repeated string subdomains = 3; */
|
|
513
|
+
for (let i = 0; i < message.subdomains.length; i++)
|
|
514
|
+
writer.tag(3, WireType.LengthDelimited).string(message.subdomains[i]);
|
|
515
|
+
/* string subdomain_pattern = 4; */
|
|
516
|
+
if (message.subdomainPattern !== "")
|
|
517
|
+
writer.tag(4, WireType.LengthDelimited).string(message.subdomainPattern);
|
|
518
|
+
/* uint64 revision = 5; */
|
|
519
|
+
if (message.revision !== 0n)
|
|
520
|
+
writer.tag(5, WireType.Varint).uint64(message.revision);
|
|
521
|
+
let u = options.writeUnknownFields;
|
|
522
|
+
if (u !== false)
|
|
523
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
524
|
+
return writer;
|
|
525
|
+
}
|
|
526
|
+
}
|
|
527
|
+
/**
|
|
528
|
+
* @generated MessageType for protobuf message sid.v1.admin.SessionCookieScope
|
|
529
|
+
*/
|
|
530
|
+
export const SessionCookieScope = new SessionCookieScope$Type();
|
|
531
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
532
|
+
class UpdateSessionCookieScopeRequest$Type extends MessageType {
|
|
533
|
+
constructor() {
|
|
534
|
+
super("sid.v1.admin.UpdateSessionCookieScopeRequest", [
|
|
535
|
+
{ no: 1, name: "domain", kind: "enum", T: () => ["sid.v1.admin.SessionCookieDomain", SessionCookieDomain, "SESSION_COOKIE_DOMAIN_"] },
|
|
536
|
+
{ no: 2, name: "subdomains", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
|
537
|
+
{ no: 3, name: "subdomain_pattern", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
538
|
+
]);
|
|
539
|
+
}
|
|
540
|
+
create(value) {
|
|
541
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
542
|
+
message.domain = 0;
|
|
543
|
+
message.subdomains = [];
|
|
544
|
+
message.subdomainPattern = "";
|
|
545
|
+
if (value !== undefined)
|
|
546
|
+
reflectionMergePartial(this, message, value);
|
|
547
|
+
return message;
|
|
548
|
+
}
|
|
549
|
+
internalBinaryRead(reader, length, options, target) {
|
|
550
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
551
|
+
while (reader.pos < end) {
|
|
552
|
+
let [fieldNo, wireType] = reader.tag();
|
|
553
|
+
switch (fieldNo) {
|
|
554
|
+
case /* sid.v1.admin.SessionCookieDomain domain */ 1:
|
|
555
|
+
message.domain = reader.int32();
|
|
556
|
+
break;
|
|
557
|
+
case /* repeated string subdomains */ 2:
|
|
558
|
+
message.subdomains.push(reader.string());
|
|
559
|
+
break;
|
|
560
|
+
case /* string subdomain_pattern */ 3:
|
|
561
|
+
message.subdomainPattern = reader.string();
|
|
562
|
+
break;
|
|
563
|
+
default:
|
|
564
|
+
let u = options.readUnknownField;
|
|
565
|
+
if (u === "throw")
|
|
566
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
567
|
+
let d = reader.skip(wireType);
|
|
568
|
+
if (u !== false)
|
|
569
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
570
|
+
}
|
|
571
|
+
}
|
|
572
|
+
return message;
|
|
573
|
+
}
|
|
574
|
+
internalBinaryWrite(message, writer, options) {
|
|
575
|
+
/* sid.v1.admin.SessionCookieDomain domain = 1; */
|
|
576
|
+
if (message.domain !== 0)
|
|
577
|
+
writer.tag(1, WireType.Varint).int32(message.domain);
|
|
578
|
+
/* repeated string subdomains = 2; */
|
|
579
|
+
for (let i = 0; i < message.subdomains.length; i++)
|
|
580
|
+
writer.tag(2, WireType.LengthDelimited).string(message.subdomains[i]);
|
|
581
|
+
/* string subdomain_pattern = 3; */
|
|
582
|
+
if (message.subdomainPattern !== "")
|
|
583
|
+
writer.tag(3, WireType.LengthDelimited).string(message.subdomainPattern);
|
|
584
|
+
let u = options.writeUnknownFields;
|
|
585
|
+
if (u !== false)
|
|
586
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
587
|
+
return writer;
|
|
588
|
+
}
|
|
589
|
+
}
|
|
590
|
+
/**
|
|
591
|
+
* @generated MessageType for protobuf message sid.v1.admin.UpdateSessionCookieScopeRequest
|
|
592
|
+
*/
|
|
593
|
+
export const UpdateSessionCookieScopeRequest = new UpdateSessionCookieScopeRequest$Type();
|
|
594
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
317
595
|
class GetLoginSettingsRequest$Type extends MessageType {
|
|
318
596
|
constructor() {
|
|
319
597
|
super("sid.v1.admin.GetLoginSettingsRequest", []);
|
|
@@ -2113,6 +2391,8 @@ export const ImportPreviewResponse = new ImportPreviewResponse$Type();
|
|
|
2113
2391
|
export const RealmService = new ServiceType("sid.v1.admin.RealmService", [
|
|
2114
2392
|
{ name: "GetRealm", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { get: "/v1/admin/realm" }, "sid.v1.common.access": { protected: { credentials: ["CREDENTIAL_KIND_OWN_SESSION"] } } }, I: GetRealmRequest, O: RealmSettings },
|
|
2115
2393
|
{ name: "UpdateRealm", idempotency: "IDEMPOTENT", options: { "google.api.http": { patch: "/v1/admin/realm", body: "*" }, "sid.v1.common.access": { protected: { credentials: ["CREDENTIAL_KIND_OWN_SESSION"] } }, "sid.v1.common.retry": { keyed: true } }, I: UpdateRealmRequest, O: RealmSettings },
|
|
2394
|
+
{ name: "GetInstallationAddresses", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { get: "/v1/admin/realm/addresses" }, "sid.v1.common.access": { protected: { credentials: ["CREDENTIAL_KIND_OWN_SESSION"] } } }, I: Empty, O: InstallationAddresses },
|
|
2395
|
+
{ name: "UpdateInstallationAddresses", idempotency: "IDEMPOTENT", options: { "google.api.http": { patch: "/v1/admin/realm/addresses", body: "*" }, "sid.v1.common.access": { protected: { credentials: ["CREDENTIAL_KIND_OWN_SESSION"] } }, "sid.v1.common.retry": { keyed: true } }, I: UpdateInstallationAddressesRequest, O: InstallationAddresses },
|
|
2116
2396
|
{ name: "GetLoginSettings", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { get: "/v1/admin/realm/login" }, "sid.v1.common.access": { protected: { credentials: ["CREDENTIAL_KIND_OWN_SESSION"] } } }, I: GetLoginSettingsRequest, O: LoginSettings },
|
|
2117
2397
|
{ name: "UpdateLoginSettings", idempotency: "IDEMPOTENT", options: { "google.api.http": { patch: "/v1/admin/realm/login", body: "*" }, "sid.v1.common.access": { protected: { credentials: ["CREDENTIAL_KIND_OWN_SESSION"] } }, "sid.v1.common.retry": { keyed: true } }, I: UpdateLoginSettingsRequest, O: LoginSettings },
|
|
2118
2398
|
{ name: "GetEmailSettings", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { get: "/v1/admin/realm/email" }, "sid.v1.common.access": { protected: { credentials: ["CREDENTIAL_KIND_OWN_SESSION"] } } }, I: Empty, O: EmailSettings },
|
|
@@ -2128,6 +2408,8 @@ export const RealmService = new ServiceType("sid.v1.admin.RealmService", [
|
|
|
2128
2408
|
{ name: "PreviewImport", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { post: "/v1/admin/realm/import/preview", body: "*" }, "sid.v1.common.access": { protected: { credentials: ["CREDENTIAL_KIND_OWN_SESSION"] } } }, I: ImportRealmRequest, O: ImportPreviewResponse },
|
|
2129
2409
|
{ name: "GetSessionConfig", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { get: "/v1/admin/realm/sessions" }, "sid.v1.common.access": { protected: { credentials: ["CREDENTIAL_KIND_OWN_SESSION"] } } }, I: Empty, O: SessionConfig },
|
|
2130
2410
|
{ name: "UpdateSessionConfig", idempotency: "IDEMPOTENT", options: { "google.api.http": { patch: "/v1/admin/realm/sessions", body: "*" }, "sid.v1.common.access": { protected: { credentials: ["CREDENTIAL_KIND_OWN_SESSION"] } }, "sid.v1.common.retry": { keyed: true } }, I: SessionConfig, O: SessionConfig },
|
|
2411
|
+
{ name: "GetSessionCookieScope", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { get: "/v1/admin/realm/sessions/cookie-scope" }, "sid.v1.common.access": { protected: { credentials: ["CREDENTIAL_KIND_OWN_SESSION"] } } }, I: Empty, O: SessionCookieScope },
|
|
2412
|
+
{ name: "UpdateSessionCookieScope", idempotency: "IDEMPOTENT", options: { "google.api.http": { patch: "/v1/admin/realm/sessions/cookie-scope", body: "*" }, "sid.v1.common.access": { protected: { credentials: ["CREDENTIAL_KIND_OWN_SESSION"] } }, "sid.v1.common.retry": { keyed: true } }, I: UpdateSessionCookieScopeRequest, O: SessionCookieScope },
|
|
2131
2413
|
{ name: "GetTokenConfig", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { get: "/v1/admin/realm/tokens" }, "sid.v1.common.access": { protected: { credentials: ["CREDENTIAL_KIND_OWN_SESSION"] } } }, I: Empty, O: TokenConfig },
|
|
2132
2414
|
{ name: "UpdateTokenConfig", idempotency: "IDEMPOTENT", options: { "google.api.http": { patch: "/v1/admin/realm/tokens", body: "*" }, "sid.v1.common.access": { protected: { credentials: ["CREDENTIAL_KIND_OWN_SESSION"] } }, "sid.v1.common.retry": { keyed: true } }, I: TokenConfig, O: TokenConfig }
|
|
2133
2415
|
]);
|