@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
|
@@ -13,7 +13,7 @@ export const SAM_SCHEMAS = {
|
|
|
13
13
|
accountNumber: {
|
|
14
14
|
anyOf: [{ type: "string" }, { type: "null" }],
|
|
15
15
|
default: null,
|
|
16
|
-
description: "Account.metadata.accountNumber[str].
|
|
16
|
+
description: "Account.metadata.accountNumber[str]. The 12-digit number of the Smarter Account, in the format '####-####-####'. Applying a manifest that creates the account gives it this number, so that an organization's accounts have the same numbers on every platform; omitted, a new account gets a random one. It never changes: a manifest whose number differs from its existing account's is refused.",
|
|
17
17
|
},
|
|
18
18
|
annotations: {
|
|
19
19
|
anyOf: [{ additionalProperties: { type: "string" }, type: "object" }, { type: "null" }],
|
|
@@ -87,6 +87,11 @@ export const SAM_SCHEMAS = {
|
|
|
87
87
|
description: "Account.spec.configuration.language[str]. The primary BCP 47 language tag for the Account. Default: en-US.",
|
|
88
88
|
type: "string",
|
|
89
89
|
},
|
|
90
|
+
parent: {
|
|
91
|
+
anyOf: [{ type: "string" }, { type: "null" }],
|
|
92
|
+
default: null,
|
|
93
|
+
description: "Account.spec.configuration.parent[str]. Optional. The account number of the Account above this one in its organization, e.g. a department's company. Omitted means directly under the Smarter account, the root of the account tree.",
|
|
94
|
+
},
|
|
90
95
|
phoneNumber: {
|
|
91
96
|
anyOf: [{ type: "string" }, { type: "null" }],
|
|
92
97
|
default: null,
|
|
@@ -97,6 +102,11 @@ export const SAM_SCHEMAS = {
|
|
|
97
102
|
default: null,
|
|
98
103
|
description: "Account.spec.configuration.postalCode[str]. The postal code for the Account.",
|
|
99
104
|
},
|
|
105
|
+
shareScope: {
|
|
106
|
+
anyOf: [{ type: "string" }, { type: "null" }],
|
|
107
|
+
default: null,
|
|
108
|
+
description: "Account.spec.configuration.shareScope[str]. Optional. The account number of this Account or one of its ancestors, whose whole subtree may read this account's resources, e.g. an IT department that shares its Secrets and Connections with its company. Omitted means that the account shares nothing.",
|
|
109
|
+
},
|
|
100
110
|
state: {
|
|
101
111
|
anyOf: [{ type: "string" }, { type: "null" }],
|
|
102
112
|
default: null,
|
|
@@ -703,7 +713,7 @@ export const SAM_SCHEMAS = {
|
|
|
703
713
|
absoluteLimit: {
|
|
704
714
|
anyOf: [{ minimum: 0, type: "number" }, { type: "string" }],
|
|
705
715
|
default: "0",
|
|
706
|
-
description: "Budget.spec.config.absoluteLimit: the most that may be spent in total, from when the budget is attached. 0 means no limit.",
|
|
716
|
+
description: "Budget.spec.config.absoluteLimit: the most that may be spent in total, from when the budget is attached, in USD to the cent, or in tokens. 0 means no limit.",
|
|
707
717
|
},
|
|
708
718
|
action: {
|
|
709
719
|
default: "block",
|
|
@@ -731,7 +741,7 @@ export const SAM_SCHEMAS = {
|
|
|
731
741
|
periodicLimit: {
|
|
732
742
|
anyOf: [{ minimum: 0, type: "number" }, { type: "string" }],
|
|
733
743
|
default: "0",
|
|
734
|
-
description: "Budget.spec.config.periodicLimit: the most that may be spent in a billing period. 0 means no limit.",
|
|
744
|
+
description: "Budget.spec.config.periodicLimit: the most that may be spent in a billing period, in USD to the cent, or in tokens. 0 means no limit.",
|
|
735
745
|
},
|
|
736
746
|
unit: {
|
|
737
747
|
default: "cost",
|
|
@@ -1742,6 +1752,11 @@ export const SAM_SCHEMAS = {
|
|
|
1742
1752
|
default: null,
|
|
1743
1753
|
description: "LLMClient.spec.searchTerms[list]. Optional. The Plugins to add to the LLMClient. Plugins are a proprietary extensibility model for tool calling and are not the same as OpenAI plugins. See https://docs.smarter.sh/smarter-resources/smarter-llmtool.html for more information.",
|
|
1744
1754
|
},
|
|
1755
|
+
vectorsearches: {
|
|
1756
|
+
anyOf: [{ items: { type: "string" }, type: "array" }, { type: "null" }],
|
|
1757
|
+
default: null,
|
|
1758
|
+
description: "LLMClient.spec.vectorsearches[list]. Optional. The names of the Vectorsearches that the LLMClient offers the LLM, each as a tool that searches the documents of its Vectorstore. Example: ['stackademy_handbook']. Each must be a Vectorsearch that you own, or that is shared with you. The LLM calls one with a search query of its own, and answers from the passages that it returns.",
|
|
1759
|
+
},
|
|
1745
1760
|
},
|
|
1746
1761
|
required: ["config"],
|
|
1747
1762
|
title: "SAMLLMClientSpec",
|
|
@@ -1837,9 +1852,9 @@ export const SAM_SCHEMAS = {
|
|
|
1837
1852
|
description: "LLMClient.spec.configuration.prompt.default_temperature[float]. Optional. The default temperature to use for the llmclient. This defaults to 1.0.\nThe temperature is a floating point value between 0 and 1 that controls the randomness of the llmclient's responses. A value of 0 means that the llmclient will always choose the most likely response, while a value of 1 means that the llmclient will choose a random response. Low values work better for information retrieval tasks, while high values work better for creative tasks.",
|
|
1838
1853
|
},
|
|
1839
1854
|
deployed: {
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1855
|
+
anyOf: [{ type: "boolean" }, { type: "null" }],
|
|
1856
|
+
default: null,
|
|
1857
|
+
description: "LLMClient.spec.configuration.prompt.deployed[bool]. Optional. Whether the llmclient is deployed. Deployed means that the llmclient is available for use outside the Smarter Prompt Engineer Workbench, at its own url. true deploys it and false undeploys it, as smarter deploy and smarter undeploy do. Leave it out to keep the llmclient's deployed state as it is, e.g. when a deployed llmclient's manifest is applied again.",
|
|
1843
1858
|
},
|
|
1844
1859
|
provider: {
|
|
1845
1860
|
anyOf: [{ type: "string" }, { type: "null" }],
|
|
@@ -3266,8 +3281,13 @@ export const SAM_SCHEMAS = {
|
|
|
3266
3281
|
type: "object",
|
|
3267
3282
|
},
|
|
3268
3283
|
SAMOrchestratorHarnessConfig: {
|
|
3269
|
-
description: "A single LLMClient (Harness) membership within the Orchestrator.\n\nMirrors smarter.apps.orchestrator.models.OrchestratorHarness. The\nllmClientName is a reference by name, not by primary key
|
|
3284
|
+
description: "A single LLMClient (Harness) membership within the Orchestrator.\n\nMirrors smarter.apps.orchestrator.models.OrchestratorHarness. The\nllmClientName is a reference by name, not by primary key, resolved at\napply time: in accountNumber's account if given, which may be another\naccount, e.g. a department's, otherwise the nearest of the owner's account\ntree (ADR-036, ADR-037).",
|
|
3270
3285
|
properties: {
|
|
3286
|
+
accountNumber: {
|
|
3287
|
+
anyOf: [{ type: "string" }, { type: "null" }],
|
|
3288
|
+
default: null,
|
|
3289
|
+
description: "The account that the LLMClient belongs to, e.g. a department's, which the Orchestrator's owner must be able to read. Defaults to the nearest LLMClient of that name in the owner's account tree (ADR-036).",
|
|
3290
|
+
},
|
|
3271
3291
|
config: {
|
|
3272
3292
|
additionalProperties: true,
|
|
3273
3293
|
description: "Per-membership overrides (e.g. temperature, system prompt fragment, tool allowlist).",
|
|
@@ -5124,6 +5144,23 @@ export const SAM_SCHEMAS = {
|
|
|
5124
5144
|
title: "SAMDependency",
|
|
5125
5145
|
type: "object",
|
|
5126
5146
|
},
|
|
5147
|
+
SAMUserAccountMembership: {
|
|
5148
|
+
description: "Smarter API User Manifest User.spec.accounts[]: the user's membership of one account.",
|
|
5149
|
+
properties: {
|
|
5150
|
+
accountNumber: {
|
|
5151
|
+
description: "User.spec.accounts.accountNumber[str]. The number of an account that the User belongs to.",
|
|
5152
|
+
type: "string",
|
|
5153
|
+
},
|
|
5154
|
+
isAccountAdmin: {
|
|
5155
|
+
default: false,
|
|
5156
|
+
description: "User.spec.accounts.isAccountAdmin[bool]. Optional. Whether the User administers this account, and only this one: manages every resource in it. Default: false.",
|
|
5157
|
+
type: "boolean",
|
|
5158
|
+
},
|
|
5159
|
+
},
|
|
5160
|
+
required: ["accountNumber"],
|
|
5161
|
+
title: "SAMUserAccountMembership",
|
|
5162
|
+
type: "object",
|
|
5163
|
+
},
|
|
5127
5164
|
SAMUserMetadata: {
|
|
5128
5165
|
description: "Smarter API User Manifest - Metadata class.",
|
|
5129
5166
|
properties: {
|
|
@@ -5157,6 +5194,11 @@ export const SAM_SCHEMAS = {
|
|
|
5157
5194
|
SAMUserSpec: {
|
|
5158
5195
|
description: "Smarter API User Manifest User.spec.",
|
|
5159
5196
|
properties: {
|
|
5197
|
+
accounts: {
|
|
5198
|
+
anyOf: [{ items: { $ref: "#/$defs/SAMUserAccountMembership" }, type: "array" }, { type: "null" }],
|
|
5199
|
+
default: null,
|
|
5200
|
+
description: "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.",
|
|
5201
|
+
},
|
|
5160
5202
|
config: {
|
|
5161
5203
|
$ref: "#/$defs/SAMUserSpecConfig",
|
|
5162
5204
|
description: "User.spec.config[object]. The configuration for the User.",
|
|
@@ -5189,6 +5231,11 @@ export const SAM_SCHEMAS = {
|
|
|
5189
5231
|
default: null,
|
|
5190
5232
|
description: "User.spec.configuration.lastName[str]. Optional. The last name of the User.",
|
|
5191
5233
|
},
|
|
5234
|
+
passwordSecret: {
|
|
5235
|
+
anyOf: [{ type: "string" }, { type: "null" }],
|
|
5236
|
+
default: null,
|
|
5237
|
+
description: "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.",
|
|
5238
|
+
},
|
|
5192
5239
|
},
|
|
5193
5240
|
required: ["email", "isActive"],
|
|
5194
5241
|
title: "SAMUserSpecConfig",
|
|
@@ -5443,6 +5490,39 @@ export const SAM_SCHEMAS = {
|
|
|
5443
5490
|
title: "SAMDependency",
|
|
5444
5491
|
type: "object",
|
|
5445
5492
|
},
|
|
5493
|
+
SAMVectorstoreCondition: {
|
|
5494
|
+
description: "One of the things that a Vectorstore's database needs before it is ready, and whether it has it.\n\nA deploy has several independent points of failure, e.g. a refused api key, a volume that isn't\nbound, or a server whose image can't be pulled. Each is a condition, as in Kubernetes: its\n``status`` is ``True`` when it is met, ``False`` when it isn't, and ``Unknown`` before it is\nchecked. A Pinecone or Qdrant Cloud Vectorstore has the conditions ``Credentials`` and ``Index``,\nand a self-hosted one also ``Volume`` and ``Server``.\n\nRead only.",
|
|
5495
|
+
properties: {
|
|
5496
|
+
lastTransitionTime: {
|
|
5497
|
+
anyOf: [{ format: "date-time", type: "string" }, { type: "null" }],
|
|
5498
|
+
default: null,
|
|
5499
|
+
description: "Vectorstore.status.condition.lastTransitionTime: when its status last changed.",
|
|
5500
|
+
},
|
|
5501
|
+
message: {
|
|
5502
|
+
default: "",
|
|
5503
|
+
description: "Vectorstore.status.condition.message: what was found, for a person.",
|
|
5504
|
+
type: "string",
|
|
5505
|
+
},
|
|
5506
|
+
reason: {
|
|
5507
|
+
default: "",
|
|
5508
|
+
description: "Vectorstore.status.condition.reason: one word, e.g. Bound or ImagePullBackOff.",
|
|
5509
|
+
type: "string",
|
|
5510
|
+
},
|
|
5511
|
+
status: {
|
|
5512
|
+
description: "Vectorstore.status.condition.status: True if it is met, False if it isn't, Unknown before it is checked.",
|
|
5513
|
+
enum: ["True", "False", "Unknown"],
|
|
5514
|
+
type: "string",
|
|
5515
|
+
},
|
|
5516
|
+
type: {
|
|
5517
|
+
description: "Vectorstore.status.condition.type: Credentials, Volume, Server or Index.",
|
|
5518
|
+
enum: ["Credentials", "Volume", "Server", "Index"],
|
|
5519
|
+
type: "string",
|
|
5520
|
+
},
|
|
5521
|
+
},
|
|
5522
|
+
required: ["type", "status"],
|
|
5523
|
+
title: "SAMVectorstoreCondition",
|
|
5524
|
+
type: "object",
|
|
5525
|
+
},
|
|
5446
5526
|
SAMVectorstoreEmbeddings: {
|
|
5447
5527
|
description: "Vectorstore.spec.embeddings: how documents and queries are turned into vectors.",
|
|
5448
5528
|
properties: {
|
|
@@ -5674,6 +5754,16 @@ export const SAM_SCHEMAS = {
|
|
|
5674
5754
|
default: null,
|
|
5675
5755
|
description: "Vectorstore.status.apiKeySecret: the Secret with a self-hosted database's API key.",
|
|
5676
5756
|
},
|
|
5757
|
+
attempt: {
|
|
5758
|
+
anyOf: [{ type: "integer" }, { type: "null" }],
|
|
5759
|
+
default: null,
|
|
5760
|
+
description: "Vectorstore.status.attempt: the number of checks that its last deploy has made.",
|
|
5761
|
+
},
|
|
5762
|
+
conditions: {
|
|
5763
|
+
description: "Vectorstore.status.conditions: what its database needs to be ready, as of its last deploy or check.",
|
|
5764
|
+
items: { $ref: "#/$defs/SAMVectorstoreCondition" },
|
|
5765
|
+
type: "array",
|
|
5766
|
+
},
|
|
5677
5767
|
created: {
|
|
5678
5768
|
description: "The date in which this resource was created. Read only.",
|
|
5679
5769
|
format: "date-time",
|
|
@@ -5709,6 +5799,11 @@ export const SAM_SCHEMAS = {
|
|
|
5709
5799
|
default: null,
|
|
5710
5800
|
description: "Vectorstore.status.lastCheckedAt: when its status was last checked. Read only.",
|
|
5711
5801
|
},
|
|
5802
|
+
lastError: {
|
|
5803
|
+
anyOf: [{ type: "string" }, { type: "null" }],
|
|
5804
|
+
default: null,
|
|
5805
|
+
description: "Vectorstore.status.lastError: the last error of its last deploy, which may have been retried since.",
|
|
5806
|
+
},
|
|
5712
5807
|
lastMaintenanceAt: {
|
|
5713
5808
|
anyOf: [{ format: "date-time", type: "string" }, { type: "null" }],
|
|
5714
5809
|
default: null,
|
|
@@ -5719,16 +5814,26 @@ export const SAM_SCHEMAS = {
|
|
|
5719
5814
|
default: null,
|
|
5720
5815
|
description: "Vectorstore.status.lastSnapshotAt: when its last snapshot was taken. Read only.",
|
|
5721
5816
|
},
|
|
5817
|
+
maxAttempts: {
|
|
5818
|
+
anyOf: [{ type: "integer" }, { type: "null" }],
|
|
5819
|
+
default: null,
|
|
5820
|
+
description: "Vectorstore.status.maxAttempts: the checks that a deploy makes before it fails.",
|
|
5821
|
+
},
|
|
5722
5822
|
message: {
|
|
5723
5823
|
anyOf: [{ type: "string" }, { type: "null" }],
|
|
5724
5824
|
default: null,
|
|
5725
|
-
description: "Vectorstore.status.message:
|
|
5825
|
+
description: "Vectorstore.status.message: what is happening, e.g. what a deploy waits for, or why it failed.",
|
|
5726
5826
|
},
|
|
5727
5827
|
modified: {
|
|
5728
5828
|
description: "The date in which this resource was most recently changed. Read only.",
|
|
5729
5829
|
format: "date-time",
|
|
5730
5830
|
type: "string",
|
|
5731
5831
|
},
|
|
5832
|
+
nextRetryAt: {
|
|
5833
|
+
anyOf: [{ format: "date-time", type: "string" }, { type: "null" }],
|
|
5834
|
+
default: null,
|
|
5835
|
+
description: "Vectorstore.status.nextRetryAt: when a deploy in progress checks again.",
|
|
5836
|
+
},
|
|
5732
5837
|
recordLocator: {
|
|
5733
5838
|
description: "recordLocator[String]: An optional identifier used to locate the resource record associated with this manifest. Read only.",
|
|
5734
5839
|
type: "string",
|