@smarter.sh/api 1.0.3 → 1.1.0-alpha.2
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/client.d.ts +7 -2
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +8 -2
- package/dist/client.js.map +1 -1
- package/dist/core/errors.d.ts +11 -0
- package/dist/core/errors.d.ts.map +1 -1
- package/dist/core/errors.js +11 -0
- package/dist/core/errors.js.map +1 -1
- package/dist/core/http.d.ts +6 -1
- package/dist/core/http.d.ts.map +1 -1
- package/dist/core/http.js +4 -2
- package/dist/core/http.js.map +1 -1
- package/dist/index.d.ts +6 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -3
- package/dist/index.js.map +1 -1
- package/dist/models/account.d.ts +69 -1
- package/dist/models/account.d.ts.map +1 -1
- package/dist/models/account.js +69 -1
- package/dist/models/account.js.map +1 -1
- package/dist/models/extension.d.ts +408 -0
- package/dist/models/extension.d.ts.map +1 -0
- package/dist/models/extension.js +196 -0
- package/dist/models/extension.js.map +1 -0
- package/dist/models/misc.d.ts +12 -0
- package/dist/models/misc.d.ts.map +1 -1
- package/dist/models/misc.js +9 -0
- package/dist/models/misc.js.map +1 -1
- package/dist/models/sam/plugin.d.ts +3 -3
- package/dist/models/sam/plugin.d.ts.map +1 -1
- package/dist/models/sam/schemas.d.ts.map +1 -1
- package/dist/models/sam/schemas.js +5 -4
- package/dist/models/sam/schemas.js.map +1 -1
- package/dist/models/sam/sqlconnection.d.ts +1 -1
- package/dist/resources/accounts.d.ts +74 -4
- package/dist/resources/accounts.d.ts.map +1 -1
- package/dist/resources/accounts.js +82 -4
- package/dist/resources/accounts.js.map +1 -1
- package/dist/resources/base.d.ts +11 -0
- package/dist/resources/base.d.ts.map +1 -1
- package/dist/resources/base.js +19 -0
- package/dist/resources/base.js.map +1 -1
- package/dist/resources/catalog.d.ts +30 -5
- package/dist/resources/catalog.d.ts.map +1 -1
- package/dist/resources/catalog.js +34 -3
- package/dist/resources/catalog.js.map +1 -1
- package/dist/resources/extensions.d.ts +173 -0
- package/dist/resources/extensions.d.ts.map +1 -0
- package/dist/resources/extensions.js +196 -0
- package/dist/resources/extensions.js.map +1 -0
- package/dist/resources/vectorstores.d.ts +1 -3
- package/dist/resources/vectorstores.d.ts.map +1 -1
- package/dist/resources/vectorstores.js +3 -13
- package/dist/resources/vectorstores.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.d.ts.map +1 -1
- package/dist/version.js +1 -1
- package/dist/version.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,408 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Models of the platform's extensions and of the extension registry, as `/api/v1/extensions/` returns them.
|
|
3
|
+
*
|
|
4
|
+
* An extension is a Python package that adds tools to the LLMClients that use it, e.g. `weather`. It is
|
|
5
|
+
* installed from the registry or from an uploaded .zip archive, configured and enabled by a superuser,
|
|
6
|
+
* and made available to every account or to some of them. These models are of the platform's
|
|
7
|
+
* extensions. An LLMClient's own list of the extensions that it uses is {@link LLMClientExtension}.
|
|
8
|
+
*/
|
|
9
|
+
import { z } from "zod";
|
|
10
|
+
import { JsonValue } from "../core/typing.ts";
|
|
11
|
+
/** The value of an extension's setting that is not a secret. */
|
|
12
|
+
export declare const ExtensionSettingValue: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
13
|
+
export type ExtensionSettingValue = z.infer<typeof ExtensionSettingValue>;
|
|
14
|
+
/** What every view of an installed extension has: its identity, source, trust badge, state and versions. */
|
|
15
|
+
export declare const ExtensionSummary: z.ZodObject<{
|
|
16
|
+
id: z.ZodNumber;
|
|
17
|
+
slug: z.ZodString;
|
|
18
|
+
displayName: z.ZodString;
|
|
19
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
|
+
publisher: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
+
source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
+
trustBadge: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
23
|
+
trustBadgeLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
|
+
enabled: z.ZodBoolean;
|
|
25
|
+
installedVersion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
|
+
latestVersion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
|
+
updateAvailable: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
28
|
+
latestCheckedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
29
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
30
|
+
detailUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
31
|
+
}, z.core.$loose>;
|
|
32
|
+
export type ExtensionSummary = z.infer<typeof ExtensionSummary>;
|
|
33
|
+
/** A tool that an extension offers the LLM. */
|
|
34
|
+
export declare const ExtensionTool: z.ZodObject<{
|
|
35
|
+
name: z.ZodString;
|
|
36
|
+
functionName: z.ZodString;
|
|
37
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
38
|
+
parameters: z.ZodOptional<z.ZodNullable<z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
|
|
39
|
+
}, z.core.$loose>;
|
|
40
|
+
export type ExtensionTool = z.infer<typeof ExtensionTool>;
|
|
41
|
+
/** One of an extension's settings, and its state. */
|
|
42
|
+
export declare const ExtensionSetting: z.ZodObject<{
|
|
43
|
+
name: z.ZodString;
|
|
44
|
+
type: z.ZodString;
|
|
45
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
46
|
+
required: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
47
|
+
default: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
|
|
48
|
+
choices: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
49
|
+
value: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
|
|
50
|
+
secretId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
51
|
+
secretName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
52
|
+
isSet: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
53
|
+
}, z.core.$loose>;
|
|
54
|
+
export type ExtensionSetting = z.infer<typeof ExtensionSetting>;
|
|
55
|
+
/** An installed version of an extension. */
|
|
56
|
+
export declare const ExtensionVersion: z.ZodObject<{
|
|
57
|
+
id: z.ZodNumber;
|
|
58
|
+
version: z.ZodString;
|
|
59
|
+
sha256: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
60
|
+
sourceUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
61
|
+
installedBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
62
|
+
createdAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
63
|
+
isInstalled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
64
|
+
}, z.core.$loose>;
|
|
65
|
+
export type ExtensionVersion = z.infer<typeof ExtensionVersion>;
|
|
66
|
+
/** A resource that an extension created from its manifests, e.g. a Plugin. */
|
|
67
|
+
export declare const ExtensionResource: z.ZodObject<{
|
|
68
|
+
kind: z.ZodString;
|
|
69
|
+
name: z.ZodString;
|
|
70
|
+
owner: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
71
|
+
version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
72
|
+
managed: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
73
|
+
}, z.core.$loose>;
|
|
74
|
+
export type ExtensionResource = z.infer<typeof ExtensionResource>;
|
|
75
|
+
/** A waffle switch that an extension declares. */
|
|
76
|
+
export declare const ExtensionSwitch: z.ZodObject<{
|
|
77
|
+
name: z.ZodString;
|
|
78
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
79
|
+
active: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
80
|
+
}, z.core.$loose>;
|
|
81
|
+
export type ExtensionSwitch = z.infer<typeof ExtensionSwitch>;
|
|
82
|
+
/** An account that may use an extension. */
|
|
83
|
+
export declare const ExtensionAccount: z.ZodObject<{
|
|
84
|
+
id: z.ZodNumber;
|
|
85
|
+
accountNumber: z.ZodString;
|
|
86
|
+
companyName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
87
|
+
}, z.core.$loose>;
|
|
88
|
+
export type ExtensionAccount = z.infer<typeof ExtensionAccount>;
|
|
89
|
+
/** One of the platform admin's Secrets, which a secret setting may use. */
|
|
90
|
+
export declare const ExtensionSecretRef: z.ZodObject<{
|
|
91
|
+
id: z.ZodNumber;
|
|
92
|
+
name: z.ZodString;
|
|
93
|
+
}, z.core.$loose>;
|
|
94
|
+
export type ExtensionSecretRef = z.infer<typeof ExtensionSecretRef>;
|
|
95
|
+
/**
|
|
96
|
+
* Everything about an installed extension: its documentation, tools, settings, versions, resources,
|
|
97
|
+
* switches and availability.
|
|
98
|
+
*
|
|
99
|
+
* A user who is not a superuser gets `settings`, `accounts` and `availableSecrets` as empty lists,
|
|
100
|
+
* and each version's `installedBy` as null.
|
|
101
|
+
*/
|
|
102
|
+
export declare const ExtensionDetail: z.ZodObject<{
|
|
103
|
+
id: z.ZodNumber;
|
|
104
|
+
slug: z.ZodString;
|
|
105
|
+
displayName: z.ZodString;
|
|
106
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
107
|
+
publisher: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
108
|
+
source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
109
|
+
trustBadge: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
110
|
+
trustBadgeLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
111
|
+
enabled: z.ZodBoolean;
|
|
112
|
+
installedVersion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
113
|
+
latestVersion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
114
|
+
updateAvailable: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
115
|
+
latestCheckedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
116
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
117
|
+
detailUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
118
|
+
homepage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
119
|
+
license: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
120
|
+
docsHtml: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
121
|
+
loadError: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
122
|
+
tools: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
123
|
+
name: z.ZodString;
|
|
124
|
+
functionName: z.ZodString;
|
|
125
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
126
|
+
parameters: z.ZodOptional<z.ZodNullable<z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
|
|
127
|
+
}, z.core.$loose>>>;
|
|
128
|
+
settings: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
129
|
+
name: z.ZodString;
|
|
130
|
+
type: z.ZodString;
|
|
131
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
132
|
+
required: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
133
|
+
default: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
|
|
134
|
+
choices: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
135
|
+
value: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
|
|
136
|
+
secretId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
137
|
+
secretName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
138
|
+
isSet: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
139
|
+
}, z.core.$loose>>>;
|
|
140
|
+
missingSettings: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
141
|
+
versions: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
142
|
+
id: z.ZodNumber;
|
|
143
|
+
version: z.ZodString;
|
|
144
|
+
sha256: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
145
|
+
sourceUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
146
|
+
installedBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
147
|
+
createdAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
148
|
+
isInstalled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
149
|
+
}, z.core.$loose>>>;
|
|
150
|
+
resources: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
151
|
+
kind: z.ZodString;
|
|
152
|
+
name: z.ZodString;
|
|
153
|
+
owner: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
154
|
+
version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
155
|
+
managed: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
156
|
+
}, z.core.$loose>>>;
|
|
157
|
+
switches: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
158
|
+
name: z.ZodString;
|
|
159
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
160
|
+
active: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
161
|
+
}, z.core.$loose>>>;
|
|
162
|
+
allAccounts: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
163
|
+
accounts: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
164
|
+
id: z.ZodNumber;
|
|
165
|
+
accountNumber: z.ZodString;
|
|
166
|
+
companyName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
167
|
+
}, z.core.$loose>>>;
|
|
168
|
+
availableSecrets: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
169
|
+
id: z.ZodNumber;
|
|
170
|
+
name: z.ZodString;
|
|
171
|
+
}, z.core.$loose>>>;
|
|
172
|
+
}, z.core.$loose>;
|
|
173
|
+
export type ExtensionDetail = z.infer<typeof ExtensionDetail>;
|
|
174
|
+
/** The installed extensions that the user may see, and the state of the registry. */
|
|
175
|
+
export declare const ExtensionList: z.ZodObject<{
|
|
176
|
+
objects: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
177
|
+
id: z.ZodNumber;
|
|
178
|
+
slug: z.ZodString;
|
|
179
|
+
displayName: z.ZodString;
|
|
180
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
181
|
+
publisher: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
182
|
+
source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
183
|
+
trustBadge: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
184
|
+
trustBadgeLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
185
|
+
enabled: z.ZodBoolean;
|
|
186
|
+
installedVersion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
187
|
+
latestVersion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
188
|
+
updateAvailable: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
189
|
+
latestCheckedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
190
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
191
|
+
detailUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
192
|
+
}, z.core.$loose>>>;
|
|
193
|
+
registryEnabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
194
|
+
updatesAvailable: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
195
|
+
}, z.core.$loose>;
|
|
196
|
+
export type ExtensionList = z.infer<typeof ExtensionList>;
|
|
197
|
+
/** The response of `GET extensions/<slug>/`, which {@link Extensions.retrieve} unwraps. */
|
|
198
|
+
export declare const ExtensionDetailResponse: z.ZodObject<{
|
|
199
|
+
extension: z.ZodObject<{
|
|
200
|
+
id: z.ZodNumber;
|
|
201
|
+
slug: z.ZodString;
|
|
202
|
+
displayName: z.ZodString;
|
|
203
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
204
|
+
publisher: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
205
|
+
source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
206
|
+
trustBadge: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
207
|
+
trustBadgeLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
208
|
+
enabled: z.ZodBoolean;
|
|
209
|
+
installedVersion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
210
|
+
latestVersion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
211
|
+
updateAvailable: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
212
|
+
latestCheckedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
213
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
214
|
+
detailUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
215
|
+
homepage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
216
|
+
license: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
217
|
+
docsHtml: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
218
|
+
loadError: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
219
|
+
tools: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
220
|
+
name: z.ZodString;
|
|
221
|
+
functionName: z.ZodString;
|
|
222
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
223
|
+
parameters: z.ZodOptional<z.ZodNullable<z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
|
|
224
|
+
}, z.core.$loose>>>;
|
|
225
|
+
settings: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
226
|
+
name: z.ZodString;
|
|
227
|
+
type: z.ZodString;
|
|
228
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
229
|
+
required: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
230
|
+
default: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
|
|
231
|
+
choices: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
232
|
+
value: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
|
|
233
|
+
secretId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
234
|
+
secretName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
235
|
+
isSet: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
236
|
+
}, z.core.$loose>>>;
|
|
237
|
+
missingSettings: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
238
|
+
versions: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
239
|
+
id: z.ZodNumber;
|
|
240
|
+
version: z.ZodString;
|
|
241
|
+
sha256: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
242
|
+
sourceUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
243
|
+
installedBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
244
|
+
createdAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
245
|
+
isInstalled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
246
|
+
}, z.core.$loose>>>;
|
|
247
|
+
resources: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
248
|
+
kind: z.ZodString;
|
|
249
|
+
name: z.ZodString;
|
|
250
|
+
owner: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
251
|
+
version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
252
|
+
managed: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
253
|
+
}, z.core.$loose>>>;
|
|
254
|
+
switches: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
255
|
+
name: z.ZodString;
|
|
256
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
257
|
+
active: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
258
|
+
}, z.core.$loose>>>;
|
|
259
|
+
allAccounts: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
260
|
+
accounts: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
261
|
+
id: z.ZodNumber;
|
|
262
|
+
accountNumber: z.ZodString;
|
|
263
|
+
companyName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
264
|
+
}, z.core.$loose>>>;
|
|
265
|
+
availableSecrets: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
266
|
+
id: z.ZodNumber;
|
|
267
|
+
name: z.ZodString;
|
|
268
|
+
}, z.core.$loose>>>;
|
|
269
|
+
}, z.core.$loose>;
|
|
270
|
+
}, z.core.$loose>;
|
|
271
|
+
export type ExtensionDetailResponse = z.infer<typeof ExtensionDetailResponse>;
|
|
272
|
+
/** A released version of an extension in the registry. */
|
|
273
|
+
export declare const ExtensionRegistryVersion: z.ZodObject<{
|
|
274
|
+
version: z.ZodString;
|
|
275
|
+
requiresSmarter: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
276
|
+
releasedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
277
|
+
compatible: z.ZodBoolean;
|
|
278
|
+
}, z.core.$loose>;
|
|
279
|
+
export type ExtensionRegistryVersion = z.infer<typeof ExtensionRegistryVersion>;
|
|
280
|
+
/** An extension of the registry, and what it offers on this platform. */
|
|
281
|
+
export declare const ExtensionRegistryItem: z.ZodObject<{
|
|
282
|
+
slug: z.ZodString;
|
|
283
|
+
displayName: z.ZodString;
|
|
284
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
285
|
+
publisher: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
286
|
+
publisherUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
287
|
+
trustBadge: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
288
|
+
trustBadgeLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
289
|
+
homepage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
290
|
+
license: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
291
|
+
docsHtml: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
292
|
+
latestVersion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
293
|
+
versions: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
294
|
+
version: z.ZodString;
|
|
295
|
+
requiresSmarter: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
296
|
+
releasedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
297
|
+
compatible: z.ZodBoolean;
|
|
298
|
+
}, z.core.$loose>>>;
|
|
299
|
+
installedVersion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
300
|
+
action: z.ZodString;
|
|
301
|
+
detailUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
302
|
+
}, z.core.$loose>;
|
|
303
|
+
export type ExtensionRegistryItem = z.infer<typeof ExtensionRegistryItem>;
|
|
304
|
+
/** The registry's extensions. */
|
|
305
|
+
export declare const ExtensionRegistry: z.ZodObject<{
|
|
306
|
+
enabled: z.ZodBoolean;
|
|
307
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
308
|
+
objects: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
309
|
+
slug: z.ZodString;
|
|
310
|
+
displayName: z.ZodString;
|
|
311
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
312
|
+
publisher: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
313
|
+
publisherUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
314
|
+
trustBadge: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
315
|
+
trustBadgeLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
316
|
+
homepage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
317
|
+
license: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
318
|
+
docsHtml: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
319
|
+
latestVersion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
320
|
+
versions: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
321
|
+
version: z.ZodString;
|
|
322
|
+
requiresSmarter: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
323
|
+
releasedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
324
|
+
compatible: z.ZodBoolean;
|
|
325
|
+
}, z.core.$loose>>>;
|
|
326
|
+
installedVersion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
327
|
+
action: z.ZodString;
|
|
328
|
+
detailUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
329
|
+
}, z.core.$loose>>>;
|
|
330
|
+
}, z.core.$loose>;
|
|
331
|
+
export type ExtensionRegistry = z.infer<typeof ExtensionRegistry>;
|
|
332
|
+
/** The result of an action on extensions: its message, and the extension as it now is. */
|
|
333
|
+
export declare const ExtensionActionResult: z.ZodObject<{
|
|
334
|
+
message: z.ZodString;
|
|
335
|
+
extension: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
336
|
+
id: z.ZodNumber;
|
|
337
|
+
slug: z.ZodString;
|
|
338
|
+
displayName: z.ZodString;
|
|
339
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
340
|
+
publisher: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
341
|
+
source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
342
|
+
trustBadge: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
343
|
+
trustBadgeLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
344
|
+
enabled: z.ZodBoolean;
|
|
345
|
+
installedVersion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
346
|
+
latestVersion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
347
|
+
updateAvailable: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
348
|
+
latestCheckedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
349
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
350
|
+
detailUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
351
|
+
homepage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
352
|
+
license: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
353
|
+
docsHtml: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
354
|
+
loadError: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
355
|
+
tools: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
356
|
+
name: z.ZodString;
|
|
357
|
+
functionName: z.ZodString;
|
|
358
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
359
|
+
parameters: z.ZodOptional<z.ZodNullable<z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
|
|
360
|
+
}, z.core.$loose>>>;
|
|
361
|
+
settings: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
362
|
+
name: z.ZodString;
|
|
363
|
+
type: z.ZodString;
|
|
364
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
365
|
+
required: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
366
|
+
default: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
|
|
367
|
+
choices: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
368
|
+
value: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
|
|
369
|
+
secretId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
370
|
+
secretName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
371
|
+
isSet: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
372
|
+
}, z.core.$loose>>>;
|
|
373
|
+
missingSettings: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
374
|
+
versions: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
375
|
+
id: z.ZodNumber;
|
|
376
|
+
version: z.ZodString;
|
|
377
|
+
sha256: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
378
|
+
sourceUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
379
|
+
installedBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
380
|
+
createdAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
381
|
+
isInstalled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
382
|
+
}, z.core.$loose>>>;
|
|
383
|
+
resources: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
384
|
+
kind: z.ZodString;
|
|
385
|
+
name: z.ZodString;
|
|
386
|
+
owner: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
387
|
+
version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
388
|
+
managed: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
389
|
+
}, z.core.$loose>>>;
|
|
390
|
+
switches: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
391
|
+
name: z.ZodString;
|
|
392
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
393
|
+
active: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
394
|
+
}, z.core.$loose>>>;
|
|
395
|
+
allAccounts: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
396
|
+
accounts: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
397
|
+
id: z.ZodNumber;
|
|
398
|
+
accountNumber: z.ZodString;
|
|
399
|
+
companyName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
400
|
+
}, z.core.$loose>>>;
|
|
401
|
+
availableSecrets: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
402
|
+
id: z.ZodNumber;
|
|
403
|
+
name: z.ZodString;
|
|
404
|
+
}, z.core.$loose>>>;
|
|
405
|
+
}, z.core.$loose>>>;
|
|
406
|
+
}, z.core.$loose>;
|
|
407
|
+
export type ExtensionActionResult = z.infer<typeof ExtensionActionResult>;
|
|
408
|
+
//# sourceMappingURL=extension.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"extension.d.ts","sourceRoot":"","sources":["../../src/models/extension.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,gEAAgE;AAChE,eAAO,MAAM,qBAAqB,0EAA2D,CAAC;AAC9F,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAE1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-0,0 +1,196 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Models of the platform's extensions and of the extension registry, as `/api/v1/extensions/` returns them.
|
|
3
|
+
*
|
|
4
|
+
* An extension is a Python package that adds tools to the LLMClients that use it, e.g. `weather`. It is
|
|
5
|
+
* installed from the registry or from an uploaded .zip archive, configured and enabled by a superuser,
|
|
6
|
+
* and made available to every account or to some of them. These models are of the platform's
|
|
7
|
+
* extensions. An LLMClient's own list of the extensions that it uses is {@link LLMClientExtension}.
|
|
8
|
+
*/
|
|
9
|
+
import { z } from "zod";
|
|
10
|
+
import { JsonValue } from "../core/typing.js";
|
|
11
|
+
/** The value of an extension's setting that is not a secret. */
|
|
12
|
+
export const ExtensionSettingValue = z.union([z.string(), z.number(), z.boolean(), z.null()]);
|
|
13
|
+
/** What every view of an installed extension has: its identity, source, trust badge, state and versions. */
|
|
14
|
+
export const ExtensionSummary = z.looseObject({
|
|
15
|
+
id: z.number().int(),
|
|
16
|
+
/** The extension's slug, e.g. `weather`. */
|
|
17
|
+
slug: z.string(),
|
|
18
|
+
displayName: z.string(),
|
|
19
|
+
description: z.string().nullish(),
|
|
20
|
+
/** The publisher's registry id, or an uploaded archive's authors. */
|
|
21
|
+
publisher: z.string().nullish(),
|
|
22
|
+
/** registry or upload. */
|
|
23
|
+
source: z.string().nullish(),
|
|
24
|
+
/** official, verified, community or unverified. */
|
|
25
|
+
trustBadge: z.string().nullish(),
|
|
26
|
+
/** The badge, as people read it, e.g. `Official Smarter Extension`. */
|
|
27
|
+
trustBadgeLabel: z.string().nullish(),
|
|
28
|
+
enabled: z.boolean(),
|
|
29
|
+
installedVersion: z.string().nullish(),
|
|
30
|
+
/** The newest compatible version in the registry. */
|
|
31
|
+
latestVersion: z.string().nullish(),
|
|
32
|
+
updateAvailable: z.boolean().nullish(),
|
|
33
|
+
latestCheckedAt: z.string().nullish(),
|
|
34
|
+
/** The last error from loading the extension or running its lifecycle hooks, or an empty string. */
|
|
35
|
+
error: z.string().nullish(),
|
|
36
|
+
/** The url of the extension's page in the web console. */
|
|
37
|
+
detailUrl: z.string().nullish(),
|
|
38
|
+
});
|
|
39
|
+
/** A tool that an extension offers the LLM. */
|
|
40
|
+
export const ExtensionTool = z.looseObject({
|
|
41
|
+
/** The tool's name in the extension, e.g. `get_weather`. */
|
|
42
|
+
name: z.string(),
|
|
43
|
+
/** The name that the LLM sees, e.g. `ext_weather_get_weather`. */
|
|
44
|
+
functionName: z.string(),
|
|
45
|
+
description: z.string().nullish(),
|
|
46
|
+
/** The JSON Schema of the tool's arguments. */
|
|
47
|
+
parameters: JsonValue.nullish(),
|
|
48
|
+
});
|
|
49
|
+
/** One of an extension's settings, and its state. */
|
|
50
|
+
export const ExtensionSetting = z.looseObject({
|
|
51
|
+
name: z.string(),
|
|
52
|
+
/** string, integer, float, boolean, url, choice or secret. */
|
|
53
|
+
type: z.string(),
|
|
54
|
+
description: z.string().nullish(),
|
|
55
|
+
required: z.boolean().nullish(),
|
|
56
|
+
default: ExtensionSettingValue.nullish(),
|
|
57
|
+
/** The values of a `choice` setting. */
|
|
58
|
+
choices: z.array(z.string()).nullish(),
|
|
59
|
+
/** The configured value. Always null for a secret setting. */
|
|
60
|
+
value: ExtensionSettingValue.nullish(),
|
|
61
|
+
/** The id of a secret setting's Secret. */
|
|
62
|
+
secretId: z.number().int().nullish(),
|
|
63
|
+
/** The name of a secret setting's Secret. */
|
|
64
|
+
secretName: z.string().nullish(),
|
|
65
|
+
/** Whether the setting has a configured value, or a Secret. */
|
|
66
|
+
isSet: z.boolean().nullish(),
|
|
67
|
+
});
|
|
68
|
+
/** An installed version of an extension. */
|
|
69
|
+
export const ExtensionVersion = z.looseObject({
|
|
70
|
+
id: z.number().int(),
|
|
71
|
+
version: z.string(),
|
|
72
|
+
sha256: z.string().nullish(),
|
|
73
|
+
sourceUrl: z.string().nullish(),
|
|
74
|
+
/** The username of the superuser who installed it. Null for a user who is not a superuser. */
|
|
75
|
+
installedBy: z.string().nullish(),
|
|
76
|
+
createdAt: z.string().nullish(),
|
|
77
|
+
/** Whether it is the version that runs. */
|
|
78
|
+
isInstalled: z.boolean().nullish(),
|
|
79
|
+
});
|
|
80
|
+
/** A resource that an extension created from its manifests, e.g. a Plugin. */
|
|
81
|
+
export const ExtensionResource = z.looseObject({
|
|
82
|
+
kind: z.string(),
|
|
83
|
+
name: z.string(),
|
|
84
|
+
/** The username of the resource's owner. */
|
|
85
|
+
owner: z.string().nullish(),
|
|
86
|
+
/** The extension version that created or last applied it. */
|
|
87
|
+
version: z.string().nullish(),
|
|
88
|
+
/** Whether it came from the package's `manifests/` directory. */
|
|
89
|
+
managed: z.boolean().nullish(),
|
|
90
|
+
});
|
|
91
|
+
/** A waffle switch that an extension declares. */
|
|
92
|
+
export const ExtensionSwitch = z.looseObject({
|
|
93
|
+
/** The switch's full name, e.g. `ext_weather_verbose`. */
|
|
94
|
+
name: z.string(),
|
|
95
|
+
description: z.string().nullish(),
|
|
96
|
+
active: z.boolean().nullish(),
|
|
97
|
+
});
|
|
98
|
+
/** An account that may use an extension. */
|
|
99
|
+
export const ExtensionAccount = z.looseObject({
|
|
100
|
+
id: z.number().int(),
|
|
101
|
+
accountNumber: z.string(),
|
|
102
|
+
companyName: z.string().nullish(),
|
|
103
|
+
});
|
|
104
|
+
/** One of the platform admin's Secrets, which a secret setting may use. */
|
|
105
|
+
export const ExtensionSecretRef = z.looseObject({
|
|
106
|
+
id: z.number().int(),
|
|
107
|
+
name: z.string(),
|
|
108
|
+
});
|
|
109
|
+
/**
|
|
110
|
+
* Everything about an installed extension: its documentation, tools, settings, versions, resources,
|
|
111
|
+
* switches and availability.
|
|
112
|
+
*
|
|
113
|
+
* A user who is not a superuser gets `settings`, `accounts` and `availableSecrets` as empty lists,
|
|
114
|
+
* and each version's `installedBy` as null.
|
|
115
|
+
*/
|
|
116
|
+
export const ExtensionDetail = ExtensionSummary.extend({
|
|
117
|
+
homepage: z.string().nullish(),
|
|
118
|
+
license: z.string().nullish(),
|
|
119
|
+
/** The extension's documentation, as HTML rendered safely. */
|
|
120
|
+
docsHtml: z.string().nullish(),
|
|
121
|
+
/** Why the extension's code does not load, if it does not. */
|
|
122
|
+
loadError: z.string().nullish(),
|
|
123
|
+
tools: z.array(ExtensionTool).default([]),
|
|
124
|
+
settings: z.array(ExtensionSetting).default([]),
|
|
125
|
+
/** Required settings that block enabling the extension. */
|
|
126
|
+
missingSettings: z.array(z.string()).default([]),
|
|
127
|
+
versions: z.array(ExtensionVersion).default([]),
|
|
128
|
+
resources: z.array(ExtensionResource).default([]),
|
|
129
|
+
switches: z.array(ExtensionSwitch).default([]),
|
|
130
|
+
/** Whether every account may use it. */
|
|
131
|
+
allAccounts: z.boolean().nullish(),
|
|
132
|
+
/** The accounts that may use it, when not every account may. */
|
|
133
|
+
accounts: z.array(ExtensionAccount).default([]),
|
|
134
|
+
/** The platform admin's Secrets, for secret settings. */
|
|
135
|
+
availableSecrets: z.array(ExtensionSecretRef).default([]),
|
|
136
|
+
});
|
|
137
|
+
/** The installed extensions that the user may see, and the state of the registry. */
|
|
138
|
+
export const ExtensionList = z.looseObject({
|
|
139
|
+
objects: z.array(ExtensionSummary).default([]),
|
|
140
|
+
/** Whether the registry's public key is configured. */
|
|
141
|
+
registryEnabled: z.boolean().nullish(),
|
|
142
|
+
/** How many installed extensions have an update in the registry. */
|
|
143
|
+
updatesAvailable: z.number().int().nullish(),
|
|
144
|
+
});
|
|
145
|
+
/** The response of `GET extensions/<slug>/`, which {@link Extensions.retrieve} unwraps. */
|
|
146
|
+
export const ExtensionDetailResponse = z.looseObject({ extension: ExtensionDetail });
|
|
147
|
+
/** A released version of an extension in the registry. */
|
|
148
|
+
export const ExtensionRegistryVersion = z.looseObject({
|
|
149
|
+
version: z.string(),
|
|
150
|
+
/** The Smarter versions that it supports, e.g. `>=0.27`. */
|
|
151
|
+
requiresSmarter: z.string().nullish(),
|
|
152
|
+
releasedAt: z.string().nullish(),
|
|
153
|
+
/** Whether it works with this platform's Smarter version. */
|
|
154
|
+
compatible: z.boolean(),
|
|
155
|
+
});
|
|
156
|
+
/** An extension of the registry, and what it offers on this platform. */
|
|
157
|
+
export const ExtensionRegistryItem = z.looseObject({
|
|
158
|
+
slug: z.string(),
|
|
159
|
+
displayName: z.string(),
|
|
160
|
+
description: z.string().nullish(),
|
|
161
|
+
/** The publisher's name. */
|
|
162
|
+
publisher: z.string().nullish(),
|
|
163
|
+
publisherUrl: z.string().nullish(),
|
|
164
|
+
/** official, verified, community or unverified. */
|
|
165
|
+
trustBadge: z.string().nullish(),
|
|
166
|
+
trustBadgeLabel: z.string().nullish(),
|
|
167
|
+
homepage: z.string().nullish(),
|
|
168
|
+
license: z.string().nullish(),
|
|
169
|
+
/** The extension's documentation, as HTML rendered safely. */
|
|
170
|
+
docsHtml: z.string().nullish(),
|
|
171
|
+
/** The newest version compatible with this platform. */
|
|
172
|
+
latestVersion: z.string().nullish(),
|
|
173
|
+
/** Every released version, newest first. */
|
|
174
|
+
versions: z.array(ExtensionRegistryVersion).default([]),
|
|
175
|
+
installedVersion: z.string().nullish(),
|
|
176
|
+
/** What the platform offers: install, update, installed, uploaded or incompatible. */
|
|
177
|
+
action: z.string(),
|
|
178
|
+
/** The installed extension's page in the web console, if it is installed. */
|
|
179
|
+
detailUrl: z.string().nullish(),
|
|
180
|
+
});
|
|
181
|
+
/** The registry's extensions. */
|
|
182
|
+
export const ExtensionRegistry = z.looseObject({
|
|
183
|
+
/** Whether the registry's public key is configured. */
|
|
184
|
+
enabled: z.boolean(),
|
|
185
|
+
/** Why the registry cannot be read, if it cannot. */
|
|
186
|
+
error: z.string().nullish(),
|
|
187
|
+
objects: z.array(ExtensionRegistryItem).default([]),
|
|
188
|
+
});
|
|
189
|
+
/** The result of an action on extensions: its message, and the extension as it now is. */
|
|
190
|
+
export const ExtensionActionResult = z.looseObject({
|
|
191
|
+
/** What the action did, e.g. `Installed Weather 0.2.1. Configure its settings, then enable it.` */
|
|
192
|
+
message: z.string(),
|
|
193
|
+
/** The extension, or null after an uninstall, or for an action on no one extension (check updates). */
|
|
194
|
+
extension: ExtensionDetail.nullish(),
|
|
195
|
+
});
|
|
196
|
+
//# sourceMappingURL=extension.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"extension.js","sourceRoot":"","sources":["../../src/models/extension.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,gEAAgE;AAChE,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;AAG9F,4GAA4G;AAC5G,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC,WAAW,CAAC;IAC5C,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IACpB,4CAA4C;IAC5C,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;IACvB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE;IACjC,qEAAqE;IACrE,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE;IAC/B,0BAA0B;IAC1B,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE;IAC5B,mDAAmD;IACnD,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE;IAChC,uEAAuE;IACvE,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE;IACrC,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE;IACpB,gBAAgB,EAAE,CAAC,CAAC,MAAM,EAAE,CA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MAAM,EAAE;IAClB,6EAA6E;IAC7E,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE;CAChC,CAAC,CAAC;AAGH,iCAAiC;AACjC,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,WAAW,CAAC;IAC7C,uDAAuD;IACvD,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE;IACpB,qDAAqD;IACrD,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE;IAC3B,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;CACpD,CAAC,CAAC;AAGH,0FAA0F;AAC1F,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,CAAC,WAAW,CAAC;IACjD,mGAAmG;IACnG,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;IACnB,uGAAuG;IACvG,SAAS,EAAE,eAAe,CAAC,OAAO,EAAE;CACrC,CAAC,CAAC"}
|
package/dist/models/misc.d.ts
CHANGED
|
@@ -94,6 +94,18 @@ export declare const Vectorsearch: z.ZodObject<{
|
|
|
94
94
|
authSecret: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
95
95
|
}, z.core.$loose>;
|
|
96
96
|
export type Vectorsearch = z.infer<typeof Vectorsearch>;
|
|
97
|
+
/** The chunks that a Vectorsearch's run found in its vectorstore, best first. */
|
|
98
|
+
export declare const VectorsearchResults: z.ZodObject<{
|
|
99
|
+
vectorsearch: z.ZodString;
|
|
100
|
+
vectorstore: z.ZodString;
|
|
101
|
+
results: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
102
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
|
|
103
|
+
text: z.ZodString;
|
|
104
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodType<JsonObject, unknown, z.core.$ZodTypeInternals<JsonObject, unknown>>>>;
|
|
105
|
+
score: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
106
|
+
}, z.core.$loose>>>;
|
|
107
|
+
}, z.core.$loose>;
|
|
108
|
+
export type VectorsearchResults = z.infer<typeof VectorsearchResults>;
|
|
97
109
|
/** A chat session: one conversation with an LLMClient, by its session key. */
|
|
98
110
|
export declare const PromptSession: z.ZodObject<{
|
|
99
111
|
id: z.ZodNumber;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"misc.d.ts","sourceRoot":"","sources":["../../src/models/misc.ts"],"names":[],"mappings":"AAAA,+FAA+F;AAE/F,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"misc.d.ts","sourceRoot":"","sources":["../../src/models/misc.ts"],"names":[],"mappings":"AAAA,+FAA+F;AAE/F,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAK1D,mEAAmE;AACnE,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;iBAGjB,CAAC;AACH,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,MAAM,CAAC,CAAC;AAE5C,wEAAwE;AACxE,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAOvB,CAAC;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAExD,+DAA+D;AAC/D,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAgBvB,CAAC;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAExD,iFAAiF;AACjF,eAAO,MAAM,mBA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