@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.
Files changed (251) hide show
  1. package/LICENSE.txt +671 -0
  2. package/README.md +193 -2
  3. package/dist/client.d.ts +146 -0
  4. package/dist/client.d.ts.map +1 -0
  5. package/dist/client.js +178 -0
  6. package/dist/client.js.map +1 -0
  7. package/dist/core/config.d.ts +148 -0
  8. package/dist/core/config.d.ts.map +1 -0
  9. package/dist/core/config.js +212 -0
  10. package/dist/core/config.js.map +1 -0
  11. package/dist/core/errors.d.ts +189 -0
  12. package/dist/core/errors.d.ts.map +1 -0
  13. package/dist/core/errors.js +187 -0
  14. package/dist/core/errors.js.map +1 -0
  15. package/dist/core/http.d.ts +207 -0
  16. package/dist/core/http.d.ts.map +1 -0
  17. package/dist/core/http.js +456 -0
  18. package/dist/core/http.js.map +1 -0
  19. package/dist/core/log.d.ts +62 -0
  20. package/dist/core/log.d.ts.map +1 -0
  21. package/dist/core/log.js +68 -0
  22. package/dist/core/log.js.map +1 -0
  23. package/dist/core/sse.d.ts +38 -0
  24. package/dist/core/sse.d.ts.map +1 -0
  25. package/dist/core/sse.js +79 -0
  26. package/dist/core/sse.js.map +1 -0
  27. package/dist/core/typing.d.ts +21 -0
  28. package/dist/core/typing.d.ts.map +1 -0
  29. package/dist/core/typing.js +13 -0
  30. package/dist/core/typing.js.map +1 -0
  31. package/dist/index.d.ts +51 -0
  32. package/dist/index.d.ts.map +1 -0
  33. package/dist/index.js +51 -0
  34. package/dist/index.js.map +1 -0
  35. package/dist/models/account.d.ts +112 -0
  36. package/dist/models/account.d.ts.map +1 -0
  37. package/dist/models/account.js +55 -0
  38. package/dist/models/account.js.map +1 -0
  39. package/dist/models/base.d.ts +99 -0
  40. package/dist/models/base.d.ts.map +1 -0
  41. package/dist/models/base.js +111 -0
  42. package/dist/models/base.js.map +1 -0
  43. package/dist/models/chat.d.ts +2243 -0
  44. package/dist/models/chat.d.ts.map +1 -0
  45. package/dist/models/chat.js +451 -0
  46. package/dist/models/chat.js.map +1 -0
  47. package/dist/models/guardrail.d.ts +109 -0
  48. package/dist/models/guardrail.d.ts.map +1 -0
  49. package/dist/models/guardrail.js +68 -0
  50. package/dist/models/guardrail.js.map +1 -0
  51. package/dist/models/journal.d.ts +159 -0
  52. package/dist/models/journal.d.ts.map +1 -0
  53. package/dist/models/journal.js +115 -0
  54. package/dist/models/journal.js.map +1 -0
  55. package/dist/models/llmclient.d.ts +183 -0
  56. package/dist/models/llmclient.d.ts.map +1 -0
  57. package/dist/models/llmclient.js +105 -0
  58. package/dist/models/llmclient.js.map +1 -0
  59. package/dist/models/llmhost.d.ts +121 -0
  60. package/dist/models/llmhost.d.ts.map +1 -0
  61. package/dist/models/llmhost.js +79 -0
  62. package/dist/models/llmhost.js.map +1 -0
  63. package/dist/models/manifest.d.ts +211 -0
  64. package/dist/models/manifest.d.ts.map +1 -0
  65. package/dist/models/manifest.js +290 -0
  66. package/dist/models/manifest.js.map +1 -0
  67. package/dist/models/mcpclient.d.ts +99 -0
  68. package/dist/models/mcpclient.d.ts.map +1 -0
  69. package/dist/models/mcpclient.js +65 -0
  70. package/dist/models/mcpclient.js.map +1 -0
  71. package/dist/models/misc.d.ts +232 -0
  72. package/dist/models/misc.d.ts.map +1 -0
  73. package/dist/models/misc.js +110 -0
  74. package/dist/models/misc.js.map +1 -0
  75. package/dist/models/platform.d.ts +88 -0
  76. package/dist/models/platform.d.ts.map +1 -0
  77. package/dist/models/platform.js +35 -0
  78. package/dist/models/platform.js.map +1 -0
  79. package/dist/models/plugin.d.ts +36 -0
  80. package/dist/models/plugin.d.ts.map +1 -0
  81. package/dist/models/plugin.js +16 -0
  82. package/dist/models/plugin.js.map +1 -0
  83. package/dist/models/react.d.ts +104 -0
  84. package/dist/models/react.d.ts.map +1 -0
  85. package/dist/models/react.js +136 -0
  86. package/dist/models/react.js.map +1 -0
  87. package/dist/models/sam/account.d.ts +155 -0
  88. package/dist/models/sam/account.d.ts.map +1 -0
  89. package/dist/models/sam/account.js +7 -0
  90. package/dist/models/sam/account.js.map +1 -0
  91. package/dist/models/sam/apiconnection.d.ts +147 -0
  92. package/dist/models/sam/apiconnection.d.ts.map +1 -0
  93. package/dist/models/sam/apiconnection.js +7 -0
  94. package/dist/models/sam/apiconnection.js.map +1 -0
  95. package/dist/models/sam/apiplugin.d.ts +278 -0
  96. package/dist/models/sam/apiplugin.d.ts.map +1 -0
  97. package/dist/models/sam/apiplugin.js +7 -0
  98. package/dist/models/sam/apiplugin.js.map +1 -0
  99. package/dist/models/sam/budget.d.ts +219 -0
  100. package/dist/models/sam/budget.d.ts.map +1 -0
  101. package/dist/models/sam/budget.js +7 -0
  102. package/dist/models/sam/budget.js.map +1 -0
  103. package/dist/models/sam/customdomain.d.ts +139 -0
  104. package/dist/models/sam/customdomain.d.ts.map +1 -0
  105. package/dist/models/sam/customdomain.js +7 -0
  106. package/dist/models/sam/customdomain.js.map +1 -0
  107. package/dist/models/sam/guardrail.d.ts +222 -0
  108. package/dist/models/sam/guardrail.d.ts.map +1 -0
  109. package/dist/models/sam/guardrail.js +7 -0
  110. package/dist/models/sam/guardrail.js.map +1 -0
  111. package/dist/models/sam/imagesearchplugin.d.ts +235 -0
  112. package/dist/models/sam/imagesearchplugin.d.ts.map +1 -0
  113. package/dist/models/sam/imagesearchplugin.js +7 -0
  114. package/dist/models/sam/imagesearchplugin.js.map +1 -0
  115. package/dist/models/sam/index.d.ts +104 -0
  116. package/dist/models/sam/index.d.ts.map +1 -0
  117. package/dist/models/sam/index.js +50 -0
  118. package/dist/models/sam/index.js.map +1 -0
  119. package/dist/models/sam/llmclient.d.ts +490 -0
  120. package/dist/models/sam/llmclient.d.ts.map +1 -0
  121. package/dist/models/sam/llmclient.js +7 -0
  122. package/dist/models/sam/llmclient.js.map +1 -0
  123. package/dist/models/sam/llmhost.d.ts +429 -0
  124. package/dist/models/sam/llmhost.d.ts.map +1 -0
  125. package/dist/models/sam/llmhost.js +7 -0
  126. package/dist/models/sam/llmhost.js.map +1 -0
  127. package/dist/models/sam/llmhostcompute.d.ts +221 -0
  128. package/dist/models/sam/llmhostcompute.d.ts.map +1 -0
  129. package/dist/models/sam/llmhostcompute.js +7 -0
  130. package/dist/models/sam/llmhostcompute.js.map +1 -0
  131. package/dist/models/sam/mcpclient.d.ts +195 -0
  132. package/dist/models/sam/mcpclient.d.ts.map +1 -0
  133. package/dist/models/sam/mcpclient.js +7 -0
  134. package/dist/models/sam/mcpclient.js.map +1 -0
  135. package/dist/models/sam/orchestrator.d.ts +163 -0
  136. package/dist/models/sam/orchestrator.d.ts.map +1 -0
  137. package/dist/models/sam/orchestrator.js +7 -0
  138. package/dist/models/sam/orchestrator.js.map +1 -0
  139. package/dist/models/sam/plugin.d.ts +163 -0
  140. package/dist/models/sam/plugin.d.ts.map +1 -0
  141. package/dist/models/sam/plugin.js +7 -0
  142. package/dist/models/sam/plugin.js.map +1 -0
  143. package/dist/models/sam/prompt.d.ts +116 -0
  144. package/dist/models/sam/prompt.d.ts.map +1 -0
  145. package/dist/models/sam/prompt.js +7 -0
  146. package/dist/models/sam/prompt.js.map +1 -0
  147. package/dist/models/sam/provider.d.ts +195 -0
  148. package/dist/models/sam/provider.d.ts.map +1 -0
  149. package/dist/models/sam/provider.js +7 -0
  150. package/dist/models/sam/provider.js.map +1 -0
  151. package/dist/models/sam/proxy.d.ts +163 -0
  152. package/dist/models/sam/proxy.d.ts.map +1 -0
  153. package/dist/models/sam/proxy.js +7 -0
  154. package/dist/models/sam/proxy.js.map +1 -0
  155. package/dist/models/sam/schemas.d.ts +8 -0
  156. package/dist/models/sam/schemas.d.ts.map +1 -0
  157. package/dist/models/sam/schemas.js +6059 -0
  158. package/dist/models/sam/schemas.js.map +1 -0
  159. package/dist/models/sam/secret.d.ts +123 -0
  160. package/dist/models/sam/secret.d.ts.map +1 -0
  161. package/dist/models/sam/secret.js +7 -0
  162. package/dist/models/sam/secret.js.map +1 -0
  163. package/dist/models/sam/skillplugin.d.ts +181 -0
  164. package/dist/models/sam/skillplugin.d.ts.map +1 -0
  165. package/dist/models/sam/skillplugin.js +7 -0
  166. package/dist/models/sam/skillplugin.js.map +1 -0
  167. package/dist/models/sam/smarterauthtoken.d.ts +115 -0
  168. package/dist/models/sam/smarterauthtoken.d.ts.map +1 -0
  169. package/dist/models/sam/smarterauthtoken.js +7 -0
  170. package/dist/models/sam/smarterauthtoken.js.map +1 -0
  171. package/dist/models/sam/sqlconnection.d.ts +187 -0
  172. package/dist/models/sam/sqlconnection.d.ts.map +1 -0
  173. package/dist/models/sam/sqlconnection.js +7 -0
  174. package/dist/models/sam/sqlconnection.js.map +1 -0
  175. package/dist/models/sam/sqlplugin.d.ts +232 -0
  176. package/dist/models/sam/sqlplugin.d.ts.map +1 -0
  177. package/dist/models/sam/sqlplugin.js +7 -0
  178. package/dist/models/sam/sqlplugin.js.map +1 -0
  179. package/dist/models/sam/user.d.ts +135 -0
  180. package/dist/models/sam/user.d.ts.map +1 -0
  181. package/dist/models/sam/user.js +7 -0
  182. package/dist/models/sam/user.js.map +1 -0
  183. package/dist/models/sam/vectorsearch.d.ts +150 -0
  184. package/dist/models/sam/vectorsearch.d.ts.map +1 -0
  185. package/dist/models/sam/vectorsearch.js +7 -0
  186. package/dist/models/sam/vectorsearch.js.map +1 -0
  187. package/dist/models/sam/vectorstore.d.ts +291 -0
  188. package/dist/models/sam/vectorstore.d.ts.map +1 -0
  189. package/dist/models/sam/vectorstore.js +7 -0
  190. package/dist/models/sam/vectorstore.js.map +1 -0
  191. package/dist/models/sam/websearchplugin.d.ts +229 -0
  192. package/dist/models/sam/websearchplugin.d.ts.map +1 -0
  193. package/dist/models/sam/websearchplugin.js +7 -0
  194. package/dist/models/sam/websearchplugin.js.map +1 -0
  195. package/dist/models/vectorstore.d.ts +165 -0
  196. package/dist/models/vectorstore.d.ts.map +1 -0
  197. package/dist/models/vectorstore.js +90 -0
  198. package/dist/models/vectorstore.js.map +1 -0
  199. package/dist/resources/accounts.d.ts +107 -0
  200. package/dist/resources/accounts.d.ts.map +1 -0
  201. package/dist/resources/accounts.js +84 -0
  202. package/dist/resources/accounts.js.map +1 -0
  203. package/dist/resources/base.d.ts +127 -0
  204. package/dist/resources/base.d.ts.map +1 -0
  205. package/dist/resources/base.js +139 -0
  206. package/dist/resources/base.js.map +1 -0
  207. package/dist/resources/catalog.d.ts +209 -0
  208. package/dist/resources/catalog.d.ts.map +1 -0
  209. package/dist/resources/catalog.js +124 -0
  210. package/dist/resources/catalog.js.map +1 -0
  211. package/dist/resources/guardrails.d.ts +82 -0
  212. package/dist/resources/guardrails.d.ts.map +1 -0
  213. package/dist/resources/guardrails.js +46 -0
  214. package/dist/resources/guardrails.js.map +1 -0
  215. package/dist/resources/history.d.ts +97 -0
  216. package/dist/resources/history.d.ts.map +1 -0
  217. package/dist/resources/history.js +109 -0
  218. package/dist/resources/history.js.map +1 -0
  219. package/dist/resources/llmclients.d.ts +348 -0
  220. package/dist/resources/llmclients.d.ts.map +1 -0
  221. package/dist/resources/llmclients.js +367 -0
  222. package/dist/resources/llmclients.js.map +1 -0
  223. package/dist/resources/llmhosts.d.ts +146 -0
  224. package/dist/resources/llmhosts.d.ts.map +1 -0
  225. package/dist/resources/llmhosts.js +128 -0
  226. package/dist/resources/llmhosts.js.map +1 -0
  227. package/dist/resources/manifests.d.ts +153 -0
  228. package/dist/resources/manifests.d.ts.map +1 -0
  229. package/dist/resources/manifests.js +203 -0
  230. package/dist/resources/manifests.js.map +1 -0
  231. package/dist/resources/mcpclients.d.ts +90 -0
  232. package/dist/resources/mcpclients.d.ts.map +1 -0
  233. package/dist/resources/mcpclients.js +57 -0
  234. package/dist/resources/mcpclients.js.map +1 -0
  235. package/dist/resources/providers.d.ts +33 -0
  236. package/dist/resources/providers.d.ts.map +1 -0
  237. package/dist/resources/providers.js +39 -0
  238. package/dist/resources/providers.js.map +1 -0
  239. package/dist/resources/proxies.d.ts +61 -0
  240. package/dist/resources/proxies.d.ts.map +1 -0
  241. package/dist/resources/proxies.js +57 -0
  242. package/dist/resources/proxies.js.map +1 -0
  243. package/dist/resources/vectorstores.d.ts +194 -0
  244. package/dist/resources/vectorstores.d.ts.map +1 -0
  245. package/dist/resources/vectorstores.js +200 -0
  246. package/dist/resources/vectorstores.js.map +1 -0
  247. package/dist/version.d.ts +3 -0
  248. package/dist/version.d.ts.map +1 -0
  249. package/dist/version.js +5 -0
  250. package/dist/version.js.map +1 -0
  251. package/package.json +81 -4
@@ -0,0 +1,7 @@
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
+ export {};
7
+ //# sourceMappingURL=customdomain.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"customdomain.js","sourceRoot":"","sources":["../../../src/models/sam/customdomain.ts"],"names":[],"mappings":"AAAA;;;;GAIG"}
@@ -0,0 +1,222 @@
1
+ /**
2
+ * The SAM type of the `Guardrail` 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 - Guardrail.
8
+ */
9
+ export interface SAMGuardrail {
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: SAMGuardrailMetadata;
19
+ spec: SAMGuardrailSpec;
20
+ /**
21
+ * Guardrail.status[obj]: Optional, Read-only. Stateful status information about the Guardrail.
22
+ */
23
+ status?: SAMGuardrailStatus | null;
24
+ [k: string]: unknown | undefined;
25
+ }
26
+ /**
27
+ * Guardrail.metadata[obj]: Required, the Guardrail metadata.
28
+ */
29
+ export interface SAMGuardrailMetadata {
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
+ * Guardrail.spec[obj]: Required, the Guardrail specification.
56
+ */
57
+ export interface SAMGuardrailSpec {
58
+ config: SAMGuardrailSpecConfig;
59
+ [k: string]: unknown | undefined;
60
+ }
61
+ /**
62
+ * Guardrail.spec.config[object]. The configuration for the Guardrail.
63
+ */
64
+ export interface SAMGuardrailSpecConfig {
65
+ /**
66
+ * Guardrail.spec.config.action[str]: what the guardrail does when it triggers. One of: ['log', 'flag', 'redact', 'transform', 'block', 'escalate'].
67
+ */
68
+ action: "log" | "flag" | "redact" | "transform" | "block" | "escalate";
69
+ /**
70
+ * Guardrail.spec.config.caseSensitive[bool]: whether the keyword strategy is case sensitive.
71
+ */
72
+ caseSensitive?: boolean;
73
+ /**
74
+ * Guardrail.spec.config.categories[list]: the moderation strategy's categories. Empty means all. Any of: ['harassment', 'harassment/threatening', 'hate', 'hate/threatening', 'illicit', 'illicit/violent', 'self-harm', 'self-harm/intent', 'self-harm/instructions', 'sexual', 'sexual/minors', 'violence', 'violence/graphic'].
75
+ */
76
+ categories?: string[] | null;
77
+ /**
78
+ * Guardrail.spec.config.category[str]: the risk the guardrail addresses. One of: ['pii', 'secrets', 'prompt_injection', 'jailbreak', 'toxicity', 'self_harm', 'hallucination', 'off_topic', 'compliance', 'formatting', 'custom'].
79
+ */
80
+ category?: "pii" | "secrets" | "prompt_injection" | "jailbreak" | "toxicity" | "self_harm" | "hallucination" | "off_topic" | "compliance" | "formatting" | "custom";
81
+ /**
82
+ * Guardrail.spec.config.detectors[list]: the detector strategy's detectors. Any of: ['credit_card', 'us_ssn', 'email', 'phone_number', 'ip_address', 'iban', 'aws_access_key', 'private_key', 'api_key', 'jwt', 'password_assignment'].
83
+ */
84
+ detectors?: string[] | null;
85
+ /**
86
+ * Guardrail.spec.config.failClosed[bool]: if true, block when the check itself fails, e.g. because the LLM provider is unavailable. If false, the failure is recorded, and the prompt continues.
87
+ */
88
+ failClosed?: boolean;
89
+ /**
90
+ * Guardrail.spec.config.flags[list]: the regex strategy's flags. Any of: ['IGNORECASE', 'MULTILINE', 'DOTALL'].
91
+ */
92
+ flags?: string[] | null;
93
+ /**
94
+ * Guardrail.spec.config.isActive[bool]: whether the guardrail runs.
95
+ */
96
+ isActive?: boolean;
97
+ /**
98
+ * Guardrail.spec.config.judgePrompt[str]: the llm_judge strategy's prompt, with a {text} placeholder for the text to judge. Any other braces must be doubled, e.g. {{ and }}.
99
+ */
100
+ judgePrompt?: string | null;
101
+ /**
102
+ * Guardrail.spec.config.keywords[list]: the keyword strategy's words and phrases.
103
+ */
104
+ keywords?: string[] | null;
105
+ /**
106
+ * Guardrail.spec.config.message[str]: what block returns to the user, instead of the LLM's reply.
107
+ */
108
+ message?: string | null;
109
+ /**
110
+ * Guardrail.spec.config.mode[str]: enforce, to take the action, or monitor, to only record what the action would have been.
111
+ */
112
+ mode?: "enforce" | "monitor";
113
+ /**
114
+ * Guardrail.spec.config.model[str]: the model of the semantic, moderation and llm_judge strategies.
115
+ */
116
+ model?: string | null;
117
+ /**
118
+ * Guardrail.spec.config.pattern[str]: the regex strategy's regular expression.
119
+ */
120
+ pattern?: string | null;
121
+ /**
122
+ * Guardrail.spec.config.priority[int]: the order in which guardrails run. Lower runs first.
123
+ */
124
+ priority?: number;
125
+ /**
126
+ * Guardrail.spec.config.provider[str]: the name of the Smarter LLM Provider that the semantic, moderation and llm_judge strategies call. Defaults to openai.
127
+ */
128
+ provider?: string | null;
129
+ /**
130
+ * Guardrail.spec.config.referenceTexts[list]: the semantic strategy's examples of what to detect.
131
+ */
132
+ referenceTexts?: string[] | null;
133
+ /**
134
+ * Guardrail.spec.config.replacement[str]: what redact and transform replace each match with. Defaults to [REDACTED], which an empty replacement also means. {label} is replaced with what matched, e.g. credit_card. For the regex strategy, transform may refer to groups, e.g. \1.
135
+ */
136
+ replacement?: string | null;
137
+ /**
138
+ * Guardrail.spec.config.severity[int]: from 1 (low) to 5 (critical), for reporting and review.
139
+ */
140
+ severity?: number;
141
+ /**
142
+ * Guardrail.spec.config.stage[str]: when the guardrail runs. One of: ['input', 'output', 'both'].
143
+ */
144
+ stage: "input" | "output" | "both";
145
+ /**
146
+ * Guardrail.spec.config.strategy[str]: how the guardrail detects. One of: ['regex', 'keyword', 'detector', 'semantic', 'moderation', 'llm_judge'].
147
+ */
148
+ strategy: "regex" | "keyword" | "detector" | "semantic" | "moderation" | "llm_judge";
149
+ /**
150
+ * Guardrail.spec.config.threshold[float]: the minimum confidence, from 0 to 1, at which the semantic, moderation and llm_judge strategies trigger. Defaults to 0.8.
151
+ */
152
+ threshold?: number | null;
153
+ /**
154
+ * Guardrail.spec.config.wholeWord[bool]: whether the keyword strategy matches whole words only.
155
+ */
156
+ wholeWord?: boolean;
157
+ [k: string]: unknown | undefined;
158
+ }
159
+ /**
160
+ * Smarter API Guardrail Manifest - Status class.
161
+ *
162
+ * Read only. Besides ownership, it reports the guardrail's events of the last 30 days. The
163
+ * LLMClients that use it are reported in ``dependencies``.
164
+ */
165
+ export interface SAMGuardrailStatus {
166
+ /**
167
+ * Guardrail.status.account_number: The account owner of this Guardrail. Read only.
168
+ */
169
+ accountNumber: string;
170
+ /**
171
+ * Guardrail.status.blocked: how many prompts this Guardrail blocked in the last 30 days. Read only.
172
+ */
173
+ blocked?: number | null;
174
+ /**
175
+ * The date in which this resource was created. Read only.
176
+ */
177
+ created: string;
178
+ /**
179
+ * 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.
180
+ */
181
+ dependencies?: SAMDependency[] | null;
182
+ /**
183
+ * Guardrail.status.errors: how many times this Guardrail failed to run in the last 30 days. Read only.
184
+ */
185
+ errors?: number | null;
186
+ /**
187
+ * Guardrail.status.lastTriggered: when this Guardrail last triggered. Read only.
188
+ */
189
+ lastTriggered?: string | null;
190
+ /**
191
+ * The date in which this resource was most recently changed. Read only.
192
+ */
193
+ modified: string;
194
+ /**
195
+ * recordLocator[String]: An optional identifier used to locate the resource record associated with this manifest. Read only.
196
+ */
197
+ recordLocator: string;
198
+ /**
199
+ * Guardrail.status.triggered: how many times this Guardrail triggered in the last 30 days. Read only.
200
+ */
201
+ triggered?: number | null;
202
+ /**
203
+ * Guardrail.status.username: The Smarter user who created this Guardrail. Read only.
204
+ */
205
+ username: string;
206
+ [k: string]: unknown | undefined;
207
+ }
208
+ /**
209
+ * A resource that depends on the resource that a manifest describes.
210
+ */
211
+ export interface SAMDependency {
212
+ /**
213
+ * kind[String]: The SAM kind of the resource that depends on this resource, e.g. LLMClient. Read only.
214
+ */
215
+ kind: string;
216
+ /**
217
+ * name[String]: The name of the resource that depends on this resource. Read only.
218
+ */
219
+ name: string;
220
+ [k: string]: unknown | undefined;
221
+ }
222
+ //# sourceMappingURL=guardrail.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"guardrail.d.ts","sourceRoot":"","sources":["../../../src/models/sam/guardrail.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;GAEG;AACH,MAAM,WAAW,YAAY;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,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;CAClC;AACD;;;;;GAKG;AACH,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,YAAY,CAAC,EAAE,aAAa,EAAE,GAAG,IAAI,CAAC;IACtC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B;;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,7 @@
1
+ /**
2
+ * The SAM type of the `Guardrail` 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
+ export {};
7
+ //# sourceMappingURL=guardrail.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"guardrail.js","sourceRoot":"","sources":["../../../src/models/sam/guardrail.ts"],"names":[],"mappings":"AAAA;;;;GAIG"}
@@ -0,0 +1,235 @@
1
+ /**
2
+ * The SAM type of the `ImageSearchPlugin` 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 - ImageSearchPlugin Model.
8
+ */
9
+ export interface SAMImageSearchPlugin {
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: SAMPluginCommonMetadata;
19
+ spec: SAMImageSearchPluginSpec;
20
+ /**
21
+ * Plugin.status[obj]: Optional, Read-only. Stateful status information about the Plugin.
22
+ */
23
+ status?: SAMPluginCommonStatus | null;
24
+ [k: string]: unknown | undefined;
25
+ }
26
+ /**
27
+ * Plugin.metadata[obj]: Required, the Plugin metadata.
28
+ */
29
+ export interface SAMPluginCommonMetadata {
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 class of the plugin. one of: ['api', 'imagesearch', 'skill', 'sql', 'static', 'websearch']
46
+ */
47
+ pluginClass: 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
+ * ImageSearchPlugin.spec[obj]: Required, the ImageSearchPlugin specification.
60
+ */
61
+ export interface SAMImageSearchPluginSpec {
62
+ imageSearchData?: ImageSearchData;
63
+ prompt: SAMPluginCommonSpecPrompt;
64
+ selector: SAMPluginCommonSpecSelector;
65
+ [k: string]: unknown | undefined;
66
+ }
67
+ /**
68
+ * ImageSearchPlugin.spec.imageSearchData[obj]: the image search configuration of the ImageSearchPlugin.
69
+ */
70
+ export interface ImageSearchData {
71
+ /**
72
+ * ImageSearchPlugin.spec.apiKey[str]: the name of the Smarter Secret that contains a Brave Search API key. The api key itself is never included in the manifest.
73
+ */
74
+ apiKey?: string;
75
+ /**
76
+ * ImageSearchPlugin.spec.cacheTtl[int]: seconds to cache search results. 0 disables caching.
77
+ */
78
+ cacheTtl?: number;
79
+ filters?: ImageSearchFilters;
80
+ /**
81
+ * ImageSearchPlugin.spec.llmSearchParams[bool]: whether the LLM may set every Brave Image Search API parameter in each tool call: count (up to 20), country, search_lang, safesearch and spellcheck. searchParams are then the defaults. If false, the LLM may only lower the count.
82
+ */
83
+ llmSearchParams?: boolean;
84
+ /**
85
+ * ImageSearchPlugin.spec.queryTerms[str]: optional search terms appended to every query that the LLM sends, e.g. 'black and white photograph'. The LLM always supplies the query itself, e.g. 'formula 1 race cars', so that Brave searches for 'formula 1 race cars black and white photograph'.
86
+ */
87
+ queryTerms?: string | null;
88
+ searchParams?: ImageSearchParams;
89
+ /**
90
+ * ImageSearchPlugin.spec.timeout[int]: seconds to wait for each web request, 1 to 60.
91
+ */
92
+ timeout?: number;
93
+ /**
94
+ * ImageSearchPlugin.spec.validateUrls[bool]: only return image urls that respond to a request with HTTP 200, and not with a web page. Urls are always https.
95
+ */
96
+ validateUrls?: boolean;
97
+ [k: string]: unknown | undefined;
98
+ }
99
+ /**
100
+ * ImageSearchPlugin.spec.filters[obj]: the filters that Smarter applies to the search results.
101
+ */
102
+ export interface ImageSearchFilters {
103
+ /**
104
+ * ImageSearchPlugin.spec.filters.allowedDomains[list]: if not empty, only images from web pages on these domains, and their subdomains.
105
+ */
106
+ allowedDomains?: string[] | null;
107
+ /**
108
+ * ImageSearchPlugin.spec.filters.blockedDomains[list]: never images on these domains, nor from web pages on them, including their subdomains.
109
+ */
110
+ blockedDomains?: string[] | null;
111
+ /**
112
+ * ImageSearchPlugin.spec.filters.fileType[str]: only images of these file types, separated by '|', e.g. jpg|png. Any of: ['jpg', 'png', 'gif', 'svg', 'webp', 'avif', 'bmp', 'ico']
113
+ */
114
+ fileType?: string | null;
115
+ /**
116
+ * ImageSearchPlugin.spec.filters.minHeight[int]: only images at least this many pixels high. Images whose height Brave does not report are skipped.
117
+ */
118
+ minHeight?: number | null;
119
+ /**
120
+ * ImageSearchPlugin.spec.filters.minWidth[int]: only images at least this many pixels wide. Images whose width Brave does not report are skipped.
121
+ */
122
+ minWidth?: number | null;
123
+ [k: string]: unknown | undefined;
124
+ }
125
+ /**
126
+ * ImageSearchPlugin.spec.searchParams[obj]: the Brave Image Search API query parameters.
127
+ */
128
+ export interface ImageSearchParams {
129
+ /**
130
+ * ImageSearchPlugin.spec.searchParams.count[int]: the maximum number of images per search, 1 to 20.
131
+ */
132
+ count?: number;
133
+ /**
134
+ * ImageSearchPlugin.spec.searchParams.country[str]: a two letter country code, e.g. us, or all for worldwide results.
135
+ */
136
+ country?: string | null;
137
+ /**
138
+ * ImageSearchPlugin.spec.searchParams.safesearch[str]: adult content filtering. One of: ['off', 'strict']
139
+ */
140
+ safesearch?: "off" | "strict";
141
+ /**
142
+ * ImageSearchPlugin.spec.searchParams.searchLang[str]: prefer images from content in this language, e.g. en or pt-br.
143
+ */
144
+ searchLang?: string | null;
145
+ /**
146
+ * ImageSearchPlugin.spec.searchParams.spellcheck[bool]: whether Brave may correct the spelling of the query.
147
+ */
148
+ spellcheck?: boolean;
149
+ [k: string]: unknown | undefined;
150
+ }
151
+ /**
152
+ * Plugin.spec.prompt[obj]: the LLM prompt engineering to apply to the Plugin
153
+ */
154
+ export interface SAMPluginCommonSpecPrompt {
155
+ /**
156
+ * 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.
157
+ */
158
+ maxTokens?: number;
159
+ /**
160
+ * 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']
161
+ */
162
+ model?: string;
163
+ /**
164
+ * 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.
165
+ */
166
+ provider?: string;
167
+ /**
168
+ * 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.
169
+ */
170
+ systemRole: string;
171
+ /**
172
+ * 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.
173
+ */
174
+ temperature?: number;
175
+ [k: string]: unknown | undefined;
176
+ }
177
+ /**
178
+ * Plugin.spec.selector[obj]: the selector logic to use for the Plugin
179
+ */
180
+ export interface SAMPluginCommonSpecSelector {
181
+ /**
182
+ * Plugin.spec.selector.directive[str]: Required. the kind of selector directive to use for the Plugin. Must be one of: ['search_terms', 'always', 'llm']
183
+ */
184
+ directive: string;
185
+ /**
186
+ * 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.
187
+ */
188
+ searchTerms?: string[] | null;
189
+ [k: string]: unknown | undefined;
190
+ }
191
+ /**
192
+ * Smarter API Plugin Manifest - Status class.
193
+ */
194
+ export interface SAMPluginCommonStatus {
195
+ /**
196
+ * Plugin.status.account_number: The account owner of this Plugin. Read only.
197
+ */
198
+ accountNumber: string;
199
+ /**
200
+ * The date in which this resource was created. Read only.
201
+ */
202
+ created: string;
203
+ /**
204
+ * 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.
205
+ */
206
+ dependencies?: SAMDependency[] | null;
207
+ /**
208
+ * The date in which this resource was most recently changed. Read only.
209
+ */
210
+ modified: string;
211
+ /**
212
+ * recordLocator[String]: An optional identifier used to locate the resource record associated with this manifest. Read only.
213
+ */
214
+ recordLocator: string;
215
+ /**
216
+ * Plugin.status.account_number: The Smarter user who created this Plugin. Read only.
217
+ */
218
+ username: string;
219
+ [k: string]: unknown | undefined;
220
+ }
221
+ /**
222
+ * A resource that depends on the resource that a manifest describes.
223
+ */
224
+ export interface SAMDependency {
225
+ /**
226
+ * kind[String]: The SAM kind of the resource that depends on this resource, e.g. LLMClient. Read only.
227
+ */
228
+ kind: string;
229
+ /**
230
+ * name[String]: The name of the resource that depends on this resource. Read only.
231
+ */
232
+ name: string;
233
+ [k: string]: unknown | undefined;
234
+ }
235
+ //# sourceMappingURL=imagesearchplugin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"imagesearchplugin.d.ts","sourceRoot":"","sources":["../../../src/models/sam/imagesearch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IACf;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;OAEG;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,7 @@
1
+ /**
2
+ * The SAM type of the `ImageSearchPlugin` 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
+ export {};
7
+ //# sourceMappingURL=imagesearchplugin.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"imagesearchplugin.js","sourceRoot":"","sources":["../../../src/models/sam/imagesearchplugin.ts"],"names":[],"mappings":"AAAA;;;;GAIG"}
@@ -0,0 +1,104 @@
1
+ /**
2
+ * Typed models of every SAM (Smarter Application Manifest) kind, generated from the Smarter platform's JSON Schemas.
3
+ *
4
+ * Each type describes a complete manifest of its kind: `apiVersion`, `kind`, `metadata`, `spec`
5
+ * and the read-only `status`. Use them to build manifests in code, with your editor's completion, or
6
+ * to read a described manifest with typed fields:
7
+ *
8
+ * @example
9
+ * ```ts
10
+ * const manifest = await client.guardrails.describe("pii_redactor");
11
+ * const guardrail = manifest.toSam("Guardrail"); // a SAMGuardrail
12
+ * console.log(guardrail.spec.config.action);
13
+ * ```
14
+ *
15
+ * The types keep fields that they don't declare, so that a manifest of a newer platform still
16
+ * validates. The platform's own models also enforce business rules that a JSON Schema can't express:
17
+ * validate a manifest with `client.manifests.validate()` before you rely on it.
18
+ *
19
+ * Do not edit: run `make sam-models`.
20
+ */
21
+ import type { SAMAccount } from "./account.ts";
22
+ import type { SAMApiConnection } from "./apiconnection.ts";
23
+ import type { SAMApiPlugin } from "./apiplugin.ts";
24
+ import type { SAMBudget } from "./budget.ts";
25
+ import type { SAMCustomDomain } from "./customdomain.ts";
26
+ import type { SAMGuardrail } from "./guardrail.ts";
27
+ import type { SAMImageSearchPlugin } from "./imagesearchplugin.ts";
28
+ import type { SAMLLMClient } from "./llmclient.ts";
29
+ import type { SAMLLMHost } from "./llmhost.ts";
30
+ import type { SAMLLMHostCompute } from "./llmhostcompute.ts";
31
+ import type { SAMMCPClient } from "./mcpclient.ts";
32
+ import type { SAMOrchestrator } from "./orchestrator.ts";
33
+ import type { SAMPlugin } from "./plugin.ts";
34
+ import type { SAMPrompt } from "./prompt.ts";
35
+ import type { SAMProvider } from "./provider.ts";
36
+ import type { SAMProxy } from "./proxy.ts";
37
+ import type { SAMSecret } from "./secret.ts";
38
+ import type { SAMSkillPlugin } from "./skillplugin.ts";
39
+ import type { SAMSmarterAuthToken } from "./smarterauthtoken.ts";
40
+ import type { SAMSqlConnection } from "./sqlconnection.ts";
41
+ import type { SAMSqlPlugin } from "./sqlplugin.ts";
42
+ import type { SAMUser } from "./user.ts";
43
+ import type { SAMVectorsearch } from "./vectorsearch.ts";
44
+ import type { SAMVectorstore } from "./vectorstore.ts";
45
+ import type { SAMWebsearchPlugin } from "./websearchplugin.ts";
46
+ export type { SAMAccount } from "./account.ts";
47
+ export type { SAMApiConnection } from "./apiconnection.ts";
48
+ export type { SAMApiPlugin } from "./apiplugin.ts";
49
+ export type { SAMBudget } from "./budget.ts";
50
+ export type { SAMCustomDomain } from "./customdomain.ts";
51
+ export type { SAMGuardrail } from "./guardrail.ts";
52
+ export type { SAMImageSearchPlugin } from "./imagesearchplugin.ts";
53
+ export type { SAMLLMClient } from "./llmclient.ts";
54
+ export type { SAMLLMHost } from "./llmhost.ts";
55
+ export type { SAMLLMHostCompute } from "./llmhostcompute.ts";
56
+ export type { SAMMCPClient } from "./mcpclient.ts";
57
+ export type { SAMOrchestrator } from "./orchestrator.ts";
58
+ export type { SAMPlugin } from "./plugin.ts";
59
+ export type { SAMPrompt } from "./prompt.ts";
60
+ export type { SAMProvider } from "./provider.ts";
61
+ export type { SAMProxy } from "./proxy.ts";
62
+ export type { SAMSecret } from "./secret.ts";
63
+ export type { SAMSkillPlugin } from "./skillplugin.ts";
64
+ export type { SAMSmarterAuthToken } from "./smarterauthtoken.ts";
65
+ export type { SAMSqlConnection } from "./sqlconnection.ts";
66
+ export type { SAMSqlPlugin } from "./sqlplugin.ts";
67
+ export type { SAMUser } from "./user.ts";
68
+ export type { SAMVectorsearch } from "./vectorsearch.ts";
69
+ export type { SAMVectorstore } from "./vectorstore.ts";
70
+ export type { SAMWebsearchPlugin } from "./websearchplugin.ts";
71
+ export { SAM_SCHEMAS } from "./schemas.ts";
72
+ /** The type of each kind, by its manifest `kind`. */
73
+ export interface SAMKinds {
74
+ Account: SAMAccount;
75
+ ApiConnection: SAMApiConnection;
76
+ ApiPlugin: SAMApiPlugin;
77
+ Budget: SAMBudget;
78
+ CustomDomain: SAMCustomDomain;
79
+ Guardrail: SAMGuardrail;
80
+ ImageSearchPlugin: SAMImageSearchPlugin;
81
+ LLMClient: SAMLLMClient;
82
+ LLMHost: SAMLLMHost;
83
+ LLMHostCompute: SAMLLMHostCompute;
84
+ MCPClient: SAMMCPClient;
85
+ Orchestrator: SAMOrchestrator;
86
+ Plugin: SAMPlugin;
87
+ Prompt: SAMPrompt;
88
+ Provider: SAMProvider;
89
+ Proxy: SAMProxy;
90
+ Secret: SAMSecret;
91
+ SkillPlugin: SAMSkillPlugin;
92
+ SmarterAuthToken: SAMSmarterAuthToken;
93
+ SqlConnection: SAMSqlConnection;
94
+ SqlPlugin: SAMSqlPlugin;
95
+ User: SAMUser;
96
+ Vectorsearch: SAMVectorsearch;
97
+ Vectorstore: SAMVectorstore;
98
+ WebsearchPlugin: SAMWebsearchPlugin;
99
+ }
100
+ /** A manifest kind that the SDK has a type of. */
101
+ export type SAMKind = keyof SAMKinds;
102
+ /** Every kind that the SDK has a type of. */
103
+ export declare const SAM_KINDS: readonly SAMKind[];
104
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/models/sam/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,C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