@archastro/sdk 0.20.0 → 0.22.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/channels/api_artifact_channel.d.ts +48 -0
- package/dist/channels/api_artifact_channel.d.ts.map +1 -0
- package/dist/channels/api_artifact_channel.js +85 -0
- package/dist/channels/api_artifact_channel.js.map +1 -0
- package/dist/channels/api_chat_channel.d.ts +3 -1
- package/dist/channels/api_chat_channel.d.ts.map +1 -1
- package/dist/channels/api_chat_channel.js +6 -2
- package/dist/channels/api_chat_channel.js.map +1 -1
- package/dist/client.d.ts +10 -0
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +11 -1
- 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 +2 -1
- package/dist/index.js.map +1 -1
- package/dist/types/ai.d.ts +124 -10
- package/dist/types/ai.d.ts.map +1 -1
- package/dist/types/ai.js +27 -7
- package/dist/types/ai.js.map +1 -1
- package/dist/types/artifacts.d.ts +448 -0
- package/dist/types/artifacts.d.ts.map +1 -1
- package/dist/types/artifacts.js +65 -1
- package/dist/types/artifacts.js.map +1 -1
- package/dist/types/automations.d.ts +26 -26
- package/dist/types/automations.d.ts.map +1 -1
- package/dist/types/automations.js +10 -10
- package/dist/types/automations.js.map +1 -1
- package/dist/types/chat.d.ts +4150 -0
- package/dist/types/chat.d.ts.map +1 -1
- package/dist/types/common.d.ts +3635 -357
- package/dist/types/common.d.ts.map +1 -1
- package/dist/types/common.js +186 -32
- package/dist/types/common.js.map +1 -1
- package/dist/types/computers.d.ts +42 -0
- package/dist/types/computers.d.ts.map +1 -0
- package/dist/types/computers.js +19 -0
- package/dist/types/computers.js.map +1 -0
- package/dist/types/events.d.ts +34 -16
- package/dist/types/events.d.ts.map +1 -1
- package/dist/types/events.js +3 -1
- package/dist/types/events.js.map +1 -1
- package/dist/types/index.d.ts +2 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +3 -1
- package/dist/types/index.js.map +1 -1
- package/dist/types/relays.d.ts +22 -0
- package/dist/types/relays.d.ts.map +1 -0
- package/dist/types/relays.js +12 -0
- package/dist/types/relays.js.map +1 -0
- package/dist/types/tasks.d.ts +839 -14
- package/dist/types/tasks.d.ts.map +1 -1
- package/dist/types/tasks.js +85 -11
- package/dist/types/tasks.js.map +1 -1
- package/dist/types/teams.d.ts +381 -0
- package/dist/types/teams.d.ts.map +1 -1
- package/dist/types/threads.d.ts +421 -0
- package/dist/types/threads.d.ts.map +1 -1
- package/dist/types/threads.js +3 -1
- package/dist/types/threads.js.map +1 -1
- package/dist/v1/resources/activity_feed.d.ts +15 -0
- package/dist/v1/resources/activity_feed.d.ts.map +1 -1
- package/dist/v1/resources/activity_feed.js +1 -1
- package/dist/v1/resources/agent_computers.d.ts +48 -1
- package/dist/v1/resources/agent_computers.d.ts.map +1 -1
- package/dist/v1/resources/agent_computers.js +17 -1
- package/dist/v1/resources/agent_computers.js.map +1 -1
- package/dist/v1/resources/agent_requests.d.ts +62 -0
- package/dist/v1/resources/agent_requests.d.ts.map +1 -0
- package/dist/v1/resources/agent_requests.js +79 -0
- package/dist/v1/resources/agent_requests.js.map +1 -0
- package/dist/v1/resources/agent_routines.d.ts +15 -0
- package/dist/v1/resources/agent_routines.d.ts.map +1 -1
- package/dist/v1/resources/agent_routines.js +1 -1
- package/dist/v1/resources/agent_routines.js.map +1 -1
- package/dist/v1/resources/agent_sessions.d.ts +23 -1
- package/dist/v1/resources/agent_sessions.d.ts.map +1 -1
- package/dist/v1/resources/agent_sessions.js +26 -1
- package/dist/v1/resources/agent_sessions.js.map +1 -1
- package/dist/v1/resources/agents.d.ts +96 -1
- package/dist/v1/resources/agents.d.ts.map +1 -1
- package/dist/v1/resources/agents.js +13 -2
- package/dist/v1/resources/agents.js.map +1 -1
- package/dist/v1/resources/ai.d.ts +55 -4
- package/dist/v1/resources/ai.d.ts.map +1 -1
- package/dist/v1/resources/ai.js +44 -4
- package/dist/v1/resources/ai.js.map +1 -1
- package/dist/v1/resources/artifacts.d.ts +64 -2
- package/dist/v1/resources/artifacts.d.ts.map +1 -1
- package/dist/v1/resources/artifacts.js +3 -2
- package/dist/v1/resources/artifacts.js.map +1 -1
- package/dist/v1/resources/automation_runs.d.ts +6 -2
- package/dist/v1/resources/automation_runs.d.ts.map +1 -1
- package/dist/v1/resources/automation_runs.js +10 -4
- package/dist/v1/resources/automation_runs.js.map +1 -1
- package/dist/v1/resources/computers.d.ts +113 -0
- package/dist/v1/resources/computers.d.ts.map +1 -0
- package/dist/v1/resources/computers.js +113 -0
- package/dist/v1/resources/computers.js.map +1 -0
- package/dist/v1/resources/custom_objects.d.ts +154 -0
- package/dist/v1/resources/custom_objects.d.ts.map +1 -1
- package/dist/v1/resources/custom_objects.js +60 -1
- package/dist/v1/resources/custom_objects.js.map +1 -1
- package/dist/v1/resources/event_subscriptions.d.ts +12 -0
- package/dist/v1/resources/event_subscriptions.d.ts.map +1 -1
- package/dist/v1/resources/event_subscriptions.js +7 -1
- package/dist/v1/resources/event_subscriptions.js.map +1 -1
- package/dist/v1/resources/files.d.ts +56 -10
- package/dist/v1/resources/files.d.ts.map +1 -1
- package/dist/v1/resources/files.js +39 -11
- 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 +6 -1
- package/dist/v1/resources/index.js.map +1 -1
- package/dist/v1/resources/knowledge_sources.d.ts +4 -0
- package/dist/v1/resources/knowledge_sources.d.ts.map +1 -1
- package/dist/v1/resources/knowledge_sources.js +1 -1
- package/dist/v1/resources/kv.d.ts +75 -31
- package/dist/v1/resources/kv.d.ts.map +1 -1
- package/dist/v1/resources/kv.js +79 -32
- package/dist/v1/resources/kv.js.map +1 -1
- package/dist/v1/resources/notifications.d.ts +14 -0
- package/dist/v1/resources/notifications.d.ts.map +1 -1
- package/dist/v1/resources/notifications.js +13 -1
- package/dist/v1/resources/notifications.js.map +1 -1
- package/dist/v1/resources/oauth.d.ts +2 -0
- package/dist/v1/resources/oauth.d.ts.map +1 -1
- package/dist/v1/resources/oauth.js +2 -1
- package/dist/v1/resources/oauth.js.map +1 -1
- package/dist/v1/resources/orgs.d.ts +907 -1
- package/dist/v1/resources/orgs.d.ts.map +1 -1
- package/dist/v1/resources/orgs.js +471 -2
- package/dist/v1/resources/orgs.js.map +1 -1
- package/dist/v1/resources/private_service_enrollments.d.ts +7 -0
- package/dist/v1/resources/private_service_enrollments.d.ts.map +1 -1
- package/dist/v1/resources/private_service_enrollments.js +10 -1
- package/dist/v1/resources/private_service_enrollments.js.map +1 -1
- package/dist/v1/resources/relays.d.ts +38 -0
- package/dist/v1/resources/relays.d.ts.map +1 -0
- package/dist/v1/resources/relays.js +44 -0
- package/dist/v1/resources/relays.js.map +1 -0
- package/dist/v1/resources/scripts.d.ts +20 -9
- package/dist/v1/resources/scripts.d.ts.map +1 -1
- package/dist/v1/resources/scripts.js +18 -10
- package/dist/v1/resources/scripts.js.map +1 -1
- package/dist/v1/resources/solutions.d.ts +15 -0
- package/dist/v1/resources/solutions.d.ts.map +1 -1
- package/dist/v1/resources/solutions.js +1 -1
- package/dist/v1/resources/solutions.js.map +1 -1
- package/dist/v1/resources/task_epics.d.ts +85 -0
- package/dist/v1/resources/task_epics.d.ts.map +1 -0
- package/dist/v1/resources/task_epics.js +71 -0
- package/dist/v1/resources/task_epics.js.map +1 -0
- package/dist/v1/resources/task_ownership_conversions.d.ts +14 -0
- package/dist/v1/resources/task_ownership_conversions.d.ts.map +1 -0
- package/dist/v1/resources/task_ownership_conversions.js +19 -0
- package/dist/v1/resources/task_ownership_conversions.js.map +1 -0
- package/dist/v1/resources/tasks.d.ts +122 -1
- package/dist/v1/resources/tasks.d.ts.map +1 -1
- package/dist/v1/resources/tasks.js +73 -1
- package/dist/v1/resources/tasks.js.map +1 -1
- package/dist/v1/resources/teams.d.ts +415 -1
- package/dist/v1/resources/teams.d.ts.map +1 -1
- package/dist/v1/resources/teams.js +137 -1
- package/dist/v1/resources/teams.js.map +1 -1
- package/dist/v1/resources/thread_messages.d.ts +15 -0
- package/dist/v1/resources/thread_messages.d.ts.map +1 -1
- package/dist/v1/resources/thread_messages.js +1 -1
- package/dist/v1/resources/thread_messages.js.map +1 -1
- package/dist/v1/resources/threads.d.ts +126 -0
- package/dist/v1/resources/threads.d.ts.map +1 -1
- package/dist/v1/resources/threads.js +43 -1
- package/dist/v1/resources/threads.js.map +1 -1
- package/dist/v1/resources/users.d.ts +372 -3
- package/dist/v1/resources/users.d.ts.map +1 -1
- package/dist/v1/resources/users.js +167 -3
- package/dist/v1/resources/users.js.map +1 -1
- package/dist/v1/resources/workflows.d.ts +5 -1
- package/dist/v1/resources/workflows.d.ts.map +1 -1
- package/dist/v1/resources/workflows.js +6 -2
- package/dist/v1/resources/workflows.js.map +1 -1
- package/dist/v1.d.ts +10 -0
- package/dist/v1.d.ts.map +1 -1
- package/dist/v1.js +16 -1
- package/dist/v1.js.map +1 -1
- package/package.json +1 -1
|
@@ -9,12 +9,17 @@ export declare class FileResource {
|
|
|
9
9
|
* including a signed download URL. Use this endpoint to store images, documents, or
|
|
10
10
|
* other binary assets that can then be referenced by agents, teams, or users.
|
|
11
11
|
* The JSON body uses Platform's default 8,000,000-byte parser budget; the
|
|
12
|
-
*
|
|
12
|
+
* an upstream proxy in front of Platform may have a separate 32 MiB request cap. Base64 requires
|
|
13
13
|
* `4 * ceil(binary_bytes / 3)` bytes, plus the UTF-8 JSON envelope (including
|
|
14
14
|
* filename, owner IDs, escaping and other fields). For an envelope of E bytes,
|
|
15
15
|
* budget at most `3 * floor((8,000,000 - E) / 4)` binary bytes: less than
|
|
16
16
|
* 6,000,000 bytes (about 5.72 MiB). Do not rely on parser chunk overshoot.
|
|
17
17
|
* Oversized JSON requests are rejected with HTTP 413 before upload processing.
|
|
18
|
+
* Plan editors may opt in with `?plan_image=true`. This route/mode permits a
|
|
19
|
+
* 13,398,872-byte JSON envelope (base64 for 10,000,000 decoded bytes plus 64 KiB
|
|
20
|
+
* metadata). Plan images must declare PNG, JPEG, GIF or WebP MIME types and
|
|
21
|
+
* contain at most 10,000,000 decoded bytes. Other uploads retain the default
|
|
22
|
+
* parser budget and arbitrary content types.
|
|
18
23
|
* App scope is derived from the authenticated viewer's bearer token or publishable key.
|
|
19
24
|
* You may optionally associate the file with an organization, team, user, or agent by
|
|
20
25
|
* passing the corresponding ID. If no owner is specified and the viewer is a user, the
|
|
@@ -33,10 +38,12 @@ export declare class FileResource {
|
|
|
33
38
|
* @param input - Request body.
|
|
34
39
|
* @param input.acl - Access control list for the file. Supports explicit `read` and `write` grants to users, teams, organizations, organization roles, agents, or everyone.
|
|
35
40
|
* @param input.agent - Agent ID (`agi_...`) to associate with this file. When provided, the file's organization is derived from the agent.
|
|
41
|
+
* @param input.artifact - Artifact whose current readers may download this attachment. Requires write access; cannot be publicly shared.
|
|
36
42
|
* @param input.content_type - MIME type of the file, e.g. `"image/png"` or `"application/pdf"`.
|
|
37
43
|
* @param input.data - Base64-encoded binary content of the file to upload.
|
|
38
44
|
* @param input.filename - Original filename including extension, e.g. `"avatar.png"`.
|
|
39
45
|
* @param input.org - Organization ID (`org_...`) to associate with this file. Optional; defaults to the viewer's organization when omitted.
|
|
46
|
+
* @param input.plan_image - Opt in to plan-image validation: PNG, JPEG, GIF or WebP up to 10,000,000 decoded bytes. Pass as a query parameter to enable the larger request budget.
|
|
40
47
|
* @param input.share - When `true`, marks the file publicly shareable and returns a stable, non-expiring `share_url` fetchable without authentication. Only image content types can be shared.
|
|
41
48
|
* @param input.team - Team ID (`tem_...`) that owns this file. Takes precedence over `user` when both are provided.
|
|
42
49
|
* @param input.user - User ID (`usr_...`) that owns this file. Defaults to the authenticated user when neither `user` nor `team` is specified.
|
|
@@ -49,21 +56,38 @@ export declare class FileResource {
|
|
|
49
56
|
principal?: string | undefined;
|
|
50
57
|
principal_type: string;
|
|
51
58
|
}[] | undefined;
|
|
59
|
+
add_denies?: {
|
|
60
|
+
actions: string[];
|
|
61
|
+
principal?: string | undefined;
|
|
62
|
+
principal_type: string;
|
|
63
|
+
}[] | undefined;
|
|
64
|
+
denies?: {
|
|
65
|
+
actions: string[];
|
|
66
|
+
principal?: string | undefined;
|
|
67
|
+
principal_type: string;
|
|
68
|
+
}[] | undefined;
|
|
52
69
|
grants?: {
|
|
53
70
|
actions: string[];
|
|
54
71
|
principal?: string | undefined;
|
|
55
72
|
principal_type: string;
|
|
56
73
|
}[] | undefined;
|
|
74
|
+
preserve_denies?: boolean | undefined;
|
|
57
75
|
remove?: {
|
|
58
76
|
principal?: string | undefined;
|
|
59
77
|
principal_type: string;
|
|
60
78
|
}[] | undefined;
|
|
79
|
+
remove_denies?: {
|
|
80
|
+
principal?: string | undefined;
|
|
81
|
+
principal_type: string;
|
|
82
|
+
}[] | undefined;
|
|
61
83
|
} | undefined;
|
|
62
84
|
agent?: string | undefined;
|
|
85
|
+
artifact?: string | undefined;
|
|
63
86
|
content_type: string;
|
|
64
87
|
data: string;
|
|
65
88
|
filename: string;
|
|
66
89
|
org?: string | undefined;
|
|
90
|
+
plan_image?: boolean | undefined;
|
|
67
91
|
share?: boolean | undefined;
|
|
68
92
|
team?: string | undefined;
|
|
69
93
|
user?: string | undefined;
|
|
@@ -93,23 +117,23 @@ export declare class FileResource {
|
|
|
93
117
|
share?: boolean | undefined;
|
|
94
118
|
}): Promise<StorageFile>;
|
|
95
119
|
/**
|
|
96
|
-
* Fetch an agent avatar image
|
|
97
|
-
* Returns the raw image bytes for an agent's profile picture identified
|
|
98
|
-
*
|
|
99
|
-
*
|
|
100
|
-
*
|
|
120
|
+
* Fetch an agent or user avatar image
|
|
121
|
+
* Returns the raw image bytes for an agent's or user's profile picture identified
|
|
122
|
+
* by `file`. Chat messages and integration partners (such as Slack) fetch avatars
|
|
123
|
+
* through it with plain GET requests, without bearer tokens. Authorization is
|
|
124
|
+
* performed via a short, stable capability `token` rather than an HTTP header.
|
|
101
125
|
* The `token` is an HMAC-based capability tied to the file ID. It does not expire,
|
|
102
|
-
* but it is invalidated when the
|
|
103
|
-
* deleted — shared caches may continue serving the old image until the
|
|
126
|
+
* but it is invalidated when the profile picture is replaced or its agent or user
|
|
127
|
+
* is deleted — shared caches may continue serving the old image until the
|
|
104
128
|
* `Cache-Control` max-age of one hour elapses. The endpoint never redirects to
|
|
105
129
|
* a signed storage URL; bytes are served inline so behavior is consistent across
|
|
106
130
|
* storage backends.
|
|
107
131
|
* All failure modes — invalid file ID, invalid token, file not currently referenced
|
|
108
132
|
* as an agent avatar — return a uniform `404` to avoid acting as an existence oracle.
|
|
109
|
-
* @param file - File ID of the
|
|
133
|
+
* @param file - File ID of the profile picture (`fil_...`). Must be currently set as an agent's or user's profile picture within the same app.
|
|
110
134
|
* @param params - Query parameters.
|
|
111
135
|
* @param params.token - HMAC capability token authorizing access to this specific file. Obtained from the avatar URL minted when the profile picture was set.
|
|
112
|
-
* @returns Raw image bytes of the
|
|
136
|
+
* @returns Raw image bytes of the avatar, served with the file's original content type.
|
|
113
137
|
*/
|
|
114
138
|
avatar(file: string, params?: {
|
|
115
139
|
token?: string;
|
|
@@ -117,6 +141,28 @@ export declare class FileResource {
|
|
|
117
141
|
content: ArrayBuffer;
|
|
118
142
|
mimeType: string;
|
|
119
143
|
}>;
|
|
144
|
+
/**
|
|
145
|
+
* Download a file's bytes
|
|
146
|
+
* Returns the raw binary content of a file the authenticated viewer may see.
|
|
147
|
+
* The response `Content-Type` header reflects the file's stored MIME type and
|
|
148
|
+
* `Content-Disposition` names the file as an attachment, so a browser can hand
|
|
149
|
+
* the body to the download manager directly.
|
|
150
|
+
* Unlike `Show` (which mints a storage URL the browser must resolve itself),
|
|
151
|
+
* this endpoint serves bytes inline through the authenticated API mount, so it
|
|
152
|
+
* behaves identically across storage backends: local files are not exposed as
|
|
153
|
+
* unauthenticated static paths, and signed GCS URLs never cross the browser
|
|
154
|
+
* boundary. A file that exists but is not visible to the current viewer
|
|
155
|
+
* returns `404` rather than `403` to avoid revealing the file's existence.
|
|
156
|
+
* Byte downloads are limited to 32 MiB (33,554,432 bytes). The storage provider
|
|
157
|
+
* enforces this limit on actual content, independently of stored size metadata.
|
|
158
|
+
* Larger content returns HTTP `413` with error code `content_too_large`.
|
|
159
|
+
* @param file - File ID (`fil_...`) of the file to download.
|
|
160
|
+
* @returns Raw binary content of the file, served with the file's stored MIME type.
|
|
161
|
+
*/
|
|
162
|
+
download(file: string): Promise<{
|
|
163
|
+
content: ArrayBuffer;
|
|
164
|
+
mimeType: string;
|
|
165
|
+
}>;
|
|
120
166
|
/**
|
|
121
167
|
* Fetch an org logo image
|
|
122
168
|
* Returns the raw image bytes for an organization's logo identified by `file`.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"files.d.ts","sourceRoot":"","sources":["../../../src/v1/resources/files.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEzD,qBAAa,YAAY;IACX,OAAO,CAAC,IAAI;gBAAJ,IAAI,EAAE,UAAU;IAEpC
|
|
1
|
+
{"version":3,"file":"files.d.ts","sourceRoot":"","sources":["../../../src/v1/resources/files.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEzD,qBAAa,YAAY;IACX,OAAO,CAAC,IAAI;gBAAJ,IAAI,EAAE,UAAU;IAEpC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA6CG;IACG,MAAM,CAAC,KAAK,EAAE;QAAE,GAAG,CAAC,EAAE;YAAE,GAAG,CAAC,EAAE;gBAAE,OAAO,EAAE,MAAM,EAAE,CAAC;gBAAC,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAA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;QAAE,OAAO,EAAE,WAAW,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,CAAC;CAM5G"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
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: 7ffc6f44c973
|
|
4
4
|
export class FileResource {
|
|
5
5
|
http;
|
|
6
6
|
constructor(http) {
|
|
@@ -12,12 +12,17 @@ export class FileResource {
|
|
|
12
12
|
* including a signed download URL. Use this endpoint to store images, documents, or
|
|
13
13
|
* other binary assets that can then be referenced by agents, teams, or users.
|
|
14
14
|
* The JSON body uses Platform's default 8,000,000-byte parser budget; the
|
|
15
|
-
*
|
|
15
|
+
* an upstream proxy in front of Platform may have a separate 32 MiB request cap. Base64 requires
|
|
16
16
|
* `4 * ceil(binary_bytes / 3)` bytes, plus the UTF-8 JSON envelope (including
|
|
17
17
|
* filename, owner IDs, escaping and other fields). For an envelope of E bytes,
|
|
18
18
|
* budget at most `3 * floor((8,000,000 - E) / 4)` binary bytes: less than
|
|
19
19
|
* 6,000,000 bytes (about 5.72 MiB). Do not rely on parser chunk overshoot.
|
|
20
20
|
* Oversized JSON requests are rejected with HTTP 413 before upload processing.
|
|
21
|
+
* Plan editors may opt in with `?plan_image=true`. This route/mode permits a
|
|
22
|
+
* 13,398,872-byte JSON envelope (base64 for 10,000,000 decoded bytes plus 64 KiB
|
|
23
|
+
* metadata). Plan images must declare PNG, JPEG, GIF or WebP MIME types and
|
|
24
|
+
* contain at most 10,000,000 decoded bytes. Other uploads retain the default
|
|
25
|
+
* parser budget and arbitrary content types.
|
|
21
26
|
* App scope is derived from the authenticated viewer's bearer token or publishable key.
|
|
22
27
|
* You may optionally associate the file with an organization, team, user, or agent by
|
|
23
28
|
* passing the corresponding ID. If no owner is specified and the viewer is a user, the
|
|
@@ -36,10 +41,12 @@ export class FileResource {
|
|
|
36
41
|
* @param input - Request body.
|
|
37
42
|
* @param input.acl - Access control list for the file. Supports explicit `read` and `write` grants to users, teams, organizations, organization roles, agents, or everyone.
|
|
38
43
|
* @param input.agent - Agent ID (`agi_...`) to associate with this file. When provided, the file's organization is derived from the agent.
|
|
44
|
+
* @param input.artifact - Artifact whose current readers may download this attachment. Requires write access; cannot be publicly shared.
|
|
39
45
|
* @param input.content_type - MIME type of the file, e.g. `"image/png"` or `"application/pdf"`.
|
|
40
46
|
* @param input.data - Base64-encoded binary content of the file to upload.
|
|
41
47
|
* @param input.filename - Original filename including extension, e.g. `"avatar.png"`.
|
|
42
48
|
* @param input.org - Organization ID (`org_...`) to associate with this file. Optional; defaults to the viewer's organization when omitted.
|
|
49
|
+
* @param input.plan_image - Opt in to plan-image validation: PNG, JPEG, GIF or WebP up to 10,000,000 decoded bytes. Pass as a query parameter to enable the larger request budget.
|
|
43
50
|
* @param input.share - When `true`, marks the file publicly shareable and returns a stable, non-expiring `share_url` fetchable without authentication. Only image content types can be shared.
|
|
44
51
|
* @param input.team - Team ID (`tem_...`) that owns this file. Takes precedence over `user` when both are provided.
|
|
45
52
|
* @param input.user - User ID (`usr_...`) that owns this file. Defaults to the authenticated user when neither `user` nor `team` is specified.
|
|
@@ -71,29 +78,50 @@ export class FileResource {
|
|
|
71
78
|
return this.http.request(`/api/v1/files/${file}`, { method: "PATCH", body: input });
|
|
72
79
|
}
|
|
73
80
|
/**
|
|
74
|
-
* Fetch an agent avatar image
|
|
75
|
-
* Returns the raw image bytes for an agent's profile picture identified
|
|
76
|
-
*
|
|
77
|
-
*
|
|
78
|
-
*
|
|
81
|
+
* Fetch an agent or user avatar image
|
|
82
|
+
* Returns the raw image bytes for an agent's or user's profile picture identified
|
|
83
|
+
* by `file`. Chat messages and integration partners (such as Slack) fetch avatars
|
|
84
|
+
* through it with plain GET requests, without bearer tokens. Authorization is
|
|
85
|
+
* performed via a short, stable capability `token` rather than an HTTP header.
|
|
79
86
|
* The `token` is an HMAC-based capability tied to the file ID. It does not expire,
|
|
80
|
-
* but it is invalidated when the
|
|
81
|
-
* deleted — shared caches may continue serving the old image until the
|
|
87
|
+
* but it is invalidated when the profile picture is replaced or its agent or user
|
|
88
|
+
* is deleted — shared caches may continue serving the old image until the
|
|
82
89
|
* `Cache-Control` max-age of one hour elapses. The endpoint never redirects to
|
|
83
90
|
* a signed storage URL; bytes are served inline so behavior is consistent across
|
|
84
91
|
* storage backends.
|
|
85
92
|
* All failure modes — invalid file ID, invalid token, file not currently referenced
|
|
86
93
|
* as an agent avatar — return a uniform `404` to avoid acting as an existence oracle.
|
|
87
|
-
* @param file - File ID of the
|
|
94
|
+
* @param file - File ID of the profile picture (`fil_...`). Must be currently set as an agent's or user's profile picture within the same app.
|
|
88
95
|
* @param params - Query parameters.
|
|
89
96
|
* @param params.token - HMAC capability token authorizing access to this specific file. Obtained from the avatar URL minted when the profile picture was set.
|
|
90
|
-
* @returns Raw image bytes of the
|
|
97
|
+
* @returns Raw image bytes of the avatar, served with the file's original content type.
|
|
91
98
|
*/
|
|
92
99
|
async avatar(file, params) {
|
|
93
100
|
const query = {};
|
|
94
101
|
query["token"] = params?.token;
|
|
95
102
|
return this.http.requestRaw(`/api/v1/files/${file}/avatar`, { query });
|
|
96
103
|
}
|
|
104
|
+
/**
|
|
105
|
+
* Download a file's bytes
|
|
106
|
+
* Returns the raw binary content of a file the authenticated viewer may see.
|
|
107
|
+
* The response `Content-Type` header reflects the file's stored MIME type and
|
|
108
|
+
* `Content-Disposition` names the file as an attachment, so a browser can hand
|
|
109
|
+
* the body to the download manager directly.
|
|
110
|
+
* Unlike `Show` (which mints a storage URL the browser must resolve itself),
|
|
111
|
+
* this endpoint serves bytes inline through the authenticated API mount, so it
|
|
112
|
+
* behaves identically across storage backends: local files are not exposed as
|
|
113
|
+
* unauthenticated static paths, and signed GCS URLs never cross the browser
|
|
114
|
+
* boundary. A file that exists but is not visible to the current viewer
|
|
115
|
+
* returns `404` rather than `403` to avoid revealing the file's existence.
|
|
116
|
+
* Byte downloads are limited to 32 MiB (33,554,432 bytes). The storage provider
|
|
117
|
+
* enforces this limit on actual content, independently of stored size metadata.
|
|
118
|
+
* Larger content returns HTTP `413` with error code `content_too_large`.
|
|
119
|
+
* @param file - File ID (`fil_...`) of the file to download.
|
|
120
|
+
* @returns Raw binary content of the file, served with the file's stored MIME type.
|
|
121
|
+
*/
|
|
122
|
+
async download(file) {
|
|
123
|
+
return this.http.requestRaw(`/api/v1/files/${file}/download`);
|
|
124
|
+
}
|
|
97
125
|
/**
|
|
98
126
|
* Fetch an org logo image
|
|
99
127
|
* Returns the raw image bytes for an organization's logo identified by `file`.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"files.js","sourceRoot":"","sources":["../../../src/v1/resources/files.ts"],"names":[],"mappings":"AAAA,oEAAoE;AACpE,wEAAwE;AACxE,6BAA6B;AAK7B,MAAM,OAAO,YAAY;IACH;IAApB,YAAoB,IAAgB;QAAhB,SAAI,GAAJ,IAAI,CAAY;IAAG,CAAC;IAExC
|
|
1
|
+
{"version":3,"file":"files.js","sourceRoot":"","sources":["../../../src/v1/resources/files.ts"],"names":[],"mappings":"AAAA,oEAAoE;AACpE,wEAAwE;AACxE,6BAA6B;AAK7B,MAAM,OAAO,YAAY;IACH;IAApB,YAAoB,IAAgB;QAAhB,SAAI,GAAJ,IAAI,CAAY;IAAG,CAAC;IAExC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA6CG;IACH,KAAK,CAAC,MAAM,CAAC,KAA44B;QACv5B,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,eAAe,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC;IAC7E,CAAC;IAED;;;;;;;;;;;;;;;;;;OAkBG;IACH,KAAK,CAAC,MAAM,CAAC,IAAY,EAAE,KAA8H;QACvJ,OAAO,IAAI,CAAC,IAAI,C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computers.js";
|
|
|
3
3
|
export { AgentEnvVarResource } from "./agent_env_vars.js";
|
|
4
4
|
export { AgentHealthActionResource } from "./agent_health_actions.js";
|
|
5
5
|
export { AgentInstallationResource } from "./agent_installations.js";
|
|
6
|
+
export { AgentRequestResource } from "./agent_requests.js";
|
|
6
7
|
export { AgentRoutineRunResource } from "./agent_routine_runs.js";
|
|
7
8
|
export { AgentRoutineResource } from "./agent_routines.js";
|
|
8
9
|
export { AgentSessionResource } from "./agent_sessions.js";
|
|
@@ -14,6 +15,7 @@ export { ArtifactResource } from "./artifacts.js";
|
|
|
14
15
|
export { AutomationRunResource } from "./automation_runs.js";
|
|
15
16
|
export { AutomationResource } from "./automations.js";
|
|
16
17
|
export { BugReportResource } from "./bug_reports.js";
|
|
18
|
+
export { ComputerResource } from "./computers.js";
|
|
17
19
|
export { ConfigResource } from "./config.js";
|
|
18
20
|
export { CustomObjectResource } from "./custom_objects.js";
|
|
19
21
|
export { EventSubscriptionDeliveryResource } from "./event_subscription_deliveries.js";
|
|
@@ -34,6 +36,7 @@ export { OrgResource } from "./orgs.js";
|
|
|
34
36
|
export { PrivateServiceDefinitionResource } from "./private_service_definitions.js";
|
|
35
37
|
export { PrivateServiceEnrollmentResource } from "./private_service_enrollments.js";
|
|
36
38
|
export { PrivateServiceResource } from "./private_services.js";
|
|
39
|
+
export { RelayResource } from "./relays.js";
|
|
37
40
|
export { SandboxResource } from "./sandboxes.js";
|
|
38
41
|
export { ScriptResource } from "./scripts.js";
|
|
39
42
|
export { SlackChannelBindingResource } from "./slack_channel_bindings.js";
|
|
@@ -43,6 +46,8 @@ export { SolutionTagResource } from "./solution_tags.js";
|
|
|
43
46
|
export { SolutionResource } from "./solutions.js";
|
|
44
47
|
export { SshKeyResource } from "./ssh_keys.js";
|
|
45
48
|
export { StatuResource } from "./status.js";
|
|
49
|
+
export { TaskEpicResource } from "./task_epics.js";
|
|
50
|
+
export { TaskOwnershipConversionResource } from "./task_ownership_conversions.js";
|
|
46
51
|
export { TaskResource } from "./tasks.js";
|
|
47
52
|
export { TeamMembershipResource } from "./team_memberships.js";
|
|
48
53
|
export { TeamResource } from "./teams.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/v1/resources/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC1D,OAAO,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAC7D,OAAO,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,EAAE,yBAAyB,EAAE,MAAM,2BAA2B,CAAC;AACtE,OAAO,EAAE,yBAAyB,EAAE,MAAM,0BAA0B,CAAC;AACrE,OAAO,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;AAClE,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAC7D,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EAAE,iCAAiC,EAAE,MAAM,oCAAoC,CAAC;AACvF,OAAO,EAAE,yBAAyB,EAAE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AM,iBAAiB,CAAC;AACnD,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
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: 1b4d6bb7cb9d
|
|
4
4
|
export { ActivityFeedResource } from "./activity_feed.js";
|
|
5
5
|
export { AgentComputerResource } from "./agent_computers.js";
|
|
6
6
|
export { AgentEnvVarResource } from "./agent_env_vars.js";
|
|
7
7
|
export { AgentHealthActionResource } from "./agent_health_actions.js";
|
|
8
8
|
export { AgentInstallationResource } from "./agent_installations.js";
|
|
9
|
+
export { AgentRequestResource } from "./agent_requests.js";
|
|
9
10
|
export { AgentRoutineRunResource } from "./agent_routine_runs.js";
|
|
10
11
|
export { AgentRoutineResource } from "./agent_routines.js";
|
|
11
12
|
export { AgentSessionResource } from "./agent_sessions.js";
|
|
@@ -17,6 +18,7 @@ export { ArtifactResource } from "./artifacts.js";
|
|
|
17
18
|
export { AutomationRunResource } from "./automation_runs.js";
|
|
18
19
|
export { AutomationResource } from "./automations.js";
|
|
19
20
|
export { BugReportResource } from "./bug_reports.js";
|
|
21
|
+
export { ComputerResource } from "./computers.js";
|
|
20
22
|
export { ConfigResource } from "./config.js";
|
|
21
23
|
export { CustomObjectResource } from "./custom_objects.js";
|
|
22
24
|
export { EventSubscriptionDeliveryResource } from "./event_subscription_deliveries.js";
|
|
@@ -37,6 +39,7 @@ export { OrgResource } from "./orgs.js";
|
|
|
37
39
|
export { PrivateServiceDefinitionResource } from "./private_service_definitions.js";
|
|
38
40
|
export { PrivateServiceEnrollmentResource } from "./private_service_enrollments.js";
|
|
39
41
|
export { PrivateServiceResource } from "./private_services.js";
|
|
42
|
+
export { RelayResource } from "./relays.js";
|
|
40
43
|
export { SandboxResource } from "./sandboxes.js";
|
|
41
44
|
export { ScriptResource } from "./scripts.js";
|
|
42
45
|
export { SlackChannelBindingResource } from "./slack_channel_bindings.js";
|
|
@@ -46,6 +49,8 @@ export { SolutionTagResource } from "./solution_tags.js";
|
|
|
46
49
|
export { SolutionResource } from "./solutions.js";
|
|
47
50
|
export { SshKeyResource } from "./ssh_keys.js";
|
|
48
51
|
export { StatuResource } from "./status.js";
|
|
52
|
+
export { TaskEpicResource } from "./task_epics.js";
|
|
53
|
+
export { TaskOwnershipConversionResource } from "./task_ownership_conversions.js";
|
|
49
54
|
export { TaskResource } from "./tasks.js";
|
|
50
55
|
export { TeamMembershipResource } from "./team_memberships.js";
|
|
51
56
|
export { TeamResource } from "./teams.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/v1/resources/index.ts"],"names":[],"mappings":"AAAA,oEAAoE;AACpE,wEAAwE;AACxE,6BAA6B;AAE7B,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC1D,OAAO,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAC7D,OAAO,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,EAAE,yBAAyB,EAAE,MAAM,2BAA2B,CAAC;AACtE,OAAO,EAAE,yBAAyB,EAAE,MAAM,0BAA0B,CAAC;AACrE,OAAO,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;AAClE,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,MA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AiB,CAAC;AACnD,OAAO,EAAE,+BAA+B,EAAE,MAAM,iCAAiC,CAAC;AAClF,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC1C,OAAO,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC1C,OAAO,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC1C,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -226,8 +226,12 @@ export declare class KnowledgeSourceResource {
|
|
|
226
226
|
kind: "chunk";
|
|
227
227
|
metadata?: Record<string, unknown> | undefined;
|
|
228
228
|
raw_content?: Record<string, unknown> | undefined;
|
|
229
|
+
structured_data?: string | null | undefined;
|
|
230
|
+
structured_data_summary?: string | null | undefined;
|
|
229
231
|
type?: string | undefined;
|
|
230
232
|
}[];
|
|
233
|
+
degraded?: boolean | undefined;
|
|
234
|
+
effective_mode?: "hybrid" | "vector" | "fulltext" | undefined;
|
|
231
235
|
}>;
|
|
232
236
|
}
|
|
233
237
|
//# sourceMappingURL=knowledge_sources.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"knowledge_sources.d.ts","sourceRoot":"","sources":["../../../src/v1/resources/knowledge_sources.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,KAAK,EAAE,gBAAgB,EAAE,eAAe,EAAE,+BAA+B,EAAE,MAAM,uBAAuB,CAA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CAAC;YAAC,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAAC;YAAC,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;YAAC,uBAAuB,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;YAAC,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;SAAE,EAAE,CAAC;QAAC,QAAQ,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;QAAC,cAAc,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,UAAU,GAAG,SAAS,CAAA;KAAE,CAAC;CAGjpB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
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: 917b6361c987
|
|
4
4
|
export class KnowledgeSourceKindResource {
|
|
5
5
|
http;
|
|
6
6
|
constructor(http) {
|
|
@@ -14,8 +14,13 @@ export declare class KvResource {
|
|
|
14
14
|
* response across all users within the caller's app. Use `user` to scope results
|
|
15
15
|
* to a single user, `user_search` to do a substring match on email or full name,
|
|
16
16
|
* and `key` to filter entries whose key starts with the given prefix. Results are
|
|
17
|
-
* ordered by
|
|
17
|
+
* ordered by update time descending. Supplying org, team, agent, or system selects
|
|
18
|
+
* a single owner's flat list instead. Expired entries are excluded in every mode.
|
|
18
19
|
* @param params - Query parameters.
|
|
20
|
+
* @param params.org - Organization scope for the owner.
|
|
21
|
+
* @param params.team - Team owner ID.
|
|
22
|
+
* @param params.agent - Agent owner ID.
|
|
23
|
+
* @param params.system - Select system ownership within the app or organization.
|
|
19
24
|
* @param params.page - Page number to retrieve. Applies to developer and server-to-server callers only. Defaults to 1.
|
|
20
25
|
* @param params.pageSize - Number of entries per page. Applies to developer and server-to-server callers only. Defaults to 25; maximum is 100.
|
|
21
26
|
* @param params.user - Filter results to entries belonging to this user ID. Applies to developer and server-to-server callers only.
|
|
@@ -24,6 +29,10 @@ export declare class KvResource {
|
|
|
24
29
|
* @returns Key-value storage entries for the current page, with pagination metadata for developer and server-to-server callers.
|
|
25
30
|
*/
|
|
26
31
|
list(params?: {
|
|
32
|
+
org?: string;
|
|
33
|
+
team?: string;
|
|
34
|
+
agent?: string;
|
|
35
|
+
system?: boolean;
|
|
27
36
|
page?: number;
|
|
28
37
|
pageSize?: number;
|
|
29
38
|
user?: string;
|
|
@@ -32,67 +41,102 @@ export declare class KvResource {
|
|
|
32
41
|
}): Promise<KeyValueStorageEntryPage>;
|
|
33
42
|
/**
|
|
34
43
|
* Create a key-value storage entry
|
|
35
|
-
* Creates a
|
|
36
|
-
*
|
|
37
|
-
* or
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
*
|
|
41
|
-
*
|
|
44
|
+
* Creates a key once per owner. An existing key returns HTTP 409 conflict, including expired rows awaiting sweep.
|
|
45
|
+
* User-JWT callers use their own storage. Elevated callers select an owner with
|
|
46
|
+
* system: true, team, user, or agent (in that priority order). An org alone selects
|
|
47
|
+
* system ownership within that organization; all owners must be in the app scope.
|
|
48
|
+
* Create and upsert accept a positive ttl_seconds; absent means no expiry.
|
|
49
|
+
* Script binding (`kv.create`): the entry is owned by the triggering
|
|
50
|
+
* automation's owner; scripts pass no owner params. A duplicate key
|
|
51
|
+
* returns a script Err with code "conflict" instead of raising.
|
|
42
52
|
* @param input - Request body.
|
|
53
|
+
* @param input.agent - Agent owner ID.
|
|
43
54
|
* @param input.key - Storage key for the entry. Must be a non-empty string unique to this user.
|
|
44
|
-
* @param input.
|
|
55
|
+
* @param input.org - Organization scope for the owner.
|
|
56
|
+
* @param input.system - Select system ownership within the app or organization.
|
|
57
|
+
* @param input.team - Team owner ID.
|
|
58
|
+
* @param input.ttl_seconds - Positive lifetime in seconds; omitted means no expiry.
|
|
59
|
+
* @param input.user - User owner ID. Elevated callers may instead select team, agent, org, or system ownership.
|
|
45
60
|
* @param input.value - Value to store under `key`. Must be a non-empty string.
|
|
46
61
|
* @returns The newly created key-value storage entry.
|
|
47
62
|
*/
|
|
48
63
|
create(input: {
|
|
64
|
+
agent?: string | undefined;
|
|
49
65
|
key: string;
|
|
66
|
+
org?: string | undefined;
|
|
67
|
+
system?: boolean | undefined;
|
|
68
|
+
team?: string | undefined;
|
|
69
|
+
ttl_seconds?: number | undefined;
|
|
50
70
|
user?: string | undefined;
|
|
51
71
|
value: string;
|
|
52
72
|
}): Promise<KeyValueStorageEntry>;
|
|
53
73
|
/**
|
|
54
74
|
* Delete a key-value storage entry
|
|
55
|
-
*
|
|
56
|
-
*
|
|
57
|
-
*
|
|
58
|
-
*
|
|
59
|
-
*
|
|
60
|
-
*
|
|
75
|
+
* Deletes an unexpired entry by owner and key. Returns 204, or 404 when absent.
|
|
76
|
+
* User-JWT callers use their own storage. Elevated callers select an owner with
|
|
77
|
+
* system: true, team, user, or agent (in that priority order). An org alone selects
|
|
78
|
+
* system ownership within that organization; all owners must be in the app scope.
|
|
79
|
+
* Create and upsert accept a positive ttl_seconds; absent means no expiry.
|
|
80
|
+
* Script binding (`kv.delete`): removes the entry owned by the triggering
|
|
81
|
+
* automation's owner; scripts pass no owner params.
|
|
61
82
|
* @param key - Storage key of the entry to delete. Must be a non-empty string.
|
|
62
|
-
* @returns
|
|
83
|
+
* @returns Successful response
|
|
63
84
|
*/
|
|
64
|
-
delete(key: string): Promise<
|
|
85
|
+
delete(key: string): Promise<{
|
|
86
|
+
deleted: boolean;
|
|
87
|
+
key: string;
|
|
88
|
+
}>;
|
|
65
89
|
/**
|
|
66
90
|
* Retrieve a key-value storage entry
|
|
67
|
-
* Returns
|
|
68
|
-
*
|
|
69
|
-
*
|
|
70
|
-
*
|
|
71
|
-
*
|
|
91
|
+
* Returns an unexpired entry by owner and key, or 404.
|
|
92
|
+
* User-JWT callers use their own storage. Elevated callers select an owner with
|
|
93
|
+
* system: true, team, user, or agent (in that priority order). An org alone selects
|
|
94
|
+
* system ownership within that organization; all owners must be in the app scope.
|
|
95
|
+
* Create and upsert accept a positive ttl_seconds; absent means no expiry.
|
|
96
|
+
* Script binding (`kv.get`): reads the entry owned by the triggering
|
|
97
|
+
* automation's owner; scripts pass no owner params.
|
|
72
98
|
* @param key - Storage key of the entry to retrieve. Must be a non-empty string.
|
|
73
99
|
* @param params - Query parameters.
|
|
74
|
-
* @param params.
|
|
100
|
+
* @param params.org - Organization scope for the owner.
|
|
101
|
+
* @param params.team - Team owner ID.
|
|
102
|
+
* @param params.agent - Agent owner ID.
|
|
103
|
+
* @param params.system - Select system ownership within the app or organization.
|
|
104
|
+
* @param params.user - User owner ID. Elevated callers may instead select team, agent, org, or system ownership.
|
|
75
105
|
* @returns The key-value storage entry for the given key.
|
|
76
106
|
*/
|
|
77
107
|
get(key: string, params?: {
|
|
108
|
+
org?: string;
|
|
109
|
+
team?: string;
|
|
110
|
+
agent?: string;
|
|
111
|
+
system?: boolean;
|
|
78
112
|
user?: string;
|
|
79
113
|
}): Promise<KeyValueStorageEntry>;
|
|
80
114
|
/**
|
|
81
115
|
* Create or update a key-value storage entry
|
|
82
|
-
* Creates a
|
|
83
|
-
*
|
|
84
|
-
*
|
|
85
|
-
*
|
|
86
|
-
*
|
|
87
|
-
*
|
|
88
|
-
*
|
|
116
|
+
* Creates or replaces a value and its expiry. Omitted ttl_seconds clears any previous expiry.
|
|
117
|
+
* User-JWT callers use their own storage. Elevated callers select an owner with
|
|
118
|
+
* system: true, team, user, or agent (in that priority order). An org alone selects
|
|
119
|
+
* system ownership within that organization; all owners must be in the app scope.
|
|
120
|
+
* Create and upsert accept a positive ttl_seconds; absent means no expiry.
|
|
121
|
+
* Script binding (`kv.upsert`): overwrites the entry owned by the triggering
|
|
122
|
+
* automation's owner; scripts pass no owner params.
|
|
89
123
|
* @param key - Storage key to create or overwrite. Must be a non-empty string.
|
|
90
124
|
* @param input - Request body.
|
|
91
|
-
* @param input.
|
|
125
|
+
* @param input.agent - Agent owner ID.
|
|
126
|
+
* @param input.org - Organization scope for the owner.
|
|
127
|
+
* @param input.system - Select system ownership within the app or organization.
|
|
128
|
+
* @param input.team - Team owner ID.
|
|
129
|
+
* @param input.ttl_seconds - Positive lifetime in seconds; omitted means no expiry.
|
|
130
|
+
* @param input.user - User owner ID. Elevated callers may instead select team, agent, org, or system ownership.
|
|
92
131
|
* @param input.value - New value to store under `key`. Must be a non-empty string. Replaces any existing value.
|
|
93
132
|
* @returns The created or updated key-value storage entry.
|
|
94
133
|
*/
|
|
95
134
|
upsert(key: string, input: {
|
|
135
|
+
agent?: string | undefined;
|
|
136
|
+
org?: string | undefined;
|
|
137
|
+
system?: boolean | undefined;
|
|
138
|
+
team?: string | undefined;
|
|
139
|
+
ttl_seconds?: number | undefined;
|
|
96
140
|
user?: string | undefined;
|
|
97
141
|
value: string;
|
|
98
142
|
}): Promise<KeyValueStorageEntry>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kv.d.ts","sourceRoot":"","sources":["../../../src/v1/resources/kv.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,KAAK,EAAE,oBAAoB,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AAE5F,qBAAa,UAAU;IACT,OAAO,CAAC,IAAI;gBAAJ,IAAI,EAAE,UAAU;IAEpC
|
|
1
|
+
{"version":3,"file":"kv.d.ts","sourceRoot":"","sources":["../../../src/v1/resources/kv.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,KAAK,EAAE,oBAAoB,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AAE5F,qBAAa,UAAU;IACT,OAAO,CAAC,IAAI;gBAAJ,IAAI,EAAE,UAAU;IAEpC;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;IACG,IAAI,CAAC,MAAM,CAAC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