@structured-id/ui-core 1.3.0 → 3.0.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/README.md +22 -10
- package/package.json +25 -43
- package/src/components/SidStatusBadge.vue +1 -5
- package/src/composables/useAccountTransport.test.ts +2 -1
- package/src/composables/useGrpc.test.ts +17 -14
- package/src/composables/useGrpc.ts +4 -2
- package/src/index.ts +2 -120
- package/src/profile/components/ConsentManager.vue +5 -1
- package/src/profile/components/ProfileEditor.vue +1 -1
- package/src/profile/components/SecuritySettings.vue +5 -1
- package/src/profile/components/SessionList.vue +2 -1
- package/src/profile/components/SidRegistrationForm.test.ts +173 -1
- package/src/profile/components/SidRegistrationForm.vue +88 -32
- package/src/profile/components/index.ts +1 -4
- package/src/profile/composables/index.ts +1 -0
- package/src/profile/composables/operationPlan.test.ts +155 -0
- package/src/profile/composables/operationPlan.ts +218 -0
- package/src/profile/composables/useAccountApi.ts +4 -4
- package/src/profile/composables/useAuth.test.ts +312 -31
- package/src/profile/composables/useAuth.ts +176 -30
- package/src/profile/composables/useAuthApi.opaque.test.ts +13 -6
- package/src/profile/composables/useAuthApi.ts +40 -18
- package/src/profile/composables/useCurrentPasswordRequirement.test.ts +196 -0
- package/src/profile/composables/useCurrentPasswordRequirement.ts +95 -0
- package/src/profile/composables/useEnrollmentApi.test.ts +7 -3
- package/src/profile/composables/useEnrollmentApi.ts +3 -5
- package/src/profile/composables/useIdentityApi.ts +4 -4
- package/src/profile/composables/useSecurityLevel.test.ts +1 -1
- package/src/profile/composables/useSecurityLevel.ts +1 -1
- package/src/quasar/SidPasswordCeremony.test.ts +253 -0
- package/src/quasar/SidPasswordCeremony.vue +456 -0
- package/src/quasar/index.ts +2 -0
- package/src/utils/rpcRefusal.test.ts +4 -4
- package/src/utils/rpcRefusal.ts +8 -4
- package/dist/browser-vp/index.cjs +0 -349
- package/dist/browser-vp/index.d.cts +0 -276
- package/dist/browser-vp/index.d.ts +0 -276
- package/dist/browser-vp/index.js +0 -349
- package/dist/chunk-C3Q766CY.cjs +0 -125
- package/dist/chunk-J5YXRXB5.js +0 -125
- package/dist/index.cjs +0 -23581
- package/dist/index.d.cts +0 -11539
- package/dist/index.d.ts +0 -11539
- package/dist/index.js +0 -23581
- package/dist/storage-4CB2JTLW.cjs +0 -22
- package/dist/storage-THRWREZP.js +0 -22
- package/src/browser-vp/crypto.ts +0 -253
- package/src/browser-vp/index.test.ts +0 -10
- package/src/browser-vp/index.ts +0 -116
- package/src/browser-vp/prf.ts +0 -179
- package/src/browser-vp/storage.test.ts +0 -9
- package/src/browser-vp/storage.ts +0 -163
- package/src/browser-vp/types.ts +0 -95
- package/src/browser-vp/vp.test.ts +0 -43
- package/src/browser-vp/vp.ts +0 -111
- package/src/generated/google/api/http.ts +0 -687
- package/src/generated/google/api/httpbody.ts +0 -159
- package/src/generated/google/protobuf/any.ts +0 -326
- package/src/generated/google/protobuf/descriptor.ts +0 -4865
- package/src/generated/google/protobuf/duration.ts +0 -230
- package/src/generated/google/protobuf/empty.ts +0 -94
- package/src/generated/google/protobuf/struct.ts +0 -484
- package/src/generated/google/protobuf/timestamp.ts +0 -287
- package/src/generated/google/rpc/error_details.ts +0 -1386
- package/src/generated/google/rpc/status.ts +0 -127
- package/src/generated/sid/v1/account/account.client.ts +0 -527
- package/src/generated/sid/v1/account/account.ts +0 -3261
- package/src/generated/sid/v1/admin/admin.client.ts +0 -139
- package/src/generated/sid/v1/admin/admin.ts +0 -781
- package/src/generated/sid/v1/admin/admin_roles.client.ts +0 -181
- package/src/generated/sid/v1/admin/admin_roles.ts +0 -1606
- package/src/generated/sid/v1/admin/analytics.client.ts +0 -106
- package/src/generated/sid/v1/admin/analytics.ts +0 -1017
- package/src/generated/sid/v1/admin/branding.client.ts +0 -166
- package/src/generated/sid/v1/admin/branding.ts +0 -1906
- package/src/generated/sid/v1/admin/enrollment.client.ts +0 -177
- package/src/generated/sid/v1/admin/enrollment.ts +0 -1766
- package/src/generated/sid/v1/admin/events.client.ts +0 -195
- package/src/generated/sid/v1/admin/events.ts +0 -1900
- package/src/generated/sid/v1/admin/flow.client.ts +0 -183
- package/src/generated/sid/v1/admin/flow.ts +0 -1552
- package/src/generated/sid/v1/admin/keys.client.ts +0 -107
- package/src/generated/sid/v1/admin/keys.ts +0 -931
- package/src/generated/sid/v1/admin/login_experience.client.ts +0 -160
- package/src/generated/sid/v1/admin/login_experience.ts +0 -1061
- package/src/generated/sid/v1/admin/migration.client.ts +0 -127
- package/src/generated/sid/v1/admin/migration.ts +0 -1948
- package/src/generated/sid/v1/admin/notifications.client.ts +0 -134
- package/src/generated/sid/v1/admin/notifications.ts +0 -1273
- package/src/generated/sid/v1/admin/operations.client.ts +0 -241
- package/src/generated/sid/v1/admin/operations.ts +0 -2633
- package/src/generated/sid/v1/admin/organizations.client.ts +0 -57
- package/src/generated/sid/v1/admin/organizations.ts +0 -332
- package/src/generated/sid/v1/admin/provisioning.client.ts +0 -232
- package/src/generated/sid/v1/admin/provisioning.ts +0 -1383
- package/src/generated/sid/v1/admin/scopes.client.ts +0 -171
- package/src/generated/sid/v1/admin/scopes.ts +0 -1324
- package/src/generated/sid/v1/admin/security.client.ts +0 -410
- package/src/generated/sid/v1/admin/security.ts +0 -4077
- package/src/generated/sid/v1/admin/sessions.client.ts +0 -114
- package/src/generated/sid/v1/admin/sessions.ts +0 -923
- package/src/generated/sid/v1/admin/settings.client.ts +0 -351
- package/src/generated/sid/v1/admin/settings.ts +0 -2458
- package/src/generated/sid/v1/admin/user_profile.client.ts +0 -57
- package/src/generated/sid/v1/admin/user_profile.ts +0 -730
- package/src/generated/sid/v1/admin/webhooks.client.ts +0 -269
- package/src/generated/sid/v1/admin/webhooks.ts +0 -2804
- package/src/generated/sid/v1/attestation/attestation.client.ts +0 -115
- package/src/generated/sid/v1/attestation/attestation.ts +0 -813
- package/src/generated/sid/v1/authn/auth.client.ts +0 -943
- package/src/generated/sid/v1/authn/auth.ts +0 -9719
- package/src/generated/sid/v1/authn/flows.client.ts +0 -413
- package/src/generated/sid/v1/authn/flows.ts +0 -3205
- package/src/generated/sid/v1/authn/issuer.client.ts +0 -489
- package/src/generated/sid/v1/authn/issuer.ts +0 -1600
- package/src/generated/sid/v1/authn/password_history.client.ts +0 -57
- package/src/generated/sid/v1/authn/password_history.ts +0 -578
- package/src/generated/sid/v1/authn/system_integration.client.ts +0 -73
- package/src/generated/sid/v1/authn/system_integration.ts +0 -218
- package/src/generated/sid/v1/authz/authz.client.ts +0 -459
- package/src/generated/sid/v1/authz/authz.ts +0 -6524
- package/src/generated/sid/v1/authz/forward_auth.client.ts +0 -97
- package/src/generated/sid/v1/authz/forward_auth.ts +0 -79
- package/src/generated/sid/v1/authz/governance.client.ts +0 -102
- package/src/generated/sid/v1/authz/governance.ts +0 -875
- package/src/generated/sid/v1/common/errors.ts +0 -710
- package/src/generated/sid/v1/common/pagination.ts +0 -152
- package/src/generated/sid/v1/common/transport.ts +0 -227
- package/src/generated/sid/v1/common/types.ts +0 -151
- package/src/generated/sid/v1/events/event_stream.client.ts +0 -67
- package/src/generated/sid/v1/events/event_stream.ts +0 -375
- package/src/generated/sid/v1/federation/upstream.client.ts +0 -142
- package/src/generated/sid/v1/federation/upstream.ts +0 -1736
- package/src/generated/sid/v1/identity/identity.client.ts +0 -467
- package/src/generated/sid/v1/identity/identity.ts +0 -5676
- package/src/generated/sid/v1/ids/ids.ts +0 -395
- package/src/generated/sid/v1/machine/machine_user.client.ts +0 -219
- package/src/generated/sid/v1/machine/machine_user.ts +0 -2364
- package/src/generated/sid/v1/machine/pat.client.ts +0 -130
- package/src/generated/sid/v1/machine/pat.ts +0 -1083
- package/src/generated/sid/v1/projects/projects.client.ts +0 -404
- package/src/generated/sid/v1/projects/projects.ts +0 -4446
- package/src/generated/sid/v1/scim/scim.client.ts +0 -520
- package/src/generated/sid/v1/scim/scim.ts +0 -3182
- package/src/generated/sid/v1/test/test.client.ts +0 -232
- package/src/generated/sid/v1/test/test.ts +0 -1136
- package/src/transport/adaptive.test.ts +0 -728
- package/src/transport/adaptive.ts +0 -308
- package/src/transport/framing.test.ts +0 -227
- package/src/transport/framing.ts +0 -98
- package/src/transport/webtransport.test.ts +0 -728
- package/src/transport/webtransport.ts +0 -323
|
@@ -1,1552 +0,0 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.11.1 with parameter client_generic,generate_dependencies
|
|
2
|
-
// @generated from protobuf file "sid/v1/admin/flow.proto" (package "sid.v1.admin", syntax proto3)
|
|
3
|
-
// tslint:disable
|
|
4
|
-
import { Empty } from "../../../google/protobuf/empty";
|
|
5
|
-
import { ServiceType } from "@protobuf-ts/runtime-rpc";
|
|
6
|
-
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
7
|
-
import type { IBinaryWriter } from "@protobuf-ts/runtime";
|
|
8
|
-
import { WireType } from "@protobuf-ts/runtime";
|
|
9
|
-
import type { BinaryReadOptions } from "@protobuf-ts/runtime";
|
|
10
|
-
import type { IBinaryReader } from "@protobuf-ts/runtime";
|
|
11
|
-
import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
12
|
-
import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
13
|
-
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
14
|
-
import { MessageType } from "@protobuf-ts/runtime";
|
|
15
|
-
import { Timestamp } from "../../../google/protobuf/timestamp";
|
|
16
|
-
import { Struct } from "../../../google/protobuf/struct";
|
|
17
|
-
// ── Messages ──
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* @generated from protobuf message sid.v1.admin.StepConfig
|
|
21
|
-
*/
|
|
22
|
-
export interface StepConfig {
|
|
23
|
-
/**
|
|
24
|
-
* Step type identifier (e.g., "identification", "password", "mfa").
|
|
25
|
-
*
|
|
26
|
-
* @generated from protobuf field: string step_type = 1
|
|
27
|
-
*/
|
|
28
|
-
stepType: string;
|
|
29
|
-
/**
|
|
30
|
-
* Whether this step is enabled.
|
|
31
|
-
*
|
|
32
|
-
* @generated from protobuf field: bool enabled = 2
|
|
33
|
-
*/
|
|
34
|
-
enabled: boolean;
|
|
35
|
-
/**
|
|
36
|
-
* Step-specific parameters.
|
|
37
|
-
*
|
|
38
|
-
* @generated from protobuf field: google.protobuf.Struct params = 3
|
|
39
|
-
*/
|
|
40
|
-
params?: Struct;
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* @generated from protobuf message sid.v1.admin.FlowConfig
|
|
44
|
-
*/
|
|
45
|
-
export interface FlowConfig {
|
|
46
|
-
/**
|
|
47
|
-
* @generated from protobuf field: string project_id = 1
|
|
48
|
-
*/
|
|
49
|
-
projectId: string;
|
|
50
|
-
/**
|
|
51
|
-
* @generated from protobuf field: sid.v1.admin.FlowType flow_type = 2
|
|
52
|
-
*/
|
|
53
|
-
flowType: FlowType;
|
|
54
|
-
/**
|
|
55
|
-
* Per-step configurations.
|
|
56
|
-
*
|
|
57
|
-
* @generated from protobuf field: repeated sid.v1.admin.StepConfig steps = 3
|
|
58
|
-
*/
|
|
59
|
-
steps: StepConfig[];
|
|
60
|
-
/**
|
|
61
|
-
* Flow-level timeout in seconds (default: 300).
|
|
62
|
-
*
|
|
63
|
-
* @generated from protobuf field: uint32 timeout_seconds = 4
|
|
64
|
-
*/
|
|
65
|
-
timeoutSeconds: number;
|
|
66
|
-
/**
|
|
67
|
-
* @generated from protobuf field: google.protobuf.Timestamp updated_at = 5
|
|
68
|
-
*/
|
|
69
|
-
updatedAt?: Timestamp;
|
|
70
|
-
}
|
|
71
|
-
/**
|
|
72
|
-
* @generated from protobuf message sid.v1.admin.WebhookConfig
|
|
73
|
-
*/
|
|
74
|
-
export interface WebhookConfig {
|
|
75
|
-
/**
|
|
76
|
-
* Target URL (must start with http:// or https://).
|
|
77
|
-
*
|
|
78
|
-
* @generated from protobuf field: string url = 1
|
|
79
|
-
*/
|
|
80
|
-
url: string;
|
|
81
|
-
/**
|
|
82
|
-
* Request timeout in seconds (1-30, default: 5).
|
|
83
|
-
*
|
|
84
|
-
* @generated from protobuf field: uint32 timeout_seconds = 2
|
|
85
|
-
*/
|
|
86
|
-
timeoutSeconds: number;
|
|
87
|
-
/**
|
|
88
|
-
* Retry count on failure (0-3, default: 0).
|
|
89
|
-
*
|
|
90
|
-
* @generated from protobuf field: uint32 retry_count = 3
|
|
91
|
-
*/
|
|
92
|
-
retryCount: number;
|
|
93
|
-
/**
|
|
94
|
-
* Additional HTTP headers.
|
|
95
|
-
*
|
|
96
|
-
* @generated from protobuf field: map<string, string> headers = 4
|
|
97
|
-
*/
|
|
98
|
-
headers: {
|
|
99
|
-
[key: string]: string;
|
|
100
|
-
};
|
|
101
|
-
}
|
|
102
|
-
/**
|
|
103
|
-
* @generated from protobuf message sid.v1.admin.FlowAction
|
|
104
|
-
*/
|
|
105
|
-
export interface FlowAction {
|
|
106
|
-
/**
|
|
107
|
-
* @generated from protobuf field: string action_id = 1
|
|
108
|
-
*/
|
|
109
|
-
actionId: string;
|
|
110
|
-
/**
|
|
111
|
-
* @generated from protobuf field: string project_id = 2
|
|
112
|
-
*/
|
|
113
|
-
projectId: string;
|
|
114
|
-
/**
|
|
115
|
-
* @generated from protobuf field: sid.v1.admin.FlowType flow_type = 3
|
|
116
|
-
*/
|
|
117
|
-
flowType: FlowType;
|
|
118
|
-
/**
|
|
119
|
-
* @generated from protobuf field: sid.v1.admin.ActionPoint action_point = 4
|
|
120
|
-
*/
|
|
121
|
-
actionPoint: ActionPoint;
|
|
122
|
-
/**
|
|
123
|
-
* Human-readable name.
|
|
124
|
-
*
|
|
125
|
-
* @generated from protobuf field: string name = 5
|
|
126
|
-
*/
|
|
127
|
-
name: string;
|
|
128
|
-
/**
|
|
129
|
-
* @generated from protobuf field: sid.v1.admin.ActionType action_type = 6
|
|
130
|
-
*/
|
|
131
|
-
actionType: ActionType;
|
|
132
|
-
/**
|
|
133
|
-
* Type-specific configuration.
|
|
134
|
-
*
|
|
135
|
-
* @generated from protobuf oneof: config
|
|
136
|
-
*/
|
|
137
|
-
config: {
|
|
138
|
-
oneofKind: "webhook";
|
|
139
|
-
/**
|
|
140
|
-
* @generated from protobuf field: sid.v1.admin.WebhookConfig webhook = 7
|
|
141
|
-
*/
|
|
142
|
-
webhook: WebhookConfig;
|
|
143
|
-
} | {
|
|
144
|
-
oneofKind: undefined;
|
|
145
|
-
};
|
|
146
|
-
/**
|
|
147
|
-
* Execution order within hook point (lower = first).
|
|
148
|
-
*
|
|
149
|
-
* @generated from protobuf field: int32 order = 8
|
|
150
|
-
*/
|
|
151
|
-
order: number;
|
|
152
|
-
/**
|
|
153
|
-
* @generated from protobuf field: sid.v1.admin.ActionOnError on_error = 9
|
|
154
|
-
*/
|
|
155
|
-
onError: ActionOnError;
|
|
156
|
-
/**
|
|
157
|
-
* @generated from protobuf field: bool enabled = 10
|
|
158
|
-
*/
|
|
159
|
-
enabled: boolean;
|
|
160
|
-
/**
|
|
161
|
-
* @generated from protobuf field: google.protobuf.Timestamp created_at = 11
|
|
162
|
-
*/
|
|
163
|
-
createdAt?: Timestamp;
|
|
164
|
-
/**
|
|
165
|
-
* @generated from protobuf field: google.protobuf.Timestamp updated_at = 12
|
|
166
|
-
*/
|
|
167
|
-
updatedAt?: Timestamp;
|
|
168
|
-
}
|
|
169
|
-
// ── Requests/Responses ──
|
|
170
|
-
|
|
171
|
-
/**
|
|
172
|
-
* @generated from protobuf message sid.v1.admin.GetFlowConfigRequest
|
|
173
|
-
*/
|
|
174
|
-
export interface GetFlowConfigRequest {
|
|
175
|
-
/**
|
|
176
|
-
* @generated from protobuf field: string project_id = 1
|
|
177
|
-
*/
|
|
178
|
-
projectId: string;
|
|
179
|
-
/**
|
|
180
|
-
* @generated from protobuf field: string flow_type = 2
|
|
181
|
-
*/
|
|
182
|
-
flowType: string;
|
|
183
|
-
}
|
|
184
|
-
/**
|
|
185
|
-
* @generated from protobuf message sid.v1.admin.SaveFlowConfigRequest
|
|
186
|
-
*/
|
|
187
|
-
export interface SaveFlowConfigRequest {
|
|
188
|
-
/**
|
|
189
|
-
* @generated from protobuf field: string project_id = 1
|
|
190
|
-
*/
|
|
191
|
-
projectId: string;
|
|
192
|
-
/**
|
|
193
|
-
* @generated from protobuf field: string flow_type = 2
|
|
194
|
-
*/
|
|
195
|
-
flowType: string;
|
|
196
|
-
/**
|
|
197
|
-
* @generated from protobuf field: repeated sid.v1.admin.StepConfig steps = 3
|
|
198
|
-
*/
|
|
199
|
-
steps: StepConfig[];
|
|
200
|
-
/**
|
|
201
|
-
* @generated from protobuf field: uint32 timeout_seconds = 4
|
|
202
|
-
*/
|
|
203
|
-
timeoutSeconds: number;
|
|
204
|
-
}
|
|
205
|
-
/**
|
|
206
|
-
* @generated from protobuf message sid.v1.admin.ListFlowConfigsRequest
|
|
207
|
-
*/
|
|
208
|
-
export interface ListFlowConfigsRequest {
|
|
209
|
-
/**
|
|
210
|
-
* @generated from protobuf field: string project_id = 1
|
|
211
|
-
*/
|
|
212
|
-
projectId: string;
|
|
213
|
-
}
|
|
214
|
-
/**
|
|
215
|
-
* @generated from protobuf message sid.v1.admin.ListFlowConfigsResponse
|
|
216
|
-
*/
|
|
217
|
-
export interface ListFlowConfigsResponse {
|
|
218
|
-
/**
|
|
219
|
-
* @generated from protobuf field: repeated sid.v1.admin.FlowConfig configs = 1
|
|
220
|
-
*/
|
|
221
|
-
configs: FlowConfig[];
|
|
222
|
-
}
|
|
223
|
-
/**
|
|
224
|
-
* @generated from protobuf message sid.v1.admin.CreateFlowActionRequest
|
|
225
|
-
*/
|
|
226
|
-
export interface CreateFlowActionRequest {
|
|
227
|
-
/**
|
|
228
|
-
* @generated from protobuf field: string project_id = 1
|
|
229
|
-
*/
|
|
230
|
-
projectId: string;
|
|
231
|
-
/**
|
|
232
|
-
* @generated from protobuf field: string flow_type = 2
|
|
233
|
-
*/
|
|
234
|
-
flowType: string;
|
|
235
|
-
/**
|
|
236
|
-
* @generated from protobuf field: sid.v1.admin.ActionPoint action_point = 3
|
|
237
|
-
*/
|
|
238
|
-
actionPoint: ActionPoint;
|
|
239
|
-
/**
|
|
240
|
-
* @generated from protobuf field: string name = 4
|
|
241
|
-
*/
|
|
242
|
-
name: string;
|
|
243
|
-
/**
|
|
244
|
-
* @generated from protobuf field: sid.v1.admin.ActionType action_type = 5
|
|
245
|
-
*/
|
|
246
|
-
actionType: ActionType;
|
|
247
|
-
/**
|
|
248
|
-
* @generated from protobuf oneof: config
|
|
249
|
-
*/
|
|
250
|
-
config: {
|
|
251
|
-
oneofKind: "webhook";
|
|
252
|
-
/**
|
|
253
|
-
* @generated from protobuf field: sid.v1.admin.WebhookConfig webhook = 6
|
|
254
|
-
*/
|
|
255
|
-
webhook: WebhookConfig;
|
|
256
|
-
} | {
|
|
257
|
-
oneofKind: undefined;
|
|
258
|
-
};
|
|
259
|
-
/**
|
|
260
|
-
* @generated from protobuf field: int32 order = 7
|
|
261
|
-
*/
|
|
262
|
-
order: number;
|
|
263
|
-
/**
|
|
264
|
-
* @generated from protobuf field: sid.v1.admin.ActionOnError on_error = 8
|
|
265
|
-
*/
|
|
266
|
-
onError: ActionOnError;
|
|
267
|
-
/**
|
|
268
|
-
* @generated from protobuf field: bool enabled = 9
|
|
269
|
-
*/
|
|
270
|
-
enabled: boolean;
|
|
271
|
-
}
|
|
272
|
-
/**
|
|
273
|
-
* @generated from protobuf message sid.v1.admin.GetFlowActionRequest
|
|
274
|
-
*/
|
|
275
|
-
export interface GetFlowActionRequest {
|
|
276
|
-
/**
|
|
277
|
-
* @generated from protobuf field: string project_id = 1
|
|
278
|
-
*/
|
|
279
|
-
projectId: string;
|
|
280
|
-
/**
|
|
281
|
-
* @generated from protobuf field: string flow_type = 2
|
|
282
|
-
*/
|
|
283
|
-
flowType: string;
|
|
284
|
-
/**
|
|
285
|
-
* @generated from protobuf field: string action_id = 3
|
|
286
|
-
*/
|
|
287
|
-
actionId: string;
|
|
288
|
-
}
|
|
289
|
-
/**
|
|
290
|
-
* @generated from protobuf message sid.v1.admin.ListFlowActionsRequest
|
|
291
|
-
*/
|
|
292
|
-
export interface ListFlowActionsRequest {
|
|
293
|
-
/**
|
|
294
|
-
* @generated from protobuf field: string project_id = 1
|
|
295
|
-
*/
|
|
296
|
-
projectId: string;
|
|
297
|
-
/**
|
|
298
|
-
* @generated from protobuf field: string flow_type = 2
|
|
299
|
-
*/
|
|
300
|
-
flowType: string;
|
|
301
|
-
/**
|
|
302
|
-
* Optional filter by action point.
|
|
303
|
-
*
|
|
304
|
-
* @generated from protobuf field: sid.v1.admin.ActionPoint action_point = 3
|
|
305
|
-
*/
|
|
306
|
-
actionPoint: ActionPoint;
|
|
307
|
-
}
|
|
308
|
-
/**
|
|
309
|
-
* @generated from protobuf message sid.v1.admin.ListFlowActionsResponse
|
|
310
|
-
*/
|
|
311
|
-
export interface ListFlowActionsResponse {
|
|
312
|
-
/**
|
|
313
|
-
* @generated from protobuf field: repeated sid.v1.admin.FlowAction actions = 1
|
|
314
|
-
*/
|
|
315
|
-
actions: FlowAction[];
|
|
316
|
-
}
|
|
317
|
-
/**
|
|
318
|
-
* @generated from protobuf message sid.v1.admin.UpdateFlowActionRequest
|
|
319
|
-
*/
|
|
320
|
-
export interface UpdateFlowActionRequest {
|
|
321
|
-
/**
|
|
322
|
-
* @generated from protobuf field: string project_id = 1
|
|
323
|
-
*/
|
|
324
|
-
projectId: string;
|
|
325
|
-
/**
|
|
326
|
-
* @generated from protobuf field: string flow_type = 2
|
|
327
|
-
*/
|
|
328
|
-
flowType: string;
|
|
329
|
-
/**
|
|
330
|
-
* @generated from protobuf field: string action_id = 3
|
|
331
|
-
*/
|
|
332
|
-
actionId: string;
|
|
333
|
-
/**
|
|
334
|
-
* Fields to update (all optional — only set fields are applied).
|
|
335
|
-
*
|
|
336
|
-
* @generated from protobuf field: optional string name = 4
|
|
337
|
-
*/
|
|
338
|
-
name?: string;
|
|
339
|
-
/**
|
|
340
|
-
* @generated from protobuf field: optional sid.v1.admin.ActionPoint action_point = 5
|
|
341
|
-
*/
|
|
342
|
-
actionPoint?: ActionPoint;
|
|
343
|
-
/**
|
|
344
|
-
* @generated from protobuf oneof: config
|
|
345
|
-
*/
|
|
346
|
-
config: {
|
|
347
|
-
oneofKind: "webhook";
|
|
348
|
-
/**
|
|
349
|
-
* @generated from protobuf field: sid.v1.admin.WebhookConfig webhook = 6
|
|
350
|
-
*/
|
|
351
|
-
webhook: WebhookConfig;
|
|
352
|
-
} | {
|
|
353
|
-
oneofKind: undefined;
|
|
354
|
-
};
|
|
355
|
-
/**
|
|
356
|
-
* @generated from protobuf field: optional int32 order = 7
|
|
357
|
-
*/
|
|
358
|
-
order?: number;
|
|
359
|
-
/**
|
|
360
|
-
* @generated from protobuf field: optional sid.v1.admin.ActionOnError on_error = 8
|
|
361
|
-
*/
|
|
362
|
-
onError?: ActionOnError;
|
|
363
|
-
/**
|
|
364
|
-
* @generated from protobuf field: optional bool enabled = 9
|
|
365
|
-
*/
|
|
366
|
-
enabled?: boolean;
|
|
367
|
-
}
|
|
368
|
-
/**
|
|
369
|
-
* @generated from protobuf message sid.v1.admin.DeleteFlowActionRequest
|
|
370
|
-
*/
|
|
371
|
-
export interface DeleteFlowActionRequest {
|
|
372
|
-
/**
|
|
373
|
-
* @generated from protobuf field: string project_id = 1
|
|
374
|
-
*/
|
|
375
|
-
projectId: string;
|
|
376
|
-
/**
|
|
377
|
-
* @generated from protobuf field: string flow_type = 2
|
|
378
|
-
*/
|
|
379
|
-
flowType: string;
|
|
380
|
-
/**
|
|
381
|
-
* @generated from protobuf field: string action_id = 3
|
|
382
|
-
*/
|
|
383
|
-
actionId: string;
|
|
384
|
-
}
|
|
385
|
-
// ── Enums ──
|
|
386
|
-
|
|
387
|
-
/**
|
|
388
|
-
* @generated from protobuf enum sid.v1.admin.FlowType
|
|
389
|
-
*/
|
|
390
|
-
export enum FlowType {
|
|
391
|
-
/**
|
|
392
|
-
* @generated from protobuf enum value: FLOW_TYPE_UNSPECIFIED = 0;
|
|
393
|
-
*/
|
|
394
|
-
UNSPECIFIED = 0,
|
|
395
|
-
/**
|
|
396
|
-
* @generated from protobuf enum value: FLOW_TYPE_AUTHENTICATION = 1;
|
|
397
|
-
*/
|
|
398
|
-
AUTHENTICATION = 1,
|
|
399
|
-
/**
|
|
400
|
-
* @generated from protobuf enum value: FLOW_TYPE_REGISTRATION = 2;
|
|
401
|
-
*/
|
|
402
|
-
REGISTRATION = 2,
|
|
403
|
-
/**
|
|
404
|
-
* @generated from protobuf enum value: FLOW_TYPE_RECOVERY = 3;
|
|
405
|
-
*/
|
|
406
|
-
RECOVERY = 3,
|
|
407
|
-
/**
|
|
408
|
-
* @generated from protobuf enum value: FLOW_TYPE_DEVICE_GRANT = 4;
|
|
409
|
-
*/
|
|
410
|
-
DEVICE_GRANT = 4,
|
|
411
|
-
/**
|
|
412
|
-
* @generated from protobuf enum value: FLOW_TYPE_DIRECT_GRANT = 5;
|
|
413
|
-
*/
|
|
414
|
-
DIRECT_GRANT = 5,
|
|
415
|
-
/**
|
|
416
|
-
* @generated from protobuf enum value: FLOW_TYPE_ENROLLMENT = 6;
|
|
417
|
-
*/
|
|
418
|
-
ENROLLMENT = 6
|
|
419
|
-
}
|
|
420
|
-
/**
|
|
421
|
-
* @generated from protobuf enum sid.v1.admin.ActionPoint
|
|
422
|
-
*/
|
|
423
|
-
export enum ActionPoint {
|
|
424
|
-
/**
|
|
425
|
-
* @generated from protobuf enum value: ACTION_POINT_UNSPECIFIED = 0;
|
|
426
|
-
*/
|
|
427
|
-
UNSPECIFIED = 0,
|
|
428
|
-
/**
|
|
429
|
-
* @generated from protobuf enum value: ACTION_POINT_PRE_AUTHENTICATION = 1;
|
|
430
|
-
*/
|
|
431
|
-
PRE_AUTHENTICATION = 1,
|
|
432
|
-
/**
|
|
433
|
-
* @generated from protobuf enum value: ACTION_POINT_POST_AUTHENTICATION = 2;
|
|
434
|
-
*/
|
|
435
|
-
POST_AUTHENTICATION = 2,
|
|
436
|
-
/**
|
|
437
|
-
* @generated from protobuf enum value: ACTION_POINT_POST_MFA = 3;
|
|
438
|
-
*/
|
|
439
|
-
POST_MFA = 3,
|
|
440
|
-
/**
|
|
441
|
-
* @generated from protobuf enum value: ACTION_POINT_PRE_TOKEN_CREATION = 4;
|
|
442
|
-
*/
|
|
443
|
-
PRE_TOKEN_CREATION = 4,
|
|
444
|
-
/**
|
|
445
|
-
* @generated from protobuf enum value: ACTION_POINT_POST_LOGIN = 5;
|
|
446
|
-
*/
|
|
447
|
-
POST_LOGIN = 5,
|
|
448
|
-
/**
|
|
449
|
-
* @generated from protobuf enum value: ACTION_POINT_POST_REGISTRATION = 6;
|
|
450
|
-
*/
|
|
451
|
-
POST_REGISTRATION = 6,
|
|
452
|
-
/**
|
|
453
|
-
* @generated from protobuf enum value: ACTION_POINT_PRE_CONSENT = 7;
|
|
454
|
-
*/
|
|
455
|
-
PRE_CONSENT = 7
|
|
456
|
-
}
|
|
457
|
-
/**
|
|
458
|
-
* @generated from protobuf enum sid.v1.admin.ActionType
|
|
459
|
-
*/
|
|
460
|
-
export enum ActionType {
|
|
461
|
-
/**
|
|
462
|
-
* @generated from protobuf enum value: ACTION_TYPE_UNSPECIFIED = 0;
|
|
463
|
-
*/
|
|
464
|
-
UNSPECIFIED = 0,
|
|
465
|
-
/**
|
|
466
|
-
* HTTP POST to external URL.
|
|
467
|
-
*
|
|
468
|
-
* @generated from protobuf enum value: ACTION_TYPE_WEBHOOK = 1;
|
|
469
|
-
*/
|
|
470
|
-
WEBHOOK = 1
|
|
471
|
-
}
|
|
472
|
-
/**
|
|
473
|
-
* @generated from protobuf enum sid.v1.admin.ActionOnError
|
|
474
|
-
*/
|
|
475
|
-
export enum ActionOnError {
|
|
476
|
-
/**
|
|
477
|
-
* @generated from protobuf enum value: ACTION_ON_ERROR_UNSPECIFIED = 0;
|
|
478
|
-
*/
|
|
479
|
-
UNSPECIFIED = 0,
|
|
480
|
-
/**
|
|
481
|
-
* Skip the failed action and continue the flow.
|
|
482
|
-
*
|
|
483
|
-
* @generated from protobuf enum value: ACTION_ON_ERROR_CONTINUE = 1;
|
|
484
|
-
*/
|
|
485
|
-
CONTINUE = 1,
|
|
486
|
-
/**
|
|
487
|
-
* Deny the entire auth flow.
|
|
488
|
-
*
|
|
489
|
-
* @generated from protobuf enum value: ACTION_ON_ERROR_DENY = 2;
|
|
490
|
-
*/
|
|
491
|
-
DENY = 2
|
|
492
|
-
}
|
|
493
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
494
|
-
class StepConfig$Type extends MessageType<StepConfig> {
|
|
495
|
-
constructor() {
|
|
496
|
-
super("sid.v1.admin.StepConfig", [
|
|
497
|
-
{ no: 1, name: "step_type", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
498
|
-
{ no: 2, name: "enabled", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
499
|
-
{ no: 3, name: "params", kind: "message", T: () => Struct }
|
|
500
|
-
]);
|
|
501
|
-
}
|
|
502
|
-
create(value?: PartialMessage<StepConfig>): StepConfig {
|
|
503
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
504
|
-
message.stepType = "";
|
|
505
|
-
message.enabled = false;
|
|
506
|
-
if (value !== undefined)
|
|
507
|
-
reflectionMergePartial<StepConfig>(this, message, value);
|
|
508
|
-
return message;
|
|
509
|
-
}
|
|
510
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: StepConfig): StepConfig {
|
|
511
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
512
|
-
while (reader.pos < end) {
|
|
513
|
-
let [fieldNo, wireType] = reader.tag();
|
|
514
|
-
switch (fieldNo) {
|
|
515
|
-
case /* string step_type */ 1:
|
|
516
|
-
message.stepType = reader.string();
|
|
517
|
-
break;
|
|
518
|
-
case /* bool enabled */ 2:
|
|
519
|
-
message.enabled = reader.bool();
|
|
520
|
-
break;
|
|
521
|
-
case /* google.protobuf.Struct params */ 3:
|
|
522
|
-
message.params = Struct.internalBinaryRead(reader, reader.uint32(), options, message.params);
|
|
523
|
-
break;
|
|
524
|
-
default:
|
|
525
|
-
let u = options.readUnknownField;
|
|
526
|
-
if (u === "throw")
|
|
527
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
528
|
-
let d = reader.skip(wireType);
|
|
529
|
-
if (u !== false)
|
|
530
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
531
|
-
}
|
|
532
|
-
}
|
|
533
|
-
return message;
|
|
534
|
-
}
|
|
535
|
-
internalBinaryWrite(message: StepConfig, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
536
|
-
/* string step_type = 1; */
|
|
537
|
-
if (message.stepType !== "")
|
|
538
|
-
writer.tag(1, WireType.LengthDelimited).string(message.stepType);
|
|
539
|
-
/* bool enabled = 2; */
|
|
540
|
-
if (message.enabled !== false)
|
|
541
|
-
writer.tag(2, WireType.Varint).bool(message.enabled);
|
|
542
|
-
/* google.protobuf.Struct params = 3; */
|
|
543
|
-
if (message.params)
|
|
544
|
-
Struct.internalBinaryWrite(message.params, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
545
|
-
let u = options.writeUnknownFields;
|
|
546
|
-
if (u !== false)
|
|
547
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
548
|
-
return writer;
|
|
549
|
-
}
|
|
550
|
-
}
|
|
551
|
-
/**
|
|
552
|
-
* @generated MessageType for protobuf message sid.v1.admin.StepConfig
|
|
553
|
-
*/
|
|
554
|
-
export const StepConfig = new StepConfig$Type();
|
|
555
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
556
|
-
class FlowConfig$Type extends MessageType<FlowConfig> {
|
|
557
|
-
constructor() {
|
|
558
|
-
super("sid.v1.admin.FlowConfig", [
|
|
559
|
-
{ no: 1, name: "project_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
560
|
-
{ no: 2, name: "flow_type", kind: "enum", T: () => ["sid.v1.admin.FlowType", FlowType, "FLOW_TYPE_"] },
|
|
561
|
-
{ no: 3, name: "steps", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => StepConfig },
|
|
562
|
-
{ no: 4, name: "timeout_seconds", kind: "scalar", T: 13 /*ScalarType.UINT32*/ },
|
|
563
|
-
{ no: 5, name: "updated_at", kind: "message", T: () => Timestamp }
|
|
564
|
-
]);
|
|
565
|
-
}
|
|
566
|
-
create(value?: PartialMessage<FlowConfig>): FlowConfig {
|
|
567
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
568
|
-
message.projectId = "";
|
|
569
|
-
message.flowType = 0;
|
|
570
|
-
message.steps = [];
|
|
571
|
-
message.timeoutSeconds = 0;
|
|
572
|
-
if (value !== undefined)
|
|
573
|
-
reflectionMergePartial<FlowConfig>(this, message, value);
|
|
574
|
-
return message;
|
|
575
|
-
}
|
|
576
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: FlowConfig): FlowConfig {
|
|
577
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
578
|
-
while (reader.pos < end) {
|
|
579
|
-
let [fieldNo, wireType] = reader.tag();
|
|
580
|
-
switch (fieldNo) {
|
|
581
|
-
case /* string project_id */ 1:
|
|
582
|
-
message.projectId = reader.string();
|
|
583
|
-
break;
|
|
584
|
-
case /* sid.v1.admin.FlowType flow_type */ 2:
|
|
585
|
-
message.flowType = reader.int32();
|
|
586
|
-
break;
|
|
587
|
-
case /* repeated sid.v1.admin.StepConfig steps */ 3:
|
|
588
|
-
message.steps.push(StepConfig.internalBinaryRead(reader, reader.uint32(), options));
|
|
589
|
-
break;
|
|
590
|
-
case /* uint32 timeout_seconds */ 4:
|
|
591
|
-
message.timeoutSeconds = reader.uint32();
|
|
592
|
-
break;
|
|
593
|
-
case /* google.protobuf.Timestamp updated_at */ 5:
|
|
594
|
-
message.updatedAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.updatedAt);
|
|
595
|
-
break;
|
|
596
|
-
default:
|
|
597
|
-
let u = options.readUnknownField;
|
|
598
|
-
if (u === "throw")
|
|
599
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
600
|
-
let d = reader.skip(wireType);
|
|
601
|
-
if (u !== false)
|
|
602
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
603
|
-
}
|
|
604
|
-
}
|
|
605
|
-
return message;
|
|
606
|
-
}
|
|
607
|
-
internalBinaryWrite(message: FlowConfig, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
608
|
-
/* string project_id = 1; */
|
|
609
|
-
if (message.projectId !== "")
|
|
610
|
-
writer.tag(1, WireType.LengthDelimited).string(message.projectId);
|
|
611
|
-
/* sid.v1.admin.FlowType flow_type = 2; */
|
|
612
|
-
if (message.flowType !== 0)
|
|
613
|
-
writer.tag(2, WireType.Varint).int32(message.flowType);
|
|
614
|
-
/* repeated sid.v1.admin.StepConfig steps = 3; */
|
|
615
|
-
for (let i = 0; i < message.steps.length; i++)
|
|
616
|
-
StepConfig.internalBinaryWrite(message.steps[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
617
|
-
/* uint32 timeout_seconds = 4; */
|
|
618
|
-
if (message.timeoutSeconds !== 0)
|
|
619
|
-
writer.tag(4, WireType.Varint).uint32(message.timeoutSeconds);
|
|
620
|
-
/* google.protobuf.Timestamp updated_at = 5; */
|
|
621
|
-
if (message.updatedAt)
|
|
622
|
-
Timestamp.internalBinaryWrite(message.updatedAt, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
|
623
|
-
let u = options.writeUnknownFields;
|
|
624
|
-
if (u !== false)
|
|
625
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
626
|
-
return writer;
|
|
627
|
-
}
|
|
628
|
-
}
|
|
629
|
-
/**
|
|
630
|
-
* @generated MessageType for protobuf message sid.v1.admin.FlowConfig
|
|
631
|
-
*/
|
|
632
|
-
export const FlowConfig = new FlowConfig$Type();
|
|
633
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
634
|
-
class WebhookConfig$Type extends MessageType<WebhookConfig> {
|
|
635
|
-
constructor() {
|
|
636
|
-
super("sid.v1.admin.WebhookConfig", [
|
|
637
|
-
{ no: 1, name: "url", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
638
|
-
{ no: 2, name: "timeout_seconds", kind: "scalar", T: 13 /*ScalarType.UINT32*/ },
|
|
639
|
-
{ no: 3, name: "retry_count", kind: "scalar", T: 13 /*ScalarType.UINT32*/ },
|
|
640
|
-
{ no: 4, name: "headers", kind: "map", K: 9 /*ScalarType.STRING*/, V: { kind: "scalar", T: 9 /*ScalarType.STRING*/ } }
|
|
641
|
-
]);
|
|
642
|
-
}
|
|
643
|
-
create(value?: PartialMessage<WebhookConfig>): WebhookConfig {
|
|
644
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
645
|
-
message.url = "";
|
|
646
|
-
message.timeoutSeconds = 0;
|
|
647
|
-
message.retryCount = 0;
|
|
648
|
-
message.headers = {};
|
|
649
|
-
if (value !== undefined)
|
|
650
|
-
reflectionMergePartial<WebhookConfig>(this, message, value);
|
|
651
|
-
return message;
|
|
652
|
-
}
|
|
653
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: WebhookConfig): WebhookConfig {
|
|
654
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
655
|
-
while (reader.pos < end) {
|
|
656
|
-
let [fieldNo, wireType] = reader.tag();
|
|
657
|
-
switch (fieldNo) {
|
|
658
|
-
case /* string url */ 1:
|
|
659
|
-
message.url = reader.string();
|
|
660
|
-
break;
|
|
661
|
-
case /* uint32 timeout_seconds */ 2:
|
|
662
|
-
message.timeoutSeconds = reader.uint32();
|
|
663
|
-
break;
|
|
664
|
-
case /* uint32 retry_count */ 3:
|
|
665
|
-
message.retryCount = reader.uint32();
|
|
666
|
-
break;
|
|
667
|
-
case /* map<string, string> headers */ 4:
|
|
668
|
-
this.binaryReadMap4(message.headers, reader, options);
|
|
669
|
-
break;
|
|
670
|
-
default:
|
|
671
|
-
let u = options.readUnknownField;
|
|
672
|
-
if (u === "throw")
|
|
673
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
674
|
-
let d = reader.skip(wireType);
|
|
675
|
-
if (u !== false)
|
|
676
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
677
|
-
}
|
|
678
|
-
}
|
|
679
|
-
return message;
|
|
680
|
-
}
|
|
681
|
-
private binaryReadMap4(map: WebhookConfig["headers"], reader: IBinaryReader, options: BinaryReadOptions): void {
|
|
682
|
-
let len = reader.uint32(), end = reader.pos + len, key: keyof WebhookConfig["headers"] | undefined, val: WebhookConfig["headers"][any] | undefined;
|
|
683
|
-
while (reader.pos < end) {
|
|
684
|
-
let [fieldNo, wireType] = reader.tag();
|
|
685
|
-
switch (fieldNo) {
|
|
686
|
-
case 1:
|
|
687
|
-
key = reader.string();
|
|
688
|
-
break;
|
|
689
|
-
case 2:
|
|
690
|
-
val = reader.string();
|
|
691
|
-
break;
|
|
692
|
-
default: throw new globalThis.Error("unknown map entry field for sid.v1.admin.WebhookConfig.headers");
|
|
693
|
-
}
|
|
694
|
-
}
|
|
695
|
-
map[key ?? ""] = val ?? "";
|
|
696
|
-
}
|
|
697
|
-
internalBinaryWrite(message: WebhookConfig, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
698
|
-
/* string url = 1; */
|
|
699
|
-
if (message.url !== "")
|
|
700
|
-
writer.tag(1, WireType.LengthDelimited).string(message.url);
|
|
701
|
-
/* uint32 timeout_seconds = 2; */
|
|
702
|
-
if (message.timeoutSeconds !== 0)
|
|
703
|
-
writer.tag(2, WireType.Varint).uint32(message.timeoutSeconds);
|
|
704
|
-
/* uint32 retry_count = 3; */
|
|
705
|
-
if (message.retryCount !== 0)
|
|
706
|
-
writer.tag(3, WireType.Varint).uint32(message.retryCount);
|
|
707
|
-
/* map<string, string> headers = 4; */
|
|
708
|
-
for (let k of globalThis.Object.keys(message.headers))
|
|
709
|
-
writer.tag(4, WireType.LengthDelimited).fork().tag(1, WireType.LengthDelimited).string(k).tag(2, WireType.LengthDelimited).string(message.headers[k]).join();
|
|
710
|
-
let u = options.writeUnknownFields;
|
|
711
|
-
if (u !== false)
|
|
712
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
713
|
-
return writer;
|
|
714
|
-
}
|
|
715
|
-
}
|
|
716
|
-
/**
|
|
717
|
-
* @generated MessageType for protobuf message sid.v1.admin.WebhookConfig
|
|
718
|
-
*/
|
|
719
|
-
export const WebhookConfig = new WebhookConfig$Type();
|
|
720
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
721
|
-
class FlowAction$Type extends MessageType<FlowAction> {
|
|
722
|
-
constructor() {
|
|
723
|
-
super("sid.v1.admin.FlowAction", [
|
|
724
|
-
{ no: 1, name: "action_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
725
|
-
{ no: 2, name: "project_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
726
|
-
{ no: 3, name: "flow_type", kind: "enum", T: () => ["sid.v1.admin.FlowType", FlowType, "FLOW_TYPE_"] },
|
|
727
|
-
{ no: 4, name: "action_point", kind: "enum", T: () => ["sid.v1.admin.ActionPoint", ActionPoint, "ACTION_POINT_"] },
|
|
728
|
-
{ no: 5, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
729
|
-
{ no: 6, name: "action_type", kind: "enum", T: () => ["sid.v1.admin.ActionType", ActionType, "ACTION_TYPE_"] },
|
|
730
|
-
{ no: 7, name: "webhook", kind: "message", oneof: "config", T: () => WebhookConfig },
|
|
731
|
-
{ no: 8, name: "order", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
|
|
732
|
-
{ no: 9, name: "on_error", kind: "enum", T: () => ["sid.v1.admin.ActionOnError", ActionOnError, "ACTION_ON_ERROR_"] },
|
|
733
|
-
{ no: 10, name: "enabled", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
734
|
-
{ no: 11, name: "created_at", kind: "message", T: () => Timestamp },
|
|
735
|
-
{ no: 12, name: "updated_at", kind: "message", T: () => Timestamp }
|
|
736
|
-
]);
|
|
737
|
-
}
|
|
738
|
-
create(value?: PartialMessage<FlowAction>): FlowAction {
|
|
739
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
740
|
-
message.actionId = "";
|
|
741
|
-
message.projectId = "";
|
|
742
|
-
message.flowType = 0;
|
|
743
|
-
message.actionPoint = 0;
|
|
744
|
-
message.name = "";
|
|
745
|
-
message.actionType = 0;
|
|
746
|
-
message.config = { oneofKind: undefined };
|
|
747
|
-
message.order = 0;
|
|
748
|
-
message.onError = 0;
|
|
749
|
-
message.enabled = false;
|
|
750
|
-
if (value !== undefined)
|
|
751
|
-
reflectionMergePartial<FlowAction>(this, message, value);
|
|
752
|
-
return message;
|
|
753
|
-
}
|
|
754
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: FlowAction): FlowAction {
|
|
755
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
756
|
-
while (reader.pos < end) {
|
|
757
|
-
let [fieldNo, wireType] = reader.tag();
|
|
758
|
-
switch (fieldNo) {
|
|
759
|
-
case /* string action_id */ 1:
|
|
760
|
-
message.actionId = reader.string();
|
|
761
|
-
break;
|
|
762
|
-
case /* string project_id */ 2:
|
|
763
|
-
message.projectId = reader.string();
|
|
764
|
-
break;
|
|
765
|
-
case /* sid.v1.admin.FlowType flow_type */ 3:
|
|
766
|
-
message.flowType = reader.int32();
|
|
767
|
-
break;
|
|
768
|
-
case /* sid.v1.admin.ActionPoint action_point */ 4:
|
|
769
|
-
message.actionPoint = reader.int32();
|
|
770
|
-
break;
|
|
771
|
-
case /* string name */ 5:
|
|
772
|
-
message.name = reader.string();
|
|
773
|
-
break;
|
|
774
|
-
case /* sid.v1.admin.ActionType action_type */ 6:
|
|
775
|
-
message.actionType = reader.int32();
|
|
776
|
-
break;
|
|
777
|
-
case /* sid.v1.admin.WebhookConfig webhook */ 7:
|
|
778
|
-
message.config = {
|
|
779
|
-
oneofKind: "webhook",
|
|
780
|
-
webhook: WebhookConfig.internalBinaryRead(reader, reader.uint32(), options, (message.config as any).webhook)
|
|
781
|
-
};
|
|
782
|
-
break;
|
|
783
|
-
case /* int32 order */ 8:
|
|
784
|
-
message.order = reader.int32();
|
|
785
|
-
break;
|
|
786
|
-
case /* sid.v1.admin.ActionOnError on_error */ 9:
|
|
787
|
-
message.onError = reader.int32();
|
|
788
|
-
break;
|
|
789
|
-
case /* bool enabled */ 10:
|
|
790
|
-
message.enabled = reader.bool();
|
|
791
|
-
break;
|
|
792
|
-
case /* google.protobuf.Timestamp created_at */ 11:
|
|
793
|
-
message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
|
|
794
|
-
break;
|
|
795
|
-
case /* google.protobuf.Timestamp updated_at */ 12:
|
|
796
|
-
message.updatedAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.updatedAt);
|
|
797
|
-
break;
|
|
798
|
-
default:
|
|
799
|
-
let u = options.readUnknownField;
|
|
800
|
-
if (u === "throw")
|
|
801
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
802
|
-
let d = reader.skip(wireType);
|
|
803
|
-
if (u !== false)
|
|
804
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
805
|
-
}
|
|
806
|
-
}
|
|
807
|
-
return message;
|
|
808
|
-
}
|
|
809
|
-
internalBinaryWrite(message: FlowAction, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
810
|
-
/* string action_id = 1; */
|
|
811
|
-
if (message.actionId !== "")
|
|
812
|
-
writer.tag(1, WireType.LengthDelimited).string(message.actionId);
|
|
813
|
-
/* string project_id = 2; */
|
|
814
|
-
if (message.projectId !== "")
|
|
815
|
-
writer.tag(2, WireType.LengthDelimited).string(message.projectId);
|
|
816
|
-
/* sid.v1.admin.FlowType flow_type = 3; */
|
|
817
|
-
if (message.flowType !== 0)
|
|
818
|
-
writer.tag(3, WireType.Varint).int32(message.flowType);
|
|
819
|
-
/* sid.v1.admin.ActionPoint action_point = 4; */
|
|
820
|
-
if (message.actionPoint !== 0)
|
|
821
|
-
writer.tag(4, WireType.Varint).int32(message.actionPoint);
|
|
822
|
-
/* string name = 5; */
|
|
823
|
-
if (message.name !== "")
|
|
824
|
-
writer.tag(5, WireType.LengthDelimited).string(message.name);
|
|
825
|
-
/* sid.v1.admin.ActionType action_type = 6; */
|
|
826
|
-
if (message.actionType !== 0)
|
|
827
|
-
writer.tag(6, WireType.Varint).int32(message.actionType);
|
|
828
|
-
/* sid.v1.admin.WebhookConfig webhook = 7; */
|
|
829
|
-
if (message.config.oneofKind === "webhook")
|
|
830
|
-
WebhookConfig.internalBinaryWrite(message.config.webhook, writer.tag(7, WireType.LengthDelimited).fork(), options).join();
|
|
831
|
-
/* int32 order = 8; */
|
|
832
|
-
if (message.order !== 0)
|
|
833
|
-
writer.tag(8, WireType.Varint).int32(message.order);
|
|
834
|
-
/* sid.v1.admin.ActionOnError on_error = 9; */
|
|
835
|
-
if (message.onError !== 0)
|
|
836
|
-
writer.tag(9, WireType.Varint).int32(message.onError);
|
|
837
|
-
/* bool enabled = 10; */
|
|
838
|
-
if (message.enabled !== false)
|
|
839
|
-
writer.tag(10, WireType.Varint).bool(message.enabled);
|
|
840
|
-
/* google.protobuf.Timestamp created_at = 11; */
|
|
841
|
-
if (message.createdAt)
|
|
842
|
-
Timestamp.internalBinaryWrite(message.createdAt, writer.tag(11, WireType.LengthDelimited).fork(), options).join();
|
|
843
|
-
/* google.protobuf.Timestamp updated_at = 12; */
|
|
844
|
-
if (message.updatedAt)
|
|
845
|
-
Timestamp.internalBinaryWrite(message.updatedAt, writer.tag(12, WireType.LengthDelimited).fork(), options).join();
|
|
846
|
-
let u = options.writeUnknownFields;
|
|
847
|
-
if (u !== false)
|
|
848
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
849
|
-
return writer;
|
|
850
|
-
}
|
|
851
|
-
}
|
|
852
|
-
/**
|
|
853
|
-
* @generated MessageType for protobuf message sid.v1.admin.FlowAction
|
|
854
|
-
*/
|
|
855
|
-
export const FlowAction = new FlowAction$Type();
|
|
856
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
857
|
-
class GetFlowConfigRequest$Type extends MessageType<GetFlowConfigRequest> {
|
|
858
|
-
constructor() {
|
|
859
|
-
super("sid.v1.admin.GetFlowConfigRequest", [
|
|
860
|
-
{ no: 1, name: "project_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
861
|
-
{ no: 2, name: "flow_type", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
862
|
-
]);
|
|
863
|
-
}
|
|
864
|
-
create(value?: PartialMessage<GetFlowConfigRequest>): GetFlowConfigRequest {
|
|
865
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
866
|
-
message.projectId = "";
|
|
867
|
-
message.flowType = "";
|
|
868
|
-
if (value !== undefined)
|
|
869
|
-
reflectionMergePartial<GetFlowConfigRequest>(this, message, value);
|
|
870
|
-
return message;
|
|
871
|
-
}
|
|
872
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetFlowConfigRequest): GetFlowConfigRequest {
|
|
873
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
874
|
-
while (reader.pos < end) {
|
|
875
|
-
let [fieldNo, wireType] = reader.tag();
|
|
876
|
-
switch (fieldNo) {
|
|
877
|
-
case /* string project_id */ 1:
|
|
878
|
-
message.projectId = reader.string();
|
|
879
|
-
break;
|
|
880
|
-
case /* string flow_type */ 2:
|
|
881
|
-
message.flowType = reader.string();
|
|
882
|
-
break;
|
|
883
|
-
default:
|
|
884
|
-
let u = options.readUnknownField;
|
|
885
|
-
if (u === "throw")
|
|
886
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
887
|
-
let d = reader.skip(wireType);
|
|
888
|
-
if (u !== false)
|
|
889
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
890
|
-
}
|
|
891
|
-
}
|
|
892
|
-
return message;
|
|
893
|
-
}
|
|
894
|
-
internalBinaryWrite(message: GetFlowConfigRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
895
|
-
/* string project_id = 1; */
|
|
896
|
-
if (message.projectId !== "")
|
|
897
|
-
writer.tag(1, WireType.LengthDelimited).string(message.projectId);
|
|
898
|
-
/* string flow_type = 2; */
|
|
899
|
-
if (message.flowType !== "")
|
|
900
|
-
writer.tag(2, WireType.LengthDelimited).string(message.flowType);
|
|
901
|
-
let u = options.writeUnknownFields;
|
|
902
|
-
if (u !== false)
|
|
903
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
904
|
-
return writer;
|
|
905
|
-
}
|
|
906
|
-
}
|
|
907
|
-
/**
|
|
908
|
-
* @generated MessageType for protobuf message sid.v1.admin.GetFlowConfigRequest
|
|
909
|
-
*/
|
|
910
|
-
export const GetFlowConfigRequest = new GetFlowConfigRequest$Type();
|
|
911
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
912
|
-
class SaveFlowConfigRequest$Type extends MessageType<SaveFlowConfigRequest> {
|
|
913
|
-
constructor() {
|
|
914
|
-
super("sid.v1.admin.SaveFlowConfigRequest", [
|
|
915
|
-
{ no: 1, name: "project_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
916
|
-
{ no: 2, name: "flow_type", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
917
|
-
{ no: 3, name: "steps", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => StepConfig },
|
|
918
|
-
{ no: 4, name: "timeout_seconds", kind: "scalar", T: 13 /*ScalarType.UINT32*/ }
|
|
919
|
-
]);
|
|
920
|
-
}
|
|
921
|
-
create(value?: PartialMessage<SaveFlowConfigRequest>): SaveFlowConfigRequest {
|
|
922
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
923
|
-
message.projectId = "";
|
|
924
|
-
message.flowType = "";
|
|
925
|
-
message.steps = [];
|
|
926
|
-
message.timeoutSeconds = 0;
|
|
927
|
-
if (value !== undefined)
|
|
928
|
-
reflectionMergePartial<SaveFlowConfigRequest>(this, message, value);
|
|
929
|
-
return message;
|
|
930
|
-
}
|
|
931
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SaveFlowConfigRequest): SaveFlowConfigRequest {
|
|
932
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
933
|
-
while (reader.pos < end) {
|
|
934
|
-
let [fieldNo, wireType] = reader.tag();
|
|
935
|
-
switch (fieldNo) {
|
|
936
|
-
case /* string project_id */ 1:
|
|
937
|
-
message.projectId = reader.string();
|
|
938
|
-
break;
|
|
939
|
-
case /* string flow_type */ 2:
|
|
940
|
-
message.flowType = reader.string();
|
|
941
|
-
break;
|
|
942
|
-
case /* repeated sid.v1.admin.StepConfig steps */ 3:
|
|
943
|
-
message.steps.push(StepConfig.internalBinaryRead(reader, reader.uint32(), options));
|
|
944
|
-
break;
|
|
945
|
-
case /* uint32 timeout_seconds */ 4:
|
|
946
|
-
message.timeoutSeconds = reader.uint32();
|
|
947
|
-
break;
|
|
948
|
-
default:
|
|
949
|
-
let u = options.readUnknownField;
|
|
950
|
-
if (u === "throw")
|
|
951
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
952
|
-
let d = reader.skip(wireType);
|
|
953
|
-
if (u !== false)
|
|
954
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
955
|
-
}
|
|
956
|
-
}
|
|
957
|
-
return message;
|
|
958
|
-
}
|
|
959
|
-
internalBinaryWrite(message: SaveFlowConfigRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
960
|
-
/* string project_id = 1; */
|
|
961
|
-
if (message.projectId !== "")
|
|
962
|
-
writer.tag(1, WireType.LengthDelimited).string(message.projectId);
|
|
963
|
-
/* string flow_type = 2; */
|
|
964
|
-
if (message.flowType !== "")
|
|
965
|
-
writer.tag(2, WireType.LengthDelimited).string(message.flowType);
|
|
966
|
-
/* repeated sid.v1.admin.StepConfig steps = 3; */
|
|
967
|
-
for (let i = 0; i < message.steps.length; i++)
|
|
968
|
-
StepConfig.internalBinaryWrite(message.steps[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
969
|
-
/* uint32 timeout_seconds = 4; */
|
|
970
|
-
if (message.timeoutSeconds !== 0)
|
|
971
|
-
writer.tag(4, WireType.Varint).uint32(message.timeoutSeconds);
|
|
972
|
-
let u = options.writeUnknownFields;
|
|
973
|
-
if (u !== false)
|
|
974
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
975
|
-
return writer;
|
|
976
|
-
}
|
|
977
|
-
}
|
|
978
|
-
/**
|
|
979
|
-
* @generated MessageType for protobuf message sid.v1.admin.SaveFlowConfigRequest
|
|
980
|
-
*/
|
|
981
|
-
export const SaveFlowConfigRequest = new SaveFlowConfigRequest$Type();
|
|
982
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
983
|
-
class ListFlowConfigsRequest$Type extends MessageType<ListFlowConfigsRequest> {
|
|
984
|
-
constructor() {
|
|
985
|
-
super("sid.v1.admin.ListFlowConfigsRequest", [
|
|
986
|
-
{ no: 1, name: "project_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
987
|
-
]);
|
|
988
|
-
}
|
|
989
|
-
create(value?: PartialMessage<ListFlowConfigsRequest>): ListFlowConfigsRequest {
|
|
990
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
991
|
-
message.projectId = "";
|
|
992
|
-
if (value !== undefined)
|
|
993
|
-
reflectionMergePartial<ListFlowConfigsRequest>(this, message, value);
|
|
994
|
-
return message;
|
|
995
|
-
}
|
|
996
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListFlowConfigsRequest): ListFlowConfigsRequest {
|
|
997
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
998
|
-
while (reader.pos < end) {
|
|
999
|
-
let [fieldNo, wireType] = reader.tag();
|
|
1000
|
-
switch (fieldNo) {
|
|
1001
|
-
case /* string project_id */ 1:
|
|
1002
|
-
message.projectId = reader.string();
|
|
1003
|
-
break;
|
|
1004
|
-
default:
|
|
1005
|
-
let u = options.readUnknownField;
|
|
1006
|
-
if (u === "throw")
|
|
1007
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1008
|
-
let d = reader.skip(wireType);
|
|
1009
|
-
if (u !== false)
|
|
1010
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1011
|
-
}
|
|
1012
|
-
}
|
|
1013
|
-
return message;
|
|
1014
|
-
}
|
|
1015
|
-
internalBinaryWrite(message: ListFlowConfigsRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1016
|
-
/* string project_id = 1; */
|
|
1017
|
-
if (message.projectId !== "")
|
|
1018
|
-
writer.tag(1, WireType.LengthDelimited).string(message.projectId);
|
|
1019
|
-
let u = options.writeUnknownFields;
|
|
1020
|
-
if (u !== false)
|
|
1021
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1022
|
-
return writer;
|
|
1023
|
-
}
|
|
1024
|
-
}
|
|
1025
|
-
/**
|
|
1026
|
-
* @generated MessageType for protobuf message sid.v1.admin.ListFlowConfigsRequest
|
|
1027
|
-
*/
|
|
1028
|
-
export const ListFlowConfigsRequest = new ListFlowConfigsRequest$Type();
|
|
1029
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
1030
|
-
class ListFlowConfigsResponse$Type extends MessageType<ListFlowConfigsResponse> {
|
|
1031
|
-
constructor() {
|
|
1032
|
-
super("sid.v1.admin.ListFlowConfigsResponse", [
|
|
1033
|
-
{ no: 1, name: "configs", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => FlowConfig }
|
|
1034
|
-
]);
|
|
1035
|
-
}
|
|
1036
|
-
create(value?: PartialMessage<ListFlowConfigsResponse>): ListFlowConfigsResponse {
|
|
1037
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1038
|
-
message.configs = [];
|
|
1039
|
-
if (value !== undefined)
|
|
1040
|
-
reflectionMergePartial<ListFlowConfigsResponse>(this, message, value);
|
|
1041
|
-
return message;
|
|
1042
|
-
}
|
|
1043
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListFlowConfigsResponse): ListFlowConfigsResponse {
|
|
1044
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
1045
|
-
while (reader.pos < end) {
|
|
1046
|
-
let [fieldNo, wireType] = reader.tag();
|
|
1047
|
-
switch (fieldNo) {
|
|
1048
|
-
case /* repeated sid.v1.admin.FlowConfig configs */ 1:
|
|
1049
|
-
message.configs.push(FlowConfig.internalBinaryRead(reader, reader.uint32(), options));
|
|
1050
|
-
break;
|
|
1051
|
-
default:
|
|
1052
|
-
let u = options.readUnknownField;
|
|
1053
|
-
if (u === "throw")
|
|
1054
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1055
|
-
let d = reader.skip(wireType);
|
|
1056
|
-
if (u !== false)
|
|
1057
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1058
|
-
}
|
|
1059
|
-
}
|
|
1060
|
-
return message;
|
|
1061
|
-
}
|
|
1062
|
-
internalBinaryWrite(message: ListFlowConfigsResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1063
|
-
/* repeated sid.v1.admin.FlowConfig configs = 1; */
|
|
1064
|
-
for (let i = 0; i < message.configs.length; i++)
|
|
1065
|
-
FlowConfig.internalBinaryWrite(message.configs[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
1066
|
-
let u = options.writeUnknownFields;
|
|
1067
|
-
if (u !== false)
|
|
1068
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1069
|
-
return writer;
|
|
1070
|
-
}
|
|
1071
|
-
}
|
|
1072
|
-
/**
|
|
1073
|
-
* @generated MessageType for protobuf message sid.v1.admin.ListFlowConfigsResponse
|
|
1074
|
-
*/
|
|
1075
|
-
export const ListFlowConfigsResponse = new ListFlowConfigsResponse$Type();
|
|
1076
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
1077
|
-
class CreateFlowActionRequest$Type extends MessageType<CreateFlowActionRequest> {
|
|
1078
|
-
constructor() {
|
|
1079
|
-
super("sid.v1.admin.CreateFlowActionRequest", [
|
|
1080
|
-
{ no: 1, name: "project_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1081
|
-
{ no: 2, name: "flow_type", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1082
|
-
{ no: 3, name: "action_point", kind: "enum", T: () => ["sid.v1.admin.ActionPoint", ActionPoint, "ACTION_POINT_"] },
|
|
1083
|
-
{ no: 4, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1084
|
-
{ no: 5, name: "action_type", kind: "enum", T: () => ["sid.v1.admin.ActionType", ActionType, "ACTION_TYPE_"] },
|
|
1085
|
-
{ no: 6, name: "webhook", kind: "message", oneof: "config", T: () => WebhookConfig },
|
|
1086
|
-
{ no: 7, name: "order", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
|
|
1087
|
-
{ no: 8, name: "on_error", kind: "enum", T: () => ["sid.v1.admin.ActionOnError", ActionOnError, "ACTION_ON_ERROR_"] },
|
|
1088
|
-
{ no: 9, name: "enabled", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
|
|
1089
|
-
]);
|
|
1090
|
-
}
|
|
1091
|
-
create(value?: PartialMessage<CreateFlowActionRequest>): CreateFlowActionRequest {
|
|
1092
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1093
|
-
message.projectId = "";
|
|
1094
|
-
message.flowType = "";
|
|
1095
|
-
message.actionPoint = 0;
|
|
1096
|
-
message.name = "";
|
|
1097
|
-
message.actionType = 0;
|
|
1098
|
-
message.config = { oneofKind: undefined };
|
|
1099
|
-
message.order = 0;
|
|
1100
|
-
message.onError = 0;
|
|
1101
|
-
message.enabled = false;
|
|
1102
|
-
if (value !== undefined)
|
|
1103
|
-
reflectionMergePartial<CreateFlowActionRequest>(this, message, value);
|
|
1104
|
-
return message;
|
|
1105
|
-
}
|
|
1106
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CreateFlowActionRequest): CreateFlowActionRequest {
|
|
1107
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
1108
|
-
while (reader.pos < end) {
|
|
1109
|
-
let [fieldNo, wireType] = reader.tag();
|
|
1110
|
-
switch (fieldNo) {
|
|
1111
|
-
case /* string project_id */ 1:
|
|
1112
|
-
message.projectId = reader.string();
|
|
1113
|
-
break;
|
|
1114
|
-
case /* string flow_type */ 2:
|
|
1115
|
-
message.flowType = reader.string();
|
|
1116
|
-
break;
|
|
1117
|
-
case /* sid.v1.admin.ActionPoint action_point */ 3:
|
|
1118
|
-
message.actionPoint = reader.int32();
|
|
1119
|
-
break;
|
|
1120
|
-
case /* string name */ 4:
|
|
1121
|
-
message.name = reader.string();
|
|
1122
|
-
break;
|
|
1123
|
-
case /* sid.v1.admin.ActionType action_type */ 5:
|
|
1124
|
-
message.actionType = reader.int32();
|
|
1125
|
-
break;
|
|
1126
|
-
case /* sid.v1.admin.WebhookConfig webhook */ 6:
|
|
1127
|
-
message.config = {
|
|
1128
|
-
oneofKind: "webhook",
|
|
1129
|
-
webhook: WebhookConfig.internalBinaryRead(reader, reader.uint32(), options, (message.config as any).webhook)
|
|
1130
|
-
};
|
|
1131
|
-
break;
|
|
1132
|
-
case /* int32 order */ 7:
|
|
1133
|
-
message.order = reader.int32();
|
|
1134
|
-
break;
|
|
1135
|
-
case /* sid.v1.admin.ActionOnError on_error */ 8:
|
|
1136
|
-
message.onError = reader.int32();
|
|
1137
|
-
break;
|
|
1138
|
-
case /* bool enabled */ 9:
|
|
1139
|
-
message.enabled = reader.bool();
|
|
1140
|
-
break;
|
|
1141
|
-
default:
|
|
1142
|
-
let u = options.readUnknownField;
|
|
1143
|
-
if (u === "throw")
|
|
1144
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1145
|
-
let d = reader.skip(wireType);
|
|
1146
|
-
if (u !== false)
|
|
1147
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1148
|
-
}
|
|
1149
|
-
}
|
|
1150
|
-
return message;
|
|
1151
|
-
}
|
|
1152
|
-
internalBinaryWrite(message: CreateFlowActionRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1153
|
-
/* string project_id = 1; */
|
|
1154
|
-
if (message.projectId !== "")
|
|
1155
|
-
writer.tag(1, WireType.LengthDelimited).string(message.projectId);
|
|
1156
|
-
/* string flow_type = 2; */
|
|
1157
|
-
if (message.flowType !== "")
|
|
1158
|
-
writer.tag(2, WireType.LengthDelimited).string(message.flowType);
|
|
1159
|
-
/* sid.v1.admin.ActionPoint action_point = 3; */
|
|
1160
|
-
if (message.actionPoint !== 0)
|
|
1161
|
-
writer.tag(3, WireType.Varint).int32(message.actionPoint);
|
|
1162
|
-
/* string name = 4; */
|
|
1163
|
-
if (message.name !== "")
|
|
1164
|
-
writer.tag(4, WireType.LengthDelimited).string(message.name);
|
|
1165
|
-
/* sid.v1.admin.ActionType action_type = 5; */
|
|
1166
|
-
if (message.actionType !== 0)
|
|
1167
|
-
writer.tag(5, WireType.Varint).int32(message.actionType);
|
|
1168
|
-
/* sid.v1.admin.WebhookConfig webhook = 6; */
|
|
1169
|
-
if (message.config.oneofKind === "webhook")
|
|
1170
|
-
WebhookConfig.internalBinaryWrite(message.config.webhook, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
|
1171
|
-
/* int32 order = 7; */
|
|
1172
|
-
if (message.order !== 0)
|
|
1173
|
-
writer.tag(7, WireType.Varint).int32(message.order);
|
|
1174
|
-
/* sid.v1.admin.ActionOnError on_error = 8; */
|
|
1175
|
-
if (message.onError !== 0)
|
|
1176
|
-
writer.tag(8, WireType.Varint).int32(message.onError);
|
|
1177
|
-
/* bool enabled = 9; */
|
|
1178
|
-
if (message.enabled !== false)
|
|
1179
|
-
writer.tag(9, WireType.Varint).bool(message.enabled);
|
|
1180
|
-
let u = options.writeUnknownFields;
|
|
1181
|
-
if (u !== false)
|
|
1182
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1183
|
-
return writer;
|
|
1184
|
-
}
|
|
1185
|
-
}
|
|
1186
|
-
/**
|
|
1187
|
-
* @generated MessageType for protobuf message sid.v1.admin.CreateFlowActionRequest
|
|
1188
|
-
*/
|
|
1189
|
-
export const CreateFlowActionRequest = new CreateFlowActionRequest$Type();
|
|
1190
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
1191
|
-
class GetFlowActionRequest$Type extends MessageType<GetFlowActionRequest> {
|
|
1192
|
-
constructor() {
|
|
1193
|
-
super("sid.v1.admin.GetFlowActionRequest", [
|
|
1194
|
-
{ no: 1, name: "project_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1195
|
-
{ no: 2, name: "flow_type", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1196
|
-
{ no: 3, name: "action_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
1197
|
-
]);
|
|
1198
|
-
}
|
|
1199
|
-
create(value?: PartialMessage<GetFlowActionRequest>): GetFlowActionRequest {
|
|
1200
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1201
|
-
message.projectId = "";
|
|
1202
|
-
message.flowType = "";
|
|
1203
|
-
message.actionId = "";
|
|
1204
|
-
if (value !== undefined)
|
|
1205
|
-
reflectionMergePartial<GetFlowActionRequest>(this, message, value);
|
|
1206
|
-
return message;
|
|
1207
|
-
}
|
|
1208
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetFlowActionRequest): GetFlowActionRequest {
|
|
1209
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
1210
|
-
while (reader.pos < end) {
|
|
1211
|
-
let [fieldNo, wireType] = reader.tag();
|
|
1212
|
-
switch (fieldNo) {
|
|
1213
|
-
case /* string project_id */ 1:
|
|
1214
|
-
message.projectId = reader.string();
|
|
1215
|
-
break;
|
|
1216
|
-
case /* string flow_type */ 2:
|
|
1217
|
-
message.flowType = reader.string();
|
|
1218
|
-
break;
|
|
1219
|
-
case /* string action_id */ 3:
|
|
1220
|
-
message.actionId = reader.string();
|
|
1221
|
-
break;
|
|
1222
|
-
default:
|
|
1223
|
-
let u = options.readUnknownField;
|
|
1224
|
-
if (u === "throw")
|
|
1225
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1226
|
-
let d = reader.skip(wireType);
|
|
1227
|
-
if (u !== false)
|
|
1228
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1229
|
-
}
|
|
1230
|
-
}
|
|
1231
|
-
return message;
|
|
1232
|
-
}
|
|
1233
|
-
internalBinaryWrite(message: GetFlowActionRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1234
|
-
/* string project_id = 1; */
|
|
1235
|
-
if (message.projectId !== "")
|
|
1236
|
-
writer.tag(1, WireType.LengthDelimited).string(message.projectId);
|
|
1237
|
-
/* string flow_type = 2; */
|
|
1238
|
-
if (message.flowType !== "")
|
|
1239
|
-
writer.tag(2, WireType.LengthDelimited).string(message.flowType);
|
|
1240
|
-
/* string action_id = 3; */
|
|
1241
|
-
if (message.actionId !== "")
|
|
1242
|
-
writer.tag(3, WireType.LengthDelimited).string(message.actionId);
|
|
1243
|
-
let u = options.writeUnknownFields;
|
|
1244
|
-
if (u !== false)
|
|
1245
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1246
|
-
return writer;
|
|
1247
|
-
}
|
|
1248
|
-
}
|
|
1249
|
-
/**
|
|
1250
|
-
* @generated MessageType for protobuf message sid.v1.admin.GetFlowActionRequest
|
|
1251
|
-
*/
|
|
1252
|
-
export const GetFlowActionRequest = new GetFlowActionRequest$Type();
|
|
1253
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
1254
|
-
class ListFlowActionsRequest$Type extends MessageType<ListFlowActionsRequest> {
|
|
1255
|
-
constructor() {
|
|
1256
|
-
super("sid.v1.admin.ListFlowActionsRequest", [
|
|
1257
|
-
{ no: 1, name: "project_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1258
|
-
{ no: 2, name: "flow_type", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1259
|
-
{ no: 3, name: "action_point", kind: "enum", T: () => ["sid.v1.admin.ActionPoint", ActionPoint, "ACTION_POINT_"] }
|
|
1260
|
-
]);
|
|
1261
|
-
}
|
|
1262
|
-
create(value?: PartialMessage<ListFlowActionsRequest>): ListFlowActionsRequest {
|
|
1263
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1264
|
-
message.projectId = "";
|
|
1265
|
-
message.flowType = "";
|
|
1266
|
-
message.actionPoint = 0;
|
|
1267
|
-
if (value !== undefined)
|
|
1268
|
-
reflectionMergePartial<ListFlowActionsRequest>(this, message, value);
|
|
1269
|
-
return message;
|
|
1270
|
-
}
|
|
1271
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListFlowActionsRequest): ListFlowActionsRequest {
|
|
1272
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
1273
|
-
while (reader.pos < end) {
|
|
1274
|
-
let [fieldNo, wireType] = reader.tag();
|
|
1275
|
-
switch (fieldNo) {
|
|
1276
|
-
case /* string project_id */ 1:
|
|
1277
|
-
message.projectId = reader.string();
|
|
1278
|
-
break;
|
|
1279
|
-
case /* string flow_type */ 2:
|
|
1280
|
-
message.flowType = reader.string();
|
|
1281
|
-
break;
|
|
1282
|
-
case /* sid.v1.admin.ActionPoint action_point */ 3:
|
|
1283
|
-
message.actionPoint = reader.int32();
|
|
1284
|
-
break;
|
|
1285
|
-
default:
|
|
1286
|
-
let u = options.readUnknownField;
|
|
1287
|
-
if (u === "throw")
|
|
1288
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1289
|
-
let d = reader.skip(wireType);
|
|
1290
|
-
if (u !== false)
|
|
1291
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1292
|
-
}
|
|
1293
|
-
}
|
|
1294
|
-
return message;
|
|
1295
|
-
}
|
|
1296
|
-
internalBinaryWrite(message: ListFlowActionsRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1297
|
-
/* string project_id = 1; */
|
|
1298
|
-
if (message.projectId !== "")
|
|
1299
|
-
writer.tag(1, WireType.LengthDelimited).string(message.projectId);
|
|
1300
|
-
/* string flow_type = 2; */
|
|
1301
|
-
if (message.flowType !== "")
|
|
1302
|
-
writer.tag(2, WireType.LengthDelimited).string(message.flowType);
|
|
1303
|
-
/* sid.v1.admin.ActionPoint action_point = 3; */
|
|
1304
|
-
if (message.actionPoint !== 0)
|
|
1305
|
-
writer.tag(3, WireType.Varint).int32(message.actionPoint);
|
|
1306
|
-
let u = options.writeUnknownFields;
|
|
1307
|
-
if (u !== false)
|
|
1308
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1309
|
-
return writer;
|
|
1310
|
-
}
|
|
1311
|
-
}
|
|
1312
|
-
/**
|
|
1313
|
-
* @generated MessageType for protobuf message sid.v1.admin.ListFlowActionsRequest
|
|
1314
|
-
*/
|
|
1315
|
-
export const ListFlowActionsRequest = new ListFlowActionsRequest$Type();
|
|
1316
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
1317
|
-
class ListFlowActionsResponse$Type extends MessageType<ListFlowActionsResponse> {
|
|
1318
|
-
constructor() {
|
|
1319
|
-
super("sid.v1.admin.ListFlowActionsResponse", [
|
|
1320
|
-
{ no: 1, name: "actions", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => FlowAction }
|
|
1321
|
-
]);
|
|
1322
|
-
}
|
|
1323
|
-
create(value?: PartialMessage<ListFlowActionsResponse>): ListFlowActionsResponse {
|
|
1324
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1325
|
-
message.actions = [];
|
|
1326
|
-
if (value !== undefined)
|
|
1327
|
-
reflectionMergePartial<ListFlowActionsResponse>(this, message, value);
|
|
1328
|
-
return message;
|
|
1329
|
-
}
|
|
1330
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListFlowActionsResponse): ListFlowActionsResponse {
|
|
1331
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
1332
|
-
while (reader.pos < end) {
|
|
1333
|
-
let [fieldNo, wireType] = reader.tag();
|
|
1334
|
-
switch (fieldNo) {
|
|
1335
|
-
case /* repeated sid.v1.admin.FlowAction actions */ 1:
|
|
1336
|
-
message.actions.push(FlowAction.internalBinaryRead(reader, reader.uint32(), options));
|
|
1337
|
-
break;
|
|
1338
|
-
default:
|
|
1339
|
-
let u = options.readUnknownField;
|
|
1340
|
-
if (u === "throw")
|
|
1341
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1342
|
-
let d = reader.skip(wireType);
|
|
1343
|
-
if (u !== false)
|
|
1344
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1345
|
-
}
|
|
1346
|
-
}
|
|
1347
|
-
return message;
|
|
1348
|
-
}
|
|
1349
|
-
internalBinaryWrite(message: ListFlowActionsResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1350
|
-
/* repeated sid.v1.admin.FlowAction actions = 1; */
|
|
1351
|
-
for (let i = 0; i < message.actions.length; i++)
|
|
1352
|
-
FlowAction.internalBinaryWrite(message.actions[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
1353
|
-
let u = options.writeUnknownFields;
|
|
1354
|
-
if (u !== false)
|
|
1355
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1356
|
-
return writer;
|
|
1357
|
-
}
|
|
1358
|
-
}
|
|
1359
|
-
/**
|
|
1360
|
-
* @generated MessageType for protobuf message sid.v1.admin.ListFlowActionsResponse
|
|
1361
|
-
*/
|
|
1362
|
-
export const ListFlowActionsResponse = new ListFlowActionsResponse$Type();
|
|
1363
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
1364
|
-
class UpdateFlowActionRequest$Type extends MessageType<UpdateFlowActionRequest> {
|
|
1365
|
-
constructor() {
|
|
1366
|
-
super("sid.v1.admin.UpdateFlowActionRequest", [
|
|
1367
|
-
{ no: 1, name: "project_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1368
|
-
{ no: 2, name: "flow_type", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1369
|
-
{ no: 3, name: "action_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1370
|
-
{ no: 4, name: "name", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
1371
|
-
{ no: 5, name: "action_point", kind: "enum", opt: true, T: () => ["sid.v1.admin.ActionPoint", ActionPoint, "ACTION_POINT_"] },
|
|
1372
|
-
{ no: 6, name: "webhook", kind: "message", oneof: "config", T: () => WebhookConfig },
|
|
1373
|
-
{ no: 7, name: "order", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/ },
|
|
1374
|
-
{ no: 8, name: "on_error", kind: "enum", opt: true, T: () => ["sid.v1.admin.ActionOnError", ActionOnError, "ACTION_ON_ERROR_"] },
|
|
1375
|
-
{ no: 9, name: "enabled", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }
|
|
1376
|
-
]);
|
|
1377
|
-
}
|
|
1378
|
-
create(value?: PartialMessage<UpdateFlowActionRequest>): UpdateFlowActionRequest {
|
|
1379
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1380
|
-
message.projectId = "";
|
|
1381
|
-
message.flowType = "";
|
|
1382
|
-
message.actionId = "";
|
|
1383
|
-
message.config = { oneofKind: undefined };
|
|
1384
|
-
if (value !== undefined)
|
|
1385
|
-
reflectionMergePartial<UpdateFlowActionRequest>(this, message, value);
|
|
1386
|
-
return message;
|
|
1387
|
-
}
|
|
1388
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpdateFlowActionRequest): UpdateFlowActionRequest {
|
|
1389
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
1390
|
-
while (reader.pos < end) {
|
|
1391
|
-
let [fieldNo, wireType] = reader.tag();
|
|
1392
|
-
switch (fieldNo) {
|
|
1393
|
-
case /* string project_id */ 1:
|
|
1394
|
-
message.projectId = reader.string();
|
|
1395
|
-
break;
|
|
1396
|
-
case /* string flow_type */ 2:
|
|
1397
|
-
message.flowType = reader.string();
|
|
1398
|
-
break;
|
|
1399
|
-
case /* string action_id */ 3:
|
|
1400
|
-
message.actionId = reader.string();
|
|
1401
|
-
break;
|
|
1402
|
-
case /* optional string name */ 4:
|
|
1403
|
-
message.name = reader.string();
|
|
1404
|
-
break;
|
|
1405
|
-
case /* optional sid.v1.admin.ActionPoint action_point */ 5:
|
|
1406
|
-
message.actionPoint = reader.int32();
|
|
1407
|
-
break;
|
|
1408
|
-
case /* sid.v1.admin.WebhookConfig webhook */ 6:
|
|
1409
|
-
message.config = {
|
|
1410
|
-
oneofKind: "webhook",
|
|
1411
|
-
webhook: WebhookConfig.internalBinaryRead(reader, reader.uint32(), options, (message.config as any).webhook)
|
|
1412
|
-
};
|
|
1413
|
-
break;
|
|
1414
|
-
case /* optional int32 order */ 7:
|
|
1415
|
-
message.order = reader.int32();
|
|
1416
|
-
break;
|
|
1417
|
-
case /* optional sid.v1.admin.ActionOnError on_error */ 8:
|
|
1418
|
-
message.onError = reader.int32();
|
|
1419
|
-
break;
|
|
1420
|
-
case /* optional bool enabled */ 9:
|
|
1421
|
-
message.enabled = reader.bool();
|
|
1422
|
-
break;
|
|
1423
|
-
default:
|
|
1424
|
-
let u = options.readUnknownField;
|
|
1425
|
-
if (u === "throw")
|
|
1426
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1427
|
-
let d = reader.skip(wireType);
|
|
1428
|
-
if (u !== false)
|
|
1429
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1430
|
-
}
|
|
1431
|
-
}
|
|
1432
|
-
return message;
|
|
1433
|
-
}
|
|
1434
|
-
internalBinaryWrite(message: UpdateFlowActionRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1435
|
-
/* string project_id = 1; */
|
|
1436
|
-
if (message.projectId !== "")
|
|
1437
|
-
writer.tag(1, WireType.LengthDelimited).string(message.projectId);
|
|
1438
|
-
/* string flow_type = 2; */
|
|
1439
|
-
if (message.flowType !== "")
|
|
1440
|
-
writer.tag(2, WireType.LengthDelimited).string(message.flowType);
|
|
1441
|
-
/* string action_id = 3; */
|
|
1442
|
-
if (message.actionId !== "")
|
|
1443
|
-
writer.tag(3, WireType.LengthDelimited).string(message.actionId);
|
|
1444
|
-
/* optional string name = 4; */
|
|
1445
|
-
if (message.name !== undefined)
|
|
1446
|
-
writer.tag(4, WireType.LengthDelimited).string(message.name);
|
|
1447
|
-
/* optional sid.v1.admin.ActionPoint action_point = 5; */
|
|
1448
|
-
if (message.actionPoint !== undefined)
|
|
1449
|
-
writer.tag(5, WireType.Varint).int32(message.actionPoint);
|
|
1450
|
-
/* sid.v1.admin.WebhookConfig webhook = 6; */
|
|
1451
|
-
if (message.config.oneofKind === "webhook")
|
|
1452
|
-
WebhookConfig.internalBinaryWrite(message.config.webhook, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
|
1453
|
-
/* optional int32 order = 7; */
|
|
1454
|
-
if (message.order !== undefined)
|
|
1455
|
-
writer.tag(7, WireType.Varint).int32(message.order);
|
|
1456
|
-
/* optional sid.v1.admin.ActionOnError on_error = 8; */
|
|
1457
|
-
if (message.onError !== undefined)
|
|
1458
|
-
writer.tag(8, WireType.Varint).int32(message.onError);
|
|
1459
|
-
/* optional bool enabled = 9; */
|
|
1460
|
-
if (message.enabled !== undefined)
|
|
1461
|
-
writer.tag(9, WireType.Varint).bool(message.enabled);
|
|
1462
|
-
let u = options.writeUnknownFields;
|
|
1463
|
-
if (u !== false)
|
|
1464
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1465
|
-
return writer;
|
|
1466
|
-
}
|
|
1467
|
-
}
|
|
1468
|
-
/**
|
|
1469
|
-
* @generated MessageType for protobuf message sid.v1.admin.UpdateFlowActionRequest
|
|
1470
|
-
*/
|
|
1471
|
-
export const UpdateFlowActionRequest = new UpdateFlowActionRequest$Type();
|
|
1472
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
1473
|
-
class DeleteFlowActionRequest$Type extends MessageType<DeleteFlowActionRequest> {
|
|
1474
|
-
constructor() {
|
|
1475
|
-
super("sid.v1.admin.DeleteFlowActionRequest", [
|
|
1476
|
-
{ no: 1, name: "project_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1477
|
-
{ no: 2, name: "flow_type", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1478
|
-
{ no: 3, name: "action_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
1479
|
-
]);
|
|
1480
|
-
}
|
|
1481
|
-
create(value?: PartialMessage<DeleteFlowActionRequest>): DeleteFlowActionRequest {
|
|
1482
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1483
|
-
message.projectId = "";
|
|
1484
|
-
message.flowType = "";
|
|
1485
|
-
message.actionId = "";
|
|
1486
|
-
if (value !== undefined)
|
|
1487
|
-
reflectionMergePartial<DeleteFlowActionRequest>(this, message, value);
|
|
1488
|
-
return message;
|
|
1489
|
-
}
|
|
1490
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteFlowActionRequest): DeleteFlowActionRequest {
|
|
1491
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
1492
|
-
while (reader.pos < end) {
|
|
1493
|
-
let [fieldNo, wireType] = reader.tag();
|
|
1494
|
-
switch (fieldNo) {
|
|
1495
|
-
case /* string project_id */ 1:
|
|
1496
|
-
message.projectId = reader.string();
|
|
1497
|
-
break;
|
|
1498
|
-
case /* string flow_type */ 2:
|
|
1499
|
-
message.flowType = reader.string();
|
|
1500
|
-
break;
|
|
1501
|
-
case /* string action_id */ 3:
|
|
1502
|
-
message.actionId = reader.string();
|
|
1503
|
-
break;
|
|
1504
|
-
default:
|
|
1505
|
-
let u = options.readUnknownField;
|
|
1506
|
-
if (u === "throw")
|
|
1507
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1508
|
-
let d = reader.skip(wireType);
|
|
1509
|
-
if (u !== false)
|
|
1510
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1511
|
-
}
|
|
1512
|
-
}
|
|
1513
|
-
return message;
|
|
1514
|
-
}
|
|
1515
|
-
internalBinaryWrite(message: DeleteFlowActionRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1516
|
-
/* string project_id = 1; */
|
|
1517
|
-
if (message.projectId !== "")
|
|
1518
|
-
writer.tag(1, WireType.LengthDelimited).string(message.projectId);
|
|
1519
|
-
/* string flow_type = 2; */
|
|
1520
|
-
if (message.flowType !== "")
|
|
1521
|
-
writer.tag(2, WireType.LengthDelimited).string(message.flowType);
|
|
1522
|
-
/* string action_id = 3; */
|
|
1523
|
-
if (message.actionId !== "")
|
|
1524
|
-
writer.tag(3, WireType.LengthDelimited).string(message.actionId);
|
|
1525
|
-
let u = options.writeUnknownFields;
|
|
1526
|
-
if (u !== false)
|
|
1527
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1528
|
-
return writer;
|
|
1529
|
-
}
|
|
1530
|
-
}
|
|
1531
|
-
/**
|
|
1532
|
-
* @generated MessageType for protobuf message sid.v1.admin.DeleteFlowActionRequest
|
|
1533
|
-
*/
|
|
1534
|
-
export const DeleteFlowActionRequest = new DeleteFlowActionRequest$Type();
|
|
1535
|
-
/**
|
|
1536
|
-
* @generated ServiceType for protobuf service sid.v1.admin.FlowConfigService
|
|
1537
|
-
*/
|
|
1538
|
-
export const FlowConfigService = new ServiceType("sid.v1.admin.FlowConfigService", [
|
|
1539
|
-
{ name: "GetFlowConfig", options: { "google.api.http": { get: "/v1/projects/{project_id}/flows/{flow_type}" } }, I: GetFlowConfigRequest, O: FlowConfig },
|
|
1540
|
-
{ name: "SaveFlowConfig", options: { "google.api.http": { put: "/v1/projects/{project_id}/flows/{flow_type}", body: "*" } }, I: SaveFlowConfigRequest, O: FlowConfig },
|
|
1541
|
-
{ name: "ListFlowConfigs", options: { "google.api.http": { get: "/v1/projects/{project_id}/flows" } }, I: ListFlowConfigsRequest, O: ListFlowConfigsResponse }
|
|
1542
|
-
]);
|
|
1543
|
-
/**
|
|
1544
|
-
* @generated ServiceType for protobuf service sid.v1.admin.FlowActionService
|
|
1545
|
-
*/
|
|
1546
|
-
export const FlowActionService = new ServiceType("sid.v1.admin.FlowActionService", [
|
|
1547
|
-
{ name: "CreateFlowAction", options: { "google.api.http": { post: "/v1/projects/{project_id}/flows/{flow_type}/actions", body: "*" } }, I: CreateFlowActionRequest, O: FlowAction },
|
|
1548
|
-
{ name: "GetFlowAction", options: { "google.api.http": { get: "/v1/projects/{project_id}/flows/{flow_type}/actions/{action_id}" } }, I: GetFlowActionRequest, O: FlowAction },
|
|
1549
|
-
{ name: "ListFlowActions", options: { "google.api.http": { get: "/v1/projects/{project_id}/flows/{flow_type}/actions" } }, I: ListFlowActionsRequest, O: ListFlowActionsResponse },
|
|
1550
|
-
{ name: "UpdateFlowAction", options: { "google.api.http": { patch: "/v1/projects/{project_id}/flows/{flow_type}/actions/{action_id}", body: "*" } }, I: UpdateFlowActionRequest, O: FlowAction },
|
|
1551
|
-
{ name: "DeleteFlowAction", options: { "google.api.http": { delete: "/v1/projects/{project_id}/flows/{flow_type}/actions/{action_id}" } }, I: DeleteFlowActionRequest, O: Empty }
|
|
1552
|
-
]);
|