@sixb/client 0.2.3 → 0.2.6

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 (49) hide show
  1. package/dist/agent-streams.d.ts +11 -2
  2. package/dist/agent-streams.d.ts.map +1 -1
  3. package/dist/artifact-live.js +1 -1
  4. package/dist/browser.js +1 -1
  5. package/dist/{chunk-ktqfenfd.js → chunk-3dxa8d3r.js} +46 -6
  6. package/dist/chunk-3dxa8d3r.js.map +10 -0
  7. package/dist/{chunk-90q7wa43.js → chunk-4t68c4gf.js} +10 -3
  8. package/dist/{chunk-90q7wa43.js.map → chunk-4t68c4gf.js.map} +3 -3
  9. package/dist/{chunk-bgpzb1fn.js → chunk-6caavk8p.js} +1 -1
  10. package/dist/{chunk-seeyb9k9.js → chunk-pzz6gtn5.js} +2 -2
  11. package/dist/{chunk-zerhr00d.js → chunk-vydypkf1.js} +98 -2
  12. package/dist/chunk-vydypkf1.js.map +10 -0
  13. package/dist/connectors/connection.d.ts +12 -0
  14. package/dist/connectors/connection.d.ts.map +1 -1
  15. package/dist/connectors/index.d.ts +1 -1
  16. package/dist/connectors/index.d.ts.map +1 -1
  17. package/dist/connectors/queries.d.ts.map +1 -1
  18. package/dist/generated/@tanstack/react-query.gen.d.ts +6678 -4623
  19. package/dist/generated/@tanstack/react-query.gen.d.ts.map +1 -1
  20. package/dist/generated/index.d.ts +2 -2
  21. package/dist/generated/index.d.ts.map +1 -1
  22. package/dist/generated/sdk.gen.d.ts +58 -6
  23. package/dist/generated/sdk.gen.d.ts.map +1 -1
  24. package/dist/generated/types.gen.d.ts +2468 -227
  25. package/dist/generated/types.gen.d.ts.map +1 -1
  26. package/dist/hooks.js +180 -6
  27. package/dist/hooks.js.map +4 -4
  28. package/dist/index.js +26 -6
  29. package/dist/index.js.map +1 -1
  30. package/dist/logs.js +3 -3
  31. package/dist/models.js +23 -3
  32. package/dist/models.js.map +1 -1
  33. package/dist/query.js +2 -2
  34. package/dist/users-hooks.d.ts.map +1 -1
  35. package/dist/ws-socket.d.ts +2 -0
  36. package/dist/ws-socket.d.ts.map +1 -1
  37. package/package.json +2 -2
  38. package/src/agent-streams.ts +23 -0
  39. package/src/connectors/connection.ts +59 -0
  40. package/src/connectors/index.ts +1 -0
  41. package/src/generated/@tanstack/react-query.gen.ts +319 -5
  42. package/src/generated/index.ts +55 -0
  43. package/src/generated/sdk.gen.ts +235 -5
  44. package/src/generated/types.gen.ts +3408 -187
  45. package/src/ws-socket.ts +62 -7
  46. package/dist/chunk-ktqfenfd.js.map +0 -10
  47. package/dist/chunk-zerhr00d.js.map +0 -10
  48. /package/dist/{chunk-bgpzb1fn.js.map → chunk-6caavk8p.js.map} +0 -0
  49. /package/dist/{chunk-seeyb9k9.js.map → chunk-pzz6gtn5.js.map} +0 -0
@@ -88,7 +88,7 @@ export type ObjectQueryFacetsResponse = {
88
88
  export type ArtifactErrorResponse = {
89
89
  error: string;
90
90
  /**
91
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
91
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
92
92
  */
93
93
  code?: string;
94
94
  /**
@@ -1995,6 +1995,10 @@ export type GetAiAccountingOverviewData = {
1995
1995
  */
1996
1996
  kind?: "language" | "image" | "video" | "embedding" | "decision" | "transcription" | "speech" | "reranking" | "web-search";
1997
1997
  bucket: "hour" | "day" | "week";
1998
+ /**
1999
+ * The IANA time zone whose days, weeks or hours the periods follow, such as America/New_York; UTC when absent
2000
+ */
2001
+ timeZone?: string;
1998
2002
  };
1999
2003
  url: "/api/ai/accounting/overview";
2000
2004
  };
@@ -4100,6 +4104,12 @@ export type TranscribeAudioResponses = {
4100
4104
  reason?: string;
4101
4105
  };
4102
4106
  text: string;
4107
+ words?: Array<{
4108
+ text: string;
4109
+ startMs: number;
4110
+ endMs: number;
4111
+ speaker?: string;
4112
+ }>;
4103
4113
  };
4104
4114
  };
4105
4115
  export type TranscribeAudioResponse = TranscribeAudioResponses[keyof TranscribeAudioResponses];
@@ -5963,6 +5973,7 @@ export type ListSyncsResponses = {
5963
5973
  id: string;
5964
5974
  projectId: string;
5965
5975
  syncId: string;
5976
+ connectionId?: string;
5966
5977
  datasetId: string;
5967
5978
  mode: "snapshot" | "append" | "merge";
5968
5979
  status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
@@ -5978,7 +5989,7 @@ export type ListSyncsResponses = {
5978
5989
  expectedLatestVersionId?: string;
5979
5990
  commitMessage?: string;
5980
5991
  error?: {
5981
- code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "sync.execution_failed";
5992
+ code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "sync.execution_failed" | "connector.authorization_required";
5982
5993
  message: string;
5983
5994
  retryable: boolean;
5984
5995
  at: string;
@@ -5993,6 +6004,14 @@ export type ListSyncsResponses = {
5993
6004
  truncated?: true;
5994
6005
  };
5995
6006
  } | null;
6007
+ accounts?: {
6008
+ total: number;
6009
+ running: number;
6010
+ needsReconnecting: number;
6011
+ failing: number;
6012
+ synced: number;
6013
+ lastSyncedAt?: string;
6014
+ };
5996
6015
  }>;
5997
6016
  };
5998
6017
  export type ListSyncsResponse = ListSyncsResponses[keyof ListSyncsResponses];
@@ -6049,6 +6068,7 @@ export type GetSyncResponses = {
6049
6068
  id: string;
6050
6069
  projectId: string;
6051
6070
  syncId: string;
6071
+ connectionId?: string;
6052
6072
  datasetId: string;
6053
6073
  mode: "snapshot" | "append" | "merge";
6054
6074
  status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
@@ -6064,7 +6084,7 @@ export type GetSyncResponses = {
6064
6084
  expectedLatestVersionId?: string;
6065
6085
  commitMessage?: string;
6066
6086
  error?: {
6067
- code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "sync.execution_failed";
6087
+ code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "sync.execution_failed" | "connector.authorization_required";
6068
6088
  message: string;
6069
6089
  retryable: boolean;
6070
6090
  at: string;
@@ -6079,14 +6099,142 @@ export type GetSyncResponses = {
6079
6099
  truncated?: true;
6080
6100
  };
6081
6101
  } | null;
6102
+ accounts?: {
6103
+ total: number;
6104
+ running: number;
6105
+ needsReconnecting: number;
6106
+ failing: number;
6107
+ synced: number;
6108
+ lastSyncedAt?: string;
6109
+ };
6082
6110
  };
6083
6111
  };
6084
6112
  export type GetSyncResponse = GetSyncResponses[keyof GetSyncResponses];
6113
+ export type ListConnectorAccountsData = {
6114
+ body?: never;
6115
+ path: {
6116
+ connectorId: string;
6117
+ };
6118
+ query?: never;
6119
+ url: "/api/connectors/{connectorId}/accounts";
6120
+ };
6121
+ export type ListConnectorAccountsResponses = {
6122
+ /**
6123
+ * Response for status 200
6124
+ */
6125
+ 200: {
6126
+ accounts: Array<{
6127
+ connection: {
6128
+ id: string;
6129
+ owner: {
6130
+ type: "project";
6131
+ } | {
6132
+ type: "user";
6133
+ id: string;
6134
+ };
6135
+ slot: string;
6136
+ account: {
6137
+ id: string;
6138
+ label: string;
6139
+ };
6140
+ };
6141
+ latestRuns: Array<{
6142
+ id: string;
6143
+ projectId: string;
6144
+ syncId: string;
6145
+ connectionId?: string;
6146
+ datasetId: string;
6147
+ mode: "snapshot" | "append" | "merge";
6148
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
6149
+ attempt: number;
6150
+ queuedAt: string;
6151
+ startedAt?: string;
6152
+ finishedAt?: string;
6153
+ rowsRead?: number;
6154
+ output?: {
6155
+ datasetId: string;
6156
+ versionId: string;
6157
+ };
6158
+ expectedLatestVersionId?: string;
6159
+ commitMessage?: string;
6160
+ error?: {
6161
+ code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "sync.execution_failed" | "connector.authorization_required";
6162
+ message: string;
6163
+ retryable: boolean;
6164
+ at: string;
6165
+ /**
6166
+ * Any JSON-compatible value.
6167
+ */
6168
+ details?: string | number | boolean | Array<unknown> | {
6169
+ [key: string]: unknown;
6170
+ } | null;
6171
+ httpStatus?: number;
6172
+ redacted?: true;
6173
+ truncated?: true;
6174
+ };
6175
+ }>;
6176
+ }>;
6177
+ };
6178
+ };
6179
+ export type ListConnectorAccountsResponse = ListConnectorAccountsResponses[keyof ListConnectorAccountsResponses];
6180
+ export type ListConnectorConnectionSyncRunsData = {
6181
+ body?: never;
6182
+ path: {
6183
+ connectorId: string;
6184
+ connectionId: string;
6185
+ };
6186
+ query?: never;
6187
+ url: "/api/connectors/{connectorId}/connections/{connectionId}/sync-runs";
6188
+ };
6189
+ export type ListConnectorConnectionSyncRunsResponses = {
6190
+ /**
6191
+ * Response for status 200
6192
+ */
6193
+ 200: {
6194
+ runs: Array<{
6195
+ id: string;
6196
+ projectId: string;
6197
+ syncId: string;
6198
+ connectionId?: string;
6199
+ datasetId: string;
6200
+ mode: "snapshot" | "append" | "merge";
6201
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
6202
+ attempt: number;
6203
+ queuedAt: string;
6204
+ startedAt?: string;
6205
+ finishedAt?: string;
6206
+ rowsRead?: number;
6207
+ output?: {
6208
+ datasetId: string;
6209
+ versionId: string;
6210
+ };
6211
+ expectedLatestVersionId?: string;
6212
+ commitMessage?: string;
6213
+ error?: {
6214
+ code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "sync.execution_failed" | "connector.authorization_required";
6215
+ message: string;
6216
+ retryable: boolean;
6217
+ at: string;
6218
+ /**
6219
+ * Any JSON-compatible value.
6220
+ */
6221
+ details?: string | number | boolean | Array<unknown> | {
6222
+ [key: string]: unknown;
6223
+ } | null;
6224
+ httpStatus?: number;
6225
+ redacted?: true;
6226
+ truncated?: true;
6227
+ };
6228
+ }>;
6229
+ };
6230
+ };
6231
+ export type ListConnectorConnectionSyncRunsResponse = ListConnectorConnectionSyncRunsResponses[keyof ListConnectorConnectionSyncRunsResponses];
6085
6232
  export type ListSyncRunsData = {
6086
6233
  body?: never;
6087
6234
  path?: never;
6088
6235
  query?: {
6089
6236
  syncId?: string;
6237
+ connectionId?: string;
6090
6238
  datasetId?: string;
6091
6239
  status?: "queued" | "running" | "succeeded" | "failed" | "cancelled";
6092
6240
  startedAfter?: string;
@@ -6121,6 +6269,7 @@ export type ListSyncRunsResponses = {
6121
6269
  id: string;
6122
6270
  projectId: string;
6123
6271
  syncId: string;
6272
+ connectionId?: string;
6124
6273
  datasetId: string;
6125
6274
  mode: "snapshot" | "append" | "merge";
6126
6275
  status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
@@ -6136,7 +6285,7 @@ export type ListSyncRunsResponses = {
6136
6285
  expectedLatestVersionId?: string;
6137
6286
  commitMessage?: string;
6138
6287
  error?: {
6139
- code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "sync.execution_failed";
6288
+ code: "internal.unexpected" | "runtime.cancelled" | "queue.enqueue_failed" | "sync.execution_failed" | "connector.authorization_required";
6140
6289
  message: string;
6141
6290
  retryable: boolean;
6142
6291
  at: string;
@@ -6158,6 +6307,7 @@ export type ListSyncRunsResponses = {
6158
6307
  export type ListSyncRunsResponse = ListSyncRunsResponses[keyof ListSyncRunsResponses];
6159
6308
  export type RequestSyncRunData = {
6160
6309
  body: {
6310
+ connectionId?: string;
6161
6311
  expectedLatestVersionId?: string;
6162
6312
  commitMessage?: string;
6163
6313
  };
@@ -6193,10 +6343,13 @@ export type RequestSyncRunResponses = {
6193
6343
  * Response for status 202
6194
6344
  */
6195
6345
  202: {
6196
- runId: string;
6197
- jobId: string;
6198
- syncId: string;
6199
- queuedAt: string;
6346
+ runs: Array<{
6347
+ runId: string;
6348
+ jobId: string;
6349
+ syncId: string;
6350
+ connectionId?: string;
6351
+ queuedAt: string;
6352
+ }>;
6200
6353
  };
6201
6354
  };
6202
6355
  export type RequestSyncRunResponse = RequestSyncRunResponses[keyof RequestSyncRunResponses];
@@ -9476,6 +9629,10 @@ export type GetObjectLineageResponses = {
9476
9629
  type: "ontology.indexVectors";
9477
9630
  indexingId: string;
9478
9631
  };
9632
+ } | {
9633
+ type: "script";
9634
+ runId: string;
9635
+ path: string;
9479
9636
  };
9480
9637
  /**
9481
9638
  * Absent for a direct write, and for an Action run the caller cannot view.
@@ -9516,6 +9673,10 @@ export type GetObjectLineageResponses = {
9516
9673
  type: "ontology.indexVectors";
9517
9674
  indexingId: string;
9518
9675
  };
9676
+ } | {
9677
+ type: "script";
9678
+ runId: string;
9679
+ path: string;
9519
9680
  };
9520
9681
  } | {
9521
9682
  kind: "identity";
@@ -10577,6 +10738,24 @@ export type ListAgentThreadsResponses = {
10577
10738
  messageCount: number;
10578
10739
  createdAt: string;
10579
10740
  updatedAt: string;
10741
+ read?: {
10742
+ threadId: string;
10743
+ throughSeq: number;
10744
+ headSeq: number;
10745
+ unread: number;
10746
+ readAt?: string;
10747
+ };
10748
+ lastRun?: {
10749
+ id: string;
10750
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
10751
+ finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "error" | "other" | "unknown";
10752
+ errorCode?: "internal.unexpected" | "runtime.cancelled" | "agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
10753
+ completedAt?: string;
10754
+ requestedBy?: {
10755
+ type: "user" | "serviceAccount";
10756
+ id: string;
10757
+ };
10758
+ };
10580
10759
  approvalMode?: "manual" | "accept-edits" | "auto";
10581
10760
  approvalModeSource?: "thread" | "default" | "fallback" | "run";
10582
10761
  }>;
@@ -10702,6 +10881,24 @@ export type CreateAgentThreadResponses = {
10702
10881
  messageCount: number;
10703
10882
  createdAt: string;
10704
10883
  updatedAt: string;
10884
+ read?: {
10885
+ threadId: string;
10886
+ throughSeq: number;
10887
+ headSeq: number;
10888
+ unread: number;
10889
+ readAt?: string;
10890
+ };
10891
+ lastRun?: {
10892
+ id: string;
10893
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
10894
+ finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "error" | "other" | "unknown";
10895
+ errorCode?: "internal.unexpected" | "runtime.cancelled" | "agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
10896
+ completedAt?: string;
10897
+ requestedBy?: {
10898
+ type: "user" | "serviceAccount";
10899
+ id: string;
10900
+ };
10901
+ };
10705
10902
  approvalMode?: "manual" | "accept-edits" | "auto";
10706
10903
  approvalModeSource?: "thread" | "default" | "fallback" | "run";
10707
10904
  };
@@ -10806,6 +11003,24 @@ export type GetAgentThreadResponses = {
10806
11003
  messageCount: number;
10807
11004
  createdAt: string;
10808
11005
  updatedAt: string;
11006
+ read?: {
11007
+ threadId: string;
11008
+ throughSeq: number;
11009
+ headSeq: number;
11010
+ unread: number;
11011
+ readAt?: string;
11012
+ };
11013
+ lastRun?: {
11014
+ id: string;
11015
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
11016
+ finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "error" | "other" | "unknown";
11017
+ errorCode?: "internal.unexpected" | "runtime.cancelled" | "agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
11018
+ completedAt?: string;
11019
+ requestedBy?: {
11020
+ type: "user" | "serviceAccount";
11021
+ id: string;
11022
+ };
11023
+ };
10809
11024
  approvalMode?: "manual" | "accept-edits" | "auto";
10810
11025
  approvalModeSource?: "thread" | "default" | "fallback" | "run";
10811
11026
  };
@@ -10931,6 +11146,24 @@ export type AddAgentThreadParticipantsResponses = {
10931
11146
  messageCount: number;
10932
11147
  createdAt: string;
10933
11148
  updatedAt: string;
11149
+ read?: {
11150
+ threadId: string;
11151
+ throughSeq: number;
11152
+ headSeq: number;
11153
+ unread: number;
11154
+ readAt?: string;
11155
+ };
11156
+ lastRun?: {
11157
+ id: string;
11158
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
11159
+ finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "error" | "other" | "unknown";
11160
+ errorCode?: "internal.unexpected" | "runtime.cancelled" | "agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
11161
+ completedAt?: string;
11162
+ requestedBy?: {
11163
+ type: "user" | "serviceAccount";
11164
+ id: string;
11165
+ };
11166
+ };
10934
11167
  approvalMode?: "manual" | "accept-edits" | "auto";
10935
11168
  approvalModeSource?: "thread" | "default" | "fallback" | "run";
10936
11169
  };
@@ -11094,6 +11327,24 @@ export type ForkAgentThreadResponses = {
11094
11327
  messageCount: number;
11095
11328
  createdAt: string;
11096
11329
  updatedAt: string;
11330
+ read?: {
11331
+ threadId: string;
11332
+ throughSeq: number;
11333
+ headSeq: number;
11334
+ unread: number;
11335
+ readAt?: string;
11336
+ };
11337
+ lastRun?: {
11338
+ id: string;
11339
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
11340
+ finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "error" | "other" | "unknown";
11341
+ errorCode?: "internal.unexpected" | "runtime.cancelled" | "agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
11342
+ completedAt?: string;
11343
+ requestedBy?: {
11344
+ type: "user" | "serviceAccount";
11345
+ id: string;
11346
+ };
11347
+ };
11097
11348
  approvalMode?: "manual" | "accept-edits" | "auto";
11098
11349
  approvalModeSource?: "thread" | "default" | "fallback" | "run";
11099
11350
  };
@@ -11208,31 +11459,53 @@ export type RecreateAgentThreadSandboxResponses = {
11208
11459
  messageCount: number;
11209
11460
  createdAt: string;
11210
11461
  updatedAt: string;
11462
+ read?: {
11463
+ threadId: string;
11464
+ throughSeq: number;
11465
+ headSeq: number;
11466
+ unread: number;
11467
+ readAt?: string;
11468
+ };
11469
+ lastRun?: {
11470
+ id: string;
11471
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
11472
+ finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "error" | "other" | "unknown";
11473
+ errorCode?: "internal.unexpected" | "runtime.cancelled" | "agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
11474
+ completedAt?: string;
11475
+ requestedBy?: {
11476
+ type: "user" | "serviceAccount";
11477
+ id: string;
11478
+ };
11479
+ };
11211
11480
  approvalMode?: "manual" | "accept-edits" | "auto";
11212
11481
  approvalModeSource?: "thread" | "default" | "fallback" | "run";
11213
11482
  };
11214
11483
  };
11215
11484
  export type RecreateAgentThreadSandboxResponse = RecreateAgentThreadSandboxResponses[keyof RecreateAgentThreadSandboxResponses];
11216
- export type ListAgentThreadMessagesData = {
11217
- body?: never;
11485
+ export type RestoreAgentThreadSandboxData = {
11486
+ body: {
11487
+ expectedSandboxName: string;
11488
+ };
11218
11489
  path: {
11219
11490
  threadId: string;
11220
11491
  };
11221
- query?: {
11222
- role?: "system" | "user" | "assistant";
11223
- limit?: string;
11224
- offset?: string;
11225
- order?: "asc" | "desc";
11226
- };
11227
- url: "/api/agent-threads/{threadId}/messages";
11492
+ query?: never;
11493
+ url: "/api/agent-threads/{threadId}/sandbox/restore";
11228
11494
  };
11229
- export type ListAgentThreadMessagesErrors = {
11495
+ export type RestoreAgentThreadSandboxErrors = {
11230
11496
  /**
11231
11497
  * Response for status 400
11232
11498
  */
11233
11499
  400: {
11234
11500
  error: string;
11235
11501
  };
11502
+ /**
11503
+ * Response for status 403
11504
+ */
11505
+ 403: {
11506
+ error: string;
11507
+ code?: string;
11508
+ };
11236
11509
  /**
11237
11510
  * Response for status 404
11238
11511
  */
@@ -11240,40 +11513,167 @@ export type ListAgentThreadMessagesErrors = {
11240
11513
  error: string;
11241
11514
  };
11242
11515
  /**
11243
- * Response for status 501
11516
+ * Response for status 409
11244
11517
  */
11245
- 501: {
11518
+ 409: {
11246
11519
  error: string;
11520
+ code?: string;
11247
11521
  };
11248
11522
  };
11249
- export type ListAgentThreadMessagesError = ListAgentThreadMessagesErrors[keyof ListAgentThreadMessagesErrors];
11250
- export type ListAgentThreadMessagesResponses = {
11523
+ export type RestoreAgentThreadSandboxError = RestoreAgentThreadSandboxErrors[keyof RestoreAgentThreadSandboxErrors];
11524
+ export type RestoreAgentThreadSandboxResponses = {
11251
11525
  /**
11252
11526
  * Response for status 200
11253
11527
  */
11254
11528
  200: {
11255
- messages: Array<{
11256
- id: string;
11257
- projectId: string;
11529
+ sandboxState?: {
11530
+ name: string;
11531
+ status: "new" | "busy" | "ready" | "blocked" | "unavailable";
11532
+ initialized: boolean;
11533
+ };
11534
+ id: string;
11535
+ projectId: string;
11536
+ kind: "conversation" | "subagent";
11537
+ parent?: {
11258
11538
  threadId: string;
11259
- runId: string | null;
11260
- role: "system" | "user" | "assistant";
11261
- authorPrincipal?: {
11539
+ spawnedBy: string;
11540
+ key: string;
11541
+ };
11542
+ ownerPrincipal: {
11543
+ type: "user" | "serviceAccount" | "system";
11544
+ id: string;
11545
+ };
11546
+ owner: {
11547
+ type: "user" | "serviceAccount" | "system";
11548
+ id: string;
11549
+ displayName?: string;
11550
+ };
11551
+ participants: Array<{
11552
+ principal: {
11553
+ type: "user";
11554
+ id: string;
11555
+ displayName?: string;
11556
+ };
11557
+ addedAt: string;
11558
+ addedBy: {
11262
11559
  type: "user" | "serviceAccount" | "system";
11263
11560
  id: string;
11264
11561
  };
11265
- seq: number;
11266
- parts: Array<{
11267
- type: "text";
11268
- text: string;
11269
- /**
11270
- * Any JSON-compatible value.
11271
- */
11272
- providerMetadata?: string | number | boolean | Array<unknown> | {
11273
- [key: string]: unknown;
11274
- } | null;
11275
- } | {
11276
- type: "continuation";
11562
+ }>;
11563
+ title?: string;
11564
+ sandboxParams?: {
11565
+ [key: string]: string | number | boolean | Array<unknown> | {
11566
+ [key: string]: unknown;
11567
+ } | null;
11568
+ };
11569
+ runsOn?: "computer";
11570
+ computer?: {
11571
+ id: string;
11572
+ name: string;
11573
+ folder: string;
11574
+ online: boolean;
11575
+ };
11576
+ backgroundCommands?: Array<{
11577
+ threadId: string;
11578
+ id: string;
11579
+ command: string;
11580
+ status: "running" | "exited" | "stopped";
11581
+ exitCode?: number;
11582
+ startedAt: string;
11583
+ endedAt?: string;
11584
+ stopping?: boolean;
11585
+ }>;
11586
+ movedAt?: string;
11587
+ status: "active" | "archived";
11588
+ activeRunId: string | null;
11589
+ lastMessageAt?: string;
11590
+ messageCount: number;
11591
+ createdAt: string;
11592
+ updatedAt: string;
11593
+ read?: {
11594
+ threadId: string;
11595
+ throughSeq: number;
11596
+ headSeq: number;
11597
+ unread: number;
11598
+ readAt?: string;
11599
+ };
11600
+ lastRun?: {
11601
+ id: string;
11602
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
11603
+ finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "error" | "other" | "unknown";
11604
+ errorCode?: "internal.unexpected" | "runtime.cancelled" | "agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
11605
+ completedAt?: string;
11606
+ requestedBy?: {
11607
+ type: "user" | "serviceAccount";
11608
+ id: string;
11609
+ };
11610
+ };
11611
+ approvalMode?: "manual" | "accept-edits" | "auto";
11612
+ approvalModeSource?: "thread" | "default" | "fallback" | "run";
11613
+ };
11614
+ };
11615
+ export type RestoreAgentThreadSandboxResponse = RestoreAgentThreadSandboxResponses[keyof RestoreAgentThreadSandboxResponses];
11616
+ export type ListAgentThreadMessagesData = {
11617
+ body?: never;
11618
+ path: {
11619
+ threadId: string;
11620
+ };
11621
+ query?: {
11622
+ role?: "system" | "user" | "assistant";
11623
+ limit?: string;
11624
+ offset?: string;
11625
+ order?: "asc" | "desc";
11626
+ };
11627
+ url: "/api/agent-threads/{threadId}/messages";
11628
+ };
11629
+ export type ListAgentThreadMessagesErrors = {
11630
+ /**
11631
+ * Response for status 400
11632
+ */
11633
+ 400: {
11634
+ error: string;
11635
+ };
11636
+ /**
11637
+ * Response for status 404
11638
+ */
11639
+ 404: {
11640
+ error: string;
11641
+ };
11642
+ /**
11643
+ * Response for status 501
11644
+ */
11645
+ 501: {
11646
+ error: string;
11647
+ };
11648
+ };
11649
+ export type ListAgentThreadMessagesError = ListAgentThreadMessagesErrors[keyof ListAgentThreadMessagesErrors];
11650
+ export type ListAgentThreadMessagesResponses = {
11651
+ /**
11652
+ * Response for status 200
11653
+ */
11654
+ 200: {
11655
+ messages: Array<{
11656
+ id: string;
11657
+ projectId: string;
11658
+ threadId: string;
11659
+ runId: string | null;
11660
+ role: "system" | "user" | "assistant";
11661
+ authorPrincipal?: {
11662
+ type: "user" | "serviceAccount" | "system";
11663
+ id: string;
11664
+ };
11665
+ seq: number;
11666
+ parts: Array<{
11667
+ type: "text";
11668
+ text: string;
11669
+ /**
11670
+ * Any JSON-compatible value.
11671
+ */
11672
+ providerMetadata?: string | number | boolean | Array<unknown> | {
11673
+ [key: string]: unknown;
11674
+ } | null;
11675
+ } | {
11676
+ type: "continuation";
11277
11677
  } | {
11278
11678
  type: "approval-outcome";
11279
11679
  approvalId: string;
@@ -11546,6 +11946,7 @@ export type PostAgentThreadMessageData = {
11546
11946
  origin: "ambient" | "explicit";
11547
11947
  }>;
11548
11948
  messageId?: string;
11949
+ delivery?: "auto" | "steer" | "queue" | "send_now";
11549
11950
  };
11550
11951
  path: {
11551
11952
  threadId: string;
@@ -11610,7 +12011,7 @@ export type PostAgentThreadMessageResponses = {
11610
12011
  * Response for status 202
11611
12012
  */
11612
12013
  202: {
11613
- run: {
12014
+ run?: {
11614
12015
  id: string;
11615
12016
  projectId: string;
11616
12017
  kind: "conversation" | "subagent";
@@ -11632,6 +12033,10 @@ export type PostAgentThreadMessageResponses = {
11632
12033
  };
11633
12034
  approvalMode?: "manual" | "accept-edits" | "auto";
11634
12035
  runsOn?: "computer";
12036
+ computer?: {
12037
+ id: string;
12038
+ folder: string;
12039
+ };
11635
12040
  modelId?: string;
11636
12041
  finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "error" | "other" | "unknown";
11637
12042
  usage?: {
@@ -11688,113 +12093,1389 @@ export type PostAgentThreadMessageResponses = {
11688
12093
  /**
11689
12094
  * Any JSON-compatible value.
11690
12095
  */
11691
- details?: string | number | boolean | Array<unknown> | {
12096
+ details?: string | number | boolean | Array<unknown> | {
12097
+ [key: string]: unknown;
12098
+ } | null;
12099
+ httpStatus?: number;
12100
+ redacted?: true;
12101
+ truncated?: true;
12102
+ };
12103
+ attempt: number;
12104
+ streamId: string;
12105
+ createdAt: string;
12106
+ startedAt?: string;
12107
+ completedAt?: string;
12108
+ };
12109
+ item?: {
12110
+ id: string;
12111
+ projectId: string;
12112
+ threadId: string;
12113
+ messageId: string;
12114
+ seq: number;
12115
+ authorPrincipal: {
12116
+ type: "user" | "serviceAccount" | "system";
12117
+ id: string;
12118
+ };
12119
+ mode: "steer" | "queue";
12120
+ parts: Array<{
12121
+ type: "text";
12122
+ text: string;
12123
+ /**
12124
+ * Any JSON-compatible value.
12125
+ */
12126
+ providerMetadata?: string | number | boolean | Array<unknown> | {
12127
+ [key: string]: unknown;
12128
+ } | null;
12129
+ } | {
12130
+ type: "continuation";
12131
+ } | {
12132
+ type: "approval-outcome";
12133
+ approvalId: string;
12134
+ status: "approved" | "denied" | "cancelled" | "superseded" | "expired";
12135
+ call: {
12136
+ kind: "action";
12137
+ actionId: string;
12138
+ subject: {
12139
+ kind: "none";
12140
+ } | {
12141
+ kind: "object";
12142
+ objectTypeId: string;
12143
+ primaryId: string;
12144
+ };
12145
+ } | {
12146
+ kind: "workflow";
12147
+ workflowId: string;
12148
+ };
12149
+ outcome?: {
12150
+ kind: "action-run";
12151
+ runId: string;
12152
+ status: "succeeded" | "failed";
12153
+ error?: {
12154
+ code: "internal.unexpected" | "runtime.cancelled" | "action.phase_failed" | "action.read_conflict" | "action.rejected" | "action.timeout" | "object.unique_violation";
12155
+ message: string;
12156
+ retryable: boolean;
12157
+ at: string;
12158
+ details: {
12159
+ actionId: string;
12160
+ runId: string;
12161
+ phase: "validation" | "writeback" | "edits" | "commit" | "effects";
12162
+ };
12163
+ httpStatus?: number;
12164
+ redacted?: true;
12165
+ truncated?: true;
12166
+ };
12167
+ } | {
12168
+ kind: "workflow-run";
12169
+ runId: string;
12170
+ queuedAt: string;
12171
+ } | {
12172
+ kind: "error";
12173
+ error: {
12174
+ code: "action.phase_failed" | "action.read_conflict" | "action.rejected" | "action.run_in_progress" | "action.timeout" | "agent.approval_authority_lost" | "agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "connector.adapter_invalid" | "connector.authorization_invalid" | "connector.authorization_required" | "connector.configuration_invalid" | "connector.credentials_unavailable" | "connector.not_found" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.provider_failed" | "connector.provider_unavailable" | "connector.replacement_required" | "connector.revocation_pending" | "dataset.change_refused" | "dataset.not_found" | "dataset.version_incompatible" | "dataset.version_not_found" | "dataset.version_read_inconsistent" | "event.delivery_failed" | "internal.unexpected" | "queue.enqueue_failed" | "object.not_found" | "object.unique_violation" | "pipeline.step_failed" | "projection.definition_invalid" | "projection.execution_failed" | "projection.not_found" | "projection.run_already_terminal" | "projection.run_identity_mismatch" | "runtime.cancelled" | "runtime.stopping" | "vector.model_unavailable" | "vector.response_invalid" | "vector.outcome_unknown" | "storage.unavailable" | "sync.execution_failed" | "webhook.delivery_failed" | "webhook.delivery_rejected" | "workflow.node_failed";
12175
+ message: string;
12176
+ retryable: boolean;
12177
+ at: string;
12178
+ /**
12179
+ * Any JSON-compatible value.
12180
+ */
12181
+ details?: string | number | boolean | Array<unknown> | {
12182
+ [key: string]: unknown;
12183
+ } | null;
12184
+ httpStatus?: number;
12185
+ redacted?: true;
12186
+ truncated?: true;
12187
+ };
12188
+ };
12189
+ caller?: {
12190
+ runId: string;
12191
+ key: string;
12192
+ continues?: true;
12193
+ };
12194
+ } | {
12195
+ type: "reasoning";
12196
+ text: string;
12197
+ /**
12198
+ * Any JSON-compatible value.
12199
+ */
12200
+ providerMetadata?: string | number | boolean | Array<unknown> | {
12201
+ [key: string]: unknown;
12202
+ } | null;
12203
+ } | {
12204
+ type: "step-start";
12205
+ } | {
12206
+ type: "file";
12207
+ fileRef: {
12208
+ blobId: string;
12209
+ digest: string;
12210
+ sizeBytes: number;
12211
+ fileName?: string;
12212
+ mediaType?: string;
12213
+ logicalPath?: string;
12214
+ };
12215
+ /**
12216
+ * Any JSON-compatible value.
12217
+ */
12218
+ providerMetadata?: string | number | boolean | Array<unknown> | {
12219
+ [key: string]: unknown;
12220
+ } | null;
12221
+ } | {
12222
+ type: "provider-state";
12223
+ providerId: string;
12224
+ /**
12225
+ * Any JSON-compatible value.
12226
+ */
12227
+ data: string | number | boolean | Array<unknown> | {
12228
+ [key: string]: unknown;
12229
+ } | null;
12230
+ } | {
12231
+ context: {
12232
+ kind: "object";
12233
+ ref: {
12234
+ objectTypeId: string;
12235
+ primaryId: string;
12236
+ };
12237
+ /**
12238
+ * Shown in the chat instead of the object's title. Never sent to the model.
12239
+ */
12240
+ label?: string;
12241
+ } | {
12242
+ kind: "app-state";
12243
+ id: string;
12244
+ label: string;
12245
+ description: string;
12246
+ /**
12247
+ * Any JSON-compatible value.
12248
+ */
12249
+ value: string | number | boolean | Array<unknown> | {
12250
+ [key: string]: unknown;
12251
+ } | null;
12252
+ };
12253
+ origin: "ambient" | "explicit";
12254
+ type: "context";
12255
+ } | {
12256
+ type: "tool-call";
12257
+ toolCallId: string;
12258
+ toolName: string;
12259
+ dynamic?: boolean;
12260
+ providerExecuted?: boolean;
12261
+ /**
12262
+ * Any JSON-compatible value.
12263
+ */
12264
+ input: string | number | boolean | Array<unknown> | {
12265
+ [key: string]: unknown;
12266
+ } | null;
12267
+ /**
12268
+ * Any JSON-compatible value.
12269
+ */
12270
+ providerMetadata?: string | number | boolean | Array<unknown> | {
12271
+ [key: string]: unknown;
12272
+ } | null;
12273
+ state: "output-available";
12274
+ /**
12275
+ * Any JSON-compatible value.
12276
+ */
12277
+ output: string | number | boolean | Array<unknown> | {
12278
+ [key: string]: unknown;
12279
+ } | null;
12280
+ outputFile?: {
12281
+ fileRef: {
12282
+ blobId: string;
12283
+ digest: string;
12284
+ sizeBytes: number;
12285
+ fileName?: string;
12286
+ mediaType?: string;
12287
+ logicalPath?: string;
12288
+ };
12289
+ path: string;
12290
+ };
12291
+ } | {
12292
+ type: "tool-call";
12293
+ toolCallId: string;
12294
+ toolName: string;
12295
+ dynamic?: boolean;
12296
+ providerExecuted?: boolean;
12297
+ /**
12298
+ * Any JSON-compatible value.
12299
+ */
12300
+ input: string | number | boolean | Array<unknown> | {
12301
+ [key: string]: unknown;
12302
+ } | null;
12303
+ /**
12304
+ * Any JSON-compatible value.
12305
+ */
12306
+ providerMetadata?: string | number | boolean | Array<unknown> | {
12307
+ [key: string]: unknown;
12308
+ } | null;
12309
+ state: "output-error";
12310
+ errorText: string;
12311
+ } | {
12312
+ type: "mail";
12313
+ id: string;
12314
+ from: "parent";
12315
+ kind: "message" | "answer";
12316
+ inReplyTo?: string;
12317
+ text: string;
12318
+ afterAnswer?: true;
12319
+ }>;
12320
+ spec?: {
12321
+ model?: {
12322
+ provider: string;
12323
+ modelId: string;
12324
+ };
12325
+ reasoning?: "provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
12326
+ budgetTokens: number;
12327
+ };
12328
+ approvalMode?: "manual" | "accept-edits" | "auto";
12329
+ };
12330
+ timeZone?: string;
12331
+ locale?: string;
12332
+ immediate?: boolean;
12333
+ replacesMessageId?: string;
12334
+ createdAt: string;
12335
+ updatedAt: string;
12336
+ };
12337
+ };
12338
+ };
12339
+ export type PostAgentThreadMessageResponse = PostAgentThreadMessageResponses[keyof PostAgentThreadMessageResponses];
12340
+ export type GetAgentMessageFileContentData = {
12341
+ body?: never;
12342
+ path: {
12343
+ threadId: string;
12344
+ messageId: string;
12345
+ };
12346
+ query: {
12347
+ path: string;
12348
+ disposition?: "inline" | "attachment";
12349
+ /**
12350
+ * Client cache key; the route still resolves the current file
12351
+ */
12352
+ v?: string;
12353
+ };
12354
+ url: "/api/agent-threads/{threadId}/messages/{messageId}/files/content";
12355
+ };
12356
+ export type GetAgentMessageFileContentErrors = {
12357
+ /**
12358
+ * Response for status 400
12359
+ */
12360
+ 400: ErrorResponse;
12361
+ /**
12362
+ * Response for status 404
12363
+ */
12364
+ 404: ErrorResponse;
12365
+ /**
12366
+ * Requested byte range is not satisfiable
12367
+ */
12368
+ 416: unknown;
12369
+ /**
12370
+ * The storage role backing this content is not configured
12371
+ */
12372
+ 501: ErrorResponse;
12373
+ };
12374
+ export type GetAgentMessageFileContentError = GetAgentMessageFileContentErrors[keyof GetAgentMessageFileContentErrors];
12375
+ export type GetAgentMessageFileContentResponses = {
12376
+ /**
12377
+ * File content
12378
+ */
12379
+ 200: Blob | File;
12380
+ /**
12381
+ * Partial file content
12382
+ */
12383
+ 206: Blob | File;
12384
+ };
12385
+ export type GetAgentMessageFileContentResponse = GetAgentMessageFileContentResponses[keyof GetAgentMessageFileContentResponses];
12386
+ export type HeadAgentMessageFileContentData = {
12387
+ body?: never;
12388
+ path: {
12389
+ threadId: string;
12390
+ messageId: string;
12391
+ };
12392
+ query: {
12393
+ path: string;
12394
+ disposition?: "inline" | "attachment";
12395
+ /**
12396
+ * Client cache key; the route still resolves the current file
12397
+ */
12398
+ v?: string;
12399
+ };
12400
+ url: "/api/agent-threads/{threadId}/messages/{messageId}/files/content";
12401
+ };
12402
+ export type HeadAgentMessageFileContentErrors = {
12403
+ /**
12404
+ * Response for status 400
12405
+ */
12406
+ 400: ErrorResponse;
12407
+ /**
12408
+ * Response for status 404
12409
+ */
12410
+ 404: ErrorResponse;
12411
+ /**
12412
+ * Requested byte range is not satisfiable
12413
+ */
12414
+ 416: unknown;
12415
+ /**
12416
+ * The storage role backing this content is not configured
12417
+ */
12418
+ 501: ErrorResponse;
12419
+ };
12420
+ export type HeadAgentMessageFileContentError = HeadAgentMessageFileContentErrors[keyof HeadAgentMessageFileContentErrors];
12421
+ export type HeadAgentMessageFileContentResponses = {
12422
+ /**
12423
+ * File content headers
12424
+ */
12425
+ 200: unknown;
12426
+ /**
12427
+ * Partial file content headers
12428
+ */
12429
+ 206: unknown;
12430
+ };
12431
+ export type ListAgentThreadInboxData = {
12432
+ body?: never;
12433
+ path: {
12434
+ threadId: string;
12435
+ };
12436
+ query?: never;
12437
+ url: "/api/agent-threads/{threadId}/inbox";
12438
+ };
12439
+ export type ListAgentThreadInboxErrors = {
12440
+ /**
12441
+ * Response for status 400
12442
+ */
12443
+ 400: {
12444
+ error: string;
12445
+ code?: string;
12446
+ };
12447
+ /**
12448
+ * Response for status 404
12449
+ */
12450
+ 404: {
12451
+ error: string;
12452
+ };
12453
+ /**
12454
+ * Response for status 501
12455
+ */
12456
+ 501: {
12457
+ error: string;
12458
+ };
12459
+ };
12460
+ export type ListAgentThreadInboxError = ListAgentThreadInboxErrors[keyof ListAgentThreadInboxErrors];
12461
+ export type ListAgentThreadInboxResponses = {
12462
+ /**
12463
+ * Response for status 200
12464
+ */
12465
+ 200: {
12466
+ items: Array<{
12467
+ id: string;
12468
+ projectId: string;
12469
+ threadId: string;
12470
+ messageId: string;
12471
+ seq: number;
12472
+ authorPrincipal: {
12473
+ type: "user" | "serviceAccount" | "system";
12474
+ id: string;
12475
+ };
12476
+ mode: "steer" | "queue";
12477
+ parts: Array<{
12478
+ type: "text";
12479
+ text: string;
12480
+ /**
12481
+ * Any JSON-compatible value.
12482
+ */
12483
+ providerMetadata?: string | number | boolean | Array<unknown> | {
12484
+ [key: string]: unknown;
12485
+ } | null;
12486
+ } | {
12487
+ type: "continuation";
12488
+ } | {
12489
+ type: "approval-outcome";
12490
+ approvalId: string;
12491
+ status: "approved" | "denied" | "cancelled" | "superseded" | "expired";
12492
+ call: {
12493
+ kind: "action";
12494
+ actionId: string;
12495
+ subject: {
12496
+ kind: "none";
12497
+ } | {
12498
+ kind: "object";
12499
+ objectTypeId: string;
12500
+ primaryId: string;
12501
+ };
12502
+ } | {
12503
+ kind: "workflow";
12504
+ workflowId: string;
12505
+ };
12506
+ outcome?: {
12507
+ kind: "action-run";
12508
+ runId: string;
12509
+ status: "succeeded" | "failed";
12510
+ error?: {
12511
+ code: "internal.unexpected" | "runtime.cancelled" | "action.phase_failed" | "action.read_conflict" | "action.rejected" | "action.timeout" | "object.unique_violation";
12512
+ message: string;
12513
+ retryable: boolean;
12514
+ at: string;
12515
+ details: {
12516
+ actionId: string;
12517
+ runId: string;
12518
+ phase: "validation" | "writeback" | "edits" | "commit" | "effects";
12519
+ };
12520
+ httpStatus?: number;
12521
+ redacted?: true;
12522
+ truncated?: true;
12523
+ };
12524
+ } | {
12525
+ kind: "workflow-run";
12526
+ runId: string;
12527
+ queuedAt: string;
12528
+ } | {
12529
+ kind: "error";
12530
+ error: {
12531
+ code: "action.phase_failed" | "action.read_conflict" | "action.rejected" | "action.run_in_progress" | "action.timeout" | "agent.approval_authority_lost" | "agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "connector.adapter_invalid" | "connector.authorization_invalid" | "connector.authorization_required" | "connector.configuration_invalid" | "connector.credentials_unavailable" | "connector.not_found" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.provider_failed" | "connector.provider_unavailable" | "connector.replacement_required" | "connector.revocation_pending" | "dataset.change_refused" | "dataset.not_found" | "dataset.version_incompatible" | "dataset.version_not_found" | "dataset.version_read_inconsistent" | "event.delivery_failed" | "internal.unexpected" | "queue.enqueue_failed" | "object.not_found" | "object.unique_violation" | "pipeline.step_failed" | "projection.definition_invalid" | "projection.execution_failed" | "projection.not_found" | "projection.run_already_terminal" | "projection.run_identity_mismatch" | "runtime.cancelled" | "runtime.stopping" | "vector.model_unavailable" | "vector.response_invalid" | "vector.outcome_unknown" | "storage.unavailable" | "sync.execution_failed" | "webhook.delivery_failed" | "webhook.delivery_rejected" | "workflow.node_failed";
12532
+ message: string;
12533
+ retryable: boolean;
12534
+ at: string;
12535
+ /**
12536
+ * Any JSON-compatible value.
12537
+ */
12538
+ details?: string | number | boolean | Array<unknown> | {
12539
+ [key: string]: unknown;
12540
+ } | null;
12541
+ httpStatus?: number;
12542
+ redacted?: true;
12543
+ truncated?: true;
12544
+ };
12545
+ };
12546
+ caller?: {
12547
+ runId: string;
12548
+ key: string;
12549
+ continues?: true;
12550
+ };
12551
+ } | {
12552
+ type: "reasoning";
12553
+ text: string;
12554
+ /**
12555
+ * Any JSON-compatible value.
12556
+ */
12557
+ providerMetadata?: string | number | boolean | Array<unknown> | {
12558
+ [key: string]: unknown;
12559
+ } | null;
12560
+ } | {
12561
+ type: "step-start";
12562
+ } | {
12563
+ type: "file";
12564
+ fileRef: {
12565
+ blobId: string;
12566
+ digest: string;
12567
+ sizeBytes: number;
12568
+ fileName?: string;
12569
+ mediaType?: string;
12570
+ logicalPath?: string;
12571
+ };
12572
+ /**
12573
+ * Any JSON-compatible value.
12574
+ */
12575
+ providerMetadata?: string | number | boolean | Array<unknown> | {
12576
+ [key: string]: unknown;
12577
+ } | null;
12578
+ } | {
12579
+ type: "provider-state";
12580
+ providerId: string;
12581
+ /**
12582
+ * Any JSON-compatible value.
12583
+ */
12584
+ data: string | number | boolean | Array<unknown> | {
12585
+ [key: string]: unknown;
12586
+ } | null;
12587
+ } | {
12588
+ context: {
12589
+ kind: "object";
12590
+ ref: {
12591
+ objectTypeId: string;
12592
+ primaryId: string;
12593
+ };
12594
+ /**
12595
+ * Shown in the chat instead of the object's title. Never sent to the model.
12596
+ */
12597
+ label?: string;
12598
+ } | {
12599
+ kind: "app-state";
12600
+ id: string;
12601
+ label: string;
12602
+ description: string;
12603
+ /**
12604
+ * Any JSON-compatible value.
12605
+ */
12606
+ value: string | number | boolean | Array<unknown> | {
12607
+ [key: string]: unknown;
12608
+ } | null;
12609
+ };
12610
+ origin: "ambient" | "explicit";
12611
+ type: "context";
12612
+ } | {
12613
+ type: "tool-call";
12614
+ toolCallId: string;
12615
+ toolName: string;
12616
+ dynamic?: boolean;
12617
+ providerExecuted?: boolean;
12618
+ /**
12619
+ * Any JSON-compatible value.
12620
+ */
12621
+ input: string | number | boolean | Array<unknown> | {
12622
+ [key: string]: unknown;
12623
+ } | null;
12624
+ /**
12625
+ * Any JSON-compatible value.
12626
+ */
12627
+ providerMetadata?: string | number | boolean | Array<unknown> | {
12628
+ [key: string]: unknown;
12629
+ } | null;
12630
+ state: "output-available";
12631
+ /**
12632
+ * Any JSON-compatible value.
12633
+ */
12634
+ output: string | number | boolean | Array<unknown> | {
12635
+ [key: string]: unknown;
12636
+ } | null;
12637
+ outputFile?: {
12638
+ fileRef: {
12639
+ blobId: string;
12640
+ digest: string;
12641
+ sizeBytes: number;
12642
+ fileName?: string;
12643
+ mediaType?: string;
12644
+ logicalPath?: string;
12645
+ };
12646
+ path: string;
12647
+ };
12648
+ } | {
12649
+ type: "tool-call";
12650
+ toolCallId: string;
12651
+ toolName: string;
12652
+ dynamic?: boolean;
12653
+ providerExecuted?: boolean;
12654
+ /**
12655
+ * Any JSON-compatible value.
12656
+ */
12657
+ input: string | number | boolean | Array<unknown> | {
12658
+ [key: string]: unknown;
12659
+ } | null;
12660
+ /**
12661
+ * Any JSON-compatible value.
12662
+ */
12663
+ providerMetadata?: string | number | boolean | Array<unknown> | {
12664
+ [key: string]: unknown;
12665
+ } | null;
12666
+ state: "output-error";
12667
+ errorText: string;
12668
+ } | {
12669
+ type: "mail";
12670
+ id: string;
12671
+ from: "parent";
12672
+ kind: "message" | "answer";
12673
+ inReplyTo?: string;
12674
+ text: string;
12675
+ afterAnswer?: true;
12676
+ }>;
12677
+ spec?: {
12678
+ model?: {
12679
+ provider: string;
12680
+ modelId: string;
12681
+ };
12682
+ reasoning?: "provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
12683
+ budgetTokens: number;
12684
+ };
12685
+ approvalMode?: "manual" | "accept-edits" | "auto";
12686
+ };
12687
+ timeZone?: string;
12688
+ locale?: string;
12689
+ immediate?: boolean;
12690
+ replacesMessageId?: string;
12691
+ createdAt: string;
12692
+ updatedAt: string;
12693
+ }>;
12694
+ };
12695
+ };
12696
+ export type ListAgentThreadInboxResponse = ListAgentThreadInboxResponses[keyof ListAgentThreadInboxResponses];
12697
+ export type WithdrawAgentThreadInboxItemData = {
12698
+ body?: never;
12699
+ path: {
12700
+ threadId: string;
12701
+ itemId: string;
12702
+ };
12703
+ query?: never;
12704
+ url: "/api/agent-threads/{threadId}/inbox/{itemId}";
12705
+ };
12706
+ export type WithdrawAgentThreadInboxItemErrors = {
12707
+ /**
12708
+ * Response for status 400
12709
+ */
12710
+ 400: {
12711
+ error: string;
12712
+ code?: string;
12713
+ };
12714
+ /**
12715
+ * Response for status 403
12716
+ */
12717
+ 403: {
12718
+ error: string;
12719
+ code?: string;
12720
+ };
12721
+ /**
12722
+ * Response for status 404
12723
+ */
12724
+ 404: {
12725
+ error: string;
12726
+ };
12727
+ /**
12728
+ * Response for status 409
12729
+ */
12730
+ 409: {
12731
+ error: string;
12732
+ code?: string;
12733
+ };
12734
+ /**
12735
+ * Response for status 501
12736
+ */
12737
+ 501: {
12738
+ error: string;
12739
+ };
12740
+ };
12741
+ export type WithdrawAgentThreadInboxItemError = WithdrawAgentThreadInboxItemErrors[keyof WithdrawAgentThreadInboxItemErrors];
12742
+ export type WithdrawAgentThreadInboxItemResponses = {
12743
+ /**
12744
+ * Response for status 204
12745
+ */
12746
+ 204: unknown;
12747
+ };
12748
+ export type UpdateAgentThreadInboxItemData = {
12749
+ body: {
12750
+ text?: string;
12751
+ model?: {
12752
+ provider: string;
12753
+ modelId: string;
12754
+ };
12755
+ reasoning?: "provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
12756
+ budgetTokens: number;
12757
+ };
12758
+ approvalMode?: "manual" | "accept-edits" | "auto";
12759
+ delivery?: "steer" | "queue";
12760
+ immediate?: true;
12761
+ };
12762
+ path: {
12763
+ threadId: string;
12764
+ itemId: string;
12765
+ };
12766
+ query?: never;
12767
+ url: "/api/agent-threads/{threadId}/inbox/{itemId}";
12768
+ };
12769
+ export type UpdateAgentThreadInboxItemErrors = {
12770
+ /**
12771
+ * Response for status 400
12772
+ */
12773
+ 400: {
12774
+ error: string;
12775
+ code?: string;
12776
+ };
12777
+ /**
12778
+ * Response for status 403
12779
+ */
12780
+ 403: {
12781
+ error: string;
12782
+ code?: string;
12783
+ };
12784
+ /**
12785
+ * Response for status 404
12786
+ */
12787
+ 404: {
12788
+ error: string;
12789
+ };
12790
+ /**
12791
+ * Response for status 409
12792
+ */
12793
+ 409: {
12794
+ error: string;
12795
+ code?: string;
12796
+ };
12797
+ /**
12798
+ * Response for status 501
12799
+ */
12800
+ 501: {
12801
+ error: string;
12802
+ };
12803
+ };
12804
+ export type UpdateAgentThreadInboxItemError = UpdateAgentThreadInboxItemErrors[keyof UpdateAgentThreadInboxItemErrors];
12805
+ export type UpdateAgentThreadInboxItemResponses = {
12806
+ /**
12807
+ * Response for status 200
12808
+ */
12809
+ 200: {
12810
+ item: {
12811
+ id: string;
12812
+ projectId: string;
12813
+ threadId: string;
12814
+ messageId: string;
12815
+ seq: number;
12816
+ authorPrincipal: {
12817
+ type: "user" | "serviceAccount" | "system";
12818
+ id: string;
12819
+ };
12820
+ mode: "steer" | "queue";
12821
+ parts: Array<{
12822
+ type: "text";
12823
+ text: string;
12824
+ /**
12825
+ * Any JSON-compatible value.
12826
+ */
12827
+ providerMetadata?: string | number | boolean | Array<unknown> | {
12828
+ [key: string]: unknown;
12829
+ } | null;
12830
+ } | {
12831
+ type: "continuation";
12832
+ } | {
12833
+ type: "approval-outcome";
12834
+ approvalId: string;
12835
+ status: "approved" | "denied" | "cancelled" | "superseded" | "expired";
12836
+ call: {
12837
+ kind: "action";
12838
+ actionId: string;
12839
+ subject: {
12840
+ kind: "none";
12841
+ } | {
12842
+ kind: "object";
12843
+ objectTypeId: string;
12844
+ primaryId: string;
12845
+ };
12846
+ } | {
12847
+ kind: "workflow";
12848
+ workflowId: string;
12849
+ };
12850
+ outcome?: {
12851
+ kind: "action-run";
12852
+ runId: string;
12853
+ status: "succeeded" | "failed";
12854
+ error?: {
12855
+ code: "internal.unexpected" | "runtime.cancelled" | "action.phase_failed" | "action.read_conflict" | "action.rejected" | "action.timeout" | "object.unique_violation";
12856
+ message: string;
12857
+ retryable: boolean;
12858
+ at: string;
12859
+ details: {
12860
+ actionId: string;
12861
+ runId: string;
12862
+ phase: "validation" | "writeback" | "edits" | "commit" | "effects";
12863
+ };
12864
+ httpStatus?: number;
12865
+ redacted?: true;
12866
+ truncated?: true;
12867
+ };
12868
+ } | {
12869
+ kind: "workflow-run";
12870
+ runId: string;
12871
+ queuedAt: string;
12872
+ } | {
12873
+ kind: "error";
12874
+ error: {
12875
+ code: "action.phase_failed" | "action.read_conflict" | "action.rejected" | "action.run_in_progress" | "action.timeout" | "agent.approval_authority_lost" | "agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "connector.adapter_invalid" | "connector.authorization_invalid" | "connector.authorization_required" | "connector.configuration_invalid" | "connector.credentials_unavailable" | "connector.not_found" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.provider_failed" | "connector.provider_unavailable" | "connector.replacement_required" | "connector.revocation_pending" | "dataset.change_refused" | "dataset.not_found" | "dataset.version_incompatible" | "dataset.version_not_found" | "dataset.version_read_inconsistent" | "event.delivery_failed" | "internal.unexpected" | "queue.enqueue_failed" | "object.not_found" | "object.unique_violation" | "pipeline.step_failed" | "projection.definition_invalid" | "projection.execution_failed" | "projection.not_found" | "projection.run_already_terminal" | "projection.run_identity_mismatch" | "runtime.cancelled" | "runtime.stopping" | "vector.model_unavailable" | "vector.response_invalid" | "vector.outcome_unknown" | "storage.unavailable" | "sync.execution_failed" | "webhook.delivery_failed" | "webhook.delivery_rejected" | "workflow.node_failed";
12876
+ message: string;
12877
+ retryable: boolean;
12878
+ at: string;
12879
+ /**
12880
+ * Any JSON-compatible value.
12881
+ */
12882
+ details?: string | number | boolean | Array<unknown> | {
12883
+ [key: string]: unknown;
12884
+ } | null;
12885
+ httpStatus?: number;
12886
+ redacted?: true;
12887
+ truncated?: true;
12888
+ };
12889
+ };
12890
+ caller?: {
12891
+ runId: string;
12892
+ key: string;
12893
+ continues?: true;
12894
+ };
12895
+ } | {
12896
+ type: "reasoning";
12897
+ text: string;
12898
+ /**
12899
+ * Any JSON-compatible value.
12900
+ */
12901
+ providerMetadata?: string | number | boolean | Array<unknown> | {
12902
+ [key: string]: unknown;
12903
+ } | null;
12904
+ } | {
12905
+ type: "step-start";
12906
+ } | {
12907
+ type: "file";
12908
+ fileRef: {
12909
+ blobId: string;
12910
+ digest: string;
12911
+ sizeBytes: number;
12912
+ fileName?: string;
12913
+ mediaType?: string;
12914
+ logicalPath?: string;
12915
+ };
12916
+ /**
12917
+ * Any JSON-compatible value.
12918
+ */
12919
+ providerMetadata?: string | number | boolean | Array<unknown> | {
12920
+ [key: string]: unknown;
12921
+ } | null;
12922
+ } | {
12923
+ type: "provider-state";
12924
+ providerId: string;
12925
+ /**
12926
+ * Any JSON-compatible value.
12927
+ */
12928
+ data: string | number | boolean | Array<unknown> | {
12929
+ [key: string]: unknown;
12930
+ } | null;
12931
+ } | {
12932
+ context: {
12933
+ kind: "object";
12934
+ ref: {
12935
+ objectTypeId: string;
12936
+ primaryId: string;
12937
+ };
12938
+ /**
12939
+ * Shown in the chat instead of the object's title. Never sent to the model.
12940
+ */
12941
+ label?: string;
12942
+ } | {
12943
+ kind: "app-state";
12944
+ id: string;
12945
+ label: string;
12946
+ description: string;
12947
+ /**
12948
+ * Any JSON-compatible value.
12949
+ */
12950
+ value: string | number | boolean | Array<unknown> | {
12951
+ [key: string]: unknown;
12952
+ } | null;
12953
+ };
12954
+ origin: "ambient" | "explicit";
12955
+ type: "context";
12956
+ } | {
12957
+ type: "tool-call";
12958
+ toolCallId: string;
12959
+ toolName: string;
12960
+ dynamic?: boolean;
12961
+ providerExecuted?: boolean;
12962
+ /**
12963
+ * Any JSON-compatible value.
12964
+ */
12965
+ input: string | number | boolean | Array<unknown> | {
12966
+ [key: string]: unknown;
12967
+ } | null;
12968
+ /**
12969
+ * Any JSON-compatible value.
12970
+ */
12971
+ providerMetadata?: string | number | boolean | Array<unknown> | {
12972
+ [key: string]: unknown;
12973
+ } | null;
12974
+ state: "output-available";
12975
+ /**
12976
+ * Any JSON-compatible value.
12977
+ */
12978
+ output: string | number | boolean | Array<unknown> | {
12979
+ [key: string]: unknown;
12980
+ } | null;
12981
+ outputFile?: {
12982
+ fileRef: {
12983
+ blobId: string;
12984
+ digest: string;
12985
+ sizeBytes: number;
12986
+ fileName?: string;
12987
+ mediaType?: string;
12988
+ logicalPath?: string;
12989
+ };
12990
+ path: string;
12991
+ };
12992
+ } | {
12993
+ type: "tool-call";
12994
+ toolCallId: string;
12995
+ toolName: string;
12996
+ dynamic?: boolean;
12997
+ providerExecuted?: boolean;
12998
+ /**
12999
+ * Any JSON-compatible value.
13000
+ */
13001
+ input: string | number | boolean | Array<unknown> | {
13002
+ [key: string]: unknown;
13003
+ } | null;
13004
+ /**
13005
+ * Any JSON-compatible value.
13006
+ */
13007
+ providerMetadata?: string | number | boolean | Array<unknown> | {
13008
+ [key: string]: unknown;
13009
+ } | null;
13010
+ state: "output-error";
13011
+ errorText: string;
13012
+ } | {
13013
+ type: "mail";
13014
+ id: string;
13015
+ from: "parent";
13016
+ kind: "message" | "answer";
13017
+ inReplyTo?: string;
13018
+ text: string;
13019
+ afterAnswer?: true;
13020
+ }>;
13021
+ spec?: {
13022
+ model?: {
13023
+ provider: string;
13024
+ modelId: string;
13025
+ };
13026
+ reasoning?: "provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
13027
+ budgetTokens: number;
13028
+ };
13029
+ approvalMode?: "manual" | "accept-edits" | "auto";
13030
+ };
13031
+ timeZone?: string;
13032
+ locale?: string;
13033
+ immediate?: boolean;
13034
+ replacesMessageId?: string;
13035
+ createdAt: string;
13036
+ updatedAt: string;
13037
+ };
13038
+ };
13039
+ };
13040
+ export type UpdateAgentThreadInboxItemResponse = UpdateAgentThreadInboxItemResponses[keyof UpdateAgentThreadInboxItemResponses];
13041
+ export type EditAgentThreadMessageData = {
13042
+ body: {
13043
+ text?: string;
13044
+ model?: {
13045
+ provider: string;
13046
+ modelId: string;
13047
+ };
13048
+ reasoning?: "provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
13049
+ budgetTokens: number;
13050
+ };
13051
+ timeZone?: string;
13052
+ locale?: string;
13053
+ approvalMode?: "manual" | "accept-edits" | "auto";
13054
+ attachments?: Array<{
13055
+ blobId: string;
13056
+ digest: string;
13057
+ sizeBytes: number;
13058
+ fileName?: string;
13059
+ mediaType?: string;
13060
+ logicalPath?: string;
13061
+ }>;
13062
+ context?: Array<{
13063
+ context: {
13064
+ kind: "object";
13065
+ ref: {
13066
+ objectTypeId: string;
13067
+ primaryId: string;
13068
+ };
13069
+ /**
13070
+ * Shown in the chat instead of the object's title. Never sent to the model.
13071
+ */
13072
+ label?: string;
13073
+ } | {
13074
+ kind: "app-state";
13075
+ id: string;
13076
+ label: string;
13077
+ description: string;
13078
+ /**
13079
+ * Any JSON-compatible value.
13080
+ */
13081
+ value: string | number | boolean | Array<unknown> | {
13082
+ [key: string]: unknown;
13083
+ } | null;
13084
+ };
13085
+ origin: "ambient" | "explicit";
13086
+ }>;
13087
+ nextMessageId?: string;
13088
+ };
13089
+ path: {
13090
+ threadId: string;
13091
+ messageId: string;
13092
+ };
13093
+ query?: never;
13094
+ url: "/api/agent-threads/{threadId}/messages/{messageId}/edit";
13095
+ };
13096
+ export type EditAgentThreadMessageErrors = {
13097
+ /**
13098
+ * Response for status 400
13099
+ */
13100
+ 400: {
13101
+ error: string;
13102
+ code?: string;
13103
+ };
13104
+ /**
13105
+ * Response for status 403
13106
+ */
13107
+ 403: {
13108
+ error: string;
13109
+ code?: string;
13110
+ };
13111
+ /**
13112
+ * Response for status 404
13113
+ */
13114
+ 404: {
13115
+ error: string;
13116
+ };
13117
+ /**
13118
+ * Response for status 409
13119
+ */
13120
+ 409: {
13121
+ error: string;
13122
+ code?: string;
13123
+ };
13124
+ /**
13125
+ * Response for status 429
13126
+ */
13127
+ 429: {
13128
+ error: string;
13129
+ /**
13130
+ * Stable machine-readable failure code for programmatic handling.
13131
+ */
13132
+ code: "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
13133
+ /**
13134
+ * Any JSON-compatible value.
13135
+ */
13136
+ details?: string | number | boolean | Array<unknown> | {
13137
+ [key: string]: unknown;
13138
+ } | null;
13139
+ };
13140
+ /**
13141
+ * Response for status 501
13142
+ */
13143
+ 501: {
13144
+ error: string;
13145
+ };
13146
+ };
13147
+ export type EditAgentThreadMessageError = EditAgentThreadMessageErrors[keyof EditAgentThreadMessageErrors];
13148
+ export type EditAgentThreadMessageResponses = {
13149
+ /**
13150
+ * Response for status 202
13151
+ */
13152
+ 202: {
13153
+ run?: {
13154
+ id: string;
13155
+ projectId: string;
13156
+ kind: "conversation" | "subagent";
13157
+ threadId: string;
13158
+ triggerMessageId: string;
13159
+ parentRunId?: string;
13160
+ requestedBy?: {
13161
+ type: "user" | "serviceAccount";
13162
+ id: string;
13163
+ };
13164
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
13165
+ model?: {
13166
+ provider: string;
13167
+ modelId: string;
13168
+ };
13169
+ tier?: "light" | "standard" | "heavy";
13170
+ reasoning?: "provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
13171
+ budgetTokens: number;
13172
+ };
13173
+ approvalMode?: "manual" | "accept-edits" | "auto";
13174
+ runsOn?: "computer";
13175
+ computer?: {
13176
+ id: string;
13177
+ folder: string;
13178
+ };
13179
+ modelId?: string;
13180
+ finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "error" | "other" | "unknown";
13181
+ usage?: {
13182
+ inputTokens?: number;
13183
+ outputTokens?: number;
13184
+ totalTokens?: number;
13185
+ uncachedInputTokens?: number;
13186
+ cacheReadInputTokens?: number;
13187
+ cacheWriteInputTokens?: number;
13188
+ textOutputTokens?: number;
13189
+ reasoningOutputTokens?: number;
13190
+ /**
13191
+ * Audio content duration in milliseconds; not billed duration.
13192
+ */
13193
+ audioDurationMs?: number;
13194
+ /**
13195
+ * Output tokens that encode generated images, within outputTokens.
13196
+ */
13197
+ imageOutputTokens?: number;
13198
+ /**
13199
+ * Output tokens that encode generated audio, within outputTokens.
13200
+ */
13201
+ audioOutputTokens?: number;
13202
+ /**
13203
+ * Images the call returned.
13204
+ */
13205
+ outputImages?: number;
13206
+ /**
13207
+ * Input characters, counted by the provider's own billing rule.
13208
+ */
13209
+ inputCharacters?: number;
13210
+ reportingStatus: "complete" | "partial" | "unavailable";
13211
+ };
13212
+ cost?: {
13213
+ amounts: Array<{
13214
+ currency: string;
13215
+ amountNanos: string;
13216
+ }>;
13217
+ ratedCallCount: number;
13218
+ unpriceableCallCount: number;
13219
+ unvaluedCallCount: number;
13220
+ };
13221
+ diagnostics?: Array<{
13222
+ code: "step_limit_reached" | "output_limit_reached";
13223
+ severity: "warning" | "error";
13224
+ scope: "run";
13225
+ message: string;
13226
+ }>;
13227
+ error?: {
13228
+ code: "internal.unexpected" | "runtime.cancelled" | "agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
13229
+ message: string;
13230
+ retryable: boolean;
13231
+ at: string;
13232
+ /**
13233
+ * Any JSON-compatible value.
13234
+ */
13235
+ details?: string | number | boolean | Array<unknown> | {
13236
+ [key: string]: unknown;
13237
+ } | null;
13238
+ httpStatus?: number;
13239
+ redacted?: true;
13240
+ truncated?: true;
13241
+ };
13242
+ attempt: number;
13243
+ streamId: string;
13244
+ createdAt: string;
13245
+ startedAt?: string;
13246
+ completedAt?: string;
13247
+ };
13248
+ item?: {
13249
+ id: string;
13250
+ projectId: string;
13251
+ threadId: string;
13252
+ messageId: string;
13253
+ seq: number;
13254
+ authorPrincipal: {
13255
+ type: "user" | "serviceAccount" | "system";
13256
+ id: string;
13257
+ };
13258
+ mode: "steer" | "queue";
13259
+ parts: Array<{
13260
+ type: "text";
13261
+ text: string;
13262
+ /**
13263
+ * Any JSON-compatible value.
13264
+ */
13265
+ providerMetadata?: string | number | boolean | Array<unknown> | {
13266
+ [key: string]: unknown;
13267
+ } | null;
13268
+ } | {
13269
+ type: "continuation";
13270
+ } | {
13271
+ type: "approval-outcome";
13272
+ approvalId: string;
13273
+ status: "approved" | "denied" | "cancelled" | "superseded" | "expired";
13274
+ call: {
13275
+ kind: "action";
13276
+ actionId: string;
13277
+ subject: {
13278
+ kind: "none";
13279
+ } | {
13280
+ kind: "object";
13281
+ objectTypeId: string;
13282
+ primaryId: string;
13283
+ };
13284
+ } | {
13285
+ kind: "workflow";
13286
+ workflowId: string;
13287
+ };
13288
+ outcome?: {
13289
+ kind: "action-run";
13290
+ runId: string;
13291
+ status: "succeeded" | "failed";
13292
+ error?: {
13293
+ code: "internal.unexpected" | "runtime.cancelled" | "action.phase_failed" | "action.read_conflict" | "action.rejected" | "action.timeout" | "object.unique_violation";
13294
+ message: string;
13295
+ retryable: boolean;
13296
+ at: string;
13297
+ details: {
13298
+ actionId: string;
13299
+ runId: string;
13300
+ phase: "validation" | "writeback" | "edits" | "commit" | "effects";
13301
+ };
13302
+ httpStatus?: number;
13303
+ redacted?: true;
13304
+ truncated?: true;
13305
+ };
13306
+ } | {
13307
+ kind: "workflow-run";
13308
+ runId: string;
13309
+ queuedAt: string;
13310
+ } | {
13311
+ kind: "error";
13312
+ error: {
13313
+ code: "action.phase_failed" | "action.read_conflict" | "action.rejected" | "action.run_in_progress" | "action.timeout" | "agent.approval_authority_lost" | "agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "connector.adapter_invalid" | "connector.authorization_invalid" | "connector.authorization_required" | "connector.configuration_invalid" | "connector.credentials_unavailable" | "connector.not_found" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.provider_failed" | "connector.provider_unavailable" | "connector.replacement_required" | "connector.revocation_pending" | "dataset.change_refused" | "dataset.not_found" | "dataset.version_incompatible" | "dataset.version_not_found" | "dataset.version_read_inconsistent" | "event.delivery_failed" | "internal.unexpected" | "queue.enqueue_failed" | "object.not_found" | "object.unique_violation" | "pipeline.step_failed" | "projection.definition_invalid" | "projection.execution_failed" | "projection.not_found" | "projection.run_already_terminal" | "projection.run_identity_mismatch" | "runtime.cancelled" | "runtime.stopping" | "vector.model_unavailable" | "vector.response_invalid" | "vector.outcome_unknown" | "storage.unavailable" | "sync.execution_failed" | "webhook.delivery_failed" | "webhook.delivery_rejected" | "workflow.node_failed";
13314
+ message: string;
13315
+ retryable: boolean;
13316
+ at: string;
13317
+ /**
13318
+ * Any JSON-compatible value.
13319
+ */
13320
+ details?: string | number | boolean | Array<unknown> | {
13321
+ [key: string]: unknown;
13322
+ } | null;
13323
+ httpStatus?: number;
13324
+ redacted?: true;
13325
+ truncated?: true;
13326
+ };
13327
+ };
13328
+ caller?: {
13329
+ runId: string;
13330
+ key: string;
13331
+ continues?: true;
13332
+ };
13333
+ } | {
13334
+ type: "reasoning";
13335
+ text: string;
13336
+ /**
13337
+ * Any JSON-compatible value.
13338
+ */
13339
+ providerMetadata?: string | number | boolean | Array<unknown> | {
13340
+ [key: string]: unknown;
13341
+ } | null;
13342
+ } | {
13343
+ type: "step-start";
13344
+ } | {
13345
+ type: "file";
13346
+ fileRef: {
13347
+ blobId: string;
13348
+ digest: string;
13349
+ sizeBytes: number;
13350
+ fileName?: string;
13351
+ mediaType?: string;
13352
+ logicalPath?: string;
13353
+ };
13354
+ /**
13355
+ * Any JSON-compatible value.
13356
+ */
13357
+ providerMetadata?: string | number | boolean | Array<unknown> | {
13358
+ [key: string]: unknown;
13359
+ } | null;
13360
+ } | {
13361
+ type: "provider-state";
13362
+ providerId: string;
13363
+ /**
13364
+ * Any JSON-compatible value.
13365
+ */
13366
+ data: string | number | boolean | Array<unknown> | {
13367
+ [key: string]: unknown;
13368
+ } | null;
13369
+ } | {
13370
+ context: {
13371
+ kind: "object";
13372
+ ref: {
13373
+ objectTypeId: string;
13374
+ primaryId: string;
13375
+ };
13376
+ /**
13377
+ * Shown in the chat instead of the object's title. Never sent to the model.
13378
+ */
13379
+ label?: string;
13380
+ } | {
13381
+ kind: "app-state";
13382
+ id: string;
13383
+ label: string;
13384
+ description: string;
13385
+ /**
13386
+ * Any JSON-compatible value.
13387
+ */
13388
+ value: string | number | boolean | Array<unknown> | {
13389
+ [key: string]: unknown;
13390
+ } | null;
13391
+ };
13392
+ origin: "ambient" | "explicit";
13393
+ type: "context";
13394
+ } | {
13395
+ type: "tool-call";
13396
+ toolCallId: string;
13397
+ toolName: string;
13398
+ dynamic?: boolean;
13399
+ providerExecuted?: boolean;
13400
+ /**
13401
+ * Any JSON-compatible value.
13402
+ */
13403
+ input: string | number | boolean | Array<unknown> | {
13404
+ [key: string]: unknown;
13405
+ } | null;
13406
+ /**
13407
+ * Any JSON-compatible value.
13408
+ */
13409
+ providerMetadata?: string | number | boolean | Array<unknown> | {
13410
+ [key: string]: unknown;
13411
+ } | null;
13412
+ state: "output-available";
13413
+ /**
13414
+ * Any JSON-compatible value.
13415
+ */
13416
+ output: string | number | boolean | Array<unknown> | {
13417
+ [key: string]: unknown;
13418
+ } | null;
13419
+ outputFile?: {
13420
+ fileRef: {
13421
+ blobId: string;
13422
+ digest: string;
13423
+ sizeBytes: number;
13424
+ fileName?: string;
13425
+ mediaType?: string;
13426
+ logicalPath?: string;
13427
+ };
13428
+ path: string;
13429
+ };
13430
+ } | {
13431
+ type: "tool-call";
13432
+ toolCallId: string;
13433
+ toolName: string;
13434
+ dynamic?: boolean;
13435
+ providerExecuted?: boolean;
13436
+ /**
13437
+ * Any JSON-compatible value.
13438
+ */
13439
+ input: string | number | boolean | Array<unknown> | {
13440
+ [key: string]: unknown;
13441
+ } | null;
13442
+ /**
13443
+ * Any JSON-compatible value.
13444
+ */
13445
+ providerMetadata?: string | number | boolean | Array<unknown> | {
11692
13446
  [key: string]: unknown;
11693
13447
  } | null;
11694
- httpStatus?: number;
11695
- redacted?: true;
11696
- truncated?: true;
13448
+ state: "output-error";
13449
+ errorText: string;
13450
+ } | {
13451
+ type: "mail";
13452
+ id: string;
13453
+ from: "parent";
13454
+ kind: "message" | "answer";
13455
+ inReplyTo?: string;
13456
+ text: string;
13457
+ afterAnswer?: true;
13458
+ }>;
13459
+ spec?: {
13460
+ model?: {
13461
+ provider: string;
13462
+ modelId: string;
13463
+ };
13464
+ reasoning?: "provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
13465
+ budgetTokens: number;
13466
+ };
13467
+ approvalMode?: "manual" | "accept-edits" | "auto";
11697
13468
  };
11698
- attempt: number;
11699
- streamId: string;
13469
+ timeZone?: string;
13470
+ locale?: string;
13471
+ immediate?: boolean;
13472
+ replacesMessageId?: string;
11700
13473
  createdAt: string;
11701
- startedAt?: string;
11702
- completedAt?: string;
13474
+ updatedAt: string;
11703
13475
  };
11704
13476
  };
11705
13477
  };
11706
- export type PostAgentThreadMessageResponse = PostAgentThreadMessageResponses[keyof PostAgentThreadMessageResponses];
11707
- export type GetAgentMessageFileContentData = {
11708
- body?: never;
11709
- path: {
11710
- threadId: string;
11711
- messageId: string;
11712
- };
11713
- query: {
11714
- path: string;
11715
- disposition?: "inline" | "attachment";
11716
- /**
11717
- * Client cache key; the route still resolves the current file
11718
- */
11719
- v?: string;
11720
- };
11721
- url: "/api/agent-threads/{threadId}/messages/{messageId}/files/content";
11722
- };
11723
- export type GetAgentMessageFileContentErrors = {
11724
- /**
11725
- * Response for status 400
11726
- */
11727
- 400: ErrorResponse;
11728
- /**
11729
- * Response for status 404
11730
- */
11731
- 404: ErrorResponse;
11732
- /**
11733
- * Requested byte range is not satisfiable
11734
- */
11735
- 416: unknown;
11736
- /**
11737
- * The storage role backing this content is not configured
11738
- */
11739
- 501: ErrorResponse;
11740
- };
11741
- export type GetAgentMessageFileContentError = GetAgentMessageFileContentErrors[keyof GetAgentMessageFileContentErrors];
11742
- export type GetAgentMessageFileContentResponses = {
11743
- /**
11744
- * File content
11745
- */
11746
- 200: Blob | File;
11747
- /**
11748
- * Partial file content
11749
- */
11750
- 206: Blob | File;
11751
- };
11752
- export type GetAgentMessageFileContentResponse = GetAgentMessageFileContentResponses[keyof GetAgentMessageFileContentResponses];
11753
- export type HeadAgentMessageFileContentData = {
11754
- body?: never;
11755
- path: {
11756
- threadId: string;
11757
- messageId: string;
11758
- };
11759
- query: {
11760
- path: string;
11761
- disposition?: "inline" | "attachment";
11762
- /**
11763
- * Client cache key; the route still resolves the current file
11764
- */
11765
- v?: string;
11766
- };
11767
- url: "/api/agent-threads/{threadId}/messages/{messageId}/files/content";
11768
- };
11769
- export type HeadAgentMessageFileContentErrors = {
11770
- /**
11771
- * Response for status 400
11772
- */
11773
- 400: ErrorResponse;
11774
- /**
11775
- * Response for status 404
11776
- */
11777
- 404: ErrorResponse;
11778
- /**
11779
- * Requested byte range is not satisfiable
11780
- */
11781
- 416: unknown;
11782
- /**
11783
- * The storage role backing this content is not configured
11784
- */
11785
- 501: ErrorResponse;
11786
- };
11787
- export type HeadAgentMessageFileContentError = HeadAgentMessageFileContentErrors[keyof HeadAgentMessageFileContentErrors];
11788
- export type HeadAgentMessageFileContentResponses = {
11789
- /**
11790
- * File content headers
11791
- */
11792
- 200: unknown;
11793
- /**
11794
- * Partial file content headers
11795
- */
11796
- 206: unknown;
11797
- };
13478
+ export type EditAgentThreadMessageResponse = EditAgentThreadMessageResponses[keyof EditAgentThreadMessageResponses];
11798
13479
  export type CancelAgentRunData = {
11799
13480
  body: {
11800
13481
  runId: string;
@@ -11868,6 +13549,10 @@ export type CancelAgentRunResponses = {
11868
13549
  };
11869
13550
  approvalMode?: "manual" | "accept-edits" | "auto";
11870
13551
  runsOn?: "computer";
13552
+ computer?: {
13553
+ id: string;
13554
+ folder: string;
13555
+ };
11871
13556
  modelId?: string;
11872
13557
  finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "error" | "other" | "unknown";
11873
13558
  usage?: {
@@ -12028,6 +13713,10 @@ export type RetryAgentRunResponses = {
12028
13713
  };
12029
13714
  approvalMode?: "manual" | "accept-edits" | "auto";
12030
13715
  runsOn?: "computer";
13716
+ computer?: {
13717
+ id: string;
13718
+ folder: string;
13719
+ };
12031
13720
  modelId?: string;
12032
13721
  finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "error" | "other" | "unknown";
12033
13722
  usage?: {
@@ -12237,6 +13926,10 @@ export type ListAgentThreadRunsResponses = {
12237
13926
  };
12238
13927
  approvalMode?: "manual" | "accept-edits" | "auto";
12239
13928
  runsOn?: "computer";
13929
+ computer?: {
13930
+ id: string;
13931
+ folder: string;
13932
+ };
12240
13933
  modelId?: string;
12241
13934
  finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "error" | "other" | "unknown";
12242
13935
  usage?: {
@@ -12366,6 +14059,10 @@ export type GetAgentRunResponses = {
12366
14059
  };
12367
14060
  approvalMode?: "manual" | "accept-edits" | "auto";
12368
14061
  runsOn?: "computer";
14062
+ computer?: {
14063
+ id: string;
14064
+ folder: string;
14065
+ };
12369
14066
  modelId?: string;
12370
14067
  finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "error" | "other" | "unknown";
12371
14068
  usage?: {
@@ -12508,6 +14205,10 @@ export type CancelAgentRunByIdResponses = {
12508
14205
  };
12509
14206
  approvalMode?: "manual" | "accept-edits" | "auto";
12510
14207
  runsOn?: "computer";
14208
+ computer?: {
14209
+ id: string;
14210
+ folder: string;
14211
+ };
12511
14212
  modelId?: string;
12512
14213
  finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "error" | "other" | "unknown";
12513
14214
  usage?: {
@@ -12580,6 +14281,54 @@ export type CancelAgentRunByIdResponses = {
12580
14281
  };
12581
14282
  };
12582
14283
  export type CancelAgentRunByIdResponse = CancelAgentRunByIdResponses[keyof CancelAgentRunByIdResponses];
14284
+ export type MarkAgentThreadReadData = {
14285
+ body: {
14286
+ throughMessageId?: string;
14287
+ };
14288
+ path: {
14289
+ threadId: string;
14290
+ };
14291
+ query?: never;
14292
+ url: "/api/agent-threads/{threadId}/read";
14293
+ };
14294
+ export type MarkAgentThreadReadErrors = {
14295
+ /**
14296
+ * Response for status 400
14297
+ */
14298
+ 400: {
14299
+ error: string;
14300
+ code?: string;
14301
+ };
14302
+ /**
14303
+ * Response for status 404
14304
+ */
14305
+ 404: {
14306
+ error: string;
14307
+ code?: string;
14308
+ };
14309
+ /**
14310
+ * Response for status 501
14311
+ */
14312
+ 501: {
14313
+ error: string;
14314
+ };
14315
+ };
14316
+ export type MarkAgentThreadReadError = MarkAgentThreadReadErrors[keyof MarkAgentThreadReadErrors];
14317
+ export type MarkAgentThreadReadResponses = {
14318
+ /**
14319
+ * Response for status 200
14320
+ */
14321
+ 200: {
14322
+ read: {
14323
+ threadId: string;
14324
+ throughSeq: number;
14325
+ headSeq: number;
14326
+ unread: number;
14327
+ readAt?: string;
14328
+ };
14329
+ };
14330
+ };
14331
+ export type MarkAgentThreadReadResponse = MarkAgentThreadReadResponses[keyof MarkAgentThreadReadResponses];
12583
14332
  export type ListAgentThreadChildrenData = {
12584
14333
  body?: never;
12585
14334
  path: {
@@ -12853,6 +14602,24 @@ export type MoveAgentThreadToCloudResponses = {
12853
14602
  messageCount: number;
12854
14603
  createdAt: string;
12855
14604
  updatedAt: string;
14605
+ read?: {
14606
+ threadId: string;
14607
+ throughSeq: number;
14608
+ headSeq: number;
14609
+ unread: number;
14610
+ readAt?: string;
14611
+ };
14612
+ lastRun?: {
14613
+ id: string;
14614
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
14615
+ finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "error" | "other" | "unknown";
14616
+ errorCode?: "internal.unexpected" | "runtime.cancelled" | "agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
14617
+ completedAt?: string;
14618
+ requestedBy?: {
14619
+ type: "user" | "serviceAccount";
14620
+ id: string;
14621
+ };
14622
+ };
12856
14623
  approvalMode?: "manual" | "accept-edits" | "auto";
12857
14624
  approvalModeSource?: "thread" | "default" | "fallback" | "run";
12858
14625
  };
@@ -12978,6 +14745,24 @@ export type MoveAgentThreadToComputerResponses = {
12978
14745
  messageCount: number;
12979
14746
  createdAt: string;
12980
14747
  updatedAt: string;
14748
+ read?: {
14749
+ threadId: string;
14750
+ throughSeq: number;
14751
+ headSeq: number;
14752
+ unread: number;
14753
+ readAt?: string;
14754
+ };
14755
+ lastRun?: {
14756
+ id: string;
14757
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
14758
+ finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "error" | "other" | "unknown";
14759
+ errorCode?: "internal.unexpected" | "runtime.cancelled" | "agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
14760
+ completedAt?: string;
14761
+ requestedBy?: {
14762
+ type: "user" | "serviceAccount";
14763
+ id: string;
14764
+ };
14765
+ };
12981
14766
  approvalMode?: "manual" | "accept-edits" | "auto";
12982
14767
  approvalModeSource?: "thread" | "default" | "fallback" | "run";
12983
14768
  };
@@ -13307,6 +15092,24 @@ export type SetAgentThreadApprovalModeResponses = {
13307
15092
  messageCount: number;
13308
15093
  createdAt: string;
13309
15094
  updatedAt: string;
15095
+ read?: {
15096
+ threadId: string;
15097
+ throughSeq: number;
15098
+ headSeq: number;
15099
+ unread: number;
15100
+ readAt?: string;
15101
+ };
15102
+ lastRun?: {
15103
+ id: string;
15104
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
15105
+ finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "error" | "other" | "unknown";
15106
+ errorCode?: "internal.unexpected" | "runtime.cancelled" | "agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
15107
+ completedAt?: string;
15108
+ requestedBy?: {
15109
+ type: "user" | "serviceAccount";
15110
+ id: string;
15111
+ };
15112
+ };
13310
15113
  approvalMode?: "manual" | "accept-edits" | "auto";
13311
15114
  approvalModeSource?: "thread" | "default" | "fallback" | "run";
13312
15115
  };
@@ -13613,6 +15416,10 @@ export type DecideAgentApprovalResponses = {
13613
15416
  };
13614
15417
  approvalMode?: "manual" | "accept-edits" | "auto";
13615
15418
  runsOn?: "computer";
15419
+ computer?: {
15420
+ id: string;
15421
+ folder: string;
15422
+ };
13616
15423
  modelId?: string;
13617
15424
  finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "error" | "other" | "unknown";
13618
15425
  usage?: {
@@ -13921,6 +15728,24 @@ export type GetObservedAgentThreadResponses = {
13921
15728
  messageCount: number;
13922
15729
  createdAt: string;
13923
15730
  updatedAt: string;
15731
+ read?: {
15732
+ threadId: string;
15733
+ throughSeq: number;
15734
+ headSeq: number;
15735
+ unread: number;
15736
+ readAt?: string;
15737
+ };
15738
+ lastRun?: {
15739
+ id: string;
15740
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled";
15741
+ finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "error" | "other" | "unknown";
15742
+ errorCode?: "internal.unexpected" | "runtime.cancelled" | "agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
15743
+ completedAt?: string;
15744
+ requestedBy?: {
15745
+ type: "user" | "serviceAccount";
15746
+ id: string;
15747
+ };
15748
+ };
13924
15749
  approvalMode?: "manual" | "accept-edits" | "auto";
13925
15750
  approvalModeSource?: "thread" | "default" | "fallback" | "run";
13926
15751
  };
@@ -14330,6 +16155,10 @@ export type ListObservedAgentThreadRunsResponses = {
14330
16155
  };
14331
16156
  approvalMode?: "manual" | "accept-edits" | "auto";
14332
16157
  runsOn?: "computer";
16158
+ computer?: {
16159
+ id: string;
16160
+ folder: string;
16161
+ };
14333
16162
  modelId?: string;
14334
16163
  finishReason?: "stop" | "length" | "content-filter" | "tool-calls" | "timeout" | "interrupted" | "awaiting_approval" | "awaiting_answer" | "error" | "other" | "unknown";
14335
16164
  usage?: {
@@ -14829,7 +16658,7 @@ export type ListArtifactsErrors = {
14829
16658
  400: {
14830
16659
  error: string;
14831
16660
  /**
14832
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
16661
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
14833
16662
  */
14834
16663
  code?: string;
14835
16664
  /**
@@ -14854,7 +16683,7 @@ export type ListArtifactsErrors = {
14854
16683
  501: {
14855
16684
  error: string;
14856
16685
  /**
14857
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
16686
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
14858
16687
  */
14859
16688
  code?: string;
14860
16689
  /**
@@ -14938,7 +16767,7 @@ export type CreateArtifactErrors = {
14938
16767
  400: {
14939
16768
  error: string;
14940
16769
  /**
14941
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
16770
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
14942
16771
  */
14943
16772
  code?: string;
14944
16773
  /**
@@ -14963,7 +16792,7 @@ export type CreateArtifactErrors = {
14963
16792
  403: {
14964
16793
  error: string;
14965
16794
  /**
14966
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
16795
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
14967
16796
  */
14968
16797
  code?: string;
14969
16798
  /**
@@ -14988,7 +16817,7 @@ export type CreateArtifactErrors = {
14988
16817
  404: {
14989
16818
  error: string;
14990
16819
  /**
14991
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
16820
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
14992
16821
  */
14993
16822
  code?: string;
14994
16823
  /**
@@ -15013,7 +16842,7 @@ export type CreateArtifactErrors = {
15013
16842
  409: {
15014
16843
  error: string;
15015
16844
  /**
15016
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
16845
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
15017
16846
  */
15018
16847
  code?: string;
15019
16848
  /**
@@ -15038,7 +16867,7 @@ export type CreateArtifactErrors = {
15038
16867
  501: {
15039
16868
  error: string;
15040
16869
  /**
15041
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
16870
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
15042
16871
  */
15043
16872
  code?: string;
15044
16873
  /**
@@ -15118,6 +16947,33 @@ export type CreateArtifactResponses = {
15118
16947
  text: string;
15119
16948
  slug: string;
15120
16949
  }>;
16950
+ /**
16951
+ * html for a designed document, document.html with its own stylesheets
16952
+ */
16953
+ format?: "html";
16954
+ /**
16955
+ * The sheet a designed document's @page rule sets, in CSS pixels: its size and margins
16956
+ */
16957
+ paper?: {
16958
+ width: number;
16959
+ height: number;
16960
+ margin: {
16961
+ top: number;
16962
+ right: number;
16963
+ bottom: number;
16964
+ left: number;
16965
+ };
16966
+ };
16967
+ /**
16968
+ * The object a designed document shows live data of, as <meta name="sixb:object-type"> names its type: the one object of that type that holds the document
16969
+ */
16970
+ holder?: {
16971
+ objectTypeId: string;
16972
+ /**
16973
+ * The holder's links its fields read through
16974
+ */
16975
+ links: Array<string>;
16976
+ };
15121
16977
  } | {
15122
16978
  kind: "sheet";
15123
16979
  sheets: Array<{
@@ -15212,6 +17068,10 @@ export type CreateArtifactResponses = {
15212
17068
  boardPreviews?: {
15213
17069
  [key: string]: "ready" | "pending" | "none";
15214
17070
  };
17071
+ /**
17072
+ * true for a designed document in a project that prints to PDF: POST to its pdf route to print it, with the values whoever asks reads
17073
+ */
17074
+ printable?: boolean;
15215
17075
  };
15216
17076
  warnings: Array<{
15217
17077
  code: string;
@@ -15236,7 +17096,7 @@ export type DeleteArtifactErrors = {
15236
17096
  403: {
15237
17097
  error: string;
15238
17098
  /**
15239
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
17099
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
15240
17100
  */
15241
17101
  code?: string;
15242
17102
  /**
@@ -15261,7 +17121,7 @@ export type DeleteArtifactErrors = {
15261
17121
  404: {
15262
17122
  error: string;
15263
17123
  /**
15264
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
17124
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
15265
17125
  */
15266
17126
  code?: string;
15267
17127
  /**
@@ -15286,7 +17146,7 @@ export type DeleteArtifactErrors = {
15286
17146
  501: {
15287
17147
  error: string;
15288
17148
  /**
15289
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
17149
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
15290
17150
  */
15291
17151
  code?: string;
15292
17152
  /**
@@ -15331,7 +17191,7 @@ export type GetArtifactErrors = {
15331
17191
  403: {
15332
17192
  error: string;
15333
17193
  /**
15334
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
17194
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
15335
17195
  */
15336
17196
  code?: string;
15337
17197
  /**
@@ -15356,7 +17216,7 @@ export type GetArtifactErrors = {
15356
17216
  404: {
15357
17217
  error: string;
15358
17218
  /**
15359
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
17219
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
15360
17220
  */
15361
17221
  code?: string;
15362
17222
  /**
@@ -15381,7 +17241,7 @@ export type GetArtifactErrors = {
15381
17241
  501: {
15382
17242
  error: string;
15383
17243
  /**
15384
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
17244
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
15385
17245
  */
15386
17246
  code?: string;
15387
17247
  /**
@@ -15497,7 +17357,7 @@ export type ListArtifactHoldersErrors = {
15497
17357
  403: {
15498
17358
  error: string;
15499
17359
  /**
15500
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
17360
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
15501
17361
  */
15502
17362
  code?: string;
15503
17363
  /**
@@ -15522,7 +17382,7 @@ export type ListArtifactHoldersErrors = {
15522
17382
  404: {
15523
17383
  error: string;
15524
17384
  /**
15525
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
17385
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
15526
17386
  */
15527
17387
  code?: string;
15528
17388
  /**
@@ -15547,7 +17407,7 @@ export type ListArtifactHoldersErrors = {
15547
17407
  501: {
15548
17408
  error: string;
15549
17409
  /**
15550
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
17410
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
15551
17411
  */
15552
17412
  code?: string;
15553
17413
  /**
@@ -15610,7 +17470,7 @@ export type ClearArtifactStateErrors = {
15610
17470
  403: {
15611
17471
  error: string;
15612
17472
  /**
15613
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
17473
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
15614
17474
  */
15615
17475
  code?: string;
15616
17476
  /**
@@ -15635,7 +17495,7 @@ export type ClearArtifactStateErrors = {
15635
17495
  404: {
15636
17496
  error: string;
15637
17497
  /**
15638
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
17498
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
15639
17499
  */
15640
17500
  code?: string;
15641
17501
  /**
@@ -15660,7 +17520,7 @@ export type ClearArtifactStateErrors = {
15660
17520
  501: {
15661
17521
  error: string;
15662
17522
  /**
15663
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
17523
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
15664
17524
  */
15665
17525
  code?: string;
15666
17526
  /**
@@ -15708,7 +17568,7 @@ export type GetArtifactStateErrors = {
15708
17568
  403: {
15709
17569
  error: string;
15710
17570
  /**
15711
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
17571
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
15712
17572
  */
15713
17573
  code?: string;
15714
17574
  /**
@@ -15733,7 +17593,7 @@ export type GetArtifactStateErrors = {
15733
17593
  404: {
15734
17594
  error: string;
15735
17595
  /**
15736
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
17596
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
15737
17597
  */
15738
17598
  code?: string;
15739
17599
  /**
@@ -15758,7 +17618,7 @@ export type GetArtifactStateErrors = {
15758
17618
  501: {
15759
17619
  error: string;
15760
17620
  /**
15761
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
17621
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
15762
17622
  */
15763
17623
  code?: string;
15764
17624
  /**
@@ -15817,7 +17677,7 @@ export type DeleteArtifactStateValueErrors = {
15817
17677
  400: {
15818
17678
  error: string;
15819
17679
  /**
15820
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
17680
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
15821
17681
  */
15822
17682
  code?: string;
15823
17683
  /**
@@ -15842,7 +17702,7 @@ export type DeleteArtifactStateValueErrors = {
15842
17702
  403: {
15843
17703
  error: string;
15844
17704
  /**
15845
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
17705
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
15846
17706
  */
15847
17707
  code?: string;
15848
17708
  /**
@@ -15867,7 +17727,7 @@ export type DeleteArtifactStateValueErrors = {
15867
17727
  404: {
15868
17728
  error: string;
15869
17729
  /**
15870
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
17730
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
15871
17731
  */
15872
17732
  code?: string;
15873
17733
  /**
@@ -15892,7 +17752,7 @@ export type DeleteArtifactStateValueErrors = {
15892
17752
  501: {
15893
17753
  error: string;
15894
17754
  /**
15895
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
17755
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
15896
17756
  */
15897
17757
  code?: string;
15898
17758
  /**
@@ -15946,7 +17806,7 @@ export type SetArtifactStateErrors = {
15946
17806
  400: {
15947
17807
  error: string;
15948
17808
  /**
15949
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
17809
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
15950
17810
  */
15951
17811
  code?: string;
15952
17812
  /**
@@ -15971,7 +17831,7 @@ export type SetArtifactStateErrors = {
15971
17831
  403: {
15972
17832
  error: string;
15973
17833
  /**
15974
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
17834
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
15975
17835
  */
15976
17836
  code?: string;
15977
17837
  /**
@@ -15996,7 +17856,7 @@ export type SetArtifactStateErrors = {
15996
17856
  404: {
15997
17857
  error: string;
15998
17858
  /**
15999
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
17859
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
16000
17860
  */
16001
17861
  code?: string;
16002
17862
  /**
@@ -16021,7 +17881,7 @@ export type SetArtifactStateErrors = {
16021
17881
  413: {
16022
17882
  error: string;
16023
17883
  /**
16024
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
17884
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
16025
17885
  */
16026
17886
  code?: string;
16027
17887
  /**
@@ -16046,7 +17906,7 @@ export type SetArtifactStateErrors = {
16046
17906
  501: {
16047
17907
  error: string;
16048
17908
  /**
16049
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
17909
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
16050
17910
  */
16051
17911
  code?: string;
16052
17912
  /**
@@ -16120,7 +17980,7 @@ export type UpdateArtifactErrors = {
16120
17980
  400: {
16121
17981
  error: string;
16122
17982
  /**
16123
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
17983
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
16124
17984
  */
16125
17985
  code?: string;
16126
17986
  /**
@@ -16145,7 +18005,7 @@ export type UpdateArtifactErrors = {
16145
18005
  403: {
16146
18006
  error: string;
16147
18007
  /**
16148
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
18008
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
16149
18009
  */
16150
18010
  code?: string;
16151
18011
  /**
@@ -16170,7 +18030,7 @@ export type UpdateArtifactErrors = {
16170
18030
  404: {
16171
18031
  error: string;
16172
18032
  /**
16173
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
18033
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
16174
18034
  */
16175
18035
  code?: string;
16176
18036
  /**
@@ -16195,7 +18055,7 @@ export type UpdateArtifactErrors = {
16195
18055
  409: {
16196
18056
  error: string;
16197
18057
  /**
16198
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
18058
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
16199
18059
  */
16200
18060
  code?: string;
16201
18061
  /**
@@ -16220,7 +18080,7 @@ export type UpdateArtifactErrors = {
16220
18080
  501: {
16221
18081
  error: string;
16222
18082
  /**
16223
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
18083
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
16224
18084
  */
16225
18085
  code?: string;
16226
18086
  /**
@@ -16292,14 +18152,41 @@ export type UpdateArtifactResponses = {
16292
18152
  mediaType?: string;
16293
18153
  logicalPath?: string;
16294
18154
  };
16295
- }>;
16296
- outline: {
16297
- kind: "document";
16298
- headings: Array<{
16299
- depth: number;
16300
- text: string;
16301
- slug: string;
16302
- }>;
18155
+ }>;
18156
+ outline: {
18157
+ kind: "document";
18158
+ headings: Array<{
18159
+ depth: number;
18160
+ text: string;
18161
+ slug: string;
18162
+ }>;
18163
+ /**
18164
+ * html for a designed document, document.html with its own stylesheets
18165
+ */
18166
+ format?: "html";
18167
+ /**
18168
+ * The sheet a designed document's @page rule sets, in CSS pixels: its size and margins
18169
+ */
18170
+ paper?: {
18171
+ width: number;
18172
+ height: number;
18173
+ margin: {
18174
+ top: number;
18175
+ right: number;
18176
+ bottom: number;
18177
+ left: number;
18178
+ };
18179
+ };
18180
+ /**
18181
+ * The object a designed document shows live data of, as <meta name="sixb:object-type"> names its type: the one object of that type that holds the document
18182
+ */
18183
+ holder?: {
18184
+ objectTypeId: string;
18185
+ /**
18186
+ * The holder's links its fields read through
18187
+ */
18188
+ links: Array<string>;
18189
+ };
16303
18190
  } | {
16304
18191
  kind: "sheet";
16305
18192
  sheets: Array<{
@@ -16394,6 +18281,10 @@ export type UpdateArtifactResponses = {
16394
18281
  boardPreviews?: {
16395
18282
  [key: string]: "ready" | "pending" | "none";
16396
18283
  };
18284
+ /**
18285
+ * true for a designed document in a project that prints to PDF: POST to its pdf route to print it, with the values whoever asks reads
18286
+ */
18287
+ printable?: boolean;
16397
18288
  };
16398
18289
  warnings: Array<{
16399
18290
  code: string;
@@ -16423,7 +18314,7 @@ export type FreezeArtifactVersionErrors = {
16423
18314
  400: {
16424
18315
  error: string;
16425
18316
  /**
16426
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
18317
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
16427
18318
  */
16428
18319
  code?: string;
16429
18320
  /**
@@ -16448,7 +18339,7 @@ export type FreezeArtifactVersionErrors = {
16448
18339
  403: {
16449
18340
  error: string;
16450
18341
  /**
16451
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
18342
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
16452
18343
  */
16453
18344
  code?: string;
16454
18345
  /**
@@ -16473,7 +18364,7 @@ export type FreezeArtifactVersionErrors = {
16473
18364
  404: {
16474
18365
  error: string;
16475
18366
  /**
16476
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
18367
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
16477
18368
  */
16478
18369
  code?: string;
16479
18370
  /**
@@ -16498,7 +18389,7 @@ export type FreezeArtifactVersionErrors = {
16498
18389
  409: {
16499
18390
  error: string;
16500
18391
  /**
16501
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
18392
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
16502
18393
  */
16503
18394
  code?: string;
16504
18395
  /**
@@ -16523,7 +18414,7 @@ export type FreezeArtifactVersionErrors = {
16523
18414
  501: {
16524
18415
  error: string;
16525
18416
  /**
16526
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
18417
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
16527
18418
  */
16528
18419
  code?: string;
16529
18420
  /**
@@ -16603,6 +18494,33 @@ export type FreezeArtifactVersionResponses = {
16603
18494
  text: string;
16604
18495
  slug: string;
16605
18496
  }>;
18497
+ /**
18498
+ * html for a designed document, document.html with its own stylesheets
18499
+ */
18500
+ format?: "html";
18501
+ /**
18502
+ * The sheet a designed document's @page rule sets, in CSS pixels: its size and margins
18503
+ */
18504
+ paper?: {
18505
+ width: number;
18506
+ height: number;
18507
+ margin: {
18508
+ top: number;
18509
+ right: number;
18510
+ bottom: number;
18511
+ left: number;
18512
+ };
18513
+ };
18514
+ /**
18515
+ * The object a designed document shows live data of, as <meta name="sixb:object-type"> names its type: the one object of that type that holds the document
18516
+ */
18517
+ holder?: {
18518
+ objectTypeId: string;
18519
+ /**
18520
+ * The holder's links its fields read through
18521
+ */
18522
+ links: Array<string>;
18523
+ };
16606
18524
  } | {
16607
18525
  kind: "sheet";
16608
18526
  sheets: Array<{
@@ -16697,6 +18615,10 @@ export type FreezeArtifactVersionResponses = {
16697
18615
  boardPreviews?: {
16698
18616
  [key: string]: "ready" | "pending" | "none";
16699
18617
  };
18618
+ /**
18619
+ * true for a designed document in a project that prints to PDF: POST to its pdf route to print it, with the values whoever asks reads
18620
+ */
18621
+ printable?: boolean;
16700
18622
  };
16701
18623
  };
16702
18624
  };
@@ -16716,7 +18638,7 @@ export type ListArtifactCommentsErrors = {
16716
18638
  403: {
16717
18639
  error: string;
16718
18640
  /**
16719
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
18641
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
16720
18642
  */
16721
18643
  code?: string;
16722
18644
  /**
@@ -16741,7 +18663,7 @@ export type ListArtifactCommentsErrors = {
16741
18663
  404: {
16742
18664
  error: string;
16743
18665
  /**
16744
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
18666
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
16745
18667
  */
16746
18668
  code?: string;
16747
18669
  /**
@@ -16766,7 +18688,7 @@ export type ListArtifactCommentsErrors = {
16766
18688
  501: {
16767
18689
  error: string;
16768
18690
  /**
16769
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
18691
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
16770
18692
  */
16771
18693
  code?: string;
16772
18694
  /**
@@ -16917,7 +18839,7 @@ export type AddArtifactCommentErrors = {
16917
18839
  400: {
16918
18840
  error: string;
16919
18841
  /**
16920
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
18842
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
16921
18843
  */
16922
18844
  code?: string;
16923
18845
  /**
@@ -16942,7 +18864,7 @@ export type AddArtifactCommentErrors = {
16942
18864
  403: {
16943
18865
  error: string;
16944
18866
  /**
16945
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
18867
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
16946
18868
  */
16947
18869
  code?: string;
16948
18870
  /**
@@ -16967,7 +18889,7 @@ export type AddArtifactCommentErrors = {
16967
18889
  404: {
16968
18890
  error: string;
16969
18891
  /**
16970
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
18892
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
16971
18893
  */
16972
18894
  code?: string;
16973
18895
  /**
@@ -16992,7 +18914,7 @@ export type AddArtifactCommentErrors = {
16992
18914
  413: {
16993
18915
  error: string;
16994
18916
  /**
16995
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
18917
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
16996
18918
  */
16997
18919
  code?: string;
16998
18920
  /**
@@ -17017,7 +18939,7 @@ export type AddArtifactCommentErrors = {
17017
18939
  501: {
17018
18940
  error: string;
17019
18941
  /**
17020
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
18942
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
17021
18943
  */
17022
18944
  code?: string;
17023
18945
  /**
@@ -17132,7 +19054,7 @@ export type ResolveArtifactCommentErrors = {
17132
19054
  400: {
17133
19055
  error: string;
17134
19056
  /**
17135
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
19057
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
17136
19058
  */
17137
19059
  code?: string;
17138
19060
  /**
@@ -17157,7 +19079,7 @@ export type ResolveArtifactCommentErrors = {
17157
19079
  403: {
17158
19080
  error: string;
17159
19081
  /**
17160
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
19082
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
17161
19083
  */
17162
19084
  code?: string;
17163
19085
  /**
@@ -17182,7 +19104,7 @@ export type ResolveArtifactCommentErrors = {
17182
19104
  404: {
17183
19105
  error: string;
17184
19106
  /**
17185
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
19107
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
17186
19108
  */
17187
19109
  code?: string;
17188
19110
  /**
@@ -17207,7 +19129,7 @@ export type ResolveArtifactCommentErrors = {
17207
19129
  501: {
17208
19130
  error: string;
17209
19131
  /**
17210
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
19132
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
17211
19133
  */
17212
19134
  code?: string;
17213
19135
  /**
@@ -17317,7 +19239,7 @@ export type DeleteArtifactCommentErrors = {
17317
19239
  403: {
17318
19240
  error: string;
17319
19241
  /**
17320
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
19242
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
17321
19243
  */
17322
19244
  code?: string;
17323
19245
  /**
@@ -17342,7 +19264,7 @@ export type DeleteArtifactCommentErrors = {
17342
19264
  404: {
17343
19265
  error: string;
17344
19266
  /**
17345
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
19267
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
17346
19268
  */
17347
19269
  code?: string;
17348
19270
  /**
@@ -17367,7 +19289,7 @@ export type DeleteArtifactCommentErrors = {
17367
19289
  501: {
17368
19290
  error: string;
17369
19291
  /**
17370
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
19292
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
17371
19293
  */
17372
19294
  code?: string;
17373
19295
  /**
@@ -17412,7 +19334,7 @@ export type ListArtifactRestorePointsErrors = {
17412
19334
  403: {
17413
19335
  error: string;
17414
19336
  /**
17415
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
19337
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
17416
19338
  */
17417
19339
  code?: string;
17418
19340
  /**
@@ -17437,7 +19359,7 @@ export type ListArtifactRestorePointsErrors = {
17437
19359
  404: {
17438
19360
  error: string;
17439
19361
  /**
17440
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
19362
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
17441
19363
  */
17442
19364
  code?: string;
17443
19365
  /**
@@ -17462,7 +19384,7 @@ export type ListArtifactRestorePointsErrors = {
17462
19384
  501: {
17463
19385
  error: string;
17464
19386
  /**
17465
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
19387
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
17466
19388
  */
17467
19389
  code?: string;
17468
19390
  /**
@@ -17556,7 +19478,7 @@ export type GetArtifactRestorePointErrors = {
17556
19478
  403: {
17557
19479
  error: string;
17558
19480
  /**
17559
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
19481
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
17560
19482
  */
17561
19483
  code?: string;
17562
19484
  /**
@@ -17581,7 +19503,7 @@ export type GetArtifactRestorePointErrors = {
17581
19503
  404: {
17582
19504
  error: string;
17583
19505
  /**
17584
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
19506
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
17585
19507
  */
17586
19508
  code?: string;
17587
19509
  /**
@@ -17606,7 +19528,7 @@ export type GetArtifactRestorePointErrors = {
17606
19528
  501: {
17607
19529
  error: string;
17608
19530
  /**
17609
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
19531
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
17610
19532
  */
17611
19533
  code?: string;
17612
19534
  /**
@@ -17695,6 +19617,33 @@ export type GetArtifactRestorePointResponses = {
17695
19617
  text: string;
17696
19618
  slug: string;
17697
19619
  }>;
19620
+ /**
19621
+ * html for a designed document, document.html with its own stylesheets
19622
+ */
19623
+ format?: "html";
19624
+ /**
19625
+ * The sheet a designed document's @page rule sets, in CSS pixels: its size and margins
19626
+ */
19627
+ paper?: {
19628
+ width: number;
19629
+ height: number;
19630
+ margin: {
19631
+ top: number;
19632
+ right: number;
19633
+ bottom: number;
19634
+ left: number;
19635
+ };
19636
+ };
19637
+ /**
19638
+ * The object a designed document shows live data of, as <meta name="sixb:object-type"> names its type: the one object of that type that holds the document
19639
+ */
19640
+ holder?: {
19641
+ objectTypeId: string;
19642
+ /**
19643
+ * The holder's links its fields read through
19644
+ */
19645
+ links: Array<string>;
19646
+ };
17698
19647
  } | {
17699
19648
  kind: "sheet";
17700
19649
  sheets: Array<{
@@ -17826,7 +19775,7 @@ export type RestoreArtifactErrors = {
17826
19775
  400: {
17827
19776
  error: string;
17828
19777
  /**
17829
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
19778
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
17830
19779
  */
17831
19780
  code?: string;
17832
19781
  /**
@@ -17851,7 +19800,7 @@ export type RestoreArtifactErrors = {
17851
19800
  403: {
17852
19801
  error: string;
17853
19802
  /**
17854
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
19803
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
17855
19804
  */
17856
19805
  code?: string;
17857
19806
  /**
@@ -17876,7 +19825,7 @@ export type RestoreArtifactErrors = {
17876
19825
  404: {
17877
19826
  error: string;
17878
19827
  /**
17879
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
19828
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
17880
19829
  */
17881
19830
  code?: string;
17882
19831
  /**
@@ -17901,7 +19850,7 @@ export type RestoreArtifactErrors = {
17901
19850
  409: {
17902
19851
  error: string;
17903
19852
  /**
17904
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
19853
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
17905
19854
  */
17906
19855
  code?: string;
17907
19856
  /**
@@ -17926,7 +19875,7 @@ export type RestoreArtifactErrors = {
17926
19875
  501: {
17927
19876
  error: string;
17928
19877
  /**
17929
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
19878
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
17930
19879
  */
17931
19880
  code?: string;
17932
19881
  /**
@@ -18006,6 +19955,33 @@ export type RestoreArtifactResponses = {
18006
19955
  text: string;
18007
19956
  slug: string;
18008
19957
  }>;
19958
+ /**
19959
+ * html for a designed document, document.html with its own stylesheets
19960
+ */
19961
+ format?: "html";
19962
+ /**
19963
+ * The sheet a designed document's @page rule sets, in CSS pixels: its size and margins
19964
+ */
19965
+ paper?: {
19966
+ width: number;
19967
+ height: number;
19968
+ margin: {
19969
+ top: number;
19970
+ right: number;
19971
+ bottom: number;
19972
+ left: number;
19973
+ };
19974
+ };
19975
+ /**
19976
+ * The object a designed document shows live data of, as <meta name="sixb:object-type"> names its type: the one object of that type that holds the document
19977
+ */
19978
+ holder?: {
19979
+ objectTypeId: string;
19980
+ /**
19981
+ * The holder's links its fields read through
19982
+ */
19983
+ links: Array<string>;
19984
+ };
18009
19985
  } | {
18010
19986
  kind: "sheet";
18011
19987
  sheets: Array<{
@@ -18100,6 +20076,10 @@ export type RestoreArtifactResponses = {
18100
20076
  boardPreviews?: {
18101
20077
  [key: string]: "ready" | "pending" | "none";
18102
20078
  };
20079
+ /**
20080
+ * true for a designed document in a project that prints to PDF: POST to its pdf route to print it, with the values whoever asks reads
20081
+ */
20082
+ printable?: boolean;
18103
20083
  };
18104
20084
  };
18105
20085
  };
@@ -18123,7 +20103,7 @@ export type CreateArtifactFrameErrors = {
18123
20103
  403: {
18124
20104
  error: string;
18125
20105
  /**
18126
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
20106
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
18127
20107
  */
18128
20108
  code?: string;
18129
20109
  /**
@@ -18148,7 +20128,7 @@ export type CreateArtifactFrameErrors = {
18148
20128
  404: {
18149
20129
  error: string;
18150
20130
  /**
18151
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
20131
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
18152
20132
  */
18153
20133
  code?: string;
18154
20134
  /**
@@ -18173,7 +20153,7 @@ export type CreateArtifactFrameErrors = {
18173
20153
  409: {
18174
20154
  error: string;
18175
20155
  /**
18176
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
20156
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
18177
20157
  */
18178
20158
  code?: string;
18179
20159
  /**
@@ -18198,7 +20178,7 @@ export type CreateArtifactFrameErrors = {
18198
20178
  501: {
18199
20179
  error: string;
18200
20180
  /**
18201
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
20181
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
18202
20182
  */
18203
20183
  code?: string;
18204
20184
  /**
@@ -18254,7 +20234,7 @@ export type GetArtifactVersionErrors = {
18254
20234
  403: {
18255
20235
  error: string;
18256
20236
  /**
18257
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
20237
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
18258
20238
  */
18259
20239
  code?: string;
18260
20240
  /**
@@ -18279,7 +20259,7 @@ export type GetArtifactVersionErrors = {
18279
20259
  404: {
18280
20260
  error: string;
18281
20261
  /**
18282
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
20262
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
18283
20263
  */
18284
20264
  code?: string;
18285
20265
  /**
@@ -18304,7 +20284,7 @@ export type GetArtifactVersionErrors = {
18304
20284
  501: {
18305
20285
  error: string;
18306
20286
  /**
18307
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
20287
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
18308
20288
  */
18309
20289
  code?: string;
18310
20290
  /**
@@ -18363,6 +20343,33 @@ export type GetArtifactVersionResponses = {
18363
20343
  text: string;
18364
20344
  slug: string;
18365
20345
  }>;
20346
+ /**
20347
+ * html for a designed document, document.html with its own stylesheets
20348
+ */
20349
+ format?: "html";
20350
+ /**
20351
+ * The sheet a designed document's @page rule sets, in CSS pixels: its size and margins
20352
+ */
20353
+ paper?: {
20354
+ width: number;
20355
+ height: number;
20356
+ margin: {
20357
+ top: number;
20358
+ right: number;
20359
+ bottom: number;
20360
+ left: number;
20361
+ };
20362
+ };
20363
+ /**
20364
+ * The object a designed document shows live data of, as <meta name="sixb:object-type"> names its type: the one object of that type that holds the document
20365
+ */
20366
+ holder?: {
20367
+ objectTypeId: string;
20368
+ /**
20369
+ * The holder's links its fields read through
20370
+ */
20371
+ links: Array<string>;
20372
+ };
18366
20373
  } | {
18367
20374
  kind: "sheet";
18368
20375
  sheets: Array<{
@@ -18457,9 +20464,205 @@ export type GetArtifactVersionResponses = {
18457
20464
  boardPreviews?: {
18458
20465
  [key: string]: "ready" | "pending" | "none";
18459
20466
  };
20467
+ /**
20468
+ * true for a designed document in a project that prints to PDF: POST to its pdf route to print it, with the values whoever asks reads
20469
+ */
20470
+ printable?: boolean;
18460
20471
  };
18461
20472
  };
18462
20473
  export type GetArtifactVersionResponse = GetArtifactVersionResponses[keyof GetArtifactVersionResponses];
20474
+ export type GetArtifactPdfData = {
20475
+ body?: never;
20476
+ path: {
20477
+ artifactId: string;
20478
+ /**
20479
+ * A version number, or "latest"
20480
+ */
20481
+ version: string;
20482
+ };
20483
+ query?: {
20484
+ /**
20485
+ * The values a document that shows live data prints: ask with it again, and get that PDF with it, whatever the values are by then
20486
+ */
20487
+ key?: string;
20488
+ };
20489
+ url: "/api/artifacts/{artifactId}/versions/{version}/pdf";
20490
+ };
20491
+ export type GetArtifactPdfErrors = {
20492
+ /**
20493
+ * Response for status 403
20494
+ */
20495
+ 403: ArtifactErrorResponse;
20496
+ /**
20497
+ * Response for status 404
20498
+ */
20499
+ 404: ArtifactErrorResponse;
20500
+ };
20501
+ export type GetArtifactPdfError = GetArtifactPdfErrors[keyof GetArtifactPdfErrors];
20502
+ export type GetArtifactPdfResponses = {
20503
+ /**
20504
+ * The PDF
20505
+ */
20506
+ 200: Blob | File;
20507
+ };
20508
+ export type GetArtifactPdfResponse = GetArtifactPdfResponses[keyof GetArtifactPdfResponses];
20509
+ export type PrintArtifactPdfData = {
20510
+ body?: never;
20511
+ path: {
20512
+ artifactId: string;
20513
+ /**
20514
+ * A version number, or "latest"
20515
+ */
20516
+ version: string;
20517
+ };
20518
+ query?: {
20519
+ /**
20520
+ * true asks again for a PDF that could not be printed, instead of hearing why
20521
+ */
20522
+ retry?: "true" | "false";
20523
+ /**
20524
+ * The values a document that shows live data prints: ask with it again, and get that PDF with it, whatever the values are by then
20525
+ */
20526
+ key?: string;
20527
+ };
20528
+ url: "/api/artifacts/{artifactId}/versions/{version}/pdf";
20529
+ };
20530
+ export type PrintArtifactPdfErrors = {
20531
+ /**
20532
+ * Response for status 400
20533
+ */
20534
+ 400: {
20535
+ error: string;
20536
+ /**
20537
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
20538
+ */
20539
+ code?: string;
20540
+ /**
20541
+ * With artifact_moved: the artifact's latest version, its revision, who last wrote it, and who created it once it is frozen
20542
+ */
20543
+ latest?: {
20544
+ version: number;
20545
+ revision: number;
20546
+ author: {
20547
+ type: "user" | "serviceAccount" | "system";
20548
+ id: string;
20549
+ };
20550
+ frozenBy?: {
20551
+ type: "user" | "serviceAccount" | "system";
20552
+ id: string;
20553
+ };
20554
+ };
20555
+ };
20556
+ /**
20557
+ * Response for status 403
20558
+ */
20559
+ 403: {
20560
+ error: string;
20561
+ /**
20562
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
20563
+ */
20564
+ code?: string;
20565
+ /**
20566
+ * With artifact_moved: the artifact's latest version, its revision, who last wrote it, and who created it once it is frozen
20567
+ */
20568
+ latest?: {
20569
+ version: number;
20570
+ revision: number;
20571
+ author: {
20572
+ type: "user" | "serviceAccount" | "system";
20573
+ id: string;
20574
+ };
20575
+ frozenBy?: {
20576
+ type: "user" | "serviceAccount" | "system";
20577
+ id: string;
20578
+ };
20579
+ };
20580
+ };
20581
+ /**
20582
+ * Response for status 404
20583
+ */
20584
+ 404: {
20585
+ error: string;
20586
+ /**
20587
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
20588
+ */
20589
+ code?: string;
20590
+ /**
20591
+ * With artifact_moved: the artifact's latest version, its revision, who last wrote it, and who created it once it is frozen
20592
+ */
20593
+ latest?: {
20594
+ version: number;
20595
+ revision: number;
20596
+ author: {
20597
+ type: "user" | "serviceAccount" | "system";
20598
+ id: string;
20599
+ };
20600
+ frozenBy?: {
20601
+ type: "user" | "serviceAccount" | "system";
20602
+ id: string;
20603
+ };
20604
+ };
20605
+ };
20606
+ /**
20607
+ * Response for status 501
20608
+ */
20609
+ 501: {
20610
+ error: string;
20611
+ /**
20612
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
20613
+ */
20614
+ code?: string;
20615
+ /**
20616
+ * With artifact_moved: the artifact's latest version, its revision, who last wrote it, and who created it once it is frozen
20617
+ */
20618
+ latest?: {
20619
+ version: number;
20620
+ revision: number;
20621
+ author: {
20622
+ type: "user" | "serviceAccount" | "system";
20623
+ id: string;
20624
+ };
20625
+ frozenBy?: {
20626
+ type: "user" | "serviceAccount" | "system";
20627
+ id: string;
20628
+ };
20629
+ };
20630
+ };
20631
+ };
20632
+ export type PrintArtifactPdfError = PrintArtifactPdfErrors[keyof PrintArtifactPdfErrors];
20633
+ export type PrintArtifactPdfResponses = {
20634
+ /**
20635
+ * Response for status 200
20636
+ */
20637
+ 200: {
20638
+ status: "ready";
20639
+ /**
20640
+ * How many pages it printed on
20641
+ */
20642
+ pages: number;
20643
+ /**
20644
+ * The values a document that shows live data prints: ask with it again, and get that PDF with it, whatever the values are by then
20645
+ */
20646
+ key?: string;
20647
+ } | {
20648
+ status: "printing";
20649
+ /**
20650
+ * The values a document that shows live data prints: ask with it again, and get that PDF with it, whatever the values are by then
20651
+ */
20652
+ key?: string;
20653
+ } | {
20654
+ status: "failed";
20655
+ /**
20656
+ * Why it could not be printed
20657
+ */
20658
+ reason: string;
20659
+ /**
20660
+ * The values a document that shows live data prints: ask with it again, and get that PDF with it, whatever the values are by then
20661
+ */
20662
+ key?: string;
20663
+ };
20664
+ };
20665
+ export type PrintArtifactPdfResponse = PrintArtifactPdfResponses[keyof PrintArtifactPdfResponses];
18463
20666
  export type GetArtifactBoardPreviewData = {
18464
20667
  body?: never;
18465
20668
  path: {
@@ -19267,6 +21470,10 @@ export type GetObjectLinkLineageResponses = {
19267
21470
  type: "ontology.indexVectors";
19268
21471
  indexingId: string;
19269
21472
  };
21473
+ } | {
21474
+ type: "script";
21475
+ runId: string;
21476
+ path: string;
19270
21477
  };
19271
21478
  /**
19272
21479
  * Absent for a direct write, and for an Action run the caller cannot view.
@@ -19307,6 +21514,10 @@ export type GetObjectLinkLineageResponses = {
19307
21514
  type: "ontology.indexVectors";
19308
21515
  indexingId: string;
19309
21516
  };
21517
+ } | {
21518
+ type: "script";
21519
+ runId: string;
21520
+ path: string;
19310
21521
  };
19311
21522
  } | {
19312
21523
  kind: "identity";
@@ -19461,8 +21672,8 @@ export type ListEventsData = {
19461
21672
  body?: never;
19462
21673
  path?: never;
19463
21674
  query?: {
19464
- topic?: "objects" | "telemetry" | "links" | "schedules" | "syncs" | "pipelines" | "workflows" | "datasets" | "rules" | "users" | "artifacts";
19465
- type?: "object.created" | "object.updated" | "object.deleted" | "telemetry.appended" | "link.created" | "link.updated" | "link.deleted" | "schedule.triggered" | "sync.run.started" | "sync.run.finished" | "pipeline.run.started" | "pipeline.run.step.started" | "pipeline.run.step.finished" | "pipeline.run.finished" | "workflow.run.queued" | "workflow.run.started" | "workflow.run.node.started" | "workflow.run.waiting" | "workflow.run.node.waiting" | "workflow.run.node.finished" | "workflow.run.finished" | "workflow.intervention.requested" | "workflow.intervention.submitted" | "workflow.intervention.cancelled" | "workflow.intervention.expired" | "dataset.version.committed" | "rule.triggered" | "rule.resolved" | "user.joined" | "user.suspended" | "user.reactivated" | "user.invited" | "user.profile.updated" | "artifact.updated" | "artifact.commented";
21675
+ topic?: "objects" | "telemetry" | "links" | "schedules" | "syncs" | "pipelines" | "workflows" | "datasets" | "rules" | "users" | "artifacts" | "connectors";
21676
+ type?: "object.created" | "object.updated" | "object.deleted" | "telemetry.appended" | "link.created" | "link.updated" | "link.deleted" | "schedule.triggered" | "sync.run.started" | "sync.run.finished" | "pipeline.run.started" | "pipeline.run.step.started" | "pipeline.run.step.finished" | "pipeline.run.finished" | "workflow.run.queued" | "workflow.run.started" | "workflow.run.node.started" | "workflow.run.waiting" | "workflow.run.node.waiting" | "workflow.run.node.finished" | "workflow.run.finished" | "workflow.intervention.requested" | "workflow.intervention.submitted" | "workflow.intervention.cancelled" | "workflow.intervention.expired" | "dataset.version.committed" | "rule.triggered" | "rule.resolved" | "user.joined" | "user.suspended" | "user.reactivated" | "user.invited" | "user.profile.updated" | "artifact.updated" | "artifact.commented" | "connector.connection.connected" | "connector.connection.disconnected";
19466
21677
  afterCursor?: string;
19467
21678
  limit?: string;
19468
21679
  };
@@ -19550,6 +21761,10 @@ export type ListEventsResponses = {
19550
21761
  type: "ontology.indexVectors";
19551
21762
  indexingId: string;
19552
21763
  };
21764
+ } | {
21765
+ type: "script";
21766
+ runId: string;
21767
+ path: string;
19553
21768
  };
19554
21769
  commitId: string;
19555
21770
  commitOrdinal: number;
@@ -19664,6 +21879,10 @@ export type ListEventsResponses = {
19664
21879
  type: "ontology.indexVectors";
19665
21880
  indexingId: string;
19666
21881
  };
21882
+ } | {
21883
+ type: "script";
21884
+ runId: string;
21885
+ path: string;
19667
21886
  };
19668
21887
  commitId: string;
19669
21888
  commitOrdinal: number;
@@ -19778,6 +21997,10 @@ export type ListEventsResponses = {
19778
21997
  type: "ontology.indexVectors";
19779
21998
  indexingId: string;
19780
21999
  };
22000
+ } | {
22001
+ type: "script";
22002
+ runId: string;
22003
+ path: string;
19781
22004
  };
19782
22005
  commitId: string;
19783
22006
  commitOrdinal: number;
@@ -19887,6 +22110,10 @@ export type ListEventsResponses = {
19887
22110
  type: "ontology.indexVectors";
19888
22111
  indexingId: string;
19889
22112
  };
22113
+ } | {
22114
+ type: "script";
22115
+ runId: string;
22116
+ path: string;
19890
22117
  };
19891
22118
  commitId: string;
19892
22119
  commitOrdinal: number;
@@ -19966,6 +22193,10 @@ export type ListEventsResponses = {
19966
22193
  type: "ontology.indexVectors";
19967
22194
  indexingId: string;
19968
22195
  };
22196
+ } | {
22197
+ type: "script";
22198
+ runId: string;
22199
+ path: string;
19969
22200
  };
19970
22201
  commitId: string;
19971
22202
  commitOrdinal: number;
@@ -20078,6 +22309,10 @@ export type ListEventsResponses = {
20078
22309
  type: "ontology.indexVectors";
20079
22310
  indexingId: string;
20080
22311
  };
22312
+ } | {
22313
+ type: "script";
22314
+ runId: string;
22315
+ path: string;
20081
22316
  };
20082
22317
  commitId: string;
20083
22318
  commitOrdinal: number;
@@ -20190,6 +22425,10 @@ export type ListEventsResponses = {
20190
22425
  type: "ontology.indexVectors";
20191
22426
  indexingId: string;
20192
22427
  };
22428
+ } | {
22429
+ type: "script";
22430
+ runId: string;
22431
+ path: string;
20193
22432
  };
20194
22433
  commitId: string;
20195
22434
  commitOrdinal: number;
@@ -20278,8 +22517,8 @@ export type ListEventsResponses = {
20278
22517
  [key: string]: unknown;
20279
22518
  } | null;
20280
22519
  };
20281
- type: "schedule.triggered" | "sync.run.started" | "sync.run.finished" | "pipeline.run.started" | "pipeline.run.step.started" | "pipeline.run.step.finished" | "pipeline.run.finished" | "workflow.run.queued" | "workflow.run.started" | "workflow.run.node.started" | "workflow.run.waiting" | "workflow.run.node.waiting" | "workflow.run.node.finished" | "workflow.run.finished" | "workflow.intervention.requested" | "workflow.intervention.submitted" | "workflow.intervention.cancelled" | "workflow.intervention.expired" | "dataset.version.committed" | "rule.triggered" | "rule.resolved" | "user.joined" | "user.suspended" | "user.reactivated" | "user.invited" | "user.profile.updated" | "artifact.updated" | "artifact.commented";
20282
- topic: "objects" | "telemetry" | "links" | "schedules" | "syncs" | "pipelines" | "workflows" | "datasets" | "rules" | "users" | "artifacts";
22520
+ type: "schedule.triggered" | "sync.run.started" | "sync.run.finished" | "pipeline.run.started" | "pipeline.run.step.started" | "pipeline.run.step.finished" | "pipeline.run.finished" | "workflow.run.queued" | "workflow.run.started" | "workflow.run.node.started" | "workflow.run.waiting" | "workflow.run.node.waiting" | "workflow.run.node.finished" | "workflow.run.finished" | "workflow.intervention.requested" | "workflow.intervention.submitted" | "workflow.intervention.cancelled" | "workflow.intervention.expired" | "dataset.version.committed" | "rule.triggered" | "rule.resolved" | "user.joined" | "user.suspended" | "user.reactivated" | "user.invited" | "user.profile.updated" | "artifact.updated" | "artifact.commented" | "connector.connection.connected" | "connector.connection.disconnected";
22521
+ topic: "objects" | "telemetry" | "links" | "schedules" | "syncs" | "pipelines" | "workflows" | "datasets" | "rules" | "users" | "artifacts" | "connectors";
20283
22522
  payload: {
20284
22523
  [key: string]: unknown;
20285
22524
  };
@@ -20938,6 +23177,7 @@ export type ListProjectionsResponses = {
20938
23177
  strategy: "mostRecent";
20939
23178
  sourceTimestamp: string;
20940
23179
  };
23180
+ missing?: "remove";
20941
23181
  latestRun: {
20942
23182
  id: string;
20943
23183
  projectId: string;
@@ -21423,6 +23663,7 @@ export type GetProjectionResponses = {
21423
23663
  strategy: "mostRecent";
21424
23664
  sourceTimestamp: string;
21425
23665
  };
23666
+ missing?: "remove";
21426
23667
  latestRun: {
21427
23668
  id: string;
21428
23669
  projectId: string;