@farthershore/client 0.1.0 → 0.2.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 +162 -0
  2. package/README.md +9 -8
  3. package/dist/index.js +66 -54
  4. package/dist/types/api.generated.d.ts +13 -7
  5. package/dist/types/generated/schemas.d.ts +3670 -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 +730 -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 +3930 -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 +382 -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,579 @@ 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
+ }>;
692
3395
  "businesses.brand.update": import("./define.js").OperationEntry<{
693
3396
  businessId: string;
694
3397
  } & {
695
3398
  env?: string;
696
3399
  } & {
697
3400
  body: import("./define.js").RequestBody;
698
- }, import("../types.js").BusinessSummary>;
3401
+ }, {
3402
+ id: string;
3403
+ organizationId: string | null;
3404
+ name: string;
3405
+ displayName: string | null;
3406
+ description: string | null;
3407
+ status: "DRAFT" | "ACTIVE";
3408
+ visibility: "PUBLIC" | "PRIVATE";
3409
+ runtimeHostname: string | null;
3410
+ portalHostname: string | null;
3411
+ iconUrl: string | null;
3412
+ logoUrl: string | null;
3413
+ keyPrefix: string | null;
3414
+ allowedOrigins: string[];
3415
+ docsEnabled: boolean;
3416
+ listedOnOrganizationPage: boolean;
3417
+ rbacEnabled: boolean;
3418
+ meters: import("../generated/schemas.js").components["schemas"]["BusinessMeter"][];
3419
+ plans: import("../generated/schemas.js").components["schemas"]["BusinessPlan"][];
3420
+ unreadablePlans?: import("../generated/schemas.js").components["schemas"]["BusinessUnreadablePlan"][];
3421
+ rateLimitConfig: import("../generated/schemas.js").components["schemas"]["BusinessRateLimit"] | null;
3422
+ publishedRevisionId: string | null;
3423
+ latestRevisionId: string | null;
3424
+ latestRevisionNumber: number | null;
3425
+ latestReleaseVersion: string | null;
3426
+ gitRepoFullName: string | null;
3427
+ envBranchPrefix: string | null;
3428
+ previewEnvTrigger: "BRANCH_PREFIX" | "PULL_REQUEST" | "DISABLED";
3429
+ createdAt: string;
3430
+ updatedAt: string;
3431
+ }, {
3432
+ id: string;
3433
+ organizationId: string | null;
3434
+ name: string;
3435
+ displayName: string | null;
3436
+ description: string | null;
3437
+ status: "DRAFT" | "ACTIVE";
3438
+ visibility: "PUBLIC" | "PRIVATE";
3439
+ runtimeHostname: string | null;
3440
+ portalHostname: string | null;
3441
+ iconUrl: string | null;
3442
+ logoUrl: string | null;
3443
+ keyPrefix: string | null;
3444
+ allowedOrigins: string[];
3445
+ docsEnabled: boolean;
3446
+ listedOnOrganizationPage: boolean;
3447
+ rbacEnabled: boolean;
3448
+ meters: import("../generated/schemas.js").components["schemas"]["BusinessMeter"][];
3449
+ plans: import("../generated/schemas.js").components["schemas"]["BusinessPlan"][];
3450
+ unreadablePlans?: import("../generated/schemas.js").components["schemas"]["BusinessUnreadablePlan"][];
3451
+ rateLimitConfig: import("../generated/schemas.js").components["schemas"]["BusinessRateLimit"] | null;
3452
+ publishedRevisionId: string | null;
3453
+ latestRevisionId: string | null;
3454
+ latestRevisionNumber: number | null;
3455
+ latestReleaseVersion: string | null;
3456
+ gitRepoFullName: string | null;
3457
+ envBranchPrefix: string | null;
3458
+ previewEnvTrigger: "BRANCH_PREFIX" | "PULL_REQUEST" | "DISABLED";
3459
+ createdAt: string;
3460
+ updatedAt: string;
3461
+ }>;
699
3462
  "businesses.brand.uploadAsset": import("./define.js").OperationEntry<{
700
3463
  businessId: string;
701
3464
  } & {
702
3465
  kind: "icon" | "logo";
703
3466
  body: Uint8Array;
704
3467
  contentType: string;
705
- }, {
706
- iconUrl?: string;
707
- logoUrl?: string;
708
- }>;
3468
+ }, import("../types.js").BrandAssetUploadResult, import("../types.js").BrandAssetUploadResult>;
709
3469
  "businesses.brand.deleteAsset": import("./define.js").OperationEntry<{
710
3470
  businessId: string;
711
3471
  } & {
712
3472
  kind: "icon" | "logo";
713
- }, void>;
3473
+ }, void, void>;
714
3474
  "businesses.previewEnv.set": import("./define.js").OperationEntry<{
715
3475
  businessId: string;
716
3476
  } & {
717
3477
  env?: string;
718
3478
  } & {
719
3479
  body: import("./define.js").RequestBody;
720
- }, import("../types.js").BusinessSummary>;
3480
+ }, {
3481
+ id: string;
3482
+ organizationId: string | null;
3483
+ name: string;
3484
+ displayName: string | null;
3485
+ description: string | null;
3486
+ status: "DRAFT" | "ACTIVE";
3487
+ visibility: "PUBLIC" | "PRIVATE";
3488
+ runtimeHostname: string | null;
3489
+ portalHostname: string | null;
3490
+ iconUrl: string | null;
3491
+ logoUrl: string | null;
3492
+ keyPrefix: string | null;
3493
+ allowedOrigins: string[];
3494
+ docsEnabled: boolean;
3495
+ listedOnOrganizationPage: boolean;
3496
+ rbacEnabled: boolean;
3497
+ meters: import("../generated/schemas.js").components["schemas"]["BusinessMeter"][];
3498
+ plans: import("../generated/schemas.js").components["schemas"]["BusinessPlan"][];
3499
+ unreadablePlans?: import("../generated/schemas.js").components["schemas"]["BusinessUnreadablePlan"][];
3500
+ rateLimitConfig: import("../generated/schemas.js").components["schemas"]["BusinessRateLimit"] | null;
3501
+ publishedRevisionId: string | null;
3502
+ latestRevisionId: string | null;
3503
+ latestRevisionNumber: number | null;
3504
+ latestReleaseVersion: string | null;
3505
+ gitRepoFullName: string | null;
3506
+ envBranchPrefix: string | null;
3507
+ previewEnvTrigger: "BRANCH_PREFIX" | "PULL_REQUEST" | "DISABLED";
3508
+ createdAt: string;
3509
+ updatedAt: string;
3510
+ }, {
3511
+ id: string;
3512
+ organizationId: string | null;
3513
+ name: string;
3514
+ displayName: string | null;
3515
+ description: string | null;
3516
+ status: "DRAFT" | "ACTIVE";
3517
+ visibility: "PUBLIC" | "PRIVATE";
3518
+ runtimeHostname: string | null;
3519
+ portalHostname: string | null;
3520
+ iconUrl: string | null;
3521
+ logoUrl: string | null;
3522
+ keyPrefix: string | null;
3523
+ allowedOrigins: string[];
3524
+ docsEnabled: boolean;
3525
+ listedOnOrganizationPage: boolean;
3526
+ rbacEnabled: boolean;
3527
+ meters: import("../generated/schemas.js").components["schemas"]["BusinessMeter"][];
3528
+ plans: import("../generated/schemas.js").components["schemas"]["BusinessPlan"][];
3529
+ unreadablePlans?: import("../generated/schemas.js").components["schemas"]["BusinessUnreadablePlan"][];
3530
+ rateLimitConfig: import("../generated/schemas.js").components["schemas"]["BusinessRateLimit"] | null;
3531
+ publishedRevisionId: string | null;
3532
+ latestRevisionId: string | null;
3533
+ latestRevisionNumber: number | null;
3534
+ latestReleaseVersion: string | null;
3535
+ gitRepoFullName: string | null;
3536
+ envBranchPrefix: string | null;
3537
+ previewEnvTrigger: "BRANCH_PREFIX" | "PULL_REQUEST" | "DISABLED";
3538
+ createdAt: string;
3539
+ updatedAt: string;
3540
+ }>;
721
3541
  "businesses.docs.enable": import("./define.js").OperationEntry<{
722
3542
  businessId: string;
723
3543
  } & {
724
3544
  env?: string;
725
- }, import("../types.js").BusinessSummary>;
3545
+ }, {
3546
+ id: string;
3547
+ organizationId: string | null;
3548
+ name: string;
3549
+ displayName: string | null;
3550
+ description: string | null;
3551
+ status: "DRAFT" | "ACTIVE";
3552
+ visibility: "PUBLIC" | "PRIVATE";
3553
+ runtimeHostname: string | null;
3554
+ portalHostname: string | null;
3555
+ iconUrl: string | null;
3556
+ logoUrl: string | null;
3557
+ keyPrefix: string | null;
3558
+ allowedOrigins: string[];
3559
+ docsEnabled: boolean;
3560
+ listedOnOrganizationPage: boolean;
3561
+ rbacEnabled: boolean;
3562
+ meters: import("../generated/schemas.js").components["schemas"]["BusinessMeter"][];
3563
+ plans: import("../generated/schemas.js").components["schemas"]["BusinessPlan"][];
3564
+ unreadablePlans?: import("../generated/schemas.js").components["schemas"]["BusinessUnreadablePlan"][];
3565
+ rateLimitConfig: import("../generated/schemas.js").components["schemas"]["BusinessRateLimit"] | null;
3566
+ publishedRevisionId: string | null;
3567
+ latestRevisionId: string | null;
3568
+ latestRevisionNumber: number | null;
3569
+ latestReleaseVersion: string | null;
3570
+ gitRepoFullName: string | null;
3571
+ envBranchPrefix: string | null;
3572
+ previewEnvTrigger: "BRANCH_PREFIX" | "PULL_REQUEST" | "DISABLED";
3573
+ createdAt: string;
3574
+ updatedAt: string;
3575
+ }, {
3576
+ id: string;
3577
+ organizationId: string | null;
3578
+ name: string;
3579
+ displayName: string | null;
3580
+ description: string | null;
3581
+ status: "DRAFT" | "ACTIVE";
3582
+ visibility: "PUBLIC" | "PRIVATE";
3583
+ runtimeHostname: string | null;
3584
+ portalHostname: string | null;
3585
+ iconUrl: string | null;
3586
+ logoUrl: string | null;
3587
+ keyPrefix: string | null;
3588
+ allowedOrigins: string[];
3589
+ docsEnabled: boolean;
3590
+ listedOnOrganizationPage: boolean;
3591
+ rbacEnabled: boolean;
3592
+ meters: import("../generated/schemas.js").components["schemas"]["BusinessMeter"][];
3593
+ plans: import("../generated/schemas.js").components["schemas"]["BusinessPlan"][];
3594
+ unreadablePlans?: import("../generated/schemas.js").components["schemas"]["BusinessUnreadablePlan"][];
3595
+ rateLimitConfig: import("../generated/schemas.js").components["schemas"]["BusinessRateLimit"] | null;
3596
+ publishedRevisionId: string | null;
3597
+ latestRevisionId: string | null;
3598
+ latestRevisionNumber: number | null;
3599
+ latestReleaseVersion: string | null;
3600
+ gitRepoFullName: string | null;
3601
+ envBranchPrefix: string | null;
3602
+ previewEnvTrigger: "BRANCH_PREFIX" | "PULL_REQUEST" | "DISABLED";
3603
+ createdAt: string;
3604
+ updatedAt: string;
3605
+ }>;
726
3606
  "businesses.docs.disable": import("./define.js").OperationEntry<{
727
3607
  businessId: string;
728
3608
  } & {
729
3609
  env?: string;
730
- }, import("../types.js").BusinessSummary>;
3610
+ }, {
3611
+ id: string;
3612
+ organizationId: string | null;
3613
+ name: string;
3614
+ displayName: string | null;
3615
+ description: string | null;
3616
+ status: "DRAFT" | "ACTIVE";
3617
+ visibility: "PUBLIC" | "PRIVATE";
3618
+ runtimeHostname: string | null;
3619
+ portalHostname: string | null;
3620
+ iconUrl: string | null;
3621
+ logoUrl: string | null;
3622
+ keyPrefix: string | null;
3623
+ allowedOrigins: string[];
3624
+ docsEnabled: boolean;
3625
+ listedOnOrganizationPage: boolean;
3626
+ rbacEnabled: boolean;
3627
+ meters: import("../generated/schemas.js").components["schemas"]["BusinessMeter"][];
3628
+ plans: import("../generated/schemas.js").components["schemas"]["BusinessPlan"][];
3629
+ unreadablePlans?: import("../generated/schemas.js").components["schemas"]["BusinessUnreadablePlan"][];
3630
+ rateLimitConfig: import("../generated/schemas.js").components["schemas"]["BusinessRateLimit"] | null;
3631
+ publishedRevisionId: string | null;
3632
+ latestRevisionId: string | null;
3633
+ latestRevisionNumber: number | null;
3634
+ latestReleaseVersion: string | null;
3635
+ gitRepoFullName: string | null;
3636
+ envBranchPrefix: string | null;
3637
+ previewEnvTrigger: "BRANCH_PREFIX" | "PULL_REQUEST" | "DISABLED";
3638
+ createdAt: string;
3639
+ updatedAt: string;
3640
+ }, {
3641
+ id: string;
3642
+ organizationId: string | null;
3643
+ name: string;
3644
+ displayName: string | null;
3645
+ description: string | null;
3646
+ status: "DRAFT" | "ACTIVE";
3647
+ visibility: "PUBLIC" | "PRIVATE";
3648
+ runtimeHostname: string | null;
3649
+ portalHostname: string | null;
3650
+ iconUrl: string | null;
3651
+ logoUrl: string | null;
3652
+ keyPrefix: string | null;
3653
+ allowedOrigins: string[];
3654
+ docsEnabled: boolean;
3655
+ listedOnOrganizationPage: boolean;
3656
+ rbacEnabled: boolean;
3657
+ meters: import("../generated/schemas.js").components["schemas"]["BusinessMeter"][];
3658
+ plans: import("../generated/schemas.js").components["schemas"]["BusinessPlan"][];
3659
+ unreadablePlans?: import("../generated/schemas.js").components["schemas"]["BusinessUnreadablePlan"][];
3660
+ rateLimitConfig: import("../generated/schemas.js").components["schemas"]["BusinessRateLimit"] | null;
3661
+ publishedRevisionId: string | null;
3662
+ latestRevisionId: string | null;
3663
+ latestRevisionNumber: number | null;
3664
+ latestReleaseVersion: string | null;
3665
+ gitRepoFullName: string | null;
3666
+ envBranchPrefix: string | null;
3667
+ previewEnvTrigger: "BRANCH_PREFIX" | "PULL_REQUEST" | "DISABLED";
3668
+ createdAt: string;
3669
+ updatedAt: string;
3670
+ }>;
731
3671
  "businesses.cors.update": import("./define.js").OperationEntry<{
732
3672
  businessId: string;
733
3673
  } & {
734
3674
  env?: string;
735
3675
  } & {
736
3676
  body: import("./define.js").RequestBody;
737
- }, import("../types.js").BusinessSummary>;
3677
+ }, {
3678
+ id: string;
3679
+ organizationId: string | null;
3680
+ name: string;
3681
+ displayName: string | null;
3682
+ description: string | null;
3683
+ status: "DRAFT" | "ACTIVE";
3684
+ visibility: "PUBLIC" | "PRIVATE";
3685
+ runtimeHostname: string | null;
3686
+ portalHostname: string | null;
3687
+ iconUrl: string | null;
3688
+ logoUrl: string | null;
3689
+ keyPrefix: string | null;
3690
+ allowedOrigins: string[];
3691
+ docsEnabled: boolean;
3692
+ listedOnOrganizationPage: boolean;
3693
+ rbacEnabled: boolean;
3694
+ meters: import("../generated/schemas.js").components["schemas"]["BusinessMeter"][];
3695
+ plans: import("../generated/schemas.js").components["schemas"]["BusinessPlan"][];
3696
+ unreadablePlans?: import("../generated/schemas.js").components["schemas"]["BusinessUnreadablePlan"][];
3697
+ rateLimitConfig: import("../generated/schemas.js").components["schemas"]["BusinessRateLimit"] | null;
3698
+ publishedRevisionId: string | null;
3699
+ latestRevisionId: string | null;
3700
+ latestRevisionNumber: number | null;
3701
+ latestReleaseVersion: string | null;
3702
+ gitRepoFullName: string | null;
3703
+ envBranchPrefix: string | null;
3704
+ previewEnvTrigger: "BRANCH_PREFIX" | "PULL_REQUEST" | "DISABLED";
3705
+ createdAt: string;
3706
+ updatedAt: string;
3707
+ }, {
3708
+ id: string;
3709
+ organizationId: string | null;
3710
+ name: string;
3711
+ displayName: string | null;
3712
+ description: string | null;
3713
+ status: "DRAFT" | "ACTIVE";
3714
+ visibility: "PUBLIC" | "PRIVATE";
3715
+ runtimeHostname: string | null;
3716
+ portalHostname: string | null;
3717
+ iconUrl: string | null;
3718
+ logoUrl: string | null;
3719
+ keyPrefix: string | null;
3720
+ allowedOrigins: string[];
3721
+ docsEnabled: boolean;
3722
+ listedOnOrganizationPage: boolean;
3723
+ rbacEnabled: boolean;
3724
+ meters: import("../generated/schemas.js").components["schemas"]["BusinessMeter"][];
3725
+ plans: import("../generated/schemas.js").components["schemas"]["BusinessPlan"][];
3726
+ unreadablePlans?: import("../generated/schemas.js").components["schemas"]["BusinessUnreadablePlan"][];
3727
+ rateLimitConfig: import("../generated/schemas.js").components["schemas"]["BusinessRateLimit"] | null;
3728
+ publishedRevisionId: string | null;
3729
+ latestRevisionId: string | null;
3730
+ latestRevisionNumber: number | null;
3731
+ latestReleaseVersion: string | null;
3732
+ gitRepoFullName: string | null;
3733
+ envBranchPrefix: string | null;
3734
+ previewEnvTrigger: "BRANCH_PREFIX" | "PULL_REQUEST" | "DISABLED";
3735
+ createdAt: string;
3736
+ updatedAt: string;
3737
+ }>;
738
3738
  "businesses.rbac.read": import("./define.js").OperationEntry<{
739
3739
  businessId: string;
740
- }, import("../types.js").BusinessSummary>;
3740
+ }, {
3741
+ id: string;
3742
+ organizationId: string | null;
3743
+ name: string;
3744
+ displayName: string | null;
3745
+ description: string | null;
3746
+ status: "DRAFT" | "ACTIVE";
3747
+ visibility: "PUBLIC" | "PRIVATE";
3748
+ runtimeHostname: string | null;
3749
+ portalHostname: string | null;
3750
+ iconUrl: string | null;
3751
+ logoUrl: string | null;
3752
+ keyPrefix: string | null;
3753
+ allowedOrigins: string[];
3754
+ docsEnabled: boolean;
3755
+ listedOnOrganizationPage: boolean;
3756
+ rbacEnabled: boolean;
3757
+ meters: import("../generated/schemas.js").components["schemas"]["BusinessMeter"][];
3758
+ plans: import("../generated/schemas.js").components["schemas"]["BusinessPlan"][];
3759
+ unreadablePlans?: import("../generated/schemas.js").components["schemas"]["BusinessUnreadablePlan"][];
3760
+ rateLimitConfig: import("../generated/schemas.js").components["schemas"]["BusinessRateLimit"] | null;
3761
+ publishedRevisionId: string | null;
3762
+ latestRevisionId: string | null;
3763
+ latestRevisionNumber: number | null;
3764
+ latestReleaseVersion: string | null;
3765
+ gitRepoFullName: string | null;
3766
+ envBranchPrefix: string | null;
3767
+ previewEnvTrigger: "BRANCH_PREFIX" | "PULL_REQUEST" | "DISABLED";
3768
+ createdAt: string;
3769
+ updatedAt: string;
3770
+ environments: import("../generated/schemas.js").components["schemas"]["BusinessEnvironment"][];
3771
+ }, {
3772
+ id: string;
3773
+ organizationId: string | null;
3774
+ name: string;
3775
+ displayName: string | null;
3776
+ description: string | null;
3777
+ status: "DRAFT" | "ACTIVE";
3778
+ visibility: "PUBLIC" | "PRIVATE";
3779
+ runtimeHostname: string | null;
3780
+ portalHostname: string | null;
3781
+ iconUrl: string | null;
3782
+ logoUrl: string | null;
3783
+ keyPrefix: string | null;
3784
+ allowedOrigins: string[];
3785
+ docsEnabled: boolean;
3786
+ listedOnOrganizationPage: boolean;
3787
+ rbacEnabled: boolean;
3788
+ meters: import("../generated/schemas.js").components["schemas"]["BusinessMeter"][];
3789
+ plans: import("../generated/schemas.js").components["schemas"]["BusinessPlan"][];
3790
+ unreadablePlans?: import("../generated/schemas.js").components["schemas"]["BusinessUnreadablePlan"][];
3791
+ rateLimitConfig: import("../generated/schemas.js").components["schemas"]["BusinessRateLimit"] | null;
3792
+ publishedRevisionId: string | null;
3793
+ latestRevisionId: string | null;
3794
+ latestRevisionNumber: number | null;
3795
+ latestReleaseVersion: string | null;
3796
+ gitRepoFullName: string | null;
3797
+ envBranchPrefix: string | null;
3798
+ previewEnvTrigger: "BRANCH_PREFIX" | "PULL_REQUEST" | "DISABLED";
3799
+ createdAt: string;
3800
+ updatedAt: string;
3801
+ environments: import("../generated/schemas.js").components["schemas"]["BusinessEnvironment"][];
3802
+ }>;
741
3803
  "businesses.rbac.enable": import("./define.js").OperationEntry<{
742
3804
  businessId: string;
743
3805
  }, {
744
3806
  rbacEnabled: boolean;
3807
+ }, {
3808
+ rbacEnabled: boolean;
745
3809
  }>;
746
3810
  "businesses.rbac.disable": import("./define.js").OperationEntry<{
747
3811
  businessId: string;
748
3812
  }, {
749
3813
  rbacEnabled: boolean;
3814
+ }, {
3815
+ rbacEnabled: boolean;
750
3816
  }>;
751
3817
  "businesses.rbac.subjects.read": import("./define.js").OperationEntry<{
752
3818
  businessId: string;
753
3819
  }, {
754
- subjects: unknown[];
3820
+ subjects: import("../generated/schemas.js").components["schemas"]["CustomPermissionSubject"][];
3821
+ }, {
3822
+ subjects: import("../generated/schemas.js").components["schemas"]["CustomPermissionSubject"][];
755
3823
  }>;
756
3824
  "billing.stripe.read": import("./define.js").OperationEntry<{
757
3825
  businessId: string;
758
- }, unknown>;
3826
+ }, {
3827
+ connected: boolean;
3828
+ source: "business" | "organization";
3829
+ isOverride: boolean;
3830
+ chargesEnabled: boolean;
3831
+ cardPaymentsEnabled: boolean;
3832
+ }, {
3833
+ connected: boolean;
3834
+ source: "business" | "organization";
3835
+ isOverride: boolean;
3836
+ chargesEnabled: boolean;
3837
+ cardPaymentsEnabled: boolean;
3838
+ }>;
759
3839
  "billing.stripe.delete": import("./define.js").OperationEntry<{
760
3840
  businessId: string;
761
3841
  } & {
762
3842
  deleteAccount?: boolean;
763
- }, unknown>;
3843
+ }, {
3844
+ disconnected: true;
3845
+ }, {
3846
+ disconnected: true;
3847
+ }>;
764
3848
  "billing.taxSettings.read": import("./define.js").OperationEntry<{
765
3849
  businessId: string;
766
- }, unknown>;
3850
+ }, {
3851
+ status: "active" | "pending";
3852
+ defaults: {
3853
+ taxBehavior: ("exclusive" | "inclusive" | "inferred_by_currency") | null;
3854
+ taxCode: string | null;
3855
+ };
3856
+ headOffice: {
3857
+ address: import("../generated/schemas.js").components["schemas"]["TaxAddress"];
3858
+ } | null;
3859
+ missingFields: string[];
3860
+ }, {
3861
+ status: "active" | "pending";
3862
+ defaults: {
3863
+ taxBehavior: ("exclusive" | "inclusive" | "inferred_by_currency") | null;
3864
+ taxCode: string | null;
3865
+ };
3866
+ headOffice: {
3867
+ address: import("../generated/schemas.js").components["schemas"]["TaxAddress"];
3868
+ } | null;
3869
+ missingFields: string[];
3870
+ }>;
767
3871
  "billing.taxSettings.update": import("./define.js").OperationEntry<{
768
3872
  businessId: string;
769
3873
  } & {
770
3874
  body: import("./define.js").RequestBody;
771
- }, unknown>;
3875
+ }, {
3876
+ status: "active" | "pending";
3877
+ defaults: {
3878
+ taxBehavior: ("exclusive" | "inclusive" | "inferred_by_currency") | null;
3879
+ taxCode: string | null;
3880
+ };
3881
+ headOffice: {
3882
+ address: import("../generated/schemas.js").components["schemas"]["TaxAddress"];
3883
+ } | null;
3884
+ missingFields: string[];
3885
+ }, {
3886
+ status: "active" | "pending";
3887
+ defaults: {
3888
+ taxBehavior: ("exclusive" | "inclusive" | "inferred_by_currency") | null;
3889
+ taxCode: string | null;
3890
+ };
3891
+ headOffice: {
3892
+ address: import("../generated/schemas.js").components["schemas"]["TaxAddress"];
3893
+ } | null;
3894
+ missingFields: string[];
3895
+ }>;
772
3896
  "backends.read": import("./define.js").OperationEntry<{
773
3897
  businessId: string;
774
3898
  } & {
775
3899
  environmentId?: string;
776
3900
  limit?: number;
777
3901
  offset?: number;
778
- }, unknown>;
3902
+ }, {
3903
+ data: import("../generated/schemas.js").components["schemas"]["Backend"][];
3904
+ pagination: {
3905
+ total: number;
3906
+ limit: number;
3907
+ offset: number;
3908
+ hasMore: boolean;
3909
+ };
3910
+ scope: "all" | "production" | "environment";
3911
+ environmentId: string | null;
3912
+ }, {
3913
+ data: import("../generated/schemas.js").components["schemas"]["Backend"][];
3914
+ pagination: {
3915
+ total: number;
3916
+ limit: number;
3917
+ offset: number;
3918
+ hasMore: boolean;
3919
+ };
3920
+ scope: "all" | "production" | "environment";
3921
+ environmentId: string | null;
3922
+ }>;
779
3923
  "backends.create": import("./define.js").OperationEntry<{
780
3924
  businessId: string;
781
3925
  } & {
@@ -787,26 +3931,111 @@ export declare const OPERATION_TABLE: {
787
3931
  runtime?: string | null;
788
3932
  originUrl?: string | null;
789
3933
  isDefault?: boolean;
790
- }, unknown>;
3934
+ }, {
3935
+ id: string;
3936
+ businessId: string;
3937
+ environmentId: string | null;
3938
+ name: string;
3939
+ slug: string;
3940
+ transportMode: "direct" | "tunnel";
3941
+ runner: ("embedded" | "sidecar") | null;
3942
+ runtime: string | null;
3943
+ verificationRequired: boolean;
3944
+ originUrl: string | null;
3945
+ isDefault: boolean;
3946
+ status: "registered" | "building" | "deployed" | "tunnel_connected" | "healthy" | "unhealthy" | "verification_failed" | "provision_failed" | "disabled";
3947
+ lastSeenAt: string | null;
3948
+ createdAt: string;
3949
+ updated?: true;
3950
+ }, {
3951
+ action: "create" | "update";
3952
+ backend: {
3953
+ businessId: string;
3954
+ environmentId: string | null;
3955
+ name: string;
3956
+ slug: string;
3957
+ transportMode: "direct" | "tunnel";
3958
+ runner: ("embedded" | "sidecar") | null;
3959
+ runtime: string | null;
3960
+ originUrl: string | null;
3961
+ isDefault: boolean;
3962
+ };
3963
+ }>;
791
3964
  "backends.bind": import("./define.js").OperationEntry<{
792
3965
  businessId: string;
793
3966
  } & {
794
3967
  backend: string;
795
3968
  environmentId?: string | null;
796
3969
  originUrl: string;
797
- }, unknown>;
3970
+ }, {
3971
+ id: string;
3972
+ businessId: string;
3973
+ environmentId: string | null;
3974
+ name: string;
3975
+ slug: string;
3976
+ transportMode: "direct" | "tunnel";
3977
+ runner: ("embedded" | "sidecar") | null;
3978
+ runtime: string | null;
3979
+ verificationRequired: boolean;
3980
+ originUrl: string | null;
3981
+ isDefault: boolean;
3982
+ status: "registered" | "building" | "deployed" | "tunnel_connected" | "healthy" | "unhealthy" | "verification_failed" | "provision_failed" | "disabled";
3983
+ lastSeenAt: string | null;
3984
+ createdAt: string;
3985
+ }, {
3986
+ id: string;
3987
+ businessId: string;
3988
+ environmentId: string | null;
3989
+ name: string;
3990
+ slug: string;
3991
+ transportMode: "direct" | "tunnel";
3992
+ runner: ("embedded" | "sidecar") | null;
3993
+ runtime: string | null;
3994
+ verificationRequired: boolean;
3995
+ originUrl: string | null;
3996
+ isDefault: boolean;
3997
+ status: "registered" | "building" | "deployed" | "tunnel_connected" | "healthy" | "unhealthy" | "verification_failed" | "provision_failed" | "disabled";
3998
+ lastSeenAt: string | null;
3999
+ createdAt: string;
4000
+ }>;
798
4001
  "backends.delete": import("./define.js").OperationEntry<{
799
4002
  businessId: string;
800
4003
  } & {
801
4004
  backendId: string;
802
- }, unknown>;
4005
+ }, {
4006
+ id: string;
4007
+ deleted: true;
4008
+ }, {
4009
+ id: string;
4010
+ deleted: true;
4011
+ }>;
803
4012
  "runtimeTokens.read": import("./define.js").OperationEntry<{
804
4013
  businessId: string;
805
4014
  } & {
806
4015
  environmentId?: string;
807
4016
  limit?: number;
808
4017
  offset?: number;
809
- }, unknown>;
4018
+ }, {
4019
+ data: import("../generated/schemas.js").components["schemas"]["RuntimeToken"][];
4020
+ pagination: {
4021
+ total: number;
4022
+ limit: number;
4023
+ offset: number;
4024
+ hasMore: boolean;
4025
+ };
4026
+ scope: "all" | "production" | "environment";
4027
+ environmentId: string | null;
4028
+ }, {
4029
+ data: import("../generated/schemas.js").components["schemas"]["RuntimeToken"][];
4030
+ pagination: {
4031
+ total: number;
4032
+ limit: number;
4033
+ offset: number;
4034
+ hasMore: boolean;
4035
+ };
4036
+ scope: "all" | "production" | "environment";
4037
+ environmentId: string | null;
4038
+ }>;
810
4039
  "runtimeTokens.mint": import("./define.js").OperationEntry<{
811
4040
  businessId: string;
812
4041
  } & {
@@ -816,18 +4045,116 @@ export declare const OPERATION_TABLE: {
816
4045
  operations?: string[];
817
4046
  allowedMeters?: string[];
818
4047
  allowedRoutes?: string[];
819
- }, unknown>;
4048
+ }, {
4049
+ id: string;
4050
+ businessId: string;
4051
+ environmentId: string | null;
4052
+ backendId: string | null;
4053
+ kind: "live" | "test";
4054
+ lastFour: string;
4055
+ operations: ("gateway_verification" | "metering" | "health" | "tunnel" | "drift_report")[];
4056
+ allowedMeters: string[];
4057
+ allowedRoutes: string[];
4058
+ status: "active" | "revoked";
4059
+ rotatedFromId: string | null;
4060
+ createdAt: string;
4061
+ revokedAt: string | null;
4062
+ lastUsedAt: string | null;
4063
+ envVar: "FS_RUNTIME_TOKEN";
4064
+ token: string;
4065
+ }, {
4066
+ id: string;
4067
+ businessId: string;
4068
+ environmentId: string | null;
4069
+ backendId: string | null;
4070
+ kind: "live" | "test";
4071
+ lastFour: string;
4072
+ operations: ("gateway_verification" | "metering" | "health" | "tunnel" | "drift_report")[];
4073
+ allowedMeters: string[];
4074
+ allowedRoutes: string[];
4075
+ status: "active" | "revoked";
4076
+ rotatedFromId: string | null;
4077
+ createdAt: string;
4078
+ revokedAt: string | null;
4079
+ lastUsedAt: string | null;
4080
+ envVar: "FS_RUNTIME_TOKEN";
4081
+ token: string;
4082
+ }>;
820
4083
  "runtimeTokens.rotate": import("./define.js").OperationEntry<{
821
4084
  businessId: string;
822
4085
  } & {
823
4086
  tokenId: string;
824
- }, unknown>;
4087
+ }, {
4088
+ id: string;
4089
+ businessId: string;
4090
+ environmentId: string | null;
4091
+ backendId: string | null;
4092
+ kind: "live" | "test";
4093
+ lastFour: string;
4094
+ operations: ("gateway_verification" | "metering" | "health" | "tunnel" | "drift_report")[];
4095
+ allowedMeters: string[];
4096
+ allowedRoutes: string[];
4097
+ status: "active" | "revoked";
4098
+ rotatedFromId: string | null;
4099
+ createdAt: string;
4100
+ revokedAt: string | null;
4101
+ lastUsedAt: string | null;
4102
+ envVar: "FS_RUNTIME_TOKEN";
4103
+ token: string;
4104
+ }, {
4105
+ id: string;
4106
+ businessId: string;
4107
+ environmentId: string | null;
4108
+ backendId: string | null;
4109
+ kind: "live" | "test";
4110
+ lastFour: string;
4111
+ operations: ("gateway_verification" | "metering" | "health" | "tunnel" | "drift_report")[];
4112
+ allowedMeters: string[];
4113
+ allowedRoutes: string[];
4114
+ status: "active" | "revoked";
4115
+ rotatedFromId: string | null;
4116
+ createdAt: string;
4117
+ revokedAt: string | null;
4118
+ lastUsedAt: string | null;
4119
+ envVar: "FS_RUNTIME_TOKEN";
4120
+ token: string;
4121
+ }>;
825
4122
  "runtimeTokens.revoke": import("./define.js").OperationEntry<{
826
4123
  businessId: string;
827
4124
  } & {
828
4125
  tokenId: string;
829
- }, import("../types.js").RuntimeTokenSummary>;
830
- "auth.context.read": import("./define.js").OperationEntry<void, import("../types.js").CallerContext>;
4126
+ }, {
4127
+ id: string;
4128
+ businessId: string;
4129
+ environmentId: string | null;
4130
+ backendId: string | null;
4131
+ kind: "live" | "test";
4132
+ lastFour: string;
4133
+ operations: ("gateway_verification" | "metering" | "health" | "tunnel" | "drift_report")[];
4134
+ allowedMeters: string[];
4135
+ allowedRoutes: string[];
4136
+ status: "active" | "revoked";
4137
+ rotatedFromId: string | null;
4138
+ createdAt: string;
4139
+ revokedAt: string | null;
4140
+ lastUsedAt: string | null;
4141
+ }, {
4142
+ id: string;
4143
+ businessId: string;
4144
+ environmentId: string | null;
4145
+ backendId: string | null;
4146
+ kind: "live" | "test";
4147
+ lastFour: string;
4148
+ operations: ("gateway_verification" | "metering" | "health" | "tunnel" | "drift_report")[];
4149
+ allowedMeters: string[];
4150
+ allowedRoutes: string[];
4151
+ status: "active" | "revoked";
4152
+ rotatedFromId: string | null;
4153
+ createdAt: string;
4154
+ revokedAt: string | null;
4155
+ lastUsedAt: string | null;
4156
+ }>;
4157
+ "auth.context.read": import("./define.js").OperationEntry<void, import("../types.js").CallerContext, import("../types.js").CallerContext>;
831
4158
  "auth.context.issue": import("./define.js").OperationEntry<{
832
4159
  businessId: string;
833
4160
  externalOrgId: string;
@@ -836,9 +4163,18 @@ export declare const OPERATION_TABLE: {
836
4163
  }, {
837
4164
  token: string;
838
4165
  expiresAt: string;
4166
+ }, {
4167
+ token: string;
4168
+ expiresAt: string;
4169
+ }>;
4170
+ "auth.listOrganizations": import("./define.js").OperationEntry<void, {
4171
+ userId: string;
4172
+ organizations: import("../generated/schemas.js").components["schemas"]["CliOrganizationSummary"][];
4173
+ }, {
4174
+ userId: string;
4175
+ organizations: import("../generated/schemas.js").components["schemas"]["CliOrganizationSummary"][];
839
4176
  }>;
840
- "auth.listOrganizations": import("./define.js").OperationEntry<void, import("../transport.js").OrganizationsResponse>;
841
- "auth.selectedOrganization": import("./define.js").OperationEntry<void, string | undefined>;
4177
+ "auth.selectedOrganization": import("./define.js").OperationEntry<void, string | undefined, string | undefined>;
842
4178
  "auditLogs.read": import("./define.js").OperationEntry<{
843
4179
  organizationId: string;
844
4180
  action?: string;
@@ -849,7 +4185,13 @@ export declare const OPERATION_TABLE: {
849
4185
  limit?: number;
850
4186
  } & {
851
4187
  cursor?: string;
852
- }, unknown>;
4188
+ }, {
4189
+ items: import("../generated/schemas.js").components["schemas"]["AuditLogEntry"][];
4190
+ nextCursor: string | null;
4191
+ }, {
4192
+ items: import("../generated/schemas.js").components["schemas"]["AuditLogEntry"][];
4193
+ nextCursor: string | null;
4194
+ }>;
853
4195
  "auditLogs.business.read": import("./define.js").OperationEntry<{
854
4196
  organizationId: string;
855
4197
  action?: string;
@@ -862,7 +4204,13 @@ export declare const OPERATION_TABLE: {
862
4204
  businessId: string;
863
4205
  } & {
864
4206
  cursor?: string;
865
- }, unknown>;
4207
+ }, {
4208
+ items: import("../generated/schemas.js").components["schemas"]["AuditLogEntry"][];
4209
+ nextCursor: string | null;
4210
+ }, {
4211
+ items: import("../generated/schemas.js").components["schemas"]["AuditLogEntry"][];
4212
+ nextCursor: string | null;
4213
+ }>;
866
4214
  "auditLogs.export": import("./define.js").OperationEntry<{
867
4215
  organizationId: string;
868
4216
  action?: string;
@@ -871,7 +4219,7 @@ export declare const OPERATION_TABLE: {
871
4219
  from?: string;
872
4220
  to?: string;
873
4221
  limit?: number;
874
- }, string>;
4222
+ }, string, string>;
875
4223
  "auditLogs.business.export": import("./define.js").OperationEntry<{
876
4224
  organizationId: string;
877
4225
  action?: string;
@@ -882,38 +4230,90 @@ export declare const OPERATION_TABLE: {
882
4230
  limit?: number;
883
4231
  } & {
884
4232
  businessId: string;
885
- }, string>;
4233
+ }, string, string>;
886
4234
  "notifications.preferences.read": import("./define.js").OperationEntry<{
887
4235
  businessId: string;
888
- }, unknown>;
4236
+ }, {
4237
+ master: boolean;
4238
+ categories: {
4239
+ billing?: boolean;
4240
+ usage?: boolean;
4241
+ access?: boolean;
4242
+ product?: boolean;
4243
+ deployments?: boolean;
4244
+ team?: boolean;
4245
+ security?: boolean;
4246
+ };
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
+ }>;
889
4259
  "notifications.preferences.update": import("./define.js").OperationEntry<{
890
4260
  businessId: string;
891
4261
  master?: boolean;
892
- categories?: Record<string, boolean>;
893
- }, unknown>;
4262
+ categories?: import("../types.js").NotificationPreferences["categories"];
4263
+ }, {
4264
+ master: boolean;
4265
+ categories: {
4266
+ billing?: boolean;
4267
+ usage?: boolean;
4268
+ access?: boolean;
4269
+ product?: boolean;
4270
+ deployments?: boolean;
4271
+ team?: boolean;
4272
+ security?: boolean;
4273
+ };
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
+ }>;
894
4286
  "analytics.timeseries": import("./define.js").OperationEntry<{
895
4287
  businessId: string;
896
4288
  query: unknown;
897
4289
  }, {
898
- result: unknown;
4290
+ result: import("../generated/schemas.js").components["schemas"]["AnalyticsTimeseriesBucket"][];
4291
+ }, {
4292
+ result: import("../generated/schemas.js").components["schemas"]["AnalyticsTimeseriesBucket"][];
899
4293
  }>;
900
4294
  "analytics.latency": import("./define.js").OperationEntry<{
901
4295
  businessId: string;
902
4296
  query: unknown;
903
4297
  }, {
904
- result: unknown;
4298
+ result: import("../generated/schemas.js").components["schemas"]["AnalyticsPercentileRow"][];
4299
+ }, {
4300
+ result: import("../generated/schemas.js").components["schemas"]["AnalyticsPercentileRow"][];
905
4301
  }>;
906
4302
  "analytics.top": import("./define.js").OperationEntry<{
907
4303
  businessId: string;
908
4304
  query: unknown;
909
4305
  }, {
910
- result: unknown;
4306
+ result: import("../generated/schemas.js").components["schemas"]["AnalyticsTopKRow"][];
4307
+ }, {
4308
+ result: import("../generated/schemas.js").components["schemas"]["AnalyticsTopKRow"][];
911
4309
  }>;
912
4310
  "analytics.log": import("./define.js").OperationEntry<{
913
4311
  businessId: string;
914
4312
  query: unknown;
915
4313
  }, {
916
- result: unknown;
4314
+ result: import("../generated/schemas.js").components["schemas"]["AnalyticsEventFeedRow"][];
4315
+ }, {
4316
+ result: import("../generated/schemas.js").components["schemas"]["AnalyticsEventFeedRow"][];
917
4317
  }>;
918
4318
  "analytics.query": import("./define.js").OperationEntry<{
919
4319
  businessId: string;
@@ -921,7 +4321,21 @@ export declare const OPERATION_TABLE: {
921
4321
  } & {
922
4322
  verb: string;
923
4323
  }, {
924
- result: unknown;
4324
+ result: import("../generated/schemas.js").components["schemas"]["AnalyticsEventFeedRow"][];
4325
+ } | {
4326
+ result: import("../generated/schemas.js").components["schemas"]["AnalyticsPercentileRow"][];
4327
+ } | {
4328
+ result: import("../generated/schemas.js").components["schemas"]["AnalyticsTimeseriesBucket"][];
4329
+ } | {
4330
+ result: import("../generated/schemas.js").components["schemas"]["AnalyticsTopKRow"][];
4331
+ }, {
4332
+ result: import("../generated/schemas.js").components["schemas"]["AnalyticsEventFeedRow"][];
4333
+ } | {
4334
+ result: import("../generated/schemas.js").components["schemas"]["AnalyticsPercentileRow"][];
4335
+ } | {
4336
+ result: import("../generated/schemas.js").components["schemas"]["AnalyticsTimeseriesBucket"][];
4337
+ } | {
4338
+ result: import("../generated/schemas.js").components["schemas"]["AnalyticsTopKRow"][];
925
4339
  }>;
926
4340
  "agreements.read": import("./define.js").OperationEntry<{
927
4341
  businessId: string;
@@ -931,38 +4345,147 @@ export declare const OPERATION_TABLE: {
931
4345
  limit?: number;
932
4346
  offset?: number;
933
4347
  }, {
934
- data: import("../types.js").EconomicAgreement[];
935
- pagination?: import("../types.js").OffsetPagination;
4348
+ data: import("../generated/schemas.js").components["schemas"]["EconomicAgreement"][];
4349
+ pagination: {
4350
+ total: number;
4351
+ limit: number;
4352
+ offset: number;
4353
+ hasMore: boolean;
4354
+ };
4355
+ }, {
4356
+ data: import("../generated/schemas.js").components["schemas"]["EconomicAgreement"][];
4357
+ pagination: {
4358
+ total: number;
4359
+ limit: number;
4360
+ offset: number;
4361
+ hasMore: boolean;
4362
+ };
936
4363
  }>;
937
4364
  "agreements.get": import("./define.js").OperationEntry<{
938
4365
  businessId: string;
939
4366
  } & {
940
4367
  agreementId: string;
941
- }, import("../types.js").EconomicAgreement>;
4368
+ }, {
4369
+ id: string;
4370
+ environmentId: string | null;
4371
+ subjectId: string;
4372
+ usagePricingBinding: import("../generated/schemas.js").components["schemas"]["AgreementUsagePricingBinding"];
4373
+ newMeterPolicy: "adopt_at_current_rate" | "exclude_until_renewal" | "require_amendment";
4374
+ newMeasurePolicy: "adopt_at_current_rate" | "exclude_until_renewal" | "require_amendment";
4375
+ effectiveAt: string;
4376
+ expiresAt: string | null;
4377
+ createdAt: string;
4378
+ contractPricingVersions: import("../generated/schemas.js").components["schemas"]["ContractPricingVersion"][];
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
+ }>;
942
4391
  "agreements.pins": import("./define.js").OperationEntry<{
943
4392
  businessId: string;
944
4393
  } & {
945
4394
  subjectId: string;
946
- }, import("../types.js").SubjectPins>;
4395
+ }, {
4396
+ subjectId: string;
4397
+ environmentId: string | null;
4398
+ recurringPricePin: {
4399
+ planKey: string;
4400
+ version: number;
4401
+ recurringFeeCents: number;
4402
+ billingInterval: string;
4403
+ } | null;
4404
+ usagePricingBinding: {
4405
+ source: "agreement";
4406
+ agreementId: string;
4407
+ binding: import("../generated/schemas.js").components["schemas"]["AgreementUsagePricingBinding"];
4408
+ } | {
4409
+ source: "plan_default";
4410
+ mode: "current";
4411
+ };
4412
+ migrateToLatest: {
4413
+ status: "deferred";
4414
+ };
4415
+ }, {
4416
+ subjectId: string;
4417
+ environmentId: string | null;
4418
+ recurringPricePin: {
4419
+ planKey: string;
4420
+ version: number;
4421
+ recurringFeeCents: number;
4422
+ billingInterval: string;
4423
+ } | null;
4424
+ usagePricingBinding: {
4425
+ source: "agreement";
4426
+ agreementId: string;
4427
+ binding: import("../generated/schemas.js").components["schemas"]["AgreementUsagePricingBinding"];
4428
+ } | {
4429
+ source: "plan_default";
4430
+ mode: "current";
4431
+ };
4432
+ migrateToLatest: {
4433
+ status: "deferred";
4434
+ };
4435
+ }>;
947
4436
  "agreements.previewCreate": import("./define.js").OperationEntry<{
948
4437
  businessId: string;
949
4438
  } & {
950
4439
  body: import("./define.js").RequestBody;
951
- }, import("../types.js").AgreementPreview>;
4440
+ }, {
4441
+ effect: import("../generated/schemas.js").components["schemas"]["AgreementCreateEffect"];
4442
+ confirmationToken: string;
4443
+ }, {
4444
+ effect: import("../generated/schemas.js").components["schemas"]["AgreementCreateEffect"];
4445
+ confirmationToken: string;
4446
+ }>;
952
4447
  "agreements.create": import("./define.js").OperationEntry<{
953
4448
  businessId: string;
954
4449
  } & {
955
4450
  body: import("./define.js").RequestBody & {
956
4451
  confirmationToken: string;
957
4452
  };
958
- }, import("../types.js").EconomicAgreement>;
4453
+ }, {
4454
+ id: string;
4455
+ environmentId: string | null;
4456
+ subjectId: string;
4457
+ usagePricingBinding: import("../generated/schemas.js").components["schemas"]["AgreementUsagePricingBinding"];
4458
+ newMeterPolicy: "adopt_at_current_rate" | "exclude_until_renewal" | "require_amendment";
4459
+ newMeasurePolicy: "adopt_at_current_rate" | "exclude_until_renewal" | "require_amendment";
4460
+ effectiveAt: string;
4461
+ expiresAt: string | null;
4462
+ createdAt: string;
4463
+ contractPricingVersions: import("../generated/schemas.js").components["schemas"]["ContractPricingVersion"][];
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
+ }>;
959
4476
  "agreements.previewAmend": import("./define.js").OperationEntry<{
960
4477
  businessId: string;
961
4478
  } & {
962
4479
  agreementId: string;
963
4480
  } & {
964
4481
  body: import("./define.js").RequestBody;
965
- }, import("../types.js").AgreementPreview>;
4482
+ }, {
4483
+ effect: import("../generated/schemas.js").components["schemas"]["AgreementAmendEffect"];
4484
+ confirmationToken: string;
4485
+ }, {
4486
+ effect: import("../generated/schemas.js").components["schemas"]["AgreementAmendEffect"];
4487
+ confirmationToken: string;
4488
+ }>;
966
4489
  "agreements.amend": import("./define.js").OperationEntry<{
967
4490
  businessId: string;
968
4491
  } & {
@@ -971,39 +4494,166 @@ export declare const OPERATION_TABLE: {
971
4494
  body: import("./define.js").RequestBody & {
972
4495
  confirmationToken: string;
973
4496
  };
974
- }, import("../types.js").EconomicAgreement>;
4497
+ }, {
4498
+ id: string;
4499
+ environmentId: string | null;
4500
+ subjectId: string;
4501
+ usagePricingBinding: import("../generated/schemas.js").components["schemas"]["AgreementUsagePricingBinding"];
4502
+ newMeterPolicy: "adopt_at_current_rate" | "exclude_until_renewal" | "require_amendment";
4503
+ newMeasurePolicy: "adopt_at_current_rate" | "exclude_until_renewal" | "require_amendment";
4504
+ effectiveAt: string;
4505
+ expiresAt: string | null;
4506
+ createdAt: string;
4507
+ contractPricingVersions: import("../generated/schemas.js").components["schemas"]["ContractPricingVersion"][];
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
+ }>;
975
4520
  "agents.list": import("./define.js").OperationEntry<{
976
4521
  businessId: string;
977
4522
  }, {
978
- agents: import("../types.js").AgentSummary[];
4523
+ agents: import("../generated/schemas.js").components["schemas"]["Agent"][];
4524
+ availableRoles: string[];
4525
+ }, {
4526
+ agents: import("../generated/schemas.js").components["schemas"]["Agent"][];
979
4527
  availableRoles: string[];
980
4528
  }>;
981
4529
  "agents.status": import("./define.js").OperationEntry<{
982
4530
  businessId: string;
983
4531
  } & {
984
4532
  role: string;
985
- }, import("../types.js").AgentStatus>;
4533
+ }, {
4534
+ id: string;
4535
+ role: string;
4536
+ enabled: boolean;
4537
+ config: import("../generated/schemas.js").components["schemas"]["AgentConfig"];
4538
+ lastRunAt: string | null;
4539
+ createdAt: string;
4540
+ updatedAt: string;
4541
+ recentRuns: import("../generated/schemas.js").components["schemas"]["AgentRun"][];
4542
+ usage: {
4543
+ tokensIn: number;
4544
+ tokensOut: number;
4545
+ actionsCount: number;
4546
+ };
4547
+ catalog: import("../generated/schemas.js").components["schemas"]["AgentCatalogEntry"][];
4548
+ }, {
4549
+ id: string;
4550
+ role: string;
4551
+ enabled: boolean;
4552
+ config: import("../generated/schemas.js").components["schemas"]["AgentConfig"];
4553
+ lastRunAt: string | null;
4554
+ createdAt: string;
4555
+ updatedAt: string;
4556
+ recentRuns: import("../generated/schemas.js").components["schemas"]["AgentRun"][];
4557
+ usage: {
4558
+ tokensIn: number;
4559
+ tokensOut: number;
4560
+ actionsCount: number;
4561
+ };
4562
+ catalog: import("../generated/schemas.js").components["schemas"]["AgentCatalogEntry"][];
4563
+ }>;
986
4564
  "agents.runs.show": import("./define.js").OperationEntry<{
987
4565
  businessId: string;
988
4566
  } & {
989
4567
  role: string;
990
4568
  } & {
991
4569
  runId: string;
992
- }, Record<string, unknown>>;
4570
+ }, {
4571
+ run: {
4572
+ id: string;
4573
+ status: "queued" | "dispatched" | "succeeded" | "failed" | "stale";
4574
+ trigger: "tick" | "manual";
4575
+ dispatchedAt: string | null;
4576
+ finishedAt: string | null;
4577
+ errorCode: string | null;
4578
+ errorMessage: string | null;
4579
+ createdAt: string;
4580
+ degraded: boolean;
4581
+ result: {
4582
+ [key: string]: unknown;
4583
+ } | null;
4584
+ trace: {
4585
+ [key: string]: unknown;
4586
+ } | null;
4587
+ };
4588
+ launches: import("../generated/schemas.js").components["schemas"]["AgentLaunch"][];
4589
+ actions: import("../generated/schemas.js").components["schemas"]["AgentAction"][];
4590
+ }, {
4591
+ run: {
4592
+ id: string;
4593
+ status: "queued" | "dispatched" | "succeeded" | "failed" | "stale";
4594
+ trigger: "tick" | "manual";
4595
+ dispatchedAt: string | null;
4596
+ finishedAt: string | null;
4597
+ errorCode: string | null;
4598
+ errorMessage: string | null;
4599
+ createdAt: string;
4600
+ degraded: boolean;
4601
+ result: {
4602
+ [key: string]: unknown;
4603
+ } | null;
4604
+ trace: {
4605
+ [key: string]: unknown;
4606
+ } | null;
4607
+ };
4608
+ launches: import("../generated/schemas.js").components["schemas"]["AgentLaunch"][];
4609
+ actions: import("../generated/schemas.js").components["schemas"]["AgentAction"][];
4610
+ }>;
993
4611
  "agents.enable": import("./define.js").OperationEntry<{
994
4612
  businessId: string;
995
4613
  } & {
996
4614
  role: string;
997
4615
  } & {
998
- config?: Record<string, unknown>;
999
- }, import("../types.js").AgentSummary>;
4616
+ config?: import("../types.js").AgentConfig;
4617
+ }, {
4618
+ id: string;
4619
+ role: string;
4620
+ enabled: boolean;
4621
+ config: import("../generated/schemas.js").components["schemas"]["AgentConfig"];
4622
+ lastRunAt: string | null;
4623
+ createdAt: string;
4624
+ updatedAt: string;
4625
+ }, {
4626
+ id: string;
4627
+ role: string;
4628
+ enabled: boolean;
4629
+ config: import("../generated/schemas.js").components["schemas"]["AgentConfig"];
4630
+ lastRunAt: string | null;
4631
+ createdAt: string;
4632
+ updatedAt: string;
4633
+ }>;
1000
4634
  "agents.disable": import("./define.js").OperationEntry<{
1001
4635
  businessId: string;
1002
4636
  } & {
1003
4637
  role: string;
1004
4638
  } & {
1005
- config?: Record<string, unknown>;
1006
- }, import("../types.js").AgentSummary>;
4639
+ config?: import("../types.js").AgentConfig;
4640
+ }, {
4641
+ id: string;
4642
+ role: string;
4643
+ enabled: boolean;
4644
+ config: import("../generated/schemas.js").components["schemas"]["AgentConfig"];
4645
+ lastRunAt: string | null;
4646
+ createdAt: string;
4647
+ updatedAt: string;
4648
+ }, {
4649
+ id: string;
4650
+ role: string;
4651
+ enabled: boolean;
4652
+ config: import("../generated/schemas.js").components["schemas"]["AgentConfig"];
4653
+ lastRunAt: string | null;
4654
+ createdAt: string;
4655
+ updatedAt: string;
4656
+ }>;
1007
4657
  "bulletin.list": import("./define.js").OperationEntry<{
1008
4658
  businessId: string;
1009
4659
  } & {
@@ -1012,24 +4662,111 @@ export declare const OPERATION_TABLE: {
1012
4662
  cursor?: string;
1013
4663
  limit?: number | string;
1014
4664
  }, {
1015
- items: import("../types.js").BulletinPost[];
4665
+ items: import("../generated/schemas.js").components["schemas"]["BulletinPost"][];
4666
+ nextCursor: string | null;
4667
+ }, {
4668
+ items: import("../generated/schemas.js").components["schemas"]["BulletinPost"][];
1016
4669
  nextCursor: string | null;
1017
4670
  }>;
1018
4671
  "bulletin.read": import("./define.js").OperationEntry<{
1019
4672
  businessId: string;
1020
4673
  } & {
1021
4674
  postId: string;
1022
- }, import("../types.js").BulletinPost>;
4675
+ }, {
4676
+ id: string;
4677
+ kind: string;
4678
+ role: string;
4679
+ title: string;
4680
+ body: string;
4681
+ dataJson: {
4682
+ [key: string]: unknown;
4683
+ };
4684
+ severity: string;
4685
+ status: string;
4686
+ changeSetId: string | null;
4687
+ createdAt: string;
4688
+ updatedAt: string;
4689
+ }, {
4690
+ id: string;
4691
+ kind: string;
4692
+ role: string;
4693
+ title: string;
4694
+ body: string;
4695
+ dataJson: {
4696
+ [key: string]: unknown;
4697
+ };
4698
+ severity: string;
4699
+ status: string;
4700
+ changeSetId: string | null;
4701
+ createdAt: string;
4702
+ updatedAt: string;
4703
+ }>;
1023
4704
  "bulletin.ack": import("./define.js").OperationEntry<{
1024
4705
  businessId: string;
1025
4706
  } & {
1026
4707
  postId: string;
1027
- }, import("../types.js").BulletinPost>;
4708
+ }, {
4709
+ id: string;
4710
+ kind: string;
4711
+ role: string;
4712
+ title: string;
4713
+ body: string;
4714
+ dataJson: {
4715
+ [key: string]: unknown;
4716
+ };
4717
+ severity: string;
4718
+ status: string;
4719
+ changeSetId: string | null;
4720
+ createdAt: string;
4721
+ updatedAt: string;
4722
+ }, {
4723
+ id: string;
4724
+ kind: string;
4725
+ role: string;
4726
+ title: string;
4727
+ body: string;
4728
+ dataJson: {
4729
+ [key: string]: unknown;
4730
+ };
4731
+ severity: string;
4732
+ status: string;
4733
+ changeSetId: string | null;
4734
+ createdAt: string;
4735
+ updatedAt: string;
4736
+ }>;
1028
4737
  "bulletin.resolve": import("./define.js").OperationEntry<{
1029
4738
  businessId: string;
1030
4739
  } & {
1031
4740
  postId: string;
1032
- }, import("../types.js").BulletinPost>;
4741
+ }, {
4742
+ id: string;
4743
+ kind: string;
4744
+ role: string;
4745
+ title: string;
4746
+ body: string;
4747
+ dataJson: {
4748
+ [key: string]: unknown;
4749
+ };
4750
+ severity: string;
4751
+ status: string;
4752
+ changeSetId: string | null;
4753
+ createdAt: string;
4754
+ updatedAt: string;
4755
+ }, {
4756
+ id: string;
4757
+ kind: string;
4758
+ role: string;
4759
+ title: string;
4760
+ body: string;
4761
+ dataJson: {
4762
+ [key: string]: unknown;
4763
+ };
4764
+ severity: string;
4765
+ status: string;
4766
+ changeSetId: string | null;
4767
+ createdAt: string;
4768
+ updatedAt: string;
4769
+ }>;
1033
4770
  };
1034
4771
  export type OperationTable = typeof OPERATION_TABLE;
1035
4772
  /** A dotted method path, e.g. `"runtimeTokens.revoke"`. */