@archastro/sdk 0.5.2 → 0.5.3
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/README.md +86 -0
- package/dist/auth.d.ts +143 -0
- package/dist/auth.d.ts.map +1 -1
- package/dist/auth.js +187 -1
- package/dist/auth.js.map +1 -1
- package/dist/client.d.ts +26 -0
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +27 -1
- package/dist/client.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/types/ai.d.ts +150 -12
- package/dist/types/ai.d.ts.map +1 -1
- package/dist/types/ai.js +71 -41
- package/dist/types/ai.js.map +1 -1
- package/dist/types/artifacts.d.ts +81 -24
- package/dist/types/artifacts.d.ts.map +1 -1
- package/dist/types/artifacts.js +39 -21
- package/dist/types/artifacts.js.map +1 -1
- package/dist/types/automations.d.ts +41 -9
- package/dist/types/automations.d.ts.map +1 -1
- package/dist/types/automations.js +25 -17
- package/dist/types/automations.js.map +1 -1
- package/dist/types/chat.d.ts +21418 -0
- package/dist/types/chat.d.ts.map +1 -0
- package/dist/types/chat.js +70 -0
- package/dist/types/chat.js.map +1 -0
- package/dist/types/common.d.ts +16970 -2136
- package/dist/types/common.d.ts.map +1 -1
- package/dist/types/common.js +1695 -332
- package/dist/types/common.js.map +1 -1
- package/dist/types/config.d.ts +239 -31
- package/dist/types/config.d.ts.map +1 -1
- package/dist/types/config.js +86 -34
- package/dist/types/config.js.map +1 -1
- package/dist/types/image.d.ts +27 -4
- package/dist/types/image.d.ts.map +1 -1
- package/dist/types/image.js +17 -10
- package/dist/types/image.js.map +1 -1
- package/dist/types/index.d.ts +2 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +3 -2
- package/dist/types/index.js.map +1 -1
- package/dist/types/invites.d.ts +20 -11
- package/dist/types/invites.d.ts.map +1 -1
- package/dist/types/invites.js +9 -12
- package/dist/types/invites.js.map +1 -1
- package/dist/types/notifications.d.ts +163 -0
- package/dist/types/notifications.d.ts.map +1 -0
- package/dist/types/notifications.js +44 -0
- package/dist/types/notifications.js.map +1 -0
- package/dist/types/teams.d.ts +1628 -231
- package/dist/types/teams.d.ts.map +1 -1
- package/dist/types/teams.js +76 -45
- package/dist/types/teams.js.map +1 -1
- package/dist/types/threads.d.ts +997 -243
- package/dist/types/threads.d.ts.map +1 -1
- package/dist/types/threads.js +84 -51
- package/dist/types/threads.js.map +1 -1
- package/dist/types/users.d.ts +98 -18
- package/dist/types/users.d.ts.map +1 -1
- package/dist/types/users.js +43 -18
- package/dist/types/users.js.map +1 -1
- package/dist/v1/resources/activity_feed.d.ts +89 -0
- package/dist/v1/resources/activity_feed.d.ts.map +1 -1
- package/dist/v1/resources/activity_feed.js +56 -2
- package/dist/v1/resources/activity_feed.js.map +1 -1
- package/dist/v1/resources/agent_computers.d.ts +48 -2
- package/dist/v1/resources/agent_computers.d.ts.map +1 -1
- package/dist/v1/resources/agent_computers.js +48 -1
- package/dist/v1/resources/agent_computers.js.map +1 -1
- package/dist/v1/resources/agent_env_vars.d.ts +50 -0
- package/dist/v1/resources/agent_env_vars.d.ts.map +1 -0
- package/dist/v1/resources/agent_env_vars.js +56 -0
- package/dist/v1/resources/agent_env_vars.js.map +1 -0
- package/dist/v1/resources/agent_health_actions.d.ts +43 -0
- package/dist/v1/resources/agent_health_actions.d.ts.map +1 -0
- package/dist/v1/resources/agent_health_actions.js +50 -0
- package/dist/v1/resources/agent_health_actions.js.map +1 -0
- package/dist/v1/resources/agent_installations.d.ts +100 -0
- package/dist/v1/resources/agent_installations.d.ts.map +1 -1
- package/dist/v1/resources/agent_installations.js +106 -2
- package/dist/v1/resources/agent_installations.js.map +1 -1
- package/dist/v1/resources/agent_routine_runs.d.ts +33 -0
- package/dist/v1/resources/agent_routine_runs.d.ts.map +1 -0
- package/dist/v1/resources/agent_routine_runs.js +48 -0
- package/dist/v1/resources/agent_routine_runs.js.map +1 -0
- package/dist/v1/resources/agent_routines.d.ts +148 -2
- package/dist/v1/resources/agent_routines.d.ts.map +1 -1
- package/dist/v1/resources/agent_routines.js +168 -3
- package/dist/v1/resources/agent_routines.js.map +1 -1
- package/dist/v1/resources/agent_sessions.d.ts +118 -1
- package/dist/v1/resources/agent_sessions.d.ts.map +1 -1
- package/dist/v1/resources/agent_sessions.js +134 -2
- package/dist/v1/resources/agent_sessions.js.map +1 -1
- package/dist/v1/resources/agent_skills.d.ts +83 -1
- package/dist/v1/resources/agent_skills.d.ts.map +1 -1
- package/dist/v1/resources/agent_skills.js +87 -2
- package/dist/v1/resources/agent_skills.js.map +1 -1
- package/dist/v1/resources/agent_tools.d.ts +109 -2
- package/dist/v1/resources/agent_tools.d.ts.map +1 -1
- package/dist/v1/resources/agent_tools.js +114 -2
- package/dist/v1/resources/agent_tools.js.map +1 -1
- package/dist/v1/resources/agents.d.ts +517 -9
- package/dist/v1/resources/agents.d.ts.map +1 -1
- package/dist/v1/resources/agents.js +515 -12
- package/dist/v1/resources/agents.js.map +1 -1
- package/dist/v1/resources/ai.d.ts +93 -0
- package/dist/v1/resources/ai.d.ts.map +1 -1
- package/dist/v1/resources/ai.js +89 -1
- package/dist/v1/resources/ai.js.map +1 -1
- package/dist/v1/resources/artifacts.d.ts +73 -0
- package/dist/v1/resources/artifacts.d.ts.map +1 -1
- package/dist/v1/resources/artifacts.js +74 -2
- package/dist/v1/resources/artifacts.js.map +1 -1
- package/dist/v1/resources/automation_runs.d.ts +8 -4
- package/dist/v1/resources/automation_runs.d.ts.map +1 -1
- package/dist/v1/resources/automation_runs.js +9 -5
- package/dist/v1/resources/automation_runs.js.map +1 -1
- package/dist/v1/resources/automations.d.ts +20 -0
- package/dist/v1/resources/automations.d.ts.map +1 -1
- package/dist/v1/resources/automations.js +21 -1
- package/dist/v1/resources/automations.js.map +1 -1
- package/dist/v1/resources/bug_reports.d.ts +29 -0
- package/dist/v1/resources/bug_reports.d.ts.map +1 -0
- package/dist/v1/resources/bug_reports.js +29 -0
- package/dist/v1/resources/bug_reports.js.map +1 -0
- package/dist/v1/resources/config.d.ts +429 -4
- package/dist/v1/resources/config.d.ts.map +1 -1
- package/dist/v1/resources/config.js +493 -9
- package/dist/v1/resources/config.js.map +1 -1
- package/dist/v1/resources/custom_objects.d.ts +117 -2
- package/dist/v1/resources/custom_objects.d.ts.map +1 -1
- package/dist/v1/resources/custom_objects.js +132 -3
- package/dist/v1/resources/custom_objects.js.map +1 -1
- package/dist/v1/resources/files.d.ts +62 -0
- package/dist/v1/resources/files.d.ts.map +1 -0
- package/dist/v1/resources/files.js +58 -0
- package/dist/v1/resources/files.js.map +1 -0
- package/dist/v1/resources/index.d.ts +13 -0
- package/dist/v1/resources/index.d.ts.map +1 -1
- package/dist/v1/resources/index.js +14 -1
- package/dist/v1/resources/index.js.map +1 -1
- package/dist/v1/resources/installation_sources.d.ts +12 -0
- package/dist/v1/resources/installation_sources.d.ts.map +1 -1
- package/dist/v1/resources/installation_sources.js +13 -1
- package/dist/v1/resources/installation_sources.js.map +1 -1
- package/dist/v1/resources/invites.d.ts +15 -0
- package/dist/v1/resources/invites.d.ts.map +1 -1
- package/dist/v1/resources/invites.js +16 -1
- package/dist/v1/resources/invites.js.map +1 -1
- package/dist/v1/resources/knowledge_documents.d.ts +104 -0
- package/dist/v1/resources/knowledge_documents.d.ts.map +1 -0
- package/dist/v1/resources/knowledge_documents.js +112 -0
- package/dist/v1/resources/knowledge_documents.js.map +1 -0
- package/dist/v1/resources/knowledge_sources.d.ts +190 -0
- package/dist/v1/resources/knowledge_sources.d.ts.map +1 -0
- package/dist/v1/resources/knowledge_sources.js +176 -0
- package/dist/v1/resources/knowledge_sources.js.map +1 -0
- package/dist/v1/resources/kv.d.ts +73 -0
- package/dist/v1/resources/kv.d.ts.map +1 -1
- package/dist/v1/resources/kv.js +96 -3
- package/dist/v1/resources/kv.js.map +1 -1
- package/dist/v1/resources/notification_preferences.d.ts +61 -0
- package/dist/v1/resources/notification_preferences.d.ts.map +1 -0
- package/dist/v1/resources/notification_preferences.js +65 -0
- package/dist/v1/resources/notification_preferences.js.map +1 -0
- package/dist/v1/resources/notifications.d.ts +133 -0
- package/dist/v1/resources/notifications.d.ts.map +1 -0
- package/dist/v1/resources/notifications.js +136 -0
- package/dist/v1/resources/notifications.js.map +1 -0
- package/dist/v1/resources/orgs.d.ts +18 -0
- package/dist/v1/resources/orgs.d.ts.map +1 -1
- package/dist/v1/resources/orgs.js +30 -2
- package/dist/v1/resources/orgs.js.map +1 -1
- package/dist/v1/resources/slack_channel_bindings.d.ts +101 -0
- package/dist/v1/resources/slack_channel_bindings.d.ts.map +1 -0
- package/dist/v1/resources/slack_channel_bindings.js +114 -0
- package/dist/v1/resources/slack_channel_bindings.js.map +1 -0
- package/dist/v1/resources/solution_categories.d.ts +36 -0
- package/dist/v1/resources/solution_categories.d.ts.map +1 -0
- package/dist/v1/resources/solution_categories.js +55 -0
- package/dist/v1/resources/solution_categories.js.map +1 -0
- package/dist/v1/resources/solution_tags.d.ts +37 -0
- package/dist/v1/resources/solution_tags.d.ts.map +1 -0
- package/dist/v1/resources/solution_tags.js +54 -0
- package/dist/v1/resources/solution_tags.js.map +1 -0
- package/dist/v1/resources/solutions.d.ts +309 -0
- package/dist/v1/resources/solutions.d.ts.map +1 -0
- package/dist/v1/resources/solutions.js +214 -0
- package/dist/v1/resources/solutions.js.map +1 -0
- package/dist/v1/resources/team_memberships.d.ts +31 -0
- package/dist/v1/resources/team_memberships.d.ts.map +1 -1
- package/dist/v1/resources/team_memberships.js +49 -2
- package/dist/v1/resources/team_memberships.js.map +1 -1
- package/dist/v1/resources/teams.d.ts +458 -49
- package/dist/v1/resources/teams.d.ts.map +1 -1
- package/dist/v1/resources/teams.js +319 -27
- package/dist/v1/resources/teams.js.map +1 -1
- package/dist/v1/resources/thread_messages.d.ts +70 -0
- package/dist/v1/resources/thread_messages.d.ts.map +1 -1
- package/dist/v1/resources/thread_messages.js +85 -2
- package/dist/v1/resources/thread_messages.js.map +1 -1
- package/dist/v1/resources/threads.d.ts +201 -0
- package/dist/v1/resources/threads.d.ts.map +1 -1
- package/dist/v1/resources/threads.js +220 -4
- package/dist/v1/resources/threads.js.map +1 -1
- package/dist/v1/resources/users.d.ts +213 -39
- package/dist/v1/resources/users.d.ts.map +1 -1
- package/dist/v1/resources/users.js +121 -16
- package/dist/v1/resources/users.js.map +1 -1
- package/dist/v1.d.ts +26 -0
- package/dist/v1.d.ts.map +1 -1
- package/dist/v1.js +40 -1
- package/dist/v1.js.map +1 -1
- package/package.json +3 -1
- package/dist/types/agents.d.ts +0 -2084
- package/dist/types/agents.d.ts.map +0 -1
- package/dist/types/agents.js +0 -203
- package/dist/types/agents.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notifications.js","sourceRoot":"","sources":["../../../src/v1/resources/notifications.ts"],"names":[],"mappings":"AAAA,yDAAyD;AACzD,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,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
|
private http;
|
|
4
4
|
constructor(http: HttpClient);
|
|
5
|
+
/**
|
|
6
|
+
* Search organizations
|
|
7
|
+
* Returns a paginated list of organizations within the authenticated app scope,
|
|
8
|
+
* optionally filtered by a free-text search term matched against name, slug, and
|
|
9
|
+
* domain (case-insensitive). Results are ordered by relevance when a search term
|
|
10
|
+
* is provided, and by creation time descending otherwise.
|
|
11
|
+
* The response includes only public-facing organization fields: ID, name, domain,
|
|
12
|
+
* and logo. Use the developer-scoped org endpoints to access full organization
|
|
13
|
+
* records.
|
|
14
|
+
* Pagination is offset-based. Pass `page` and `page_size` to navigate through
|
|
15
|
+
* results. The `has_next` and `has_prev` fields indicate whether adjacent pages
|
|
16
|
+
* exist.
|
|
17
|
+
* @param params - Query parameters.
|
|
18
|
+
* @param params.search - Free-text search term matched against organization name, slug, and domain (case-insensitive). Omit to return all organizations in the app.
|
|
19
|
+
* @param params.page - Page number to retrieve, starting at `1`. Defaults to `1` when omitted.
|
|
20
|
+
* @param params.pageSize - Number of organizations to return per page. Defaults to `25`; maximum is `100`.
|
|
21
|
+
* @returns Successful response
|
|
22
|
+
*/
|
|
5
23
|
list(params?: {
|
|
6
24
|
search?: string;
|
|
7
25
|
page?: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"orgs.d.ts","sourceRoot":"","sources":["../../../src/v1/resources/orgs.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAE1D,qBAAa,WAAW;IACV,OAAO,CAAC,IAAI;gBAAJ,IAAI,EAAE,UAAU;
|
|
1
|
+
{"version":3,"file":"orgs.d.ts","sourceRoot":"","sources":["../../../src/v1/resources/orgs.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAE1D,qBAAa,WAAW;IACV,OAAO,CAAC,IAAI;gBAAJ,IAAI,EAAE,UAAU;IAEpC;;;;;;;;;;;;;;;;;OAiBG;IACG,IAAI,CAAC,MAAM,CAAC,EAAE;QAAE,MAAM,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC;QAAE,IAAI,EAAE;YAAE,MAAM,EAAE,MAAM,CAAC;YAAC,EAAE,EAAE,MAAM,CAAC;YAAC,IAAI,EAAE,MAAM,CAAA;SAAE,EAAE,CAAC;QAAC,QAAQ,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;QAAC,QAAQ,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;QAAC,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;QAAC,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;QAAC,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;KAAE,CAAC;CAc/U"}
|
|
@@ -1,13 +1,41 @@
|
|
|
1
1
|
// Copyright (c) 2026 ArchAstro Inc. All Rights Reserved.
|
|
2
2
|
// This file is auto-generated by @archastro/sdk-generator. Do not edit.
|
|
3
|
-
// Content hash:
|
|
3
|
+
// Content hash: b2e8bd845f97
|
|
4
4
|
export class OrgResource {
|
|
5
5
|
http;
|
|
6
6
|
constructor(http) {
|
|
7
7
|
this.http = http;
|
|
8
8
|
}
|
|
9
|
+
/**
|
|
10
|
+
* Search organizations
|
|
11
|
+
* Returns a paginated list of organizations within the authenticated app scope,
|
|
12
|
+
* optionally filtered by a free-text search term matched against name, slug, and
|
|
13
|
+
* domain (case-insensitive). Results are ordered by relevance when a search term
|
|
14
|
+
* is provided, and by creation time descending otherwise.
|
|
15
|
+
* The response includes only public-facing organization fields: ID, name, domain,
|
|
16
|
+
* and logo. Use the developer-scoped org endpoints to access full organization
|
|
17
|
+
* records.
|
|
18
|
+
* Pagination is offset-based. Pass `page` and `page_size` to navigate through
|
|
19
|
+
* results. The `has_next` and `has_prev` fields indicate whether adjacent pages
|
|
20
|
+
* exist.
|
|
21
|
+
* @param params - Query parameters.
|
|
22
|
+
* @param params.search - Free-text search term matched against organization name, slug, and domain (case-insensitive). Omit to return all organizations in the app.
|
|
23
|
+
* @param params.page - Page number to retrieve, starting at `1`. Defaults to `1` when omitted.
|
|
24
|
+
* @param params.pageSize - Number of organizations to return per page. Defaults to `25`; maximum is `100`.
|
|
25
|
+
* @returns Successful response
|
|
26
|
+
*/
|
|
9
27
|
async list(params) {
|
|
10
|
-
|
|
28
|
+
const query = {};
|
|
29
|
+
if (params?.search !== undefined) {
|
|
30
|
+
query["search"] = params?.search;
|
|
31
|
+
}
|
|
32
|
+
if (params?.page !== undefined) {
|
|
33
|
+
query["page"] = params?.page;
|
|
34
|
+
}
|
|
35
|
+
if (params?.pageSize !== undefined) {
|
|
36
|
+
query["page_size"] = params?.pageSize;
|
|
37
|
+
}
|
|
38
|
+
return this.http.request(`/api/v1/orgs`, { query });
|
|
11
39
|
}
|
|
12
40
|
}
|
|
13
41
|
//# sourceMappingURL=orgs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"orgs.js","sourceRoot":"","sources":["../../../src/v1/resources/orgs.ts"],"names":[],"mappings":"AAAA,yDAAyD;AACzD,wEAAwE;AACxE,6BAA6B;AAI7B,MAAM,OAAO,WAAW;IACF;IAApB,YAAoB,IAAgB;QAAhB,SAAI,GAAJ,IAAI,CAAY;IAAG,CAAC;IAExC,KAAK,CAAC,IAAI,CAAC,MAA8D;QACvE,
|
|
1
|
+
{"version":3,"file":"orgs.js","sourceRoot":"","sources":["../../../src/v1/resources/orgs.ts"],"names":[],"mappings":"AAAA,yDAAyD;AACzD,wEAAwE;AACxE,6BAA6B;AAI7B,MAAM,OAAO,WAAW;IACF;IAApB,YAAoB,IAAgB;QAAhB,SAAI,GAAJ,IAAI,CAAY;IAAG,CAAC;IAExC;;;;;;;;;;;;;;;;;OAiBG;IACH,KAAK,CAAC,IAAI,CAAC,MAA8D;QACvE,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,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,cAAc,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC;IACtD,CAAC;CACF"}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { HttpClient } from "../../runtime/http-client.js";
|
|
2
|
+
import type { SlackChannelBinding, SlackChannelBindingListResponse } from "../../types/common.js";
|
|
3
|
+
export declare class SlackChannelBindingResource {
|
|
4
|
+
private http;
|
|
5
|
+
constructor(http: HttpClient);
|
|
6
|
+
/**
|
|
7
|
+
* List Slack channel bindings
|
|
8
|
+
* Returns a page of Slack channel bindings visible to the authenticated user.
|
|
9
|
+
* Results can be filtered by integration, team, agent, or organization. Omit all
|
|
10
|
+
* filter params to retrieve every binding the caller can see.
|
|
11
|
+
* Pagination is page-based. Pass `page` and `per_page` to navigate large result
|
|
12
|
+
* sets. `page` must be a positive integer; `per_page` must be between 1 and 100.
|
|
13
|
+
* Invalid values return 400.
|
|
14
|
+
* @param params - Query parameters.
|
|
15
|
+
* @param params.integration - Return only bindings whose Slack integration matches one of these integration IDs. Omit to return bindings across all integrations.
|
|
16
|
+
* @param params.team - Return only bindings bound to one of these team IDs. Omit to return bindings for all teams.
|
|
17
|
+
* @param params.agent - Return only bindings that have at least one of these agent user IDs attached. Omit to return bindings regardless of agent attachment.
|
|
18
|
+
* @param params.org - Return only bindings that belong to one of these organization IDs. Omit to return bindings across all organizations visible to the caller.
|
|
19
|
+
* @param params.page - Page number to retrieve, 1-indexed. Defaults to 1. Must be a positive integer.
|
|
20
|
+
* @param params.perPage - Number of bindings to return per page. Defaults to 25; maximum is 100.
|
|
21
|
+
* @returns Paginated list of Slack channel bindings visible to the caller.
|
|
22
|
+
*/
|
|
23
|
+
list(params?: {
|
|
24
|
+
integration?: string[];
|
|
25
|
+
team?: string[];
|
|
26
|
+
agent?: string[];
|
|
27
|
+
org?: string[];
|
|
28
|
+
page?: number;
|
|
29
|
+
perPage?: number;
|
|
30
|
+
}): Promise<SlackChannelBindingListResponse>;
|
|
31
|
+
/**
|
|
32
|
+
* Create or update a Slack channel binding
|
|
33
|
+
* Creates a new binding between a Slack channel and a team, or updates the
|
|
34
|
+
* existing binding if one already exists for the given channel. The caller also
|
|
35
|
+
* supplies a list of agents to attach to the binding and enroll as members of the
|
|
36
|
+
* destination team.
|
|
37
|
+
* The caller must have team-manage rights on the destination team (and on the
|
|
38
|
+
* currently bound team if the channel is being re-pointed). Returns 403 if
|
|
39
|
+
* permission is insufficient. All write steps are idempotent, so retrying after
|
|
40
|
+
* a partial failure is safe.
|
|
41
|
+
* On success the REST endpoint returns 201 Created. The script binding
|
|
42
|
+
* (`slack.channel_bindings.upsert`) returns the full binding object including the
|
|
43
|
+
* attached agents.
|
|
44
|
+
* @param input - Request body.
|
|
45
|
+
* @param input.agent_user_ids - List of agent user IDs to attach to the binding and enroll as members of the destination team. Pass an empty array to bind the channel without attaching any agents.
|
|
46
|
+
* @param input.channel_id - Slack channel ID to bind (e.g. `C01234ABCDE`). Acts as the natural key of the binding within the workspace.
|
|
47
|
+
* @param input.customer_label - Human-readable label for the customer associated with this channel. Stored in the binding's config. `null` if omitted.
|
|
48
|
+
* @param input.is_ext_shared_cached - Cached value of Slack's `is_ext_shared` flag for the channel. When provided, this value is persisted on the binding to avoid repeated Slack API lookups. `null` if omitted.
|
|
49
|
+
* @param input.slack_team_id - Slack workspace team ID that the channel belongs to (e.g. `T01234ABCDE`). Identifies which Slack integration to use.
|
|
50
|
+
* @param input.team_id - ID of the team to bind the Slack channel to. The caller must have team-manage rights on this team.
|
|
51
|
+
* @returns The created or updated Slack channel binding, including the full list of currently attached agents.
|
|
52
|
+
*/
|
|
53
|
+
create(input: {
|
|
54
|
+
agent_user_ids: string[];
|
|
55
|
+
channel_id: string;
|
|
56
|
+
customer_label?: string | undefined;
|
|
57
|
+
is_ext_shared_cached?: boolean | undefined;
|
|
58
|
+
slack_team_id: string;
|
|
59
|
+
team_id: string;
|
|
60
|
+
}): Promise<SlackChannelBinding>;
|
|
61
|
+
/**
|
|
62
|
+
* Delete a Slack channel binding
|
|
63
|
+
* Removes the binding between a Slack channel and its associated team. The
|
|
64
|
+
* channel is identified by its Slack channel ID together with the `slack_team_id`
|
|
65
|
+
* that scopes it to a specific Slack workspace. Removing the binding does not
|
|
66
|
+
* delete the bound team or any conversation threads scoped to it; decommission
|
|
67
|
+
* those resources separately if required.
|
|
68
|
+
* The caller must have team-manage rights on the team the channel is currently
|
|
69
|
+
* bound to. Returning 403 indicates insufficient permission; returning 404
|
|
70
|
+
* indicates the binding does not exist or is not visible to the caller.
|
|
71
|
+
* The REST endpoint returns 204 No Content on success. The script binding
|
|
72
|
+
* (`slack.channel_bindings.delete`) returns a confirmation object so script
|
|
73
|
+
* callers can verify success without an additional fetch. Both paths are
|
|
74
|
+
* idempotent — retrying after a partial failure is safe.
|
|
75
|
+
* @param channel - Slack channel ID of the binding to delete (e.g. `C01234ABCDE`).
|
|
76
|
+
* @returns Successful response
|
|
77
|
+
*/
|
|
78
|
+
delete(channel: string): Promise<{
|
|
79
|
+
channel: string;
|
|
80
|
+
deleted: boolean;
|
|
81
|
+
}>;
|
|
82
|
+
/**
|
|
83
|
+
* Retrieve a Slack channel binding
|
|
84
|
+
* Returns the Slack channel binding identified by a Slack channel ID and workspace
|
|
85
|
+
* team ID pair. Use this endpoint to look up the team and agents currently bound
|
|
86
|
+
* to a specific Slack channel.
|
|
87
|
+
* The `channel` path parameter is the Slack channel ID; `slack_team_id` identifies
|
|
88
|
+
* the Slack workspace the channel belongs to, disambiguating channels with the same
|
|
89
|
+
* ID across workspaces. Both parameters are required. Returns 404 if no binding
|
|
90
|
+
* exists for the given pair or the associated Slack integration is not visible to
|
|
91
|
+
* the caller.
|
|
92
|
+
* @param channel - Slack channel ID of the binding to retrieve (e.g. `C01234ABCDE`).
|
|
93
|
+
* @param params - Query parameters.
|
|
94
|
+
* @param params.slackTeamId - Slack workspace team ID that the channel belongs to (e.g. `T01234ABCDE`). Used together with `channel` to uniquely identify the binding.
|
|
95
|
+
* @returns The Slack channel binding for the given channel and workspace.
|
|
96
|
+
*/
|
|
97
|
+
get(channel: string, params?: {
|
|
98
|
+
slackTeamId?: string;
|
|
99
|
+
}): Promise<SlackChannelBinding>;
|
|
100
|
+
}
|
|
101
|
+
//# sourceMappingURL=slack_channel_bindings.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"slack_channel_bindings.d.ts","sourceRoot":"","sources":["../../../src/v1/resources/slack_channel_bindings.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,KAAK,EAAE,mBAAmB,EAAE,+BAA+B,EAAE,MAAM,uBAAuB,CAAC;AAElG,qBAAa,2BAA2B;IAC1B,OAAO,CAAC,IAAI;gBAAJ,IAAI,EAAE,UAAU;IAEpC;;;;;;;;;;;;;;;;OAgBG;IACG,IAAI,CAAC,MAAM,CAAC,EAAE;QAAE,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;QAAC,GAAG,CAAC,EAAE,MAAM,EAAE,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,+BAA+B,CAAC;IAwB7K;;;;;;;;;;;;;;;;;;;;;OAqBG;IACG,MAAM,CAAC,KAAK,EAAE;QAAE,cAAc,EAAE,MAAM,EAAE,CAAC;QAAC,UAAU,EAAE,MAAM,CAAC;QAAC,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;QAAC,oBAAoB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;QAAC,aAAa,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAI5N;;;;;;;;;;;;;;;;OAgBG;IACG,MAAM,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,OAAO,CAAA;KAAE,CAAC;IAI7E;;;;;;;;;;;;;;OAcG;IACG,GAAG,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE;QAAE,WAAW,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,mBAAmB,CAAC;CAM5F"}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
// Copyright (c) 2026 ArchAstro Inc. All Rights Reserved.
|
|
2
|
+
// This file is auto-generated by @archastro/sdk-generator. Do not edit.
|
|
3
|
+
// Content hash: 3297ce79be1f
|
|
4
|
+
export class SlackChannelBindingResource {
|
|
5
|
+
http;
|
|
6
|
+
constructor(http) {
|
|
7
|
+
this.http = http;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* List Slack channel bindings
|
|
11
|
+
* Returns a page of Slack channel bindings visible to the authenticated user.
|
|
12
|
+
* Results can be filtered by integration, team, agent, or organization. Omit all
|
|
13
|
+
* filter params to retrieve every binding the caller can see.
|
|
14
|
+
* Pagination is page-based. Pass `page` and `per_page` to navigate large result
|
|
15
|
+
* sets. `page` must be a positive integer; `per_page` must be between 1 and 100.
|
|
16
|
+
* Invalid values return 400.
|
|
17
|
+
* @param params - Query parameters.
|
|
18
|
+
* @param params.integration - Return only bindings whose Slack integration matches one of these integration IDs. Omit to return bindings across all integrations.
|
|
19
|
+
* @param params.team - Return only bindings bound to one of these team IDs. Omit to return bindings for all teams.
|
|
20
|
+
* @param params.agent - Return only bindings that have at least one of these agent user IDs attached. Omit to return bindings regardless of agent attachment.
|
|
21
|
+
* @param params.org - Return only bindings that belong to one of these organization IDs. Omit to return bindings across all organizations visible to the caller.
|
|
22
|
+
* @param params.page - Page number to retrieve, 1-indexed. Defaults to 1. Must be a positive integer.
|
|
23
|
+
* @param params.perPage - Number of bindings to return per page. Defaults to 25; maximum is 100.
|
|
24
|
+
* @returns Paginated list of Slack channel bindings visible to the caller.
|
|
25
|
+
*/
|
|
26
|
+
async list(params) {
|
|
27
|
+
const query = {};
|
|
28
|
+
if (params?.integration !== undefined) {
|
|
29
|
+
query["integration"] = params?.integration;
|
|
30
|
+
}
|
|
31
|
+
if (params?.team !== undefined) {
|
|
32
|
+
query["team"] = params?.team;
|
|
33
|
+
}
|
|
34
|
+
if (params?.agent !== undefined) {
|
|
35
|
+
query["agent"] = params?.agent;
|
|
36
|
+
}
|
|
37
|
+
if (params?.org !== undefined) {
|
|
38
|
+
query["org"] = params?.org;
|
|
39
|
+
}
|
|
40
|
+
if (params?.page !== undefined) {
|
|
41
|
+
query["page"] = params?.page;
|
|
42
|
+
}
|
|
43
|
+
if (params?.perPage !== undefined) {
|
|
44
|
+
query["per_page"] = params?.perPage;
|
|
45
|
+
}
|
|
46
|
+
return this.http.request(`/api/v1/slack_channel_bindings`, { query });
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Create or update a Slack channel binding
|
|
50
|
+
* Creates a new binding between a Slack channel and a team, or updates the
|
|
51
|
+
* existing binding if one already exists for the given channel. The caller also
|
|
52
|
+
* supplies a list of agents to attach to the binding and enroll as members of the
|
|
53
|
+
* destination team.
|
|
54
|
+
* The caller must have team-manage rights on the destination team (and on the
|
|
55
|
+
* currently bound team if the channel is being re-pointed). Returns 403 if
|
|
56
|
+
* permission is insufficient. All write steps are idempotent, so retrying after
|
|
57
|
+
* a partial failure is safe.
|
|
58
|
+
* On success the REST endpoint returns 201 Created. The script binding
|
|
59
|
+
* (`slack.channel_bindings.upsert`) returns the full binding object including the
|
|
60
|
+
* attached agents.
|
|
61
|
+
* @param input - Request body.
|
|
62
|
+
* @param input.agent_user_ids - List of agent user IDs to attach to the binding and enroll as members of the destination team. Pass an empty array to bind the channel without attaching any agents.
|
|
63
|
+
* @param input.channel_id - Slack channel ID to bind (e.g. `C01234ABCDE`). Acts as the natural key of the binding within the workspace.
|
|
64
|
+
* @param input.customer_label - Human-readable label for the customer associated with this channel. Stored in the binding's config. `null` if omitted.
|
|
65
|
+
* @param input.is_ext_shared_cached - Cached value of Slack's `is_ext_shared` flag for the channel. When provided, this value is persisted on the binding to avoid repeated Slack API lookups. `null` if omitted.
|
|
66
|
+
* @param input.slack_team_id - Slack workspace team ID that the channel belongs to (e.g. `T01234ABCDE`). Identifies which Slack integration to use.
|
|
67
|
+
* @param input.team_id - ID of the team to bind the Slack channel to. The caller must have team-manage rights on this team.
|
|
68
|
+
* @returns The created or updated Slack channel binding, including the full list of currently attached agents.
|
|
69
|
+
*/
|
|
70
|
+
async create(input) {
|
|
71
|
+
return this.http.request(`/api/v1/slack_channel_bindings`, { method: "POST", body: input });
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Delete a Slack channel binding
|
|
75
|
+
* Removes the binding between a Slack channel and its associated team. The
|
|
76
|
+
* channel is identified by its Slack channel ID together with the `slack_team_id`
|
|
77
|
+
* that scopes it to a specific Slack workspace. Removing the binding does not
|
|
78
|
+
* delete the bound team or any conversation threads scoped to it; decommission
|
|
79
|
+
* those resources separately if required.
|
|
80
|
+
* The caller must have team-manage rights on the team the channel is currently
|
|
81
|
+
* bound to. Returning 403 indicates insufficient permission; returning 404
|
|
82
|
+
* indicates the binding does not exist or is not visible to the caller.
|
|
83
|
+
* The REST endpoint returns 204 No Content on success. The script binding
|
|
84
|
+
* (`slack.channel_bindings.delete`) returns a confirmation object so script
|
|
85
|
+
* callers can verify success without an additional fetch. Both paths are
|
|
86
|
+
* idempotent — retrying after a partial failure is safe.
|
|
87
|
+
* @param channel - Slack channel ID of the binding to delete (e.g. `C01234ABCDE`).
|
|
88
|
+
* @returns Successful response
|
|
89
|
+
*/
|
|
90
|
+
async delete(channel) {
|
|
91
|
+
return this.http.request(`/api/v1/slack_channel_bindings/${channel}`, { method: "DELETE" });
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* Retrieve a Slack channel binding
|
|
95
|
+
* Returns the Slack channel binding identified by a Slack channel ID and workspace
|
|
96
|
+
* team ID pair. Use this endpoint to look up the team and agents currently bound
|
|
97
|
+
* to a specific Slack channel.
|
|
98
|
+
* The `channel` path parameter is the Slack channel ID; `slack_team_id` identifies
|
|
99
|
+
* the Slack workspace the channel belongs to, disambiguating channels with the same
|
|
100
|
+
* ID across workspaces. Both parameters are required. Returns 404 if no binding
|
|
101
|
+
* exists for the given pair or the associated Slack integration is not visible to
|
|
102
|
+
* the caller.
|
|
103
|
+
* @param channel - Slack channel ID of the binding to retrieve (e.g. `C01234ABCDE`).
|
|
104
|
+
* @param params - Query parameters.
|
|
105
|
+
* @param params.slackTeamId - Slack workspace team ID that the channel belongs to (e.g. `T01234ABCDE`). Used together with `channel` to uniquely identify the binding.
|
|
106
|
+
* @returns The Slack channel binding for the given channel and workspace.
|
|
107
|
+
*/
|
|
108
|
+
async get(channel, params) {
|
|
109
|
+
const query = {};
|
|
110
|
+
query["slack_team_id"] = params?.slackTeamId;
|
|
111
|
+
return this.http.request(`/api/v1/slack_channel_bindings/${channel}`, { query });
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
//# sourceMappingURL=slack_channel_bindings.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
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AqBG;IACH,KAAK,CAAC,MAAM,CAAC,KAAgL;QAC3L,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,gCAAgC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC;IAC9F,CAAC;IAED;;;;;;;;;;;;;;;;OAgBG;IACH,KAAK,CAAC,MAAM,CAAC,OAAe;QAC1B,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,kCAAkC,OAAO,EAAE,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,CAAC;IAC9F,CAAC;IAED;;;;;;;;;;;;;;OAcG;IACH,KAAK,CAAC,GAAG,CAAC,OAAe,EAAE,MAAiC;QAC1D,MAAM,KAAK,GAA6F,EAAE,CAAC;QAC3G,KAAK,CAAC,eAAe,CAAC,GAAG,MAAM,EAAE,WAAW,CAAC;QAE7C,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,kCAAkC,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC;IACnF,CAAC;CACF"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { HttpClient } from "../../runtime/http-client.js";
|
|
2
|
+
import type { SolutionCategoryListResponse } from "../../types/common.js";
|
|
3
|
+
export declare class SolutionCategoryResource {
|
|
4
|
+
private http;
|
|
5
|
+
constructor(http: HttpClient);
|
|
6
|
+
/**
|
|
7
|
+
* List solution categories
|
|
8
|
+
* Returns a paginated list of solution category definitions visible to the authenticated caller.
|
|
9
|
+
* Use filters to narrow results by key, parent key, lookup key, or virtual path prefix.
|
|
10
|
+
* Results are scoped to categories accessible under the caller's viewer context. Pass `app` to
|
|
11
|
+
* restrict the listing to categories associated with a specific app scope. Omit `owners` to
|
|
12
|
+
* return categories from all ownership scopes (`"system"` and `"org"`) that the caller can see.
|
|
13
|
+
* Pagination is page-based. Use `page` and `page_size` to navigate large result sets. The
|
|
14
|
+
* response includes `total_entries`, `total_pages`, `has_next`, and `has_prev` to support
|
|
15
|
+
* pagination controls. `total_entries` reflects the count after key deduplication.
|
|
16
|
+
* @param params - Query parameters.
|
|
17
|
+
* @param params.page - Page number to retrieve, 1-indexed. Defaults to `1`.
|
|
18
|
+
* @param params.pageSize - Number of solution categories to return per page. Defaults to `25`.
|
|
19
|
+
* @param params.keys - Return only categories whose key exactly matches one of the provided values.
|
|
20
|
+
* @param params.parentKeys - Return only categories whose parent key matches one of the provided values. Pass an empty array to return root-level categories.
|
|
21
|
+
* @param params.lookupKey - Return only the category whose `lookup_key` exactly matches this value.
|
|
22
|
+
* @param params.pathPrefix - Return only categories whose `virtual_path` starts with this prefix.
|
|
23
|
+
* @param params.owners - Restrict results to categories owned by the specified scopes. Accepted values are `"system"` and `"org"`. Omit to include all ownership scopes visible to the caller.
|
|
24
|
+
* @returns Paginated list of solution category summaries matching the applied filters.
|
|
25
|
+
*/
|
|
26
|
+
list(params?: {
|
|
27
|
+
page?: number;
|
|
28
|
+
pageSize?: number;
|
|
29
|
+
keys?: string[];
|
|
30
|
+
parentKeys?: string[];
|
|
31
|
+
lookupKey?: string;
|
|
32
|
+
pathPrefix?: string;
|
|
33
|
+
owners?: string[];
|
|
34
|
+
}): Promise<SolutionCategoryListResponse>;
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=solution_categories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"solution_categories.d.ts","sourceRoot":"","sources":["../../../src/v1/resources/solution_categories.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,uBAAuB,CAAC;AAE1E,qBAAa,wBAAwB;IACvB,OAAO,CAAC,IAAI;gBAAJ,IAAI,EAAE,UAAU;IAEpC;;;;;;;;;;;;;;;;;;;OAmBG;IACG,IAAI,CAAC,MAAM,CAAC,EAAE;QAAE,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;QAAC,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;QAAC,SAAS,CAAC,EAAE,MAAM,CAAC;QAAC,UAAU,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,EAAE,CAAA;KAAE,GAAG,OAAO,CAAC,4BAA4B,CAAC;CA0BrM"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
// Copyright (c) 2026 ArchAstro Inc. All Rights Reserved.
|
|
2
|
+
// This file is auto-generated by @archastro/sdk-generator. Do not edit.
|
|
3
|
+
// Content hash: 1f334c47bd5f
|
|
4
|
+
export class SolutionCategoryResource {
|
|
5
|
+
http;
|
|
6
|
+
constructor(http) {
|
|
7
|
+
this.http = http;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* List solution categories
|
|
11
|
+
* Returns a paginated list of solution category definitions visible to the authenticated caller.
|
|
12
|
+
* Use filters to narrow results by key, parent key, lookup key, or virtual path prefix.
|
|
13
|
+
* Results are scoped to categories accessible under the caller's viewer context. Pass `app` to
|
|
14
|
+
* restrict the listing to categories associated with a specific app scope. Omit `owners` to
|
|
15
|
+
* return categories from all ownership scopes (`"system"` and `"org"`) that the caller can see.
|
|
16
|
+
* Pagination is page-based. Use `page` and `page_size` to navigate large result sets. The
|
|
17
|
+
* response includes `total_entries`, `total_pages`, `has_next`, and `has_prev` to support
|
|
18
|
+
* pagination controls. `total_entries` reflects the count after key deduplication.
|
|
19
|
+
* @param params - Query parameters.
|
|
20
|
+
* @param params.page - Page number to retrieve, 1-indexed. Defaults to `1`.
|
|
21
|
+
* @param params.pageSize - Number of solution categories to return per page. Defaults to `25`.
|
|
22
|
+
* @param params.keys - Return only categories whose key exactly matches one of the provided values.
|
|
23
|
+
* @param params.parentKeys - Return only categories whose parent key matches one of the provided values. Pass an empty array to return root-level categories.
|
|
24
|
+
* @param params.lookupKey - Return only the category whose `lookup_key` exactly matches this value.
|
|
25
|
+
* @param params.pathPrefix - Return only categories whose `virtual_path` starts with this prefix.
|
|
26
|
+
* @param params.owners - Restrict results to categories owned by the specified scopes. Accepted values are `"system"` and `"org"`. Omit to include all ownership scopes visible to the caller.
|
|
27
|
+
* @returns Paginated list of solution category summaries matching the applied filters.
|
|
28
|
+
*/
|
|
29
|
+
async list(params) {
|
|
30
|
+
const query = {};
|
|
31
|
+
if (params?.page !== undefined) {
|
|
32
|
+
query["page"] = params?.page;
|
|
33
|
+
}
|
|
34
|
+
if (params?.pageSize !== undefined) {
|
|
35
|
+
query["page_size"] = params?.pageSize;
|
|
36
|
+
}
|
|
37
|
+
if (params?.keys !== undefined) {
|
|
38
|
+
query["keys"] = params?.keys;
|
|
39
|
+
}
|
|
40
|
+
if (params?.parentKeys !== undefined) {
|
|
41
|
+
query["parent_keys"] = params?.parentKeys;
|
|
42
|
+
}
|
|
43
|
+
if (params?.lookupKey !== undefined) {
|
|
44
|
+
query["lookup_key"] = params?.lookupKey;
|
|
45
|
+
}
|
|
46
|
+
if (params?.pathPrefix !== undefined) {
|
|
47
|
+
query["path_prefix"] = params?.pathPrefix;
|
|
48
|
+
}
|
|
49
|
+
if (params?.owners !== undefined) {
|
|
50
|
+
query["owners"] = params?.owners;
|
|
51
|
+
}
|
|
52
|
+
return this.http.request(`/api/v1/solution_categories`, { query });
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
//# sourceMappingURL=solution_categories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"solution_categories.js","sourceRoot":"","sources":["../../../src/v1/resources/solution_categories.ts"],"names":[],"mappings":"AAAA,yDAAyD;AACzD,wEAAwE;AACxE,6BAA6B;AAK7B,MAAM,OAAO,wBAAwB;IACf;IAApB,YAAoB,IAAgB;QAAhB,SAAI,GAAJ,IAAI,CAAY;IAAG,CAAC;IAExC;;;;;;;;;;;;;;;;;;;OAmBG;IACH,KAAK,CAAC,IAAI,CAAC,MAAiJ;QAC1J,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,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,OAAO,CAAC,6BAA6B,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC;IACrE,CAAC;CACF"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { HttpClient } from "../../runtime/http-client.js";
|
|
2
|
+
import type { SolutionTagListResponse } from "../../types/common.js";
|
|
3
|
+
export declare class SolutionTagResource {
|
|
4
|
+
private http;
|
|
5
|
+
constructor(http: HttpClient);
|
|
6
|
+
/**
|
|
7
|
+
* List solution tags
|
|
8
|
+
* Returns a paginated list of solution tag definitions visible to the authenticated
|
|
9
|
+
* user, scoped to their app. Results include tags from both the system scope and the
|
|
10
|
+
* caller's organization scope by default; use the `owners` parameter to restrict to
|
|
11
|
+
* one or both.
|
|
12
|
+
* Use `keys` to fetch a specific set of tags by their stable key identifiers, or
|
|
13
|
+
* `lookup_key` to find a single tag by its lookup key. Use `path_prefix` to filter
|
|
14
|
+
* tags by virtual path hierarchy. Combine filters as needed; all supplied filters are
|
|
15
|
+
* applied together.
|
|
16
|
+
* Pagination is page-based. Supply `page` and `page_size` to control which page is
|
|
17
|
+
* returned. The response includes `total_entries`, `total_pages`, `has_next`, and
|
|
18
|
+
* `has_prev` fields for navigating the full result set.
|
|
19
|
+
* @param params - Query parameters.
|
|
20
|
+
* @param params.page - Page number to return. Defaults to 1.
|
|
21
|
+
* @param params.pageSize - Number of solution tags to return per page. Defaults to 25.
|
|
22
|
+
* @param params.keys - Return only solution tags whose `key` exactly matches one of the provided values.
|
|
23
|
+
* @param params.lookupKey - Return only the solution tag whose `lookup_key` exactly matches this value.
|
|
24
|
+
* @param params.pathPrefix - Return only solution tags whose `virtual_path` starts with this prefix.
|
|
25
|
+
* @param params.owners - Restrict results to one or more owner scopes. Accepted values are `"system"` (app-level system tags) and `"org"` (tags belonging to the caller's organization). Omit to include all scopes visible to the caller.
|
|
26
|
+
* @returns Paginated list of solution tag definitions visible to the authenticated user.
|
|
27
|
+
*/
|
|
28
|
+
list(params?: {
|
|
29
|
+
page?: number;
|
|
30
|
+
pageSize?: number;
|
|
31
|
+
keys?: string[];
|
|
32
|
+
lookupKey?: string;
|
|
33
|
+
pathPrefix?: string;
|
|
34
|
+
owners?: string[];
|
|
35
|
+
}): Promise<SolutionTagListResponse>;
|
|
36
|
+
}
|
|
37
|
+
//# sourceMappingURL=solution_tags.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"solution_tags.d.ts","sourceRoot":"","sources":["../../../src/v1/resources/solution_tags.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAErE,qBAAa,mBAAmB;IAClB,OAAO,CAAC,IAAI;gBAAJ,IAAI,EAAE,UAAU;IAEpC;;;;;;;;;;;;;;;;;;;;;OAqBG;IACG,IAAI,CAAC,MAAM,CAAC,EAAE;QAAE,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;QAAC,SAAS,CAAC,EAAE,MAAM,CAAC;QAAC,UAAU,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,EAAE,CAAA;KAAE,GAAG,OAAO,CAAC,uBAAuB,CAAC;CAuBzK"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
// Copyright (c) 2026 ArchAstro Inc. All Rights Reserved.
|
|
2
|
+
// This file is auto-generated by @archastro/sdk-generator. Do not edit.
|
|
3
|
+
// Content hash: d9fe7a0ab128
|
|
4
|
+
export class SolutionTagResource {
|
|
5
|
+
http;
|
|
6
|
+
constructor(http) {
|
|
7
|
+
this.http = http;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* List solution tags
|
|
11
|
+
* Returns a paginated list of solution tag definitions visible to the authenticated
|
|
12
|
+
* user, scoped to their app. Results include tags from both the system scope and the
|
|
13
|
+
* caller's organization scope by default; use the `owners` parameter to restrict to
|
|
14
|
+
* one or both.
|
|
15
|
+
* Use `keys` to fetch a specific set of tags by their stable key identifiers, or
|
|
16
|
+
* `lookup_key` to find a single tag by its lookup key. Use `path_prefix` to filter
|
|
17
|
+
* tags by virtual path hierarchy. Combine filters as needed; all supplied filters are
|
|
18
|
+
* applied together.
|
|
19
|
+
* Pagination is page-based. Supply `page` and `page_size` to control which page is
|
|
20
|
+
* returned. The response includes `total_entries`, `total_pages`, `has_next`, and
|
|
21
|
+
* `has_prev` fields for navigating the full result set.
|
|
22
|
+
* @param params - Query parameters.
|
|
23
|
+
* @param params.page - Page number to return. Defaults to 1.
|
|
24
|
+
* @param params.pageSize - Number of solution tags to return per page. Defaults to 25.
|
|
25
|
+
* @param params.keys - Return only solution tags whose `key` exactly matches one of the provided values.
|
|
26
|
+
* @param params.lookupKey - Return only the solution tag whose `lookup_key` exactly matches this value.
|
|
27
|
+
* @param params.pathPrefix - Return only solution tags whose `virtual_path` starts with this prefix.
|
|
28
|
+
* @param params.owners - Restrict results to one or more owner scopes. Accepted values are `"system"` (app-level system tags) and `"org"` (tags belonging to the caller's organization). Omit to include all scopes visible to the caller.
|
|
29
|
+
* @returns Paginated list of solution tag definitions visible to the authenticated user.
|
|
30
|
+
*/
|
|
31
|
+
async list(params) {
|
|
32
|
+
const query = {};
|
|
33
|
+
if (params?.page !== undefined) {
|
|
34
|
+
query["page"] = params?.page;
|
|
35
|
+
}
|
|
36
|
+
if (params?.pageSize !== undefined) {
|
|
37
|
+
query["page_size"] = params?.pageSize;
|
|
38
|
+
}
|
|
39
|
+
if (params?.keys !== undefined) {
|
|
40
|
+
query["keys"] = params?.keys;
|
|
41
|
+
}
|
|
42
|
+
if (params?.lookupKey !== undefined) {
|
|
43
|
+
query["lookup_key"] = params?.lookupKey;
|
|
44
|
+
}
|
|
45
|
+
if (params?.pathPrefix !== undefined) {
|
|
46
|
+
query["path_prefix"] = params?.pathPrefix;
|
|
47
|
+
}
|
|
48
|
+
if (params?.owners !== undefined) {
|
|
49
|
+
query["owners"] = params?.owners;
|
|
50
|
+
}
|
|
51
|
+
return this.http.request(`/api/v1/solution_tags`, { query });
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
//# sourceMappingURL=solution_tags.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"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