@nodetool-ai/protocol 0.8.13 → 0.8.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.nodetool-build-stamp +1 -1
- package/dist/agent-model-fit.d.ts +35 -0
- package/dist/agent-model-fit.d.ts.map +1 -0
- package/dist/agent-model-fit.js +62 -0
- package/dist/agent-model-fit.js.map +1 -0
- package/dist/api-schemas/agent-access.d.ts +40 -0
- package/dist/api-schemas/agent-access.d.ts.map +1 -1
- package/dist/api-schemas/agent-access.js +24 -1
- package/dist/api-schemas/agent-access.js.map +1 -1
- package/dist/api-schemas/api-error-code.d.ts +35 -1
- package/dist/api-schemas/api-error-code.d.ts.map +1 -1
- package/dist/api-schemas/api-error-code.js +34 -0
- package/dist/api-schemas/api-error-code.js.map +1 -1
- package/dist/api-schemas/assets.d.ts +79 -0
- package/dist/api-schemas/assets.d.ts.map +1 -1
- package/dist/api-schemas/assets.js +61 -7
- package/dist/api-schemas/assets.js.map +1 -1
- package/dist/api-schemas/cloud-local.d.ts +194 -0
- package/dist/api-schemas/cloud-local.d.ts.map +1 -0
- package/dist/api-schemas/cloud-local.js +88 -0
- package/dist/api-schemas/cloud-local.js.map +1 -0
- package/dist/api-schemas/cloud-transfer-local.d.ts +999 -0
- package/dist/api-schemas/cloud-transfer-local.d.ts.map +1 -0
- package/dist/api-schemas/cloud-transfer-local.js +189 -0
- package/dist/api-schemas/cloud-transfer-local.js.map +1 -0
- package/dist/api-schemas/deleted-documents.d.ts +45 -0
- package/dist/api-schemas/deleted-documents.d.ts.map +1 -0
- package/dist/api-schemas/deleted-documents.js +30 -0
- package/dist/api-schemas/deleted-documents.js.map +1 -0
- package/dist/api-schemas/document-sharing.d.ts +171 -1
- package/dist/api-schemas/document-sharing.d.ts.map +1 -1
- package/dist/api-schemas/document-sharing.js +37 -5
- package/dist/api-schemas/document-sharing.js.map +1 -1
- package/dist/api-schemas/index.d.ts +6 -0
- package/dist/api-schemas/index.d.ts.map +1 -1
- package/dist/api-schemas/index.js +6 -0
- package/dist/api-schemas/index.js.map +1 -1
- package/dist/api-schemas/messages.d.ts +30 -0
- package/dist/api-schemas/messages.d.ts.map +1 -1
- package/dist/api-schemas/messages.js +32 -1
- package/dist/api-schemas/messages.js.map +1 -1
- package/dist/api-schemas/openverse.d.ts +2 -0
- package/dist/api-schemas/openverse.d.ts.map +1 -1
- package/dist/api-schemas/projects.d.ts +412 -0
- package/dist/api-schemas/projects.d.ts.map +1 -1
- package/dist/api-schemas/projects.js +212 -2
- package/dist/api-schemas/projects.js.map +1 -1
- package/dist/api-schemas/receive.d.ts +95 -0
- package/dist/api-schemas/receive.d.ts.map +1 -0
- package/dist/api-schemas/receive.js +69 -0
- package/dist/api-schemas/receive.js.map +1 -0
- package/dist/api-schemas/sdk-execution-v1.d.ts +0 -2
- package/dist/api-schemas/sdk-execution-v1.d.ts.map +1 -1
- package/dist/api-schemas/settings.d.ts +125 -0
- package/dist/api-schemas/settings.d.ts.map +1 -1
- package/dist/api-schemas/settings.js +59 -0
- package/dist/api-schemas/settings.js.map +1 -1
- package/dist/api-schemas/storage.d.ts +96 -0
- package/dist/api-schemas/storage.d.ts.map +1 -1
- package/dist/api-schemas/storage.js +48 -0
- package/dist/api-schemas/storage.js.map +1 -1
- package/dist/api-schemas/storyboards.d.ts +55 -0
- package/dist/api-schemas/storyboards.d.ts.map +1 -1
- package/dist/api-schemas/storyboards.js +55 -8
- package/dist/api-schemas/storyboards.js.map +1 -1
- package/dist/api-schemas/sync.d.ts +78 -0
- package/dist/api-schemas/sync.d.ts.map +1 -0
- package/dist/api-schemas/sync.js +78 -0
- package/dist/api-schemas/sync.js.map +1 -0
- package/dist/api-schemas/timeline-tool-contracts.d.ts +42 -2
- package/dist/api-schemas/timeline-tool-contracts.d.ts.map +1 -1
- package/dist/api-schemas/timeline-tool-contracts.js +54 -3
- package/dist/api-schemas/timeline-tool-contracts.js.map +1 -1
- package/dist/api-schemas/timeline-tool-params.d.ts +1 -1
- package/dist/api-schemas/timeline-tool-params.d.ts.map +1 -1
- package/dist/api-schemas/timeline-tool-params.js +5 -0
- package/dist/api-schemas/timeline-tool-params.js.map +1 -1
- package/dist/api-schemas/timeline.d.ts +2 -0
- package/dist/api-schemas/timeline.d.ts.map +1 -1
- package/dist/api-schemas/timeline.js +7 -2
- package/dist/api-schemas/timeline.js.map +1 -1
- package/dist/api-schemas/transfer.d.ts +890 -0
- package/dist/api-schemas/transfer.d.ts.map +1 -0
- package/dist/api-schemas/transfer.js +297 -0
- package/dist/api-schemas/transfer.js.map +1 -0
- package/dist/api-schemas/workflows.d.ts +301 -1
- package/dist/api-schemas/workflows.d.ts.map +1 -1
- package/dist/api-schemas/workflows.js +110 -8
- package/dist/api-schemas/workflows.js.map +1 -1
- package/dist/api-schemas/workspace.d.ts +0 -22
- package/dist/api-schemas/workspace.d.ts.map +1 -1
- package/dist/api-schemas/workspace.js +0 -21
- package/dist/api-schemas/workspace.js.map +1 -1
- package/dist/api-types.d.ts +83 -24
- package/dist/api-types.d.ts.map +1 -1
- package/dist/api-types.js +48 -24
- package/dist/api-types.js.map +1 -1
- package/dist/chat-attachment.d.ts +28 -0
- package/dist/chat-attachment.d.ts.map +1 -0
- package/dist/chat-attachment.js +101 -0
- package/dist/chat-attachment.js.map +1 -0
- package/dist/closure.d.ts +33 -0
- package/dist/closure.d.ts.map +1 -0
- package/dist/closure.js +116 -0
- package/dist/closure.js.map +1 -0
- package/dist/cloud-profile.d.ts.map +1 -1
- package/dist/cloud-profile.js +9 -2
- package/dist/cloud-profile.js.map +1 -1
- package/dist/creative.d.ts +17 -0
- package/dist/creative.d.ts.map +1 -1
- package/dist/creative.js.map +1 -1
- package/dist/identity-encoding.d.ts +2 -0
- package/dist/identity-encoding.d.ts.map +1 -0
- package/dist/identity-encoding.js +56 -0
- package/dist/identity-encoding.js.map +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -1
- package/dist/messages.d.ts +0 -8
- package/dist/messages.d.ts.map +1 -1
- package/dist/missing-runtime-package.d.ts +1 -3
- package/dist/missing-runtime-package.d.ts.map +1 -1
- package/dist/missing-runtime-package.js +1 -3
- package/dist/missing-runtime-package.js.map +1 -1
- package/dist/processing-messages.schema.json +0 -2
- package/dist/project-directories.d.ts +127 -0
- package/dist/project-directories.d.ts.map +1 -0
- package/dist/project-directories.js +208 -0
- package/dist/project-directories.js.map +1 -0
- package/dist/run-trace.js +1 -1
- package/dist/run-trace.js.map +1 -1
- package/dist/runtime-npm-packages.d.ts +3 -13
- package/dist/runtime-npm-packages.d.ts.map +1 -1
- package/dist/runtime-npm-packages.js +3 -37
- package/dist/runtime-npm-packages.js.map +1 -1
- package/dist/sandbox-host.d.ts +1 -1
- package/dist/sandbox-host.d.ts.map +1 -1
- package/dist/sandbox-host.js +1 -50
- package/dist/sandbox-host.js.map +1 -1
- package/dist/storyboard-markdown.d.ts +154 -0
- package/dist/storyboard-markdown.d.ts.map +1 -0
- package/dist/storyboard-markdown.js +905 -0
- package/dist/storyboard-markdown.js.map +1 -0
- package/dist/toolSchemas.d.ts +46 -0
- package/dist/toolSchemas.d.ts.map +1 -1
- package/dist/toolSchemas.js +87 -3
- package/dist/toolSchemas.js.map +1 -1
- package/dist/workflow-document-revision.d.ts +1 -1
- package/dist/workflow-document-revision.d.ts.map +1 -1
- package/dist/workflow-document-revision.js +2 -1
- package/dist/workflow-document-revision.js.map +1 -1
- package/dist/ws-commands.d.ts +3 -1
- package/dist/ws-commands.d.ts.map +1 -1
- package/dist/ws-commands.js +2 -0
- package/dist/ws-commands.js.map +1 -1
- package/package.json +7 -1
- package/schema/sdk-v1.execution.schema.json +0 -4
- package/schema/sdk-v1.manifest.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
2026-11-
|
|
1
|
+
2026-11-19T19:42:30.776Z
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* How well a language model is expected to work for agent runs, which call
|
|
3
|
+
* NodeTool's tools on every step.
|
|
4
|
+
*
|
|
5
|
+
* The verdicts come from what NodeTool knows without running the model:
|
|
6
|
+
*
|
|
7
|
+
* - `no_tools`: the provider says the model cannot call tools, so an agent
|
|
8
|
+
* cannot use it at all.
|
|
9
|
+
* - `free_tier`: an OpenRouter `:free` route. OpenRouter rate limits these
|
|
10
|
+
* routes per minute and per day, and a long agent run hits those limits.
|
|
11
|
+
* - `default`: NodeTool's own default chat model for that provider, and the
|
|
12
|
+
* model the agent eval workflows run against by default. This is not a
|
|
13
|
+
* benchmark result: no per-task reliability has been recorded for it.
|
|
14
|
+
* - `unknown`: everything else. The model may work well. NodeTool has no
|
|
15
|
+
* evidence either way.
|
|
16
|
+
*/
|
|
17
|
+
export type AgentModelFit = "no_tools" | "free_tier" | "default" | "unknown";
|
|
18
|
+
export interface AgentModelFitInput {
|
|
19
|
+
id: string;
|
|
20
|
+
provider: string;
|
|
21
|
+
supports_tools?: boolean | null;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Model ids NodeTool uses as defaults for agent work. Matched on the id's
|
|
25
|
+
* last path segment, so `anthropic/claude-sonnet-5` on a router matches too.
|
|
26
|
+
* Each entry names where the default is set, so the list can be checked.
|
|
27
|
+
*/
|
|
28
|
+
export declare const AGENT_DEFAULT_MODELS: ReadonlyArray<{
|
|
29
|
+
id: string;
|
|
30
|
+
source: string;
|
|
31
|
+
}>;
|
|
32
|
+
/** Whether `id` is an OpenRouter free route, such as `meta-llama/llama-3.3-70b-instruct:free`. */
|
|
33
|
+
export declare function isOpenRouterFreeRoute(provider: string, id: string): boolean;
|
|
34
|
+
export declare function agentModelFit(model: AgentModelFitInput): AgentModelFit;
|
|
35
|
+
//# sourceMappingURL=agent-model-fit.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent-model-fit.d.ts","sourceRoot":"","sources":["../src/agent-model-fit.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,MAAM,MAAM,aAAa,GAAG,UAAU,GAAG,WAAW,GAAG,SAAS,GAAG,SAAS,CAAC;AAE7E,MAAM,WAAW,kBAAkB;IACjC,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,cAAc,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;CACjC;AAED;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,EAAE,aAAa,CAAC;IAC/C,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;CAChB,CAsBA,CAAC;AASF,kGAAkG;AAClG,wBAAgB,qBAAqB,CAAC,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,OAAO,CAE3E;AAED,wBAAgB,aAAa,CAAC,KAAK,EAAE,kBAAkB,GAAG,aAAa,CAKtE"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* How well a language model is expected to work for agent runs, which call
|
|
3
|
+
* NodeTool's tools on every step.
|
|
4
|
+
*
|
|
5
|
+
* The verdicts come from what NodeTool knows without running the model:
|
|
6
|
+
*
|
|
7
|
+
* - `no_tools`: the provider says the model cannot call tools, so an agent
|
|
8
|
+
* cannot use it at all.
|
|
9
|
+
* - `free_tier`: an OpenRouter `:free` route. OpenRouter rate limits these
|
|
10
|
+
* routes per minute and per day, and a long agent run hits those limits.
|
|
11
|
+
* - `default`: NodeTool's own default chat model for that provider, and the
|
|
12
|
+
* model the agent eval workflows run against by default. This is not a
|
|
13
|
+
* benchmark result: no per-task reliability has been recorded for it.
|
|
14
|
+
* - `unknown`: everything else. The model may work well. NodeTool has no
|
|
15
|
+
* evidence either way.
|
|
16
|
+
*/
|
|
17
|
+
/**
|
|
18
|
+
* Model ids NodeTool uses as defaults for agent work. Matched on the id's
|
|
19
|
+
* last path segment, so `anthropic/claude-sonnet-5` on a router matches too.
|
|
20
|
+
* Each entry names where the default is set, so the list can be checked.
|
|
21
|
+
*/
|
|
22
|
+
export const AGENT_DEFAULT_MODELS = [
|
|
23
|
+
{
|
|
24
|
+
id: "claude-sonnet-5-5",
|
|
25
|
+
source: "RECOMMENDED_MODELS in packages/runtime"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
id: "gpt-6.2",
|
|
29
|
+
source: "RECOMMENDED_MODELS in packages/runtime"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
id: "gemini-4-neon-preview",
|
|
33
|
+
source: "RECOMMENDED_MODELS in packages/runtime"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
id: "claude-sonnet-5",
|
|
37
|
+
source: "Default model of .github/workflows/agent-eval.yml and app-build-eval.yml"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
id: "gpt-5.4-mini",
|
|
41
|
+
source: "Language model fixture of the CodeAct API eval (packages/agents/src/evals/codeact-api-core.ts)"
|
|
42
|
+
}
|
|
43
|
+
];
|
|
44
|
+
const DEFAULT_IDS = new Set(AGENT_DEFAULT_MODELS.map((entry) => entry.id));
|
|
45
|
+
function lastSegment(id) {
|
|
46
|
+
const slash = id.lastIndexOf("/");
|
|
47
|
+
return (slash >= 0 ? id.slice(slash + 1) : id).toLowerCase();
|
|
48
|
+
}
|
|
49
|
+
/** Whether `id` is an OpenRouter free route, such as `meta-llama/llama-3.3-70b-instruct:free`. */
|
|
50
|
+
export function isOpenRouterFreeRoute(provider, id) {
|
|
51
|
+
return provider === "openrouter" && id.toLowerCase().endsWith(":free");
|
|
52
|
+
}
|
|
53
|
+
export function agentModelFit(model) {
|
|
54
|
+
if (model.supports_tools === false)
|
|
55
|
+
return "no_tools";
|
|
56
|
+
if (isOpenRouterFreeRoute(model.provider, model.id))
|
|
57
|
+
return "free_tier";
|
|
58
|
+
if (DEFAULT_IDS.has(lastSegment(model.id)))
|
|
59
|
+
return "default";
|
|
60
|
+
return "unknown";
|
|
61
|
+
}
|
|
62
|
+
//# sourceMapping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AC,KAAK,CAAC,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC;QAAE,OAAO,WAAW,CAAC;IACxE,IAAI,WAAW,CAAC,GAAG,CAAC,WAAW,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;QAAE,OAAO,SAAS,CAAC;IAC7D,OAAO,SAAS,CAAC;AACnB,CAAC"}
|
|
@@ -85,6 +85,12 @@ export declare const oauthRequestSummary: z.ZodObject<{
|
|
|
85
85
|
redirect_host: z.ZodString;
|
|
86
86
|
scope: z.ZodString;
|
|
87
87
|
loopback_only: z.ZodBoolean;
|
|
88
|
+
kind: z.ZodEnum<{
|
|
89
|
+
mcp: "mcp";
|
|
90
|
+
native: "native";
|
|
91
|
+
}>;
|
|
92
|
+
app_name: z.ZodNullable<z.ZodString>;
|
|
93
|
+
device_name: z.ZodNullable<z.ZodString>;
|
|
88
94
|
}, z.core.$strip>;
|
|
89
95
|
export type OauthRequestSummary = z.infer<typeof oauthRequestSummary>;
|
|
90
96
|
/** Null when the request_id is unknown or its 10-minute TTL has elapsed —
|
|
@@ -94,6 +100,12 @@ export declare const getOauthRequestOutput: z.ZodNullable<z.ZodObject<{
|
|
|
94
100
|
redirect_host: z.ZodString;
|
|
95
101
|
scope: z.ZodString;
|
|
96
102
|
loopback_only: z.ZodBoolean;
|
|
103
|
+
kind: z.ZodEnum<{
|
|
104
|
+
mcp: "mcp";
|
|
105
|
+
native: "native";
|
|
106
|
+
}>;
|
|
107
|
+
app_name: z.ZodNullable<z.ZodString>;
|
|
108
|
+
device_name: z.ZodNullable<z.ZodString>;
|
|
97
109
|
}, z.core.$strip>>;
|
|
98
110
|
export type GetOauthRequestOutput = z.infer<typeof getOauthRequestOutput>;
|
|
99
111
|
/** Approve/deny both resolve to a redirect the SPA navigates the browser
|
|
@@ -131,4 +143,32 @@ export declare const revokeOauthGrantOutput: z.ZodObject<{
|
|
|
131
143
|
ok: z.ZodBoolean;
|
|
132
144
|
}, z.core.$strip>;
|
|
133
145
|
export type RevokeOauthGrantOutput = z.infer<typeof revokeOauthGrantOutput>;
|
|
146
|
+
/** One signed-in device: a native session of the desktop apps. */
|
|
147
|
+
export declare const deviceSessionSummary: z.ZodObject<{
|
|
148
|
+
id: z.ZodString;
|
|
149
|
+
app_name: z.ZodNullable<z.ZodString>;
|
|
150
|
+
device_name: z.ZodNullable<z.ZodString>;
|
|
151
|
+
created_at: z.ZodString;
|
|
152
|
+
last_used_at: z.ZodNullable<z.ZodString>;
|
|
153
|
+
}, z.core.$strip>;
|
|
154
|
+
export type DeviceSessionSummary = z.infer<typeof deviceSessionSummary>;
|
|
155
|
+
export declare const listDeviceSessionsOutput: z.ZodObject<{
|
|
156
|
+
available: z.ZodBoolean;
|
|
157
|
+
sessions: z.ZodArray<z.ZodObject<{
|
|
158
|
+
id: z.ZodString;
|
|
159
|
+
app_name: z.ZodNullable<z.ZodString>;
|
|
160
|
+
device_name: z.ZodNullable<z.ZodString>;
|
|
161
|
+
created_at: z.ZodString;
|
|
162
|
+
last_used_at: z.ZodNullable<z.ZodString>;
|
|
163
|
+
}, z.core.$strip>>;
|
|
164
|
+
}, z.core.$strip>;
|
|
165
|
+
export type ListDeviceSessionsOutput = z.infer<typeof listDeviceSessionsOutput>;
|
|
166
|
+
export declare const endDeviceSessionInput: z.ZodObject<{
|
|
167
|
+
session_id: z.ZodString;
|
|
168
|
+
}, z.core.$strip>;
|
|
169
|
+
export type EndDeviceSessionInput = z.infer<typeof endDeviceSessionInput>;
|
|
170
|
+
export declare const endDeviceSessionOutput: z.ZodObject<{
|
|
171
|
+
ok: z.ZodBoolean;
|
|
172
|
+
}, z.core.$strip>;
|
|
173
|
+
export type EndDeviceSessionOutput = z.infer<typeof endDeviceSessionOutput>;
|
|
134
174
|
//# sourceMappingURL=agent-access.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-access.d.ts","sourceRoot":"","sources":["../../src/api-schemas/agent-access.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,C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H,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAExE,eAAO,MAAM,wBAAwB;;;;;;;;;iBAInC,CAAC;AACH,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAEhF,eAAO,MAAM,qBAAqB;;iBAEhC,CAAC;AACH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAE1E,eAAO,MAAM,sBAAsB;;iBAAgC,CAAC;AACpE,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC"}
|
|
@@ -63,7 +63,13 @@ export const oauthRequestSummary = z.object({
|
|
|
63
63
|
client_name: z.string(),
|
|
64
64
|
redirect_host: z.string(),
|
|
65
65
|
scope: z.string(),
|
|
66
|
-
loopback_only: z.boolean()
|
|
66
|
+
loopback_only: z.boolean(),
|
|
67
|
+
/** `native` for a sign-in from the desktop apps, else `mcp`. */
|
|
68
|
+
kind: z.enum(["mcp", "native"]),
|
|
69
|
+
/** Native sign-in only: `node-editor` or `timeline`. */
|
|
70
|
+
app_name: z.string().nullable(),
|
|
71
|
+
/** Native sign-in only: the device name the app sent, shown as text. */
|
|
72
|
+
device_name: z.string().nullable()
|
|
67
73
|
});
|
|
68
74
|
/** Null when the request_id is unknown or its 10-minute TTL has elapsed —
|
|
69
75
|
* the consent page renders an "expired" state rather than an error. */
|
|
@@ -90,4 +96,21 @@ export const revokeOauthGrantInput = z.object({
|
|
|
90
96
|
grant_id: z.string().min(1)
|
|
91
97
|
});
|
|
92
98
|
export const revokeOauthGrantOutput = z.object({ ok: z.boolean() });
|
|
99
|
+
/** One signed-in device: a native session of the desktop apps. */
|
|
100
|
+
export const deviceSessionSummary = z.object({
|
|
101
|
+
id: z.string(),
|
|
102
|
+
app_name: z.string().nullable(),
|
|
103
|
+
device_name: z.string().nullable(),
|
|
104
|
+
created_at: z.string(),
|
|
105
|
+
last_used_at: z.string().nullable()
|
|
106
|
+
});
|
|
107
|
+
export const listDeviceSessionsOutput = z.object({
|
|
108
|
+
/** False when this server does not offer desktop sign-in. */
|
|
109
|
+
available: z.boolean(),
|
|
110
|
+
sessions: z.array(deviceSessionSummary)
|
|
111
|
+
});
|
|
112
|
+
export const endDeviceSessionInput = z.object({
|
|
113
|
+
session_id: z.string().min(1)
|
|
114
|
+
});
|
|
115
|
+
export const endDeviceSessionOutput = z.object({ ok: z.boolean() });
|
|
93
116
|
//# sourceMappingURL=agent-access.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-access.js","sourceRoot":"","sources":["../../src/api-schemas/agent-access.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;GAGG;AAEH,qEAAqE;AAErE,mEAAmE;AACnE,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAC;IACzC,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACpC,CAAC,CAAC;AAGH,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC;IACvC,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,kBAAkB,CAAC;CACpC,CAAC,CAAC;AAGH,0EAA0E;AAC1E,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC;IACvC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAA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C,CAAC;AAGH,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;AAGpE,kEAAkE;AAClE,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC3C,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC/B,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACpC,CAAC,CAAC;AAGH,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/C,6DAA6D;IAC7D,SAAS,EAAE,CAAC,CAAC,OAAO,EAAE;IACtB,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,oBAAoB,CAAC;CACxC,CAAC,CAAC;AAGH,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC5C,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;CAC9B,CAAC,CAAC;AAGH,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC"}
|
|
@@ -27,7 +27,41 @@ export declare enum ApiErrorCode {
|
|
|
27
27
|
* response names it in `runtime_package` so the client can offer to install
|
|
28
28
|
* it.
|
|
29
29
|
*/
|
|
30
|
-
MISSING_RUNTIME_PACKAGE = "MISSING_RUNTIME_PACKAGE"
|
|
30
|
+
MISSING_RUNTIME_PACKAGE = "MISSING_RUNTIME_PACKAGE",
|
|
31
|
+
/**
|
|
32
|
+
* A save adds a file the writer may not read: neither their own asset nor
|
|
33
|
+
* a file of a document they may duplicate. Nothing was written.
|
|
34
|
+
*/
|
|
35
|
+
FILE_NOT_READABLE = "FILE_NOT_READABLE",
|
|
36
|
+
/**
|
|
37
|
+
* The save is written in a lower document schema version than the stored
|
|
38
|
+
* document. It would replace the document with a reduced copy.
|
|
39
|
+
*/
|
|
40
|
+
SCHEMA_DOWNGRADE = "SCHEMA_DOWNGRADE",
|
|
41
|
+
/**
|
|
42
|
+
* The client's protocol version is below the lowest this server accepts
|
|
43
|
+
* writes from. Listing and reading still work.
|
|
44
|
+
*/
|
|
45
|
+
CLIENT_TOO_OLD = "CLIENT_TOO_OLD",
|
|
46
|
+
/**
|
|
47
|
+
* A transfer's commit attempt id was recorded with other content. A retry
|
|
48
|
+
* must send what the first attempt sent, or take a new attempt id.
|
|
49
|
+
*/
|
|
50
|
+
ATTEMPT_CONTENT_MISMATCH = "ATTEMPT_CONTENT_MISMATCH",
|
|
51
|
+
/**
|
|
52
|
+
* A receive's revision set expired, was released, or holds a revision or
|
|
53
|
+
* file an owner's action freed. The client captures a new set (Y7).
|
|
54
|
+
*/
|
|
55
|
+
REVISION_SET_EXPIRED = "REVISION_SET_EXPIRED",
|
|
56
|
+
/**
|
|
57
|
+
* The local transfer client was handed a cloud access token the cloud no
|
|
58
|
+
* longer accepts. The app signs in again and hands a new one.
|
|
59
|
+
*/
|
|
60
|
+
CLOUD_SIGNED_OUT = "CLOUD_SIGNED_OUT",
|
|
61
|
+
/** The cloud could not be reached or failed. The same call may succeed later. */
|
|
62
|
+
CLOUD_UNREACHABLE = "CLOUD_UNREACHABLE",
|
|
63
|
+
/** The cloud refused the local transfer client's request. Sending it again will not help. */
|
|
64
|
+
CLOUD_REFUSED = "CLOUD_REFUSED"
|
|
31
65
|
}
|
|
32
66
|
export interface ApiErrorResponse {
|
|
33
67
|
code: ApiErrorCode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api-error-code.d.ts","sourceRoot":"","sources":["../../src/api-schemas/api-error-code.ts"],"names":[],"mappings":"AAAA,oBAAY,YAAY;IACtB,SAAS,cAAc;IACvB,cAAc,mBAAmB;IACjC,aAAa,kBAAkB;IAC/B,sBAAsB,2BAA2B;IACjD,YAAY,iBAAiB;IAC7B,SAAS,cAAc;IACvB,cAAc,mBAAmB;IACjC,mBAAmB,wBAAwB;IAC3C,kBAAkB,uBAAuB;IACzC,yBAAyB,8BAA8B;IACvD,eAAe,oBAAoB;IACnC,mBAAmB,wBAAwB;IAC3C,yBAAyB,8BAA8B;IACvD,wBAAwB,6BAA6B;IACrD,sBAAsB,2BAA2B;IACjD,sEAAsE;IACtE,eAAe,oBAAoB;IACnC;;;;OAIG;IACH,mBAAmB,wBAAwB;IAC3C;;;;OAIG;IACH,uBAAuB,4BAA4B;
|
|
1
|
+
{"version":3,"file":"api-error-code.d.ts","sourceRoot":"","sources":["../../src/api-schemas/api-error-code.ts"],"names":[],"mappings":"AAAA,oBAAY,YAAY;IACtB,SAAS,cAAc;IACvB,cAAc,mBAAmB;IACjC,aAAa,kBAAkB;IAC/B,sBAAsB,2BAA2B;IACjD,YAAY,iBAAiB;IAC7B,SAAS,cAAc;IACvB,cAAc,mBAAmB;IACjC,mBAAmB,wBAAwB;IAC3C,kBAAkB,uBAAuB;IACzC,yBAAyB,8BAA8B;IACvD,eAAe,oBAAoB;IACnC,mBAAmB,wBAAwB;IAC3C,yBAAyB,8BAA8B;IACvD,wBAAwB,6BAA6B;IACrD,sBAAsB,2BAA2B;IACjD,sEAAsE;IACtE,eAAe,oBAAoB;IACnC;;;;OAIG;IACH,mBAAmB,wBAAwB;IAC3C;;;;OAIG;IACH,uBAAuB,4BAA4B;IACnD;;;OAGG;IACH,iBAAiB,sBAAsB;IACvC;;;OAGG;IACH,gBAAgB,qBAAqB;IACrC;;;OAGG;IACH,cAAc,mBAAmB;IACjC;;;OAGG;IACH,wBAAwB,6BAA6B;IACrD;;;OAGG;IACH,oBAAoB,yBAAyB;IAC7C;;;OAGG;IACH,gBAAgB,qBAAqB;IACrC,iFAAiF;IACjF,iBAAiB,sBAAsB;IACvC,6FAA6F;IAC7F,aAAa,kBAAkB;CAChC;AAED,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,YAAY,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,iEAAiE;IACjE,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,wBAAgB,QAAQ,CAAC,IAAI,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM,GAAG,gBAAgB,CAE7E"}
|
|
@@ -29,6 +29,40 @@ export var ApiErrorCode;
|
|
|
29
29
|
* it.
|
|
30
30
|
*/
|
|
31
31
|
ApiErrorCode["MISSING_RUNTIME_PACKAGE"] = "MISSING_RUNTIME_PACKAGE";
|
|
32
|
+
/**
|
|
33
|
+
* A save adds a file the writer may not read: neither their own asset nor
|
|
34
|
+
* a file of a document they may duplicate. Nothing was written.
|
|
35
|
+
*/
|
|
36
|
+
ApiErrorCode["FILE_NOT_READABLE"] = "FILE_NOT_READABLE";
|
|
37
|
+
/**
|
|
38
|
+
* The save is written in a lower document schema version than the stored
|
|
39
|
+
* document. It would replace the document with a reduced copy.
|
|
40
|
+
*/
|
|
41
|
+
ApiErrorCode["SCHEMA_DOWNGRADE"] = "SCHEMA_DOWNGRADE";
|
|
42
|
+
/**
|
|
43
|
+
* The client's protocol version is below the lowest this server accepts
|
|
44
|
+
* writes from. Listing and reading still work.
|
|
45
|
+
*/
|
|
46
|
+
ApiErrorCode["CLIENT_TOO_OLD"] = "CLIENT_TOO_OLD";
|
|
47
|
+
/**
|
|
48
|
+
* A transfer's commit attempt id was recorded with other content. A retry
|
|
49
|
+
* must send what the first attempt sent, or take a new attempt id.
|
|
50
|
+
*/
|
|
51
|
+
ApiErrorCode["ATTEMPT_CONTENT_MISMATCH"] = "ATTEMPT_CONTENT_MISMATCH";
|
|
52
|
+
/**
|
|
53
|
+
* A receive's revision set expired, was released, or holds a revision or
|
|
54
|
+
* file an owner's action freed. The client captures a new set (Y7).
|
|
55
|
+
*/
|
|
56
|
+
ApiErrorCode["REVISION_SET_EXPIRED"] = "REVISION_SET_EXPIRED";
|
|
57
|
+
/**
|
|
58
|
+
* The local transfer client was handed a cloud access token the cloud no
|
|
59
|
+
* longer accepts. The app signs in again and hands a new one.
|
|
60
|
+
*/
|
|
61
|
+
ApiErrorCode["CLOUD_SIGNED_OUT"] = "CLOUD_SIGNED_OUT";
|
|
62
|
+
/** The cloud could not be reached or failed. The same call may succeed later. */
|
|
63
|
+
ApiErrorCode["CLOUD_UNREACHABLE"] = "CLOUD_UNREACHABLE";
|
|
64
|
+
/** The cloud refused the local transfer client's request. Sending it again will not help. */
|
|
65
|
+
ApiErrorCode["CLOUD_REFUSED"] = "CLOUD_REFUSED";
|
|
32
66
|
})(ApiErrorCode || (ApiErrorCode = {}));
|
|
33
67
|
export function apiError(code, detail) {
|
|
34
68
|
return { code, detail };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api-error-code.js","sourceRoot":"","sources":["../../src/api-schemas/api-error-code.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,
|
|
1
|
+
{"version":3,"file":"api-error-code.js","sourceRoot":"","sources":["../../src/api-schemas/api-error-code.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,YAgEX;AAhED,WAAY,YAAY;IACtB,uCAAuB,CAAA;IACvB,iDAAiC,CAAA;IACjC,+CAA+B,CAAA;IAC/B,iEAAiD,CAAA;IACjD,6CAA6B,CAAA;IAC7B,uCAAuB,CAAA;IACvB,iDAAiC,CAAA;IACjC,2DAA2C,CAAA;IAC3C,yDAAyC,CAAA;IACzC,uEAAuD,CAAA;IACvD,mDAAmC,CAAA;IACnC,2DAA2C,CAAA;IAC3C,uEAAuD,CAAA;IACvD,qEAAqD,CAAA;IACrD,iEAAiD,CAAA;IACjD,sEAAsE;IACtE,mDAAmC,CAAA;IACnC;;;;OAIG;IACH,2DAA2C,CAAA;IAC3C;;;;OAIG;IACH,mEAAmD,CAAA;IACnD;;;OAGG;IACH,uDAAuC,CAAA;IACvC;;;OAGG;IACH,qDAAqC,CAAA;IACrC;;;OAGG;IACH,iDAAiC,CAAA;IACjC;;;OAGG;IACH,qEAAqD,CAAA;IACrD;;;OAGG;IACH,6DAA6C,CAAA;IAC7C;;;OAGG;IACH,qDAAqC,CAAA;IACrC,iFAAiF;IACjF,uDAAuC,CAAA;IACvC,6FAA6F;IAC7F,+CAA+B,CAAA;AACjC,CAAC,EAhEW,YAAY,KAAZ,YAAY,QAgEvB;AASD,MAAM,UAAU,QAAQ,CAAC,IAAkB,EAAE,MAAc;IACzD,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;AAC1B,CAAC"}
|
|
@@ -29,6 +29,8 @@ export declare const assetResponse: z.ZodObject<{
|
|
|
29
29
|
project_id: z.ZodOptional<z.ZodString>;
|
|
30
30
|
favorite: z.ZodOptional<z.ZodBoolean>;
|
|
31
31
|
offline: z.ZodOptional<z.ZodBoolean>;
|
|
32
|
+
linked: z.ZodOptional<z.ZodBoolean>;
|
|
33
|
+
workspace_path: z.ZodOptional<z.ZodString>;
|
|
32
34
|
proxy_status: z.ZodOptional<z.ZodEnum<{
|
|
33
35
|
failed: "failed";
|
|
34
36
|
none: "none";
|
|
@@ -73,6 +75,8 @@ export declare const listOutput: z.ZodObject<{
|
|
|
73
75
|
project_id: z.ZodOptional<z.ZodString>;
|
|
74
76
|
favorite: z.ZodOptional<z.ZodBoolean>;
|
|
75
77
|
offline: z.ZodOptional<z.ZodBoolean>;
|
|
78
|
+
linked: z.ZodOptional<z.ZodBoolean>;
|
|
79
|
+
workspace_path: z.ZodOptional<z.ZodString>;
|
|
76
80
|
proxy_status: z.ZodOptional<z.ZodEnum<{
|
|
77
81
|
failed: "failed";
|
|
78
82
|
none: "none";
|
|
@@ -143,6 +147,7 @@ export declare const createUploadOutput: z.ZodObject<{
|
|
|
143
147
|
export type CreateUploadOutput = z.infer<typeof createUploadOutput>;
|
|
144
148
|
export declare const finalizeUploadInput: z.ZodObject<{
|
|
145
149
|
asset_id: z.ZodString;
|
|
150
|
+
directory: z.ZodOptional<z.ZodString>;
|
|
146
151
|
}, z.core.$strip>;
|
|
147
152
|
export type FinalizeUploadInput = z.infer<typeof finalizeUploadInput>;
|
|
148
153
|
export declare const finalizeUploadOutput: z.ZodObject<{
|
|
@@ -166,6 +171,8 @@ export declare const finalizeUploadOutput: z.ZodObject<{
|
|
|
166
171
|
project_id: z.ZodOptional<z.ZodString>;
|
|
167
172
|
favorite: z.ZodOptional<z.ZodBoolean>;
|
|
168
173
|
offline: z.ZodOptional<z.ZodBoolean>;
|
|
174
|
+
linked: z.ZodOptional<z.ZodBoolean>;
|
|
175
|
+
workspace_path: z.ZodOptional<z.ZodString>;
|
|
169
176
|
proxy_status: z.ZodOptional<z.ZodEnum<{
|
|
170
177
|
failed: "failed";
|
|
171
178
|
none: "none";
|
|
@@ -211,6 +218,8 @@ export declare const createExternalOutput: z.ZodObject<{
|
|
|
211
218
|
project_id: z.ZodOptional<z.ZodString>;
|
|
212
219
|
favorite: z.ZodOptional<z.ZodBoolean>;
|
|
213
220
|
offline: z.ZodOptional<z.ZodBoolean>;
|
|
221
|
+
linked: z.ZodOptional<z.ZodBoolean>;
|
|
222
|
+
workspace_path: z.ZodOptional<z.ZodString>;
|
|
214
223
|
proxy_status: z.ZodOptional<z.ZodEnum<{
|
|
215
224
|
failed: "failed";
|
|
216
225
|
none: "none";
|
|
@@ -247,6 +256,8 @@ export declare const relinkExternalOutput: z.ZodObject<{
|
|
|
247
256
|
project_id: z.ZodOptional<z.ZodString>;
|
|
248
257
|
favorite: z.ZodOptional<z.ZodBoolean>;
|
|
249
258
|
offline: z.ZodOptional<z.ZodBoolean>;
|
|
259
|
+
linked: z.ZodOptional<z.ZodBoolean>;
|
|
260
|
+
workspace_path: z.ZodOptional<z.ZodString>;
|
|
250
261
|
proxy_status: z.ZodOptional<z.ZodEnum<{
|
|
251
262
|
failed: "failed";
|
|
252
263
|
none: "none";
|
|
@@ -257,6 +268,29 @@ export declare const relinkExternalOutput: z.ZodObject<{
|
|
|
257
268
|
proxy_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
258
269
|
}, z.core.$strip>;
|
|
259
270
|
export type RelinkExternalOutput = z.infer<typeof relinkExternalOutput>;
|
|
271
|
+
export declare const collectInput: z.ZodObject<{
|
|
272
|
+
project_id: z.ZodString;
|
|
273
|
+
}, z.core.$strip>;
|
|
274
|
+
export type CollectInput = z.infer<typeof collectInput>;
|
|
275
|
+
export declare const collectOutput: z.ZodObject<{
|
|
276
|
+
copied: z.ZodArray<z.ZodObject<{
|
|
277
|
+
id: z.ZodString;
|
|
278
|
+
name: z.ZodString;
|
|
279
|
+
workspace_path: z.ZodString;
|
|
280
|
+
}, z.core.$strip>>;
|
|
281
|
+
skipped: z.ZodArray<z.ZodObject<{
|
|
282
|
+
id: z.ZodString;
|
|
283
|
+
name: z.ZodString;
|
|
284
|
+
reason: z.ZodString;
|
|
285
|
+
}, z.core.$strip>>;
|
|
286
|
+
failed: z.ZodArray<z.ZodObject<{
|
|
287
|
+
id: z.ZodString;
|
|
288
|
+
name: z.ZodString;
|
|
289
|
+
reason: z.ZodString;
|
|
290
|
+
}, z.core.$strip>>;
|
|
291
|
+
interrupted: z.ZodBoolean;
|
|
292
|
+
}, z.core.$strip>;
|
|
293
|
+
export type CollectOutput = z.infer<typeof collectOutput>;
|
|
260
294
|
export declare const ensureProxyInput: z.ZodObject<{
|
|
261
295
|
id: z.ZodString;
|
|
262
296
|
}, z.core.$strip>;
|
|
@@ -290,6 +324,47 @@ export declare const updateInput: z.ZodObject<{
|
|
|
290
324
|
}>>>;
|
|
291
325
|
}, z.core.$strip>;
|
|
292
326
|
export type UpdateInput = z.infer<typeof updateInput>;
|
|
327
|
+
export declare const copyToProjectInput: z.ZodObject<{
|
|
328
|
+
asset_id: z.ZodString;
|
|
329
|
+
project_id: z.ZodString;
|
|
330
|
+
}, z.core.$strip>;
|
|
331
|
+
export type CopyToProjectInput = z.infer<typeof copyToProjectInput>;
|
|
332
|
+
export declare const copyToProjectOutput: z.ZodObject<{
|
|
333
|
+
asset: z.ZodObject<{
|
|
334
|
+
id: z.ZodString;
|
|
335
|
+
user_id: z.ZodString;
|
|
336
|
+
workflow_id: z.ZodNullable<z.ZodString>;
|
|
337
|
+
parent_id: z.ZodNullable<z.ZodString>;
|
|
338
|
+
name: z.ZodString;
|
|
339
|
+
content_type: z.ZodString;
|
|
340
|
+
size: z.ZodNullable<z.ZodNumber>;
|
|
341
|
+
metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
342
|
+
sketch_document_id: z.ZodNullable<z.ZodString>;
|
|
343
|
+
created_at: z.ZodString;
|
|
344
|
+
updated_at: z.ZodOptional<z.ZodString>;
|
|
345
|
+
get_url: z.ZodNullable<z.ZodString>;
|
|
346
|
+
thumb_url: z.ZodNullable<z.ZodString>;
|
|
347
|
+
duration: z.ZodNullable<z.ZodNumber>;
|
|
348
|
+
node_id: z.ZodNullable<z.ZodString>;
|
|
349
|
+
job_id: z.ZodNullable<z.ZodString>;
|
|
350
|
+
timeline_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
351
|
+
project_id: z.ZodOptional<z.ZodString>;
|
|
352
|
+
favorite: z.ZodOptional<z.ZodBoolean>;
|
|
353
|
+
offline: z.ZodOptional<z.ZodBoolean>;
|
|
354
|
+
linked: z.ZodOptional<z.ZodBoolean>;
|
|
355
|
+
workspace_path: z.ZodOptional<z.ZodString>;
|
|
356
|
+
proxy_status: z.ZodOptional<z.ZodEnum<{
|
|
357
|
+
failed: "failed";
|
|
358
|
+
none: "none";
|
|
359
|
+
queued: "queued";
|
|
360
|
+
ready: "ready";
|
|
361
|
+
running: "running";
|
|
362
|
+
}>>;
|
|
363
|
+
proxy_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
364
|
+
}, z.core.$strip>;
|
|
365
|
+
copied: z.ZodBoolean;
|
|
366
|
+
}, z.core.$strip>;
|
|
367
|
+
export type CopyToProjectOutput = z.infer<typeof copyToProjectOutput>;
|
|
293
368
|
export declare const deleteInput: z.ZodObject<{
|
|
294
369
|
id: z.ZodString;
|
|
295
370
|
}, z.core.$strip>;
|
|
@@ -345,6 +420,8 @@ export declare const recursiveOutput: z.ZodObject<{
|
|
|
345
420
|
project_id: z.ZodOptional<z.ZodString>;
|
|
346
421
|
favorite: z.ZodOptional<z.ZodBoolean>;
|
|
347
422
|
offline: z.ZodOptional<z.ZodBoolean>;
|
|
423
|
+
linked: z.ZodOptional<z.ZodBoolean>;
|
|
424
|
+
workspace_path: z.ZodOptional<z.ZodString>;
|
|
348
425
|
proxy_status: z.ZodOptional<z.ZodEnum<{
|
|
349
426
|
failed: "failed";
|
|
350
427
|
none: "none";
|
|
@@ -387,6 +464,8 @@ export declare const searchOutput: z.ZodObject<{
|
|
|
387
464
|
project_id: z.ZodOptional<z.ZodString>;
|
|
388
465
|
favorite: z.ZodOptional<z.ZodBoolean>;
|
|
389
466
|
offline: z.ZodOptional<z.ZodBoolean>;
|
|
467
|
+
linked: z.ZodOptional<z.ZodBoolean>;
|
|
468
|
+
workspace_path: z.ZodOptional<z.ZodString>;
|
|
390
469
|
proxy_status: z.ZodOptional<z.ZodEnum<{
|
|
391
470
|
failed: "failed";
|
|
392
471
|
none: "none";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assets.d.ts","sourceRoot":"","sources":["../../src/api-schemas/assets.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,mDAAmD;AACnD,eAAO,MAAM,gBAAgB;;;;;;EAM3B,CAAC;AACH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAEhE,eAAO,MAAM,aAAa
|
|
1
|
+
{"version":3,"file":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,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC;AAEpD,eAAO,MAAM,cAAc;;;;;;;iBAGzB,CAAC;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAI5D,eAAO,MAAM,cAAc;;;iBAIzB,CAAC;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAE5D,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAE1B,CAAC;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAK9D,eAAO,MAAM,WAAW;;;;;;;iBAQtB,CAAC;AACH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC;AAEtD,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAKvB,CAAC;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAGxD,eAAO,MAAM,eAAe;;iBAE1B,CAAC;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC"}
|
|
@@ -38,11 +38,22 @@ export const assetResponse = z.object({
|
|
|
38
38
|
/** The user starred this asset. */
|
|
39
39
|
favorite: z.boolean().optional(),
|
|
40
40
|
/**
|
|
41
|
-
* Present
|
|
42
|
-
* that file is missing or has changed since import or relink.
|
|
41
|
+
* Present on an asset that references a local file in place: true when
|
|
42
|
+
* that file is missing or has changed since import or relink. Also true on
|
|
43
|
+
* an asset whose file is missing from its project folder. An offline
|
|
43
44
|
* asset's `get_url` answers 404 until `relinkExternal` points it at a file.
|
|
44
45
|
*/
|
|
45
46
|
offline: z.boolean().optional(),
|
|
47
|
+
/**
|
|
48
|
+
* True on an asset that references a file outside its project folder in
|
|
49
|
+
* place (linked media). Absent on every other asset.
|
|
50
|
+
*/
|
|
51
|
+
linked: z.boolean().optional(),
|
|
52
|
+
/**
|
|
53
|
+
* The project-relative path of the asset's file in its project folder.
|
|
54
|
+
* Absent on an asset with no file there.
|
|
55
|
+
*/
|
|
56
|
+
workspace_path: z.string().optional(),
|
|
46
57
|
/**
|
|
47
58
|
* Present only on a video asset on a local server: the state of its
|
|
48
59
|
* all-intra preview proxy. `ready` means `proxy_url` plays it. A proxy made
|
|
@@ -132,7 +143,12 @@ export const createUploadOutput = z.object({
|
|
|
132
143
|
upload: uploadTarget.nullable()
|
|
133
144
|
});
|
|
134
145
|
export const finalizeUploadInput = z.object({
|
|
135
|
-
asset_id: z.string().min(1)
|
|
146
|
+
asset_id: z.string().min(1),
|
|
147
|
+
/**
|
|
148
|
+
* Directory in the project folder the file was dropped on, relative to the
|
|
149
|
+
* folder. Omitted, the upload goes to `Imported/`.
|
|
150
|
+
*/
|
|
151
|
+
directory: z.string().optional()
|
|
136
152
|
});
|
|
137
153
|
export const finalizeUploadOutput = assetResponse;
|
|
138
154
|
// ── createExternal (reference a local file in place) ─────────────
|
|
@@ -158,15 +174,40 @@ export const createExternalInput = z.object({
|
|
|
158
174
|
workflow_id: z.string().nullable().optional()
|
|
159
175
|
});
|
|
160
176
|
export const createExternalOutput = assetResponse;
|
|
161
|
-
// ── relinkExternal (point an
|
|
162
|
-
// Keeps the asset id and `get_url`.
|
|
163
|
-
// local file roots, and the file's size and mtime are recorded
|
|
177
|
+
// ── relinkExternal (point an asset at another file) ──────────────
|
|
178
|
+
// Keeps the asset id and `get_url`. An absolute path is validated again
|
|
179
|
+
// against the local file roots, and the file's size and mtime are recorded
|
|
180
|
+
// anew. An asset whose file is in its project folder is pointed at a file in
|
|
181
|
+
// that folder, or at a file outside it, which is copied in.
|
|
164
182
|
export const relinkExternalInput = z.object({
|
|
165
183
|
id: z.string().min(1),
|
|
166
|
-
/**
|
|
184
|
+
/**
|
|
185
|
+
* Absolute path of the replacement file on the server's disk. For an asset
|
|
186
|
+
* in a project folder, a relative path names a file in that folder.
|
|
187
|
+
*/
|
|
167
188
|
path: z.string().min(1)
|
|
168
189
|
});
|
|
169
190
|
export const relinkExternalOutput = assetResponse;
|
|
191
|
+
// ── collect (copy a project's linked files into its folder) ──────
|
|
192
|
+
// Each linked file is copied into `Imported/`, verified, and its row pointed
|
|
193
|
+
// at the copy. Asset ids stay. A linked file that is offline is skipped.
|
|
194
|
+
export const collectInput = z.object({
|
|
195
|
+
project_id: z.string().min(1)
|
|
196
|
+
});
|
|
197
|
+
const uncollectedAsset = z.object({
|
|
198
|
+
id: z.string(),
|
|
199
|
+
name: z.string(),
|
|
200
|
+
reason: z.string()
|
|
201
|
+
});
|
|
202
|
+
export const collectOutput = z.object({
|
|
203
|
+
copied: z.array(z.object({ id: z.string(), name: z.string(), workspace_path: z.string() })),
|
|
204
|
+
/** Linked files that are missing or changed since they were linked. */
|
|
205
|
+
skipped: z.array(uncollectedAsset),
|
|
206
|
+
/** Linked files whose copy could not be written or verified. */
|
|
207
|
+
failed: z.array(uncollectedAsset),
|
|
208
|
+
/** The request was cancelled before every linked file was tried. */
|
|
209
|
+
interrupted: z.boolean()
|
|
210
|
+
});
|
|
170
211
|
// ── ensureProxy (preview proxy for a video asset) ─────────────────
|
|
171
212
|
// Queues an all-intra preview proxy for a video asset at any size and answers
|
|
172
213
|
// the current state. Local server only.
|
|
@@ -196,6 +237,19 @@ export const updateInput = z.object({
|
|
|
196
237
|
data: z.string().nullable().optional(),
|
|
197
238
|
data_encoding: z.enum(["base64", "utf-8"]).nullable().optional()
|
|
198
239
|
});
|
|
240
|
+
// ── copyToProject ────────────────────────────────────────────────
|
|
241
|
+
// Use an asset of another project, Personal included, in `project_id`. The
|
|
242
|
+
// file is copied into the project's `Imported/` directory and the copy is
|
|
243
|
+
// returned; the same unchanged source returns the same copy. An asset of the
|
|
244
|
+
// project itself comes back as it is, with `copied: false`.
|
|
245
|
+
export const copyToProjectInput = z.object({
|
|
246
|
+
asset_id: z.string().min(1),
|
|
247
|
+
project_id: z.string().min(1)
|
|
248
|
+
});
|
|
249
|
+
export const copyToProjectOutput = z.object({
|
|
250
|
+
asset: assetResponse,
|
|
251
|
+
copied: z.boolean()
|
|
252
|
+
});
|
|
199
253
|
// ── delete (DELETE /api/assets/:id) ──────────────────────────────
|
|
200
254
|
// Cascading delete: folders remove all contents recursively. Response
|
|
201
255
|
// carries every id that was deleted so clients can invalidate caches.
|