@structured-id/proto 0.15.0 → 0.17.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 +16 -0
- package/dist/generated/sid/v1/admin/admin.d.ts +48 -17
- package/dist/generated/sid/v1/admin/admin.js +55 -62
- package/dist/generated/sid/v1/admin/admin.js.map +1 -1
- package/dist/generated/sid/v1/admin/branding.d.ts +54 -26
- package/dist/generated/sid/v1/admin/branding.js +87 -98
- package/dist/generated/sid/v1/admin/branding.js.map +1 -1
- package/dist/generated/sid/v1/admin/enrollment.d.ts +63 -44
- package/dist/generated/sid/v1/admin/enrollment.js +109 -107
- package/dist/generated/sid/v1/admin/enrollment.js.map +1 -1
- package/dist/generated/sid/v1/admin/flow.d.ts +90 -42
- package/dist/generated/sid/v1/admin/flow.js +143 -155
- package/dist/generated/sid/v1/admin/flow.js.map +1 -1
- package/dist/generated/sid/v1/admin/security.d.ts +11 -4
- package/dist/generated/sid/v1/admin/security.js +14 -14
- package/dist/generated/sid/v1/admin/security.js.map +1 -1
- package/dist/generated/sid/v1/admin/sessions.d.ts +18 -8
- package/dist/generated/sid/v1/admin/sessions.js +27 -29
- package/dist/generated/sid/v1/admin/sessions.js.map +1 -1
- package/dist/generated/sid/v1/attestation/attestation.client.d.ts +51 -17
- package/dist/generated/sid/v1/attestation/attestation.client.js +50 -12
- package/dist/generated/sid/v1/attestation/attestation.client.js.map +1 -1
- package/dist/generated/sid/v1/attestation/attestation.d.ts +257 -51
- package/dist/generated/sid/v1/attestation/attestation.js +321 -135
- package/dist/generated/sid/v1/attestation/attestation.js.map +1 -1
- package/dist/generated/sid/v1/authn/auth.d.ts +13 -7
- package/dist/generated/sid/v1/authn/auth.js +20 -20
- package/dist/generated/sid/v1/authn/auth.js.map +1 -1
- package/dist/generated/sid/v1/common/types.d.ts +29 -0
- package/dist/generated/sid/v1/common/types.js +47 -0
- package/dist/generated/sid/v1/common/types.js.map +1 -1
- package/dist/generated/sid/v1/federation/upstream.d.ts +34 -16
- package/dist/generated/sid/v1/federation/upstream.js +53 -59
- package/dist/generated/sid/v1/federation/upstream.js.map +1 -1
- package/dist/generated/sid/v1/ids/ids.d.ts +12 -0
- package/dist/generated/sid/v1/ids/ids.js +6 -0
- package/dist/generated/sid/v1/ids/ids.js.map +1 -1
- package/dist/ip.d.ts +31 -0
- package/dist/ip.js +84 -0
- package/dist/ip.js.map +1 -0
- package/package.json +6 -2
|
@@ -8,7 +8,9 @@ import { WireType } from "@protobuf-ts/runtime";
|
|
|
8
8
|
import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
9
9
|
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
10
10
|
import { MessageType } from "@protobuf-ts/runtime";
|
|
11
|
+
import { FlowActionId } from "../ids/ids.js";
|
|
11
12
|
import { Timestamp } from "../../../google/protobuf/timestamp.js";
|
|
13
|
+
import { ProjectId } from "../ids/ids.js";
|
|
12
14
|
import { Struct } from "../../../google/protobuf/struct.js";
|
|
13
15
|
// ── Enums ──
|
|
14
16
|
/**
|
|
@@ -187,7 +189,7 @@ export const StepConfig = new StepConfig$Type();
|
|
|
187
189
|
class FlowConfig$Type extends MessageType {
|
|
188
190
|
constructor() {
|
|
189
191
|
super("sid.v1.admin.FlowConfig", [
|
|
190
|
-
{ no: 1, name: "project_id", kind: "
|
|
192
|
+
{ no: 1, name: "project_id", kind: "message", T: () => ProjectId },
|
|
191
193
|
{ no: 2, name: "flow_type", kind: "enum", T: () => ["sid.v1.admin.FlowType", FlowType, "FLOW_TYPE_"] },
|
|
192
194
|
{ no: 3, name: "steps", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => StepConfig },
|
|
193
195
|
{ no: 4, name: "timeout_seconds", kind: "scalar", T: 13 /*ScalarType.UINT32*/ },
|
|
@@ -196,7 +198,6 @@ class FlowConfig$Type extends MessageType {
|
|
|
196
198
|
}
|
|
197
199
|
create(value) {
|
|
198
200
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
199
|
-
message.projectId = "";
|
|
200
201
|
message.flowType = 0;
|
|
201
202
|
message.steps = [];
|
|
202
203
|
message.timeoutSeconds = 0;
|
|
@@ -209,8 +210,8 @@ class FlowConfig$Type extends MessageType {
|
|
|
209
210
|
while (reader.pos < end) {
|
|
210
211
|
let [fieldNo, wireType] = reader.tag();
|
|
211
212
|
switch (fieldNo) {
|
|
212
|
-
case /*
|
|
213
|
-
message.projectId = reader.
|
|
213
|
+
case /* sid.v1.ids.ProjectId project_id */ 1:
|
|
214
|
+
message.projectId = ProjectId.internalBinaryRead(reader, reader.uint32(), options, message.projectId);
|
|
214
215
|
break;
|
|
215
216
|
case /* sid.v1.admin.FlowType flow_type */ 2:
|
|
216
217
|
message.flowType = reader.int32();
|
|
@@ -236,9 +237,9 @@ class FlowConfig$Type extends MessageType {
|
|
|
236
237
|
return message;
|
|
237
238
|
}
|
|
238
239
|
internalBinaryWrite(message, writer, options) {
|
|
239
|
-
/*
|
|
240
|
-
if (message.projectId
|
|
241
|
-
writer.tag(1, WireType.LengthDelimited).
|
|
240
|
+
/* sid.v1.ids.ProjectId project_id = 1; */
|
|
241
|
+
if (message.projectId)
|
|
242
|
+
ProjectId.internalBinaryWrite(message.projectId, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
242
243
|
/* sid.v1.admin.FlowType flow_type = 2; */
|
|
243
244
|
if (message.flowType !== 0)
|
|
244
245
|
writer.tag(2, WireType.Varint).int32(message.flowType);
|
|
@@ -352,8 +353,8 @@ export const WebhookConfig = new WebhookConfig$Type();
|
|
|
352
353
|
class FlowAction$Type extends MessageType {
|
|
353
354
|
constructor() {
|
|
354
355
|
super("sid.v1.admin.FlowAction", [
|
|
355
|
-
{ no: 1, name: "action_id", kind: "
|
|
356
|
-
{ no: 2, name: "project_id", kind: "
|
|
356
|
+
{ no: 1, name: "action_id", kind: "message", T: () => FlowActionId },
|
|
357
|
+
{ no: 2, name: "project_id", kind: "message", T: () => ProjectId },
|
|
357
358
|
{ no: 3, name: "flow_type", kind: "enum", T: () => ["sid.v1.admin.FlowType", FlowType, "FLOW_TYPE_"] },
|
|
358
359
|
{ no: 4, name: "action_point", kind: "enum", T: () => ["sid.v1.admin.ActionPoint", ActionPoint, "ACTION_POINT_"] },
|
|
359
360
|
{ no: 5, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
@@ -368,8 +369,6 @@ class FlowAction$Type extends MessageType {
|
|
|
368
369
|
}
|
|
369
370
|
create(value) {
|
|
370
371
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
371
|
-
message.actionId = "";
|
|
372
|
-
message.projectId = "";
|
|
373
372
|
message.flowType = 0;
|
|
374
373
|
message.actionPoint = 0;
|
|
375
374
|
message.name = "";
|
|
@@ -387,11 +386,11 @@ class FlowAction$Type extends MessageType {
|
|
|
387
386
|
while (reader.pos < end) {
|
|
388
387
|
let [fieldNo, wireType] = reader.tag();
|
|
389
388
|
switch (fieldNo) {
|
|
390
|
-
case /*
|
|
391
|
-
message.actionId = reader.
|
|
389
|
+
case /* sid.v1.ids.FlowActionId action_id */ 1:
|
|
390
|
+
message.actionId = FlowActionId.internalBinaryRead(reader, reader.uint32(), options, message.actionId);
|
|
392
391
|
break;
|
|
393
|
-
case /*
|
|
394
|
-
message.projectId = reader.
|
|
392
|
+
case /* sid.v1.ids.ProjectId project_id */ 2:
|
|
393
|
+
message.projectId = ProjectId.internalBinaryRead(reader, reader.uint32(), options, message.projectId);
|
|
395
394
|
break;
|
|
396
395
|
case /* sid.v1.admin.FlowType flow_type */ 3:
|
|
397
396
|
message.flowType = reader.int32();
|
|
@@ -438,12 +437,12 @@ class FlowAction$Type extends MessageType {
|
|
|
438
437
|
return message;
|
|
439
438
|
}
|
|
440
439
|
internalBinaryWrite(message, writer, options) {
|
|
441
|
-
/*
|
|
442
|
-
if (message.actionId
|
|
443
|
-
writer.tag(1, WireType.LengthDelimited).
|
|
444
|
-
/*
|
|
445
|
-
if (message.projectId
|
|
446
|
-
writer.tag(2, WireType.LengthDelimited).
|
|
440
|
+
/* sid.v1.ids.FlowActionId action_id = 1; */
|
|
441
|
+
if (message.actionId)
|
|
442
|
+
FlowActionId.internalBinaryWrite(message.actionId, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
443
|
+
/* sid.v1.ids.ProjectId project_id = 2; */
|
|
444
|
+
if (message.projectId)
|
|
445
|
+
ProjectId.internalBinaryWrite(message.projectId, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
447
446
|
/* sid.v1.admin.FlowType flow_type = 3; */
|
|
448
447
|
if (message.flowType !== 0)
|
|
449
448
|
writer.tag(3, WireType.Varint).int32(message.flowType);
|
|
@@ -488,14 +487,13 @@ export const FlowAction = new FlowAction$Type();
|
|
|
488
487
|
class GetFlowConfigRequest$Type extends MessageType {
|
|
489
488
|
constructor() {
|
|
490
489
|
super("sid.v1.admin.GetFlowConfigRequest", [
|
|
491
|
-
{ no: 1, name: "project_id", kind: "
|
|
492
|
-
{ no: 2, name: "flow_type", kind: "
|
|
490
|
+
{ no: 1, name: "project_id", kind: "message", T: () => ProjectId },
|
|
491
|
+
{ no: 2, name: "flow_type", kind: "enum", T: () => ["sid.v1.admin.FlowType", FlowType, "FLOW_TYPE_"] }
|
|
493
492
|
]);
|
|
494
493
|
}
|
|
495
494
|
create(value) {
|
|
496
495
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
497
|
-
message.
|
|
498
|
-
message.flowType = "";
|
|
496
|
+
message.flowType = 0;
|
|
499
497
|
if (value !== undefined)
|
|
500
498
|
reflectionMergePartial(this, message, value);
|
|
501
499
|
return message;
|
|
@@ -505,11 +503,11 @@ class GetFlowConfigRequest$Type extends MessageType {
|
|
|
505
503
|
while (reader.pos < end) {
|
|
506
504
|
let [fieldNo, wireType] = reader.tag();
|
|
507
505
|
switch (fieldNo) {
|
|
508
|
-
case /*
|
|
509
|
-
message.projectId = reader.
|
|
506
|
+
case /* sid.v1.ids.ProjectId project_id */ 1:
|
|
507
|
+
message.projectId = ProjectId.internalBinaryRead(reader, reader.uint32(), options, message.projectId);
|
|
510
508
|
break;
|
|
511
|
-
case /*
|
|
512
|
-
message.flowType = reader.
|
|
509
|
+
case /* sid.v1.admin.FlowType flow_type */ 2:
|
|
510
|
+
message.flowType = reader.int32();
|
|
513
511
|
break;
|
|
514
512
|
default:
|
|
515
513
|
let u = options.readUnknownField;
|
|
@@ -523,12 +521,12 @@ class GetFlowConfigRequest$Type extends MessageType {
|
|
|
523
521
|
return message;
|
|
524
522
|
}
|
|
525
523
|
internalBinaryWrite(message, writer, options) {
|
|
526
|
-
/*
|
|
527
|
-
if (message.projectId
|
|
528
|
-
writer.tag(1, WireType.LengthDelimited).
|
|
529
|
-
/*
|
|
530
|
-
if (message.flowType !==
|
|
531
|
-
writer.tag(2, WireType.
|
|
524
|
+
/* sid.v1.ids.ProjectId project_id = 1; */
|
|
525
|
+
if (message.projectId)
|
|
526
|
+
ProjectId.internalBinaryWrite(message.projectId, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
527
|
+
/* sid.v1.admin.FlowType flow_type = 2; */
|
|
528
|
+
if (message.flowType !== 0)
|
|
529
|
+
writer.tag(2, WireType.Varint).int32(message.flowType);
|
|
532
530
|
let u = options.writeUnknownFields;
|
|
533
531
|
if (u !== false)
|
|
534
532
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -543,16 +541,15 @@ export const GetFlowConfigRequest = new GetFlowConfigRequest$Type();
|
|
|
543
541
|
class SaveFlowConfigRequest$Type extends MessageType {
|
|
544
542
|
constructor() {
|
|
545
543
|
super("sid.v1.admin.SaveFlowConfigRequest", [
|
|
546
|
-
{ no: 1, name: "project_id", kind: "
|
|
547
|
-
{ no: 2, name: "flow_type", kind: "
|
|
544
|
+
{ no: 1, name: "project_id", kind: "message", T: () => ProjectId },
|
|
545
|
+
{ no: 2, name: "flow_type", kind: "enum", T: () => ["sid.v1.admin.FlowType", FlowType, "FLOW_TYPE_"] },
|
|
548
546
|
{ no: 3, name: "steps", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => StepConfig },
|
|
549
547
|
{ no: 4, name: "timeout_seconds", kind: "scalar", T: 13 /*ScalarType.UINT32*/ }
|
|
550
548
|
]);
|
|
551
549
|
}
|
|
552
550
|
create(value) {
|
|
553
551
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
554
|
-
message.
|
|
555
|
-
message.flowType = "";
|
|
552
|
+
message.flowType = 0;
|
|
556
553
|
message.steps = [];
|
|
557
554
|
message.timeoutSeconds = 0;
|
|
558
555
|
if (value !== undefined)
|
|
@@ -564,11 +561,11 @@ class SaveFlowConfigRequest$Type extends MessageType {
|
|
|
564
561
|
while (reader.pos < end) {
|
|
565
562
|
let [fieldNo, wireType] = reader.tag();
|
|
566
563
|
switch (fieldNo) {
|
|
567
|
-
case /*
|
|
568
|
-
message.projectId = reader.
|
|
564
|
+
case /* sid.v1.ids.ProjectId project_id */ 1:
|
|
565
|
+
message.projectId = ProjectId.internalBinaryRead(reader, reader.uint32(), options, message.projectId);
|
|
569
566
|
break;
|
|
570
|
-
case /*
|
|
571
|
-
message.flowType = reader.
|
|
567
|
+
case /* sid.v1.admin.FlowType flow_type */ 2:
|
|
568
|
+
message.flowType = reader.int32();
|
|
572
569
|
break;
|
|
573
570
|
case /* repeated sid.v1.admin.StepConfig steps */ 3:
|
|
574
571
|
message.steps.push(StepConfig.internalBinaryRead(reader, reader.uint32(), options));
|
|
@@ -588,12 +585,12 @@ class SaveFlowConfigRequest$Type extends MessageType {
|
|
|
588
585
|
return message;
|
|
589
586
|
}
|
|
590
587
|
internalBinaryWrite(message, writer, options) {
|
|
591
|
-
/*
|
|
592
|
-
if (message.projectId
|
|
593
|
-
writer.tag(1, WireType.LengthDelimited).
|
|
594
|
-
/*
|
|
595
|
-
if (message.flowType !==
|
|
596
|
-
writer.tag(2, WireType.
|
|
588
|
+
/* sid.v1.ids.ProjectId project_id = 1; */
|
|
589
|
+
if (message.projectId)
|
|
590
|
+
ProjectId.internalBinaryWrite(message.projectId, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
591
|
+
/* sid.v1.admin.FlowType flow_type = 2; */
|
|
592
|
+
if (message.flowType !== 0)
|
|
593
|
+
writer.tag(2, WireType.Varint).int32(message.flowType);
|
|
597
594
|
/* repeated sid.v1.admin.StepConfig steps = 3; */
|
|
598
595
|
for (let i = 0; i < message.steps.length; i++)
|
|
599
596
|
StepConfig.internalBinaryWrite(message.steps[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
@@ -614,12 +611,11 @@ export const SaveFlowConfigRequest = new SaveFlowConfigRequest$Type();
|
|
|
614
611
|
class ListFlowConfigsRequest$Type extends MessageType {
|
|
615
612
|
constructor() {
|
|
616
613
|
super("sid.v1.admin.ListFlowConfigsRequest", [
|
|
617
|
-
{ no: 1, name: "project_id", kind: "
|
|
614
|
+
{ no: 1, name: "project_id", kind: "message", T: () => ProjectId }
|
|
618
615
|
]);
|
|
619
616
|
}
|
|
620
617
|
create(value) {
|
|
621
618
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
622
|
-
message.projectId = "";
|
|
623
619
|
if (value !== undefined)
|
|
624
620
|
reflectionMergePartial(this, message, value);
|
|
625
621
|
return message;
|
|
@@ -629,8 +625,8 @@ class ListFlowConfigsRequest$Type extends MessageType {
|
|
|
629
625
|
while (reader.pos < end) {
|
|
630
626
|
let [fieldNo, wireType] = reader.tag();
|
|
631
627
|
switch (fieldNo) {
|
|
632
|
-
case /*
|
|
633
|
-
message.projectId = reader.
|
|
628
|
+
case /* sid.v1.ids.ProjectId project_id */ 1:
|
|
629
|
+
message.projectId = ProjectId.internalBinaryRead(reader, reader.uint32(), options, message.projectId);
|
|
634
630
|
break;
|
|
635
631
|
default:
|
|
636
632
|
let u = options.readUnknownField;
|
|
@@ -644,9 +640,9 @@ class ListFlowConfigsRequest$Type extends MessageType {
|
|
|
644
640
|
return message;
|
|
645
641
|
}
|
|
646
642
|
internalBinaryWrite(message, writer, options) {
|
|
647
|
-
/*
|
|
648
|
-
if (message.projectId
|
|
649
|
-
writer.tag(1, WireType.LengthDelimited).
|
|
643
|
+
/* sid.v1.ids.ProjectId project_id = 1; */
|
|
644
|
+
if (message.projectId)
|
|
645
|
+
ProjectId.internalBinaryWrite(message.projectId, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
650
646
|
let u = options.writeUnknownFields;
|
|
651
647
|
if (u !== false)
|
|
652
648
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -708,8 +704,8 @@ export const ListFlowConfigsResponse = new ListFlowConfigsResponse$Type();
|
|
|
708
704
|
class CreateFlowActionRequest$Type extends MessageType {
|
|
709
705
|
constructor() {
|
|
710
706
|
super("sid.v1.admin.CreateFlowActionRequest", [
|
|
711
|
-
{ no: 1, name: "project_id", kind: "
|
|
712
|
-
{ no: 2, name: "flow_type", kind: "
|
|
707
|
+
{ no: 1, name: "project_id", kind: "message", T: () => ProjectId },
|
|
708
|
+
{ no: 2, name: "flow_type", kind: "enum", T: () => ["sid.v1.admin.FlowType", FlowType, "FLOW_TYPE_"] },
|
|
713
709
|
{ no: 3, name: "action_point", kind: "enum", T: () => ["sid.v1.admin.ActionPoint", ActionPoint, "ACTION_POINT_"] },
|
|
714
710
|
{ no: 4, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
715
711
|
{ no: 5, name: "action_type", kind: "enum", T: () => ["sid.v1.admin.ActionType", ActionType, "ACTION_TYPE_"] },
|
|
@@ -721,8 +717,7 @@ class CreateFlowActionRequest$Type extends MessageType {
|
|
|
721
717
|
}
|
|
722
718
|
create(value) {
|
|
723
719
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
724
|
-
message.
|
|
725
|
-
message.flowType = "";
|
|
720
|
+
message.flowType = 0;
|
|
726
721
|
message.actionPoint = 0;
|
|
727
722
|
message.name = "";
|
|
728
723
|
message.actionType = 0;
|
|
@@ -739,11 +734,11 @@ class CreateFlowActionRequest$Type extends MessageType {
|
|
|
739
734
|
while (reader.pos < end) {
|
|
740
735
|
let [fieldNo, wireType] = reader.tag();
|
|
741
736
|
switch (fieldNo) {
|
|
742
|
-
case /*
|
|
743
|
-
message.projectId = reader.
|
|
737
|
+
case /* sid.v1.ids.ProjectId project_id */ 1:
|
|
738
|
+
message.projectId = ProjectId.internalBinaryRead(reader, reader.uint32(), options, message.projectId);
|
|
744
739
|
break;
|
|
745
|
-
case /*
|
|
746
|
-
message.flowType = reader.
|
|
740
|
+
case /* sid.v1.admin.FlowType flow_type */ 2:
|
|
741
|
+
message.flowType = reader.int32();
|
|
747
742
|
break;
|
|
748
743
|
case /* sid.v1.admin.ActionPoint action_point */ 3:
|
|
749
744
|
message.actionPoint = reader.int32();
|
|
@@ -781,12 +776,12 @@ class CreateFlowActionRequest$Type extends MessageType {
|
|
|
781
776
|
return message;
|
|
782
777
|
}
|
|
783
778
|
internalBinaryWrite(message, writer, options) {
|
|
784
|
-
/*
|
|
785
|
-
if (message.projectId
|
|
786
|
-
writer.tag(1, WireType.LengthDelimited).
|
|
787
|
-
/*
|
|
788
|
-
if (message.flowType !==
|
|
789
|
-
writer.tag(2, WireType.
|
|
779
|
+
/* sid.v1.ids.ProjectId project_id = 1; */
|
|
780
|
+
if (message.projectId)
|
|
781
|
+
ProjectId.internalBinaryWrite(message.projectId, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
782
|
+
/* sid.v1.admin.FlowType flow_type = 2; */
|
|
783
|
+
if (message.flowType !== 0)
|
|
784
|
+
writer.tag(2, WireType.Varint).int32(message.flowType);
|
|
790
785
|
/* sid.v1.admin.ActionPoint action_point = 3; */
|
|
791
786
|
if (message.actionPoint !== 0)
|
|
792
787
|
writer.tag(3, WireType.Varint).int32(message.actionPoint);
|
|
@@ -822,16 +817,14 @@ export const CreateFlowActionRequest = new CreateFlowActionRequest$Type();
|
|
|
822
817
|
class GetFlowActionRequest$Type extends MessageType {
|
|
823
818
|
constructor() {
|
|
824
819
|
super("sid.v1.admin.GetFlowActionRequest", [
|
|
825
|
-
{ no: 1, name: "project_id", kind: "
|
|
826
|
-
{ no: 2, name: "flow_type", kind: "
|
|
827
|
-
{ no: 3, name: "action_id", kind: "
|
|
820
|
+
{ no: 1, name: "project_id", kind: "message", T: () => ProjectId },
|
|
821
|
+
{ no: 2, name: "flow_type", kind: "enum", T: () => ["sid.v1.admin.FlowType", FlowType, "FLOW_TYPE_"] },
|
|
822
|
+
{ no: 3, name: "action_id", kind: "message", T: () => FlowActionId }
|
|
828
823
|
]);
|
|
829
824
|
}
|
|
830
825
|
create(value) {
|
|
831
826
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
832
|
-
message.
|
|
833
|
-
message.flowType = "";
|
|
834
|
-
message.actionId = "";
|
|
827
|
+
message.flowType = 0;
|
|
835
828
|
if (value !== undefined)
|
|
836
829
|
reflectionMergePartial(this, message, value);
|
|
837
830
|
return message;
|
|
@@ -841,14 +834,14 @@ class GetFlowActionRequest$Type extends MessageType {
|
|
|
841
834
|
while (reader.pos < end) {
|
|
842
835
|
let [fieldNo, wireType] = reader.tag();
|
|
843
836
|
switch (fieldNo) {
|
|
844
|
-
case /*
|
|
845
|
-
message.projectId = reader.
|
|
837
|
+
case /* sid.v1.ids.ProjectId project_id */ 1:
|
|
838
|
+
message.projectId = ProjectId.internalBinaryRead(reader, reader.uint32(), options, message.projectId);
|
|
846
839
|
break;
|
|
847
|
-
case /*
|
|
848
|
-
message.flowType = reader.
|
|
840
|
+
case /* sid.v1.admin.FlowType flow_type */ 2:
|
|
841
|
+
message.flowType = reader.int32();
|
|
849
842
|
break;
|
|
850
|
-
case /*
|
|
851
|
-
message.actionId = reader.
|
|
843
|
+
case /* sid.v1.ids.FlowActionId action_id */ 3:
|
|
844
|
+
message.actionId = FlowActionId.internalBinaryRead(reader, reader.uint32(), options, message.actionId);
|
|
852
845
|
break;
|
|
853
846
|
default:
|
|
854
847
|
let u = options.readUnknownField;
|
|
@@ -862,15 +855,15 @@ class GetFlowActionRequest$Type extends MessageType {
|
|
|
862
855
|
return message;
|
|
863
856
|
}
|
|
864
857
|
internalBinaryWrite(message, writer, options) {
|
|
865
|
-
/*
|
|
866
|
-
if (message.projectId
|
|
867
|
-
writer.tag(1, WireType.LengthDelimited).
|
|
868
|
-
/*
|
|
869
|
-
if (message.flowType !==
|
|
870
|
-
writer.tag(2, WireType.
|
|
871
|
-
/*
|
|
872
|
-
if (message.actionId
|
|
873
|
-
writer.tag(3, WireType.LengthDelimited).
|
|
858
|
+
/* sid.v1.ids.ProjectId project_id = 1; */
|
|
859
|
+
if (message.projectId)
|
|
860
|
+
ProjectId.internalBinaryWrite(message.projectId, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
861
|
+
/* sid.v1.admin.FlowType flow_type = 2; */
|
|
862
|
+
if (message.flowType !== 0)
|
|
863
|
+
writer.tag(2, WireType.Varint).int32(message.flowType);
|
|
864
|
+
/* sid.v1.ids.FlowActionId action_id = 3; */
|
|
865
|
+
if (message.actionId)
|
|
866
|
+
FlowActionId.internalBinaryWrite(message.actionId, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
874
867
|
let u = options.writeUnknownFields;
|
|
875
868
|
if (u !== false)
|
|
876
869
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -885,15 +878,14 @@ export const GetFlowActionRequest = new GetFlowActionRequest$Type();
|
|
|
885
878
|
class ListFlowActionsRequest$Type extends MessageType {
|
|
886
879
|
constructor() {
|
|
887
880
|
super("sid.v1.admin.ListFlowActionsRequest", [
|
|
888
|
-
{ no: 1, name: "project_id", kind: "
|
|
889
|
-
{ no: 2, name: "flow_type", kind: "
|
|
881
|
+
{ no: 1, name: "project_id", kind: "message", T: () => ProjectId },
|
|
882
|
+
{ no: 2, name: "flow_type", kind: "enum", T: () => ["sid.v1.admin.FlowType", FlowType, "FLOW_TYPE_"] },
|
|
890
883
|
{ no: 3, name: "action_point", kind: "enum", T: () => ["sid.v1.admin.ActionPoint", ActionPoint, "ACTION_POINT_"] }
|
|
891
884
|
]);
|
|
892
885
|
}
|
|
893
886
|
create(value) {
|
|
894
887
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
895
|
-
message.
|
|
896
|
-
message.flowType = "";
|
|
888
|
+
message.flowType = 0;
|
|
897
889
|
message.actionPoint = 0;
|
|
898
890
|
if (value !== undefined)
|
|
899
891
|
reflectionMergePartial(this, message, value);
|
|
@@ -904,11 +896,11 @@ class ListFlowActionsRequest$Type extends MessageType {
|
|
|
904
896
|
while (reader.pos < end) {
|
|
905
897
|
let [fieldNo, wireType] = reader.tag();
|
|
906
898
|
switch (fieldNo) {
|
|
907
|
-
case /*
|
|
908
|
-
message.projectId = reader.
|
|
899
|
+
case /* sid.v1.ids.ProjectId project_id */ 1:
|
|
900
|
+
message.projectId = ProjectId.internalBinaryRead(reader, reader.uint32(), options, message.projectId);
|
|
909
901
|
break;
|
|
910
|
-
case /*
|
|
911
|
-
message.flowType = reader.
|
|
902
|
+
case /* sid.v1.admin.FlowType flow_type */ 2:
|
|
903
|
+
message.flowType = reader.int32();
|
|
912
904
|
break;
|
|
913
905
|
case /* sid.v1.admin.ActionPoint action_point */ 3:
|
|
914
906
|
message.actionPoint = reader.int32();
|
|
@@ -925,12 +917,12 @@ class ListFlowActionsRequest$Type extends MessageType {
|
|
|
925
917
|
return message;
|
|
926
918
|
}
|
|
927
919
|
internalBinaryWrite(message, writer, options) {
|
|
928
|
-
/*
|
|
929
|
-
if (message.projectId
|
|
930
|
-
writer.tag(1, WireType.LengthDelimited).
|
|
931
|
-
/*
|
|
932
|
-
if (message.flowType !==
|
|
933
|
-
writer.tag(2, WireType.
|
|
920
|
+
/* sid.v1.ids.ProjectId project_id = 1; */
|
|
921
|
+
if (message.projectId)
|
|
922
|
+
ProjectId.internalBinaryWrite(message.projectId, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
923
|
+
/* sid.v1.admin.FlowType flow_type = 2; */
|
|
924
|
+
if (message.flowType !== 0)
|
|
925
|
+
writer.tag(2, WireType.Varint).int32(message.flowType);
|
|
934
926
|
/* sid.v1.admin.ActionPoint action_point = 3; */
|
|
935
927
|
if (message.actionPoint !== 0)
|
|
936
928
|
writer.tag(3, WireType.Varint).int32(message.actionPoint);
|
|
@@ -995,9 +987,9 @@ export const ListFlowActionsResponse = new ListFlowActionsResponse$Type();
|
|
|
995
987
|
class UpdateFlowActionRequest$Type extends MessageType {
|
|
996
988
|
constructor() {
|
|
997
989
|
super("sid.v1.admin.UpdateFlowActionRequest", [
|
|
998
|
-
{ no: 1, name: "project_id", kind: "
|
|
999
|
-
{ no: 2, name: "flow_type", kind: "
|
|
1000
|
-
{ no: 3, name: "action_id", kind: "
|
|
990
|
+
{ no: 1, name: "project_id", kind: "message", T: () => ProjectId },
|
|
991
|
+
{ no: 2, name: "flow_type", kind: "enum", T: () => ["sid.v1.admin.FlowType", FlowType, "FLOW_TYPE_"] },
|
|
992
|
+
{ no: 3, name: "action_id", kind: "message", T: () => FlowActionId },
|
|
1001
993
|
{ no: 4, name: "name", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
1002
994
|
{ no: 5, name: "action_point", kind: "enum", opt: true, T: () => ["sid.v1.admin.ActionPoint", ActionPoint, "ACTION_POINT_"] },
|
|
1003
995
|
{ no: 6, name: "webhook", kind: "message", oneof: "config", T: () => WebhookConfig },
|
|
@@ -1008,9 +1000,7 @@ class UpdateFlowActionRequest$Type extends MessageType {
|
|
|
1008
1000
|
}
|
|
1009
1001
|
create(value) {
|
|
1010
1002
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
1011
|
-
message.
|
|
1012
|
-
message.flowType = "";
|
|
1013
|
-
message.actionId = "";
|
|
1003
|
+
message.flowType = 0;
|
|
1014
1004
|
message.config = { oneofKind: undefined };
|
|
1015
1005
|
if (value !== undefined)
|
|
1016
1006
|
reflectionMergePartial(this, message, value);
|
|
@@ -1021,14 +1011,14 @@ class UpdateFlowActionRequest$Type extends MessageType {
|
|
|
1021
1011
|
while (reader.pos < end) {
|
|
1022
1012
|
let [fieldNo, wireType] = reader.tag();
|
|
1023
1013
|
switch (fieldNo) {
|
|
1024
|
-
case /*
|
|
1025
|
-
message.projectId = reader.
|
|
1014
|
+
case /* sid.v1.ids.ProjectId project_id */ 1:
|
|
1015
|
+
message.projectId = ProjectId.internalBinaryRead(reader, reader.uint32(), options, message.projectId);
|
|
1026
1016
|
break;
|
|
1027
|
-
case /*
|
|
1028
|
-
message.flowType = reader.
|
|
1017
|
+
case /* sid.v1.admin.FlowType flow_type */ 2:
|
|
1018
|
+
message.flowType = reader.int32();
|
|
1029
1019
|
break;
|
|
1030
|
-
case /*
|
|
1031
|
-
message.actionId = reader.
|
|
1020
|
+
case /* sid.v1.ids.FlowActionId action_id */ 3:
|
|
1021
|
+
message.actionId = FlowActionId.internalBinaryRead(reader, reader.uint32(), options, message.actionId);
|
|
1032
1022
|
break;
|
|
1033
1023
|
case /* optional string name */ 4:
|
|
1034
1024
|
message.name = reader.string();
|
|
@@ -1063,15 +1053,15 @@ class UpdateFlowActionRequest$Type extends MessageType {
|
|
|
1063
1053
|
return message;
|
|
1064
1054
|
}
|
|
1065
1055
|
internalBinaryWrite(message, writer, options) {
|
|
1066
|
-
/*
|
|
1067
|
-
if (message.projectId
|
|
1068
|
-
writer.tag(1, WireType.LengthDelimited).
|
|
1069
|
-
/*
|
|
1070
|
-
if (message.flowType !==
|
|
1071
|
-
writer.tag(2, WireType.
|
|
1072
|
-
/*
|
|
1073
|
-
if (message.actionId
|
|
1074
|
-
writer.tag(3, WireType.LengthDelimited).
|
|
1056
|
+
/* sid.v1.ids.ProjectId project_id = 1; */
|
|
1057
|
+
if (message.projectId)
|
|
1058
|
+
ProjectId.internalBinaryWrite(message.projectId, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
1059
|
+
/* sid.v1.admin.FlowType flow_type = 2; */
|
|
1060
|
+
if (message.flowType !== 0)
|
|
1061
|
+
writer.tag(2, WireType.Varint).int32(message.flowType);
|
|
1062
|
+
/* sid.v1.ids.FlowActionId action_id = 3; */
|
|
1063
|
+
if (message.actionId)
|
|
1064
|
+
FlowActionId.internalBinaryWrite(message.actionId, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
1075
1065
|
/* optional string name = 4; */
|
|
1076
1066
|
if (message.name !== undefined)
|
|
1077
1067
|
writer.tag(4, WireType.LengthDelimited).string(message.name);
|
|
@@ -1104,16 +1094,14 @@ export const UpdateFlowActionRequest = new UpdateFlowActionRequest$Type();
|
|
|
1104
1094
|
class DeleteFlowActionRequest$Type extends MessageType {
|
|
1105
1095
|
constructor() {
|
|
1106
1096
|
super("sid.v1.admin.DeleteFlowActionRequest", [
|
|
1107
|
-
{ no: 1, name: "project_id", kind: "
|
|
1108
|
-
{ no: 2, name: "flow_type", kind: "
|
|
1109
|
-
{ no: 3, name: "action_id", kind: "
|
|
1097
|
+
{ no: 1, name: "project_id", kind: "message", T: () => ProjectId },
|
|
1098
|
+
{ no: 2, name: "flow_type", kind: "enum", T: () => ["sid.v1.admin.FlowType", FlowType, "FLOW_TYPE_"] },
|
|
1099
|
+
{ no: 3, name: "action_id", kind: "message", T: () => FlowActionId }
|
|
1110
1100
|
]);
|
|
1111
1101
|
}
|
|
1112
1102
|
create(value) {
|
|
1113
1103
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
1114
|
-
message.
|
|
1115
|
-
message.flowType = "";
|
|
1116
|
-
message.actionId = "";
|
|
1104
|
+
message.flowType = 0;
|
|
1117
1105
|
if (value !== undefined)
|
|
1118
1106
|
reflectionMergePartial(this, message, value);
|
|
1119
1107
|
return message;
|
|
@@ -1123,14 +1111,14 @@ class DeleteFlowActionRequest$Type extends MessageType {
|
|
|
1123
1111
|
while (reader.pos < end) {
|
|
1124
1112
|
let [fieldNo, wireType] = reader.tag();
|
|
1125
1113
|
switch (fieldNo) {
|
|
1126
|
-
case /*
|
|
1127
|
-
message.projectId = reader.
|
|
1114
|
+
case /* sid.v1.ids.ProjectId project_id */ 1:
|
|
1115
|
+
message.projectId = ProjectId.internalBinaryRead(reader, reader.uint32(), options, message.projectId);
|
|
1128
1116
|
break;
|
|
1129
|
-
case /*
|
|
1130
|
-
message.flowType = reader.
|
|
1117
|
+
case /* sid.v1.admin.FlowType flow_type */ 2:
|
|
1118
|
+
message.flowType = reader.int32();
|
|
1131
1119
|
break;
|
|
1132
|
-
case /*
|
|
1133
|
-
message.actionId = reader.
|
|
1120
|
+
case /* sid.v1.ids.FlowActionId action_id */ 3:
|
|
1121
|
+
message.actionId = FlowActionId.internalBinaryRead(reader, reader.uint32(), options, message.actionId);
|
|
1134
1122
|
break;
|
|
1135
1123
|
default:
|
|
1136
1124
|
let u = options.readUnknownField;
|
|
@@ -1144,15 +1132,15 @@ class DeleteFlowActionRequest$Type extends MessageType {
|
|
|
1144
1132
|
return message;
|
|
1145
1133
|
}
|
|
1146
1134
|
internalBinaryWrite(message, writer, options) {
|
|
1147
|
-
/*
|
|
1148
|
-
if (message.projectId
|
|
1149
|
-
writer.tag(1, WireType.LengthDelimited).
|
|
1150
|
-
/*
|
|
1151
|
-
if (message.flowType !==
|
|
1152
|
-
writer.tag(2, WireType.
|
|
1153
|
-
/*
|
|
1154
|
-
if (message.actionId
|
|
1155
|
-
writer.tag(3, WireType.LengthDelimited).
|
|
1135
|
+
/* sid.v1.ids.ProjectId project_id = 1; */
|
|
1136
|
+
if (message.projectId)
|
|
1137
|
+
ProjectId.internalBinaryWrite(message.projectId, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
1138
|
+
/* sid.v1.admin.FlowType flow_type = 2; */
|
|
1139
|
+
if (message.flowType !== 0)
|
|
1140
|
+
writer.tag(2, WireType.Varint).int32(message.flowType);
|
|
1141
|
+
/* sid.v1.ids.FlowActionId action_id = 3; */
|
|
1142
|
+
if (message.actionId)
|
|
1143
|
+
FlowActionId.internalBinaryWrite(message.actionId, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
1156
1144
|
let u = options.writeUnknownFields;
|
|
1157
1145
|
if (u !== false)
|
|
1158
1146
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -1167,18 +1155,18 @@ export const DeleteFlowActionRequest = new DeleteFlowActionRequest$Type();
|
|
|
1167
1155
|
* @generated ServiceType for protobuf service sid.v1.admin.FlowConfigService
|
|
1168
1156
|
*/
|
|
1169
1157
|
export const FlowConfigService = new ServiceType("sid.v1.admin.FlowConfigService", [
|
|
1170
|
-
{ name: "GetFlowConfig", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { get: "/v1/projects/{project_id}/flows/{flow_type}" } }, I: GetFlowConfigRequest, O: FlowConfig },
|
|
1171
|
-
{ name: "SaveFlowConfig", idempotency: "IDEMPOTENT", options: { "google.api.http": { put: "/v1/projects/{project_id}/flows/{flow_type}", body: "*" }, "sid.v1.common.retry": { keyed: true } }, I: SaveFlowConfigRequest, O: FlowConfig },
|
|
1172
|
-
{ name: "ListFlowConfigs", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { get: "/v1/projects/{project_id}/flows" } }, I: ListFlowConfigsRequest, O: ListFlowConfigsResponse }
|
|
1158
|
+
{ name: "GetFlowConfig", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { get: "/v1/projects/{project_id.value}/flows/{flow_type}" } }, I: GetFlowConfigRequest, O: FlowConfig },
|
|
1159
|
+
{ name: "SaveFlowConfig", idempotency: "IDEMPOTENT", options: { "google.api.http": { put: "/v1/projects/{project_id.value}/flows/{flow_type}", body: "*" }, "sid.v1.common.retry": { keyed: true } }, I: SaveFlowConfigRequest, O: FlowConfig },
|
|
1160
|
+
{ name: "ListFlowConfigs", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { get: "/v1/projects/{project_id.value}/flows" } }, I: ListFlowConfigsRequest, O: ListFlowConfigsResponse }
|
|
1173
1161
|
]);
|
|
1174
1162
|
/**
|
|
1175
1163
|
* @generated ServiceType for protobuf service sid.v1.admin.FlowActionService
|
|
1176
1164
|
*/
|
|
1177
1165
|
export const FlowActionService = new ServiceType("sid.v1.admin.FlowActionService", [
|
|
1178
|
-
{ name: "CreateFlowAction", idempotency: "IDEMPOTENT", options: { "google.api.http": { post: "/v1/projects/{project_id}/flows/{flow_type}/actions", body: "*" }, "sid.v1.common.retry": { keyed: true } }, I: CreateFlowActionRequest, O: FlowAction },
|
|
1179
|
-
{ name: "GetFlowAction", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { get: "/v1/projects/{project_id}/flows/{flow_type}/actions/{action_id}" } }, I: GetFlowActionRequest, O: FlowAction },
|
|
1180
|
-
{ name: "ListFlowActions", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { get: "/v1/projects/{project_id}/flows/{flow_type}/actions" } }, I: ListFlowActionsRequest, O: ListFlowActionsResponse },
|
|
1181
|
-
{ name: "UpdateFlowAction", idempotency: "IDEMPOTENT", options: { "google.api.http": { patch: "/v1/projects/{project_id}/flows/{flow_type}/actions/{action_id}", body: "*" }, "sid.v1.common.retry": { keyed: true } }, I: UpdateFlowActionRequest, O: FlowAction },
|
|
1182
|
-
{ name: "DeleteFlowAction", idempotency: "IDEMPOTENT", options: { "google.api.http": { delete: "/v1/projects/{project_id}/flows/{flow_type}/actions/{action_id}" }, "sid.v1.common.retry": { natural: "an action id is never reused, so a deleted action stays deleted: a repeat removes nothing more and answers NOT_FOUND" } }, I: DeleteFlowActionRequest, O: Empty }
|
|
1166
|
+
{ name: "CreateFlowAction", idempotency: "IDEMPOTENT", options: { "google.api.http": { post: "/v1/projects/{project_id.value}/flows/{flow_type}/actions", body: "*" }, "sid.v1.common.retry": { keyed: true } }, I: CreateFlowActionRequest, O: FlowAction },
|
|
1167
|
+
{ name: "GetFlowAction", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { get: "/v1/projects/{project_id.value}/flows/{flow_type}/actions/{action_id.value}" } }, I: GetFlowActionRequest, O: FlowAction },
|
|
1168
|
+
{ name: "ListFlowActions", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { get: "/v1/projects/{project_id.value}/flows/{flow_type}/actions" } }, I: ListFlowActionsRequest, O: ListFlowActionsResponse },
|
|
1169
|
+
{ name: "UpdateFlowAction", idempotency: "IDEMPOTENT", options: { "google.api.http": { patch: "/v1/projects/{project_id.value}/flows/{flow_type}/actions/{action_id.value}", body: "*" }, "sid.v1.common.retry": { keyed: true } }, I: UpdateFlowActionRequest, O: FlowAction },
|
|
1170
|
+
{ name: "DeleteFlowAction", idempotency: "IDEMPOTENT", options: { "google.api.http": { delete: "/v1/projects/{project_id.value}/flows/{flow_type}/actions/{action_id.value}" }, "sid.v1.common.retry": { natural: "an action id is never reused, so a deleted action stays deleted: a repeat removes nothing more and answers NOT_FOUND" } }, I: DeleteFlowActionRequest, O: Empty }
|
|
1183
1171
|
]);
|
|
1184
1172
|
//# sourceMappingURL=flow.js.map
|