@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
@@ -105,7 +105,7 @@ export type ObjectQueryFacetsResponse = {
105
105
  export type ArtifactErrorResponse = {
106
106
  error: string
107
107
  /**
108
- * 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.
108
+ * 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.
109
109
  */
110
110
  code?: string
111
111
  /**
@@ -2331,6 +2331,10 @@ export type GetAiAccountingOverviewData = {
2331
2331
  | "reranking"
2332
2332
  | "web-search"
2333
2333
  bucket: "hour" | "day" | "week"
2334
+ /**
2335
+ * The IANA time zone whose days, weeks or hours the periods follow, such as America/New_York; UTC when absent
2336
+ */
2337
+ timeZone?: string
2334
2338
  }
2335
2339
  url: "/api/ai/accounting/overview"
2336
2340
  }
@@ -4780,6 +4784,12 @@ export type TranscribeAudioResponses = {
4780
4784
  reason?: string
4781
4785
  }
4782
4786
  text: string
4787
+ words?: Array<{
4788
+ text: string
4789
+ startMs: number
4790
+ endMs: number
4791
+ speaker?: string
4792
+ }>
4783
4793
  }
4784
4794
  }
4785
4795
 
@@ -7001,6 +7011,7 @@ export type ListSyncsResponses = {
7001
7011
  id: string
7002
7012
  projectId: string
7003
7013
  syncId: string
7014
+ connectionId?: string
7004
7015
  datasetId: string
7005
7016
  mode: "snapshot" | "append" | "merge"
7006
7017
  status: "queued" | "running" | "succeeded" | "failed" | "cancelled"
@@ -7021,6 +7032,7 @@ export type ListSyncsResponses = {
7021
7032
  | "runtime.cancelled"
7022
7033
  | "queue.enqueue_failed"
7023
7034
  | "sync.execution_failed"
7035
+ | "connector.authorization_required"
7024
7036
  message: string
7025
7037
  retryable: boolean
7026
7038
  at: string
@@ -7041,6 +7053,14 @@ export type ListSyncsResponses = {
7041
7053
  truncated?: true
7042
7054
  }
7043
7055
  } | null
7056
+ accounts?: {
7057
+ total: number
7058
+ running: number
7059
+ needsReconnecting: number
7060
+ failing: number
7061
+ synced: number
7062
+ lastSyncedAt?: string
7063
+ }
7044
7064
  }>
7045
7065
  }
7046
7066
 
@@ -7111,6 +7131,7 @@ export type GetSyncResponses = {
7111
7131
  id: string
7112
7132
  projectId: string
7113
7133
  syncId: string
7134
+ connectionId?: string
7114
7135
  datasetId: string
7115
7136
  mode: "snapshot" | "append" | "merge"
7116
7137
  status: "queued" | "running" | "succeeded" | "failed" | "cancelled"
@@ -7131,6 +7152,7 @@ export type GetSyncResponses = {
7131
7152
  | "runtime.cancelled"
7132
7153
  | "queue.enqueue_failed"
7133
7154
  | "sync.execution_failed"
7155
+ | "connector.authorization_required"
7134
7156
  message: string
7135
7157
  retryable: boolean
7136
7158
  at: string
@@ -7151,16 +7173,176 @@ export type GetSyncResponses = {
7151
7173
  truncated?: true
7152
7174
  }
7153
7175
  } | null
7176
+ accounts?: {
7177
+ total: number
7178
+ running: number
7179
+ needsReconnecting: number
7180
+ failing: number
7181
+ synced: number
7182
+ lastSyncedAt?: string
7183
+ }
7154
7184
  }
7155
7185
  }
7156
7186
 
7157
7187
  export type GetSyncResponse = GetSyncResponses[keyof GetSyncResponses]
7158
7188
 
7189
+ export type ListConnectorAccountsData = {
7190
+ body?: never
7191
+ path: {
7192
+ connectorId: string
7193
+ }
7194
+ query?: never
7195
+ url: "/api/connectors/{connectorId}/accounts"
7196
+ }
7197
+
7198
+ export type ListConnectorAccountsResponses = {
7199
+ /**
7200
+ * Response for status 200
7201
+ */
7202
+ 200: {
7203
+ accounts: Array<{
7204
+ connection: {
7205
+ id: string
7206
+ owner:
7207
+ | {
7208
+ type: "project"
7209
+ }
7210
+ | {
7211
+ type: "user"
7212
+ id: string
7213
+ }
7214
+ slot: string
7215
+ account: {
7216
+ id: string
7217
+ label: string
7218
+ }
7219
+ }
7220
+ latestRuns: Array<{
7221
+ id: string
7222
+ projectId: string
7223
+ syncId: string
7224
+ connectionId?: string
7225
+ datasetId: string
7226
+ mode: "snapshot" | "append" | "merge"
7227
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled"
7228
+ attempt: number
7229
+ queuedAt: string
7230
+ startedAt?: string
7231
+ finishedAt?: string
7232
+ rowsRead?: number
7233
+ output?: {
7234
+ datasetId: string
7235
+ versionId: string
7236
+ }
7237
+ expectedLatestVersionId?: string
7238
+ commitMessage?: string
7239
+ error?: {
7240
+ code:
7241
+ | "internal.unexpected"
7242
+ | "runtime.cancelled"
7243
+ | "queue.enqueue_failed"
7244
+ | "sync.execution_failed"
7245
+ | "connector.authorization_required"
7246
+ message: string
7247
+ retryable: boolean
7248
+ at: string
7249
+ /**
7250
+ * Any JSON-compatible value.
7251
+ */
7252
+ details?:
7253
+ | string
7254
+ | number
7255
+ | boolean
7256
+ | Array<unknown>
7257
+ | {
7258
+ [key: string]: unknown
7259
+ }
7260
+ | null
7261
+ httpStatus?: number
7262
+ redacted?: true
7263
+ truncated?: true
7264
+ }
7265
+ }>
7266
+ }>
7267
+ }
7268
+ }
7269
+
7270
+ export type ListConnectorAccountsResponse =
7271
+ ListConnectorAccountsResponses[keyof ListConnectorAccountsResponses]
7272
+
7273
+ export type ListConnectorConnectionSyncRunsData = {
7274
+ body?: never
7275
+ path: {
7276
+ connectorId: string
7277
+ connectionId: string
7278
+ }
7279
+ query?: never
7280
+ url: "/api/connectors/{connectorId}/connections/{connectionId}/sync-runs"
7281
+ }
7282
+
7283
+ export type ListConnectorConnectionSyncRunsResponses = {
7284
+ /**
7285
+ * Response for status 200
7286
+ */
7287
+ 200: {
7288
+ runs: Array<{
7289
+ id: string
7290
+ projectId: string
7291
+ syncId: string
7292
+ connectionId?: string
7293
+ datasetId: string
7294
+ mode: "snapshot" | "append" | "merge"
7295
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled"
7296
+ attempt: number
7297
+ queuedAt: string
7298
+ startedAt?: string
7299
+ finishedAt?: string
7300
+ rowsRead?: number
7301
+ output?: {
7302
+ datasetId: string
7303
+ versionId: string
7304
+ }
7305
+ expectedLatestVersionId?: string
7306
+ commitMessage?: string
7307
+ error?: {
7308
+ code:
7309
+ | "internal.unexpected"
7310
+ | "runtime.cancelled"
7311
+ | "queue.enqueue_failed"
7312
+ | "sync.execution_failed"
7313
+ | "connector.authorization_required"
7314
+ message: string
7315
+ retryable: boolean
7316
+ at: string
7317
+ /**
7318
+ * Any JSON-compatible value.
7319
+ */
7320
+ details?:
7321
+ | string
7322
+ | number
7323
+ | boolean
7324
+ | Array<unknown>
7325
+ | {
7326
+ [key: string]: unknown
7327
+ }
7328
+ | null
7329
+ httpStatus?: number
7330
+ redacted?: true
7331
+ truncated?: true
7332
+ }
7333
+ }>
7334
+ }
7335
+ }
7336
+
7337
+ export type ListConnectorConnectionSyncRunsResponse =
7338
+ ListConnectorConnectionSyncRunsResponses[keyof ListConnectorConnectionSyncRunsResponses]
7339
+
7159
7340
  export type ListSyncRunsData = {
7160
7341
  body?: never
7161
7342
  path?: never
7162
7343
  query?: {
7163
7344
  syncId?: string
7345
+ connectionId?: string
7164
7346
  datasetId?: string
7165
7347
  status?: "queued" | "running" | "succeeded" | "failed" | "cancelled"
7166
7348
  startedAfter?: string
@@ -7198,6 +7380,7 @@ export type ListSyncRunsResponses = {
7198
7380
  id: string
7199
7381
  projectId: string
7200
7382
  syncId: string
7383
+ connectionId?: string
7201
7384
  datasetId: string
7202
7385
  mode: "snapshot" | "append" | "merge"
7203
7386
  status: "queued" | "running" | "succeeded" | "failed" | "cancelled"
@@ -7218,6 +7401,7 @@ export type ListSyncRunsResponses = {
7218
7401
  | "runtime.cancelled"
7219
7402
  | "queue.enqueue_failed"
7220
7403
  | "sync.execution_failed"
7404
+ | "connector.authorization_required"
7221
7405
  message: string
7222
7406
  retryable: boolean
7223
7407
  at: string
@@ -7247,6 +7431,7 @@ export type ListSyncRunsResponse = ListSyncRunsResponses[keyof ListSyncRunsRespo
7247
7431
 
7248
7432
  export type RequestSyncRunData = {
7249
7433
  body: {
7434
+ connectionId?: string
7250
7435
  expectedLatestVersionId?: string
7251
7436
  commitMessage?: string
7252
7437
  }
@@ -7285,10 +7470,13 @@ export type RequestSyncRunResponses = {
7285
7470
  * Response for status 202
7286
7471
  */
7287
7472
  202: {
7288
- runId: string
7289
- jobId: string
7290
- syncId: string
7291
- queuedAt: string
7473
+ runs: Array<{
7474
+ runId: string
7475
+ jobId: string
7476
+ syncId: string
7477
+ connectionId?: string
7478
+ queuedAt: string
7479
+ }>
7292
7480
  }
7293
7481
  }
7294
7482
 
@@ -11438,6 +11626,11 @@ export type GetObjectLineageResponses = {
11438
11626
  indexingId: string
11439
11627
  }
11440
11628
  }
11629
+ | {
11630
+ type: "script"
11631
+ runId: string
11632
+ path: string
11633
+ }
11441
11634
  /**
11442
11635
  * Absent for a direct write, and for an Action run the caller cannot view.
11443
11636
  */
@@ -11492,6 +11685,11 @@ export type GetObjectLineageResponses = {
11492
11685
  indexingId: string
11493
11686
  }
11494
11687
  }
11688
+ | {
11689
+ type: "script"
11690
+ runId: string
11691
+ path: string
11692
+ }
11495
11693
  }
11496
11694
  | {
11497
11695
  kind: "identity"
@@ -12780,6 +12978,42 @@ export type ListAgentThreadsResponses = {
12780
12978
  messageCount: number
12781
12979
  createdAt: string
12782
12980
  updatedAt: string
12981
+ read?: {
12982
+ threadId: string
12983
+ throughSeq: number
12984
+ headSeq: number
12985
+ unread: number
12986
+ readAt?: string
12987
+ }
12988
+ lastRun?: {
12989
+ id: string
12990
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled"
12991
+ finishReason?:
12992
+ | "stop"
12993
+ | "length"
12994
+ | "content-filter"
12995
+ | "tool-calls"
12996
+ | "timeout"
12997
+ | "interrupted"
12998
+ | "awaiting_approval"
12999
+ | "awaiting_answer"
13000
+ | "error"
13001
+ | "other"
13002
+ | "unknown"
13003
+ errorCode?:
13004
+ | "internal.unexpected"
13005
+ | "runtime.cancelled"
13006
+ | "agent.context_limit_exceeded"
13007
+ | "agent.execution_failed"
13008
+ | "agent.step_limit_reached"
13009
+ | "ai.usage_limit_exceeded"
13010
+ | "ai.usage_limit_unavailable"
13011
+ completedAt?: string
13012
+ requestedBy?: {
13013
+ type: "user" | "serviceAccount"
13014
+ id: string
13015
+ }
13016
+ }
12783
13017
  approvalMode?: "manual" | "accept-edits" | "auto"
12784
13018
  approvalModeSource?: "thread" | "default" | "fallback" | "run"
12785
13019
  }>
@@ -12922,6 +13156,42 @@ export type CreateAgentThreadResponses = {
12922
13156
  messageCount: number
12923
13157
  createdAt: string
12924
13158
  updatedAt: string
13159
+ read?: {
13160
+ threadId: string
13161
+ throughSeq: number
13162
+ headSeq: number
13163
+ unread: number
13164
+ readAt?: string
13165
+ }
13166
+ lastRun?: {
13167
+ id: string
13168
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled"
13169
+ finishReason?:
13170
+ | "stop"
13171
+ | "length"
13172
+ | "content-filter"
13173
+ | "tool-calls"
13174
+ | "timeout"
13175
+ | "interrupted"
13176
+ | "awaiting_approval"
13177
+ | "awaiting_answer"
13178
+ | "error"
13179
+ | "other"
13180
+ | "unknown"
13181
+ errorCode?:
13182
+ | "internal.unexpected"
13183
+ | "runtime.cancelled"
13184
+ | "agent.context_limit_exceeded"
13185
+ | "agent.execution_failed"
13186
+ | "agent.step_limit_reached"
13187
+ | "ai.usage_limit_exceeded"
13188
+ | "ai.usage_limit_unavailable"
13189
+ completedAt?: string
13190
+ requestedBy?: {
13191
+ type: "user" | "serviceAccount"
13192
+ id: string
13193
+ }
13194
+ }
12925
13195
  approvalMode?: "manual" | "accept-edits" | "auto"
12926
13196
  approvalModeSource?: "thread" | "default" | "fallback" | "run"
12927
13197
  }
@@ -13037,6 +13307,42 @@ export type GetAgentThreadResponses = {
13037
13307
  messageCount: number
13038
13308
  createdAt: string
13039
13309
  updatedAt: string
13310
+ read?: {
13311
+ threadId: string
13312
+ throughSeq: number
13313
+ headSeq: number
13314
+ unread: number
13315
+ readAt?: string
13316
+ }
13317
+ lastRun?: {
13318
+ id: string
13319
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled"
13320
+ finishReason?:
13321
+ | "stop"
13322
+ | "length"
13323
+ | "content-filter"
13324
+ | "tool-calls"
13325
+ | "timeout"
13326
+ | "interrupted"
13327
+ | "awaiting_approval"
13328
+ | "awaiting_answer"
13329
+ | "error"
13330
+ | "other"
13331
+ | "unknown"
13332
+ errorCode?:
13333
+ | "internal.unexpected"
13334
+ | "runtime.cancelled"
13335
+ | "agent.context_limit_exceeded"
13336
+ | "agent.execution_failed"
13337
+ | "agent.step_limit_reached"
13338
+ | "ai.usage_limit_exceeded"
13339
+ | "ai.usage_limit_unavailable"
13340
+ completedAt?: string
13341
+ requestedBy?: {
13342
+ type: "user" | "serviceAccount"
13343
+ id: string
13344
+ }
13345
+ }
13040
13346
  approvalMode?: "manual" | "accept-edits" | "auto"
13041
13347
  approvalModeSource?: "thread" | "default" | "fallback" | "run"
13042
13348
  }
@@ -13177,6 +13483,42 @@ export type AddAgentThreadParticipantsResponses = {
13177
13483
  messageCount: number
13178
13484
  createdAt: string
13179
13485
  updatedAt: string
13486
+ read?: {
13487
+ threadId: string
13488
+ throughSeq: number
13489
+ headSeq: number
13490
+ unread: number
13491
+ readAt?: string
13492
+ }
13493
+ lastRun?: {
13494
+ id: string
13495
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled"
13496
+ finishReason?:
13497
+ | "stop"
13498
+ | "length"
13499
+ | "content-filter"
13500
+ | "tool-calls"
13501
+ | "timeout"
13502
+ | "interrupted"
13503
+ | "awaiting_approval"
13504
+ | "awaiting_answer"
13505
+ | "error"
13506
+ | "other"
13507
+ | "unknown"
13508
+ errorCode?:
13509
+ | "internal.unexpected"
13510
+ | "runtime.cancelled"
13511
+ | "agent.context_limit_exceeded"
13512
+ | "agent.execution_failed"
13513
+ | "agent.step_limit_reached"
13514
+ | "ai.usage_limit_exceeded"
13515
+ | "ai.usage_limit_unavailable"
13516
+ completedAt?: string
13517
+ requestedBy?: {
13518
+ type: "user" | "serviceAccount"
13519
+ id: string
13520
+ }
13521
+ }
13180
13522
  approvalMode?: "manual" | "accept-edits" | "auto"
13181
13523
  approvalModeSource?: "thread" | "default" | "fallback" | "run"
13182
13524
  }
@@ -13357,6 +13699,42 @@ export type ForkAgentThreadResponses = {
13357
13699
  messageCount: number
13358
13700
  createdAt: string
13359
13701
  updatedAt: string
13702
+ read?: {
13703
+ threadId: string
13704
+ throughSeq: number
13705
+ headSeq: number
13706
+ unread: number
13707
+ readAt?: string
13708
+ }
13709
+ lastRun?: {
13710
+ id: string
13711
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled"
13712
+ finishReason?:
13713
+ | "stop"
13714
+ | "length"
13715
+ | "content-filter"
13716
+ | "tool-calls"
13717
+ | "timeout"
13718
+ | "interrupted"
13719
+ | "awaiting_approval"
13720
+ | "awaiting_answer"
13721
+ | "error"
13722
+ | "other"
13723
+ | "unknown"
13724
+ errorCode?:
13725
+ | "internal.unexpected"
13726
+ | "runtime.cancelled"
13727
+ | "agent.context_limit_exceeded"
13728
+ | "agent.execution_failed"
13729
+ | "agent.step_limit_reached"
13730
+ | "ai.usage_limit_exceeded"
13731
+ | "ai.usage_limit_unavailable"
13732
+ completedAt?: string
13733
+ requestedBy?: {
13734
+ type: "user" | "serviceAccount"
13735
+ id: string
13736
+ }
13737
+ }
13360
13738
  approvalMode?: "manual" | "accept-edits" | "auto"
13361
13739
  approvalModeSource?: "thread" | "default" | "fallback" | "run"
13362
13740
  }
@@ -13483,14 +13861,212 @@ export type RecreateAgentThreadSandboxResponses = {
13483
13861
  messageCount: number
13484
13862
  createdAt: string
13485
13863
  updatedAt: string
13486
- approvalMode?: "manual" | "accept-edits" | "auto"
13487
- approvalModeSource?: "thread" | "default" | "fallback" | "run"
13488
- }
13864
+ read?: {
13865
+ threadId: string
13866
+ throughSeq: number
13867
+ headSeq: number
13868
+ unread: number
13869
+ readAt?: string
13870
+ }
13871
+ lastRun?: {
13872
+ id: string
13873
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled"
13874
+ finishReason?:
13875
+ | "stop"
13876
+ | "length"
13877
+ | "content-filter"
13878
+ | "tool-calls"
13879
+ | "timeout"
13880
+ | "interrupted"
13881
+ | "awaiting_approval"
13882
+ | "awaiting_answer"
13883
+ | "error"
13884
+ | "other"
13885
+ | "unknown"
13886
+ errorCode?:
13887
+ | "internal.unexpected"
13888
+ | "runtime.cancelled"
13889
+ | "agent.context_limit_exceeded"
13890
+ | "agent.execution_failed"
13891
+ | "agent.step_limit_reached"
13892
+ | "ai.usage_limit_exceeded"
13893
+ | "ai.usage_limit_unavailable"
13894
+ completedAt?: string
13895
+ requestedBy?: {
13896
+ type: "user" | "serviceAccount"
13897
+ id: string
13898
+ }
13899
+ }
13900
+ approvalMode?: "manual" | "accept-edits" | "auto"
13901
+ approvalModeSource?: "thread" | "default" | "fallback" | "run"
13902
+ }
13489
13903
  }
13490
13904
 
13491
13905
  export type RecreateAgentThreadSandboxResponse =
13492
13906
  RecreateAgentThreadSandboxResponses[keyof RecreateAgentThreadSandboxResponses]
13493
13907
 
13908
+ export type RestoreAgentThreadSandboxData = {
13909
+ body: {
13910
+ expectedSandboxName: string
13911
+ }
13912
+ path: {
13913
+ threadId: string
13914
+ }
13915
+ query?: never
13916
+ url: "/api/agent-threads/{threadId}/sandbox/restore"
13917
+ }
13918
+
13919
+ export type RestoreAgentThreadSandboxErrors = {
13920
+ /**
13921
+ * Response for status 400
13922
+ */
13923
+ 400: {
13924
+ error: string
13925
+ }
13926
+ /**
13927
+ * Response for status 403
13928
+ */
13929
+ 403: {
13930
+ error: string
13931
+ code?: string
13932
+ }
13933
+ /**
13934
+ * Response for status 404
13935
+ */
13936
+ 404: {
13937
+ error: string
13938
+ }
13939
+ /**
13940
+ * Response for status 409
13941
+ */
13942
+ 409: {
13943
+ error: string
13944
+ code?: string
13945
+ }
13946
+ }
13947
+
13948
+ export type RestoreAgentThreadSandboxError =
13949
+ RestoreAgentThreadSandboxErrors[keyof RestoreAgentThreadSandboxErrors]
13950
+
13951
+ export type RestoreAgentThreadSandboxResponses = {
13952
+ /**
13953
+ * Response for status 200
13954
+ */
13955
+ 200: {
13956
+ sandboxState?: {
13957
+ name: string
13958
+ status: "new" | "busy" | "ready" | "blocked" | "unavailable"
13959
+ initialized: boolean
13960
+ }
13961
+ id: string
13962
+ projectId: string
13963
+ kind: "conversation" | "subagent"
13964
+ parent?: {
13965
+ threadId: string
13966
+ spawnedBy: string
13967
+ key: string
13968
+ }
13969
+ ownerPrincipal: {
13970
+ type: "user" | "serviceAccount" | "system"
13971
+ id: string
13972
+ }
13973
+ owner: {
13974
+ type: "user" | "serviceAccount" | "system"
13975
+ id: string
13976
+ displayName?: string
13977
+ }
13978
+ participants: Array<{
13979
+ principal: {
13980
+ type: "user"
13981
+ id: string
13982
+ displayName?: string
13983
+ }
13984
+ addedAt: string
13985
+ addedBy: {
13986
+ type: "user" | "serviceAccount" | "system"
13987
+ id: string
13988
+ }
13989
+ }>
13990
+ title?: string
13991
+ sandboxParams?: {
13992
+ [key: string]:
13993
+ | string
13994
+ | number
13995
+ | boolean
13996
+ | Array<unknown>
13997
+ | {
13998
+ [key: string]: unknown
13999
+ }
14000
+ | null
14001
+ }
14002
+ runsOn?: "computer"
14003
+ computer?: {
14004
+ id: string
14005
+ name: string
14006
+ folder: string
14007
+ online: boolean
14008
+ }
14009
+ backgroundCommands?: Array<{
14010
+ threadId: string
14011
+ id: string
14012
+ command: string
14013
+ status: "running" | "exited" | "stopped"
14014
+ exitCode?: number
14015
+ startedAt: string
14016
+ endedAt?: string
14017
+ stopping?: boolean
14018
+ }>
14019
+ movedAt?: string
14020
+ status: "active" | "archived"
14021
+ activeRunId: string | null
14022
+ lastMessageAt?: string
14023
+ messageCount: number
14024
+ createdAt: string
14025
+ updatedAt: string
14026
+ read?: {
14027
+ threadId: string
14028
+ throughSeq: number
14029
+ headSeq: number
14030
+ unread: number
14031
+ readAt?: string
14032
+ }
14033
+ lastRun?: {
14034
+ id: string
14035
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled"
14036
+ finishReason?:
14037
+ | "stop"
14038
+ | "length"
14039
+ | "content-filter"
14040
+ | "tool-calls"
14041
+ | "timeout"
14042
+ | "interrupted"
14043
+ | "awaiting_approval"
14044
+ | "awaiting_answer"
14045
+ | "error"
14046
+ | "other"
14047
+ | "unknown"
14048
+ errorCode?:
14049
+ | "internal.unexpected"
14050
+ | "runtime.cancelled"
14051
+ | "agent.context_limit_exceeded"
14052
+ | "agent.execution_failed"
14053
+ | "agent.step_limit_reached"
14054
+ | "ai.usage_limit_exceeded"
14055
+ | "ai.usage_limit_unavailable"
14056
+ completedAt?: string
14057
+ requestedBy?: {
14058
+ type: "user" | "serviceAccount"
14059
+ id: string
14060
+ }
14061
+ }
14062
+ approvalMode?: "manual" | "accept-edits" | "auto"
14063
+ approvalModeSource?: "thread" | "default" | "fallback" | "run"
14064
+ }
14065
+ }
14066
+
14067
+ export type RestoreAgentThreadSandboxResponse =
14068
+ RestoreAgentThreadSandboxResponses[keyof RestoreAgentThreadSandboxResponses]
14069
+
13494
14070
  export type ListAgentThreadMessagesData = {
13495
14071
  body?: never
13496
14072
  path: {
@@ -13997,6 +14573,7 @@ export type PostAgentThreadMessageData = {
13997
14573
  origin: "ambient" | "explicit"
13998
14574
  }>
13999
14575
  messageId?: string
14576
+ delivery?: "auto" | "steer" | "queue" | "send_now"
14000
14577
  }
14001
14578
  path: {
14002
14579
  threadId: string
@@ -14071,7 +14648,7 @@ export type PostAgentThreadMessageResponses = {
14071
14648
  * Response for status 202
14072
14649
  */
14073
14650
  202: {
14074
- run: {
14651
+ run?: {
14075
14652
  id: string
14076
14653
  projectId: string
14077
14654
  kind: "conversation" | "subagent"
@@ -14102,6 +14679,10 @@ export type PostAgentThreadMessageResponses = {
14102
14679
  }
14103
14680
  approvalMode?: "manual" | "accept-edits" | "auto"
14104
14681
  runsOn?: "computer"
14682
+ computer?: {
14683
+ id: string
14684
+ folder: string
14685
+ }
14105
14686
  modelId?: string
14106
14687
  finishReason?:
14107
14688
  | "stop"
@@ -14195,114 +14776,2088 @@ export type PostAgentThreadMessageResponses = {
14195
14776
  startedAt?: string
14196
14777
  completedAt?: string
14197
14778
  }
14198
- }
14199
- }
14200
-
14201
- export type PostAgentThreadMessageResponse =
14202
- PostAgentThreadMessageResponses[keyof PostAgentThreadMessageResponses]
14203
-
14204
- export type GetAgentMessageFileContentData = {
14205
- body?: never
14206
- path: {
14207
- threadId: string
14208
- messageId: string
14209
- }
14210
- query: {
14211
- path: string
14212
- disposition?: "inline" | "attachment"
14213
- /**
14214
- * Client cache key; the route still resolves the current file
14215
- */
14216
- v?: string
14217
- }
14218
- url: "/api/agent-threads/{threadId}/messages/{messageId}/files/content"
14219
- }
14220
-
14221
- export type GetAgentMessageFileContentErrors = {
14222
- /**
14223
- * Response for status 400
14224
- */
14225
- 400: ErrorResponse
14226
- /**
14227
- * Response for status 404
14228
- */
14229
- 404: ErrorResponse
14230
- /**
14231
- * Requested byte range is not satisfiable
14232
- */
14233
- 416: unknown
14234
- /**
14235
- * The storage role backing this content is not configured
14236
- */
14237
- 501: ErrorResponse
14238
- }
14239
-
14240
- export type GetAgentMessageFileContentError =
14241
- GetAgentMessageFileContentErrors[keyof GetAgentMessageFileContentErrors]
14242
-
14243
- export type GetAgentMessageFileContentResponses = {
14244
- /**
14245
- * File content
14246
- */
14247
- 200: Blob | File
14248
- /**
14249
- * Partial file content
14250
- */
14251
- 206: Blob | File
14252
- }
14253
-
14254
- export type GetAgentMessageFileContentResponse =
14255
- GetAgentMessageFileContentResponses[keyof GetAgentMessageFileContentResponses]
14256
-
14257
- export type HeadAgentMessageFileContentData = {
14258
- body?: never
14259
- path: {
14260
- threadId: string
14261
- messageId: string
14262
- }
14263
- query: {
14264
- path: string
14265
- disposition?: "inline" | "attachment"
14266
- /**
14267
- * Client cache key; the route still resolves the current file
14268
- */
14779
+ item?: {
14780
+ id: string
14781
+ projectId: string
14782
+ threadId: string
14783
+ messageId: string
14784
+ seq: number
14785
+ authorPrincipal: {
14786
+ type: "user" | "serviceAccount" | "system"
14787
+ id: string
14788
+ }
14789
+ mode: "steer" | "queue"
14790
+ parts: Array<
14791
+ | {
14792
+ type: "text"
14793
+ text: string
14794
+ /**
14795
+ * Any JSON-compatible value.
14796
+ */
14797
+ providerMetadata?:
14798
+ | string
14799
+ | number
14800
+ | boolean
14801
+ | Array<unknown>
14802
+ | {
14803
+ [key: string]: unknown
14804
+ }
14805
+ | null
14806
+ }
14807
+ | {
14808
+ type: "continuation"
14809
+ }
14810
+ | {
14811
+ type: "approval-outcome"
14812
+ approvalId: string
14813
+ status: "approved" | "denied" | "cancelled" | "superseded" | "expired"
14814
+ call:
14815
+ | {
14816
+ kind: "action"
14817
+ actionId: string
14818
+ subject:
14819
+ | {
14820
+ kind: "none"
14821
+ }
14822
+ | {
14823
+ kind: "object"
14824
+ objectTypeId: string
14825
+ primaryId: string
14826
+ }
14827
+ }
14828
+ | {
14829
+ kind: "workflow"
14830
+ workflowId: string
14831
+ }
14832
+ outcome?:
14833
+ | {
14834
+ kind: "action-run"
14835
+ runId: string
14836
+ status: "succeeded" | "failed"
14837
+ error?: {
14838
+ code:
14839
+ | "internal.unexpected"
14840
+ | "runtime.cancelled"
14841
+ | "action.phase_failed"
14842
+ | "action.read_conflict"
14843
+ | "action.rejected"
14844
+ | "action.timeout"
14845
+ | "object.unique_violation"
14846
+ message: string
14847
+ retryable: boolean
14848
+ at: string
14849
+ details: {
14850
+ actionId: string
14851
+ runId: string
14852
+ phase: "validation" | "writeback" | "edits" | "commit" | "effects"
14853
+ }
14854
+ httpStatus?: number
14855
+ redacted?: true
14856
+ truncated?: true
14857
+ }
14858
+ }
14859
+ | {
14860
+ kind: "workflow-run"
14861
+ runId: string
14862
+ queuedAt: string
14863
+ }
14864
+ | {
14865
+ kind: "error"
14866
+ error: {
14867
+ code:
14868
+ | "action.phase_failed"
14869
+ | "action.read_conflict"
14870
+ | "action.rejected"
14871
+ | "action.run_in_progress"
14872
+ | "action.timeout"
14873
+ | "agent.approval_authority_lost"
14874
+ | "agent.context_limit_exceeded"
14875
+ | "agent.execution_failed"
14876
+ | "agent.step_limit_reached"
14877
+ | "ai.usage_limit_exceeded"
14878
+ | "ai.usage_limit_unavailable"
14879
+ | "connector.adapter_invalid"
14880
+ | "connector.authorization_invalid"
14881
+ | "connector.authorization_required"
14882
+ | "connector.configuration_invalid"
14883
+ | "connector.credentials_unavailable"
14884
+ | "connector.not_found"
14885
+ | "connector.operation_conflict"
14886
+ | "connector.operation_in_progress"
14887
+ | "connector.provider_failed"
14888
+ | "connector.provider_unavailable"
14889
+ | "connector.replacement_required"
14890
+ | "connector.revocation_pending"
14891
+ | "dataset.change_refused"
14892
+ | "dataset.not_found"
14893
+ | "dataset.version_incompatible"
14894
+ | "dataset.version_not_found"
14895
+ | "dataset.version_read_inconsistent"
14896
+ | "event.delivery_failed"
14897
+ | "internal.unexpected"
14898
+ | "queue.enqueue_failed"
14899
+ | "object.not_found"
14900
+ | "object.unique_violation"
14901
+ | "pipeline.step_failed"
14902
+ | "projection.definition_invalid"
14903
+ | "projection.execution_failed"
14904
+ | "projection.not_found"
14905
+ | "projection.run_already_terminal"
14906
+ | "projection.run_identity_mismatch"
14907
+ | "runtime.cancelled"
14908
+ | "runtime.stopping"
14909
+ | "vector.model_unavailable"
14910
+ | "vector.response_invalid"
14911
+ | "vector.outcome_unknown"
14912
+ | "storage.unavailable"
14913
+ | "sync.execution_failed"
14914
+ | "webhook.delivery_failed"
14915
+ | "webhook.delivery_rejected"
14916
+ | "workflow.node_failed"
14917
+ message: string
14918
+ retryable: boolean
14919
+ at: string
14920
+ /**
14921
+ * Any JSON-compatible value.
14922
+ */
14923
+ details?:
14924
+ | string
14925
+ | number
14926
+ | boolean
14927
+ | Array<unknown>
14928
+ | {
14929
+ [key: string]: unknown
14930
+ }
14931
+ | null
14932
+ httpStatus?: number
14933
+ redacted?: true
14934
+ truncated?: true
14935
+ }
14936
+ }
14937
+ caller?: {
14938
+ runId: string
14939
+ key: string
14940
+ continues?: true
14941
+ }
14942
+ }
14943
+ | {
14944
+ type: "reasoning"
14945
+ text: string
14946
+ /**
14947
+ * Any JSON-compatible value.
14948
+ */
14949
+ providerMetadata?:
14950
+ | string
14951
+ | number
14952
+ | boolean
14953
+ | Array<unknown>
14954
+ | {
14955
+ [key: string]: unknown
14956
+ }
14957
+ | null
14958
+ }
14959
+ | {
14960
+ type: "step-start"
14961
+ }
14962
+ | {
14963
+ type: "file"
14964
+ fileRef: {
14965
+ blobId: string
14966
+ digest: string
14967
+ sizeBytes: number
14968
+ fileName?: string
14969
+ mediaType?: string
14970
+ logicalPath?: string
14971
+ }
14972
+ /**
14973
+ * Any JSON-compatible value.
14974
+ */
14975
+ providerMetadata?:
14976
+ | string
14977
+ | number
14978
+ | boolean
14979
+ | Array<unknown>
14980
+ | {
14981
+ [key: string]: unknown
14982
+ }
14983
+ | null
14984
+ }
14985
+ | {
14986
+ type: "provider-state"
14987
+ providerId: string
14988
+ /**
14989
+ * Any JSON-compatible value.
14990
+ */
14991
+ data:
14992
+ | string
14993
+ | number
14994
+ | boolean
14995
+ | Array<unknown>
14996
+ | {
14997
+ [key: string]: unknown
14998
+ }
14999
+ | null
15000
+ }
15001
+ | {
15002
+ context:
15003
+ | {
15004
+ kind: "object"
15005
+ ref: {
15006
+ objectTypeId: string
15007
+ primaryId: string
15008
+ }
15009
+ /**
15010
+ * Shown in the chat instead of the object's title. Never sent to the model.
15011
+ */
15012
+ label?: string
15013
+ }
15014
+ | {
15015
+ kind: "app-state"
15016
+ id: string
15017
+ label: string
15018
+ description: string
15019
+ /**
15020
+ * Any JSON-compatible value.
15021
+ */
15022
+ value:
15023
+ | string
15024
+ | number
15025
+ | boolean
15026
+ | Array<unknown>
15027
+ | {
15028
+ [key: string]: unknown
15029
+ }
15030
+ | null
15031
+ }
15032
+ origin: "ambient" | "explicit"
15033
+ type: "context"
15034
+ }
15035
+ | {
15036
+ type: "tool-call"
15037
+ toolCallId: string
15038
+ toolName: string
15039
+ dynamic?: boolean
15040
+ providerExecuted?: boolean
15041
+ /**
15042
+ * Any JSON-compatible value.
15043
+ */
15044
+ input:
15045
+ | string
15046
+ | number
15047
+ | boolean
15048
+ | Array<unknown>
15049
+ | {
15050
+ [key: string]: unknown
15051
+ }
15052
+ | null
15053
+ /**
15054
+ * Any JSON-compatible value.
15055
+ */
15056
+ providerMetadata?:
15057
+ | string
15058
+ | number
15059
+ | boolean
15060
+ | Array<unknown>
15061
+ | {
15062
+ [key: string]: unknown
15063
+ }
15064
+ | null
15065
+ state: "output-available"
15066
+ /**
15067
+ * Any JSON-compatible value.
15068
+ */
15069
+ output:
15070
+ | string
15071
+ | number
15072
+ | boolean
15073
+ | Array<unknown>
15074
+ | {
15075
+ [key: string]: unknown
15076
+ }
15077
+ | null
15078
+ outputFile?: {
15079
+ fileRef: {
15080
+ blobId: string
15081
+ digest: string
15082
+ sizeBytes: number
15083
+ fileName?: string
15084
+ mediaType?: string
15085
+ logicalPath?: string
15086
+ }
15087
+ path: string
15088
+ }
15089
+ }
15090
+ | {
15091
+ type: "tool-call"
15092
+ toolCallId: string
15093
+ toolName: string
15094
+ dynamic?: boolean
15095
+ providerExecuted?: boolean
15096
+ /**
15097
+ * Any JSON-compatible value.
15098
+ */
15099
+ input:
15100
+ | string
15101
+ | number
15102
+ | boolean
15103
+ | Array<unknown>
15104
+ | {
15105
+ [key: string]: unknown
15106
+ }
15107
+ | null
15108
+ /**
15109
+ * Any JSON-compatible value.
15110
+ */
15111
+ providerMetadata?:
15112
+ | string
15113
+ | number
15114
+ | boolean
15115
+ | Array<unknown>
15116
+ | {
15117
+ [key: string]: unknown
15118
+ }
15119
+ | null
15120
+ state: "output-error"
15121
+ errorText: string
15122
+ }
15123
+ | {
15124
+ type: "mail"
15125
+ id: string
15126
+ from: "parent"
15127
+ kind: "message" | "answer"
15128
+ inReplyTo?: string
15129
+ text: string
15130
+ afterAnswer?: true
15131
+ }
15132
+ >
15133
+ spec?: {
15134
+ model?: {
15135
+ provider: string
15136
+ modelId: string
15137
+ }
15138
+ reasoning?:
15139
+ | "provider-default"
15140
+ | "none"
15141
+ | "minimal"
15142
+ | "low"
15143
+ | "medium"
15144
+ | "high"
15145
+ | "xhigh"
15146
+ | "max"
15147
+ | {
15148
+ budgetTokens: number
15149
+ }
15150
+ approvalMode?: "manual" | "accept-edits" | "auto"
15151
+ }
15152
+ timeZone?: string
15153
+ locale?: string
15154
+ immediate?: boolean
15155
+ replacesMessageId?: string
15156
+ createdAt: string
15157
+ updatedAt: string
15158
+ }
15159
+ }
15160
+ }
15161
+
15162
+ export type PostAgentThreadMessageResponse =
15163
+ PostAgentThreadMessageResponses[keyof PostAgentThreadMessageResponses]
15164
+
15165
+ export type GetAgentMessageFileContentData = {
15166
+ body?: never
15167
+ path: {
15168
+ threadId: string
15169
+ messageId: string
15170
+ }
15171
+ query: {
15172
+ path: string
15173
+ disposition?: "inline" | "attachment"
15174
+ /**
15175
+ * Client cache key; the route still resolves the current file
15176
+ */
15177
+ v?: string
15178
+ }
15179
+ url: "/api/agent-threads/{threadId}/messages/{messageId}/files/content"
15180
+ }
15181
+
15182
+ export type GetAgentMessageFileContentErrors = {
15183
+ /**
15184
+ * Response for status 400
15185
+ */
15186
+ 400: ErrorResponse
15187
+ /**
15188
+ * Response for status 404
15189
+ */
15190
+ 404: ErrorResponse
15191
+ /**
15192
+ * Requested byte range is not satisfiable
15193
+ */
15194
+ 416: unknown
15195
+ /**
15196
+ * The storage role backing this content is not configured
15197
+ */
15198
+ 501: ErrorResponse
15199
+ }
15200
+
15201
+ export type GetAgentMessageFileContentError =
15202
+ GetAgentMessageFileContentErrors[keyof GetAgentMessageFileContentErrors]
15203
+
15204
+ export type GetAgentMessageFileContentResponses = {
15205
+ /**
15206
+ * File content
15207
+ */
15208
+ 200: Blob | File
15209
+ /**
15210
+ * Partial file content
15211
+ */
15212
+ 206: Blob | File
15213
+ }
15214
+
15215
+ export type GetAgentMessageFileContentResponse =
15216
+ GetAgentMessageFileContentResponses[keyof GetAgentMessageFileContentResponses]
15217
+
15218
+ export type HeadAgentMessageFileContentData = {
15219
+ body?: never
15220
+ path: {
15221
+ threadId: string
15222
+ messageId: string
15223
+ }
15224
+ query: {
15225
+ path: string
15226
+ disposition?: "inline" | "attachment"
15227
+ /**
15228
+ * Client cache key; the route still resolves the current file
15229
+ */
14269
15230
  v?: string
14270
15231
  }
14271
- url: "/api/agent-threads/{threadId}/messages/{messageId}/files/content"
14272
- }
14273
-
14274
- export type HeadAgentMessageFileContentErrors = {
14275
- /**
14276
- * Response for status 400
14277
- */
14278
- 400: ErrorResponse
14279
- /**
14280
- * Response for status 404
14281
- */
14282
- 404: ErrorResponse
14283
- /**
14284
- * Requested byte range is not satisfiable
14285
- */
14286
- 416: unknown
14287
- /**
14288
- * The storage role backing this content is not configured
14289
- */
14290
- 501: ErrorResponse
15232
+ url: "/api/agent-threads/{threadId}/messages/{messageId}/files/content"
15233
+ }
15234
+
15235
+ export type HeadAgentMessageFileContentErrors = {
15236
+ /**
15237
+ * Response for status 400
15238
+ */
15239
+ 400: ErrorResponse
15240
+ /**
15241
+ * Response for status 404
15242
+ */
15243
+ 404: ErrorResponse
15244
+ /**
15245
+ * Requested byte range is not satisfiable
15246
+ */
15247
+ 416: unknown
15248
+ /**
15249
+ * The storage role backing this content is not configured
15250
+ */
15251
+ 501: ErrorResponse
15252
+ }
15253
+
15254
+ export type HeadAgentMessageFileContentError =
15255
+ HeadAgentMessageFileContentErrors[keyof HeadAgentMessageFileContentErrors]
15256
+
15257
+ export type HeadAgentMessageFileContentResponses = {
15258
+ /**
15259
+ * File content headers
15260
+ */
15261
+ 200: unknown
15262
+ /**
15263
+ * Partial file content headers
15264
+ */
15265
+ 206: unknown
15266
+ }
15267
+
15268
+ export type ListAgentThreadInboxData = {
15269
+ body?: never
15270
+ path: {
15271
+ threadId: string
15272
+ }
15273
+ query?: never
15274
+ url: "/api/agent-threads/{threadId}/inbox"
15275
+ }
15276
+
15277
+ export type ListAgentThreadInboxErrors = {
15278
+ /**
15279
+ * Response for status 400
15280
+ */
15281
+ 400: {
15282
+ error: string
15283
+ code?: string
15284
+ }
15285
+ /**
15286
+ * Response for status 404
15287
+ */
15288
+ 404: {
15289
+ error: string
15290
+ }
15291
+ /**
15292
+ * Response for status 501
15293
+ */
15294
+ 501: {
15295
+ error: string
15296
+ }
15297
+ }
15298
+
15299
+ export type ListAgentThreadInboxError = ListAgentThreadInboxErrors[keyof ListAgentThreadInboxErrors]
15300
+
15301
+ export type ListAgentThreadInboxResponses = {
15302
+ /**
15303
+ * Response for status 200
15304
+ */
15305
+ 200: {
15306
+ items: Array<{
15307
+ id: string
15308
+ projectId: string
15309
+ threadId: string
15310
+ messageId: string
15311
+ seq: number
15312
+ authorPrincipal: {
15313
+ type: "user" | "serviceAccount" | "system"
15314
+ id: string
15315
+ }
15316
+ mode: "steer" | "queue"
15317
+ parts: Array<
15318
+ | {
15319
+ type: "text"
15320
+ text: string
15321
+ /**
15322
+ * Any JSON-compatible value.
15323
+ */
15324
+ providerMetadata?:
15325
+ | string
15326
+ | number
15327
+ | boolean
15328
+ | Array<unknown>
15329
+ | {
15330
+ [key: string]: unknown
15331
+ }
15332
+ | null
15333
+ }
15334
+ | {
15335
+ type: "continuation"
15336
+ }
15337
+ | {
15338
+ type: "approval-outcome"
15339
+ approvalId: string
15340
+ status: "approved" | "denied" | "cancelled" | "superseded" | "expired"
15341
+ call:
15342
+ | {
15343
+ kind: "action"
15344
+ actionId: string
15345
+ subject:
15346
+ | {
15347
+ kind: "none"
15348
+ }
15349
+ | {
15350
+ kind: "object"
15351
+ objectTypeId: string
15352
+ primaryId: string
15353
+ }
15354
+ }
15355
+ | {
15356
+ kind: "workflow"
15357
+ workflowId: string
15358
+ }
15359
+ outcome?:
15360
+ | {
15361
+ kind: "action-run"
15362
+ runId: string
15363
+ status: "succeeded" | "failed"
15364
+ error?: {
15365
+ code:
15366
+ | "internal.unexpected"
15367
+ | "runtime.cancelled"
15368
+ | "action.phase_failed"
15369
+ | "action.read_conflict"
15370
+ | "action.rejected"
15371
+ | "action.timeout"
15372
+ | "object.unique_violation"
15373
+ message: string
15374
+ retryable: boolean
15375
+ at: string
15376
+ details: {
15377
+ actionId: string
15378
+ runId: string
15379
+ phase: "validation" | "writeback" | "edits" | "commit" | "effects"
15380
+ }
15381
+ httpStatus?: number
15382
+ redacted?: true
15383
+ truncated?: true
15384
+ }
15385
+ }
15386
+ | {
15387
+ kind: "workflow-run"
15388
+ runId: string
15389
+ queuedAt: string
15390
+ }
15391
+ | {
15392
+ kind: "error"
15393
+ error: {
15394
+ code:
15395
+ | "action.phase_failed"
15396
+ | "action.read_conflict"
15397
+ | "action.rejected"
15398
+ | "action.run_in_progress"
15399
+ | "action.timeout"
15400
+ | "agent.approval_authority_lost"
15401
+ | "agent.context_limit_exceeded"
15402
+ | "agent.execution_failed"
15403
+ | "agent.step_limit_reached"
15404
+ | "ai.usage_limit_exceeded"
15405
+ | "ai.usage_limit_unavailable"
15406
+ | "connector.adapter_invalid"
15407
+ | "connector.authorization_invalid"
15408
+ | "connector.authorization_required"
15409
+ | "connector.configuration_invalid"
15410
+ | "connector.credentials_unavailable"
15411
+ | "connector.not_found"
15412
+ | "connector.operation_conflict"
15413
+ | "connector.operation_in_progress"
15414
+ | "connector.provider_failed"
15415
+ | "connector.provider_unavailable"
15416
+ | "connector.replacement_required"
15417
+ | "connector.revocation_pending"
15418
+ | "dataset.change_refused"
15419
+ | "dataset.not_found"
15420
+ | "dataset.version_incompatible"
15421
+ | "dataset.version_not_found"
15422
+ | "dataset.version_read_inconsistent"
15423
+ | "event.delivery_failed"
15424
+ | "internal.unexpected"
15425
+ | "queue.enqueue_failed"
15426
+ | "object.not_found"
15427
+ | "object.unique_violation"
15428
+ | "pipeline.step_failed"
15429
+ | "projection.definition_invalid"
15430
+ | "projection.execution_failed"
15431
+ | "projection.not_found"
15432
+ | "projection.run_already_terminal"
15433
+ | "projection.run_identity_mismatch"
15434
+ | "runtime.cancelled"
15435
+ | "runtime.stopping"
15436
+ | "vector.model_unavailable"
15437
+ | "vector.response_invalid"
15438
+ | "vector.outcome_unknown"
15439
+ | "storage.unavailable"
15440
+ | "sync.execution_failed"
15441
+ | "webhook.delivery_failed"
15442
+ | "webhook.delivery_rejected"
15443
+ | "workflow.node_failed"
15444
+ message: string
15445
+ retryable: boolean
15446
+ at: string
15447
+ /**
15448
+ * Any JSON-compatible value.
15449
+ */
15450
+ details?:
15451
+ | string
15452
+ | number
15453
+ | boolean
15454
+ | Array<unknown>
15455
+ | {
15456
+ [key: string]: unknown
15457
+ }
15458
+ | null
15459
+ httpStatus?: number
15460
+ redacted?: true
15461
+ truncated?: true
15462
+ }
15463
+ }
15464
+ caller?: {
15465
+ runId: string
15466
+ key: string
15467
+ continues?: true
15468
+ }
15469
+ }
15470
+ | {
15471
+ type: "reasoning"
15472
+ text: string
15473
+ /**
15474
+ * Any JSON-compatible value.
15475
+ */
15476
+ providerMetadata?:
15477
+ | string
15478
+ | number
15479
+ | boolean
15480
+ | Array<unknown>
15481
+ | {
15482
+ [key: string]: unknown
15483
+ }
15484
+ | null
15485
+ }
15486
+ | {
15487
+ type: "step-start"
15488
+ }
15489
+ | {
15490
+ type: "file"
15491
+ fileRef: {
15492
+ blobId: string
15493
+ digest: string
15494
+ sizeBytes: number
15495
+ fileName?: string
15496
+ mediaType?: string
15497
+ logicalPath?: string
15498
+ }
15499
+ /**
15500
+ * Any JSON-compatible value.
15501
+ */
15502
+ providerMetadata?:
15503
+ | string
15504
+ | number
15505
+ | boolean
15506
+ | Array<unknown>
15507
+ | {
15508
+ [key: string]: unknown
15509
+ }
15510
+ | null
15511
+ }
15512
+ | {
15513
+ type: "provider-state"
15514
+ providerId: string
15515
+ /**
15516
+ * Any JSON-compatible value.
15517
+ */
15518
+ data:
15519
+ | string
15520
+ | number
15521
+ | boolean
15522
+ | Array<unknown>
15523
+ | {
15524
+ [key: string]: unknown
15525
+ }
15526
+ | null
15527
+ }
15528
+ | {
15529
+ context:
15530
+ | {
15531
+ kind: "object"
15532
+ ref: {
15533
+ objectTypeId: string
15534
+ primaryId: string
15535
+ }
15536
+ /**
15537
+ * Shown in the chat instead of the object's title. Never sent to the model.
15538
+ */
15539
+ label?: string
15540
+ }
15541
+ | {
15542
+ kind: "app-state"
15543
+ id: string
15544
+ label: string
15545
+ description: string
15546
+ /**
15547
+ * Any JSON-compatible value.
15548
+ */
15549
+ value:
15550
+ | string
15551
+ | number
15552
+ | boolean
15553
+ | Array<unknown>
15554
+ | {
15555
+ [key: string]: unknown
15556
+ }
15557
+ | null
15558
+ }
15559
+ origin: "ambient" | "explicit"
15560
+ type: "context"
15561
+ }
15562
+ | {
15563
+ type: "tool-call"
15564
+ toolCallId: string
15565
+ toolName: string
15566
+ dynamic?: boolean
15567
+ providerExecuted?: boolean
15568
+ /**
15569
+ * Any JSON-compatible value.
15570
+ */
15571
+ input:
15572
+ | string
15573
+ | number
15574
+ | boolean
15575
+ | Array<unknown>
15576
+ | {
15577
+ [key: string]: unknown
15578
+ }
15579
+ | null
15580
+ /**
15581
+ * Any JSON-compatible value.
15582
+ */
15583
+ providerMetadata?:
15584
+ | string
15585
+ | number
15586
+ | boolean
15587
+ | Array<unknown>
15588
+ | {
15589
+ [key: string]: unknown
15590
+ }
15591
+ | null
15592
+ state: "output-available"
15593
+ /**
15594
+ * Any JSON-compatible value.
15595
+ */
15596
+ output:
15597
+ | string
15598
+ | number
15599
+ | boolean
15600
+ | Array<unknown>
15601
+ | {
15602
+ [key: string]: unknown
15603
+ }
15604
+ | null
15605
+ outputFile?: {
15606
+ fileRef: {
15607
+ blobId: string
15608
+ digest: string
15609
+ sizeBytes: number
15610
+ fileName?: string
15611
+ mediaType?: string
15612
+ logicalPath?: string
15613
+ }
15614
+ path: string
15615
+ }
15616
+ }
15617
+ | {
15618
+ type: "tool-call"
15619
+ toolCallId: string
15620
+ toolName: string
15621
+ dynamic?: boolean
15622
+ providerExecuted?: boolean
15623
+ /**
15624
+ * Any JSON-compatible value.
15625
+ */
15626
+ input:
15627
+ | string
15628
+ | number
15629
+ | boolean
15630
+ | Array<unknown>
15631
+ | {
15632
+ [key: string]: unknown
15633
+ }
15634
+ | null
15635
+ /**
15636
+ * Any JSON-compatible value.
15637
+ */
15638
+ providerMetadata?:
15639
+ | string
15640
+ | number
15641
+ | boolean
15642
+ | Array<unknown>
15643
+ | {
15644
+ [key: string]: unknown
15645
+ }
15646
+ | null
15647
+ state: "output-error"
15648
+ errorText: string
15649
+ }
15650
+ | {
15651
+ type: "mail"
15652
+ id: string
15653
+ from: "parent"
15654
+ kind: "message" | "answer"
15655
+ inReplyTo?: string
15656
+ text: string
15657
+ afterAnswer?: true
15658
+ }
15659
+ >
15660
+ spec?: {
15661
+ model?: {
15662
+ provider: string
15663
+ modelId: string
15664
+ }
15665
+ reasoning?:
15666
+ | "provider-default"
15667
+ | "none"
15668
+ | "minimal"
15669
+ | "low"
15670
+ | "medium"
15671
+ | "high"
15672
+ | "xhigh"
15673
+ | "max"
15674
+ | {
15675
+ budgetTokens: number
15676
+ }
15677
+ approvalMode?: "manual" | "accept-edits" | "auto"
15678
+ }
15679
+ timeZone?: string
15680
+ locale?: string
15681
+ immediate?: boolean
15682
+ replacesMessageId?: string
15683
+ createdAt: string
15684
+ updatedAt: string
15685
+ }>
15686
+ }
15687
+ }
15688
+
15689
+ export type ListAgentThreadInboxResponse =
15690
+ ListAgentThreadInboxResponses[keyof ListAgentThreadInboxResponses]
15691
+
15692
+ export type WithdrawAgentThreadInboxItemData = {
15693
+ body?: never
15694
+ path: {
15695
+ threadId: string
15696
+ itemId: string
15697
+ }
15698
+ query?: never
15699
+ url: "/api/agent-threads/{threadId}/inbox/{itemId}"
15700
+ }
15701
+
15702
+ export type WithdrawAgentThreadInboxItemErrors = {
15703
+ /**
15704
+ * Response for status 400
15705
+ */
15706
+ 400: {
15707
+ error: string
15708
+ code?: string
15709
+ }
15710
+ /**
15711
+ * Response for status 403
15712
+ */
15713
+ 403: {
15714
+ error: string
15715
+ code?: string
15716
+ }
15717
+ /**
15718
+ * Response for status 404
15719
+ */
15720
+ 404: {
15721
+ error: string
15722
+ }
15723
+ /**
15724
+ * Response for status 409
15725
+ */
15726
+ 409: {
15727
+ error: string
15728
+ code?: string
15729
+ }
15730
+ /**
15731
+ * Response for status 501
15732
+ */
15733
+ 501: {
15734
+ error: string
15735
+ }
15736
+ }
15737
+
15738
+ export type WithdrawAgentThreadInboxItemError =
15739
+ WithdrawAgentThreadInboxItemErrors[keyof WithdrawAgentThreadInboxItemErrors]
15740
+
15741
+ export type WithdrawAgentThreadInboxItemResponses = {
15742
+ /**
15743
+ * Response for status 204
15744
+ */
15745
+ 204: unknown
15746
+ }
15747
+
15748
+ export type UpdateAgentThreadInboxItemData = {
15749
+ body: {
15750
+ text?: string
15751
+ model?: {
15752
+ provider: string
15753
+ modelId: string
15754
+ }
15755
+ reasoning?:
15756
+ | "provider-default"
15757
+ | "none"
15758
+ | "minimal"
15759
+ | "low"
15760
+ | "medium"
15761
+ | "high"
15762
+ | "xhigh"
15763
+ | "max"
15764
+ | {
15765
+ budgetTokens: number
15766
+ }
15767
+ approvalMode?: "manual" | "accept-edits" | "auto"
15768
+ delivery?: "steer" | "queue"
15769
+ immediate?: true
15770
+ }
15771
+ path: {
15772
+ threadId: string
15773
+ itemId: string
15774
+ }
15775
+ query?: never
15776
+ url: "/api/agent-threads/{threadId}/inbox/{itemId}"
15777
+ }
15778
+
15779
+ export type UpdateAgentThreadInboxItemErrors = {
15780
+ /**
15781
+ * Response for status 400
15782
+ */
15783
+ 400: {
15784
+ error: string
15785
+ code?: string
15786
+ }
15787
+ /**
15788
+ * Response for status 403
15789
+ */
15790
+ 403: {
15791
+ error: string
15792
+ code?: string
15793
+ }
15794
+ /**
15795
+ * Response for status 404
15796
+ */
15797
+ 404: {
15798
+ error: string
15799
+ }
15800
+ /**
15801
+ * Response for status 409
15802
+ */
15803
+ 409: {
15804
+ error: string
15805
+ code?: string
15806
+ }
15807
+ /**
15808
+ * Response for status 501
15809
+ */
15810
+ 501: {
15811
+ error: string
15812
+ }
15813
+ }
15814
+
15815
+ export type UpdateAgentThreadInboxItemError =
15816
+ UpdateAgentThreadInboxItemErrors[keyof UpdateAgentThreadInboxItemErrors]
15817
+
15818
+ export type UpdateAgentThreadInboxItemResponses = {
15819
+ /**
15820
+ * Response for status 200
15821
+ */
15822
+ 200: {
15823
+ item: {
15824
+ id: string
15825
+ projectId: string
15826
+ threadId: string
15827
+ messageId: string
15828
+ seq: number
15829
+ authorPrincipal: {
15830
+ type: "user" | "serviceAccount" | "system"
15831
+ id: string
15832
+ }
15833
+ mode: "steer" | "queue"
15834
+ parts: Array<
15835
+ | {
15836
+ type: "text"
15837
+ text: string
15838
+ /**
15839
+ * Any JSON-compatible value.
15840
+ */
15841
+ providerMetadata?:
15842
+ | string
15843
+ | number
15844
+ | boolean
15845
+ | Array<unknown>
15846
+ | {
15847
+ [key: string]: unknown
15848
+ }
15849
+ | null
15850
+ }
15851
+ | {
15852
+ type: "continuation"
15853
+ }
15854
+ | {
15855
+ type: "approval-outcome"
15856
+ approvalId: string
15857
+ status: "approved" | "denied" | "cancelled" | "superseded" | "expired"
15858
+ call:
15859
+ | {
15860
+ kind: "action"
15861
+ actionId: string
15862
+ subject:
15863
+ | {
15864
+ kind: "none"
15865
+ }
15866
+ | {
15867
+ kind: "object"
15868
+ objectTypeId: string
15869
+ primaryId: string
15870
+ }
15871
+ }
15872
+ | {
15873
+ kind: "workflow"
15874
+ workflowId: string
15875
+ }
15876
+ outcome?:
15877
+ | {
15878
+ kind: "action-run"
15879
+ runId: string
15880
+ status: "succeeded" | "failed"
15881
+ error?: {
15882
+ code:
15883
+ | "internal.unexpected"
15884
+ | "runtime.cancelled"
15885
+ | "action.phase_failed"
15886
+ | "action.read_conflict"
15887
+ | "action.rejected"
15888
+ | "action.timeout"
15889
+ | "object.unique_violation"
15890
+ message: string
15891
+ retryable: boolean
15892
+ at: string
15893
+ details: {
15894
+ actionId: string
15895
+ runId: string
15896
+ phase: "validation" | "writeback" | "edits" | "commit" | "effects"
15897
+ }
15898
+ httpStatus?: number
15899
+ redacted?: true
15900
+ truncated?: true
15901
+ }
15902
+ }
15903
+ | {
15904
+ kind: "workflow-run"
15905
+ runId: string
15906
+ queuedAt: string
15907
+ }
15908
+ | {
15909
+ kind: "error"
15910
+ error: {
15911
+ code:
15912
+ | "action.phase_failed"
15913
+ | "action.read_conflict"
15914
+ | "action.rejected"
15915
+ | "action.run_in_progress"
15916
+ | "action.timeout"
15917
+ | "agent.approval_authority_lost"
15918
+ | "agent.context_limit_exceeded"
15919
+ | "agent.execution_failed"
15920
+ | "agent.step_limit_reached"
15921
+ | "ai.usage_limit_exceeded"
15922
+ | "ai.usage_limit_unavailable"
15923
+ | "connector.adapter_invalid"
15924
+ | "connector.authorization_invalid"
15925
+ | "connector.authorization_required"
15926
+ | "connector.configuration_invalid"
15927
+ | "connector.credentials_unavailable"
15928
+ | "connector.not_found"
15929
+ | "connector.operation_conflict"
15930
+ | "connector.operation_in_progress"
15931
+ | "connector.provider_failed"
15932
+ | "connector.provider_unavailable"
15933
+ | "connector.replacement_required"
15934
+ | "connector.revocation_pending"
15935
+ | "dataset.change_refused"
15936
+ | "dataset.not_found"
15937
+ | "dataset.version_incompatible"
15938
+ | "dataset.version_not_found"
15939
+ | "dataset.version_read_inconsistent"
15940
+ | "event.delivery_failed"
15941
+ | "internal.unexpected"
15942
+ | "queue.enqueue_failed"
15943
+ | "object.not_found"
15944
+ | "object.unique_violation"
15945
+ | "pipeline.step_failed"
15946
+ | "projection.definition_invalid"
15947
+ | "projection.execution_failed"
15948
+ | "projection.not_found"
15949
+ | "projection.run_already_terminal"
15950
+ | "projection.run_identity_mismatch"
15951
+ | "runtime.cancelled"
15952
+ | "runtime.stopping"
15953
+ | "vector.model_unavailable"
15954
+ | "vector.response_invalid"
15955
+ | "vector.outcome_unknown"
15956
+ | "storage.unavailable"
15957
+ | "sync.execution_failed"
15958
+ | "webhook.delivery_failed"
15959
+ | "webhook.delivery_rejected"
15960
+ | "workflow.node_failed"
15961
+ message: string
15962
+ retryable: boolean
15963
+ at: string
15964
+ /**
15965
+ * Any JSON-compatible value.
15966
+ */
15967
+ details?:
15968
+ | string
15969
+ | number
15970
+ | boolean
15971
+ | Array<unknown>
15972
+ | {
15973
+ [key: string]: unknown
15974
+ }
15975
+ | null
15976
+ httpStatus?: number
15977
+ redacted?: true
15978
+ truncated?: true
15979
+ }
15980
+ }
15981
+ caller?: {
15982
+ runId: string
15983
+ key: string
15984
+ continues?: true
15985
+ }
15986
+ }
15987
+ | {
15988
+ type: "reasoning"
15989
+ text: string
15990
+ /**
15991
+ * Any JSON-compatible value.
15992
+ */
15993
+ providerMetadata?:
15994
+ | string
15995
+ | number
15996
+ | boolean
15997
+ | Array<unknown>
15998
+ | {
15999
+ [key: string]: unknown
16000
+ }
16001
+ | null
16002
+ }
16003
+ | {
16004
+ type: "step-start"
16005
+ }
16006
+ | {
16007
+ type: "file"
16008
+ fileRef: {
16009
+ blobId: string
16010
+ digest: string
16011
+ sizeBytes: number
16012
+ fileName?: string
16013
+ mediaType?: string
16014
+ logicalPath?: string
16015
+ }
16016
+ /**
16017
+ * Any JSON-compatible value.
16018
+ */
16019
+ providerMetadata?:
16020
+ | string
16021
+ | number
16022
+ | boolean
16023
+ | Array<unknown>
16024
+ | {
16025
+ [key: string]: unknown
16026
+ }
16027
+ | null
16028
+ }
16029
+ | {
16030
+ type: "provider-state"
16031
+ providerId: string
16032
+ /**
16033
+ * Any JSON-compatible value.
16034
+ */
16035
+ data:
16036
+ | string
16037
+ | number
16038
+ | boolean
16039
+ | Array<unknown>
16040
+ | {
16041
+ [key: string]: unknown
16042
+ }
16043
+ | null
16044
+ }
16045
+ | {
16046
+ context:
16047
+ | {
16048
+ kind: "object"
16049
+ ref: {
16050
+ objectTypeId: string
16051
+ primaryId: string
16052
+ }
16053
+ /**
16054
+ * Shown in the chat instead of the object's title. Never sent to the model.
16055
+ */
16056
+ label?: string
16057
+ }
16058
+ | {
16059
+ kind: "app-state"
16060
+ id: string
16061
+ label: string
16062
+ description: string
16063
+ /**
16064
+ * Any JSON-compatible value.
16065
+ */
16066
+ value:
16067
+ | string
16068
+ | number
16069
+ | boolean
16070
+ | Array<unknown>
16071
+ | {
16072
+ [key: string]: unknown
16073
+ }
16074
+ | null
16075
+ }
16076
+ origin: "ambient" | "explicit"
16077
+ type: "context"
16078
+ }
16079
+ | {
16080
+ type: "tool-call"
16081
+ toolCallId: string
16082
+ toolName: string
16083
+ dynamic?: boolean
16084
+ providerExecuted?: boolean
16085
+ /**
16086
+ * Any JSON-compatible value.
16087
+ */
16088
+ input:
16089
+ | string
16090
+ | number
16091
+ | boolean
16092
+ | Array<unknown>
16093
+ | {
16094
+ [key: string]: unknown
16095
+ }
16096
+ | null
16097
+ /**
16098
+ * Any JSON-compatible value.
16099
+ */
16100
+ providerMetadata?:
16101
+ | string
16102
+ | number
16103
+ | boolean
16104
+ | Array<unknown>
16105
+ | {
16106
+ [key: string]: unknown
16107
+ }
16108
+ | null
16109
+ state: "output-available"
16110
+ /**
16111
+ * Any JSON-compatible value.
16112
+ */
16113
+ output:
16114
+ | string
16115
+ | number
16116
+ | boolean
16117
+ | Array<unknown>
16118
+ | {
16119
+ [key: string]: unknown
16120
+ }
16121
+ | null
16122
+ outputFile?: {
16123
+ fileRef: {
16124
+ blobId: string
16125
+ digest: string
16126
+ sizeBytes: number
16127
+ fileName?: string
16128
+ mediaType?: string
16129
+ logicalPath?: string
16130
+ }
16131
+ path: string
16132
+ }
16133
+ }
16134
+ | {
16135
+ type: "tool-call"
16136
+ toolCallId: string
16137
+ toolName: string
16138
+ dynamic?: boolean
16139
+ providerExecuted?: boolean
16140
+ /**
16141
+ * Any JSON-compatible value.
16142
+ */
16143
+ input:
16144
+ | string
16145
+ | number
16146
+ | boolean
16147
+ | Array<unknown>
16148
+ | {
16149
+ [key: string]: unknown
16150
+ }
16151
+ | null
16152
+ /**
16153
+ * Any JSON-compatible value.
16154
+ */
16155
+ providerMetadata?:
16156
+ | string
16157
+ | number
16158
+ | boolean
16159
+ | Array<unknown>
16160
+ | {
16161
+ [key: string]: unknown
16162
+ }
16163
+ | null
16164
+ state: "output-error"
16165
+ errorText: string
16166
+ }
16167
+ | {
16168
+ type: "mail"
16169
+ id: string
16170
+ from: "parent"
16171
+ kind: "message" | "answer"
16172
+ inReplyTo?: string
16173
+ text: string
16174
+ afterAnswer?: true
16175
+ }
16176
+ >
16177
+ spec?: {
16178
+ model?: {
16179
+ provider: string
16180
+ modelId: string
16181
+ }
16182
+ reasoning?:
16183
+ | "provider-default"
16184
+ | "none"
16185
+ | "minimal"
16186
+ | "low"
16187
+ | "medium"
16188
+ | "high"
16189
+ | "xhigh"
16190
+ | "max"
16191
+ | {
16192
+ budgetTokens: number
16193
+ }
16194
+ approvalMode?: "manual" | "accept-edits" | "auto"
16195
+ }
16196
+ timeZone?: string
16197
+ locale?: string
16198
+ immediate?: boolean
16199
+ replacesMessageId?: string
16200
+ createdAt: string
16201
+ updatedAt: string
16202
+ }
16203
+ }
16204
+ }
16205
+
16206
+ export type UpdateAgentThreadInboxItemResponse =
16207
+ UpdateAgentThreadInboxItemResponses[keyof UpdateAgentThreadInboxItemResponses]
16208
+
16209
+ export type EditAgentThreadMessageData = {
16210
+ body: {
16211
+ text?: string
16212
+ model?: {
16213
+ provider: string
16214
+ modelId: string
16215
+ }
16216
+ reasoning?:
16217
+ | "provider-default"
16218
+ | "none"
16219
+ | "minimal"
16220
+ | "low"
16221
+ | "medium"
16222
+ | "high"
16223
+ | "xhigh"
16224
+ | "max"
16225
+ | {
16226
+ budgetTokens: number
16227
+ }
16228
+ timeZone?: string
16229
+ locale?: string
16230
+ approvalMode?: "manual" | "accept-edits" | "auto"
16231
+ attachments?: Array<{
16232
+ blobId: string
16233
+ digest: string
16234
+ sizeBytes: number
16235
+ fileName?: string
16236
+ mediaType?: string
16237
+ logicalPath?: string
16238
+ }>
16239
+ context?: Array<{
16240
+ context:
16241
+ | {
16242
+ kind: "object"
16243
+ ref: {
16244
+ objectTypeId: string
16245
+ primaryId: string
16246
+ }
16247
+ /**
16248
+ * Shown in the chat instead of the object's title. Never sent to the model.
16249
+ */
16250
+ label?: string
16251
+ }
16252
+ | {
16253
+ kind: "app-state"
16254
+ id: string
16255
+ label: string
16256
+ description: string
16257
+ /**
16258
+ * Any JSON-compatible value.
16259
+ */
16260
+ value:
16261
+ | string
16262
+ | number
16263
+ | boolean
16264
+ | Array<unknown>
16265
+ | {
16266
+ [key: string]: unknown
16267
+ }
16268
+ | null
16269
+ }
16270
+ origin: "ambient" | "explicit"
16271
+ }>
16272
+ nextMessageId?: string
16273
+ }
16274
+ path: {
16275
+ threadId: string
16276
+ messageId: string
16277
+ }
16278
+ query?: never
16279
+ url: "/api/agent-threads/{threadId}/messages/{messageId}/edit"
16280
+ }
16281
+
16282
+ export type EditAgentThreadMessageErrors = {
16283
+ /**
16284
+ * Response for status 400
16285
+ */
16286
+ 400: {
16287
+ error: string
16288
+ code?: string
16289
+ }
16290
+ /**
16291
+ * Response for status 403
16292
+ */
16293
+ 403: {
16294
+ error: string
16295
+ code?: string
16296
+ }
16297
+ /**
16298
+ * Response for status 404
16299
+ */
16300
+ 404: {
16301
+ error: string
16302
+ }
16303
+ /**
16304
+ * Response for status 409
16305
+ */
16306
+ 409: {
16307
+ error: string
16308
+ code?: string
16309
+ }
16310
+ /**
16311
+ * Response for status 429
16312
+ */
16313
+ 429: {
16314
+ error: string
16315
+ /**
16316
+ * Stable machine-readable failure code for programmatic handling.
16317
+ */
16318
+ code: "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable"
16319
+ /**
16320
+ * Any JSON-compatible value.
16321
+ */
16322
+ details?:
16323
+ | string
16324
+ | number
16325
+ | boolean
16326
+ | Array<unknown>
16327
+ | {
16328
+ [key: string]: unknown
16329
+ }
16330
+ | null
16331
+ }
16332
+ /**
16333
+ * Response for status 501
16334
+ */
16335
+ 501: {
16336
+ error: string
16337
+ }
16338
+ }
16339
+
16340
+ export type EditAgentThreadMessageError =
16341
+ EditAgentThreadMessageErrors[keyof EditAgentThreadMessageErrors]
16342
+
16343
+ export type EditAgentThreadMessageResponses = {
16344
+ /**
16345
+ * Response for status 202
16346
+ */
16347
+ 202: {
16348
+ run?: {
16349
+ id: string
16350
+ projectId: string
16351
+ kind: "conversation" | "subagent"
16352
+ threadId: string
16353
+ triggerMessageId: string
16354
+ parentRunId?: string
16355
+ requestedBy?: {
16356
+ type: "user" | "serviceAccount"
16357
+ id: string
16358
+ }
16359
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled"
16360
+ model?: {
16361
+ provider: string
16362
+ modelId: string
16363
+ }
16364
+ tier?: "light" | "standard" | "heavy"
16365
+ reasoning?:
16366
+ | "provider-default"
16367
+ | "none"
16368
+ | "minimal"
16369
+ | "low"
16370
+ | "medium"
16371
+ | "high"
16372
+ | "xhigh"
16373
+ | "max"
16374
+ | {
16375
+ budgetTokens: number
16376
+ }
16377
+ approvalMode?: "manual" | "accept-edits" | "auto"
16378
+ runsOn?: "computer"
16379
+ computer?: {
16380
+ id: string
16381
+ folder: string
16382
+ }
16383
+ modelId?: string
16384
+ finishReason?:
16385
+ | "stop"
16386
+ | "length"
16387
+ | "content-filter"
16388
+ | "tool-calls"
16389
+ | "timeout"
16390
+ | "interrupted"
16391
+ | "awaiting_approval"
16392
+ | "awaiting_answer"
16393
+ | "error"
16394
+ | "other"
16395
+ | "unknown"
16396
+ usage?: {
16397
+ inputTokens?: number
16398
+ outputTokens?: number
16399
+ totalTokens?: number
16400
+ uncachedInputTokens?: number
16401
+ cacheReadInputTokens?: number
16402
+ cacheWriteInputTokens?: number
16403
+ textOutputTokens?: number
16404
+ reasoningOutputTokens?: number
16405
+ /**
16406
+ * Audio content duration in milliseconds; not billed duration.
16407
+ */
16408
+ audioDurationMs?: number
16409
+ /**
16410
+ * Output tokens that encode generated images, within outputTokens.
16411
+ */
16412
+ imageOutputTokens?: number
16413
+ /**
16414
+ * Output tokens that encode generated audio, within outputTokens.
16415
+ */
16416
+ audioOutputTokens?: number
16417
+ /**
16418
+ * Images the call returned.
16419
+ */
16420
+ outputImages?: number
16421
+ /**
16422
+ * Input characters, counted by the provider's own billing rule.
16423
+ */
16424
+ inputCharacters?: number
16425
+ reportingStatus: "complete" | "partial" | "unavailable"
16426
+ }
16427
+ cost?: {
16428
+ amounts: Array<{
16429
+ currency: string
16430
+ amountNanos: string
16431
+ }>
16432
+ ratedCallCount: number
16433
+ unpriceableCallCount: number
16434
+ unvaluedCallCount: number
16435
+ }
16436
+ diagnostics?: Array<{
16437
+ code: "step_limit_reached" | "output_limit_reached"
16438
+ severity: "warning" | "error"
16439
+ scope: "run"
16440
+ message: string
16441
+ }>
16442
+ error?: {
16443
+ code:
16444
+ | "internal.unexpected"
16445
+ | "runtime.cancelled"
16446
+ | "agent.context_limit_exceeded"
16447
+ | "agent.execution_failed"
16448
+ | "agent.step_limit_reached"
16449
+ | "ai.usage_limit_exceeded"
16450
+ | "ai.usage_limit_unavailable"
16451
+ message: string
16452
+ retryable: boolean
16453
+ at: string
16454
+ /**
16455
+ * Any JSON-compatible value.
16456
+ */
16457
+ details?:
16458
+ | string
16459
+ | number
16460
+ | boolean
16461
+ | Array<unknown>
16462
+ | {
16463
+ [key: string]: unknown
16464
+ }
16465
+ | null
16466
+ httpStatus?: number
16467
+ redacted?: true
16468
+ truncated?: true
16469
+ }
16470
+ attempt: number
16471
+ streamId: string
16472
+ createdAt: string
16473
+ startedAt?: string
16474
+ completedAt?: string
16475
+ }
16476
+ item?: {
16477
+ id: string
16478
+ projectId: string
16479
+ threadId: string
16480
+ messageId: string
16481
+ seq: number
16482
+ authorPrincipal: {
16483
+ type: "user" | "serviceAccount" | "system"
16484
+ id: string
16485
+ }
16486
+ mode: "steer" | "queue"
16487
+ parts: Array<
16488
+ | {
16489
+ type: "text"
16490
+ text: string
16491
+ /**
16492
+ * Any JSON-compatible value.
16493
+ */
16494
+ providerMetadata?:
16495
+ | string
16496
+ | number
16497
+ | boolean
16498
+ | Array<unknown>
16499
+ | {
16500
+ [key: string]: unknown
16501
+ }
16502
+ | null
16503
+ }
16504
+ | {
16505
+ type: "continuation"
16506
+ }
16507
+ | {
16508
+ type: "approval-outcome"
16509
+ approvalId: string
16510
+ status: "approved" | "denied" | "cancelled" | "superseded" | "expired"
16511
+ call:
16512
+ | {
16513
+ kind: "action"
16514
+ actionId: string
16515
+ subject:
16516
+ | {
16517
+ kind: "none"
16518
+ }
16519
+ | {
16520
+ kind: "object"
16521
+ objectTypeId: string
16522
+ primaryId: string
16523
+ }
16524
+ }
16525
+ | {
16526
+ kind: "workflow"
16527
+ workflowId: string
16528
+ }
16529
+ outcome?:
16530
+ | {
16531
+ kind: "action-run"
16532
+ runId: string
16533
+ status: "succeeded" | "failed"
16534
+ error?: {
16535
+ code:
16536
+ | "internal.unexpected"
16537
+ | "runtime.cancelled"
16538
+ | "action.phase_failed"
16539
+ | "action.read_conflict"
16540
+ | "action.rejected"
16541
+ | "action.timeout"
16542
+ | "object.unique_violation"
16543
+ message: string
16544
+ retryable: boolean
16545
+ at: string
16546
+ details: {
16547
+ actionId: string
16548
+ runId: string
16549
+ phase: "validation" | "writeback" | "edits" | "commit" | "effects"
16550
+ }
16551
+ httpStatus?: number
16552
+ redacted?: true
16553
+ truncated?: true
16554
+ }
16555
+ }
16556
+ | {
16557
+ kind: "workflow-run"
16558
+ runId: string
16559
+ queuedAt: string
16560
+ }
16561
+ | {
16562
+ kind: "error"
16563
+ error: {
16564
+ code:
16565
+ | "action.phase_failed"
16566
+ | "action.read_conflict"
16567
+ | "action.rejected"
16568
+ | "action.run_in_progress"
16569
+ | "action.timeout"
16570
+ | "agent.approval_authority_lost"
16571
+ | "agent.context_limit_exceeded"
16572
+ | "agent.execution_failed"
16573
+ | "agent.step_limit_reached"
16574
+ | "ai.usage_limit_exceeded"
16575
+ | "ai.usage_limit_unavailable"
16576
+ | "connector.adapter_invalid"
16577
+ | "connector.authorization_invalid"
16578
+ | "connector.authorization_required"
16579
+ | "connector.configuration_invalid"
16580
+ | "connector.credentials_unavailable"
16581
+ | "connector.not_found"
16582
+ | "connector.operation_conflict"
16583
+ | "connector.operation_in_progress"
16584
+ | "connector.provider_failed"
16585
+ | "connector.provider_unavailable"
16586
+ | "connector.replacement_required"
16587
+ | "connector.revocation_pending"
16588
+ | "dataset.change_refused"
16589
+ | "dataset.not_found"
16590
+ | "dataset.version_incompatible"
16591
+ | "dataset.version_not_found"
16592
+ | "dataset.version_read_inconsistent"
16593
+ | "event.delivery_failed"
16594
+ | "internal.unexpected"
16595
+ | "queue.enqueue_failed"
16596
+ | "object.not_found"
16597
+ | "object.unique_violation"
16598
+ | "pipeline.step_failed"
16599
+ | "projection.definition_invalid"
16600
+ | "projection.execution_failed"
16601
+ | "projection.not_found"
16602
+ | "projection.run_already_terminal"
16603
+ | "projection.run_identity_mismatch"
16604
+ | "runtime.cancelled"
16605
+ | "runtime.stopping"
16606
+ | "vector.model_unavailable"
16607
+ | "vector.response_invalid"
16608
+ | "vector.outcome_unknown"
16609
+ | "storage.unavailable"
16610
+ | "sync.execution_failed"
16611
+ | "webhook.delivery_failed"
16612
+ | "webhook.delivery_rejected"
16613
+ | "workflow.node_failed"
16614
+ message: string
16615
+ retryable: boolean
16616
+ at: string
16617
+ /**
16618
+ * Any JSON-compatible value.
16619
+ */
16620
+ details?:
16621
+ | string
16622
+ | number
16623
+ | boolean
16624
+ | Array<unknown>
16625
+ | {
16626
+ [key: string]: unknown
16627
+ }
16628
+ | null
16629
+ httpStatus?: number
16630
+ redacted?: true
16631
+ truncated?: true
16632
+ }
16633
+ }
16634
+ caller?: {
16635
+ runId: string
16636
+ key: string
16637
+ continues?: true
16638
+ }
16639
+ }
16640
+ | {
16641
+ type: "reasoning"
16642
+ text: string
16643
+ /**
16644
+ * Any JSON-compatible value.
16645
+ */
16646
+ providerMetadata?:
16647
+ | string
16648
+ | number
16649
+ | boolean
16650
+ | Array<unknown>
16651
+ | {
16652
+ [key: string]: unknown
16653
+ }
16654
+ | null
16655
+ }
16656
+ | {
16657
+ type: "step-start"
16658
+ }
16659
+ | {
16660
+ type: "file"
16661
+ fileRef: {
16662
+ blobId: string
16663
+ digest: string
16664
+ sizeBytes: number
16665
+ fileName?: string
16666
+ mediaType?: string
16667
+ logicalPath?: string
16668
+ }
16669
+ /**
16670
+ * Any JSON-compatible value.
16671
+ */
16672
+ providerMetadata?:
16673
+ | string
16674
+ | number
16675
+ | boolean
16676
+ | Array<unknown>
16677
+ | {
16678
+ [key: string]: unknown
16679
+ }
16680
+ | null
16681
+ }
16682
+ | {
16683
+ type: "provider-state"
16684
+ providerId: string
16685
+ /**
16686
+ * Any JSON-compatible value.
16687
+ */
16688
+ data:
16689
+ | string
16690
+ | number
16691
+ | boolean
16692
+ | Array<unknown>
16693
+ | {
16694
+ [key: string]: unknown
16695
+ }
16696
+ | null
16697
+ }
16698
+ | {
16699
+ context:
16700
+ | {
16701
+ kind: "object"
16702
+ ref: {
16703
+ objectTypeId: string
16704
+ primaryId: string
16705
+ }
16706
+ /**
16707
+ * Shown in the chat instead of the object's title. Never sent to the model.
16708
+ */
16709
+ label?: string
16710
+ }
16711
+ | {
16712
+ kind: "app-state"
16713
+ id: string
16714
+ label: string
16715
+ description: string
16716
+ /**
16717
+ * Any JSON-compatible value.
16718
+ */
16719
+ value:
16720
+ | string
16721
+ | number
16722
+ | boolean
16723
+ | Array<unknown>
16724
+ | {
16725
+ [key: string]: unknown
16726
+ }
16727
+ | null
16728
+ }
16729
+ origin: "ambient" | "explicit"
16730
+ type: "context"
16731
+ }
16732
+ | {
16733
+ type: "tool-call"
16734
+ toolCallId: string
16735
+ toolName: string
16736
+ dynamic?: boolean
16737
+ providerExecuted?: boolean
16738
+ /**
16739
+ * Any JSON-compatible value.
16740
+ */
16741
+ input:
16742
+ | string
16743
+ | number
16744
+ | boolean
16745
+ | Array<unknown>
16746
+ | {
16747
+ [key: string]: unknown
16748
+ }
16749
+ | null
16750
+ /**
16751
+ * Any JSON-compatible value.
16752
+ */
16753
+ providerMetadata?:
16754
+ | string
16755
+ | number
16756
+ | boolean
16757
+ | Array<unknown>
16758
+ | {
16759
+ [key: string]: unknown
16760
+ }
16761
+ | null
16762
+ state: "output-available"
16763
+ /**
16764
+ * Any JSON-compatible value.
16765
+ */
16766
+ output:
16767
+ | string
16768
+ | number
16769
+ | boolean
16770
+ | Array<unknown>
16771
+ | {
16772
+ [key: string]: unknown
16773
+ }
16774
+ | null
16775
+ outputFile?: {
16776
+ fileRef: {
16777
+ blobId: string
16778
+ digest: string
16779
+ sizeBytes: number
16780
+ fileName?: string
16781
+ mediaType?: string
16782
+ logicalPath?: string
16783
+ }
16784
+ path: string
16785
+ }
16786
+ }
16787
+ | {
16788
+ type: "tool-call"
16789
+ toolCallId: string
16790
+ toolName: string
16791
+ dynamic?: boolean
16792
+ providerExecuted?: boolean
16793
+ /**
16794
+ * Any JSON-compatible value.
16795
+ */
16796
+ input:
16797
+ | string
16798
+ | number
16799
+ | boolean
16800
+ | Array<unknown>
16801
+ | {
16802
+ [key: string]: unknown
16803
+ }
16804
+ | null
16805
+ /**
16806
+ * Any JSON-compatible value.
16807
+ */
16808
+ providerMetadata?:
16809
+ | string
16810
+ | number
16811
+ | boolean
16812
+ | Array<unknown>
16813
+ | {
16814
+ [key: string]: unknown
16815
+ }
16816
+ | null
16817
+ state: "output-error"
16818
+ errorText: string
16819
+ }
16820
+ | {
16821
+ type: "mail"
16822
+ id: string
16823
+ from: "parent"
16824
+ kind: "message" | "answer"
16825
+ inReplyTo?: string
16826
+ text: string
16827
+ afterAnswer?: true
16828
+ }
16829
+ >
16830
+ spec?: {
16831
+ model?: {
16832
+ provider: string
16833
+ modelId: string
16834
+ }
16835
+ reasoning?:
16836
+ | "provider-default"
16837
+ | "none"
16838
+ | "minimal"
16839
+ | "low"
16840
+ | "medium"
16841
+ | "high"
16842
+ | "xhigh"
16843
+ | "max"
16844
+ | {
16845
+ budgetTokens: number
16846
+ }
16847
+ approvalMode?: "manual" | "accept-edits" | "auto"
16848
+ }
16849
+ timeZone?: string
16850
+ locale?: string
16851
+ immediate?: boolean
16852
+ replacesMessageId?: string
16853
+ createdAt: string
16854
+ updatedAt: string
16855
+ }
16856
+ }
14291
16857
  }
14292
16858
 
14293
- export type HeadAgentMessageFileContentError =
14294
- HeadAgentMessageFileContentErrors[keyof HeadAgentMessageFileContentErrors]
14295
-
14296
- export type HeadAgentMessageFileContentResponses = {
14297
- /**
14298
- * File content headers
14299
- */
14300
- 200: unknown
14301
- /**
14302
- * Partial file content headers
14303
- */
14304
- 206: unknown
14305
- }
16859
+ export type EditAgentThreadMessageResponse =
16860
+ EditAgentThreadMessageResponses[keyof EditAgentThreadMessageResponses]
14306
16861
 
14307
16862
  export type CancelAgentRunData = {
14308
16863
  body: {
@@ -14389,6 +16944,10 @@ export type CancelAgentRunResponses = {
14389
16944
  }
14390
16945
  approvalMode?: "manual" | "accept-edits" | "auto"
14391
16946
  runsOn?: "computer"
16947
+ computer?: {
16948
+ id: string
16949
+ folder: string
16950
+ }
14392
16951
  modelId?: string
14393
16952
  finishReason?:
14394
16953
  | "stop"
@@ -14593,6 +17152,10 @@ export type RetryAgentRunResponses = {
14593
17152
  }
14594
17153
  approvalMode?: "manual" | "accept-edits" | "auto"
14595
17154
  runsOn?: "computer"
17155
+ computer?: {
17156
+ id: string
17157
+ folder: string
17158
+ }
14596
17159
  modelId?: string
14597
17160
  finishReason?:
14598
17161
  | "stop"
@@ -14857,6 +17420,10 @@ export type ListAgentThreadRunsResponses = {
14857
17420
  }
14858
17421
  approvalMode?: "manual" | "accept-edits" | "auto"
14859
17422
  runsOn?: "computer"
17423
+ computer?: {
17424
+ id: string
17425
+ folder: string
17426
+ }
14860
17427
  modelId?: string
14861
17428
  finishReason?:
14862
17429
  | "stop"
@@ -15025,6 +17592,10 @@ export type GetAgentRunResponses = {
15025
17592
  }
15026
17593
  approvalMode?: "manual" | "accept-edits" | "auto"
15027
17594
  runsOn?: "computer"
17595
+ computer?: {
17596
+ id: string
17597
+ folder: string
17598
+ }
15028
17599
  modelId?: string
15029
17600
  finishReason?:
15030
17601
  | "stop"
@@ -15205,6 +17776,10 @@ export type CancelAgentRunByIdResponses = {
15205
17776
  }
15206
17777
  approvalMode?: "manual" | "accept-edits" | "auto"
15207
17778
  runsOn?: "computer"
17779
+ computer?: {
17780
+ id: string
17781
+ folder: string
17782
+ }
15208
17783
  modelId?: string
15209
17784
  finishReason?:
15210
17785
  | "stop"
@@ -15304,6 +17879,60 @@ export type CancelAgentRunByIdResponses = {
15304
17879
  export type CancelAgentRunByIdResponse =
15305
17880
  CancelAgentRunByIdResponses[keyof CancelAgentRunByIdResponses]
15306
17881
 
17882
+ export type MarkAgentThreadReadData = {
17883
+ body: {
17884
+ throughMessageId?: string
17885
+ }
17886
+ path: {
17887
+ threadId: string
17888
+ }
17889
+ query?: never
17890
+ url: "/api/agent-threads/{threadId}/read"
17891
+ }
17892
+
17893
+ export type MarkAgentThreadReadErrors = {
17894
+ /**
17895
+ * Response for status 400
17896
+ */
17897
+ 400: {
17898
+ error: string
17899
+ code?: string
17900
+ }
17901
+ /**
17902
+ * Response for status 404
17903
+ */
17904
+ 404: {
17905
+ error: string
17906
+ code?: string
17907
+ }
17908
+ /**
17909
+ * Response for status 501
17910
+ */
17911
+ 501: {
17912
+ error: string
17913
+ }
17914
+ }
17915
+
17916
+ export type MarkAgentThreadReadError = MarkAgentThreadReadErrors[keyof MarkAgentThreadReadErrors]
17917
+
17918
+ export type MarkAgentThreadReadResponses = {
17919
+ /**
17920
+ * Response for status 200
17921
+ */
17922
+ 200: {
17923
+ read: {
17924
+ threadId: string
17925
+ throughSeq: number
17926
+ headSeq: number
17927
+ unread: number
17928
+ readAt?: string
17929
+ }
17930
+ }
17931
+ }
17932
+
17933
+ export type MarkAgentThreadReadResponse =
17934
+ MarkAgentThreadReadResponses[keyof MarkAgentThreadReadResponses]
17935
+
15307
17936
  export type ListAgentThreadChildrenData = {
15308
17937
  body?: never
15309
17938
  path: {
@@ -15612,6 +18241,42 @@ export type MoveAgentThreadToCloudResponses = {
15612
18241
  messageCount: number
15613
18242
  createdAt: string
15614
18243
  updatedAt: string
18244
+ read?: {
18245
+ threadId: string
18246
+ throughSeq: number
18247
+ headSeq: number
18248
+ unread: number
18249
+ readAt?: string
18250
+ }
18251
+ lastRun?: {
18252
+ id: string
18253
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled"
18254
+ finishReason?:
18255
+ | "stop"
18256
+ | "length"
18257
+ | "content-filter"
18258
+ | "tool-calls"
18259
+ | "timeout"
18260
+ | "interrupted"
18261
+ | "awaiting_approval"
18262
+ | "awaiting_answer"
18263
+ | "error"
18264
+ | "other"
18265
+ | "unknown"
18266
+ errorCode?:
18267
+ | "internal.unexpected"
18268
+ | "runtime.cancelled"
18269
+ | "agent.context_limit_exceeded"
18270
+ | "agent.execution_failed"
18271
+ | "agent.step_limit_reached"
18272
+ | "ai.usage_limit_exceeded"
18273
+ | "ai.usage_limit_unavailable"
18274
+ completedAt?: string
18275
+ requestedBy?: {
18276
+ type: "user" | "serviceAccount"
18277
+ id: string
18278
+ }
18279
+ }
15615
18280
  approvalMode?: "manual" | "accept-edits" | "auto"
15616
18281
  approvalModeSource?: "thread" | "default" | "fallback" | "run"
15617
18282
  }
@@ -15750,6 +18415,42 @@ export type MoveAgentThreadToComputerResponses = {
15750
18415
  messageCount: number
15751
18416
  createdAt: string
15752
18417
  updatedAt: string
18418
+ read?: {
18419
+ threadId: string
18420
+ throughSeq: number
18421
+ headSeq: number
18422
+ unread: number
18423
+ readAt?: string
18424
+ }
18425
+ lastRun?: {
18426
+ id: string
18427
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled"
18428
+ finishReason?:
18429
+ | "stop"
18430
+ | "length"
18431
+ | "content-filter"
18432
+ | "tool-calls"
18433
+ | "timeout"
18434
+ | "interrupted"
18435
+ | "awaiting_approval"
18436
+ | "awaiting_answer"
18437
+ | "error"
18438
+ | "other"
18439
+ | "unknown"
18440
+ errorCode?:
18441
+ | "internal.unexpected"
18442
+ | "runtime.cancelled"
18443
+ | "agent.context_limit_exceeded"
18444
+ | "agent.execution_failed"
18445
+ | "agent.step_limit_reached"
18446
+ | "ai.usage_limit_exceeded"
18447
+ | "ai.usage_limit_unavailable"
18448
+ completedAt?: string
18449
+ requestedBy?: {
18450
+ type: "user" | "serviceAccount"
18451
+ id: string
18452
+ }
18453
+ }
15753
18454
  approvalMode?: "manual" | "accept-edits" | "auto"
15754
18455
  approvalModeSource?: "thread" | "default" | "fallback" | "run"
15755
18456
  }
@@ -16124,6 +18825,42 @@ export type SetAgentThreadApprovalModeResponses = {
16124
18825
  messageCount: number
16125
18826
  createdAt: string
16126
18827
  updatedAt: string
18828
+ read?: {
18829
+ threadId: string
18830
+ throughSeq: number
18831
+ headSeq: number
18832
+ unread: number
18833
+ readAt?: string
18834
+ }
18835
+ lastRun?: {
18836
+ id: string
18837
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled"
18838
+ finishReason?:
18839
+ | "stop"
18840
+ | "length"
18841
+ | "content-filter"
18842
+ | "tool-calls"
18843
+ | "timeout"
18844
+ | "interrupted"
18845
+ | "awaiting_approval"
18846
+ | "awaiting_answer"
18847
+ | "error"
18848
+ | "other"
18849
+ | "unknown"
18850
+ errorCode?:
18851
+ | "internal.unexpected"
18852
+ | "runtime.cancelled"
18853
+ | "agent.context_limit_exceeded"
18854
+ | "agent.execution_failed"
18855
+ | "agent.step_limit_reached"
18856
+ | "ai.usage_limit_exceeded"
18857
+ | "ai.usage_limit_unavailable"
18858
+ completedAt?: string
18859
+ requestedBy?: {
18860
+ type: "user" | "serviceAccount"
18861
+ id: string
18862
+ }
18863
+ }
16127
18864
  approvalMode?: "manual" | "accept-edits" | "auto"
16128
18865
  approvalModeSource?: "thread" | "default" | "fallback" | "run"
16129
18866
  }
@@ -16614,6 +19351,10 @@ export type DecideAgentApprovalResponses = {
16614
19351
  }
16615
19352
  approvalMode?: "manual" | "accept-edits" | "auto"
16616
19353
  runsOn?: "computer"
19354
+ computer?: {
19355
+ id: string
19356
+ folder: string
19357
+ }
16617
19358
  modelId?: string
16618
19359
  finishReason?:
16619
19360
  | "stop"
@@ -17046,6 +19787,42 @@ export type GetObservedAgentThreadResponses = {
17046
19787
  messageCount: number
17047
19788
  createdAt: string
17048
19789
  updatedAt: string
19790
+ read?: {
19791
+ threadId: string
19792
+ throughSeq: number
19793
+ headSeq: number
19794
+ unread: number
19795
+ readAt?: string
19796
+ }
19797
+ lastRun?: {
19798
+ id: string
19799
+ status: "queued" | "running" | "succeeded" | "failed" | "cancelled"
19800
+ finishReason?:
19801
+ | "stop"
19802
+ | "length"
19803
+ | "content-filter"
19804
+ | "tool-calls"
19805
+ | "timeout"
19806
+ | "interrupted"
19807
+ | "awaiting_approval"
19808
+ | "awaiting_answer"
19809
+ | "error"
19810
+ | "other"
19811
+ | "unknown"
19812
+ errorCode?:
19813
+ | "internal.unexpected"
19814
+ | "runtime.cancelled"
19815
+ | "agent.context_limit_exceeded"
19816
+ | "agent.execution_failed"
19817
+ | "agent.step_limit_reached"
19818
+ | "ai.usage_limit_exceeded"
19819
+ | "ai.usage_limit_unavailable"
19820
+ completedAt?: string
19821
+ requestedBy?: {
19822
+ type: "user" | "serviceAccount"
19823
+ id: string
19824
+ }
19825
+ }
17049
19826
  approvalMode?: "manual" | "accept-edits" | "auto"
17050
19827
  approvalModeSource?: "thread" | "default" | "fallback" | "run"
17051
19828
  }
@@ -17634,6 +20411,10 @@ export type ListObservedAgentThreadRunsResponses = {
17634
20411
  }
17635
20412
  approvalMode?: "manual" | "accept-edits" | "auto"
17636
20413
  runsOn?: "computer"
20414
+ computer?: {
20415
+ id: string
20416
+ folder: string
20417
+ }
17637
20418
  modelId?: string
17638
20419
  finishReason?:
17639
20420
  | "stop"
@@ -18197,7 +20978,7 @@ export type ListArtifactsErrors = {
18197
20978
  400: {
18198
20979
  error: string
18199
20980
  /**
18200
- * 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.
20981
+ * 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.
18201
20982
  */
18202
20983
  code?: string
18203
20984
  /**
@@ -18222,7 +21003,7 @@ export type ListArtifactsErrors = {
18222
21003
  501: {
18223
21004
  error: string
18224
21005
  /**
18225
- * 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.
21006
+ * 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.
18226
21007
  */
18227
21008
  code?: string
18228
21009
  /**
@@ -18311,7 +21092,7 @@ export type CreateArtifactErrors = {
18311
21092
  400: {
18312
21093
  error: string
18313
21094
  /**
18314
- * 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.
21095
+ * 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.
18315
21096
  */
18316
21097
  code?: string
18317
21098
  /**
@@ -18336,7 +21117,7 @@ export type CreateArtifactErrors = {
18336
21117
  403: {
18337
21118
  error: string
18338
21119
  /**
18339
- * 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.
21120
+ * 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.
18340
21121
  */
18341
21122
  code?: string
18342
21123
  /**
@@ -18361,7 +21142,7 @@ export type CreateArtifactErrors = {
18361
21142
  404: {
18362
21143
  error: string
18363
21144
  /**
18364
- * 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.
21145
+ * 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.
18365
21146
  */
18366
21147
  code?: string
18367
21148
  /**
@@ -18386,7 +21167,7 @@ export type CreateArtifactErrors = {
18386
21167
  409: {
18387
21168
  error: string
18388
21169
  /**
18389
- * 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.
21170
+ * 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.
18390
21171
  */
18391
21172
  code?: string
18392
21173
  /**
@@ -18411,7 +21192,7 @@ export type CreateArtifactErrors = {
18411
21192
  501: {
18412
21193
  error: string
18413
21194
  /**
18414
- * 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.
21195
+ * 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.
18415
21196
  */
18416
21197
  code?: string
18417
21198
  /**
@@ -18494,6 +21275,33 @@ export type CreateArtifactResponses = {
18494
21275
  text: string
18495
21276
  slug: string
18496
21277
  }>
21278
+ /**
21279
+ * html for a designed document, document.html with its own stylesheets
21280
+ */
21281
+ format?: "html"
21282
+ /**
21283
+ * The sheet a designed document's @page rule sets, in CSS pixels: its size and margins
21284
+ */
21285
+ paper?: {
21286
+ width: number
21287
+ height: number
21288
+ margin: {
21289
+ top: number
21290
+ right: number
21291
+ bottom: number
21292
+ left: number
21293
+ }
21294
+ }
21295
+ /**
21296
+ * 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
21297
+ */
21298
+ holder?: {
21299
+ objectTypeId: string
21300
+ /**
21301
+ * The holder's links its fields read through
21302
+ */
21303
+ links: Array<string>
21304
+ }
18497
21305
  }
18498
21306
  | {
18499
21307
  kind: "sheet"
@@ -18596,6 +21404,10 @@ export type CreateArtifactResponses = {
18596
21404
  boardPreviews?: {
18597
21405
  [key: string]: "ready" | "pending" | "none"
18598
21406
  }
21407
+ /**
21408
+ * 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
21409
+ */
21410
+ printable?: boolean
18599
21411
  }
18600
21412
  warnings: Array<{
18601
21413
  code: string
@@ -18623,7 +21435,7 @@ export type DeleteArtifactErrors = {
18623
21435
  403: {
18624
21436
  error: string
18625
21437
  /**
18626
- * 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.
21438
+ * 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.
18627
21439
  */
18628
21440
  code?: string
18629
21441
  /**
@@ -18648,7 +21460,7 @@ export type DeleteArtifactErrors = {
18648
21460
  404: {
18649
21461
  error: string
18650
21462
  /**
18651
- * 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.
21463
+ * 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.
18652
21464
  */
18653
21465
  code?: string
18654
21466
  /**
@@ -18673,7 +21485,7 @@ export type DeleteArtifactErrors = {
18673
21485
  501: {
18674
21486
  error: string
18675
21487
  /**
18676
- * 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.
21488
+ * 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.
18677
21489
  */
18678
21490
  code?: string
18679
21491
  /**
@@ -18723,7 +21535,7 @@ export type GetArtifactErrors = {
18723
21535
  403: {
18724
21536
  error: string
18725
21537
  /**
18726
- * 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.
21538
+ * 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.
18727
21539
  */
18728
21540
  code?: string
18729
21541
  /**
@@ -18748,7 +21560,7 @@ export type GetArtifactErrors = {
18748
21560
  404: {
18749
21561
  error: string
18750
21562
  /**
18751
- * 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.
21563
+ * 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.
18752
21564
  */
18753
21565
  code?: string
18754
21566
  /**
@@ -18773,7 +21585,7 @@ export type GetArtifactErrors = {
18773
21585
  501: {
18774
21586
  error: string
18775
21587
  /**
18776
- * 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.
21588
+ * 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.
18777
21589
  */
18778
21590
  code?: string
18779
21591
  /**
@@ -18894,7 +21706,7 @@ export type ListArtifactHoldersErrors = {
18894
21706
  403: {
18895
21707
  error: string
18896
21708
  /**
18897
- * 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.
21709
+ * 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.
18898
21710
  */
18899
21711
  code?: string
18900
21712
  /**
@@ -18919,7 +21731,7 @@ export type ListArtifactHoldersErrors = {
18919
21731
  404: {
18920
21732
  error: string
18921
21733
  /**
18922
- * 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.
21734
+ * 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.
18923
21735
  */
18924
21736
  code?: string
18925
21737
  /**
@@ -18944,7 +21756,7 @@ export type ListArtifactHoldersErrors = {
18944
21756
  501: {
18945
21757
  error: string
18946
21758
  /**
18947
- * 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.
21759
+ * 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.
18948
21760
  */
18949
21761
  code?: string
18950
21762
  /**
@@ -19013,7 +21825,7 @@ export type ClearArtifactStateErrors = {
19013
21825
  403: {
19014
21826
  error: string
19015
21827
  /**
19016
- * 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.
21828
+ * 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.
19017
21829
  */
19018
21830
  code?: string
19019
21831
  /**
@@ -19038,7 +21850,7 @@ export type ClearArtifactStateErrors = {
19038
21850
  404: {
19039
21851
  error: string
19040
21852
  /**
19041
- * 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.
21853
+ * 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.
19042
21854
  */
19043
21855
  code?: string
19044
21856
  /**
@@ -19063,7 +21875,7 @@ export type ClearArtifactStateErrors = {
19063
21875
  501: {
19064
21876
  error: string
19065
21877
  /**
19066
- * 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.
21878
+ * 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.
19067
21879
  */
19068
21880
  code?: string
19069
21881
  /**
@@ -19117,7 +21929,7 @@ export type GetArtifactStateErrors = {
19117
21929
  403: {
19118
21930
  error: string
19119
21931
  /**
19120
- * 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.
21932
+ * 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.
19121
21933
  */
19122
21934
  code?: string
19123
21935
  /**
@@ -19142,7 +21954,7 @@ export type GetArtifactStateErrors = {
19142
21954
  404: {
19143
21955
  error: string
19144
21956
  /**
19145
- * 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.
21957
+ * 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.
19146
21958
  */
19147
21959
  code?: string
19148
21960
  /**
@@ -19167,7 +21979,7 @@ export type GetArtifactStateErrors = {
19167
21979
  501: {
19168
21980
  error: string
19169
21981
  /**
19170
- * 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.
21982
+ * 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.
19171
21983
  */
19172
21984
  code?: string
19173
21985
  /**
@@ -19231,7 +22043,7 @@ export type DeleteArtifactStateValueErrors = {
19231
22043
  400: {
19232
22044
  error: string
19233
22045
  /**
19234
- * 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.
22046
+ * 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.
19235
22047
  */
19236
22048
  code?: string
19237
22049
  /**
@@ -19256,7 +22068,7 @@ export type DeleteArtifactStateValueErrors = {
19256
22068
  403: {
19257
22069
  error: string
19258
22070
  /**
19259
- * 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.
22071
+ * 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.
19260
22072
  */
19261
22073
  code?: string
19262
22074
  /**
@@ -19281,7 +22093,7 @@ export type DeleteArtifactStateValueErrors = {
19281
22093
  404: {
19282
22094
  error: string
19283
22095
  /**
19284
- * 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.
22096
+ * 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.
19285
22097
  */
19286
22098
  code?: string
19287
22099
  /**
@@ -19306,7 +22118,7 @@ export type DeleteArtifactStateValueErrors = {
19306
22118
  501: {
19307
22119
  error: string
19308
22120
  /**
19309
- * 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.
22121
+ * 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.
19310
22122
  */
19311
22123
  code?: string
19312
22124
  /**
@@ -19367,7 +22179,7 @@ export type SetArtifactStateErrors = {
19367
22179
  400: {
19368
22180
  error: string
19369
22181
  /**
19370
- * 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.
22182
+ * 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.
19371
22183
  */
19372
22184
  code?: string
19373
22185
  /**
@@ -19392,7 +22204,7 @@ export type SetArtifactStateErrors = {
19392
22204
  403: {
19393
22205
  error: string
19394
22206
  /**
19395
- * 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.
22207
+ * 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.
19396
22208
  */
19397
22209
  code?: string
19398
22210
  /**
@@ -19417,7 +22229,7 @@ export type SetArtifactStateErrors = {
19417
22229
  404: {
19418
22230
  error: string
19419
22231
  /**
19420
- * 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.
22232
+ * 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.
19421
22233
  */
19422
22234
  code?: string
19423
22235
  /**
@@ -19442,7 +22254,7 @@ export type SetArtifactStateErrors = {
19442
22254
  413: {
19443
22255
  error: string
19444
22256
  /**
19445
- * 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.
22257
+ * 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.
19446
22258
  */
19447
22259
  code?: string
19448
22260
  /**
@@ -19467,7 +22279,7 @@ export type SetArtifactStateErrors = {
19467
22279
  501: {
19468
22280
  error: string
19469
22281
  /**
19470
- * 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.
22282
+ * 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.
19471
22283
  */
19472
22284
  code?: string
19473
22285
  /**
@@ -19546,7 +22358,7 @@ export type UpdateArtifactErrors = {
19546
22358
  400: {
19547
22359
  error: string
19548
22360
  /**
19549
- * 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.
22361
+ * 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.
19550
22362
  */
19551
22363
  code?: string
19552
22364
  /**
@@ -19571,7 +22383,7 @@ export type UpdateArtifactErrors = {
19571
22383
  403: {
19572
22384
  error: string
19573
22385
  /**
19574
- * 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.
22386
+ * 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.
19575
22387
  */
19576
22388
  code?: string
19577
22389
  /**
@@ -19596,7 +22408,7 @@ export type UpdateArtifactErrors = {
19596
22408
  404: {
19597
22409
  error: string
19598
22410
  /**
19599
- * 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.
22411
+ * 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.
19600
22412
  */
19601
22413
  code?: string
19602
22414
  /**
@@ -19621,7 +22433,7 @@ export type UpdateArtifactErrors = {
19621
22433
  409: {
19622
22434
  error: string
19623
22435
  /**
19624
- * 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.
22436
+ * 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.
19625
22437
  */
19626
22438
  code?: string
19627
22439
  /**
@@ -19646,7 +22458,7 @@ export type UpdateArtifactErrors = {
19646
22458
  501: {
19647
22459
  error: string
19648
22460
  /**
19649
- * 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.
22461
+ * 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.
19650
22462
  */
19651
22463
  code?: string
19652
22464
  /**
@@ -19729,6 +22541,33 @@ export type UpdateArtifactResponses = {
19729
22541
  text: string
19730
22542
  slug: string
19731
22543
  }>
22544
+ /**
22545
+ * html for a designed document, document.html with its own stylesheets
22546
+ */
22547
+ format?: "html"
22548
+ /**
22549
+ * The sheet a designed document's @page rule sets, in CSS pixels: its size and margins
22550
+ */
22551
+ paper?: {
22552
+ width: number
22553
+ height: number
22554
+ margin: {
22555
+ top: number
22556
+ right: number
22557
+ bottom: number
22558
+ left: number
22559
+ }
22560
+ }
22561
+ /**
22562
+ * 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
22563
+ */
22564
+ holder?: {
22565
+ objectTypeId: string
22566
+ /**
22567
+ * The holder's links its fields read through
22568
+ */
22569
+ links: Array<string>
22570
+ }
19732
22571
  }
19733
22572
  | {
19734
22573
  kind: "sheet"
@@ -19831,6 +22670,10 @@ export type UpdateArtifactResponses = {
19831
22670
  boardPreviews?: {
19832
22671
  [key: string]: "ready" | "pending" | "none"
19833
22672
  }
22673
+ /**
22674
+ * 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
22675
+ */
22676
+ printable?: boolean
19834
22677
  }
19835
22678
  warnings: Array<{
19836
22679
  code: string
@@ -19863,7 +22706,7 @@ export type FreezeArtifactVersionErrors = {
19863
22706
  400: {
19864
22707
  error: string
19865
22708
  /**
19866
- * 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.
22709
+ * 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.
19867
22710
  */
19868
22711
  code?: string
19869
22712
  /**
@@ -19888,7 +22731,7 @@ export type FreezeArtifactVersionErrors = {
19888
22731
  403: {
19889
22732
  error: string
19890
22733
  /**
19891
- * 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.
22734
+ * 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.
19892
22735
  */
19893
22736
  code?: string
19894
22737
  /**
@@ -19913,7 +22756,7 @@ export type FreezeArtifactVersionErrors = {
19913
22756
  404: {
19914
22757
  error: string
19915
22758
  /**
19916
- * 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.
22759
+ * 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.
19917
22760
  */
19918
22761
  code?: string
19919
22762
  /**
@@ -19938,7 +22781,7 @@ export type FreezeArtifactVersionErrors = {
19938
22781
  409: {
19939
22782
  error: string
19940
22783
  /**
19941
- * 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.
22784
+ * 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.
19942
22785
  */
19943
22786
  code?: string
19944
22787
  /**
@@ -19963,7 +22806,7 @@ export type FreezeArtifactVersionErrors = {
19963
22806
  501: {
19964
22807
  error: string
19965
22808
  /**
19966
- * 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.
22809
+ * 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.
19967
22810
  */
19968
22811
  code?: string
19969
22812
  /**
@@ -20047,6 +22890,33 @@ export type FreezeArtifactVersionResponses = {
20047
22890
  text: string
20048
22891
  slug: string
20049
22892
  }>
22893
+ /**
22894
+ * html for a designed document, document.html with its own stylesheets
22895
+ */
22896
+ format?: "html"
22897
+ /**
22898
+ * The sheet a designed document's @page rule sets, in CSS pixels: its size and margins
22899
+ */
22900
+ paper?: {
22901
+ width: number
22902
+ height: number
22903
+ margin: {
22904
+ top: number
22905
+ right: number
22906
+ bottom: number
22907
+ left: number
22908
+ }
22909
+ }
22910
+ /**
22911
+ * 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
22912
+ */
22913
+ holder?: {
22914
+ objectTypeId: string
22915
+ /**
22916
+ * The holder's links its fields read through
22917
+ */
22918
+ links: Array<string>
22919
+ }
20050
22920
  }
20051
22921
  | {
20052
22922
  kind: "sheet"
@@ -20149,6 +23019,10 @@ export type FreezeArtifactVersionResponses = {
20149
23019
  boardPreviews?: {
20150
23020
  [key: string]: "ready" | "pending" | "none"
20151
23021
  }
23022
+ /**
23023
+ * 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
23024
+ */
23025
+ printable?: boolean
20152
23026
  }
20153
23027
  }
20154
23028
  }
@@ -20172,7 +23046,7 @@ export type ListArtifactCommentsErrors = {
20172
23046
  403: {
20173
23047
  error: string
20174
23048
  /**
20175
- * 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.
23049
+ * 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.
20176
23050
  */
20177
23051
  code?: string
20178
23052
  /**
@@ -20197,7 +23071,7 @@ export type ListArtifactCommentsErrors = {
20197
23071
  404: {
20198
23072
  error: string
20199
23073
  /**
20200
- * 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.
23074
+ * 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.
20201
23075
  */
20202
23076
  code?: string
20203
23077
  /**
@@ -20222,7 +23096,7 @@ export type ListArtifactCommentsErrors = {
20222
23096
  501: {
20223
23097
  error: string
20224
23098
  /**
20225
- * 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.
23099
+ * 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.
20226
23100
  */
20227
23101
  code?: string
20228
23102
  /**
@@ -20379,7 +23253,7 @@ export type AddArtifactCommentErrors = {
20379
23253
  400: {
20380
23254
  error: string
20381
23255
  /**
20382
- * 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.
23256
+ * 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.
20383
23257
  */
20384
23258
  code?: string
20385
23259
  /**
@@ -20404,7 +23278,7 @@ export type AddArtifactCommentErrors = {
20404
23278
  403: {
20405
23279
  error: string
20406
23280
  /**
20407
- * 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.
23281
+ * 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.
20408
23282
  */
20409
23283
  code?: string
20410
23284
  /**
@@ -20429,7 +23303,7 @@ export type AddArtifactCommentErrors = {
20429
23303
  404: {
20430
23304
  error: string
20431
23305
  /**
20432
- * 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.
23306
+ * 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.
20433
23307
  */
20434
23308
  code?: string
20435
23309
  /**
@@ -20454,7 +23328,7 @@ export type AddArtifactCommentErrors = {
20454
23328
  413: {
20455
23329
  error: string
20456
23330
  /**
20457
- * 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.
23331
+ * 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.
20458
23332
  */
20459
23333
  code?: string
20460
23334
  /**
@@ -20479,7 +23353,7 @@ export type AddArtifactCommentErrors = {
20479
23353
  501: {
20480
23354
  error: string
20481
23355
  /**
20482
- * 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.
23356
+ * 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.
20483
23357
  */
20484
23358
  code?: string
20485
23359
  /**
@@ -20600,7 +23474,7 @@ export type ResolveArtifactCommentErrors = {
20600
23474
  400: {
20601
23475
  error: string
20602
23476
  /**
20603
- * 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.
23477
+ * 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.
20604
23478
  */
20605
23479
  code?: string
20606
23480
  /**
@@ -20625,7 +23499,7 @@ export type ResolveArtifactCommentErrors = {
20625
23499
  403: {
20626
23500
  error: string
20627
23501
  /**
20628
- * 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.
23502
+ * 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.
20629
23503
  */
20630
23504
  code?: string
20631
23505
  /**
@@ -20650,7 +23524,7 @@ export type ResolveArtifactCommentErrors = {
20650
23524
  404: {
20651
23525
  error: string
20652
23526
  /**
20653
- * 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.
23527
+ * 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.
20654
23528
  */
20655
23529
  code?: string
20656
23530
  /**
@@ -20675,7 +23549,7 @@ export type ResolveArtifactCommentErrors = {
20675
23549
  501: {
20676
23550
  error: string
20677
23551
  /**
20678
- * 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.
23552
+ * 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.
20679
23553
  */
20680
23554
  code?: string
20681
23555
  /**
@@ -20792,7 +23666,7 @@ export type DeleteArtifactCommentErrors = {
20792
23666
  403: {
20793
23667
  error: string
20794
23668
  /**
20795
- * 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.
23669
+ * 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.
20796
23670
  */
20797
23671
  code?: string
20798
23672
  /**
@@ -20817,7 +23691,7 @@ export type DeleteArtifactCommentErrors = {
20817
23691
  404: {
20818
23692
  error: string
20819
23693
  /**
20820
- * 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.
23694
+ * 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.
20821
23695
  */
20822
23696
  code?: string
20823
23697
  /**
@@ -20842,7 +23716,7 @@ export type DeleteArtifactCommentErrors = {
20842
23716
  501: {
20843
23717
  error: string
20844
23718
  /**
20845
- * 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.
23719
+ * 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.
20846
23720
  */
20847
23721
  code?: string
20848
23722
  /**
@@ -20894,7 +23768,7 @@ export type ListArtifactRestorePointsErrors = {
20894
23768
  403: {
20895
23769
  error: string
20896
23770
  /**
20897
- * 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.
23771
+ * 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.
20898
23772
  */
20899
23773
  code?: string
20900
23774
  /**
@@ -20919,7 +23793,7 @@ export type ListArtifactRestorePointsErrors = {
20919
23793
  404: {
20920
23794
  error: string
20921
23795
  /**
20922
- * 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.
23796
+ * 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.
20923
23797
  */
20924
23798
  code?: string
20925
23799
  /**
@@ -20944,7 +23818,7 @@ export type ListArtifactRestorePointsErrors = {
20944
23818
  501: {
20945
23819
  error: string
20946
23820
  /**
20947
- * 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.
23821
+ * 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.
20948
23822
  */
20949
23823
  code?: string
20950
23824
  /**
@@ -21045,7 +23919,7 @@ export type GetArtifactRestorePointErrors = {
21045
23919
  403: {
21046
23920
  error: string
21047
23921
  /**
21048
- * 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.
23922
+ * 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.
21049
23923
  */
21050
23924
  code?: string
21051
23925
  /**
@@ -21070,7 +23944,7 @@ export type GetArtifactRestorePointErrors = {
21070
23944
  404: {
21071
23945
  error: string
21072
23946
  /**
21073
- * 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.
23947
+ * 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.
21074
23948
  */
21075
23949
  code?: string
21076
23950
  /**
@@ -21095,7 +23969,7 @@ export type GetArtifactRestorePointErrors = {
21095
23969
  501: {
21096
23970
  error: string
21097
23971
  /**
21098
- * 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.
23972
+ * 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.
21099
23973
  */
21100
23974
  code?: string
21101
23975
  /**
@@ -21188,6 +24062,33 @@ export type GetArtifactRestorePointResponses = {
21188
24062
  text: string
21189
24063
  slug: string
21190
24064
  }>
24065
+ /**
24066
+ * html for a designed document, document.html with its own stylesheets
24067
+ */
24068
+ format?: "html"
24069
+ /**
24070
+ * The sheet a designed document's @page rule sets, in CSS pixels: its size and margins
24071
+ */
24072
+ paper?: {
24073
+ width: number
24074
+ height: number
24075
+ margin: {
24076
+ top: number
24077
+ right: number
24078
+ bottom: number
24079
+ left: number
24080
+ }
24081
+ }
24082
+ /**
24083
+ * 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
24084
+ */
24085
+ holder?: {
24086
+ objectTypeId: string
24087
+ /**
24088
+ * The holder's links its fields read through
24089
+ */
24090
+ links: Array<string>
24091
+ }
21191
24092
  }
21192
24093
  | {
21193
24094
  kind: "sheet"
@@ -21338,7 +24239,7 @@ export type RestoreArtifactErrors = {
21338
24239
  400: {
21339
24240
  error: string
21340
24241
  /**
21341
- * 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.
24242
+ * 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.
21342
24243
  */
21343
24244
  code?: string
21344
24245
  /**
@@ -21363,7 +24264,7 @@ export type RestoreArtifactErrors = {
21363
24264
  403: {
21364
24265
  error: string
21365
24266
  /**
21366
- * 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.
24267
+ * 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.
21367
24268
  */
21368
24269
  code?: string
21369
24270
  /**
@@ -21388,7 +24289,7 @@ export type RestoreArtifactErrors = {
21388
24289
  404: {
21389
24290
  error: string
21390
24291
  /**
21391
- * 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.
24292
+ * 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.
21392
24293
  */
21393
24294
  code?: string
21394
24295
  /**
@@ -21413,7 +24314,7 @@ export type RestoreArtifactErrors = {
21413
24314
  409: {
21414
24315
  error: string
21415
24316
  /**
21416
- * 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.
24317
+ * 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.
21417
24318
  */
21418
24319
  code?: string
21419
24320
  /**
@@ -21438,7 +24339,7 @@ export type RestoreArtifactErrors = {
21438
24339
  501: {
21439
24340
  error: string
21440
24341
  /**
21441
- * 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.
24342
+ * 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.
21442
24343
  */
21443
24344
  code?: string
21444
24345
  /**
@@ -21521,6 +24422,33 @@ export type RestoreArtifactResponses = {
21521
24422
  text: string
21522
24423
  slug: string
21523
24424
  }>
24425
+ /**
24426
+ * html for a designed document, document.html with its own stylesheets
24427
+ */
24428
+ format?: "html"
24429
+ /**
24430
+ * The sheet a designed document's @page rule sets, in CSS pixels: its size and margins
24431
+ */
24432
+ paper?: {
24433
+ width: number
24434
+ height: number
24435
+ margin: {
24436
+ top: number
24437
+ right: number
24438
+ bottom: number
24439
+ left: number
24440
+ }
24441
+ }
24442
+ /**
24443
+ * 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
24444
+ */
24445
+ holder?: {
24446
+ objectTypeId: string
24447
+ /**
24448
+ * The holder's links its fields read through
24449
+ */
24450
+ links: Array<string>
24451
+ }
21524
24452
  }
21525
24453
  | {
21526
24454
  kind: "sheet"
@@ -21623,6 +24551,10 @@ export type RestoreArtifactResponses = {
21623
24551
  boardPreviews?: {
21624
24552
  [key: string]: "ready" | "pending" | "none"
21625
24553
  }
24554
+ /**
24555
+ * 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
24556
+ */
24557
+ printable?: boolean
21626
24558
  }
21627
24559
  }
21628
24560
  }
@@ -21649,7 +24581,7 @@ export type CreateArtifactFrameErrors = {
21649
24581
  403: {
21650
24582
  error: string
21651
24583
  /**
21652
- * 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.
24584
+ * 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.
21653
24585
  */
21654
24586
  code?: string
21655
24587
  /**
@@ -21674,7 +24606,7 @@ export type CreateArtifactFrameErrors = {
21674
24606
  404: {
21675
24607
  error: string
21676
24608
  /**
21677
- * 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.
24609
+ * 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.
21678
24610
  */
21679
24611
  code?: string
21680
24612
  /**
@@ -21699,7 +24631,7 @@ export type CreateArtifactFrameErrors = {
21699
24631
  409: {
21700
24632
  error: string
21701
24633
  /**
21702
- * 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.
24634
+ * 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.
21703
24635
  */
21704
24636
  code?: string
21705
24637
  /**
@@ -21724,7 +24656,7 @@ export type CreateArtifactFrameErrors = {
21724
24656
  501: {
21725
24657
  error: string
21726
24658
  /**
21727
- * 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.
24659
+ * 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.
21728
24660
  */
21729
24661
  code?: string
21730
24662
  /**
@@ -21786,7 +24718,7 @@ export type GetArtifactVersionErrors = {
21786
24718
  403: {
21787
24719
  error: string
21788
24720
  /**
21789
- * 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.
24721
+ * 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.
21790
24722
  */
21791
24723
  code?: string
21792
24724
  /**
@@ -21811,7 +24743,7 @@ export type GetArtifactVersionErrors = {
21811
24743
  404: {
21812
24744
  error: string
21813
24745
  /**
21814
- * 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.
24746
+ * 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.
21815
24747
  */
21816
24748
  code?: string
21817
24749
  /**
@@ -21836,7 +24768,7 @@ export type GetArtifactVersionErrors = {
21836
24768
  501: {
21837
24769
  error: string
21838
24770
  /**
21839
- * 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.
24771
+ * 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.
21840
24772
  */
21841
24773
  code?: string
21842
24774
  /**
@@ -21898,6 +24830,33 @@ export type GetArtifactVersionResponses = {
21898
24830
  text: string
21899
24831
  slug: string
21900
24832
  }>
24833
+ /**
24834
+ * html for a designed document, document.html with its own stylesheets
24835
+ */
24836
+ format?: "html"
24837
+ /**
24838
+ * The sheet a designed document's @page rule sets, in CSS pixels: its size and margins
24839
+ */
24840
+ paper?: {
24841
+ width: number
24842
+ height: number
24843
+ margin: {
24844
+ top: number
24845
+ right: number
24846
+ bottom: number
24847
+ left: number
24848
+ }
24849
+ }
24850
+ /**
24851
+ * 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
24852
+ */
24853
+ holder?: {
24854
+ objectTypeId: string
24855
+ /**
24856
+ * The holder's links its fields read through
24857
+ */
24858
+ links: Array<string>
24859
+ }
21901
24860
  }
21902
24861
  | {
21903
24862
  kind: "sheet"
@@ -22000,12 +24959,221 @@ export type GetArtifactVersionResponses = {
22000
24959
  boardPreviews?: {
22001
24960
  [key: string]: "ready" | "pending" | "none"
22002
24961
  }
24962
+ /**
24963
+ * 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
24964
+ */
24965
+ printable?: boolean
22003
24966
  }
22004
24967
  }
22005
24968
 
22006
24969
  export type GetArtifactVersionResponse =
22007
24970
  GetArtifactVersionResponses[keyof GetArtifactVersionResponses]
22008
24971
 
24972
+ export type GetArtifactPdfData = {
24973
+ body?: never
24974
+ path: {
24975
+ artifactId: string
24976
+ /**
24977
+ * A version number, or "latest"
24978
+ */
24979
+ version: string
24980
+ }
24981
+ query?: {
24982
+ /**
24983
+ * 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
24984
+ */
24985
+ key?: string
24986
+ }
24987
+ url: "/api/artifacts/{artifactId}/versions/{version}/pdf"
24988
+ }
24989
+
24990
+ export type GetArtifactPdfErrors = {
24991
+ /**
24992
+ * Response for status 403
24993
+ */
24994
+ 403: ArtifactErrorResponse
24995
+ /**
24996
+ * Response for status 404
24997
+ */
24998
+ 404: ArtifactErrorResponse
24999
+ }
25000
+
25001
+ export type GetArtifactPdfError = GetArtifactPdfErrors[keyof GetArtifactPdfErrors]
25002
+
25003
+ export type GetArtifactPdfResponses = {
25004
+ /**
25005
+ * The PDF
25006
+ */
25007
+ 200: Blob | File
25008
+ }
25009
+
25010
+ export type GetArtifactPdfResponse = GetArtifactPdfResponses[keyof GetArtifactPdfResponses]
25011
+
25012
+ export type PrintArtifactPdfData = {
25013
+ body?: never
25014
+ path: {
25015
+ artifactId: string
25016
+ /**
25017
+ * A version number, or "latest"
25018
+ */
25019
+ version: string
25020
+ }
25021
+ query?: {
25022
+ /**
25023
+ * true asks again for a PDF that could not be printed, instead of hearing why
25024
+ */
25025
+ retry?: "true" | "false"
25026
+ /**
25027
+ * 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
25028
+ */
25029
+ key?: string
25030
+ }
25031
+ url: "/api/artifacts/{artifactId}/versions/{version}/pdf"
25032
+ }
25033
+
25034
+ export type PrintArtifactPdfErrors = {
25035
+ /**
25036
+ * Response for status 400
25037
+ */
25038
+ 400: {
25039
+ error: string
25040
+ /**
25041
+ * 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.
25042
+ */
25043
+ code?: string
25044
+ /**
25045
+ * With artifact_moved: the artifact's latest version, its revision, who last wrote it, and who created it once it is frozen
25046
+ */
25047
+ latest?: {
25048
+ version: number
25049
+ revision: number
25050
+ author: {
25051
+ type: "user" | "serviceAccount" | "system"
25052
+ id: string
25053
+ }
25054
+ frozenBy?: {
25055
+ type: "user" | "serviceAccount" | "system"
25056
+ id: string
25057
+ }
25058
+ }
25059
+ }
25060
+ /**
25061
+ * Response for status 403
25062
+ */
25063
+ 403: {
25064
+ error: string
25065
+ /**
25066
+ * 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.
25067
+ */
25068
+ code?: string
25069
+ /**
25070
+ * With artifact_moved: the artifact's latest version, its revision, who last wrote it, and who created it once it is frozen
25071
+ */
25072
+ latest?: {
25073
+ version: number
25074
+ revision: number
25075
+ author: {
25076
+ type: "user" | "serviceAccount" | "system"
25077
+ id: string
25078
+ }
25079
+ frozenBy?: {
25080
+ type: "user" | "serviceAccount" | "system"
25081
+ id: string
25082
+ }
25083
+ }
25084
+ }
25085
+ /**
25086
+ * Response for status 404
25087
+ */
25088
+ 404: {
25089
+ error: string
25090
+ /**
25091
+ * 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.
25092
+ */
25093
+ code?: string
25094
+ /**
25095
+ * With artifact_moved: the artifact's latest version, its revision, who last wrote it, and who created it once it is frozen
25096
+ */
25097
+ latest?: {
25098
+ version: number
25099
+ revision: number
25100
+ author: {
25101
+ type: "user" | "serviceAccount" | "system"
25102
+ id: string
25103
+ }
25104
+ frozenBy?: {
25105
+ type: "user" | "serviceAccount" | "system"
25106
+ id: string
25107
+ }
25108
+ }
25109
+ }
25110
+ /**
25111
+ * Response for status 501
25112
+ */
25113
+ 501: {
25114
+ error: string
25115
+ /**
25116
+ * 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.
25117
+ */
25118
+ code?: string
25119
+ /**
25120
+ * With artifact_moved: the artifact's latest version, its revision, who last wrote it, and who created it once it is frozen
25121
+ */
25122
+ latest?: {
25123
+ version: number
25124
+ revision: number
25125
+ author: {
25126
+ type: "user" | "serviceAccount" | "system"
25127
+ id: string
25128
+ }
25129
+ frozenBy?: {
25130
+ type: "user" | "serviceAccount" | "system"
25131
+ id: string
25132
+ }
25133
+ }
25134
+ }
25135
+ }
25136
+
25137
+ export type PrintArtifactPdfError = PrintArtifactPdfErrors[keyof PrintArtifactPdfErrors]
25138
+
25139
+ export type PrintArtifactPdfResponses = {
25140
+ /**
25141
+ * Response for status 200
25142
+ */
25143
+ 200:
25144
+ | {
25145
+ status: "ready"
25146
+ /**
25147
+ * How many pages it printed on
25148
+ */
25149
+ pages: number
25150
+ /**
25151
+ * 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
25152
+ */
25153
+ key?: string
25154
+ }
25155
+ | {
25156
+ status: "printing"
25157
+ /**
25158
+ * 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
25159
+ */
25160
+ key?: string
25161
+ }
25162
+ | {
25163
+ status: "failed"
25164
+ /**
25165
+ * Why it could not be printed
25166
+ */
25167
+ reason: string
25168
+ /**
25169
+ * 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
25170
+ */
25171
+ key?: string
25172
+ }
25173
+ }
25174
+
25175
+ export type PrintArtifactPdfResponse = PrintArtifactPdfResponses[keyof PrintArtifactPdfResponses]
25176
+
22009
25177
  export type GetArtifactBoardPreviewData = {
22010
25178
  body?: never
22011
25179
  path: {
@@ -22957,6 +26125,11 @@ export type GetObjectLinkLineageResponses = {
22957
26125
  indexingId: string
22958
26126
  }
22959
26127
  }
26128
+ | {
26129
+ type: "script"
26130
+ runId: string
26131
+ path: string
26132
+ }
22960
26133
  /**
22961
26134
  * Absent for a direct write, and for an Action run the caller cannot view.
22962
26135
  */
@@ -23011,6 +26184,11 @@ export type GetObjectLinkLineageResponses = {
23011
26184
  indexingId: string
23012
26185
  }
23013
26186
  }
26187
+ | {
26188
+ type: "script"
26189
+ runId: string
26190
+ path: string
26191
+ }
23014
26192
  }
23015
26193
  | {
23016
26194
  kind: "identity"
@@ -23199,6 +26377,7 @@ export type ListEventsData = {
23199
26377
  | "rules"
23200
26378
  | "users"
23201
26379
  | "artifacts"
26380
+ | "connectors"
23202
26381
  type?:
23203
26382
  | "object.created"
23204
26383
  | "object.updated"
@@ -23235,6 +26414,8 @@ export type ListEventsData = {
23235
26414
  | "user.profile.updated"
23236
26415
  | "artifact.updated"
23237
26416
  | "artifact.commented"
26417
+ | "connector.connection.connected"
26418
+ | "connector.connection.disconnected"
23238
26419
  afterCursor?: string
23239
26420
  limit?: string
23240
26421
  }
@@ -23346,6 +26527,11 @@ export type ListEventsResponses = {
23346
26527
  indexingId: string
23347
26528
  }
23348
26529
  }
26530
+ | {
26531
+ type: "script"
26532
+ runId: string
26533
+ path: string
26534
+ }
23349
26535
  commitId: string
23350
26536
  commitOrdinal: number
23351
26537
  type: "object.created"
@@ -23513,6 +26699,11 @@ export type ListEventsResponses = {
23513
26699
  indexingId: string
23514
26700
  }
23515
26701
  }
26702
+ | {
26703
+ type: "script"
26704
+ runId: string
26705
+ path: string
26706
+ }
23516
26707
  commitId: string
23517
26708
  commitOrdinal: number
23518
26709
  type: "object.updated"
@@ -23680,6 +26871,11 @@ export type ListEventsResponses = {
23680
26871
  indexingId: string
23681
26872
  }
23682
26873
  }
26874
+ | {
26875
+ type: "script"
26876
+ runId: string
26877
+ path: string
26878
+ }
23683
26879
  commitId: string
23684
26880
  commitOrdinal: number
23685
26881
  type: "object.deleted"
@@ -23836,6 +27032,11 @@ export type ListEventsResponses = {
23836
27032
  indexingId: string
23837
27033
  }
23838
27034
  }
27035
+ | {
27036
+ type: "script"
27037
+ runId: string
27038
+ path: string
27039
+ }
23839
27040
  commitId: string
23840
27041
  commitOrdinal: number
23841
27042
  type: "telemetry.appended"
@@ -23941,6 +27142,11 @@ export type ListEventsResponses = {
23941
27142
  indexingId: string
23942
27143
  }
23943
27144
  }
27145
+ | {
27146
+ type: "script"
27147
+ runId: string
27148
+ path: string
27149
+ }
23944
27150
  commitId: string
23945
27151
  commitOrdinal: number
23946
27152
  type: "link.created"
@@ -24106,6 +27312,11 @@ export type ListEventsResponses = {
24106
27312
  indexingId: string
24107
27313
  }
24108
27314
  }
27315
+ | {
27316
+ type: "script"
27317
+ runId: string
27318
+ path: string
27319
+ }
24109
27320
  commitId: string
24110
27321
  commitOrdinal: number
24111
27322
  type: "link.updated"
@@ -24271,6 +27482,11 @@ export type ListEventsResponses = {
24271
27482
  indexingId: string
24272
27483
  }
24273
27484
  }
27485
+ | {
27486
+ type: "script"
27487
+ runId: string
27488
+ path: string
27489
+ }
24274
27490
  commitId: string
24275
27491
  commitOrdinal: number
24276
27492
  type: "link.deleted"
@@ -24427,6 +27643,8 @@ export type ListEventsResponses = {
24427
27643
  | "user.profile.updated"
24428
27644
  | "artifact.updated"
24429
27645
  | "artifact.commented"
27646
+ | "connector.connection.connected"
27647
+ | "connector.connection.disconnected"
24430
27648
  topic:
24431
27649
  | "objects"
24432
27650
  | "telemetry"
@@ -24439,6 +27657,7 @@ export type ListEventsResponses = {
24439
27657
  | "rules"
24440
27658
  | "users"
24441
27659
  | "artifacts"
27660
+ | "connectors"
24442
27661
  payload: {
24443
27662
  [key: string]: unknown
24444
27663
  }
@@ -25191,6 +28410,7 @@ export type ListProjectionsResponses = {
25191
28410
  strategy: "mostRecent"
25192
28411
  sourceTimestamp: string
25193
28412
  }
28413
+ missing?: "remove"
25194
28414
  latestRun:
25195
28415
  | {
25196
28416
  id: string
@@ -25795,6 +29015,7 @@ export type GetProjectionResponses = {
25795
29015
  strategy: "mostRecent"
25796
29016
  sourceTimestamp: string
25797
29017
  }
29018
+ missing?: "remove"
25798
29019
  latestRun:
25799
29020
  | {
25800
29021
  id: string