@archastro/sdk 0.19.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.
Files changed (158) hide show
  1. package/dist/channels/api_artifact_channel.d.ts +48 -0
  2. package/dist/channels/api_artifact_channel.d.ts.map +1 -0
  3. package/dist/channels/api_artifact_channel.js +85 -0
  4. package/dist/channels/api_artifact_channel.js.map +1 -0
  5. package/dist/client.d.ts +7 -1
  6. package/dist/client.d.ts.map +1 -1
  7. package/dist/client.js +9 -3
  8. package/dist/client.js.map +1 -1
  9. package/dist/index.d.ts +1 -0
  10. package/dist/index.d.ts.map +1 -1
  11. package/dist/index.js +2 -1
  12. package/dist/index.js.map +1 -1
  13. package/dist/types/ai.d.ts +124 -10
  14. package/dist/types/ai.d.ts.map +1 -1
  15. package/dist/types/ai.js +27 -7
  16. package/dist/types/ai.js.map +1 -1
  17. package/dist/types/artifacts.d.ts +351 -0
  18. package/dist/types/artifacts.d.ts.map +1 -1
  19. package/dist/types/artifacts.js +65 -1
  20. package/dist/types/artifacts.js.map +1 -1
  21. package/dist/types/automations.d.ts +22 -22
  22. package/dist/types/automations.d.ts.map +1 -1
  23. package/dist/types/automations.js +7 -7
  24. package/dist/types/automations.js.map +1 -1
  25. package/dist/types/chat.d.ts +467 -0
  26. package/dist/types/chat.d.ts.map +1 -1
  27. package/dist/types/common.d.ts +1161 -296
  28. package/dist/types/common.d.ts.map +1 -1
  29. package/dist/types/common.js +148 -28
  30. package/dist/types/common.js.map +1 -1
  31. package/dist/types/computers.d.ts +22 -0
  32. package/dist/types/computers.d.ts.map +1 -0
  33. package/dist/types/computers.js +12 -0
  34. package/dist/types/computers.js.map +1 -0
  35. package/dist/types/events.d.ts +34 -16
  36. package/dist/types/events.d.ts.map +1 -1
  37. package/dist/types/events.js +3 -1
  38. package/dist/types/events.js.map +1 -1
  39. package/dist/types/index.d.ts +2 -0
  40. package/dist/types/index.d.ts.map +1 -1
  41. package/dist/types/index.js +3 -1
  42. package/dist/types/index.js.map +1 -1
  43. package/dist/types/relays.d.ts +22 -0
  44. package/dist/types/relays.d.ts.map +1 -0
  45. package/dist/types/relays.js +12 -0
  46. package/dist/types/relays.js.map +1 -0
  47. package/dist/types/tasks.d.ts +598 -14
  48. package/dist/types/tasks.d.ts.map +1 -1
  49. package/dist/types/tasks.js +43 -11
  50. package/dist/types/tasks.js.map +1 -1
  51. package/dist/types/teams.d.ts +20 -0
  52. package/dist/types/teams.d.ts.map +1 -1
  53. package/dist/types/teams.js +8 -1
  54. package/dist/types/teams.js.map +1 -1
  55. package/dist/types/threads.d.ts +78 -2
  56. package/dist/types/threads.d.ts.map +1 -1
  57. package/dist/types/threads.js +3 -3
  58. package/dist/types/threads.js.map +1 -1
  59. package/dist/v1/resources/agent_computers.d.ts +33 -1
  60. package/dist/v1/resources/agent_computers.d.ts.map +1 -1
  61. package/dist/v1/resources/agent_computers.js +17 -1
  62. package/dist/v1/resources/agent_computers.js.map +1 -1
  63. package/dist/v1/resources/agent_requests.d.ts +54 -0
  64. package/dist/v1/resources/agent_requests.d.ts.map +1 -0
  65. package/dist/v1/resources/agent_requests.js +71 -0
  66. package/dist/v1/resources/agent_requests.js.map +1 -0
  67. package/dist/v1/resources/agent_sessions.d.ts +23 -1
  68. package/dist/v1/resources/agent_sessions.d.ts.map +1 -1
  69. package/dist/v1/resources/agent_sessions.js +26 -1
  70. package/dist/v1/resources/agent_sessions.js.map +1 -1
  71. package/dist/v1/resources/agents.d.ts +32 -2
  72. package/dist/v1/resources/agents.d.ts.map +1 -1
  73. package/dist/v1/resources/agents.js +12 -2
  74. package/dist/v1/resources/agents.js.map +1 -1
  75. package/dist/v1/resources/ai.d.ts +76 -7
  76. package/dist/v1/resources/ai.d.ts.map +1 -1
  77. package/dist/v1/resources/ai.js +54 -4
  78. package/dist/v1/resources/ai.js.map +1 -1
  79. package/dist/v1/resources/artifacts.d.ts +35 -2
  80. package/dist/v1/resources/artifacts.d.ts.map +1 -1
  81. package/dist/v1/resources/artifacts.js +3 -2
  82. package/dist/v1/resources/artifacts.js.map +1 -1
  83. package/dist/v1/resources/custom_objects.d.ts +99 -0
  84. package/dist/v1/resources/custom_objects.d.ts.map +1 -1
  85. package/dist/v1/resources/custom_objects.js +64 -1
  86. package/dist/v1/resources/custom_objects.js.map +1 -1
  87. package/dist/v1/resources/event_subscriptions.d.ts +12 -0
  88. package/dist/v1/resources/event_subscriptions.d.ts.map +1 -1
  89. package/dist/v1/resources/event_subscriptions.js +7 -1
  90. package/dist/v1/resources/event_subscriptions.js.map +1 -1
  91. package/dist/v1/resources/files.d.ts +32 -10
  92. package/dist/v1/resources/files.d.ts.map +1 -1
  93. package/dist/v1/resources/files.js +32 -11
  94. package/dist/v1/resources/files.js.map +1 -1
  95. package/dist/v1/resources/index.d.ts +4 -1
  96. package/dist/v1/resources/index.d.ts.map +1 -1
  97. package/dist/v1/resources/index.js +5 -2
  98. package/dist/v1/resources/index.js.map +1 -1
  99. package/dist/v1/resources/knowledge_sources.d.ts +4 -0
  100. package/dist/v1/resources/knowledge_sources.d.ts.map +1 -1
  101. package/dist/v1/resources/knowledge_sources.js +1 -1
  102. package/dist/v1/resources/kv.d.ts +75 -31
  103. package/dist/v1/resources/kv.d.ts.map +1 -1
  104. package/dist/v1/resources/kv.js +79 -32
  105. package/dist/v1/resources/kv.js.map +1 -1
  106. package/dist/v1/resources/notifications.d.ts +14 -0
  107. package/dist/v1/resources/notifications.d.ts.map +1 -1
  108. package/dist/v1/resources/notifications.js +13 -1
  109. package/dist/v1/resources/notifications.js.map +1 -1
  110. package/dist/v1/resources/oauth.d.ts +2 -0
  111. package/dist/v1/resources/oauth.d.ts.map +1 -1
  112. package/dist/v1/resources/oauth.js +2 -1
  113. package/dist/v1/resources/oauth.js.map +1 -1
  114. package/dist/v1/resources/orgs.d.ts +662 -2
  115. package/dist/v1/resources/orgs.d.ts.map +1 -1
  116. package/dist/v1/resources/orgs.js +380 -2
  117. package/dist/v1/resources/orgs.js.map +1 -1
  118. package/dist/v1/resources/private_service_enrollments.d.ts +7 -0
  119. package/dist/v1/resources/private_service_enrollments.d.ts.map +1 -1
  120. package/dist/v1/resources/private_service_enrollments.js +10 -1
  121. package/dist/v1/resources/private_service_enrollments.js.map +1 -1
  122. package/dist/v1/resources/relays.d.ts +38 -0
  123. package/dist/v1/resources/relays.d.ts.map +1 -0
  124. package/dist/v1/resources/relays.js +44 -0
  125. package/dist/v1/resources/relays.js.map +1 -0
  126. package/dist/v1/resources/scripts.d.ts +20 -9
  127. package/dist/v1/resources/scripts.d.ts.map +1 -1
  128. package/dist/v1/resources/scripts.js +18 -10
  129. package/dist/v1/resources/scripts.js.map +1 -1
  130. package/dist/v1/resources/task_ownership_conversions.d.ts +14 -0
  131. package/dist/v1/resources/task_ownership_conversions.d.ts.map +1 -0
  132. package/dist/v1/resources/task_ownership_conversions.js +19 -0
  133. package/dist/v1/resources/task_ownership_conversions.js.map +1 -0
  134. package/dist/v1/resources/tasks.d.ts +62 -1
  135. package/dist/v1/resources/tasks.d.ts.map +1 -1
  136. package/dist/v1/resources/tasks.js +35 -1
  137. package/dist/v1/resources/tasks.js.map +1 -1
  138. package/dist/v1/resources/teams.d.ts +141 -3
  139. package/dist/v1/resources/teams.d.ts.map +1 -1
  140. package/dist/v1/resources/teams.js +82 -1
  141. package/dist/v1/resources/teams.js.map +1 -1
  142. package/dist/v1/resources/threads.d.ts +79 -0
  143. package/dist/v1/resources/threads.d.ts.map +1 -1
  144. package/dist/v1/resources/threads.js +44 -1
  145. package/dist/v1/resources/threads.js.map +1 -1
  146. package/dist/v1/resources/users.d.ts +131 -4
  147. package/dist/v1/resources/users.d.ts.map +1 -1
  148. package/dist/v1/resources/users.js +73 -3
  149. package/dist/v1/resources/users.js.map +1 -1
  150. package/dist/v1/resources/workflows.d.ts +5 -1
  151. package/dist/v1/resources/workflows.d.ts.map +1 -1
  152. package/dist/v1/resources/workflows.js +6 -2
  153. package/dist/v1/resources/workflows.js.map +1 -1
  154. package/dist/v1.d.ts +7 -1
  155. package/dist/v1.d.ts.map +1 -1
  156. package/dist/v1.js +12 -3
  157. package/dist/v1.js.map +1 -1
  158. package/package.json +1 -1
@@ -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 creation time descending.
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 new key-value storage entry for the target user under the given key.
36
- * The key must not already exist for this user; use the upsert endpoint to create
37
- * or overwrite in a single call.
38
- * End-user (user-JWT) callers always write to their own storage. Developer and
39
- * server-to-server callers must supply a `user` param identifying the target user
40
- * within their app's scope. Attempting to write for a user in a different app
41
- * returns 404.
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.user - Target user ID. Required when calling as a developer or with a server-to-server key; ignored for end-user callers.
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
- * Permanently deletes the key-value storage entry identified by `key` for the
56
- * target user. Returns 204 No Content on success and 404 if the entry does not
57
- * exist.
58
- * End-user (user-JWT) callers can only delete entries they own. Developer and
59
- * server-to-server callers must supply a `user` param identifying the target user
60
- * within their app's scope.
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 Empty response body. HTTP 204 No Content on success.
83
+ * @returns Successful response
63
84
  */
64
- delete(key: string): Promise<void>;
85
+ delete(key: string): Promise<{
86
+ deleted: boolean;
87
+ key: string;
88
+ }>;
65
89
  /**
66
90
  * Retrieve a key-value storage entry
67
- * Returns the key-value storage entry identified by `key` for the target user.
68
- * Returns 404 if no entry exists for that key.
69
- * End-user (user-JWT) callers retrieve entries from their own storage. Developer
70
- * and server-to-server callers must supply a `user` param identifying the target
71
- * user within their app's scope.
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.user - Target user ID. Required when calling as a developer or with a server-to-server key; ignored for end-user callers.
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 new key-value storage entry for the given `key`, or overwrites the
83
- * value if an entry already exists. This is the idempotent alternative to the
84
- * create endpoint: safe to call regardless of whether the key already exists.
85
- * End-user (user-JWT) callers always write to their own storage. Developer and
86
- * server-to-server callers must supply a `user` param identifying the target user
87
- * within their app's scope. Attempting to write for a user in a different app
88
- * returns 404.
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.user - Target user ID. Required when calling as a developer or with a server-to-server key; ignored for end-user callers.
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;;;;;;;;;;;;;;;;;;;OAmBG;IACG,IAAI,CAAC,MAAM,CAAC,EAAE;QAAE,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,QAAQ,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qBhJ;;;;;;;;;;;;;;;;;;;OAmBG;IACG,MAAM,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE;QAAE,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;QAAC,GAAG,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;QAAC,MAAM,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;QAAC,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,oBAAoB,CAAC;CAG/P"}
@@ -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: c73677fe802c
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 creation time descending.
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 new key-value storage entry for the target user under the given key.
51
- * The key must not already exist for this user; use the upsert endpoint to create
52
- * or overwrite in a single call.
53
- * End-user (user-JWT) callers always write to their own storage. Developer and
54
- * server-to-server callers must supply a `user` param identifying the target user
55
- * within their app's scope. Attempting to write for a user in a different app
56
- * returns 404.
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.user - Target user ID. Required when calling as a developer or with a server-to-server key; ignored for end-user callers.
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
- * Permanently deletes the key-value storage entry identified by `key` for the
69
- * target user. Returns 204 No Content on success and 404 if the entry does not
70
- * exist.
71
- * End-user (user-JWT) callers can only delete entries they own. Developer and
72
- * server-to-server callers must supply a `user` param identifying the target user
73
- * within their app's scope.
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 Empty response body. HTTP 204 No Content on success.
99
+ * @returns Successful response
76
100
  */
77
101
  async delete(key) {
78
- await this.http.request(`/api/v1/kv/${key}`, { method: "DELETE" });
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 the key-value storage entry identified by `key` for the target user.
83
- * Returns 404 if no entry exists for that key.
84
- * End-user (user-JWT) callers retrieve entries from their own storage. Developer
85
- * and server-to-server callers must supply a `user` param identifying the target
86
- * user within their app's scope.
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.user - Target user ID. Required when calling as a developer or with a server-to-server key; ignored for end-user callers.
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 new key-value storage entry for the given `key`, or overwrites the
102
- * value if an entry already exists. This is the idempotent alternative to the
103
- * create endpoint: safe to call regardless of whether the key already exists.
104
- * End-user (user-JWT) callers always write to their own storage. Developer and
105
- * server-to-server callers must supply a `user` param identifying the target user
106
- * within their app's scope. Attempting to write for a user in a different app
107
- * returns 404.
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.user - Target user ID. Required when calling as a developer or with a server-to-server key; ignored for end-user callers.
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;;;;;;;;;;;;;;;;;;;OAmBG;IACH,KAAK,CAAC,IAAI,CAAC,MAA+F;QACxG,MAAM,KAAK,GAA6F,EAAE,CAAC;QAC3G,IAAI,MAAM,EAAE,IAAI,KAAK,SAAS,EAAE,CAAC;YAC/B,KAAK,CAAC,MAAM,CAAC,GAAG,MAAM,EAAE,IAAI,CAAC;QAC/B,CAAC;QACD,IAAI,MAAM,EAAE,QAAQ,KAAK,SAAS,EAAE,CAAC;YACnC,KAAK,CAAC,WAAW,CAAC,GAAG,MAAM,EAAE,QAAQ,CAAC;QACxC,CAAC;QACD,IAAI,MAAM,EAAE,IAAI,KAAK,SAAS,EAAE,CAAC;YAC/B,KAAK,CAAC,MAAM,CAAC,GAAG,MAAM,EAAE,IAAI,CAAC;QAC/B,CAAC;QACD,IAAI,MAAM,EAAE,UAAU,KAAK,SAAS,EAAE,CAAC;YACrC,KAAK,CAAC,aAAa,CAAC,GAAG,MAAM,EAAE,UAAU,CAAC;QAC5C,CAAC;QACD,IAAI,MAAM,EAAE,GAAG,KAAK,SAAS,EAAE,CAAC;YAC9B,KAAK,CAAC,KAAK,CAAC,GAAG,MAAM,EAAE,GAAG,CAAC;QAC7B,CAAC;QAED,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,YAAY,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC;IACpD,CAAC;IAED;;;;;;;;;;;;;;OAcG;I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AI,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;QAAC,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,WAAW,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC;QAAE,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;QAAC,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;QAAC,IAAI,EAAE;YAAE,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;YAAC,UAAU,EAAE,MAAM,CAAC;YAAC,EAAE,EAAE,MAAM,CAAC;YAAC,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;YAAC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;YAAC,MAAM,EAAE,MAAM,CAAC;YAAC,IAAI,EAAE,MAAM,CAAA;SAAE,EAAE,CAAC;QAAC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AAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAGrD"}
@@ -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: 20a294b0a2cf
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;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,KAAK,CAAC,IAAI,CAAC,KAAuH;QAChI,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,4BAA4B,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EA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K,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
  //# sourceMappingURL=oauth.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"oauth.d.ts","sourceRoot":"","sources":["../../../src/v1/resources/oauth.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,KAAK,EAAE,kCAAkC,EAAE,2BAA2B,EAAE,iCAAiC,EAAE,MAAM,uBAAuB,CAAC;AAChJ,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE/D,qBAAa,cAAc;IACb,OAAO,CAAC,IAAI;gBAAJ,IAAI,EAAE,UAAU;IAEpC;;;;;;;;;;;;;;;OAeG;IACG,OAAO,CAAC,KAAK,EAAE;QAAE,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;QAAC,SAAS,EAAE,MAAM,CAAA;KA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AAS,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: 7edd64bbf9cc
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":"","sources":["../../../src/v1/resources/oauth.ts"],"names":[],"mappings":"AAAA,oEAAoE;AACpE,wEAAwE;AACxE,6BAA6B;AAM7B,MAAM,OAAO,cAAc;IACL;IAApB,YAAoB,IAAgB;QAAhB,SAAI,GAAJ,IAAI,CAAY;IAAG,CAAC;IAExC;;;;;;;;;;;;;;;OAeG;IACH,KAAK,CAAC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