@structured-id/proto 0.15.0 → 0.16.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.
Files changed (35) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/dist/generated/sid/v1/admin/admin.d.ts +48 -17
  3. package/dist/generated/sid/v1/admin/admin.js +55 -62
  4. package/dist/generated/sid/v1/admin/admin.js.map +1 -1
  5. package/dist/generated/sid/v1/admin/branding.d.ts +54 -26
  6. package/dist/generated/sid/v1/admin/branding.js +87 -98
  7. package/dist/generated/sid/v1/admin/branding.js.map +1 -1
  8. package/dist/generated/sid/v1/admin/enrollment.d.ts +63 -44
  9. package/dist/generated/sid/v1/admin/enrollment.js +109 -107
  10. package/dist/generated/sid/v1/admin/enrollment.js.map +1 -1
  11. package/dist/generated/sid/v1/admin/flow.d.ts +90 -42
  12. package/dist/generated/sid/v1/admin/flow.js +143 -155
  13. package/dist/generated/sid/v1/admin/flow.js.map +1 -1
  14. package/dist/generated/sid/v1/admin/security.d.ts +11 -4
  15. package/dist/generated/sid/v1/admin/security.js +14 -14
  16. package/dist/generated/sid/v1/admin/security.js.map +1 -1
  17. package/dist/generated/sid/v1/admin/sessions.d.ts +18 -8
  18. package/dist/generated/sid/v1/admin/sessions.js +27 -29
  19. package/dist/generated/sid/v1/admin/sessions.js.map +1 -1
  20. package/dist/generated/sid/v1/authn/auth.d.ts +13 -7
  21. package/dist/generated/sid/v1/authn/auth.js +20 -20
  22. package/dist/generated/sid/v1/authn/auth.js.map +1 -1
  23. package/dist/generated/sid/v1/common/types.d.ts +29 -0
  24. package/dist/generated/sid/v1/common/types.js +47 -0
  25. package/dist/generated/sid/v1/common/types.js.map +1 -1
  26. package/dist/generated/sid/v1/federation/upstream.d.ts +34 -16
  27. package/dist/generated/sid/v1/federation/upstream.js +53 -59
  28. package/dist/generated/sid/v1/federation/upstream.js.map +1 -1
  29. package/dist/generated/sid/v1/ids/ids.d.ts +8 -0
  30. package/dist/generated/sid/v1/ids/ids.js +4 -0
  31. package/dist/generated/sid/v1/ids/ids.js.map +1 -1
  32. package/dist/ip.d.ts +31 -0
  33. package/dist/ip.js +84 -0
  34. package/dist/ip.js.map +1 -0
  35. package/package.json +6 -2
@@ -5,7 +5,9 @@ import type { BinaryReadOptions } from "@protobuf-ts/runtime";
5
5
  import type { IBinaryReader } from "@protobuf-ts/runtime";
6
6
  import type { PartialMessage } from "@protobuf-ts/runtime";
7
7
  import { MessageType } from "@protobuf-ts/runtime";
8
+ import { FlowActionId } from "../ids/ids.js";
8
9
  import { Timestamp } from "../../../google/protobuf/timestamp.js";
10
+ import { ProjectId } from "../ids/ids.js";
9
11
  import { Struct } from "../../../google/protobuf/struct.js";
10
12
  /**
11
13
  * @generated from protobuf message sid.v1.admin.StepConfig
@@ -35,9 +37,11 @@ export interface StepConfig {
35
37
  */
36
38
  export interface FlowConfig {
37
39
  /**
38
- * @generated from protobuf field: string project_id = 1
40
+ * Project the configuration belongs to.
41
+ *
42
+ * @generated from protobuf field: sid.v1.ids.ProjectId project_id = 1
39
43
  */
40
- projectId: string;
44
+ projectId?: ProjectId;
41
45
  /**
42
46
  * @generated from protobuf field: sid.v1.admin.FlowType flow_type = 2
43
47
  */
@@ -95,13 +99,17 @@ export interface WebhookConfig {
95
99
  */
96
100
  export interface FlowAction {
97
101
  /**
98
- * @generated from protobuf field: string action_id = 1
102
+ * The action.
103
+ *
104
+ * @generated from protobuf field: sid.v1.ids.FlowActionId action_id = 1
99
105
  */
100
- actionId: string;
106
+ actionId?: FlowActionId;
101
107
  /**
102
- * @generated from protobuf field: string project_id = 2
108
+ * Project whose flows run the action.
109
+ *
110
+ * @generated from protobuf field: sid.v1.ids.ProjectId project_id = 2
103
111
  */
104
- projectId: string;
112
+ projectId?: ProjectId;
105
113
  /**
106
114
  * @generated from protobuf field: sid.v1.admin.FlowType flow_type = 3
107
115
  */
@@ -162,31 +170,43 @@ export interface FlowAction {
162
170
  */
163
171
  export interface GetFlowConfigRequest {
164
172
  /**
165
- * @generated from protobuf field: string project_id = 1
173
+ * Project the configuration belongs to.
174
+ *
175
+ * @generated from protobuf field: sid.v1.ids.ProjectId project_id = 1
166
176
  */
167
- projectId: string;
177
+ projectId?: ProjectId;
168
178
  /**
169
- * @generated from protobuf field: string flow_type = 2
179
+ * Flow whose configuration is read.
180
+ *
181
+ * @generated from protobuf field: sid.v1.admin.FlowType flow_type = 2
170
182
  */
171
- flowType: string;
183
+ flowType: FlowType;
172
184
  }
173
185
  /**
174
186
  * @generated from protobuf message sid.v1.admin.SaveFlowConfigRequest
175
187
  */
176
188
  export interface SaveFlowConfigRequest {
177
189
  /**
178
- * @generated from protobuf field: string project_id = 1
190
+ * Project the configuration belongs to.
191
+ *
192
+ * @generated from protobuf field: sid.v1.ids.ProjectId project_id = 1
179
193
  */
180
- projectId: string;
194
+ projectId?: ProjectId;
181
195
  /**
182
- * @generated from protobuf field: string flow_type = 2
196
+ * Flow whose configuration is replaced.
197
+ *
198
+ * @generated from protobuf field: sid.v1.admin.FlowType flow_type = 2
183
199
  */
184
- flowType: string;
200
+ flowType: FlowType;
185
201
  /**
202
+ * Step settings; a step not listed keeps the built-in default.
203
+ *
186
204
  * @generated from protobuf field: repeated sid.v1.admin.StepConfig steps = 3
187
205
  */
188
206
  steps: StepConfig[];
189
207
  /**
208
+ * Flow-level timeout in seconds; 0 uses the default of 300.
209
+ *
190
210
  * @generated from protobuf field: uint32 timeout_seconds = 4
191
211
  */
192
212
  timeoutSeconds: number;
@@ -196,9 +216,11 @@ export interface SaveFlowConfigRequest {
196
216
  */
197
217
  export interface ListFlowConfigsRequest {
198
218
  /**
199
- * @generated from protobuf field: string project_id = 1
219
+ * Project whose configurations are listed.
220
+ *
221
+ * @generated from protobuf field: sid.v1.ids.ProjectId project_id = 1
200
222
  */
201
- projectId: string;
223
+ projectId?: ProjectId;
202
224
  }
203
225
  /**
204
226
  * @generated from protobuf message sid.v1.admin.ListFlowConfigsResponse
@@ -214,13 +236,17 @@ export interface ListFlowConfigsResponse {
214
236
  */
215
237
  export interface CreateFlowActionRequest {
216
238
  /**
217
- * @generated from protobuf field: string project_id = 1
239
+ * Project whose flow runs the action.
240
+ *
241
+ * @generated from protobuf field: sid.v1.ids.ProjectId project_id = 1
218
242
  */
219
- projectId: string;
243
+ projectId?: ProjectId;
220
244
  /**
221
- * @generated from protobuf field: string flow_type = 2
245
+ * Flow the action hooks into.
246
+ *
247
+ * @generated from protobuf field: sid.v1.admin.FlowType flow_type = 2
222
248
  */
223
- flowType: string;
249
+ flowType: FlowType;
224
250
  /**
225
251
  * @generated from protobuf field: sid.v1.admin.ActionPoint action_point = 3
226
252
  */
@@ -263,30 +289,40 @@ export interface CreateFlowActionRequest {
263
289
  */
264
290
  export interface GetFlowActionRequest {
265
291
  /**
266
- * @generated from protobuf field: string project_id = 1
292
+ * Project the action belongs to.
293
+ *
294
+ * @generated from protobuf field: sid.v1.ids.ProjectId project_id = 1
267
295
  */
268
- projectId: string;
296
+ projectId?: ProjectId;
269
297
  /**
270
- * @generated from protobuf field: string flow_type = 2
298
+ * Flow the action hooks into.
299
+ *
300
+ * @generated from protobuf field: sid.v1.admin.FlowType flow_type = 2
271
301
  */
272
- flowType: string;
302
+ flowType: FlowType;
273
303
  /**
274
- * @generated from protobuf field: string action_id = 3
304
+ * Action to read.
305
+ *
306
+ * @generated from protobuf field: sid.v1.ids.FlowActionId action_id = 3
275
307
  */
276
- actionId: string;
308
+ actionId?: FlowActionId;
277
309
  }
278
310
  /**
279
311
  * @generated from protobuf message sid.v1.admin.ListFlowActionsRequest
280
312
  */
281
313
  export interface ListFlowActionsRequest {
282
314
  /**
283
- * @generated from protobuf field: string project_id = 1
315
+ * Project whose actions are listed.
316
+ *
317
+ * @generated from protobuf field: sid.v1.ids.ProjectId project_id = 1
284
318
  */
285
- projectId: string;
319
+ projectId?: ProjectId;
286
320
  /**
287
- * @generated from protobuf field: string flow_type = 2
321
+ * Flow whose actions are listed.
322
+ *
323
+ * @generated from protobuf field: sid.v1.admin.FlowType flow_type = 2
288
324
  */
289
- flowType: string;
325
+ flowType: FlowType;
290
326
  /**
291
327
  * Optional filter by action point.
292
328
  *
@@ -308,17 +344,23 @@ export interface ListFlowActionsResponse {
308
344
  */
309
345
  export interface UpdateFlowActionRequest {
310
346
  /**
311
- * @generated from protobuf field: string project_id = 1
347
+ * Project the action belongs to.
348
+ *
349
+ * @generated from protobuf field: sid.v1.ids.ProjectId project_id = 1
312
350
  */
313
- projectId: string;
351
+ projectId?: ProjectId;
314
352
  /**
315
- * @generated from protobuf field: string flow_type = 2
353
+ * Flow the action hooks into.
354
+ *
355
+ * @generated from protobuf field: sid.v1.admin.FlowType flow_type = 2
316
356
  */
317
- flowType: string;
357
+ flowType: FlowType;
318
358
  /**
319
- * @generated from protobuf field: string action_id = 3
359
+ * Action to update.
360
+ *
361
+ * @generated from protobuf field: sid.v1.ids.FlowActionId action_id = 3
320
362
  */
321
- actionId: string;
363
+ actionId?: FlowActionId;
322
364
  /**
323
365
  * Fields to update (all optional — only set fields are applied).
324
366
  *
@@ -359,17 +401,23 @@ export interface UpdateFlowActionRequest {
359
401
  */
360
402
  export interface DeleteFlowActionRequest {
361
403
  /**
362
- * @generated from protobuf field: string project_id = 1
404
+ * Project the action belongs to.
405
+ *
406
+ * @generated from protobuf field: sid.v1.ids.ProjectId project_id = 1
363
407
  */
364
- projectId: string;
408
+ projectId?: ProjectId;
365
409
  /**
366
- * @generated from protobuf field: string flow_type = 2
410
+ * Flow the action hooks into.
411
+ *
412
+ * @generated from protobuf field: sid.v1.admin.FlowType flow_type = 2
367
413
  */
368
- flowType: string;
414
+ flowType: FlowType;
369
415
  /**
370
- * @generated from protobuf field: string action_id = 3
416
+ * Action to delete.
417
+ *
418
+ * @generated from protobuf field: sid.v1.ids.FlowActionId action_id = 3
371
419
  */
372
- actionId: string;
420
+ actionId?: FlowActionId;
373
421
  }
374
422
  /**
375
423
  * @generated from protobuf enum sid.v1.admin.FlowType