@archastro/sdk 0.7.0 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/auth.d.ts +5 -3
- package/dist/auth.d.ts.map +1 -1
- package/dist/auth.js +7 -5
- package/dist/auth.js.map +1 -1
- package/dist/channels/api_activity_feed_channel.js +2 -2
- package/dist/channels/api_activity_feed_channel.js.map +1 -1
- package/dist/channels/api_chat_channel.js +2 -2
- package/dist/channels/api_chat_channel.js.map +1 -1
- package/dist/channels/api_object_channel.d.ts +13 -2
- package/dist/channels/api_object_channel.d.ts.map +1 -1
- package/dist/channels/api_object_channel.js +21 -6
- package/dist/channels/api_object_channel.js.map +1 -1
- package/dist/channels/api_tasks_channel.d.ts +30 -0
- package/dist/channels/api_tasks_channel.d.ts.map +1 -0
- package/dist/channels/api_tasks_channel.js +45 -0
- package/dist/channels/api_tasks_channel.js.map +1 -0
- package/dist/client.d.ts +10 -0
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +12 -2
- package/dist/client.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/types/ai.d.ts +66 -52
- package/dist/types/ai.d.ts.map +1 -1
- package/dist/types/ai.js +7 -2
- package/dist/types/ai.js.map +1 -1
- package/dist/types/artifacts.d.ts +8 -8
- package/dist/types/artifacts.js +2 -2
- package/dist/types/artifacts.js.map +1 -1
- package/dist/types/automations.d.ts +68 -10
- package/dist/types/automations.d.ts.map +1 -1
- package/dist/types/automations.js +22 -2
- package/dist/types/automations.js.map +1 -1
- package/dist/types/chat.d.ts +18446 -3559
- package/dist/types/chat.d.ts.map +1 -1
- package/dist/types/chat.js +2 -2
- package/dist/types/chat.js.map +1 -1
- package/dist/types/common.d.ts +12646 -2316
- package/dist/types/common.d.ts.map +1 -1
- package/dist/types/common.js +372 -80
- package/dist/types/common.js.map +1 -1
- package/dist/types/config.d.ts +22 -10
- package/dist/types/config.d.ts.map +1 -1
- package/dist/types/config.js +4 -2
- package/dist/types/config.js.map +1 -1
- package/dist/types/device.d.ts +60 -0
- package/dist/types/device.d.ts.map +1 -0
- package/dist/types/device.js +25 -0
- package/dist/types/device.js.map +1 -0
- package/dist/types/extractions.d.ts +452 -0
- package/dist/types/extractions.d.ts.map +1 -0
- package/dist/types/extractions.js +52 -0
- package/dist/types/extractions.js.map +1 -0
- package/dist/types/image.js +2 -2
- package/dist/types/image.js.map +1 -1
- package/dist/types/index.d.ts +3 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +5 -2
- package/dist/types/index.js.map +1 -1
- package/dist/types/invites.js +2 -2
- package/dist/types/invites.js.map +1 -1
- package/dist/types/notifications.d.ts +2 -2
- package/dist/types/notifications.js +2 -2
- package/dist/types/notifications.js.map +1 -1
- package/dist/types/oauth.d.ts +117 -0
- package/dist/types/oauth.d.ts.map +1 -0
- package/dist/types/oauth.js +21 -0
- package/dist/types/oauth.js.map +1 -0
- package/dist/types/teams.d.ts +2402 -242
- package/dist/types/teams.d.ts.map +1 -1
- package/dist/types/teams.js +2 -2
- package/dist/types/teams.js.map +1 -1
- package/dist/types/threads.d.ts +1419 -328
- package/dist/types/threads.d.ts.map +1 -1
- package/dist/types/threads.js +18 -17
- package/dist/types/threads.js.map +1 -1
- package/dist/types/users.d.ts +2 -2
- package/dist/types/users.js +2 -2
- package/dist/types/users.js.map +1 -1
- package/dist/v1/resources/activity_feed.d.ts +84 -0
- package/dist/v1/resources/activity_feed.d.ts.map +1 -1
- package/dist/v1/resources/activity_feed.js +2 -2
- package/dist/v1/resources/activity_feed.js.map +1 -1
- package/dist/v1/resources/agent_computers.js +2 -2
- package/dist/v1/resources/agent_computers.js.map +1 -1
- package/dist/v1/resources/agent_env_vars.js +2 -2
- package/dist/v1/resources/agent_env_vars.js.map +1 -1
- package/dist/v1/resources/agent_health_actions.js +2 -2
- package/dist/v1/resources/agent_health_actions.js.map +1 -1
- package/dist/v1/resources/agent_installations.d.ts +2 -2
- package/dist/v1/resources/agent_installations.d.ts.map +1 -1
- package/dist/v1/resources/agent_installations.js +3 -3
- package/dist/v1/resources/agent_installations.js.map +1 -1
- package/dist/v1/resources/agent_routine_runs.d.ts +16 -1
- package/dist/v1/resources/agent_routine_runs.d.ts.map +1 -1
- package/dist/v1/resources/agent_routine_runs.js +16 -2
- package/dist/v1/resources/agent_routine_runs.js.map +1 -1
- package/dist/v1/resources/agent_routines.d.ts +47 -3
- package/dist/v1/resources/agent_routines.d.ts.map +1 -1
- package/dist/v1/resources/agent_routines.js +42 -3
- package/dist/v1/resources/agent_routines.js.map +1 -1
- package/dist/v1/resources/agent_sessions.d.ts +14 -2
- package/dist/v1/resources/agent_sessions.d.ts.map +1 -1
- package/dist/v1/resources/agent_sessions.js +14 -3
- package/dist/v1/resources/agent_sessions.js.map +1 -1
- package/dist/v1/resources/agent_skills.js +2 -2
- package/dist/v1/resources/agent_skills.js.map +1 -1
- package/dist/v1/resources/agent_tools.d.ts +2 -2
- package/dist/v1/resources/agent_tools.d.ts.map +1 -1
- package/dist/v1/resources/agent_tools.js +3 -3
- package/dist/v1/resources/agent_tools.js.map +1 -1
- package/dist/v1/resources/agents.d.ts +152 -35
- package/dist/v1/resources/agents.d.ts.map +1 -1
- package/dist/v1/resources/agents.js +148 -42
- package/dist/v1/resources/agents.js.map +1 -1
- package/dist/v1/resources/ai.d.ts +81 -40
- package/dist/v1/resources/ai.d.ts.map +1 -1
- package/dist/v1/resources/ai.js +52 -17
- package/dist/v1/resources/ai.js.map +1 -1
- package/dist/v1/resources/artifacts.js +2 -2
- package/dist/v1/resources/artifacts.js.map +1 -1
- package/dist/v1/resources/automation_runs.d.ts +41 -6
- package/dist/v1/resources/automation_runs.d.ts.map +1 -1
- package/dist/v1/resources/automation_runs.js +47 -8
- package/dist/v1/resources/automation_runs.js.map +1 -1
- package/dist/v1/resources/automations.d.ts +14 -1
- package/dist/v1/resources/automations.d.ts.map +1 -1
- package/dist/v1/resources/automations.js +15 -3
- package/dist/v1/resources/automations.js.map +1 -1
- package/dist/v1/resources/bug_reports.js +2 -2
- package/dist/v1/resources/bug_reports.js.map +1 -1
- package/dist/v1/resources/config.d.ts +3 -0
- package/dist/v1/resources/config.d.ts.map +1 -1
- package/dist/v1/resources/config.js +2 -2
- package/dist/v1/resources/config.js.map +1 -1
- package/dist/v1/resources/custom_objects.js +2 -2
- package/dist/v1/resources/custom_objects.js.map +1 -1
- package/dist/v1/resources/extractions.d.ts +50 -0
- package/dist/v1/resources/extractions.d.ts.map +1 -0
- package/dist/v1/resources/extractions.js +48 -0
- package/dist/v1/resources/extractions.js.map +1 -0
- package/dist/v1/resources/files.d.ts +88 -1
- package/dist/v1/resources/files.d.ts.map +1 -1
- package/dist/v1/resources/files.js +86 -3
- package/dist/v1/resources/files.js.map +1 -1
- package/dist/v1/resources/index.d.ts +5 -0
- package/dist/v1/resources/index.d.ts.map +1 -1
- package/dist/v1/resources/index.js +7 -2
- package/dist/v1/resources/index.js.map +1 -1
- package/dist/v1/resources/installation_sources.js +2 -2
- package/dist/v1/resources/installation_sources.js.map +1 -1
- package/dist/v1/resources/invites.js +2 -2
- package/dist/v1/resources/invites.js.map +1 -1
- package/dist/v1/resources/knowledge_documents.d.ts +33 -1
- package/dist/v1/resources/knowledge_documents.d.ts.map +1 -1
- package/dist/v1/resources/knowledge_documents.js +25 -2
- package/dist/v1/resources/knowledge_documents.js.map +1 -1
- package/dist/v1/resources/knowledge_ingestions.d.ts +16 -0
- package/dist/v1/resources/knowledge_ingestions.d.ts.map +1 -0
- package/dist/v1/resources/knowledge_ingestions.js +21 -0
- package/dist/v1/resources/knowledge_ingestions.js.map +1 -0
- package/dist/v1/resources/knowledge_sources.d.ts +2 -0
- package/dist/v1/resources/knowledge_sources.d.ts.map +1 -1
- package/dist/v1/resources/knowledge_sources.js +3 -2
- package/dist/v1/resources/knowledge_sources.js.map +1 -1
- package/dist/v1/resources/kv.js +2 -2
- package/dist/v1/resources/kv.js.map +1 -1
- package/dist/v1/resources/notification_preferences.js +2 -2
- package/dist/v1/resources/notification_preferences.js.map +1 -1
- package/dist/v1/resources/notifications.js +2 -2
- package/dist/v1/resources/notifications.js.map +1 -1
- package/dist/v1/resources/oauth.d.ts +115 -0
- package/dist/v1/resources/oauth.d.ts.map +1 -0
- package/dist/v1/resources/oauth.js +112 -0
- package/dist/v1/resources/oauth.js.map +1 -0
- package/dist/v1/resources/orgs.js +2 -2
- package/dist/v1/resources/orgs.js.map +1 -1
- package/dist/v1/resources/slack_channel_bindings.d.ts +25 -0
- package/dist/v1/resources/slack_channel_bindings.d.ts.map +1 -1
- package/dist/v1/resources/slack_channel_bindings.js +24 -2
- package/dist/v1/resources/slack_channel_bindings.js.map +1 -1
- package/dist/v1/resources/solution_categories.js +2 -2
- package/dist/v1/resources/solution_categories.js.map +1 -1
- package/dist/v1/resources/solution_instances.d.ts +26 -0
- package/dist/v1/resources/solution_instances.d.ts.map +1 -0
- package/dist/v1/resources/solution_instances.js +35 -0
- package/dist/v1/resources/solution_instances.js.map +1 -0
- package/dist/v1/resources/solution_tags.js +2 -2
- package/dist/v1/resources/solution_tags.js.map +1 -1
- package/dist/v1/resources/solutions.d.ts +85 -1
- package/dist/v1/resources/solutions.d.ts.map +1 -1
- package/dist/v1/resources/solutions.js +67 -3
- package/dist/v1/resources/solutions.js.map +1 -1
- package/dist/v1/resources/team_memberships.js +2 -2
- package/dist/v1/resources/team_memberships.js.map +1 -1
- package/dist/v1/resources/teams.d.ts +210 -4
- package/dist/v1/resources/teams.d.ts.map +1 -1
- package/dist/v1/resources/teams.js +16 -6
- package/dist/v1/resources/teams.js.map +1 -1
- package/dist/v1/resources/thread_messages.d.ts +24 -4
- package/dist/v1/resources/thread_messages.d.ts.map +1 -1
- package/dist/v1/resources/thread_messages.js +9 -6
- package/dist/v1/resources/thread_messages.js.map +1 -1
- package/dist/v1/resources/threads.d.ts +158 -42
- package/dist/v1/resources/threads.d.ts.map +1 -1
- package/dist/v1/resources/threads.js +121 -32
- package/dist/v1/resources/threads.js.map +1 -1
- package/dist/v1/resources/users.d.ts +132 -1
- package/dist/v1/resources/users.d.ts.map +1 -1
- package/dist/v1/resources/users.js +4 -2
- package/dist/v1/resources/users.js.map +1 -1
- package/dist/v1/resources/work_items.d.ts +78 -0
- package/dist/v1/resources/work_items.d.ts.map +1 -0
- package/dist/v1/resources/work_items.js +86 -0
- package/dist/v1/resources/work_items.js.map +1 -0
- package/dist/v1.d.ts +10 -0
- package/dist/v1.d.ts.map +1 -1
- package/dist/v1.js +17 -2
- package/dist/v1.js.map +1 -1
- package/package.json +1 -1
|
@@ -161,6 +161,44 @@ export declare class SolutionResource {
|
|
|
161
161
|
* @returns Agents that reference this Solution's bundle plus the count of configs that would be orphaned on delete.
|
|
162
162
|
*/
|
|
163
163
|
dependents(solution: string): Promise<SolutionDependentsResponse>;
|
|
164
|
+
/**
|
|
165
|
+
* Fetch a Solution cover image or gallery screenshot
|
|
166
|
+
* Returns the raw bytes of a Solution's cover image — the bundled asset the
|
|
167
|
+
* Solution body's `image:` field names — or, with the optional `file` param,
|
|
168
|
+
* one of its gallery screenshots (`screenshots:` entries). This endpoint backs
|
|
169
|
+
* the `image_url` and `screenshot_urls` fields of catalog payloads (such as
|
|
170
|
+
* `GET /api/v1/solutions`), which anonymous consumers — the public
|
|
171
|
+
* marketplace's page cache, OpenGraph scrapers — may hold far longer than a
|
|
172
|
+
* signed storage URL lives. Authorization is performed via a short, stable
|
|
173
|
+
* capability `token` rather than an HTTP header, so the URL never expires.
|
|
174
|
+
* The `token` is an HMAC-based capability tied to the Solution config ID. It
|
|
175
|
+
* does not expire, but the endpoint checks at fetch time that the Solution
|
|
176
|
+
* still declares the requested image — without `file`, that it still declares
|
|
177
|
+
* a cover; with `file`, that the path is still among the body's declared
|
|
178
|
+
* `image`/`screenshots` — so republishing without the asset (or hiding the
|
|
179
|
+
* Solution) turns the URL into a 404. Shared caches may continue serving the
|
|
180
|
+
* old image until the `Cache-Control` max-age of one hour elapses. `v` is an
|
|
181
|
+
* opaque cache key minted alongside the token; it changes when the Solution
|
|
182
|
+
* changes and is ignored by verification.
|
|
183
|
+
* All failure modes — invalid config ID, invalid token, hidden Solution, no
|
|
184
|
+
* declared cover, a `file` outside the declared set, or an asset that doesn't
|
|
185
|
+
* resolve to a bundled image — return a uniform `404` to avoid acting as an
|
|
186
|
+
* existence oracle.
|
|
187
|
+
* @param solution - Solution config ID (`cfg_...`) whose cover image to fetch.
|
|
188
|
+
* @param params - Query parameters.
|
|
189
|
+
* @param params.token - HMAC capability token authorizing access to this Solution's cover. Obtained from the `image_url` minted when the Solution was serialized.
|
|
190
|
+
* @param params.v - Opaque cache key minted alongside the token; changes when the Solution changes. Ignored by token verification.
|
|
191
|
+
* @param params.file - Bundled asset path of the image to serve (for example `images/setup.png`). Must be one of the paths the Solution body currently declares in `image`/`screenshots` — anything else is a `404`. When absent the declared cover (`image:`) is served.
|
|
192
|
+
* @returns Raw cover image bytes, served with the asset's image content type.
|
|
193
|
+
*/
|
|
194
|
+
image(solution: string, params?: {
|
|
195
|
+
token?: string;
|
|
196
|
+
v?: string;
|
|
197
|
+
file?: string;
|
|
198
|
+
}): Promise<{
|
|
199
|
+
content: ArrayBuffer;
|
|
200
|
+
mimeType: string;
|
|
201
|
+
}>;
|
|
164
202
|
/**
|
|
165
203
|
* Install a Solution
|
|
166
204
|
* Provisions a runtime resource from an already-imported Solution. The type of
|
|
@@ -176,10 +214,12 @@ export declare class SolutionResource {
|
|
|
176
214
|
* the library; install provisions a runtime resource from it.
|
|
177
215
|
* @param solution - Config ID (`cfg_...`) or `lookup_key` of the already-imported Solution to install from.
|
|
178
216
|
* @param input - Request body.
|
|
217
|
+
* @param input.acl - Access control list applied atomically to a provisioned Agent or Automation. Team grants are useful when installing into a cross-organization collaboration team.
|
|
179
218
|
* @param input.allow_auto_import - When `true`, automatically imports the Solution into the target tenant before installing if the org-scoped copy does not yet exist. Requires either an authenticated org user (member or admin) or a platform-privileged caller (S2S, developer JWT) that also supplies an explicit `org` param. Defaults to `false`; without it the endpoint returns 404 when the org-scoped Solution is missing.
|
|
219
|
+
* @param input.details - Template-specific install options selected by the `type` discriminator. AutomationTemplate installs accept `{type: "automation", prefills: ...}`.
|
|
180
220
|
* @param input.lookup_key - Lookup key override for the provisioned resource (for example, the Agent's `agent_key`).
|
|
181
221
|
* @param input.lookup_key_suffix - Suffix appended to every `config_ref:` resolution at install time. Should be stable per logical install and unique per attempt — allows the same Solution to be installed multiple times in the same app without collisions.
|
|
182
|
-
* @param input.name - Display name override for
|
|
222
|
+
* @param input.name - Display name override for a provisioned Agent or Automation. Ignored for attachment Solutions.
|
|
183
223
|
* @param input.org - Organization ID (`org_...`) for the install destination scope.
|
|
184
224
|
* @param input.target - ID or `lookup_key` of the parent Agent to attach to. Required when installing an `AgentRoutineTemplate`, `AgentToolTemplate`, `AgentSkillTemplate`, or `AgentComputerTemplate` Solution, since those produce sub-resources attached to an existing Agent. Omit for `AgentTemplate` and `AutomationTemplate` Solutions, which provision standalone resources.
|
|
185
225
|
* @param input.team - Team ID (`team_...`) for the install destination scope.
|
|
@@ -188,7 +228,30 @@ export declare class SolutionResource {
|
|
|
188
228
|
* @returns The provisioned runtime resource (Agent, Automation, AgentRoutine, AgentTool, AgentSkill, or AgentComputer) together with the source Solution's config ID.
|
|
189
229
|
*/
|
|
190
230
|
install(solution: string, input: {
|
|
231
|
+
acl?: {
|
|
232
|
+
add?: {
|
|
233
|
+
actions: string[];
|
|
234
|
+
principal?: string | undefined;
|
|
235
|
+
principal_type: string;
|
|
236
|
+
}[] | undefined;
|
|
237
|
+
grants?: {
|
|
238
|
+
actions: string[];
|
|
239
|
+
principal?: string | undefined;
|
|
240
|
+
principal_type: string;
|
|
241
|
+
}[] | undefined;
|
|
242
|
+
remove?: {
|
|
243
|
+
principal?: string | undefined;
|
|
244
|
+
principal_type: string;
|
|
245
|
+
}[] | undefined;
|
|
246
|
+
} | undefined;
|
|
191
247
|
allow_auto_import?: boolean | undefined;
|
|
248
|
+
details?: {
|
|
249
|
+
prefills?: {
|
|
250
|
+
participants?: Record<string, unknown> | undefined;
|
|
251
|
+
payload?: Record<string, unknown> | undefined;
|
|
252
|
+
} | undefined;
|
|
253
|
+
type: "automation";
|
|
254
|
+
} | undefined;
|
|
192
255
|
lookup_key?: string | undefined;
|
|
193
256
|
lookup_key_suffix?: string | undefined;
|
|
194
257
|
name?: string | undefined;
|
|
@@ -309,5 +372,26 @@ export declare class SolutionResource {
|
|
|
309
372
|
} | undefined;
|
|
310
373
|
target_solution?: string | undefined;
|
|
311
374
|
}): Promise<SolutionUpgradeResponse>;
|
|
375
|
+
/**
|
|
376
|
+
* Track a Solution detail-page view
|
|
377
|
+
* Records a `solution_viewed` analytics event for the identified Solution and
|
|
378
|
+
* returns `204 No Content`. Fired by the marketplace when a Solution's detail
|
|
379
|
+
* page is rendered in a browser, so publishers can see impressions alongside
|
|
380
|
+
* installs in their Solution analytics.
|
|
381
|
+
* Visibility matches `GET /api/v1/solutions/:solution`: unauthenticated callers
|
|
382
|
+
* (the logged-out marketplace) can only track Solutions published to the public
|
|
383
|
+
* catalog; anything the caller could not retrieve returns 404 and records
|
|
384
|
+
* nothing.
|
|
385
|
+
* Pass `anonymous` (the analytics visitor ID) so logged-out views can be
|
|
386
|
+
* counted as unique viewers. The event's Solution and publisher attribution are
|
|
387
|
+
* resolved server-side from the Solution row — never from request input.
|
|
388
|
+
* @param solution - Solution config ID (`cfg_...`) or `lookup_key` of the viewed Solution.
|
|
389
|
+
* @param input - Request body.
|
|
390
|
+
* @param input.anonymous - Analytics visitor ID to attribute the view to, for unique-viewer counting. Same identifier the `POST /api/v1/t` events use; the marketplace sends it on every view. Authenticated callers additionally get user attribution from their session.
|
|
391
|
+
* @returns Empty body. HTTP 204 indicates the Solution view was recorded successfully.
|
|
392
|
+
*/
|
|
393
|
+
view(solution: string, input: {
|
|
394
|
+
anonymous?: string | undefined;
|
|
395
|
+
}): Prom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BAAC,KAAK,CAAC,EAAE;oBAAE,OAAO,EAAE,MAAM,CAAC;oBAAC,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;oBAAC,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;oBAAC,aAAa,EAAE,MAAM,CAAA;iBAAE,EAAE,GAAG,SAAS,CAAC;gBAAC,UAAU,EAAE,MAAM,CAAA;aAAE,CAAC;YAAC,QAAQ,CAAC,EAAE;gBAAE,OAAO,EAAE,MAAM,CAAC;gBAAC,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;gBAAC,aAAa,EAAE,MAAM,CAAA;aAAE,GAAG,SAAS,CAAC;YAAC,SAAS,CAAC,EAAE;gBAAE,OAAO,EAAE,MAAM,CAAC;gBAAC,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;gBAAC,aAAa,EAAE,MAAM,CAAA;aAAE,EAAE,GAAG,SAAS,CAAA;SAAE,GAAG,SAAS,CAAC;QAAC,eAAe,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;KAAE,GAAG,OAAO,CAAC,uBAAuB,CAAC;IAI93C;;;;;;;;;;;;;;;;;OAiBG;IACG,IAAI,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE;QAAE,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;KAAE,GAAG,OAAO,CAAC,IAAI,CAAC;CAGvF"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
// Copyright (c) 2026 ArchAstro Inc.
|
|
1
|
+
// Copyright (c) 2026 ArchAstro Inc. Licensed under the MIT License.
|
|
2
2
|
// This file is auto-generated by @archastro/sdk-generator. Do not edit.
|
|
3
|
-
// Content hash:
|
|
3
|
+
// Content hash: 29b6e8d496f3
|
|
4
4
|
export class SolutionResource {
|
|
5
5
|
http;
|
|
6
6
|
constructor(http) {
|
|
@@ -127,6 +127,47 @@ export class SolutionResource {
|
|
|
127
127
|
async dependents(solution) {
|
|
128
128
|
return this.http.request(`/api/v1/solutions/${solution}/dependents`);
|
|
129
129
|
}
|
|
130
|
+
/**
|
|
131
|
+
* Fetch a Solution cover image or gallery screenshot
|
|
132
|
+
* Returns the raw bytes of a Solution's cover image — the bundled asset the
|
|
133
|
+
* Solution body's `image:` field names — or, with the optional `file` param,
|
|
134
|
+
* one of its gallery screenshots (`screenshots:` entries). This endpoint backs
|
|
135
|
+
* the `image_url` and `screenshot_urls` fields of catalog payloads (such as
|
|
136
|
+
* `GET /api/v1/solutions`), which anonymous consumers — the public
|
|
137
|
+
* marketplace's page cache, OpenGraph scrapers — may hold far longer than a
|
|
138
|
+
* signed storage URL lives. Authorization is performed via a short, stable
|
|
139
|
+
* capability `token` rather than an HTTP header, so the URL never expires.
|
|
140
|
+
* The `token` is an HMAC-based capability tied to the Solution config ID. It
|
|
141
|
+
* does not expire, but the endpoint checks at fetch time that the Solution
|
|
142
|
+
* still declares the requested image — without `file`, that it still declares
|
|
143
|
+
* a cover; with `file`, that the path is still among the body's declared
|
|
144
|
+
* `image`/`screenshots` — so republishing without the asset (or hiding the
|
|
145
|
+
* Solution) turns the URL into a 404. Shared caches may continue serving the
|
|
146
|
+
* old image until the `Cache-Control` max-age of one hour elapses. `v` is an
|
|
147
|
+
* opaque cache key minted alongside the token; it changes when the Solution
|
|
148
|
+
* changes and is ignored by verification.
|
|
149
|
+
* All failure modes — invalid config ID, invalid token, hidden Solution, no
|
|
150
|
+
* declared cover, a `file` outside the declared set, or an asset that doesn't
|
|
151
|
+
* resolve to a bundled image — return a uniform `404` to avoid acting as an
|
|
152
|
+
* existence oracle.
|
|
153
|
+
* @param solution - Solution config ID (`cfg_...`) whose cover image to fetch.
|
|
154
|
+
* @param params - Query parameters.
|
|
155
|
+
* @param params.token - HMAC capability token authorizing access to this Solution's cover. Obtained from the `image_url` minted when the Solution was serialized.
|
|
156
|
+
* @param params.v - Opaque cache key minted alongside the token; changes when the Solution changes. Ignored by token verification.
|
|
157
|
+
* @param params.file - Bundled asset path of the image to serve (for example `images/setup.png`). Must be one of the paths the Solution body currently declares in `image`/`screenshots` — anything else is a `404`. When absent the declared cover (`image:`) is served.
|
|
158
|
+
* @returns Raw cover image bytes, served with the asset's image content type.
|
|
159
|
+
*/
|
|
160
|
+
async image(solution, params) {
|
|
161
|
+
const query = {};
|
|
162
|
+
query["token"] = params?.token;
|
|
163
|
+
if (params?.v !== undefined) {
|
|
164
|
+
query["v"] = params?.v;
|
|
165
|
+
}
|
|
166
|
+
if (params?.file !== undefined) {
|
|
167
|
+
query["file"] = params?.file;
|
|
168
|
+
}
|
|
169
|
+
return this.http.requestRaw(`/api/v1/solutions/${solution}/image`, { query });
|
|
170
|
+
}
|
|
130
171
|
/**
|
|
131
172
|
* Install a Solution
|
|
132
173
|
* Provisions a runtime resource from an already-imported Solution. The type of
|
|
@@ -142,10 +183,12 @@ export class SolutionResource {
|
|
|
142
183
|
* the library; install provisions a runtime resource from it.
|
|
143
184
|
* @param solution - Config ID (`cfg_...`) or `lookup_key` of the already-imported Solution to install from.
|
|
144
185
|
* @param input - Request body.
|
|
186
|
+
* @param input.acl - Access control list applied atomically to a provisioned Agent or Automation. Team grants are useful when installing into a cross-organization collaboration team.
|
|
145
187
|
* @param input.allow_auto_import - When `true`, automatically imports the Solution into the target tenant before installing if the org-scoped copy does not yet exist. Requires either an authenticated org user (member or admin) or a platform-privileged caller (S2S, developer JWT) that also supplies an explicit `org` param. Defaults to `false`; without it the endpoint returns 404 when the org-scoped Solution is missing.
|
|
188
|
+
* @param input.details - Template-specific install options selected by the `type` discriminator. AutomationTemplate installs accept `{type: "automation", prefills: ...}`.
|
|
146
189
|
* @param input.lookup_key - Lookup key override for the provisioned resource (for example, the Agent's `agent_key`).
|
|
147
190
|
* @param input.lookup_key_suffix - Suffix appended to every `config_ref:` resolution at install time. Should be stable per logical install and unique per attempt — allows the same Solution to be installed multiple times in the same app without collisions.
|
|
148
|
-
* @param input.name - Display name override for
|
|
191
|
+
* @param input.name - Display name override for a provisioned Agent or Automation. Ignored for attachment Solutions.
|
|
149
192
|
* @param input.org - Organization ID (`org_...`) for the install destination scope.
|
|
150
193
|
* @param input.target - ID or `lookup_key` of the parent Agent to attach to. Required when installing an `AgentRoutineTemplate`, `AgentToolTemplate`, `AgentSkillTemplate`, or `AgentComputerTemplate` Solution, since those produce sub-resources attached to an existing Agent. Omit for `AgentTemplate` and `AutomationTemplate` Solutions, which provision standalone resources.
|
|
151
194
|
* @param input.team - Team ID (`team_...`) for the install destination scope.
|
|
@@ -214,5 +257,26 @@ export class SolutionResource {
|
|
|
214
257
|
async upgrade(solution, input) {
|
|
215
258
|
return this.http.request(`/api/v1/solutions/${solution}/upgrade`, { method: "POST", body: input });
|
|
216
259
|
}
|
|
260
|
+
/**
|
|
261
|
+
* Track a Solution detail-page view
|
|
262
|
+
* Records a `solution_viewed` analytics event for the identified Solution and
|
|
263
|
+
* returns `204 No Content`. Fired by the marketplace when a Solution's detail
|
|
264
|
+
* page is rendered in a browser, so publishers can see impressions alongside
|
|
265
|
+
* installs in their Solution analytics.
|
|
266
|
+
* Visibility matches `GET /api/v1/solutions/:solution`: unauthenticated callers
|
|
267
|
+
* (the logged-out marketplace) can only track Solutions published to the public
|
|
268
|
+
* catalog; anything the caller could not retrieve returns 404 and records
|
|
269
|
+
* nothing.
|
|
270
|
+
* Pass `anonymous` (the analytics visitor ID) so logged-out views can be
|
|
271
|
+
* counted as unique viewers. The event's Solution and publisher attribution are
|
|
272
|
+
* resolved server-side from the Solution row — never from request input.
|
|
273
|
+
* @param solution - Solution config ID (`cfg_...`) or `lookup_key` of the viewed Solution.
|
|
274
|
+
* @param input - Request body.
|
|
275
|
+
* @param input.anonymous - Analytics visitor ID to attribute the view to, for unique-viewer counting. Same identifier the `POST /api/v1/t` events use; the marketplace sends it on every view. Authenticated callers additionally get user attribution from their session.
|
|
276
|
+
* @returns Empty body. HTTP 204 indicates the Solution view was recorded successfully.
|
|
277
|
+
*/
|
|
278
|
+
async view(solution, input) {
|
|
279
|
+
await this.http.request(`/api/v1/solutions/${solution}/view`, { method: "POST", body: input });
|
|
280
|
+
}
|
|
217
281
|
}
|
|
218
282
|
//# sourceMappingURL=solutions.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"solutions.js","sourceRoot":"","sources":["../../../src/v1/resources/solutions.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"solutions.js","sourceRoot":"","sources":["../../../src/v1/resources/solutions.ts"],"names":[],"mappings":"AAAA,oEAAoE;AACpE,wEAAwE;AACxE,6BAA6B;AAK7B,MAAM,OAAO,gBAAgB;IACP;IAApB,YAAoB,IAAgB;QAAhB,SAAI,GAAJ,IAAI,CAAY;IAAG,CAAC;IAExC;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,KAAK,CAAC,IAAI,CAAC,MAAyG;QAClH,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,SAAS,KAAK,SAAS,EAAE,CAAC;YACpC,KAAK,CAAC,YAAY,CAAC,GAAG,MAAM,EAAE,SAAS,CAAC;QAC1C,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,MAAM,KAAK,SAAS,EAAE,CAAC;YACjC,KAAK,CAAC,QAAQ,CAAC,GAAG,MAAM,EAAE,MAAM,CAAC;QACnC,CAAC;QAED,OAAO,IAAI,CAAC,IAAI,CAAC,O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MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC;IACjG,CAAC;CACF"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
// Copyright (c) 2026 ArchAstro Inc.
|
|
1
|
+
// Copyright (c) 2026 ArchAstro Inc. Licensed under the MIT License.
|
|
2
2
|
// This file is auto-generated by @archastro/sdk-generator. Do not edit.
|
|
3
|
-
// Content hash:
|
|
3
|
+
// Content hash: dc814522180a
|
|
4
4
|
export class TeamMembershipResource {
|
|
5
5
|
http;
|
|
6
6
|
constructor(http) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"team_memberships.js","sourceRoot":"","sources":["../../../src/v1/resources/team_memberships.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"team_memberships.js","sourceRoot":"","sources":["../../../src/v1/resources/team_memberships.ts"],"names":[],"mappings":"AAAA,oEAAoE;AACpE,wEAAwE;AACxE,6BAA6B;AAK7B,MAAM,OAAO,sBAAsB;IACb;IAApB,YAAoB,IAAgB;QAAhB,SAAI,GAAJ,IAAI,CAAY;IAAG,CAAC;IAExC;;;;;;;;;;;;;;;;;;;OAmBG;IACH,KAAK,CAAC,IAAI,CAAC,MAAiG;QAC1G,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,IAAI,KAAK,SAAS,EAAE,CAAC;YAC/B,KAAK,CAAC,MAAM,CAAC,GAAG,MAAM,EAAE,IAAI,CAAC;QAC/B,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,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;QAED,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,0BAA0B,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC;IAClE,CAAC;IAED;;;;;;;;;;OAUG;IACH,KAAK,CAAC,MAAM,CAAC,cAAsB;QACjC,MAAM,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,4BAA4B,cAAc,EAAE,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,CAAC;IAC9F,CAAC;CACF"}
|
|
@@ -123,6 +123,7 @@ export declare class MemberResource {
|
|
|
123
123
|
app?: string | undefined;
|
|
124
124
|
created_at?: string | undefined;
|
|
125
125
|
default_model?: string | undefined;
|
|
126
|
+
description?: string | undefined;
|
|
126
127
|
email?: string | undefined;
|
|
127
128
|
id: string;
|
|
128
129
|
identity?: string | undefined;
|
|
@@ -136,11 +137,76 @@ export declare class MemberResource {
|
|
|
136
137
|
phone_number?: string | undefined;
|
|
137
138
|
sandbox?: string | undefined;
|
|
138
139
|
source_solution?: {
|
|
140
|
+
current_solution?: {
|
|
141
|
+
category_keys?: string[] | undefined;
|
|
142
|
+
created_at?: string | undefined;
|
|
143
|
+
description?: string | undefined;
|
|
144
|
+
events?: Record<string, unknown> | undefined;
|
|
145
|
+
id: string;
|
|
146
|
+
image_url?: string | undefined;
|
|
147
|
+
kind: string;
|
|
148
|
+
latest_solution?: string | undefined;
|
|
149
|
+
latest_version?: string | undefined;
|
|
150
|
+
lookup_key?: string | undefined;
|
|
151
|
+
metadata?: Record<string, unknown> | undefined;
|
|
152
|
+
name?: string | undefined;
|
|
153
|
+
org?: string | undefined;
|
|
154
|
+
org_logo?: {
|
|
155
|
+
file?: string | undefined;
|
|
156
|
+
height?: number | undefined;
|
|
157
|
+
media?: string | undefined;
|
|
158
|
+
mime_type?: string | undefined;
|
|
159
|
+
refresh_url?: string | undefined;
|
|
160
|
+
url?: string | undefined;
|
|
161
|
+
width?: number | undefined;
|
|
162
|
+
} | undefined;
|
|
163
|
+
org_name?: string | undefined;
|
|
164
|
+
org_slug?: string | undefined;
|
|
165
|
+
owners: string[];
|
|
166
|
+
readme_url?: string | undefined;
|
|
167
|
+
screenshot_urls?: string[] | undefined;
|
|
168
|
+
solution_id?: string | undefined;
|
|
169
|
+
solution_version?: string | undefined;
|
|
170
|
+
tag_keys?: string[] | undefined;
|
|
171
|
+
template_kind?: string | undefined;
|
|
172
|
+
templates: {
|
|
173
|
+
description?: string | undefined;
|
|
174
|
+
details?: {
|
|
175
|
+
automation_type?: string | undefined;
|
|
176
|
+
invoke_contract?: {
|
|
177
|
+
input_schema?: Record<string, unknown> | undefined;
|
|
178
|
+
participants?: {
|
|
179
|
+
description?: string | undefined;
|
|
180
|
+
name: string;
|
|
181
|
+
required: boolean;
|
|
182
|
+
type: string;
|
|
183
|
+
}[] | undefined;
|
|
184
|
+
prefills: {
|
|
185
|
+
participants?: Record<string, unknown> | undefined;
|
|
186
|
+
payload?: Record<string, unknown> | undefined;
|
|
187
|
+
};
|
|
188
|
+
} | undefined;
|
|
189
|
+
type: "automation";
|
|
190
|
+
} | undefined;
|
|
191
|
+
display_name?: string | undefined;
|
|
192
|
+
id?: string | undefined;
|
|
193
|
+
kind: string;
|
|
194
|
+
lookup_key?: string | undefined;
|
|
195
|
+
name?: string | undefined;
|
|
196
|
+
readme_url?: string | undefined;
|
|
197
|
+
virtual_path?: string | undefined;
|
|
198
|
+
}[];
|
|
199
|
+
updated_at?: string | undefined;
|
|
200
|
+
upgrade_available: boolean;
|
|
201
|
+
virtual_path?: string | undefined;
|
|
202
|
+
} | undefined;
|
|
139
203
|
solution: {
|
|
140
204
|
category_keys?: string[] | undefined;
|
|
141
205
|
created_at?: string | undefined;
|
|
142
206
|
description?: string | undefined;
|
|
207
|
+
events?: Record<string, unknown> | undefined;
|
|
143
208
|
id: string;
|
|
209
|
+
image_url?: string | undefined;
|
|
144
210
|
kind: string;
|
|
145
211
|
latest_solution?: string | undefined;
|
|
146
212
|
latest_version?: string | undefined;
|
|
@@ -161,12 +227,30 @@ export declare class MemberResource {
|
|
|
161
227
|
org_slug?: string | undefined;
|
|
162
228
|
owners: string[];
|
|
163
229
|
readme_url?: string | undefined;
|
|
230
|
+
screenshot_urls?: string[] | undefined;
|
|
164
231
|
solution_id?: string | undefined;
|
|
165
232
|
solution_version?: string | undefined;
|
|
166
233
|
tag_keys?: string[] | undefined;
|
|
167
234
|
template_kind?: string | undefined;
|
|
168
235
|
templates: {
|
|
169
236
|
description?: string | undefined;
|
|
237
|
+
details?: {
|
|
238
|
+
automation_type?: string | undefined;
|
|
239
|
+
invoke_contract?: {
|
|
240
|
+
input_schema?: Record<string, unknown> | undefined;
|
|
241
|
+
participants?: {
|
|
242
|
+
description?: string | undefined;
|
|
243
|
+
name: string;
|
|
244
|
+
required: boolean;
|
|
245
|
+
type: string;
|
|
246
|
+
}[] | undefined;
|
|
247
|
+
prefills: {
|
|
248
|
+
participants?: Record<string, unknown> | undefined;
|
|
249
|
+
payload?: Record<string, unknown> | undefined;
|
|
250
|
+
};
|
|
251
|
+
} | undefined;
|
|
252
|
+
type: "automation";
|
|
253
|
+
} | undefined;
|
|
170
254
|
display_name?: string | undefined;
|
|
171
255
|
id?: string | undefined;
|
|
172
256
|
kind: string;
|
|
@@ -280,16 +364,24 @@ export declare class TeamThreadResource {
|
|
|
280
364
|
* Returns all threads owned by the specified team that the authenticated caller
|
|
281
365
|
* has permission to view. The caller must have access to the team; requests
|
|
282
366
|
* without team access are rejected with 404.
|
|
283
|
-
* Threads are returned in a single `data` array
|
|
284
|
-
*
|
|
367
|
+
* Threads are returned in a single `data` array, ordered with the team's
|
|
368
|
+
* default thread first, then by most recent activity (newest first). Each
|
|
369
|
+
* thread carries a `last_activity` timestamp — the most recent message's
|
|
370
|
+
* creation time, falling back to the thread's own creation time. Use the
|
|
371
|
+
* team-scoped thread endpoints to create, update, or delete individual
|
|
372
|
+
* threads.
|
|
285
373
|
* @param team - Team ID (`tem_...`) whose threads should be listed.
|
|
374
|
+
* @param params - Query parameters.
|
|
375
|
+
* @param params.tags - Optional: only return threads tagged with at least one of these tags (OR-match). Repeated query params, e.g. `?tags[]=blocked&tags[]=needs-review`.
|
|
286
376
|
* @returns Successful response
|
|
287
377
|
*/
|
|
288
|
-
list(team: string
|
|
378
|
+
list(team: string, params?: {
|
|
379
|
+
tags?: string[];
|
|
380
|
+
}): Promise<{
|
|
289
381
|
data: {
|
|
290
382
|
agent_user?: string | undefined;
|
|
291
383
|
created_at?: string | undefined;
|
|
292
|
-
creator?: {
|
|
384
|
+
creator?: string | {
|
|
293
385
|
alias?: string | undefined;
|
|
294
386
|
app?: string | undefined;
|
|
295
387
|
app_name?: string | undefined;
|
|
@@ -311,11 +403,30 @@ export declare class TeamThreadResource {
|
|
|
311
403
|
is_transient?: boolean | undefined;
|
|
312
404
|
is_unlisted?: boolean | undefined;
|
|
313
405
|
key?: string | undefined;
|
|
406
|
+
kind?: string | undefined;
|
|
314
407
|
last_activity?: string | undefined;
|
|
408
|
+
last_message_preview?: string | undefined;
|
|
409
|
+
last_message_sender?: string | undefined;
|
|
315
410
|
metadata?: Record<string, unknown> | undefined;
|
|
316
411
|
muted?: boolean | undefined;
|
|
317
412
|
org?: string | undefined;
|
|
318
413
|
parent_message?: {
|
|
414
|
+
acl?: {
|
|
415
|
+
add?: {
|
|
416
|
+
actions: string[];
|
|
417
|
+
principal?: string | undefined;
|
|
418
|
+
principal_type: string;
|
|
419
|
+
}[] | undefined;
|
|
420
|
+
grants?: {
|
|
421
|
+
actions: string[];
|
|
422
|
+
principal?: string | undefined;
|
|
423
|
+
principal_type: string;
|
|
424
|
+
}[] | undefined;
|
|
425
|
+
remove?: {
|
|
426
|
+
principal?: string | undefined;
|
|
427
|
+
principal_type: string;
|
|
428
|
+
}[] | undefined;
|
|
429
|
+
} | undefined;
|
|
319
430
|
actors?: {
|
|
320
431
|
alias?: string | undefined;
|
|
321
432
|
id?: string | undefined;
|
|
@@ -386,6 +497,7 @@ export declare class TeamThreadResource {
|
|
|
386
497
|
has_replies?: boolean | undefined;
|
|
387
498
|
id: string;
|
|
388
499
|
idempotency_key?: string | undefined;
|
|
500
|
+
is_deleted?: boolean | undefined;
|
|
389
501
|
legacy_agent?: string | undefined;
|
|
390
502
|
metadata?: Record<string, unknown> | undefined;
|
|
391
503
|
org?: string | undefined;
|
|
@@ -403,7 +515,9 @@ export declare class TeamThreadResource {
|
|
|
403
515
|
sandbox?: string | undefined;
|
|
404
516
|
team?: string | undefined;
|
|
405
517
|
thread?: string | undefined;
|
|
518
|
+
type?: string | undefined;
|
|
406
519
|
user?: string | undefined;
|
|
520
|
+
visibility?: "default" | "private" | undefined;
|
|
407
521
|
} | undefined;
|
|
408
522
|
participant?: string[] | undefined;
|
|
409
523
|
participants?: {
|
|
@@ -442,6 +556,7 @@ export declare class TeamThreadResource {
|
|
|
442
556
|
app?: string | undefined;
|
|
443
557
|
created_at?: string | undefined;
|
|
444
558
|
default_model?: string | undefined;
|
|
559
|
+
description?: string | undefined;
|
|
445
560
|
email?: string | undefined;
|
|
446
561
|
id: string;
|
|
447
562
|
identity?: string | undefined;
|
|
@@ -455,11 +570,76 @@ export declare class TeamThreadResource {
|
|
|
455
570
|
phone_number?: string | undefined;
|
|
456
571
|
sandbox?: string | undefined;
|
|
457
572
|
source_solution?: {
|
|
573
|
+
current_solution?: {
|
|
574
|
+
category_keys?: string[] | undefined;
|
|
575
|
+
created_at?: string | undefined;
|
|
576
|
+
description?: string | undefined;
|
|
577
|
+
events?: Record<string, unknown> | undefined;
|
|
578
|
+
id: string;
|
|
579
|
+
image_url?: string | undefined;
|
|
580
|
+
kind: string;
|
|
581
|
+
latest_solution?: string | undefined;
|
|
582
|
+
latest_version?: string | undefined;
|
|
583
|
+
lookup_key?: string | undefined;
|
|
584
|
+
metadata?: Record<string, unknown> | undefined;
|
|
585
|
+
name?: string | undefined;
|
|
586
|
+
org?: string | undefined;
|
|
587
|
+
org_logo?: {
|
|
588
|
+
file?: string | undefined;
|
|
589
|
+
height?: number | undefined;
|
|
590
|
+
media?: string | undefined;
|
|
591
|
+
mime_type?: string | undefined;
|
|
592
|
+
refresh_url?: string | undefined;
|
|
593
|
+
url?: string | undefined;
|
|
594
|
+
width?: number | undefined;
|
|
595
|
+
} | undefined;
|
|
596
|
+
org_name?: string | undefined;
|
|
597
|
+
org_slug?: string | undefined;
|
|
598
|
+
owners: string[];
|
|
599
|
+
readme_url?: string | undefined;
|
|
600
|
+
screenshot_urls?: string[] | undefined;
|
|
601
|
+
solution_id?: string | undefined;
|
|
602
|
+
solution_version?: string | undefined;
|
|
603
|
+
tag_keys?: string[] | undefined;
|
|
604
|
+
template_kind?: string | undefined;
|
|
605
|
+
templates: {
|
|
606
|
+
description?: string | undefined;
|
|
607
|
+
details?: {
|
|
608
|
+
automation_type?: string | undefined;
|
|
609
|
+
invoke_contract?: {
|
|
610
|
+
input_schema?: Record<string, unknown> | undefined;
|
|
611
|
+
participants?: {
|
|
612
|
+
description?: string | undefined;
|
|
613
|
+
name: string;
|
|
614
|
+
required: boolean;
|
|
615
|
+
type: string;
|
|
616
|
+
}[] | undefined;
|
|
617
|
+
prefills: {
|
|
618
|
+
participants?: Record<string, unknown> | undefined;
|
|
619
|
+
payload?: Record<string, unknown> | undefined;
|
|
620
|
+
};
|
|
621
|
+
} | undefined;
|
|
622
|
+
type: "automation";
|
|
623
|
+
} | undefined;
|
|
624
|
+
display_name?: string | undefined;
|
|
625
|
+
id?: string | undefined;
|
|
626
|
+
kind: string;
|
|
627
|
+
lookup_key?: string | undefined;
|
|
628
|
+
name?: string | undefined;
|
|
629
|
+
readme_url?: string | undefined;
|
|
630
|
+
virtual_path?: string | undefined;
|
|
631
|
+
}[];
|
|
632
|
+
updated_at?: string | undefined;
|
|
633
|
+
upgrade_available: boolean;
|
|
634
|
+
virtual_path?: string | undefined;
|
|
635
|
+
} | undefined;
|
|
458
636
|
solution: {
|
|
459
637
|
category_keys?: string[] | undefined;
|
|
460
638
|
created_at?: string | undefined;
|
|
461
639
|
description?: string | undefined;
|
|
640
|
+
events?: Record<string, unknown> | undefined;
|
|
462
641
|
id: string;
|
|
642
|
+
image_url?: string | undefined;
|
|
463
643
|
kind: string;
|
|
464
644
|
latest_solution?: string | undefined;
|
|
465
645
|
latest_version?: string | undefined;
|
|
@@ -480,12 +660,30 @@ export declare class TeamThreadResource {
|
|
|
480
660
|
org_slug?: string | undefined;
|
|
481
661
|
owners: string[];
|
|
482
662
|
readme_url?: string | undefined;
|
|
663
|
+
screenshot_urls?: string[] | undefined;
|
|
483
664
|
solution_id?: string | undefined;
|
|
484
665
|
solution_version?: string | undefined;
|
|
485
666
|
tag_keys?: string[] | undefined;
|
|
486
667
|
template_kind?: string | undefined;
|
|
487
668
|
templates: {
|
|
488
669
|
description?: string | undefined;
|
|
670
|
+
details?: {
|
|
671
|
+
automation_type?: string | undefined;
|
|
672
|
+
invoke_contract?: {
|
|
673
|
+
input_schema?: Record<string, unknown> | undefined;
|
|
674
|
+
participants?: {
|
|
675
|
+
description?: string | undefined;
|
|
676
|
+
name: string;
|
|
677
|
+
required: boolean;
|
|
678
|
+
type: string;
|
|
679
|
+
}[] | undefined;
|
|
680
|
+
prefills: {
|
|
681
|
+
participants?: Record<string, unknown> | undefined;
|
|
682
|
+
payload?: Record<string, unknown> | undefined;
|
|
683
|
+
};
|
|
684
|
+
} | undefined;
|
|
685
|
+
type: "automation";
|
|
686
|
+
} | undefined;
|
|
489
687
|
display_name?: string | undefined;
|
|
490
688
|
id?: string | undefined;
|
|
491
689
|
kind: string;
|
|
@@ -522,12 +720,14 @@ export declare class TeamThreadResource {
|
|
|
522
720
|
} | undefined;
|
|
523
721
|
slug?: string | undefined;
|
|
524
722
|
sub_threads?: Record<string, unknown>[] | undefined;
|
|
723
|
+
tags?: string[] | undefined;
|
|
525
724
|
team?: string | undefined;
|
|
526
725
|
title?: string | undefined;
|
|
527
726
|
ttl?: number | undefined;
|
|
528
727
|
unread_count?: number | undefined;
|
|
529
728
|
updated_at?: string | undefined;
|
|
530
729
|
user?: string | undefined;
|
|
730
|
+
visibility: "team" | "restricted" | "private";
|
|
531
731
|
}[];
|
|
532
732
|
}>;
|
|
533
733
|
/**
|
|
@@ -554,6 +754,10 @@ export declare class TeamThreadResource {
|
|
|
554
754
|
description?: string | undefined;
|
|
555
755
|
is_unlisted?: boolean | undefined;
|
|
556
756
|
key?: string | undefined;
|
|
757
|
+
members?: {
|
|
758
|
+
id: string;
|
|
759
|
+
type: "user" | "agent";
|
|
760
|
+
}[] | undefined;
|
|
557
761
|
metadata?: Record<string, unknown> | undefined;
|
|
558
762
|
muted?: boolean | undefined;
|
|
559
763
|
org_id?: string | undefined;
|
|
@@ -565,7 +769,9 @@ export declare class TeamThreadResource {
|
|
|
565
769
|
settings?: {
|
|
566
770
|
agent_enabled?: boolean | undefined;
|
|
567
771
|
} | undefined;
|
|
772
|
+
slug?: string | undefined;
|
|
568
773
|
title?: string | undefined;
|
|
774
|
+
visibility?: "team" | "restricted" | "private" | undefined;
|
|
569
775
|
};
|
|
570
776
|
}): Promise<Thread>;
|
|
571
777
|
}
|