@smarter.sh/api 0.0.0-stage → 1.0.1
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/LICENSE.txt +671 -0
- package/README.md +193 -2
- package/dist/client.d.ts +146 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/client.js +178 -0
- package/dist/client.js.map +1 -0
- package/dist/core/config.d.ts +148 -0
- package/dist/core/config.d.ts.map +1 -0
- package/dist/core/config.js +212 -0
- package/dist/core/config.js.map +1 -0
- package/dist/core/errors.d.ts +189 -0
- package/dist/core/errors.d.ts.map +1 -0
- package/dist/core/errors.js +187 -0
- package/dist/core/errors.js.map +1 -0
- package/dist/core/http.d.ts +207 -0
- package/dist/core/http.d.ts.map +1 -0
- package/dist/core/http.js +456 -0
- package/dist/core/http.js.map +1 -0
- package/dist/core/log.d.ts +62 -0
- package/dist/core/log.d.ts.map +1 -0
- package/dist/core/log.js +68 -0
- package/dist/core/log.js.map +1 -0
- package/dist/core/sse.d.ts +38 -0
- package/dist/core/sse.d.ts.map +1 -0
- package/dist/core/sse.js +79 -0
- package/dist/core/sse.js.map +1 -0
- package/dist/core/typing.d.ts +21 -0
- package/dist/core/typing.d.ts.map +1 -0
- package/dist/core/typing.js +13 -0
- package/dist/core/typing.js.map +1 -0
- package/dist/index.d.ts +51 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +51 -0
- package/dist/index.js.map +1 -0
- package/dist/models/account.d.ts +112 -0
- package/dist/models/account.d.ts.map +1 -0
- package/dist/models/account.js +55 -0
- package/dist/models/account.js.map +1 -0
- package/dist/models/base.d.ts +99 -0
- package/dist/models/base.d.ts.map +1 -0
- package/dist/models/base.js +111 -0
- package/dist/models/base.js.map +1 -0
- package/dist/models/chat.d.ts +2243 -0
- package/dist/models/chat.d.ts.map +1 -0
- package/dist/models/chat.js +451 -0
- package/dist/models/chat.js.map +1 -0
- package/dist/models/guardrail.d.ts +109 -0
- package/dist/models/guardrail.d.ts.map +1 -0
- package/dist/models/guardrail.js +68 -0
- package/dist/models/guardrail.js.map +1 -0
- package/dist/models/journal.d.ts +159 -0
- package/dist/models/journal.d.ts.map +1 -0
- package/dist/models/journal.js +115 -0
- package/dist/models/journal.js.map +1 -0
- package/dist/models/llmclient.d.ts +183 -0
- package/dist/models/llmclient.d.ts.map +1 -0
- package/dist/models/llmclient.js +105 -0
- package/dist/models/llmclient.js.map +1 -0
- package/dist/models/llmhost.d.ts +121 -0
- package/dist/models/llmhost.d.ts.map +1 -0
- package/dist/models/llmhost.js +79 -0
- package/dist/models/llmhost.js.map +1 -0
- package/dist/models/manifest.d.ts +211 -0
- package/dist/models/manifest.d.ts.map +1 -0
- package/dist/models/manifest.js +290 -0
- package/dist/models/manifest.js.map +1 -0
- package/dist/models/mcpclient.d.ts +99 -0
- package/dist/models/mcpclient.d.ts.map +1 -0
- package/dist/models/mcpclient.js +65 -0
- package/dist/models/mcpclient.js.map +1 -0
- package/dist/models/misc.d.ts +232 -0
- package/dist/models/misc.d.ts.map +1 -0
- package/dist/models/misc.js +110 -0
- package/dist/models/misc.js.map +1 -0
- package/dist/models/platform.d.ts +88 -0
- package/dist/models/platform.d.ts.map +1 -0
- package/dist/models/platform.js +35 -0
- package/dist/models/platform.js.map +1 -0
- package/dist/models/plugin.d.ts +36 -0
- package/dist/models/plugin.d.ts.map +1 -0
- package/dist/models/plugin.js +16 -0
- package/dist/models/plugin.js.map +1 -0
- package/dist/models/react.d.ts +104 -0
- package/dist/models/react.d.ts.map +1 -0
- package/dist/models/react.js +136 -0
- package/dist/models/react.js.map +1 -0
- package/dist/models/sam/account.d.ts +155 -0
- package/dist/models/sam/account.d.ts.map +1 -0
- package/dist/models/sam/account.js +7 -0
- package/dist/models/sam/account.js.map +1 -0
- package/dist/models/sam/apiconnection.d.ts +147 -0
- package/dist/models/sam/apiconnection.d.ts.map +1 -0
- package/dist/models/sam/apiconnection.js +7 -0
- package/dist/models/sam/apiconnection.js.map +1 -0
- package/dist/models/sam/apiplugin.d.ts +278 -0
- package/dist/models/sam/apiplugin.d.ts.map +1 -0
- package/dist/models/sam/apiplugin.js +7 -0
- package/dist/models/sam/apiplugin.js.map +1 -0
- package/dist/models/sam/budget.d.ts +219 -0
- package/dist/models/sam/budget.d.ts.map +1 -0
- package/dist/models/sam/budget.js +7 -0
- package/dist/models/sam/budget.js.map +1 -0
- package/dist/models/sam/customdomain.d.ts +139 -0
- package/dist/models/sam/customdomain.d.ts.map +1 -0
- package/dist/models/sam/customdomain.js +7 -0
- package/dist/models/sam/customdomain.js.map +1 -0
- package/dist/models/sam/guardrail.d.ts +222 -0
- package/dist/models/sam/guardrail.d.ts.map +1 -0
- package/dist/models/sam/guardrail.js +7 -0
- package/dist/models/sam/guardrail.js.map +1 -0
- package/dist/models/sam/imagesearchplugin.d.ts +235 -0
- package/dist/models/sam/imagesearchplugin.d.ts.map +1 -0
- package/dist/models/sam/imagesearchplugin.js +7 -0
- package/dist/models/sam/imagesearchplugin.js.map +1 -0
- package/dist/models/sam/index.d.ts +104 -0
- package/dist/models/sam/index.d.ts.map +1 -0
- package/dist/models/sam/index.js +50 -0
- package/dist/models/sam/index.js.map +1 -0
- package/dist/models/sam/llmclient.d.ts +490 -0
- package/dist/models/sam/llmclient.d.ts.map +1 -0
- package/dist/models/sam/llmclient.js +7 -0
- package/dist/models/sam/llmclient.js.map +1 -0
- package/dist/models/sam/llmhost.d.ts +429 -0
- package/dist/models/sam/llmhost.d.ts.map +1 -0
- package/dist/models/sam/llmhost.js +7 -0
- package/dist/models/sam/llmhost.js.map +1 -0
- package/dist/models/sam/llmhostcompute.d.ts +221 -0
- package/dist/models/sam/llmhostcompute.d.ts.map +1 -0
- package/dist/models/sam/llmhostcompute.js +7 -0
- package/dist/models/sam/llmhostcompute.js.map +1 -0
- package/dist/models/sam/mcpclient.d.ts +195 -0
- package/dist/models/sam/mcpclient.d.ts.map +1 -0
- package/dist/models/sam/mcpclient.js +7 -0
- package/dist/models/sam/mcpclient.js.map +1 -0
- package/dist/models/sam/orchestrator.d.ts +163 -0
- package/dist/models/sam/orchestrator.d.ts.map +1 -0
- package/dist/models/sam/orchestrator.js +7 -0
- package/dist/models/sam/orchestrator.js.map +1 -0
- package/dist/models/sam/plugin.d.ts +163 -0
- package/dist/models/sam/plugin.d.ts.map +1 -0
- package/dist/models/sam/plugin.js +7 -0
- package/dist/models/sam/plugin.js.map +1 -0
- package/dist/models/sam/prompt.d.ts +116 -0
- package/dist/models/sam/prompt.d.ts.map +1 -0
- package/dist/models/sam/prompt.js +7 -0
- package/dist/models/sam/prompt.js.map +1 -0
- package/dist/models/sam/provider.d.ts +195 -0
- package/dist/models/sam/provider.d.ts.map +1 -0
- package/dist/models/sam/provider.js +7 -0
- package/dist/models/sam/provider.js.map +1 -0
- package/dist/models/sam/proxy.d.ts +163 -0
- package/dist/models/sam/proxy.d.ts.map +1 -0
- package/dist/models/sam/proxy.js +7 -0
- package/dist/models/sam/proxy.js.map +1 -0
- package/dist/models/sam/schemas.d.ts +8 -0
- package/dist/models/sam/schemas.d.ts.map +1 -0
- package/dist/models/sam/schemas.js +6059 -0
- package/dist/models/sam/schemas.js.map +1 -0
- package/dist/models/sam/secret.d.ts +123 -0
- package/dist/models/sam/secret.d.ts.map +1 -0
- package/dist/models/sam/secret.js +7 -0
- package/dist/models/sam/secret.js.map +1 -0
- package/dist/models/sam/skillplugin.d.ts +181 -0
- package/dist/models/sam/skillplugin.d.ts.map +1 -0
- package/dist/models/sam/skillplugin.js +7 -0
- package/dist/models/sam/skillplugin.js.map +1 -0
- package/dist/models/sam/smarterauthtoken.d.ts +115 -0
- package/dist/models/sam/smarterauthtoken.d.ts.map +1 -0
- package/dist/models/sam/smarterauthtoken.js +7 -0
- package/dist/models/sam/smarterauthtoken.js.map +1 -0
- package/dist/models/sam/sqlconnection.d.ts +187 -0
- package/dist/models/sam/sqlconnection.d.ts.map +1 -0
- package/dist/models/sam/sqlconnection.js +7 -0
- package/dist/models/sam/sqlconnection.js.map +1 -0
- package/dist/models/sam/sqlplugin.d.ts +232 -0
- package/dist/models/sam/sqlplugin.d.ts.map +1 -0
- package/dist/models/sam/sqlplugin.js +7 -0
- package/dist/models/sam/sqlplugin.js.map +1 -0
- package/dist/models/sam/user.d.ts +135 -0
- package/dist/models/sam/user.d.ts.map +1 -0
- package/dist/models/sam/user.js +7 -0
- package/dist/models/sam/user.js.map +1 -0
- package/dist/models/sam/vectorsearch.d.ts +150 -0
- package/dist/models/sam/vectorsearch.d.ts.map +1 -0
- package/dist/models/sam/vectorsearch.js +7 -0
- package/dist/models/sam/vectorsearch.js.map +1 -0
- package/dist/models/sam/vectorstore.d.ts +291 -0
- package/dist/models/sam/vectorstore.d.ts.map +1 -0
- package/dist/models/sam/vectorstore.js +7 -0
- package/dist/models/sam/vectorstore.js.map +1 -0
- package/dist/models/sam/websearchplugin.d.ts +229 -0
- package/dist/models/sam/websearchplugin.d.ts.map +1 -0
- package/dist/models/sam/websearchplugin.js +7 -0
- package/dist/models/sam/websearchplugin.js.map +1 -0
- package/dist/models/vectorstore.d.ts +165 -0
- package/dist/models/vectorstore.d.ts.map +1 -0
- package/dist/models/vectorstore.js +90 -0
- package/dist/models/vectorstore.js.map +1 -0
- package/dist/resources/accounts.d.ts +107 -0
- package/dist/resources/accounts.d.ts.map +1 -0
- package/dist/resources/accounts.js +84 -0
- package/dist/resources/accounts.js.map +1 -0
- package/dist/resources/base.d.ts +127 -0
- package/dist/resources/base.d.ts.map +1 -0
- package/dist/resources/base.js +139 -0
- package/dist/resources/base.js.map +1 -0
- package/dist/resources/catalog.d.ts +209 -0
- package/dist/resources/catalog.d.ts.map +1 -0
- package/dist/resources/catalog.js +124 -0
- package/dist/resources/catalog.js.map +1 -0
- package/dist/resources/guardrails.d.ts +82 -0
- package/dist/resources/guardrails.d.ts.map +1 -0
- package/dist/resources/guardrails.js +46 -0
- package/dist/resources/guardrails.js.map +1 -0
- package/dist/resources/history.d.ts +97 -0
- package/dist/resources/history.d.ts.map +1 -0
- package/dist/resources/history.js +109 -0
- package/dist/resources/history.js.map +1 -0
- package/dist/resources/llmclients.d.ts +348 -0
- package/dist/resources/llmclients.d.ts.map +1 -0
- package/dist/resources/llmclients.js +367 -0
- package/dist/resources/llmclients.js.map +1 -0
- package/dist/resources/llmhosts.d.ts +146 -0
- package/dist/resources/llmhosts.d.ts.map +1 -0
- package/dist/resources/llmhosts.js +128 -0
- package/dist/resources/llmhosts.js.map +1 -0
- package/dist/resources/manifests.d.ts +153 -0
- package/dist/resources/manifests.d.ts.map +1 -0
- package/dist/resources/manifests.js +203 -0
- package/dist/resources/manifests.js.map +1 -0
- package/dist/resources/mcpclients.d.ts +90 -0
- package/dist/resources/mcpclients.d.ts.map +1 -0
- package/dist/resources/mcpclients.js +57 -0
- package/dist/resources/mcpclients.js.map +1 -0
- package/dist/resources/providers.d.ts +33 -0
- package/dist/resources/providers.d.ts.map +1 -0
- package/dist/resources/providers.js +39 -0
- package/dist/resources/providers.js.map +1 -0
- package/dist/resources/proxies.d.ts +61 -0
- package/dist/resources/proxies.d.ts.map +1 -0
- package/dist/resources/proxies.js +57 -0
- package/dist/resources/proxies.js.map +1 -0
- package/dist/resources/vectorstores.d.ts +194 -0
- package/dist/resources/vectorstores.d.ts.map +1 -0
- package/dist/resources/vectorstores.js +200 -0
- package/dist/resources/vectorstores.js.map +1 -0
- package/dist/version.d.ts +3 -0
- package/dist/version.d.ts.map +1 -0
- package/dist/version.js +5 -0
- package/dist/version.js.map +1 -0
- package/package.json +81 -4
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The SAM type of the `SqlPlugin` kind, generated from the Smarter platform's JSON Schema.
|
|
3
|
+
*
|
|
4
|
+
* Do not edit: run `make sam-models`. See `src/models/sam/index.ts`.
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* The data type of the parameter (one of: string, number, integer, boolean, object, array, null).
|
|
8
|
+
*/
|
|
9
|
+
export type ParameterType = "string" | "number" | "integer" | "boolean" | "object" | "array" | "null";
|
|
10
|
+
/**
|
|
11
|
+
* Smarter API Manifest - Sql Connection Model.
|
|
12
|
+
*/
|
|
13
|
+
export interface SAMSqlPlugin {
|
|
14
|
+
/**
|
|
15
|
+
* apiVersion[String]: Required. The API version of the AbstractSAMBase.
|
|
16
|
+
*/
|
|
17
|
+
apiVersion: string;
|
|
18
|
+
/**
|
|
19
|
+
* kind[String]: Required. The kind of resource described by the manifest.
|
|
20
|
+
*/
|
|
21
|
+
kind: string;
|
|
22
|
+
metadata: SAMPluginCommonMetadata;
|
|
23
|
+
spec: SAMSqlPluginSpec;
|
|
24
|
+
/**
|
|
25
|
+
* Plugin.status[obj]: Optional, Read-only. Stateful status information about the Plugin.
|
|
26
|
+
*/
|
|
27
|
+
status?: SAMPluginCommonStatus | null;
|
|
28
|
+
[k: string]: unknown | undefined;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Plugin.metadata[obj]: Required, the Plugin metadata.
|
|
32
|
+
*/
|
|
33
|
+
export interface SAMPluginCommonMetadata {
|
|
34
|
+
/**
|
|
35
|
+
* Annotations, as in Kubernetes: a map of keys to string values that clients and integrations attach to a resource for their own purposes, e.g. to associate it with a resource in another system. A key is an optional DNS-subdomain prefix that names its owner, then a slash and a name of one or more slash-separated segments, e.g. 'acme.com/crm-account-id'. The prefix 'smarter.sh' and its subdomains are reserved for the Smarter platform. Values are strings: unquoted YAML scalars such as true, 42 or dates are converted to strings, and structured data belongs in a JSON string. All annotations together are limited to 256 KiB. The list of one-key maps of older manifests, e.g. [{'acme.com/crm-account-id': 'A-10042'}], is also accepted.
|
|
36
|
+
*/
|
|
37
|
+
annotations?: {
|
|
38
|
+
[k: string]: string | undefined;
|
|
39
|
+
} | null;
|
|
40
|
+
/**
|
|
41
|
+
* The description for this resource. Be brief. Keep it under 255 characters.
|
|
42
|
+
*/
|
|
43
|
+
description: string | null;
|
|
44
|
+
/**
|
|
45
|
+
* The camelCase name of the manifest resource
|
|
46
|
+
*/
|
|
47
|
+
name: string;
|
|
48
|
+
/**
|
|
49
|
+
* The class of the plugin. one of: ['api', 'imagesearch', 'skill', 'sql', 'static', 'websearch']
|
|
50
|
+
*/
|
|
51
|
+
pluginClass: string;
|
|
52
|
+
/**
|
|
53
|
+
* The tags of the manifest. Used for generic resource categorization and search. Example: ['tag1', 'tag2']
|
|
54
|
+
*/
|
|
55
|
+
tags?: string[] | null;
|
|
56
|
+
/**
|
|
57
|
+
* The semantic version of the manifest. Example: 0.1.0
|
|
58
|
+
*/
|
|
59
|
+
version: string | null;
|
|
60
|
+
[k: string]: unknown | undefined;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* SqlPlugin.spec[obj]: Required, the SqlPlugin specification.
|
|
64
|
+
*/
|
|
65
|
+
export interface SAMSqlPluginSpec {
|
|
66
|
+
/**
|
|
67
|
+
* SqlPlugin.spec.selector[obj]: the name of an existing SqlConnector to use for the SqlPlugin
|
|
68
|
+
*/
|
|
69
|
+
connection: string;
|
|
70
|
+
prompt: SAMPluginCommonSpecPrompt;
|
|
71
|
+
selector: SAMPluginCommonSpecSelector;
|
|
72
|
+
sqlData: SqlData;
|
|
73
|
+
[k: string]: unknown | undefined;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Plugin.spec.prompt[obj]: the LLM prompt engineering to apply to the Plugin
|
|
77
|
+
*/
|
|
78
|
+
export interface SAMPluginCommonSpecPrompt {
|
|
79
|
+
/**
|
|
80
|
+
* Plugin.spec.prompt.maxTokens[int]. Optional. The maxTokens of the Plugin. Defaults to 2048. The maximum number of tokens the LLM should generate in the prompt response.
|
|
81
|
+
*/
|
|
82
|
+
maxTokens?: number;
|
|
83
|
+
/**
|
|
84
|
+
* Plugin.spec.prompt.model[str] Optional. The model of the Plugin. Defaults to gpt-6-luna. Must be one of: ['chat-latest', 'gpt-4.1', 'gpt-4.1-2025-04-14', 'gpt-4.1-mini', 'gpt-4.1-mini-2025-04-14', 'gpt-4o', 'gpt-4o-2024-08-06', 'gpt-4o-2024-11-20', 'gpt-4o-mini', 'gpt-4o-mini-2024-07-18', 'gpt-5-search-api', 'gpt-5-search-api-2025-10-14', 'gpt-5.2', 'gpt-5.2-2025-12-11', 'gpt-5.4', 'gpt-5.4-2026-03-05', 'gpt-5.4-mini', 'gpt-5.4-mini-2026-03-17', 'gpt-5.5', 'gpt-5.5-2026-04-23', 'gpt-5.6-luna', 'gpt-5.6-sol', 'gpt-5.6-terra', 'gpt-6-astra', 'gpt-6-luna', 'gpt-6-sol', 'gpt-6.1-sol']
|
|
85
|
+
*/
|
|
86
|
+
model?: string;
|
|
87
|
+
/**
|
|
88
|
+
* Plugin.spec.prompt.provider[str]. Optional. The provider of the LLM. Defaults to openai. The provider is the vendor name for the LLM service that will be used to generate the prompt response.
|
|
89
|
+
*/
|
|
90
|
+
provider?: string;
|
|
91
|
+
/**
|
|
92
|
+
* Plugin.spec.prompt.systemRole[str]. Required. The system role that the Plugin will use for the LLM text completion prompt. Be verbose and specific. Ensure that systemRole accurately conveys to the LLM how you want it to use the Plugin data that is returned. The maximum length is 32768 characters.
|
|
93
|
+
*/
|
|
94
|
+
systemRole: string;
|
|
95
|
+
/**
|
|
96
|
+
* Plugin.spec.prompt.temperature[float] Optional. The temperature of the Plugin. Defaults to 1.0. Should be between 0 and 1.0. The higher the temperature, the more creative the response. The lower the temperature, the more predictable the response.
|
|
97
|
+
*/
|
|
98
|
+
temperature?: number;
|
|
99
|
+
[k: string]: unknown | undefined;
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Plugin.spec.selector[obj]: the selector logic to use for the Plugin
|
|
103
|
+
*/
|
|
104
|
+
export interface SAMPluginCommonSpecSelector {
|
|
105
|
+
/**
|
|
106
|
+
* Plugin.spec.selector.directive[str]: Required. the kind of selector directive to use for the Plugin. Must be one of: ['search_terms', 'always', 'llm']
|
|
107
|
+
*/
|
|
108
|
+
directive: string;
|
|
109
|
+
/**
|
|
110
|
+
* Plugin.spec.selector.searchTerms[list]. Optional. The keyword search terms to use when the Plugin directive is 'search_terms'. Keywords are most effective when constrained to 1 or 2 words each and lists are limited to a few dozen items.
|
|
111
|
+
*/
|
|
112
|
+
searchTerms?: string[] | null;
|
|
113
|
+
[k: string]: unknown | undefined;
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* SqlPlugin.spec.selector[obj]: the SqlData to use for the SqlPlugin
|
|
117
|
+
*/
|
|
118
|
+
export interface SqlData {
|
|
119
|
+
/**
|
|
120
|
+
* The maximum number of rows to return from the query. Must be a non-negative integer.
|
|
121
|
+
*/
|
|
122
|
+
limit?: number | null;
|
|
123
|
+
/**
|
|
124
|
+
* A JSON dict containing parameter names and data types. Example: {'unit': {'type': 'string', 'enum': ['Celsius', 'Fahrenheit'], 'description': 'The temperature unit to use.'}}
|
|
125
|
+
*/
|
|
126
|
+
parameters?: Parameter[] | null;
|
|
127
|
+
/**
|
|
128
|
+
* The SQL query that this plugin will execute when invoked by the user prompt.
|
|
129
|
+
*/
|
|
130
|
+
sqlQuery: string;
|
|
131
|
+
/**
|
|
132
|
+
* A JSON dict containing test values for each parameter. Example: {'product_id': 1234}.
|
|
133
|
+
*/
|
|
134
|
+
testValues?: TestValue[] | null;
|
|
135
|
+
[k: string]: unknown | undefined;
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* Parameter class for parameterized Plugins.
|
|
139
|
+
*
|
|
140
|
+
* This structure is
|
|
141
|
+
* intended to match that which is used in the OpenAPI
|
|
142
|
+
* function calling specification.
|
|
143
|
+
* It is used to define the parameters that a plugin can accept,
|
|
144
|
+
* and also for creating the function calling prompt api.
|
|
145
|
+
*/
|
|
146
|
+
export interface Parameter {
|
|
147
|
+
/**
|
|
148
|
+
* The default value of the parameter, if any.
|
|
149
|
+
*/
|
|
150
|
+
default?: {
|
|
151
|
+
[k: string]: unknown | undefined;
|
|
152
|
+
};
|
|
153
|
+
/**
|
|
154
|
+
* A description of the parameter.
|
|
155
|
+
*/
|
|
156
|
+
description?: string | null;
|
|
157
|
+
/**
|
|
158
|
+
* A list of allowed values for the parameter. Example: ['Celsius', 'Fahrenheit']
|
|
159
|
+
*/
|
|
160
|
+
enum?: string[] | null;
|
|
161
|
+
/**
|
|
162
|
+
* The name of the parameter.
|
|
163
|
+
*/
|
|
164
|
+
name: string;
|
|
165
|
+
/**
|
|
166
|
+
* Whether the parameter is required.
|
|
167
|
+
*/
|
|
168
|
+
required?: boolean;
|
|
169
|
+
type: ParameterType;
|
|
170
|
+
[k: string]: unknown | undefined;
|
|
171
|
+
}
|
|
172
|
+
/**
|
|
173
|
+
* TestValue class for SqlPlugin and ApiPlugin test values.
|
|
174
|
+
*/
|
|
175
|
+
export interface TestValue {
|
|
176
|
+
/**
|
|
177
|
+
* The name of the parameter being tested.
|
|
178
|
+
*/
|
|
179
|
+
name: string;
|
|
180
|
+
/**
|
|
181
|
+
* The test value for the parameter.
|
|
182
|
+
*/
|
|
183
|
+
value: {
|
|
184
|
+
[k: string]: unknown | undefined;
|
|
185
|
+
};
|
|
186
|
+
[k: string]: unknown | undefined;
|
|
187
|
+
}
|
|
188
|
+
/**
|
|
189
|
+
* Smarter API Plugin Manifest - Status class.
|
|
190
|
+
*/
|
|
191
|
+
export interface SAMPluginCommonStatus {
|
|
192
|
+
/**
|
|
193
|
+
* Plugin.status.account_number: The account owner of this Plugin. Read only.
|
|
194
|
+
*/
|
|
195
|
+
accountNumber: string;
|
|
196
|
+
/**
|
|
197
|
+
* The date in which this resource was created. Read only.
|
|
198
|
+
*/
|
|
199
|
+
created: string;
|
|
200
|
+
/**
|
|
201
|
+
* dependencies[List]: The resources that depend on this resource, and that must be deleted, or stop referring to it, before it can be deleted. Lists only the resources that you can read. Read only.
|
|
202
|
+
*/
|
|
203
|
+
dependencies?: SAMDependency[] | null;
|
|
204
|
+
/**
|
|
205
|
+
* The date in which this resource was most recently changed. Read only.
|
|
206
|
+
*/
|
|
207
|
+
modified: string;
|
|
208
|
+
/**
|
|
209
|
+
* recordLocator[String]: An optional identifier used to locate the resource record associated with this manifest. Read only.
|
|
210
|
+
*/
|
|
211
|
+
recordLocator: string;
|
|
212
|
+
/**
|
|
213
|
+
* Plugin.status.account_number: The Smarter user who created this Plugin. Read only.
|
|
214
|
+
*/
|
|
215
|
+
username: string;
|
|
216
|
+
[k: string]: unknown | undefined;
|
|
217
|
+
}
|
|
218
|
+
/**
|
|
219
|
+
* A resource that depends on the resource that a manifest describes.
|
|
220
|
+
*/
|
|
221
|
+
export interface SAMDependency {
|
|
222
|
+
/**
|
|
223
|
+
* kind[String]: The SAM kind of the resource that depends on this resource, e.g. LLMClient. Read only.
|
|
224
|
+
*/
|
|
225
|
+
kind: string;
|
|
226
|
+
/**
|
|
227
|
+
* name[String]: The name of the resource that depends on this resource. Read only.
|
|
228
|
+
*/
|
|
229
|
+
name: string;
|
|
230
|
+
[k: string]: unknown | undefined;
|
|
231
|
+
}
|
|
232
|
+
//# sourceMappingURL=sqlplugin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sqlplugin.d.ts","sourceRoot":"","sources":["../../../src/models/sam/sqlplugin.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,GAAG,OAAO,GAAG,MAAM,CAAC;AAEtG;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,uBAAuB,CAAC;IAClC,IAAI,EAAE,gBAAgB,CAAC;IACvB;;OAEG;IACH,MAAM,CAAC,EAAE,qBAAqB,GAAG,IAAI,CAAC;IACtC,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;CAClC;AACD;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,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ACH,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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sqlplugin.js","sourceRoot":"","sources":["../../../src/models/sam/sqlplugin.ts"],"names":[],"mappings":"AAAA;;;;GAIG"}
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The SAM type of the `User` kind, generated from the Smarter platform's JSON Schema.
|
|
3
|
+
*
|
|
4
|
+
* Do not edit: run `make sam-models`. See `src/models/sam/index.ts`.
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Smarter API Manifest - User
|
|
8
|
+
*/
|
|
9
|
+
export interface SAMUser {
|
|
10
|
+
/**
|
|
11
|
+
* apiVersion[String]: Required. The API version of the AbstractSAMBase.
|
|
12
|
+
*/
|
|
13
|
+
apiVersion: string;
|
|
14
|
+
/**
|
|
15
|
+
* kind[String]: Required. The kind of resource described by the manifest.
|
|
16
|
+
*/
|
|
17
|
+
kind: string;
|
|
18
|
+
metadata: SAMUserMetadata;
|
|
19
|
+
spec: SAMUserSpec;
|
|
20
|
+
/**
|
|
21
|
+
* User.status[obj]: Optional, Read-only. Stateful status information about the User.
|
|
22
|
+
*/
|
|
23
|
+
status?: SAMUserStatus | null;
|
|
24
|
+
[k: string]: unknown | undefined;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* User.metadata[obj]: Required, the User metadata.
|
|
28
|
+
*/
|
|
29
|
+
export interface SAMUserMetadata {
|
|
30
|
+
/**
|
|
31
|
+
* Annotations, as in Kubernetes: a map of keys to string values that clients and integrations attach to a resource for their own purposes, e.g. to associate it with a resource in another system. A key is an optional DNS-subdomain prefix that names its owner, then a slash and a name of one or more slash-separated segments, e.g. 'acme.com/crm-account-id'. The prefix 'smarter.sh' and its subdomains are reserved for the Smarter platform. Values are strings: unquoted YAML scalars such as true, 42 or dates are converted to strings, and structured data belongs in a JSON string. All annotations together are limited to 256 KiB. The list of one-key maps of older manifests, e.g. [{'acme.com/crm-account-id': 'A-10042'}], is also accepted.
|
|
32
|
+
*/
|
|
33
|
+
annotations?: {
|
|
34
|
+
[k: string]: string | undefined;
|
|
35
|
+
} | null;
|
|
36
|
+
/**
|
|
37
|
+
* The description for this resource. Be brief. Keep it under 255 characters.
|
|
38
|
+
*/
|
|
39
|
+
description: string | null;
|
|
40
|
+
/**
|
|
41
|
+
* The camelCase name of the manifest resource
|
|
42
|
+
*/
|
|
43
|
+
name: string;
|
|
44
|
+
/**
|
|
45
|
+
* The tags of the manifest. Used for generic resource categorization and search. Example: ['tag1', 'tag2']
|
|
46
|
+
*/
|
|
47
|
+
tags?: string[] | null;
|
|
48
|
+
/**
|
|
49
|
+
* User.metadata.username[str]. Required. The Django username of the user.
|
|
50
|
+
*/
|
|
51
|
+
username: string;
|
|
52
|
+
/**
|
|
53
|
+
* The semantic version of the manifest. Example: 0.1.0
|
|
54
|
+
*/
|
|
55
|
+
version: string | null;
|
|
56
|
+
[k: string]: unknown | undefined;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* User.spec[obj]: Required, the User specification.
|
|
60
|
+
*/
|
|
61
|
+
export interface SAMUserSpec {
|
|
62
|
+
config: SAMUserSpecConfig;
|
|
63
|
+
[k: string]: unknown | undefined;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* User.spec.config[object]. The configuration for the User.
|
|
67
|
+
*/
|
|
68
|
+
export interface SAMUserSpecConfig {
|
|
69
|
+
/**
|
|
70
|
+
* User.spec.configuration.email[str]. The email address of the User.
|
|
71
|
+
*/
|
|
72
|
+
email: string;
|
|
73
|
+
/**
|
|
74
|
+
* User.spec.configuration.firstName[str]. Optional. The first name of the User.
|
|
75
|
+
*/
|
|
76
|
+
firstName?: string | null;
|
|
77
|
+
/**
|
|
78
|
+
* User.spec.configuration.isActive[bool]. Designates whether this User should be treated as active.
|
|
79
|
+
*/
|
|
80
|
+
isActive: boolean;
|
|
81
|
+
/**
|
|
82
|
+
* User.spec.configuration.isStaff[bool]. Optional. Designates whether the User has admin permissions.
|
|
83
|
+
*/
|
|
84
|
+
isStaff?: boolean | null;
|
|
85
|
+
/**
|
|
86
|
+
* User.spec.configuration.lastName[str]. Optional. The last name of the User.
|
|
87
|
+
*/
|
|
88
|
+
lastName?: string | null;
|
|
89
|
+
[k: string]: unknown | undefined;
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* Smarter API User Manifest - Status class.
|
|
93
|
+
*/
|
|
94
|
+
export interface SAMUserStatus {
|
|
95
|
+
/**
|
|
96
|
+
* User.status.account_number: The account owner of this User. Read only.
|
|
97
|
+
*/
|
|
98
|
+
account_number: string;
|
|
99
|
+
/**
|
|
100
|
+
* The date in which this resource was created. Read only.
|
|
101
|
+
*/
|
|
102
|
+
created: string;
|
|
103
|
+
/**
|
|
104
|
+
* dependencies[List]: The resources that depend on this resource, and that must be deleted, or stop referring to it, before it can be deleted. Lists only the resources that you can read. Read only.
|
|
105
|
+
*/
|
|
106
|
+
dependencies?: SAMDependency[] | null;
|
|
107
|
+
/**
|
|
108
|
+
* The date in which this resource was most recently changed. Read only.
|
|
109
|
+
*/
|
|
110
|
+
modified: string;
|
|
111
|
+
/**
|
|
112
|
+
* recordLocator[String]: An optional identifier used to locate the resource record associated with this manifest. Read only.
|
|
113
|
+
*/
|
|
114
|
+
recordLocator: string;
|
|
115
|
+
/**
|
|
116
|
+
* User.status.account_number: The Smarter user who created this User. Read only.
|
|
117
|
+
*/
|
|
118
|
+
username: string;
|
|
119
|
+
[k: string]: unknown | undefined;
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* A resource that depends on the resource that a manifest describes.
|
|
123
|
+
*/
|
|
124
|
+
export interface SAMDependency {
|
|
125
|
+
/**
|
|
126
|
+
* kind[String]: The SAM kind of the resource that depends on this resource, e.g. LLMClient. Read only.
|
|
127
|
+
*/
|
|
128
|
+
kind: string;
|
|
129
|
+
/**
|
|
130
|
+
* name[String]: The name of the resource that depends on this resource. Read only.
|
|
131
|
+
*/
|
|
132
|
+
name: string;
|
|
133
|
+
[k: string]: unknown | undefined;
|
|
134
|
+
}
|
|
135
|
+
//# sourceMappingURL=user.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../../src/models/sam/user.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;GAEG;AACH,MAAM,WAAW,OAAO;IACtB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,eAAe,CAAC;IAC1B,IAAI,EAAE,WAAW,CAAC;IAClB;;OAEG;IACH,MAAM,CAAC,EAAE,aAAa,GAAG,IAAI,CAAC;IAC9B,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;CAClC;AACD;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,WAAW,CAAC,EAAE;QACZ,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KACjC,GAAG,IAAI,CAAC;IACT;;OAEG;IACH,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;IACvB;;OAEG;IACH,QAAQ,EAAE,MAA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1
|
+
{"version":3,"file":"user.js","sourceRoot":"","sources":["../../../src/models/sam/user.ts"],"names":[],"mappings":"AAAA;;;;GAIG"}
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The SAM type of the `Vectorsearch` kind, generated from the Smarter platform's JSON Schema.
|
|
3
|
+
*
|
|
4
|
+
* Do not edit: run `make sam-models`. See `src/models/sam/index.ts`.
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* The retrieval strategy to use when querying the Vectorstore.
|
|
8
|
+
*/
|
|
9
|
+
export type VectorsearchSearchType = "similarity" | "similarity_score_threshold" | "mmr";
|
|
10
|
+
/**
|
|
11
|
+
* Smarter API Manifest - Vectorsearch.
|
|
12
|
+
*/
|
|
13
|
+
export interface SAMVectorsearch {
|
|
14
|
+
/**
|
|
15
|
+
* apiVersion[String]: Required. The API version of the AbstractSAMBase.
|
|
16
|
+
*/
|
|
17
|
+
apiVersion: string;
|
|
18
|
+
/**
|
|
19
|
+
* kind[String]: Required. The kind of resource described by the manifest.
|
|
20
|
+
*/
|
|
21
|
+
kind: string;
|
|
22
|
+
metadata: SAMVectorsearchMetadata;
|
|
23
|
+
spec: SAMVectorsearchSpec;
|
|
24
|
+
/**
|
|
25
|
+
* Vectorsearch.status[obj]: Optional, Read-only. Stateful status information about the Vectorsearch.
|
|
26
|
+
*/
|
|
27
|
+
status?: SAMVectorsearchStatus | null;
|
|
28
|
+
[k: string]: unknown | undefined;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Vectorsearch.metadata[obj]: Required, the Vectorsearch metadata.
|
|
32
|
+
*/
|
|
33
|
+
export interface SAMVectorsearchMetadata {
|
|
34
|
+
/**
|
|
35
|
+
* Annotations, as in Kubernetes: a map of keys to string values that clients and integrations attach to a resource for their own purposes, e.g. to associate it with a resource in another system. A key is an optional DNS-subdomain prefix that names its owner, then a slash and a name of one or more slash-separated segments, e.g. 'acme.com/crm-account-id'. The prefix 'smarter.sh' and its subdomains are reserved for the Smarter platform. Values are strings: unquoted YAML scalars such as true, 42 or dates are converted to strings, and structured data belongs in a JSON string. All annotations together are limited to 256 KiB. The list of one-key maps of older manifests, e.g. [{'acme.com/crm-account-id': 'A-10042'}], is also accepted.
|
|
36
|
+
*/
|
|
37
|
+
annotations?: {
|
|
38
|
+
[k: string]: string | undefined;
|
|
39
|
+
} | null;
|
|
40
|
+
/**
|
|
41
|
+
* The description for this resource. Be brief. Keep it under 255 characters.
|
|
42
|
+
*/
|
|
43
|
+
description: string | null;
|
|
44
|
+
/**
|
|
45
|
+
* The camelCase name of the manifest resource
|
|
46
|
+
*/
|
|
47
|
+
name: string;
|
|
48
|
+
/**
|
|
49
|
+
* The tags of the manifest. Used for generic resource categorization and search. Example: ['tag1', 'tag2']
|
|
50
|
+
*/
|
|
51
|
+
tags?: string[] | null;
|
|
52
|
+
/**
|
|
53
|
+
* The semantic version of the manifest. Example: 0.1.0
|
|
54
|
+
*/
|
|
55
|
+
version: string | null;
|
|
56
|
+
[k: string]: unknown | undefined;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Vectorsearch.spec[obj]: Required, the Vectorsearch specification.
|
|
60
|
+
*/
|
|
61
|
+
export interface SAMVectorsearchSpec {
|
|
62
|
+
config: SAMVectorsearchSpecConfig;
|
|
63
|
+
[k: string]: unknown | undefined;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Vectorsearch.spec.config[object]. The configuration for the Vectorsearch.
|
|
67
|
+
*/
|
|
68
|
+
export interface SAMVectorsearchSpecConfig {
|
|
69
|
+
/**
|
|
70
|
+
* Optional name of the Secret used to authenticate against the Vectorstore, if required.
|
|
71
|
+
*/
|
|
72
|
+
auth_secret_name?: string | null;
|
|
73
|
+
/**
|
|
74
|
+
* Number of candidate documents to fetch before MMR re-ranking. Only valid when search_type='mmr'.
|
|
75
|
+
*/
|
|
76
|
+
fetch_k?: number | null;
|
|
77
|
+
/**
|
|
78
|
+
* Whether this Vectorsearch is active and eligible to be queried.
|
|
79
|
+
*/
|
|
80
|
+
is_enabled?: boolean;
|
|
81
|
+
/**
|
|
82
|
+
* Number of top results to return from the search.
|
|
83
|
+
*/
|
|
84
|
+
k?: number;
|
|
85
|
+
/**
|
|
86
|
+
* Diversity vs. relevance trade-off for MMR (0.0=max diversity, 1.0=max relevance). Only valid when search_type='mmr'.
|
|
87
|
+
*/
|
|
88
|
+
lambda_mult?: number | null;
|
|
89
|
+
/**
|
|
90
|
+
* Optional metadata filter applied to the Vectorstore query, e.g. {'source': 'faq'}.
|
|
91
|
+
*/
|
|
92
|
+
metadata_filter?: {
|
|
93
|
+
[k: string]: unknown | undefined;
|
|
94
|
+
} | null;
|
|
95
|
+
/**
|
|
96
|
+
* Minimum relevance score a result must meet to be included. Only valid when search_type='similarity_score_threshold'.
|
|
97
|
+
*/
|
|
98
|
+
score_threshold?: number | null;
|
|
99
|
+
search_type?: VectorsearchSearchType;
|
|
100
|
+
/**
|
|
101
|
+
* The name of the locally-hosted Vectorstore this search queries against.
|
|
102
|
+
*/
|
|
103
|
+
vectorstore_name: string;
|
|
104
|
+
[k: string]: unknown | undefined;
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* Smarter API Vectorsearch Manifest - Status class.
|
|
108
|
+
*/
|
|
109
|
+
export interface SAMVectorsearchStatus {
|
|
110
|
+
/**
|
|
111
|
+
* Vectorsearch.status.account_number: The account owner of this Vectorsearch. Read only.
|
|
112
|
+
*/
|
|
113
|
+
accountNumber: string;
|
|
114
|
+
/**
|
|
115
|
+
* The date in which this resource was created. Read only.
|
|
116
|
+
*/
|
|
117
|
+
created: string;
|
|
118
|
+
/**
|
|
119
|
+
* dependencies[List]: The resources that depend on this resource, and that must be deleted, or stop referring to it, before it can be deleted. Lists only the resources that you can read. Read only.
|
|
120
|
+
*/
|
|
121
|
+
dependencies?: SAMDependency[] | null;
|
|
122
|
+
/**
|
|
123
|
+
* The date in which this resource was most recently changed. Read only.
|
|
124
|
+
*/
|
|
125
|
+
modified: string;
|
|
126
|
+
/**
|
|
127
|
+
* recordLocator[String]: An optional identifier used to locate the resource record associated with this manifest. Read only.
|
|
128
|
+
*/
|
|
129
|
+
recordLocator: string;
|
|
130
|
+
/**
|
|
131
|
+
* Vectorsearch.status.username: The Smarter user who created this Vectorsearch. Read only.
|
|
132
|
+
*/
|
|
133
|
+
username: string;
|
|
134
|
+
[k: string]: unknown | undefined;
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* A resource that depends on the resource that a manifest describes.
|
|
138
|
+
*/
|
|
139
|
+
export interface SAMDependency {
|
|
140
|
+
/**
|
|
141
|
+
* kind[String]: The SAM kind of the resource that depends on this resource, e.g. LLMClient. Read only.
|
|
142
|
+
*/
|
|
143
|
+
kind: string;
|
|
144
|
+
/**
|
|
145
|
+
* name[String]: The name of the resource that depends on this resource. Read only.
|
|
146
|
+
*/
|
|
147
|
+
name: string;
|
|
148
|
+
[k: string]: unknown | undefined;
|
|
149
|
+
}
|
|
150
|
+
//# sourceMappingURL=vectorsearch.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vectorsearch.d.ts","sourceRoot":"","sources":["../../../src/models/sam/vectorsearch.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG,YAAY,GAAG,4BAA4B,GAAG,KAAK,CAAC;AAEzF;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,uBAAuB,CAAC;IAClC,IAAI,EAAE,mBAAmB,CAAC;IAC1B;;OAEG;IACH,MAAM,CAAC,EAAE,qBAAqB,GAAG,IAAI,CAAC;IACtC,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;CAClC;AACD;;GAEG;AACH,MAAM,WAAW,uBAAu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EG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vectorsearch.js","sourceRoot":"","sources":["../../../src/models/sam/vectorsearch.ts"],"names":[],"mappings":"AAAA;;;;GAIG"}
|