@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
|
@@ -1,11 +1,26 @@
|
|
|
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: c0aae944e6cb
|
|
4
4
|
export class InviteResource {
|
|
5
5
|
http;
|
|
6
6
|
constructor(http) {
|
|
7
7
|
this.http = http;
|
|
8
8
|
}
|
|
9
|
+
/**
|
|
10
|
+
* Accept an invite
|
|
11
|
+
* Accepts an invite on behalf of the authenticated user and adds them to the
|
|
12
|
+
* associated team or thread. The invite `key` is passed in the request body
|
|
13
|
+
* rather than the URL so it never appears in access logs, `Referer` headers,
|
|
14
|
+
* or error-reporter URL captures.
|
|
15
|
+
* This endpoint requires an authenticated end-user session. S2S secret-key
|
|
16
|
+
* tokens and unauthenticated requests are rejected with `401`. If the
|
|
17
|
+
* authenticated user is already a member of the invite's target, the request
|
|
18
|
+
* returns `409`. Both per-IP and per-user rate limits apply; exceeding either
|
|
19
|
+
* returns `429`.
|
|
20
|
+
* @param input - Request body.
|
|
21
|
+
* @param input.key - Opaque invite key identifying the invite to accept. Obtained from an invite link or a previous invite creation response.
|
|
22
|
+
* @returns The accepted invite, including its ID, key, metadata, optional thread scope, creator, and creation timestamp.
|
|
23
|
+
*/
|
|
9
24
|
async accept(input) {
|
|
10
25
|
return this.http.request(`/api/v1/invites/accept`, { method: "POST", body: input });
|
|
11
26
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"invites.js","sourceRoot":"","sources":["../../../src/v1/resources/invites.ts"],"names":[],"mappings":"AAAA,yDAAyD;AACzD,wEAAwE;AACxE,6BAA6B;AAK7B,MAAM,OAAO,cAAc;IACL;IAApB,YAAoB,IAAgB;QAAhB,SAAI,GAAJ,IAAI,CAAY;IAAG,CAAC;IAExC,KAAK,CAAC,MAAM,CAAC,KAAsB;QACjC,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,wBAAwB,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC;IACtF,CAAC;CACF"}
|
|
1
|
+
{"version":3,"file":"invites.js","sourceRoot":"","sources":["../../../src/v1/resources/invites.ts"],"names":[],"mappings":"AAAA,yDAAyD;AACzD,wEAAwE;AACxE,6BAA6B;AAK7B,MAAM,OAAO,cAAc;IACL;IAApB,YAAoB,IAAgB;QAAhB,SAAI,GAAJ,IAAI,CAAY;IAAG,CAAC;IAExC;;;;;;;;;;;;;;OAcG;IACH,KAAK,CAAC,MAAM,CAAC,KAAsB;QACjC,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,wBAAwB,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC;IACtF,CAAC;CACF"}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { HttpClient } from "../../runtime/http-client.js";
|
|
2
|
+
import type { ContextDocument, ContextDocumentContent } from "../../types/common.js";
|
|
3
|
+
export declare class KnowledgeDocumentResource {
|
|
4
|
+
private http;
|
|
5
|
+
constructor(http: HttpClient);
|
|
6
|
+
/**
|
|
7
|
+
* List context documents
|
|
8
|
+
* Returns a paginated list of context documents visible to the authenticated
|
|
9
|
+
* caller within the scoped app. Results are ordered by creation time
|
|
10
|
+
* descending.
|
|
11
|
+
* Use `q` for a case-insensitive title prefix search. Use `source`,
|
|
12
|
+
* `installation`, or `agent` to narrow results to documents belonging to
|
|
13
|
+
* specific sources, installations, or agents. Multiple values within each
|
|
14
|
+
* filter are treated as OR conditions. Filters may be combined.
|
|
15
|
+
* The response includes page-level metadata so you can navigate through
|
|
16
|
+
* large result sets without cursor tokens.
|
|
17
|
+
* @param params - Query parameters.
|
|
18
|
+
* @param params.page - Page number to return. Defaults to 1.
|
|
19
|
+
* @param params.pageSize - Number of documents per page. Defaults to 25.
|
|
20
|
+
* @param params.q - Case-insensitive prefix filter applied to the document title.
|
|
21
|
+
* @param params.source - Return only documents belonging to these source IDs (`cso_...`). Multiple values are OR'd.
|
|
22
|
+
* @param params.installation - Return only documents belonging to these installation IDs. Multiple values are OR'd.
|
|
23
|
+
* @param params.agent - Return only documents owned by these agent IDs. Multiple values are OR'd.
|
|
24
|
+
* @returns Successful response
|
|
25
|
+
*/
|
|
26
|
+
list(params?: {
|
|
27
|
+
page?: number;
|
|
28
|
+
pageSize?: number;
|
|
29
|
+
q?: string;
|
|
30
|
+
source?: string[];
|
|
31
|
+
installation?: string[];
|
|
32
|
+
agent?: string[];
|
|
33
|
+
}): Promise<{
|
|
34
|
+
data: {
|
|
35
|
+
agent?: string | undefined;
|
|
36
|
+
created_at?: string | undefined;
|
|
37
|
+
file?: string | undefined;
|
|
38
|
+
id: string;
|
|
39
|
+
metadata?: Record<string, unknown> | undefined;
|
|
40
|
+
source?: string | undefined;
|
|
41
|
+
team?: string | undefined;
|
|
42
|
+
title?: string | undefined;
|
|
43
|
+
total_lines?: number | undefined;
|
|
44
|
+
total_size?: number | undefined;
|
|
45
|
+
updated_at?: string | undefined;
|
|
46
|
+
user?: string | undefined;
|
|
47
|
+
}[];
|
|
48
|
+
has_next: boolean;
|
|
49
|
+
has_prev: boolean;
|
|
50
|
+
page: number;
|
|
51
|
+
page_size: number;
|
|
52
|
+
total_entries: number;
|
|
53
|
+
total_pages: number;
|
|
54
|
+
}>;
|
|
55
|
+
/**
|
|
56
|
+
* Delete a context document
|
|
57
|
+
* Permanently deletes a context document and all of its associated chunk
|
|
58
|
+
* items. This action is irreversible.
|
|
59
|
+
* The backing storage file, if any, is not deleted — storage files can be
|
|
60
|
+
* shared across multiple documents and are cleaned up separately by the
|
|
61
|
+
* platform's storage garbage collector. The caller must be authenticated
|
|
62
|
+
* and the request must be scoped to the app that owns the document.
|
|
63
|
+
* @param document - Document ID (`cdo_...`) to delete.
|
|
64
|
+
* @returns Empty body. Returns HTTP 204 on success.
|
|
65
|
+
*/
|
|
66
|
+
delete(document: string): Promise<void>;
|
|
67
|
+
/**
|
|
68
|
+
* Retrieve a context document
|
|
69
|
+
* Returns a single context document identified by its ID. The response
|
|
70
|
+
* includes document metadata such as title, size, and ownership fields,
|
|
71
|
+
* but not the document's text content. To read the full or partial content,
|
|
72
|
+
* use the content endpoint.
|
|
73
|
+
* The caller must be authenticated and the request must be scoped to the
|
|
74
|
+
* app that owns the document.
|
|
75
|
+
* @param document - Document ID (`cdo_...`) to retrieve.
|
|
76
|
+
* @returns The requested context document's metadata.
|
|
77
|
+
*/
|
|
78
|
+
get(document: string): Promise<ContextDocument>;
|
|
79
|
+
/**
|
|
80
|
+
* Retrieve a context document's content
|
|
81
|
+
* Returns the full text of a context document, or a slice of it when
|
|
82
|
+
* `offset`, `limit`, and `unit` are supplied. Both file-backed and inline
|
|
83
|
+
* documents are supported; the response shape is the same in either case.
|
|
84
|
+
* When slicing, set `unit` to `"lines"` (default) or `"bytes"`. A line-based
|
|
85
|
+
* slice uses a 1-indexed `offset`; a byte-based slice uses a 0-indexed
|
|
86
|
+
* `offset`. If you omit `offset`, the full document text is returned and the
|
|
87
|
+
* slice-specific response fields (`unit`, `offset`, `limit`, `start_line`,
|
|
88
|
+
* `end_line`, `start_byte`, `end_byte`) are absent.
|
|
89
|
+
* The caller must be authenticated and the request must be scoped to an app
|
|
90
|
+
* that owns the document.
|
|
91
|
+
* @param document - Document ID (`cdo_...`) whose content to retrieve.
|
|
92
|
+
* @param params - Query parameters.
|
|
93
|
+
* @param params.offset - Starting position for a content slice. When `unit` is `"lines"`, this is a 1-indexed line number. When `unit` is `"bytes"`, this is a 0-indexed byte offset. Omit to return the full document.
|
|
94
|
+
* @param params.limit - Maximum number of units to return when slicing. Defaults to 200 when `unit` is `"lines"` and 8192 when `unit` is `"bytes"`.
|
|
95
|
+
* @param params.unit - Unit to use for `offset` and `limit`. One of `"lines"` (default) or `"bytes"`.
|
|
96
|
+
* @returns The document's content, optionally sliced by offset and limit.
|
|
97
|
+
*/
|
|
98
|
+
content(document: string, params?: {
|
|
99
|
+
offset?: number;
|
|
100
|
+
limit?: number;
|
|
101
|
+
unit?: string;
|
|
102
|
+
}): Promise<ContextDocumentContent>;
|
|
103
|
+
}
|
|
104
|
+
//# sourceMappingURL=knowledge_documents.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"knowledge_documents.d.ts","sourceRoot":"","sources":["../../../src/v1/resources/knowledge_documents.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,KAAK,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAErF,qBAAa,yBAAyB;IACxB,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,CAAC,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;QAAC,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;QAAC,KAAK,CAAC,EA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AC,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,sBAAsB,CAAC;CAc9H"}
|
|
@@ -0,0 +1,112 @@
|
|
|
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: 45254c35e16f
|
|
4
|
+
export class KnowledgeDocumentResource {
|
|
5
|
+
http;
|
|
6
|
+
constructor(http) {
|
|
7
|
+
this.http = http;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* List context documents
|
|
11
|
+
* Returns a paginated list of context documents visible to the authenticated
|
|
12
|
+
* caller within the scoped app. Results are ordered by creation time
|
|
13
|
+
* descending.
|
|
14
|
+
* Use `q` for a case-insensitive title prefix search. Use `source`,
|
|
15
|
+
* `installation`, or `agent` to narrow results to documents belonging to
|
|
16
|
+
* specific sources, installations, or agents. Multiple values within each
|
|
17
|
+
* filter are treated as OR conditions. Filters may be combined.
|
|
18
|
+
* The response includes page-level metadata so you can navigate through
|
|
19
|
+
* large result sets without cursor tokens.
|
|
20
|
+
* @param params - Query parameters.
|
|
21
|
+
* @param params.page - Page number to return. Defaults to 1.
|
|
22
|
+
* @param params.pageSize - Number of documents per page. Defaults to 25.
|
|
23
|
+
* @param params.q - Case-insensitive prefix filter applied to the document title.
|
|
24
|
+
* @param params.source - Return only documents belonging to these source IDs (`cso_...`). Multiple values are OR'd.
|
|
25
|
+
* @param params.installation - Return only documents belonging to these installation IDs. Multiple values are OR'd.
|
|
26
|
+
* @param params.agent - Return only documents owned by these agent IDs. Multiple values are OR'd.
|
|
27
|
+
* @returns Successful response
|
|
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?.q !== undefined) {
|
|
38
|
+
query["q"] = params?.q;
|
|
39
|
+
}
|
|
40
|
+
if (params?.source !== undefined) {
|
|
41
|
+
query["source"] = params?.source;
|
|
42
|
+
}
|
|
43
|
+
if (params?.installation !== undefined) {
|
|
44
|
+
query["installation"] = params?.installation;
|
|
45
|
+
}
|
|
46
|
+
if (params?.agent !== undefined) {
|
|
47
|
+
query["agent"] = params?.agent;
|
|
48
|
+
}
|
|
49
|
+
return this.http.request(`/api/v1/knowledge_documents`, { query });
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Delete a context document
|
|
53
|
+
* Permanently deletes a context document and all of its associated chunk
|
|
54
|
+
* items. This action is irreversible.
|
|
55
|
+
* The backing storage file, if any, is not deleted — storage files can be
|
|
56
|
+
* shared across multiple documents and are cleaned up separately by the
|
|
57
|
+
* platform's storage garbage collector. The caller must be authenticated
|
|
58
|
+
* and the request must be scoped to the app that owns the document.
|
|
59
|
+
* @param document - Document ID (`cdo_...`) to delete.
|
|
60
|
+
* @returns Empty body. Returns HTTP 204 on success.
|
|
61
|
+
*/
|
|
62
|
+
async delete(document) {
|
|
63
|
+
await this.http.request(`/api/v1/knowledge_documents/${document}`, { method: "DELETE" });
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Retrieve a context document
|
|
67
|
+
* Returns a single context document identified by its ID. The response
|
|
68
|
+
* includes document metadata such as title, size, and ownership fields,
|
|
69
|
+
* but not the document's text content. To read the full or partial content,
|
|
70
|
+
* use the content endpoint.
|
|
71
|
+
* The caller must be authenticated and the request must be scoped to the
|
|
72
|
+
* app that owns the document.
|
|
73
|
+
* @param document - Document ID (`cdo_...`) to retrieve.
|
|
74
|
+
* @returns The requested context document's metadata.
|
|
75
|
+
*/
|
|
76
|
+
async get(document) {
|
|
77
|
+
return this.http.request(`/api/v1/knowledge_documents/${document}`);
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Retrieve a context document's content
|
|
81
|
+
* Returns the full text of a context document, or a slice of it when
|
|
82
|
+
* `offset`, `limit`, and `unit` are supplied. Both file-backed and inline
|
|
83
|
+
* documents are supported; the response shape is the same in either case.
|
|
84
|
+
* When slicing, set `unit` to `"lines"` (default) or `"bytes"`. A line-based
|
|
85
|
+
* slice uses a 1-indexed `offset`; a byte-based slice uses a 0-indexed
|
|
86
|
+
* `offset`. If you omit `offset`, the full document text is returned and the
|
|
87
|
+
* slice-specific response fields (`unit`, `offset`, `limit`, `start_line`,
|
|
88
|
+
* `end_line`, `start_byte`, `end_byte`) are absent.
|
|
89
|
+
* The caller must be authenticated and the request must be scoped to an app
|
|
90
|
+
* that owns the document.
|
|
91
|
+
* @param document - Document ID (`cdo_...`) whose content to retrieve.
|
|
92
|
+
* @param params - Query parameters.
|
|
93
|
+
* @param params.offset - Starting position for a content slice. When `unit` is `"lines"`, this is a 1-indexed line number. When `unit` is `"bytes"`, this is a 0-indexed byte offset. Omit to return the full document.
|
|
94
|
+
* @param params.limit - Maximum number of units to return when slicing. Defaults to 200 when `unit` is `"lines"` and 8192 when `unit` is `"bytes"`.
|
|
95
|
+
* @param params.unit - Unit to use for `offset` and `limit`. One of `"lines"` (default) or `"bytes"`.
|
|
96
|
+
* @returns The document's content, optionally sliced by offset and limit.
|
|
97
|
+
*/
|
|
98
|
+
async content(document, params) {
|
|
99
|
+
const query = {};
|
|
100
|
+
if (params?.offset !== undefined) {
|
|
101
|
+
query["offset"] = params?.offset;
|
|
102
|
+
}
|
|
103
|
+
if (params?.limit !== undefined) {
|
|
104
|
+
query["limit"] = params?.limit;
|
|
105
|
+
}
|
|
106
|
+
if (params?.unit !== undefined) {
|
|
107
|
+
query["unit"] = params?.unit;
|
|
108
|
+
}
|
|
109
|
+
return this.http.request(`/api/v1/knowledge_documents/${document}/content`, { query });
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
//# sourceMappingURL=knowledge_documents.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":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AM,CAAC,QAAgB;QAC3B,MAAM,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,+BAA+B,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,CAAC;IAC3F,CAAC;IAED;;;;;;;;;;OAUG;IACH,KAAK,CAAC,GAAG,CAAC,QAAgB;QACxB,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,+BAA+B,QAAQ,EAAE,CAAC,CAAC;IACtE,CAAC;IAED;;;;;;;;;;;;;;;;;;OAkBG;IACH,KAAK,CAAC,OAAO,CAAC,QAAgB,EAAE,MAA2D;QACzF,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,IAAI,KAAK,SAAS,EAAE,CAAC;YAC/B,KAAK,CAAC,MAAM,CAAC,GAAG,MAAM,EAAE,IAAI,CAAC;QAC/B,CAAC;QAED,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,+BAA+B,QAAQ,UAAU,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC;IACzF,CAAC;CACF"}
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
import { HttpClient } from "../../runtime/http-client.js";
|
|
2
|
+
import type { ContextIngestion, KnowledgeSource, KnowledgeSourceKindListResponse } from "../../types/common.js";
|
|
3
|
+
export declare class KnowledgeSourceKindResource {
|
|
4
|
+
private http;
|
|
5
|
+
constructor(http: HttpClient);
|
|
6
|
+
/**
|
|
7
|
+
* List creatable knowledge source kinds
|
|
8
|
+
* Returns the fixed set of knowledge source types that can be created directly via
|
|
9
|
+
* `POST /api/v1/knowledge_sources`. Use this endpoint to discover valid values for the
|
|
10
|
+
* `type` param before calling the create endpoint.
|
|
11
|
+
* Source kinds populated by server-driven flows — such as `webhook/inbound`,
|
|
12
|
+
* `connectors/*\/emails`, and `thread/messages` — are intentionally excluded from this
|
|
13
|
+
* list, as they cannot be created through the API.
|
|
14
|
+
* @returns List of knowledge source kinds available for creation via the API.
|
|
15
|
+
*/
|
|
16
|
+
list(): Promise<KnowledgeSourceKindListResponse>;
|
|
17
|
+
}
|
|
18
|
+
export declare class KnowledgeSourceResource {
|
|
19
|
+
private http;
|
|
20
|
+
readonly kinds: KnowledgeSourceKindResource;
|
|
21
|
+
constructor(http: HttpClient);
|
|
22
|
+
/**
|
|
23
|
+
* List knowledge sources
|
|
24
|
+
* Returns a paginated list of knowledge sources visible to the authenticated caller.
|
|
25
|
+
* Results are ordered by creation time descending.
|
|
26
|
+
* Use the `type`, `installation`, `agent`, `org`, and `owner_scope` filters to narrow the
|
|
27
|
+
* result set. Combine `owner_scope: "system"` with `org` to list org-level sources that
|
|
28
|
+
* have no individual owner. Combine `owner_scope: "individual"` with `agent` to list
|
|
29
|
+
* sources owned by a specific agent.
|
|
30
|
+
* Pagination is page-number based. The default page size is 25.
|
|
31
|
+
* @param params - Query parameters.
|
|
32
|
+
* @param params.page - Page number to retrieve. Defaults to 1.
|
|
33
|
+
* @param params.pageSize - Number of knowledge sources to return per page. Defaults to 25.
|
|
34
|
+
* @param params.search - Filter sources whose type contains this string. Case-insensitive substring match.
|
|
35
|
+
* @param params.type - Exact knowledge source type to filter by, e.g. `"knowledge/documents"`.
|
|
36
|
+
* @param params.installation - Installation ID (`ins_...`). Returns only sources associated with this installation.
|
|
37
|
+
* @param params.agent - Agent ID (`agt_...`). Returns only sources owned by or associated with this agent.
|
|
38
|
+
* @param params.org - Organization ID (`org_...`). Returns only sources belonging to this organization. Combine with `owner_scope: "system"` to retrieve org-level system sources.
|
|
39
|
+
* @param params.ownerScope - Filter by ownership scope. One of `"any"` (default — returns all visible sources), `"individual"` (only sources owned by a user, team, or agent), or `"system"` (only sources with no individual owner, typically org-level).
|
|
40
|
+
* @returns Successful response
|
|
41
|
+
*/
|
|
42
|
+
list(params?: {
|
|
43
|
+
page?: number;
|
|
44
|
+
pageSize?: number;
|
|
45
|
+
search?: string;
|
|
46
|
+
type?: string;
|
|
47
|
+
installation?: string;
|
|
48
|
+
agent?: string;
|
|
49
|
+
org?: string;
|
|
50
|
+
ownerScope?: "any" | "individual" | "system";
|
|
51
|
+
}): Promise<{
|
|
52
|
+
data: {
|
|
53
|
+
agent?: string | undefined;
|
|
54
|
+
context_installation?: string | undefined;
|
|
55
|
+
created_at?: string | undefined;
|
|
56
|
+
id: string;
|
|
57
|
+
metadata?: Record<string, unknown> | undefined;
|
|
58
|
+
org?: string | undefined;
|
|
59
|
+
parent_source?: string | undefined;
|
|
60
|
+
payload?: Record<string, unknown> | undefined;
|
|
61
|
+
sandbox?: string | undefined;
|
|
62
|
+
state: string;
|
|
63
|
+
team?: string | undefined;
|
|
64
|
+
thread?: string | undefined;
|
|
65
|
+
type: string;
|
|
66
|
+
updated_at?: string | undefined;
|
|
67
|
+
user?: string | undefined;
|
|
68
|
+
}[];
|
|
69
|
+
has_next: boolean;
|
|
70
|
+
has_prev: boolean;
|
|
71
|
+
page: number;
|
|
72
|
+
page_size: number;
|
|
73
|
+
total_entries: number;
|
|
74
|
+
total_pages: number;
|
|
75
|
+
}>;
|
|
76
|
+
/**
|
|
77
|
+
* Create a knowledge source
|
|
78
|
+
* Creates a new knowledge source of the requested type and returns the created object.
|
|
79
|
+
* Only types listed by `GET /api/v1/knowledge_sources/kinds` may be created through this
|
|
80
|
+
* endpoint. Other source types — such as `webhook/inbound`, `connectors/*\/emails`, and
|
|
81
|
+
* `thread/messages` — are provisioned automatically by server-driven flows (webhook
|
|
82
|
+
* auto-provisioning, installation activation, connector lifecycle events) and cannot be
|
|
83
|
+
* created directly via the API.
|
|
84
|
+
* Exactly one of `team`, `user`, `agent`, or `org` must identify the owner of the new
|
|
85
|
+
* source. Omit `org` when an individual owner (`team`, `user`, or `agent`) is supplied;
|
|
86
|
+
* include `org` alone for org-level system-owned sources.
|
|
87
|
+
* @param input - Request body.
|
|
88
|
+
* @param input.agent - Agent ID (`agt_...`) that owns this source. Mutually exclusive with `team` and `user`.
|
|
89
|
+
* @param input.metadata - Arbitrary key-value metadata to attach to the source. Returned as-is on reads.
|
|
90
|
+
* @param input.org - Organization ID (`org_...`). Required for system-owned sources that have no individual owner (`team`, `user`, or `agent`).
|
|
91
|
+
* @param input.parent_source - Parent knowledge source ID (`ksrc_...`). Use to create a child source.
|
|
92
|
+
* @param input.payload - Type-specific configuration for the source. Shape depends on `type`.
|
|
93
|
+
* @param input.state - Initial state of the source. One of `"active"` (default) or `"paused"`. Paused sources do not trigger ingestion automatically.
|
|
94
|
+
* @param input.team - Team ID (`team_...`) that owns this source. Mutually exclusive with `user` and `agent`.
|
|
95
|
+
* @param input.thread - Thread ID (`thr_...`) to associate this source with, if applicable.
|
|
96
|
+
* @param input.type - Knowledge source type. Must be one of the values returned by `GET /api/v1/knowledge_sources/kinds`.
|
|
97
|
+
* @param input.user - User ID (`usr_...`) that owns this source. Mutually exclusive with `team` and `agent`.
|
|
98
|
+
* @returns The newly created knowledge source.
|
|
99
|
+
*/
|
|
100
|
+
create(input: {
|
|
101
|
+
agent?: string | undefined;
|
|
102
|
+
metadata?: Record<string, unknown> | undefined;
|
|
103
|
+
org?: string | undefined;
|
|
104
|
+
parent_source?: string | undefined;
|
|
105
|
+
payload?: Record<string, unknown> | undefined;
|
|
106
|
+
state?: string | undefined;
|
|
107
|
+
team?: string | undefined;
|
|
108
|
+
thread?: string | undefined;
|
|
109
|
+
type: string;
|
|
110
|
+
user?: string | undefined;
|
|
111
|
+
}): Promise<KnowledgeSource>;
|
|
112
|
+
/**
|
|
113
|
+
* Delete a knowledge source
|
|
114
|
+
* Permanently deletes the knowledge source identified by `source`. This action is
|
|
115
|
+
* irreversible — all documents, embeddings, and ingestion history associated with the
|
|
116
|
+
* source are removed.
|
|
117
|
+
* The authenticated caller must own the source or have sufficient permissions within its
|
|
118
|
+
* parent organization. Returns `204 No Content` on success.
|
|
119
|
+
* @param source - Knowledge source ID (`ksrc_...`) to delete.
|
|
120
|
+
* @returns Empty response. The source has been permanently deleted.
|
|
121
|
+
*/
|
|
122
|
+
delete(source: string): Promise<void>;
|
|
123
|
+
/**
|
|
124
|
+
* Retrieve a knowledge source
|
|
125
|
+
* Returns the knowledge source identified by `source`. The authenticated caller must have
|
|
126
|
+
* access to the source's parent organization or be the individual owner of the source.
|
|
127
|
+
* Use the list endpoint to retrieve many sources at once or to discover sources by type
|
|
128
|
+
* or owner.
|
|
129
|
+
* @param source - Knowledge source ID (`ksrc_...`) to retrieve.
|
|
130
|
+
* @returns The requested knowledge source.
|
|
131
|
+
*/
|
|
132
|
+
get(source: string): Promise<KnowledgeSource>;
|
|
133
|
+
/**
|
|
134
|
+
* Update a knowledge source
|
|
135
|
+
* Updates the mutable fields of an existing knowledge source and returns the updated
|
|
136
|
+
* object. Only fields provided in the request body are changed; omitted fields retain
|
|
137
|
+
* their current values.
|
|
138
|
+
* You can update the type-specific `payload`, the `metadata` map, and the `state`. To
|
|
139
|
+
* pause a source and prevent automatic ingestion, set `state` to `"paused"`. To resume,
|
|
140
|
+
* set it back to `"active"`.
|
|
141
|
+
* @param source - Knowledge source ID (`ksrc_...`) to update.
|
|
142
|
+
* @param input - Request body.
|
|
143
|
+
* @param input.metadata - Arbitrary key-value metadata to attach to the source. Replaces the entire existing `metadata` map when provided.
|
|
144
|
+
* @param input.payload - Type-specific configuration to replace on the source. Shape depends on the source `type`. Replaces the entire existing `payload` when provided.
|
|
145
|
+
* @param input.state - Desired state of the source. One of `"active"` or `"paused"`. Paused sources do not trigger ingestion automatically.
|
|
146
|
+
* @returns The updated knowledge source.
|
|
147
|
+
*/
|
|
148
|
+
update(source: string, input: {
|
|
149
|
+
metadata?: Record<string, unknown> | undefined;
|
|
150
|
+
payload?: Record<string, unknown> | undefined;
|
|
151
|
+
state?: string | undefined;
|
|
152
|
+
}): Promise<KnowledgeSource>;
|
|
153
|
+
/**
|
|
154
|
+
* Trigger ingestion on a knowledge source
|
|
155
|
+
* Starts an ingestion run on the specified knowledge source and returns the ingestion
|
|
156
|
+
* object. Exactly one of two modes must be chosen per request:
|
|
157
|
+
* **Push mode** (`file` or `content`) — available for `knowledge/documents` sources only.
|
|
158
|
+
* Supply the document bytes either as a reference to an already-uploaded file (`file`) or
|
|
159
|
+
* as an inline blob (`content`). The runner stores the bytes and indexes the resulting
|
|
160
|
+
* document. `title` and `metadata` are persisted on the document in push mode.
|
|
161
|
+
* **Pull mode** (`pull: true`) — re-triggers ingestion using the source's own configured
|
|
162
|
+
* data. Use this to re-scrape a `scrape/site`, re-fetch a `web/link`, or re-process a
|
|
163
|
+
* `file/document`. Not valid for `knowledge/documents` (which has no upstream — push new
|
|
164
|
+
* bytes instead) or for source kinds populated by server-driven flows. `title` and
|
|
165
|
+
* `metadata` are ignored in pull mode.
|
|
166
|
+
* If an ingestion is already active for the source, the existing ingestion is returned
|
|
167
|
+
* rather than creating a duplicate.
|
|
168
|
+
* @param source - Knowledge source ID (`ksrc_...`) to ingest.
|
|
169
|
+
* @param input - Request body.
|
|
170
|
+
* @param input.content - Inline document bytes to push to the source. Mutually exclusive with `file` and `pull`.
|
|
171
|
+
* @param input.file - ID of an already-uploaded file (`fil_...`). The runner reads filename and content type from the stored file. Upload the file via `POST /v1/files` first. Mutually exclusive with `content` and `pull`.
|
|
172
|
+
* @param input.metadata - Arbitrary key-value metadata to attach to the ingested document. Applied in push mode only; ignored when `pull: true`.
|
|
173
|
+
* @param input.pull - When `true`, re-triggers ingestion using the source's own configured data. Re-scrapes a `scrape/site`, re-fetches a `web/link`, or re-processes a `file/document`. Mutually exclusive with `file` and `content`. Not valid for `knowledge/documents` sources.
|
|
174
|
+
* @param input.title - Display title for the ingested document. Applied in push mode only; ignored when `pull: true`.
|
|
175
|
+
* @returns The created ingestion, or an existing active ingestion if one is already running.
|
|
176
|
+
*/
|
|
177
|
+
ingest(source: string, input: {
|
|
178
|
+
content?: {
|
|
179
|
+
content_type?: string | undefined;
|
|
180
|
+
data: string;
|
|
181
|
+
data_encoding?: string | undefined;
|
|
182
|
+
filename?: string | undefined;
|
|
183
|
+
} | undefined;
|
|
184
|
+
file?: string | undefined;
|
|
185
|
+
metadata?: Record<string, unknown> | undefined;
|
|
186
|
+
pull?: boolean | undefined;
|
|
187
|
+
title?: string | undefined;
|
|
188
|
+
}): Promise<ContextIngestion>;
|
|
189
|
+
}
|
|
190
|
+
//# sourceMappingURL=knowledge_sources.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"knowledge_sources.d.ts","sourceRoot":"","sources":["../../../src/v1/resources/knowledge_sources.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,KAAK,EAAE,gBAAgB,EAAE,eAAe,EAAE,+BAA+B,EAAE,MAAM,uBAAuB,CAAC;AAEhH,qBAAa,2BAA2B;IAC1B,OAAO,CAAC,IAAI;gBAAJ,IAAI,EAAE,UAAU;IAEpC;;;;;;;;;OASG;IACG,IAAI,IAAI,OAAO,CAAC,+BAA+B,CAAC;CAGvD;AAED,qBAAa,uBAAuB;IAGtB,OAAO,CAAC,IAAI;IAFxB,QAAQ,CAAC,KAAK,EAAE,2BAA2B,CAAC;gBAExB,IAAI,EAAE,UAAU;IAIpC;;;;;;;;;;;;;;;;;;;OAmBG;IACG,IAAI,CAAC,MAAM,CAAC,EAAE;QAAE,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,YAAY,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MA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C;YAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;SAAE,GAAG,SAAS,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAAC;QAAC,IAAI,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;KAAE,GAAG,OAAO,CAAC,gBAAgB,CAAC;CAGpV"}
|
|
@@ -0,0 +1,176 @@
|
|
|
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: 32ce32920932
|
|
4
|
+
export class KnowledgeSourceKindResource {
|
|
5
|
+
http;
|
|
6
|
+
constructor(http) {
|
|
7
|
+
this.http = http;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* List creatable knowledge source kinds
|
|
11
|
+
* Returns the fixed set of knowledge source types that can be created directly via
|
|
12
|
+
* `POST /api/v1/knowledge_sources`. Use this endpoint to discover valid values for the
|
|
13
|
+
* `type` param before calling the create endpoint.
|
|
14
|
+
* Source kinds populated by server-driven flows — such as `webhook/inbound`,
|
|
15
|
+
* `connectors/*\/emails`, and `thread/messages` — are intentionally excluded from this
|
|
16
|
+
* list, as they cannot be created through the API.
|
|
17
|
+
* @returns List of knowledge source kinds available for creation via the API.
|
|
18
|
+
*/
|
|
19
|
+
async list() {
|
|
20
|
+
return this.http.request(`/api/v1/knowledge_sources/kinds`);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
export class KnowledgeSourceResource {
|
|
24
|
+
http;
|
|
25
|
+
kinds;
|
|
26
|
+
constructor(http) {
|
|
27
|
+
this.http = http;
|
|
28
|
+
this.kinds = new KnowledgeSourceKindResource(http);
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* List knowledge sources
|
|
32
|
+
* Returns a paginated list of knowledge sources visible to the authenticated caller.
|
|
33
|
+
* Results are ordered by creation time descending.
|
|
34
|
+
* Use the `type`, `installation`, `agent`, `org`, and `owner_scope` filters to narrow the
|
|
35
|
+
* result set. Combine `owner_scope: "system"` with `org` to list org-level sources that
|
|
36
|
+
* have no individual owner. Combine `owner_scope: "individual"` with `agent` to list
|
|
37
|
+
* sources owned by a specific agent.
|
|
38
|
+
* Pagination is page-number based. The default page size is 25.
|
|
39
|
+
* @param params - Query parameters.
|
|
40
|
+
* @param params.page - Page number to retrieve. Defaults to 1.
|
|
41
|
+
* @param params.pageSize - Number of knowledge sources to return per page. Defaults to 25.
|
|
42
|
+
* @param params.search - Filter sources whose type contains this string. Case-insensitive substring match.
|
|
43
|
+
* @param params.type - Exact knowledge source type to filter by, e.g. `"knowledge/documents"`.
|
|
44
|
+
* @param params.installation - Installation ID (`ins_...`). Returns only sources associated with this installation.
|
|
45
|
+
* @param params.agent - Agent ID (`agt_...`). Returns only sources owned by or associated with this agent.
|
|
46
|
+
* @param params.org - Organization ID (`org_...`). Returns only sources belonging to this organization. Combine with `owner_scope: "system"` to retrieve org-level system sources.
|
|
47
|
+
* @param params.ownerScope - Filter by ownership scope. One of `"any"` (default — returns all visible sources), `"individual"` (only sources owned by a user, team, or agent), or `"system"` (only sources with no individual owner, typically org-level).
|
|
48
|
+
* @returns Successful response
|
|
49
|
+
*/
|
|
50
|
+
async list(params) {
|
|
51
|
+
const query = {};
|
|
52
|
+
if (params?.page !== undefined) {
|
|
53
|
+
query["page"] = params?.page;
|
|
54
|
+
}
|
|
55
|
+
if (params?.pageSize !== undefined) {
|
|
56
|
+
query["page_size"] = params?.pageSize;
|
|
57
|
+
}
|
|
58
|
+
if (params?.search !== undefined) {
|
|
59
|
+
query["search"] = params?.search;
|
|
60
|
+
}
|
|
61
|
+
if (params?.type !== undefined) {
|
|
62
|
+
query["type"] = params?.type;
|
|
63
|
+
}
|
|
64
|
+
if (params?.installation !== undefined) {
|
|
65
|
+
query["installation"] = params?.installation;
|
|
66
|
+
}
|
|
67
|
+
if (params?.agent !== undefined) {
|
|
68
|
+
query["agent"] = params?.agent;
|
|
69
|
+
}
|
|
70
|
+
if (params?.org !== undefined) {
|
|
71
|
+
query["org"] = params?.org;
|
|
72
|
+
}
|
|
73
|
+
if (params?.ownerScope !== undefined) {
|
|
74
|
+
query["owner_scope"] = params?.ownerScope;
|
|
75
|
+
}
|
|
76
|
+
return this.http.request(`/api/v1/knowledge_sources`, { query });
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Create a knowledge source
|
|
80
|
+
* Creates a new knowledge source of the requested type and returns the created object.
|
|
81
|
+
* Only types listed by `GET /api/v1/knowledge_sources/kinds` may be created through this
|
|
82
|
+
* endpoint. Other source types — such as `webhook/inbound`, `connectors/*\/emails`, and
|
|
83
|
+
* `thread/messages` — are provisioned automatically by server-driven flows (webhook
|
|
84
|
+
* auto-provisioning, installation activation, connector lifecycle events) and cannot be
|
|
85
|
+
* created directly via the API.
|
|
86
|
+
* Exactly one of `team`, `user`, `agent`, or `org` must identify the owner of the new
|
|
87
|
+
* source. Omit `org` when an individual owner (`team`, `user`, or `agent`) is supplied;
|
|
88
|
+
* include `org` alone for org-level system-owned sources.
|
|
89
|
+
* @param input - Request body.
|
|
90
|
+
* @param input.agent - Agent ID (`agt_...`) that owns this source. Mutually exclusive with `team` and `user`.
|
|
91
|
+
* @param input.metadata - Arbitrary key-value metadata to attach to the source. Returned as-is on reads.
|
|
92
|
+
* @param input.org - Organization ID (`org_...`). Required for system-owned sources that have no individual owner (`team`, `user`, or `agent`).
|
|
93
|
+
* @param input.parent_source - Parent knowledge source ID (`ksrc_...`). Use to create a child source.
|
|
94
|
+
* @param input.payload - Type-specific configuration for the source. Shape depends on `type`.
|
|
95
|
+
* @param input.state - Initial state of the source. One of `"active"` (default) or `"paused"`. Paused sources do not trigger ingestion automatically.
|
|
96
|
+
* @param input.team - Team ID (`team_...`) that owns this source. Mutually exclusive with `user` and `agent`.
|
|
97
|
+
* @param input.thread - Thread ID (`thr_...`) to associate this source with, if applicable.
|
|
98
|
+
* @param input.type - Knowledge source type. Must be one of the values returned by `GET /api/v1/knowledge_sources/kinds`.
|
|
99
|
+
* @param input.user - User ID (`usr_...`) that owns this source. Mutually exclusive with `team` and `agent`.
|
|
100
|
+
* @returns The newly created knowledge source.
|
|
101
|
+
*/
|
|
102
|
+
async create(input) {
|
|
103
|
+
return this.http.request(`/api/v1/knowledge_sources`, { method: "POST", body: input });
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* Delete a knowledge source
|
|
107
|
+
* Permanently deletes the knowledge source identified by `source`. This action is
|
|
108
|
+
* irreversible — all documents, embeddings, and ingestion history associated with the
|
|
109
|
+
* source are removed.
|
|
110
|
+
* The authenticated caller must own the source or have sufficient permissions within its
|
|
111
|
+
* parent organization. Returns `204 No Content` on success.
|
|
112
|
+
* @param source - Knowledge source ID (`ksrc_...`) to delete.
|
|
113
|
+
* @returns Empty response. The source has been permanently deleted.
|
|
114
|
+
*/
|
|
115
|
+
async delete(source) {
|
|
116
|
+
await this.http.request(`/api/v1/knowledge_sources/${source}`, { method: "DELETE" });
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* Retrieve a knowledge source
|
|
120
|
+
* Returns the knowledge source identified by `source`. The authenticated caller must have
|
|
121
|
+
* access to the source's parent organization or be the individual owner of the source.
|
|
122
|
+
* Use the list endpoint to retrieve many sources at once or to discover sources by type
|
|
123
|
+
* or owner.
|
|
124
|
+
* @param source - Knowledge source ID (`ksrc_...`) to retrieve.
|
|
125
|
+
* @returns The requested knowledge source.
|
|
126
|
+
*/
|
|
127
|
+
async get(source) {
|
|
128
|
+
return this.http.request(`/api/v1/knowledge_sources/${source}`);
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* Update a knowledge source
|
|
132
|
+
* Updates the mutable fields of an existing knowledge source and returns the updated
|
|
133
|
+
* object. Only fields provided in the request body are changed; omitted fields retain
|
|
134
|
+
* their current values.
|
|
135
|
+
* You can update the type-specific `payload`, the `metadata` map, and the `state`. To
|
|
136
|
+
* pause a source and prevent automatic ingestion, set `state` to `"paused"`. To resume,
|
|
137
|
+
* set it back to `"active"`.
|
|
138
|
+
* @param source - Knowledge source ID (`ksrc_...`) to update.
|
|
139
|
+
* @param input - Request body.
|
|
140
|
+
* @param input.metadata - Arbitrary key-value metadata to attach to the source. Replaces the entire existing `metadata` map when provided.
|
|
141
|
+
* @param input.payload - Type-specific configuration to replace on the source. Shape depends on the source `type`. Replaces the entire existing `payload` when provided.
|
|
142
|
+
* @param input.state - Desired state of the source. One of `"active"` or `"paused"`. Paused sources do not trigger ingestion automatically.
|
|
143
|
+
* @returns The updated knowledge source.
|
|
144
|
+
*/
|
|
145
|
+
async update(source, input) {
|
|
146
|
+
return this.http.request(`/api/v1/knowledge_sources/${source}`, { method: "PATCH", body: input });
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* Trigger ingestion on a knowledge source
|
|
150
|
+
* Starts an ingestion run on the specified knowledge source and returns the ingestion
|
|
151
|
+
* object. Exactly one of two modes must be chosen per request:
|
|
152
|
+
* **Push mode** (`file` or `content`) — available for `knowledge/documents` sources only.
|
|
153
|
+
* Supply the document bytes either as a reference to an already-uploaded file (`file`) or
|
|
154
|
+
* as an inline blob (`content`). The runner stores the bytes and indexes the resulting
|
|
155
|
+
* document. `title` and `metadata` are persisted on the document in push mode.
|
|
156
|
+
* **Pull mode** (`pull: true`) — re-triggers ingestion using the source's own configured
|
|
157
|
+
* data. Use this to re-scrape a `scrape/site`, re-fetch a `web/link`, or re-process a
|
|
158
|
+
* `file/document`. Not valid for `knowledge/documents` (which has no upstream — push new
|
|
159
|
+
* bytes instead) or for source kinds populated by server-driven flows. `title` and
|
|
160
|
+
* `metadata` are ignored in pull mode.
|
|
161
|
+
* If an ingestion is already active for the source, the existing ingestion is returned
|
|
162
|
+
* rather than creating a duplicate.
|
|
163
|
+
* @param source - Knowledge source ID (`ksrc_...`) to ingest.
|
|
164
|
+
* @param input - Request body.
|
|
165
|
+
* @param input.content - Inline document bytes to push to the source. Mutually exclusive with `file` and `pull`.
|
|
166
|
+
* @param input.file - ID of an already-uploaded file (`fil_...`). The runner reads filename and content type from the stored file. Upload the file via `POST /v1/files` first. Mutually exclusive with `content` and `pull`.
|
|
167
|
+
* @param input.metadata - Arbitrary key-value metadata to attach to the ingested document. Applied in push mode only; ignored when `pull: true`.
|
|
168
|
+
* @param input.pull - When `true`, re-triggers ingestion using the source's own configured data. Re-scrapes a `scrape/site`, re-fetches a `web/link`, or re-processes a `file/document`. Mutually exclusive with `file` and `content`. Not valid for `knowledge/documents` sources.
|
|
169
|
+
* @param input.title - Display title for the ingested document. Applied in push mode only; ignored when `pull: true`.
|
|
170
|
+
* @returns The created ingestion, or an existing active ingestion if one is already running.
|
|
171
|
+
*/
|
|
172
|
+
async ingest(source, input) {
|
|
173
|
+
return this.http.request(`/api/v1/knowledge_sources/${source}/ingest`, { method: "POST", body: input });
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
//# sourceMappingURL=knowledge_sources.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"knowledge_sources.js","sourceRoot":"","sources":["../../../src/v1/resources/knowledge_sources.ts"],"names":[],"mappings":"AAAA,yDAAyD;AACzD,wEAAwE;AACxE,6BAA6B;AAK7B,MAAM,OAAO,2BAA2B;IAClB;IAApB,YAAoB,IAAgB;QAAhB,SAAI,GAAJ,IAAI,CAAY;IAAG,CAAC;IAExC;;;;;;;;;OASG;IACH,KAAK,CAAC,IAAI;QACR,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,iCAAiC,CAAC,CAAC;IAC9D,CAAC;CACF;AAED,MAAM,OAAO,uBAAuB;IAGd;IAFX,KAAK,CAA8B;IAE5C,YAAoB,IAAgB;QAAhB,SAAI,GAAJ,IAAI,CAAY;QAClC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