@archastro/sdk 0.7.0 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/auth.d.ts +5 -3
- package/dist/auth.d.ts.map +1 -1
- package/dist/auth.js +7 -5
- package/dist/auth.js.map +1 -1
- package/dist/channels/api_activity_feed_channel.js +2 -2
- package/dist/channels/api_activity_feed_channel.js.map +1 -1
- package/dist/channels/api_chat_channel.js +2 -2
- package/dist/channels/api_chat_channel.js.map +1 -1
- package/dist/channels/api_object_channel.d.ts +13 -2
- package/dist/channels/api_object_channel.d.ts.map +1 -1
- package/dist/channels/api_object_channel.js +21 -6
- package/dist/channels/api_object_channel.js.map +1 -1
- package/dist/channels/api_tasks_channel.d.ts +30 -0
- package/dist/channels/api_tasks_channel.d.ts.map +1 -0
- package/dist/channels/api_tasks_channel.js +45 -0
- package/dist/channels/api_tasks_channel.js.map +1 -0
- package/dist/client.d.ts +10 -0
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +12 -2
- package/dist/client.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/types/ai.d.ts +66 -52
- package/dist/types/ai.d.ts.map +1 -1
- package/dist/types/ai.js +7 -2
- package/dist/types/ai.js.map +1 -1
- package/dist/types/artifacts.d.ts +8 -8
- package/dist/types/artifacts.js +2 -2
- package/dist/types/artifacts.js.map +1 -1
- package/dist/types/automations.d.ts +68 -10
- package/dist/types/automations.d.ts.map +1 -1
- package/dist/types/automations.js +22 -2
- package/dist/types/automations.js.map +1 -1
- package/dist/types/chat.d.ts +18446 -3559
- package/dist/types/chat.d.ts.map +1 -1
- package/dist/types/chat.js +2 -2
- package/dist/types/chat.js.map +1 -1
- package/dist/types/common.d.ts +12646 -2316
- package/dist/types/common.d.ts.map +1 -1
- package/dist/types/common.js +372 -80
- package/dist/types/common.js.map +1 -1
- package/dist/types/config.d.ts +22 -10
- package/dist/types/config.d.ts.map +1 -1
- package/dist/types/config.js +4 -2
- package/dist/types/config.js.map +1 -1
- package/dist/types/device.d.ts +60 -0
- package/dist/types/device.d.ts.map +1 -0
- package/dist/types/device.js +25 -0
- package/dist/types/device.js.map +1 -0
- package/dist/types/extractions.d.ts +452 -0
- package/dist/types/extractions.d.ts.map +1 -0
- package/dist/types/extractions.js +52 -0
- package/dist/types/extractions.js.map +1 -0
- package/dist/types/image.js +2 -2
- package/dist/types/image.js.map +1 -1
- package/dist/types/index.d.ts +3 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +5 -2
- package/dist/types/index.js.map +1 -1
- package/dist/types/invites.js +2 -2
- package/dist/types/invites.js.map +1 -1
- package/dist/types/notifications.d.ts +2 -2
- package/dist/types/notifications.js +2 -2
- package/dist/types/notifications.js.map +1 -1
- package/dist/types/oauth.d.ts +117 -0
- package/dist/types/oauth.d.ts.map +1 -0
- package/dist/types/oauth.js +21 -0
- package/dist/types/oauth.js.map +1 -0
- package/dist/types/teams.d.ts +2402 -242
- package/dist/types/teams.d.ts.map +1 -1
- package/dist/types/teams.js +2 -2
- package/dist/types/teams.js.map +1 -1
- package/dist/types/threads.d.ts +1419 -328
- package/dist/types/threads.d.ts.map +1 -1
- package/dist/types/threads.js +18 -17
- package/dist/types/threads.js.map +1 -1
- package/dist/types/users.d.ts +2 -2
- package/dist/types/users.js +2 -2
- package/dist/types/users.js.map +1 -1
- package/dist/v1/resources/activity_feed.d.ts +84 -0
- package/dist/v1/resources/activity_feed.d.ts.map +1 -1
- package/dist/v1/resources/activity_feed.js +2 -2
- package/dist/v1/resources/activity_feed.js.map +1 -1
- package/dist/v1/resources/agent_computers.js +2 -2
- package/dist/v1/resources/agent_computers.js.map +1 -1
- package/dist/v1/resources/agent_env_vars.js +2 -2
- package/dist/v1/resources/agent_env_vars.js.map +1 -1
- package/dist/v1/resources/agent_health_actions.js +2 -2
- package/dist/v1/resources/agent_health_actions.js.map +1 -1
- package/dist/v1/resources/agent_installations.d.ts +2 -2
- package/dist/v1/resources/agent_installations.d.ts.map +1 -1
- package/dist/v1/resources/agent_installations.js +3 -3
- package/dist/v1/resources/agent_installations.js.map +1 -1
- package/dist/v1/resources/agent_routine_runs.d.ts +16 -1
- package/dist/v1/resources/agent_routine_runs.d.ts.map +1 -1
- package/dist/v1/resources/agent_routine_runs.js +16 -2
- package/dist/v1/resources/agent_routine_runs.js.map +1 -1
- package/dist/v1/resources/agent_routines.d.ts +47 -3
- package/dist/v1/resources/agent_routines.d.ts.map +1 -1
- package/dist/v1/resources/agent_routines.js +42 -3
- package/dist/v1/resources/agent_routines.js.map +1 -1
- package/dist/v1/resources/agent_sessions.d.ts +14 -2
- package/dist/v1/resources/agent_sessions.d.ts.map +1 -1
- package/dist/v1/resources/agent_sessions.js +14 -3
- package/dist/v1/resources/agent_sessions.js.map +1 -1
- package/dist/v1/resources/agent_skills.js +2 -2
- package/dist/v1/resources/agent_skills.js.map +1 -1
- package/dist/v1/resources/agent_tools.d.ts +2 -2
- package/dist/v1/resources/agent_tools.d.ts.map +1 -1
- package/dist/v1/resources/agent_tools.js +3 -3
- package/dist/v1/resources/agent_tools.js.map +1 -1
- package/dist/v1/resources/agents.d.ts +152 -35
- package/dist/v1/resources/agents.d.ts.map +1 -1
- package/dist/v1/resources/agents.js +148 -42
- package/dist/v1/resources/agents.js.map +1 -1
- package/dist/v1/resources/ai.d.ts +81 -40
- package/dist/v1/resources/ai.d.ts.map +1 -1
- package/dist/v1/resources/ai.js +52 -17
- package/dist/v1/resources/ai.js.map +1 -1
- package/dist/v1/resources/artifacts.js +2 -2
- package/dist/v1/resources/artifacts.js.map +1 -1
- package/dist/v1/resources/automation_runs.d.ts +41 -6
- package/dist/v1/resources/automation_runs.d.ts.map +1 -1
- package/dist/v1/resources/automation_runs.js +47 -8
- package/dist/v1/resources/automation_runs.js.map +1 -1
- package/dist/v1/resources/automations.d.ts +14 -1
- package/dist/v1/resources/automations.d.ts.map +1 -1
- package/dist/v1/resources/automations.js +15 -3
- package/dist/v1/resources/automations.js.map +1 -1
- package/dist/v1/resources/bug_reports.js +2 -2
- package/dist/v1/resources/bug_reports.js.map +1 -1
- package/dist/v1/resources/config.d.ts +3 -0
- package/dist/v1/resources/config.d.ts.map +1 -1
- package/dist/v1/resources/config.js +2 -2
- package/dist/v1/resources/config.js.map +1 -1
- package/dist/v1/resources/custom_objects.js +2 -2
- package/dist/v1/resources/custom_objects.js.map +1 -1
- package/dist/v1/resources/extractions.d.ts +50 -0
- package/dist/v1/resources/extractions.d.ts.map +1 -0
- package/dist/v1/resources/extractions.js +48 -0
- package/dist/v1/resources/extractions.js.map +1 -0
- package/dist/v1/resources/files.d.ts +88 -1
- package/dist/v1/resources/files.d.ts.map +1 -1
- package/dist/v1/resources/files.js +86 -3
- package/dist/v1/resources/files.js.map +1 -1
- package/dist/v1/resources/index.d.ts +5 -0
- package/dist/v1/resources/index.d.ts.map +1 -1
- package/dist/v1/resources/index.js +7 -2
- package/dist/v1/resources/index.js.map +1 -1
- package/dist/v1/resources/installation_sources.js +2 -2
- package/dist/v1/resources/installation_sources.js.map +1 -1
- package/dist/v1/resources/invites.js +2 -2
- package/dist/v1/resources/invites.js.map +1 -1
- package/dist/v1/resources/knowledge_documents.d.ts +33 -1
- package/dist/v1/resources/knowledge_documents.d.ts.map +1 -1
- package/dist/v1/resources/knowledge_documents.js +25 -2
- package/dist/v1/resources/knowledge_documents.js.map +1 -1
- package/dist/v1/resources/knowledge_ingestions.d.ts +16 -0
- package/dist/v1/resources/knowledge_ingestions.d.ts.map +1 -0
- package/dist/v1/resources/knowledge_ingestions.js +21 -0
- package/dist/v1/resources/knowledge_ingestions.js.map +1 -0
- package/dist/v1/resources/knowledge_sources.d.ts +2 -0
- package/dist/v1/resources/knowledge_sources.d.ts.map +1 -1
- package/dist/v1/resources/knowledge_sources.js +3 -2
- package/dist/v1/resources/knowledge_sources.js.map +1 -1
- package/dist/v1/resources/kv.js +2 -2
- package/dist/v1/resources/kv.js.map +1 -1
- package/dist/v1/resources/notification_preferences.js +2 -2
- package/dist/v1/resources/notification_preferences.js.map +1 -1
- package/dist/v1/resources/notifications.js +2 -2
- package/dist/v1/resources/notifications.js.map +1 -1
- package/dist/v1/resources/oauth.d.ts +115 -0
- package/dist/v1/resources/oauth.d.ts.map +1 -0
- package/dist/v1/resources/oauth.js +112 -0
- package/dist/v1/resources/oauth.js.map +1 -0
- package/dist/v1/resources/orgs.js +2 -2
- package/dist/v1/resources/orgs.js.map +1 -1
- package/dist/v1/resources/slack_channel_bindings.d.ts +25 -0
- package/dist/v1/resources/slack_channel_bindings.d.ts.map +1 -1
- package/dist/v1/resources/slack_channel_bindings.js +24 -2
- package/dist/v1/resources/slack_channel_bindings.js.map +1 -1
- package/dist/v1/resources/solution_categories.js +2 -2
- package/dist/v1/resources/solution_categories.js.map +1 -1
- package/dist/v1/resources/solution_instances.d.ts +26 -0
- package/dist/v1/resources/solution_instances.d.ts.map +1 -0
- package/dist/v1/resources/solution_instances.js +35 -0
- package/dist/v1/resources/solution_instances.js.map +1 -0
- package/dist/v1/resources/solution_tags.js +2 -2
- package/dist/v1/resources/solution_tags.js.map +1 -1
- package/dist/v1/resources/solutions.d.ts +85 -1
- package/dist/v1/resources/solutions.d.ts.map +1 -1
- package/dist/v1/resources/solutions.js +67 -3
- package/dist/v1/resources/solutions.js.map +1 -1
- package/dist/v1/resources/team_memberships.js +2 -2
- package/dist/v1/resources/team_memberships.js.map +1 -1
- package/dist/v1/resources/teams.d.ts +210 -4
- package/dist/v1/resources/teams.d.ts.map +1 -1
- package/dist/v1/resources/teams.js +16 -6
- package/dist/v1/resources/teams.js.map +1 -1
- package/dist/v1/resources/thread_messages.d.ts +24 -4
- package/dist/v1/resources/thread_messages.d.ts.map +1 -1
- package/dist/v1/resources/thread_messages.js +9 -6
- package/dist/v1/resources/thread_messages.js.map +1 -1
- package/dist/v1/resources/threads.d.ts +158 -42
- package/dist/v1/resources/threads.d.ts.map +1 -1
- package/dist/v1/resources/threads.js +121 -32
- package/dist/v1/resources/threads.js.map +1 -1
- package/dist/v1/resources/users.d.ts +132 -1
- package/dist/v1/resources/users.d.ts.map +1 -1
- package/dist/v1/resources/users.js +4 -2
- package/dist/v1/resources/users.js.map +1 -1
- package/dist/v1/resources/work_items.d.ts +78 -0
- package/dist/v1/resources/work_items.d.ts.map +1 -0
- package/dist/v1/resources/work_items.js +86 -0
- package/dist/v1/resources/work_items.js.map +1 -0
- package/dist/v1.d.ts +10 -0
- package/dist/v1.d.ts.map +1 -1
- package/dist/v1.js +17 -2
- package/dist/v1.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/** The initial response from an OAuth 2.0 Device Authorization Grant request, containing the codes and URIs needed to complete device authentication. */
|
|
3
|
+
export interface DeviceAuthorizationResponse {
|
|
4
|
+
/** Opaque code identifying this device authorization session. Pass this value when polling the token endpoint; do not display it to the user. */
|
|
5
|
+
device_code: string;
|
|
6
|
+
/** Number of seconds until the `device_code` and `user_code` expire. After expiry the user must restart the authorization flow. */
|
|
7
|
+
expires_in: number;
|
|
8
|
+
/** Minimum number of seconds to wait between polling attempts on the token endpoint. Polling more frequently will result in a `slow_down` error. */
|
|
9
|
+
interval: number;
|
|
10
|
+
/** Short alphanumeric code the user must enter at `verification_uri` to authorize the device. */
|
|
11
|
+
user_code: string;
|
|
12
|
+
/** URL the user visits to enter the `user_code` and approve the authorization request. */
|
|
13
|
+
verification_uri: string;
|
|
14
|
+
/** Full verification URL with the `user_code` pre-filled as a query parameter. Display this as a QR code or deep link to reduce manual entry. */
|
|
15
|
+
verification_uri_complete: string;
|
|
16
|
+
}
|
|
17
|
+
/** Runtime validator for {@link DeviceAuthorizationResponse}. */
|
|
18
|
+
export declare const deviceAuthorizationResponseSchema: z.ZodObject<{
|
|
19
|
+
/** Opaque code identifying this device authorization session. Pass this value when polling the token endpoint; do not display it to the user. */
|
|
20
|
+
device_code: z.ZodString;
|
|
21
|
+
/** Number of seconds until the `device_code` and `user_code` expire. After expiry the user must restart the authorization flow. */
|
|
22
|
+
expires_in: z.ZodNumber;
|
|
23
|
+
/** Minimum number of seconds to wait between polling attempts on the token endpoint. Polling more frequently will result in a `slow_down` error. */
|
|
24
|
+
interval: z.ZodNumber;
|
|
25
|
+
/** Short alphanumeric code the user must enter at `verification_uri` to authorize the device. */
|
|
26
|
+
user_code: z.ZodString;
|
|
27
|
+
/** URL the user visits to enter the `user_code` and approve the authorization request. */
|
|
28
|
+
verification_uri: z.ZodString;
|
|
29
|
+
/** Full verification URL with the `user_code` pre-filled as a query parameter. Display this as a QR code or deep link to reduce manual entry. */
|
|
30
|
+
verification_uri_complete: z.ZodString;
|
|
31
|
+
}, "strip", z.ZodTypeAny, {
|
|
32
|
+
expires_in: number;
|
|
33
|
+
device_code: string;
|
|
34
|
+
interval: number;
|
|
35
|
+
user_code: string;
|
|
36
|
+
verification_uri: string;
|
|
37
|
+
verification_uri_complete: string;
|
|
38
|
+
}, {
|
|
39
|
+
expires_in: number;
|
|
40
|
+
device_code: string;
|
|
41
|
+
interval: number;
|
|
42
|
+
user_code: string;
|
|
43
|
+
verification_uri: string;
|
|
44
|
+
verification_uri_complete: string;
|
|
45
|
+
}>;
|
|
46
|
+
/** The result of a completed OAuth 2.0 Device Authorization flow, indicating whether the user approved or denied the device's access request. */
|
|
47
|
+
export interface DeviceAuthorizationStatusResponse {
|
|
48
|
+
/** Outcome of the device authorization request. One of `"approved"` (the user granted access) or `"denied"` (the user rejected or cancelled the request). */
|
|
49
|
+
status: string;
|
|
50
|
+
}
|
|
51
|
+
/** Runtime validator for {@link DeviceAuthorizationStatusResponse}. */
|
|
52
|
+
export declare const deviceAuthorizationStatusResponseSchema: z.ZodObject<{
|
|
53
|
+
/** Outcome of the device authorization request. One of `"approved"` (the user granted access) or `"denied"` (the user rejected or cancelled the request). */
|
|
54
|
+
status: z.ZodString;
|
|
55
|
+
}, "strip", z.ZodTypeAny, {
|
|
56
|
+
status: string;
|
|
57
|
+
}, {
|
|
58
|
+
status: string;
|
|
59
|
+
}>;
|
|
60
|
+
//# sourceMappingURL=device.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"device.d.ts","sourceRoot":"","sources":["../../src/types/device.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,yJAAyJ;AACzJ,MAAM,WAAW,2BAA2B;IAC1C,iJAAiJ;IACjJ,WAAW,EAAE,MAAM,CAAC;IACpB,mIAAmI;IACnI,UAAU,EAAE,MAAM,CAAC;IACnB,oJAAoJ;IACpJ,QAAQ,EAAE,MAAM,CAAC;IACjB,iGAAiG;IACjG,SAAS,EAAE,MAAM,CAAC;IAClB,0FAA0F;IAC1F,gBAAgB,EAAE,MAAM,CAAC;IACzB,iJAAiJ;IACjJ,yBAAyB,EAAE,MAAM,CAAC;CACnC;AAED,iEAAiE;AACjE,eAAO,MAAM,iCAAiC;IAC5C,iJAAiJ;;IAEjJ,mIAAmI;;IAEnI,oJAAoJ;;IAEpJ,iGAAiG;;IAEjG,0FAA0F;;IAE1F,iJAAiJ;;;;;;;;;;;;;;;;EAE+D,CAAC;AAEnN,iJAAiJ;AACjJ,MAAM,WAAW,iCAAiC;IAChD,6JAA6J;IAC7J,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,uEAAuE;AACvE,eAAO,MAAM,uCAAuC;IAClD,6JAA6J;;;;;;EAEiD,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
// Copyright (c) 2026 ArchAstro Inc. Licensed under the MIT License.
|
|
2
|
+
// This file is auto-generated by @archastro/sdk-generator. Do not edit.
|
|
3
|
+
// Content hash: 03f45a4576cf
|
|
4
|
+
import { z } from "zod";
|
|
5
|
+
/** Runtime validator for {@link DeviceAuthorizationResponse}. */
|
|
6
|
+
export const deviceAuthorizationResponseSchema = z.object({
|
|
7
|
+
/** Opaque code identifying this device authorization session. Pass this value when polling the token endpoint; do not display it to the user. */
|
|
8
|
+
device_code: z.string().describe("Opaque code identifying this device authorization session. Pass this value when polling the token endpoint; do not display it to the user."),
|
|
9
|
+
/** Number of seconds until the `device_code` and `user_code` expire. After expiry the user must restart the authorization flow. */
|
|
10
|
+
expires_in: z.number().int().describe("Number of seconds until the `device_code` and `user_code` expire. After expiry the user must restart the authorization flow."),
|
|
11
|
+
/** Minimum number of seconds to wait between polling attempts on the token endpoint. Polling more frequently will result in a `slow_down` error. */
|
|
12
|
+
interval: z.number().int().describe("Minimum number of seconds to wait between polling attempts on the token endpoint. Polling more frequently will result in a `slow_down` error."),
|
|
13
|
+
/** Short alphanumeric code the user must enter at `verification_uri` to authorize the device. */
|
|
14
|
+
user_code: z.string().describe("Short alphanumeric code the user must enter at `verification_uri` to authorize the device."),
|
|
15
|
+
/** URL the user visits to enter the `user_code` and approve the authorization request. */
|
|
16
|
+
verification_uri: z.string().describe("URL the user visits to enter the `user_code` and approve the authorization request."),
|
|
17
|
+
/** Full verification URL with the `user_code` pre-filled as a query parameter. Display this as a QR code or deep link to reduce manual entry. */
|
|
18
|
+
verification_uri_complete: z.string().describe("Full verification URL with the `user_code` pre-filled as a query parameter. Display this as a QR code or deep link to reduce manual entry."),
|
|
19
|
+
}).describe("The initial response from an OAuth 2.0 Device Authorization Grant request, containing the codes and URIs needed to complete device authentication.");
|
|
20
|
+
/** Runtime validator for {@link DeviceAuthorizationStatusResponse}. */
|
|
21
|
+
export const deviceAuthorizationStatusResponseSchema = z.object({
|
|
22
|
+
/** Outcome of the device authorization request. One of `"approved"` (the user granted access) or `"denied"` (the user rejected or cancelled the request). */
|
|
23
|
+
status: z.string().describe("Outcome of the device authorization request. One of `\"approved\"` (the user granted access) or `\"denied\"` (the user rejected or cancelled the request)."),
|
|
24
|
+
}).describe("The result of a completed OAuth 2.0 Device Authorization flow, indicating whether the user approved or denied the device's access request.");
|
|
25
|
+
//# sourceMappingURL=device.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"device.js","sourceRoot":"","sources":["../../src/types/device.ts"],"names":[],"mappings":"AAAA,oEAAoE;AACpE,wEAAwE;AACxE,6BAA6B;AAE7B,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAkBxB,iEAAiE;AACjE,MAAM,CAAC,MAAM,iCAAiC,GAAG,CAAC,CAAC,MAAM,CAAC;IACxD,iJAAiJ;IACjJ,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,4IAA4I,CAAC;IAC9K,mIAAmI;IACnI,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,CAAC,8HAA8H,CAAC;IACrK,oJAAoJ;IACpJ,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,CAAC,+IAA+I,CAAC;IACpL,iGAAiG;IACjG,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,4FAA4F,CAAC;IAC5H,0FAA0F;IAC1F,gBAAgB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,qFAAqF,CAAC;IAC5H,iJAAiJ;IACjJ,yBAAyB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,4IAA4I,CAAC;CAC7L,CAAC,CAAC,QAAQ,CAAC,oJAAoJ,CAAkD,CAAC;AAQnN,uEAAuE;AACvE,MAAM,CAAC,MAAM,uCAAuC,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9D,6JAA6J;IAC7J,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,4JAA4J,CAAC;CAC1L,CAAC,CAAC,QAAQ,CAAC,4IAA4I,CAAwD,CAAC"}
|
|
@@ -0,0 +1,452 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import type { StorageFile } from "./common.js";
|
|
3
|
+
/** A produced file tracked by an extraction. Type, size, and URL live on the file it points at. */
|
|
4
|
+
export interface ExtractionOutput {
|
|
5
|
+
/** When this output was produced (ISO 8601). */
|
|
6
|
+
created_at?: string | undefined;
|
|
7
|
+
/** The produced file. For a config destination this is the `Storage.File` backing the versioned config row; type, size, and URL live here. */
|
|
8
|
+
file?: StorageFile | undefined;
|
|
9
|
+
/** Output ID (`exo_...`). */
|
|
10
|
+
id: string;
|
|
11
|
+
/** Position of this output within the extraction's output set. */
|
|
12
|
+
ordinal?: number | undefined;
|
|
13
|
+
/** The crawled page path or document path this output came from. */
|
|
14
|
+
source_url?: string | undefined;
|
|
15
|
+
/** Output state. */
|
|
16
|
+
state?: "done" | "failed" | undefined;
|
|
17
|
+
}
|
|
18
|
+
/** Runtime validator for {@link ExtractionOutput}. */
|
|
19
|
+
export declare const extractionOutputSchema: z.ZodObject<{
|
|
20
|
+
/** When this output was produced (ISO 8601). */
|
|
21
|
+
created_at: z.ZodOptional<z.ZodString>;
|
|
22
|
+
/** The produced file. For a config destination this is the `Storage.File` backing the versioned config row; type, size, and URL live here. */
|
|
23
|
+
file: z.ZodOptional<z.ZodObject<{
|
|
24
|
+
content_type: z.ZodOptional<z.ZodString>;
|
|
25
|
+
created_at: z.ZodOptional<z.ZodString>;
|
|
26
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
27
|
+
id: z.ZodString;
|
|
28
|
+
image_source: z.ZodOptional<z.ZodObject<{
|
|
29
|
+
file: z.ZodOptional<z.ZodString>;
|
|
30
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
31
|
+
media: z.ZodOptional<z.ZodString>;
|
|
32
|
+
mime_type: z.ZodOptional<z.ZodString>;
|
|
33
|
+
refresh_url: z.ZodOptional<z.ZodString>;
|
|
34
|
+
url: z.ZodOptional<z.ZodString>;
|
|
35
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
36
|
+
}, "strip", z.ZodTypeAny, {
|
|
37
|
+
mime_type?: string | undefined;
|
|
38
|
+
file?: string | undefined;
|
|
39
|
+
height?: number | undefined;
|
|
40
|
+
media?: string | undefined;
|
|
41
|
+
refresh_url?: string | undefined;
|
|
42
|
+
url?: string | undefined;
|
|
43
|
+
width?: number | undefined;
|
|
44
|
+
}, {
|
|
45
|
+
mime_type?: string | undefined;
|
|
46
|
+
file?: string | undefined;
|
|
47
|
+
height?: number | undefined;
|
|
48
|
+
media?: string | undefined;
|
|
49
|
+
refresh_url?: string | undefined;
|
|
50
|
+
url?: string | undefined;
|
|
51
|
+
width?: number | undefined;
|
|
52
|
+
}>>;
|
|
53
|
+
org: z.ZodOptional<z.ZodString>;
|
|
54
|
+
sandbox: z.ZodOptional<z.ZodString>;
|
|
55
|
+
share_url: z.ZodOptional<z.ZodString>;
|
|
56
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
57
|
+
updated_at: z.ZodOptional<z.ZodString>;
|
|
58
|
+
url: z.ZodOptional<z.ZodString>;
|
|
59
|
+
}, "strip", z.ZodTypeAny, {
|
|
60
|
+
id: string;
|
|
61
|
+
org?: string | undefined;
|
|
62
|
+
created_at?: string | undefined;
|
|
63
|
+
updated_at?: string | undefined;
|
|
64
|
+
sandbox?: string | undefined;
|
|
65
|
+
url?: string | undefined;
|
|
66
|
+
content_type?: string | undefined;
|
|
67
|
+
filename?: string | undefined;
|
|
68
|
+
image_source?: {
|
|
69
|
+
mime_type?: string | undefined;
|
|
70
|
+
file?: string | undefined;
|
|
71
|
+
height?: number | undefined;
|
|
72
|
+
media?: string | undefined;
|
|
73
|
+
refresh_url?: string | undefined;
|
|
74
|
+
url?: string | undefined;
|
|
75
|
+
width?: number | undefined;
|
|
76
|
+
} | undefined;
|
|
77
|
+
share_url?: string | undefined;
|
|
78
|
+
size?: number | undefined;
|
|
79
|
+
}, {
|
|
80
|
+
id: string;
|
|
81
|
+
org?: string | undefined;
|
|
82
|
+
created_at?: string | undefined;
|
|
83
|
+
updated_at?: string | undefined;
|
|
84
|
+
sandbox?: string | undefined;
|
|
85
|
+
url?: string | undefined;
|
|
86
|
+
content_type?: string | undefined;
|
|
87
|
+
filename?: string | undefined;
|
|
88
|
+
image_source?: {
|
|
89
|
+
mime_type?: string | undefined;
|
|
90
|
+
file?: string | undefined;
|
|
91
|
+
height?: number | undefined;
|
|
92
|
+
media?: string | undefined;
|
|
93
|
+
refresh_url?: string | undefined;
|
|
94
|
+
url?: string | undefined;
|
|
95
|
+
width?: number | undefined;
|
|
96
|
+
} | undefined;
|
|
97
|
+
share_url?: string | undefined;
|
|
98
|
+
size?: number | undefined;
|
|
99
|
+
}>>;
|
|
100
|
+
/** Output ID (`exo_...`). */
|
|
101
|
+
id: z.ZodString;
|
|
102
|
+
/** Position of this output within the extraction's output set. */
|
|
103
|
+
ordinal: z.ZodOptional<z.ZodNumber>;
|
|
104
|
+
/** The crawled page path or document path this output came from. */
|
|
105
|
+
source_url: z.ZodOptional<z.ZodString>;
|
|
106
|
+
/** Output state. */
|
|
107
|
+
state: z.ZodOptional<z.ZodEnum<["done", "failed"]>>;
|
|
108
|
+
}, "strip", z.ZodTypeAny, {
|
|
109
|
+
id: string;
|
|
110
|
+
created_at?: string | undefined;
|
|
111
|
+
file?: {
|
|
112
|
+
id: string;
|
|
113
|
+
org?: string | undefined;
|
|
114
|
+
created_at?: string | undefined;
|
|
115
|
+
updated_at?: string | undefined;
|
|
116
|
+
sandbox?: string | undefined;
|
|
117
|
+
url?: string | undefined;
|
|
118
|
+
content_type?: string | undefined;
|
|
119
|
+
filename?: string | undefined;
|
|
120
|
+
image_source?: {
|
|
121
|
+
mime_type?: string | undefined;
|
|
122
|
+
file?: string | undefined;
|
|
123
|
+
height?: number | undefined;
|
|
124
|
+
media?: string | undefined;
|
|
125
|
+
refresh_url?: string | undefined;
|
|
126
|
+
url?: string | undefined;
|
|
127
|
+
width?: number | undefined;
|
|
128
|
+
} | undefined;
|
|
129
|
+
share_url?: string | undefined;
|
|
130
|
+
size?: number | undefined;
|
|
131
|
+
} | undefined;
|
|
132
|
+
state?: "done" | "failed" | undefined;
|
|
133
|
+
ordinal?: number | undefined;
|
|
134
|
+
source_url?: string | undefined;
|
|
135
|
+
}, {
|
|
136
|
+
id: string;
|
|
137
|
+
created_at?: string | undefined;
|
|
138
|
+
file?: {
|
|
139
|
+
id: string;
|
|
140
|
+
org?: string | undefined;
|
|
141
|
+
created_at?: string | undefined;
|
|
142
|
+
updated_at?: string | undefined;
|
|
143
|
+
sandbox?: string | undefined;
|
|
144
|
+
url?: string | undefined;
|
|
145
|
+
content_type?: string | undefined;
|
|
146
|
+
filename?: string | undefined;
|
|
147
|
+
image_source?: {
|
|
148
|
+
mime_type?: string | undefined;
|
|
149
|
+
file?: string | undefined;
|
|
150
|
+
height?: number | undefined;
|
|
151
|
+
media?: string | undefined;
|
|
152
|
+
refresh_url?: string | undefined;
|
|
153
|
+
url?: string | undefined;
|
|
154
|
+
width?: number | undefined;
|
|
155
|
+
} | undefined;
|
|
156
|
+
share_url?: string | undefined;
|
|
157
|
+
size?: number | undefined;
|
|
158
|
+
} | undefined;
|
|
159
|
+
state?: "done" | "failed" | undefined;
|
|
160
|
+
ordinal?: number | undefined;
|
|
161
|
+
source_url?: string | undefined;
|
|
162
|
+
}>;
|
|
163
|
+
/** An extraction job: yields text from a document or website into a destination namespace, without committing knowledge to an agent. */
|
|
164
|
+
export interface Extraction {
|
|
165
|
+
/** Owning agent (`agt_...`); `null` when not agent-scoped. */
|
|
166
|
+
agent?: string | undefined;
|
|
167
|
+
/** Total bytes across produced storage files (a derived aggregate). */
|
|
168
|
+
byte_count?: number | undefined;
|
|
169
|
+
/** When the extraction was created (ISO 8601). */
|
|
170
|
+
created_at?: string | undefined;
|
|
171
|
+
/** Where outputs were written: `{ kind, path_prefix }`. */
|
|
172
|
+
destination?: Record<string, unknown> | undefined;
|
|
173
|
+
/** Failure category when `state` is `failed`; `null` otherwise. */
|
|
174
|
+
failure_reason?: "fetch_failed" | "unsupported_content" | "extraction_failed" | "timeout" | "internal_error" | undefined;
|
|
175
|
+
/** Source file (`fil_...`) for document extraction; `null` for link/site. */
|
|
176
|
+
file?: string | undefined;
|
|
177
|
+
/** Extraction ID (`ext_...`). */
|
|
178
|
+
id: string;
|
|
179
|
+
/** What is being extracted. */
|
|
180
|
+
kind?: "document" | "link" | "site" | undefined;
|
|
181
|
+
/** Owning organization (`org_...`). */
|
|
182
|
+
org?: string | undefined;
|
|
183
|
+
/** Number of produced output files (a derived aggregate). */
|
|
184
|
+
output_count?: number | undefined;
|
|
185
|
+
/** Produced output files; populated only when the association is preloaded. */
|
|
186
|
+
outputs?: ExtractionOutput[] | undefined;
|
|
187
|
+
/** Lifecycle state of the extraction job. */
|
|
188
|
+
state?: "pending" | "running" | "done" | "failed" | undefined;
|
|
189
|
+
/** When the extraction was last updated (ISO 8601). */
|
|
190
|
+
updated_at?: string | undefined;
|
|
191
|
+
/** Source URL for link/site extraction; `null` for document. */
|
|
192
|
+
url?: string | undefined;
|
|
193
|
+
}
|
|
194
|
+
/** Runtime validator for {@link Extraction}. */
|
|
195
|
+
export declare const extractionSchema: z.ZodObject<{
|
|
196
|
+
/** Owning agent (`agt_...`); `null` when not agent-scoped. */
|
|
197
|
+
agent: z.ZodOptional<z.ZodString>;
|
|
198
|
+
/** Total bytes across produced storage files (a derived aggregate). */
|
|
199
|
+
byte_count: z.ZodOptional<z.ZodNumber>;
|
|
200
|
+
/** When the extraction was created (ISO 8601). */
|
|
201
|
+
created_at: z.ZodOptional<z.ZodString>;
|
|
202
|
+
/** Where outputs were written: `{ kind, path_prefix }`. */
|
|
203
|
+
destination: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
204
|
+
/** Failure category when `state` is `failed`; `null` otherwise. */
|
|
205
|
+
failure_reason: z.ZodOptional<z.ZodEnum<["fetch_failed", "unsupported_content", "extraction_failed", "timeout", "internal_error"]>>;
|
|
206
|
+
/** Source file (`fil_...`) for document extraction; `null` for link/site. */
|
|
207
|
+
file: z.ZodOptional<z.ZodString>;
|
|
208
|
+
/** Extraction ID (`ext_...`). */
|
|
209
|
+
id: z.ZodString;
|
|
210
|
+
/** What is being extracted. */
|
|
211
|
+
kind: z.ZodOptional<z.ZodEnum<["document", "link", "site"]>>;
|
|
212
|
+
/** Owning organization (`org_...`). */
|
|
213
|
+
org: z.ZodOptional<z.ZodString>;
|
|
214
|
+
/** Number of produced output files (a derived aggregate). */
|
|
215
|
+
output_count: z.ZodOptional<z.ZodNumber>;
|
|
216
|
+
/** Produced output files; populated only when the association is preloaded. */
|
|
217
|
+
outputs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
218
|
+
/** When this output was produced (ISO 8601). */
|
|
219
|
+
created_at: z.ZodOptional<z.ZodString>;
|
|
220
|
+
/** The produced file. For a config destination this is the `Storage.File` backing the versioned config row; type, size, and URL live here. */
|
|
221
|
+
file: z.ZodOptional<z.ZodObject<{
|
|
222
|
+
content_type: z.ZodOptional<z.ZodString>;
|
|
223
|
+
created_at: z.ZodOptional<z.ZodString>;
|
|
224
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
225
|
+
id: z.ZodString;
|
|
226
|
+
image_source: z.ZodOptional<z.ZodObject<{
|
|
227
|
+
file: z.ZodOptional<z.ZodString>;
|
|
228
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
229
|
+
media: z.ZodOptional<z.ZodString>;
|
|
230
|
+
mime_type: z.ZodOptional<z.ZodString>;
|
|
231
|
+
refresh_url: z.ZodOptional<z.ZodString>;
|
|
232
|
+
url: z.ZodOptional<z.ZodString>;
|
|
233
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
234
|
+
}, "strip", z.ZodTypeAny, {
|
|
235
|
+
mime_type?: string | undefined;
|
|
236
|
+
file?: string | undefined;
|
|
237
|
+
height?: number | undefined;
|
|
238
|
+
media?: string | undefined;
|
|
239
|
+
refresh_url?: string | undefined;
|
|
240
|
+
url?: string | undefined;
|
|
241
|
+
width?: number | undefined;
|
|
242
|
+
}, {
|
|
243
|
+
mime_type?: string | undefined;
|
|
244
|
+
file?: string | undefined;
|
|
245
|
+
height?: number | undefined;
|
|
246
|
+
media?: string | undefined;
|
|
247
|
+
refresh_url?: string | undefined;
|
|
248
|
+
url?: string | undefined;
|
|
249
|
+
width?: number | undefined;
|
|
250
|
+
}>>;
|
|
251
|
+
org: z.ZodOptional<z.ZodString>;
|
|
252
|
+
sandbox: z.ZodOptional<z.ZodString>;
|
|
253
|
+
share_url: z.ZodOptional<z.ZodString>;
|
|
254
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
255
|
+
updated_at: z.ZodOptional<z.ZodString>;
|
|
256
|
+
url: z.ZodOptional<z.ZodString>;
|
|
257
|
+
}, "strip", z.ZodTypeAny, {
|
|
258
|
+
id: string;
|
|
259
|
+
org?: string | undefined;
|
|
260
|
+
created_at?: string | undefined;
|
|
261
|
+
updated_at?: string | undefined;
|
|
262
|
+
sandbox?: string | undefined;
|
|
263
|
+
url?: string | undefined;
|
|
264
|
+
content_type?: string | undefined;
|
|
265
|
+
filename?: string | undefined;
|
|
266
|
+
image_source?: {
|
|
267
|
+
mime_type?: string | undefined;
|
|
268
|
+
file?: string | undefined;
|
|
269
|
+
height?: number | undefined;
|
|
270
|
+
media?: string | undefined;
|
|
271
|
+
refresh_url?: string | undefined;
|
|
272
|
+
url?: string | undefined;
|
|
273
|
+
width?: number | undefined;
|
|
274
|
+
} | undefined;
|
|
275
|
+
share_url?: string | undefined;
|
|
276
|
+
size?: number | undefined;
|
|
277
|
+
}, {
|
|
278
|
+
id: string;
|
|
279
|
+
org?: string | undefined;
|
|
280
|
+
created_at?: string | undefined;
|
|
281
|
+
updated_at?: string | undefined;
|
|
282
|
+
sandbox?: string | undefined;
|
|
283
|
+
url?: string | undefined;
|
|
284
|
+
content_type?: string | undefined;
|
|
285
|
+
filename?: string | undefined;
|
|
286
|
+
image_source?: {
|
|
287
|
+
mime_type?: string | undefined;
|
|
288
|
+
file?: string | undefined;
|
|
289
|
+
height?: number | undefined;
|
|
290
|
+
media?: string | undefined;
|
|
291
|
+
refresh_url?: string | undefined;
|
|
292
|
+
url?: string | undefined;
|
|
293
|
+
width?: number | undefined;
|
|
294
|
+
} | undefined;
|
|
295
|
+
share_url?: string | undefined;
|
|
296
|
+
size?: number | undefined;
|
|
297
|
+
}>>;
|
|
298
|
+
/** Output ID (`exo_...`). */
|
|
299
|
+
id: z.ZodString;
|
|
300
|
+
/** Position of this output within the extraction's output set. */
|
|
301
|
+
ordinal: z.ZodOptional<z.ZodNumber>;
|
|
302
|
+
/** The crawled page path or document path this output came from. */
|
|
303
|
+
source_url: z.ZodOptional<z.ZodString>;
|
|
304
|
+
/** Output state. */
|
|
305
|
+
state: z.ZodOptional<z.ZodEnum<["done", "failed"]>>;
|
|
306
|
+
}, "strip", z.ZodTypeAny, {
|
|
307
|
+
id: string;
|
|
308
|
+
created_at?: string | undefined;
|
|
309
|
+
file?: {
|
|
310
|
+
id: string;
|
|
311
|
+
org?: string | undefined;
|
|
312
|
+
created_at?: string | undefined;
|
|
313
|
+
updated_at?: string | undefined;
|
|
314
|
+
sandbox?: string | undefined;
|
|
315
|
+
url?: string | undefined;
|
|
316
|
+
content_type?: string | undefined;
|
|
317
|
+
filename?: string | undefined;
|
|
318
|
+
image_source?: {
|
|
319
|
+
mime_type?: string | undefined;
|
|
320
|
+
file?: string | undefined;
|
|
321
|
+
height?: number | undefined;
|
|
322
|
+
media?: string | undefined;
|
|
323
|
+
refresh_url?: string | undefined;
|
|
324
|
+
url?: string | undefined;
|
|
325
|
+
width?: number | undefined;
|
|
326
|
+
} | undefined;
|
|
327
|
+
share_url?: string | undefined;
|
|
328
|
+
size?: number | undefined;
|
|
329
|
+
} | undefined;
|
|
330
|
+
state?: "done" | "failed" | undefined;
|
|
331
|
+
ordinal?: number | undefined;
|
|
332
|
+
source_url?: string | undefined;
|
|
333
|
+
}, {
|
|
334
|
+
id: string;
|
|
335
|
+
created_at?: string | undefined;
|
|
336
|
+
file?: {
|
|
337
|
+
id: string;
|
|
338
|
+
org?: string | undefined;
|
|
339
|
+
created_at?: string | undefined;
|
|
340
|
+
updated_at?: string | undefined;
|
|
341
|
+
sandbox?: string | undefined;
|
|
342
|
+
url?: string | undefined;
|
|
343
|
+
content_type?: string | undefined;
|
|
344
|
+
filename?: string | undefined;
|
|
345
|
+
image_source?: {
|
|
346
|
+
mime_type?: string | undefined;
|
|
347
|
+
file?: string | undefined;
|
|
348
|
+
height?: number | undefined;
|
|
349
|
+
media?: string | undefined;
|
|
350
|
+
refresh_url?: string | undefined;
|
|
351
|
+
url?: string | undefined;
|
|
352
|
+
width?: number | undefined;
|
|
353
|
+
} | undefined;
|
|
354
|
+
share_url?: string | undefined;
|
|
355
|
+
size?: number | undefined;
|
|
356
|
+
} | undefined;
|
|
357
|
+
state?: "done" | "failed" | undefined;
|
|
358
|
+
ordinal?: number | undefined;
|
|
359
|
+
source_url?: string | undefined;
|
|
360
|
+
}>, "many">>;
|
|
361
|
+
/** Lifecycle state of the extraction job. */
|
|
362
|
+
state: z.ZodOptional<z.ZodEnum<["pending", "running", "done", "failed"]>>;
|
|
363
|
+
/** When the extraction was last updated (ISO 8601). */
|
|
364
|
+
updated_at: z.ZodOptional<z.ZodString>;
|
|
365
|
+
/** Source URL for link/site extraction; `null` for document. */
|
|
366
|
+
url: z.ZodOptional<z.ZodString>;
|
|
367
|
+
}, "strip", z.ZodTypeAny, {
|
|
368
|
+
id: string;
|
|
369
|
+
kind?: "document" | "link" | "site" | undefined;
|
|
370
|
+
agent?: string | undefined;
|
|
371
|
+
org?: string | undefined;
|
|
372
|
+
created_at?: string | undefined;
|
|
373
|
+
updated_at?: string | undefined;
|
|
374
|
+
file?: string | undefined;
|
|
375
|
+
url?: string | undefined;
|
|
376
|
+
state?: "done" | "pending" | "failed" | "running" | undefined;
|
|
377
|
+
byte_count?: number | undefined;
|
|
378
|
+
destination?: Record<string, unknown> | undefined;
|
|
379
|
+
failure_reason?: "fetch_failed" | "unsupported_content" | "extraction_failed" | "timeout" | "internal_error" | undefined;
|
|
380
|
+
output_count?: number | undefined;
|
|
381
|
+
outputs?: {
|
|
382
|
+
id: string;
|
|
383
|
+
created_at?: string | undefined;
|
|
384
|
+
file?: {
|
|
385
|
+
id: string;
|
|
386
|
+
org?: string | undefined;
|
|
387
|
+
created_at?: string | undefined;
|
|
388
|
+
updated_at?: string | undefined;
|
|
389
|
+
sandbox?: string | undefined;
|
|
390
|
+
url?: string | undefined;
|
|
391
|
+
content_type?: string | undefined;
|
|
392
|
+
filename?: string | undefined;
|
|
393
|
+
image_source?: {
|
|
394
|
+
mime_type?: string | undefined;
|
|
395
|
+
file?: string | undefined;
|
|
396
|
+
height?: number | undefined;
|
|
397
|
+
media?: string | undefined;
|
|
398
|
+
refresh_url?: string | undefined;
|
|
399
|
+
url?: string | undefined;
|
|
400
|
+
width?: number | undefined;
|
|
401
|
+
} | undefined;
|
|
402
|
+
share_url?: string | undefined;
|
|
403
|
+
size?: number | undefined;
|
|
404
|
+
} | undefined;
|
|
405
|
+
state?: "done" | "failed" | undefined;
|
|
406
|
+
ordinal?: number | undefined;
|
|
407
|
+
source_url?: string | undefined;
|
|
408
|
+
}[] | undefined;
|
|
409
|
+
}, {
|
|
410
|
+
id: string;
|
|
411
|
+
kind?: "document" | "link" | "site" | undefined;
|
|
412
|
+
agent?: string | undefined;
|
|
413
|
+
org?: string | undefined;
|
|
414
|
+
created_at?: string | undefined;
|
|
415
|
+
updated_at?: string | undefined;
|
|
416
|
+
file?: string | undefined;
|
|
417
|
+
url?: string | undefined;
|
|
418
|
+
state?: "done" | "pending" | "failed" | "running" | undefined;
|
|
419
|
+
byte_count?: number | undefined;
|
|
420
|
+
destination?: Record<string, unknown> | undefined;
|
|
421
|
+
failure_reason?: "fetch_failed" | "unsupported_content" | "extraction_failed" | "timeout" | "internal_error" | undefined;
|
|
422
|
+
output_count?: number | undefined;
|
|
423
|
+
outputs?: {
|
|
424
|
+
id: string;
|
|
425
|
+
created_at?: string | undefined;
|
|
426
|
+
file?: {
|
|
427
|
+
id: string;
|
|
428
|
+
org?: string | undefined;
|
|
429
|
+
created_at?: string | undefined;
|
|
430
|
+
updated_at?: string | undefined;
|
|
431
|
+
sandbox?: string | undefined;
|
|
432
|
+
url?: string | undefined;
|
|
433
|
+
content_type?: string | undefined;
|
|
434
|
+
filename?: string | undefined;
|
|
435
|
+
image_source?: {
|
|
436
|
+
mime_type?: string | undefined;
|
|
437
|
+
file?: string | undefined;
|
|
438
|
+
height?: number | undefined;
|
|
439
|
+
media?: string | undefined;
|
|
440
|
+
refresh_url?: string | undefined;
|
|
441
|
+
url?: string | undefined;
|
|
442
|
+
width?: number | undefined;
|
|
443
|
+
} | undefined;
|
|
444
|
+
share_url?: string | undefined;
|
|
445
|
+
size?: number | undefined;
|
|
446
|
+
} | undefined;
|
|
447
|
+
state?: "done" | "failed" | undefined;
|
|
448
|
+
ordinal?: number | undefined;
|
|
449
|
+
source_url?: string | undefined;
|
|
450
|
+
}[] | undefined;
|
|
451
|
+
}>;
|
|
452
|
+
//# sourceMappingURL=extractions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"extractions.d.ts","sourceRoot":"","sources":["../../src/types/extractions.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE/C,mGAAmG;AACnG,MAAM,WAAW,gBAAgB;IAC/B,gDAAgD;IAChD,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,8IAA8I;IAC9I,IAAI,CAAC,EAAE,WAAW,GAAG,SAAS,CAAC;IAC/B,6BAA6B;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,kEAAkE;IAClE,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,oEAAoE;IACpE,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,oBAAoB;IACpB,KAAK,CAAC,EAAE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S,GAAG,SAAS,GAAG,MAAM,GAAG,QAAQ,GAAG,SAAS,CAAC;IAC9D,uDAAuD;IACvD,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,gEAAgE;IAChE,GAAG,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC1B;AAED,gDAAgD;AAChD,eAAO,MAAM,gBAAgB;IAC3B,8DAA8D;;IAE9D,uEAAuE;;IAEvE,kDAAkD;;IAElD,2DAA2D;;IAE3D,mEAAmE;;IAEnE,6EAA6E;;IAE7E,iCAAiC;;IAEjC,+BAA+B;;IAE/B,uCAAuC;;IAEvC,6DAA6D;;IAE7D,+EAA+E;;QApE/E,gDAAgD;;QAEhD,8IAA8I;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAE9I,6BAA6B;;QAE7B,kEAAkE;;QAElE,oEAAoE;;QAEpE,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA4DpB,6CAA6C;;IAE7C,uDAAuD;;IAEvD,gEAAgE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAE8G,CAAC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
// Copyright (c) 2026 ArchAstro Inc. Licensed under the MIT License.
|
|
2
|
+
// This file is auto-generated by @archastro/sdk-generator. Do not edit.
|
|
3
|
+
// Content hash: 997ff463327e
|
|
4
|
+
import { z } from "zod";
|
|
5
|
+
import { storageFileSchema } from "./common.js";
|
|
6
|
+
/** Runtime validator for {@link ExtractionOutput}. */
|
|
7
|
+
export const extractionOutputSchema = z.object({
|
|
8
|
+
/** When this output was produced (ISO 8601). */
|
|
9
|
+
created_at: z.string().optional().describe("When this output was produced (ISO 8601)."),
|
|
10
|
+
/** The produced file. For a config destination this is the `Storage.File` backing the versioned config row; type, size, and URL live here. */
|
|
11
|
+
file: storageFileSchema.optional().describe("The produced file. For a config destination this is the `Storage.File` backing the versioned config row; type, size, and URL live here."),
|
|
12
|
+
/** Output ID (`exo_...`). */
|
|
13
|
+
id: z.string().describe("Output ID (`exo_...`)."),
|
|
14
|
+
/** Position of this output within the extraction's output set. */
|
|
15
|
+
ordinal: z.number().int().optional().describe("Position of this output within the extraction's output set."),
|
|
16
|
+
/** The crawled page path or document path this output came from. */
|
|
17
|
+
source_url: z.string().optional().describe("The crawled page path or document path this output came from."),
|
|
18
|
+
/** Output state. */
|
|
19
|
+
state: z.enum(["done", "failed"]).optional().describe("Output state."),
|
|
20
|
+
}).describe("A produced file tracked by an extraction. Type, size, and URL live on the file it points at.");
|
|
21
|
+
/** Runtime validator for {@link Extraction}. */
|
|
22
|
+
export const extractionSchema = z.object({
|
|
23
|
+
/** Owning agent (`agt_...`); `null` when not agent-scoped. */
|
|
24
|
+
agent: z.string().optional().describe("Owning agent (`agt_...`); `null` when not agent-scoped."),
|
|
25
|
+
/** Total bytes across produced storage files (a derived aggregate). */
|
|
26
|
+
byte_count: z.number().int().optional().describe("Total bytes across produced storage files (a derived aggregate)."),
|
|
27
|
+
/** When the extraction was created (ISO 8601). */
|
|
28
|
+
created_at: z.string().optional().describe("When the extraction was created (ISO 8601)."),
|
|
29
|
+
/** Where outputs were written: `{ kind, path_prefix }`. */
|
|
30
|
+
destination: z.record(z.unknown()).optional().describe("Where outputs were written: `{ kind, path_prefix }`."),
|
|
31
|
+
/** Failure category when `state` is `failed`; `null` otherwise. */
|
|
32
|
+
failure_reason: z.enum(["fetch_failed", "unsupported_content", "extraction_failed", "timeout", "internal_error"]).optional().describe("Failure category when `state` is `failed`; `null` otherwise."),
|
|
33
|
+
/** Source file (`fil_...`) for document extraction; `null` for link/site. */
|
|
34
|
+
file: z.string().optional().describe("Source file (`fil_...`) for document extraction; `null` for link/site."),
|
|
35
|
+
/** Extraction ID (`ext_...`). */
|
|
36
|
+
id: z.string().describe("Extraction ID (`ext_...`)."),
|
|
37
|
+
/** What is being extracted. */
|
|
38
|
+
kind: z.enum(["document", "link", "site"]).optional().describe("What is being extracted."),
|
|
39
|
+
/** Owning organization (`org_...`). */
|
|
40
|
+
org: z.string().optional().describe("Owning organization (`org_...`)."),
|
|
41
|
+
/** Number of produced output files (a derived aggregate). */
|
|
42
|
+
output_count: z.number().int().optional().describe("Number of produced output files (a derived aggregate)."),
|
|
43
|
+
/** Produced output files; populated only when the association is preloaded. */
|
|
44
|
+
outputs: z.array(extractionOutputSchema).optional().describe("Produced output files; populated only when the association is preloaded."),
|
|
45
|
+
/** Lifecycle state of the extraction job. */
|
|
46
|
+
state: z.enum(["pending", "running", "done", "failed"]).optional().describe("Lifecycle state of the extraction job."),
|
|
47
|
+
/** When the extraction was last updated (ISO 8601). */
|
|
48
|
+
updated_at: z.string().optional().describe("When the extraction was last updated (ISO 8601)."),
|
|
49
|
+
/** Source URL for link/site extraction; `null` for document. */
|
|
50
|
+
url: z.string().optional().describe("Source URL for link/site extraction; `null` for document."),
|
|
51
|
+
}).describe("An extraction job: yields text from a document or website into a destination namespace, without committing knowledge to an agent.");
|
|
52
|
+
//# sourceMappingURL=extractions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"extractions.js","sourceRoot":"","sources":["../../src/types/extractions.ts"],"names":[],"mappings":"AAAA,oEAAoE;AACpE,wEAAwE;AACxE,6BAA6B;AAE7B,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAmBhD,sDAAsD;AACtD,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC7C,gDAAgD;IAChD,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,2CAA2C,CAAC;IACvF,8IAA8I;IAC9I,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2DAA2D,CAAC;CACjG,CAAC,CAAC,QAAQ,CAAC,mIAAmI,CAAiC,CAAC"}
|
package/dist/types/image.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
// Copyright (c) 2026 ArchAstro Inc.
|
|
1
|
+
// Copyright (c) 2026 ArchAstro Inc. Licensed under the MIT License.
|
|
2
2
|
// This file is auto-generated by @archastro/sdk-generator. Do not edit.
|
|
3
|
-
// Content hash:
|
|
3
|
+
// Content hash: 167e099ca342
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
/** Runtime validator for {@link ImageSource}. */
|
|
6
6
|
export const imageSourceSchema = z.object({
|
package/dist/types/image.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"image.js","sourceRoot":"","sources":["../../src/types/image.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"image.js","sourceRoot":"","sources":["../../src/types/image.ts"],"names":[],"mappings":"AAAA,oEAAoE;AACpE,wEAAwE;AACxE,6BAA6B;AAE7B,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAoBxB,iDAAiD;AACjD,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,MAAM,CAAC;IACxC,qHAAqH;IACrH,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,gHAAgH,CAAC;IACtJ,0DAA0D;IAC1D,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,qDAAqD,CAAC;IACnG,4GAA4G;IAC5G,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,uGAAuG,CAAC;IAC9I,yFAAyF;IACzF,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,wFAAwF,CAAC;IACnI,gJAAgJ;IAChJ,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,2IAA2I,CAAC;IACxL,wIAAwI;IACxI,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,mIAAmI,CAAC;IACxK,yDAAyD;IACzD,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,oDAAoD,CAAC;CAClG,CAAC,CAAC,QAAQ,CAAC,iJAAiJ,CAAkC,CAAC"}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -4,9 +4,12 @@ export * from "./automations.js";
|
|
|
4
4
|
export * from "./chat.js";
|
|
5
5
|
export * from "./common.js";
|
|
6
6
|
export * from "./config.js";
|
|
7
|
+
export * from "./device.js";
|
|
8
|
+
export * from "./extractions.js";
|
|
7
9
|
export * from "./image.js";
|
|
8
10
|
export * from "./invites.js";
|
|
9
11
|
export * from "./notifications.js";
|
|
12
|
+
export * from "./oauth.js";
|
|
10
13
|
export * from "./teams.js";
|
|
11
14
|
export * from "./threads.js";
|
|
12
15
|
export * from "./users.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAIA,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAIA,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC"}
|