@sixb/client 0.2.3 → 0.2.5

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 (36) hide show
  1. package/dist/agent-streams.d.ts +1 -1
  2. package/dist/agent-streams.d.ts.map +1 -1
  3. package/dist/browser.js +1 -1
  4. package/dist/{chunk-zerhr00d.js → chunk-60fdvjxa.js} +61 -2
  5. package/dist/chunk-60fdvjxa.js.map +10 -0
  6. package/dist/{chunk-seeyb9k9.js → chunk-pn4b10k4.js} +1 -1
  7. package/dist/{chunk-bgpzb1fn.js → chunk-tm588tr7.js} +1 -1
  8. package/dist/{chunk-90q7wa43.js → chunk-zta9jf24.js} +1 -1
  9. package/dist/{chunk-90q7wa43.js.map → chunk-zta9jf24.js.map} +2 -2
  10. package/dist/connectors/queries.d.ts.map +1 -1
  11. package/dist/generated/@tanstack/react-query.gen.d.ts +1620 -392
  12. package/dist/generated/@tanstack/react-query.gen.d.ts.map +1 -1
  13. package/dist/generated/index.d.ts +2 -2
  14. package/dist/generated/index.d.ts.map +1 -1
  15. package/dist/generated/sdk.gen.d.ts +32 -4
  16. package/dist/generated/sdk.gen.d.ts.map +1 -1
  17. package/dist/generated/types.gen.d.ts +1589 -220
  18. package/dist/generated/types.gen.d.ts.map +1 -1
  19. package/dist/hooks.js +97 -5
  20. package/dist/hooks.js.map +3 -3
  21. package/dist/index.js +17 -5
  22. package/dist/index.js.map +1 -1
  23. package/dist/logs.js +2 -2
  24. package/dist/models.js +15 -3
  25. package/dist/models.js.map +1 -1
  26. package/dist/query.js +2 -2
  27. package/dist/users-hooks.d.ts.map +1 -1
  28. package/package.json +2 -2
  29. package/src/agent-streams.ts +1 -0
  30. package/src/generated/@tanstack/react-query.gen.ts +188 -3
  31. package/src/generated/index.ts +35 -0
  32. package/src/generated/sdk.gen.ts +142 -3
  33. package/src/generated/types.gen.ts +2167 -272
  34. package/dist/chunk-zerhr00d.js.map +0 -10
  35. /package/dist/{chunk-seeyb9k9.js.map → chunk-pn4b10k4.js.map} +0 -0
  36. /package/dist/{chunk-bgpzb1fn.js.map → chunk-tm588tr7.js.map} +0 -0
@@ -88,7 +88,7 @@ export type ObjectQueryFacetsResponse = {
88
88
  export type ArtifactErrorResponse = {
89
89
  error: string;
90
90
  /**
91
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
91
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
92
92
  */
93
93
  code?: string;
94
94
  /**
@@ -9476,6 +9476,10 @@ export type GetObjectLineageResponses = {
9476
9476
  type: "ontology.indexVectors";
9477
9477
  indexingId: string;
9478
9478
  };
9479
+ } | {
9480
+ type: "script";
9481
+ runId: string;
9482
+ path: string;
9479
9483
  };
9480
9484
  /**
9481
9485
  * Absent for a direct write, and for an Action run the caller cannot view.
@@ -9516,6 +9520,10 @@ export type GetObjectLineageResponses = {
9516
9520
  type: "ontology.indexVectors";
9517
9521
  indexingId: string;
9518
9522
  };
9523
+ } | {
9524
+ type: "script";
9525
+ runId: string;
9526
+ path: string;
9519
9527
  };
9520
9528
  } | {
9521
9529
  kind: "identity";
@@ -11213,6 +11221,119 @@ export type RecreateAgentThreadSandboxResponses = {
11213
11221
  };
11214
11222
  };
11215
11223
  export type RecreateAgentThreadSandboxResponse = RecreateAgentThreadSandboxResponses[keyof RecreateAgentThreadSandboxResponses];
11224
+ export type RestoreAgentThreadSandboxData = {
11225
+ body: {
11226
+ expectedSandboxName: string;
11227
+ };
11228
+ path: {
11229
+ threadId: string;
11230
+ };
11231
+ query?: never;
11232
+ url: "/api/agent-threads/{threadId}/sandbox/restore";
11233
+ };
11234
+ export type RestoreAgentThreadSandboxErrors = {
11235
+ /**
11236
+ * Response for status 400
11237
+ */
11238
+ 400: {
11239
+ error: string;
11240
+ };
11241
+ /**
11242
+ * Response for status 403
11243
+ */
11244
+ 403: {
11245
+ error: string;
11246
+ code?: string;
11247
+ };
11248
+ /**
11249
+ * Response for status 404
11250
+ */
11251
+ 404: {
11252
+ error: string;
11253
+ };
11254
+ /**
11255
+ * Response for status 409
11256
+ */
11257
+ 409: {
11258
+ error: string;
11259
+ code?: string;
11260
+ };
11261
+ };
11262
+ export type RestoreAgentThreadSandboxError = RestoreAgentThreadSandboxErrors[keyof RestoreAgentThreadSandboxErrors];
11263
+ export type RestoreAgentThreadSandboxResponses = {
11264
+ /**
11265
+ * Response for status 200
11266
+ */
11267
+ 200: {
11268
+ sandboxState?: {
11269
+ name: string;
11270
+ status: "new" | "busy" | "ready" | "blocked" | "unavailable";
11271
+ initialized: boolean;
11272
+ };
11273
+ id: string;
11274
+ projectId: string;
11275
+ kind: "conversation" | "subagent";
11276
+ parent?: {
11277
+ threadId: string;
11278
+ spawnedBy: string;
11279
+ key: string;
11280
+ };
11281
+ ownerPrincipal: {
11282
+ type: "user" | "serviceAccount" | "system";
11283
+ id: string;
11284
+ };
11285
+ owner: {
11286
+ type: "user" | "serviceAccount" | "system";
11287
+ id: string;
11288
+ displayName?: string;
11289
+ };
11290
+ participants: Array<{
11291
+ principal: {
11292
+ type: "user";
11293
+ id: string;
11294
+ displayName?: string;
11295
+ };
11296
+ addedAt: string;
11297
+ addedBy: {
11298
+ type: "user" | "serviceAccount" | "system";
11299
+ id: string;
11300
+ };
11301
+ }>;
11302
+ title?: string;
11303
+ sandboxParams?: {
11304
+ [key: string]: string | number | boolean | Array<unknown> | {
11305
+ [key: string]: unknown;
11306
+ } | null;
11307
+ };
11308
+ runsOn?: "computer";
11309
+ computer?: {
11310
+ id: string;
11311
+ name: string;
11312
+ folder: string;
11313
+ online: boolean;
11314
+ };
11315
+ backgroundCommands?: Array<{
11316
+ threadId: string;
11317
+ id: string;
11318
+ command: string;
11319
+ status: "running" | "exited" | "stopped";
11320
+ exitCode?: number;
11321
+ startedAt: string;
11322
+ endedAt?: string;
11323
+ stopping?: boolean;
11324
+ }>;
11325
+ movedAt?: string;
11326
+ status: "active" | "archived";
11327
+ activeRunId: string | null;
11328
+ lastMessageAt?: string;
11329
+ messageCount: number;
11330
+ createdAt: string;
11331
+ updatedAt: string;
11332
+ approvalMode?: "manual" | "accept-edits" | "auto";
11333
+ approvalModeSource?: "thread" | "default" | "fallback" | "run";
11334
+ };
11335
+ };
11336
+ export type RestoreAgentThreadSandboxResponse = RestoreAgentThreadSandboxResponses[keyof RestoreAgentThreadSandboxResponses];
11216
11337
  export type ListAgentThreadMessagesData = {
11217
11338
  body?: never;
11218
11339
  path: {
@@ -11546,6 +11667,7 @@ export type PostAgentThreadMessageData = {
11546
11667
  origin: "ambient" | "explicit";
11547
11668
  }>;
11548
11669
  messageId?: string;
11670
+ delivery?: "auto" | "steer" | "queue" | "send_now";
11549
11671
  };
11550
11672
  path: {
11551
11673
  threadId: string;
@@ -11610,7 +11732,7 @@ export type PostAgentThreadMessageResponses = {
11610
11732
  * Response for status 202
11611
11733
  */
11612
11734
  202: {
11613
- run: {
11735
+ run?: {
11614
11736
  id: string;
11615
11737
  projectId: string;
11616
11738
  kind: "conversation" | "subagent";
@@ -11644,157 +11766,992 @@ export type PostAgentThreadMessageResponses = {
11644
11766
  textOutputTokens?: number;
11645
11767
  reasoningOutputTokens?: number;
11646
11768
  /**
11647
- * Audio content duration in milliseconds; not billed duration.
11769
+ * Audio content duration in milliseconds; not billed duration.
11770
+ */
11771
+ audioDurationMs?: number;
11772
+ /**
11773
+ * Output tokens that encode generated images, within outputTokens.
11774
+ */
11775
+ imageOutputTokens?: number;
11776
+ /**
11777
+ * Output tokens that encode generated audio, within outputTokens.
11778
+ */
11779
+ audioOutputTokens?: number;
11780
+ /**
11781
+ * Images the call returned.
11782
+ */
11783
+ outputImages?: number;
11784
+ /**
11785
+ * Input characters, counted by the provider's own billing rule.
11786
+ */
11787
+ inputCharacters?: number;
11788
+ reportingStatus: "complete" | "partial" | "unavailable";
11789
+ };
11790
+ cost?: {
11791
+ amounts: Array<{
11792
+ currency: string;
11793
+ amountNanos: string;
11794
+ }>;
11795
+ ratedCallCount: number;
11796
+ unpriceableCallCount: number;
11797
+ unvaluedCallCount: number;
11798
+ };
11799
+ diagnostics?: Array<{
11800
+ code: "step_limit_reached" | "output_limit_reached";
11801
+ severity: "warning" | "error";
11802
+ scope: "run";
11803
+ message: string;
11804
+ }>;
11805
+ error?: {
11806
+ code: "internal.unexpected" | "runtime.cancelled" | "agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
11807
+ message: string;
11808
+ retryable: boolean;
11809
+ at: string;
11810
+ /**
11811
+ * Any JSON-compatible value.
11812
+ */
11813
+ details?: string | number | boolean | Array<unknown> | {
11814
+ [key: string]: unknown;
11815
+ } | null;
11816
+ httpStatus?: number;
11817
+ redacted?: true;
11818
+ truncated?: true;
11819
+ };
11820
+ attempt: number;
11821
+ streamId: string;
11822
+ createdAt: string;
11823
+ startedAt?: string;
11824
+ completedAt?: string;
11825
+ };
11826
+ item?: {
11827
+ id: string;
11828
+ projectId: string;
11829
+ threadId: string;
11830
+ messageId: string;
11831
+ seq: number;
11832
+ authorPrincipal: {
11833
+ type: "user" | "serviceAccount" | "system";
11834
+ id: string;
11835
+ };
11836
+ mode: "steer" | "queue";
11837
+ parts: Array<{
11838
+ type: "text";
11839
+ text: string;
11840
+ /**
11841
+ * Any JSON-compatible value.
11842
+ */
11843
+ providerMetadata?: string | number | boolean | Array<unknown> | {
11844
+ [key: string]: unknown;
11845
+ } | null;
11846
+ } | {
11847
+ type: "continuation";
11848
+ } | {
11849
+ type: "approval-outcome";
11850
+ approvalId: string;
11851
+ status: "approved" | "denied" | "cancelled" | "superseded" | "expired";
11852
+ call: {
11853
+ kind: "action";
11854
+ actionId: string;
11855
+ subject: {
11856
+ kind: "none";
11857
+ } | {
11858
+ kind: "object";
11859
+ objectTypeId: string;
11860
+ primaryId: string;
11861
+ };
11862
+ } | {
11863
+ kind: "workflow";
11864
+ workflowId: string;
11865
+ };
11866
+ outcome?: {
11867
+ kind: "action-run";
11868
+ runId: string;
11869
+ status: "succeeded" | "failed";
11870
+ error?: {
11871
+ code: "internal.unexpected" | "runtime.cancelled" | "action.phase_failed" | "action.read_conflict" | "action.rejected" | "action.timeout" | "object.unique_violation";
11872
+ message: string;
11873
+ retryable: boolean;
11874
+ at: string;
11875
+ details: {
11876
+ actionId: string;
11877
+ runId: string;
11878
+ phase: "validation" | "writeback" | "edits" | "commit" | "effects";
11879
+ };
11880
+ httpStatus?: number;
11881
+ redacted?: true;
11882
+ truncated?: true;
11883
+ };
11884
+ } | {
11885
+ kind: "workflow-run";
11886
+ runId: string;
11887
+ queuedAt: string;
11888
+ } | {
11889
+ kind: "error";
11890
+ error: {
11891
+ code: "action.phase_failed" | "action.read_conflict" | "action.rejected" | "action.run_in_progress" | "action.timeout" | "agent.approval_authority_lost" | "agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "connector.adapter_invalid" | "connector.authorization_invalid" | "connector.authorization_required" | "connector.configuration_invalid" | "connector.credentials_unavailable" | "connector.not_found" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.provider_failed" | "connector.provider_unavailable" | "connector.replacement_required" | "connector.revocation_pending" | "dataset.change_refused" | "dataset.not_found" | "dataset.version_incompatible" | "dataset.version_not_found" | "dataset.version_read_inconsistent" | "event.delivery_failed" | "internal.unexpected" | "queue.enqueue_failed" | "object.not_found" | "object.unique_violation" | "pipeline.step_failed" | "projection.definition_invalid" | "projection.execution_failed" | "projection.not_found" | "projection.run_already_terminal" | "projection.run_identity_mismatch" | "runtime.cancelled" | "runtime.stopping" | "vector.model_unavailable" | "vector.response_invalid" | "vector.outcome_unknown" | "storage.unavailable" | "sync.execution_failed" | "webhook.delivery_failed" | "webhook.delivery_rejected" | "workflow.node_failed";
11892
+ message: string;
11893
+ retryable: boolean;
11894
+ at: string;
11895
+ /**
11896
+ * Any JSON-compatible value.
11897
+ */
11898
+ details?: string | number | boolean | Array<unknown> | {
11899
+ [key: string]: unknown;
11900
+ } | null;
11901
+ httpStatus?: number;
11902
+ redacted?: true;
11903
+ truncated?: true;
11904
+ };
11905
+ };
11906
+ caller?: {
11907
+ runId: string;
11908
+ key: string;
11909
+ continues?: true;
11910
+ };
11911
+ } | {
11912
+ type: "reasoning";
11913
+ text: string;
11914
+ /**
11915
+ * Any JSON-compatible value.
11916
+ */
11917
+ providerMetadata?: string | number | boolean | Array<unknown> | {
11918
+ [key: string]: unknown;
11919
+ } | null;
11920
+ } | {
11921
+ type: "step-start";
11922
+ } | {
11923
+ type: "file";
11924
+ fileRef: {
11925
+ blobId: string;
11926
+ digest: string;
11927
+ sizeBytes: number;
11928
+ fileName?: string;
11929
+ mediaType?: string;
11930
+ logicalPath?: string;
11931
+ };
11932
+ /**
11933
+ * Any JSON-compatible value.
11934
+ */
11935
+ providerMetadata?: string | number | boolean | Array<unknown> | {
11936
+ [key: string]: unknown;
11937
+ } | null;
11938
+ } | {
11939
+ type: "provider-state";
11940
+ providerId: string;
11941
+ /**
11942
+ * Any JSON-compatible value.
11943
+ */
11944
+ data: string | number | boolean | Array<unknown> | {
11945
+ [key: string]: unknown;
11946
+ } | null;
11947
+ } | {
11948
+ context: {
11949
+ kind: "object";
11950
+ ref: {
11951
+ objectTypeId: string;
11952
+ primaryId: string;
11953
+ };
11954
+ /**
11955
+ * Shown in the chat instead of the object's title. Never sent to the model.
11956
+ */
11957
+ label?: string;
11958
+ } | {
11959
+ kind: "app-state";
11960
+ id: string;
11961
+ label: string;
11962
+ description: string;
11963
+ /**
11964
+ * Any JSON-compatible value.
11965
+ */
11966
+ value: string | number | boolean | Array<unknown> | {
11967
+ [key: string]: unknown;
11968
+ } | null;
11969
+ };
11970
+ origin: "ambient" | "explicit";
11971
+ type: "context";
11972
+ } | {
11973
+ type: "tool-call";
11974
+ toolCallId: string;
11975
+ toolName: string;
11976
+ dynamic?: boolean;
11977
+ providerExecuted?: boolean;
11978
+ /**
11979
+ * Any JSON-compatible value.
11980
+ */
11981
+ input: string | number | boolean | Array<unknown> | {
11982
+ [key: string]: unknown;
11983
+ } | null;
11984
+ /**
11985
+ * Any JSON-compatible value.
11986
+ */
11987
+ providerMetadata?: string | number | boolean | Array<unknown> | {
11988
+ [key: string]: unknown;
11989
+ } | null;
11990
+ state: "output-available";
11991
+ /**
11992
+ * Any JSON-compatible value.
11993
+ */
11994
+ output: string | number | boolean | Array<unknown> | {
11995
+ [key: string]: unknown;
11996
+ } | null;
11997
+ outputFile?: {
11998
+ fileRef: {
11999
+ blobId: string;
12000
+ digest: string;
12001
+ sizeBytes: number;
12002
+ fileName?: string;
12003
+ mediaType?: string;
12004
+ logicalPath?: string;
12005
+ };
12006
+ path: string;
12007
+ };
12008
+ } | {
12009
+ type: "tool-call";
12010
+ toolCallId: string;
12011
+ toolName: string;
12012
+ dynamic?: boolean;
12013
+ providerExecuted?: boolean;
12014
+ /**
12015
+ * Any JSON-compatible value.
12016
+ */
12017
+ input: string | number | boolean | Array<unknown> | {
12018
+ [key: string]: unknown;
12019
+ } | null;
12020
+ /**
12021
+ * Any JSON-compatible value.
12022
+ */
12023
+ providerMetadata?: string | number | boolean | Array<unknown> | {
12024
+ [key: string]: unknown;
12025
+ } | null;
12026
+ state: "output-error";
12027
+ errorText: string;
12028
+ } | {
12029
+ type: "mail";
12030
+ id: string;
12031
+ from: "parent";
12032
+ kind: "message" | "answer";
12033
+ inReplyTo?: string;
12034
+ text: string;
12035
+ afterAnswer?: true;
12036
+ }>;
12037
+ spec?: {
12038
+ model?: {
12039
+ provider: string;
12040
+ modelId: string;
12041
+ };
12042
+ reasoning?: "provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
12043
+ budgetTokens: number;
12044
+ };
12045
+ approvalMode?: "manual" | "accept-edits" | "auto";
12046
+ };
12047
+ timeZone?: string;
12048
+ locale?: string;
12049
+ immediate?: boolean;
12050
+ createdAt: string;
12051
+ updatedAt: string;
12052
+ };
12053
+ };
12054
+ };
12055
+ export type PostAgentThreadMessageResponse = PostAgentThreadMessageResponses[keyof PostAgentThreadMessageResponses];
12056
+ export type GetAgentMessageFileContentData = {
12057
+ body?: never;
12058
+ path: {
12059
+ threadId: string;
12060
+ messageId: string;
12061
+ };
12062
+ query: {
12063
+ path: string;
12064
+ disposition?: "inline" | "attachment";
12065
+ /**
12066
+ * Client cache key; the route still resolves the current file
12067
+ */
12068
+ v?: string;
12069
+ };
12070
+ url: "/api/agent-threads/{threadId}/messages/{messageId}/files/content";
12071
+ };
12072
+ export type GetAgentMessageFileContentErrors = {
12073
+ /**
12074
+ * Response for status 400
12075
+ */
12076
+ 400: ErrorResponse;
12077
+ /**
12078
+ * Response for status 404
12079
+ */
12080
+ 404: ErrorResponse;
12081
+ /**
12082
+ * Requested byte range is not satisfiable
12083
+ */
12084
+ 416: unknown;
12085
+ /**
12086
+ * The storage role backing this content is not configured
12087
+ */
12088
+ 501: ErrorResponse;
12089
+ };
12090
+ export type GetAgentMessageFileContentError = GetAgentMessageFileContentErrors[keyof GetAgentMessageFileContentErrors];
12091
+ export type GetAgentMessageFileContentResponses = {
12092
+ /**
12093
+ * File content
12094
+ */
12095
+ 200: Blob | File;
12096
+ /**
12097
+ * Partial file content
12098
+ */
12099
+ 206: Blob | File;
12100
+ };
12101
+ export type GetAgentMessageFileContentResponse = GetAgentMessageFileContentResponses[keyof GetAgentMessageFileContentResponses];
12102
+ export type HeadAgentMessageFileContentData = {
12103
+ body?: never;
12104
+ path: {
12105
+ threadId: string;
12106
+ messageId: string;
12107
+ };
12108
+ query: {
12109
+ path: string;
12110
+ disposition?: "inline" | "attachment";
12111
+ /**
12112
+ * Client cache key; the route still resolves the current file
12113
+ */
12114
+ v?: string;
12115
+ };
12116
+ url: "/api/agent-threads/{threadId}/messages/{messageId}/files/content";
12117
+ };
12118
+ export type HeadAgentMessageFileContentErrors = {
12119
+ /**
12120
+ * Response for status 400
12121
+ */
12122
+ 400: ErrorResponse;
12123
+ /**
12124
+ * Response for status 404
12125
+ */
12126
+ 404: ErrorResponse;
12127
+ /**
12128
+ * Requested byte range is not satisfiable
12129
+ */
12130
+ 416: unknown;
12131
+ /**
12132
+ * The storage role backing this content is not configured
12133
+ */
12134
+ 501: ErrorResponse;
12135
+ };
12136
+ export type HeadAgentMessageFileContentError = HeadAgentMessageFileContentErrors[keyof HeadAgentMessageFileContentErrors];
12137
+ export type HeadAgentMessageFileContentResponses = {
12138
+ /**
12139
+ * File content headers
12140
+ */
12141
+ 200: unknown;
12142
+ /**
12143
+ * Partial file content headers
12144
+ */
12145
+ 206: unknown;
12146
+ };
12147
+ export type ListAgentThreadInboxData = {
12148
+ body?: never;
12149
+ path: {
12150
+ threadId: string;
12151
+ };
12152
+ query?: never;
12153
+ url: "/api/agent-threads/{threadId}/inbox";
12154
+ };
12155
+ export type ListAgentThreadInboxErrors = {
12156
+ /**
12157
+ * Response for status 400
12158
+ */
12159
+ 400: {
12160
+ error: string;
12161
+ code?: string;
12162
+ };
12163
+ /**
12164
+ * Response for status 404
12165
+ */
12166
+ 404: {
12167
+ error: string;
12168
+ };
12169
+ /**
12170
+ * Response for status 501
12171
+ */
12172
+ 501: {
12173
+ error: string;
12174
+ };
12175
+ };
12176
+ export type ListAgentThreadInboxError = ListAgentThreadInboxErrors[keyof ListAgentThreadInboxErrors];
12177
+ export type ListAgentThreadInboxResponses = {
12178
+ /**
12179
+ * Response for status 200
12180
+ */
12181
+ 200: {
12182
+ items: Array<{
12183
+ id: string;
12184
+ projectId: string;
12185
+ threadId: string;
12186
+ messageId: string;
12187
+ seq: number;
12188
+ authorPrincipal: {
12189
+ type: "user" | "serviceAccount" | "system";
12190
+ id: string;
12191
+ };
12192
+ mode: "steer" | "queue";
12193
+ parts: Array<{
12194
+ type: "text";
12195
+ text: string;
12196
+ /**
12197
+ * Any JSON-compatible value.
12198
+ */
12199
+ providerMetadata?: string | number | boolean | Array<unknown> | {
12200
+ [key: string]: unknown;
12201
+ } | null;
12202
+ } | {
12203
+ type: "continuation";
12204
+ } | {
12205
+ type: "approval-outcome";
12206
+ approvalId: string;
12207
+ status: "approved" | "denied" | "cancelled" | "superseded" | "expired";
12208
+ call: {
12209
+ kind: "action";
12210
+ actionId: string;
12211
+ subject: {
12212
+ kind: "none";
12213
+ } | {
12214
+ kind: "object";
12215
+ objectTypeId: string;
12216
+ primaryId: string;
12217
+ };
12218
+ } | {
12219
+ kind: "workflow";
12220
+ workflowId: string;
12221
+ };
12222
+ outcome?: {
12223
+ kind: "action-run";
12224
+ runId: string;
12225
+ status: "succeeded" | "failed";
12226
+ error?: {
12227
+ code: "internal.unexpected" | "runtime.cancelled" | "action.phase_failed" | "action.read_conflict" | "action.rejected" | "action.timeout" | "object.unique_violation";
12228
+ message: string;
12229
+ retryable: boolean;
12230
+ at: string;
12231
+ details: {
12232
+ actionId: string;
12233
+ runId: string;
12234
+ phase: "validation" | "writeback" | "edits" | "commit" | "effects";
12235
+ };
12236
+ httpStatus?: number;
12237
+ redacted?: true;
12238
+ truncated?: true;
12239
+ };
12240
+ } | {
12241
+ kind: "workflow-run";
12242
+ runId: string;
12243
+ queuedAt: string;
12244
+ } | {
12245
+ kind: "error";
12246
+ error: {
12247
+ code: "action.phase_failed" | "action.read_conflict" | "action.rejected" | "action.run_in_progress" | "action.timeout" | "agent.approval_authority_lost" | "agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "connector.adapter_invalid" | "connector.authorization_invalid" | "connector.authorization_required" | "connector.configuration_invalid" | "connector.credentials_unavailable" | "connector.not_found" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.provider_failed" | "connector.provider_unavailable" | "connector.replacement_required" | "connector.revocation_pending" | "dataset.change_refused" | "dataset.not_found" | "dataset.version_incompatible" | "dataset.version_not_found" | "dataset.version_read_inconsistent" | "event.delivery_failed" | "internal.unexpected" | "queue.enqueue_failed" | "object.not_found" | "object.unique_violation" | "pipeline.step_failed" | "projection.definition_invalid" | "projection.execution_failed" | "projection.not_found" | "projection.run_already_terminal" | "projection.run_identity_mismatch" | "runtime.cancelled" | "runtime.stopping" | "vector.model_unavailable" | "vector.response_invalid" | "vector.outcome_unknown" | "storage.unavailable" | "sync.execution_failed" | "webhook.delivery_failed" | "webhook.delivery_rejected" | "workflow.node_failed";
12248
+ message: string;
12249
+ retryable: boolean;
12250
+ at: string;
12251
+ /**
12252
+ * Any JSON-compatible value.
12253
+ */
12254
+ details?: string | number | boolean | Array<unknown> | {
12255
+ [key: string]: unknown;
12256
+ } | null;
12257
+ httpStatus?: number;
12258
+ redacted?: true;
12259
+ truncated?: true;
12260
+ };
12261
+ };
12262
+ caller?: {
12263
+ runId: string;
12264
+ key: string;
12265
+ continues?: true;
12266
+ };
12267
+ } | {
12268
+ type: "reasoning";
12269
+ text: string;
12270
+ /**
12271
+ * Any JSON-compatible value.
12272
+ */
12273
+ providerMetadata?: string | number | boolean | Array<unknown> | {
12274
+ [key: string]: unknown;
12275
+ } | null;
12276
+ } | {
12277
+ type: "step-start";
12278
+ } | {
12279
+ type: "file";
12280
+ fileRef: {
12281
+ blobId: string;
12282
+ digest: string;
12283
+ sizeBytes: number;
12284
+ fileName?: string;
12285
+ mediaType?: string;
12286
+ logicalPath?: string;
12287
+ };
12288
+ /**
12289
+ * Any JSON-compatible value.
12290
+ */
12291
+ providerMetadata?: string | number | boolean | Array<unknown> | {
12292
+ [key: string]: unknown;
12293
+ } | null;
12294
+ } | {
12295
+ type: "provider-state";
12296
+ providerId: string;
12297
+ /**
12298
+ * Any JSON-compatible value.
12299
+ */
12300
+ data: string | number | boolean | Array<unknown> | {
12301
+ [key: string]: unknown;
12302
+ } | null;
12303
+ } | {
12304
+ context: {
12305
+ kind: "object";
12306
+ ref: {
12307
+ objectTypeId: string;
12308
+ primaryId: string;
12309
+ };
12310
+ /**
12311
+ * Shown in the chat instead of the object's title. Never sent to the model.
12312
+ */
12313
+ label?: string;
12314
+ } | {
12315
+ kind: "app-state";
12316
+ id: string;
12317
+ label: string;
12318
+ description: string;
12319
+ /**
12320
+ * Any JSON-compatible value.
12321
+ */
12322
+ value: string | number | boolean | Array<unknown> | {
12323
+ [key: string]: unknown;
12324
+ } | null;
12325
+ };
12326
+ origin: "ambient" | "explicit";
12327
+ type: "context";
12328
+ } | {
12329
+ type: "tool-call";
12330
+ toolCallId: string;
12331
+ toolName: string;
12332
+ dynamic?: boolean;
12333
+ providerExecuted?: boolean;
12334
+ /**
12335
+ * Any JSON-compatible value.
12336
+ */
12337
+ input: string | number | boolean | Array<unknown> | {
12338
+ [key: string]: unknown;
12339
+ } | null;
12340
+ /**
12341
+ * Any JSON-compatible value.
12342
+ */
12343
+ providerMetadata?: string | number | boolean | Array<unknown> | {
12344
+ [key: string]: unknown;
12345
+ } | null;
12346
+ state: "output-available";
12347
+ /**
12348
+ * Any JSON-compatible value.
12349
+ */
12350
+ output: string | number | boolean | Array<unknown> | {
12351
+ [key: string]: unknown;
12352
+ } | null;
12353
+ outputFile?: {
12354
+ fileRef: {
12355
+ blobId: string;
12356
+ digest: string;
12357
+ sizeBytes: number;
12358
+ fileName?: string;
12359
+ mediaType?: string;
12360
+ logicalPath?: string;
12361
+ };
12362
+ path: string;
12363
+ };
12364
+ } | {
12365
+ type: "tool-call";
12366
+ toolCallId: string;
12367
+ toolName: string;
12368
+ dynamic?: boolean;
12369
+ providerExecuted?: boolean;
12370
+ /**
12371
+ * Any JSON-compatible value.
12372
+ */
12373
+ input: string | number | boolean | Array<unknown> | {
12374
+ [key: string]: unknown;
12375
+ } | null;
12376
+ /**
12377
+ * Any JSON-compatible value.
12378
+ */
12379
+ providerMetadata?: string | number | boolean | Array<unknown> | {
12380
+ [key: string]: unknown;
12381
+ } | null;
12382
+ state: "output-error";
12383
+ errorText: string;
12384
+ } | {
12385
+ type: "mail";
12386
+ id: string;
12387
+ from: "parent";
12388
+ kind: "message" | "answer";
12389
+ inReplyTo?: string;
12390
+ text: string;
12391
+ afterAnswer?: true;
12392
+ }>;
12393
+ spec?: {
12394
+ model?: {
12395
+ provider: string;
12396
+ modelId: string;
12397
+ };
12398
+ reasoning?: "provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
12399
+ budgetTokens: number;
12400
+ };
12401
+ approvalMode?: "manual" | "accept-edits" | "auto";
12402
+ };
12403
+ timeZone?: string;
12404
+ locale?: string;
12405
+ immediate?: boolean;
12406
+ createdAt: string;
12407
+ updatedAt: string;
12408
+ }>;
12409
+ };
12410
+ };
12411
+ export type ListAgentThreadInboxResponse = ListAgentThreadInboxResponses[keyof ListAgentThreadInboxResponses];
12412
+ export type WithdrawAgentThreadInboxItemData = {
12413
+ body?: never;
12414
+ path: {
12415
+ threadId: string;
12416
+ itemId: string;
12417
+ };
12418
+ query?: never;
12419
+ url: "/api/agent-threads/{threadId}/inbox/{itemId}";
12420
+ };
12421
+ export type WithdrawAgentThreadInboxItemErrors = {
12422
+ /**
12423
+ * Response for status 400
12424
+ */
12425
+ 400: {
12426
+ error: string;
12427
+ code?: string;
12428
+ };
12429
+ /**
12430
+ * Response for status 403
12431
+ */
12432
+ 403: {
12433
+ error: string;
12434
+ code?: string;
12435
+ };
12436
+ /**
12437
+ * Response for status 404
12438
+ */
12439
+ 404: {
12440
+ error: string;
12441
+ };
12442
+ /**
12443
+ * Response for status 409
12444
+ */
12445
+ 409: {
12446
+ error: string;
12447
+ code?: string;
12448
+ };
12449
+ /**
12450
+ * Response for status 501
12451
+ */
12452
+ 501: {
12453
+ error: string;
12454
+ };
12455
+ };
12456
+ export type WithdrawAgentThreadInboxItemError = WithdrawAgentThreadInboxItemErrors[keyof WithdrawAgentThreadInboxItemErrors];
12457
+ export type WithdrawAgentThreadInboxItemResponses = {
12458
+ /**
12459
+ * Response for status 204
12460
+ */
12461
+ 204: unknown;
12462
+ };
12463
+ export type UpdateAgentThreadInboxItemData = {
12464
+ body: {
12465
+ text?: string;
12466
+ model?: {
12467
+ provider: string;
12468
+ modelId: string;
12469
+ };
12470
+ reasoning?: "provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
12471
+ budgetTokens: number;
12472
+ };
12473
+ approvalMode?: "manual" | "accept-edits" | "auto";
12474
+ delivery?: "steer" | "queue";
12475
+ immediate?: true;
12476
+ };
12477
+ path: {
12478
+ threadId: string;
12479
+ itemId: string;
12480
+ };
12481
+ query?: never;
12482
+ url: "/api/agent-threads/{threadId}/inbox/{itemId}";
12483
+ };
12484
+ export type UpdateAgentThreadInboxItemErrors = {
12485
+ /**
12486
+ * Response for status 400
12487
+ */
12488
+ 400: {
12489
+ error: string;
12490
+ code?: string;
12491
+ };
12492
+ /**
12493
+ * Response for status 403
12494
+ */
12495
+ 403: {
12496
+ error: string;
12497
+ code?: string;
12498
+ };
12499
+ /**
12500
+ * Response for status 404
12501
+ */
12502
+ 404: {
12503
+ error: string;
12504
+ };
12505
+ /**
12506
+ * Response for status 409
12507
+ */
12508
+ 409: {
12509
+ error: string;
12510
+ code?: string;
12511
+ };
12512
+ /**
12513
+ * Response for status 501
12514
+ */
12515
+ 501: {
12516
+ error: string;
12517
+ };
12518
+ };
12519
+ export type UpdateAgentThreadInboxItemError = UpdateAgentThreadInboxItemErrors[keyof UpdateAgentThreadInboxItemErrors];
12520
+ export type UpdateAgentThreadInboxItemResponses = {
12521
+ /**
12522
+ * Response for status 200
12523
+ */
12524
+ 200: {
12525
+ item: {
12526
+ id: string;
12527
+ projectId: string;
12528
+ threadId: string;
12529
+ messageId: string;
12530
+ seq: number;
12531
+ authorPrincipal: {
12532
+ type: "user" | "serviceAccount" | "system";
12533
+ id: string;
12534
+ };
12535
+ mode: "steer" | "queue";
12536
+ parts: Array<{
12537
+ type: "text";
12538
+ text: string;
12539
+ /**
12540
+ * Any JSON-compatible value.
12541
+ */
12542
+ providerMetadata?: string | number | boolean | Array<unknown> | {
12543
+ [key: string]: unknown;
12544
+ } | null;
12545
+ } | {
12546
+ type: "continuation";
12547
+ } | {
12548
+ type: "approval-outcome";
12549
+ approvalId: string;
12550
+ status: "approved" | "denied" | "cancelled" | "superseded" | "expired";
12551
+ call: {
12552
+ kind: "action";
12553
+ actionId: string;
12554
+ subject: {
12555
+ kind: "none";
12556
+ } | {
12557
+ kind: "object";
12558
+ objectTypeId: string;
12559
+ primaryId: string;
12560
+ };
12561
+ } | {
12562
+ kind: "workflow";
12563
+ workflowId: string;
12564
+ };
12565
+ outcome?: {
12566
+ kind: "action-run";
12567
+ runId: string;
12568
+ status: "succeeded" | "failed";
12569
+ error?: {
12570
+ code: "internal.unexpected" | "runtime.cancelled" | "action.phase_failed" | "action.read_conflict" | "action.rejected" | "action.timeout" | "object.unique_violation";
12571
+ message: string;
12572
+ retryable: boolean;
12573
+ at: string;
12574
+ details: {
12575
+ actionId: string;
12576
+ runId: string;
12577
+ phase: "validation" | "writeback" | "edits" | "commit" | "effects";
12578
+ };
12579
+ httpStatus?: number;
12580
+ redacted?: true;
12581
+ truncated?: true;
12582
+ };
12583
+ } | {
12584
+ kind: "workflow-run";
12585
+ runId: string;
12586
+ queuedAt: string;
12587
+ } | {
12588
+ kind: "error";
12589
+ error: {
12590
+ code: "action.phase_failed" | "action.read_conflict" | "action.rejected" | "action.run_in_progress" | "action.timeout" | "agent.approval_authority_lost" | "agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable" | "connector.adapter_invalid" | "connector.authorization_invalid" | "connector.authorization_required" | "connector.configuration_invalid" | "connector.credentials_unavailable" | "connector.not_found" | "connector.operation_conflict" | "connector.operation_in_progress" | "connector.provider_failed" | "connector.provider_unavailable" | "connector.replacement_required" | "connector.revocation_pending" | "dataset.change_refused" | "dataset.not_found" | "dataset.version_incompatible" | "dataset.version_not_found" | "dataset.version_read_inconsistent" | "event.delivery_failed" | "internal.unexpected" | "queue.enqueue_failed" | "object.not_found" | "object.unique_violation" | "pipeline.step_failed" | "projection.definition_invalid" | "projection.execution_failed" | "projection.not_found" | "projection.run_already_terminal" | "projection.run_identity_mismatch" | "runtime.cancelled" | "runtime.stopping" | "vector.model_unavailable" | "vector.response_invalid" | "vector.outcome_unknown" | "storage.unavailable" | "sync.execution_failed" | "webhook.delivery_failed" | "webhook.delivery_rejected" | "workflow.node_failed";
12591
+ message: string;
12592
+ retryable: boolean;
12593
+ at: string;
12594
+ /**
12595
+ * Any JSON-compatible value.
12596
+ */
12597
+ details?: string | number | boolean | Array<unknown> | {
12598
+ [key: string]: unknown;
12599
+ } | null;
12600
+ httpStatus?: number;
12601
+ redacted?: true;
12602
+ truncated?: true;
12603
+ };
12604
+ };
12605
+ caller?: {
12606
+ runId: string;
12607
+ key: string;
12608
+ continues?: true;
12609
+ };
12610
+ } | {
12611
+ type: "reasoning";
12612
+ text: string;
12613
+ /**
12614
+ * Any JSON-compatible value.
12615
+ */
12616
+ providerMetadata?: string | number | boolean | Array<unknown> | {
12617
+ [key: string]: unknown;
12618
+ } | null;
12619
+ } | {
12620
+ type: "step-start";
12621
+ } | {
12622
+ type: "file";
12623
+ fileRef: {
12624
+ blobId: string;
12625
+ digest: string;
12626
+ sizeBytes: number;
12627
+ fileName?: string;
12628
+ mediaType?: string;
12629
+ logicalPath?: string;
12630
+ };
12631
+ /**
12632
+ * Any JSON-compatible value.
12633
+ */
12634
+ providerMetadata?: string | number | boolean | Array<unknown> | {
12635
+ [key: string]: unknown;
12636
+ } | null;
12637
+ } | {
12638
+ type: "provider-state";
12639
+ providerId: string;
12640
+ /**
12641
+ * Any JSON-compatible value.
11648
12642
  */
11649
- audioDurationMs?: number;
12643
+ data: string | number | boolean | Array<unknown> | {
12644
+ [key: string]: unknown;
12645
+ } | null;
12646
+ } | {
12647
+ context: {
12648
+ kind: "object";
12649
+ ref: {
12650
+ objectTypeId: string;
12651
+ primaryId: string;
12652
+ };
12653
+ /**
12654
+ * Shown in the chat instead of the object's title. Never sent to the model.
12655
+ */
12656
+ label?: string;
12657
+ } | {
12658
+ kind: "app-state";
12659
+ id: string;
12660
+ label: string;
12661
+ description: string;
12662
+ /**
12663
+ * Any JSON-compatible value.
12664
+ */
12665
+ value: string | number | boolean | Array<unknown> | {
12666
+ [key: string]: unknown;
12667
+ } | null;
12668
+ };
12669
+ origin: "ambient" | "explicit";
12670
+ type: "context";
12671
+ } | {
12672
+ type: "tool-call";
12673
+ toolCallId: string;
12674
+ toolName: string;
12675
+ dynamic?: boolean;
12676
+ providerExecuted?: boolean;
11650
12677
  /**
11651
- * Output tokens that encode generated images, within outputTokens.
12678
+ * Any JSON-compatible value.
11652
12679
  */
11653
- imageOutputTokens?: number;
12680
+ input: string | number | boolean | Array<unknown> | {
12681
+ [key: string]: unknown;
12682
+ } | null;
11654
12683
  /**
11655
- * Output tokens that encode generated audio, within outputTokens.
12684
+ * Any JSON-compatible value.
11656
12685
  */
11657
- audioOutputTokens?: number;
12686
+ providerMetadata?: string | number | boolean | Array<unknown> | {
12687
+ [key: string]: unknown;
12688
+ } | null;
12689
+ state: "output-available";
11658
12690
  /**
11659
- * Images the call returned.
12691
+ * Any JSON-compatible value.
11660
12692
  */
11661
- outputImages?: number;
12693
+ output: string | number | boolean | Array<unknown> | {
12694
+ [key: string]: unknown;
12695
+ } | null;
12696
+ outputFile?: {
12697
+ fileRef: {
12698
+ blobId: string;
12699
+ digest: string;
12700
+ sizeBytes: number;
12701
+ fileName?: string;
12702
+ mediaType?: string;
12703
+ logicalPath?: string;
12704
+ };
12705
+ path: string;
12706
+ };
12707
+ } | {
12708
+ type: "tool-call";
12709
+ toolCallId: string;
12710
+ toolName: string;
12711
+ dynamic?: boolean;
12712
+ providerExecuted?: boolean;
11662
12713
  /**
11663
- * Input characters, counted by the provider's own billing rule.
12714
+ * Any JSON-compatible value.
11664
12715
  */
11665
- inputCharacters?: number;
11666
- reportingStatus: "complete" | "partial" | "unavailable";
11667
- };
11668
- cost?: {
11669
- amounts: Array<{
11670
- currency: string;
11671
- amountNanos: string;
11672
- }>;
11673
- ratedCallCount: number;
11674
- unpriceableCallCount: number;
11675
- unvaluedCallCount: number;
11676
- };
11677
- diagnostics?: Array<{
11678
- code: "step_limit_reached" | "output_limit_reached";
11679
- severity: "warning" | "error";
11680
- scope: "run";
11681
- message: string;
11682
- }>;
11683
- error?: {
11684
- code: "internal.unexpected" | "runtime.cancelled" | "agent.context_limit_exceeded" | "agent.execution_failed" | "agent.step_limit_reached" | "ai.usage_limit_exceeded" | "ai.usage_limit_unavailable";
11685
- message: string;
11686
- retryable: boolean;
11687
- at: string;
12716
+ input: string | number | boolean | Array<unknown> | {
12717
+ [key: string]: unknown;
12718
+ } | null;
11688
12719
  /**
11689
12720
  * Any JSON-compatible value.
11690
12721
  */
11691
- details?: string | number | boolean | Array<unknown> | {
12722
+ providerMetadata?: string | number | boolean | Array<unknown> | {
11692
12723
  [key: string]: unknown;
11693
12724
  } | null;
11694
- httpStatus?: number;
11695
- redacted?: true;
11696
- truncated?: true;
12725
+ state: "output-error";
12726
+ errorText: string;
12727
+ } | {
12728
+ type: "mail";
12729
+ id: string;
12730
+ from: "parent";
12731
+ kind: "message" | "answer";
12732
+ inReplyTo?: string;
12733
+ text: string;
12734
+ afterAnswer?: true;
12735
+ }>;
12736
+ spec?: {
12737
+ model?: {
12738
+ provider: string;
12739
+ modelId: string;
12740
+ };
12741
+ reasoning?: "provider-default" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | {
12742
+ budgetTokens: number;
12743
+ };
12744
+ approvalMode?: "manual" | "accept-edits" | "auto";
11697
12745
  };
11698
- attempt: number;
11699
- streamId: string;
12746
+ timeZone?: string;
12747
+ locale?: string;
12748
+ immediate?: boolean;
11700
12749
  createdAt: string;
11701
- startedAt?: string;
11702
- completedAt?: string;
12750
+ updatedAt: string;
11703
12751
  };
11704
12752
  };
11705
12753
  };
11706
- export type PostAgentThreadMessageResponse = PostAgentThreadMessageResponses[keyof PostAgentThreadMessageResponses];
11707
- export type GetAgentMessageFileContentData = {
11708
- body?: never;
11709
- path: {
11710
- threadId: string;
11711
- messageId: string;
11712
- };
11713
- query: {
11714
- path: string;
11715
- disposition?: "inline" | "attachment";
11716
- /**
11717
- * Client cache key; the route still resolves the current file
11718
- */
11719
- v?: string;
11720
- };
11721
- url: "/api/agent-threads/{threadId}/messages/{messageId}/files/content";
11722
- };
11723
- export type GetAgentMessageFileContentErrors = {
11724
- /**
11725
- * Response for status 400
11726
- */
11727
- 400: ErrorResponse;
11728
- /**
11729
- * Response for status 404
11730
- */
11731
- 404: ErrorResponse;
11732
- /**
11733
- * Requested byte range is not satisfiable
11734
- */
11735
- 416: unknown;
11736
- /**
11737
- * The storage role backing this content is not configured
11738
- */
11739
- 501: ErrorResponse;
11740
- };
11741
- export type GetAgentMessageFileContentError = GetAgentMessageFileContentErrors[keyof GetAgentMessageFileContentErrors];
11742
- export type GetAgentMessageFileContentResponses = {
11743
- /**
11744
- * File content
11745
- */
11746
- 200: Blob | File;
11747
- /**
11748
- * Partial file content
11749
- */
11750
- 206: Blob | File;
11751
- };
11752
- export type GetAgentMessageFileContentResponse = GetAgentMessageFileContentResponses[keyof GetAgentMessageFileContentResponses];
11753
- export type HeadAgentMessageFileContentData = {
11754
- body?: never;
11755
- path: {
11756
- threadId: string;
11757
- messageId: string;
11758
- };
11759
- query: {
11760
- path: string;
11761
- disposition?: "inline" | "attachment";
11762
- /**
11763
- * Client cache key; the route still resolves the current file
11764
- */
11765
- v?: string;
11766
- };
11767
- url: "/api/agent-threads/{threadId}/messages/{messageId}/files/content";
11768
- };
11769
- export type HeadAgentMessageFileContentErrors = {
11770
- /**
11771
- * Response for status 400
11772
- */
11773
- 400: ErrorResponse;
11774
- /**
11775
- * Response for status 404
11776
- */
11777
- 404: ErrorResponse;
11778
- /**
11779
- * Requested byte range is not satisfiable
11780
- */
11781
- 416: unknown;
11782
- /**
11783
- * The storage role backing this content is not configured
11784
- */
11785
- 501: ErrorResponse;
11786
- };
11787
- export type HeadAgentMessageFileContentError = HeadAgentMessageFileContentErrors[keyof HeadAgentMessageFileContentErrors];
11788
- export type HeadAgentMessageFileContentResponses = {
11789
- /**
11790
- * File content headers
11791
- */
11792
- 200: unknown;
11793
- /**
11794
- * Partial file content headers
11795
- */
11796
- 206: unknown;
11797
- };
12754
+ export type UpdateAgentThreadInboxItemResponse = UpdateAgentThreadInboxItemResponses[keyof UpdateAgentThreadInboxItemResponses];
11798
12755
  export type CancelAgentRunData = {
11799
12756
  body: {
11800
12757
  runId: string;
@@ -14829,7 +15786,7 @@ export type ListArtifactsErrors = {
14829
15786
  400: {
14830
15787
  error: string;
14831
15788
  /**
14832
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
15789
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
14833
15790
  */
14834
15791
  code?: string;
14835
15792
  /**
@@ -14854,7 +15811,7 @@ export type ListArtifactsErrors = {
14854
15811
  501: {
14855
15812
  error: string;
14856
15813
  /**
14857
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
15814
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
14858
15815
  */
14859
15816
  code?: string;
14860
15817
  /**
@@ -14938,7 +15895,7 @@ export type CreateArtifactErrors = {
14938
15895
  400: {
14939
15896
  error: string;
14940
15897
  /**
14941
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
15898
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
14942
15899
  */
14943
15900
  code?: string;
14944
15901
  /**
@@ -14963,7 +15920,7 @@ export type CreateArtifactErrors = {
14963
15920
  403: {
14964
15921
  error: string;
14965
15922
  /**
14966
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
15923
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
14967
15924
  */
14968
15925
  code?: string;
14969
15926
  /**
@@ -14988,7 +15945,7 @@ export type CreateArtifactErrors = {
14988
15945
  404: {
14989
15946
  error: string;
14990
15947
  /**
14991
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
15948
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
14992
15949
  */
14993
15950
  code?: string;
14994
15951
  /**
@@ -15013,7 +15970,7 @@ export type CreateArtifactErrors = {
15013
15970
  409: {
15014
15971
  error: string;
15015
15972
  /**
15016
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
15973
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
15017
15974
  */
15018
15975
  code?: string;
15019
15976
  /**
@@ -15038,7 +15995,7 @@ export type CreateArtifactErrors = {
15038
15995
  501: {
15039
15996
  error: string;
15040
15997
  /**
15041
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
15998
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
15042
15999
  */
15043
16000
  code?: string;
15044
16001
  /**
@@ -15118,6 +16075,33 @@ export type CreateArtifactResponses = {
15118
16075
  text: string;
15119
16076
  slug: string;
15120
16077
  }>;
16078
+ /**
16079
+ * html for a designed document, document.html with its own stylesheets
16080
+ */
16081
+ format?: "html";
16082
+ /**
16083
+ * The sheet a designed document's @page rule sets, in CSS pixels: its size and margins
16084
+ */
16085
+ paper?: {
16086
+ width: number;
16087
+ height: number;
16088
+ margin: {
16089
+ top: number;
16090
+ right: number;
16091
+ bottom: number;
16092
+ left: number;
16093
+ };
16094
+ };
16095
+ /**
16096
+ * 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
16097
+ */
16098
+ holder?: {
16099
+ objectTypeId: string;
16100
+ /**
16101
+ * The holder's links its fields read through
16102
+ */
16103
+ links: Array<string>;
16104
+ };
15121
16105
  } | {
15122
16106
  kind: "sheet";
15123
16107
  sheets: Array<{
@@ -15212,6 +16196,10 @@ export type CreateArtifactResponses = {
15212
16196
  boardPreviews?: {
15213
16197
  [key: string]: "ready" | "pending" | "none";
15214
16198
  };
16199
+ /**
16200
+ * 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
16201
+ */
16202
+ printable?: boolean;
15215
16203
  };
15216
16204
  warnings: Array<{
15217
16205
  code: string;
@@ -15236,7 +16224,7 @@ export type DeleteArtifactErrors = {
15236
16224
  403: {
15237
16225
  error: string;
15238
16226
  /**
15239
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
16227
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
15240
16228
  */
15241
16229
  code?: string;
15242
16230
  /**
@@ -15261,7 +16249,7 @@ export type DeleteArtifactErrors = {
15261
16249
  404: {
15262
16250
  error: string;
15263
16251
  /**
15264
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
16252
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
15265
16253
  */
15266
16254
  code?: string;
15267
16255
  /**
@@ -15286,7 +16274,7 @@ export type DeleteArtifactErrors = {
15286
16274
  501: {
15287
16275
  error: string;
15288
16276
  /**
15289
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
16277
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
15290
16278
  */
15291
16279
  code?: string;
15292
16280
  /**
@@ -15331,7 +16319,7 @@ export type GetArtifactErrors = {
15331
16319
  403: {
15332
16320
  error: string;
15333
16321
  /**
15334
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
16322
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
15335
16323
  */
15336
16324
  code?: string;
15337
16325
  /**
@@ -15356,7 +16344,7 @@ export type GetArtifactErrors = {
15356
16344
  404: {
15357
16345
  error: string;
15358
16346
  /**
15359
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
16347
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
15360
16348
  */
15361
16349
  code?: string;
15362
16350
  /**
@@ -15381,7 +16369,7 @@ export type GetArtifactErrors = {
15381
16369
  501: {
15382
16370
  error: string;
15383
16371
  /**
15384
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
16372
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
15385
16373
  */
15386
16374
  code?: string;
15387
16375
  /**
@@ -15497,7 +16485,7 @@ export type ListArtifactHoldersErrors = {
15497
16485
  403: {
15498
16486
  error: string;
15499
16487
  /**
15500
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
16488
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
15501
16489
  */
15502
16490
  code?: string;
15503
16491
  /**
@@ -15522,7 +16510,7 @@ export type ListArtifactHoldersErrors = {
15522
16510
  404: {
15523
16511
  error: string;
15524
16512
  /**
15525
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
16513
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
15526
16514
  */
15527
16515
  code?: string;
15528
16516
  /**
@@ -15547,7 +16535,7 @@ export type ListArtifactHoldersErrors = {
15547
16535
  501: {
15548
16536
  error: string;
15549
16537
  /**
15550
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
16538
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
15551
16539
  */
15552
16540
  code?: string;
15553
16541
  /**
@@ -15610,7 +16598,7 @@ export type ClearArtifactStateErrors = {
15610
16598
  403: {
15611
16599
  error: string;
15612
16600
  /**
15613
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
16601
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
15614
16602
  */
15615
16603
  code?: string;
15616
16604
  /**
@@ -15635,7 +16623,7 @@ export type ClearArtifactStateErrors = {
15635
16623
  404: {
15636
16624
  error: string;
15637
16625
  /**
15638
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
16626
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
15639
16627
  */
15640
16628
  code?: string;
15641
16629
  /**
@@ -15660,7 +16648,7 @@ export type ClearArtifactStateErrors = {
15660
16648
  501: {
15661
16649
  error: string;
15662
16650
  /**
15663
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
16651
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
15664
16652
  */
15665
16653
  code?: string;
15666
16654
  /**
@@ -15708,7 +16696,7 @@ export type GetArtifactStateErrors = {
15708
16696
  403: {
15709
16697
  error: string;
15710
16698
  /**
15711
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
16699
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
15712
16700
  */
15713
16701
  code?: string;
15714
16702
  /**
@@ -15733,7 +16721,7 @@ export type GetArtifactStateErrors = {
15733
16721
  404: {
15734
16722
  error: string;
15735
16723
  /**
15736
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
16724
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
15737
16725
  */
15738
16726
  code?: string;
15739
16727
  /**
@@ -15758,7 +16746,7 @@ export type GetArtifactStateErrors = {
15758
16746
  501: {
15759
16747
  error: string;
15760
16748
  /**
15761
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
16749
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
15762
16750
  */
15763
16751
  code?: string;
15764
16752
  /**
@@ -15817,7 +16805,7 @@ export type DeleteArtifactStateValueErrors = {
15817
16805
  400: {
15818
16806
  error: string;
15819
16807
  /**
15820
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
16808
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
15821
16809
  */
15822
16810
  code?: string;
15823
16811
  /**
@@ -15842,7 +16830,7 @@ export type DeleteArtifactStateValueErrors = {
15842
16830
  403: {
15843
16831
  error: string;
15844
16832
  /**
15845
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
16833
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
15846
16834
  */
15847
16835
  code?: string;
15848
16836
  /**
@@ -15867,7 +16855,7 @@ export type DeleteArtifactStateValueErrors = {
15867
16855
  404: {
15868
16856
  error: string;
15869
16857
  /**
15870
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
16858
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
15871
16859
  */
15872
16860
  code?: string;
15873
16861
  /**
@@ -15892,7 +16880,7 @@ export type DeleteArtifactStateValueErrors = {
15892
16880
  501: {
15893
16881
  error: string;
15894
16882
  /**
15895
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
16883
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
15896
16884
  */
15897
16885
  code?: string;
15898
16886
  /**
@@ -15946,7 +16934,7 @@ export type SetArtifactStateErrors = {
15946
16934
  400: {
15947
16935
  error: string;
15948
16936
  /**
15949
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
16937
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
15950
16938
  */
15951
16939
  code?: string;
15952
16940
  /**
@@ -15971,7 +16959,7 @@ export type SetArtifactStateErrors = {
15971
16959
  403: {
15972
16960
  error: string;
15973
16961
  /**
15974
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
16962
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
15975
16963
  */
15976
16964
  code?: string;
15977
16965
  /**
@@ -15996,7 +16984,7 @@ export type SetArtifactStateErrors = {
15996
16984
  404: {
15997
16985
  error: string;
15998
16986
  /**
15999
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
16987
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
16000
16988
  */
16001
16989
  code?: string;
16002
16990
  /**
@@ -16021,7 +17009,7 @@ export type SetArtifactStateErrors = {
16021
17009
  413: {
16022
17010
  error: string;
16023
17011
  /**
16024
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
17012
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
16025
17013
  */
16026
17014
  code?: string;
16027
17015
  /**
@@ -16046,7 +17034,7 @@ export type SetArtifactStateErrors = {
16046
17034
  501: {
16047
17035
  error: string;
16048
17036
  /**
16049
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
17037
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
16050
17038
  */
16051
17039
  code?: string;
16052
17040
  /**
@@ -16120,7 +17108,7 @@ export type UpdateArtifactErrors = {
16120
17108
  400: {
16121
17109
  error: string;
16122
17110
  /**
16123
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
17111
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
16124
17112
  */
16125
17113
  code?: string;
16126
17114
  /**
@@ -16145,7 +17133,7 @@ export type UpdateArtifactErrors = {
16145
17133
  403: {
16146
17134
  error: string;
16147
17135
  /**
16148
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
17136
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
16149
17137
  */
16150
17138
  code?: string;
16151
17139
  /**
@@ -16170,7 +17158,7 @@ export type UpdateArtifactErrors = {
16170
17158
  404: {
16171
17159
  error: string;
16172
17160
  /**
16173
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
17161
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
16174
17162
  */
16175
17163
  code?: string;
16176
17164
  /**
@@ -16195,7 +17183,7 @@ export type UpdateArtifactErrors = {
16195
17183
  409: {
16196
17184
  error: string;
16197
17185
  /**
16198
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
17186
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
16199
17187
  */
16200
17188
  code?: string;
16201
17189
  /**
@@ -16220,7 +17208,7 @@ export type UpdateArtifactErrors = {
16220
17208
  501: {
16221
17209
  error: string;
16222
17210
  /**
16223
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
17211
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
16224
17212
  */
16225
17213
  code?: string;
16226
17214
  /**
@@ -16292,14 +17280,41 @@ export type UpdateArtifactResponses = {
16292
17280
  mediaType?: string;
16293
17281
  logicalPath?: string;
16294
17282
  };
16295
- }>;
16296
- outline: {
16297
- kind: "document";
16298
- headings: Array<{
16299
- depth: number;
16300
- text: string;
16301
- slug: string;
16302
- }>;
17283
+ }>;
17284
+ outline: {
17285
+ kind: "document";
17286
+ headings: Array<{
17287
+ depth: number;
17288
+ text: string;
17289
+ slug: string;
17290
+ }>;
17291
+ /**
17292
+ * html for a designed document, document.html with its own stylesheets
17293
+ */
17294
+ format?: "html";
17295
+ /**
17296
+ * The sheet a designed document's @page rule sets, in CSS pixels: its size and margins
17297
+ */
17298
+ paper?: {
17299
+ width: number;
17300
+ height: number;
17301
+ margin: {
17302
+ top: number;
17303
+ right: number;
17304
+ bottom: number;
17305
+ left: number;
17306
+ };
17307
+ };
17308
+ /**
17309
+ * 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
17310
+ */
17311
+ holder?: {
17312
+ objectTypeId: string;
17313
+ /**
17314
+ * The holder's links its fields read through
17315
+ */
17316
+ links: Array<string>;
17317
+ };
16303
17318
  } | {
16304
17319
  kind: "sheet";
16305
17320
  sheets: Array<{
@@ -16394,6 +17409,10 @@ export type UpdateArtifactResponses = {
16394
17409
  boardPreviews?: {
16395
17410
  [key: string]: "ready" | "pending" | "none";
16396
17411
  };
17412
+ /**
17413
+ * 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
17414
+ */
17415
+ printable?: boolean;
16397
17416
  };
16398
17417
  warnings: Array<{
16399
17418
  code: string;
@@ -16423,7 +17442,7 @@ export type FreezeArtifactVersionErrors = {
16423
17442
  400: {
16424
17443
  error: string;
16425
17444
  /**
16426
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
17445
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
16427
17446
  */
16428
17447
  code?: string;
16429
17448
  /**
@@ -16448,7 +17467,7 @@ export type FreezeArtifactVersionErrors = {
16448
17467
  403: {
16449
17468
  error: string;
16450
17469
  /**
16451
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
17470
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
16452
17471
  */
16453
17472
  code?: string;
16454
17473
  /**
@@ -16473,7 +17492,7 @@ export type FreezeArtifactVersionErrors = {
16473
17492
  404: {
16474
17493
  error: string;
16475
17494
  /**
16476
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
17495
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
16477
17496
  */
16478
17497
  code?: string;
16479
17498
  /**
@@ -16498,7 +17517,7 @@ export type FreezeArtifactVersionErrors = {
16498
17517
  409: {
16499
17518
  error: string;
16500
17519
  /**
16501
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
17520
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
16502
17521
  */
16503
17522
  code?: string;
16504
17523
  /**
@@ -16523,7 +17542,7 @@ export type FreezeArtifactVersionErrors = {
16523
17542
  501: {
16524
17543
  error: string;
16525
17544
  /**
16526
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
17545
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
16527
17546
  */
16528
17547
  code?: string;
16529
17548
  /**
@@ -16603,6 +17622,33 @@ export type FreezeArtifactVersionResponses = {
16603
17622
  text: string;
16604
17623
  slug: string;
16605
17624
  }>;
17625
+ /**
17626
+ * html for a designed document, document.html with its own stylesheets
17627
+ */
17628
+ format?: "html";
17629
+ /**
17630
+ * The sheet a designed document's @page rule sets, in CSS pixels: its size and margins
17631
+ */
17632
+ paper?: {
17633
+ width: number;
17634
+ height: number;
17635
+ margin: {
17636
+ top: number;
17637
+ right: number;
17638
+ bottom: number;
17639
+ left: number;
17640
+ };
17641
+ };
17642
+ /**
17643
+ * 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
17644
+ */
17645
+ holder?: {
17646
+ objectTypeId: string;
17647
+ /**
17648
+ * The holder's links its fields read through
17649
+ */
17650
+ links: Array<string>;
17651
+ };
16606
17652
  } | {
16607
17653
  kind: "sheet";
16608
17654
  sheets: Array<{
@@ -16697,6 +17743,10 @@ export type FreezeArtifactVersionResponses = {
16697
17743
  boardPreviews?: {
16698
17744
  [key: string]: "ready" | "pending" | "none";
16699
17745
  };
17746
+ /**
17747
+ * 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
17748
+ */
17749
+ printable?: boolean;
16700
17750
  };
16701
17751
  };
16702
17752
  };
@@ -16716,7 +17766,7 @@ export type ListArtifactCommentsErrors = {
16716
17766
  403: {
16717
17767
  error: string;
16718
17768
  /**
16719
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
17769
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
16720
17770
  */
16721
17771
  code?: string;
16722
17772
  /**
@@ -16741,7 +17791,7 @@ export type ListArtifactCommentsErrors = {
16741
17791
  404: {
16742
17792
  error: string;
16743
17793
  /**
16744
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
17794
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
16745
17795
  */
16746
17796
  code?: string;
16747
17797
  /**
@@ -16766,7 +17816,7 @@ export type ListArtifactCommentsErrors = {
16766
17816
  501: {
16767
17817
  error: string;
16768
17818
  /**
16769
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
17819
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
16770
17820
  */
16771
17821
  code?: string;
16772
17822
  /**
@@ -16917,7 +17967,7 @@ export type AddArtifactCommentErrors = {
16917
17967
  400: {
16918
17968
  error: string;
16919
17969
  /**
16920
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
17970
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
16921
17971
  */
16922
17972
  code?: string;
16923
17973
  /**
@@ -16942,7 +17992,7 @@ export type AddArtifactCommentErrors = {
16942
17992
  403: {
16943
17993
  error: string;
16944
17994
  /**
16945
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
17995
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
16946
17996
  */
16947
17997
  code?: string;
16948
17998
  /**
@@ -16967,7 +18017,7 @@ export type AddArtifactCommentErrors = {
16967
18017
  404: {
16968
18018
  error: string;
16969
18019
  /**
16970
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
18020
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
16971
18021
  */
16972
18022
  code?: string;
16973
18023
  /**
@@ -16992,7 +18042,7 @@ export type AddArtifactCommentErrors = {
16992
18042
  413: {
16993
18043
  error: string;
16994
18044
  /**
16995
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
18045
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
16996
18046
  */
16997
18047
  code?: string;
16998
18048
  /**
@@ -17017,7 +18067,7 @@ export type AddArtifactCommentErrors = {
17017
18067
  501: {
17018
18068
  error: string;
17019
18069
  /**
17020
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
18070
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
17021
18071
  */
17022
18072
  code?: string;
17023
18073
  /**
@@ -17132,7 +18182,7 @@ export type ResolveArtifactCommentErrors = {
17132
18182
  400: {
17133
18183
  error: string;
17134
18184
  /**
17135
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
18185
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
17136
18186
  */
17137
18187
  code?: string;
17138
18188
  /**
@@ -17157,7 +18207,7 @@ export type ResolveArtifactCommentErrors = {
17157
18207
  403: {
17158
18208
  error: string;
17159
18209
  /**
17160
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
18210
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
17161
18211
  */
17162
18212
  code?: string;
17163
18213
  /**
@@ -17182,7 +18232,7 @@ export type ResolveArtifactCommentErrors = {
17182
18232
  404: {
17183
18233
  error: string;
17184
18234
  /**
17185
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
18235
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
17186
18236
  */
17187
18237
  code?: string;
17188
18238
  /**
@@ -17207,7 +18257,7 @@ export type ResolveArtifactCommentErrors = {
17207
18257
  501: {
17208
18258
  error: string;
17209
18259
  /**
17210
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
18260
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
17211
18261
  */
17212
18262
  code?: string;
17213
18263
  /**
@@ -17317,7 +18367,7 @@ export type DeleteArtifactCommentErrors = {
17317
18367
  403: {
17318
18368
  error: string;
17319
18369
  /**
17320
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
18370
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
17321
18371
  */
17322
18372
  code?: string;
17323
18373
  /**
@@ -17342,7 +18392,7 @@ export type DeleteArtifactCommentErrors = {
17342
18392
  404: {
17343
18393
  error: string;
17344
18394
  /**
17345
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
18395
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
17346
18396
  */
17347
18397
  code?: string;
17348
18398
  /**
@@ -17367,7 +18417,7 @@ export type DeleteArtifactCommentErrors = {
17367
18417
  501: {
17368
18418
  error: string;
17369
18419
  /**
17370
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
18420
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
17371
18421
  */
17372
18422
  code?: string;
17373
18423
  /**
@@ -17412,7 +18462,7 @@ export type ListArtifactRestorePointsErrors = {
17412
18462
  403: {
17413
18463
  error: string;
17414
18464
  /**
17415
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
18465
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
17416
18466
  */
17417
18467
  code?: string;
17418
18468
  /**
@@ -17437,7 +18487,7 @@ export type ListArtifactRestorePointsErrors = {
17437
18487
  404: {
17438
18488
  error: string;
17439
18489
  /**
17440
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
18490
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
17441
18491
  */
17442
18492
  code?: string;
17443
18493
  /**
@@ -17462,7 +18512,7 @@ export type ListArtifactRestorePointsErrors = {
17462
18512
  501: {
17463
18513
  error: string;
17464
18514
  /**
17465
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
18515
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
17466
18516
  */
17467
18517
  code?: string;
17468
18518
  /**
@@ -17556,7 +18606,7 @@ export type GetArtifactRestorePointErrors = {
17556
18606
  403: {
17557
18607
  error: string;
17558
18608
  /**
17559
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
18609
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
17560
18610
  */
17561
18611
  code?: string;
17562
18612
  /**
@@ -17581,7 +18631,7 @@ export type GetArtifactRestorePointErrors = {
17581
18631
  404: {
17582
18632
  error: string;
17583
18633
  /**
17584
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
18634
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
17585
18635
  */
17586
18636
  code?: string;
17587
18637
  /**
@@ -17606,7 +18656,7 @@ export type GetArtifactRestorePointErrors = {
17606
18656
  501: {
17607
18657
  error: string;
17608
18658
  /**
17609
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
18659
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
17610
18660
  */
17611
18661
  code?: string;
17612
18662
  /**
@@ -17695,6 +18745,33 @@ export type GetArtifactRestorePointResponses = {
17695
18745
  text: string;
17696
18746
  slug: string;
17697
18747
  }>;
18748
+ /**
18749
+ * html for a designed document, document.html with its own stylesheets
18750
+ */
18751
+ format?: "html";
18752
+ /**
18753
+ * The sheet a designed document's @page rule sets, in CSS pixels: its size and margins
18754
+ */
18755
+ paper?: {
18756
+ width: number;
18757
+ height: number;
18758
+ margin: {
18759
+ top: number;
18760
+ right: number;
18761
+ bottom: number;
18762
+ left: number;
18763
+ };
18764
+ };
18765
+ /**
18766
+ * 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
18767
+ */
18768
+ holder?: {
18769
+ objectTypeId: string;
18770
+ /**
18771
+ * The holder's links its fields read through
18772
+ */
18773
+ links: Array<string>;
18774
+ };
17698
18775
  } | {
17699
18776
  kind: "sheet";
17700
18777
  sheets: Array<{
@@ -17826,7 +18903,7 @@ export type RestoreArtifactErrors = {
17826
18903
  400: {
17827
18904
  error: string;
17828
18905
  /**
17829
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
18906
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
17830
18907
  */
17831
18908
  code?: string;
17832
18909
  /**
@@ -17851,7 +18928,7 @@ export type RestoreArtifactErrors = {
17851
18928
  403: {
17852
18929
  error: string;
17853
18930
  /**
17854
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
18931
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
17855
18932
  */
17856
18933
  code?: string;
17857
18934
  /**
@@ -17876,7 +18953,7 @@ export type RestoreArtifactErrors = {
17876
18953
  404: {
17877
18954
  error: string;
17878
18955
  /**
17879
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
18956
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
17880
18957
  */
17881
18958
  code?: string;
17882
18959
  /**
@@ -17901,7 +18978,7 @@ export type RestoreArtifactErrors = {
17901
18978
  409: {
17902
18979
  error: string;
17903
18980
  /**
17904
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
18981
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
17905
18982
  */
17906
18983
  code?: string;
17907
18984
  /**
@@ -17926,7 +19003,7 @@ export type RestoreArtifactErrors = {
17926
19003
  501: {
17927
19004
  error: string;
17928
19005
  /**
17929
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
19006
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
17930
19007
  */
17931
19008
  code?: string;
17932
19009
  /**
@@ -18006,6 +19083,33 @@ export type RestoreArtifactResponses = {
18006
19083
  text: string;
18007
19084
  slug: string;
18008
19085
  }>;
19086
+ /**
19087
+ * html for a designed document, document.html with its own stylesheets
19088
+ */
19089
+ format?: "html";
19090
+ /**
19091
+ * The sheet a designed document's @page rule sets, in CSS pixels: its size and margins
19092
+ */
19093
+ paper?: {
19094
+ width: number;
19095
+ height: number;
19096
+ margin: {
19097
+ top: number;
19098
+ right: number;
19099
+ bottom: number;
19100
+ left: number;
19101
+ };
19102
+ };
19103
+ /**
19104
+ * 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
19105
+ */
19106
+ holder?: {
19107
+ objectTypeId: string;
19108
+ /**
19109
+ * The holder's links its fields read through
19110
+ */
19111
+ links: Array<string>;
19112
+ };
18009
19113
  } | {
18010
19114
  kind: "sheet";
18011
19115
  sheets: Array<{
@@ -18100,6 +19204,10 @@ export type RestoreArtifactResponses = {
18100
19204
  boardPreviews?: {
18101
19205
  [key: string]: "ready" | "pending" | "none";
18102
19206
  };
19207
+ /**
19208
+ * 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
19209
+ */
19210
+ printable?: boolean;
18103
19211
  };
18104
19212
  };
18105
19213
  };
@@ -18123,7 +19231,7 @@ export type CreateArtifactFrameErrors = {
18123
19231
  403: {
18124
19232
  error: string;
18125
19233
  /**
18126
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
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, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
18127
19235
  */
18128
19236
  code?: string;
18129
19237
  /**
@@ -18148,7 +19256,7 @@ export type CreateArtifactFrameErrors = {
18148
19256
  404: {
18149
19257
  error: string;
18150
19258
  /**
18151
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
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, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
18152
19260
  */
18153
19261
  code?: string;
18154
19262
  /**
@@ -18173,7 +19281,7 @@ export type CreateArtifactFrameErrors = {
18173
19281
  409: {
18174
19282
  error: string;
18175
19283
  /**
18176
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
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, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
18177
19285
  */
18178
19286
  code?: string;
18179
19287
  /**
@@ -18198,7 +19306,7 @@ export type CreateArtifactFrameErrors = {
18198
19306
  501: {
18199
19307
  error: string;
18200
19308
  /**
18201
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
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, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
18202
19310
  */
18203
19311
  code?: string;
18204
19312
  /**
@@ -18254,7 +19362,7 @@ export type GetArtifactVersionErrors = {
18254
19362
  403: {
18255
19363
  error: string;
18256
19364
  /**
18257
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
19365
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
18258
19366
  */
18259
19367
  code?: string;
18260
19368
  /**
@@ -18279,7 +19387,7 @@ export type GetArtifactVersionErrors = {
18279
19387
  404: {
18280
19388
  error: string;
18281
19389
  /**
18282
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
19390
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
18283
19391
  */
18284
19392
  code?: string;
18285
19393
  /**
@@ -18304,7 +19412,7 @@ export type GetArtifactVersionErrors = {
18304
19412
  501: {
18305
19413
  error: string;
18306
19414
  /**
18307
- * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
19415
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, not_shared (it exists but neither a conversation nor an object you read shares it), read_only (you only read it), query_not_found, holder_not_found (no one object of the type a designed document names that you read holds it), query_invalid (the ontology no longer admits the query), preview_not_found (the board has no preview yet, or will have none), pdf_not_found (the document is not printed yet: ask for it first), pdf_unavailable (the project has no sandboxes to print in), execution_lost (a run token's run ended or moved to another runner), or storage_unavailable.
18308
19416
  */
18309
19417
  code?: string;
18310
19418
  /**
@@ -18363,6 +19471,33 @@ export type GetArtifactVersionResponses = {
18363
19471
  text: string;
18364
19472
  slug: string;
18365
19473
  }>;
19474
+ /**
19475
+ * html for a designed document, document.html with its own stylesheets
19476
+ */
19477
+ format?: "html";
19478
+ /**
19479
+ * The sheet a designed document's @page rule sets, in CSS pixels: its size and margins
19480
+ */
19481
+ paper?: {
19482
+ width: number;
19483
+ height: number;
19484
+ margin: {
19485
+ top: number;
19486
+ right: number;
19487
+ bottom: number;
19488
+ left: number;
19489
+ };
19490
+ };
19491
+ /**
19492
+ * 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
19493
+ */
19494
+ holder?: {
19495
+ objectTypeId: string;
19496
+ /**
19497
+ * The holder's links its fields read through
19498
+ */
19499
+ links: Array<string>;
19500
+ };
18366
19501
  } | {
18367
19502
  kind: "sheet";
18368
19503
  sheets: Array<{
@@ -18457,9 +19592,205 @@ export type GetArtifactVersionResponses = {
18457
19592
  boardPreviews?: {
18458
19593
  [key: string]: "ready" | "pending" | "none";
18459
19594
  };
19595
+ /**
19596
+ * 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
19597
+ */
19598
+ printable?: boolean;
18460
19599
  };
18461
19600
  };
18462
19601
  export type GetArtifactVersionResponse = GetArtifactVersionResponses[keyof GetArtifactVersionResponses];
19602
+ export type GetArtifactPdfData = {
19603
+ body?: never;
19604
+ path: {
19605
+ artifactId: string;
19606
+ /**
19607
+ * A version number, or "latest"
19608
+ */
19609
+ version: string;
19610
+ };
19611
+ query?: {
19612
+ /**
19613
+ * 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
19614
+ */
19615
+ key?: string;
19616
+ };
19617
+ url: "/api/artifacts/{artifactId}/versions/{version}/pdf";
19618
+ };
19619
+ export type GetArtifactPdfErrors = {
19620
+ /**
19621
+ * Response for status 403
19622
+ */
19623
+ 403: ArtifactErrorResponse;
19624
+ /**
19625
+ * Response for status 404
19626
+ */
19627
+ 404: ArtifactErrorResponse;
19628
+ };
19629
+ export type GetArtifactPdfError = GetArtifactPdfErrors[keyof GetArtifactPdfErrors];
19630
+ export type GetArtifactPdfResponses = {
19631
+ /**
19632
+ * The PDF
19633
+ */
19634
+ 200: Blob | File;
19635
+ };
19636
+ export type GetArtifactPdfResponse = GetArtifactPdfResponses[keyof GetArtifactPdfResponses];
19637
+ export type PrintArtifactPdfData = {
19638
+ body?: never;
19639
+ path: {
19640
+ artifactId: string;
19641
+ /**
19642
+ * A version number, or "latest"
19643
+ */
19644
+ version: string;
19645
+ };
19646
+ query?: {
19647
+ /**
19648
+ * true asks again for a PDF that could not be printed, instead of hearing why
19649
+ */
19650
+ retry?: "true" | "false";
19651
+ /**
19652
+ * 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
19653
+ */
19654
+ key?: string;
19655
+ };
19656
+ url: "/api/artifacts/{artifactId}/versions/{version}/pdf";
19657
+ };
19658
+ export type PrintArtifactPdfErrors = {
19659
+ /**
19660
+ * Response for status 400
19661
+ */
19662
+ 400: {
19663
+ error: string;
19664
+ /**
19665
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, 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.
19666
+ */
19667
+ code?: string;
19668
+ /**
19669
+ * With artifact_moved: the artifact's latest version, its revision, who last wrote it, and who created it once it is frozen
19670
+ */
19671
+ latest?: {
19672
+ version: number;
19673
+ revision: number;
19674
+ author: {
19675
+ type: "user" | "serviceAccount" | "system";
19676
+ id: string;
19677
+ };
19678
+ frozenBy?: {
19679
+ type: "user" | "serviceAccount" | "system";
19680
+ id: string;
19681
+ };
19682
+ };
19683
+ };
19684
+ /**
19685
+ * Response for status 403
19686
+ */
19687
+ 403: {
19688
+ error: string;
19689
+ /**
19690
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, 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.
19691
+ */
19692
+ code?: string;
19693
+ /**
19694
+ * With artifact_moved: the artifact's latest version, its revision, who last wrote it, and who created it once it is frozen
19695
+ */
19696
+ latest?: {
19697
+ version: number;
19698
+ revision: number;
19699
+ author: {
19700
+ type: "user" | "serviceAccount" | "system";
19701
+ id: string;
19702
+ };
19703
+ frozenBy?: {
19704
+ type: "user" | "serviceAccount" | "system";
19705
+ id: string;
19706
+ };
19707
+ };
19708
+ };
19709
+ /**
19710
+ * Response for status 404
19711
+ */
19712
+ 404: {
19713
+ error: string;
19714
+ /**
19715
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, 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.
19716
+ */
19717
+ code?: string;
19718
+ /**
19719
+ * With artifact_moved: the artifact's latest version, its revision, who last wrote it, and who created it once it is frozen
19720
+ */
19721
+ latest?: {
19722
+ version: number;
19723
+ revision: number;
19724
+ author: {
19725
+ type: "user" | "serviceAccount" | "system";
19726
+ id: string;
19727
+ };
19728
+ frozenBy?: {
19729
+ type: "user" | "serviceAccount" | "system";
19730
+ id: string;
19731
+ };
19732
+ };
19733
+ };
19734
+ /**
19735
+ * Response for status 501
19736
+ */
19737
+ 501: {
19738
+ error: string;
19739
+ /**
19740
+ * Stable machine-readable failure code: artifact_not_found, artifact_kind_mismatch, artifact_moved, restore_point_not_found, comment_not_found, invalid_artifact, invalid_comment, invalid_state, name_required (a shared link's guest gives their name before commenting), state_full, comments_full, not_allowed, 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.
19741
+ */
19742
+ code?: string;
19743
+ /**
19744
+ * With artifact_moved: the artifact's latest version, its revision, who last wrote it, and who created it once it is frozen
19745
+ */
19746
+ latest?: {
19747
+ version: number;
19748
+ revision: number;
19749
+ author: {
19750
+ type: "user" | "serviceAccount" | "system";
19751
+ id: string;
19752
+ };
19753
+ frozenBy?: {
19754
+ type: "user" | "serviceAccount" | "system";
19755
+ id: string;
19756
+ };
19757
+ };
19758
+ };
19759
+ };
19760
+ export type PrintArtifactPdfError = PrintArtifactPdfErrors[keyof PrintArtifactPdfErrors];
19761
+ export type PrintArtifactPdfResponses = {
19762
+ /**
19763
+ * Response for status 200
19764
+ */
19765
+ 200: {
19766
+ status: "ready";
19767
+ /**
19768
+ * How many pages it printed on
19769
+ */
19770
+ pages: number;
19771
+ /**
19772
+ * 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
19773
+ */
19774
+ key?: string;
19775
+ } | {
19776
+ status: "printing";
19777
+ /**
19778
+ * 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
19779
+ */
19780
+ key?: string;
19781
+ } | {
19782
+ status: "failed";
19783
+ /**
19784
+ * Why it could not be printed
19785
+ */
19786
+ reason: string;
19787
+ /**
19788
+ * 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
19789
+ */
19790
+ key?: string;
19791
+ };
19792
+ };
19793
+ export type PrintArtifactPdfResponse = PrintArtifactPdfResponses[keyof PrintArtifactPdfResponses];
18463
19794
  export type GetArtifactBoardPreviewData = {
18464
19795
  body?: never;
18465
19796
  path: {
@@ -19267,6 +20598,10 @@ export type GetObjectLinkLineageResponses = {
19267
20598
  type: "ontology.indexVectors";
19268
20599
  indexingId: string;
19269
20600
  };
20601
+ } | {
20602
+ type: "script";
20603
+ runId: string;
20604
+ path: string;
19270
20605
  };
19271
20606
  /**
19272
20607
  * Absent for a direct write, and for an Action run the caller cannot view.
@@ -19307,6 +20642,10 @@ export type GetObjectLinkLineageResponses = {
19307
20642
  type: "ontology.indexVectors";
19308
20643
  indexingId: string;
19309
20644
  };
20645
+ } | {
20646
+ type: "script";
20647
+ runId: string;
20648
+ path: string;
19310
20649
  };
19311
20650
  } | {
19312
20651
  kind: "identity";
@@ -19461,8 +20800,8 @@ export type ListEventsData = {
19461
20800
  body?: never;
19462
20801
  path?: never;
19463
20802
  query?: {
19464
- topic?: "objects" | "telemetry" | "links" | "schedules" | "syncs" | "pipelines" | "workflows" | "datasets" | "rules" | "users" | "artifacts";
19465
- type?: "object.created" | "object.updated" | "object.deleted" | "telemetry.appended" | "link.created" | "link.updated" | "link.deleted" | "schedule.triggered" | "sync.run.started" | "sync.run.finished" | "pipeline.run.started" | "pipeline.run.step.started" | "pipeline.run.step.finished" | "pipeline.run.finished" | "workflow.run.queued" | "workflow.run.started" | "workflow.run.node.started" | "workflow.run.waiting" | "workflow.run.node.waiting" | "workflow.run.node.finished" | "workflow.run.finished" | "workflow.intervention.requested" | "workflow.intervention.submitted" | "workflow.intervention.cancelled" | "workflow.intervention.expired" | "dataset.version.committed" | "rule.triggered" | "rule.resolved" | "user.joined" | "user.suspended" | "user.reactivated" | "user.invited" | "user.profile.updated" | "artifact.updated" | "artifact.commented";
20803
+ topic?: "objects" | "telemetry" | "links" | "schedules" | "syncs" | "pipelines" | "workflows" | "datasets" | "rules" | "users" | "artifacts" | "connectors";
20804
+ type?: "object.created" | "object.updated" | "object.deleted" | "telemetry.appended" | "link.created" | "link.updated" | "link.deleted" | "schedule.triggered" | "sync.run.started" | "sync.run.finished" | "pipeline.run.started" | "pipeline.run.step.started" | "pipeline.run.step.finished" | "pipeline.run.finished" | "workflow.run.queued" | "workflow.run.started" | "workflow.run.node.started" | "workflow.run.waiting" | "workflow.run.node.waiting" | "workflow.run.node.finished" | "workflow.run.finished" | "workflow.intervention.requested" | "workflow.intervention.submitted" | "workflow.intervention.cancelled" | "workflow.intervention.expired" | "dataset.version.committed" | "rule.triggered" | "rule.resolved" | "user.joined" | "user.suspended" | "user.reactivated" | "user.invited" | "user.profile.updated" | "artifact.updated" | "artifact.commented" | "connector.connection.connected" | "connector.connection.disconnected";
19466
20805
  afterCursor?: string;
19467
20806
  limit?: string;
19468
20807
  };
@@ -19550,6 +20889,10 @@ export type ListEventsResponses = {
19550
20889
  type: "ontology.indexVectors";
19551
20890
  indexingId: string;
19552
20891
  };
20892
+ } | {
20893
+ type: "script";
20894
+ runId: string;
20895
+ path: string;
19553
20896
  };
19554
20897
  commitId: string;
19555
20898
  commitOrdinal: number;
@@ -19664,6 +21007,10 @@ export type ListEventsResponses = {
19664
21007
  type: "ontology.indexVectors";
19665
21008
  indexingId: string;
19666
21009
  };
21010
+ } | {
21011
+ type: "script";
21012
+ runId: string;
21013
+ path: string;
19667
21014
  };
19668
21015
  commitId: string;
19669
21016
  commitOrdinal: number;
@@ -19778,6 +21125,10 @@ export type ListEventsResponses = {
19778
21125
  type: "ontology.indexVectors";
19779
21126
  indexingId: string;
19780
21127
  };
21128
+ } | {
21129
+ type: "script";
21130
+ runId: string;
21131
+ path: string;
19781
21132
  };
19782
21133
  commitId: string;
19783
21134
  commitOrdinal: number;
@@ -19887,6 +21238,10 @@ export type ListEventsResponses = {
19887
21238
  type: "ontology.indexVectors";
19888
21239
  indexingId: string;
19889
21240
  };
21241
+ } | {
21242
+ type: "script";
21243
+ runId: string;
21244
+ path: string;
19890
21245
  };
19891
21246
  commitId: string;
19892
21247
  commitOrdinal: number;
@@ -19966,6 +21321,10 @@ export type ListEventsResponses = {
19966
21321
  type: "ontology.indexVectors";
19967
21322
  indexingId: string;
19968
21323
  };
21324
+ } | {
21325
+ type: "script";
21326
+ runId: string;
21327
+ path: string;
19969
21328
  };
19970
21329
  commitId: string;
19971
21330
  commitOrdinal: number;
@@ -20078,6 +21437,10 @@ export type ListEventsResponses = {
20078
21437
  type: "ontology.indexVectors";
20079
21438
  indexingId: string;
20080
21439
  };
21440
+ } | {
21441
+ type: "script";
21442
+ runId: string;
21443
+ path: string;
20081
21444
  };
20082
21445
  commitId: string;
20083
21446
  commitOrdinal: number;
@@ -20190,6 +21553,10 @@ export type ListEventsResponses = {
20190
21553
  type: "ontology.indexVectors";
20191
21554
  indexingId: string;
20192
21555
  };
21556
+ } | {
21557
+ type: "script";
21558
+ runId: string;
21559
+ path: string;
20193
21560
  };
20194
21561
  commitId: string;
20195
21562
  commitOrdinal: number;
@@ -20278,8 +21645,8 @@ export type ListEventsResponses = {
20278
21645
  [key: string]: unknown;
20279
21646
  } | null;
20280
21647
  };
20281
- type: "schedule.triggered" | "sync.run.started" | "sync.run.finished" | "pipeline.run.started" | "pipeline.run.step.started" | "pipeline.run.step.finished" | "pipeline.run.finished" | "workflow.run.queued" | "workflow.run.started" | "workflow.run.node.started" | "workflow.run.waiting" | "workflow.run.node.waiting" | "workflow.run.node.finished" | "workflow.run.finished" | "workflow.intervention.requested" | "workflow.intervention.submitted" | "workflow.intervention.cancelled" | "workflow.intervention.expired" | "dataset.version.committed" | "rule.triggered" | "rule.resolved" | "user.joined" | "user.suspended" | "user.reactivated" | "user.invited" | "user.profile.updated" | "artifact.updated" | "artifact.commented";
20282
- topic: "objects" | "telemetry" | "links" | "schedules" | "syncs" | "pipelines" | "workflows" | "datasets" | "rules" | "users" | "artifacts";
21648
+ type: "schedule.triggered" | "sync.run.started" | "sync.run.finished" | "pipeline.run.started" | "pipeline.run.step.started" | "pipeline.run.step.finished" | "pipeline.run.finished" | "workflow.run.queued" | "workflow.run.started" | "workflow.run.node.started" | "workflow.run.waiting" | "workflow.run.node.waiting" | "workflow.run.node.finished" | "workflow.run.finished" | "workflow.intervention.requested" | "workflow.intervention.submitted" | "workflow.intervention.cancelled" | "workflow.intervention.expired" | "dataset.version.committed" | "rule.triggered" | "rule.resolved" | "user.joined" | "user.suspended" | "user.reactivated" | "user.invited" | "user.profile.updated" | "artifact.updated" | "artifact.commented" | "connector.connection.connected" | "connector.connection.disconnected";
21649
+ topic: "objects" | "telemetry" | "links" | "schedules" | "syncs" | "pipelines" | "workflows" | "datasets" | "rules" | "users" | "artifacts" | "connectors";
20283
21650
  payload: {
20284
21651
  [key: string]: unknown;
20285
21652
  };
@@ -20938,6 +22305,7 @@ export type ListProjectionsResponses = {
20938
22305
  strategy: "mostRecent";
20939
22306
  sourceTimestamp: string;
20940
22307
  };
22308
+ missing?: "remove";
20941
22309
  latestRun: {
20942
22310
  id: string;
20943
22311
  projectId: string;
@@ -21423,6 +22791,7 @@ export type GetProjectionResponses = {
21423
22791
  strategy: "mostRecent";
21424
22792
  sourceTimestamp: string;
21425
22793
  };
22794
+ missing?: "remove";
21426
22795
  latestRun: {
21427
22796
  id: string;
21428
22797
  projectId: string;