@farthershore/client 0.1.0 → 0.3.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 +172 -0
  2. package/README.md +9 -8
  3. package/dist/index.js +105 -54
  4. package/dist/types/api.generated.d.ts +21 -7
  5. package/dist/types/generated/schemas.d.ts +3683 -0
  6. package/dist/types/helpers/wait-for-frontend-build.d.ts +12 -4
  7. package/dist/types/index.d.ts +2 -2
  8. package/dist/types/operations/agents.d.ts +204 -12
  9. package/dist/types/operations/agreements.d.ts +139 -9
  10. package/dist/types/operations/analytics.d.ts +27 -5
  11. package/dist/types/operations/audit-notifications.d.ts +64 -7
  12. package/dist/types/operations/auth.d.ts +12 -4
  13. package/dist/types/operations/backends.d.ts +211 -9
  14. package/dist/types/operations/billing.d.ts +60 -4
  15. package/dist/types/operations/businesses.d.ts +744 -27
  16. package/dist/types/operations/change-sets.d.ts +426 -7
  17. package/dist/types/operations/consumers.d.ts +133 -14
  18. package/dist/types/operations/define.d.ts +16 -5
  19. package/dist/types/operations/environments.d.ts +40 -4
  20. package/dist/types/operations/frontend.d.ts +20 -2
  21. package/dist/types/operations/index.d.ts +3941 -193
  22. package/dist/types/operations/maker-tokens.d.ts +175 -11
  23. package/dist/types/operations/organizations.d.ts +321 -19
  24. package/dist/types/operations/personas.d.ts +98 -8
  25. package/dist/types/operations/plans-usage.d.ts +69 -3
  26. package/dist/types/operations/platform.d.ts +420 -12
  27. package/dist/types/operations/portal.d.ts +409 -16
  28. package/dist/types/operations/promo-codes.d.ts +126 -6
  29. package/dist/types/operations/variables.d.ts +170 -7
  30. package/dist/types/operations/webhooks.d.ts +77 -14
  31. package/dist/types/surface-types.d.ts +25 -3
  32. package/dist/types/transport.d.ts +5 -10
  33. package/dist/types/types.d.ts +385 -411
  34. package/dist/types/version.d.ts +2 -2
  35. package/package.json +1 -1
@@ -4,7 +4,23 @@ export declare const OPERATION_TABLE: {
4
4
  } & {
5
5
  limit?: number | string;
6
6
  offset?: number;
7
- }, import("../types.js").PaginatedResult<import("../types.js").WebhookEndpoint>>;
7
+ }, {
8
+ data: import("../generated/schemas.js").components["schemas"]["WebhookEndpoint"][];
9
+ pagination: {
10
+ total: number;
11
+ limit: number;
12
+ offset: number;
13
+ hasMore: boolean;
14
+ };
15
+ }, {
16
+ data: import("../generated/schemas.js").components["schemas"]["WebhookEndpoint"][];
17
+ pagination: {
18
+ total: number;
19
+ limit: number;
20
+ offset: number;
21
+ hasMore: boolean;
22
+ };
23
+ }>;
8
24
  "webhooks.create": import("./define.js").OperationEntry<{
9
25
  businessId: string;
10
26
  } & {
@@ -12,7 +28,9 @@ export declare const OPERATION_TABLE: {
12
28
  events: string[];
13
29
  environmentId?: string | null;
14
30
  }, {
15
- data: import("../types.js").WebhookEndpoint;
31
+ data: import("../generated/schemas.js").components["schemas"]["WebhookEndpointIssuance"];
32
+ }, {
33
+ data: import("../generated/schemas.js").components["schemas"]["WebhookEndpointIssuance"];
16
34
  }>;
17
35
  "webhooks.update": import("./define.js").OperationEntry<{
18
36
  businessId: string;
@@ -24,7 +42,9 @@ export declare const OPERATION_TABLE: {
24
42
  enabled?: boolean;
25
43
  environmentId?: string | null;
26
44
  }, {
27
- data: import("../types.js").WebhookEndpoint;
45
+ data: import("../generated/schemas.js").components["schemas"]["WebhookEndpoint"];
46
+ }, {
47
+ data: import("../generated/schemas.js").components["schemas"]["WebhookEndpoint"];
28
48
  }>;
29
49
  "webhooks.delete": import("./define.js").OperationEntry<{
30
50
  businessId: string;
@@ -32,7 +52,11 @@ export declare const OPERATION_TABLE: {
32
52
  webhookId: string;
33
53
  }, {
34
54
  data: {
35
- deleted: boolean;
55
+ deleted: true;
56
+ };
57
+ }, {
58
+ data: {
59
+ deleted: true;
36
60
  };
37
61
  }>;
38
62
  "webhooks.test": import("./define.js").OperationEntry<{
@@ -41,31 +65,46 @@ export declare const OPERATION_TABLE: {
41
65
  webhookId: string;
42
66
  } & {
43
67
  type?: string;
44
- }, import("../types.js").WebhookTestResult>;
68
+ }, {
69
+ data: import("../generated/schemas.js").components["schemas"]["WebhookTestResult"];
70
+ }, {
71
+ data: import("../generated/schemas.js").components["schemas"]["WebhookTestResult"];
72
+ }>;
45
73
  "webhooks.trigger": import("./define.js").OperationEntry<{
46
74
  businessId: string;
47
75
  } & {
48
76
  webhookId: string;
49
77
  } & {
50
78
  type: string;
51
- }, import("../types.js").WebhookTestResult>;
79
+ }, {
80
+ data: import("../generated/schemas.js").components["schemas"]["WebhookTestResult"];
81
+ }, {
82
+ data: import("../generated/schemas.js").components["schemas"]["WebhookTestResult"];
83
+ }>;
52
84
  "webhooks.rotateSecret": import("./define.js").OperationEntry<{
53
85
  businessId: string;
54
86
  } & {
55
87
  webhookId: string;
56
88
  }, {
57
- data: import("../types.js").WebhookEndpoint & {
58
- secret: string;
59
- };
89
+ data: import("../generated/schemas.js").components["schemas"]["WebhookEndpointRotation"];
90
+ }, {
91
+ data: import("../generated/schemas.js").components["schemas"]["WebhookEndpointRotation"];
60
92
  }>;
61
93
  "webhooks.eventType.read": import("./define.js").OperationEntry<{
62
94
  businessId: string;
63
95
  }, {
64
96
  data: {
65
- events: Array<{
66
- name: string;
97
+ events: {
98
+ name: "subscription.created" | "subscription.updated" | "subscription.canceled" | "payment.succeeded" | "payment.failed" | "entitlement.changed" | "usage.threshold_reached";
99
+ description: string;
100
+ }[];
101
+ };
102
+ }, {
103
+ data: {
104
+ events: {
105
+ name: "subscription.created" | "subscription.updated" | "subscription.canceled" | "payment.succeeded" | "payment.failed" | "entitlement.changed" | "usage.threshold_reached";
67
106
  description: string;
68
- }>;
107
+ }[];
69
108
  };
70
109
  }>;
71
110
  "webhooks.delivery.read": import("./define.js").OperationEntry<{
@@ -75,154 +114,978 @@ export declare const OPERATION_TABLE: {
75
114
  } & {
76
115
  limit?: number | string;
77
116
  offset?: number | string;
78
- }, import("../types.js").PaginatedResult<import("../types.js").WebhookDelivery>>;
117
+ }, {
118
+ data: import("../generated/schemas.js").components["schemas"]["WebhookDelivery"][];
119
+ pagination: {
120
+ total: number;
121
+ limit: number;
122
+ offset: number;
123
+ hasMore: boolean;
124
+ };
125
+ }, {
126
+ data: import("../generated/schemas.js").components["schemas"]["WebhookDelivery"][];
127
+ pagination: {
128
+ total: number;
129
+ limit: number;
130
+ offset: number;
131
+ hasMore: boolean;
132
+ };
133
+ }>;
134
+ "webhooks.delivery.get": import("./define.js").OperationEntry<{
135
+ businessId: string;
136
+ } & {
137
+ webhookId: string;
138
+ } & {
139
+ deliveryId: string;
140
+ }, {
141
+ data: import("../generated/schemas.js").components["schemas"]["WebhookDelivery"];
142
+ }, {
143
+ data: import("../generated/schemas.js").components["schemas"]["WebhookDelivery"];
144
+ }>;
79
145
  "variables.read": import("./define.js").OperationEntry<{
80
146
  businessId: string;
81
147
  environmentId?: string;
82
- }, import("../types.js").BusinessVariableRow[]>;
148
+ }, {
149
+ name: string;
150
+ visibility: "public" | "secret";
151
+ value: string | null;
152
+ hasValue: boolean;
153
+ lifecycleStatus: "PENDING" | "ACTIVE" | "REVOKING" | "REVOKED" | "DELETE_PENDING" | "DELETED";
154
+ version: number | null;
155
+ }[], {
156
+ name: string;
157
+ visibility: "public" | "secret";
158
+ value: string | null;
159
+ hasValue: boolean;
160
+ lifecycleStatus: "PENDING" | "ACTIVE" | "REVOKING" | "REVOKED" | "DELETE_PENDING" | "DELETED";
161
+ version: number | null;
162
+ }[]>;
83
163
  "variables.create": import("./define.js").OperationEntry<{
84
164
  businessId: string;
85
165
  name: string;
86
166
  environmentId?: string;
87
167
  } & {
88
168
  value: string;
89
- }, import("../types.js").SecretMutationOperation>;
169
+ }, {
170
+ operationId: string;
171
+ kind: "CREATE" | "ROTATE" | "REVOKE" | "DELETE";
172
+ status: "PENDING" | "PROCESSING" | "WAITING_RETRY" | "SUCCEEDED" | "ABORTED";
173
+ version: number;
174
+ pending: boolean;
175
+ attemptCount: number;
176
+ nextAttemptAt: string;
177
+ lastAttemptAt: string | null;
178
+ lastError: {
179
+ code: "SECRET_PUBLICATION_FAILED";
180
+ message: string;
181
+ } | null;
182
+ completedAt: string | null;
183
+ impact: import("../generated/schemas.js").components["schemas"]["SecretMutationImpact"];
184
+ }, {
185
+ operationId: string;
186
+ kind: "CREATE" | "ROTATE" | "REVOKE" | "DELETE";
187
+ status: "PENDING" | "PROCESSING" | "WAITING_RETRY" | "SUCCEEDED" | "ABORTED";
188
+ version: number;
189
+ pending: boolean;
190
+ attemptCount: number;
191
+ nextAttemptAt: string;
192
+ lastAttemptAt: string | null;
193
+ lastError: {
194
+ code: "SECRET_PUBLICATION_FAILED";
195
+ message: string;
196
+ } | null;
197
+ completedAt: string | null;
198
+ impact: import("../generated/schemas.js").components["schemas"]["SecretMutationImpact"];
199
+ }>;
90
200
  "variables.rotate": import("./define.js").OperationEntry<{
91
201
  businessId: string;
92
202
  name: string;
93
203
  environmentId?: string;
94
204
  } & {
95
205
  value: string;
96
- }, import("../types.js").SecretMutationOperation>;
206
+ }, {
207
+ operationId: string;
208
+ kind: "CREATE" | "ROTATE" | "REVOKE" | "DELETE";
209
+ status: "PENDING" | "PROCESSING" | "WAITING_RETRY" | "SUCCEEDED" | "ABORTED";
210
+ version: number;
211
+ pending: boolean;
212
+ attemptCount: number;
213
+ nextAttemptAt: string;
214
+ lastAttemptAt: string | null;
215
+ lastError: {
216
+ code: "SECRET_PUBLICATION_FAILED";
217
+ message: string;
218
+ } | null;
219
+ completedAt: string | null;
220
+ impact: import("../generated/schemas.js").components["schemas"]["SecretMutationImpact"];
221
+ }, {
222
+ operationId: string;
223
+ kind: "CREATE" | "ROTATE" | "REVOKE" | "DELETE";
224
+ status: "PENDING" | "PROCESSING" | "WAITING_RETRY" | "SUCCEEDED" | "ABORTED";
225
+ version: number;
226
+ pending: boolean;
227
+ attemptCount: number;
228
+ nextAttemptAt: string;
229
+ lastAttemptAt: string | null;
230
+ lastError: {
231
+ code: "SECRET_PUBLICATION_FAILED";
232
+ message: string;
233
+ } | null;
234
+ completedAt: string | null;
235
+ impact: import("../generated/schemas.js").components["schemas"]["SecretMutationImpact"];
236
+ }>;
97
237
  "variables.revoke": import("./define.js").OperationEntry<{
98
238
  businessId: string;
99
239
  name: string;
100
240
  environmentId?: string;
101
- }, import("../types.js").SecretMutationOperation>;
241
+ }, {
242
+ operationId: string;
243
+ kind: "CREATE" | "ROTATE" | "REVOKE" | "DELETE";
244
+ status: "PENDING" | "PROCESSING" | "WAITING_RETRY" | "SUCCEEDED" | "ABORTED";
245
+ version: number;
246
+ pending: boolean;
247
+ attemptCount: number;
248
+ nextAttemptAt: string;
249
+ lastAttemptAt: string | null;
250
+ lastError: {
251
+ code: "SECRET_PUBLICATION_FAILED";
252
+ message: string;
253
+ } | null;
254
+ completedAt: string | null;
255
+ impact: import("../generated/schemas.js").components["schemas"]["SecretMutationImpact"];
256
+ }, {
257
+ operationId: string;
258
+ kind: "CREATE" | "ROTATE" | "REVOKE" | "DELETE";
259
+ status: "PENDING" | "PROCESSING" | "WAITING_RETRY" | "SUCCEEDED" | "ABORTED";
260
+ version: number;
261
+ pending: boolean;
262
+ attemptCount: number;
263
+ nextAttemptAt: string;
264
+ lastAttemptAt: string | null;
265
+ lastError: {
266
+ code: "SECRET_PUBLICATION_FAILED";
267
+ message: string;
268
+ } | null;
269
+ completedAt: string | null;
270
+ impact: import("../generated/schemas.js").components["schemas"]["SecretMutationImpact"];
271
+ }>;
102
272
  "variables.delete": import("./define.js").OperationEntry<{
103
273
  businessId: string;
104
274
  name: string;
105
275
  environmentId?: string;
106
- }, import("../types.js").SecretMutationOperation>;
276
+ }, {
277
+ operationId: string;
278
+ kind: "CREATE" | "ROTATE" | "REVOKE" | "DELETE";
279
+ status: "PENDING" | "PROCESSING" | "WAITING_RETRY" | "SUCCEEDED" | "ABORTED";
280
+ version: number;
281
+ pending: boolean;
282
+ attemptCount: number;
283
+ nextAttemptAt: string;
284
+ lastAttemptAt: string | null;
285
+ lastError: {
286
+ code: "SECRET_PUBLICATION_FAILED";
287
+ message: string;
288
+ } | null;
289
+ completedAt: string | null;
290
+ impact: import("../generated/schemas.js").components["schemas"]["SecretMutationImpact"];
291
+ }, {
292
+ operationId: string;
293
+ kind: "CREATE" | "ROTATE" | "REVOKE" | "DELETE";
294
+ status: "PENDING" | "PROCESSING" | "WAITING_RETRY" | "SUCCEEDED" | "ABORTED";
295
+ version: number;
296
+ pending: boolean;
297
+ attemptCount: number;
298
+ nextAttemptAt: string;
299
+ lastAttemptAt: string | null;
300
+ lastError: {
301
+ code: "SECRET_PUBLICATION_FAILED";
302
+ message: string;
303
+ } | null;
304
+ completedAt: string | null;
305
+ impact: import("../generated/schemas.js").components["schemas"]["SecretMutationImpact"];
306
+ }>;
107
307
  "variables.operation.read": import("./define.js").OperationEntry<{
108
308
  businessId: string;
109
309
  operationId: string;
110
- }, import("../types.js").SecretMutationOperation>;
310
+ }, {
311
+ operationId: string;
312
+ kind: "CREATE" | "ROTATE" | "REVOKE" | "DELETE";
313
+ status: "PENDING" | "PROCESSING" | "WAITING_RETRY" | "SUCCEEDED" | "ABORTED";
314
+ version: number;
315
+ pending: boolean;
316
+ attemptCount: number;
317
+ nextAttemptAt: string;
318
+ lastAttemptAt: string | null;
319
+ lastError: {
320
+ code: "SECRET_PUBLICATION_FAILED";
321
+ message: string;
322
+ } | null;
323
+ completedAt: string | null;
324
+ impact: import("../generated/schemas.js").components["schemas"]["SecretMutationImpact"];
325
+ }, {
326
+ operationId: string;
327
+ kind: "CREATE" | "ROTATE" | "REVOKE" | "DELETE";
328
+ status: "PENDING" | "PROCESSING" | "WAITING_RETRY" | "SUCCEEDED" | "ABORTED";
329
+ version: number;
330
+ pending: boolean;
331
+ attemptCount: number;
332
+ nextAttemptAt: string;
333
+ lastAttemptAt: string | null;
334
+ lastError: {
335
+ code: "SECRET_PUBLICATION_FAILED";
336
+ message: string;
337
+ } | null;
338
+ completedAt: string | null;
339
+ impact: import("../generated/schemas.js").components["schemas"]["SecretMutationImpact"];
340
+ }>;
111
341
  "promoCodes.read": import("./define.js").OperationEntry<{
112
342
  businessId: string;
113
- }, import("../types.js").PromoCode[]>;
343
+ }, {
344
+ id: string;
345
+ code: string;
346
+ kind: ("percent_off" | "amount_off" | "free_months") | null;
347
+ amount: number | null;
348
+ durationMonths: number | null;
349
+ applicablePlanIds: string[];
350
+ maxRedemptions: number | null;
351
+ redemptionCount: number;
352
+ activeUntil: string | null;
353
+ status: "ACTIVE" | "ARCHIVED";
354
+ createdAt: string;
355
+ }[], {
356
+ id: string;
357
+ code: string;
358
+ kind: ("percent_off" | "amount_off" | "free_months") | null;
359
+ amount: number | null;
360
+ durationMonths: number | null;
361
+ applicablePlanIds: string[];
362
+ maxRedemptions: number | null;
363
+ redemptionCount: number;
364
+ activeUntil: string | null;
365
+ status: "ACTIVE" | "ARCHIVED";
366
+ createdAt: string;
367
+ }[]>;
114
368
  "promoCodes.create": import("./define.js").OperationEntry<{
115
369
  businessId: string;
116
- } & import("../types.js").CreatePromoCodeInput, import("../types.js").PromoCode>;
370
+ } & import("../types.js").CreatePromoCodeInput, {
371
+ id: string;
372
+ code: string;
373
+ kind: ("percent_off" | "amount_off" | "free_months") | null;
374
+ amount: number | null;
375
+ durationMonths: number | null;
376
+ applicablePlanIds: string[];
377
+ maxRedemptions: number | null;
378
+ redemptionCount: number;
379
+ activeUntil: string | null;
380
+ status: "ACTIVE" | "ARCHIVED";
381
+ createdAt: string;
382
+ }, {
383
+ id: string;
384
+ code: string;
385
+ kind: ("percent_off" | "amount_off" | "free_months") | null;
386
+ amount: number | null;
387
+ durationMonths: number | null;
388
+ applicablePlanIds: string[];
389
+ maxRedemptions: number | null;
390
+ redemptionCount: number;
391
+ activeUntil: string | null;
392
+ status: "ACTIVE" | "ARCHIVED";
393
+ createdAt: string;
394
+ }>;
117
395
  "promoCodes.update": import("./define.js").OperationEntry<{
118
396
  businessId: string;
119
397
  } & {
120
398
  promoCodeId: string;
121
399
  } & Partial<import("../types.js").CreatePromoCodeInput> & {
122
400
  status?: import("../types.js").PromoCodeStatus;
123
- }, import("../types.js").PromoCode>;
401
+ }, {
402
+ id: string;
403
+ code: string;
404
+ kind: ("percent_off" | "amount_off" | "free_months") | null;
405
+ amount: number | null;
406
+ durationMonths: number | null;
407
+ applicablePlanIds: string[];
408
+ maxRedemptions: number | null;
409
+ redemptionCount: number;
410
+ activeUntil: string | null;
411
+ status: "ACTIVE" | "ARCHIVED";
412
+ createdAt: string;
413
+ }, {
414
+ id: string;
415
+ code: string;
416
+ kind: ("percent_off" | "amount_off" | "free_months") | null;
417
+ amount: number | null;
418
+ durationMonths: number | null;
419
+ applicablePlanIds: string[];
420
+ maxRedemptions: number | null;
421
+ redemptionCount: number;
422
+ activeUntil: string | null;
423
+ status: "ACTIVE" | "ARCHIVED";
424
+ createdAt: string;
425
+ }>;
124
426
  "promoCodes.archive": import("./define.js").OperationEntry<{
125
427
  businessId: string;
126
428
  } & {
127
429
  promoCodeId: string;
128
- }, import("../types.js").PromoCode>;
430
+ }, {
431
+ id: string;
432
+ code: string;
433
+ kind: ("percent_off" | "amount_off" | "free_months") | null;
434
+ amount: number | null;
435
+ durationMonths: number | null;
436
+ applicablePlanIds: string[];
437
+ maxRedemptions: number | null;
438
+ redemptionCount: number;
439
+ activeUntil: string | null;
440
+ status: "ACTIVE" | "ARCHIVED";
441
+ createdAt: string;
442
+ }, {
443
+ id: string;
444
+ code: string;
445
+ kind: ("percent_off" | "amount_off" | "free_months") | null;
446
+ amount: number | null;
447
+ durationMonths: number | null;
448
+ applicablePlanIds: string[];
449
+ maxRedemptions: number | null;
450
+ redemptionCount: number;
451
+ activeUntil: string | null;
452
+ status: "ACTIVE" | "ARCHIVED";
453
+ createdAt: string;
454
+ }>;
129
455
  "promoCodes.reactivate": import("./define.js").OperationEntry<{
130
456
  businessId: string;
131
457
  } & {
132
458
  promoCodeId: string;
133
- }, import("../types.js").PromoCode>;
459
+ }, {
460
+ id: string;
461
+ code: string;
462
+ kind: ("percent_off" | "amount_off" | "free_months") | null;
463
+ amount: number | null;
464
+ durationMonths: number | null;
465
+ applicablePlanIds: string[];
466
+ maxRedemptions: number | null;
467
+ redemptionCount: number;
468
+ activeUntil: string | null;
469
+ status: "ACTIVE" | "ARCHIVED";
470
+ createdAt: string;
471
+ }, {
472
+ id: string;
473
+ code: string;
474
+ kind: ("percent_off" | "amount_off" | "free_months") | null;
475
+ amount: number | null;
476
+ durationMonths: number | null;
477
+ applicablePlanIds: string[];
478
+ maxRedemptions: number | null;
479
+ redemptionCount: number;
480
+ activeUntil: string | null;
481
+ status: "ACTIVE" | "ARCHIVED";
482
+ createdAt: string;
483
+ }>;
134
484
  "portal.serviceAccounts.list": import("./define.js").OperationEntry<{
135
485
  businessId: string;
136
486
  } & {
137
487
  limit?: number;
138
488
  offset?: number;
139
- }, unknown>;
489
+ }, {
490
+ data: import("../generated/schemas.js").components["schemas"]["PortalServiceAccountListItem"][];
491
+ pagination: import("../generated/schemas.js").components["schemas"]["PortalOffsetPagination"];
492
+ }, {
493
+ data: import("../generated/schemas.js").components["schemas"]["PortalServiceAccountListItem"][];
494
+ pagination: import("../generated/schemas.js").components["schemas"]["PortalOffsetPagination"];
495
+ }>;
140
496
  "portal.serviceAccounts.create": import("./define.js").OperationEntry<{
141
497
  businessId: string;
142
498
  } & {
143
499
  body: import("./define.js").RequestBody;
144
- }, unknown>;
500
+ }, {
501
+ status: "ACTIVE";
502
+ serviceAccountId: string;
503
+ apiKeyId: string;
504
+ keyPrefix: string;
505
+ plaintext: string;
506
+ requestedPermissions: string[];
507
+ grantedPermissions: string[];
508
+ } | {
509
+ status: "PENDING";
510
+ serviceAccountId: string;
511
+ approvalId: string;
512
+ requestedPermissions: string[];
513
+ grantedPermissions: [];
514
+ excessPermissions: string[];
515
+ eligibleApproverIds: string[];
516
+ }, {
517
+ status: "ACTIVE";
518
+ serviceAccountId: string;
519
+ apiKeyId: string;
520
+ keyPrefix: string;
521
+ plaintext: string;
522
+ requestedPermissions: string[];
523
+ grantedPermissions: string[];
524
+ } | {
525
+ status: "PENDING";
526
+ serviceAccountId: string;
527
+ approvalId: string;
528
+ requestedPermissions: string[];
529
+ grantedPermissions: [];
530
+ excessPermissions: string[];
531
+ eligibleApproverIds: string[];
532
+ }>;
145
533
  "portal.serviceAccounts.update": import("./define.js").OperationEntry<{
146
534
  businessId: string;
147
535
  } & {
148
536
  serviceAccountId: string;
149
537
  body: import("./define.js").RequestBody;
150
- }, unknown>;
538
+ }, {
539
+ status: "ACTIVE";
540
+ serviceAccountId: string;
541
+ requestedPermissions: string[];
542
+ grantedPermissions: string[];
543
+ } | {
544
+ status: "PENDING";
545
+ serviceAccountId: string;
546
+ approvalId: string;
547
+ activePermissions: string[];
548
+ requestedPermissions: string[];
549
+ excessPermissions: string[];
550
+ eligibleApproverIds: string[];
551
+ }, {
552
+ status: "ACTIVE";
553
+ serviceAccountId: string;
554
+ requestedPermissions: string[];
555
+ grantedPermissions: string[];
556
+ } | {
557
+ status: "PENDING";
558
+ serviceAccountId: string;
559
+ approvalId: string;
560
+ activePermissions: string[];
561
+ requestedPermissions: string[];
562
+ excessPermissions: string[];
563
+ eligibleApproverIds: string[];
564
+ }>;
151
565
  "portal.serviceAccounts.approvals": import("./define.js").OperationEntry<{
152
566
  businessId: string;
153
567
  } & {
154
568
  limit?: number;
155
569
  offset?: number;
156
- }, unknown>;
570
+ }, {
571
+ data: import("../generated/schemas.js").components["schemas"]["PortalServiceAccountPendingApproval"][];
572
+ pagination: import("../generated/schemas.js").components["schemas"]["PortalOffsetPagination"];
573
+ }, {
574
+ data: import("../generated/schemas.js").components["schemas"]["PortalServiceAccountPendingApproval"][];
575
+ pagination: import("../generated/schemas.js").components["schemas"]["PortalOffsetPagination"];
576
+ }>;
157
577
  "portal.serviceAccounts.approve": import("./define.js").OperationEntry<{
158
578
  businessId: string;
159
579
  } & {
160
580
  approvalId: string;
161
581
  body: import("./define.js").RequestBody;
162
- }, unknown>;
582
+ }, {
583
+ status: "ACTIVE";
584
+ operation: "CREATE";
585
+ serviceAccountId: string;
586
+ apiKeyId: string;
587
+ plaintext: string;
588
+ grantedPermissions: string[];
589
+ } | {
590
+ status: "ACTIVE";
591
+ operation: "UPDATE";
592
+ serviceAccountId: string;
593
+ grantedPermissions: string[];
594
+ }, {
595
+ status: "ACTIVE";
596
+ operation: "CREATE";
597
+ serviceAccountId: string;
598
+ apiKeyId: string;
599
+ plaintext: string;
600
+ grantedPermissions: string[];
601
+ } | {
602
+ status: "ACTIVE";
603
+ operation: "UPDATE";
604
+ serviceAccountId: string;
605
+ grantedPermissions: string[];
606
+ }>;
163
607
  "portal.serviceAccounts.deny": import("./define.js").OperationEntry<{
164
608
  businessId: string;
165
609
  } & {
166
610
  approvalId: string;
167
- }, unknown>;
611
+ }, {
612
+ status: "DENIED";
613
+ }, {
614
+ status: "DENIED";
615
+ }>;
168
616
  "portal.serviceAccounts.rotate": import("./define.js").OperationEntry<{
169
617
  businessId: string;
170
618
  } & {
171
619
  serviceAccountId: string;
172
- }, unknown>;
620
+ }, {
621
+ status: "ACTIVE";
622
+ serviceAccountId: string;
623
+ revokedKeyId: string;
624
+ apiKeyId: string;
625
+ plaintext: string;
626
+ grantedPermissions: string[];
627
+ }, {
628
+ status: "ACTIVE";
629
+ serviceAccountId: string;
630
+ revokedKeyId: string;
631
+ apiKeyId: string;
632
+ plaintext: string;
633
+ grantedPermissions: string[];
634
+ }>;
173
635
  "portal.serviceAccounts.revoke": import("./define.js").OperationEntry<{
174
636
  businessId: string;
175
637
  } & {
176
638
  serviceAccountId: string;
177
- }, void>;
639
+ }, void, void>;
178
640
  "portal.usageLimits.list": import("./define.js").OperationEntry<{
179
641
  businessId: string;
180
642
  } & {
181
643
  limit?: number;
182
644
  offset?: number;
183
645
  }, {
184
- data: unknown[];
185
- pagination: {
186
- limit: number;
187
- offset: number;
188
- hasMore: boolean;
189
- };
646
+ data: import("../generated/schemas.js").components["schemas"]["PortalUsageLimitDto"][];
647
+ pagination: import("../generated/schemas.js").components["schemas"]["PortalOffsetPagination"];
648
+ }, {
649
+ data: import("../generated/schemas.js").components["schemas"]["PortalUsageLimitDto"][];
650
+ pagination: import("../generated/schemas.js").components["schemas"]["PortalOffsetPagination"];
190
651
  }>;
191
652
  "portal.usageLimits.set": import("./define.js").OperationEntry<{
192
653
  businessId: string;
193
654
  } & {
194
655
  limitId?: string;
195
656
  body: import("./define.js").RequestBody;
196
- }, unknown>;
657
+ }, {
658
+ id: string;
659
+ quantity: string;
660
+ quantityDisplayKey: string;
661
+ quantityLabel: string;
662
+ mode: "BLOCK" | "NOTIFY";
663
+ period: "BILLING_PERIOD";
664
+ notifyAtPct?: number;
665
+ ceiling: {
666
+ limitUnits?: number;
667
+ limitCents?: number;
668
+ };
669
+ effectiveWindow?: {
670
+ strategy: "fixed_window" | "sliding_window";
671
+ periodSeconds: number;
672
+ };
673
+ createdBy: string | null;
674
+ createdAt: string;
675
+ updatedAt: string;
676
+ scope: "ORG";
677
+ subjectId?: never;
678
+ limitUnits: number;
679
+ limitCents?: never;
680
+ } | {
681
+ id: string;
682
+ quantity: string;
683
+ quantityDisplayKey: string;
684
+ quantityLabel: string;
685
+ mode: "BLOCK" | "NOTIFY";
686
+ period: "BILLING_PERIOD";
687
+ notifyAtPct?: number;
688
+ ceiling: {
689
+ limitUnits?: number;
690
+ limitCents?: number;
691
+ };
692
+ effectiveWindow?: {
693
+ strategy: "fixed_window" | "sliding_window";
694
+ periodSeconds: number;
695
+ };
696
+ createdBy: string | null;
697
+ createdAt: string;
698
+ updatedAt: string;
699
+ scope: "ORG";
700
+ subjectId?: never;
701
+ limitUnits?: never;
702
+ limitCents: number;
703
+ } | {
704
+ id: string;
705
+ quantity: string;
706
+ quantityDisplayKey: string;
707
+ quantityLabel: string;
708
+ mode: "BLOCK" | "NOTIFY";
709
+ period: "BILLING_PERIOD";
710
+ notifyAtPct?: number;
711
+ ceiling: {
712
+ limitUnits?: number;
713
+ limitCents?: number;
714
+ };
715
+ effectiveWindow?: {
716
+ strategy: "fixed_window" | "sliding_window";
717
+ periodSeconds: number;
718
+ };
719
+ createdBy: string | null;
720
+ createdAt: string;
721
+ updatedAt: string;
722
+ scope: "MEMBER";
723
+ subjectId: string;
724
+ limitUnits: number;
725
+ limitCents?: never;
726
+ } | {
727
+ id: string;
728
+ quantity: string;
729
+ quantityDisplayKey: string;
730
+ quantityLabel: string;
731
+ mode: "BLOCK" | "NOTIFY";
732
+ period: "BILLING_PERIOD";
733
+ notifyAtPct?: number;
734
+ ceiling: {
735
+ limitUnits?: number;
736
+ limitCents?: number;
737
+ };
738
+ effectiveWindow?: {
739
+ strategy: "fixed_window" | "sliding_window";
740
+ periodSeconds: number;
741
+ };
742
+ createdBy: string | null;
743
+ createdAt: string;
744
+ updatedAt: string;
745
+ scope: "MEMBER";
746
+ subjectId: string;
747
+ limitUnits?: never;
748
+ limitCents: number;
749
+ } | {
750
+ id: string;
751
+ quantity: string;
752
+ quantityDisplayKey: string;
753
+ quantityLabel: string;
754
+ mode: "BLOCK" | "NOTIFY";
755
+ period: "BILLING_PERIOD";
756
+ notifyAtPct?: number;
757
+ ceiling: {
758
+ limitUnits?: number;
759
+ limitCents?: number;
760
+ };
761
+ effectiveWindow?: {
762
+ strategy: "fixed_window" | "sliding_window";
763
+ periodSeconds: number;
764
+ };
765
+ createdBy: string | null;
766
+ createdAt: string;
767
+ updatedAt: string;
768
+ scope: "SERVICE_ACCOUNT";
769
+ subjectId: string;
770
+ limitUnits: number;
771
+ limitCents?: never;
772
+ } | {
773
+ id: string;
774
+ quantity: string;
775
+ quantityDisplayKey: string;
776
+ quantityLabel: string;
777
+ mode: "BLOCK" | "NOTIFY";
778
+ period: "BILLING_PERIOD";
779
+ notifyAtPct?: number;
780
+ ceiling: {
781
+ limitUnits?: number;
782
+ limitCents?: number;
783
+ };
784
+ effectiveWindow?: {
785
+ strategy: "fixed_window" | "sliding_window";
786
+ periodSeconds: number;
787
+ };
788
+ createdBy: string | null;
789
+ createdAt: string;
790
+ updatedAt: string;
791
+ scope: "SERVICE_ACCOUNT";
792
+ subjectId: string;
793
+ limitUnits?: never;
794
+ limitCents: number;
795
+ }, {
796
+ id: string;
797
+ quantity: string;
798
+ quantityDisplayKey: string;
799
+ quantityLabel: string;
800
+ mode: "BLOCK" | "NOTIFY";
801
+ period: "BILLING_PERIOD";
802
+ notifyAtPct?: number;
803
+ ceiling: {
804
+ limitUnits?: number;
805
+ limitCents?: number;
806
+ };
807
+ effectiveWindow?: {
808
+ strategy: "fixed_window" | "sliding_window";
809
+ periodSeconds: number;
810
+ };
811
+ createdBy: string | null;
812
+ createdAt: string;
813
+ updatedAt: string;
814
+ scope: "ORG";
815
+ subjectId?: never;
816
+ limitUnits: number;
817
+ limitCents?: never;
818
+ } | {
819
+ id: string;
820
+ quantity: string;
821
+ quantityDisplayKey: string;
822
+ quantityLabel: string;
823
+ mode: "BLOCK" | "NOTIFY";
824
+ period: "BILLING_PERIOD";
825
+ notifyAtPct?: number;
826
+ ceiling: {
827
+ limitUnits?: number;
828
+ limitCents?: number;
829
+ };
830
+ effectiveWindow?: {
831
+ strategy: "fixed_window" | "sliding_window";
832
+ periodSeconds: number;
833
+ };
834
+ createdBy: string | null;
835
+ createdAt: string;
836
+ updatedAt: string;
837
+ scope: "ORG";
838
+ subjectId?: never;
839
+ limitUnits?: never;
840
+ limitCents: number;
841
+ } | {
842
+ id: string;
843
+ quantity: string;
844
+ quantityDisplayKey: string;
845
+ quantityLabel: string;
846
+ mode: "BLOCK" | "NOTIFY";
847
+ period: "BILLING_PERIOD";
848
+ notifyAtPct?: number;
849
+ ceiling: {
850
+ limitUnits?: number;
851
+ limitCents?: number;
852
+ };
853
+ effectiveWindow?: {
854
+ strategy: "fixed_window" | "sliding_window";
855
+ periodSeconds: number;
856
+ };
857
+ createdBy: string | null;
858
+ createdAt: string;
859
+ updatedAt: string;
860
+ scope: "MEMBER";
861
+ subjectId: string;
862
+ limitUnits: number;
863
+ limitCents?: never;
864
+ } | {
865
+ id: string;
866
+ quantity: string;
867
+ quantityDisplayKey: string;
868
+ quantityLabel: string;
869
+ mode: "BLOCK" | "NOTIFY";
870
+ period: "BILLING_PERIOD";
871
+ notifyAtPct?: number;
872
+ ceiling: {
873
+ limitUnits?: number;
874
+ limitCents?: number;
875
+ };
876
+ effectiveWindow?: {
877
+ strategy: "fixed_window" | "sliding_window";
878
+ periodSeconds: number;
879
+ };
880
+ createdBy: string | null;
881
+ createdAt: string;
882
+ updatedAt: string;
883
+ scope: "MEMBER";
884
+ subjectId: string;
885
+ limitUnits?: never;
886
+ limitCents: number;
887
+ } | {
888
+ id: string;
889
+ quantity: string;
890
+ quantityDisplayKey: string;
891
+ quantityLabel: string;
892
+ mode: "BLOCK" | "NOTIFY";
893
+ period: "BILLING_PERIOD";
894
+ notifyAtPct?: number;
895
+ ceiling: {
896
+ limitUnits?: number;
897
+ limitCents?: number;
898
+ };
899
+ effectiveWindow?: {
900
+ strategy: "fixed_window" | "sliding_window";
901
+ periodSeconds: number;
902
+ };
903
+ createdBy: string | null;
904
+ createdAt: string;
905
+ updatedAt: string;
906
+ scope: "SERVICE_ACCOUNT";
907
+ subjectId: string;
908
+ limitUnits: number;
909
+ limitCents?: never;
910
+ } | {
911
+ id: string;
912
+ quantity: string;
913
+ quantityDisplayKey: string;
914
+ quantityLabel: string;
915
+ mode: "BLOCK" | "NOTIFY";
916
+ period: "BILLING_PERIOD";
917
+ notifyAtPct?: number;
918
+ ceiling: {
919
+ limitUnits?: number;
920
+ limitCents?: number;
921
+ };
922
+ effectiveWindow?: {
923
+ strategy: "fixed_window" | "sliding_window";
924
+ periodSeconds: number;
925
+ };
926
+ createdBy: string | null;
927
+ createdAt: string;
928
+ updatedAt: string;
929
+ scope: "SERVICE_ACCOUNT";
930
+ subjectId: string;
931
+ limitUnits?: never;
932
+ limitCents: number;
933
+ }>;
197
934
  "portal.usageLimits.remove": import("./define.js").OperationEntry<{
198
935
  businessId: string;
199
936
  } & {
200
937
  limitId: string;
201
- }, unknown>;
938
+ }, {
939
+ id: string;
940
+ deleted: true;
941
+ }, {
942
+ id: string;
943
+ deleted: true;
944
+ }>;
202
945
  "platform.resourceCounts.report": import("./define.js").OperationEntry<{
203
946
  businessId: string;
204
947
  } & {
205
948
  resource: string;
206
949
  body: import("./define.js").RequestBody;
207
- }, unknown>;
950
+ }, {
951
+ resourceCount: import("../generated/schemas.js").components["schemas"]["ResourceCount"];
952
+ }, {
953
+ resourceCount: import("../generated/schemas.js").components["schemas"]["ResourceCount"];
954
+ }>;
208
955
  "platform.denials.read": import("./define.js").OperationEntry<{
209
956
  businessId: string;
210
957
  } & {
211
958
  requestId: string;
212
- }, unknown>;
959
+ }, {
960
+ denialEvent: import("../generated/schemas.js").components["schemas"]["DenialEvent"];
961
+ }, {
962
+ denialEvent: import("../generated/schemas.js").components["schemas"]["DenialEvent"];
963
+ }>;
213
964
  "platform.dependents.read": import("./define.js").OperationEntry<{
214
965
  businessId: string;
215
966
  } & {
216
967
  route: string;
217
968
  since?: string;
218
969
  environmentId?: string;
219
- }, unknown>;
970
+ }, {
971
+ businessId: string;
972
+ routeKey: string;
973
+ environmentId: string | null;
974
+ sinceMs: number;
975
+ count: number;
976
+ truncated: boolean;
977
+ consumers: import("../generated/schemas.js").components["schemas"]["BusinessDependent"][];
978
+ }, {
979
+ businessId: string;
980
+ routeKey: string;
981
+ environmentId: string | null;
982
+ sinceMs: number;
983
+ count: number;
984
+ truncated: boolean;
985
+ consumers: import("../generated/schemas.js").components["schemas"]["BusinessDependent"][];
986
+ }>;
220
987
  "platform.workflowControl.replay": import("./define.js").OperationEntry<{
221
988
  body: import("./define.js").RequestBody;
222
- }, unknown>;
989
+ }, {
990
+ status: "computed";
991
+ invoiceId: string;
992
+ dryRun: boolean;
993
+ proposedInvoice: {
994
+ id: string;
995
+ periodStart: string;
996
+ periodEnd: string;
997
+ subtotalMicros: string;
998
+ totalMicros: string;
999
+ currency: string;
1000
+ lineItems: {
1001
+ id: string | null;
1002
+ description: string | null;
1003
+ amountMicros: string;
1004
+ }[];
1005
+ };
1006
+ delta: string;
1007
+ deltaCents: number;
1008
+ } | {
1009
+ status: "preview_only";
1010
+ businessId: string;
1011
+ periodStart: string;
1012
+ periodEnd: string;
1013
+ dryRun: true;
1014
+ scope: {
1015
+ subscriptions: number;
1016
+ usageEvents: number;
1017
+ };
1018
+ message: string;
1019
+ }, {
1020
+ status: "computed";
1021
+ invoiceId: string;
1022
+ dryRun: boolean;
1023
+ proposedInvoice: {
1024
+ id: string;
1025
+ periodStart: string;
1026
+ periodEnd: string;
1027
+ subtotalMicros: string;
1028
+ totalMicros: string;
1029
+ currency: string;
1030
+ lineItems: {
1031
+ id: string | null;
1032
+ description: string | null;
1033
+ amountMicros: string;
1034
+ }[];
1035
+ };
1036
+ delta: string;
1037
+ deltaCents: number;
1038
+ } | {
1039
+ status: "preview_only";
1040
+ businessId: string;
1041
+ periodStart: string;
1042
+ periodEnd: string;
1043
+ dryRun: true;
1044
+ scope: {
1045
+ subscriptions: number;
1046
+ usageEvents: number;
1047
+ };
1048
+ message: string;
1049
+ }>;
223
1050
  "platform.workflowControl.rollback": import("./define.js").OperationEntry<{
224
1051
  body: import("./define.js").RequestBody;
225
- }, unknown>;
1052
+ }, {
1053
+ status: "preview_only";
1054
+ businessId: string;
1055
+ commitSha: string;
1056
+ dryRun: true;
1057
+ currentCommitSha: string | null;
1058
+ message: string;
1059
+ diff?: {
1060
+ repo: string;
1061
+ fromCommit: string;
1062
+ toCommit: string;
1063
+ files: {
1064
+ path: string;
1065
+ contentFrom: string;
1066
+ contentTo: string;
1067
+ }[];
1068
+ revertCommitSha: string | null;
1069
+ };
1070
+ }, {
1071
+ status: "preview_only";
1072
+ businessId: string;
1073
+ commitSha: string;
1074
+ dryRun: true;
1075
+ currentCommitSha: string | null;
1076
+ message: string;
1077
+ diff?: {
1078
+ repo: string;
1079
+ fromCommit: string;
1080
+ toCommit: string;
1081
+ files: {
1082
+ path: string;
1083
+ contentFrom: string;
1084
+ contentTo: string;
1085
+ }[];
1086
+ revertCommitSha: string | null;
1087
+ };
1088
+ }>;
226
1089
  "automationRules.read": import("./define.js").OperationEntry<{
227
1090
  businessId: string;
228
1091
  } & {
@@ -230,88 +1093,523 @@ export declare const OPERATION_TABLE: {
230
1093
  limit?: number;
231
1094
  } & {
232
1095
  env?: string;
233
- }, unknown>;
1096
+ }, {
1097
+ items: import("../generated/schemas.js").components["schemas"]["AutomationRule"][];
1098
+ nextCursor: string | null;
1099
+ }, {
1100
+ items: import("../generated/schemas.js").components["schemas"]["AutomationRule"][];
1101
+ nextCursor: string | null;
1102
+ }>;
234
1103
  "automationRules.get": import("./define.js").OperationEntry<{
235
1104
  businessId: string;
236
1105
  } & {
237
1106
  ruleId: string;
238
- }, unknown>;
1107
+ }, {
1108
+ name: string;
1109
+ trigger: {
1110
+ eventType: "subscription.created" | "subscription.updated" | "subscription.canceled" | "payment.succeeded" | "payment.failed" | "entitlement.changed" | "usage.threshold_reached" | "rate_limit.exceeded" | "usage.recorded" | "usage.archive_checkpoint" | "gateway.request_denied" | "change_set.created" | "change_set.approved" | "change_set.applied" | "change_set.rolled_back" | "change_set.cancelled" | "billing.event_recorded" | "authz.decision" | "repo.changed" | "automation.rule_fired" | "automation.action_succeeded" | "automation.action_failed" | "automation.action_denied" | "automation.notification" | "access_request.created" | "access_request.resolved" | "build.failed" | "product.published" | "workflow.failed" | "pr.review_posted";
1111
+ filter?: {
1112
+ subjectType?: string;
1113
+ subjectId?: string;
1114
+ };
1115
+ };
1116
+ conditions: {
1117
+ path: string;
1118
+ operator: "eq" | "neq" | "gt" | "lt" | "contains" | "path_prefix";
1119
+ value: string | number | boolean;
1120
+ }[];
1121
+ actions: ({
1122
+ kind: "emit_webhook_event";
1123
+ event: "subscription.created" | "subscription.updated" | "subscription.canceled" | "payment.succeeded" | "payment.failed" | "entitlement.changed" | "usage.threshold_reached";
1124
+ payload: {
1125
+ [key: string]: unknown;
1126
+ };
1127
+ } | {
1128
+ kind: "create_notification";
1129
+ level: "info" | "warning" | "critical";
1130
+ message: string;
1131
+ } | {
1132
+ kind: "propose_change_set";
1133
+ intent: string;
1134
+ roleKey: string;
1135
+ permissions: string[];
1136
+ } | {
1137
+ kind: "notify_audience";
1138
+ audience: {
1139
+ [key: string]: unknown;
1140
+ };
1141
+ class: "product_update" | "transactional";
1142
+ subject: string;
1143
+ body: string;
1144
+ })[];
1145
+ enabled: boolean;
1146
+ schemaVersion: number;
1147
+ id: string;
1148
+ businessId: string;
1149
+ environmentId: string | null;
1150
+ createdAt: string;
1151
+ updatedAt: string;
1152
+ }, {
1153
+ name: string;
1154
+ trigger: {
1155
+ eventType: "subscription.created" | "subscription.updated" | "subscription.canceled" | "payment.succeeded" | "payment.failed" | "entitlement.changed" | "usage.threshold_reached" | "rate_limit.exceeded" | "usage.recorded" | "usage.archive_checkpoint" | "gateway.request_denied" | "change_set.created" | "change_set.approved" | "change_set.applied" | "change_set.rolled_back" | "change_set.cancelled" | "billing.event_recorded" | "authz.decision" | "repo.changed" | "automation.rule_fired" | "automation.action_succeeded" | "automation.action_failed" | "automation.action_denied" | "automation.notification" | "access_request.created" | "access_request.resolved" | "build.failed" | "product.published" | "workflow.failed" | "pr.review_posted";
1156
+ filter?: {
1157
+ subjectType?: string;
1158
+ subjectId?: string;
1159
+ };
1160
+ };
1161
+ conditions: {
1162
+ path: string;
1163
+ operator: "eq" | "neq" | "gt" | "lt" | "contains" | "path_prefix";
1164
+ value: string | number | boolean;
1165
+ }[];
1166
+ actions: ({
1167
+ kind: "emit_webhook_event";
1168
+ event: "subscription.created" | "subscription.updated" | "subscription.canceled" | "payment.succeeded" | "payment.failed" | "entitlement.changed" | "usage.threshold_reached";
1169
+ payload: {
1170
+ [key: string]: unknown;
1171
+ };
1172
+ } | {
1173
+ kind: "create_notification";
1174
+ level: "info" | "warning" | "critical";
1175
+ message: string;
1176
+ } | {
1177
+ kind: "propose_change_set";
1178
+ intent: string;
1179
+ roleKey: string;
1180
+ permissions: string[];
1181
+ } | {
1182
+ kind: "notify_audience";
1183
+ audience: {
1184
+ [key: string]: unknown;
1185
+ };
1186
+ class: "product_update" | "transactional";
1187
+ subject: string;
1188
+ body: string;
1189
+ })[];
1190
+ enabled: boolean;
1191
+ schemaVersion: number;
1192
+ id: string;
1193
+ businessId: string;
1194
+ environmentId: string | null;
1195
+ createdAt: string;
1196
+ updatedAt: string;
1197
+ }>;
239
1198
  "automationRules.create": import("./define.js").OperationEntry<{
240
1199
  businessId: string;
241
1200
  } & {
242
1201
  body: import("./define.js").RequestBody;
243
- }, unknown>;
1202
+ }, {
1203
+ name: string;
1204
+ trigger: {
1205
+ eventType: "subscription.created" | "subscription.updated" | "subscription.canceled" | "payment.succeeded" | "payment.failed" | "entitlement.changed" | "usage.threshold_reached" | "rate_limit.exceeded" | "usage.recorded" | "usage.archive_checkpoint" | "gateway.request_denied" | "change_set.created" | "change_set.approved" | "change_set.applied" | "change_set.rolled_back" | "change_set.cancelled" | "billing.event_recorded" | "authz.decision" | "repo.changed" | "automation.rule_fired" | "automation.action_succeeded" | "automation.action_failed" | "automation.action_denied" | "automation.notification" | "access_request.created" | "access_request.resolved" | "build.failed" | "product.published" | "workflow.failed" | "pr.review_posted";
1206
+ filter?: {
1207
+ subjectType?: string;
1208
+ subjectId?: string;
1209
+ };
1210
+ };
1211
+ conditions: {
1212
+ path: string;
1213
+ operator: "eq" | "neq" | "gt" | "lt" | "contains" | "path_prefix";
1214
+ value: string | number | boolean;
1215
+ }[];
1216
+ actions: ({
1217
+ kind: "emit_webhook_event";
1218
+ event: "subscription.created" | "subscription.updated" | "subscription.canceled" | "payment.succeeded" | "payment.failed" | "entitlement.changed" | "usage.threshold_reached";
1219
+ payload: {
1220
+ [key: string]: unknown;
1221
+ };
1222
+ } | {
1223
+ kind: "create_notification";
1224
+ level: "info" | "warning" | "critical";
1225
+ message: string;
1226
+ } | {
1227
+ kind: "propose_change_set";
1228
+ intent: string;
1229
+ roleKey: string;
1230
+ permissions: string[];
1231
+ } | {
1232
+ kind: "notify_audience";
1233
+ audience: {
1234
+ [key: string]: unknown;
1235
+ };
1236
+ class: "product_update" | "transactional";
1237
+ subject: string;
1238
+ body: string;
1239
+ })[];
1240
+ enabled: boolean;
1241
+ schemaVersion: number;
1242
+ id: string;
1243
+ businessId: string;
1244
+ environmentId: string | null;
1245
+ createdAt: string;
1246
+ updatedAt: string;
1247
+ }, {
1248
+ name: string;
1249
+ trigger: {
1250
+ eventType: "subscription.created" | "subscription.updated" | "subscription.canceled" | "payment.succeeded" | "payment.failed" | "entitlement.changed" | "usage.threshold_reached" | "rate_limit.exceeded" | "usage.recorded" | "usage.archive_checkpoint" | "gateway.request_denied" | "change_set.created" | "change_set.approved" | "change_set.applied" | "change_set.rolled_back" | "change_set.cancelled" | "billing.event_recorded" | "authz.decision" | "repo.changed" | "automation.rule_fired" | "automation.action_succeeded" | "automation.action_failed" | "automation.action_denied" | "automation.notification" | "access_request.created" | "access_request.resolved" | "build.failed" | "product.published" | "workflow.failed" | "pr.review_posted";
1251
+ filter?: {
1252
+ subjectType?: string;
1253
+ subjectId?: string;
1254
+ };
1255
+ };
1256
+ conditions: {
1257
+ path: string;
1258
+ operator: "eq" | "neq" | "gt" | "lt" | "contains" | "path_prefix";
1259
+ value: string | number | boolean;
1260
+ }[];
1261
+ actions: ({
1262
+ kind: "emit_webhook_event";
1263
+ event: "subscription.created" | "subscription.updated" | "subscription.canceled" | "payment.succeeded" | "payment.failed" | "entitlement.changed" | "usage.threshold_reached";
1264
+ payload: {
1265
+ [key: string]: unknown;
1266
+ };
1267
+ } | {
1268
+ kind: "create_notification";
1269
+ level: "info" | "warning" | "critical";
1270
+ message: string;
1271
+ } | {
1272
+ kind: "propose_change_set";
1273
+ intent: string;
1274
+ roleKey: string;
1275
+ permissions: string[];
1276
+ } | {
1277
+ kind: "notify_audience";
1278
+ audience: {
1279
+ [key: string]: unknown;
1280
+ };
1281
+ class: "product_update" | "transactional";
1282
+ subject: string;
1283
+ body: string;
1284
+ })[];
1285
+ enabled: boolean;
1286
+ schemaVersion: number;
1287
+ id: string;
1288
+ businessId: string;
1289
+ environmentId: string | null;
1290
+ createdAt: string;
1291
+ updatedAt: string;
1292
+ }>;
244
1293
  "automationRules.update": import("./define.js").OperationEntry<{
245
1294
  businessId: string;
246
1295
  } & {
247
1296
  ruleId: string;
248
1297
  body: import("./define.js").RequestBody;
249
- }, unknown>;
1298
+ }, {
1299
+ name: string;
1300
+ trigger: {
1301
+ eventType: "subscription.created" | "subscription.updated" | "subscription.canceled" | "payment.succeeded" | "payment.failed" | "entitlement.changed" | "usage.threshold_reached" | "rate_limit.exceeded" | "usage.recorded" | "usage.archive_checkpoint" | "gateway.request_denied" | "change_set.created" | "change_set.approved" | "change_set.applied" | "change_set.rolled_back" | "change_set.cancelled" | "billing.event_recorded" | "authz.decision" | "repo.changed" | "automation.rule_fired" | "automation.action_succeeded" | "automation.action_failed" | "automation.action_denied" | "automation.notification" | "access_request.created" | "access_request.resolved" | "build.failed" | "product.published" | "workflow.failed" | "pr.review_posted";
1302
+ filter?: {
1303
+ subjectType?: string;
1304
+ subjectId?: string;
1305
+ };
1306
+ };
1307
+ conditions: {
1308
+ path: string;
1309
+ operator: "eq" | "neq" | "gt" | "lt" | "contains" | "path_prefix";
1310
+ value: string | number | boolean;
1311
+ }[];
1312
+ actions: ({
1313
+ kind: "emit_webhook_event";
1314
+ event: "subscription.created" | "subscription.updated" | "subscription.canceled" | "payment.succeeded" | "payment.failed" | "entitlement.changed" | "usage.threshold_reached";
1315
+ payload: {
1316
+ [key: string]: unknown;
1317
+ };
1318
+ } | {
1319
+ kind: "create_notification";
1320
+ level: "info" | "warning" | "critical";
1321
+ message: string;
1322
+ } | {
1323
+ kind: "propose_change_set";
1324
+ intent: string;
1325
+ roleKey: string;
1326
+ permissions: string[];
1327
+ } | {
1328
+ kind: "notify_audience";
1329
+ audience: {
1330
+ [key: string]: unknown;
1331
+ };
1332
+ class: "product_update" | "transactional";
1333
+ subject: string;
1334
+ body: string;
1335
+ })[];
1336
+ enabled: boolean;
1337
+ schemaVersion: number;
1338
+ id: string;
1339
+ businessId: string;
1340
+ environmentId: string | null;
1341
+ createdAt: string;
1342
+ updatedAt: string;
1343
+ }, {
1344
+ name: string;
1345
+ trigger: {
1346
+ eventType: "subscription.created" | "subscription.updated" | "subscription.canceled" | "payment.succeeded" | "payment.failed" | "entitlement.changed" | "usage.threshold_reached" | "rate_limit.exceeded" | "usage.recorded" | "usage.archive_checkpoint" | "gateway.request_denied" | "change_set.created" | "change_set.approved" | "change_set.applied" | "change_set.rolled_back" | "change_set.cancelled" | "billing.event_recorded" | "authz.decision" | "repo.changed" | "automation.rule_fired" | "automation.action_succeeded" | "automation.action_failed" | "automation.action_denied" | "automation.notification" | "access_request.created" | "access_request.resolved" | "build.failed" | "product.published" | "workflow.failed" | "pr.review_posted";
1347
+ filter?: {
1348
+ subjectType?: string;
1349
+ subjectId?: string;
1350
+ };
1351
+ };
1352
+ conditions: {
1353
+ path: string;
1354
+ operator: "eq" | "neq" | "gt" | "lt" | "contains" | "path_prefix";
1355
+ value: string | number | boolean;
1356
+ }[];
1357
+ actions: ({
1358
+ kind: "emit_webhook_event";
1359
+ event: "subscription.created" | "subscription.updated" | "subscription.canceled" | "payment.succeeded" | "payment.failed" | "entitlement.changed" | "usage.threshold_reached";
1360
+ payload: {
1361
+ [key: string]: unknown;
1362
+ };
1363
+ } | {
1364
+ kind: "create_notification";
1365
+ level: "info" | "warning" | "critical";
1366
+ message: string;
1367
+ } | {
1368
+ kind: "propose_change_set";
1369
+ intent: string;
1370
+ roleKey: string;
1371
+ permissions: string[];
1372
+ } | {
1373
+ kind: "notify_audience";
1374
+ audience: {
1375
+ [key: string]: unknown;
1376
+ };
1377
+ class: "product_update" | "transactional";
1378
+ subject: string;
1379
+ body: string;
1380
+ })[];
1381
+ enabled: boolean;
1382
+ schemaVersion: number;
1383
+ id: string;
1384
+ businessId: string;
1385
+ environmentId: string | null;
1386
+ createdAt: string;
1387
+ updatedAt: string;
1388
+ }>;
250
1389
  "automationRules.delete": import("./define.js").OperationEntry<{
251
1390
  businessId: string;
252
1391
  } & {
253
1392
  ruleId: string;
254
- }, void>;
1393
+ }, void, void>;
255
1394
  "knowledge.guide.read": import("./define.js").OperationEntry<{
256
1395
  cursor?: string;
257
1396
  limit?: number;
258
- } | undefined, unknown>;
1397
+ } | undefined, {
1398
+ items: import("../generated/schemas.js").components["schemas"]["KnowledgeResource"][];
1399
+ nextCursor: string | null;
1400
+ }, {
1401
+ items: import("../generated/schemas.js").components["schemas"]["KnowledgeResource"][];
1402
+ nextCursor: string | null;
1403
+ }>;
259
1404
  "knowledge.business.read": import("./define.js").OperationEntry<{
260
1405
  businessId: string;
261
1406
  } & {
262
1407
  cursor?: string;
263
1408
  limit?: number;
264
- }, unknown>;
1409
+ }, {
1410
+ items: import("../generated/schemas.js").components["schemas"]["KnowledgeResource"][];
1411
+ nextCursor: string | null;
1412
+ }, {
1413
+ items: import("../generated/schemas.js").components["schemas"]["KnowledgeResource"][];
1414
+ nextCursor: string | null;
1415
+ }>;
265
1416
  "plans.read": import("./define.js").OperationEntry<{
266
1417
  businessId: string;
267
1418
  environmentId?: string | null;
268
1419
  } & {
269
1420
  limit?: number;
270
1421
  offset?: number;
271
- }, unknown>;
1422
+ }, {
1423
+ data: import("../generated/schemas.js").components["schemas"]["BuilderPlan"][];
1424
+ pagination: {
1425
+ total: number;
1426
+ limit: number;
1427
+ offset: number;
1428
+ hasMore: boolean;
1429
+ };
1430
+ environmentId: string | null;
1431
+ scope: "production" | "environment";
1432
+ unreadable?: import("../generated/schemas.js").components["schemas"]["BusinessUnreadablePlan"][];
1433
+ }, {
1434
+ data: import("../generated/schemas.js").components["schemas"]["BuilderPlan"][];
1435
+ pagination: {
1436
+ total: number;
1437
+ limit: number;
1438
+ offset: number;
1439
+ hasMore: boolean;
1440
+ };
1441
+ environmentId: string | null;
1442
+ scope: "production" | "environment";
1443
+ unreadable?: import("../generated/schemas.js").components["schemas"]["BusinessUnreadablePlan"][];
1444
+ }>;
272
1445
  "usage.read": import("./define.js").OperationEntry<{
273
1446
  businessId: string;
274
1447
  environmentId?: string | null;
275
- }, unknown>;
1448
+ }, {
1449
+ environmentId: string | null;
1450
+ scope: "all" | "environment";
1451
+ totalRequests: number;
1452
+ requestsLast30Days: number;
1453
+ activeApiKeys: number;
1454
+ periodStart: string;
1455
+ periodEnd: string;
1456
+ byMember: import("../generated/schemas.js").components["schemas"]["UsageMemberBucket"][];
1457
+ byMemberTruncated: boolean;
1458
+ meterLabels: {
1459
+ [key: string]: import("../generated/schemas.js").components["schemas"]["UsageMeterLabel"];
1460
+ };
1461
+ unratable: import("../generated/schemas.js").components["schemas"]["UsageUnratable"];
1462
+ }, {
1463
+ environmentId: string | null;
1464
+ scope: "all" | "environment";
1465
+ totalRequests: number;
1466
+ requestsLast30Days: number;
1467
+ activeApiKeys: number;
1468
+ periodStart: string;
1469
+ periodEnd: string;
1470
+ byMember: import("../generated/schemas.js").components["schemas"]["UsageMemberBucket"][];
1471
+ byMemberTruncated: boolean;
1472
+ meterLabels: {
1473
+ [key: string]: import("../generated/schemas.js").components["schemas"]["UsageMeterLabel"];
1474
+ };
1475
+ unratable: import("../generated/schemas.js").components["schemas"]["UsageUnratable"];
1476
+ }>;
276
1477
  "usage.limits": import("./define.js").OperationEntry<{
277
1478
  businessId: string;
278
1479
  limit?: number;
279
1480
  offset?: number;
280
- }, unknown>;
281
- "personas.bootstrap": import("./define.js").OperationEntry<{
282
- businessId: string;
283
- environmentId: string;
284
- } & {
285
- planKey?: string;
286
- compiledPlanId?: string;
287
- scopes?: string[];
1481
+ }, {
1482
+ data: import("../generated/schemas.js").components["schemas"]["ManagementUsageLimit"][];
1483
+ pagination: {
1484
+ total: number;
1485
+ limit: number;
1486
+ offset: number;
1487
+ hasMore: boolean;
1488
+ };
1489
+ }, {
1490
+ data: import("../generated/schemas.js").components["schemas"]["ManagementUsageLimit"][];
1491
+ pagination: {
1492
+ total: number;
1493
+ limit: number;
1494
+ offset: number;
1495
+ hasMore: boolean;
1496
+ };
1497
+ }>;
1498
+ "personas.bootstrap": import("./define.js").OperationEntry<{
1499
+ businessId: string;
1500
+ environmentId: string;
1501
+ } & {
1502
+ planKey?: string;
1503
+ scopes?: string[];
288
1504
  displayName?: string;
289
1505
  subscriberId?: string;
290
1506
  accountRole?: "owner" | "admin" | "member";
291
1507
  roleKeys?: string[];
292
- }, unknown>;
1508
+ }, {
1509
+ data: {
1510
+ personaId: string;
1511
+ environmentId: string;
1512
+ subscriptionId: string;
1513
+ subscriberId: string;
1514
+ organizationId: string;
1515
+ accountRole: "owner" | "admin" | "member";
1516
+ roleKeys: string[];
1517
+ defaultRoleKey: string | null;
1518
+ availableRoleKeys: string[];
1519
+ apiKey: string;
1520
+ keyLastFour: string;
1521
+ sessionToken: string | null;
1522
+ expiresAt: string | null;
1523
+ planKey: string | null;
1524
+ scopes: string[];
1525
+ };
1526
+ }, {
1527
+ data: {
1528
+ personaId: string;
1529
+ environmentId: string;
1530
+ subscriptionId: string;
1531
+ subscriberId: string;
1532
+ organizationId: string;
1533
+ accountRole: "owner" | "admin" | "member";
1534
+ roleKeys: string[];
1535
+ defaultRoleKey: string | null;
1536
+ availableRoleKeys: string[];
1537
+ apiKey: string;
1538
+ keyLastFour: string;
1539
+ sessionToken: string | null;
1540
+ expiresAt: string | null;
1541
+ planKey: string | null;
1542
+ scopes: string[];
1543
+ };
1544
+ }>;
293
1545
  "personas.read": import("./define.js").OperationEntry<{
294
1546
  businessId: string;
295
1547
  environmentId: string;
296
- }, unknown>;
1548
+ }, {
1549
+ data: import("../generated/schemas.js").components["schemas"]["TestPersona"][];
1550
+ }, {
1551
+ data: import("../generated/schemas.js").components["schemas"]["TestPersona"][];
1552
+ }>;
297
1553
  "personas.login": import("./define.js").OperationEntry<{
298
1554
  businessId: string;
299
1555
  environmentId: string;
300
1556
  } & {
301
1557
  personaId: string;
302
- }, import("../types.js").PersonaHandoff>;
1558
+ }, {
1559
+ data: {
1560
+ personaId: string;
1561
+ environmentId: string;
1562
+ portalUrl: string;
1563
+ handoffToken: string;
1564
+ expiresAt: string;
1565
+ };
1566
+ }, {
1567
+ data: {
1568
+ personaId: string;
1569
+ environmentId: string;
1570
+ portalUrl: string;
1571
+ handoffToken: string;
1572
+ expiresAt: string;
1573
+ };
1574
+ }>;
303
1575
  "personas.rotate": import("./define.js").OperationEntry<{
304
1576
  businessId: string;
305
1577
  environmentId: string;
306
1578
  } & {
307
1579
  personaId: string;
308
- }, unknown>;
1580
+ }, {
1581
+ data: {
1582
+ id: string;
1583
+ apiKey: string;
1584
+ keyLastFour: string;
1585
+ rotatedAt: string;
1586
+ };
1587
+ }, {
1588
+ data: {
1589
+ id: string;
1590
+ apiKey: string;
1591
+ keyLastFour: string;
1592
+ rotatedAt: string;
1593
+ };
1594
+ }>;
309
1595
  "personas.delete": import("./define.js").OperationEntry<{
310
1596
  businessId: string;
311
1597
  environmentId: string;
312
1598
  } & {
313
1599
  personaId: string;
314
- }, unknown>;
1600
+ }, {
1601
+ data: {
1602
+ id: string;
1603
+ deleted: true;
1604
+ alreadyDeleted: boolean;
1605
+ };
1606
+ }, {
1607
+ data: {
1608
+ id: string;
1609
+ deleted: true;
1610
+ alreadyDeleted: boolean;
1611
+ };
1612
+ }>;
315
1613
  "personas.localPreview.issue": import("./define.js").OperationEntry<{
316
1614
  businessId: string;
317
1615
  environmentId: string;
@@ -319,7 +1617,7 @@ export declare const OPERATION_TABLE: {
319
1617
  personaId: string;
320
1618
  } & {
321
1619
  localOrigin: string;
322
- }, import("../types.js").PersonaLocalPreviewLease>;
1620
+ }, import("../types.js").PersonaLocalPreviewLease, import("../types.js").PersonaLocalPreviewLease>;
323
1621
  "personas.localPreview.renew": import("./define.js").OperationEntry<{
324
1622
  businessId: string;
325
1623
  environmentId: string;
@@ -333,6 +1631,11 @@ export declare const OPERATION_TABLE: {
333
1631
  localProxyLease: string;
334
1632
  localProxyLeaseExpiresAt: string;
335
1633
  };
1634
+ }, {
1635
+ data: {
1636
+ localProxyLease: string;
1637
+ localProxyLeaseExpiresAt: string;
1638
+ };
336
1639
  }>;
337
1640
  "personas.localPreview.revoke": import("./define.js").OperationEntry<{
338
1641
  businessId: string;
@@ -346,18 +1649,78 @@ export declare const OPERATION_TABLE: {
346
1649
  data: {
347
1650
  revoked: boolean;
348
1651
  };
1652
+ }, {
1653
+ data: {
1654
+ revoked: boolean;
1655
+ };
349
1656
  }>;
350
- "organizations.list": import("./define.js").OperationEntry<void, unknown>;
1657
+ "organizations.list": import("./define.js").OperationEntry<void, {
1658
+ organization: import("../generated/schemas.js").components["schemas"]["OrganizationSummary"];
1659
+ roleKey: string | null;
1660
+ principalKind: "browser_user" | "cli_user" | "maker_token";
1661
+ }[], {
1662
+ organization: import("../generated/schemas.js").components["schemas"]["OrganizationSummary"];
1663
+ roleKey: string | null;
1664
+ principalKind: "browser_user" | "cli_user" | "maker_token";
1665
+ }[]>;
351
1666
  "organizations.create": import("./define.js").OperationEntry<{
352
1667
  name: string;
353
1668
  type: "team" | "company";
354
- }, unknown>;
1669
+ }, {
1670
+ organization: import("../generated/schemas.js").components["schemas"]["OrganizationSummary"];
1671
+ roleKey: "owner";
1672
+ }, {
1673
+ organization: import("../generated/schemas.js").components["schemas"]["OrganizationSummary"];
1674
+ roleKey: "owner";
1675
+ }>;
355
1676
  "organizations.delete": import("./define.js").OperationEntry<{
356
1677
  organizationId: string;
357
- }, void>;
1678
+ }, void, void>;
358
1679
  "organizations.overview.read": import("./define.js").OperationEntry<{
359
1680
  organizationId: string;
360
- }, unknown>;
1681
+ }, {
1682
+ organization: {
1683
+ mrrCents: number | null;
1684
+ mrrDeltaPct: number | null;
1685
+ activeSubscribers: number | null;
1686
+ subscribersDelta7d: number | null;
1687
+ requests7d: number | null;
1688
+ requestsToday: number | null;
1689
+ requestsSeries7d: number[] | null;
1690
+ limitDenials24h: number | null;
1691
+ limitDenialsPct24h: number | null;
1692
+ planUsage: {
1693
+ used: number;
1694
+ cap: number | null;
1695
+ unit: string;
1696
+ periodLabel: string;
1697
+ } | null;
1698
+ stripeConnected: boolean;
1699
+ };
1700
+ businesses: import("../generated/schemas.js").components["schemas"]["OrganizationOverviewBusiness"][];
1701
+ recentActivity: import("../generated/schemas.js").components["schemas"]["OrganizationOverviewActivity"][];
1702
+ }, {
1703
+ organization: {
1704
+ mrrCents: number | null;
1705
+ mrrDeltaPct: number | null;
1706
+ activeSubscribers: number | null;
1707
+ subscribersDelta7d: number | null;
1708
+ requests7d: number | null;
1709
+ requestsToday: number | null;
1710
+ requestsSeries7d: number[] | null;
1711
+ limitDenials24h: number | null;
1712
+ limitDenialsPct24h: number | null;
1713
+ planUsage: {
1714
+ used: number;
1715
+ cap: number | null;
1716
+ unit: string;
1717
+ periodLabel: string;
1718
+ } | null;
1719
+ stripeConnected: boolean;
1720
+ };
1721
+ businesses: import("../generated/schemas.js").components["schemas"]["OrganizationOverviewBusiness"][];
1722
+ recentActivity: import("../generated/schemas.js").components["schemas"]["OrganizationOverviewActivity"][];
1723
+ }>;
361
1724
  "organizations.bulletin.read": import("./define.js").OperationEntry<{
362
1725
  organizationId: string;
363
1726
  } & {
@@ -365,17 +1728,81 @@ export declare const OPERATION_TABLE: {
365
1728
  status?: string;
366
1729
  cursor?: string;
367
1730
  limit?: number;
368
- }, unknown>;
1731
+ }, {
1732
+ items: import("../generated/schemas.js").components["schemas"]["OrganizationBulletinPost"][];
1733
+ nextCursor: string | null;
1734
+ }, {
1735
+ items: import("../generated/schemas.js").components["schemas"]["OrganizationBulletinPost"][];
1736
+ nextCursor: string | null;
1737
+ }>;
369
1738
  "organizations.role.list": import("./define.js").OperationEntry<{
370
1739
  organizationId: string;
371
1740
  } & {
372
1741
  query?: import("./define.js").ListQuery;
373
- }, unknown>;
1742
+ }, {
1743
+ roles: import("../generated/schemas.js").components["schemas"]["OrganizationRole"][];
1744
+ permissionCatalog: {
1745
+ key: import("../generated/schemas.js").components["schemas"]["PlatformPermission"];
1746
+ title: string;
1747
+ description: string;
1748
+ domain: string;
1749
+ effect: "read" | "write";
1750
+ delegation: "maker_token" | "user_session_only" | "browser_only";
1751
+ }[];
1752
+ grantablePermissionKeys: import("../generated/schemas.js").components["schemas"]["PlatformPermission"][];
1753
+ permissions: {
1754
+ canCreate: boolean;
1755
+ canEdit: boolean;
1756
+ canDelete: boolean;
1757
+ };
1758
+ }, {
1759
+ roles: import("../generated/schemas.js").components["schemas"]["OrganizationRole"][];
1760
+ permissionCatalog: {
1761
+ key: import("../generated/schemas.js").components["schemas"]["PlatformPermission"];
1762
+ title: string;
1763
+ description: string;
1764
+ domain: string;
1765
+ effect: "read" | "write";
1766
+ delegation: "maker_token" | "user_session_only" | "browser_only";
1767
+ }[];
1768
+ grantablePermissionKeys: import("../generated/schemas.js").components["schemas"]["PlatformPermission"][];
1769
+ permissions: {
1770
+ canCreate: boolean;
1771
+ canEdit: boolean;
1772
+ canDelete: boolean;
1773
+ };
1774
+ }>;
374
1775
  "organizations.role.show": import("./define.js").OperationEntry<{
375
1776
  organizationId: string;
376
1777
  } & {
377
1778
  roleKey: string;
378
- }, unknown>;
1779
+ }, {
1780
+ id: string;
1781
+ organizationId: string;
1782
+ key: string;
1783
+ name: string;
1784
+ description: string | null;
1785
+ builtIn: boolean;
1786
+ permissions: import("../generated/schemas.js").components["schemas"]["PlatformPermission"][];
1787
+ memberCount: number;
1788
+ canEdit: boolean;
1789
+ canDelete: boolean;
1790
+ createdAt: string;
1791
+ updatedAt: string;
1792
+ }, {
1793
+ id: string;
1794
+ organizationId: string;
1795
+ key: string;
1796
+ name: string;
1797
+ description: string | null;
1798
+ builtIn: boolean;
1799
+ permissions: import("../generated/schemas.js").components["schemas"]["PlatformPermission"][];
1800
+ memberCount: number;
1801
+ canEdit: boolean;
1802
+ canDelete: boolean;
1803
+ createdAt: string;
1804
+ updatedAt: string;
1805
+ }>;
379
1806
  "organizations.role.create": import("./define.js").OperationEntry<{
380
1807
  organizationId: string;
381
1808
  } & {
@@ -383,7 +1810,33 @@ export declare const OPERATION_TABLE: {
383
1810
  name: string;
384
1811
  description?: string;
385
1812
  permissions: string[];
386
- }, unknown>;
1813
+ }, {
1814
+ id: string;
1815
+ organizationId: string;
1816
+ key: string;
1817
+ name: string;
1818
+ description: string | null;
1819
+ builtIn: boolean;
1820
+ permissions: import("../generated/schemas.js").components["schemas"]["PlatformPermission"][];
1821
+ memberCount: number;
1822
+ canEdit: boolean;
1823
+ canDelete: boolean;
1824
+ createdAt: string;
1825
+ updatedAt: string;
1826
+ }, {
1827
+ id: string;
1828
+ organizationId: string;
1829
+ key: string;
1830
+ name: string;
1831
+ description: string | null;
1832
+ builtIn: boolean;
1833
+ permissions: import("../generated/schemas.js").components["schemas"]["PlatformPermission"][];
1834
+ memberCount: number;
1835
+ canEdit: boolean;
1836
+ canDelete: boolean;
1837
+ createdAt: string;
1838
+ updatedAt: string;
1839
+ }>;
387
1840
  "organizations.role.update": import("./define.js").OperationEntry<{
388
1841
  organizationId: string;
389
1842
  } & {
@@ -392,150 +1845,617 @@ export declare const OPERATION_TABLE: {
392
1845
  name?: string;
393
1846
  description?: string | null;
394
1847
  permissions?: string[];
395
- }, unknown>;
1848
+ }, {
1849
+ id: string;
1850
+ organizationId: string;
1851
+ key: string;
1852
+ name: string;
1853
+ description: string | null;
1854
+ builtIn: boolean;
1855
+ permissions: import("../generated/schemas.js").components["schemas"]["PlatformPermission"][];
1856
+ memberCount: number;
1857
+ canEdit: boolean;
1858
+ canDelete: boolean;
1859
+ createdAt: string;
1860
+ updatedAt: string;
1861
+ }, {
1862
+ id: string;
1863
+ organizationId: string;
1864
+ key: string;
1865
+ name: string;
1866
+ description: string | null;
1867
+ builtIn: boolean;
1868
+ permissions: import("../generated/schemas.js").components["schemas"]["PlatformPermission"][];
1869
+ memberCount: number;
1870
+ canEdit: boolean;
1871
+ canDelete: boolean;
1872
+ createdAt: string;
1873
+ updatedAt: string;
1874
+ }>;
396
1875
  "organizations.role.delete": import("./define.js").OperationEntry<{
397
1876
  organizationId: string;
398
1877
  } & {
399
1878
  roleKey: string;
400
- }, void>;
1879
+ }, void, void>;
401
1880
  "organizations.member.list": import("./define.js").OperationEntry<{
402
1881
  organizationId: string;
403
1882
  } & {
404
1883
  query?: import("./define.js").ListQuery;
405
1884
  limit?: number;
406
1885
  offset?: number;
407
- }, unknown>;
1886
+ }, {
1887
+ primaryOwnerUserId: string;
1888
+ viewerRoleKey: string;
1889
+ members: import("../generated/schemas.js").components["schemas"]["OrganizationMember"][];
1890
+ pagination: {
1891
+ total: number;
1892
+ limit: number;
1893
+ offset: number;
1894
+ hasMore: boolean;
1895
+ };
1896
+ organizationType: "personal";
1897
+ ownershipMode: "fixed_single";
1898
+ permissions: {
1899
+ canInvite: boolean;
1900
+ allowedInvitationRoleKeys: string[];
1901
+ canManageRoles: boolean;
1902
+ canTransferPrimaryOwnership: false;
1903
+ };
1904
+ } | {
1905
+ primaryOwnerUserId: string;
1906
+ viewerRoleKey: string;
1907
+ members: import("../generated/schemas.js").components["schemas"]["OrganizationMember"][];
1908
+ pagination: {
1909
+ total: number;
1910
+ limit: number;
1911
+ offset: number;
1912
+ hasMore: boolean;
1913
+ };
1914
+ organizationType: "team" | "company";
1915
+ ownershipMode: "transferable_multi";
1916
+ permissions: import("../generated/schemas.js").components["schemas"]["OrganizationViewerPermissions"];
1917
+ }, {
1918
+ primaryOwnerUserId: string;
1919
+ viewerRoleKey: string;
1920
+ members: import("../generated/schemas.js").components["schemas"]["OrganizationMember"][];
1921
+ pagination: {
1922
+ total: number;
1923
+ limit: number;
1924
+ offset: number;
1925
+ hasMore: boolean;
1926
+ };
1927
+ organizationType: "personal";
1928
+ ownershipMode: "fixed_single";
1929
+ permissions: {
1930
+ canInvite: boolean;
1931
+ allowedInvitationRoleKeys: string[];
1932
+ canManageRoles: boolean;
1933
+ canTransferPrimaryOwnership: false;
1934
+ };
1935
+ } | {
1936
+ primaryOwnerUserId: string;
1937
+ viewerRoleKey: string;
1938
+ members: import("../generated/schemas.js").components["schemas"]["OrganizationMember"][];
1939
+ pagination: {
1940
+ total: number;
1941
+ limit: number;
1942
+ offset: number;
1943
+ hasMore: boolean;
1944
+ };
1945
+ organizationType: "team" | "company";
1946
+ ownershipMode: "transferable_multi";
1947
+ permissions: import("../generated/schemas.js").components["schemas"]["OrganizationViewerPermissions"];
1948
+ }>;
408
1949
  "organizations.member.update": import("./define.js").OperationEntry<{
409
1950
  organizationId: string;
410
1951
  } & {
411
1952
  memberUserId: string;
412
1953
  } & {
413
1954
  roleKey: string;
414
- }, unknown>;
1955
+ }, {
1956
+ userId: string;
1957
+ roleKey: string;
1958
+ }, {
1959
+ userId: string;
1960
+ roleKey: string;
1961
+ }>;
415
1962
  "organizations.member.remove": import("./define.js").OperationEntry<{
416
1963
  organizationId: string;
417
1964
  } & {
418
1965
  memberUserId: string;
419
- }, void>;
1966
+ }, void, void>;
420
1967
  "organizations.ownership.transfer": import("./define.js").OperationEntry<{
421
1968
  organizationId: string;
422
1969
  } & {
423
1970
  newOwnerUserId: string;
424
- }, unknown>;
1971
+ }, {
1972
+ organizationId: string;
1973
+ previousPrimaryOwnerUserId: string;
1974
+ primaryOwnerUserId: string;
1975
+ }, {
1976
+ organizationId: string;
1977
+ previousPrimaryOwnerUserId: string;
1978
+ primaryOwnerUserId: string;
1979
+ }>;
425
1980
  "organizations.invitation.create": import("./define.js").OperationEntry<{
426
1981
  organizationId: string;
427
1982
  } & {
428
1983
  email: string;
429
1984
  roleKey: string;
430
- }, unknown>;
431
- "organizations.invitation.list": import("./define.js").OperationEntry<void, unknown>;
1985
+ }, {
1986
+ id: string;
1987
+ email: string;
1988
+ roleKey: string | null;
1989
+ role: import("../generated/schemas.js").components["schemas"]["OrganizationRole"] | null;
1990
+ status: "pending";
1991
+ expiresAt: string;
1992
+ organizationId: string;
1993
+ }, {
1994
+ id: string;
1995
+ email: string;
1996
+ roleKey: string | null;
1997
+ role: import("../generated/schemas.js").components["schemas"]["OrganizationRole"] | null;
1998
+ status: "pending";
1999
+ expiresAt: string;
2000
+ organizationId: string;
2001
+ }>;
2002
+ "organizations.invitation.list": import("./define.js").OperationEntry<void, {
2003
+ id: string;
2004
+ email: string;
2005
+ roleKey: string | null;
2006
+ role: import("../generated/schemas.js").components["schemas"]["OrganizationRole"] | null;
2007
+ status: "pending";
2008
+ expiresAt: string;
2009
+ organization: import("../generated/schemas.js").components["schemas"]["OrganizationSummary"];
2010
+ }[], {
2011
+ id: string;
2012
+ email: string;
2013
+ roleKey: string | null;
2014
+ role: import("../generated/schemas.js").components["schemas"]["OrganizationRole"] | null;
2015
+ status: "pending";
2016
+ expiresAt: string;
2017
+ organization: import("../generated/schemas.js").components["schemas"]["OrganizationSummary"];
2018
+ }[]>;
432
2019
  "organizations.invitation.listSent": import("./define.js").OperationEntry<{
433
2020
  organizationId: string;
434
- }, unknown>;
2021
+ }, {
2022
+ id: string;
2023
+ email: string;
2024
+ roleKey: string | null;
2025
+ role: import("../generated/schemas.js").components["schemas"]["OrganizationRole"] | null;
2026
+ status: "pending";
2027
+ expiresAt: string;
2028
+ createdAt: string;
2029
+ }[], {
2030
+ id: string;
2031
+ email: string;
2032
+ roleKey: string | null;
2033
+ role: import("../generated/schemas.js").components["schemas"]["OrganizationRole"] | null;
2034
+ status: "pending";
2035
+ expiresAt: string;
2036
+ createdAt: string;
2037
+ }[]>;
435
2038
  "organizations.invitation.revoke": import("./define.js").OperationEntry<{
436
2039
  organizationId: string;
437
2040
  } & {
438
2041
  invitationId: string;
439
- }, void>;
2042
+ }, void, void>;
440
2043
  "organizations.invitation.accept": import("./define.js").OperationEntry<{
441
2044
  invitationId: string;
442
2045
  token: string;
443
- }, unknown>;
444
- "makerTokens.permissionCatalog.read": import("./define.js").OperationEntry<void, import("../types.js").MakerTokenPermissionCatalog>;
2046
+ }, {
2047
+ organization: import("../generated/schemas.js").components["schemas"]["OrganizationSummary"];
2048
+ roleKey: string;
2049
+ }, {
2050
+ organization: import("../generated/schemas.js").components["schemas"]["OrganizationSummary"];
2051
+ roleKey: string;
2052
+ }>;
2053
+ "makerTokens.permissionCatalog.read": import("./define.js").OperationEntry<void, {
2054
+ entries: {
2055
+ subject: string;
2056
+ title: string;
2057
+ permissions: import("../generated/schemas.js").components["schemas"]["MakerDelegablePermission"][];
2058
+ }[];
2059
+ }, {
2060
+ entries: {
2061
+ subject: string;
2062
+ title: string;
2063
+ permissions: import("../generated/schemas.js").components["schemas"]["MakerDelegablePermission"][];
2064
+ }[];
2065
+ }>;
445
2066
  "makerTokens.list": import("./define.js").OperationEntry<{
446
2067
  limit?: number;
447
2068
  offset?: number;
448
- } | undefined, unknown>;
2069
+ } | undefined, {
2070
+ data: import("../generated/schemas.js").components["schemas"]["MakerTokenSummary"][];
2071
+ pagination: {
2072
+ total: number;
2073
+ limit: number;
2074
+ offset: number;
2075
+ hasMore: boolean;
2076
+ };
2077
+ }, {
2078
+ data: import("../generated/schemas.js").components["schemas"]["MakerTokenSummary"][];
2079
+ pagination: {
2080
+ total: number;
2081
+ limit: number;
2082
+ offset: number;
2083
+ hasMore: boolean;
2084
+ };
2085
+ }>;
449
2086
  "makerTokens.create": import("./define.js").OperationEntry<{
450
2087
  name: string;
451
2088
  requestedPermissions: readonly string[];
452
- businessScope?: unknown;
453
- }, unknown>;
2089
+ businessScope?: {
2090
+ mode: "ALL";
2091
+ } | {
2092
+ mode: "SELECTED";
2093
+ businessIds: readonly string[];
2094
+ };
2095
+ }, {
2096
+ status: "ACTIVE";
2097
+ id: string;
2098
+ organizationId: string;
2099
+ name: string;
2100
+ variant: "PERSONAL" | "ORG";
2101
+ provisioningState: "ACTIVE";
2102
+ grantedPermissions: import("../generated/schemas.js").components["schemas"]["MakerDelegablePermission"][];
2103
+ businessScope: import("../generated/schemas.js").components["schemas"]["MakerTokenBusinessScopeSummary"];
2104
+ lastFour: string;
2105
+ createdAt: string | null;
2106
+ lastUsedAt: string | null;
2107
+ revokedAt: string | null;
2108
+ origin: "USER" | "PLATFORM";
2109
+ purpose: string | null;
2110
+ token: string;
2111
+ } | {
2112
+ status: "PENDING";
2113
+ makerTokenId: string;
2114
+ approvalId: string;
2115
+ requestedPermissions: import("../generated/schemas.js").components["schemas"]["MakerDelegablePermission"][];
2116
+ grantedPermissions: import("../generated/schemas.js").components["schemas"]["MakerDelegablePermission"][];
2117
+ excessPermissions: import("../generated/schemas.js").components["schemas"]["MakerDelegablePermission"][];
2118
+ eligibleApproverIds: string[];
2119
+ }, {
2120
+ status: "ACTIVE";
2121
+ id: string;
2122
+ organizationId: string;
2123
+ name: string;
2124
+ variant: "PERSONAL" | "ORG";
2125
+ provisioningState: "ACTIVE";
2126
+ grantedPermissions: import("../generated/schemas.js").components["schemas"]["MakerDelegablePermission"][];
2127
+ businessScope: import("../generated/schemas.js").components["schemas"]["MakerTokenBusinessScopeSummary"];
2128
+ lastFour: string;
2129
+ createdAt: string | null;
2130
+ lastUsedAt: string | null;
2131
+ revokedAt: string | null;
2132
+ origin: "USER" | "PLATFORM";
2133
+ purpose: string | null;
2134
+ token: string;
2135
+ } | {
2136
+ status: "PENDING";
2137
+ makerTokenId: string;
2138
+ approvalId: string;
2139
+ requestedPermissions: import("../generated/schemas.js").components["schemas"]["MakerDelegablePermission"][];
2140
+ grantedPermissions: import("../generated/schemas.js").components["schemas"]["MakerDelegablePermission"][];
2141
+ excessPermissions: import("../generated/schemas.js").components["schemas"]["MakerDelegablePermission"][];
2142
+ eligibleApproverIds: string[];
2143
+ }>;
454
2144
  "makerTokens.update": import("./define.js").OperationEntry<{
455
2145
  tokenId: string;
456
2146
  } & {
457
2147
  requestedPermissions: readonly string[];
458
- }, unknown>;
459
- "makerTokens.approvalList": import("./define.js").OperationEntry<void, unknown>;
2148
+ }, {
2149
+ status: "ACTIVE";
2150
+ makerTokenId: string;
2151
+ requestedPermissions: import("../generated/schemas.js").components["schemas"]["MakerDelegablePermission"][];
2152
+ grantedPermissions: import("../generated/schemas.js").components["schemas"]["MakerDelegablePermission"][];
2153
+ } | {
2154
+ status: "PENDING";
2155
+ makerTokenId: string;
2156
+ approvalId: string;
2157
+ requestedPermissions: import("../generated/schemas.js").components["schemas"]["MakerDelegablePermission"][];
2158
+ activePermissions: import("../generated/schemas.js").components["schemas"]["MakerDelegablePermission"][];
2159
+ excessPermissions: import("../generated/schemas.js").components["schemas"]["MakerDelegablePermission"][];
2160
+ eligibleApproverIds: string[];
2161
+ }, {
2162
+ status: "ACTIVE";
2163
+ makerTokenId: string;
2164
+ requestedPermissions: import("../generated/schemas.js").components["schemas"]["MakerDelegablePermission"][];
2165
+ grantedPermissions: import("../generated/schemas.js").components["schemas"]["MakerDelegablePermission"][];
2166
+ } | {
2167
+ status: "PENDING";
2168
+ makerTokenId: string;
2169
+ approvalId: string;
2170
+ requestedPermissions: import("../generated/schemas.js").components["schemas"]["MakerDelegablePermission"][];
2171
+ activePermissions: import("../generated/schemas.js").components["schemas"]["MakerDelegablePermission"][];
2172
+ excessPermissions: import("../generated/schemas.js").components["schemas"]["MakerDelegablePermission"][];
2173
+ eligibleApproverIds: string[];
2174
+ }>;
2175
+ "makerTokens.approvalList": import("./define.js").OperationEntry<void, {
2176
+ id: string;
2177
+ operation: "CREATE" | "UPDATE";
2178
+ makerTokenId: string;
2179
+ requestedBy: string;
2180
+ requestedPermissions: import("../generated/schemas.js").components["schemas"]["MakerDelegablePermission"][];
2181
+ excessPermissions: import("../generated/schemas.js").components["schemas"]["MakerDelegablePermission"][];
2182
+ createdAt: string;
2183
+ makerToken: {
2184
+ name: string;
2185
+ grantedPermissions: import("../generated/schemas.js").components["schemas"]["MakerDelegablePermission"][];
2186
+ };
2187
+ }[], {
2188
+ id: string;
2189
+ operation: "CREATE" | "UPDATE";
2190
+ makerTokenId: string;
2191
+ requestedBy: string;
2192
+ requestedPermissions: import("../generated/schemas.js").components["schemas"]["MakerDelegablePermission"][];
2193
+ excessPermissions: import("../generated/schemas.js").components["schemas"]["MakerDelegablePermission"][];
2194
+ createdAt: string;
2195
+ makerToken: {
2196
+ name: string;
2197
+ grantedPermissions: import("../generated/schemas.js").components["schemas"]["MakerDelegablePermission"][];
2198
+ };
2199
+ }[]>;
460
2200
  "makerTokens.approve": import("./define.js").OperationEntry<{
461
2201
  approvalId: string;
462
2202
  } & {
463
2203
  grantedPermissions?: readonly string[];
464
- }, unknown>;
2204
+ }, {
2205
+ status: "ACTIVE";
2206
+ approvalId: string;
2207
+ makerTokenId: string;
2208
+ requestedPermissions: import("../generated/schemas.js").components["schemas"]["MakerDelegablePermission"][];
2209
+ grantedPermissions: import("../generated/schemas.js").components["schemas"]["MakerDelegablePermission"][];
2210
+ token?: string;
2211
+ lastFour?: string;
2212
+ }, {
2213
+ status: "ACTIVE";
2214
+ approvalId: string;
2215
+ makerTokenId: string;
2216
+ requestedPermissions: import("../generated/schemas.js").components["schemas"]["MakerDelegablePermission"][];
2217
+ grantedPermissions: import("../generated/schemas.js").components["schemas"]["MakerDelegablePermission"][];
2218
+ token?: string;
2219
+ lastFour?: string;
2220
+ }>;
465
2221
  "makerTokens.deny": import("./define.js").OperationEntry<{
466
2222
  approvalId: string;
467
- }, unknown>;
2223
+ }, {
2224
+ status: "DENIED";
2225
+ approvalId: string;
2226
+ makerTokenId: string;
2227
+ }, {
2228
+ status: "DENIED";
2229
+ approvalId: string;
2230
+ makerTokenId: string;
2231
+ }>;
468
2232
  "makerTokens.rotate": import("./define.js").OperationEntry<{
469
2233
  tokenId: string;
470
- }, unknown>;
2234
+ }, {
2235
+ id: string;
2236
+ lastFour: string;
2237
+ token: string;
2238
+ }, {
2239
+ id: string;
2240
+ lastFour: string;
2241
+ token: string;
2242
+ }>;
471
2243
  "makerTokens.revoke": import("./define.js").OperationEntry<{
472
2244
  tokenId: string;
473
- }, void>;
2245
+ }, void, void>;
474
2246
  "frontend.status": import("./define.js").OperationEntry<{
475
2247
  businessId: string;
476
2248
  environmentId?: string;
477
2249
  ref?: string;
478
- }, unknown>;
2250
+ }, {
2251
+ status: import("../generated/schemas.js").components["schemas"]["FrontendServeState"];
2252
+ releases: import("../generated/schemas.js").components["schemas"]["FrontendRelease"][];
2253
+ builds: import("../generated/schemas.js").components["schemas"]["FrontendBuild"][];
2254
+ }, {
2255
+ status: import("../generated/schemas.js").components["schemas"]["FrontendServeState"];
2256
+ releases: import("../generated/schemas.js").components["schemas"]["FrontendRelease"][];
2257
+ builds: import("../generated/schemas.js").components["schemas"]["FrontendBuild"][];
2258
+ }>;
479
2259
  "frontend.rollback": import("./define.js").OperationEntry<{
480
2260
  businessId: string;
481
2261
  releaseId: string;
482
2262
  environmentId?: string;
483
- }, unknown>;
2263
+ }, {
2264
+ releaseId: string;
2265
+ buildId: string;
2266
+ environmentId: string | null;
2267
+ host: string;
2268
+ uiMode: "template" | "custom-react";
2269
+ }, {
2270
+ releaseId: string;
2271
+ buildId: string;
2272
+ environmentId: string | null;
2273
+ }>;
484
2274
  "environments.read": import("./define.js").OperationEntry<{
485
2275
  businessId: string;
486
2276
  limit?: number;
487
2277
  offset?: number;
488
2278
  query?: import("./define.js").ListQuery;
489
- }, import("../types.js").EnvironmentListResult>;
2279
+ }, {
2280
+ data: import("../generated/schemas.js").components["schemas"]["BusinessEnvironment"][];
2281
+ pagination: {
2282
+ total: number;
2283
+ limit: number;
2284
+ offset: number;
2285
+ hasMore: boolean;
2286
+ };
2287
+ }, {
2288
+ data: import("../generated/schemas.js").components["schemas"]["BusinessEnvironment"][];
2289
+ pagination: {
2290
+ total: number;
2291
+ limit: number;
2292
+ offset: number;
2293
+ hasMore: boolean;
2294
+ };
2295
+ }>;
490
2296
  "environments.create": import("./define.js").OperationEntry<{
491
2297
  businessId: string;
492
2298
  name: string;
493
2299
  branch: string;
494
- }, unknown>;
2300
+ }, {
2301
+ id: string;
2302
+ name: string;
2303
+ branch: string;
2304
+ subdomain: string;
2305
+ runtimeHostname: string;
2306
+ portalHostname: string | null;
2307
+ status: string;
2308
+ created: boolean;
2309
+ branchCreated: boolean;
2310
+ }, {
2311
+ id: string;
2312
+ name: string;
2313
+ branch: string;
2314
+ subdomain: string;
2315
+ runtimeHostname: string;
2316
+ portalHostname: string | null;
2317
+ status: string;
2318
+ created: boolean;
2319
+ branchCreated: boolean;
2320
+ }>;
495
2321
  "environments.delete": import("./define.js").OperationEntry<{
496
2322
  businessId: string;
497
2323
  environment: string;
498
- }, void>;
2324
+ }, void, void>;
499
2325
  "consumers.read": import("./define.js").OperationEntry<{
500
2326
  businessId: string;
501
2327
  env?: string;
502
- }, import("../types.js").BusinessConsumer[]>;
2328
+ }, {
2329
+ id: string;
2330
+ businessId: string;
2331
+ status: "ONBOARDING" | "ACTIVE" | "SUSPENDED";
2332
+ ownerType: "personal_organization" | "team_organization";
2333
+ ownerOrganizationId: string | null;
2334
+ ownerName: string | null;
2335
+ planId: string | null;
2336
+ planName: string | null;
2337
+ onLatestPlan: boolean;
2338
+ createdAt: string;
2339
+ rbac: {
2340
+ enabled: boolean;
2341
+ roles: {
2342
+ roleKey: string;
2343
+ name: string;
2344
+ }[];
2345
+ };
2346
+ members: import("../generated/schemas.js").components["schemas"]["ConsumerMember"][];
2347
+ }[], {
2348
+ id: string;
2349
+ businessId: string;
2350
+ status: "ONBOARDING" | "ACTIVE" | "SUSPENDED";
2351
+ ownerType: "personal_organization" | "team_organization";
2352
+ ownerOrganizationId: string | null;
2353
+ ownerName: string | null;
2354
+ planId: string | null;
2355
+ planName: string | null;
2356
+ onLatestPlan: boolean;
2357
+ createdAt: string;
2358
+ rbac: {
2359
+ enabled: boolean;
2360
+ roles: {
2361
+ roleKey: string;
2362
+ name: string;
2363
+ }[];
2364
+ };
2365
+ members: import("../generated/schemas.js").components["schemas"]["ConsumerMember"][];
2366
+ }[]>;
503
2367
  "consumers.block": import("./define.js").OperationEntry<{
504
2368
  businessId: string;
505
2369
  subscriberId: string;
506
- }, import("../types.js").BlockConsumerResult>;
2370
+ }, {
2371
+ blocked: true;
2372
+ subscriberId: string;
2373
+ apiKeysRevoked: number;
2374
+ alreadyBlocked: boolean;
2375
+ }, {
2376
+ blocked: true;
2377
+ subscriberId: string;
2378
+ apiKeysRevoked: number;
2379
+ alreadyBlocked: boolean;
2380
+ }>;
507
2381
  "consumers.remove": import("./define.js").OperationEntry<{
508
2382
  businessId: string;
509
2383
  subscriberId: string;
510
- }, import("../types.js").RemoveConsumerResult>;
2384
+ }, {
2385
+ removed: true;
2386
+ subscriberId: string;
2387
+ subscriptionsRemoved: number;
2388
+ apiKeysRevoked: number;
2389
+ }, {
2390
+ removed: true;
2391
+ subscriberId: string;
2392
+ subscriptionsRemoved: number;
2393
+ apiKeysRevoked: number;
2394
+ }>;
511
2395
  "consumers.migrateLatest": import("./define.js").OperationEntry<{
512
2396
  businessId: string;
513
2397
  subscriberId: string;
514
- }, unknown>;
2398
+ }, {
2399
+ migrated: true;
2400
+ subscriberId: string;
2401
+ } | {
2402
+ migrated: false;
2403
+ subscriberId: string;
2404
+ reason: "already_on_head" | "no_active_head";
2405
+ }, {
2406
+ migrated: true;
2407
+ subscriberId: string;
2408
+ } | {
2409
+ migrated: false;
2410
+ subscriberId: string;
2411
+ reason: "already_on_head" | "no_active_head";
2412
+ }>;
515
2413
  "consumers.roles.assign": import("./define.js").OperationEntry<{
516
2414
  businessId: string;
517
2415
  subscriberId: string;
518
2416
  } & {
519
2417
  userExternalId: string;
520
2418
  roles: string[];
521
- }, import("../types.js").ConsumerMemberRolesResult>;
2419
+ }, {
2420
+ userExternalId: string;
2421
+ accountRole: "owner" | "admin" | "member";
2422
+ businessRoleKeys: string[];
2423
+ }, {
2424
+ userExternalId: string;
2425
+ accountRole: "owner" | "admin" | "member";
2426
+ businessRoleKeys: string[];
2427
+ }>;
522
2428
  "consumers.rbac.enable": import("./define.js").OperationEntry<{
523
2429
  businessId: string;
524
2430
  subscriberId: string;
525
2431
  } & {
526
2432
  defaultRoleKey?: string | null;
527
- }, import("../types.js").ConsumerRbacSettingsResult>;
2433
+ }, {
2434
+ enabled: boolean;
2435
+ defaultRoleKey: string | null;
2436
+ }, {
2437
+ enabled: boolean;
2438
+ defaultRoleKey: string | null;
2439
+ }>;
528
2440
  "consumers.rbac.disable": import("./define.js").OperationEntry<{
529
2441
  businessId: string;
530
2442
  subscriberId: string;
531
2443
  } & {
532
2444
  defaultRoleKey?: string | null;
533
- }, import("../types.js").ConsumerRbacSettingsResult>;
2445
+ }, {
2446
+ enabled: boolean;
2447
+ defaultRoleKey: string | null;
2448
+ }, {
2449
+ enabled: boolean;
2450
+ defaultRoleKey: string | null;
2451
+ }>;
534
2452
  "consumers.role.list": import("./define.js").OperationEntry<{
535
2453
  businessId: string;
536
2454
  subscriberId: string;
537
2455
  }, {
538
- roles: import("../types.js").ConsumerRbacRole[];
2456
+ roles: import("../generated/schemas.js").components["schemas"]["ConsumerRbacRole"][];
2457
+ }, {
2458
+ roles: import("../generated/schemas.js").components["schemas"]["ConsumerRbacRole"][];
539
2459
  }>;
540
2460
  "consumers.role.create": import("./define.js").OperationEntry<{
541
2461
  businessId: string;
@@ -544,7 +2464,19 @@ export declare const OPERATION_TABLE: {
544
2464
  roleKey: string;
545
2465
  name: string;
546
2466
  permissions: string[];
547
- }, import("../types.js").ConsumerRbacRole>;
2467
+ }, {
2468
+ roleKey: string;
2469
+ name: string;
2470
+ permissions: string[];
2471
+ kind: "ACCOUNT" | "CUSTOM";
2472
+ createdAt: string;
2473
+ }, {
2474
+ roleKey: string;
2475
+ name: string;
2476
+ permissions: string[];
2477
+ kind: "ACCOUNT" | "CUSTOM";
2478
+ createdAt: string;
2479
+ }>;
548
2480
  "consumers.role.update": import("./define.js").OperationEntry<{
549
2481
  businessId: string;
550
2482
  subscriberId: string;
@@ -553,35 +2485,261 @@ export declare const OPERATION_TABLE: {
553
2485
  } & {
554
2486
  name?: string;
555
2487
  permissions?: string[];
556
- }, import("../types.js").ConsumerRbacRole>;
2488
+ }, {
2489
+ roleKey: string;
2490
+ name: string;
2491
+ permissions: string[];
2492
+ kind: "ACCOUNT" | "CUSTOM";
2493
+ createdAt: string;
2494
+ }, {
2495
+ roleKey: string;
2496
+ name: string;
2497
+ permissions: string[];
2498
+ kind: "ACCOUNT" | "CUSTOM";
2499
+ createdAt: string;
2500
+ }>;
557
2501
  "consumers.role.delete": import("./define.js").OperationEntry<{
558
2502
  businessId: string;
559
2503
  subscriberId: string;
560
2504
  } & {
561
2505
  roleKey: string;
562
- }, void>;
2506
+ }, void, void>;
563
2507
  "consumers.apiKeys.list": import("./define.js").OperationEntry<{
564
2508
  businessId: string;
565
2509
  subscriberId: string;
566
2510
  }, {
567
- apiKeys: import("../types.js").ConsumerApiKey[];
2511
+ apiKeys: import("../generated/schemas.js").components["schemas"]["ConsumerApiKey"][];
2512
+ }, {
2513
+ apiKeys: import("../generated/schemas.js").components["schemas"]["ConsumerApiKey"][];
568
2514
  }>;
569
2515
  "consumers.apiKeys.revoke": import("./define.js").OperationEntry<{
570
2516
  businessId: string;
571
2517
  subscriberId: string;
572
2518
  } & {
573
2519
  keyId: string;
574
- }, void>;
2520
+ }, void, void>;
575
2521
  "changeSets.timeline.list": import("./define.js").OperationEntry<{
576
2522
  businessId: string;
577
2523
  env?: string;
578
- }, import("../types.js").ApplyTimelineEntryList>;
2524
+ }, {
2525
+ data: import("../generated/schemas.js").components["schemas"]["ApplyTimelineEntry"][];
2526
+ environmentId: string | null;
2527
+ }, {
2528
+ data: import("../generated/schemas.js").components["schemas"]["ApplyTimelineEntry"][];
2529
+ environmentId: string | null;
2530
+ }>;
579
2531
  "changeSets.timeline.read": import("./define.js").OperationEntry<{
580
2532
  businessId: string;
581
2533
  env?: string;
582
2534
  } & {
583
2535
  selector: string;
584
- }, import("../types.js").ApplyTimelineEntry>;
2536
+ }, {
2537
+ id: string;
2538
+ source: "github_pr" | "github_push" | "github_release";
2539
+ status: "pending" | "running" | "passed" | "failed" | "applied" | "deferred" | "stale";
2540
+ branch: string;
2541
+ baseBranch: string | null;
2542
+ defaultBranch: string | null;
2543
+ commitSha: string;
2544
+ repoFullName: string;
2545
+ prNumber: number | null;
2546
+ releaseTag: string | null;
2547
+ environmentId: string | null;
2548
+ createdAt: string;
2549
+ updatedAt: string;
2550
+ semanticDiff: {
2551
+ diffSummary: {
2552
+ hasChanges: boolean;
2553
+ productFieldChanges: number;
2554
+ gatewayFieldChanges: number;
2555
+ billingFieldChanges: number;
2556
+ plansAdded: number;
2557
+ plansRemoved: number;
2558
+ plansModified: number;
2559
+ pricingPoliciesChanged: number;
2560
+ economicChange: boolean;
2561
+ } | null;
2562
+ semanticChanges: {
2563
+ domain: "economic_contract" | "entitlement_surface" | "operational_policy" | "compatibility_lifecycle";
2564
+ kind: string;
2565
+ path: string;
2566
+ from: unknown;
2567
+ to: unknown;
2568
+ additive: boolean;
2569
+ rationale?: string;
2570
+ }[] | null;
2571
+ riskSummary: {
2572
+ level: "safe" | "non_blocking" | "economic_risk" | "blocking";
2573
+ byDomain: {
2574
+ economic_contract: "safe" | "non_blocking" | "economic_risk" | "blocking";
2575
+ entitlement_surface: "safe" | "non_blocking" | "economic_risk" | "blocking";
2576
+ operational_policy: "safe" | "non_blocking" | "economic_risk" | "blocking";
2577
+ compatibility_lifecycle: "safe" | "non_blocking" | "economic_risk" | "blocking";
2578
+ };
2579
+ blockingReasons: string[];
2580
+ } | null;
2581
+ lifecyclePlan: {
2582
+ requiresSubscriptionMigration: boolean;
2583
+ actions: {
2584
+ domain: "economic_contract" | "entitlement_surface" | "operational_policy" | "compatibility_lifecycle";
2585
+ action: "no_op" | "migrate_at_renewal" | "migrate_immediately" | "replay" | "block";
2586
+ rationale: string;
2587
+ }[];
2588
+ } | null;
2589
+ };
2590
+ checks: {
2591
+ name: string;
2592
+ status: "pending" | "running" | "passed" | "failed" | "skipped";
2593
+ summary: string | null;
2594
+ }[];
2595
+ apply: {
2596
+ id: string;
2597
+ overallStatus: "pending" | "running" | "succeeded" | "failed" | "skipped";
2598
+ phases: {
2599
+ build: {
2600
+ status: "pending" | "running" | "succeeded" | "failed" | "skipped";
2601
+ startedAt: string | null;
2602
+ finishedAt: string | null;
2603
+ error: string | null;
2604
+ };
2605
+ compile: {
2606
+ status: "pending" | "running" | "succeeded" | "failed" | "skipped";
2607
+ startedAt: string | null;
2608
+ finishedAt: string | null;
2609
+ error: string | null;
2610
+ };
2611
+ accept: {
2612
+ status: "pending" | "running" | "succeeded" | "failed" | "skipped";
2613
+ startedAt: string | null;
2614
+ finishedAt: string | null;
2615
+ error: string | null;
2616
+ };
2617
+ publish: {
2618
+ status: "pending" | "running" | "succeeded" | "failed" | "skipped";
2619
+ startedAt: string | null;
2620
+ finishedAt: string | null;
2621
+ error: string | null;
2622
+ };
2623
+ billing: {
2624
+ status: "pending" | "running" | "succeeded" | "failed" | "skipped";
2625
+ startedAt: string | null;
2626
+ finishedAt: string | null;
2627
+ error: string | null;
2628
+ } | null;
2629
+ };
2630
+ } | null;
2631
+ existingSubscribers?: {
2632
+ planKey: string;
2633
+ fromCompiledPlanId: string;
2634
+ toCompiledPlanId: string;
2635
+ timing: "aliased" | "immediate" | "period_end";
2636
+ cohorts: number;
2637
+ reasons: string[];
2638
+ }[];
2639
+ }, {
2640
+ id: string;
2641
+ source: "github_pr" | "github_push" | "github_release";
2642
+ status: "pending" | "running" | "passed" | "failed" | "applied" | "deferred" | "stale";
2643
+ branch: string;
2644
+ baseBranch: string | null;
2645
+ defaultBranch: string | null;
2646
+ commitSha: string;
2647
+ repoFullName: string;
2648
+ prNumber: number | null;
2649
+ releaseTag: string | null;
2650
+ environmentId: string | null;
2651
+ createdAt: string;
2652
+ updatedAt: string;
2653
+ semanticDiff: {
2654
+ diffSummary: {
2655
+ hasChanges: boolean;
2656
+ productFieldChanges: number;
2657
+ gatewayFieldChanges: number;
2658
+ billingFieldChanges: number;
2659
+ plansAdded: number;
2660
+ plansRemoved: number;
2661
+ plansModified: number;
2662
+ pricingPoliciesChanged: number;
2663
+ economicChange: boolean;
2664
+ } | null;
2665
+ semanticChanges: {
2666
+ domain: "economic_contract" | "entitlement_surface" | "operational_policy" | "compatibility_lifecycle";
2667
+ kind: string;
2668
+ path: string;
2669
+ from: unknown;
2670
+ to: unknown;
2671
+ additive: boolean;
2672
+ rationale?: string;
2673
+ }[] | null;
2674
+ riskSummary: {
2675
+ level: "safe" | "non_blocking" | "economic_risk" | "blocking";
2676
+ byDomain: {
2677
+ economic_contract: "safe" | "non_blocking" | "economic_risk" | "blocking";
2678
+ entitlement_surface: "safe" | "non_blocking" | "economic_risk" | "blocking";
2679
+ operational_policy: "safe" | "non_blocking" | "economic_risk" | "blocking";
2680
+ compatibility_lifecycle: "safe" | "non_blocking" | "economic_risk" | "blocking";
2681
+ };
2682
+ blockingReasons: string[];
2683
+ } | null;
2684
+ lifecyclePlan: {
2685
+ requiresSubscriptionMigration: boolean;
2686
+ actions: {
2687
+ domain: "economic_contract" | "entitlement_surface" | "operational_policy" | "compatibility_lifecycle";
2688
+ action: "no_op" | "migrate_at_renewal" | "migrate_immediately" | "replay" | "block";
2689
+ rationale: string;
2690
+ }[];
2691
+ } | null;
2692
+ };
2693
+ checks: {
2694
+ name: string;
2695
+ status: "pending" | "running" | "passed" | "failed" | "skipped";
2696
+ summary: string | null;
2697
+ }[];
2698
+ apply: {
2699
+ id: string;
2700
+ overallStatus: "pending" | "running" | "succeeded" | "failed" | "skipped";
2701
+ phases: {
2702
+ build: {
2703
+ status: "pending" | "running" | "succeeded" | "failed" | "skipped";
2704
+ startedAt: string | null;
2705
+ finishedAt: string | null;
2706
+ error: string | null;
2707
+ };
2708
+ compile: {
2709
+ status: "pending" | "running" | "succeeded" | "failed" | "skipped";
2710
+ startedAt: string | null;
2711
+ finishedAt: string | null;
2712
+ error: string | null;
2713
+ };
2714
+ accept: {
2715
+ status: "pending" | "running" | "succeeded" | "failed" | "skipped";
2716
+ startedAt: string | null;
2717
+ finishedAt: string | null;
2718
+ error: string | null;
2719
+ };
2720
+ publish: {
2721
+ status: "pending" | "running" | "succeeded" | "failed" | "skipped";
2722
+ startedAt: string | null;
2723
+ finishedAt: string | null;
2724
+ error: string | null;
2725
+ };
2726
+ billing: {
2727
+ status: "pending" | "running" | "succeeded" | "failed" | "skipped";
2728
+ startedAt: string | null;
2729
+ finishedAt: string | null;
2730
+ error: string | null;
2731
+ } | null;
2732
+ };
2733
+ } | null;
2734
+ existingSubscribers?: {
2735
+ planKey: string;
2736
+ fromCompiledPlanId: string;
2737
+ toCompiledPlanId: string;
2738
+ timing: "aliased" | "immediate" | "period_end";
2739
+ cohorts: number;
2740
+ reasons: string[];
2741
+ }[];
2742
+ }>;
585
2743
  "changeSets.propose": import("./define.js").OperationEntry<{
586
2744
  businessId: string;
587
2745
  env?: string;
@@ -590,7 +2748,56 @@ export declare const OPERATION_TABLE: {
590
2748
  } & {
591
2749
  intent: string;
592
2750
  operations: unknown[];
593
- }, unknown>;
2751
+ }, {
2752
+ id: string;
2753
+ scope: {
2754
+ businessId: string;
2755
+ environmentId: string | null;
2756
+ subscriberId: string | null;
2757
+ scopeType: "business" | "environment" | "subscriber";
2758
+ };
2759
+ source: "operate" | "system" | "agent";
2760
+ actorType: string;
2761
+ actorId: string;
2762
+ intent: string;
2763
+ status: "draft" | "previewed" | "approval_required" | "approved" | "scheduled" | "applied" | "failed" | "rolled_back" | "cancelled";
2764
+ riskLevel: "low" | "medium" | "high" | "critical";
2765
+ operations: import("../generated/schemas.js").components["schemas"]["ChangeSetOperation"][];
2766
+ simulation: import("../generated/schemas.js").components["schemas"]["ChangeSetSimulation"] | null;
2767
+ approvalRequirement: {
2768
+ required: boolean;
2769
+ minApprovals: number;
2770
+ distinctFromProposer: boolean;
2771
+ humanApproverRequired: boolean;
2772
+ requiredVerb: string;
2773
+ };
2774
+ approvals: {
2775
+ id: string;
2776
+ approverType: string;
2777
+ approverId: string;
2778
+ decision: "approved" | "rejected";
2779
+ comment: string | null;
2780
+ soleOwner: boolean;
2781
+ createdAt: string;
2782
+ }[];
2783
+ resetReason: ("simulation_expired" | "simulation_fingerprint_mismatch" | "version_mismatch" | "catalog_drift" | "role_deleted" | "status_conflict") | null;
2784
+ scheduledFor: string | null;
2785
+ createdAt: string;
2786
+ updatedAt: string;
2787
+ appliedAt: string | null;
2788
+ rolledBackAt: string | null;
2789
+ }, {
2790
+ scope: {
2791
+ businessId: string;
2792
+ environmentId: string | null;
2793
+ subscriberId: string | null;
2794
+ scopeType: "business" | "environment" | "subscriber";
2795
+ };
2796
+ actorType: string;
2797
+ actorId: string;
2798
+ intent: string;
2799
+ operationCount: number;
2800
+ }>;
594
2801
  "changeSets.preview": import("./define.js").OperationEntry<{
595
2802
  businessId: string;
596
2803
  env?: string;
@@ -598,7 +2805,83 @@ export declare const OPERATION_TABLE: {
598
2805
  subscriberId: string;
599
2806
  } & {
600
2807
  changeSetId: string;
601
- }, unknown>;
2808
+ }, {
2809
+ id: string;
2810
+ scope: {
2811
+ businessId: string;
2812
+ environmentId: string | null;
2813
+ subscriberId: string | null;
2814
+ scopeType: "business" | "environment" | "subscriber";
2815
+ };
2816
+ source: "operate" | "system" | "agent";
2817
+ actorType: string;
2818
+ actorId: string;
2819
+ intent: string;
2820
+ status: "draft" | "previewed" | "approval_required" | "approved" | "scheduled" | "applied" | "failed" | "rolled_back" | "cancelled";
2821
+ riskLevel: "low" | "medium" | "high" | "critical";
2822
+ operations: import("../generated/schemas.js").components["schemas"]["ChangeSetOperation"][];
2823
+ simulation: import("../generated/schemas.js").components["schemas"]["ChangeSetSimulation"] | null;
2824
+ approvalRequirement: {
2825
+ required: boolean;
2826
+ minApprovals: number;
2827
+ distinctFromProposer: boolean;
2828
+ humanApproverRequired: boolean;
2829
+ requiredVerb: string;
2830
+ };
2831
+ approvals: {
2832
+ id: string;
2833
+ approverType: string;
2834
+ approverId: string;
2835
+ decision: "approved" | "rejected";
2836
+ comment: string | null;
2837
+ soleOwner: boolean;
2838
+ createdAt: string;
2839
+ }[];
2840
+ resetReason: ("simulation_expired" | "simulation_fingerprint_mismatch" | "version_mismatch" | "catalog_drift" | "role_deleted" | "status_conflict") | null;
2841
+ scheduledFor: string | null;
2842
+ createdAt: string;
2843
+ updatedAt: string;
2844
+ appliedAt: string | null;
2845
+ rolledBackAt: string | null;
2846
+ }, {
2847
+ id: string;
2848
+ scope: {
2849
+ businessId: string;
2850
+ environmentId: string | null;
2851
+ subscriberId: string | null;
2852
+ scopeType: "business" | "environment" | "subscriber";
2853
+ };
2854
+ source: "operate" | "system" | "agent";
2855
+ actorType: string;
2856
+ actorId: string;
2857
+ intent: string;
2858
+ status: "draft" | "previewed" | "approval_required" | "approved" | "scheduled" | "applied" | "failed" | "rolled_back" | "cancelled";
2859
+ riskLevel: "low" | "medium" | "high" | "critical";
2860
+ operations: import("../generated/schemas.js").components["schemas"]["ChangeSetOperation"][];
2861
+ simulation: import("../generated/schemas.js").components["schemas"]["ChangeSetSimulation"] | null;
2862
+ approvalRequirement: {
2863
+ required: boolean;
2864
+ minApprovals: number;
2865
+ distinctFromProposer: boolean;
2866
+ humanApproverRequired: boolean;
2867
+ requiredVerb: string;
2868
+ };
2869
+ approvals: {
2870
+ id: string;
2871
+ approverType: string;
2872
+ approverId: string;
2873
+ decision: "approved" | "rejected";
2874
+ comment: string | null;
2875
+ soleOwner: boolean;
2876
+ createdAt: string;
2877
+ }[];
2878
+ resetReason: ("simulation_expired" | "simulation_fingerprint_mismatch" | "version_mismatch" | "catalog_drift" | "role_deleted" | "status_conflict") | null;
2879
+ scheduledFor: string | null;
2880
+ createdAt: string;
2881
+ updatedAt: string;
2882
+ appliedAt: string | null;
2883
+ rolledBackAt: string | null;
2884
+ }>;
602
2885
  "changeSets.proposalList": import("./define.js").OperationEntry<{
603
2886
  businessId: string;
604
2887
  env?: string;
@@ -608,7 +2891,13 @@ export declare const OPERATION_TABLE: {
608
2891
  status?: string;
609
2892
  cursor?: string;
610
2893
  limit?: number;
611
- }, unknown>;
2894
+ }, {
2895
+ items: import("../generated/schemas.js").components["schemas"]["ChangeSet"][];
2896
+ nextCursor: string | null;
2897
+ }, {
2898
+ items: import("../generated/schemas.js").components["schemas"]["ChangeSet"][];
2899
+ nextCursor: string | null;
2900
+ }>;
612
2901
  "changeSets.proposalRead": import("./define.js").OperationEntry<{
613
2902
  businessId: string;
614
2903
  env?: string;
@@ -616,62 +2905,438 @@ export declare const OPERATION_TABLE: {
616
2905
  subscriberId: string;
617
2906
  } & {
618
2907
  changeSetId: string;
619
- }, unknown>;
2908
+ }, {
2909
+ id: string;
2910
+ scope: {
2911
+ businessId: string;
2912
+ environmentId: string | null;
2913
+ subscriberId: string | null;
2914
+ scopeType: "business" | "environment" | "subscriber";
2915
+ };
2916
+ source: "operate" | "system" | "agent";
2917
+ actorType: string;
2918
+ actorId: string;
2919
+ intent: string;
2920
+ status: "draft" | "previewed" | "approval_required" | "approved" | "scheduled" | "applied" | "failed" | "rolled_back" | "cancelled";
2921
+ riskLevel: "low" | "medium" | "high" | "critical";
2922
+ operations: import("../generated/schemas.js").components["schemas"]["ChangeSetOperation"][];
2923
+ simulation: import("../generated/schemas.js").components["schemas"]["ChangeSetSimulation"] | null;
2924
+ approvalRequirement: {
2925
+ required: boolean;
2926
+ minApprovals: number;
2927
+ distinctFromProposer: boolean;
2928
+ humanApproverRequired: boolean;
2929
+ requiredVerb: string;
2930
+ };
2931
+ approvals: {
2932
+ id: string;
2933
+ approverType: string;
2934
+ approverId: string;
2935
+ decision: "approved" | "rejected";
2936
+ comment: string | null;
2937
+ soleOwner: boolean;
2938
+ createdAt: string;
2939
+ }[];
2940
+ resetReason: ("simulation_expired" | "simulation_fingerprint_mismatch" | "version_mismatch" | "catalog_drift" | "role_deleted" | "status_conflict") | null;
2941
+ scheduledFor: string | null;
2942
+ createdAt: string;
2943
+ updatedAt: string;
2944
+ appliedAt: string | null;
2945
+ rolledBackAt: string | null;
2946
+ }, {
2947
+ id: string;
2948
+ scope: {
2949
+ businessId: string;
2950
+ environmentId: string | null;
2951
+ subscriberId: string | null;
2952
+ scopeType: "business" | "environment" | "subscriber";
2953
+ };
2954
+ source: "operate" | "system" | "agent";
2955
+ actorType: string;
2956
+ actorId: string;
2957
+ intent: string;
2958
+ status: "draft" | "previewed" | "approval_required" | "approved" | "scheduled" | "applied" | "failed" | "rolled_back" | "cancelled";
2959
+ riskLevel: "low" | "medium" | "high" | "critical";
2960
+ operations: import("../generated/schemas.js").components["schemas"]["ChangeSetOperation"][];
2961
+ simulation: import("../generated/schemas.js").components["schemas"]["ChangeSetSimulation"] | null;
2962
+ approvalRequirement: {
2963
+ required: boolean;
2964
+ minApprovals: number;
2965
+ distinctFromProposer: boolean;
2966
+ humanApproverRequired: boolean;
2967
+ requiredVerb: string;
2968
+ };
2969
+ approvals: {
2970
+ id: string;
2971
+ approverType: string;
2972
+ approverId: string;
2973
+ decision: "approved" | "rejected";
2974
+ comment: string | null;
2975
+ soleOwner: boolean;
2976
+ createdAt: string;
2977
+ }[];
2978
+ resetReason: ("simulation_expired" | "simulation_fingerprint_mismatch" | "version_mismatch" | "catalog_drift" | "role_deleted" | "status_conflict") | null;
2979
+ scheduledFor: string | null;
2980
+ createdAt: string;
2981
+ updatedAt: string;
2982
+ appliedAt: string | null;
2983
+ rolledBackAt: string | null;
2984
+ }>;
620
2985
  "businesses.list": import("./define.js").OperationEntry<{
621
2986
  limit?: number;
622
2987
  offset?: number;
623
2988
  query?: import("./define.js").ListQuery;
624
- } | undefined, import("../types.js").BusinessSummary[]>;
2989
+ } | undefined, {
2990
+ id: string;
2991
+ organizationId: string | null;
2992
+ name: string;
2993
+ displayName: string | null;
2994
+ description: string | null;
2995
+ status: "DRAFT" | "ACTIVE";
2996
+ visibility: "PUBLIC" | "PRIVATE";
2997
+ runtimeHostname: string | null;
2998
+ portalHostname: string | null;
2999
+ iconUrl: string | null;
3000
+ logoUrl: string | null;
3001
+ keyPrefix: string | null;
3002
+ allowedOrigins: string[];
3003
+ docsEnabled: boolean;
3004
+ listedOnOrganizationPage: boolean;
3005
+ rbacEnabled: boolean;
3006
+ meters: import("../generated/schemas.js").components["schemas"]["BusinessMeter"][];
3007
+ plans: import("../generated/schemas.js").components["schemas"]["BusinessPlan"][];
3008
+ unreadablePlans?: import("../generated/schemas.js").components["schemas"]["BusinessUnreadablePlan"][];
3009
+ rateLimitConfig: import("../generated/schemas.js").components["schemas"]["BusinessRateLimit"] | null;
3010
+ publishedRevisionId: string | null;
3011
+ latestRevisionId: string | null;
3012
+ latestRevisionNumber: number | null;
3013
+ latestReleaseVersion: string | null;
3014
+ gitRepoFullName: string | null;
3015
+ envBranchPrefix: string | null;
3016
+ previewEnvTrigger: "BRANCH_PREFIX" | "PULL_REQUEST" | "DISABLED";
3017
+ createdAt: string;
3018
+ updatedAt: string;
3019
+ }[], {
3020
+ id: string;
3021
+ organizationId: string | null;
3022
+ name: string;
3023
+ displayName: string | null;
3024
+ description: string | null;
3025
+ status: "DRAFT" | "ACTIVE";
3026
+ visibility: "PUBLIC" | "PRIVATE";
3027
+ runtimeHostname: string | null;
3028
+ portalHostname: string | null;
3029
+ iconUrl: string | null;
3030
+ logoUrl: string | null;
3031
+ keyPrefix: string | null;
3032
+ allowedOrigins: string[];
3033
+ docsEnabled: boolean;
3034
+ listedOnOrganizationPage: boolean;
3035
+ rbacEnabled: boolean;
3036
+ meters: import("../generated/schemas.js").components["schemas"]["BusinessMeter"][];
3037
+ plans: import("../generated/schemas.js").components["schemas"]["BusinessPlan"][];
3038
+ unreadablePlans?: import("../generated/schemas.js").components["schemas"]["BusinessUnreadablePlan"][];
3039
+ rateLimitConfig: import("../generated/schemas.js").components["schemas"]["BusinessRateLimit"] | null;
3040
+ publishedRevisionId: string | null;
3041
+ latestRevisionId: string | null;
3042
+ latestRevisionNumber: number | null;
3043
+ latestReleaseVersion: string | null;
3044
+ gitRepoFullName: string | null;
3045
+ envBranchPrefix: string | null;
3046
+ previewEnvTrigger: "BRANCH_PREFIX" | "PULL_REQUEST" | "DISABLED";
3047
+ createdAt: string;
3048
+ updatedAt: string;
3049
+ }[]>;
625
3050
  "businesses.read": import("./define.js").OperationEntry<{
626
3051
  businessId: string;
627
3052
  } & {
628
3053
  env?: string;
629
- }, import("../types.js").BusinessSummary>;
3054
+ }, {
3055
+ id: string;
3056
+ organizationId: string | null;
3057
+ name: string;
3058
+ displayName: string | null;
3059
+ description: string | null;
3060
+ status: "DRAFT" | "ACTIVE";
3061
+ visibility: "PUBLIC" | "PRIVATE";
3062
+ runtimeHostname: string | null;
3063
+ portalHostname: string | null;
3064
+ iconUrl: string | null;
3065
+ logoUrl: string | null;
3066
+ keyPrefix: string | null;
3067
+ allowedOrigins: string[];
3068
+ docsEnabled: boolean;
3069
+ listedOnOrganizationPage: boolean;
3070
+ rbacEnabled: boolean;
3071
+ meters: import("../generated/schemas.js").components["schemas"]["BusinessMeter"][];
3072
+ plans: import("../generated/schemas.js").components["schemas"]["BusinessPlan"][];
3073
+ unreadablePlans?: import("../generated/schemas.js").components["schemas"]["BusinessUnreadablePlan"][];
3074
+ rateLimitConfig: import("../generated/schemas.js").components["schemas"]["BusinessRateLimit"] | null;
3075
+ publishedRevisionId: string | null;
3076
+ latestRevisionId: string | null;
3077
+ latestRevisionNumber: number | null;
3078
+ latestReleaseVersion: string | null;
3079
+ gitRepoFullName: string | null;
3080
+ envBranchPrefix: string | null;
3081
+ previewEnvTrigger: "BRANCH_PREFIX" | "PULL_REQUEST" | "DISABLED";
3082
+ createdAt: string;
3083
+ updatedAt: string;
3084
+ environments: import("../generated/schemas.js").components["schemas"]["BusinessEnvironment"][];
3085
+ }, {
3086
+ id: string;
3087
+ organizationId: string | null;
3088
+ name: string;
3089
+ displayName: string | null;
3090
+ description: string | null;
3091
+ status: "DRAFT" | "ACTIVE";
3092
+ visibility: "PUBLIC" | "PRIVATE";
3093
+ runtimeHostname: string | null;
3094
+ portalHostname: string | null;
3095
+ iconUrl: string | null;
3096
+ logoUrl: string | null;
3097
+ keyPrefix: string | null;
3098
+ allowedOrigins: string[];
3099
+ docsEnabled: boolean;
3100
+ listedOnOrganizationPage: boolean;
3101
+ rbacEnabled: boolean;
3102
+ meters: import("../generated/schemas.js").components["schemas"]["BusinessMeter"][];
3103
+ plans: import("../generated/schemas.js").components["schemas"]["BusinessPlan"][];
3104
+ unreadablePlans?: import("../generated/schemas.js").components["schemas"]["BusinessUnreadablePlan"][];
3105
+ rateLimitConfig: import("../generated/schemas.js").components["schemas"]["BusinessRateLimit"] | null;
3106
+ publishedRevisionId: string | null;
3107
+ latestRevisionId: string | null;
3108
+ latestRevisionNumber: number | null;
3109
+ latestReleaseVersion: string | null;
3110
+ gitRepoFullName: string | null;
3111
+ envBranchPrefix: string | null;
3112
+ previewEnvTrigger: "BRANCH_PREFIX" | "PULL_REQUEST" | "DISABLED";
3113
+ createdAt: string;
3114
+ updatedAt: string;
3115
+ environments: import("../generated/schemas.js").components["schemas"]["BusinessEnvironment"][];
3116
+ }>;
630
3117
  "businesses.create": import("./define.js").OperationEntry<{
631
3118
  name: string;
632
3119
  description?: string;
633
3120
  displayName?: string;
634
3121
  docsEnabled?: boolean;
635
- }, unknown>;
3122
+ }, {
3123
+ business: import("../generated/schemas.js").components["schemas"]["Business"];
3124
+ repo: {
3125
+ fullName: string;
3126
+ htmlUrl: string;
3127
+ cloneUrl: string;
3128
+ };
3129
+ agent: {
3130
+ instructions: string;
3131
+ agentsMdUrl: string;
3132
+ };
3133
+ }, {
3134
+ business: import("../generated/schemas.js").components["schemas"]["Business"];
3135
+ repo: {
3136
+ fullName: string;
3137
+ htmlUrl: string;
3138
+ cloneUrl: string;
3139
+ };
3140
+ agent: {
3141
+ instructions: string;
3142
+ agentsMdUrl: string;
3143
+ };
3144
+ }>;
636
3145
  "businesses.delete": import("./define.js").OperationEntry<{
637
3146
  businessId: string;
638
- }, void>;
3147
+ }, void, void>;
639
3148
  "businesses.routes.read": import("./define.js").OperationEntry<{
640
3149
  businessId: string;
641
3150
  } & {
642
3151
  env?: string;
643
- }, unknown>;
3152
+ }, {
3153
+ routes: import("../generated/schemas.js").components["schemas"]["BusinessRoute"][];
3154
+ }, {
3155
+ routes: import("../generated/schemas.js").components["schemas"]["BusinessRoute"][];
3156
+ }>;
644
3157
  "businesses.contract.read": import("./define.js").OperationEntry<{
645
3158
  businessId: string;
646
3159
  } & {
647
3160
  env?: string;
648
- }, unknown>;
3161
+ }, {
3162
+ plans: import("../generated/schemas.js").components["schemas"]["ContractPlan"][];
3163
+ unreadablePlans?: {
3164
+ key: string;
3165
+ version: number;
3166
+ }[];
3167
+ meterKeys: string[];
3168
+ meterLabels: {
3169
+ [key: string]: import("../generated/schemas.js").components["schemas"]["UsageMeterLabel"];
3170
+ };
3171
+ metered: import("../generated/schemas.js").components["schemas"]["ContractRoute"][];
3172
+ unmetered: import("../generated/schemas.js").components["schemas"]["ContractRoute"][];
3173
+ unmeteredWrites: import("../generated/schemas.js").components["schemas"]["ContractRoute"][];
3174
+ }, {
3175
+ plans: import("../generated/schemas.js").components["schemas"]["ContractPlan"][];
3176
+ unreadablePlans?: {
3177
+ key: string;
3178
+ version: number;
3179
+ }[];
3180
+ meterKeys: string[];
3181
+ meterLabels: {
3182
+ [key: string]: import("../generated/schemas.js").components["schemas"]["UsageMeterLabel"];
3183
+ };
3184
+ metered: import("../generated/schemas.js").components["schemas"]["ContractRoute"][];
3185
+ unmetered: import("../generated/schemas.js").components["schemas"]["ContractRoute"][];
3186
+ unmeteredWrites: import("../generated/schemas.js").components["schemas"]["ContractRoute"][];
3187
+ }>;
649
3188
  "businesses.config.read": import("./define.js").OperationEntry<{
650
3189
  businessId: string;
651
3190
  } & {
652
3191
  env?: string;
653
- }, unknown>;
3192
+ }, {
3193
+ businessId: string;
3194
+ environment: {
3195
+ name: string | null;
3196
+ production: boolean;
3197
+ };
3198
+ state: "accepted" | "none" | "unreadable";
3199
+ config: import("../generated/schemas.js").components["schemas"]["AcceptedBusinessContract"] | null;
3200
+ acceptedConfigVersion: string | null;
3201
+ acceptedConfigSource: ("UI" | "CLI" | "MCP" | "GITHUB" | "API" | "REPAIR" | "MIGRATION") | null;
3202
+ acceptedAt: string | null;
3203
+ repositorySyncStatus: ("PENDING" | "SYNCED" | "FAILED" | "SKIPPED") | null;
3204
+ commitSha: string | null;
3205
+ }, {
3206
+ businessId: string;
3207
+ environment: {
3208
+ name: string | null;
3209
+ production: boolean;
3210
+ };
3211
+ state: "accepted" | "none" | "unreadable";
3212
+ config: import("../generated/schemas.js").components["schemas"]["AcceptedBusinessContract"] | null;
3213
+ acceptedConfigVersion: string | null;
3214
+ acceptedConfigSource: ("UI" | "CLI" | "MCP" | "GITHUB" | "API" | "REPAIR" | "MIGRATION") | null;
3215
+ acceptedAt: string | null;
3216
+ repositorySyncStatus: ("PENDING" | "SYNCED" | "FAILED" | "SKIPPED") | null;
3217
+ commitSha: string | null;
3218
+ }>;
654
3219
  "businesses.configAttempts.read": import("./define.js").OperationEntry<{
655
3220
  businessId: string;
656
3221
  }, {
657
- attempts: unknown[];
3222
+ businessId: string;
3223
+ environment: {
3224
+ name: string | null;
3225
+ production: boolean;
3226
+ };
3227
+ attempts: import("../generated/schemas.js").components["schemas"]["BusinessConfigAttempt"][];
3228
+ }, {
3229
+ businessId: string;
3230
+ environment: {
3231
+ name: string | null;
3232
+ production: boolean;
3233
+ };
3234
+ attempts: import("../generated/schemas.js").components["schemas"]["BusinessConfigAttempt"][];
658
3235
  }>;
659
3236
  "businesses.subdomainAvailability.read": import("./define.js").OperationEntry<{
660
3237
  subdomain: string;
661
- }, import("../types.js").ManagedSubdomainAvailability>;
3238
+ }, {
3239
+ subdomain: string;
3240
+ available: boolean;
3241
+ message?: string;
3242
+ }, {
3243
+ subdomain: string;
3244
+ available: boolean;
3245
+ message?: string;
3246
+ }>;
662
3247
  "businesses.status": import("./define.js").OperationEntry<{
663
3248
  businessId: string;
664
3249
  } & {
665
3250
  env?: string;
666
3251
  }, {
667
- [key: string]: unknown;
668
- data: import("../types.js").DeploymentRunSummary[];
3252
+ data: import("../generated/schemas.js").components["schemas"]["DeploymentRun"][];
3253
+ applies: import("../generated/schemas.js").components["schemas"]["DeploymentApply"][];
3254
+ environmentId: string | null;
3255
+ business: {
3256
+ id: string;
3257
+ status: "DRAFT" | "ACTIVE";
3258
+ latestReleaseVersion: string | null;
3259
+ };
3260
+ live: boolean;
3261
+ scopedLive: boolean;
3262
+ serving: import("../generated/schemas.js").components["schemas"]["ServingState"];
3263
+ }, {
3264
+ data: import("../generated/schemas.js").components["schemas"]["DeploymentRun"][];
3265
+ applies: import("../generated/schemas.js").components["schemas"]["DeploymentApply"][];
3266
+ environmentId: string | null;
3267
+ business: {
3268
+ id: string;
3269
+ status: "DRAFT" | "ACTIVE";
3270
+ latestReleaseVersion: string | null;
3271
+ };
669
3272
  live: boolean;
3273
+ scopedLive: boolean;
3274
+ serving: import("../generated/schemas.js").components["schemas"]["ServingState"];
670
3275
  }>;
671
3276
  "businesses.publish": import("./define.js").OperationEntry<{
672
3277
  businessId: string;
673
- } & import("../types.js").PublishBusinessBody, import("../types.js").BusinessSummary & {
674
- _release?: import("../types.js").PublishRelease;
3278
+ } & import("../types.js").PublishBusinessBody, {
3279
+ id: string;
3280
+ organizationId: string | null;
3281
+ name: string;
3282
+ displayName: string | null;
3283
+ description: string | null;
3284
+ status: "DRAFT" | "ACTIVE";
3285
+ visibility: "PUBLIC" | "PRIVATE";
3286
+ runtimeHostname: string | null;
3287
+ portalHostname: string | null;
3288
+ iconUrl: string | null;
3289
+ logoUrl: string | null;
3290
+ keyPrefix: string | null;
3291
+ allowedOrigins: string[];
3292
+ docsEnabled: boolean;
3293
+ listedOnOrganizationPage: boolean;
3294
+ rbacEnabled: boolean;
3295
+ meters: import("../generated/schemas.js").components["schemas"]["BusinessMeter"][];
3296
+ plans: import("../generated/schemas.js").components["schemas"]["BusinessPlan"][];
3297
+ unreadablePlans?: import("../generated/schemas.js").components["schemas"]["BusinessUnreadablePlan"][];
3298
+ rateLimitConfig: import("../generated/schemas.js").components["schemas"]["BusinessRateLimit"] | null;
3299
+ publishedRevisionId: string | null;
3300
+ latestRevisionId: string | null;
3301
+ latestRevisionNumber: number | null;
3302
+ latestReleaseVersion: string | null;
3303
+ gitRepoFullName: string | null;
3304
+ envBranchPrefix: string | null;
3305
+ previewEnvTrigger: "BRANCH_PREFIX" | "PULL_REQUEST" | "DISABLED";
3306
+ createdAt: string;
3307
+ updatedAt: string;
3308
+ _release: import("../generated/schemas.js").components["schemas"]["PublishRelease"];
3309
+ }, {
3310
+ id: string;
3311
+ organizationId: string | null;
3312
+ name: string;
3313
+ displayName: string | null;
3314
+ description: string | null;
3315
+ status: "DRAFT" | "ACTIVE";
3316
+ visibility: "PUBLIC" | "PRIVATE";
3317
+ runtimeHostname: string | null;
3318
+ portalHostname: string | null;
3319
+ iconUrl: string | null;
3320
+ logoUrl: string | null;
3321
+ keyPrefix: string | null;
3322
+ allowedOrigins: string[];
3323
+ docsEnabled: boolean;
3324
+ listedOnOrganizationPage: boolean;
3325
+ rbacEnabled: boolean;
3326
+ meters: import("../generated/schemas.js").components["schemas"]["BusinessMeter"][];
3327
+ plans: import("../generated/schemas.js").components["schemas"]["BusinessPlan"][];
3328
+ unreadablePlans?: import("../generated/schemas.js").components["schemas"]["BusinessUnreadablePlan"][];
3329
+ rateLimitConfig: import("../generated/schemas.js").components["schemas"]["BusinessRateLimit"] | null;
3330
+ publishedRevisionId: string | null;
3331
+ latestRevisionId: string | null;
3332
+ latestRevisionNumber: number | null;
3333
+ latestReleaseVersion: string | null;
3334
+ gitRepoFullName: string | null;
3335
+ envBranchPrefix: string | null;
3336
+ previewEnvTrigger: "BRANCH_PREFIX" | "PULL_REQUEST" | "DISABLED";
3337
+ createdAt: string;
3338
+ updatedAt: string;
3339
+ _release: import("../generated/schemas.js").components["schemas"]["PublishRelease"];
675
3340
  }>;
676
3341
  "businesses.rollback": import("./define.js").OperationEntry<{
677
3342
  businessId: string;
@@ -682,100 +3347,590 @@ export declare const OPERATION_TABLE: {
682
3347
  businessId: string;
683
3348
  status: string;
684
3349
  rollbackWorkflowExecutionId: string;
3350
+ }, {
3351
+ businessId: string;
3352
+ status: string;
3353
+ rollbackWorkflowExecutionId: string;
685
3354
  }>;
686
3355
  "businesses.compile": import("./define.js").OperationEntry<{
687
3356
  businessId: string;
688
3357
  } & {
689
3358
  ir: unknown;
690
3359
  env?: string;
691
- }, import("../types.js").ManifestCompileResult>;
3360
+ }, {
3361
+ success: boolean;
3362
+ environment: {
3363
+ name: string | null;
3364
+ production: boolean;
3365
+ };
3366
+ errors: import("../generated/schemas.js").components["schemas"]["BusinessDiagnostic"][];
3367
+ warnings: import("../generated/schemas.js").components["schemas"]["BusinessDiagnostic"][];
3368
+ lifecyclePlan: {
3369
+ requiresSubscriptionMigration: boolean;
3370
+ actions: {
3371
+ domain: "economic_contract" | "entitlement_surface" | "operational_policy" | "compatibility_lifecycle";
3372
+ action: "no_op" | "migrate_at_renewal" | "migrate_immediately" | "replay" | "block";
3373
+ rationale: string;
3374
+ }[];
3375
+ } | null;
3376
+ economicChange: boolean;
3377
+ }, {
3378
+ success: boolean;
3379
+ environment: {
3380
+ name: string | null;
3381
+ production: boolean;
3382
+ };
3383
+ errors: import("../generated/schemas.js").components["schemas"]["BusinessDiagnostic"][];
3384
+ warnings: import("../generated/schemas.js").components["schemas"]["BusinessDiagnostic"][];
3385
+ lifecyclePlan: {
3386
+ requiresSubscriptionMigration: boolean;
3387
+ actions: {
3388
+ domain: "economic_contract" | "entitlement_surface" | "operational_policy" | "compatibility_lifecycle";
3389
+ action: "no_op" | "migrate_at_renewal" | "migrate_immediately" | "replay" | "block";
3390
+ rationale: string;
3391
+ }[];
3392
+ } | null;
3393
+ economicChange: boolean;
3394
+ }>;
3395
+ "businesses.docs.validate": import("./define.js").OperationEntry<{
3396
+ businessId: string;
3397
+ } & {
3398
+ env?: string;
3399
+ } & {
3400
+ files: readonly import("./businesses.js").DocsValidateFile[];
3401
+ }, {
3402
+ issues: import("../generated/schemas.js").components["schemas"]["DocsCheckIssue"][];
3403
+ }, {
3404
+ issues: import("../generated/schemas.js").components["schemas"]["DocsCheckIssue"][];
3405
+ }>;
692
3406
  "businesses.brand.update": import("./define.js").OperationEntry<{
693
3407
  businessId: string;
694
3408
  } & {
695
3409
  env?: string;
696
3410
  } & {
697
3411
  body: import("./define.js").RequestBody;
698
- }, import("../types.js").BusinessSummary>;
3412
+ }, {
3413
+ id: string;
3414
+ organizationId: string | null;
3415
+ name: string;
3416
+ displayName: string | null;
3417
+ description: string | null;
3418
+ status: "DRAFT" | "ACTIVE";
3419
+ visibility: "PUBLIC" | "PRIVATE";
3420
+ runtimeHostname: string | null;
3421
+ portalHostname: string | null;
3422
+ iconUrl: string | null;
3423
+ logoUrl: string | null;
3424
+ keyPrefix: string | null;
3425
+ allowedOrigins: string[];
3426
+ docsEnabled: boolean;
3427
+ listedOnOrganizationPage: boolean;
3428
+ rbacEnabled: boolean;
3429
+ meters: import("../generated/schemas.js").components["schemas"]["BusinessMeter"][];
3430
+ plans: import("../generated/schemas.js").components["schemas"]["BusinessPlan"][];
3431
+ unreadablePlans?: import("../generated/schemas.js").components["schemas"]["BusinessUnreadablePlan"][];
3432
+ rateLimitConfig: import("../generated/schemas.js").components["schemas"]["BusinessRateLimit"] | null;
3433
+ publishedRevisionId: string | null;
3434
+ latestRevisionId: string | null;
3435
+ latestRevisionNumber: number | null;
3436
+ latestReleaseVersion: string | null;
3437
+ gitRepoFullName: string | null;
3438
+ envBranchPrefix: string | null;
3439
+ previewEnvTrigger: "BRANCH_PREFIX" | "PULL_REQUEST" | "DISABLED";
3440
+ createdAt: string;
3441
+ updatedAt: string;
3442
+ }, {
3443
+ id: string;
3444
+ organizationId: string | null;
3445
+ name: string;
3446
+ displayName: string | null;
3447
+ description: string | null;
3448
+ status: "DRAFT" | "ACTIVE";
3449
+ visibility: "PUBLIC" | "PRIVATE";
3450
+ runtimeHostname: string | null;
3451
+ portalHostname: string | null;
3452
+ iconUrl: string | null;
3453
+ logoUrl: string | null;
3454
+ keyPrefix: string | null;
3455
+ allowedOrigins: string[];
3456
+ docsEnabled: boolean;
3457
+ listedOnOrganizationPage: boolean;
3458
+ rbacEnabled: boolean;
3459
+ meters: import("../generated/schemas.js").components["schemas"]["BusinessMeter"][];
3460
+ plans: import("../generated/schemas.js").components["schemas"]["BusinessPlan"][];
3461
+ unreadablePlans?: import("../generated/schemas.js").components["schemas"]["BusinessUnreadablePlan"][];
3462
+ rateLimitConfig: import("../generated/schemas.js").components["schemas"]["BusinessRateLimit"] | null;
3463
+ publishedRevisionId: string | null;
3464
+ latestRevisionId: string | null;
3465
+ latestRevisionNumber: number | null;
3466
+ latestReleaseVersion: string | null;
3467
+ gitRepoFullName: string | null;
3468
+ envBranchPrefix: string | null;
3469
+ previewEnvTrigger: "BRANCH_PREFIX" | "PULL_REQUEST" | "DISABLED";
3470
+ createdAt: string;
3471
+ updatedAt: string;
3472
+ }>;
699
3473
  "businesses.brand.uploadAsset": import("./define.js").OperationEntry<{
700
3474
  businessId: string;
701
3475
  } & {
702
3476
  kind: "icon" | "logo";
703
3477
  body: Uint8Array;
704
3478
  contentType: string;
705
- }, {
706
- iconUrl?: string;
707
- logoUrl?: string;
708
- }>;
3479
+ }, import("../types.js").BrandAssetUploadResult, import("../types.js").BrandAssetUploadResult>;
709
3480
  "businesses.brand.deleteAsset": import("./define.js").OperationEntry<{
710
3481
  businessId: string;
711
3482
  } & {
712
3483
  kind: "icon" | "logo";
713
- }, void>;
3484
+ }, void, void>;
714
3485
  "businesses.previewEnv.set": import("./define.js").OperationEntry<{
715
3486
  businessId: string;
716
3487
  } & {
717
3488
  env?: string;
718
3489
  } & {
719
3490
  body: import("./define.js").RequestBody;
720
- }, import("../types.js").BusinessSummary>;
3491
+ }, {
3492
+ id: string;
3493
+ organizationId: string | null;
3494
+ name: string;
3495
+ displayName: string | null;
3496
+ description: string | null;
3497
+ status: "DRAFT" | "ACTIVE";
3498
+ visibility: "PUBLIC" | "PRIVATE";
3499
+ runtimeHostname: string | null;
3500
+ portalHostname: string | null;
3501
+ iconUrl: string | null;
3502
+ logoUrl: string | null;
3503
+ keyPrefix: string | null;
3504
+ allowedOrigins: string[];
3505
+ docsEnabled: boolean;
3506
+ listedOnOrganizationPage: boolean;
3507
+ rbacEnabled: boolean;
3508
+ meters: import("../generated/schemas.js").components["schemas"]["BusinessMeter"][];
3509
+ plans: import("../generated/schemas.js").components["schemas"]["BusinessPlan"][];
3510
+ unreadablePlans?: import("../generated/schemas.js").components["schemas"]["BusinessUnreadablePlan"][];
3511
+ rateLimitConfig: import("../generated/schemas.js").components["schemas"]["BusinessRateLimit"] | null;
3512
+ publishedRevisionId: string | null;
3513
+ latestRevisionId: string | null;
3514
+ latestRevisionNumber: number | null;
3515
+ latestReleaseVersion: string | null;
3516
+ gitRepoFullName: string | null;
3517
+ envBranchPrefix: string | null;
3518
+ previewEnvTrigger: "BRANCH_PREFIX" | "PULL_REQUEST" | "DISABLED";
3519
+ createdAt: string;
3520
+ updatedAt: string;
3521
+ }, {
3522
+ id: string;
3523
+ organizationId: string | null;
3524
+ name: string;
3525
+ displayName: string | null;
3526
+ description: string | null;
3527
+ status: "DRAFT" | "ACTIVE";
3528
+ visibility: "PUBLIC" | "PRIVATE";
3529
+ runtimeHostname: string | null;
3530
+ portalHostname: string | null;
3531
+ iconUrl: string | null;
3532
+ logoUrl: string | null;
3533
+ keyPrefix: string | null;
3534
+ allowedOrigins: string[];
3535
+ docsEnabled: boolean;
3536
+ listedOnOrganizationPage: boolean;
3537
+ rbacEnabled: boolean;
3538
+ meters: import("../generated/schemas.js").components["schemas"]["BusinessMeter"][];
3539
+ plans: import("../generated/schemas.js").components["schemas"]["BusinessPlan"][];
3540
+ unreadablePlans?: import("../generated/schemas.js").components["schemas"]["BusinessUnreadablePlan"][];
3541
+ rateLimitConfig: import("../generated/schemas.js").components["schemas"]["BusinessRateLimit"] | null;
3542
+ publishedRevisionId: string | null;
3543
+ latestRevisionId: string | null;
3544
+ latestRevisionNumber: number | null;
3545
+ latestReleaseVersion: string | null;
3546
+ gitRepoFullName: string | null;
3547
+ envBranchPrefix: string | null;
3548
+ previewEnvTrigger: "BRANCH_PREFIX" | "PULL_REQUEST" | "DISABLED";
3549
+ createdAt: string;
3550
+ updatedAt: string;
3551
+ }>;
721
3552
  "businesses.docs.enable": import("./define.js").OperationEntry<{
722
3553
  businessId: string;
723
3554
  } & {
724
3555
  env?: string;
725
- }, import("../types.js").BusinessSummary>;
3556
+ }, {
3557
+ id: string;
3558
+ organizationId: string | null;
3559
+ name: string;
3560
+ displayName: string | null;
3561
+ description: string | null;
3562
+ status: "DRAFT" | "ACTIVE";
3563
+ visibility: "PUBLIC" | "PRIVATE";
3564
+ runtimeHostname: string | null;
3565
+ portalHostname: string | null;
3566
+ iconUrl: string | null;
3567
+ logoUrl: string | null;
3568
+ keyPrefix: string | null;
3569
+ allowedOrigins: string[];
3570
+ docsEnabled: boolean;
3571
+ listedOnOrganizationPage: boolean;
3572
+ rbacEnabled: boolean;
3573
+ meters: import("../generated/schemas.js").components["schemas"]["BusinessMeter"][];
3574
+ plans: import("../generated/schemas.js").components["schemas"]["BusinessPlan"][];
3575
+ unreadablePlans?: import("../generated/schemas.js").components["schemas"]["BusinessUnreadablePlan"][];
3576
+ rateLimitConfig: import("../generated/schemas.js").components["schemas"]["BusinessRateLimit"] | null;
3577
+ publishedRevisionId: string | null;
3578
+ latestRevisionId: string | null;
3579
+ latestRevisionNumber: number | null;
3580
+ latestReleaseVersion: string | null;
3581
+ gitRepoFullName: string | null;
3582
+ envBranchPrefix: string | null;
3583
+ previewEnvTrigger: "BRANCH_PREFIX" | "PULL_REQUEST" | "DISABLED";
3584
+ createdAt: string;
3585
+ updatedAt: string;
3586
+ }, {
3587
+ id: string;
3588
+ organizationId: string | null;
3589
+ name: string;
3590
+ displayName: string | null;
3591
+ description: string | null;
3592
+ status: "DRAFT" | "ACTIVE";
3593
+ visibility: "PUBLIC" | "PRIVATE";
3594
+ runtimeHostname: string | null;
3595
+ portalHostname: string | null;
3596
+ iconUrl: string | null;
3597
+ logoUrl: string | null;
3598
+ keyPrefix: string | null;
3599
+ allowedOrigins: string[];
3600
+ docsEnabled: boolean;
3601
+ listedOnOrganizationPage: boolean;
3602
+ rbacEnabled: boolean;
3603
+ meters: import("../generated/schemas.js").components["schemas"]["BusinessMeter"][];
3604
+ plans: import("../generated/schemas.js").components["schemas"]["BusinessPlan"][];
3605
+ unreadablePlans?: import("../generated/schemas.js").components["schemas"]["BusinessUnreadablePlan"][];
3606
+ rateLimitConfig: import("../generated/schemas.js").components["schemas"]["BusinessRateLimit"] | null;
3607
+ publishedRevisionId: string | null;
3608
+ latestRevisionId: string | null;
3609
+ latestRevisionNumber: number | null;
3610
+ latestReleaseVersion: string | null;
3611
+ gitRepoFullName: string | null;
3612
+ envBranchPrefix: string | null;
3613
+ previewEnvTrigger: "BRANCH_PREFIX" | "PULL_REQUEST" | "DISABLED";
3614
+ createdAt: string;
3615
+ updatedAt: string;
3616
+ }>;
726
3617
  "businesses.docs.disable": import("./define.js").OperationEntry<{
727
3618
  businessId: string;
728
3619
  } & {
729
3620
  env?: string;
730
- }, import("../types.js").BusinessSummary>;
3621
+ }, {
3622
+ id: string;
3623
+ organizationId: string | null;
3624
+ name: string;
3625
+ displayName: string | null;
3626
+ description: string | null;
3627
+ status: "DRAFT" | "ACTIVE";
3628
+ visibility: "PUBLIC" | "PRIVATE";
3629
+ runtimeHostname: string | null;
3630
+ portalHostname: string | null;
3631
+ iconUrl: string | null;
3632
+ logoUrl: string | null;
3633
+ keyPrefix: string | null;
3634
+ allowedOrigins: string[];
3635
+ docsEnabled: boolean;
3636
+ listedOnOrganizationPage: boolean;
3637
+ rbacEnabled: boolean;
3638
+ meters: import("../generated/schemas.js").components["schemas"]["BusinessMeter"][];
3639
+ plans: import("../generated/schemas.js").components["schemas"]["BusinessPlan"][];
3640
+ unreadablePlans?: import("../generated/schemas.js").components["schemas"]["BusinessUnreadablePlan"][];
3641
+ rateLimitConfig: import("../generated/schemas.js").components["schemas"]["BusinessRateLimit"] | null;
3642
+ publishedRevisionId: string | null;
3643
+ latestRevisionId: string | null;
3644
+ latestRevisionNumber: number | null;
3645
+ latestReleaseVersion: string | null;
3646
+ gitRepoFullName: string | null;
3647
+ envBranchPrefix: string | null;
3648
+ previewEnvTrigger: "BRANCH_PREFIX" | "PULL_REQUEST" | "DISABLED";
3649
+ createdAt: string;
3650
+ updatedAt: string;
3651
+ }, {
3652
+ id: string;
3653
+ organizationId: string | null;
3654
+ name: string;
3655
+ displayName: string | null;
3656
+ description: string | null;
3657
+ status: "DRAFT" | "ACTIVE";
3658
+ visibility: "PUBLIC" | "PRIVATE";
3659
+ runtimeHostname: string | null;
3660
+ portalHostname: string | null;
3661
+ iconUrl: string | null;
3662
+ logoUrl: string | null;
3663
+ keyPrefix: string | null;
3664
+ allowedOrigins: string[];
3665
+ docsEnabled: boolean;
3666
+ listedOnOrganizationPage: boolean;
3667
+ rbacEnabled: boolean;
3668
+ meters: import("../generated/schemas.js").components["schemas"]["BusinessMeter"][];
3669
+ plans: import("../generated/schemas.js").components["schemas"]["BusinessPlan"][];
3670
+ unreadablePlans?: import("../generated/schemas.js").components["schemas"]["BusinessUnreadablePlan"][];
3671
+ rateLimitConfig: import("../generated/schemas.js").components["schemas"]["BusinessRateLimit"] | null;
3672
+ publishedRevisionId: string | null;
3673
+ latestRevisionId: string | null;
3674
+ latestRevisionNumber: number | null;
3675
+ latestReleaseVersion: string | null;
3676
+ gitRepoFullName: string | null;
3677
+ envBranchPrefix: string | null;
3678
+ previewEnvTrigger: "BRANCH_PREFIX" | "PULL_REQUEST" | "DISABLED";
3679
+ createdAt: string;
3680
+ updatedAt: string;
3681
+ }>;
731
3682
  "businesses.cors.update": import("./define.js").OperationEntry<{
732
3683
  businessId: string;
733
3684
  } & {
734
3685
  env?: string;
735
3686
  } & {
736
3687
  body: import("./define.js").RequestBody;
737
- }, import("../types.js").BusinessSummary>;
3688
+ }, {
3689
+ id: string;
3690
+ organizationId: string | null;
3691
+ name: string;
3692
+ displayName: string | null;
3693
+ description: string | null;
3694
+ status: "DRAFT" | "ACTIVE";
3695
+ visibility: "PUBLIC" | "PRIVATE";
3696
+ runtimeHostname: string | null;
3697
+ portalHostname: string | null;
3698
+ iconUrl: string | null;
3699
+ logoUrl: string | null;
3700
+ keyPrefix: string | null;
3701
+ allowedOrigins: string[];
3702
+ docsEnabled: boolean;
3703
+ listedOnOrganizationPage: boolean;
3704
+ rbacEnabled: boolean;
3705
+ meters: import("../generated/schemas.js").components["schemas"]["BusinessMeter"][];
3706
+ plans: import("../generated/schemas.js").components["schemas"]["BusinessPlan"][];
3707
+ unreadablePlans?: import("../generated/schemas.js").components["schemas"]["BusinessUnreadablePlan"][];
3708
+ rateLimitConfig: import("../generated/schemas.js").components["schemas"]["BusinessRateLimit"] | null;
3709
+ publishedRevisionId: string | null;
3710
+ latestRevisionId: string | null;
3711
+ latestRevisionNumber: number | null;
3712
+ latestReleaseVersion: string | null;
3713
+ gitRepoFullName: string | null;
3714
+ envBranchPrefix: string | null;
3715
+ previewEnvTrigger: "BRANCH_PREFIX" | "PULL_REQUEST" | "DISABLED";
3716
+ createdAt: string;
3717
+ updatedAt: string;
3718
+ }, {
3719
+ id: string;
3720
+ organizationId: string | null;
3721
+ name: string;
3722
+ displayName: string | null;
3723
+ description: string | null;
3724
+ status: "DRAFT" | "ACTIVE";
3725
+ visibility: "PUBLIC" | "PRIVATE";
3726
+ runtimeHostname: string | null;
3727
+ portalHostname: string | null;
3728
+ iconUrl: string | null;
3729
+ logoUrl: string | null;
3730
+ keyPrefix: string | null;
3731
+ allowedOrigins: string[];
3732
+ docsEnabled: boolean;
3733
+ listedOnOrganizationPage: boolean;
3734
+ rbacEnabled: boolean;
3735
+ meters: import("../generated/schemas.js").components["schemas"]["BusinessMeter"][];
3736
+ plans: import("../generated/schemas.js").components["schemas"]["BusinessPlan"][];
3737
+ unreadablePlans?: import("../generated/schemas.js").components["schemas"]["BusinessUnreadablePlan"][];
3738
+ rateLimitConfig: import("../generated/schemas.js").components["schemas"]["BusinessRateLimit"] | null;
3739
+ publishedRevisionId: string | null;
3740
+ latestRevisionId: string | null;
3741
+ latestRevisionNumber: number | null;
3742
+ latestReleaseVersion: string | null;
3743
+ gitRepoFullName: string | null;
3744
+ envBranchPrefix: string | null;
3745
+ previewEnvTrigger: "BRANCH_PREFIX" | "PULL_REQUEST" | "DISABLED";
3746
+ createdAt: string;
3747
+ updatedAt: string;
3748
+ }>;
738
3749
  "businesses.rbac.read": import("./define.js").OperationEntry<{
739
3750
  businessId: string;
740
- }, import("../types.js").BusinessSummary>;
3751
+ }, {
3752
+ id: string;
3753
+ organizationId: string | null;
3754
+ name: string;
3755
+ displayName: string | null;
3756
+ description: string | null;
3757
+ status: "DRAFT" | "ACTIVE";
3758
+ visibility: "PUBLIC" | "PRIVATE";
3759
+ runtimeHostname: string | null;
3760
+ portalHostname: string | null;
3761
+ iconUrl: string | null;
3762
+ logoUrl: string | null;
3763
+ keyPrefix: string | null;
3764
+ allowedOrigins: string[];
3765
+ docsEnabled: boolean;
3766
+ listedOnOrganizationPage: boolean;
3767
+ rbacEnabled: boolean;
3768
+ meters: import("../generated/schemas.js").components["schemas"]["BusinessMeter"][];
3769
+ plans: import("../generated/schemas.js").components["schemas"]["BusinessPlan"][];
3770
+ unreadablePlans?: import("../generated/schemas.js").components["schemas"]["BusinessUnreadablePlan"][];
3771
+ rateLimitConfig: import("../generated/schemas.js").components["schemas"]["BusinessRateLimit"] | null;
3772
+ publishedRevisionId: string | null;
3773
+ latestRevisionId: string | null;
3774
+ latestRevisionNumber: number | null;
3775
+ latestReleaseVersion: string | null;
3776
+ gitRepoFullName: string | null;
3777
+ envBranchPrefix: string | null;
3778
+ previewEnvTrigger: "BRANCH_PREFIX" | "PULL_REQUEST" | "DISABLED";
3779
+ createdAt: string;
3780
+ updatedAt: string;
3781
+ environments: import("../generated/schemas.js").components["schemas"]["BusinessEnvironment"][];
3782
+ }, {
3783
+ id: string;
3784
+ organizationId: string | null;
3785
+ name: string;
3786
+ displayName: string | null;
3787
+ description: string | null;
3788
+ status: "DRAFT" | "ACTIVE";
3789
+ visibility: "PUBLIC" | "PRIVATE";
3790
+ runtimeHostname: string | null;
3791
+ portalHostname: string | null;
3792
+ iconUrl: string | null;
3793
+ logoUrl: string | null;
3794
+ keyPrefix: string | null;
3795
+ allowedOrigins: string[];
3796
+ docsEnabled: boolean;
3797
+ listedOnOrganizationPage: boolean;
3798
+ rbacEnabled: boolean;
3799
+ meters: import("../generated/schemas.js").components["schemas"]["BusinessMeter"][];
3800
+ plans: import("../generated/schemas.js").components["schemas"]["BusinessPlan"][];
3801
+ unreadablePlans?: import("../generated/schemas.js").components["schemas"]["BusinessUnreadablePlan"][];
3802
+ rateLimitConfig: import("../generated/schemas.js").components["schemas"]["BusinessRateLimit"] | null;
3803
+ publishedRevisionId: string | null;
3804
+ latestRevisionId: string | null;
3805
+ latestRevisionNumber: number | null;
3806
+ latestReleaseVersion: string | null;
3807
+ gitRepoFullName: string | null;
3808
+ envBranchPrefix: string | null;
3809
+ previewEnvTrigger: "BRANCH_PREFIX" | "PULL_REQUEST" | "DISABLED";
3810
+ createdAt: string;
3811
+ updatedAt: string;
3812
+ environments: import("../generated/schemas.js").components["schemas"]["BusinessEnvironment"][];
3813
+ }>;
741
3814
  "businesses.rbac.enable": import("./define.js").OperationEntry<{
742
3815
  businessId: string;
743
3816
  }, {
744
3817
  rbacEnabled: boolean;
3818
+ }, {
3819
+ rbacEnabled: boolean;
745
3820
  }>;
746
3821
  "businesses.rbac.disable": import("./define.js").OperationEntry<{
747
3822
  businessId: string;
748
3823
  }, {
749
3824
  rbacEnabled: boolean;
3825
+ }, {
3826
+ rbacEnabled: boolean;
750
3827
  }>;
751
3828
  "businesses.rbac.subjects.read": import("./define.js").OperationEntry<{
752
3829
  businessId: string;
753
3830
  }, {
754
- subjects: unknown[];
3831
+ subjects: import("../generated/schemas.js").components["schemas"]["CustomPermissionSubject"][];
3832
+ }, {
3833
+ subjects: import("../generated/schemas.js").components["schemas"]["CustomPermissionSubject"][];
755
3834
  }>;
756
3835
  "billing.stripe.read": import("./define.js").OperationEntry<{
757
3836
  businessId: string;
758
- }, unknown>;
3837
+ }, {
3838
+ connected: boolean;
3839
+ source: "business" | "organization";
3840
+ isOverride: boolean;
3841
+ chargesEnabled: boolean;
3842
+ cardPaymentsEnabled: boolean;
3843
+ }, {
3844
+ connected: boolean;
3845
+ source: "business" | "organization";
3846
+ isOverride: boolean;
3847
+ chargesEnabled: boolean;
3848
+ cardPaymentsEnabled: boolean;
3849
+ }>;
759
3850
  "billing.stripe.delete": import("./define.js").OperationEntry<{
760
3851
  businessId: string;
761
3852
  } & {
762
3853
  deleteAccount?: boolean;
763
- }, unknown>;
3854
+ }, {
3855
+ disconnected: true;
3856
+ }, {
3857
+ disconnected: true;
3858
+ }>;
764
3859
  "billing.taxSettings.read": import("./define.js").OperationEntry<{
765
3860
  businessId: string;
766
- }, unknown>;
3861
+ }, {
3862
+ status: "active" | "pending";
3863
+ defaults: {
3864
+ taxBehavior: ("exclusive" | "inclusive" | "inferred_by_currency") | null;
3865
+ taxCode: string | null;
3866
+ };
3867
+ headOffice: {
3868
+ address: import("../generated/schemas.js").components["schemas"]["TaxAddress"];
3869
+ } | null;
3870
+ missingFields: string[];
3871
+ }, {
3872
+ status: "active" | "pending";
3873
+ defaults: {
3874
+ taxBehavior: ("exclusive" | "inclusive" | "inferred_by_currency") | null;
3875
+ taxCode: string | null;
3876
+ };
3877
+ headOffice: {
3878
+ address: import("../generated/schemas.js").components["schemas"]["TaxAddress"];
3879
+ } | null;
3880
+ missingFields: string[];
3881
+ }>;
767
3882
  "billing.taxSettings.update": import("./define.js").OperationEntry<{
768
3883
  businessId: string;
769
3884
  } & {
770
3885
  body: import("./define.js").RequestBody;
771
- }, unknown>;
3886
+ }, {
3887
+ status: "active" | "pending";
3888
+ defaults: {
3889
+ taxBehavior: ("exclusive" | "inclusive" | "inferred_by_currency") | null;
3890
+ taxCode: string | null;
3891
+ };
3892
+ headOffice: {
3893
+ address: import("../generated/schemas.js").components["schemas"]["TaxAddress"];
3894
+ } | null;
3895
+ missingFields: string[];
3896
+ }, {
3897
+ status: "active" | "pending";
3898
+ defaults: {
3899
+ taxBehavior: ("exclusive" | "inclusive" | "inferred_by_currency") | null;
3900
+ taxCode: string | null;
3901
+ };
3902
+ headOffice: {
3903
+ address: import("../generated/schemas.js").components["schemas"]["TaxAddress"];
3904
+ } | null;
3905
+ missingFields: string[];
3906
+ }>;
772
3907
  "backends.read": import("./define.js").OperationEntry<{
773
3908
  businessId: string;
774
3909
  } & {
775
3910
  environmentId?: string;
776
3911
  limit?: number;
777
3912
  offset?: number;
778
- }, unknown>;
3913
+ }, {
3914
+ data: import("../generated/schemas.js").components["schemas"]["Backend"][];
3915
+ pagination: {
3916
+ total: number;
3917
+ limit: number;
3918
+ offset: number;
3919
+ hasMore: boolean;
3920
+ };
3921
+ scope: "all" | "production" | "environment";
3922
+ environmentId: string | null;
3923
+ }, {
3924
+ data: import("../generated/schemas.js").components["schemas"]["Backend"][];
3925
+ pagination: {
3926
+ total: number;
3927
+ limit: number;
3928
+ offset: number;
3929
+ hasMore: boolean;
3930
+ };
3931
+ scope: "all" | "production" | "environment";
3932
+ environmentId: string | null;
3933
+ }>;
779
3934
  "backends.create": import("./define.js").OperationEntry<{
780
3935
  businessId: string;
781
3936
  } & {
@@ -787,26 +3942,111 @@ export declare const OPERATION_TABLE: {
787
3942
  runtime?: string | null;
788
3943
  originUrl?: string | null;
789
3944
  isDefault?: boolean;
790
- }, unknown>;
3945
+ }, {
3946
+ id: string;
3947
+ businessId: string;
3948
+ environmentId: string | null;
3949
+ name: string;
3950
+ slug: string;
3951
+ transportMode: "direct" | "tunnel";
3952
+ runner: ("embedded" | "sidecar") | null;
3953
+ runtime: string | null;
3954
+ verificationRequired: boolean;
3955
+ originUrl: string | null;
3956
+ isDefault: boolean;
3957
+ status: "registered" | "building" | "deployed" | "tunnel_connected" | "healthy" | "unhealthy" | "verification_failed" | "provision_failed" | "disabled";
3958
+ lastSeenAt: string | null;
3959
+ createdAt: string;
3960
+ updated?: true;
3961
+ }, {
3962
+ action: "create" | "update";
3963
+ backend: {
3964
+ businessId: string;
3965
+ environmentId: string | null;
3966
+ name: string;
3967
+ slug: string;
3968
+ transportMode: "direct" | "tunnel";
3969
+ runner: ("embedded" | "sidecar") | null;
3970
+ runtime: string | null;
3971
+ originUrl: string | null;
3972
+ isDefault: boolean;
3973
+ };
3974
+ }>;
791
3975
  "backends.bind": import("./define.js").OperationEntry<{
792
3976
  businessId: string;
793
3977
  } & {
794
3978
  backend: string;
795
3979
  environmentId?: string | null;
796
3980
  originUrl: string;
797
- }, unknown>;
3981
+ }, {
3982
+ id: string;
3983
+ businessId: string;
3984
+ environmentId: string | null;
3985
+ name: string;
3986
+ slug: string;
3987
+ transportMode: "direct" | "tunnel";
3988
+ runner: ("embedded" | "sidecar") | null;
3989
+ runtime: string | null;
3990
+ verificationRequired: boolean;
3991
+ originUrl: string | null;
3992
+ isDefault: boolean;
3993
+ status: "registered" | "building" | "deployed" | "tunnel_connected" | "healthy" | "unhealthy" | "verification_failed" | "provision_failed" | "disabled";
3994
+ lastSeenAt: string | null;
3995
+ createdAt: string;
3996
+ }, {
3997
+ id: string;
3998
+ businessId: string;
3999
+ environmentId: string | null;
4000
+ name: string;
4001
+ slug: string;
4002
+ transportMode: "direct" | "tunnel";
4003
+ runner: ("embedded" | "sidecar") | null;
4004
+ runtime: string | null;
4005
+ verificationRequired: boolean;
4006
+ originUrl: string | null;
4007
+ isDefault: boolean;
4008
+ status: "registered" | "building" | "deployed" | "tunnel_connected" | "healthy" | "unhealthy" | "verification_failed" | "provision_failed" | "disabled";
4009
+ lastSeenAt: string | null;
4010
+ createdAt: string;
4011
+ }>;
798
4012
  "backends.delete": import("./define.js").OperationEntry<{
799
4013
  businessId: string;
800
4014
  } & {
801
4015
  backendId: string;
802
- }, unknown>;
4016
+ }, {
4017
+ id: string;
4018
+ deleted: true;
4019
+ }, {
4020
+ id: string;
4021
+ deleted: true;
4022
+ }>;
803
4023
  "runtimeTokens.read": import("./define.js").OperationEntry<{
804
4024
  businessId: string;
805
4025
  } & {
806
4026
  environmentId?: string;
807
4027
  limit?: number;
808
4028
  offset?: number;
809
- }, unknown>;
4029
+ }, {
4030
+ data: import("../generated/schemas.js").components["schemas"]["RuntimeToken"][];
4031
+ pagination: {
4032
+ total: number;
4033
+ limit: number;
4034
+ offset: number;
4035
+ hasMore: boolean;
4036
+ };
4037
+ scope: "all" | "production" | "environment";
4038
+ environmentId: string | null;
4039
+ }, {
4040
+ data: import("../generated/schemas.js").components["schemas"]["RuntimeToken"][];
4041
+ pagination: {
4042
+ total: number;
4043
+ limit: number;
4044
+ offset: number;
4045
+ hasMore: boolean;
4046
+ };
4047
+ scope: "all" | "production" | "environment";
4048
+ environmentId: string | null;
4049
+ }>;
810
4050
  "runtimeTokens.mint": import("./define.js").OperationEntry<{
811
4051
  businessId: string;
812
4052
  } & {
@@ -816,18 +4056,116 @@ export declare const OPERATION_TABLE: {
816
4056
  operations?: string[];
817
4057
  allowedMeters?: string[];
818
4058
  allowedRoutes?: string[];
819
- }, unknown>;
4059
+ }, {
4060
+ id: string;
4061
+ businessId: string;
4062
+ environmentId: string | null;
4063
+ backendId: string | null;
4064
+ kind: "live" | "test";
4065
+ lastFour: string;
4066
+ operations: ("gateway_verification" | "metering" | "health" | "tunnel" | "drift_report")[];
4067
+ allowedMeters: string[];
4068
+ allowedRoutes: string[];
4069
+ status: "active" | "revoked";
4070
+ rotatedFromId: string | null;
4071
+ createdAt: string;
4072
+ revokedAt: string | null;
4073
+ lastUsedAt: string | null;
4074
+ envVar: "FS_RUNTIME_TOKEN";
4075
+ token: string;
4076
+ }, {
4077
+ id: string;
4078
+ businessId: string;
4079
+ environmentId: string | null;
4080
+ backendId: string | null;
4081
+ kind: "live" | "test";
4082
+ lastFour: string;
4083
+ operations: ("gateway_verification" | "metering" | "health" | "tunnel" | "drift_report")[];
4084
+ allowedMeters: string[];
4085
+ allowedRoutes: string[];
4086
+ status: "active" | "revoked";
4087
+ rotatedFromId: string | null;
4088
+ createdAt: string;
4089
+ revokedAt: string | null;
4090
+ lastUsedAt: string | null;
4091
+ envVar: "FS_RUNTIME_TOKEN";
4092
+ token: string;
4093
+ }>;
820
4094
  "runtimeTokens.rotate": import("./define.js").OperationEntry<{
821
4095
  businessId: string;
822
4096
  } & {
823
4097
  tokenId: string;
824
- }, unknown>;
4098
+ }, {
4099
+ id: string;
4100
+ businessId: string;
4101
+ environmentId: string | null;
4102
+ backendId: string | null;
4103
+ kind: "live" | "test";
4104
+ lastFour: string;
4105
+ operations: ("gateway_verification" | "metering" | "health" | "tunnel" | "drift_report")[];
4106
+ allowedMeters: string[];
4107
+ allowedRoutes: string[];
4108
+ status: "active" | "revoked";
4109
+ rotatedFromId: string | null;
4110
+ createdAt: string;
4111
+ revokedAt: string | null;
4112
+ lastUsedAt: string | null;
4113
+ envVar: "FS_RUNTIME_TOKEN";
4114
+ token: string;
4115
+ }, {
4116
+ id: string;
4117
+ businessId: string;
4118
+ environmentId: string | null;
4119
+ backendId: string | null;
4120
+ kind: "live" | "test";
4121
+ lastFour: string;
4122
+ operations: ("gateway_verification" | "metering" | "health" | "tunnel" | "drift_report")[];
4123
+ allowedMeters: string[];
4124
+ allowedRoutes: string[];
4125
+ status: "active" | "revoked";
4126
+ rotatedFromId: string | null;
4127
+ createdAt: string;
4128
+ revokedAt: string | null;
4129
+ lastUsedAt: string | null;
4130
+ envVar: "FS_RUNTIME_TOKEN";
4131
+ token: string;
4132
+ }>;
825
4133
  "runtimeTokens.revoke": import("./define.js").OperationEntry<{
826
4134
  businessId: string;
827
4135
  } & {
828
4136
  tokenId: string;
829
- }, import("../types.js").RuntimeTokenSummary>;
830
- "auth.context.read": import("./define.js").OperationEntry<void, import("../types.js").CallerContext>;
4137
+ }, {
4138
+ id: string;
4139
+ businessId: string;
4140
+ environmentId: string | null;
4141
+ backendId: string | null;
4142
+ kind: "live" | "test";
4143
+ lastFour: string;
4144
+ operations: ("gateway_verification" | "metering" | "health" | "tunnel" | "drift_report")[];
4145
+ allowedMeters: string[];
4146
+ allowedRoutes: string[];
4147
+ status: "active" | "revoked";
4148
+ rotatedFromId: string | null;
4149
+ createdAt: string;
4150
+ revokedAt: string | null;
4151
+ lastUsedAt: string | null;
4152
+ }, {
4153
+ id: string;
4154
+ businessId: string;
4155
+ environmentId: string | null;
4156
+ backendId: string | null;
4157
+ kind: "live" | "test";
4158
+ lastFour: string;
4159
+ operations: ("gateway_verification" | "metering" | "health" | "tunnel" | "drift_report")[];
4160
+ allowedMeters: string[];
4161
+ allowedRoutes: string[];
4162
+ status: "active" | "revoked";
4163
+ rotatedFromId: string | null;
4164
+ createdAt: string;
4165
+ revokedAt: string | null;
4166
+ lastUsedAt: string | null;
4167
+ }>;
4168
+ "auth.context.read": import("./define.js").OperationEntry<void, import("../types.js").CallerContext, import("../types.js").CallerContext>;
831
4169
  "auth.context.issue": import("./define.js").OperationEntry<{
832
4170
  businessId: string;
833
4171
  externalOrgId: string;
@@ -836,9 +4174,18 @@ export declare const OPERATION_TABLE: {
836
4174
  }, {
837
4175
  token: string;
838
4176
  expiresAt: string;
4177
+ }, {
4178
+ token: string;
4179
+ expiresAt: string;
4180
+ }>;
4181
+ "auth.listOrganizations": import("./define.js").OperationEntry<void, {
4182
+ userId: string;
4183
+ organizations: import("../generated/schemas.js").components["schemas"]["CliOrganizationSummary"][];
4184
+ }, {
4185
+ userId: string;
4186
+ organizations: import("../generated/schemas.js").components["schemas"]["CliOrganizationSummary"][];
839
4187
  }>;
840
- "auth.listOrganizations": import("./define.js").OperationEntry<void, import("../transport.js").OrganizationsResponse>;
841
- "auth.selectedOrganization": import("./define.js").OperationEntry<void, string | undefined>;
4188
+ "auth.selectedOrganization": import("./define.js").OperationEntry<void, string | undefined, string | undefined>;
842
4189
  "auditLogs.read": import("./define.js").OperationEntry<{
843
4190
  organizationId: string;
844
4191
  action?: string;
@@ -849,7 +4196,13 @@ export declare const OPERATION_TABLE: {
849
4196
  limit?: number;
850
4197
  } & {
851
4198
  cursor?: string;
852
- }, unknown>;
4199
+ }, {
4200
+ items: import("../generated/schemas.js").components["schemas"]["AuditLogEntry"][];
4201
+ nextCursor: string | null;
4202
+ }, {
4203
+ items: import("../generated/schemas.js").components["schemas"]["AuditLogEntry"][];
4204
+ nextCursor: string | null;
4205
+ }>;
853
4206
  "auditLogs.business.read": import("./define.js").OperationEntry<{
854
4207
  organizationId: string;
855
4208
  action?: string;
@@ -862,7 +4215,13 @@ export declare const OPERATION_TABLE: {
862
4215
  businessId: string;
863
4216
  } & {
864
4217
  cursor?: string;
865
- }, unknown>;
4218
+ }, {
4219
+ items: import("../generated/schemas.js").components["schemas"]["AuditLogEntry"][];
4220
+ nextCursor: string | null;
4221
+ }, {
4222
+ items: import("../generated/schemas.js").components["schemas"]["AuditLogEntry"][];
4223
+ nextCursor: string | null;
4224
+ }>;
866
4225
  "auditLogs.export": import("./define.js").OperationEntry<{
867
4226
  organizationId: string;
868
4227
  action?: string;
@@ -871,7 +4230,7 @@ export declare const OPERATION_TABLE: {
871
4230
  from?: string;
872
4231
  to?: string;
873
4232
  limit?: number;
874
- }, string>;
4233
+ }, string, string>;
875
4234
  "auditLogs.business.export": import("./define.js").OperationEntry<{
876
4235
  organizationId: string;
877
4236
  action?: string;
@@ -882,38 +4241,90 @@ export declare const OPERATION_TABLE: {
882
4241
  limit?: number;
883
4242
  } & {
884
4243
  businessId: string;
885
- }, string>;
4244
+ }, string, string>;
886
4245
  "notifications.preferences.read": import("./define.js").OperationEntry<{
887
4246
  businessId: string;
888
- }, unknown>;
4247
+ }, {
4248
+ master: boolean;
4249
+ categories: {
4250
+ billing?: boolean;
4251
+ usage?: boolean;
4252
+ access?: boolean;
4253
+ product?: boolean;
4254
+ deployments?: boolean;
4255
+ team?: boolean;
4256
+ security?: boolean;
4257
+ };
4258
+ }, {
4259
+ master: boolean;
4260
+ categories: {
4261
+ billing?: boolean;
4262
+ usage?: boolean;
4263
+ access?: boolean;
4264
+ product?: boolean;
4265
+ deployments?: boolean;
4266
+ team?: boolean;
4267
+ security?: boolean;
4268
+ };
4269
+ }>;
889
4270
  "notifications.preferences.update": import("./define.js").OperationEntry<{
890
4271
  businessId: string;
891
4272
  master?: boolean;
892
- categories?: Record<string, boolean>;
893
- }, unknown>;
4273
+ categories?: import("../types.js").NotificationPreferences["categories"];
4274
+ }, {
4275
+ master: boolean;
4276
+ categories: {
4277
+ billing?: boolean;
4278
+ usage?: boolean;
4279
+ access?: boolean;
4280
+ product?: boolean;
4281
+ deployments?: boolean;
4282
+ team?: boolean;
4283
+ security?: boolean;
4284
+ };
4285
+ }, {
4286
+ master: boolean;
4287
+ categories: {
4288
+ billing?: boolean;
4289
+ usage?: boolean;
4290
+ access?: boolean;
4291
+ product?: boolean;
4292
+ deployments?: boolean;
4293
+ team?: boolean;
4294
+ security?: boolean;
4295
+ };
4296
+ }>;
894
4297
  "analytics.timeseries": import("./define.js").OperationEntry<{
895
4298
  businessId: string;
896
4299
  query: unknown;
897
4300
  }, {
898
- result: unknown;
4301
+ result: import("../generated/schemas.js").components["schemas"]["AnalyticsTimeseriesBucket"][];
4302
+ }, {
4303
+ result: import("../generated/schemas.js").components["schemas"]["AnalyticsTimeseriesBucket"][];
899
4304
  }>;
900
4305
  "analytics.latency": import("./define.js").OperationEntry<{
901
4306
  businessId: string;
902
4307
  query: unknown;
903
4308
  }, {
904
- result: unknown;
4309
+ result: import("../generated/schemas.js").components["schemas"]["AnalyticsPercentileRow"][];
4310
+ }, {
4311
+ result: import("../generated/schemas.js").components["schemas"]["AnalyticsPercentileRow"][];
905
4312
  }>;
906
4313
  "analytics.top": import("./define.js").OperationEntry<{
907
4314
  businessId: string;
908
4315
  query: unknown;
909
4316
  }, {
910
- result: unknown;
4317
+ result: import("../generated/schemas.js").components["schemas"]["AnalyticsTopKRow"][];
4318
+ }, {
4319
+ result: import("../generated/schemas.js").components["schemas"]["AnalyticsTopKRow"][];
911
4320
  }>;
912
4321
  "analytics.log": import("./define.js").OperationEntry<{
913
4322
  businessId: string;
914
4323
  query: unknown;
915
4324
  }, {
916
- result: unknown;
4325
+ result: import("../generated/schemas.js").components["schemas"]["AnalyticsEventFeedRow"][];
4326
+ }, {
4327
+ result: import("../generated/schemas.js").components["schemas"]["AnalyticsEventFeedRow"][];
917
4328
  }>;
918
4329
  "analytics.query": import("./define.js").OperationEntry<{
919
4330
  businessId: string;
@@ -921,7 +4332,21 @@ export declare const OPERATION_TABLE: {
921
4332
  } & {
922
4333
  verb: string;
923
4334
  }, {
924
- result: unknown;
4335
+ result: import("../generated/schemas.js").components["schemas"]["AnalyticsEventFeedRow"][];
4336
+ } | {
4337
+ result: import("../generated/schemas.js").components["schemas"]["AnalyticsPercentileRow"][];
4338
+ } | {
4339
+ result: import("../generated/schemas.js").components["schemas"]["AnalyticsTimeseriesBucket"][];
4340
+ } | {
4341
+ result: import("../generated/schemas.js").components["schemas"]["AnalyticsTopKRow"][];
4342
+ }, {
4343
+ result: import("../generated/schemas.js").components["schemas"]["AnalyticsEventFeedRow"][];
4344
+ } | {
4345
+ result: import("../generated/schemas.js").components["schemas"]["AnalyticsPercentileRow"][];
4346
+ } | {
4347
+ result: import("../generated/schemas.js").components["schemas"]["AnalyticsTimeseriesBucket"][];
4348
+ } | {
4349
+ result: import("../generated/schemas.js").components["schemas"]["AnalyticsTopKRow"][];
925
4350
  }>;
926
4351
  "agreements.read": import("./define.js").OperationEntry<{
927
4352
  businessId: string;
@@ -931,38 +4356,147 @@ export declare const OPERATION_TABLE: {
931
4356
  limit?: number;
932
4357
  offset?: number;
933
4358
  }, {
934
- data: import("../types.js").EconomicAgreement[];
935
- pagination?: import("../types.js").OffsetPagination;
4359
+ data: import("../generated/schemas.js").components["schemas"]["EconomicAgreement"][];
4360
+ pagination: {
4361
+ total: number;
4362
+ limit: number;
4363
+ offset: number;
4364
+ hasMore: boolean;
4365
+ };
4366
+ }, {
4367
+ data: import("../generated/schemas.js").components["schemas"]["EconomicAgreement"][];
4368
+ pagination: {
4369
+ total: number;
4370
+ limit: number;
4371
+ offset: number;
4372
+ hasMore: boolean;
4373
+ };
936
4374
  }>;
937
4375
  "agreements.get": import("./define.js").OperationEntry<{
938
4376
  businessId: string;
939
4377
  } & {
940
4378
  agreementId: string;
941
- }, import("../types.js").EconomicAgreement>;
4379
+ }, {
4380
+ id: string;
4381
+ environmentId: string | null;
4382
+ subjectId: string;
4383
+ usagePricingBinding: import("../generated/schemas.js").components["schemas"]["AgreementUsagePricingBinding"];
4384
+ newMeterPolicy: "adopt_at_current_rate" | "exclude_until_renewal" | "require_amendment";
4385
+ newMeasurePolicy: "adopt_at_current_rate" | "exclude_until_renewal" | "require_amendment";
4386
+ effectiveAt: string;
4387
+ expiresAt: string | null;
4388
+ createdAt: string;
4389
+ contractPricingVersions: import("../generated/schemas.js").components["schemas"]["ContractPricingVersion"][];
4390
+ }, {
4391
+ id: string;
4392
+ environmentId: string | null;
4393
+ subjectId: string;
4394
+ usagePricingBinding: import("../generated/schemas.js").components["schemas"]["AgreementUsagePricingBinding"];
4395
+ newMeterPolicy: "adopt_at_current_rate" | "exclude_until_renewal" | "require_amendment";
4396
+ newMeasurePolicy: "adopt_at_current_rate" | "exclude_until_renewal" | "require_amendment";
4397
+ effectiveAt: string;
4398
+ expiresAt: string | null;
4399
+ createdAt: string;
4400
+ contractPricingVersions: import("../generated/schemas.js").components["schemas"]["ContractPricingVersion"][];
4401
+ }>;
942
4402
  "agreements.pins": import("./define.js").OperationEntry<{
943
4403
  businessId: string;
944
4404
  } & {
945
4405
  subjectId: string;
946
- }, import("../types.js").SubjectPins>;
4406
+ }, {
4407
+ subjectId: string;
4408
+ environmentId: string | null;
4409
+ recurringPricePin: {
4410
+ planKey: string;
4411
+ version: number;
4412
+ recurringFeeCents: number;
4413
+ billingInterval: string;
4414
+ } | null;
4415
+ usagePricingBinding: {
4416
+ source: "agreement";
4417
+ agreementId: string;
4418
+ binding: import("../generated/schemas.js").components["schemas"]["AgreementUsagePricingBinding"];
4419
+ } | {
4420
+ source: "plan_default";
4421
+ mode: "current";
4422
+ };
4423
+ migrateToLatest: {
4424
+ status: "deferred";
4425
+ };
4426
+ }, {
4427
+ subjectId: string;
4428
+ environmentId: string | null;
4429
+ recurringPricePin: {
4430
+ planKey: string;
4431
+ version: number;
4432
+ recurringFeeCents: number;
4433
+ billingInterval: string;
4434
+ } | null;
4435
+ usagePricingBinding: {
4436
+ source: "agreement";
4437
+ agreementId: string;
4438
+ binding: import("../generated/schemas.js").components["schemas"]["AgreementUsagePricingBinding"];
4439
+ } | {
4440
+ source: "plan_default";
4441
+ mode: "current";
4442
+ };
4443
+ migrateToLatest: {
4444
+ status: "deferred";
4445
+ };
4446
+ }>;
947
4447
  "agreements.previewCreate": import("./define.js").OperationEntry<{
948
4448
  businessId: string;
949
4449
  } & {
950
4450
  body: import("./define.js").RequestBody;
951
- }, import("../types.js").AgreementPreview>;
4451
+ }, {
4452
+ effect: import("../generated/schemas.js").components["schemas"]["AgreementCreateEffect"];
4453
+ confirmationToken: string;
4454
+ }, {
4455
+ effect: import("../generated/schemas.js").components["schemas"]["AgreementCreateEffect"];
4456
+ confirmationToken: string;
4457
+ }>;
952
4458
  "agreements.create": import("./define.js").OperationEntry<{
953
4459
  businessId: string;
954
4460
  } & {
955
4461
  body: import("./define.js").RequestBody & {
956
4462
  confirmationToken: string;
957
4463
  };
958
- }, import("../types.js").EconomicAgreement>;
4464
+ }, {
4465
+ id: string;
4466
+ environmentId: string | null;
4467
+ subjectId: string;
4468
+ usagePricingBinding: import("../generated/schemas.js").components["schemas"]["AgreementUsagePricingBinding"];
4469
+ newMeterPolicy: "adopt_at_current_rate" | "exclude_until_renewal" | "require_amendment";
4470
+ newMeasurePolicy: "adopt_at_current_rate" | "exclude_until_renewal" | "require_amendment";
4471
+ effectiveAt: string;
4472
+ expiresAt: string | null;
4473
+ createdAt: string;
4474
+ contractPricingVersions: import("../generated/schemas.js").components["schemas"]["ContractPricingVersion"][];
4475
+ }, {
4476
+ id: string;
4477
+ environmentId: string | null;
4478
+ subjectId: string;
4479
+ usagePricingBinding: import("../generated/schemas.js").components["schemas"]["AgreementUsagePricingBinding"];
4480
+ newMeterPolicy: "adopt_at_current_rate" | "exclude_until_renewal" | "require_amendment";
4481
+ newMeasurePolicy: "adopt_at_current_rate" | "exclude_until_renewal" | "require_amendment";
4482
+ effectiveAt: string;
4483
+ expiresAt: string | null;
4484
+ createdAt: string;
4485
+ contractPricingVersions: import("../generated/schemas.js").components["schemas"]["ContractPricingVersion"][];
4486
+ }>;
959
4487
  "agreements.previewAmend": import("./define.js").OperationEntry<{
960
4488
  businessId: string;
961
4489
  } & {
962
4490
  agreementId: string;
963
4491
  } & {
964
4492
  body: import("./define.js").RequestBody;
965
- }, import("../types.js").AgreementPreview>;
4493
+ }, {
4494
+ effect: import("../generated/schemas.js").components["schemas"]["AgreementAmendEffect"];
4495
+ confirmationToken: string;
4496
+ }, {
4497
+ effect: import("../generated/schemas.js").components["schemas"]["AgreementAmendEffect"];
4498
+ confirmationToken: string;
4499
+ }>;
966
4500
  "agreements.amend": import("./define.js").OperationEntry<{
967
4501
  businessId: string;
968
4502
  } & {
@@ -971,39 +4505,166 @@ export declare const OPERATION_TABLE: {
971
4505
  body: import("./define.js").RequestBody & {
972
4506
  confirmationToken: string;
973
4507
  };
974
- }, import("../types.js").EconomicAgreement>;
4508
+ }, {
4509
+ id: string;
4510
+ environmentId: string | null;
4511
+ subjectId: string;
4512
+ usagePricingBinding: import("../generated/schemas.js").components["schemas"]["AgreementUsagePricingBinding"];
4513
+ newMeterPolicy: "adopt_at_current_rate" | "exclude_until_renewal" | "require_amendment";
4514
+ newMeasurePolicy: "adopt_at_current_rate" | "exclude_until_renewal" | "require_amendment";
4515
+ effectiveAt: string;
4516
+ expiresAt: string | null;
4517
+ createdAt: string;
4518
+ contractPricingVersions: import("../generated/schemas.js").components["schemas"]["ContractPricingVersion"][];
4519
+ }, {
4520
+ id: string;
4521
+ environmentId: string | null;
4522
+ subjectId: string;
4523
+ usagePricingBinding: import("../generated/schemas.js").components["schemas"]["AgreementUsagePricingBinding"];
4524
+ newMeterPolicy: "adopt_at_current_rate" | "exclude_until_renewal" | "require_amendment";
4525
+ newMeasurePolicy: "adopt_at_current_rate" | "exclude_until_renewal" | "require_amendment";
4526
+ effectiveAt: string;
4527
+ expiresAt: string | null;
4528
+ createdAt: string;
4529
+ contractPricingVersions: import("../generated/schemas.js").components["schemas"]["ContractPricingVersion"][];
4530
+ }>;
975
4531
  "agents.list": import("./define.js").OperationEntry<{
976
4532
  businessId: string;
977
4533
  }, {
978
- agents: import("../types.js").AgentSummary[];
4534
+ agents: import("../generated/schemas.js").components["schemas"]["Agent"][];
4535
+ availableRoles: string[];
4536
+ }, {
4537
+ agents: import("../generated/schemas.js").components["schemas"]["Agent"][];
979
4538
  availableRoles: string[];
980
4539
  }>;
981
4540
  "agents.status": import("./define.js").OperationEntry<{
982
4541
  businessId: string;
983
4542
  } & {
984
4543
  role: string;
985
- }, import("../types.js").AgentStatus>;
4544
+ }, {
4545
+ id: string;
4546
+ role: string;
4547
+ enabled: boolean;
4548
+ config: import("../generated/schemas.js").components["schemas"]["AgentConfig"];
4549
+ lastRunAt: string | null;
4550
+ createdAt: string;
4551
+ updatedAt: string;
4552
+ recentRuns: import("../generated/schemas.js").components["schemas"]["AgentRun"][];
4553
+ usage: {
4554
+ tokensIn: number;
4555
+ tokensOut: number;
4556
+ actionsCount: number;
4557
+ };
4558
+ catalog: import("../generated/schemas.js").components["schemas"]["AgentCatalogEntry"][];
4559
+ }, {
4560
+ id: string;
4561
+ role: string;
4562
+ enabled: boolean;
4563
+ config: import("../generated/schemas.js").components["schemas"]["AgentConfig"];
4564
+ lastRunAt: string | null;
4565
+ createdAt: string;
4566
+ updatedAt: string;
4567
+ recentRuns: import("../generated/schemas.js").components["schemas"]["AgentRun"][];
4568
+ usage: {
4569
+ tokensIn: number;
4570
+ tokensOut: number;
4571
+ actionsCount: number;
4572
+ };
4573
+ catalog: import("../generated/schemas.js").components["schemas"]["AgentCatalogEntry"][];
4574
+ }>;
986
4575
  "agents.runs.show": import("./define.js").OperationEntry<{
987
4576
  businessId: string;
988
4577
  } & {
989
4578
  role: string;
990
4579
  } & {
991
4580
  runId: string;
992
- }, Record<string, unknown>>;
4581
+ }, {
4582
+ run: {
4583
+ id: string;
4584
+ status: "queued" | "dispatched" | "succeeded" | "failed" | "stale";
4585
+ trigger: "tick" | "manual";
4586
+ dispatchedAt: string | null;
4587
+ finishedAt: string | null;
4588
+ errorCode: string | null;
4589
+ errorMessage: string | null;
4590
+ createdAt: string;
4591
+ degraded: boolean;
4592
+ result: {
4593
+ [key: string]: unknown;
4594
+ } | null;
4595
+ trace: {
4596
+ [key: string]: unknown;
4597
+ } | null;
4598
+ };
4599
+ launches: import("../generated/schemas.js").components["schemas"]["AgentLaunch"][];
4600
+ actions: import("../generated/schemas.js").components["schemas"]["AgentAction"][];
4601
+ }, {
4602
+ run: {
4603
+ id: string;
4604
+ status: "queued" | "dispatched" | "succeeded" | "failed" | "stale";
4605
+ trigger: "tick" | "manual";
4606
+ dispatchedAt: string | null;
4607
+ finishedAt: string | null;
4608
+ errorCode: string | null;
4609
+ errorMessage: string | null;
4610
+ createdAt: string;
4611
+ degraded: boolean;
4612
+ result: {
4613
+ [key: string]: unknown;
4614
+ } | null;
4615
+ trace: {
4616
+ [key: string]: unknown;
4617
+ } | null;
4618
+ };
4619
+ launches: import("../generated/schemas.js").components["schemas"]["AgentLaunch"][];
4620
+ actions: import("../generated/schemas.js").components["schemas"]["AgentAction"][];
4621
+ }>;
993
4622
  "agents.enable": import("./define.js").OperationEntry<{
994
4623
  businessId: string;
995
4624
  } & {
996
4625
  role: string;
997
4626
  } & {
998
- config?: Record<string, unknown>;
999
- }, import("../types.js").AgentSummary>;
4627
+ config?: import("../types.js").AgentConfig;
4628
+ }, {
4629
+ id: string;
4630
+ role: string;
4631
+ enabled: boolean;
4632
+ config: import("../generated/schemas.js").components["schemas"]["AgentConfig"];
4633
+ lastRunAt: string | null;
4634
+ createdAt: string;
4635
+ updatedAt: string;
4636
+ }, {
4637
+ id: string;
4638
+ role: string;
4639
+ enabled: boolean;
4640
+ config: import("../generated/schemas.js").components["schemas"]["AgentConfig"];
4641
+ lastRunAt: string | null;
4642
+ createdAt: string;
4643
+ updatedAt: string;
4644
+ }>;
1000
4645
  "agents.disable": import("./define.js").OperationEntry<{
1001
4646
  businessId: string;
1002
4647
  } & {
1003
4648
  role: string;
1004
4649
  } & {
1005
- config?: Record<string, unknown>;
1006
- }, import("../types.js").AgentSummary>;
4650
+ config?: import("../types.js").AgentConfig;
4651
+ }, {
4652
+ id: string;
4653
+ role: string;
4654
+ enabled: boolean;
4655
+ config: import("../generated/schemas.js").components["schemas"]["AgentConfig"];
4656
+ lastRunAt: string | null;
4657
+ createdAt: string;
4658
+ updatedAt: string;
4659
+ }, {
4660
+ id: string;
4661
+ role: string;
4662
+ enabled: boolean;
4663
+ config: import("../generated/schemas.js").components["schemas"]["AgentConfig"];
4664
+ lastRunAt: string | null;
4665
+ createdAt: string;
4666
+ updatedAt: string;
4667
+ }>;
1007
4668
  "bulletin.list": import("./define.js").OperationEntry<{
1008
4669
  businessId: string;
1009
4670
  } & {
@@ -1012,24 +4673,111 @@ export declare const OPERATION_TABLE: {
1012
4673
  cursor?: string;
1013
4674
  limit?: number | string;
1014
4675
  }, {
1015
- items: import("../types.js").BulletinPost[];
4676
+ items: import("../generated/schemas.js").components["schemas"]["BulletinPost"][];
4677
+ nextCursor: string | null;
4678
+ }, {
4679
+ items: import("../generated/schemas.js").components["schemas"]["BulletinPost"][];
1016
4680
  nextCursor: string | null;
1017
4681
  }>;
1018
4682
  "bulletin.read": import("./define.js").OperationEntry<{
1019
4683
  businessId: string;
1020
4684
  } & {
1021
4685
  postId: string;
1022
- }, import("../types.js").BulletinPost>;
4686
+ }, {
4687
+ id: string;
4688
+ kind: string;
4689
+ role: string;
4690
+ title: string;
4691
+ body: string;
4692
+ dataJson: {
4693
+ [key: string]: unknown;
4694
+ };
4695
+ severity: string;
4696
+ status: string;
4697
+ changeSetId: string | null;
4698
+ createdAt: string;
4699
+ updatedAt: string;
4700
+ }, {
4701
+ id: string;
4702
+ kind: string;
4703
+ role: string;
4704
+ title: string;
4705
+ body: string;
4706
+ dataJson: {
4707
+ [key: string]: unknown;
4708
+ };
4709
+ severity: string;
4710
+ status: string;
4711
+ changeSetId: string | null;
4712
+ createdAt: string;
4713
+ updatedAt: string;
4714
+ }>;
1023
4715
  "bulletin.ack": import("./define.js").OperationEntry<{
1024
4716
  businessId: string;
1025
4717
  } & {
1026
4718
  postId: string;
1027
- }, import("../types.js").BulletinPost>;
4719
+ }, {
4720
+ id: string;
4721
+ kind: string;
4722
+ role: string;
4723
+ title: string;
4724
+ body: string;
4725
+ dataJson: {
4726
+ [key: string]: unknown;
4727
+ };
4728
+ severity: string;
4729
+ status: string;
4730
+ changeSetId: string | null;
4731
+ createdAt: string;
4732
+ updatedAt: string;
4733
+ }, {
4734
+ id: string;
4735
+ kind: string;
4736
+ role: string;
4737
+ title: string;
4738
+ body: string;
4739
+ dataJson: {
4740
+ [key: string]: unknown;
4741
+ };
4742
+ severity: string;
4743
+ status: string;
4744
+ changeSetId: string | null;
4745
+ createdAt: string;
4746
+ updatedAt: string;
4747
+ }>;
1028
4748
  "bulletin.resolve": import("./define.js").OperationEntry<{
1029
4749
  businessId: string;
1030
4750
  } & {
1031
4751
  postId: string;
1032
- }, import("../types.js").BulletinPost>;
4752
+ }, {
4753
+ id: string;
4754
+ kind: string;
4755
+ role: string;
4756
+ title: string;
4757
+ body: string;
4758
+ dataJson: {
4759
+ [key: string]: unknown;
4760
+ };
4761
+ severity: string;
4762
+ status: string;
4763
+ changeSetId: string | null;
4764
+ createdAt: string;
4765
+ updatedAt: string;
4766
+ }, {
4767
+ id: string;
4768
+ kind: string;
4769
+ role: string;
4770
+ title: string;
4771
+ body: string;
4772
+ dataJson: {
4773
+ [key: string]: unknown;
4774
+ };
4775
+ severity: string;
4776
+ status: string;
4777
+ changeSetId: string | null;
4778
+ createdAt: string;
4779
+ updatedAt: string;
4780
+ }>;
1033
4781
  };
1034
4782
  export type OperationTable = typeof OPERATION_TABLE;
1035
4783
  /** A dotted method path, e.g. `"runtimeTokens.revoke"`. */