@xpert-ai/contracts 3.37.0 → 3.38.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xpert-ai/contracts",
3
- "version": "3.37.0",
3
+ "version": "3.38.0",
4
4
  "license": "AGPL-3.0",
5
5
  "repository": {
6
6
  "type": "git",
@@ -37,7 +37,7 @@
37
37
  "dependencies": {
38
38
  "@octokit/types": "13.10.0",
39
39
  "@types/json-schema": "^7.0.15",
40
- "@xpert-ai/chatkit-types": "~0.23.0",
40
+ "@xpert-ai/chatkit-types": "~0.24.0",
41
41
  "zod-to-json-schema": "^3.25.2"
42
42
  },
43
43
  "peerDependencies": {
@@ -0,0 +1,27 @@
1
+ export type ConversationProjectDestination = 'existing' | 'create';
2
+ export interface ConversationProjectMoveOffer {
3
+ requestId: string;
4
+ assistantMessageId: string;
5
+ threadId: string;
6
+ /** Initial preference until confirmation, then the mode used to bind the Project. */
7
+ destination: ConversationProjectDestination;
8
+ projectId: string | null;
9
+ projectName?: string;
10
+ executionId: string;
11
+ conversationId: string;
12
+ waitingForIdle: boolean;
13
+ executionStatus: string | null;
14
+ }
15
+ export type ConversationProjectMoveConfirmation = {
16
+ requestId: string;
17
+ moveFromConversationId: string;
18
+ threadId: string;
19
+ shareHistory: true;
20
+ target: {
21
+ mode: 'existing';
22
+ projectId: string;
23
+ } | {
24
+ mode: 'create';
25
+ name: string;
26
+ };
27
+ };
@@ -104,7 +104,9 @@ export declare const executionControlEvidenceSchema: z.ZodDiscriminatedUnion<"so
104
104
  id: string;
105
105
  }>]>;
106
106
  scope: z.ZodLiteral<"owned_subtree">;
107
- state: z.ZodEnum<["running", "pausing", "paused", "terminating", "settled"]>;
107
+ state: z.ZodEnum<["running", "pausing", "paused", "terminating", "settled", "unknown"]>;
108
+ /** Result return could not finish; retain platform execution identity without asserting completion. */
109
+ reason: z.ZodOptional<z.ZodEnum<["result_delivery_blocked", "result_delivery_failed", "result_delivery_unconfirmed"]>>;
108
110
  desired: z.ZodEnum<["running", "paused", "terminated"]>;
109
111
  taskId: z.ZodString;
110
112
  rootId: z.ZodString;
@@ -122,7 +124,7 @@ export declare const executionControlEvidenceSchema: z.ZodDiscriminatedUnion<"so
122
124
  id: string;
123
125
  };
124
126
  revision: number;
125
- state: "running" | "paused" | "pausing" | "terminating" | "settled";
127
+ state: "unknown" | "running" | "paused" | "pausing" | "terminating" | "settled";
126
128
  taskId: string;
127
129
  executionId: string;
128
130
  threadId: string;
@@ -132,6 +134,7 @@ export declare const executionControlEvidenceSchema: z.ZodDiscriminatedUnion<"so
132
134
  observedAt: string;
133
135
  desired: "running" | "paused" | "terminated";
134
136
  rootId: string;
137
+ reason?: "result_delivery_blocked" | "result_delivery_failed" | "result_delivery_unconfirmed" | undefined;
135
138
  }, {
136
139
  subject: {
137
140
  kind: "execution";
@@ -141,7 +144,7 @@ export declare const executionControlEvidenceSchema: z.ZodDiscriminatedUnion<"so
141
144
  id: string;
142
145
  };
143
146
  revision: number;
144
- state: "running" | "paused" | "pausing" | "terminating" | "settled";
147
+ state: "unknown" | "running" | "paused" | "pausing" | "terminating" | "settled";
145
148
  taskId: string;
146
149
  executionId: string;
147
150
  threadId: string;
@@ -151,6 +154,7 @@ export declare const executionControlEvidenceSchema: z.ZodDiscriminatedUnion<"so
151
154
  observedAt: string;
152
155
  desired: "running" | "paused" | "terminated";
153
156
  rootId: string;
157
+ reason?: "result_delivery_blocked" | "result_delivery_failed" | "result_delivery_unconfirmed" | undefined;
154
158
  }>, z.ZodObject<{
155
159
  source: z.ZodLiteral<"provider">;
156
160
  subject: z.ZodObject<{
@@ -11,6 +11,8 @@ export type TExecutionWorkReceipt = {
11
11
  id: string;
12
12
  executionId: string;
13
13
  settled: boolean;
14
+ /** Actual tool callback exit time; absent on historical receipts. */
15
+ settledAt?: string;
14
16
  };
15
17
  /** Internal control facts; public clients receive a separate control view. */
16
18
  export interface IExecutionControl extends IBasePerTenantAndOrganizationEntityModel {
package/src/ai/index.d.ts CHANGED
@@ -6,6 +6,7 @@ export type * from '@xpert-ai/chatkit-types';
6
6
  export type { IconDefinition, IconType } from '../types';
7
7
  export type { TChatRequest } from './xpert-chat.model';
8
8
  export type { ProjectSelection } from './project-selection.model';
9
+ export * from './conversation-project-move.model';
9
10
  export { CHAT_EVENT_TYPE_FOLLOW_UP_CONSUMED } from './chat-event.model';
10
11
  export * from './assistant-binding.model';
11
12
  export * from './clawxpert-recovery.model';
@@ -139,3 +140,4 @@ export * from './execution-observability.model';
139
140
  export * from './model-management.model';
140
141
  export * from './model-replacement.model';
141
142
  export * from './default-model-role';
143
+ export * from './project-task-view.model';
@@ -92,6 +92,8 @@ export interface IMembershipPlan extends IBasePerTenantAndOrganizationEntityMode
92
92
  isDefault?: boolean;
93
93
  period: MembershipPeriodEnum;
94
94
  includedPoints: number | null;
95
+ /** Durable account capacity in bytes. Missing/null retains the application's base allowance. */
96
+ includedStorageBytes?: number | null;
95
97
  /** @deprecated Sale pricing is owned by the Pro billing product. Retained temporarily for migration only. */
96
98
  priceAmount?: number | null;
97
99
  /** @deprecated Sale pricing is owned by the Pro billing product. Retained temporarily for migration only. */
@@ -109,6 +111,7 @@ export interface IMembershipPlanSnapshot {
109
111
  catalogSourcePlanId?: string | null;
110
112
  period: MembershipPeriodEnum;
111
113
  includedPoints: number | null;
114
+ includedStorageBytes?: number | null;
112
115
  allowedModels?: IMembershipAllowedModel[];
113
116
  modelMultipliers?: IMembershipModelMultiplier[];
114
117
  rateLimits?: IMembershipRateLimit[];
@@ -280,7 +280,8 @@ export declare const projectPipelineOperationReceiptSchema: z.ZodDiscriminatedUn
280
280
  id: string;
281
281
  }>]>;
282
282
  scope: z.ZodLiteral<"owned_subtree">;
283
- state: z.ZodEnum<["running", "pausing", "paused", "terminating", "settled"]>;
283
+ state: z.ZodEnum<["running", "pausing", "paused", "terminating", "settled", "unknown"]>;
284
+ reason: z.ZodOptional<z.ZodEnum<["result_delivery_blocked", "result_delivery_failed", "result_delivery_unconfirmed"]>>;
284
285
  desired: z.ZodEnum<["running", "paused", "terminated"]>;
285
286
  taskId: z.ZodString;
286
287
  rootId: z.ZodString;
@@ -298,7 +299,7 @@ export declare const projectPipelineOperationReceiptSchema: z.ZodDiscriminatedUn
298
299
  id: string;
299
300
  };
300
301
  revision: number;
301
- state: "running" | "paused" | "pausing" | "terminating" | "settled";
302
+ state: "unknown" | "running" | "paused" | "pausing" | "terminating" | "settled";
302
303
  taskId: string;
303
304
  executionId: string;
304
305
  threadId: string;
@@ -308,6 +309,7 @@ export declare const projectPipelineOperationReceiptSchema: z.ZodDiscriminatedUn
308
309
  observedAt: string;
309
310
  desired: "running" | "paused" | "terminated";
310
311
  rootId: string;
312
+ reason?: "result_delivery_blocked" | "result_delivery_failed" | "result_delivery_unconfirmed" | undefined;
311
313
  }, {
312
314
  subject: {
313
315
  kind: "execution";
@@ -317,7 +319,7 @@ export declare const projectPipelineOperationReceiptSchema: z.ZodDiscriminatedUn
317
319
  id: string;
318
320
  };
319
321
  revision: number;
320
- state: "running" | "paused" | "pausing" | "terminating" | "settled";
322
+ state: "unknown" | "running" | "paused" | "pausing" | "terminating" | "settled";
321
323
  taskId: string;
322
324
  executionId: string;
323
325
  threadId: string;
@@ -327,6 +329,7 @@ export declare const projectPipelineOperationReceiptSchema: z.ZodDiscriminatedUn
327
329
  observedAt: string;
328
330
  desired: "running" | "paused" | "terminated";
329
331
  rootId: string;
332
+ reason?: "result_delivery_blocked" | "result_delivery_failed" | "result_delivery_unconfirmed" | undefined;
330
333
  }>, z.ZodObject<{
331
334
  source: z.ZodLiteral<"provider">;
332
335
  subject: z.ZodObject<{
@@ -592,7 +595,7 @@ export declare const projectPipelineOperationReceiptSchema: z.ZodDiscriminatedUn
592
595
  id: string;
593
596
  };
594
597
  revision: number;
595
- state: "running" | "paused" | "pausing" | "terminating" | "settled";
598
+ state: "unknown" | "running" | "paused" | "pausing" | "terminating" | "settled";
596
599
  taskId: string;
597
600
  executionId: string;
598
601
  threadId: string;
@@ -602,6 +605,7 @@ export declare const projectPipelineOperationReceiptSchema: z.ZodDiscriminatedUn
602
605
  observedAt: string;
603
606
  desired: "running" | "paused" | "terminated";
604
607
  rootId: string;
608
+ reason?: "result_delivery_blocked" | "result_delivery_failed" | "result_delivery_unconfirmed" | undefined;
605
609
  } | {
606
610
  subject: {
607
611
  kind: "invocation";
@@ -691,7 +695,7 @@ export declare const projectPipelineOperationReceiptSchema: z.ZodDiscriminatedUn
691
695
  id: string;
692
696
  };
693
697
  revision: number;
694
- state: "running" | "paused" | "pausing" | "terminating" | "settled";
698
+ state: "unknown" | "running" | "paused" | "pausing" | "terminating" | "settled";
695
699
  taskId: string;
696
700
  executionId: string;
697
701
  threadId: string;
@@ -701,6 +705,7 @@ export declare const projectPipelineOperationReceiptSchema: z.ZodDiscriminatedUn
701
705
  observedAt: string;
702
706
  desired: "running" | "paused" | "terminated";
703
707
  rootId: string;
708
+ reason?: "result_delivery_blocked" | "result_delivery_failed" | "result_delivery_unconfirmed" | undefined;
704
709
  } | {
705
710
  subject: {
706
711
  kind: "invocation";
@@ -862,7 +867,8 @@ export declare const projectPipelineOperationReceiptSchema: z.ZodDiscriminatedUn
862
867
  id: string;
863
868
  }>]>;
864
869
  scope: z.ZodLiteral<"owned_subtree">;
865
- state: z.ZodEnum<["running", "pausing", "paused", "terminating", "settled"]>;
870
+ state: z.ZodEnum<["running", "pausing", "paused", "terminating", "settled", "unknown"]>;
871
+ reason: z.ZodOptional<z.ZodEnum<["result_delivery_blocked", "result_delivery_failed", "result_delivery_unconfirmed"]>>;
866
872
  desired: z.ZodEnum<["running", "paused", "terminated"]>;
867
873
  taskId: z.ZodString;
868
874
  rootId: z.ZodString;
@@ -880,7 +886,7 @@ export declare const projectPipelineOperationReceiptSchema: z.ZodDiscriminatedUn
880
886
  id: string;
881
887
  };
882
888
  revision: number;
883
- state: "running" | "paused" | "pausing" | "terminating" | "settled";
889
+ state: "unknown" | "running" | "paused" | "pausing" | "terminating" | "settled";
884
890
  taskId: string;
885
891
  executionId: string;
886
892
  threadId: string;
@@ -890,6 +896,7 @@ export declare const projectPipelineOperationReceiptSchema: z.ZodDiscriminatedUn
890
896
  observedAt: string;
891
897
  desired: "running" | "paused" | "terminated";
892
898
  rootId: string;
899
+ reason?: "result_delivery_blocked" | "result_delivery_failed" | "result_delivery_unconfirmed" | undefined;
893
900
  }, {
894
901
  subject: {
895
902
  kind: "execution";
@@ -899,7 +906,7 @@ export declare const projectPipelineOperationReceiptSchema: z.ZodDiscriminatedUn
899
906
  id: string;
900
907
  };
901
908
  revision: number;
902
- state: "running" | "paused" | "pausing" | "terminating" | "settled";
909
+ state: "unknown" | "running" | "paused" | "pausing" | "terminating" | "settled";
903
910
  taskId: string;
904
911
  executionId: string;
905
912
  threadId: string;
@@ -909,6 +916,7 @@ export declare const projectPipelineOperationReceiptSchema: z.ZodDiscriminatedUn
909
916
  observedAt: string;
910
917
  desired: "running" | "paused" | "terminated";
911
918
  rootId: string;
919
+ reason?: "result_delivery_blocked" | "result_delivery_failed" | "result_delivery_unconfirmed" | undefined;
912
920
  }>, z.ZodObject<{
913
921
  source: z.ZodLiteral<"provider">;
914
922
  subject: z.ZodObject<{
@@ -1182,7 +1190,7 @@ export declare const projectPipelineOperationReceiptSchema: z.ZodDiscriminatedUn
1182
1190
  id: string;
1183
1191
  };
1184
1192
  revision: number;
1185
- state: "running" | "paused" | "pausing" | "terminating" | "settled";
1193
+ state: "unknown" | "running" | "paused" | "pausing" | "terminating" | "settled";
1186
1194
  taskId: string;
1187
1195
  executionId: string;
1188
1196
  threadId: string;
@@ -1192,6 +1200,7 @@ export declare const projectPipelineOperationReceiptSchema: z.ZodDiscriminatedUn
1192
1200
  observedAt: string;
1193
1201
  desired: "running" | "paused" | "terminated";
1194
1202
  rootId: string;
1203
+ reason?: "result_delivery_blocked" | "result_delivery_failed" | "result_delivery_unconfirmed" | undefined;
1195
1204
  } | {
1196
1205
  subject: {
1197
1206
  kind: "invocation";
@@ -1289,7 +1298,7 @@ export declare const projectPipelineOperationReceiptSchema: z.ZodDiscriminatedUn
1289
1298
  id: string;
1290
1299
  };
1291
1300
  revision: number;
1292
- state: "running" | "paused" | "pausing" | "terminating" | "settled";
1301
+ state: "unknown" | "running" | "paused" | "pausing" | "terminating" | "settled";
1293
1302
  taskId: string;
1294
1303
  executionId: string;
1295
1304
  threadId: string;
@@ -1299,6 +1308,7 @@ export declare const projectPipelineOperationReceiptSchema: z.ZodDiscriminatedUn
1299
1308
  observedAt: string;
1300
1309
  desired: "running" | "paused" | "terminated";
1301
1310
  rootId: string;
1311
+ reason?: "result_delivery_blocked" | "result_delivery_failed" | "result_delivery_unconfirmed" | undefined;
1302
1312
  } | {
1303
1313
  subject: {
1304
1314
  kind: "invocation";
@@ -1424,7 +1434,8 @@ export declare const projectPipelineOperationReceiptSchema: z.ZodDiscriminatedUn
1424
1434
  id: string;
1425
1435
  }>]>;
1426
1436
  scope: z.ZodLiteral<"owned_subtree">;
1427
- state: z.ZodEnum<["running", "pausing", "paused", "terminating", "settled"]>;
1437
+ state: z.ZodEnum<["running", "pausing", "paused", "terminating", "settled", "unknown"]>;
1438
+ reason: z.ZodOptional<z.ZodEnum<["result_delivery_blocked", "result_delivery_failed", "result_delivery_unconfirmed"]>>;
1428
1439
  desired: z.ZodEnum<["running", "paused", "terminated"]>;
1429
1440
  taskId: z.ZodString;
1430
1441
  rootId: z.ZodString;
@@ -1442,7 +1453,7 @@ export declare const projectPipelineOperationReceiptSchema: z.ZodDiscriminatedUn
1442
1453
  id: string;
1443
1454
  };
1444
1455
  revision: number;
1445
- state: "running" | "paused" | "pausing" | "terminating" | "settled";
1456
+ state: "unknown" | "running" | "paused" | "pausing" | "terminating" | "settled";
1446
1457
  taskId: string;
1447
1458
  executionId: string;
1448
1459
  threadId: string;
@@ -1452,6 +1463,7 @@ export declare const projectPipelineOperationReceiptSchema: z.ZodDiscriminatedUn
1452
1463
  observedAt: string;
1453
1464
  desired: "running" | "paused" | "terminated";
1454
1465
  rootId: string;
1466
+ reason?: "result_delivery_blocked" | "result_delivery_failed" | "result_delivery_unconfirmed" | undefined;
1455
1467
  }, {
1456
1468
  subject: {
1457
1469
  kind: "execution";
@@ -1461,7 +1473,7 @@ export declare const projectPipelineOperationReceiptSchema: z.ZodDiscriminatedUn
1461
1473
  id: string;
1462
1474
  };
1463
1475
  revision: number;
1464
- state: "running" | "paused" | "pausing" | "terminating" | "settled";
1476
+ state: "unknown" | "running" | "paused" | "pausing" | "terminating" | "settled";
1465
1477
  taskId: string;
1466
1478
  executionId: string;
1467
1479
  threadId: string;
@@ -1471,6 +1483,7 @@ export declare const projectPipelineOperationReceiptSchema: z.ZodDiscriminatedUn
1471
1483
  observedAt: string;
1472
1484
  desired: "running" | "paused" | "terminated";
1473
1485
  rootId: string;
1486
+ reason?: "result_delivery_blocked" | "result_delivery_failed" | "result_delivery_unconfirmed" | undefined;
1474
1487
  }>, z.ZodObject<{
1475
1488
  source: z.ZodLiteral<"provider">;
1476
1489
  subject: z.ZodObject<{
@@ -1737,7 +1750,7 @@ export declare const projectPipelineOperationReceiptSchema: z.ZodDiscriminatedUn
1737
1750
  id: string;
1738
1751
  };
1739
1752
  revision: number;
1740
- state: "running" | "paused" | "pausing" | "terminating" | "settled";
1753
+ state: "unknown" | "running" | "paused" | "pausing" | "terminating" | "settled";
1741
1754
  taskId: string;
1742
1755
  executionId: string;
1743
1756
  threadId: string;
@@ -1747,6 +1760,7 @@ export declare const projectPipelineOperationReceiptSchema: z.ZodDiscriminatedUn
1747
1760
  observedAt: string;
1748
1761
  desired: "running" | "paused" | "terminated";
1749
1762
  rootId: string;
1763
+ reason?: "result_delivery_blocked" | "result_delivery_failed" | "result_delivery_unconfirmed" | undefined;
1750
1764
  } | {
1751
1765
  subject: {
1752
1766
  kind: "invocation";
@@ -1837,7 +1851,7 @@ export declare const projectPipelineOperationReceiptSchema: z.ZodDiscriminatedUn
1837
1851
  id: string;
1838
1852
  };
1839
1853
  revision: number;
1840
- state: "running" | "paused" | "pausing" | "terminating" | "settled";
1854
+ state: "unknown" | "running" | "paused" | "pausing" | "terminating" | "settled";
1841
1855
  taskId: string;
1842
1856
  executionId: string;
1843
1857
  threadId: string;
@@ -1847,6 +1861,7 @@ export declare const projectPipelineOperationReceiptSchema: z.ZodDiscriminatedUn
1847
1861
  observedAt: string;
1848
1862
  desired: "running" | "paused" | "terminated";
1849
1863
  rootId: string;
1864
+ reason?: "result_delivery_blocked" | "result_delivery_failed" | "result_delivery_unconfirmed" | undefined;
1850
1865
  } | {
1851
1866
  subject: {
1852
1867
  kind: "invocation";
@@ -1971,7 +1986,8 @@ export declare const projectPipelineOperationReceiptSchema: z.ZodDiscriminatedUn
1971
1986
  id: string;
1972
1987
  }>]>;
1973
1988
  scope: z.ZodLiteral<"owned_subtree">;
1974
- state: z.ZodEnum<["running", "pausing", "paused", "terminating", "settled"]>;
1989
+ state: z.ZodEnum<["running", "pausing", "paused", "terminating", "settled", "unknown"]>;
1990
+ reason: z.ZodOptional<z.ZodEnum<["result_delivery_blocked", "result_delivery_failed", "result_delivery_unconfirmed"]>>;
1975
1991
  desired: z.ZodEnum<["running", "paused", "terminated"]>;
1976
1992
  taskId: z.ZodString;
1977
1993
  rootId: z.ZodString;
@@ -1989,7 +2005,7 @@ export declare const projectPipelineOperationReceiptSchema: z.ZodDiscriminatedUn
1989
2005
  id: string;
1990
2006
  };
1991
2007
  revision: number;
1992
- state: "running" | "paused" | "pausing" | "terminating" | "settled";
2008
+ state: "unknown" | "running" | "paused" | "pausing" | "terminating" | "settled";
1993
2009
  taskId: string;
1994
2010
  executionId: string;
1995
2011
  threadId: string;
@@ -1999,6 +2015,7 @@ export declare const projectPipelineOperationReceiptSchema: z.ZodDiscriminatedUn
1999
2015
  observedAt: string;
2000
2016
  desired: "running" | "paused" | "terminated";
2001
2017
  rootId: string;
2018
+ reason?: "result_delivery_blocked" | "result_delivery_failed" | "result_delivery_unconfirmed" | undefined;
2002
2019
  }, {
2003
2020
  subject: {
2004
2021
  kind: "execution";
@@ -2008,7 +2025,7 @@ export declare const projectPipelineOperationReceiptSchema: z.ZodDiscriminatedUn
2008
2025
  id: string;
2009
2026
  };
2010
2027
  revision: number;
2011
- state: "running" | "paused" | "pausing" | "terminating" | "settled";
2028
+ state: "unknown" | "running" | "paused" | "pausing" | "terminating" | "settled";
2012
2029
  taskId: string;
2013
2030
  executionId: string;
2014
2031
  threadId: string;
@@ -2018,6 +2035,7 @@ export declare const projectPipelineOperationReceiptSchema: z.ZodDiscriminatedUn
2018
2035
  observedAt: string;
2019
2036
  desired: "running" | "paused" | "terminated";
2020
2037
  rootId: string;
2038
+ reason?: "result_delivery_blocked" | "result_delivery_failed" | "result_delivery_unconfirmed" | undefined;
2021
2039
  }>, z.ZodObject<{
2022
2040
  source: z.ZodLiteral<"provider">;
2023
2041
  subject: z.ZodObject<{
@@ -2283,7 +2301,7 @@ export declare const projectPipelineOperationReceiptSchema: z.ZodDiscriminatedUn
2283
2301
  id: string;
2284
2302
  };
2285
2303
  revision: number;
2286
- state: "running" | "paused" | "pausing" | "terminating" | "settled";
2304
+ state: "unknown" | "running" | "paused" | "pausing" | "terminating" | "settled";
2287
2305
  taskId: string;
2288
2306
  executionId: string;
2289
2307
  threadId: string;
@@ -2293,6 +2311,7 @@ export declare const projectPipelineOperationReceiptSchema: z.ZodDiscriminatedUn
2293
2311
  observedAt: string;
2294
2312
  desired: "running" | "paused" | "terminated";
2295
2313
  rootId: string;
2314
+ reason?: "result_delivery_blocked" | "result_delivery_failed" | "result_delivery_unconfirmed" | undefined;
2296
2315
  } | {
2297
2316
  subject: {
2298
2317
  kind: "invocation";
@@ -2382,7 +2401,7 @@ export declare const projectPipelineOperationReceiptSchema: z.ZodDiscriminatedUn
2382
2401
  id: string;
2383
2402
  };
2384
2403
  revision: number;
2385
- state: "running" | "paused" | "pausing" | "terminating" | "settled";
2404
+ state: "unknown" | "running" | "paused" | "pausing" | "terminating" | "settled";
2386
2405
  taskId: string;
2387
2406
  executionId: string;
2388
2407
  threadId: string;
@@ -2392,6 +2411,7 @@ export declare const projectPipelineOperationReceiptSchema: z.ZodDiscriminatedUn
2392
2411
  observedAt: string;
2393
2412
  desired: "running" | "paused" | "terminated";
2394
2413
  rootId: string;
2414
+ reason?: "result_delivery_blocked" | "result_delivery_failed" | "result_delivery_unconfirmed" | undefined;
2395
2415
  } | {
2396
2416
  subject: {
2397
2417
  kind: "invocation";
@@ -2515,7 +2535,8 @@ export declare const projectPipelineOperationReceiptSchema: z.ZodDiscriminatedUn
2515
2535
  id: string;
2516
2536
  }>]>;
2517
2537
  scope: z.ZodLiteral<"owned_subtree">;
2518
- state: z.ZodEnum<["running", "pausing", "paused", "terminating", "settled"]>;
2538
+ state: z.ZodEnum<["running", "pausing", "paused", "terminating", "settled", "unknown"]>;
2539
+ reason: z.ZodOptional<z.ZodEnum<["result_delivery_blocked", "result_delivery_failed", "result_delivery_unconfirmed"]>>;
2519
2540
  desired: z.ZodEnum<["running", "paused", "terminated"]>;
2520
2541
  taskId: z.ZodString;
2521
2542
  rootId: z.ZodString;
@@ -2533,7 +2554,7 @@ export declare const projectPipelineOperationReceiptSchema: z.ZodDiscriminatedUn
2533
2554
  id: string;
2534
2555
  };
2535
2556
  revision: number;
2536
- state: "running" | "paused" | "pausing" | "terminating" | "settled";
2557
+ state: "unknown" | "running" | "paused" | "pausing" | "terminating" | "settled";
2537
2558
  taskId: string;
2538
2559
  executionId: string;
2539
2560
  threadId: string;
@@ -2543,6 +2564,7 @@ export declare const projectPipelineOperationReceiptSchema: z.ZodDiscriminatedUn
2543
2564
  observedAt: string;
2544
2565
  desired: "running" | "paused" | "terminated";
2545
2566
  rootId: string;
2567
+ reason?: "result_delivery_blocked" | "result_delivery_failed" | "result_delivery_unconfirmed" | undefined;
2546
2568
  }, {
2547
2569
  subject: {
2548
2570
  kind: "execution";
@@ -2552,7 +2574,7 @@ export declare const projectPipelineOperationReceiptSchema: z.ZodDiscriminatedUn
2552
2574
  id: string;
2553
2575
  };
2554
2576
  revision: number;
2555
- state: "running" | "paused" | "pausing" | "terminating" | "settled";
2577
+ state: "unknown" | "running" | "paused" | "pausing" | "terminating" | "settled";
2556
2578
  taskId: string;
2557
2579
  executionId: string;
2558
2580
  threadId: string;
@@ -2562,6 +2584,7 @@ export declare const projectPipelineOperationReceiptSchema: z.ZodDiscriminatedUn
2562
2584
  observedAt: string;
2563
2585
  desired: "running" | "paused" | "terminated";
2564
2586
  rootId: string;
2587
+ reason?: "result_delivery_blocked" | "result_delivery_failed" | "result_delivery_unconfirmed" | undefined;
2565
2588
  }>, z.ZodObject<{
2566
2589
  source: z.ZodLiteral<"provider">;
2567
2590
  subject: z.ZodObject<{
@@ -2828,7 +2851,7 @@ export declare const projectPipelineOperationReceiptSchema: z.ZodDiscriminatedUn
2828
2851
  id: string;
2829
2852
  };
2830
2853
  revision: number;
2831
- state: "running" | "paused" | "pausing" | "terminating" | "settled";
2854
+ state: "unknown" | "running" | "paused" | "pausing" | "terminating" | "settled";
2832
2855
  taskId: string;
2833
2856
  executionId: string;
2834
2857
  threadId: string;
@@ -2838,6 +2861,7 @@ export declare const projectPipelineOperationReceiptSchema: z.ZodDiscriminatedUn
2838
2861
  observedAt: string;
2839
2862
  desired: "running" | "paused" | "terminated";
2840
2863
  rootId: string;
2864
+ reason?: "result_delivery_blocked" | "result_delivery_failed" | "result_delivery_unconfirmed" | undefined;
2841
2865
  } | {
2842
2866
  subject: {
2843
2867
  kind: "invocation";
@@ -2927,7 +2951,7 @@ export declare const projectPipelineOperationReceiptSchema: z.ZodDiscriminatedUn
2927
2951
  id: string;
2928
2952
  };
2929
2953
  revision: number;
2930
- state: "running" | "paused" | "pausing" | "terminating" | "settled";
2954
+ state: "unknown" | "running" | "paused" | "pausing" | "terminating" | "settled";
2931
2955
  taskId: string;
2932
2956
  executionId: string;
2933
2957
  threadId: string;
@@ -2937,6 +2961,7 @@ export declare const projectPipelineOperationReceiptSchema: z.ZodDiscriminatedUn
2937
2961
  observedAt: string;
2938
2962
  desired: "running" | "paused" | "terminated";
2939
2963
  rootId: string;
2964
+ reason?: "result_delivery_blocked" | "result_delivery_failed" | "result_delivery_unconfirmed" | undefined;
2940
2965
  } | {
2941
2966
  subject: {
2942
2967
  kind: "invocation";
@@ -0,0 +1,133 @@
1
+ import { z } from 'zod';
2
+ /** Resource names determine the projection; clients cannot request arbitrary entity fields. */
3
+ export declare const projectTaskViewQuerySchema: z.ZodDiscriminatedUnion<"resource", [z.ZodObject<{
4
+ resource: z.ZodLiteral<"context">;
5
+ contractVersion: z.ZodLiteral<2>;
6
+ knownVersion: z.ZodOptional<z.ZodString>;
7
+ }, "strict", z.ZodTypeAny, {
8
+ resource?: "context";
9
+ contractVersion?: 2;
10
+ knownVersion?: string;
11
+ }, {
12
+ resource?: "context";
13
+ contractVersion?: 2;
14
+ knownVersion?: string;
15
+ }>, z.ZodObject<{
16
+ resource: z.ZodLiteral<"task-index">;
17
+ compactAvatars: z.ZodOptional<z.ZodBoolean>;
18
+ avatarVersions: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
19
+ contractVersion: z.ZodLiteral<2>;
20
+ knownVersion: z.ZodOptional<z.ZodString>;
21
+ }, "strict", z.ZodTypeAny, {
22
+ resource?: "task-index";
23
+ contractVersion?: 2;
24
+ knownVersion?: string;
25
+ compactAvatars?: boolean;
26
+ avatarVersions?: string[];
27
+ }, {
28
+ resource?: "task-index";
29
+ contractVersion?: 2;
30
+ knownVersion?: string;
31
+ compactAvatars?: boolean;
32
+ avatarVersions?: string[];
33
+ }>, z.ZodObject<{
34
+ after: z.ZodOptional<z.ZodString>;
35
+ limit: z.ZodDefault<z.ZodNumber>;
36
+ resource: z.ZodLiteral<"executions">;
37
+ taskIds: z.ZodArray<z.ZodString, "many">;
38
+ contractVersion: z.ZodLiteral<2>;
39
+ knownVersion: z.ZodOptional<z.ZodString>;
40
+ }, "strict", z.ZodTypeAny, {
41
+ resource?: "executions";
42
+ taskIds?: string[];
43
+ limit?: number;
44
+ contractVersion?: 2;
45
+ knownVersion?: string;
46
+ after?: string;
47
+ }, {
48
+ resource?: "executions";
49
+ taskIds?: string[];
50
+ limit?: number;
51
+ contractVersion?: 2;
52
+ knownVersion?: string;
53
+ after?: string;
54
+ }>, z.ZodObject<{
55
+ resource: z.ZodLiteral<"task-detail">;
56
+ taskId: z.ZodString;
57
+ contractVersion: z.ZodLiteral<2>;
58
+ knownVersion: z.ZodOptional<z.ZodString>;
59
+ }, "strict", z.ZodTypeAny, {
60
+ resource?: "task-detail";
61
+ taskId?: string;
62
+ contractVersion?: 2;
63
+ knownVersion?: string;
64
+ }, {
65
+ resource?: "task-detail";
66
+ taskId?: string;
67
+ contractVersion?: 2;
68
+ knownVersion?: string;
69
+ }>, z.ZodObject<{
70
+ resource: z.ZodLiteral<"execution-detail">;
71
+ taskId: z.ZodString;
72
+ executionId: z.ZodString;
73
+ contractVersion: z.ZodLiteral<2>;
74
+ knownVersion: z.ZodOptional<z.ZodString>;
75
+ }, "strict", z.ZodTypeAny, {
76
+ executionId?: string;
77
+ resource?: "execution-detail";
78
+ taskId?: string;
79
+ contractVersion?: 2;
80
+ knownVersion?: string;
81
+ }, {
82
+ executionId?: string;
83
+ resource?: "execution-detail";
84
+ taskId?: string;
85
+ contractVersion?: 2;
86
+ knownVersion?: string;
87
+ }>, z.ZodObject<{
88
+ resource: z.ZodLiteral<"execution-artifacts">;
89
+ taskId: z.ZodString;
90
+ executionId: z.ZodString;
91
+ contractVersion: z.ZodLiteral<2>;
92
+ knownVersion: z.ZodOptional<z.ZodString>;
93
+ }, "strict", z.ZodTypeAny, {
94
+ executionId?: string;
95
+ resource?: "execution-artifacts";
96
+ taskId?: string;
97
+ contractVersion?: 2;
98
+ knownVersion?: string;
99
+ }, {
100
+ executionId?: string;
101
+ resource?: "execution-artifacts";
102
+ taskId?: string;
103
+ contractVersion?: 2;
104
+ knownVersion?: string;
105
+ }>, z.ZodObject<{
106
+ resource: z.ZodLiteral<"execution-result">;
107
+ taskId: z.ZodString;
108
+ executionId: z.ZodString;
109
+ expectedRevision: z.ZodNumber;
110
+ offset: z.ZodDefault<z.ZodNumber>;
111
+ limit: z.ZodDefault<z.ZodNumber>;
112
+ contractVersion: z.ZodLiteral<2>;
113
+ knownVersion: z.ZodOptional<z.ZodString>;
114
+ }, "strict", z.ZodTypeAny, {
115
+ executionId?: string;
116
+ resource?: "execution-result";
117
+ taskId?: string;
118
+ offset?: number;
119
+ expectedRevision?: number;
120
+ limit?: number;
121
+ contractVersion?: 2;
122
+ knownVersion?: string;
123
+ }, {
124
+ executionId?: string;
125
+ resource?: "execution-result";
126
+ taskId?: string;
127
+ offset?: number;
128
+ expectedRevision?: number;
129
+ limit?: number;
130
+ contractVersion?: 2;
131
+ knownVersion?: string;
132
+ }>]>;
133
+ export type ProjectTaskViewQuery = z.output<typeof projectTaskViewQuerySchema>;
@@ -664,3 +664,15 @@ export interface AppPlatformStatus {
664
664
  }>;
665
665
  }>;
666
666
  }
667
+ /** Storage owned by the current tenant + organization, shared by all members and Apps. */
668
+ export interface AppPlatformStorageUsage {
669
+ limitBytes: number;
670
+ snapshot: {
671
+ fileBytes: number;
672
+ databaseBytes: number;
673
+ usedBytes: number;
674
+ measuredAt: string;
675
+ stale: boolean;
676
+ refreshPending: boolean;
677
+ } | null;
678
+ }