@archastro/sdk 0.20.0 → 0.21.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/client.d.ts +6 -0
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +7 -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 +351 -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 +22 -22
- package/dist/types/automations.d.ts.map +1 -1
- package/dist/types/automations.js +7 -7
- package/dist/types/automations.js.map +1 -1
- package/dist/types/chat.d.ts +388 -0
- package/dist/types/chat.d.ts.map +1 -1
- package/dist/types/common.d.ts +1132 -287
- package/dist/types/common.d.ts.map +1 -1
- package/dist/types/common.js +146 -28
- package/dist/types/common.js.map +1 -1
- package/dist/types/computers.d.ts +22 -0
- package/dist/types/computers.d.ts.map +1 -0
- package/dist/types/computers.js +12 -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 +598 -14
- package/dist/types/tasks.d.ts.map +1 -1
- package/dist/types/tasks.js +43 -11
- package/dist/types/tasks.js.map +1 -1
- package/dist/types/threads.d.ts +64 -0
- package/dist/types/threads.d.ts.map +1 -1
- package/dist/v1/resources/agent_computers.d.ts +33 -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 +54 -0
- package/dist/v1/resources/agent_requests.d.ts.map +1 -0
- package/dist/v1/resources/agent_requests.js +71 -0
- package/dist/v1/resources/agent_requests.js.map +1 -0
- 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 +31 -1
- package/dist/v1/resources/agents.d.ts.map +1 -1
- package/dist/v1/resources/agents.js +12 -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 +34 -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/custom_objects.d.ts +94 -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 +32 -10
- package/dist/v1/resources/files.d.ts.map +1 -1
- package/dist/v1/resources/files.js +32 -11
- package/dist/v1/resources/files.js.map +1 -1
- package/dist/v1/resources/index.d.ts +3 -0
- package/dist/v1/resources/index.d.ts.map +1 -1
- package/dist/v1/resources/index.js +4 -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 +630 -1
- package/dist/v1/resources/orgs.d.ts.map +1 -1
- package/dist/v1/resources/orgs.js +351 -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/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 +62 -1
- package/dist/v1/resources/tasks.d.ts.map +1 -1
- package/dist/v1/resources/tasks.js +35 -1
- package/dist/v1/resources/tasks.js.map +1 -1
- package/dist/v1/resources/teams.d.ts +129 -1
- package/dist/v1/resources/teams.d.ts.map +1 -1
- package/dist/v1/resources/teams.js +71 -1
- package/dist/v1/resources/teams.js.map +1 -1
- package/dist/v1/resources/threads.d.ts +76 -0
- package/dist/v1/resources/threads.d.ts.map +1 -1
- package/dist/v1/resources/threads.js +42 -1
- package/dist/v1/resources/threads.js.map +1 -1
- package/dist/v1/resources/users.d.ts +129 -3
- package/dist/v1/resources/users.d.ts.map +1 -1
- package/dist/v1/resources/users.js +73 -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 +6 -0
- package/dist/v1.d.ts.map +1 -1
- package/dist/v1.js +10 -1
- package/dist/v1.js.map +1 -1
- package/package.json +1 -1
package/dist/v1/resources/kv.js
CHANGED
|
@@ -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: 271b64d3faf3
|
|
4
4
|
export class KvResource {
|
|
5
5
|
http;
|
|
6
6
|
constructor(http) {
|
|
@@ -17,8 +17,13 @@ export class KvResource {
|
|
|
17
17
|
* response across all users within the caller's app. Use `user` to scope results
|
|
18
18
|
* to a single user, `user_search` to do a substring match on email or full name,
|
|
19
19
|
* and `key` to filter entries whose key starts with the given prefix. Results are
|
|
20
|
-
* ordered by
|
|
20
|
+
* ordered by update time descending. Supplying org, team, agent, or system selects
|
|
21
|
+
* a single owner's flat list instead. Expired entries are excluded in every mode.
|
|
21
22
|
* @param params - Query parameters.
|
|
23
|
+
* @param params.org - Organization scope for the owner.
|
|
24
|
+
* @param params.team - Team owner ID.
|
|
25
|
+
* @param params.agent - Agent owner ID.
|
|
26
|
+
* @param params.system - Select system ownership within the app or organization.
|
|
22
27
|
* @param params.page - Page number to retrieve. Applies to developer and server-to-server callers only. Defaults to 1.
|
|
23
28
|
* @param params.pageSize - Number of entries per page. Applies to developer and server-to-server callers only. Defaults to 25; maximum is 100.
|
|
24
29
|
* @param params.user - Filter results to entries belonging to this user ID. Applies to developer and server-to-server callers only.
|
|
@@ -28,6 +33,18 @@ export class KvResource {
|
|
|
28
33
|
*/
|
|
29
34
|
async list(params) {
|
|
30
35
|
const query = {};
|
|
36
|
+
if (params?.org !== undefined) {
|
|
37
|
+
query["org"] = params?.org;
|
|
38
|
+
}
|
|
39
|
+
if (params?.team !== undefined) {
|
|
40
|
+
query["team"] = params?.team;
|
|
41
|
+
}
|
|
42
|
+
if (params?.agent !== undefined) {
|
|
43
|
+
query["agent"] = params?.agent;
|
|
44
|
+
}
|
|
45
|
+
if (params?.system !== undefined) {
|
|
46
|
+
query["system"] = params?.system;
|
|
47
|
+
}
|
|
31
48
|
if (params?.page !== undefined) {
|
|
32
49
|
query["page"] = params?.page;
|
|
33
50
|
}
|
|
@@ -47,16 +64,22 @@ export class KvResource {
|
|
|
47
64
|
}
|
|
48
65
|
/**
|
|
49
66
|
* Create a key-value storage entry
|
|
50
|
-
* Creates a
|
|
51
|
-
*
|
|
52
|
-
* or
|
|
53
|
-
*
|
|
54
|
-
*
|
|
55
|
-
*
|
|
56
|
-
*
|
|
67
|
+
* Creates a key once per owner. An existing key returns HTTP 409 conflict, including expired rows awaiting sweep.
|
|
68
|
+
* User-JWT callers use their own storage. Elevated callers select an owner with
|
|
69
|
+
* system: true, team, user, or agent (in that priority order). An org alone selects
|
|
70
|
+
* system ownership within that organization; all owners must be in the app scope.
|
|
71
|
+
* Create and upsert accept a positive ttl_seconds; absent means no expiry.
|
|
72
|
+
* Script binding (`kv.create`): the entry is owned by the triggering
|
|
73
|
+
* automation's owner; scripts pass no owner params. A duplicate key
|
|
74
|
+
* returns a script Err with code "conflict" instead of raising.
|
|
57
75
|
* @param input - Request body.
|
|
76
|
+
* @param input.agent - Agent owner ID.
|
|
58
77
|
* @param input.key - Storage key for the entry. Must be a non-empty string unique to this user.
|
|
59
|
-
* @param input.
|
|
78
|
+
* @param input.org - Organization scope for the owner.
|
|
79
|
+
* @param input.system - Select system ownership within the app or organization.
|
|
80
|
+
* @param input.team - Team owner ID.
|
|
81
|
+
* @param input.ttl_seconds - Positive lifetime in seconds; omitted means no expiry.
|
|
82
|
+
* @param input.user - User owner ID. Elevated callers may instead select team, agent, org, or system ownership.
|
|
60
83
|
* @param input.value - Value to store under `key`. Must be a non-empty string.
|
|
61
84
|
* @returns The newly created key-value storage entry.
|
|
62
85
|
*/
|
|
@@ -65,32 +88,51 @@ export class KvResource {
|
|
|
65
88
|
}
|
|
66
89
|
/**
|
|
67
90
|
* Delete a key-value storage entry
|
|
68
|
-
*
|
|
69
|
-
*
|
|
70
|
-
*
|
|
71
|
-
*
|
|
72
|
-
*
|
|
73
|
-
*
|
|
91
|
+
* Deletes an unexpired entry by owner and key. Returns 204, or 404 when absent.
|
|
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.delete`): removes the entry owned by the triggering
|
|
97
|
+
* automation's owner; scripts pass no owner params.
|
|
74
98
|
* @param key - Storage key of the entry to delete. Must be a non-empty string.
|
|
75
|
-
* @returns
|
|
99
|
+
* @returns Successful response
|
|
76
100
|
*/
|
|
77
101
|
async delete(key) {
|
|
78
|
-
|
|
102
|
+
return this.http.request(`/api/v1/kv/${key}`, { method: "DELETE" });
|
|
79
103
|
}
|
|
80
104
|
/**
|
|
81
105
|
* Retrieve a key-value storage entry
|
|
82
|
-
* Returns
|
|
83
|
-
*
|
|
84
|
-
*
|
|
85
|
-
*
|
|
86
|
-
*
|
|
106
|
+
* Returns an unexpired entry by owner and key, or 404.
|
|
107
|
+
* User-JWT callers use their own storage. Elevated callers select an owner with
|
|
108
|
+
* system: true, team, user, or agent (in that priority order). An org alone selects
|
|
109
|
+
* system ownership within that organization; all owners must be in the app scope.
|
|
110
|
+
* Create and upsert accept a positive ttl_seconds; absent means no expiry.
|
|
111
|
+
* Script binding (`kv.get`): reads the entry owned by the triggering
|
|
112
|
+
* automation's owner; scripts pass no owner params.
|
|
87
113
|
* @param key - Storage key of the entry to retrieve. Must be a non-empty string.
|
|
88
114
|
* @param params - Query parameters.
|
|
89
|
-
* @param params.
|
|
115
|
+
* @param params.org - Organization scope for the owner.
|
|
116
|
+
* @param params.team - Team owner ID.
|
|
117
|
+
* @param params.agent - Agent owner ID.
|
|
118
|
+
* @param params.system - Select system ownership within the app or organization.
|
|
119
|
+
* @param params.user - User owner ID. Elevated callers may instead select team, agent, org, or system ownership.
|
|
90
120
|
* @returns The key-value storage entry for the given key.
|
|
91
121
|
*/
|
|
92
122
|
async get(key, params) {
|
|
93
123
|
const query = {};
|
|
124
|
+
if (params?.org !== undefined) {
|
|
125
|
+
query["org"] = params?.org;
|
|
126
|
+
}
|
|
127
|
+
if (params?.team !== undefined) {
|
|
128
|
+
query["team"] = params?.team;
|
|
129
|
+
}
|
|
130
|
+
if (params?.agent !== undefined) {
|
|
131
|
+
query["agent"] = params?.agent;
|
|
132
|
+
}
|
|
133
|
+
if (params?.system !== undefined) {
|
|
134
|
+
query["system"] = params?.system;
|
|
135
|
+
}
|
|
94
136
|
if (params?.user !== undefined) {
|
|
95
137
|
query["user"] = params?.user;
|
|
96
138
|
}
|
|
@@ -98,16 +140,21 @@ export class KvResource {
|
|
|
98
140
|
}
|
|
99
141
|
/**
|
|
100
142
|
* Create or update a key-value storage entry
|
|
101
|
-
* Creates a
|
|
102
|
-
*
|
|
103
|
-
*
|
|
104
|
-
*
|
|
105
|
-
*
|
|
106
|
-
*
|
|
107
|
-
*
|
|
143
|
+
* Creates or replaces a value and its expiry. Omitted ttl_seconds clears any previous expiry.
|
|
144
|
+
* User-JWT callers use their own storage. Elevated callers select an owner with
|
|
145
|
+
* system: true, team, user, or agent (in that priority order). An org alone selects
|
|
146
|
+
* system ownership within that organization; all owners must be in the app scope.
|
|
147
|
+
* Create and upsert accept a positive ttl_seconds; absent means no expiry.
|
|
148
|
+
* Script binding (`kv.upsert`): overwrites the entry owned by the triggering
|
|
149
|
+
* automation's owner; scripts pass no owner params.
|
|
108
150
|
* @param key - Storage key to create or overwrite. Must be a non-empty string.
|
|
109
151
|
* @param input - Request body.
|
|
110
|
-
* @param input.
|
|
152
|
+
* @param input.agent - Agent owner ID.
|
|
153
|
+
* @param input.org - Organization scope for the owner.
|
|
154
|
+
* @param input.system - Select system ownership within the app or organization.
|
|
155
|
+
* @param input.team - Team owner ID.
|
|
156
|
+
* @param input.ttl_seconds - Positive lifetime in seconds; omitted means no expiry.
|
|
157
|
+
* @param input.user - User owner ID. Elevated callers may instead select team, agent, org, or system ownership.
|
|
111
158
|
* @param input.value - New value to store under `key`. Must be a non-empty string. Replaces any existing value.
|
|
112
159
|
* @returns The created or updated key-value storage entry.
|
|
113
160
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kv.js","sourceRoot":"","sources":["../../../src/v1/resources/kv.ts"],"names":[],"mappings":"AAAA,oEAAoE;AACpE,wEAAwE;AACxE,6BAA6B;AAK7B,MAAM,OAAO,UAAU;IACD;IAApB,YAAoB,IAAgB;QAAhB,SAAI,GAAJ,IAAI,CAAY;IAAG,CAAC;IAExC
|
|
1
|
+
{"version":3,"file":"kv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AM,EAAE,MAAM,KAAK,SAAS,EAAE,CAAC;YACjC,KAAK,CAAC,QAAQ,CAAC,GAAG,MAAM,EAAE,MAAM,CAAC;QACnC,CAAC;QACD,IAAI,MAAM,EAAE,IAAI,KAAK,SAAS,EAAE,CAAC;YAC/B,KAAK,CAAC,MAAM,CAAC,GAAG,MAAM,EAAE,IAAI,CAAC;QAC/B,CAAC;QAED,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,cAAc,GAAG,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC;IAC3D,CAAC;IAED;;;;;;;;;;;;;;;;;;;OAmBG;IACH,KAAK,CAAC,MAAM,CAAC,GAAW,EAAE,KAAoM;QAC5N,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,cAAc,GAAG,EAAE,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC;IAChF,CAAC;CACF"}
|
|
@@ -60,6 +60,16 @@ export declare class NotificationResource {
|
|
|
60
60
|
* 403. The app scope is stamped onto the notification automatically; an app
|
|
61
61
|
* cannot target recipients outside its tenant. Built-in platform types such as
|
|
62
62
|
* `"app_info"` and `"billing_alert"` are not accepted here.
|
|
63
|
+
* The `notifications.send` script binding also accepts the viewer a script runs
|
|
64
|
+
* as: a user, an agent, or a team's system viewer. Such a sender may notify only
|
|
65
|
+
* a user it can see in its own organization and sandbox. When the sender is a
|
|
66
|
+
* user, the recipient must also be able to see the sender. An agent cannot see
|
|
67
|
+
* user records, so an agent sender must name a source message: it may then
|
|
68
|
+
* notify a user in its own organization and sandbox who can read that message.
|
|
69
|
+
* Pass `thread` and `message` together to name the message the notification is
|
|
70
|
+
* about. The send is then refused unless that message is in that thread and both
|
|
71
|
+
* the sender and the recipient can read it, so a notification cannot quote a
|
|
72
|
+
* message its recipient cannot open.
|
|
63
73
|
* Pass `idempotency_key` to deduplicate sends. If you call this endpoint twice
|
|
64
74
|
* with the same `idempotency_key` for the same recipient, the second call
|
|
65
75
|
* returns the original notification without creating a duplicate. The key is
|
|
@@ -68,6 +78,8 @@ export declare class NotificationResource {
|
|
|
68
78
|
* @param input - Request body.
|
|
69
79
|
* @param input.data - Arbitrary key-value payload merged with platform-provided context (recipient, app, org, brand) when rendering the notification's display fields. Defaults to an empty object when omitted.
|
|
70
80
|
* @param input.idempotency_key - Optional deduplication key. A second call with the same `idempotency_key` for the same recipient returns the originally-created notification without inserting a new record. Scoped per calling app.
|
|
81
|
+
* @param input.message - Source message (`msg_...`) that the sender and the recipient must both be able to read.
|
|
82
|
+
* @param input.thread - Thread (`thr_...`) of the source message. Requires `message`.
|
|
71
83
|
* @param input.type - Custom notification type identifier in the form `"custom:<lookup_key>"`, where `<lookup_key>` matches a `NotificationType` config declared in the calling app's bundle.
|
|
72
84
|
* @param input.user - Recipient user ID (`usr_...`). Must be a member of the calling app's tenant.
|
|
73
85
|
* @returns The created notification, or the existing notification when deduplicated by `idempotency_key`.
|
|
@@ -75,6 +87,8 @@ export declare class NotificationResource {
|
|
|
75
87
|
send(input: {
|
|
76
88
|
data?: Record<string, unknown> | undefined;
|
|
77
89
|
idempotency_key?: string | undefined;
|
|
90
|
+
message?: string | undefined;
|
|
91
|
+
thread?: string | undefined;
|
|
78
92
|
type: string;
|
|
79
93
|
user: string;
|
|
80
94
|
}): Promise<Notification>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notifications.d.ts","sourceRoot":"","sources":["../../../src/v1/resources/notifications.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAEjE,qBAAa,oBAAoB;IACnB,OAAO,CAAC,IAAI;gBAAJ,IAAI,EAAE,UAAU;IAEpC;;;;;;;;;;;;;;;;OAgBG;IACG,IAAI,CAAC,MAAM,CAAC,EAAE;QAAE,MAAM,CAAC,EAAE,MAAM,CAAC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2
|
// This file is auto-generated by @archastro/sdk-generator. Do not edit.
|
|
3
|
-
// Content hash:
|
|
3
|
+
// Content hash: 4059b479e7c9
|
|
4
4
|
export class NotificationResource {
|
|
5
5
|
http;
|
|
6
6
|
constructor(http) {
|
|
@@ -60,6 +60,16 @@ export class NotificationResource {
|
|
|
60
60
|
* 403. The app scope is stamped onto the notification automatically; an app
|
|
61
61
|
* cannot target recipients outside its tenant. Built-in platform types such as
|
|
62
62
|
* `"app_info"` and `"billing_alert"` are not accepted here.
|
|
63
|
+
* The `notifications.send` script binding also accepts the viewer a script runs
|
|
64
|
+
* as: a user, an agent, or a team's system viewer. Such a sender may notify only
|
|
65
|
+
* a user it can see in its own organization and sandbox. When the sender is a
|
|
66
|
+
* user, the recipient must also be able to see the sender. An agent cannot see
|
|
67
|
+
* user records, so an agent sender must name a source message: it may then
|
|
68
|
+
* notify a user in its own organization and sandbox who can read that message.
|
|
69
|
+
* Pass `thread` and `message` together to name the message the notification is
|
|
70
|
+
* about. The send is then refused unless that message is in that thread and both
|
|
71
|
+
* the sender and the recipient can read it, so a notification cannot quote a
|
|
72
|
+
* message its recipient cannot open.
|
|
63
73
|
* Pass `idempotency_key` to deduplicate sends. If you call this endpoint twice
|
|
64
74
|
* with the same `idempotency_key` for the same recipient, the second call
|
|
65
75
|
* returns the original notification without creating a duplicate. The key is
|
|
@@ -68,6 +78,8 @@ export class NotificationResource {
|
|
|
68
78
|
* @param input - Request body.
|
|
69
79
|
* @param input.data - Arbitrary key-value payload merged with platform-provided context (recipient, app, org, brand) when rendering the notification's display fields. Defaults to an empty object when omitted.
|
|
70
80
|
* @param input.idempotency_key - Optional deduplication key. A second call with the same `idempotency_key` for the same recipient returns the originally-created notification without inserting a new record. Scoped per calling app.
|
|
81
|
+
* @param input.message - Source message (`msg_...`) that the sender and the recipient must both be able to read.
|
|
82
|
+
* @param input.thread - Thread (`thr_...`) of the source message. Requires `message`.
|
|
71
83
|
* @param input.type - Custom notification type identifier in the form `"custom:<lookup_key>"`, where `<lookup_key>` matches a `NotificationType` config declared in the calling app's bundle.
|
|
72
84
|
* @param input.user - Recipient user ID (`usr_...`). Must be a member of the calling app's tenant.
|
|
73
85
|
* @returns The created notification, or the existing notification when deduplicated by `idempotency_key`.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notifications.js","sourceRoot":"","sources":["../../../src/v1/resources/notifications.ts"],"names":[],"mappings":"AAAA,oEAAoE;AACpE,wEAAwE;AACxE,6BAA6B;AAK7B,MAAM,OAAO,oBAAoB;IACX;IAApB,YAAoB,IAAgB;QAAhB,SAAI,GAAJ,IAAI,CAAY;IAAG,CAAC;IAExC;;;;;;;;;;;;;;;;OAgBG;IACH,KAAK,CAAC,IAAI,CAAC,MAAkE;QAC3E,MAAM,KAAK,GAA6F,EAAE,CAAC;QAC3G,IAAI,MAAM,EAAE,MAAM,KAAK,SAAS,EAAE,CAAC;YACjC,KAAK,CAAC,QAAQ,CAAC,GAAG,MAAM,EAAE,MAAM,CAAC;QACnC,CAAC;QACD,IAAI,MAAM,EAAE,KAAK,KAAK,SAAS,EAAE,CAAC;YAChC,KAAK,CAAC,OAAO,CAAC,GAAG,MAAM,EAAE,KAAK,CAAC;QACjC,CAAC;QACD,IAAI,MAAM,EAAE,WAAW,KAAK,SAAS,EAAE,CAAC;YACtC,KAAK,CAAC,cAAc,CAAC,GAAG,MAAM,EAAE,WAAW,CAAC;QAC9C,CAAC;QAED,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,uBAAuB,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC;IAC/D,CAAC;IAED;;;;;;;;;OASG;IACH,KAAK,CAAC,OAAO;QACX,MAAM,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,gCAAgC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;IAChF,CAAC;IAED
|
|
1
|
+
{"version":3,"file":"notifications.js","sourceRoot":"","sources":["../../../src/v1/resources/notifications.ts"],"names":[],"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AC;IACjE,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,KAAK,CAAC,OAAO,CAAC,YAAoB;QAChC,MAAM,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,yBAAyB,YAAY,UAAU,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;IAC/F,CAAC;IAED;;;;;;;;;;OAUG;IACH,KAAK,CAAC,IAAI,CAAC,YAAoB;QAC7B,MAAM,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,yBAAyB,YAAY,OAAO,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;IAC5F,CAAC;IAED;;;;;;;;;;;OAWG;IACH,KAAK,CAAC,SAAS,CAAC,YAAoB;QAClC,MAAM,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,yBAAyB,YAAY,YAAY,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;IACjG,CAAC;CACF"}
|
|
@@ -113,6 +113,7 @@ export declare class OauthResource {
|
|
|
113
113
|
* @param input.grant_type - The OAuth 2.0 grant type. One of `"authorization_code"`, `"refresh_token"`, or `"urn:ietf:params:oauth:grant-type:device_code"`.
|
|
114
114
|
* @param input.redirect_uri - Redirect URI that was used in the original authorization request. Must exactly match the URI on record for the client. Required for `"authorization_code"` grants.
|
|
115
115
|
* @param input.refresh_token - Refresh token received from a previous token response. Required for `"refresh_token"` grants. The token is rotated on each successful call.
|
|
116
|
+
* @param input.resource - Resource audience. Required for code exchange and refresh of a token bound to a resource server; must match the consent grant.
|
|
116
117
|
* @returns Token pair issued for the authenticated user.
|
|
117
118
|
*/
|
|
118
119
|
token(input: {
|
|
@@ -123,6 +124,7 @@ export declare class OauthResource {
|
|
|
123
124
|
grant_type: string;
|
|
124
125
|
redirect_uri?: string | undefined;
|
|
125
126
|
refresh_token?: string | undefined;
|
|
127
|
+
resource?: string | undefined;
|
|
126
128
|
}): Promise<OAuthTokenResponse>;
|
|
127
129
|
}
|
|
128
130
|
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,CAAC;IAI5D;;;;;;;;;;;;;;;;;;;;;;;;;;OA0BG;IACG,KAAK,CAAC,KAAK,EAAE;QAAE,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;QAAC,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;QAAC,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;QAAC,UAAU,EAAE,MAAM,CAAC;QAAC,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;QAAC,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;KAAE,GAAG,OAAO,CAAC,kBAAkB,CAAC;CAG5S"}
|
|
@@ -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: 31d084134ed0
|
|
4
4
|
export class DeviceResource {
|
|
5
5
|
http;
|
|
6
6
|
constructor(http) {
|
|
@@ -118,6 +118,7 @@ export class OauthResource {
|
|
|
118
118
|
* @param input.grant_type - The OAuth 2.0 grant type. One of `"authorization_code"`, `"refresh_token"`, or `"urn:ietf:params:oauth:grant-type:device_code"`.
|
|
119
119
|
* @param input.redirect_uri - Redirect URI that was used in the original authorization request. Must exactly match the URI on record for the client. Required for `"authorization_code"` grants.
|
|
120
120
|
* @param input.refresh_token - Refresh token received from a previous token response. Required for `"refresh_token"` grants. The token is rotated on each successful call.
|
|
121
|
+
* @param input.resource - Resource audience. Required for code exchange and refresh of a token bound to a resource server; must match the consent grant.
|
|
121
122
|
* @returns Token pair issued for the authenticated user.
|
|
122
123
|
*/
|
|
123
124
|
async token(input) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"oauth.js","sourceRoot":"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