@structured-id/ui-core 2.0.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,3205 +0,0 @@
|
|
|
1
|
-
// @generated by protobuf-ts 2.11.1 with parameter client_generic,generate_dependencies
|
|
2
|
-
// @generated from protobuf file "sid/v1/authn/flows.proto" (package "sid.v1.authn", 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 { Struct } from "../../../google/protobuf/struct";
|
|
16
|
-
import { Timestamp } from "../../../google/protobuf/timestamp";
|
|
17
|
-
// ══════════════════════════════════════════════════════════════════════════
|
|
18
|
-
// Flow messages
|
|
19
|
-
// ══════════════════════════════════════════════════════════════════════════
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* @generated from protobuf message sid.v1.authn.Flow
|
|
23
|
-
*/
|
|
24
|
-
export interface Flow {
|
|
25
|
-
/**
|
|
26
|
-
* @generated from protobuf field: string id = 1
|
|
27
|
-
*/
|
|
28
|
-
id: string;
|
|
29
|
-
/**
|
|
30
|
-
* @generated from protobuf field: string name = 2
|
|
31
|
-
*/
|
|
32
|
-
name: string;
|
|
33
|
-
/**
|
|
34
|
-
* @generated from protobuf field: string description = 3
|
|
35
|
-
*/
|
|
36
|
-
description: string;
|
|
37
|
-
/**
|
|
38
|
-
* @generated from protobuf field: sid.v1.authn.FlowPurpose purpose = 4
|
|
39
|
-
*/
|
|
40
|
-
purpose: FlowPurpose;
|
|
41
|
-
/**
|
|
42
|
-
* @generated from protobuf field: bool built_in = 5
|
|
43
|
-
*/
|
|
44
|
-
builtIn: boolean; // True = system default, cannot delete
|
|
45
|
-
/**
|
|
46
|
-
* @generated from protobuf field: bool bound = 6
|
|
47
|
-
*/
|
|
48
|
-
bound: boolean; // True = currently active for its purpose
|
|
49
|
-
/**
|
|
50
|
-
* @generated from protobuf field: int32 step_count = 7
|
|
51
|
-
*/
|
|
52
|
-
stepCount: number;
|
|
53
|
-
/**
|
|
54
|
-
* @generated from protobuf field: google.protobuf.Timestamp created_at = 8
|
|
55
|
-
*/
|
|
56
|
-
createdAt?: Timestamp;
|
|
57
|
-
/**
|
|
58
|
-
* @generated from protobuf field: google.protobuf.Timestamp updated_at = 9
|
|
59
|
-
*/
|
|
60
|
-
updatedAt?: Timestamp;
|
|
61
|
-
}
|
|
62
|
-
/**
|
|
63
|
-
* @generated from protobuf message sid.v1.authn.ListFlowsResponse
|
|
64
|
-
*/
|
|
65
|
-
export interface ListFlowsResponse {
|
|
66
|
-
/**
|
|
67
|
-
* @generated from protobuf field: repeated sid.v1.authn.Flow flows = 1
|
|
68
|
-
*/
|
|
69
|
-
flows: Flow[];
|
|
70
|
-
}
|
|
71
|
-
/**
|
|
72
|
-
* @generated from protobuf message sid.v1.authn.GetFlowRequest
|
|
73
|
-
*/
|
|
74
|
-
export interface GetFlowRequest {
|
|
75
|
-
/**
|
|
76
|
-
* @generated from protobuf field: string flow_id = 1
|
|
77
|
-
*/
|
|
78
|
-
flowId: string;
|
|
79
|
-
}
|
|
80
|
-
/**
|
|
81
|
-
* @generated from protobuf message sid.v1.authn.CreateFlowRequest
|
|
82
|
-
*/
|
|
83
|
-
export interface CreateFlowRequest {
|
|
84
|
-
/**
|
|
85
|
-
* @generated from protobuf field: string name = 1
|
|
86
|
-
*/
|
|
87
|
-
name: string;
|
|
88
|
-
/**
|
|
89
|
-
* @generated from protobuf field: string description = 2
|
|
90
|
-
*/
|
|
91
|
-
description: string;
|
|
92
|
-
/**
|
|
93
|
-
* @generated from protobuf field: sid.v1.authn.FlowPurpose purpose = 3
|
|
94
|
-
*/
|
|
95
|
-
purpose: FlowPurpose;
|
|
96
|
-
}
|
|
97
|
-
/**
|
|
98
|
-
* @generated from protobuf message sid.v1.authn.UpdateFlowRequest
|
|
99
|
-
*/
|
|
100
|
-
export interface UpdateFlowRequest {
|
|
101
|
-
/**
|
|
102
|
-
* @generated from protobuf field: string flow_id = 1
|
|
103
|
-
*/
|
|
104
|
-
flowId: string;
|
|
105
|
-
/**
|
|
106
|
-
* @generated from protobuf field: optional string name = 2
|
|
107
|
-
*/
|
|
108
|
-
name?: string;
|
|
109
|
-
/**
|
|
110
|
-
* @generated from protobuf field: optional string description = 3
|
|
111
|
-
*/
|
|
112
|
-
description?: string;
|
|
113
|
-
}
|
|
114
|
-
/**
|
|
115
|
-
* @generated from protobuf message sid.v1.authn.DeleteFlowRequest
|
|
116
|
-
*/
|
|
117
|
-
export interface DeleteFlowRequest {
|
|
118
|
-
/**
|
|
119
|
-
* @generated from protobuf field: string flow_id = 1
|
|
120
|
-
*/
|
|
121
|
-
flowId: string;
|
|
122
|
-
}
|
|
123
|
-
/**
|
|
124
|
-
* @generated from protobuf message sid.v1.authn.DuplicateFlowRequest
|
|
125
|
-
*/
|
|
126
|
-
export interface DuplicateFlowRequest {
|
|
127
|
-
/**
|
|
128
|
-
* @generated from protobuf field: string flow_id = 1
|
|
129
|
-
*/
|
|
130
|
-
flowId: string;
|
|
131
|
-
/**
|
|
132
|
-
* @generated from protobuf field: string new_name = 2
|
|
133
|
-
*/
|
|
134
|
-
newName: string;
|
|
135
|
-
}
|
|
136
|
-
/**
|
|
137
|
-
* @generated from protobuf message sid.v1.authn.BindFlowRequest
|
|
138
|
-
*/
|
|
139
|
-
export interface BindFlowRequest {
|
|
140
|
-
/**
|
|
141
|
-
* @generated from protobuf field: string flow_id = 1
|
|
142
|
-
*/
|
|
143
|
-
flowId: string;
|
|
144
|
-
/**
|
|
145
|
-
* @generated from protobuf field: sid.v1.authn.FlowPurpose purpose = 2
|
|
146
|
-
*/
|
|
147
|
-
purpose: FlowPurpose;
|
|
148
|
-
}
|
|
149
|
-
// ── Blueprint ──
|
|
150
|
-
|
|
151
|
-
/**
|
|
152
|
-
* @generated from protobuf message sid.v1.authn.ExportBlueprintRequest
|
|
153
|
-
*/
|
|
154
|
-
export interface ExportBlueprintRequest {
|
|
155
|
-
/**
|
|
156
|
-
* @generated from protobuf field: string flow_id = 1
|
|
157
|
-
*/
|
|
158
|
-
flowId: string;
|
|
159
|
-
}
|
|
160
|
-
/**
|
|
161
|
-
* @generated from protobuf message sid.v1.authn.BlueprintResponse
|
|
162
|
-
*/
|
|
163
|
-
export interface BlueprintResponse {
|
|
164
|
-
/**
|
|
165
|
-
* @generated from protobuf field: string yaml = 1
|
|
166
|
-
*/
|
|
167
|
-
yaml: string;
|
|
168
|
-
}
|
|
169
|
-
/**
|
|
170
|
-
* @generated from protobuf message sid.v1.authn.ImportBlueprintRequest
|
|
171
|
-
*/
|
|
172
|
-
export interface ImportBlueprintRequest {
|
|
173
|
-
/**
|
|
174
|
-
* @generated from protobuf field: string yaml = 1
|
|
175
|
-
*/
|
|
176
|
-
yaml: string;
|
|
177
|
-
/**
|
|
178
|
-
* @generated from protobuf field: string name = 2
|
|
179
|
-
*/
|
|
180
|
-
name: string;
|
|
181
|
-
}
|
|
182
|
-
// ══════════════════════════════════════════════════════════════════════════
|
|
183
|
-
// Step Binding messages
|
|
184
|
-
// ══════════════════════════════════════════════════════════════════════════
|
|
185
|
-
|
|
186
|
-
/**
|
|
187
|
-
* @generated from protobuf message sid.v1.authn.StepBinding
|
|
188
|
-
*/
|
|
189
|
-
export interface StepBinding {
|
|
190
|
-
/**
|
|
191
|
-
* @generated from protobuf field: string id = 1
|
|
192
|
-
*/
|
|
193
|
-
id: string;
|
|
194
|
-
/**
|
|
195
|
-
* @generated from protobuf field: string flow_id = 2
|
|
196
|
-
*/
|
|
197
|
-
flowId: string;
|
|
198
|
-
/**
|
|
199
|
-
* @generated from protobuf field: string step_type = 3
|
|
200
|
-
*/
|
|
201
|
-
stepType: string; // Reference to step type
|
|
202
|
-
/**
|
|
203
|
-
* @generated from protobuf field: string display_name = 4
|
|
204
|
-
*/
|
|
205
|
-
displayName: string;
|
|
206
|
-
/**
|
|
207
|
-
* @generated from protobuf field: sid.v1.authn.StepRequirement requirement = 5
|
|
208
|
-
*/
|
|
209
|
-
requirement: StepRequirement;
|
|
210
|
-
/**
|
|
211
|
-
* @generated from protobuf field: int32 order = 6
|
|
212
|
-
*/
|
|
213
|
-
order: number;
|
|
214
|
-
/**
|
|
215
|
-
* @generated from protobuf field: google.protobuf.Struct config = 7
|
|
216
|
-
*/
|
|
217
|
-
config?: Struct; // Step-specific configuration
|
|
218
|
-
}
|
|
219
|
-
/**
|
|
220
|
-
* @generated from protobuf message sid.v1.authn.ListStepBindingsRequest
|
|
221
|
-
*/
|
|
222
|
-
export interface ListStepBindingsRequest {
|
|
223
|
-
/**
|
|
224
|
-
* @generated from protobuf field: string flow_id = 1
|
|
225
|
-
*/
|
|
226
|
-
flowId: string;
|
|
227
|
-
}
|
|
228
|
-
/**
|
|
229
|
-
* @generated from protobuf message sid.v1.authn.ListStepBindingsResponse
|
|
230
|
-
*/
|
|
231
|
-
export interface ListStepBindingsResponse {
|
|
232
|
-
/**
|
|
233
|
-
* @generated from protobuf field: repeated sid.v1.authn.StepBinding bindings = 1
|
|
234
|
-
*/
|
|
235
|
-
bindings: StepBinding[];
|
|
236
|
-
}
|
|
237
|
-
/**
|
|
238
|
-
* @generated from protobuf message sid.v1.authn.AddStepBindingRequest
|
|
239
|
-
*/
|
|
240
|
-
export interface AddStepBindingRequest {
|
|
241
|
-
/**
|
|
242
|
-
* @generated from protobuf field: string flow_id = 1
|
|
243
|
-
*/
|
|
244
|
-
flowId: string;
|
|
245
|
-
/**
|
|
246
|
-
* @generated from protobuf field: string step_type = 2
|
|
247
|
-
*/
|
|
248
|
-
stepType: string;
|
|
249
|
-
/**
|
|
250
|
-
* @generated from protobuf field: string display_name = 3
|
|
251
|
-
*/
|
|
252
|
-
displayName: string;
|
|
253
|
-
/**
|
|
254
|
-
* @generated from protobuf field: sid.v1.authn.StepRequirement requirement = 4
|
|
255
|
-
*/
|
|
256
|
-
requirement: StepRequirement;
|
|
257
|
-
/**
|
|
258
|
-
* @generated from protobuf field: int32 order = 5
|
|
259
|
-
*/
|
|
260
|
-
order: number;
|
|
261
|
-
/**
|
|
262
|
-
* @generated from protobuf field: google.protobuf.Struct config = 6
|
|
263
|
-
*/
|
|
264
|
-
config?: Struct;
|
|
265
|
-
}
|
|
266
|
-
/**
|
|
267
|
-
* @generated from protobuf message sid.v1.authn.UpdateStepBindingRequest
|
|
268
|
-
*/
|
|
269
|
-
export interface UpdateStepBindingRequest {
|
|
270
|
-
/**
|
|
271
|
-
* @generated from protobuf field: string flow_id = 1
|
|
272
|
-
*/
|
|
273
|
-
flowId: string;
|
|
274
|
-
/**
|
|
275
|
-
* @generated from protobuf field: string binding_id = 2
|
|
276
|
-
*/
|
|
277
|
-
bindingId: string;
|
|
278
|
-
/**
|
|
279
|
-
* @generated from protobuf field: optional string display_name = 3
|
|
280
|
-
*/
|
|
281
|
-
displayName?: string;
|
|
282
|
-
/**
|
|
283
|
-
* @generated from protobuf field: optional sid.v1.authn.StepRequirement requirement = 4
|
|
284
|
-
*/
|
|
285
|
-
requirement?: StepRequirement;
|
|
286
|
-
/**
|
|
287
|
-
* @generated from protobuf field: optional int32 order = 5
|
|
288
|
-
*/
|
|
289
|
-
order?: number;
|
|
290
|
-
/**
|
|
291
|
-
* @generated from protobuf field: google.protobuf.Struct config = 6
|
|
292
|
-
*/
|
|
293
|
-
config?: Struct;
|
|
294
|
-
}
|
|
295
|
-
/**
|
|
296
|
-
* @generated from protobuf message sid.v1.authn.RemoveStepBindingRequest
|
|
297
|
-
*/
|
|
298
|
-
export interface RemoveStepBindingRequest {
|
|
299
|
-
/**
|
|
300
|
-
* @generated from protobuf field: string flow_id = 1
|
|
301
|
-
*/
|
|
302
|
-
flowId: string;
|
|
303
|
-
/**
|
|
304
|
-
* @generated from protobuf field: string binding_id = 2
|
|
305
|
-
*/
|
|
306
|
-
bindingId: string;
|
|
307
|
-
}
|
|
308
|
-
/**
|
|
309
|
-
* @generated from protobuf message sid.v1.authn.ReorderStepBindingsRequest
|
|
310
|
-
*/
|
|
311
|
-
export interface ReorderStepBindingsRequest {
|
|
312
|
-
/**
|
|
313
|
-
* @generated from protobuf field: string flow_id = 1
|
|
314
|
-
*/
|
|
315
|
-
flowId: string;
|
|
316
|
-
/**
|
|
317
|
-
* @generated from protobuf field: repeated string binding_ids = 2
|
|
318
|
-
*/
|
|
319
|
-
bindingIds: string[]; // Ordered list of IDs
|
|
320
|
-
}
|
|
321
|
-
// ══════════════════════════════════════════════════════════════════════════
|
|
322
|
-
// Step Type messages
|
|
323
|
-
// ══════════════════════════════════════════════════════════════════════════
|
|
324
|
-
|
|
325
|
-
/**
|
|
326
|
-
* @generated from protobuf message sid.v1.authn.StepType
|
|
327
|
-
*/
|
|
328
|
-
export interface StepType {
|
|
329
|
-
/**
|
|
330
|
-
* @generated from protobuf field: string type = 1
|
|
331
|
-
*/
|
|
332
|
-
type: string; // "username-password", "otp", "webauthn", etc.
|
|
333
|
-
/**
|
|
334
|
-
* @generated from protobuf field: string display_name = 2
|
|
335
|
-
*/
|
|
336
|
-
displayName: string;
|
|
337
|
-
/**
|
|
338
|
-
* @generated from protobuf field: string description = 3
|
|
339
|
-
*/
|
|
340
|
-
description: string;
|
|
341
|
-
/**
|
|
342
|
-
* @generated from protobuf field: string category = 4
|
|
343
|
-
*/
|
|
344
|
-
category: string; // "authenticator", "identity", "verification"
|
|
345
|
-
/**
|
|
346
|
-
* @generated from protobuf field: bool configurable = 6
|
|
347
|
-
*/
|
|
348
|
-
configurable: boolean;
|
|
349
|
-
}
|
|
350
|
-
/**
|
|
351
|
-
* @generated from protobuf message sid.v1.authn.ListStepTypesResponse
|
|
352
|
-
*/
|
|
353
|
-
export interface ListStepTypesResponse {
|
|
354
|
-
/**
|
|
355
|
-
* @generated from protobuf field: repeated sid.v1.authn.StepType types = 1
|
|
356
|
-
*/
|
|
357
|
-
types: StepType[];
|
|
358
|
-
}
|
|
359
|
-
/**
|
|
360
|
-
* @generated from protobuf message sid.v1.authn.StepConfig
|
|
361
|
-
*/
|
|
362
|
-
export interface StepConfig {
|
|
363
|
-
/**
|
|
364
|
-
* @generated from protobuf field: string step_type = 1
|
|
365
|
-
*/
|
|
366
|
-
stepType: string;
|
|
367
|
-
/**
|
|
368
|
-
* @generated from protobuf field: google.protobuf.Struct config = 2
|
|
369
|
-
*/
|
|
370
|
-
config?: Struct;
|
|
371
|
-
}
|
|
372
|
-
/**
|
|
373
|
-
* @generated from protobuf message sid.v1.authn.GetStepConfigRequest
|
|
374
|
-
*/
|
|
375
|
-
export interface GetStepConfigRequest {
|
|
376
|
-
/**
|
|
377
|
-
* @generated from protobuf field: string step_type = 1
|
|
378
|
-
*/
|
|
379
|
-
stepType: string;
|
|
380
|
-
}
|
|
381
|
-
/**
|
|
382
|
-
* @generated from protobuf message sid.v1.authn.UpdateStepConfigRequest
|
|
383
|
-
*/
|
|
384
|
-
export interface UpdateStepConfigRequest {
|
|
385
|
-
/**
|
|
386
|
-
* @generated from protobuf field: string step_type = 1
|
|
387
|
-
*/
|
|
388
|
-
stepType: string;
|
|
389
|
-
/**
|
|
390
|
-
* @generated from protobuf field: google.protobuf.Struct config = 2
|
|
391
|
-
*/
|
|
392
|
-
config?: Struct;
|
|
393
|
-
}
|
|
394
|
-
// ══════════════════════════════════════════════════════════════════════════
|
|
395
|
-
// Action messages
|
|
396
|
-
// ══════════════════════════════════════════════════════════════════════════
|
|
397
|
-
|
|
398
|
-
/**
|
|
399
|
-
* @generated from protobuf message sid.v1.authn.Action
|
|
400
|
-
*/
|
|
401
|
-
export interface Action {
|
|
402
|
-
/**
|
|
403
|
-
* @generated from protobuf field: string id = 1
|
|
404
|
-
*/
|
|
405
|
-
id: string;
|
|
406
|
-
/**
|
|
407
|
-
* @generated from protobuf field: string name = 2
|
|
408
|
-
*/
|
|
409
|
-
name: string;
|
|
410
|
-
/**
|
|
411
|
-
* @generated from protobuf field: string description = 3
|
|
412
|
-
*/
|
|
413
|
-
description: string;
|
|
414
|
-
/**
|
|
415
|
-
* @generated from protobuf field: sid.v1.authn.ActionType type = 4
|
|
416
|
-
*/
|
|
417
|
-
type: ActionType;
|
|
418
|
-
/**
|
|
419
|
-
* @generated from protobuf field: sid.v1.authn.ActionHookPoint hook_point = 5
|
|
420
|
-
*/
|
|
421
|
-
hookPoint: ActionHookPoint;
|
|
422
|
-
/**
|
|
423
|
-
* @generated from protobuf field: bool enabled = 6
|
|
424
|
-
*/
|
|
425
|
-
enabled: boolean;
|
|
426
|
-
/**
|
|
427
|
-
* @generated from protobuf field: int32 priority = 7
|
|
428
|
-
*/
|
|
429
|
-
priority: number;
|
|
430
|
-
/**
|
|
431
|
-
* Type-specific config
|
|
432
|
-
*
|
|
433
|
-
* @generated from protobuf field: string webhook_url = 8
|
|
434
|
-
*/
|
|
435
|
-
webhookUrl: string; // For WEBHOOK type
|
|
436
|
-
/**
|
|
437
|
-
* @generated from protobuf field: string webhook_secret = 9
|
|
438
|
-
*/
|
|
439
|
-
webhookSecret: string; // Write-only
|
|
440
|
-
/**
|
|
441
|
-
* @generated from protobuf field: int32 webhook_timeout_ms = 10
|
|
442
|
-
*/
|
|
443
|
-
webhookTimeoutMs: number;
|
|
444
|
-
/**
|
|
445
|
-
* @generated from protobuf field: repeated string event_filters = 11
|
|
446
|
-
*/
|
|
447
|
-
eventFilters: string[]; // Filter which events trigger action
|
|
448
|
-
/**
|
|
449
|
-
* @generated from protobuf field: google.protobuf.Struct config = 12
|
|
450
|
-
*/
|
|
451
|
-
config?: Struct; // Additional type-specific config
|
|
452
|
-
/**
|
|
453
|
-
* @generated from protobuf field: google.protobuf.Timestamp created_at = 13
|
|
454
|
-
*/
|
|
455
|
-
createdAt?: Timestamp;
|
|
456
|
-
/**
|
|
457
|
-
* @generated from protobuf field: google.protobuf.Timestamp updated_at = 14
|
|
458
|
-
*/
|
|
459
|
-
updatedAt?: Timestamp;
|
|
460
|
-
}
|
|
461
|
-
/**
|
|
462
|
-
* @generated from protobuf message sid.v1.authn.ListActionsResponse
|
|
463
|
-
*/
|
|
464
|
-
export interface ListActionsResponse {
|
|
465
|
-
/**
|
|
466
|
-
* @generated from protobuf field: repeated sid.v1.authn.Action actions = 1
|
|
467
|
-
*/
|
|
468
|
-
actions: Action[];
|
|
469
|
-
}
|
|
470
|
-
/**
|
|
471
|
-
* @generated from protobuf message sid.v1.authn.GetActionRequest
|
|
472
|
-
*/
|
|
473
|
-
export interface GetActionRequest {
|
|
474
|
-
/**
|
|
475
|
-
* @generated from protobuf field: string action_id = 1
|
|
476
|
-
*/
|
|
477
|
-
actionId: string;
|
|
478
|
-
}
|
|
479
|
-
/**
|
|
480
|
-
* @generated from protobuf message sid.v1.authn.CreateActionRequest
|
|
481
|
-
*/
|
|
482
|
-
export interface CreateActionRequest {
|
|
483
|
-
/**
|
|
484
|
-
* @generated from protobuf field: string name = 1
|
|
485
|
-
*/
|
|
486
|
-
name: string;
|
|
487
|
-
/**
|
|
488
|
-
* @generated from protobuf field: string description = 2
|
|
489
|
-
*/
|
|
490
|
-
description: string;
|
|
491
|
-
/**
|
|
492
|
-
* @generated from protobuf field: sid.v1.authn.ActionType type = 3
|
|
493
|
-
*/
|
|
494
|
-
type: ActionType;
|
|
495
|
-
/**
|
|
496
|
-
* @generated from protobuf field: sid.v1.authn.ActionHookPoint hook_point = 4
|
|
497
|
-
*/
|
|
498
|
-
hookPoint: ActionHookPoint;
|
|
499
|
-
/**
|
|
500
|
-
* @generated from protobuf field: bool enabled = 5
|
|
501
|
-
*/
|
|
502
|
-
enabled: boolean;
|
|
503
|
-
/**
|
|
504
|
-
* @generated from protobuf field: int32 priority = 6
|
|
505
|
-
*/
|
|
506
|
-
priority: number;
|
|
507
|
-
/**
|
|
508
|
-
* @generated from protobuf field: string webhook_url = 7
|
|
509
|
-
*/
|
|
510
|
-
webhookUrl: string;
|
|
511
|
-
/**
|
|
512
|
-
* @generated from protobuf field: string webhook_secret = 8
|
|
513
|
-
*/
|
|
514
|
-
webhookSecret: string;
|
|
515
|
-
/**
|
|
516
|
-
* @generated from protobuf field: int32 webhook_timeout_ms = 9
|
|
517
|
-
*/
|
|
518
|
-
webhookTimeoutMs: number;
|
|
519
|
-
/**
|
|
520
|
-
* @generated from protobuf field: repeated string event_filters = 10
|
|
521
|
-
*/
|
|
522
|
-
eventFilters: string[];
|
|
523
|
-
/**
|
|
524
|
-
* @generated from protobuf field: google.protobuf.Struct config = 11
|
|
525
|
-
*/
|
|
526
|
-
config?: Struct;
|
|
527
|
-
}
|
|
528
|
-
/**
|
|
529
|
-
* @generated from protobuf message sid.v1.authn.UpdateActionRequest
|
|
530
|
-
*/
|
|
531
|
-
export interface UpdateActionRequest {
|
|
532
|
-
/**
|
|
533
|
-
* @generated from protobuf field: string action_id = 1
|
|
534
|
-
*/
|
|
535
|
-
actionId: string;
|
|
536
|
-
/**
|
|
537
|
-
* @generated from protobuf field: optional string name = 2
|
|
538
|
-
*/
|
|
539
|
-
name?: string;
|
|
540
|
-
/**
|
|
541
|
-
* @generated from protobuf field: optional string description = 3
|
|
542
|
-
*/
|
|
543
|
-
description?: string;
|
|
544
|
-
/**
|
|
545
|
-
* @generated from protobuf field: optional bool enabled = 4
|
|
546
|
-
*/
|
|
547
|
-
enabled?: boolean;
|
|
548
|
-
/**
|
|
549
|
-
* @generated from protobuf field: optional int32 priority = 5
|
|
550
|
-
*/
|
|
551
|
-
priority?: number;
|
|
552
|
-
/**
|
|
553
|
-
* @generated from protobuf field: optional string webhook_url = 6
|
|
554
|
-
*/
|
|
555
|
-
webhookUrl?: string;
|
|
556
|
-
/**
|
|
557
|
-
* @generated from protobuf field: optional string webhook_secret = 7
|
|
558
|
-
*/
|
|
559
|
-
webhookSecret?: string;
|
|
560
|
-
/**
|
|
561
|
-
* @generated from protobuf field: optional int32 webhook_timeout_ms = 8
|
|
562
|
-
*/
|
|
563
|
-
webhookTimeoutMs?: number;
|
|
564
|
-
/**
|
|
565
|
-
* @generated from protobuf field: repeated string event_filters = 9
|
|
566
|
-
*/
|
|
567
|
-
eventFilters: string[];
|
|
568
|
-
/**
|
|
569
|
-
* @generated from protobuf field: google.protobuf.Struct config = 10
|
|
570
|
-
*/
|
|
571
|
-
config?: Struct;
|
|
572
|
-
}
|
|
573
|
-
/**
|
|
574
|
-
* @generated from protobuf message sid.v1.authn.DeleteActionRequest
|
|
575
|
-
*/
|
|
576
|
-
export interface DeleteActionRequest {
|
|
577
|
-
/**
|
|
578
|
-
* @generated from protobuf field: string action_id = 1
|
|
579
|
-
*/
|
|
580
|
-
actionId: string;
|
|
581
|
-
}
|
|
582
|
-
/**
|
|
583
|
-
* @generated from protobuf message sid.v1.authn.TestActionRequest
|
|
584
|
-
*/
|
|
585
|
-
export interface TestActionRequest {
|
|
586
|
-
/**
|
|
587
|
-
* @generated from protobuf field: string action_id = 1
|
|
588
|
-
*/
|
|
589
|
-
actionId: string;
|
|
590
|
-
}
|
|
591
|
-
/**
|
|
592
|
-
* @generated from protobuf message sid.v1.authn.TestActionResponse
|
|
593
|
-
*/
|
|
594
|
-
export interface TestActionResponse {
|
|
595
|
-
/**
|
|
596
|
-
* @generated from protobuf field: bool success = 1
|
|
597
|
-
*/
|
|
598
|
-
success: boolean;
|
|
599
|
-
/**
|
|
600
|
-
* @generated from protobuf field: int32 status_code = 2
|
|
601
|
-
*/
|
|
602
|
-
statusCode: number;
|
|
603
|
-
/**
|
|
604
|
-
* @generated from protobuf field: string response_body = 3
|
|
605
|
-
*/
|
|
606
|
-
responseBody: string;
|
|
607
|
-
/**
|
|
608
|
-
* @generated from protobuf field: int32 latency_ms = 4
|
|
609
|
-
*/
|
|
610
|
-
latencyMs: number;
|
|
611
|
-
/**
|
|
612
|
-
* @generated from protobuf field: string error = 5
|
|
613
|
-
*/
|
|
614
|
-
error: string;
|
|
615
|
-
}
|
|
616
|
-
// ── Built-in Actions ──
|
|
617
|
-
|
|
618
|
-
/**
|
|
619
|
-
* @generated from protobuf message sid.v1.authn.BuiltinAction
|
|
620
|
-
*/
|
|
621
|
-
export interface BuiltinAction {
|
|
622
|
-
/**
|
|
623
|
-
* @generated from protobuf field: string action_type = 1
|
|
624
|
-
*/
|
|
625
|
-
actionType: string; // "log_event", "notify_admin", etc.
|
|
626
|
-
/**
|
|
627
|
-
* @generated from protobuf field: string display_name = 2
|
|
628
|
-
*/
|
|
629
|
-
displayName: string;
|
|
630
|
-
/**
|
|
631
|
-
* @generated from protobuf field: string description = 3
|
|
632
|
-
*/
|
|
633
|
-
description: string;
|
|
634
|
-
/**
|
|
635
|
-
* @generated from protobuf field: bool enabled = 4
|
|
636
|
-
*/
|
|
637
|
-
enabled: boolean;
|
|
638
|
-
/**
|
|
639
|
-
* @generated from protobuf field: google.protobuf.Struct config = 5
|
|
640
|
-
*/
|
|
641
|
-
config?: Struct;
|
|
642
|
-
}
|
|
643
|
-
/**
|
|
644
|
-
* @generated from protobuf message sid.v1.authn.ListBuiltinActionsResponse
|
|
645
|
-
*/
|
|
646
|
-
export interface ListBuiltinActionsResponse {
|
|
647
|
-
/**
|
|
648
|
-
* @generated from protobuf field: repeated sid.v1.authn.BuiltinAction actions = 1
|
|
649
|
-
*/
|
|
650
|
-
actions: BuiltinAction[];
|
|
651
|
-
}
|
|
652
|
-
/**
|
|
653
|
-
* @generated from protobuf message sid.v1.authn.ConfigureBuiltinActionRequest
|
|
654
|
-
*/
|
|
655
|
-
export interface ConfigureBuiltinActionRequest {
|
|
656
|
-
/**
|
|
657
|
-
* @generated from protobuf field: string action_type = 1
|
|
658
|
-
*/
|
|
659
|
-
actionType: string;
|
|
660
|
-
/**
|
|
661
|
-
* @generated from protobuf field: bool enabled = 2
|
|
662
|
-
*/
|
|
663
|
-
enabled: boolean;
|
|
664
|
-
/**
|
|
665
|
-
* @generated from protobuf field: google.protobuf.Struct config = 3
|
|
666
|
-
*/
|
|
667
|
-
config?: Struct;
|
|
668
|
-
}
|
|
669
|
-
/**
|
|
670
|
-
* @generated from protobuf message sid.v1.authn.ListEventTypesResponse
|
|
671
|
-
*/
|
|
672
|
-
export interface ListEventTypesResponse {
|
|
673
|
-
/**
|
|
674
|
-
* @generated from protobuf field: repeated sid.v1.authn.ActionEventType event_types = 1
|
|
675
|
-
*/
|
|
676
|
-
eventTypes: ActionEventType[];
|
|
677
|
-
}
|
|
678
|
-
/**
|
|
679
|
-
* @generated from protobuf message sid.v1.authn.ActionEventType
|
|
680
|
-
*/
|
|
681
|
-
export interface ActionEventType {
|
|
682
|
-
/**
|
|
683
|
-
* @generated from protobuf field: string type = 1
|
|
684
|
-
*/
|
|
685
|
-
type: string; // "login.success", "login.failure", etc.
|
|
686
|
-
/**
|
|
687
|
-
* @generated from protobuf field: string display_name = 2
|
|
688
|
-
*/
|
|
689
|
-
displayName: string;
|
|
690
|
-
/**
|
|
691
|
-
* @generated from protobuf field: string category = 3
|
|
692
|
-
*/
|
|
693
|
-
category: string; // "authentication", "account", "admin"
|
|
694
|
-
}
|
|
695
|
-
// ══════════════════════════════════════════════════════════════════════════
|
|
696
|
-
// Flow types
|
|
697
|
-
// ══════════════════════════════════════════════════════════════════════════
|
|
698
|
-
|
|
699
|
-
/**
|
|
700
|
-
* @generated from protobuf enum sid.v1.authn.FlowPurpose
|
|
701
|
-
*/
|
|
702
|
-
export enum FlowPurpose {
|
|
703
|
-
/**
|
|
704
|
-
* @generated from protobuf enum value: FLOW_PURPOSE_UNSPECIFIED = 0;
|
|
705
|
-
*/
|
|
706
|
-
UNSPECIFIED = 0,
|
|
707
|
-
/**
|
|
708
|
-
* @generated from protobuf enum value: FLOW_PURPOSE_LOGIN = 1;
|
|
709
|
-
*/
|
|
710
|
-
LOGIN = 1,
|
|
711
|
-
/**
|
|
712
|
-
* @generated from protobuf enum value: FLOW_PURPOSE_REGISTRATION = 2;
|
|
713
|
-
*/
|
|
714
|
-
REGISTRATION = 2,
|
|
715
|
-
/**
|
|
716
|
-
* @generated from protobuf enum value: FLOW_PURPOSE_RESET_CREDENTIALS = 3;
|
|
717
|
-
*/
|
|
718
|
-
RESET_CREDENTIALS = 3,
|
|
719
|
-
/**
|
|
720
|
-
* @generated from protobuf enum value: FLOW_PURPOSE_FIRST_BROKER_LOGIN = 4;
|
|
721
|
-
*/
|
|
722
|
-
FIRST_BROKER_LOGIN = 4,
|
|
723
|
-
/**
|
|
724
|
-
* @generated from protobuf enum value: FLOW_PURPOSE_POST_BROKER_LOGIN = 5;
|
|
725
|
-
*/
|
|
726
|
-
POST_BROKER_LOGIN = 5,
|
|
727
|
-
/**
|
|
728
|
-
* @generated from protobuf enum value: FLOW_PURPOSE_DOCKER_AUTH = 6;
|
|
729
|
-
*/
|
|
730
|
-
DOCKER_AUTH = 6
|
|
731
|
-
}
|
|
732
|
-
/**
|
|
733
|
-
* @generated from protobuf enum sid.v1.authn.StepRequirement
|
|
734
|
-
*/
|
|
735
|
-
export enum StepRequirement {
|
|
736
|
-
/**
|
|
737
|
-
* @generated from protobuf enum value: STEP_REQUIREMENT_UNSPECIFIED = 0;
|
|
738
|
-
*/
|
|
739
|
-
UNSPECIFIED = 0,
|
|
740
|
-
/**
|
|
741
|
-
* @generated from protobuf enum value: STEP_REQUIREMENT_REQUIRED = 1;
|
|
742
|
-
*/
|
|
743
|
-
REQUIRED = 1,
|
|
744
|
-
/**
|
|
745
|
-
* @generated from protobuf enum value: STEP_REQUIREMENT_ALTERNATIVE = 2;
|
|
746
|
-
*/
|
|
747
|
-
ALTERNATIVE = 2,
|
|
748
|
-
/**
|
|
749
|
-
* @generated from protobuf enum value: STEP_REQUIREMENT_OPTIONAL = 3;
|
|
750
|
-
*/
|
|
751
|
-
OPTIONAL = 3,
|
|
752
|
-
/**
|
|
753
|
-
* @generated from protobuf enum value: STEP_REQUIREMENT_CONDITIONAL = 4;
|
|
754
|
-
*/
|
|
755
|
-
CONDITIONAL = 4,
|
|
756
|
-
/**
|
|
757
|
-
* @generated from protobuf enum value: STEP_REQUIREMENT_DISABLED = 5;
|
|
758
|
-
*/
|
|
759
|
-
DISABLED = 5
|
|
760
|
-
}
|
|
761
|
-
/**
|
|
762
|
-
* @generated from protobuf enum sid.v1.authn.ActionHookPoint
|
|
763
|
-
*/
|
|
764
|
-
export enum ActionHookPoint {
|
|
765
|
-
/**
|
|
766
|
-
* @generated from protobuf enum value: ACTION_HOOK_POINT_UNSPECIFIED = 0;
|
|
767
|
-
*/
|
|
768
|
-
UNSPECIFIED = 0,
|
|
769
|
-
/**
|
|
770
|
-
* @generated from protobuf enum value: ACTION_HOOK_POINT_PRE_AUTHENTICATION = 1;
|
|
771
|
-
*/
|
|
772
|
-
PRE_AUTHENTICATION = 1,
|
|
773
|
-
/**
|
|
774
|
-
* @generated from protobuf enum value: ACTION_HOOK_POINT_POST_AUTHENTICATION = 2;
|
|
775
|
-
*/
|
|
776
|
-
POST_AUTHENTICATION = 2,
|
|
777
|
-
/**
|
|
778
|
-
* @generated from protobuf enum value: ACTION_HOOK_POINT_POST_MFA = 3;
|
|
779
|
-
*/
|
|
780
|
-
POST_MFA = 3,
|
|
781
|
-
/**
|
|
782
|
-
* @generated from protobuf enum value: ACTION_HOOK_POINT_PRE_TOKEN_CREATION = 4;
|
|
783
|
-
*/
|
|
784
|
-
PRE_TOKEN_CREATION = 4,
|
|
785
|
-
/**
|
|
786
|
-
* @generated from protobuf enum value: ACTION_HOOK_POINT_POST_LOGIN = 5;
|
|
787
|
-
*/
|
|
788
|
-
POST_LOGIN = 5,
|
|
789
|
-
/**
|
|
790
|
-
* @generated from protobuf enum value: ACTION_HOOK_POINT_POST_REGISTRATION = 6;
|
|
791
|
-
*/
|
|
792
|
-
POST_REGISTRATION = 6,
|
|
793
|
-
/**
|
|
794
|
-
* @generated from protobuf enum value: ACTION_HOOK_POINT_PRE_CONSENT = 7;
|
|
795
|
-
*/
|
|
796
|
-
PRE_CONSENT = 7
|
|
797
|
-
}
|
|
798
|
-
/**
|
|
799
|
-
* @generated from protobuf enum sid.v1.authn.ActionType
|
|
800
|
-
*/
|
|
801
|
-
export enum ActionType {
|
|
802
|
-
/**
|
|
803
|
-
* @generated from protobuf enum value: ACTION_TYPE_UNSPECIFIED = 0;
|
|
804
|
-
*/
|
|
805
|
-
UNSPECIFIED = 0,
|
|
806
|
-
/**
|
|
807
|
-
* @generated from protobuf enum value: ACTION_TYPE_WEBHOOK = 1;
|
|
808
|
-
*/
|
|
809
|
-
WEBHOOK = 1,
|
|
810
|
-
/**
|
|
811
|
-
* @generated from protobuf enum value: ACTION_TYPE_LOG = 2;
|
|
812
|
-
*/
|
|
813
|
-
LOG = 2,
|
|
814
|
-
/**
|
|
815
|
-
* @generated from protobuf enum value: ACTION_TYPE_ASSIGN_ROLE = 3;
|
|
816
|
-
*/
|
|
817
|
-
ASSIGN_ROLE = 3,
|
|
818
|
-
/**
|
|
819
|
-
* @generated from protobuf enum value: ACTION_TYPE_ADD_CLAIM = 4;
|
|
820
|
-
*/
|
|
821
|
-
ADD_CLAIM = 4,
|
|
822
|
-
/**
|
|
823
|
-
* @generated from protobuf enum value: ACTION_TYPE_SEND_EMAIL = 5;
|
|
824
|
-
*/
|
|
825
|
-
SEND_EMAIL = 5,
|
|
826
|
-
/**
|
|
827
|
-
* @generated from protobuf enum value: ACTION_TYPE_DENY = 6;
|
|
828
|
-
*/
|
|
829
|
-
DENY = 6,
|
|
830
|
-
/**
|
|
831
|
-
* @generated from protobuf enum value: ACTION_TYPE_REDIRECT = 7;
|
|
832
|
-
*/
|
|
833
|
-
REDIRECT = 7
|
|
834
|
-
}
|
|
835
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
836
|
-
class Flow$Type extends MessageType<Flow> {
|
|
837
|
-
constructor() {
|
|
838
|
-
super("sid.v1.authn.Flow", [
|
|
839
|
-
{ no: 1, name: "id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
840
|
-
{ no: 2, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
841
|
-
{ no: 3, name: "description", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
842
|
-
{ no: 4, name: "purpose", kind: "enum", T: () => ["sid.v1.authn.FlowPurpose", FlowPurpose, "FLOW_PURPOSE_"] },
|
|
843
|
-
{ no: 5, name: "built_in", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
844
|
-
{ no: 6, name: "bound", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
845
|
-
{ no: 7, name: "step_count", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
|
|
846
|
-
{ no: 8, name: "created_at", kind: "message", T: () => Timestamp },
|
|
847
|
-
{ no: 9, name: "updated_at", kind: "message", T: () => Timestamp }
|
|
848
|
-
]);
|
|
849
|
-
}
|
|
850
|
-
create(value?: PartialMessage<Flow>): Flow {
|
|
851
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
852
|
-
message.id = "";
|
|
853
|
-
message.name = "";
|
|
854
|
-
message.description = "";
|
|
855
|
-
message.purpose = 0;
|
|
856
|
-
message.builtIn = false;
|
|
857
|
-
message.bound = false;
|
|
858
|
-
message.stepCount = 0;
|
|
859
|
-
if (value !== undefined)
|
|
860
|
-
reflectionMergePartial<Flow>(this, message, value);
|
|
861
|
-
return message;
|
|
862
|
-
}
|
|
863
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Flow): Flow {
|
|
864
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
865
|
-
while (reader.pos < end) {
|
|
866
|
-
let [fieldNo, wireType] = reader.tag();
|
|
867
|
-
switch (fieldNo) {
|
|
868
|
-
case /* string id */ 1:
|
|
869
|
-
message.id = reader.string();
|
|
870
|
-
break;
|
|
871
|
-
case /* string name */ 2:
|
|
872
|
-
message.name = reader.string();
|
|
873
|
-
break;
|
|
874
|
-
case /* string description */ 3:
|
|
875
|
-
message.description = reader.string();
|
|
876
|
-
break;
|
|
877
|
-
case /* sid.v1.authn.FlowPurpose purpose */ 4:
|
|
878
|
-
message.purpose = reader.int32();
|
|
879
|
-
break;
|
|
880
|
-
case /* bool built_in */ 5:
|
|
881
|
-
message.builtIn = reader.bool();
|
|
882
|
-
break;
|
|
883
|
-
case /* bool bound */ 6:
|
|
884
|
-
message.bound = reader.bool();
|
|
885
|
-
break;
|
|
886
|
-
case /* int32 step_count */ 7:
|
|
887
|
-
message.stepCount = reader.int32();
|
|
888
|
-
break;
|
|
889
|
-
case /* google.protobuf.Timestamp created_at */ 8:
|
|
890
|
-
message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
|
|
891
|
-
break;
|
|
892
|
-
case /* google.protobuf.Timestamp updated_at */ 9:
|
|
893
|
-
message.updatedAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.updatedAt);
|
|
894
|
-
break;
|
|
895
|
-
default:
|
|
896
|
-
let u = options.readUnknownField;
|
|
897
|
-
if (u === "throw")
|
|
898
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
899
|
-
let d = reader.skip(wireType);
|
|
900
|
-
if (u !== false)
|
|
901
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
902
|
-
}
|
|
903
|
-
}
|
|
904
|
-
return message;
|
|
905
|
-
}
|
|
906
|
-
internalBinaryWrite(message: Flow, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
907
|
-
/* string id = 1; */
|
|
908
|
-
if (message.id !== "")
|
|
909
|
-
writer.tag(1, WireType.LengthDelimited).string(message.id);
|
|
910
|
-
/* string name = 2; */
|
|
911
|
-
if (message.name !== "")
|
|
912
|
-
writer.tag(2, WireType.LengthDelimited).string(message.name);
|
|
913
|
-
/* string description = 3; */
|
|
914
|
-
if (message.description !== "")
|
|
915
|
-
writer.tag(3, WireType.LengthDelimited).string(message.description);
|
|
916
|
-
/* sid.v1.authn.FlowPurpose purpose = 4; */
|
|
917
|
-
if (message.purpose !== 0)
|
|
918
|
-
writer.tag(4, WireType.Varint).int32(message.purpose);
|
|
919
|
-
/* bool built_in = 5; */
|
|
920
|
-
if (message.builtIn !== false)
|
|
921
|
-
writer.tag(5, WireType.Varint).bool(message.builtIn);
|
|
922
|
-
/* bool bound = 6; */
|
|
923
|
-
if (message.bound !== false)
|
|
924
|
-
writer.tag(6, WireType.Varint).bool(message.bound);
|
|
925
|
-
/* int32 step_count = 7; */
|
|
926
|
-
if (message.stepCount !== 0)
|
|
927
|
-
writer.tag(7, WireType.Varint).int32(message.stepCount);
|
|
928
|
-
/* google.protobuf.Timestamp created_at = 8; */
|
|
929
|
-
if (message.createdAt)
|
|
930
|
-
Timestamp.internalBinaryWrite(message.createdAt, writer.tag(8, WireType.LengthDelimited).fork(), options).join();
|
|
931
|
-
/* google.protobuf.Timestamp updated_at = 9; */
|
|
932
|
-
if (message.updatedAt)
|
|
933
|
-
Timestamp.internalBinaryWrite(message.updatedAt, writer.tag(9, WireType.LengthDelimited).fork(), options).join();
|
|
934
|
-
let u = options.writeUnknownFields;
|
|
935
|
-
if (u !== false)
|
|
936
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
937
|
-
return writer;
|
|
938
|
-
}
|
|
939
|
-
}
|
|
940
|
-
/**
|
|
941
|
-
* @generated MessageType for protobuf message sid.v1.authn.Flow
|
|
942
|
-
*/
|
|
943
|
-
export const Flow = new Flow$Type();
|
|
944
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
945
|
-
class ListFlowsResponse$Type extends MessageType<ListFlowsResponse> {
|
|
946
|
-
constructor() {
|
|
947
|
-
super("sid.v1.authn.ListFlowsResponse", [
|
|
948
|
-
{ no: 1, name: "flows", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Flow }
|
|
949
|
-
]);
|
|
950
|
-
}
|
|
951
|
-
create(value?: PartialMessage<ListFlowsResponse>): ListFlowsResponse {
|
|
952
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
953
|
-
message.flows = [];
|
|
954
|
-
if (value !== undefined)
|
|
955
|
-
reflectionMergePartial<ListFlowsResponse>(this, message, value);
|
|
956
|
-
return message;
|
|
957
|
-
}
|
|
958
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListFlowsResponse): ListFlowsResponse {
|
|
959
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
960
|
-
while (reader.pos < end) {
|
|
961
|
-
let [fieldNo, wireType] = reader.tag();
|
|
962
|
-
switch (fieldNo) {
|
|
963
|
-
case /* repeated sid.v1.authn.Flow flows */ 1:
|
|
964
|
-
message.flows.push(Flow.internalBinaryRead(reader, reader.uint32(), options));
|
|
965
|
-
break;
|
|
966
|
-
default:
|
|
967
|
-
let u = options.readUnknownField;
|
|
968
|
-
if (u === "throw")
|
|
969
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
970
|
-
let d = reader.skip(wireType);
|
|
971
|
-
if (u !== false)
|
|
972
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
973
|
-
}
|
|
974
|
-
}
|
|
975
|
-
return message;
|
|
976
|
-
}
|
|
977
|
-
internalBinaryWrite(message: ListFlowsResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
978
|
-
/* repeated sid.v1.authn.Flow flows = 1; */
|
|
979
|
-
for (let i = 0; i < message.flows.length; i++)
|
|
980
|
-
Flow.internalBinaryWrite(message.flows[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
981
|
-
let u = options.writeUnknownFields;
|
|
982
|
-
if (u !== false)
|
|
983
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
984
|
-
return writer;
|
|
985
|
-
}
|
|
986
|
-
}
|
|
987
|
-
/**
|
|
988
|
-
* @generated MessageType for protobuf message sid.v1.authn.ListFlowsResponse
|
|
989
|
-
*/
|
|
990
|
-
export const ListFlowsResponse = new ListFlowsResponse$Type();
|
|
991
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
992
|
-
class GetFlowRequest$Type extends MessageType<GetFlowRequest> {
|
|
993
|
-
constructor() {
|
|
994
|
-
super("sid.v1.authn.GetFlowRequest", [
|
|
995
|
-
{ no: 1, name: "flow_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
996
|
-
]);
|
|
997
|
-
}
|
|
998
|
-
create(value?: PartialMessage<GetFlowRequest>): GetFlowRequest {
|
|
999
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1000
|
-
message.flowId = "";
|
|
1001
|
-
if (value !== undefined)
|
|
1002
|
-
reflectionMergePartial<GetFlowRequest>(this, message, value);
|
|
1003
|
-
return message;
|
|
1004
|
-
}
|
|
1005
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetFlowRequest): GetFlowRequest {
|
|
1006
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
1007
|
-
while (reader.pos < end) {
|
|
1008
|
-
let [fieldNo, wireType] = reader.tag();
|
|
1009
|
-
switch (fieldNo) {
|
|
1010
|
-
case /* string flow_id */ 1:
|
|
1011
|
-
message.flowId = reader.string();
|
|
1012
|
-
break;
|
|
1013
|
-
default:
|
|
1014
|
-
let u = options.readUnknownField;
|
|
1015
|
-
if (u === "throw")
|
|
1016
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1017
|
-
let d = reader.skip(wireType);
|
|
1018
|
-
if (u !== false)
|
|
1019
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1020
|
-
}
|
|
1021
|
-
}
|
|
1022
|
-
return message;
|
|
1023
|
-
}
|
|
1024
|
-
internalBinaryWrite(message: GetFlowRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1025
|
-
/* string flow_id = 1; */
|
|
1026
|
-
if (message.flowId !== "")
|
|
1027
|
-
writer.tag(1, WireType.LengthDelimited).string(message.flowId);
|
|
1028
|
-
let u = options.writeUnknownFields;
|
|
1029
|
-
if (u !== false)
|
|
1030
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1031
|
-
return writer;
|
|
1032
|
-
}
|
|
1033
|
-
}
|
|
1034
|
-
/**
|
|
1035
|
-
* @generated MessageType for protobuf message sid.v1.authn.GetFlowRequest
|
|
1036
|
-
*/
|
|
1037
|
-
export const GetFlowRequest = new GetFlowRequest$Type();
|
|
1038
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
1039
|
-
class CreateFlowRequest$Type extends MessageType<CreateFlowRequest> {
|
|
1040
|
-
constructor() {
|
|
1041
|
-
super("sid.v1.authn.CreateFlowRequest", [
|
|
1042
|
-
{ no: 1, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1043
|
-
{ no: 2, name: "description", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1044
|
-
{ no: 3, name: "purpose", kind: "enum", T: () => ["sid.v1.authn.FlowPurpose", FlowPurpose, "FLOW_PURPOSE_"] }
|
|
1045
|
-
]);
|
|
1046
|
-
}
|
|
1047
|
-
create(value?: PartialMessage<CreateFlowRequest>): CreateFlowRequest {
|
|
1048
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1049
|
-
message.name = "";
|
|
1050
|
-
message.description = "";
|
|
1051
|
-
message.purpose = 0;
|
|
1052
|
-
if (value !== undefined)
|
|
1053
|
-
reflectionMergePartial<CreateFlowRequest>(this, message, value);
|
|
1054
|
-
return message;
|
|
1055
|
-
}
|
|
1056
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CreateFlowRequest): CreateFlowRequest {
|
|
1057
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
1058
|
-
while (reader.pos < end) {
|
|
1059
|
-
let [fieldNo, wireType] = reader.tag();
|
|
1060
|
-
switch (fieldNo) {
|
|
1061
|
-
case /* string name */ 1:
|
|
1062
|
-
message.name = reader.string();
|
|
1063
|
-
break;
|
|
1064
|
-
case /* string description */ 2:
|
|
1065
|
-
message.description = reader.string();
|
|
1066
|
-
break;
|
|
1067
|
-
case /* sid.v1.authn.FlowPurpose purpose */ 3:
|
|
1068
|
-
message.purpose = reader.int32();
|
|
1069
|
-
break;
|
|
1070
|
-
default:
|
|
1071
|
-
let u = options.readUnknownField;
|
|
1072
|
-
if (u === "throw")
|
|
1073
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1074
|
-
let d = reader.skip(wireType);
|
|
1075
|
-
if (u !== false)
|
|
1076
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1077
|
-
}
|
|
1078
|
-
}
|
|
1079
|
-
return message;
|
|
1080
|
-
}
|
|
1081
|
-
internalBinaryWrite(message: CreateFlowRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1082
|
-
/* string name = 1; */
|
|
1083
|
-
if (message.name !== "")
|
|
1084
|
-
writer.tag(1, WireType.LengthDelimited).string(message.name);
|
|
1085
|
-
/* string description = 2; */
|
|
1086
|
-
if (message.description !== "")
|
|
1087
|
-
writer.tag(2, WireType.LengthDelimited).string(message.description);
|
|
1088
|
-
/* sid.v1.authn.FlowPurpose purpose = 3; */
|
|
1089
|
-
if (message.purpose !== 0)
|
|
1090
|
-
writer.tag(3, WireType.Varint).int32(message.purpose);
|
|
1091
|
-
let u = options.writeUnknownFields;
|
|
1092
|
-
if (u !== false)
|
|
1093
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1094
|
-
return writer;
|
|
1095
|
-
}
|
|
1096
|
-
}
|
|
1097
|
-
/**
|
|
1098
|
-
* @generated MessageType for protobuf message sid.v1.authn.CreateFlowRequest
|
|
1099
|
-
*/
|
|
1100
|
-
export const CreateFlowRequest = new CreateFlowRequest$Type();
|
|
1101
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
1102
|
-
class UpdateFlowRequest$Type extends MessageType<UpdateFlowRequest> {
|
|
1103
|
-
constructor() {
|
|
1104
|
-
super("sid.v1.authn.UpdateFlowRequest", [
|
|
1105
|
-
{ no: 1, name: "flow_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1106
|
-
{ no: 2, name: "name", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
1107
|
-
{ no: 3, name: "description", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }
|
|
1108
|
-
]);
|
|
1109
|
-
}
|
|
1110
|
-
create(value?: PartialMessage<UpdateFlowRequest>): UpdateFlowRequest {
|
|
1111
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1112
|
-
message.flowId = "";
|
|
1113
|
-
if (value !== undefined)
|
|
1114
|
-
reflectionMergePartial<UpdateFlowRequest>(this, message, value);
|
|
1115
|
-
return message;
|
|
1116
|
-
}
|
|
1117
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpdateFlowRequest): UpdateFlowRequest {
|
|
1118
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
1119
|
-
while (reader.pos < end) {
|
|
1120
|
-
let [fieldNo, wireType] = reader.tag();
|
|
1121
|
-
switch (fieldNo) {
|
|
1122
|
-
case /* string flow_id */ 1:
|
|
1123
|
-
message.flowId = reader.string();
|
|
1124
|
-
break;
|
|
1125
|
-
case /* optional string name */ 2:
|
|
1126
|
-
message.name = reader.string();
|
|
1127
|
-
break;
|
|
1128
|
-
case /* optional string description */ 3:
|
|
1129
|
-
message.description = reader.string();
|
|
1130
|
-
break;
|
|
1131
|
-
default:
|
|
1132
|
-
let u = options.readUnknownField;
|
|
1133
|
-
if (u === "throw")
|
|
1134
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1135
|
-
let d = reader.skip(wireType);
|
|
1136
|
-
if (u !== false)
|
|
1137
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1138
|
-
}
|
|
1139
|
-
}
|
|
1140
|
-
return message;
|
|
1141
|
-
}
|
|
1142
|
-
internalBinaryWrite(message: UpdateFlowRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1143
|
-
/* string flow_id = 1; */
|
|
1144
|
-
if (message.flowId !== "")
|
|
1145
|
-
writer.tag(1, WireType.LengthDelimited).string(message.flowId);
|
|
1146
|
-
/* optional string name = 2; */
|
|
1147
|
-
if (message.name !== undefined)
|
|
1148
|
-
writer.tag(2, WireType.LengthDelimited).string(message.name);
|
|
1149
|
-
/* optional string description = 3; */
|
|
1150
|
-
if (message.description !== undefined)
|
|
1151
|
-
writer.tag(3, WireType.LengthDelimited).string(message.description);
|
|
1152
|
-
let u = options.writeUnknownFields;
|
|
1153
|
-
if (u !== false)
|
|
1154
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1155
|
-
return writer;
|
|
1156
|
-
}
|
|
1157
|
-
}
|
|
1158
|
-
/**
|
|
1159
|
-
* @generated MessageType for protobuf message sid.v1.authn.UpdateFlowRequest
|
|
1160
|
-
*/
|
|
1161
|
-
export const UpdateFlowRequest = new UpdateFlowRequest$Type();
|
|
1162
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
1163
|
-
class DeleteFlowRequest$Type extends MessageType<DeleteFlowRequest> {
|
|
1164
|
-
constructor() {
|
|
1165
|
-
super("sid.v1.authn.DeleteFlowRequest", [
|
|
1166
|
-
{ no: 1, name: "flow_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
1167
|
-
]);
|
|
1168
|
-
}
|
|
1169
|
-
create(value?: PartialMessage<DeleteFlowRequest>): DeleteFlowRequest {
|
|
1170
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1171
|
-
message.flowId = "";
|
|
1172
|
-
if (value !== undefined)
|
|
1173
|
-
reflectionMergePartial<DeleteFlowRequest>(this, message, value);
|
|
1174
|
-
return message;
|
|
1175
|
-
}
|
|
1176
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteFlowRequest): DeleteFlowRequest {
|
|
1177
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
1178
|
-
while (reader.pos < end) {
|
|
1179
|
-
let [fieldNo, wireType] = reader.tag();
|
|
1180
|
-
switch (fieldNo) {
|
|
1181
|
-
case /* string flow_id */ 1:
|
|
1182
|
-
message.flowId = reader.string();
|
|
1183
|
-
break;
|
|
1184
|
-
default:
|
|
1185
|
-
let u = options.readUnknownField;
|
|
1186
|
-
if (u === "throw")
|
|
1187
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1188
|
-
let d = reader.skip(wireType);
|
|
1189
|
-
if (u !== false)
|
|
1190
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1191
|
-
}
|
|
1192
|
-
}
|
|
1193
|
-
return message;
|
|
1194
|
-
}
|
|
1195
|
-
internalBinaryWrite(message: DeleteFlowRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1196
|
-
/* string flow_id = 1; */
|
|
1197
|
-
if (message.flowId !== "")
|
|
1198
|
-
writer.tag(1, WireType.LengthDelimited).string(message.flowId);
|
|
1199
|
-
let u = options.writeUnknownFields;
|
|
1200
|
-
if (u !== false)
|
|
1201
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1202
|
-
return writer;
|
|
1203
|
-
}
|
|
1204
|
-
}
|
|
1205
|
-
/**
|
|
1206
|
-
* @generated MessageType for protobuf message sid.v1.authn.DeleteFlowRequest
|
|
1207
|
-
*/
|
|
1208
|
-
export const DeleteFlowRequest = new DeleteFlowRequest$Type();
|
|
1209
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
1210
|
-
class DuplicateFlowRequest$Type extends MessageType<DuplicateFlowRequest> {
|
|
1211
|
-
constructor() {
|
|
1212
|
-
super("sid.v1.authn.DuplicateFlowRequest", [
|
|
1213
|
-
{ no: 1, name: "flow_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1214
|
-
{ no: 2, name: "new_name", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
1215
|
-
]);
|
|
1216
|
-
}
|
|
1217
|
-
create(value?: PartialMessage<DuplicateFlowRequest>): DuplicateFlowRequest {
|
|
1218
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1219
|
-
message.flowId = "";
|
|
1220
|
-
message.newName = "";
|
|
1221
|
-
if (value !== undefined)
|
|
1222
|
-
reflectionMergePartial<DuplicateFlowRequest>(this, message, value);
|
|
1223
|
-
return message;
|
|
1224
|
-
}
|
|
1225
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DuplicateFlowRequest): DuplicateFlowRequest {
|
|
1226
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
1227
|
-
while (reader.pos < end) {
|
|
1228
|
-
let [fieldNo, wireType] = reader.tag();
|
|
1229
|
-
switch (fieldNo) {
|
|
1230
|
-
case /* string flow_id */ 1:
|
|
1231
|
-
message.flowId = reader.string();
|
|
1232
|
-
break;
|
|
1233
|
-
case /* string new_name */ 2:
|
|
1234
|
-
message.newName = reader.string();
|
|
1235
|
-
break;
|
|
1236
|
-
default:
|
|
1237
|
-
let u = options.readUnknownField;
|
|
1238
|
-
if (u === "throw")
|
|
1239
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1240
|
-
let d = reader.skip(wireType);
|
|
1241
|
-
if (u !== false)
|
|
1242
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1243
|
-
}
|
|
1244
|
-
}
|
|
1245
|
-
return message;
|
|
1246
|
-
}
|
|
1247
|
-
internalBinaryWrite(message: DuplicateFlowRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1248
|
-
/* string flow_id = 1; */
|
|
1249
|
-
if (message.flowId !== "")
|
|
1250
|
-
writer.tag(1, WireType.LengthDelimited).string(message.flowId);
|
|
1251
|
-
/* string new_name = 2; */
|
|
1252
|
-
if (message.newName !== "")
|
|
1253
|
-
writer.tag(2, WireType.LengthDelimited).string(message.newName);
|
|
1254
|
-
let u = options.writeUnknownFields;
|
|
1255
|
-
if (u !== false)
|
|
1256
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1257
|
-
return writer;
|
|
1258
|
-
}
|
|
1259
|
-
}
|
|
1260
|
-
/**
|
|
1261
|
-
* @generated MessageType for protobuf message sid.v1.authn.DuplicateFlowRequest
|
|
1262
|
-
*/
|
|
1263
|
-
export const DuplicateFlowRequest = new DuplicateFlowRequest$Type();
|
|
1264
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
1265
|
-
class BindFlowRequest$Type extends MessageType<BindFlowRequest> {
|
|
1266
|
-
constructor() {
|
|
1267
|
-
super("sid.v1.authn.BindFlowRequest", [
|
|
1268
|
-
{ no: 1, name: "flow_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1269
|
-
{ no: 2, name: "purpose", kind: "enum", T: () => ["sid.v1.authn.FlowPurpose", FlowPurpose, "FLOW_PURPOSE_"] }
|
|
1270
|
-
]);
|
|
1271
|
-
}
|
|
1272
|
-
create(value?: PartialMessage<BindFlowRequest>): BindFlowRequest {
|
|
1273
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1274
|
-
message.flowId = "";
|
|
1275
|
-
message.purpose = 0;
|
|
1276
|
-
if (value !== undefined)
|
|
1277
|
-
reflectionMergePartial<BindFlowRequest>(this, message, value);
|
|
1278
|
-
return message;
|
|
1279
|
-
}
|
|
1280
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: BindFlowRequest): BindFlowRequest {
|
|
1281
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
1282
|
-
while (reader.pos < end) {
|
|
1283
|
-
let [fieldNo, wireType] = reader.tag();
|
|
1284
|
-
switch (fieldNo) {
|
|
1285
|
-
case /* string flow_id */ 1:
|
|
1286
|
-
message.flowId = reader.string();
|
|
1287
|
-
break;
|
|
1288
|
-
case /* sid.v1.authn.FlowPurpose purpose */ 2:
|
|
1289
|
-
message.purpose = reader.int32();
|
|
1290
|
-
break;
|
|
1291
|
-
default:
|
|
1292
|
-
let u = options.readUnknownField;
|
|
1293
|
-
if (u === "throw")
|
|
1294
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1295
|
-
let d = reader.skip(wireType);
|
|
1296
|
-
if (u !== false)
|
|
1297
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1298
|
-
}
|
|
1299
|
-
}
|
|
1300
|
-
return message;
|
|
1301
|
-
}
|
|
1302
|
-
internalBinaryWrite(message: BindFlowRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1303
|
-
/* string flow_id = 1; */
|
|
1304
|
-
if (message.flowId !== "")
|
|
1305
|
-
writer.tag(1, WireType.LengthDelimited).string(message.flowId);
|
|
1306
|
-
/* sid.v1.authn.FlowPurpose purpose = 2; */
|
|
1307
|
-
if (message.purpose !== 0)
|
|
1308
|
-
writer.tag(2, WireType.Varint).int32(message.purpose);
|
|
1309
|
-
let u = options.writeUnknownFields;
|
|
1310
|
-
if (u !== false)
|
|
1311
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1312
|
-
return writer;
|
|
1313
|
-
}
|
|
1314
|
-
}
|
|
1315
|
-
/**
|
|
1316
|
-
* @generated MessageType for protobuf message sid.v1.authn.BindFlowRequest
|
|
1317
|
-
*/
|
|
1318
|
-
export const BindFlowRequest = new BindFlowRequest$Type();
|
|
1319
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
1320
|
-
class ExportBlueprintRequest$Type extends MessageType<ExportBlueprintRequest> {
|
|
1321
|
-
constructor() {
|
|
1322
|
-
super("sid.v1.authn.ExportBlueprintRequest", [
|
|
1323
|
-
{ no: 1, name: "flow_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
1324
|
-
]);
|
|
1325
|
-
}
|
|
1326
|
-
create(value?: PartialMessage<ExportBlueprintRequest>): ExportBlueprintRequest {
|
|
1327
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1328
|
-
message.flowId = "";
|
|
1329
|
-
if (value !== undefined)
|
|
1330
|
-
reflectionMergePartial<ExportBlueprintRequest>(this, message, value);
|
|
1331
|
-
return message;
|
|
1332
|
-
}
|
|
1333
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ExportBlueprintRequest): ExportBlueprintRequest {
|
|
1334
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
1335
|
-
while (reader.pos < end) {
|
|
1336
|
-
let [fieldNo, wireType] = reader.tag();
|
|
1337
|
-
switch (fieldNo) {
|
|
1338
|
-
case /* string flow_id */ 1:
|
|
1339
|
-
message.flowId = reader.string();
|
|
1340
|
-
break;
|
|
1341
|
-
default:
|
|
1342
|
-
let u = options.readUnknownField;
|
|
1343
|
-
if (u === "throw")
|
|
1344
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1345
|
-
let d = reader.skip(wireType);
|
|
1346
|
-
if (u !== false)
|
|
1347
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1348
|
-
}
|
|
1349
|
-
}
|
|
1350
|
-
return message;
|
|
1351
|
-
}
|
|
1352
|
-
internalBinaryWrite(message: ExportBlueprintRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1353
|
-
/* string flow_id = 1; */
|
|
1354
|
-
if (message.flowId !== "")
|
|
1355
|
-
writer.tag(1, WireType.LengthDelimited).string(message.flowId);
|
|
1356
|
-
let u = options.writeUnknownFields;
|
|
1357
|
-
if (u !== false)
|
|
1358
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1359
|
-
return writer;
|
|
1360
|
-
}
|
|
1361
|
-
}
|
|
1362
|
-
/**
|
|
1363
|
-
* @generated MessageType for protobuf message sid.v1.authn.ExportBlueprintRequest
|
|
1364
|
-
*/
|
|
1365
|
-
export const ExportBlueprintRequest = new ExportBlueprintRequest$Type();
|
|
1366
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
1367
|
-
class BlueprintResponse$Type extends MessageType<BlueprintResponse> {
|
|
1368
|
-
constructor() {
|
|
1369
|
-
super("sid.v1.authn.BlueprintResponse", [
|
|
1370
|
-
{ no: 1, name: "yaml", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
1371
|
-
]);
|
|
1372
|
-
}
|
|
1373
|
-
create(value?: PartialMessage<BlueprintResponse>): BlueprintResponse {
|
|
1374
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1375
|
-
message.yaml = "";
|
|
1376
|
-
if (value !== undefined)
|
|
1377
|
-
reflectionMergePartial<BlueprintResponse>(this, message, value);
|
|
1378
|
-
return message;
|
|
1379
|
-
}
|
|
1380
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: BlueprintResponse): BlueprintResponse {
|
|
1381
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
1382
|
-
while (reader.pos < end) {
|
|
1383
|
-
let [fieldNo, wireType] = reader.tag();
|
|
1384
|
-
switch (fieldNo) {
|
|
1385
|
-
case /* string yaml */ 1:
|
|
1386
|
-
message.yaml = reader.string();
|
|
1387
|
-
break;
|
|
1388
|
-
default:
|
|
1389
|
-
let u = options.readUnknownField;
|
|
1390
|
-
if (u === "throw")
|
|
1391
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1392
|
-
let d = reader.skip(wireType);
|
|
1393
|
-
if (u !== false)
|
|
1394
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1395
|
-
}
|
|
1396
|
-
}
|
|
1397
|
-
return message;
|
|
1398
|
-
}
|
|
1399
|
-
internalBinaryWrite(message: BlueprintResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1400
|
-
/* string yaml = 1; */
|
|
1401
|
-
if (message.yaml !== "")
|
|
1402
|
-
writer.tag(1, WireType.LengthDelimited).string(message.yaml);
|
|
1403
|
-
let u = options.writeUnknownFields;
|
|
1404
|
-
if (u !== false)
|
|
1405
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1406
|
-
return writer;
|
|
1407
|
-
}
|
|
1408
|
-
}
|
|
1409
|
-
/**
|
|
1410
|
-
* @generated MessageType for protobuf message sid.v1.authn.BlueprintResponse
|
|
1411
|
-
*/
|
|
1412
|
-
export const BlueprintResponse = new BlueprintResponse$Type();
|
|
1413
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
1414
|
-
class ImportBlueprintRequest$Type extends MessageType<ImportBlueprintRequest> {
|
|
1415
|
-
constructor() {
|
|
1416
|
-
super("sid.v1.authn.ImportBlueprintRequest", [
|
|
1417
|
-
{ no: 1, name: "yaml", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1418
|
-
{ no: 2, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
1419
|
-
]);
|
|
1420
|
-
}
|
|
1421
|
-
create(value?: PartialMessage<ImportBlueprintRequest>): ImportBlueprintRequest {
|
|
1422
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1423
|
-
message.yaml = "";
|
|
1424
|
-
message.name = "";
|
|
1425
|
-
if (value !== undefined)
|
|
1426
|
-
reflectionMergePartial<ImportBlueprintRequest>(this, message, value);
|
|
1427
|
-
return message;
|
|
1428
|
-
}
|
|
1429
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ImportBlueprintRequest): ImportBlueprintRequest {
|
|
1430
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
1431
|
-
while (reader.pos < end) {
|
|
1432
|
-
let [fieldNo, wireType] = reader.tag();
|
|
1433
|
-
switch (fieldNo) {
|
|
1434
|
-
case /* string yaml */ 1:
|
|
1435
|
-
message.yaml = reader.string();
|
|
1436
|
-
break;
|
|
1437
|
-
case /* string name */ 2:
|
|
1438
|
-
message.name = reader.string();
|
|
1439
|
-
break;
|
|
1440
|
-
default:
|
|
1441
|
-
let u = options.readUnknownField;
|
|
1442
|
-
if (u === "throw")
|
|
1443
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1444
|
-
let d = reader.skip(wireType);
|
|
1445
|
-
if (u !== false)
|
|
1446
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1447
|
-
}
|
|
1448
|
-
}
|
|
1449
|
-
return message;
|
|
1450
|
-
}
|
|
1451
|
-
internalBinaryWrite(message: ImportBlueprintRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1452
|
-
/* string yaml = 1; */
|
|
1453
|
-
if (message.yaml !== "")
|
|
1454
|
-
writer.tag(1, WireType.LengthDelimited).string(message.yaml);
|
|
1455
|
-
/* string name = 2; */
|
|
1456
|
-
if (message.name !== "")
|
|
1457
|
-
writer.tag(2, WireType.LengthDelimited).string(message.name);
|
|
1458
|
-
let u = options.writeUnknownFields;
|
|
1459
|
-
if (u !== false)
|
|
1460
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1461
|
-
return writer;
|
|
1462
|
-
}
|
|
1463
|
-
}
|
|
1464
|
-
/**
|
|
1465
|
-
* @generated MessageType for protobuf message sid.v1.authn.ImportBlueprintRequest
|
|
1466
|
-
*/
|
|
1467
|
-
export const ImportBlueprintRequest = new ImportBlueprintRequest$Type();
|
|
1468
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
1469
|
-
class StepBinding$Type extends MessageType<StepBinding> {
|
|
1470
|
-
constructor() {
|
|
1471
|
-
super("sid.v1.authn.StepBinding", [
|
|
1472
|
-
{ no: 1, name: "id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1473
|
-
{ no: 2, name: "flow_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1474
|
-
{ no: 3, name: "step_type", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1475
|
-
{ no: 4, name: "display_name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1476
|
-
{ no: 5, name: "requirement", kind: "enum", T: () => ["sid.v1.authn.StepRequirement", StepRequirement, "STEP_REQUIREMENT_"] },
|
|
1477
|
-
{ no: 6, name: "order", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
|
|
1478
|
-
{ no: 7, name: "config", kind: "message", T: () => Struct }
|
|
1479
|
-
]);
|
|
1480
|
-
}
|
|
1481
|
-
create(value?: PartialMessage<StepBinding>): StepBinding {
|
|
1482
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1483
|
-
message.id = "";
|
|
1484
|
-
message.flowId = "";
|
|
1485
|
-
message.stepType = "";
|
|
1486
|
-
message.displayName = "";
|
|
1487
|
-
message.requirement = 0;
|
|
1488
|
-
message.order = 0;
|
|
1489
|
-
if (value !== undefined)
|
|
1490
|
-
reflectionMergePartial<StepBinding>(this, message, value);
|
|
1491
|
-
return message;
|
|
1492
|
-
}
|
|
1493
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: StepBinding): StepBinding {
|
|
1494
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
1495
|
-
while (reader.pos < end) {
|
|
1496
|
-
let [fieldNo, wireType] = reader.tag();
|
|
1497
|
-
switch (fieldNo) {
|
|
1498
|
-
case /* string id */ 1:
|
|
1499
|
-
message.id = reader.string();
|
|
1500
|
-
break;
|
|
1501
|
-
case /* string flow_id */ 2:
|
|
1502
|
-
message.flowId = reader.string();
|
|
1503
|
-
break;
|
|
1504
|
-
case /* string step_type */ 3:
|
|
1505
|
-
message.stepType = reader.string();
|
|
1506
|
-
break;
|
|
1507
|
-
case /* string display_name */ 4:
|
|
1508
|
-
message.displayName = reader.string();
|
|
1509
|
-
break;
|
|
1510
|
-
case /* sid.v1.authn.StepRequirement requirement */ 5:
|
|
1511
|
-
message.requirement = reader.int32();
|
|
1512
|
-
break;
|
|
1513
|
-
case /* int32 order */ 6:
|
|
1514
|
-
message.order = reader.int32();
|
|
1515
|
-
break;
|
|
1516
|
-
case /* google.protobuf.Struct config */ 7:
|
|
1517
|
-
message.config = Struct.internalBinaryRead(reader, reader.uint32(), options, message.config);
|
|
1518
|
-
break;
|
|
1519
|
-
default:
|
|
1520
|
-
let u = options.readUnknownField;
|
|
1521
|
-
if (u === "throw")
|
|
1522
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1523
|
-
let d = reader.skip(wireType);
|
|
1524
|
-
if (u !== false)
|
|
1525
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1526
|
-
}
|
|
1527
|
-
}
|
|
1528
|
-
return message;
|
|
1529
|
-
}
|
|
1530
|
-
internalBinaryWrite(message: StepBinding, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1531
|
-
/* string id = 1; */
|
|
1532
|
-
if (message.id !== "")
|
|
1533
|
-
writer.tag(1, WireType.LengthDelimited).string(message.id);
|
|
1534
|
-
/* string flow_id = 2; */
|
|
1535
|
-
if (message.flowId !== "")
|
|
1536
|
-
writer.tag(2, WireType.LengthDelimited).string(message.flowId);
|
|
1537
|
-
/* string step_type = 3; */
|
|
1538
|
-
if (message.stepType !== "")
|
|
1539
|
-
writer.tag(3, WireType.LengthDelimited).string(message.stepType);
|
|
1540
|
-
/* string display_name = 4; */
|
|
1541
|
-
if (message.displayName !== "")
|
|
1542
|
-
writer.tag(4, WireType.LengthDelimited).string(message.displayName);
|
|
1543
|
-
/* sid.v1.authn.StepRequirement requirement = 5; */
|
|
1544
|
-
if (message.requirement !== 0)
|
|
1545
|
-
writer.tag(5, WireType.Varint).int32(message.requirement);
|
|
1546
|
-
/* int32 order = 6; */
|
|
1547
|
-
if (message.order !== 0)
|
|
1548
|
-
writer.tag(6, WireType.Varint).int32(message.order);
|
|
1549
|
-
/* google.protobuf.Struct config = 7; */
|
|
1550
|
-
if (message.config)
|
|
1551
|
-
Struct.internalBinaryWrite(message.config, writer.tag(7, WireType.LengthDelimited).fork(), options).join();
|
|
1552
|
-
let u = options.writeUnknownFields;
|
|
1553
|
-
if (u !== false)
|
|
1554
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1555
|
-
return writer;
|
|
1556
|
-
}
|
|
1557
|
-
}
|
|
1558
|
-
/**
|
|
1559
|
-
* @generated MessageType for protobuf message sid.v1.authn.StepBinding
|
|
1560
|
-
*/
|
|
1561
|
-
export const StepBinding = new StepBinding$Type();
|
|
1562
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
1563
|
-
class ListStepBindingsRequest$Type extends MessageType<ListStepBindingsRequest> {
|
|
1564
|
-
constructor() {
|
|
1565
|
-
super("sid.v1.authn.ListStepBindingsRequest", [
|
|
1566
|
-
{ no: 1, name: "flow_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
1567
|
-
]);
|
|
1568
|
-
}
|
|
1569
|
-
create(value?: PartialMessage<ListStepBindingsRequest>): ListStepBindingsRequest {
|
|
1570
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1571
|
-
message.flowId = "";
|
|
1572
|
-
if (value !== undefined)
|
|
1573
|
-
reflectionMergePartial<ListStepBindingsRequest>(this, message, value);
|
|
1574
|
-
return message;
|
|
1575
|
-
}
|
|
1576
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListStepBindingsRequest): ListStepBindingsRequest {
|
|
1577
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
1578
|
-
while (reader.pos < end) {
|
|
1579
|
-
let [fieldNo, wireType] = reader.tag();
|
|
1580
|
-
switch (fieldNo) {
|
|
1581
|
-
case /* string flow_id */ 1:
|
|
1582
|
-
message.flowId = reader.string();
|
|
1583
|
-
break;
|
|
1584
|
-
default:
|
|
1585
|
-
let u = options.readUnknownField;
|
|
1586
|
-
if (u === "throw")
|
|
1587
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1588
|
-
let d = reader.skip(wireType);
|
|
1589
|
-
if (u !== false)
|
|
1590
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1591
|
-
}
|
|
1592
|
-
}
|
|
1593
|
-
return message;
|
|
1594
|
-
}
|
|
1595
|
-
internalBinaryWrite(message: ListStepBindingsRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1596
|
-
/* string flow_id = 1; */
|
|
1597
|
-
if (message.flowId !== "")
|
|
1598
|
-
writer.tag(1, WireType.LengthDelimited).string(message.flowId);
|
|
1599
|
-
let u = options.writeUnknownFields;
|
|
1600
|
-
if (u !== false)
|
|
1601
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1602
|
-
return writer;
|
|
1603
|
-
}
|
|
1604
|
-
}
|
|
1605
|
-
/**
|
|
1606
|
-
* @generated MessageType for protobuf message sid.v1.authn.ListStepBindingsRequest
|
|
1607
|
-
*/
|
|
1608
|
-
export const ListStepBindingsRequest = new ListStepBindingsRequest$Type();
|
|
1609
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
1610
|
-
class ListStepBindingsResponse$Type extends MessageType<ListStepBindingsResponse> {
|
|
1611
|
-
constructor() {
|
|
1612
|
-
super("sid.v1.authn.ListStepBindingsResponse", [
|
|
1613
|
-
{ no: 1, name: "bindings", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => StepBinding }
|
|
1614
|
-
]);
|
|
1615
|
-
}
|
|
1616
|
-
create(value?: PartialMessage<ListStepBindingsResponse>): ListStepBindingsResponse {
|
|
1617
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1618
|
-
message.bindings = [];
|
|
1619
|
-
if (value !== undefined)
|
|
1620
|
-
reflectionMergePartial<ListStepBindingsResponse>(this, message, value);
|
|
1621
|
-
return message;
|
|
1622
|
-
}
|
|
1623
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListStepBindingsResponse): ListStepBindingsResponse {
|
|
1624
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
1625
|
-
while (reader.pos < end) {
|
|
1626
|
-
let [fieldNo, wireType] = reader.tag();
|
|
1627
|
-
switch (fieldNo) {
|
|
1628
|
-
case /* repeated sid.v1.authn.StepBinding bindings */ 1:
|
|
1629
|
-
message.bindings.push(StepBinding.internalBinaryRead(reader, reader.uint32(), options));
|
|
1630
|
-
break;
|
|
1631
|
-
default:
|
|
1632
|
-
let u = options.readUnknownField;
|
|
1633
|
-
if (u === "throw")
|
|
1634
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1635
|
-
let d = reader.skip(wireType);
|
|
1636
|
-
if (u !== false)
|
|
1637
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1638
|
-
}
|
|
1639
|
-
}
|
|
1640
|
-
return message;
|
|
1641
|
-
}
|
|
1642
|
-
internalBinaryWrite(message: ListStepBindingsResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1643
|
-
/* repeated sid.v1.authn.StepBinding bindings = 1; */
|
|
1644
|
-
for (let i = 0; i < message.bindings.length; i++)
|
|
1645
|
-
StepBinding.internalBinaryWrite(message.bindings[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
1646
|
-
let u = options.writeUnknownFields;
|
|
1647
|
-
if (u !== false)
|
|
1648
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1649
|
-
return writer;
|
|
1650
|
-
}
|
|
1651
|
-
}
|
|
1652
|
-
/**
|
|
1653
|
-
* @generated MessageType for protobuf message sid.v1.authn.ListStepBindingsResponse
|
|
1654
|
-
*/
|
|
1655
|
-
export const ListStepBindingsResponse = new ListStepBindingsResponse$Type();
|
|
1656
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
1657
|
-
class AddStepBindingRequest$Type extends MessageType<AddStepBindingRequest> {
|
|
1658
|
-
constructor() {
|
|
1659
|
-
super("sid.v1.authn.AddStepBindingRequest", [
|
|
1660
|
-
{ no: 1, name: "flow_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1661
|
-
{ no: 2, name: "step_type", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1662
|
-
{ no: 3, name: "display_name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1663
|
-
{ no: 4, name: "requirement", kind: "enum", T: () => ["sid.v1.authn.StepRequirement", StepRequirement, "STEP_REQUIREMENT_"] },
|
|
1664
|
-
{ no: 5, name: "order", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
|
|
1665
|
-
{ no: 6, name: "config", kind: "message", T: () => Struct }
|
|
1666
|
-
]);
|
|
1667
|
-
}
|
|
1668
|
-
create(value?: PartialMessage<AddStepBindingRequest>): AddStepBindingRequest {
|
|
1669
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1670
|
-
message.flowId = "";
|
|
1671
|
-
message.stepType = "";
|
|
1672
|
-
message.displayName = "";
|
|
1673
|
-
message.requirement = 0;
|
|
1674
|
-
message.order = 0;
|
|
1675
|
-
if (value !== undefined)
|
|
1676
|
-
reflectionMergePartial<AddStepBindingRequest>(this, message, value);
|
|
1677
|
-
return message;
|
|
1678
|
-
}
|
|
1679
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AddStepBindingRequest): AddStepBindingRequest {
|
|
1680
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
1681
|
-
while (reader.pos < end) {
|
|
1682
|
-
let [fieldNo, wireType] = reader.tag();
|
|
1683
|
-
switch (fieldNo) {
|
|
1684
|
-
case /* string flow_id */ 1:
|
|
1685
|
-
message.flowId = reader.string();
|
|
1686
|
-
break;
|
|
1687
|
-
case /* string step_type */ 2:
|
|
1688
|
-
message.stepType = reader.string();
|
|
1689
|
-
break;
|
|
1690
|
-
case /* string display_name */ 3:
|
|
1691
|
-
message.displayName = reader.string();
|
|
1692
|
-
break;
|
|
1693
|
-
case /* sid.v1.authn.StepRequirement requirement */ 4:
|
|
1694
|
-
message.requirement = reader.int32();
|
|
1695
|
-
break;
|
|
1696
|
-
case /* int32 order */ 5:
|
|
1697
|
-
message.order = reader.int32();
|
|
1698
|
-
break;
|
|
1699
|
-
case /* google.protobuf.Struct config */ 6:
|
|
1700
|
-
message.config = Struct.internalBinaryRead(reader, reader.uint32(), options, message.config);
|
|
1701
|
-
break;
|
|
1702
|
-
default:
|
|
1703
|
-
let u = options.readUnknownField;
|
|
1704
|
-
if (u === "throw")
|
|
1705
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1706
|
-
let d = reader.skip(wireType);
|
|
1707
|
-
if (u !== false)
|
|
1708
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1709
|
-
}
|
|
1710
|
-
}
|
|
1711
|
-
return message;
|
|
1712
|
-
}
|
|
1713
|
-
internalBinaryWrite(message: AddStepBindingRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1714
|
-
/* string flow_id = 1; */
|
|
1715
|
-
if (message.flowId !== "")
|
|
1716
|
-
writer.tag(1, WireType.LengthDelimited).string(message.flowId);
|
|
1717
|
-
/* string step_type = 2; */
|
|
1718
|
-
if (message.stepType !== "")
|
|
1719
|
-
writer.tag(2, WireType.LengthDelimited).string(message.stepType);
|
|
1720
|
-
/* string display_name = 3; */
|
|
1721
|
-
if (message.displayName !== "")
|
|
1722
|
-
writer.tag(3, WireType.LengthDelimited).string(message.displayName);
|
|
1723
|
-
/* sid.v1.authn.StepRequirement requirement = 4; */
|
|
1724
|
-
if (message.requirement !== 0)
|
|
1725
|
-
writer.tag(4, WireType.Varint).int32(message.requirement);
|
|
1726
|
-
/* int32 order = 5; */
|
|
1727
|
-
if (message.order !== 0)
|
|
1728
|
-
writer.tag(5, WireType.Varint).int32(message.order);
|
|
1729
|
-
/* google.protobuf.Struct config = 6; */
|
|
1730
|
-
if (message.config)
|
|
1731
|
-
Struct.internalBinaryWrite(message.config, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
|
1732
|
-
let u = options.writeUnknownFields;
|
|
1733
|
-
if (u !== false)
|
|
1734
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1735
|
-
return writer;
|
|
1736
|
-
}
|
|
1737
|
-
}
|
|
1738
|
-
/**
|
|
1739
|
-
* @generated MessageType for protobuf message sid.v1.authn.AddStepBindingRequest
|
|
1740
|
-
*/
|
|
1741
|
-
export const AddStepBindingRequest = new AddStepBindingRequest$Type();
|
|
1742
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
1743
|
-
class UpdateStepBindingRequest$Type extends MessageType<UpdateStepBindingRequest> {
|
|
1744
|
-
constructor() {
|
|
1745
|
-
super("sid.v1.authn.UpdateStepBindingRequest", [
|
|
1746
|
-
{ no: 1, name: "flow_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1747
|
-
{ no: 2, name: "binding_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1748
|
-
{ no: 3, name: "display_name", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
1749
|
-
{ no: 4, name: "requirement", kind: "enum", opt: true, T: () => ["sid.v1.authn.StepRequirement", StepRequirement, "STEP_REQUIREMENT_"] },
|
|
1750
|
-
{ no: 5, name: "order", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/ },
|
|
1751
|
-
{ no: 6, name: "config", kind: "message", T: () => Struct }
|
|
1752
|
-
]);
|
|
1753
|
-
}
|
|
1754
|
-
create(value?: PartialMessage<UpdateStepBindingRequest>): UpdateStepBindingRequest {
|
|
1755
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1756
|
-
message.flowId = "";
|
|
1757
|
-
message.bindingId = "";
|
|
1758
|
-
if (value !== undefined)
|
|
1759
|
-
reflectionMergePartial<UpdateStepBindingRequest>(this, message, value);
|
|
1760
|
-
return message;
|
|
1761
|
-
}
|
|
1762
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpdateStepBindingRequest): UpdateStepBindingRequest {
|
|
1763
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
1764
|
-
while (reader.pos < end) {
|
|
1765
|
-
let [fieldNo, wireType] = reader.tag();
|
|
1766
|
-
switch (fieldNo) {
|
|
1767
|
-
case /* string flow_id */ 1:
|
|
1768
|
-
message.flowId = reader.string();
|
|
1769
|
-
break;
|
|
1770
|
-
case /* string binding_id */ 2:
|
|
1771
|
-
message.bindingId = reader.string();
|
|
1772
|
-
break;
|
|
1773
|
-
case /* optional string display_name */ 3:
|
|
1774
|
-
message.displayName = reader.string();
|
|
1775
|
-
break;
|
|
1776
|
-
case /* optional sid.v1.authn.StepRequirement requirement */ 4:
|
|
1777
|
-
message.requirement = reader.int32();
|
|
1778
|
-
break;
|
|
1779
|
-
case /* optional int32 order */ 5:
|
|
1780
|
-
message.order = reader.int32();
|
|
1781
|
-
break;
|
|
1782
|
-
case /* google.protobuf.Struct config */ 6:
|
|
1783
|
-
message.config = Struct.internalBinaryRead(reader, reader.uint32(), options, message.config);
|
|
1784
|
-
break;
|
|
1785
|
-
default:
|
|
1786
|
-
let u = options.readUnknownField;
|
|
1787
|
-
if (u === "throw")
|
|
1788
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1789
|
-
let d = reader.skip(wireType);
|
|
1790
|
-
if (u !== false)
|
|
1791
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1792
|
-
}
|
|
1793
|
-
}
|
|
1794
|
-
return message;
|
|
1795
|
-
}
|
|
1796
|
-
internalBinaryWrite(message: UpdateStepBindingRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1797
|
-
/* string flow_id = 1; */
|
|
1798
|
-
if (message.flowId !== "")
|
|
1799
|
-
writer.tag(1, WireType.LengthDelimited).string(message.flowId);
|
|
1800
|
-
/* string binding_id = 2; */
|
|
1801
|
-
if (message.bindingId !== "")
|
|
1802
|
-
writer.tag(2, WireType.LengthDelimited).string(message.bindingId);
|
|
1803
|
-
/* optional string display_name = 3; */
|
|
1804
|
-
if (message.displayName !== undefined)
|
|
1805
|
-
writer.tag(3, WireType.LengthDelimited).string(message.displayName);
|
|
1806
|
-
/* optional sid.v1.authn.StepRequirement requirement = 4; */
|
|
1807
|
-
if (message.requirement !== undefined)
|
|
1808
|
-
writer.tag(4, WireType.Varint).int32(message.requirement);
|
|
1809
|
-
/* optional int32 order = 5; */
|
|
1810
|
-
if (message.order !== undefined)
|
|
1811
|
-
writer.tag(5, WireType.Varint).int32(message.order);
|
|
1812
|
-
/* google.protobuf.Struct config = 6; */
|
|
1813
|
-
if (message.config)
|
|
1814
|
-
Struct.internalBinaryWrite(message.config, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
|
1815
|
-
let u = options.writeUnknownFields;
|
|
1816
|
-
if (u !== false)
|
|
1817
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1818
|
-
return writer;
|
|
1819
|
-
}
|
|
1820
|
-
}
|
|
1821
|
-
/**
|
|
1822
|
-
* @generated MessageType for protobuf message sid.v1.authn.UpdateStepBindingRequest
|
|
1823
|
-
*/
|
|
1824
|
-
export const UpdateStepBindingRequest = new UpdateStepBindingRequest$Type();
|
|
1825
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
1826
|
-
class RemoveStepBindingRequest$Type extends MessageType<RemoveStepBindingRequest> {
|
|
1827
|
-
constructor() {
|
|
1828
|
-
super("sid.v1.authn.RemoveStepBindingRequest", [
|
|
1829
|
-
{ no: 1, name: "flow_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1830
|
-
{ no: 2, name: "binding_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
1831
|
-
]);
|
|
1832
|
-
}
|
|
1833
|
-
create(value?: PartialMessage<RemoveStepBindingRequest>): RemoveStepBindingRequest {
|
|
1834
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1835
|
-
message.flowId = "";
|
|
1836
|
-
message.bindingId = "";
|
|
1837
|
-
if (value !== undefined)
|
|
1838
|
-
reflectionMergePartial<RemoveStepBindingRequest>(this, message, value);
|
|
1839
|
-
return message;
|
|
1840
|
-
}
|
|
1841
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RemoveStepBindingRequest): RemoveStepBindingRequest {
|
|
1842
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
1843
|
-
while (reader.pos < end) {
|
|
1844
|
-
let [fieldNo, wireType] = reader.tag();
|
|
1845
|
-
switch (fieldNo) {
|
|
1846
|
-
case /* string flow_id */ 1:
|
|
1847
|
-
message.flowId = reader.string();
|
|
1848
|
-
break;
|
|
1849
|
-
case /* string binding_id */ 2:
|
|
1850
|
-
message.bindingId = reader.string();
|
|
1851
|
-
break;
|
|
1852
|
-
default:
|
|
1853
|
-
let u = options.readUnknownField;
|
|
1854
|
-
if (u === "throw")
|
|
1855
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1856
|
-
let d = reader.skip(wireType);
|
|
1857
|
-
if (u !== false)
|
|
1858
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1859
|
-
}
|
|
1860
|
-
}
|
|
1861
|
-
return message;
|
|
1862
|
-
}
|
|
1863
|
-
internalBinaryWrite(message: RemoveStepBindingRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1864
|
-
/* string flow_id = 1; */
|
|
1865
|
-
if (message.flowId !== "")
|
|
1866
|
-
writer.tag(1, WireType.LengthDelimited).string(message.flowId);
|
|
1867
|
-
/* string binding_id = 2; */
|
|
1868
|
-
if (message.bindingId !== "")
|
|
1869
|
-
writer.tag(2, WireType.LengthDelimited).string(message.bindingId);
|
|
1870
|
-
let u = options.writeUnknownFields;
|
|
1871
|
-
if (u !== false)
|
|
1872
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1873
|
-
return writer;
|
|
1874
|
-
}
|
|
1875
|
-
}
|
|
1876
|
-
/**
|
|
1877
|
-
* @generated MessageType for protobuf message sid.v1.authn.RemoveStepBindingRequest
|
|
1878
|
-
*/
|
|
1879
|
-
export const RemoveStepBindingRequest = new RemoveStepBindingRequest$Type();
|
|
1880
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
1881
|
-
class ReorderStepBindingsRequest$Type extends MessageType<ReorderStepBindingsRequest> {
|
|
1882
|
-
constructor() {
|
|
1883
|
-
super("sid.v1.authn.ReorderStepBindingsRequest", [
|
|
1884
|
-
{ no: 1, name: "flow_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1885
|
-
{ no: 2, name: "binding_ids", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }
|
|
1886
|
-
]);
|
|
1887
|
-
}
|
|
1888
|
-
create(value?: PartialMessage<ReorderStepBindingsRequest>): ReorderStepBindingsRequest {
|
|
1889
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1890
|
-
message.flowId = "";
|
|
1891
|
-
message.bindingIds = [];
|
|
1892
|
-
if (value !== undefined)
|
|
1893
|
-
reflectionMergePartial<ReorderStepBindingsRequest>(this, message, value);
|
|
1894
|
-
return message;
|
|
1895
|
-
}
|
|
1896
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ReorderStepBindingsRequest): ReorderStepBindingsRequest {
|
|
1897
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
1898
|
-
while (reader.pos < end) {
|
|
1899
|
-
let [fieldNo, wireType] = reader.tag();
|
|
1900
|
-
switch (fieldNo) {
|
|
1901
|
-
case /* string flow_id */ 1:
|
|
1902
|
-
message.flowId = reader.string();
|
|
1903
|
-
break;
|
|
1904
|
-
case /* repeated string binding_ids */ 2:
|
|
1905
|
-
message.bindingIds.push(reader.string());
|
|
1906
|
-
break;
|
|
1907
|
-
default:
|
|
1908
|
-
let u = options.readUnknownField;
|
|
1909
|
-
if (u === "throw")
|
|
1910
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1911
|
-
let d = reader.skip(wireType);
|
|
1912
|
-
if (u !== false)
|
|
1913
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1914
|
-
}
|
|
1915
|
-
}
|
|
1916
|
-
return message;
|
|
1917
|
-
}
|
|
1918
|
-
internalBinaryWrite(message: ReorderStepBindingsRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1919
|
-
/* string flow_id = 1; */
|
|
1920
|
-
if (message.flowId !== "")
|
|
1921
|
-
writer.tag(1, WireType.LengthDelimited).string(message.flowId);
|
|
1922
|
-
/* repeated string binding_ids = 2; */
|
|
1923
|
-
for (let i = 0; i < message.bindingIds.length; i++)
|
|
1924
|
-
writer.tag(2, WireType.LengthDelimited).string(message.bindingIds[i]);
|
|
1925
|
-
let u = options.writeUnknownFields;
|
|
1926
|
-
if (u !== false)
|
|
1927
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1928
|
-
return writer;
|
|
1929
|
-
}
|
|
1930
|
-
}
|
|
1931
|
-
/**
|
|
1932
|
-
* @generated MessageType for protobuf message sid.v1.authn.ReorderStepBindingsRequest
|
|
1933
|
-
*/
|
|
1934
|
-
export const ReorderStepBindingsRequest = new ReorderStepBindingsRequest$Type();
|
|
1935
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
1936
|
-
class StepType$Type extends MessageType<StepType> {
|
|
1937
|
-
constructor() {
|
|
1938
|
-
super("sid.v1.authn.StepType", [
|
|
1939
|
-
{ no: 1, name: "type", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1940
|
-
{ no: 2, name: "display_name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1941
|
-
{ no: 3, name: "description", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1942
|
-
{ no: 4, name: "category", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1943
|
-
{ no: 6, name: "configurable", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
|
|
1944
|
-
]);
|
|
1945
|
-
}
|
|
1946
|
-
create(value?: PartialMessage<StepType>): StepType {
|
|
1947
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1948
|
-
message.type = "";
|
|
1949
|
-
message.displayName = "";
|
|
1950
|
-
message.description = "";
|
|
1951
|
-
message.category = "";
|
|
1952
|
-
message.configurable = false;
|
|
1953
|
-
if (value !== undefined)
|
|
1954
|
-
reflectionMergePartial<StepType>(this, message, value);
|
|
1955
|
-
return message;
|
|
1956
|
-
}
|
|
1957
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: StepType): StepType {
|
|
1958
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
1959
|
-
while (reader.pos < end) {
|
|
1960
|
-
let [fieldNo, wireType] = reader.tag();
|
|
1961
|
-
switch (fieldNo) {
|
|
1962
|
-
case /* string type */ 1:
|
|
1963
|
-
message.type = reader.string();
|
|
1964
|
-
break;
|
|
1965
|
-
case /* string display_name */ 2:
|
|
1966
|
-
message.displayName = reader.string();
|
|
1967
|
-
break;
|
|
1968
|
-
case /* string description */ 3:
|
|
1969
|
-
message.description = reader.string();
|
|
1970
|
-
break;
|
|
1971
|
-
case /* string category */ 4:
|
|
1972
|
-
message.category = reader.string();
|
|
1973
|
-
break;
|
|
1974
|
-
case /* bool configurable */ 6:
|
|
1975
|
-
message.configurable = reader.bool();
|
|
1976
|
-
break;
|
|
1977
|
-
default:
|
|
1978
|
-
let u = options.readUnknownField;
|
|
1979
|
-
if (u === "throw")
|
|
1980
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1981
|
-
let d = reader.skip(wireType);
|
|
1982
|
-
if (u !== false)
|
|
1983
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1984
|
-
}
|
|
1985
|
-
}
|
|
1986
|
-
return message;
|
|
1987
|
-
}
|
|
1988
|
-
internalBinaryWrite(message: StepType, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1989
|
-
/* string type = 1; */
|
|
1990
|
-
if (message.type !== "")
|
|
1991
|
-
writer.tag(1, WireType.LengthDelimited).string(message.type);
|
|
1992
|
-
/* string display_name = 2; */
|
|
1993
|
-
if (message.displayName !== "")
|
|
1994
|
-
writer.tag(2, WireType.LengthDelimited).string(message.displayName);
|
|
1995
|
-
/* string description = 3; */
|
|
1996
|
-
if (message.description !== "")
|
|
1997
|
-
writer.tag(3, WireType.LengthDelimited).string(message.description);
|
|
1998
|
-
/* string category = 4; */
|
|
1999
|
-
if (message.category !== "")
|
|
2000
|
-
writer.tag(4, WireType.LengthDelimited).string(message.category);
|
|
2001
|
-
/* bool configurable = 6; */
|
|
2002
|
-
if (message.configurable !== false)
|
|
2003
|
-
writer.tag(6, WireType.Varint).bool(message.configurable);
|
|
2004
|
-
let u = options.writeUnknownFields;
|
|
2005
|
-
if (u !== false)
|
|
2006
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
2007
|
-
return writer;
|
|
2008
|
-
}
|
|
2009
|
-
}
|
|
2010
|
-
/**
|
|
2011
|
-
* @generated MessageType for protobuf message sid.v1.authn.StepType
|
|
2012
|
-
*/
|
|
2013
|
-
export const StepType = new StepType$Type();
|
|
2014
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
2015
|
-
class ListStepTypesResponse$Type extends MessageType<ListStepTypesResponse> {
|
|
2016
|
-
constructor() {
|
|
2017
|
-
super("sid.v1.authn.ListStepTypesResponse", [
|
|
2018
|
-
{ no: 1, name: "types", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => StepType }
|
|
2019
|
-
]);
|
|
2020
|
-
}
|
|
2021
|
-
create(value?: PartialMessage<ListStepTypesResponse>): ListStepTypesResponse {
|
|
2022
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
2023
|
-
message.types = [];
|
|
2024
|
-
if (value !== undefined)
|
|
2025
|
-
reflectionMergePartial<ListStepTypesResponse>(this, message, value);
|
|
2026
|
-
return message;
|
|
2027
|
-
}
|
|
2028
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListStepTypesResponse): ListStepTypesResponse {
|
|
2029
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
2030
|
-
while (reader.pos < end) {
|
|
2031
|
-
let [fieldNo, wireType] = reader.tag();
|
|
2032
|
-
switch (fieldNo) {
|
|
2033
|
-
case /* repeated sid.v1.authn.StepType types */ 1:
|
|
2034
|
-
message.types.push(StepType.internalBinaryRead(reader, reader.uint32(), options));
|
|
2035
|
-
break;
|
|
2036
|
-
default:
|
|
2037
|
-
let u = options.readUnknownField;
|
|
2038
|
-
if (u === "throw")
|
|
2039
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
2040
|
-
let d = reader.skip(wireType);
|
|
2041
|
-
if (u !== false)
|
|
2042
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
2043
|
-
}
|
|
2044
|
-
}
|
|
2045
|
-
return message;
|
|
2046
|
-
}
|
|
2047
|
-
internalBinaryWrite(message: ListStepTypesResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
2048
|
-
/* repeated sid.v1.authn.StepType types = 1; */
|
|
2049
|
-
for (let i = 0; i < message.types.length; i++)
|
|
2050
|
-
StepType.internalBinaryWrite(message.types[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
2051
|
-
let u = options.writeUnknownFields;
|
|
2052
|
-
if (u !== false)
|
|
2053
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
2054
|
-
return writer;
|
|
2055
|
-
}
|
|
2056
|
-
}
|
|
2057
|
-
/**
|
|
2058
|
-
* @generated MessageType for protobuf message sid.v1.authn.ListStepTypesResponse
|
|
2059
|
-
*/
|
|
2060
|
-
export const ListStepTypesResponse = new ListStepTypesResponse$Type();
|
|
2061
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
2062
|
-
class StepConfig$Type extends MessageType<StepConfig> {
|
|
2063
|
-
constructor() {
|
|
2064
|
-
super("sid.v1.authn.StepConfig", [
|
|
2065
|
-
{ no: 1, name: "step_type", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
2066
|
-
{ no: 2, name: "config", kind: "message", T: () => Struct }
|
|
2067
|
-
]);
|
|
2068
|
-
}
|
|
2069
|
-
create(value?: PartialMessage<StepConfig>): StepConfig {
|
|
2070
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
2071
|
-
message.stepType = "";
|
|
2072
|
-
if (value !== undefined)
|
|
2073
|
-
reflectionMergePartial<StepConfig>(this, message, value);
|
|
2074
|
-
return message;
|
|
2075
|
-
}
|
|
2076
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: StepConfig): StepConfig {
|
|
2077
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
2078
|
-
while (reader.pos < end) {
|
|
2079
|
-
let [fieldNo, wireType] = reader.tag();
|
|
2080
|
-
switch (fieldNo) {
|
|
2081
|
-
case /* string step_type */ 1:
|
|
2082
|
-
message.stepType = reader.string();
|
|
2083
|
-
break;
|
|
2084
|
-
case /* google.protobuf.Struct config */ 2:
|
|
2085
|
-
message.config = Struct.internalBinaryRead(reader, reader.uint32(), options, message.config);
|
|
2086
|
-
break;
|
|
2087
|
-
default:
|
|
2088
|
-
let u = options.readUnknownField;
|
|
2089
|
-
if (u === "throw")
|
|
2090
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
2091
|
-
let d = reader.skip(wireType);
|
|
2092
|
-
if (u !== false)
|
|
2093
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
2094
|
-
}
|
|
2095
|
-
}
|
|
2096
|
-
return message;
|
|
2097
|
-
}
|
|
2098
|
-
internalBinaryWrite(message: StepConfig, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
2099
|
-
/* string step_type = 1; */
|
|
2100
|
-
if (message.stepType !== "")
|
|
2101
|
-
writer.tag(1, WireType.LengthDelimited).string(message.stepType);
|
|
2102
|
-
/* google.protobuf.Struct config = 2; */
|
|
2103
|
-
if (message.config)
|
|
2104
|
-
Struct.internalBinaryWrite(message.config, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
2105
|
-
let u = options.writeUnknownFields;
|
|
2106
|
-
if (u !== false)
|
|
2107
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
2108
|
-
return writer;
|
|
2109
|
-
}
|
|
2110
|
-
}
|
|
2111
|
-
/**
|
|
2112
|
-
* @generated MessageType for protobuf message sid.v1.authn.StepConfig
|
|
2113
|
-
*/
|
|
2114
|
-
export const StepConfig = new StepConfig$Type();
|
|
2115
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
2116
|
-
class GetStepConfigRequest$Type extends MessageType<GetStepConfigRequest> {
|
|
2117
|
-
constructor() {
|
|
2118
|
-
super("sid.v1.authn.GetStepConfigRequest", [
|
|
2119
|
-
{ no: 1, name: "step_type", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
2120
|
-
]);
|
|
2121
|
-
}
|
|
2122
|
-
create(value?: PartialMessage<GetStepConfigRequest>): GetStepConfigRequest {
|
|
2123
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
2124
|
-
message.stepType = "";
|
|
2125
|
-
if (value !== undefined)
|
|
2126
|
-
reflectionMergePartial<GetStepConfigRequest>(this, message, value);
|
|
2127
|
-
return message;
|
|
2128
|
-
}
|
|
2129
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetStepConfigRequest): GetStepConfigRequest {
|
|
2130
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
2131
|
-
while (reader.pos < end) {
|
|
2132
|
-
let [fieldNo, wireType] = reader.tag();
|
|
2133
|
-
switch (fieldNo) {
|
|
2134
|
-
case /* string step_type */ 1:
|
|
2135
|
-
message.stepType = reader.string();
|
|
2136
|
-
break;
|
|
2137
|
-
default:
|
|
2138
|
-
let u = options.readUnknownField;
|
|
2139
|
-
if (u === "throw")
|
|
2140
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
2141
|
-
let d = reader.skip(wireType);
|
|
2142
|
-
if (u !== false)
|
|
2143
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
2144
|
-
}
|
|
2145
|
-
}
|
|
2146
|
-
return message;
|
|
2147
|
-
}
|
|
2148
|
-
internalBinaryWrite(message: GetStepConfigRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
2149
|
-
/* string step_type = 1; */
|
|
2150
|
-
if (message.stepType !== "")
|
|
2151
|
-
writer.tag(1, WireType.LengthDelimited).string(message.stepType);
|
|
2152
|
-
let u = options.writeUnknownFields;
|
|
2153
|
-
if (u !== false)
|
|
2154
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
2155
|
-
return writer;
|
|
2156
|
-
}
|
|
2157
|
-
}
|
|
2158
|
-
/**
|
|
2159
|
-
* @generated MessageType for protobuf message sid.v1.authn.GetStepConfigRequest
|
|
2160
|
-
*/
|
|
2161
|
-
export const GetStepConfigRequest = new GetStepConfigRequest$Type();
|
|
2162
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
2163
|
-
class UpdateStepConfigRequest$Type extends MessageType<UpdateStepConfigRequest> {
|
|
2164
|
-
constructor() {
|
|
2165
|
-
super("sid.v1.authn.UpdateStepConfigRequest", [
|
|
2166
|
-
{ no: 1, name: "step_type", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
2167
|
-
{ no: 2, name: "config", kind: "message", T: () => Struct }
|
|
2168
|
-
]);
|
|
2169
|
-
}
|
|
2170
|
-
create(value?: PartialMessage<UpdateStepConfigRequest>): UpdateStepConfigRequest {
|
|
2171
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
2172
|
-
message.stepType = "";
|
|
2173
|
-
if (value !== undefined)
|
|
2174
|
-
reflectionMergePartial<UpdateStepConfigRequest>(this, message, value);
|
|
2175
|
-
return message;
|
|
2176
|
-
}
|
|
2177
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpdateStepConfigRequest): UpdateStepConfigRequest {
|
|
2178
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
2179
|
-
while (reader.pos < end) {
|
|
2180
|
-
let [fieldNo, wireType] = reader.tag();
|
|
2181
|
-
switch (fieldNo) {
|
|
2182
|
-
case /* string step_type */ 1:
|
|
2183
|
-
message.stepType = reader.string();
|
|
2184
|
-
break;
|
|
2185
|
-
case /* google.protobuf.Struct config */ 2:
|
|
2186
|
-
message.config = Struct.internalBinaryRead(reader, reader.uint32(), options, message.config);
|
|
2187
|
-
break;
|
|
2188
|
-
default:
|
|
2189
|
-
let u = options.readUnknownField;
|
|
2190
|
-
if (u === "throw")
|
|
2191
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
2192
|
-
let d = reader.skip(wireType);
|
|
2193
|
-
if (u !== false)
|
|
2194
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
2195
|
-
}
|
|
2196
|
-
}
|
|
2197
|
-
return message;
|
|
2198
|
-
}
|
|
2199
|
-
internalBinaryWrite(message: UpdateStepConfigRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
2200
|
-
/* string step_type = 1; */
|
|
2201
|
-
if (message.stepType !== "")
|
|
2202
|
-
writer.tag(1, WireType.LengthDelimited).string(message.stepType);
|
|
2203
|
-
/* google.protobuf.Struct config = 2; */
|
|
2204
|
-
if (message.config)
|
|
2205
|
-
Struct.internalBinaryWrite(message.config, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
2206
|
-
let u = options.writeUnknownFields;
|
|
2207
|
-
if (u !== false)
|
|
2208
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
2209
|
-
return writer;
|
|
2210
|
-
}
|
|
2211
|
-
}
|
|
2212
|
-
/**
|
|
2213
|
-
* @generated MessageType for protobuf message sid.v1.authn.UpdateStepConfigRequest
|
|
2214
|
-
*/
|
|
2215
|
-
export const UpdateStepConfigRequest = new UpdateStepConfigRequest$Type();
|
|
2216
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
2217
|
-
class Action$Type extends MessageType<Action> {
|
|
2218
|
-
constructor() {
|
|
2219
|
-
super("sid.v1.authn.Action", [
|
|
2220
|
-
{ no: 1, name: "id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
2221
|
-
{ no: 2, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
2222
|
-
{ no: 3, name: "description", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
2223
|
-
{ no: 4, name: "type", kind: "enum", T: () => ["sid.v1.authn.ActionType", ActionType, "ACTION_TYPE_"] },
|
|
2224
|
-
{ no: 5, name: "hook_point", kind: "enum", T: () => ["sid.v1.authn.ActionHookPoint", ActionHookPoint, "ACTION_HOOK_POINT_"] },
|
|
2225
|
-
{ no: 6, name: "enabled", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
2226
|
-
{ no: 7, name: "priority", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
|
|
2227
|
-
{ no: 8, name: "webhook_url", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
2228
|
-
{ no: 9, name: "webhook_secret", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
2229
|
-
{ no: 10, name: "webhook_timeout_ms", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
|
|
2230
|
-
{ no: 11, name: "event_filters", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
|
2231
|
-
{ no: 12, name: "config", kind: "message", T: () => Struct },
|
|
2232
|
-
{ no: 13, name: "created_at", kind: "message", T: () => Timestamp },
|
|
2233
|
-
{ no: 14, name: "updated_at", kind: "message", T: () => Timestamp }
|
|
2234
|
-
]);
|
|
2235
|
-
}
|
|
2236
|
-
create(value?: PartialMessage<Action>): Action {
|
|
2237
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
2238
|
-
message.id = "";
|
|
2239
|
-
message.name = "";
|
|
2240
|
-
message.description = "";
|
|
2241
|
-
message.type = 0;
|
|
2242
|
-
message.hookPoint = 0;
|
|
2243
|
-
message.enabled = false;
|
|
2244
|
-
message.priority = 0;
|
|
2245
|
-
message.webhookUrl = "";
|
|
2246
|
-
message.webhookSecret = "";
|
|
2247
|
-
message.webhookTimeoutMs = 0;
|
|
2248
|
-
message.eventFilters = [];
|
|
2249
|
-
if (value !== undefined)
|
|
2250
|
-
reflectionMergePartial<Action>(this, message, value);
|
|
2251
|
-
return message;
|
|
2252
|
-
}
|
|
2253
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Action): Action {
|
|
2254
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
2255
|
-
while (reader.pos < end) {
|
|
2256
|
-
let [fieldNo, wireType] = reader.tag();
|
|
2257
|
-
switch (fieldNo) {
|
|
2258
|
-
case /* string id */ 1:
|
|
2259
|
-
message.id = reader.string();
|
|
2260
|
-
break;
|
|
2261
|
-
case /* string name */ 2:
|
|
2262
|
-
message.name = reader.string();
|
|
2263
|
-
break;
|
|
2264
|
-
case /* string description */ 3:
|
|
2265
|
-
message.description = reader.string();
|
|
2266
|
-
break;
|
|
2267
|
-
case /* sid.v1.authn.ActionType type */ 4:
|
|
2268
|
-
message.type = reader.int32();
|
|
2269
|
-
break;
|
|
2270
|
-
case /* sid.v1.authn.ActionHookPoint hook_point */ 5:
|
|
2271
|
-
message.hookPoint = reader.int32();
|
|
2272
|
-
break;
|
|
2273
|
-
case /* bool enabled */ 6:
|
|
2274
|
-
message.enabled = reader.bool();
|
|
2275
|
-
break;
|
|
2276
|
-
case /* int32 priority */ 7:
|
|
2277
|
-
message.priority = reader.int32();
|
|
2278
|
-
break;
|
|
2279
|
-
case /* string webhook_url */ 8:
|
|
2280
|
-
message.webhookUrl = reader.string();
|
|
2281
|
-
break;
|
|
2282
|
-
case /* string webhook_secret */ 9:
|
|
2283
|
-
message.webhookSecret = reader.string();
|
|
2284
|
-
break;
|
|
2285
|
-
case /* int32 webhook_timeout_ms */ 10:
|
|
2286
|
-
message.webhookTimeoutMs = reader.int32();
|
|
2287
|
-
break;
|
|
2288
|
-
case /* repeated string event_filters */ 11:
|
|
2289
|
-
message.eventFilters.push(reader.string());
|
|
2290
|
-
break;
|
|
2291
|
-
case /* google.protobuf.Struct config */ 12:
|
|
2292
|
-
message.config = Struct.internalBinaryRead(reader, reader.uint32(), options, message.config);
|
|
2293
|
-
break;
|
|
2294
|
-
case /* google.protobuf.Timestamp created_at */ 13:
|
|
2295
|
-
message.createdAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.createdAt);
|
|
2296
|
-
break;
|
|
2297
|
-
case /* google.protobuf.Timestamp updated_at */ 14:
|
|
2298
|
-
message.updatedAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.updatedAt);
|
|
2299
|
-
break;
|
|
2300
|
-
default:
|
|
2301
|
-
let u = options.readUnknownField;
|
|
2302
|
-
if (u === "throw")
|
|
2303
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
2304
|
-
let d = reader.skip(wireType);
|
|
2305
|
-
if (u !== false)
|
|
2306
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
2307
|
-
}
|
|
2308
|
-
}
|
|
2309
|
-
return message;
|
|
2310
|
-
}
|
|
2311
|
-
internalBinaryWrite(message: Action, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
2312
|
-
/* string id = 1; */
|
|
2313
|
-
if (message.id !== "")
|
|
2314
|
-
writer.tag(1, WireType.LengthDelimited).string(message.id);
|
|
2315
|
-
/* string name = 2; */
|
|
2316
|
-
if (message.name !== "")
|
|
2317
|
-
writer.tag(2, WireType.LengthDelimited).string(message.name);
|
|
2318
|
-
/* string description = 3; */
|
|
2319
|
-
if (message.description !== "")
|
|
2320
|
-
writer.tag(3, WireType.LengthDelimited).string(message.description);
|
|
2321
|
-
/* sid.v1.authn.ActionType type = 4; */
|
|
2322
|
-
if (message.type !== 0)
|
|
2323
|
-
writer.tag(4, WireType.Varint).int32(message.type);
|
|
2324
|
-
/* sid.v1.authn.ActionHookPoint hook_point = 5; */
|
|
2325
|
-
if (message.hookPoint !== 0)
|
|
2326
|
-
writer.tag(5, WireType.Varint).int32(message.hookPoint);
|
|
2327
|
-
/* bool enabled = 6; */
|
|
2328
|
-
if (message.enabled !== false)
|
|
2329
|
-
writer.tag(6, WireType.Varint).bool(message.enabled);
|
|
2330
|
-
/* int32 priority = 7; */
|
|
2331
|
-
if (message.priority !== 0)
|
|
2332
|
-
writer.tag(7, WireType.Varint).int32(message.priority);
|
|
2333
|
-
/* string webhook_url = 8; */
|
|
2334
|
-
if (message.webhookUrl !== "")
|
|
2335
|
-
writer.tag(8, WireType.LengthDelimited).string(message.webhookUrl);
|
|
2336
|
-
/* string webhook_secret = 9; */
|
|
2337
|
-
if (message.webhookSecret !== "")
|
|
2338
|
-
writer.tag(9, WireType.LengthDelimited).string(message.webhookSecret);
|
|
2339
|
-
/* int32 webhook_timeout_ms = 10; */
|
|
2340
|
-
if (message.webhookTimeoutMs !== 0)
|
|
2341
|
-
writer.tag(10, WireType.Varint).int32(message.webhookTimeoutMs);
|
|
2342
|
-
/* repeated string event_filters = 11; */
|
|
2343
|
-
for (let i = 0; i < message.eventFilters.length; i++)
|
|
2344
|
-
writer.tag(11, WireType.LengthDelimited).string(message.eventFilters[i]);
|
|
2345
|
-
/* google.protobuf.Struct config = 12; */
|
|
2346
|
-
if (message.config)
|
|
2347
|
-
Struct.internalBinaryWrite(message.config, writer.tag(12, WireType.LengthDelimited).fork(), options).join();
|
|
2348
|
-
/* google.protobuf.Timestamp created_at = 13; */
|
|
2349
|
-
if (message.createdAt)
|
|
2350
|
-
Timestamp.internalBinaryWrite(message.createdAt, writer.tag(13, WireType.LengthDelimited).fork(), options).join();
|
|
2351
|
-
/* google.protobuf.Timestamp updated_at = 14; */
|
|
2352
|
-
if (message.updatedAt)
|
|
2353
|
-
Timestamp.internalBinaryWrite(message.updatedAt, writer.tag(14, WireType.LengthDelimited).fork(), options).join();
|
|
2354
|
-
let u = options.writeUnknownFields;
|
|
2355
|
-
if (u !== false)
|
|
2356
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
2357
|
-
return writer;
|
|
2358
|
-
}
|
|
2359
|
-
}
|
|
2360
|
-
/**
|
|
2361
|
-
* @generated MessageType for protobuf message sid.v1.authn.Action
|
|
2362
|
-
*/
|
|
2363
|
-
export const Action = new Action$Type();
|
|
2364
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
2365
|
-
class ListActionsResponse$Type extends MessageType<ListActionsResponse> {
|
|
2366
|
-
constructor() {
|
|
2367
|
-
super("sid.v1.authn.ListActionsResponse", [
|
|
2368
|
-
{ no: 1, name: "actions", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Action }
|
|
2369
|
-
]);
|
|
2370
|
-
}
|
|
2371
|
-
create(value?: PartialMessage<ListActionsResponse>): ListActionsResponse {
|
|
2372
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
2373
|
-
message.actions = [];
|
|
2374
|
-
if (value !== undefined)
|
|
2375
|
-
reflectionMergePartial<ListActionsResponse>(this, message, value);
|
|
2376
|
-
return message;
|
|
2377
|
-
}
|
|
2378
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListActionsResponse): ListActionsResponse {
|
|
2379
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
2380
|
-
while (reader.pos < end) {
|
|
2381
|
-
let [fieldNo, wireType] = reader.tag();
|
|
2382
|
-
switch (fieldNo) {
|
|
2383
|
-
case /* repeated sid.v1.authn.Action actions */ 1:
|
|
2384
|
-
message.actions.push(Action.internalBinaryRead(reader, reader.uint32(), options));
|
|
2385
|
-
break;
|
|
2386
|
-
default:
|
|
2387
|
-
let u = options.readUnknownField;
|
|
2388
|
-
if (u === "throw")
|
|
2389
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
2390
|
-
let d = reader.skip(wireType);
|
|
2391
|
-
if (u !== false)
|
|
2392
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
2393
|
-
}
|
|
2394
|
-
}
|
|
2395
|
-
return message;
|
|
2396
|
-
}
|
|
2397
|
-
internalBinaryWrite(message: ListActionsResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
2398
|
-
/* repeated sid.v1.authn.Action actions = 1; */
|
|
2399
|
-
for (let i = 0; i < message.actions.length; i++)
|
|
2400
|
-
Action.internalBinaryWrite(message.actions[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
2401
|
-
let u = options.writeUnknownFields;
|
|
2402
|
-
if (u !== false)
|
|
2403
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
2404
|
-
return writer;
|
|
2405
|
-
}
|
|
2406
|
-
}
|
|
2407
|
-
/**
|
|
2408
|
-
* @generated MessageType for protobuf message sid.v1.authn.ListActionsResponse
|
|
2409
|
-
*/
|
|
2410
|
-
export const ListActionsResponse = new ListActionsResponse$Type();
|
|
2411
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
2412
|
-
class GetActionRequest$Type extends MessageType<GetActionRequest> {
|
|
2413
|
-
constructor() {
|
|
2414
|
-
super("sid.v1.authn.GetActionRequest", [
|
|
2415
|
-
{ no: 1, name: "action_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
2416
|
-
]);
|
|
2417
|
-
}
|
|
2418
|
-
create(value?: PartialMessage<GetActionRequest>): GetActionRequest {
|
|
2419
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
2420
|
-
message.actionId = "";
|
|
2421
|
-
if (value !== undefined)
|
|
2422
|
-
reflectionMergePartial<GetActionRequest>(this, message, value);
|
|
2423
|
-
return message;
|
|
2424
|
-
}
|
|
2425
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetActionRequest): GetActionRequest {
|
|
2426
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
2427
|
-
while (reader.pos < end) {
|
|
2428
|
-
let [fieldNo, wireType] = reader.tag();
|
|
2429
|
-
switch (fieldNo) {
|
|
2430
|
-
case /* string action_id */ 1:
|
|
2431
|
-
message.actionId = reader.string();
|
|
2432
|
-
break;
|
|
2433
|
-
default:
|
|
2434
|
-
let u = options.readUnknownField;
|
|
2435
|
-
if (u === "throw")
|
|
2436
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
2437
|
-
let d = reader.skip(wireType);
|
|
2438
|
-
if (u !== false)
|
|
2439
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
2440
|
-
}
|
|
2441
|
-
}
|
|
2442
|
-
return message;
|
|
2443
|
-
}
|
|
2444
|
-
internalBinaryWrite(message: GetActionRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
2445
|
-
/* string action_id = 1; */
|
|
2446
|
-
if (message.actionId !== "")
|
|
2447
|
-
writer.tag(1, WireType.LengthDelimited).string(message.actionId);
|
|
2448
|
-
let u = options.writeUnknownFields;
|
|
2449
|
-
if (u !== false)
|
|
2450
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
2451
|
-
return writer;
|
|
2452
|
-
}
|
|
2453
|
-
}
|
|
2454
|
-
/**
|
|
2455
|
-
* @generated MessageType for protobuf message sid.v1.authn.GetActionRequest
|
|
2456
|
-
*/
|
|
2457
|
-
export const GetActionRequest = new GetActionRequest$Type();
|
|
2458
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
2459
|
-
class CreateActionRequest$Type extends MessageType<CreateActionRequest> {
|
|
2460
|
-
constructor() {
|
|
2461
|
-
super("sid.v1.authn.CreateActionRequest", [
|
|
2462
|
-
{ no: 1, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
2463
|
-
{ no: 2, name: "description", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
2464
|
-
{ no: 3, name: "type", kind: "enum", T: () => ["sid.v1.authn.ActionType", ActionType, "ACTION_TYPE_"] },
|
|
2465
|
-
{ no: 4, name: "hook_point", kind: "enum", T: () => ["sid.v1.authn.ActionHookPoint", ActionHookPoint, "ACTION_HOOK_POINT_"] },
|
|
2466
|
-
{ no: 5, name: "enabled", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
2467
|
-
{ no: 6, name: "priority", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
|
|
2468
|
-
{ no: 7, name: "webhook_url", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
2469
|
-
{ no: 8, name: "webhook_secret", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
2470
|
-
{ no: 9, name: "webhook_timeout_ms", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
|
|
2471
|
-
{ no: 10, name: "event_filters", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
|
2472
|
-
{ no: 11, name: "config", kind: "message", T: () => Struct }
|
|
2473
|
-
]);
|
|
2474
|
-
}
|
|
2475
|
-
create(value?: PartialMessage<CreateActionRequest>): CreateActionRequest {
|
|
2476
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
2477
|
-
message.name = "";
|
|
2478
|
-
message.description = "";
|
|
2479
|
-
message.type = 0;
|
|
2480
|
-
message.hookPoint = 0;
|
|
2481
|
-
message.enabled = false;
|
|
2482
|
-
message.priority = 0;
|
|
2483
|
-
message.webhookUrl = "";
|
|
2484
|
-
message.webhookSecret = "";
|
|
2485
|
-
message.webhookTimeoutMs = 0;
|
|
2486
|
-
message.eventFilters = [];
|
|
2487
|
-
if (value !== undefined)
|
|
2488
|
-
reflectionMergePartial<CreateActionRequest>(this, message, value);
|
|
2489
|
-
return message;
|
|
2490
|
-
}
|
|
2491
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CreateActionRequest): CreateActionRequest {
|
|
2492
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
2493
|
-
while (reader.pos < end) {
|
|
2494
|
-
let [fieldNo, wireType] = reader.tag();
|
|
2495
|
-
switch (fieldNo) {
|
|
2496
|
-
case /* string name */ 1:
|
|
2497
|
-
message.name = reader.string();
|
|
2498
|
-
break;
|
|
2499
|
-
case /* string description */ 2:
|
|
2500
|
-
message.description = reader.string();
|
|
2501
|
-
break;
|
|
2502
|
-
case /* sid.v1.authn.ActionType type */ 3:
|
|
2503
|
-
message.type = reader.int32();
|
|
2504
|
-
break;
|
|
2505
|
-
case /* sid.v1.authn.ActionHookPoint hook_point */ 4:
|
|
2506
|
-
message.hookPoint = reader.int32();
|
|
2507
|
-
break;
|
|
2508
|
-
case /* bool enabled */ 5:
|
|
2509
|
-
message.enabled = reader.bool();
|
|
2510
|
-
break;
|
|
2511
|
-
case /* int32 priority */ 6:
|
|
2512
|
-
message.priority = reader.int32();
|
|
2513
|
-
break;
|
|
2514
|
-
case /* string webhook_url */ 7:
|
|
2515
|
-
message.webhookUrl = reader.string();
|
|
2516
|
-
break;
|
|
2517
|
-
case /* string webhook_secret */ 8:
|
|
2518
|
-
message.webhookSecret = reader.string();
|
|
2519
|
-
break;
|
|
2520
|
-
case /* int32 webhook_timeout_ms */ 9:
|
|
2521
|
-
message.webhookTimeoutMs = reader.int32();
|
|
2522
|
-
break;
|
|
2523
|
-
case /* repeated string event_filters */ 10:
|
|
2524
|
-
message.eventFilters.push(reader.string());
|
|
2525
|
-
break;
|
|
2526
|
-
case /* google.protobuf.Struct config */ 11:
|
|
2527
|
-
message.config = Struct.internalBinaryRead(reader, reader.uint32(), options, message.config);
|
|
2528
|
-
break;
|
|
2529
|
-
default:
|
|
2530
|
-
let u = options.readUnknownField;
|
|
2531
|
-
if (u === "throw")
|
|
2532
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
2533
|
-
let d = reader.skip(wireType);
|
|
2534
|
-
if (u !== false)
|
|
2535
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
2536
|
-
}
|
|
2537
|
-
}
|
|
2538
|
-
return message;
|
|
2539
|
-
}
|
|
2540
|
-
internalBinaryWrite(message: CreateActionRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
2541
|
-
/* string name = 1; */
|
|
2542
|
-
if (message.name !== "")
|
|
2543
|
-
writer.tag(1, WireType.LengthDelimited).string(message.name);
|
|
2544
|
-
/* string description = 2; */
|
|
2545
|
-
if (message.description !== "")
|
|
2546
|
-
writer.tag(2, WireType.LengthDelimited).string(message.description);
|
|
2547
|
-
/* sid.v1.authn.ActionType type = 3; */
|
|
2548
|
-
if (message.type !== 0)
|
|
2549
|
-
writer.tag(3, WireType.Varint).int32(message.type);
|
|
2550
|
-
/* sid.v1.authn.ActionHookPoint hook_point = 4; */
|
|
2551
|
-
if (message.hookPoint !== 0)
|
|
2552
|
-
writer.tag(4, WireType.Varint).int32(message.hookPoint);
|
|
2553
|
-
/* bool enabled = 5; */
|
|
2554
|
-
if (message.enabled !== false)
|
|
2555
|
-
writer.tag(5, WireType.Varint).bool(message.enabled);
|
|
2556
|
-
/* int32 priority = 6; */
|
|
2557
|
-
if (message.priority !== 0)
|
|
2558
|
-
writer.tag(6, WireType.Varint).int32(message.priority);
|
|
2559
|
-
/* string webhook_url = 7; */
|
|
2560
|
-
if (message.webhookUrl !== "")
|
|
2561
|
-
writer.tag(7, WireType.LengthDelimited).string(message.webhookUrl);
|
|
2562
|
-
/* string webhook_secret = 8; */
|
|
2563
|
-
if (message.webhookSecret !== "")
|
|
2564
|
-
writer.tag(8, WireType.LengthDelimited).string(message.webhookSecret);
|
|
2565
|
-
/* int32 webhook_timeout_ms = 9; */
|
|
2566
|
-
if (message.webhookTimeoutMs !== 0)
|
|
2567
|
-
writer.tag(9, WireType.Varint).int32(message.webhookTimeoutMs);
|
|
2568
|
-
/* repeated string event_filters = 10; */
|
|
2569
|
-
for (let i = 0; i < message.eventFilters.length; i++)
|
|
2570
|
-
writer.tag(10, WireType.LengthDelimited).string(message.eventFilters[i]);
|
|
2571
|
-
/* google.protobuf.Struct config = 11; */
|
|
2572
|
-
if (message.config)
|
|
2573
|
-
Struct.internalBinaryWrite(message.config, writer.tag(11, WireType.LengthDelimited).fork(), options).join();
|
|
2574
|
-
let u = options.writeUnknownFields;
|
|
2575
|
-
if (u !== false)
|
|
2576
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
2577
|
-
return writer;
|
|
2578
|
-
}
|
|
2579
|
-
}
|
|
2580
|
-
/**
|
|
2581
|
-
* @generated MessageType for protobuf message sid.v1.authn.CreateActionRequest
|
|
2582
|
-
*/
|
|
2583
|
-
export const CreateActionRequest = new CreateActionRequest$Type();
|
|
2584
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
2585
|
-
class UpdateActionRequest$Type extends MessageType<UpdateActionRequest> {
|
|
2586
|
-
constructor() {
|
|
2587
|
-
super("sid.v1.authn.UpdateActionRequest", [
|
|
2588
|
-
{ no: 1, name: "action_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
2589
|
-
{ no: 2, name: "name", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
2590
|
-
{ no: 3, name: "description", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
2591
|
-
{ no: 4, name: "enabled", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ },
|
|
2592
|
-
{ no: 5, name: "priority", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/ },
|
|
2593
|
-
{ no: 6, name: "webhook_url", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
2594
|
-
{ no: 7, name: "webhook_secret", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
2595
|
-
{ no: 8, name: "webhook_timeout_ms", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/ },
|
|
2596
|
-
{ no: 9, name: "event_filters", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
|
2597
|
-
{ no: 10, name: "config", kind: "message", T: () => Struct }
|
|
2598
|
-
]);
|
|
2599
|
-
}
|
|
2600
|
-
create(value?: PartialMessage<UpdateActionRequest>): UpdateActionRequest {
|
|
2601
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
2602
|
-
message.actionId = "";
|
|
2603
|
-
message.eventFilters = [];
|
|
2604
|
-
if (value !== undefined)
|
|
2605
|
-
reflectionMergePartial<UpdateActionRequest>(this, message, value);
|
|
2606
|
-
return message;
|
|
2607
|
-
}
|
|
2608
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpdateActionRequest): UpdateActionRequest {
|
|
2609
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
2610
|
-
while (reader.pos < end) {
|
|
2611
|
-
let [fieldNo, wireType] = reader.tag();
|
|
2612
|
-
switch (fieldNo) {
|
|
2613
|
-
case /* string action_id */ 1:
|
|
2614
|
-
message.actionId = reader.string();
|
|
2615
|
-
break;
|
|
2616
|
-
case /* optional string name */ 2:
|
|
2617
|
-
message.name = reader.string();
|
|
2618
|
-
break;
|
|
2619
|
-
case /* optional string description */ 3:
|
|
2620
|
-
message.description = reader.string();
|
|
2621
|
-
break;
|
|
2622
|
-
case /* optional bool enabled */ 4:
|
|
2623
|
-
message.enabled = reader.bool();
|
|
2624
|
-
break;
|
|
2625
|
-
case /* optional int32 priority */ 5:
|
|
2626
|
-
message.priority = reader.int32();
|
|
2627
|
-
break;
|
|
2628
|
-
case /* optional string webhook_url */ 6:
|
|
2629
|
-
message.webhookUrl = reader.string();
|
|
2630
|
-
break;
|
|
2631
|
-
case /* optional string webhook_secret */ 7:
|
|
2632
|
-
message.webhookSecret = reader.string();
|
|
2633
|
-
break;
|
|
2634
|
-
case /* optional int32 webhook_timeout_ms */ 8:
|
|
2635
|
-
message.webhookTimeoutMs = reader.int32();
|
|
2636
|
-
break;
|
|
2637
|
-
case /* repeated string event_filters */ 9:
|
|
2638
|
-
message.eventFilters.push(reader.string());
|
|
2639
|
-
break;
|
|
2640
|
-
case /* google.protobuf.Struct config */ 10:
|
|
2641
|
-
message.config = Struct.internalBinaryRead(reader, reader.uint32(), options, message.config);
|
|
2642
|
-
break;
|
|
2643
|
-
default:
|
|
2644
|
-
let u = options.readUnknownField;
|
|
2645
|
-
if (u === "throw")
|
|
2646
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
2647
|
-
let d = reader.skip(wireType);
|
|
2648
|
-
if (u !== false)
|
|
2649
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
2650
|
-
}
|
|
2651
|
-
}
|
|
2652
|
-
return message;
|
|
2653
|
-
}
|
|
2654
|
-
internalBinaryWrite(message: UpdateActionRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
2655
|
-
/* string action_id = 1; */
|
|
2656
|
-
if (message.actionId !== "")
|
|
2657
|
-
writer.tag(1, WireType.LengthDelimited).string(message.actionId);
|
|
2658
|
-
/* optional string name = 2; */
|
|
2659
|
-
if (message.name !== undefined)
|
|
2660
|
-
writer.tag(2, WireType.LengthDelimited).string(message.name);
|
|
2661
|
-
/* optional string description = 3; */
|
|
2662
|
-
if (message.description !== undefined)
|
|
2663
|
-
writer.tag(3, WireType.LengthDelimited).string(message.description);
|
|
2664
|
-
/* optional bool enabled = 4; */
|
|
2665
|
-
if (message.enabled !== undefined)
|
|
2666
|
-
writer.tag(4, WireType.Varint).bool(message.enabled);
|
|
2667
|
-
/* optional int32 priority = 5; */
|
|
2668
|
-
if (message.priority !== undefined)
|
|
2669
|
-
writer.tag(5, WireType.Varint).int32(message.priority);
|
|
2670
|
-
/* optional string webhook_url = 6; */
|
|
2671
|
-
if (message.webhookUrl !== undefined)
|
|
2672
|
-
writer.tag(6, WireType.LengthDelimited).string(message.webhookUrl);
|
|
2673
|
-
/* optional string webhook_secret = 7; */
|
|
2674
|
-
if (message.webhookSecret !== undefined)
|
|
2675
|
-
writer.tag(7, WireType.LengthDelimited).string(message.webhookSecret);
|
|
2676
|
-
/* optional int32 webhook_timeout_ms = 8; */
|
|
2677
|
-
if (message.webhookTimeoutMs !== undefined)
|
|
2678
|
-
writer.tag(8, WireType.Varint).int32(message.webhookTimeoutMs);
|
|
2679
|
-
/* repeated string event_filters = 9; */
|
|
2680
|
-
for (let i = 0; i < message.eventFilters.length; i++)
|
|
2681
|
-
writer.tag(9, WireType.LengthDelimited).string(message.eventFilters[i]);
|
|
2682
|
-
/* google.protobuf.Struct config = 10; */
|
|
2683
|
-
if (message.config)
|
|
2684
|
-
Struct.internalBinaryWrite(message.config, writer.tag(10, WireType.LengthDelimited).fork(), options).join();
|
|
2685
|
-
let u = options.writeUnknownFields;
|
|
2686
|
-
if (u !== false)
|
|
2687
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
2688
|
-
return writer;
|
|
2689
|
-
}
|
|
2690
|
-
}
|
|
2691
|
-
/**
|
|
2692
|
-
* @generated MessageType for protobuf message sid.v1.authn.UpdateActionRequest
|
|
2693
|
-
*/
|
|
2694
|
-
export const UpdateActionRequest = new UpdateActionRequest$Type();
|
|
2695
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
2696
|
-
class DeleteActionRequest$Type extends MessageType<DeleteActionRequest> {
|
|
2697
|
-
constructor() {
|
|
2698
|
-
super("sid.v1.authn.DeleteActionRequest", [
|
|
2699
|
-
{ no: 1, name: "action_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
2700
|
-
]);
|
|
2701
|
-
}
|
|
2702
|
-
create(value?: PartialMessage<DeleteActionRequest>): DeleteActionRequest {
|
|
2703
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
2704
|
-
message.actionId = "";
|
|
2705
|
-
if (value !== undefined)
|
|
2706
|
-
reflectionMergePartial<DeleteActionRequest>(this, message, value);
|
|
2707
|
-
return message;
|
|
2708
|
-
}
|
|
2709
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteActionRequest): DeleteActionRequest {
|
|
2710
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
2711
|
-
while (reader.pos < end) {
|
|
2712
|
-
let [fieldNo, wireType] = reader.tag();
|
|
2713
|
-
switch (fieldNo) {
|
|
2714
|
-
case /* string action_id */ 1:
|
|
2715
|
-
message.actionId = reader.string();
|
|
2716
|
-
break;
|
|
2717
|
-
default:
|
|
2718
|
-
let u = options.readUnknownField;
|
|
2719
|
-
if (u === "throw")
|
|
2720
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
2721
|
-
let d = reader.skip(wireType);
|
|
2722
|
-
if (u !== false)
|
|
2723
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
2724
|
-
}
|
|
2725
|
-
}
|
|
2726
|
-
return message;
|
|
2727
|
-
}
|
|
2728
|
-
internalBinaryWrite(message: DeleteActionRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
2729
|
-
/* string action_id = 1; */
|
|
2730
|
-
if (message.actionId !== "")
|
|
2731
|
-
writer.tag(1, WireType.LengthDelimited).string(message.actionId);
|
|
2732
|
-
let u = options.writeUnknownFields;
|
|
2733
|
-
if (u !== false)
|
|
2734
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
2735
|
-
return writer;
|
|
2736
|
-
}
|
|
2737
|
-
}
|
|
2738
|
-
/**
|
|
2739
|
-
* @generated MessageType for protobuf message sid.v1.authn.DeleteActionRequest
|
|
2740
|
-
*/
|
|
2741
|
-
export const DeleteActionRequest = new DeleteActionRequest$Type();
|
|
2742
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
2743
|
-
class TestActionRequest$Type extends MessageType<TestActionRequest> {
|
|
2744
|
-
constructor() {
|
|
2745
|
-
super("sid.v1.authn.TestActionRequest", [
|
|
2746
|
-
{ no: 1, name: "action_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
2747
|
-
]);
|
|
2748
|
-
}
|
|
2749
|
-
create(value?: PartialMessage<TestActionRequest>): TestActionRequest {
|
|
2750
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
2751
|
-
message.actionId = "";
|
|
2752
|
-
if (value !== undefined)
|
|
2753
|
-
reflectionMergePartial<TestActionRequest>(this, message, value);
|
|
2754
|
-
return message;
|
|
2755
|
-
}
|
|
2756
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: TestActionRequest): TestActionRequest {
|
|
2757
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
2758
|
-
while (reader.pos < end) {
|
|
2759
|
-
let [fieldNo, wireType] = reader.tag();
|
|
2760
|
-
switch (fieldNo) {
|
|
2761
|
-
case /* string action_id */ 1:
|
|
2762
|
-
message.actionId = reader.string();
|
|
2763
|
-
break;
|
|
2764
|
-
default:
|
|
2765
|
-
let u = options.readUnknownField;
|
|
2766
|
-
if (u === "throw")
|
|
2767
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
2768
|
-
let d = reader.skip(wireType);
|
|
2769
|
-
if (u !== false)
|
|
2770
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
2771
|
-
}
|
|
2772
|
-
}
|
|
2773
|
-
return message;
|
|
2774
|
-
}
|
|
2775
|
-
internalBinaryWrite(message: TestActionRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
2776
|
-
/* string action_id = 1; */
|
|
2777
|
-
if (message.actionId !== "")
|
|
2778
|
-
writer.tag(1, WireType.LengthDelimited).string(message.actionId);
|
|
2779
|
-
let u = options.writeUnknownFields;
|
|
2780
|
-
if (u !== false)
|
|
2781
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
2782
|
-
return writer;
|
|
2783
|
-
}
|
|
2784
|
-
}
|
|
2785
|
-
/**
|
|
2786
|
-
* @generated MessageType for protobuf message sid.v1.authn.TestActionRequest
|
|
2787
|
-
*/
|
|
2788
|
-
export const TestActionRequest = new TestActionRequest$Type();
|
|
2789
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
2790
|
-
class TestActionResponse$Type extends MessageType<TestActionResponse> {
|
|
2791
|
-
constructor() {
|
|
2792
|
-
super("sid.v1.authn.TestActionResponse", [
|
|
2793
|
-
{ no: 1, name: "success", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
2794
|
-
{ no: 2, name: "status_code", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
|
|
2795
|
-
{ no: 3, name: "response_body", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
2796
|
-
{ no: 4, name: "latency_ms", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
|
|
2797
|
-
{ no: 5, name: "error", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
2798
|
-
]);
|
|
2799
|
-
}
|
|
2800
|
-
create(value?: PartialMessage<TestActionResponse>): TestActionResponse {
|
|
2801
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
2802
|
-
message.success = false;
|
|
2803
|
-
message.statusCode = 0;
|
|
2804
|
-
message.responseBody = "";
|
|
2805
|
-
message.latencyMs = 0;
|
|
2806
|
-
message.error = "";
|
|
2807
|
-
if (value !== undefined)
|
|
2808
|
-
reflectionMergePartial<TestActionResponse>(this, message, value);
|
|
2809
|
-
return message;
|
|
2810
|
-
}
|
|
2811
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: TestActionResponse): TestActionResponse {
|
|
2812
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
2813
|
-
while (reader.pos < end) {
|
|
2814
|
-
let [fieldNo, wireType] = reader.tag();
|
|
2815
|
-
switch (fieldNo) {
|
|
2816
|
-
case /* bool success */ 1:
|
|
2817
|
-
message.success = reader.bool();
|
|
2818
|
-
break;
|
|
2819
|
-
case /* int32 status_code */ 2:
|
|
2820
|
-
message.statusCode = reader.int32();
|
|
2821
|
-
break;
|
|
2822
|
-
case /* string response_body */ 3:
|
|
2823
|
-
message.responseBody = reader.string();
|
|
2824
|
-
break;
|
|
2825
|
-
case /* int32 latency_ms */ 4:
|
|
2826
|
-
message.latencyMs = reader.int32();
|
|
2827
|
-
break;
|
|
2828
|
-
case /* string error */ 5:
|
|
2829
|
-
message.error = reader.string();
|
|
2830
|
-
break;
|
|
2831
|
-
default:
|
|
2832
|
-
let u = options.readUnknownField;
|
|
2833
|
-
if (u === "throw")
|
|
2834
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
2835
|
-
let d = reader.skip(wireType);
|
|
2836
|
-
if (u !== false)
|
|
2837
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
2838
|
-
}
|
|
2839
|
-
}
|
|
2840
|
-
return message;
|
|
2841
|
-
}
|
|
2842
|
-
internalBinaryWrite(message: TestActionResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
2843
|
-
/* bool success = 1; */
|
|
2844
|
-
if (message.success !== false)
|
|
2845
|
-
writer.tag(1, WireType.Varint).bool(message.success);
|
|
2846
|
-
/* int32 status_code = 2; */
|
|
2847
|
-
if (message.statusCode !== 0)
|
|
2848
|
-
writer.tag(2, WireType.Varint).int32(message.statusCode);
|
|
2849
|
-
/* string response_body = 3; */
|
|
2850
|
-
if (message.responseBody !== "")
|
|
2851
|
-
writer.tag(3, WireType.LengthDelimited).string(message.responseBody);
|
|
2852
|
-
/* int32 latency_ms = 4; */
|
|
2853
|
-
if (message.latencyMs !== 0)
|
|
2854
|
-
writer.tag(4, WireType.Varint).int32(message.latencyMs);
|
|
2855
|
-
/* string error = 5; */
|
|
2856
|
-
if (message.error !== "")
|
|
2857
|
-
writer.tag(5, WireType.LengthDelimited).string(message.error);
|
|
2858
|
-
let u = options.writeUnknownFields;
|
|
2859
|
-
if (u !== false)
|
|
2860
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
2861
|
-
return writer;
|
|
2862
|
-
}
|
|
2863
|
-
}
|
|
2864
|
-
/**
|
|
2865
|
-
* @generated MessageType for protobuf message sid.v1.authn.TestActionResponse
|
|
2866
|
-
*/
|
|
2867
|
-
export const TestActionResponse = new TestActionResponse$Type();
|
|
2868
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
2869
|
-
class BuiltinAction$Type extends MessageType<BuiltinAction> {
|
|
2870
|
-
constructor() {
|
|
2871
|
-
super("sid.v1.authn.BuiltinAction", [
|
|
2872
|
-
{ no: 1, name: "action_type", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
2873
|
-
{ no: 2, name: "display_name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
2874
|
-
{ no: 3, name: "description", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
2875
|
-
{ no: 4, name: "enabled", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
2876
|
-
{ no: 5, name: "config", kind: "message", T: () => Struct }
|
|
2877
|
-
]);
|
|
2878
|
-
}
|
|
2879
|
-
create(value?: PartialMessage<BuiltinAction>): BuiltinAction {
|
|
2880
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
2881
|
-
message.actionType = "";
|
|
2882
|
-
message.displayName = "";
|
|
2883
|
-
message.description = "";
|
|
2884
|
-
message.enabled = false;
|
|
2885
|
-
if (value !== undefined)
|
|
2886
|
-
reflectionMergePartial<BuiltinAction>(this, message, value);
|
|
2887
|
-
return message;
|
|
2888
|
-
}
|
|
2889
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: BuiltinAction): BuiltinAction {
|
|
2890
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
2891
|
-
while (reader.pos < end) {
|
|
2892
|
-
let [fieldNo, wireType] = reader.tag();
|
|
2893
|
-
switch (fieldNo) {
|
|
2894
|
-
case /* string action_type */ 1:
|
|
2895
|
-
message.actionType = reader.string();
|
|
2896
|
-
break;
|
|
2897
|
-
case /* string display_name */ 2:
|
|
2898
|
-
message.displayName = reader.string();
|
|
2899
|
-
break;
|
|
2900
|
-
case /* string description */ 3:
|
|
2901
|
-
message.description = reader.string();
|
|
2902
|
-
break;
|
|
2903
|
-
case /* bool enabled */ 4:
|
|
2904
|
-
message.enabled = reader.bool();
|
|
2905
|
-
break;
|
|
2906
|
-
case /* google.protobuf.Struct config */ 5:
|
|
2907
|
-
message.config = Struct.internalBinaryRead(reader, reader.uint32(), options, message.config);
|
|
2908
|
-
break;
|
|
2909
|
-
default:
|
|
2910
|
-
let u = options.readUnknownField;
|
|
2911
|
-
if (u === "throw")
|
|
2912
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
2913
|
-
let d = reader.skip(wireType);
|
|
2914
|
-
if (u !== false)
|
|
2915
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
2916
|
-
}
|
|
2917
|
-
}
|
|
2918
|
-
return message;
|
|
2919
|
-
}
|
|
2920
|
-
internalBinaryWrite(message: BuiltinAction, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
2921
|
-
/* string action_type = 1; */
|
|
2922
|
-
if (message.actionType !== "")
|
|
2923
|
-
writer.tag(1, WireType.LengthDelimited).string(message.actionType);
|
|
2924
|
-
/* string display_name = 2; */
|
|
2925
|
-
if (message.displayName !== "")
|
|
2926
|
-
writer.tag(2, WireType.LengthDelimited).string(message.displayName);
|
|
2927
|
-
/* string description = 3; */
|
|
2928
|
-
if (message.description !== "")
|
|
2929
|
-
writer.tag(3, WireType.LengthDelimited).string(message.description);
|
|
2930
|
-
/* bool enabled = 4; */
|
|
2931
|
-
if (message.enabled !== false)
|
|
2932
|
-
writer.tag(4, WireType.Varint).bool(message.enabled);
|
|
2933
|
-
/* google.protobuf.Struct config = 5; */
|
|
2934
|
-
if (message.config)
|
|
2935
|
-
Struct.internalBinaryWrite(message.config, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
|
2936
|
-
let u = options.writeUnknownFields;
|
|
2937
|
-
if (u !== false)
|
|
2938
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
2939
|
-
return writer;
|
|
2940
|
-
}
|
|
2941
|
-
}
|
|
2942
|
-
/**
|
|
2943
|
-
* @generated MessageType for protobuf message sid.v1.authn.BuiltinAction
|
|
2944
|
-
*/
|
|
2945
|
-
export const BuiltinAction = new BuiltinAction$Type();
|
|
2946
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
2947
|
-
class ListBuiltinActionsResponse$Type extends MessageType<ListBuiltinActionsResponse> {
|
|
2948
|
-
constructor() {
|
|
2949
|
-
super("sid.v1.authn.ListBuiltinActionsResponse", [
|
|
2950
|
-
{ no: 1, name: "actions", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => BuiltinAction }
|
|
2951
|
-
]);
|
|
2952
|
-
}
|
|
2953
|
-
create(value?: PartialMessage<ListBuiltinActionsResponse>): ListBuiltinActionsResponse {
|
|
2954
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
2955
|
-
message.actions = [];
|
|
2956
|
-
if (value !== undefined)
|
|
2957
|
-
reflectionMergePartial<ListBuiltinActionsResponse>(this, message, value);
|
|
2958
|
-
return message;
|
|
2959
|
-
}
|
|
2960
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListBuiltinActionsResponse): ListBuiltinActionsResponse {
|
|
2961
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
2962
|
-
while (reader.pos < end) {
|
|
2963
|
-
let [fieldNo, wireType] = reader.tag();
|
|
2964
|
-
switch (fieldNo) {
|
|
2965
|
-
case /* repeated sid.v1.authn.BuiltinAction actions */ 1:
|
|
2966
|
-
message.actions.push(BuiltinAction.internalBinaryRead(reader, reader.uint32(), options));
|
|
2967
|
-
break;
|
|
2968
|
-
default:
|
|
2969
|
-
let u = options.readUnknownField;
|
|
2970
|
-
if (u === "throw")
|
|
2971
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
2972
|
-
let d = reader.skip(wireType);
|
|
2973
|
-
if (u !== false)
|
|
2974
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
2975
|
-
}
|
|
2976
|
-
}
|
|
2977
|
-
return message;
|
|
2978
|
-
}
|
|
2979
|
-
internalBinaryWrite(message: ListBuiltinActionsResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
2980
|
-
/* repeated sid.v1.authn.BuiltinAction actions = 1; */
|
|
2981
|
-
for (let i = 0; i < message.actions.length; i++)
|
|
2982
|
-
BuiltinAction.internalBinaryWrite(message.actions[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
2983
|
-
let u = options.writeUnknownFields;
|
|
2984
|
-
if (u !== false)
|
|
2985
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
2986
|
-
return writer;
|
|
2987
|
-
}
|
|
2988
|
-
}
|
|
2989
|
-
/**
|
|
2990
|
-
* @generated MessageType for protobuf message sid.v1.authn.ListBuiltinActionsResponse
|
|
2991
|
-
*/
|
|
2992
|
-
export const ListBuiltinActionsResponse = new ListBuiltinActionsResponse$Type();
|
|
2993
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
2994
|
-
class ConfigureBuiltinActionRequest$Type extends MessageType<ConfigureBuiltinActionRequest> {
|
|
2995
|
-
constructor() {
|
|
2996
|
-
super("sid.v1.authn.ConfigureBuiltinActionRequest", [
|
|
2997
|
-
{ no: 1, name: "action_type", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
2998
|
-
{ no: 2, name: "enabled", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
2999
|
-
{ no: 3, name: "config", kind: "message", T: () => Struct }
|
|
3000
|
-
]);
|
|
3001
|
-
}
|
|
3002
|
-
create(value?: PartialMessage<ConfigureBuiltinActionRequest>): ConfigureBuiltinActionRequest {
|
|
3003
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
3004
|
-
message.actionType = "";
|
|
3005
|
-
message.enabled = false;
|
|
3006
|
-
if (value !== undefined)
|
|
3007
|
-
reflectionMergePartial<ConfigureBuiltinActionRequest>(this, message, value);
|
|
3008
|
-
return message;
|
|
3009
|
-
}
|
|
3010
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ConfigureBuiltinActionRequest): ConfigureBuiltinActionRequest {
|
|
3011
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
3012
|
-
while (reader.pos < end) {
|
|
3013
|
-
let [fieldNo, wireType] = reader.tag();
|
|
3014
|
-
switch (fieldNo) {
|
|
3015
|
-
case /* string action_type */ 1:
|
|
3016
|
-
message.actionType = reader.string();
|
|
3017
|
-
break;
|
|
3018
|
-
case /* bool enabled */ 2:
|
|
3019
|
-
message.enabled = reader.bool();
|
|
3020
|
-
break;
|
|
3021
|
-
case /* google.protobuf.Struct config */ 3:
|
|
3022
|
-
message.config = Struct.internalBinaryRead(reader, reader.uint32(), options, message.config);
|
|
3023
|
-
break;
|
|
3024
|
-
default:
|
|
3025
|
-
let u = options.readUnknownField;
|
|
3026
|
-
if (u === "throw")
|
|
3027
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
3028
|
-
let d = reader.skip(wireType);
|
|
3029
|
-
if (u !== false)
|
|
3030
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
3031
|
-
}
|
|
3032
|
-
}
|
|
3033
|
-
return message;
|
|
3034
|
-
}
|
|
3035
|
-
internalBinaryWrite(message: ConfigureBuiltinActionRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
3036
|
-
/* string action_type = 1; */
|
|
3037
|
-
if (message.actionType !== "")
|
|
3038
|
-
writer.tag(1, WireType.LengthDelimited).string(message.actionType);
|
|
3039
|
-
/* bool enabled = 2; */
|
|
3040
|
-
if (message.enabled !== false)
|
|
3041
|
-
writer.tag(2, WireType.Varint).bool(message.enabled);
|
|
3042
|
-
/* google.protobuf.Struct config = 3; */
|
|
3043
|
-
if (message.config)
|
|
3044
|
-
Struct.internalBinaryWrite(message.config, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
3045
|
-
let u = options.writeUnknownFields;
|
|
3046
|
-
if (u !== false)
|
|
3047
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
3048
|
-
return writer;
|
|
3049
|
-
}
|
|
3050
|
-
}
|
|
3051
|
-
/**
|
|
3052
|
-
* @generated MessageType for protobuf message sid.v1.authn.ConfigureBuiltinActionRequest
|
|
3053
|
-
*/
|
|
3054
|
-
export const ConfigureBuiltinActionRequest = new ConfigureBuiltinActionRequest$Type();
|
|
3055
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
3056
|
-
class ListEventTypesResponse$Type extends MessageType<ListEventTypesResponse> {
|
|
3057
|
-
constructor() {
|
|
3058
|
-
super("sid.v1.authn.ListEventTypesResponse", [
|
|
3059
|
-
{ no: 1, name: "event_types", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ActionEventType }
|
|
3060
|
-
]);
|
|
3061
|
-
}
|
|
3062
|
-
create(value?: PartialMessage<ListEventTypesResponse>): ListEventTypesResponse {
|
|
3063
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
3064
|
-
message.eventTypes = [];
|
|
3065
|
-
if (value !== undefined)
|
|
3066
|
-
reflectionMergePartial<ListEventTypesResponse>(this, message, value);
|
|
3067
|
-
return message;
|
|
3068
|
-
}
|
|
3069
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListEventTypesResponse): ListEventTypesResponse {
|
|
3070
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
3071
|
-
while (reader.pos < end) {
|
|
3072
|
-
let [fieldNo, wireType] = reader.tag();
|
|
3073
|
-
switch (fieldNo) {
|
|
3074
|
-
case /* repeated sid.v1.authn.ActionEventType event_types */ 1:
|
|
3075
|
-
message.eventTypes.push(ActionEventType.internalBinaryRead(reader, reader.uint32(), options));
|
|
3076
|
-
break;
|
|
3077
|
-
default:
|
|
3078
|
-
let u = options.readUnknownField;
|
|
3079
|
-
if (u === "throw")
|
|
3080
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
3081
|
-
let d = reader.skip(wireType);
|
|
3082
|
-
if (u !== false)
|
|
3083
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
3084
|
-
}
|
|
3085
|
-
}
|
|
3086
|
-
return message;
|
|
3087
|
-
}
|
|
3088
|
-
internalBinaryWrite(message: ListEventTypesResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
3089
|
-
/* repeated sid.v1.authn.ActionEventType event_types = 1; */
|
|
3090
|
-
for (let i = 0; i < message.eventTypes.length; i++)
|
|
3091
|
-
ActionEventType.internalBinaryWrite(message.eventTypes[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
3092
|
-
let u = options.writeUnknownFields;
|
|
3093
|
-
if (u !== false)
|
|
3094
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
3095
|
-
return writer;
|
|
3096
|
-
}
|
|
3097
|
-
}
|
|
3098
|
-
/**
|
|
3099
|
-
* @generated MessageType for protobuf message sid.v1.authn.ListEventTypesResponse
|
|
3100
|
-
*/
|
|
3101
|
-
export const ListEventTypesResponse = new ListEventTypesResponse$Type();
|
|
3102
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
3103
|
-
class ActionEventType$Type extends MessageType<ActionEventType> {
|
|
3104
|
-
constructor() {
|
|
3105
|
-
super("sid.v1.authn.ActionEventType", [
|
|
3106
|
-
{ no: 1, name: "type", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
3107
|
-
{ no: 2, name: "display_name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
3108
|
-
{ no: 3, name: "category", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
3109
|
-
]);
|
|
3110
|
-
}
|
|
3111
|
-
create(value?: PartialMessage<ActionEventType>): ActionEventType {
|
|
3112
|
-
const message = globalThis.Object.create((this.messagePrototype!));
|
|
3113
|
-
message.type = "";
|
|
3114
|
-
message.displayName = "";
|
|
3115
|
-
message.category = "";
|
|
3116
|
-
if (value !== undefined)
|
|
3117
|
-
reflectionMergePartial<ActionEventType>(this, message, value);
|
|
3118
|
-
return message;
|
|
3119
|
-
}
|
|
3120
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ActionEventType): ActionEventType {
|
|
3121
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
3122
|
-
while (reader.pos < end) {
|
|
3123
|
-
let [fieldNo, wireType] = reader.tag();
|
|
3124
|
-
switch (fieldNo) {
|
|
3125
|
-
case /* string type */ 1:
|
|
3126
|
-
message.type = reader.string();
|
|
3127
|
-
break;
|
|
3128
|
-
case /* string display_name */ 2:
|
|
3129
|
-
message.displayName = reader.string();
|
|
3130
|
-
break;
|
|
3131
|
-
case /* string category */ 3:
|
|
3132
|
-
message.category = reader.string();
|
|
3133
|
-
break;
|
|
3134
|
-
default:
|
|
3135
|
-
let u = options.readUnknownField;
|
|
3136
|
-
if (u === "throw")
|
|
3137
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
3138
|
-
let d = reader.skip(wireType);
|
|
3139
|
-
if (u !== false)
|
|
3140
|
-
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
3141
|
-
}
|
|
3142
|
-
}
|
|
3143
|
-
return message;
|
|
3144
|
-
}
|
|
3145
|
-
internalBinaryWrite(message: ActionEventType, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
3146
|
-
/* string type = 1; */
|
|
3147
|
-
if (message.type !== "")
|
|
3148
|
-
writer.tag(1, WireType.LengthDelimited).string(message.type);
|
|
3149
|
-
/* string display_name = 2; */
|
|
3150
|
-
if (message.displayName !== "")
|
|
3151
|
-
writer.tag(2, WireType.LengthDelimited).string(message.displayName);
|
|
3152
|
-
/* string category = 3; */
|
|
3153
|
-
if (message.category !== "")
|
|
3154
|
-
writer.tag(3, WireType.LengthDelimited).string(message.category);
|
|
3155
|
-
let u = options.writeUnknownFields;
|
|
3156
|
-
if (u !== false)
|
|
3157
|
-
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
3158
|
-
return writer;
|
|
3159
|
-
}
|
|
3160
|
-
}
|
|
3161
|
-
/**
|
|
3162
|
-
* @generated MessageType for protobuf message sid.v1.authn.ActionEventType
|
|
3163
|
-
*/
|
|
3164
|
-
export const ActionEventType = new ActionEventType$Type();
|
|
3165
|
-
/**
|
|
3166
|
-
* @generated ServiceType for protobuf service sid.v1.authn.FlowService
|
|
3167
|
-
*/
|
|
3168
|
-
export const FlowService = new ServiceType("sid.v1.authn.FlowService", [
|
|
3169
|
-
{ name: "ListFlows", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { get: "/v1/admin/flows" } }, I: Empty, O: ListFlowsResponse },
|
|
3170
|
-
{ name: "GetFlow", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { get: "/v1/admin/flows/{flow_id}" } }, I: GetFlowRequest, O: Flow },
|
|
3171
|
-
{ name: "CreateFlow", options: { "google.api.http": { post: "/v1/admin/flows", body: "*" } }, I: CreateFlowRequest, O: Flow },
|
|
3172
|
-
{ name: "UpdateFlow", idempotency: "IDEMPOTENT", options: { "google.api.http": { patch: "/v1/admin/flows/{flow_id}", body: "*" } }, I: UpdateFlowRequest, O: Flow },
|
|
3173
|
-
{ name: "DeleteFlow", idempotency: "IDEMPOTENT", options: { "google.api.http": { delete: "/v1/admin/flows/{flow_id}" } }, I: DeleteFlowRequest, O: Empty },
|
|
3174
|
-
{ name: "DuplicateFlow", options: { "google.api.http": { post: "/v1/admin/flows/{flow_id}/duplicate", body: "*" } }, I: DuplicateFlowRequest, O: Flow },
|
|
3175
|
-
{ name: "BindFlow", idempotency: "IDEMPOTENT", options: { "google.api.http": { post: "/v1/admin/flows/{flow_id}/bind", body: "*" } }, I: BindFlowRequest, O: Empty },
|
|
3176
|
-
{ name: "ExportBlueprint", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { get: "/v1/admin/flows/{flow_id}/blueprint" } }, I: ExportBlueprintRequest, O: BlueprintResponse },
|
|
3177
|
-
{ name: "ImportBlueprint", options: { "google.api.http": { post: "/v1/admin/flows/import", body: "*" } }, I: ImportBlueprintRequest, O: Flow },
|
|
3178
|
-
{ name: "ListStepBindings", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { get: "/v1/admin/flows/{flow_id}/steps" } }, I: ListStepBindingsRequest, O: ListStepBindingsResponse },
|
|
3179
|
-
{ name: "AddStepBinding", options: { "google.api.http": { post: "/v1/admin/flows/{flow_id}/steps", body: "*" } }, I: AddStepBindingRequest, O: StepBinding },
|
|
3180
|
-
{ name: "UpdateStepBinding", idempotency: "IDEMPOTENT", options: { "google.api.http": { patch: "/v1/admin/flows/{flow_id}/steps/{binding_id}", body: "*" } }, I: UpdateStepBindingRequest, O: StepBinding },
|
|
3181
|
-
{ name: "RemoveStepBinding", idempotency: "IDEMPOTENT", options: { "google.api.http": { delete: "/v1/admin/flows/{flow_id}/steps/{binding_id}" } }, I: RemoveStepBindingRequest, O: Empty },
|
|
3182
|
-
{ name: "ReorderStepBindings", idempotency: "IDEMPOTENT", options: { "google.api.http": { post: "/v1/admin/flows/{flow_id}/steps/reorder", body: "*" } }, I: ReorderStepBindingsRequest, O: ListStepBindingsResponse }
|
|
3183
|
-
]);
|
|
3184
|
-
/**
|
|
3185
|
-
* @generated ServiceType for protobuf service sid.v1.authn.StepService
|
|
3186
|
-
*/
|
|
3187
|
-
export const StepService = new ServiceType("sid.v1.authn.StepService", [
|
|
3188
|
-
{ name: "ListStepTypes", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { get: "/v1/admin/steps" } }, I: Empty, O: ListStepTypesResponse },
|
|
3189
|
-
{ name: "GetStepConfig", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { get: "/v1/admin/steps/{step_type}/config" } }, I: GetStepConfigRequest, O: StepConfig },
|
|
3190
|
-
{ name: "UpdateStepConfig", idempotency: "IDEMPOTENT", options: { "google.api.http": { patch: "/v1/admin/steps/{step_type}/config", body: "*" } }, I: UpdateStepConfigRequest, O: StepConfig }
|
|
3191
|
-
]);
|
|
3192
|
-
/**
|
|
3193
|
-
* @generated ServiceType for protobuf service sid.v1.authn.ActionService
|
|
3194
|
-
*/
|
|
3195
|
-
export const ActionService = new ServiceType("sid.v1.authn.ActionService", [
|
|
3196
|
-
{ name: "ListActions", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { get: "/v1/admin/actions" } }, I: Empty, O: ListActionsResponse },
|
|
3197
|
-
{ name: "GetAction", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { get: "/v1/admin/actions/{action_id}" } }, I: GetActionRequest, O: Action },
|
|
3198
|
-
{ name: "CreateAction", options: { "google.api.http": { post: "/v1/admin/actions", body: "*" } }, I: CreateActionRequest, O: Action },
|
|
3199
|
-
{ name: "UpdateAction", idempotency: "IDEMPOTENT", options: { "google.api.http": { patch: "/v1/admin/actions/{action_id}", body: "*" } }, I: UpdateActionRequest, O: Action },
|
|
3200
|
-
{ name: "DeleteAction", idempotency: "IDEMPOTENT", options: { "google.api.http": { delete: "/v1/admin/actions/{action_id}" } }, I: DeleteActionRequest, O: Empty },
|
|
3201
|
-
{ name: "TestAction", options: { "google.api.http": { post: "/v1/admin/actions/{action_id}/test", body: "*" } }, I: TestActionRequest, O: TestActionResponse },
|
|
3202
|
-
{ name: "ListBuiltinActions", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { get: "/v1/admin/actions/builtin" } }, I: Empty, O: ListBuiltinActionsResponse },
|
|
3203
|
-
{ name: "ConfigureBuiltinAction", idempotency: "IDEMPOTENT", options: { "google.api.http": { patch: "/v1/admin/actions/builtin/{action_type}", body: "*" } }, I: ConfigureBuiltinActionRequest, O: BuiltinAction },
|
|
3204
|
-
{ name: "ListEventTypes", idempotency: "NO_SIDE_EFFECTS", options: { "google.api.http": { get: "/v1/admin/actions/event-types" } }, I: Empty, O: ListEventTypesResponse }
|
|
3205
|
-
]);
|