@archastro/sdk 0.17.0 → 0.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/auth.d.ts +42 -18
- package/dist/auth.d.ts.map +1 -1
- package/dist/auth.js +53 -19
- package/dist/auth.js.map +1 -1
- package/dist/channels/api_chat_channel.d.ts +11 -1
- package/dist/channels/api_chat_channel.d.ts.map +1 -1
- package/dist/channels/api_chat_channel.js +14 -2
- package/dist/channels/api_chat_channel.js.map +1 -1
- package/dist/effective-access.d.ts +1 -1
- package/dist/effective-access.d.ts.map +1 -1
- package/dist/effective-access.js +2 -5
- package/dist/effective-access.js.map +1 -1
- package/dist/types/ai.d.ts +310 -0
- package/dist/types/ai.d.ts.map +1 -1
- package/dist/types/ai.js +51 -1
- package/dist/types/ai.js.map +1 -1
- package/dist/types/artifacts.d.ts +14 -2
- package/dist/types/artifacts.d.ts.map +1 -1
- package/dist/types/artifacts.js +5 -1
- package/dist/types/artifacts.js.map +1 -1
- package/dist/types/chat.d.ts +192 -168
- package/dist/types/chat.d.ts.map +1 -1
- package/dist/types/chat.js +10 -3
- package/dist/types/chat.js.map +1 -1
- package/dist/types/common.d.ts +347 -128
- package/dist/types/common.d.ts.map +1 -1
- package/dist/types/common.js +39 -20
- package/dist/types/common.js.map +1 -1
- package/dist/types/config.d.ts +2 -2
- package/dist/types/events.d.ts +32 -32
- package/dist/types/extractions.d.ts +12 -12
- package/dist/types/tasks.d.ts +34 -8
- package/dist/types/tasks.d.ts.map +1 -1
- package/dist/types/tasks.js +12 -3
- package/dist/types/tasks.js.map +1 -1
- package/dist/types/teams.d.ts +10 -10
- package/dist/types/threads.d.ts +18 -18
- package/dist/types/threads.d.ts.map +1 -1
- package/dist/types/threads.js +3 -3
- package/dist/types/threads.js.map +1 -1
- package/dist/v1/resources/agents.d.ts +8 -2
- package/dist/v1/resources/agents.d.ts.map +1 -1
- package/dist/v1/resources/agents.js +7 -2
- package/dist/v1/resources/agents.js.map +1 -1
- package/dist/v1/resources/ai.d.ts +72 -1
- package/dist/v1/resources/ai.d.ts.map +1 -1
- package/dist/v1/resources/ai.js +44 -1
- package/dist/v1/resources/ai.js.map +1 -1
- package/dist/v1/resources/artifacts.d.ts +52 -0
- package/dist/v1/resources/artifacts.d.ts.map +1 -1
- package/dist/v1/resources/artifacts.js +35 -1
- package/dist/v1/resources/artifacts.js.map +1 -1
- package/dist/v1/resources/files.d.ts +7 -0
- package/dist/v1/resources/files.d.ts.map +1 -1
- package/dist/v1/resources/files.js +8 -1
- package/dist/v1/resources/files.js.map +1 -1
- package/dist/v1/resources/knowledge_sources.d.ts +41 -0
- package/dist/v1/resources/knowledge_sources.d.ts.map +1 -1
- package/dist/v1/resources/knowledge_sources.js +31 -1
- package/dist/v1/resources/knowledge_sources.js.map +1 -1
- package/dist/v1/resources/orgs.d.ts +506 -0
- package/dist/v1/resources/orgs.d.ts.map +1 -1
- package/dist/v1/resources/orgs.js +71 -1
- package/dist/v1/resources/orgs.js.map +1 -1
- package/dist/v1/resources/sandboxes.d.ts +3 -2
- package/dist/v1/resources/sandboxes.d.ts.map +1 -1
- package/dist/v1/resources/sandboxes.js +4 -3
- package/dist/v1/resources/sandboxes.js.map +1 -1
- package/dist/v1/resources/scripts.d.ts +6 -2
- package/dist/v1/resources/scripts.d.ts.map +1 -1
- package/dist/v1/resources/scripts.js +5 -3
- package/dist/v1/resources/scripts.js.map +1 -1
- package/dist/v1/resources/tasks.d.ts +58 -3
- package/dist/v1/resources/tasks.d.ts.map +1 -1
- package/dist/v1/resources/tasks.js +61 -2
- package/dist/v1/resources/tasks.js.map +1 -1
- package/dist/v1/resources/teams.d.ts +46 -14
- package/dist/v1/resources/teams.d.ts.map +1 -1
- package/dist/v1/resources/teams.js +54 -16
- package/dist/v1/resources/teams.js.map +1 -1
- package/dist/v1/resources/threads.d.ts +16 -6
- package/dist/v1/resources/threads.d.ts.map +1 -1
- package/dist/v1/resources/threads.js +19 -8
- package/dist/v1/resources/threads.js.map +1 -1
- package/dist/v1/resources/users.d.ts +13 -3
- package/dist/v1/resources/users.d.ts.map +1 -1
- package/dist/v1/resources/users.js +13 -3
- package/dist/v1/resources/users.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HttpClient } from "../../runtime/http-client.js";
|
|
2
|
-
import type { AIChatStreamDone, AIChatStreamError, AIChatStreamMessageComplete, AIChatStreamMessageDelta, AIChatStreamThinkingDelta, AIChatStreamToolCallDelta, AIChatStreamToolResult, AICompletionResult, AIImageResult } from "../../types/ai.js";
|
|
2
|
+
import type { AIChatStreamDone, AIChatStreamError, AIChatStreamMessageComplete, AIChatStreamMessageDelta, AIChatStreamThinkingDelta, AIChatStreamToolCallDelta, AIChatStreamToolResult, AICompletionResult, AIEvaluationResult, AIImageResult } from "../../types/ai.js";
|
|
3
3
|
export declare class StreamResource {
|
|
4
4
|
private http;
|
|
5
5
|
constructor(http: HttpClient);
|
|
@@ -188,6 +188,72 @@ export declare class EmbeddingResource {
|
|
|
188
188
|
similarity_score: number;
|
|
189
189
|
}>;
|
|
190
190
|
}
|
|
191
|
+
export declare class EvaluationResource {
|
|
192
|
+
private http;
|
|
193
|
+
constructor(http: HttpClient);
|
|
194
|
+
/**
|
|
195
|
+
* Create an evaluation
|
|
196
|
+
* Sends a shared `state` and a list of typed questions to an evaluation
|
|
197
|
+
* model and returns typed answers. This is not chat completion and not
|
|
198
|
+
* JSON-schema structured output: there is no generated text.
|
|
199
|
+
* Each question is a `boolean`, `choice`, or `score` object with its own
|
|
200
|
+
* `id`. Answers come back as the same three typed objects, each carrying
|
|
201
|
+
* that `id`.
|
|
202
|
+
* The authenticated app must have the `llm_calls` entitlement enabled on its
|
|
203
|
+
* plan. Requests that exceed the plan quota are rejected with `402`. Token
|
|
204
|
+
* usage is recorded against the authenticated app and organization.
|
|
205
|
+
* @param input - Request body.
|
|
206
|
+
* @param input.model - Evaluation model identifier. Omit to use the platform default.
|
|
207
|
+
* @param input.questions - Nonempty list of boolean, choice, or score questions. Each question must include `id`, `type`, and `instructions`.
|
|
208
|
+
* @param input.session_id - Optional UUID grouping this evaluation under one session in the Developers dashboard. Generated when omitted.
|
|
209
|
+
* @param input.state - Shared content the model judges. A string, JSON object, or JSON array. Every question in the request sees this same state.
|
|
210
|
+
* @returns Typed answers as a list of boolean, choice, or score objects, plus model and usage.
|
|
211
|
+
*/
|
|
212
|
+
evaluations(input: {
|
|
213
|
+
model?: string | undefined;
|
|
214
|
+
questions: ({
|
|
215
|
+
criteria?: {
|
|
216
|
+
false_description?: string | undefined;
|
|
217
|
+
true_description?: string | undefined;
|
|
218
|
+
} | undefined;
|
|
219
|
+
id: string;
|
|
220
|
+
instructions: string;
|
|
221
|
+
type: "boolean";
|
|
222
|
+
} | {
|
|
223
|
+
criteria: Record<string, unknown>;
|
|
224
|
+
id: string;
|
|
225
|
+
instructions: string;
|
|
226
|
+
type: "choice";
|
|
227
|
+
} | {
|
|
228
|
+
criteria: string[];
|
|
229
|
+
id: string;
|
|
230
|
+
instructions: string;
|
|
231
|
+
type: "score";
|
|
232
|
+
})[];
|
|
233
|
+
session_id?: string | undefined;
|
|
234
|
+
state: unknown;
|
|
235
|
+
}): Promise<AIEvaluationResult>;
|
|
236
|
+
/**
|
|
237
|
+
* List available evaluation models
|
|
238
|
+
* Returns the set of evaluation models that can be used with the evaluations
|
|
239
|
+
* endpoint. The list reflects models currently enabled for the platform and
|
|
240
|
+
* includes each model's identifier and whether it is the default.
|
|
241
|
+
* Use the `id` field from any entry in `data` as the `model` value when
|
|
242
|
+
* calling the evaluations endpoint.
|
|
243
|
+
* @returns Successful response
|
|
244
|
+
*/
|
|
245
|
+
models(): Promise<{
|
|
246
|
+
data: {
|
|
247
|
+
capabilities: ("image" | "search" | "thinking")[];
|
|
248
|
+
context_window?: number | null | undefined;
|
|
249
|
+
default: boolean;
|
|
250
|
+
id: string;
|
|
251
|
+
input_media_formats: string[];
|
|
252
|
+
name: string;
|
|
253
|
+
output_media_formats: string[];
|
|
254
|
+
}[];
|
|
255
|
+
}>;
|
|
256
|
+
}
|
|
191
257
|
export declare class ImageResource {
|
|
192
258
|
private http;
|
|
193
259
|
constructor(http: HttpClient);
|
|
@@ -212,6 +278,7 @@ export declare class ImageResource {
|
|
|
212
278
|
* @param input.output_format - Desired MIME type or format for the returned image. Common values: `"png"`, `"jpeg"`, `"webp"`. Defaults to the model's native format.
|
|
213
279
|
* @param input.prompt - Natural-language description of the edit to apply to the source image(s).
|
|
214
280
|
* @param input.quality - Quality preset for the output image. Accepted values and behavior are model-dependent.
|
|
281
|
+
* @param input.session_id - Optional session UUID for grouping provider attempts in usage records. Generated when omitted.
|
|
215
282
|
* @param input.size - Output dimensions as a WxH string, e.g. `"1024x1024"`. Applies to OpenAI-compatible models. Omit to use the model's default.
|
|
216
283
|
* @param input.style - Style preset applied to the edit. Accepted values and behavior are model-dependent.
|
|
217
284
|
* @param input.width - Explicit output width in pixels. Takes precedence over `size` when both are provided. Not supported by all models.
|
|
@@ -230,6 +297,7 @@ export declare class ImageResource {
|
|
|
230
297
|
output_format?: string | undefined;
|
|
231
298
|
prompt: string;
|
|
232
299
|
quality?: string | undefined;
|
|
300
|
+
session_id?: string | undefined;
|
|
233
301
|
size?: string | undefined;
|
|
234
302
|
style?: string | undefined;
|
|
235
303
|
width?: number | undefined;
|
|
@@ -255,6 +323,7 @@ export declare class ImageResource {
|
|
|
255
323
|
* @param input.output_format - Desired MIME type or format for the returned image. Common values: `"png"`, `"jpeg"`, `"webp"`. Defaults to the model's native format.
|
|
256
324
|
* @param input.prompt - Natural-language description of the image to generate.
|
|
257
325
|
* @param input.quality - Quality preset for the output image. Accepted values and behavior are model-dependent.
|
|
326
|
+
* @param input.session_id - Optional session UUID for grouping provider attempts in usage records. Generated when omitted.
|
|
258
327
|
* @param input.size - Output dimensions as a WxH string, e.g. `"1024x1024"`. Applies to OpenAI-compatible models. Omit to use the model's default.
|
|
259
328
|
* @param input.style - Style preset applied to the generated image. Accepted values and behavior are model-dependent.
|
|
260
329
|
* @param input.width - Explicit output width in pixels. Takes precedence over `size` when both are provided. Not supported by all models.
|
|
@@ -270,6 +339,7 @@ export declare class ImageResource {
|
|
|
270
339
|
output_format?: string | undefined;
|
|
271
340
|
prompt: string;
|
|
272
341
|
quality?: string | undefined;
|
|
342
|
+
session_id?: string | undefined;
|
|
273
343
|
size?: string | undefined;
|
|
274
344
|
style?: string | undefined;
|
|
275
345
|
width?: number | undefined;
|
|
@@ -300,6 +370,7 @@ export declare class AiResource {
|
|
|
300
370
|
private http;
|
|
301
371
|
readonly chat: ChatResource;
|
|
302
372
|
readonly embedding: EmbeddingResource;
|
|
373
|
+
readonly evaluation: EvaluationResource;
|
|
303
374
|
readonly image: ImageResource;
|
|
304
375
|
constructor(http: HttpClient);
|
|
305
376
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ai.d.ts","sourceRoot":"","sources":["../../../src/v1/resources/ai.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,KAAK,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,2BAA2B,EAAE,wBAAwB,EAAE,yBAAyB,EAAE,yBAAyB,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"ai.d.ts","sourceRoot":"","sources":["../../../src/v1/resources/ai.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,KAAK,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,2BAA2B,EAAE,wBAAwB,EAAE,yBAAyB,EAAE,yBAAyB,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAEzQ,qBAAa,cAAc;IACb,OAAO,CAAC,IAAI;gBAAJ,IAAI,EAAE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AS,CAAA;KAAE,GAAG,OAAO,CAAC,aAAa,CAAC;IAIhb;;;;;;;;;OASG;IACG,MAAM,IAAI,OAAO,CAAC;QAAE,IAAI,EAAE;YAAE,YAAY,EAAE,CAAC,OAAO,GAAG,QAAQ,GAAG,UAAU,CAAC,EAAE,CAAC;YAAC,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;YAAC,OAAO,EAAE,OAAO,CAAC;YAAC,EAAE,EAAE,MAAM,CAAC;YAAC,mBAAmB,EAAE,MAAM,EAAE,CAAC;YAAC,IAAI,EAAE,MAAM,CAAC;YAAC,oBAAoB,EAAE,MAAM,EAAE,CAAA;SAAE,EAAE,CAAA;KAAE,CAAC;CAGlP;AAED,qBAAa,UAAU;IAMT,OAAO,CAAC,IAAI;IALxB,QAAQ,CAAC,IAAI,EAAE,YAAY,CAAC;IAC5B,QAAQ,CAAC,SAAS,EAAE,iBAAiB,CAAC;IACtC,QAAQ,CAAC,UAAU,EAAE,kBAAkB,CAAC;IACxC,QAAQ,CAAC,KAAK,EAAE,aAAa,CAAC;gBAEV,IAAI,EAAE,UAAU;CAMrC"}
|
package/dist/v1/resources/ai.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Copyright (c) 2026 ArchAstro Inc. Licensed under the MIT License.
|
|
2
2
|
// This file is auto-generated by @archastro/sdk-generator. Do not edit.
|
|
3
|
-
// Content hash:
|
|
3
|
+
// Content hash: 534fcdbdaf6c
|
|
4
4
|
export class StreamResource {
|
|
5
5
|
http;
|
|
6
6
|
constructor(http) {
|
|
@@ -95,6 +95,45 @@ export class EmbeddingResource {
|
|
|
95
95
|
return this.http.request(`/api/v1/ai/embedding/similarity_comparison`, { method: "POST", body: input });
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
|
+
export class EvaluationResource {
|
|
99
|
+
http;
|
|
100
|
+
constructor(http) {
|
|
101
|
+
this.http = http;
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* Create an evaluation
|
|
105
|
+
* Sends a shared `state` and a list of typed questions to an evaluation
|
|
106
|
+
* model and returns typed answers. This is not chat completion and not
|
|
107
|
+
* JSON-schema structured output: there is no generated text.
|
|
108
|
+
* Each question is a `boolean`, `choice`, or `score` object with its own
|
|
109
|
+
* `id`. Answers come back as the same three typed objects, each carrying
|
|
110
|
+
* that `id`.
|
|
111
|
+
* The authenticated app must have the `llm_calls` entitlement enabled on its
|
|
112
|
+
* plan. Requests that exceed the plan quota are rejected with `402`. Token
|
|
113
|
+
* usage is recorded against the authenticated app and organization.
|
|
114
|
+
* @param input - Request body.
|
|
115
|
+
* @param input.model - Evaluation model identifier. Omit to use the platform default.
|
|
116
|
+
* @param input.questions - Nonempty list of boolean, choice, or score questions. Each question must include `id`, `type`, and `instructions`.
|
|
117
|
+
* @param input.session_id - Optional UUID grouping this evaluation under one session in the Developers dashboard. Generated when omitted.
|
|
118
|
+
* @param input.state - Shared content the model judges. A string, JSON object, or JSON array. Every question in the request sees this same state.
|
|
119
|
+
* @returns Typed answers as a list of boolean, choice, or score objects, plus model and usage.
|
|
120
|
+
*/
|
|
121
|
+
async evaluations(input) {
|
|
122
|
+
return this.http.request(`/api/v1/ai/evaluation/evaluations`, { method: "POST", body: input });
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* List available evaluation models
|
|
126
|
+
* Returns the set of evaluation models that can be used with the evaluations
|
|
127
|
+
* endpoint. The list reflects models currently enabled for the platform and
|
|
128
|
+
* includes each model's identifier and whether it is the default.
|
|
129
|
+
* Use the `id` field from any entry in `data` as the `model` value when
|
|
130
|
+
* calling the evaluations endpoint.
|
|
131
|
+
* @returns Successful response
|
|
132
|
+
*/
|
|
133
|
+
async models() {
|
|
134
|
+
return this.http.request(`/api/v1/ai/evaluation/models`);
|
|
135
|
+
}
|
|
136
|
+
}
|
|
98
137
|
export class ImageResource {
|
|
99
138
|
http;
|
|
100
139
|
constructor(http) {
|
|
@@ -121,6 +160,7 @@ export class ImageResource {
|
|
|
121
160
|
* @param input.output_format - Desired MIME type or format for the returned image. Common values: `"png"`, `"jpeg"`, `"webp"`. Defaults to the model's native format.
|
|
122
161
|
* @param input.prompt - Natural-language description of the edit to apply to the source image(s).
|
|
123
162
|
* @param input.quality - Quality preset for the output image. Accepted values and behavior are model-dependent.
|
|
163
|
+
* @param input.session_id - Optional session UUID for grouping provider attempts in usage records. Generated when omitted.
|
|
124
164
|
* @param input.size - Output dimensions as a WxH string, e.g. `"1024x1024"`. Applies to OpenAI-compatible models. Omit to use the model's default.
|
|
125
165
|
* @param input.style - Style preset applied to the edit. Accepted values and behavior are model-dependent.
|
|
126
166
|
* @param input.width - Explicit output width in pixels. Takes precedence over `size` when both are provided. Not supported by all models.
|
|
@@ -150,6 +190,7 @@ export class ImageResource {
|
|
|
150
190
|
* @param input.output_format - Desired MIME type or format for the returned image. Common values: `"png"`, `"jpeg"`, `"webp"`. Defaults to the model's native format.
|
|
151
191
|
* @param input.prompt - Natural-language description of the image to generate.
|
|
152
192
|
* @param input.quality - Quality preset for the output image. Accepted values and behavior are model-dependent.
|
|
193
|
+
* @param input.session_id - Optional session UUID for grouping provider attempts in usage records. Generated when omitted.
|
|
153
194
|
* @param input.size - Output dimensions as a WxH string, e.g. `"1024x1024"`. Applies to OpenAI-compatible models. Omit to use the model's default.
|
|
154
195
|
* @param input.style - Style preset applied to the generated image. Accepted values and behavior are model-dependent.
|
|
155
196
|
* @param input.width - Explicit output width in pixels. Takes precedence over `size` when both are provided. Not supported by all models.
|
|
@@ -176,11 +217,13 @@ export class AiResource {
|
|
|
176
217
|
http;
|
|
177
218
|
chat;
|
|
178
219
|
embedding;
|
|
220
|
+
evaluation;
|
|
179
221
|
image;
|
|
180
222
|
constructor(http) {
|
|
181
223
|
this.http = http;
|
|
182
224
|
this.chat = new ChatResource(http);
|
|
183
225
|
this.embedding = new EmbeddingResource(http);
|
|
226
|
+
this.evaluation = new EvaluationResource(http);
|
|
184
227
|
this.image = new ImageResource(http);
|
|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,CAAC,IAAI,CAAC,OAAO,CAAC,wBAAwB,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC;IACtF,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;OA0BG;IACH,KAAK,CAAC,WAAW,CAAC,KAAqY;QACrZ,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,8BAA8B,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC;IAC5F,CAAC;IAED;;;;;;;;;OASG;IACH,KAAK,CAAC,MAAM;QACV,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,yBAAyB,CAAC,CAAC;IACtD,CAAC;CACF;AAED,MAAM,OAAO,UAAU;IAMD;IALX,IAAI,CAAe;IACnB,SAAS,CAAoB;IAC7B,UAAU,CAAqB;IAC/B,KAAK,CAAgB;IAE9B,YAAoB,IAAgB;QAAhB,SAAI,GAAJ,IAAI,CAAY;QAClC,IAAI,CAAC,IAAI,GAAG,IAAI,YAAY,CAAC,IAAI,CAAC,CAAC;QACnC,IAAI,CAAC,SAAS,GAAG,IAAI,iBAAiB,CAAC,IAAI,CAAC,CAAC;QAC7C,IAAI,CAAC,UAAU,GAAG,IAAI,kBAAkB,CAAC,IAAI,CAAC,CAAC;QAC/C,IAAI,CAAC,KAAK,GAAG,IAAI,aAAa,CAAC,IAAI,CAAC,CAAC;IACvC,CAAC;CACF"}
|
|
@@ -3,6 +3,56 @@ import type { Artifact } from "../../types/artifacts.js";
|
|
|
3
3
|
export declare class ArtifactResource {
|
|
4
4
|
private http;
|
|
5
5
|
constructor(http: HttpClient);
|
|
6
|
+
/**
|
|
7
|
+
* Create an artifact
|
|
8
|
+
* Creates a new artifact and stores its file content. A file payload is required;
|
|
9
|
+
* supply it via the `file.data` (Base64-encoded by default), `file.filename`, and
|
|
10
|
+
* `file.mime_type` fields. The artifact is scoped to the owner resolved from the
|
|
11
|
+
* request body — either a team, a user, or an explicit system owner. When no
|
|
12
|
+
* owner is supplied and the viewer is an authenticated user, the artifact
|
|
13
|
+
* defaults to that user.
|
|
14
|
+
* For company-readable snapshots, pass `system: true` and `org`. Organization
|
|
15
|
+
* members can read these artifacts; organization admins and system viewers can
|
|
16
|
+
* create them. Scripts may supply text directly using `file.encoding: "utf8"`.
|
|
17
|
+
* Optionally associate the artifact with an existing thread or agent by passing
|
|
18
|
+
* `thread` or `agent`. Legacy requests that wrap fields in an `artifact` object
|
|
19
|
+
* are still accepted.
|
|
20
|
+
* @param input - Request body.
|
|
21
|
+
* @param input.agent - Agent ID (`agt_...`) to associate with the artifact.
|
|
22
|
+
* @param input.artifact - Legacy wrapper object containing artifact attributes. Prefer top-level fields.
|
|
23
|
+
* @param input.description - Optional longer artifact description.
|
|
24
|
+
* @param input.file - File payload for the initial artifact version.
|
|
25
|
+
* @param input.group_key - Optional nonunique, case-sensitive grouping key, limited to 1024 UTF-8 bytes. Artifact ID remains identity.
|
|
26
|
+
* @param input.idempotency_key - Optional PR-evidence retry key, limited to 255 characters. Requires both team and thread. Matching app, team, thread, name, and key values return the original artifact.
|
|
27
|
+
* @param input.name - Human-readable artifact name.
|
|
28
|
+
* @param input.org - Organization owning a system artifact. Requires an organization admin or system viewer.
|
|
29
|
+
* @param input.permissions - Optional artifact permissions map.
|
|
30
|
+
* @param input.system - When true, create a system-owned artifact. Mutually exclusive with `team` and `user`.
|
|
31
|
+
* @param input.team - Team ID (`tem_...`) that should own the artifact. Mutually exclusive with `user`.
|
|
32
|
+
* @param input.thread - Thread ID (`thr_...`) to associate with the artifact.
|
|
33
|
+
* @param input.user - User ID (`usr_...`) that should own the artifact. Defaults to the authenticated user when omitted and no team is supplied.
|
|
34
|
+
* @returns The newly created artifact.
|
|
35
|
+
*/
|
|
36
|
+
create(input: {
|
|
37
|
+
agent?: string | undefined;
|
|
38
|
+
artifact?: Record<string, unknown> | undefined;
|
|
39
|
+
description?: string | undefined;
|
|
40
|
+
file?: {
|
|
41
|
+
data: string;
|
|
42
|
+
encoding?: "base64" | "utf8" | undefined;
|
|
43
|
+
filename?: string | undefined;
|
|
44
|
+
mime_type?: string | undefined;
|
|
45
|
+
} | undefined;
|
|
46
|
+
group_key?: string | null | undefined;
|
|
47
|
+
idempotency_key?: string | undefined;
|
|
48
|
+
name?: string | undefined;
|
|
49
|
+
org?: string | undefined;
|
|
50
|
+
permissions?: Record<string, unknown> | undefined;
|
|
51
|
+
system?: boolean | undefined;
|
|
52
|
+
team?: string | undefined;
|
|
53
|
+
thread?: string | undefined;
|
|
54
|
+
user?: string | undefined;
|
|
55
|
+
}): Promise<Artifact>;
|
|
6
56
|
/**
|
|
7
57
|
* Delete an artifact
|
|
8
58
|
* Permanently deletes the artifact and all associated file versions. This
|
|
@@ -46,6 +96,7 @@ export declare class ArtifactResource {
|
|
|
46
96
|
* @param input.file_content_type - Legacy flat MIME type. Prefer `file.mime_type`.
|
|
47
97
|
* @param input.file_name - Legacy flat filename. Prefer `file.filename`.
|
|
48
98
|
* @param input.from_version - The artifact's current version number, used for optimistic concurrency control. Returns 409 if this value does not match the server's current version.
|
|
99
|
+
* @param input.group_key - Nonunique grouping key, limited to 1024 UTF-8 bytes. Omit to preserve; null clears. Grouping-only updates do not increment the content version and from_version does not protect against concurrent metadata updates.
|
|
49
100
|
* @param input.name - New display name for the artifact. Omit to leave the existing name unchanged.
|
|
50
101
|
* @returns The artifact after applying the update, reflecting the new version number and any changed metadata or file.
|
|
51
102
|
*/
|
|
@@ -60,6 +111,7 @@ export declare class ArtifactResource {
|
|
|
60
111
|
file_content_type?: string | undefined;
|
|
61
112
|
file_name?: string | undefined;
|
|
62
113
|
from_version: number;
|
|
114
|
+
group_key?: string | null | undefined;
|
|
63
115
|
name?: string | undefined;
|
|
64
116
|
}): Promise<Artifact>;
|
|
65
117
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"artifacts.d.ts","sourceRoot":"","sources":["../../../src/v1/resources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AAG,OAAO,CAAC,QAAQ,CAAC;IAItY;;;;;;;;;;OAUG;IACG,OAAO,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAI9C;;;;;;;;;;;;OAYG;IACG,OAAO,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC;QAAE,OAAO,EAAE,WAAW,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,CAAC;CAQpH"}
|
|
@@ -1,11 +1,44 @@
|
|
|
1
1
|
// Copyright (c) 2026 ArchAstro Inc. Licensed under the MIT License.
|
|
2
2
|
// This file is auto-generated by @archastro/sdk-generator. Do not edit.
|
|
3
|
-
// Content hash:
|
|
3
|
+
// Content hash: 9ed3f2daae14
|
|
4
4
|
export class ArtifactResource {
|
|
5
5
|
http;
|
|
6
6
|
constructor(http) {
|
|
7
7
|
this.http = http;
|
|
8
8
|
}
|
|
9
|
+
/**
|
|
10
|
+
* Create an artifact
|
|
11
|
+
* Creates a new artifact and stores its file content. A file payload is required;
|
|
12
|
+
* supply it via the `file.data` (Base64-encoded by default), `file.filename`, and
|
|
13
|
+
* `file.mime_type` fields. The artifact is scoped to the owner resolved from the
|
|
14
|
+
* request body — either a team, a user, or an explicit system owner. When no
|
|
15
|
+
* owner is supplied and the viewer is an authenticated user, the artifact
|
|
16
|
+
* defaults to that user.
|
|
17
|
+
* For company-readable snapshots, pass `system: true` and `org`. Organization
|
|
18
|
+
* members can read these artifacts; organization admins and system viewers can
|
|
19
|
+
* create them. Scripts may supply text directly using `file.encoding: "utf8"`.
|
|
20
|
+
* Optionally associate the artifact with an existing thread or agent by passing
|
|
21
|
+
* `thread` or `agent`. Legacy requests that wrap fields in an `artifact` object
|
|
22
|
+
* are still accepted.
|
|
23
|
+
* @param input - Request body.
|
|
24
|
+
* @param input.agent - Agent ID (`agt_...`) to associate with the artifact.
|
|
25
|
+
* @param input.artifact - Legacy wrapper object containing artifact attributes. Prefer top-level fields.
|
|
26
|
+
* @param input.description - Optional longer artifact description.
|
|
27
|
+
* @param input.file - File payload for the initial artifact version.
|
|
28
|
+
* @param input.group_key - Optional nonunique, case-sensitive grouping key, limited to 1024 UTF-8 bytes. Artifact ID remains identity.
|
|
29
|
+
* @param input.idempotency_key - Optional PR-evidence retry key, limited to 255 characters. Requires both team and thread. Matching app, team, thread, name, and key values return the original artifact.
|
|
30
|
+
* @param input.name - Human-readable artifact name.
|
|
31
|
+
* @param input.org - Organization owning a system artifact. Requires an organization admin or system viewer.
|
|
32
|
+
* @param input.permissions - Optional artifact permissions map.
|
|
33
|
+
* @param input.system - When true, create a system-owned artifact. Mutually exclusive with `team` and `user`.
|
|
34
|
+
* @param input.team - Team ID (`tem_...`) that should own the artifact. Mutually exclusive with `user`.
|
|
35
|
+
* @param input.thread - Thread ID (`thr_...`) to associate with the artifact.
|
|
36
|
+
* @param input.user - User ID (`usr_...`) that should own the artifact. Defaults to the authenticated user when omitted and no team is supplied.
|
|
37
|
+
* @returns The newly created artifact.
|
|
38
|
+
*/
|
|
39
|
+
async create(input) {
|
|
40
|
+
return this.http.request(`/api/v1/artifacts`, { method: "POST", body: input });
|
|
41
|
+
}
|
|
9
42
|
/**
|
|
10
43
|
* Delete an artifact
|
|
11
44
|
* Permanently deletes the artifact and all associated file versions. This
|
|
@@ -53,6 +86,7 @@ export class ArtifactResource {
|
|
|
53
86
|
* @param input.file_content_type - Legacy flat MIME type. Prefer `file.mime_type`.
|
|
54
87
|
* @param input.file_name - Legacy flat filename. Prefer `file.filename`.
|
|
55
88
|
* @param input.from_version - The artifact's current version number, used for optimistic concurrency control. Returns 409 if this value does not match the server's current version.
|
|
89
|
+
* @param input.group_key - Nonunique grouping key, limited to 1024 UTF-8 bytes. Omit to preserve; null clears. Grouping-only updates do not increment the content version and from_version does not protect against concurrent metadata updates.
|
|
56
90
|
* @param input.name - New display name for the artifact. Omit to leave the existing name unchanged.
|
|
57
91
|
* @returns The artifact after applying the update, reflecting the new version number and any changed metadata or file.
|
|
58
92
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"artifacts.js","sourceRoot":"","sources":["../../../src/v1/resources/artifacts.ts"],"names":[],"mappings":"AAAA,oEAAoE;AACpE,wEAAwE;AACxE,6BAA6B;AAK7B,MAAM,OAAO,gBAAgB;IACP;IAApB,YAAoB,IAAgB;QAAhB,SAAI,GAAJ,IAAI,CAAY;IAAG,CAAC;IAExC;;;;;;;;;;OAUG;IACH,KAAK,CAAC,MAAM,CAAC,QAAgB;QAC3B,MAAM,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,qBAAqB,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,CAAC;IACjF,CAAC;IAED;;;;;;;;;;;OAWG;IACH,KAAK,CAAC,GAAG,CAAC,QAAgB;QACxB,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,qBAAqB,QAAQ,EAAE,CAAC,CAAC;IAC5D,CAAC;IAED
|
|
1
|
+
{"version":3,"file":"artifacts.js","sourceRoot":"","sources":["../../../src/v1/resources/artifacts.ts"],"names":[],"mappings":"AAAA,oEAAoE;AACpE,wEAAwE;AACxE,6BAA6B;AAK7B,MAAM,OAAO,gBAAgB;IACP;IAApB,YAAoB,IAAgB;QAAhB,SAAI,GAAJ,IAAI,CAAY;IAAG,CAAC;IAExC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA6BG;IACH,KAAK,CAAC,MAAM,CAAC,KAA2iB;QACtjB,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,mBAAmB,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC;IACjF,CAAC;IAED;;;;;;;;;;OAUG;IACH,KAAK,CAAC,MAAM,CAAC,QAAgB;QAC3B,MAAM,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,qBAAqB,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,CAAC;IACjF,CAAC;IAED;;;;;;;;;;;OAWG;IACH,KAAK,CAAC,GAAG,CAAC,QAAgB;QACxB,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,qBAAqB,QAAQ,EAAE,CAAC,CAAC;IAC5D,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,KAAK,CAAC,OAAO,CAAC,QAAgB,EAAE,KAAkV;QAChX,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,qBAAqB,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC;IAC5F,CAAC;IAED;;;;;;;;;;OAUG;IACH,KAAK,CAAC,OAAO,CAAC,QAAgB;QAC5B,MAAM,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,qBAAqB,QAAQ,UAAU,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;IACvF,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,KAAK,CAAC,OAAO,CAAC,QAAgB,EAAE,MAA6B;QAC3D,MAAM,KAAK,GAA6F,EAAE,CAAC;QAC3G,IAAI,MAAM,EAAE,OAAO,KAAK,SAAS,EAAE,CAAC;YAClC,KAAK,CAAC,SAAS,CAAC,GAAG,MAAM,EAAE,OAAO,CAAC;QACrC,CAAC;QAED,OAAO,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,qBAAqB,QAAQ,UAAU,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC;IAClF,CAAC;CACF"}
|
|
@@ -8,6 +8,13 @@ export declare class FileResource {
|
|
|
8
8
|
* Creates a new file from base64-encoded content and returns the resulting file object,
|
|
9
9
|
* including a signed download URL. Use this endpoint to store images, documents, or
|
|
10
10
|
* other binary assets that can then be referenced by agents, teams, or users.
|
|
11
|
+
* The JSON body uses Platform's default 8,000,000-byte parser budget; the
|
|
12
|
+
* ArchDev Platform proxy has a separate 32 MiB request cap. Base64 requires
|
|
13
|
+
* `4 * ceil(binary_bytes / 3)` bytes, plus the UTF-8 JSON envelope (including
|
|
14
|
+
* filename, owner IDs, escaping and other fields). For an envelope of E bytes,
|
|
15
|
+
* budget at most `3 * floor((8,000,000 - E) / 4)` binary bytes: less than
|
|
16
|
+
* 6,000,000 bytes (about 5.72 MiB). Do not rely on parser chunk overshoot.
|
|
17
|
+
* Oversized JSON requests are rejected with HTTP 413 before upload processing.
|
|
11
18
|
* App scope is derived from the authenticated viewer's bearer token or publishable key.
|
|
12
19
|
* You may optionally associate the file with an organization, team, user, or agent by
|
|
13
20
|
* passing the corresponding ID. If no owner is specified and the viewer is a user, the
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"files.d.ts","sourceRoot":"","sources":["../../../src/v1/resources/files.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEzD,qBAAa,YAAY;IACX,OAAO,CAAC,IAAI;gBAAJ,IAAI,EAAE,UAAU;IAEpC
|
|
1
|
+
{"version":3,"file":"files.d.ts","sourceRoot":"","sources":["../../../src/v1/resources/files.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEzD,qBAAa,YAAY;IACX,OAAO,CAAC,IAAI;gBAAJ,IAAI,EAAE,UAAU;IAEpC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAsCG;IACG,MAAM,CAAC,KAAK,EAAE;QAAE,GAAG,CAAC,EAAE;YAAE,GAAG,CAAC,EAAE;gBAAE,OAAO,EAAE,MAAM,EAAE,CAAC;gBAAC,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC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AAE,WAAW,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,CAAC;IAO5G;;;;;;;;;;;;;;;;;;;OAmBG;IACG,OAAO,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE;QAAE,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC;QAAE,OAAO,EAAE,WAAW,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,CAAC;IAO7G;;;;;;;;;;;;;;;;;;;;;OAqBG;IACG,KAAK,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE;QAAE,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC;QAAE,OAAO,EAAE,WAAW,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,CAAC;CAM5G"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Copyright (c) 2026 ArchAstro Inc. Licensed under the MIT License.
|
|
2
2
|
// This file is auto-generated by @archastro/sdk-generator. Do not edit.
|
|
3
|
-
// Content hash:
|
|
3
|
+
// Content hash: e7ffe7568735
|
|
4
4
|
export class FileResource {
|
|
5
5
|
http;
|
|
6
6
|
constructor(http) {
|
|
@@ -11,6 +11,13 @@ export class FileResource {
|
|
|
11
11
|
* Creates a new file from base64-encoded content and returns the resulting file object,
|
|
12
12
|
* including a signed download URL. Use this endpoint to store images, documents, or
|
|
13
13
|
* other binary assets that can then be referenced by agents, teams, or users.
|
|
14
|
+
* The JSON body uses Platform's default 8,000,000-byte parser budget; the
|
|
15
|
+
* ArchDev Platform proxy has a separate 32 MiB request cap. Base64 requires
|
|
16
|
+
* `4 * ceil(binary_bytes / 3)` bytes, plus the UTF-8 JSON envelope (including
|
|
17
|
+
* filename, owner IDs, escaping and other fields). For an envelope of E bytes,
|
|
18
|
+
* budget at most `3 * floor((8,000,000 - E) / 4)` binary bytes: less than
|
|
19
|
+
* 6,000,000 bytes (about 5.72 MiB). Do not rely on parser chunk overshoot.
|
|
20
|
+
* Oversized JSON requests are rejected with HTTP 413 before upload processing.
|
|
14
21
|
* App scope is derived from the authenticated viewer's bearer token or publishable key.
|
|
15
22
|
* You may optionally associate the file with an organization, team, user, or agent by
|
|
16
23
|
* passing the corresponding ID. If no owner is specified and the viewer is a user, the
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"files.js","sourceRoot":"","sources":["../../../src/v1/resources/files.ts"],"names":[],"mappings":"AAAA,oEAAoE;AACpE,wEAAwE;AACxE,6BAA6B;AAK7B,MAAM,OAAO,YAAY;IACH;IAApB,YAAoB,IAAgB;QAAhB,SAAI,GAAJ,IAAI,CAAY;IAAG,CAAC;IAExC
|
|
1
|
+
{"version":3,"file":"files.js","sourceRoot":"","sources":["../../../src/v1/resources/files.ts"],"names":[],"mappings":"AAAA,oEAAoE;AACpE,wEAAwE;AACxE,6BAA6B;AAK7B,MAAM,OAAO,YAAY;IACH;IAApB,YAAoB,IAAgB;QAAhB,SAAI,GAAJ,IAAI,CAAY;IAAG,CAAC;IAExC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAsCG;IACH,KAAK,CAAC,MAAM,CAAC,KAA0f;QACrgB,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,eAAe,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC;IAC7E,CAAC;IAED;;;;;;;;;;;;;;;;;;OAkBG;IACH,KAAK,CAAC,MAAM,CAAC,IAAY,EAAE,KAA8H;QACvJ,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,iBAAiB,IAAI,EAAE,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC;IACtF,CAAC;IAED;;;;;;;;;;;;;;;;;;OAkBG;IACH,KAAK,CAAC,MAAM,CAAC,IAAY,EAAE,MAA2B;QACpD,MAAM,KAAK,GAA6F,EAAE,CAAC;QAC3G,KAAK,CAAC,OAAO,CAAC,GAAG,MAAM,EAAE,KAAK,CAAC;QAE/B,OAAO,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,iBAAiB,IAAI,SAAS,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC;IACzE,CAAC;IAED;;;;;;;;;;;;;;;;;;;OAmBG;IACH,KAAK,CAAC,OAAO,CAAC,IAAY,EAAE,MAA2B;QACrD,MAAM,KAAK,GAA6F,EAAE,CAAC;QAC3G,KAAK,CAAC,OAAO,CAAC,GAAG,MAAM,EAAE,KAAK,CAAC;QAE/B,OAAO,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,iBAAiB,IAAI,WAAW,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC;IAC3E,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,KAAK,CAAC,KAAK,CAAC,IAAY,EAAE,MAA2B;QACnD,MAAM,KAAK,GAA6F,EAAE,CAAC;QAC3G,KAAK,CAAC,OAAO,CAAC,GAAG,MAAM,EAAE,KAAK,CAAC;QAE/B,OAAO,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,iBAAiB,IAAI,QAAQ,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC;IACxE,CAAC;CACF"}
|
|
@@ -33,6 +33,8 @@ export declare class KnowledgeSourceResource {
|
|
|
33
33
|
* @param params.pageSize - Number of knowledge sources to return per page. Defaults to 25.
|
|
34
34
|
* @param params.search - Filter sources whose type contains this string. Case-insensitive substring match.
|
|
35
35
|
* @param params.type - Exact knowledge source type to filter by, e.g. `"knowledge/documents"`.
|
|
36
|
+
* @param params.team - Exact team IDs whose sources to include.
|
|
37
|
+
* @param params.thread - Exact backing thread IDs whose sources to include.
|
|
36
38
|
* @param params.installation - Installation ID (`ins_...`). Returns only sources associated with this installation.
|
|
37
39
|
* @param params.agent - Agent ID (`agt_...`). Returns only sources owned by or associated with this agent.
|
|
38
40
|
* @param params.org - Organization ID (`org_...`). Returns only sources belonging to this organization. Combine with `owner_scope: "system"` to retrieve org-level system sources.
|
|
@@ -44,6 +46,8 @@ export declare class KnowledgeSourceResource {
|
|
|
44
46
|
pageSize?: number;
|
|
45
47
|
search?: string;
|
|
46
48
|
type?: string;
|
|
49
|
+
team?: string[];
|
|
50
|
+
thread?: string[];
|
|
47
51
|
installation?: string;
|
|
48
52
|
agent?: string;
|
|
49
53
|
org?: string;
|
|
@@ -188,5 +192,42 @@ export declare class KnowledgeSourceResource {
|
|
|
188
192
|
pull?: boolean | undefined;
|
|
189
193
|
title?: string | undefined;
|
|
190
194
|
}): Promise<ContextIngestion>;
|
|
195
|
+
/**
|
|
196
|
+
* Search within a knowledge source
|
|
197
|
+
* Executes a search query against the indexed documents in a single knowledge source and
|
|
198
|
+
* returns matching results ranked by relevance.
|
|
199
|
+
* Three search modes are supported: `"hybrid"` (default) combines vector similarity and
|
|
200
|
+
* full-text scoring, `"vector"` uses embedding-based semantic search only, and
|
|
201
|
+
* `"fulltext"` uses keyword-based search only. Use `"hybrid"` for most use cases;
|
|
202
|
+
* prefer `"vector"` when semantic meaning matters more than exact terms.
|
|
203
|
+
* Optionally restrict results to documents ingested within the last N days using
|
|
204
|
+
* `recency_days`. Results are ordered by relevance score descending.
|
|
205
|
+
* @param source - Knowledge source ID (`ksrc_...`) to search within.
|
|
206
|
+
* @param input - Request body.
|
|
207
|
+
* @param input.max_results - Maximum number of results to return. The platform applies its own upper bound; omit to use the default.
|
|
208
|
+
* @param input.min_similarity - Cosine-similarity floor for the vector leg, 0.0-1.0. Candidates below it are discarded before ranking, so a high value trades recall for precision. Pass `0.0` to disable the floor when a missed match costs more than a weak one — note that with no floor every query returns results, so an empty response can no longer be read as "no match". Omit to use the default.
|
|
209
|
+
* @param input.mode - Search algorithm to use. One of `"hybrid"` (default, combines vector and full-text), `"vector"` (semantic similarity only), or `"fulltext"` (keyword matching only).
|
|
210
|
+
* @param input.query - Natural language or keyword query string to search for.
|
|
211
|
+
* @param input.recency_days - When set, limits results to documents ingested within the last N days. Omit to search across all documents regardless of age.
|
|
212
|
+
* @returns Successful response
|
|
213
|
+
*/
|
|
214
|
+
search(source: string, input: {
|
|
215
|
+
max_results?: number | undefined;
|
|
216
|
+
min_similarity?: number | undefined;
|
|
217
|
+
mode?: string | undefined;
|
|
218
|
+
query: string;
|
|
219
|
+
recency_days?: number | undefined;
|
|
220
|
+
}): Promise<{
|
|
221
|
+
data: {
|
|
222
|
+
content?: string | undefined;
|
|
223
|
+
content_type?: string | undefined;
|
|
224
|
+
created_at?: string | undefined;
|
|
225
|
+
id: string;
|
|
226
|
+
kind: "chunk";
|
|
227
|
+
metadata?: Record<string, unknown> | undefined;
|
|
228
|
+
raw_content?: Record<string, unknown> | undefined;
|
|
229
|
+
type?: string | undefined;
|
|
230
|
+
}[];
|
|
231
|
+
}>;
|
|
191
232
|
}
|
|
192
233
|
//# sourceMappingURL=knowledge_sources.d.ts.map
|
|
@@ -1 +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
|
|
1
|
+
{"version":3,"file":"knowledge_sources.d.ts","sourceRoot":"","sources":["../../../src/v1/resources/knowledge_sources.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,E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AC,EAAE,MAAM,GAAG,SAAS,CAAC;QAAC,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;KAAE,GAAG,OAAO,CAAC;QAAE,IAAI,EAAE;YAAE,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;YAAC,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;YAAC,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;YAAC,EAAE,EAAE,MAAM,CAAC;YAAC,IAAI,EAAE,OAAO,CAAC;YAAC,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAAC;YAAC,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAAC;YAAC,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;SAAE,EAAE,CAAA;KAAE,CAAC;CAGhd"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Copyright (c) 2026 ArchAstro Inc. Licensed under the MIT License.
|
|
2
2
|
// This file is auto-generated by @archastro/sdk-generator. Do not edit.
|
|
3
|
-
// Content hash:
|
|
3
|
+
// Content hash: 1d8e477605f2
|
|
4
4
|
export class KnowledgeSourceKindResource {
|
|
5
5
|
http;
|
|
6
6
|
constructor(http) {
|
|
@@ -41,6 +41,8 @@ export class KnowledgeSourceResource {
|
|
|
41
41
|
* @param params.pageSize - Number of knowledge sources to return per page. Defaults to 25.
|
|
42
42
|
* @param params.search - Filter sources whose type contains this string. Case-insensitive substring match.
|
|
43
43
|
* @param params.type - Exact knowledge source type to filter by, e.g. `"knowledge/documents"`.
|
|
44
|
+
* @param params.team - Exact team IDs whose sources to include.
|
|
45
|
+
* @param params.thread - Exact backing thread IDs whose sources to include.
|
|
44
46
|
* @param params.installation - Installation ID (`ins_...`). Returns only sources associated with this installation.
|
|
45
47
|
* @param params.agent - Agent ID (`agt_...`). Returns only sources owned by or associated with this agent.
|
|
46
48
|
* @param params.org - Organization ID (`org_...`). Returns only sources belonging to this organization. Combine with `owner_scope: "system"` to retrieve org-level system sources.
|
|
@@ -61,6 +63,12 @@ export class KnowledgeSourceResource {
|
|
|
61
63
|
if (params?.type !== undefined) {
|
|
62
64
|
query["type"] = params?.type;
|
|
63
65
|
}
|
|
66
|
+
if (params?.team !== undefined) {
|
|
67
|
+
query["team"] = params?.team;
|
|
68
|
+
}
|
|
69
|
+
if (params?.thread !== undefined) {
|
|
70
|
+
query["thread"] = params?.thread;
|
|
71
|
+
}
|
|
64
72
|
if (params?.installation !== undefined) {
|
|
65
73
|
query["installation"] = params?.installation;
|
|
66
74
|
}
|
|
@@ -173,5 +181,27 @@ export class KnowledgeSourceResource {
|
|
|
173
181
|
async ingest(source, input) {
|
|
174
182
|
return this.http.request(`/api/v1/knowledge_sources/${source}/ingest`, { method: "POST", body: input });
|
|
175
183
|
}
|
|
184
|
+
/**
|
|
185
|
+
* Search within a knowledge source
|
|
186
|
+
* Executes a search query against the indexed documents in a single knowledge source and
|
|
187
|
+
* returns matching results ranked by relevance.
|
|
188
|
+
* Three search modes are supported: `"hybrid"` (default) combines vector similarity and
|
|
189
|
+
* full-text scoring, `"vector"` uses embedding-based semantic search only, and
|
|
190
|
+
* `"fulltext"` uses keyword-based search only. Use `"hybrid"` for most use cases;
|
|
191
|
+
* prefer `"vector"` when semantic meaning matters more than exact terms.
|
|
192
|
+
* Optionally restrict results to documents ingested within the last N days using
|
|
193
|
+
* `recency_days`. Results are ordered by relevance score descending.
|
|
194
|
+
* @param source - Knowledge source ID (`ksrc_...`) to search within.
|
|
195
|
+
* @param input - Request body.
|
|
196
|
+
* @param input.max_results - Maximum number of results to return. The platform applies its own upper bound; omit to use the default.
|
|
197
|
+
* @param input.min_similarity - Cosine-similarity floor for the vector leg, 0.0-1.0. Candidates below it are discarded before ranking, so a high value trades recall for precision. Pass `0.0` to disable the floor when a missed match costs more than a weak one — note that with no floor every query returns results, so an empty response can no longer be read as "no match". Omit to use the default.
|
|
198
|
+
* @param input.mode - Search algorithm to use. One of `"hybrid"` (default, combines vector and full-text), `"vector"` (semantic similarity only), or `"fulltext"` (keyword matching only).
|
|
199
|
+
* @param input.query - Natural language or keyword query string to search for.
|
|
200
|
+
* @param input.recency_days - When set, limits results to documents ingested within the last N days. Omit to search across all documents regardless of age.
|
|
201
|
+
* @returns Successful response
|
|
202
|
+
*/
|
|
203
|
+
async search(source, input) {
|
|
204
|
+
return this.http.request(`/api/v1/knowledge_sources/${source}/search`, { method: "POST", body: input });
|
|
205
|
+
}
|
|
176
206
|
}
|
|
177
207
|
//# sourceMappingURL=knowledge_sources.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"knowledge_sources.js","sourceRoot":"","sources":["../../../src/v1/resources/knowledge_sources.ts"],"names":[],"mappings":"AAAA,oEAAoE;AACpE,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,IAAI,CAAC,KAAK,GAAG,IAAI,2BAA2B,CAAC,IAAI,CAAC,CAAC;IACrD,CAAC;IAED
|
|
1
|
+
{"version":3,"file":"knowledge_sources.js","sourceRoot":"","sources":["../../../src/v1/resources/knowledge_sources.ts"],"names":[],"mappings":"AAAA,oEAAoE;AACpE,wEAAwE;AACxE,6BAA6B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