@smarter.sh/api 0.0.0-stage → 1.0.2-alpha.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,278 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The SAM type of the `ApiPlugin` 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 - ApiPlugin Model.
|
|
12
|
+
*/
|
|
13
|
+
export interface SAMApiPlugin {
|
|
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: SAMApiPluginSpec;
|
|
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
|
+
* ApiPlugin.spec[obj]: Required, the ApiPlugin specification.
|
|
64
|
+
*/
|
|
65
|
+
export interface SAMApiPluginSpec {
|
|
66
|
+
apiData: ApiData;
|
|
67
|
+
/**
|
|
68
|
+
* ApiPlugin.spec.selector[obj]: the name of an existing ApiConnection to use for the ApiPlugin
|
|
69
|
+
*/
|
|
70
|
+
connection: string;
|
|
71
|
+
prompt: SAMPluginCommonSpecPrompt;
|
|
72
|
+
selector: SAMPluginCommonSpecSelector;
|
|
73
|
+
[k: string]: unknown | undefined;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* ApiPlugin.spec.selector[obj]: the ApiData to use for the ApiPlugin
|
|
77
|
+
*/
|
|
78
|
+
export interface ApiData {
|
|
79
|
+
/**
|
|
80
|
+
* Any valid JSON object containing the body of the API request, if applicable.
|
|
81
|
+
*/
|
|
82
|
+
body?: {
|
|
83
|
+
[k: string]: unknown | undefined;
|
|
84
|
+
} | unknown[] | null;
|
|
85
|
+
/**
|
|
86
|
+
* The endpoint path for the API. Example: '/v1/weather'.
|
|
87
|
+
*/
|
|
88
|
+
endpoint: string;
|
|
89
|
+
/**
|
|
90
|
+
* A list of JSON dict containing headers to be sent with the API request. Example: {'Authorization': 'Bearer <token>'}
|
|
91
|
+
*/
|
|
92
|
+
headers?: RequestHeader[] | null;
|
|
93
|
+
/**
|
|
94
|
+
* The maximum number of records to return from the API. Default is 100.
|
|
95
|
+
*/
|
|
96
|
+
limit?: number | null;
|
|
97
|
+
/**
|
|
98
|
+
* The HTTP method to use for the API request. Default is 'GET'.
|
|
99
|
+
*/
|
|
100
|
+
method?: string;
|
|
101
|
+
/**
|
|
102
|
+
* A JSON dict containing parameter names and data types. Example: {'city': {'type': 'string', 'description': 'City name'}}
|
|
103
|
+
*/
|
|
104
|
+
parameters?: Parameter[] | null;
|
|
105
|
+
/**
|
|
106
|
+
* A JSON dict containing test values for each parameter. Example: {'city': 'San Francisco'}
|
|
107
|
+
*/
|
|
108
|
+
testValues?: TestValue[] | null;
|
|
109
|
+
/**
|
|
110
|
+
* A list of URL parameters to be included in the API request. Example: {'city': 'San Francisco'}
|
|
111
|
+
*/
|
|
112
|
+
urlParams?: UrlParam[] | null;
|
|
113
|
+
[k: string]: unknown | undefined;
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* Model for storing HTTP request headers.
|
|
117
|
+
*/
|
|
118
|
+
export interface RequestHeader {
|
|
119
|
+
/**
|
|
120
|
+
* The name of the HTTP header.
|
|
121
|
+
*/
|
|
122
|
+
name: string;
|
|
123
|
+
/**
|
|
124
|
+
* The value of the HTTP header.
|
|
125
|
+
*/
|
|
126
|
+
value: string | number | boolean;
|
|
127
|
+
[k: string]: unknown | undefined;
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* Parameter class for parameterized Plugins.
|
|
131
|
+
*
|
|
132
|
+
* This structure is
|
|
133
|
+
* intended to match that which is used in the OpenAPI
|
|
134
|
+
* function calling specification.
|
|
135
|
+
* It is used to define the parameters that a plugin can accept,
|
|
136
|
+
* and also for creating the function calling prompt api.
|
|
137
|
+
*/
|
|
138
|
+
export interface Parameter {
|
|
139
|
+
/**
|
|
140
|
+
* The default value of the parameter, if any.
|
|
141
|
+
*/
|
|
142
|
+
default?: {
|
|
143
|
+
[k: string]: unknown | undefined;
|
|
144
|
+
};
|
|
145
|
+
/**
|
|
146
|
+
* A description of the parameter.
|
|
147
|
+
*/
|
|
148
|
+
description?: string | null;
|
|
149
|
+
/**
|
|
150
|
+
* A list of allowed values for the parameter. Example: ['Celsius', 'Fahrenheit']
|
|
151
|
+
*/
|
|
152
|
+
enum?: string[] | null;
|
|
153
|
+
/**
|
|
154
|
+
* The name of the parameter.
|
|
155
|
+
*/
|
|
156
|
+
name: string;
|
|
157
|
+
/**
|
|
158
|
+
* Whether the parameter is required.
|
|
159
|
+
*/
|
|
160
|
+
required?: boolean;
|
|
161
|
+
type: ParameterType;
|
|
162
|
+
[k: string]: unknown | undefined;
|
|
163
|
+
}
|
|
164
|
+
/**
|
|
165
|
+
* TestValue class for SqlPlugin and ApiPlugin test values.
|
|
166
|
+
*/
|
|
167
|
+
export interface TestValue {
|
|
168
|
+
/**
|
|
169
|
+
* The name of the parameter being tested.
|
|
170
|
+
*/
|
|
171
|
+
name: string;
|
|
172
|
+
/**
|
|
173
|
+
* The test value for the parameter.
|
|
174
|
+
*/
|
|
175
|
+
value: {
|
|
176
|
+
[k: string]: unknown | undefined;
|
|
177
|
+
};
|
|
178
|
+
[k: string]: unknown | undefined;
|
|
179
|
+
}
|
|
180
|
+
/**
|
|
181
|
+
* Model for storing url param k-v pairs.
|
|
182
|
+
*/
|
|
183
|
+
export interface UrlParam {
|
|
184
|
+
/**
|
|
185
|
+
* The key (ie 'name') of the url param.
|
|
186
|
+
*/
|
|
187
|
+
key: string;
|
|
188
|
+
/**
|
|
189
|
+
* The value for the key.
|
|
190
|
+
*/
|
|
191
|
+
value: string | number | boolean;
|
|
192
|
+
[k: string]: unknown | undefined;
|
|
193
|
+
}
|
|
194
|
+
/**
|
|
195
|
+
* Plugin.spec.prompt[obj]: the LLM prompt engineering to apply to the Plugin
|
|
196
|
+
*/
|
|
197
|
+
export interface SAMPluginCommonSpecPrompt {
|
|
198
|
+
/**
|
|
199
|
+
* 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.
|
|
200
|
+
*/
|
|
201
|
+
maxTokens?: number;
|
|
202
|
+
/**
|
|
203
|
+
* 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']
|
|
204
|
+
*/
|
|
205
|
+
model?: string;
|
|
206
|
+
/**
|
|
207
|
+
* 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.
|
|
208
|
+
*/
|
|
209
|
+
provider?: string;
|
|
210
|
+
/**
|
|
211
|
+
* 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.
|
|
212
|
+
*/
|
|
213
|
+
systemRole: string;
|
|
214
|
+
/**
|
|
215
|
+
* 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.
|
|
216
|
+
*/
|
|
217
|
+
temperature?: number;
|
|
218
|
+
[k: string]: unknown | undefined;
|
|
219
|
+
}
|
|
220
|
+
/**
|
|
221
|
+
* Plugin.spec.selector[obj]: the selector logic to use for the Plugin
|
|
222
|
+
*/
|
|
223
|
+
export interface SAMPluginCommonSpecSelector {
|
|
224
|
+
/**
|
|
225
|
+
* Plugin.spec.selector.directive[str]: Required. the kind of selector directive to use for the Plugin. Must be one of: ['search_terms', 'always', 'llm']
|
|
226
|
+
*/
|
|
227
|
+
directive: string;
|
|
228
|
+
/**
|
|
229
|
+
* 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.
|
|
230
|
+
*/
|
|
231
|
+
searchTerms?: string[] | null;
|
|
232
|
+
[k: string]: unknown | undefined;
|
|
233
|
+
}
|
|
234
|
+
/**
|
|
235
|
+
* Smarter API Plugin Manifest - Status class.
|
|
236
|
+
*/
|
|
237
|
+
export interface SAMPluginCommonStatus {
|
|
238
|
+
/**
|
|
239
|
+
* Plugin.status.account_number: The account owner of this Plugin. Read only.
|
|
240
|
+
*/
|
|
241
|
+
accountNumber: string;
|
|
242
|
+
/**
|
|
243
|
+
* The date in which this resource was created. Read only.
|
|
244
|
+
*/
|
|
245
|
+
created: string;
|
|
246
|
+
/**
|
|
247
|
+
* 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.
|
|
248
|
+
*/
|
|
249
|
+
dependencies?: SAMDependency[] | null;
|
|
250
|
+
/**
|
|
251
|
+
* The date in which this resource was most recently changed. Read only.
|
|
252
|
+
*/
|
|
253
|
+
modified: string;
|
|
254
|
+
/**
|
|
255
|
+
* recordLocator[String]: An optional identifier used to locate the resource record associated with this manifest. Read only.
|
|
256
|
+
*/
|
|
257
|
+
recordLocator: string;
|
|
258
|
+
/**
|
|
259
|
+
* Plugin.status.account_number: The Smarter user who created this Plugin. Read only.
|
|
260
|
+
*/
|
|
261
|
+
username: string;
|
|
262
|
+
[k: string]: unknown | undefined;
|
|
263
|
+
}
|
|
264
|
+
/**
|
|
265
|
+
* A resource that depends on the resource that a manifest describes.
|
|
266
|
+
*/
|
|
267
|
+
export interface SAMDependency {
|
|
268
|
+
/**
|
|
269
|
+
* kind[String]: The SAM kind of the resource that depends on this resource, e.g. LLMClient. Read only.
|
|
270
|
+
*/
|
|
271
|
+
kind: string;
|
|
272
|
+
/**
|
|
273
|
+
* name[String]: The name of the resource that depends on this resource. Read only.
|
|
274
|
+
*/
|
|
275
|
+
name: string;
|
|
276
|
+
[k: string]: unknown | undefined;
|
|
277
|
+
}
|
|
278
|
+
//# sourceMappingURL=apiplugin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"apiplugin.d.ts","sourceRoot":"","sources":["../../../src/models/sam/apiplugin.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,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,WA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IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;CAClC;AACD;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAC1C;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;IAC9B,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;CAClC;AACD;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC;;OAEG;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":"apiplugin.js","sourceRoot":"","sources":["../../../src/models/sam/apiplugin.ts"],"names":[],"mappings":"AAAA;;;;GAIG"}
|
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The SAM type of the `Budget` 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 - Budget.
|
|
8
|
+
*/
|
|
9
|
+
export interface SAMBudget {
|
|
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: SAMBudgetMetadata;
|
|
19
|
+
spec: SAMBudgetSpec;
|
|
20
|
+
/**
|
|
21
|
+
* Budget.status[obj]: Optional, Read-only. Stateful status information about the Budget.
|
|
22
|
+
*/
|
|
23
|
+
status?: SAMBudgetStatus | null;
|
|
24
|
+
[k: string]: unknown | undefined;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Budget.metadata[obj]: Required, the Budget metadata.
|
|
28
|
+
*/
|
|
29
|
+
export interface SAMBudgetMetadata {
|
|
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
|
+
* The semantic version of the manifest. Example: 0.1.0
|
|
50
|
+
*/
|
|
51
|
+
version: string | null;
|
|
52
|
+
[k: string]: unknown | undefined;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Budget.spec[obj]: Required, the Budget specification.
|
|
56
|
+
*/
|
|
57
|
+
export interface SAMBudgetSpec {
|
|
58
|
+
config: SAMBudgetSpecConfig;
|
|
59
|
+
/**
|
|
60
|
+
* Budget.spec.resources[list]. The resources that the Budget is enforced on. Resources that are removed from the list are detached.
|
|
61
|
+
*
|
|
62
|
+
* @maxItems 1000
|
|
63
|
+
*/
|
|
64
|
+
resources?: SAMBudgetSpecResource[];
|
|
65
|
+
[k: string]: unknown | undefined;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Budget.spec.config[object]. The limits of the Budget.
|
|
69
|
+
*/
|
|
70
|
+
export interface SAMBudgetSpecConfig {
|
|
71
|
+
/**
|
|
72
|
+
* Budget.spec.config.absoluteLimit: the most that may be spent in total, from when the budget is attached. 0 means no limit.
|
|
73
|
+
*/
|
|
74
|
+
absoluteLimit?: number | string;
|
|
75
|
+
/**
|
|
76
|
+
* Budget.spec.config.action: block further charges when a limit is reached, or only warn.
|
|
77
|
+
*/
|
|
78
|
+
action?: "block" | "warn";
|
|
79
|
+
/**
|
|
80
|
+
* Budget.spec.config.duration: the billing periods, from when the budget is attached, after which it no longer applies. 0 means never.
|
|
81
|
+
*/
|
|
82
|
+
duration?: number;
|
|
83
|
+
/**
|
|
84
|
+
* Budget.spec.config.message: what people are told when the budget blocks their request. Defaults to a description of the limit that was reached.
|
|
85
|
+
*/
|
|
86
|
+
message?: string | null;
|
|
87
|
+
/**
|
|
88
|
+
* Budget.spec.config.period: the billing period of periodicLimit and duration.
|
|
89
|
+
*/
|
|
90
|
+
period?: "hour" | "day" | "week" | "month";
|
|
91
|
+
/**
|
|
92
|
+
* Budget.spec.config.periodicLimit: the most that may be spent in a billing period. 0 means no limit.
|
|
93
|
+
*/
|
|
94
|
+
periodicLimit?: number | string;
|
|
95
|
+
/**
|
|
96
|
+
* Budget.spec.config.unit: what the limits measure: cost in USD, or total tokens.
|
|
97
|
+
*/
|
|
98
|
+
unit?: "cost" | "tokens";
|
|
99
|
+
/**
|
|
100
|
+
* Budget.spec.config.warningThreshold: the percentage of a limit at which a warning is sent. 0 means never.
|
|
101
|
+
*/
|
|
102
|
+
warningThreshold?: number;
|
|
103
|
+
[k: string]: unknown | undefined;
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* Smarter API Budget Manifest Budget.spec.resources[]: a resource that the budget is enforced on.
|
|
107
|
+
*
|
|
108
|
+
* Either kind and name, with an optional accountNumber, or a recordLocator.
|
|
109
|
+
*/
|
|
110
|
+
export interface SAMBudgetSpecResource {
|
|
111
|
+
/**
|
|
112
|
+
* Budget.spec.resources.accountNumber: the account that the resource belongs to. Defaults to your own.
|
|
113
|
+
*/
|
|
114
|
+
accountNumber?: string | null;
|
|
115
|
+
/**
|
|
116
|
+
* Budget.spec.resources.kind: the resource's manifest kind, e.g. LLMClient.
|
|
117
|
+
*/
|
|
118
|
+
kind?: ("Account" | "User" | "ApiConnection" | "SqlConnection" | "LLMClient" | "LLMHost" | "LLMHostCompute" | "MCPClient" | "Orchestrator" | "Provider" | "Proxy" | "Vectorsearch" | "ApiPlugin" | "SkillPlugin" | "SqlPlugin" | "StaticPlugin" | "WebsearchPlugin" | "ImageSearchPlugin") | null;
|
|
119
|
+
/**
|
|
120
|
+
* Budget.spec.resources.name: the resource's name. For an Account, its account number; for a User, the username.
|
|
121
|
+
*/
|
|
122
|
+
name?: string | null;
|
|
123
|
+
/**
|
|
124
|
+
* Budget.spec.resources.recordLocator: any resource's record locator, e.g. llmclient-rc2x, in place of kind and name.
|
|
125
|
+
*/
|
|
126
|
+
recordLocator?: string | null;
|
|
127
|
+
[k: string]: unknown | undefined;
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* Smarter API Budget Manifest - Status class.
|
|
131
|
+
*
|
|
132
|
+
* Read only.
|
|
133
|
+
*/
|
|
134
|
+
export interface SAMBudgetStatus {
|
|
135
|
+
/**
|
|
136
|
+
* The date in which this resource was created. Read only.
|
|
137
|
+
*/
|
|
138
|
+
created: string;
|
|
139
|
+
/**
|
|
140
|
+
* 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.
|
|
141
|
+
*/
|
|
142
|
+
dependencies?: SAMDependency[] | null;
|
|
143
|
+
/**
|
|
144
|
+
* The date in which this resource was most recently changed. Read only.
|
|
145
|
+
*/
|
|
146
|
+
modified: string;
|
|
147
|
+
/**
|
|
148
|
+
* recordLocator[String]: An optional identifier used to locate the resource record associated with this manifest. Read only.
|
|
149
|
+
*/
|
|
150
|
+
recordLocator: string;
|
|
151
|
+
/**
|
|
152
|
+
* Budget.status.resources: the budget versus the actual spending of each resource. Read only.
|
|
153
|
+
*/
|
|
154
|
+
resources?: SAMBudgetStatusResource[];
|
|
155
|
+
[k: string]: unknown | undefined;
|
|
156
|
+
}
|
|
157
|
+
/**
|
|
158
|
+
* A resource that depends on the resource that a manifest describes.
|
|
159
|
+
*/
|
|
160
|
+
export interface SAMDependency {
|
|
161
|
+
/**
|
|
162
|
+
* kind[String]: The SAM kind of the resource that depends on this resource, e.g. LLMClient. Read only.
|
|
163
|
+
*/
|
|
164
|
+
kind: string;
|
|
165
|
+
/**
|
|
166
|
+
* name[String]: The name of the resource that depends on this resource. Read only.
|
|
167
|
+
*/
|
|
168
|
+
name: string;
|
|
169
|
+
[k: string]: unknown | undefined;
|
|
170
|
+
}
|
|
171
|
+
/**
|
|
172
|
+
* The budget versus the actual spending of one of the budget's resources.
|
|
173
|
+
*
|
|
174
|
+
* Read only.
|
|
175
|
+
*/
|
|
176
|
+
export interface SAMBudgetStatusResource {
|
|
177
|
+
/**
|
|
178
|
+
* Budget.status.resources.absoluteActual: spending since startDate.
|
|
179
|
+
*/
|
|
180
|
+
absoluteActual: number | string;
|
|
181
|
+
/**
|
|
182
|
+
* Budget.status.resources.absolutePercent: absoluteActual, as a percentage of the limit.
|
|
183
|
+
*/
|
|
184
|
+
absolutePercent?: number | null;
|
|
185
|
+
/**
|
|
186
|
+
* Budget.status.resources.expiresAt: when the budget's duration ends.
|
|
187
|
+
*/
|
|
188
|
+
expiresAt?: string | null;
|
|
189
|
+
/**
|
|
190
|
+
* Budget.status.resources.isActive: whether the budget is enforced on it.
|
|
191
|
+
*/
|
|
192
|
+
isActive: boolean;
|
|
193
|
+
/**
|
|
194
|
+
* Budget.status.resources.isLocked: whether the budget refuses further charges.
|
|
195
|
+
*/
|
|
196
|
+
isLocked: boolean;
|
|
197
|
+
/**
|
|
198
|
+
* Budget.status.resources.lockReason: which limit was reached.
|
|
199
|
+
*/
|
|
200
|
+
lockReason?: string | null;
|
|
201
|
+
/**
|
|
202
|
+
* Budget.status.resources.periodicActual: spending this billing period.
|
|
203
|
+
*/
|
|
204
|
+
periodicActual: number | string;
|
|
205
|
+
/**
|
|
206
|
+
* Budget.status.resources.periodicPercent: periodicActual, as a percentage of the limit.
|
|
207
|
+
*/
|
|
208
|
+
periodicPercent?: number | null;
|
|
209
|
+
/**
|
|
210
|
+
* Budget.status.resources.recordLocator: the resource's record locator.
|
|
211
|
+
*/
|
|
212
|
+
recordLocator: string;
|
|
213
|
+
/**
|
|
214
|
+
* Budget.status.resources.startDate: when the budget was attached.
|
|
215
|
+
*/
|
|
216
|
+
startDate: string;
|
|
217
|
+
[k: string]: unknown | undefined;
|
|
218
|
+
}
|
|
219
|
+
//# sourceMappingURL=budget.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"budget.d.ts","sourceRoot":"","sources":["../../../src/models/sam/budget.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;GAEG;AACH,MAAM,WAAW,SAAS;IACx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AAE,MAAM,CAAC;IACb;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;CAClC;AACD;;;;GAIG;AACH,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,cAAc,EAAE,MAAM,GAAG,MAAM,CAAC;IAChC;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B;;OAEG;IACH,QAAQ,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,QAAQ,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B;;OAEG;IACH,cAAc,EAAE,MAAM,GAAG,MAAM,CAAC;IAChC;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;CAClC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"budget.js","sourceRoot":"","sources":["../../../src/models/sam/budget.ts"],"names":[],"mappings":"AAAA;;;;GAIG"}
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The SAM type of the `CustomDomain` 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 - CustomDomain.
|
|
8
|
+
*/
|
|
9
|
+
export interface SAMCustomDomain {
|
|
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: SAMCustomDomainMetadata;
|
|
19
|
+
spec: SAMCustomDomainSpec;
|
|
20
|
+
/**
|
|
21
|
+
* CustomDomain.status[obj]: Optional, Read-only. Stateful status information about the CustomDomain.
|
|
22
|
+
*/
|
|
23
|
+
status?: SAMCustomDomainStatus | null;
|
|
24
|
+
[k: string]: unknown | undefined;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* CustomDomain.metadata[obj]: Required, the CustomDomain metadata.
|
|
28
|
+
*/
|
|
29
|
+
export interface SAMCustomDomainMetadata {
|
|
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
|
+
* The semantic version of the manifest. Example: 0.1.0
|
|
50
|
+
*/
|
|
51
|
+
version: string | null;
|
|
52
|
+
[k: string]: unknown | undefined;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* CustomDomain.spec[obj]: Required, the CustomDomain specification.
|
|
56
|
+
*/
|
|
57
|
+
export interface SAMCustomDomainSpec {
|
|
58
|
+
config: SAMCustomDomainSpecConfig;
|
|
59
|
+
[k: string]: unknown | undefined;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* CustomDomain.spec.config[object]. Required. The configuration of the CustomDomain.
|
|
63
|
+
*/
|
|
64
|
+
export interface SAMCustomDomainSpecConfig {
|
|
65
|
+
/**
|
|
66
|
+
* CustomDomain.spec.config.domainName[str]. Required. The domain name, e.g. 'llmclients.example.com'. It cannot be changed once the domain has been registered.
|
|
67
|
+
*/
|
|
68
|
+
domainName: string;
|
|
69
|
+
[k: string]: unknown | undefined;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Smarter API CustomDomain Manifest - Status class.
|
|
73
|
+
*
|
|
74
|
+
* Read only. Besides ownership, it reports the domain's AWS Route53 hosted zone, whether
|
|
75
|
+
* the domain is verified, and its DNS records. The LLMClient that uses it is reported in
|
|
76
|
+
* ``dependencies``.
|
|
77
|
+
*/
|
|
78
|
+
export interface SAMCustomDomainStatus {
|
|
79
|
+
/**
|
|
80
|
+
* CustomDomain.status.accountNumber: The account owner of this CustomDomain. Read only.
|
|
81
|
+
*/
|
|
82
|
+
accountNumber: string;
|
|
83
|
+
/**
|
|
84
|
+
* CustomDomain.status.awsHostedZoneId: The AWS Route53 hosted zone of this CustomDomain, once it is registered with smarter deploy. Read only.
|
|
85
|
+
*/
|
|
86
|
+
awsHostedZoneId?: string | null;
|
|
87
|
+
/**
|
|
88
|
+
* The date in which this resource was created. Read only.
|
|
89
|
+
*/
|
|
90
|
+
created: string;
|
|
91
|
+
/**
|
|
92
|
+
* 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.
|
|
93
|
+
*/
|
|
94
|
+
dependencies?: SAMDependency[] | null;
|
|
95
|
+
/**
|
|
96
|
+
* CustomDomain.status.dnsRecords: The DNS records of this CustomDomain. Read only.
|
|
97
|
+
*/
|
|
98
|
+
dnsRecords?: string[];
|
|
99
|
+
/**
|
|
100
|
+
* The date in which this resource was most recently changed. Read only.
|
|
101
|
+
*/
|
|
102
|
+
modified: string;
|
|
103
|
+
/**
|
|
104
|
+
* recordLocator[String]: An optional identifier used to locate the resource record associated with this manifest. Read only.
|
|
105
|
+
*/
|
|
106
|
+
recordLocator: string;
|
|
107
|
+
/**
|
|
108
|
+
* CustomDomain.status.username: The Smarter user who created this CustomDomain. Read only.
|
|
109
|
+
*/
|
|
110
|
+
username: string;
|
|
111
|
+
/**
|
|
112
|
+
* CustomDomain.status.verificationMessage: Why the domain is not verified yet, or why its verification failed. Read only.
|
|
113
|
+
*/
|
|
114
|
+
verificationMessage?: string | null;
|
|
115
|
+
/**
|
|
116
|
+
* CustomDomain.status.verificationStatus: Not Verified, Verifying, Verified or Failed. The domain is Verified when its NS records are delegated to its hosted zone, and its TLS certificate is issued. Read only.
|
|
117
|
+
*/
|
|
118
|
+
verificationStatus?: string;
|
|
119
|
+
/**
|
|
120
|
+
* CustomDomain.status.verifiedAt: When the domain was verified. Read only.
|
|
121
|
+
*/
|
|
122
|
+
verifiedAt?: string | null;
|
|
123
|
+
[k: string]: unknown | undefined;
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* A resource that depends on the resource that a manifest describes.
|
|
127
|
+
*/
|
|
128
|
+
export interface SAMDependency {
|
|
129
|
+
/**
|
|
130
|
+
* kind[String]: The SAM kind of the resource that depends on this resource, e.g. LLMClient. Read only.
|
|
131
|
+
*/
|
|
132
|
+
kind: string;
|
|
133
|
+
/**
|
|
134
|
+
* name[String]: The name of the resource that depends on this resource. Read only.
|
|
135
|
+
*/
|
|
136
|
+
name: string;
|
|
137
|
+
[k: string]: unknown | undefined;
|
|
138
|
+
}
|
|
139
|
+
//# sourceMappingURL=customdomain.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"customdomain.d.ts","sourceRoot":"","sources":["../../../src/models/sam/customdomain.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;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,uBAAuB;IACtC;;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,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;CAClC;AACD;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,MAAM,EAAE,yBAAyB,CAAC;IAClC,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;CAClC;AACD;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;CAClC;AACD;;;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