@smarter.sh/api 1.1.0-alpha.2 → 1.1.0-alpha.4
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/core/http.d.ts +6 -1
- package/dist/core/http.d.ts.map +1 -1
- package/dist/core/http.js +3 -2
- package/dist/core/http.js.map +1 -1
- package/dist/models/misc.d.ts +63 -1
- package/dist/models/misc.d.ts.map +1 -1
- package/dist/models/misc.js +71 -2
- package/dist/models/misc.js.map +1 -1
- package/dist/models/sam/account.d.ts +9 -1
- package/dist/models/sam/account.d.ts.map +1 -1
- package/dist/models/sam/budget.d.ts +2 -2
- package/dist/models/sam/llmclient.d.ts +6 -2
- package/dist/models/sam/llmclient.d.ts.map +1 -1
- package/dist/models/sam/orchestrator.d.ts +8 -2
- package/dist/models/sam/orchestrator.d.ts.map +1 -1
- package/dist/models/sam/schemas.d.ts.map +1 -1
- package/dist/models/sam/schemas.js +113 -8
- package/dist/models/sam/schemas.js.map +1 -1
- package/dist/models/sam/user.d.ts +22 -0
- package/dist/models/sam/user.d.ts.map +1 -1
- package/dist/models/sam/vectorstore.d.ts +55 -1
- package/dist/models/sam/vectorstore.d.ts.map +1 -1
- package/dist/resources/catalog.d.ts +168 -115
- package/dist/resources/catalog.d.ts.map +1 -1
- package/dist/resources/catalog.js +65 -2
- package/dist/resources/catalog.js.map +1 -1
- package/dist/resources/history.d.ts +3 -2
- package/dist/resources/history.d.ts.map +1 -1
- package/dist/resources/history.js +3 -2
- package/dist/resources/history.js.map +1 -1
- package/dist/resources/proxies.d.ts +1 -1
- package/dist/resources/proxies.js +1 -1
- package/dist/resources/vectorstores.d.ts +1 -1
- package/dist/resources/vectorstores.js +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
|
@@ -59,9 +59,27 @@ export interface SAMUserMetadata {
|
|
|
59
59
|
* User.spec[obj]: Required, the User specification.
|
|
60
60
|
*/
|
|
61
61
|
export interface SAMUserSpec {
|
|
62
|
+
/**
|
|
63
|
+
* User.spec.accounts[list]. Optional. The accounts that the User belongs to, e.g. the departments of an organization, each with whether the user administers it. Omitted, the user belongs to the account of whoever applies the manifest. Apply adds each membership that is missing and updates the others, but never removes one, which would delete every resource that the user owns in that account. A superuser may list any account; anyone else only accounts that they administer.
|
|
64
|
+
*/
|
|
65
|
+
accounts?: SAMUserAccountMembership[] | null;
|
|
62
66
|
config: SAMUserSpecConfig;
|
|
63
67
|
[k: string]: unknown | undefined;
|
|
64
68
|
}
|
|
69
|
+
/**
|
|
70
|
+
* Smarter API User Manifest User.spec.accounts[]: the user's membership of one account.
|
|
71
|
+
*/
|
|
72
|
+
export interface SAMUserAccountMembership {
|
|
73
|
+
/**
|
|
74
|
+
* User.spec.accounts.accountNumber[str]. The number of an account that the User belongs to.
|
|
75
|
+
*/
|
|
76
|
+
accountNumber: string;
|
|
77
|
+
/**
|
|
78
|
+
* User.spec.accounts.isAccountAdmin[bool]. Optional. Whether the User administers this account, and only this one: manages every resource in it. Default: false.
|
|
79
|
+
*/
|
|
80
|
+
isAccountAdmin?: boolean;
|
|
81
|
+
[k: string]: unknown | undefined;
|
|
82
|
+
}
|
|
65
83
|
/**
|
|
66
84
|
* User.spec.config[object]. The configuration for the User.
|
|
67
85
|
*/
|
|
@@ -86,6 +104,10 @@ export interface SAMUserSpecConfig {
|
|
|
86
104
|
* User.spec.configuration.lastName[str]. Optional. The last name of the User.
|
|
87
105
|
*/
|
|
88
106
|
lastName?: string | null;
|
|
107
|
+
/**
|
|
108
|
+
* User.spec.configuration.passwordSecret[str]. Optional. The name of a Secret whose value becomes the User's password, each time the manifest is applied, e.g. the published password of a demonstration user. A manifest never holds a password itself. Only a superuser may set it.
|
|
109
|
+
*/
|
|
110
|
+
passwordSecret?: string | null;
|
|
89
111
|
[k: string]: unknown | undefined;
|
|
90
112
|
}
|
|
91
113
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.d.ts","sourceR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,cAAc,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,YAAY,CAAC,EAAE,aAAa,EAAE,GAAG,IAAI,CAAC;IACtC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;CAClC;AACD;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;CAClC"}
|
|
@@ -208,6 +208,14 @@ export interface SAMVectorstoreStatus {
|
|
|
208
208
|
* Vectorstore.status.apiKeySecret: the Secret with a self-hosted database's API key.
|
|
209
209
|
*/
|
|
210
210
|
apiKeySecret?: string | null;
|
|
211
|
+
/**
|
|
212
|
+
* Vectorstore.status.attempt: the number of checks that its last deploy has made.
|
|
213
|
+
*/
|
|
214
|
+
attempt?: number | null;
|
|
215
|
+
/**
|
|
216
|
+
* Vectorstore.status.conditions: what its database needs to be ready, as of its last deploy or check.
|
|
217
|
+
*/
|
|
218
|
+
conditions?: SAMVectorstoreCondition[];
|
|
211
219
|
/**
|
|
212
220
|
* The date in which this resource was created. Read only.
|
|
213
221
|
*/
|
|
@@ -236,6 +244,10 @@ export interface SAMVectorstoreStatus {
|
|
|
236
244
|
* Vectorstore.status.lastCheckedAt: when its status was last checked. Read only.
|
|
237
245
|
*/
|
|
238
246
|
lastCheckedAt?: string | null;
|
|
247
|
+
/**
|
|
248
|
+
* Vectorstore.status.lastError: the last error of its last deploy, which may have been retried since.
|
|
249
|
+
*/
|
|
250
|
+
lastError?: string | null;
|
|
239
251
|
/**
|
|
240
252
|
* Vectorstore.status.lastMaintenanceAt: when its maintenance last ran. Read only.
|
|
241
253
|
*/
|
|
@@ -245,13 +257,21 @@ export interface SAMVectorstoreStatus {
|
|
|
245
257
|
*/
|
|
246
258
|
lastSnapshotAt?: string | null;
|
|
247
259
|
/**
|
|
248
|
-
* Vectorstore.status.
|
|
260
|
+
* Vectorstore.status.maxAttempts: the checks that a deploy makes before it fails.
|
|
261
|
+
*/
|
|
262
|
+
maxAttempts?: number | null;
|
|
263
|
+
/**
|
|
264
|
+
* Vectorstore.status.message: what is happening, e.g. what a deploy waits for, or why it failed.
|
|
249
265
|
*/
|
|
250
266
|
message?: string | null;
|
|
251
267
|
/**
|
|
252
268
|
* The date in which this resource was most recently changed. Read only.
|
|
253
269
|
*/
|
|
254
270
|
modified: string;
|
|
271
|
+
/**
|
|
272
|
+
* Vectorstore.status.nextRetryAt: when a deploy in progress checks again.
|
|
273
|
+
*/
|
|
274
|
+
nextRetryAt?: string | null;
|
|
255
275
|
/**
|
|
256
276
|
* recordLocator[String]: An optional identifier used to locate the resource record associated with this manifest. Read only.
|
|
257
277
|
*/
|
|
@@ -274,6 +294,40 @@ export interface SAMVectorstoreStatus {
|
|
|
274
294
|
vectorstoreStatus: string;
|
|
275
295
|
[k: string]: unknown | undefined;
|
|
276
296
|
}
|
|
297
|
+
/**
|
|
298
|
+
* One of the things that a Vectorstore's database needs before it is ready, and whether it has it.
|
|
299
|
+
*
|
|
300
|
+
* A deploy has several independent points of failure, e.g. a refused api key, a volume that isn't
|
|
301
|
+
* bound, or a server whose image can't be pulled. Each is a condition, as in Kubernetes: its
|
|
302
|
+
* ``status`` is ``True`` when it is met, ``False`` when it isn't, and ``Unknown`` before it is
|
|
303
|
+
* checked. A Pinecone or Qdrant Cloud Vectorstore has the conditions ``Credentials`` and ``Index``,
|
|
304
|
+
* and a self-hosted one also ``Volume`` and ``Server``.
|
|
305
|
+
*
|
|
306
|
+
* Read only.
|
|
307
|
+
*/
|
|
308
|
+
export interface SAMVectorstoreCondition {
|
|
309
|
+
/**
|
|
310
|
+
* Vectorstore.status.condition.lastTransitionTime: when its status last changed.
|
|
311
|
+
*/
|
|
312
|
+
lastTransitionTime?: string | null;
|
|
313
|
+
/**
|
|
314
|
+
* Vectorstore.status.condition.message: what was found, for a person.
|
|
315
|
+
*/
|
|
316
|
+
message?: string;
|
|
317
|
+
/**
|
|
318
|
+
* Vectorstore.status.condition.reason: one word, e.g. Bound or ImagePullBackOff.
|
|
319
|
+
*/
|
|
320
|
+
reason?: string;
|
|
321
|
+
/**
|
|
322
|
+
* Vectorstore.status.condition.status: True if it is met, False if it isn't, Unknown before it is checked.
|
|
323
|
+
*/
|
|
324
|
+
status: "True" | "False" | "Unknown";
|
|
325
|
+
/**
|
|
326
|
+
* Vectorstore.status.condition.type: Credentials, Volume, Server or Index.
|
|
327
|
+
*/
|
|
328
|
+
type: "Credentials" | "Volume" | "Server" | "Index";
|
|
329
|
+
[k: string]: unknown | undefined;
|
|
330
|
+
}
|
|
277
331
|
/**
|
|
278
332
|
* A resource that depends on the resource that a manifest describes.
|
|
279
333
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vectorstore.d.ts","sourceRoot":"","sources":["../../../src/models/sam/vectorstore.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,sBAAsB,CAAC;IACjC,IAAI,EAAE,kBAAkB,CAAC;IACzB;;OAEG;IACH,MAAM,CAAC,EAAE,oBAAoB,GAAG,IAAI,CAAC;IACrC,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;CAClC;AACD;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,WAAW,CAAC,EAAE;QACZ,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,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G,SAAS,CAAC;CAClC"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
/** Secrets, plugins, orchestrators and vectorsearches: the kinds whose REST api lists and reads them, and runs a Vectorsearch. */
|
|
2
|
+
import { z } from "zod";
|
|
2
3
|
import type { RequestOptions } from "../core/http.ts";
|
|
3
4
|
import type { JsonValue, SmarterId } from "../core/typing.ts";
|
|
4
5
|
import type { SmarterJournalMessage } from "../models/journal.ts";
|
|
5
6
|
import { Manifest, type ManifestInput } from "../models/manifest.ts";
|
|
6
|
-
import { Orchestrator, Secret, Vectorsearch, VectorsearchResults } from "../models/misc.ts";
|
|
7
|
+
import { OrchestrationRun, Orchestrator, Secret, Vectorsearch, VectorsearchResults } from "../models/misc.ts";
|
|
7
8
|
import { Plugin } from "../models/plugin.ts";
|
|
8
9
|
import { SmarterKindResource } from "./base.ts";
|
|
9
10
|
/** The manifest kinds of plugins. */
|
|
@@ -16,32 +17,32 @@ export declare const PLUGIN_KINDS: readonly string[];
|
|
|
16
17
|
export declare class Secrets extends SmarterKindResource<typeof Secret> {
|
|
17
18
|
readonly kind = "Secret";
|
|
18
19
|
readonly path = "secrets/";
|
|
19
|
-
readonly model:
|
|
20
|
-
id:
|
|
21
|
-
hashedId:
|
|
22
|
-
name:
|
|
23
|
-
description:
|
|
24
|
-
version:
|
|
25
|
-
tags:
|
|
26
|
-
annotations:
|
|
27
|
-
createdAt:
|
|
28
|
-
updatedAt:
|
|
29
|
-
userProfile:
|
|
30
|
-
user:
|
|
31
|
-
username:
|
|
32
|
-
email:
|
|
33
|
-
},
|
|
34
|
-
account:
|
|
35
|
-
accountNumber:
|
|
36
|
-
},
|
|
37
|
-
},
|
|
38
|
-
canDelete:
|
|
39
|
-
manifestUrl:
|
|
40
|
-
detailUrl:
|
|
41
|
-
ready:
|
|
42
|
-
expiresAt:
|
|
43
|
-
lastAccessed:
|
|
44
|
-
},
|
|
20
|
+
readonly model: z.ZodObject<{
|
|
21
|
+
id: z.ZodNumber;
|
|
22
|
+
hashedId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
23
|
+
name: z.ZodString;
|
|
24
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
|
+
version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
|
+
tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
27
|
+
annotations: z.ZodOptional<z.ZodNullable<z.ZodPreprocess<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>, unknown>>>;
|
|
28
|
+
createdAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
29
|
+
updatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
30
|
+
userProfile: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
31
|
+
user: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
32
|
+
username: z.ZodString;
|
|
33
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
34
|
+
}, z.core.$loose>>>;
|
|
35
|
+
account: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
36
|
+
accountNumber: z.ZodString;
|
|
37
|
+
}, z.core.$loose>>>;
|
|
38
|
+
}, z.core.$loose>>>;
|
|
39
|
+
canDelete: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
40
|
+
manifestUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
41
|
+
detailUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
42
|
+
ready: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
43
|
+
expiresAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
44
|
+
lastAccessed: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
45
|
+
}, z.core.$loose>;
|
|
45
46
|
}
|
|
46
47
|
/**
|
|
47
48
|
* Plugins: `/api/v1/plugins/`, and the manifest api's plugin kinds.
|
|
@@ -52,32 +53,32 @@ export declare class Secrets extends SmarterKindResource<typeof Secret> {
|
|
|
52
53
|
export declare class Plugins extends SmarterKindResource<typeof Plugin> {
|
|
53
54
|
readonly kind = "Plugin";
|
|
54
55
|
readonly path = "plugins/";
|
|
55
|
-
readonly model:
|
|
56
|
-
id:
|
|
57
|
-
hashedId:
|
|
58
|
-
name:
|
|
59
|
-
description:
|
|
60
|
-
version:
|
|
61
|
-
tags:
|
|
62
|
-
annotations:
|
|
63
|
-
createdAt:
|
|
64
|
-
updatedAt:
|
|
65
|
-
userProfile:
|
|
66
|
-
user:
|
|
67
|
-
username:
|
|
68
|
-
email:
|
|
69
|
-
},
|
|
70
|
-
account:
|
|
71
|
-
accountNumber:
|
|
72
|
-
},
|
|
73
|
-
},
|
|
74
|
-
canDelete:
|
|
75
|
-
manifestUrl:
|
|
76
|
-
detailUrl:
|
|
77
|
-
ready:
|
|
78
|
-
pluginClass:
|
|
79
|
-
kind:
|
|
80
|
-
},
|
|
56
|
+
readonly model: z.ZodObject<{
|
|
57
|
+
id: z.ZodNumber;
|
|
58
|
+
hashedId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
59
|
+
name: z.ZodString;
|
|
60
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
61
|
+
version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
62
|
+
tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
63
|
+
annotations: z.ZodOptional<z.ZodNullable<z.ZodPreprocess<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>, unknown>>>;
|
|
64
|
+
createdAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
65
|
+
updatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
66
|
+
userProfile: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
67
|
+
user: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
68
|
+
username: z.ZodString;
|
|
69
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
70
|
+
}, z.core.$loose>>>;
|
|
71
|
+
account: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
72
|
+
accountNumber: z.ZodString;
|
|
73
|
+
}, z.core.$loose>>>;
|
|
74
|
+
}, z.core.$loose>>>;
|
|
75
|
+
canDelete: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
76
|
+
manifestUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
77
|
+
detailUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
78
|
+
ready: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
79
|
+
pluginClass: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
80
|
+
kind: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
81
|
+
}, z.core.$loose>;
|
|
81
82
|
/**
|
|
82
83
|
* Create or update a plugin from its manifest, of any plugin kind.
|
|
83
84
|
*
|
|
@@ -135,38 +136,90 @@ export declare class Plugins extends SmarterKindResource<typeof Plugin> {
|
|
|
135
136
|
*/
|
|
136
137
|
retrieveManifest(id: SmarterId, options?: RequestOptions): Promise<Manifest>;
|
|
137
138
|
}
|
|
138
|
-
/**
|
|
139
|
+
/**
|
|
140
|
+
* Orchestrators: `/api/v1/orchestrators/`, and the manifest api's `Orchestrator` kind.
|
|
141
|
+
*
|
|
142
|
+
* {@link Orchestrators.run} starts a run of an Orchestrator toward an objective, which the platform
|
|
143
|
+
* executes in the background. Poll it with {@link Orchestrators.runStatus} until {@link isRunDone}.
|
|
144
|
+
*
|
|
145
|
+
* @example
|
|
146
|
+
* ```ts
|
|
147
|
+
* let run = await client.orchestrators.run(12, "Prepare the board pack for Q4 2025");
|
|
148
|
+
* while (!isRunDone(run)) {
|
|
149
|
+
* await new Promise((resolve) => setTimeout(resolve, 2000));
|
|
150
|
+
* run = await client.orchestrators.runStatus(12, run.id);
|
|
151
|
+
* }
|
|
152
|
+
* console.log(run.status, run.result);
|
|
153
|
+
* ```
|
|
154
|
+
*/
|
|
139
155
|
export declare class Orchestrators extends SmarterKindResource<typeof Orchestrator> {
|
|
140
156
|
readonly kind = "Orchestrator";
|
|
141
157
|
readonly path = "orchestrators/";
|
|
142
|
-
readonly model:
|
|
143
|
-
id:
|
|
144
|
-
hashedId:
|
|
145
|
-
name:
|
|
146
|
-
description:
|
|
147
|
-
version:
|
|
148
|
-
tags:
|
|
149
|
-
annotations:
|
|
150
|
-
createdAt:
|
|
151
|
-
updatedAt:
|
|
152
|
-
userProfile:
|
|
153
|
-
user:
|
|
154
|
-
username:
|
|
155
|
-
email:
|
|
156
|
-
},
|
|
157
|
-
account:
|
|
158
|
-
accountNumber:
|
|
159
|
-
},
|
|
160
|
-
},
|
|
161
|
-
canDelete:
|
|
162
|
-
manifestUrl:
|
|
163
|
-
detailUrl:
|
|
164
|
-
ready:
|
|
165
|
-
strategy:
|
|
166
|
-
maxIterations:
|
|
167
|
-
isActive:
|
|
168
|
-
llmclients:
|
|
169
|
-
},
|
|
158
|
+
readonly model: z.ZodObject<{
|
|
159
|
+
id: z.ZodNumber;
|
|
160
|
+
hashedId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
161
|
+
name: z.ZodString;
|
|
162
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
163
|
+
version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
164
|
+
tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
165
|
+
annotations: z.ZodOptional<z.ZodNullable<z.ZodPreprocess<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>, unknown>>>;
|
|
166
|
+
createdAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
167
|
+
updatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
168
|
+
userProfile: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
169
|
+
user: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
170
|
+
username: z.ZodString;
|
|
171
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
172
|
+
}, z.core.$loose>>>;
|
|
173
|
+
account: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
174
|
+
accountNumber: z.ZodString;
|
|
175
|
+
}, z.core.$loose>>>;
|
|
176
|
+
}, z.core.$loose>>>;
|
|
177
|
+
canDelete: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
178
|
+
manifestUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
179
|
+
detailUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
180
|
+
ready: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
181
|
+
strategy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
182
|
+
maxIterations: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
183
|
+
isActive: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
184
|
+
llmclients: z.ZodDefault<z.ZodArray<z.ZodNumber>>;
|
|
185
|
+
}, z.core.$loose>;
|
|
186
|
+
/**
|
|
187
|
+
* Start a run of an Orchestrator toward an objective.
|
|
188
|
+
*
|
|
189
|
+
* The platform answers at once with the run, `pending`, then executes it one step at a time. Each step
|
|
190
|
+
* calls a harness LLMClient as its owner, and is charged to it. The request is never retried, whatever
|
|
191
|
+
* the client's `maxRetries`: a retry would start a second run.
|
|
192
|
+
*
|
|
193
|
+
* @param id - The Orchestrator's id or hashed id.
|
|
194
|
+
* @param objective - What the run is to achieve, e.g. `Prepare the board pack for Q4 2025`. Every step receives it.
|
|
195
|
+
* @param options - Per-request options.
|
|
196
|
+
* @returns The new run.
|
|
197
|
+
* @throws {@link BadRequestError} If the objective is empty, or the Orchestrator's strategy can't run yet.
|
|
198
|
+
* @throws {@link PermissionDeniedError} If the user may not use every LLMClient of the Orchestrator.
|
|
199
|
+
* @throws {@link NotFoundError} If the user may not read the Orchestrator.
|
|
200
|
+
*/
|
|
201
|
+
run(id: SmarterId, objective: string, options?: RequestOptions): Promise<OrchestrationRun>;
|
|
202
|
+
/**
|
|
203
|
+
* The newest runs of an Orchestrator that the user started, up to 20, each with its steps.
|
|
204
|
+
*
|
|
205
|
+
* A superuser gets every user's.
|
|
206
|
+
*
|
|
207
|
+
* @param id - The Orchestrator's id or hashed id.
|
|
208
|
+
* @param options - Per-request options.
|
|
209
|
+
* @returns The runs, newest first.
|
|
210
|
+
* @throws {@link NotFoundError} If the user may not read the Orchestrator.
|
|
211
|
+
*/
|
|
212
|
+
runs(id: SmarterId, options?: RequestOptions): Promise<OrchestrationRun[]>;
|
|
213
|
+
/**
|
|
214
|
+
* A run of an Orchestrator, with its steps and, once it succeeded, its result.
|
|
215
|
+
*
|
|
216
|
+
* @param id - The Orchestrator's id or hashed id.
|
|
217
|
+
* @param runId - The run's id.
|
|
218
|
+
* @param options - Per-request options.
|
|
219
|
+
* @returns The run.
|
|
220
|
+
* @throws {@link NotFoundError} If there is no such run, or the user neither started it nor is a superuser.
|
|
221
|
+
*/
|
|
222
|
+
runStatus(id: SmarterId, runId: number, options?: RequestOptions): Promise<OrchestrationRun>;
|
|
170
223
|
}
|
|
171
224
|
/**
|
|
172
225
|
* Vectorsearches: `/api/v1/vectorsearches/`, and the manifest api's `Vectorsearch` kind.
|
|
@@ -180,39 +233,39 @@ export declare class Orchestrators extends SmarterKindResource<typeof Orchestrat
|
|
|
180
233
|
export declare class Vectorsearches extends SmarterKindResource<typeof Vectorsearch> {
|
|
181
234
|
readonly kind = "Vectorsearch";
|
|
182
235
|
readonly path = "vectorsearches/";
|
|
183
|
-
readonly model:
|
|
184
|
-
id:
|
|
185
|
-
hashedId:
|
|
186
|
-
name:
|
|
187
|
-
description:
|
|
188
|
-
version:
|
|
189
|
-
tags:
|
|
190
|
-
annotations:
|
|
191
|
-
createdAt:
|
|
192
|
-
updatedAt:
|
|
193
|
-
userProfile:
|
|
194
|
-
user:
|
|
195
|
-
username:
|
|
196
|
-
email:
|
|
197
|
-
},
|
|
198
|
-
account:
|
|
199
|
-
accountNumber:
|
|
200
|
-
},
|
|
201
|
-
},
|
|
202
|
-
canDelete:
|
|
203
|
-
manifestUrl:
|
|
204
|
-
detailUrl:
|
|
205
|
-
ready:
|
|
206
|
-
searchType:
|
|
207
|
-
k:
|
|
208
|
-
scoreThreshold:
|
|
209
|
-
fetchK:
|
|
210
|
-
lambdaMult:
|
|
211
|
-
metadataFilter:
|
|
212
|
-
isEnabled:
|
|
213
|
-
vectorstore:
|
|
214
|
-
authSecret:
|
|
215
|
-
},
|
|
236
|
+
readonly model: z.ZodObject<{
|
|
237
|
+
id: z.ZodNumber;
|
|
238
|
+
hashedId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
239
|
+
name: z.ZodString;
|
|
240
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
241
|
+
version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
242
|
+
tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
243
|
+
annotations: z.ZodOptional<z.ZodNullable<z.ZodPreprocess<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>, unknown>>>;
|
|
244
|
+
createdAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
245
|
+
updatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
246
|
+
userProfile: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
247
|
+
user: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
248
|
+
username: z.ZodString;
|
|
249
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
250
|
+
}, z.core.$loose>>>;
|
|
251
|
+
account: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
252
|
+
accountNumber: z.ZodString;
|
|
253
|
+
}, z.core.$loose>>>;
|
|
254
|
+
}, z.core.$loose>>>;
|
|
255
|
+
canDelete: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
256
|
+
manifestUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
257
|
+
detailUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
258
|
+
ready: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
259
|
+
searchType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
260
|
+
k: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
261
|
+
scoreThreshold: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
262
|
+
fetchK: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
263
|
+
lambdaMult: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
264
|
+
metadataFilter: z.ZodOptional<z.ZodNullable<z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
|
|
265
|
+
isEnabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
266
|
+
vectorstore: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
267
|
+
authSecret: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
268
|
+
}, z.core.$loose>;
|
|
216
269
|
/**
|
|
217
270
|
* Run a Vectorsearch: search its vectorstore with a query, and the Vectorsearch's own configuration,
|
|
218
271
|
* its search type, `k`, score threshold, mmr settings and metadata filter.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"catalog.d.ts","sourceRoot":"","sources":["../../src/resources/catalog.ts"],"names":[],"mappings":"AAAA,kIAAkI;
|
|
1
|
+
{"version":3,"file":"catalog.d.ts","sourceRoot":"","sources":["../../src/resources/catalog.ts"],"names":[],"mappings":"AAAA,kIAAkI;AAElI,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,KAAK,EAAE,qBAAq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EAAE,cAAc,GAAG;QAAE,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,IAAI,CAAA;KAAE,GACvE,OAAO,CAAC,mBAAmB,CAAC;CAQhC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/** Secrets, plugins, orchestrators and vectorsearches: the kinds whose REST api lists and reads them, and runs a Vectorsearch. */
|
|
2
|
+
import { z } from "zod";
|
|
2
3
|
import { ResourceNotFoundError, SmarterValueError } from "../core/errors.js";
|
|
3
4
|
import { Manifest, ManifestData, toManifest } from "../models/manifest.js";
|
|
4
|
-
import { Orchestrator, Secret, Vectorsearch, VectorsearchResults } from "../models/misc.js";
|
|
5
|
+
import { OrchestrationRun, Orchestrator, Secret, Vectorsearch, VectorsearchResults } from "../models/misc.js";
|
|
5
6
|
import { Plugin } from "../models/plugin.js";
|
|
6
7
|
import { resourceId, SmarterKindResource } from "./base.js";
|
|
7
8
|
/** The manifest kinds of plugins. */
|
|
@@ -109,11 +110,73 @@ export class Plugins extends SmarterKindResource {
|
|
|
109
110
|
return new Manifest(await this.http.request("GET", `${this.path}${resourceId(id)}/`, ManifestData, options));
|
|
110
111
|
}
|
|
111
112
|
}
|
|
112
|
-
/**
|
|
113
|
+
/**
|
|
114
|
+
* Orchestrators: `/api/v1/orchestrators/`, and the manifest api's `Orchestrator` kind.
|
|
115
|
+
*
|
|
116
|
+
* {@link Orchestrators.run} starts a run of an Orchestrator toward an objective, which the platform
|
|
117
|
+
* executes in the background. Poll it with {@link Orchestrators.runStatus} until {@link isRunDone}.
|
|
118
|
+
*
|
|
119
|
+
* @example
|
|
120
|
+
* ```ts
|
|
121
|
+
* let run = await client.orchestrators.run(12, "Prepare the board pack for Q4 2025");
|
|
122
|
+
* while (!isRunDone(run)) {
|
|
123
|
+
* await new Promise((resolve) => setTimeout(resolve, 2000));
|
|
124
|
+
* run = await client.orchestrators.runStatus(12, run.id);
|
|
125
|
+
* }
|
|
126
|
+
* console.log(run.status, run.result);
|
|
127
|
+
* ```
|
|
128
|
+
*/
|
|
113
129
|
export class Orchestrators extends SmarterKindResource {
|
|
114
130
|
kind = "Orchestrator";
|
|
115
131
|
path = "orchestrators/";
|
|
116
132
|
model = Orchestrator;
|
|
133
|
+
/**
|
|
134
|
+
* Start a run of an Orchestrator toward an objective.
|
|
135
|
+
*
|
|
136
|
+
* The platform answers at once with the run, `pending`, then executes it one step at a time. Each step
|
|
137
|
+
* calls a harness LLMClient as its owner, and is charged to it. The request is never retried, whatever
|
|
138
|
+
* the client's `maxRetries`: a retry would start a second run.
|
|
139
|
+
*
|
|
140
|
+
* @param id - The Orchestrator's id or hashed id.
|
|
141
|
+
* @param objective - What the run is to achieve, e.g. `Prepare the board pack for Q4 2025`. Every step receives it.
|
|
142
|
+
* @param options - Per-request options.
|
|
143
|
+
* @returns The new run.
|
|
144
|
+
* @throws {@link BadRequestError} If the objective is empty, or the Orchestrator's strategy can't run yet.
|
|
145
|
+
* @throws {@link PermissionDeniedError} If the user may not use every LLMClient of the Orchestrator.
|
|
146
|
+
* @throws {@link NotFoundError} If the user may not read the Orchestrator.
|
|
147
|
+
*/
|
|
148
|
+
async run(id, objective, options) {
|
|
149
|
+
return this.http.request("POST", `${this.path}${resourceId(id)}/runs/`, OrchestrationRun, {
|
|
150
|
+
...options,
|
|
151
|
+
json: { objective },
|
|
152
|
+
maxRetries: 0,
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
/**
|
|
156
|
+
* The newest runs of an Orchestrator that the user started, up to 20, each with its steps.
|
|
157
|
+
*
|
|
158
|
+
* A superuser gets every user's.
|
|
159
|
+
*
|
|
160
|
+
* @param id - The Orchestrator's id or hashed id.
|
|
161
|
+
* @param options - Per-request options.
|
|
162
|
+
* @returns The runs, newest first.
|
|
163
|
+
* @throws {@link NotFoundError} If the user may not read the Orchestrator.
|
|
164
|
+
*/
|
|
165
|
+
async runs(id, options) {
|
|
166
|
+
return this.http.request("GET", `${this.path}${resourceId(id)}/runs/`, z.array(OrchestrationRun), options);
|
|
167
|
+
}
|
|
168
|
+
/**
|
|
169
|
+
* A run of an Orchestrator, with its steps and, once it succeeded, its result.
|
|
170
|
+
*
|
|
171
|
+
* @param id - The Orchestrator's id or hashed id.
|
|
172
|
+
* @param runId - The run's id.
|
|
173
|
+
* @param options - Per-request options.
|
|
174
|
+
* @returns The run.
|
|
175
|
+
* @throws {@link NotFoundError} If there is no such run, or the user neither started it nor is a superuser.
|
|
176
|
+
*/
|
|
177
|
+
async runStatus(id, runId, options) {
|
|
178
|
+
return this.http.request("GET", `${this.path}${resourceId(id)}/runs/${resourceId(runId)}/`, OrchestrationRun, options);
|
|
179
|
+
}
|
|
117
180
|
}
|
|
118
181
|
/**
|
|
119
182
|
* Vectorsearches: `/api/v1/vectorsearches/`, and the manifest api's `Vectorsearch` kind.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"catalog.js","sourceRoot":"","sources":["../../src/resources/catalog.ts"],"names":[],"mappings":"AAAA,kIAAkI;AAElI,OAAO,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAI7E,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,UAAU,EAAsB,MAAM,uBAAuB,CAAC;AAC/F,OAAO,EAAE,YAAY,EAAE,MAAM,EAAE,YAAY,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"catalog.js","sourceRoot":"","sources":["../../src/resources/catalog.ts"],"names":[],"mappings":"AAAA,kIAAkI;AAElI,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAI7E,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,UAAU,EAAsB,MAAM,uBAAuB,CAAC;AAC/F,OAAO,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,EAAE,YAAY,EAAE,mBAAmB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