@vertesia/common 0.80.0 → 0.80.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 (278) hide show
  1. package/package.json +1 -1
  2. package/src/store/index.ts +3 -2
  3. package/src/store/worker.ts +19 -0
  4. package/lib/cjs/Progress.js +0 -61
  5. package/lib/cjs/Progress.js.map +0 -1
  6. package/lib/cjs/access-control.js +0 -56
  7. package/lib/cjs/access-control.js.map +0 -1
  8. package/lib/cjs/analytics.js +0 -3
  9. package/lib/cjs/analytics.js.map +0 -1
  10. package/lib/cjs/apikey.js +0 -16
  11. package/lib/cjs/apikey.js.map +0 -1
  12. package/lib/cjs/apps.js +0 -3
  13. package/lib/cjs/apps.js.map +0 -1
  14. package/lib/cjs/common.js +0 -3
  15. package/lib/cjs/common.js.map +0 -1
  16. package/lib/cjs/environment.js +0 -44
  17. package/lib/cjs/environment.js.map +0 -1
  18. package/lib/cjs/facets.js +0 -3
  19. package/lib/cjs/facets.js.map +0 -1
  20. package/lib/cjs/group.js +0 -5
  21. package/lib/cjs/group.js.map +0 -1
  22. package/lib/cjs/index.js +0 -49
  23. package/lib/cjs/index.js.map +0 -1
  24. package/lib/cjs/integrations.js +0 -12
  25. package/lib/cjs/integrations.js.map +0 -1
  26. package/lib/cjs/interaction.js +0 -74
  27. package/lib/cjs/interaction.js.map +0 -1
  28. package/lib/cjs/json-schema.js +0 -3
  29. package/lib/cjs/json-schema.js.map +0 -1
  30. package/lib/cjs/json.js +0 -3
  31. package/lib/cjs/json.js.map +0 -1
  32. package/lib/cjs/meters.js +0 -13
  33. package/lib/cjs/meters.js.map +0 -1
  34. package/lib/cjs/model_utility.js +0 -6
  35. package/lib/cjs/model_utility.js.map +0 -1
  36. package/lib/cjs/package.json +0 -3
  37. package/lib/cjs/payload.js +0 -3
  38. package/lib/cjs/payload.js.map +0 -1
  39. package/lib/cjs/project.js +0 -107
  40. package/lib/cjs/project.js.map +0 -1
  41. package/lib/cjs/prompt.js +0 -20
  42. package/lib/cjs/prompt.js.map +0 -1
  43. package/lib/cjs/query.js +0 -3
  44. package/lib/cjs/query.js.map +0 -1
  45. package/lib/cjs/rate-limiter.js +0 -6
  46. package/lib/cjs/rate-limiter.js.map +0 -1
  47. package/lib/cjs/refs.js +0 -14
  48. package/lib/cjs/refs.js.map +0 -1
  49. package/lib/cjs/runs.js +0 -3
  50. package/lib/cjs/runs.js.map +0 -1
  51. package/lib/cjs/skill.js +0 -14
  52. package/lib/cjs/skill.js.map +0 -1
  53. package/lib/cjs/store/activity-catalog.js +0 -3
  54. package/lib/cjs/store/activity-catalog.js.map +0 -1
  55. package/lib/cjs/store/agent.js +0 -3
  56. package/lib/cjs/store/agent.js.map +0 -1
  57. package/lib/cjs/store/collections.js +0 -9
  58. package/lib/cjs/store/collections.js.map +0 -1
  59. package/lib/cjs/store/common.js +0 -3
  60. package/lib/cjs/store/common.js.map +0 -1
  61. package/lib/cjs/store/doc-analyzer.js +0 -3
  62. package/lib/cjs/store/doc-analyzer.js.map +0 -1
  63. package/lib/cjs/store/dsl-workflow.js +0 -5
  64. package/lib/cjs/store/dsl-workflow.js.map +0 -1
  65. package/lib/cjs/store/index.js +0 -28
  66. package/lib/cjs/store/index.js.map +0 -1
  67. package/lib/cjs/store/object-types.js +0 -98
  68. package/lib/cjs/store/object-types.js.map +0 -1
  69. package/lib/cjs/store/signals.js +0 -3
  70. package/lib/cjs/store/signals.js.map +0 -1
  71. package/lib/cjs/store/store.js +0 -55
  72. package/lib/cjs/store/store.js.map +0 -1
  73. package/lib/cjs/store/temporalio.js +0 -44
  74. package/lib/cjs/store/temporalio.js.map +0 -1
  75. package/lib/cjs/store/workflow.js +0 -49
  76. package/lib/cjs/store/workflow.js.map +0 -1
  77. package/lib/cjs/sts-token-types.js +0 -32
  78. package/lib/cjs/sts-token-types.js.map +0 -1
  79. package/lib/cjs/tenant.js +0 -3
  80. package/lib/cjs/tenant.js.map +0 -1
  81. package/lib/cjs/training.js +0 -14
  82. package/lib/cjs/training.js.map +0 -1
  83. package/lib/cjs/transient-tokens.js +0 -9
  84. package/lib/cjs/transient-tokens.js.map +0 -1
  85. package/lib/cjs/user.js +0 -17
  86. package/lib/cjs/user.js.map +0 -1
  87. package/lib/cjs/utils/auth.js +0 -15
  88. package/lib/cjs/utils/auth.js.map +0 -1
  89. package/lib/cjs/utils/schemas.js +0 -114
  90. package/lib/cjs/utils/schemas.js.map +0 -1
  91. package/lib/cjs/utils/type-helpers.js +0 -3
  92. package/lib/cjs/utils/type-helpers.js.map +0 -1
  93. package/lib/cjs/versions.js +0 -8
  94. package/lib/cjs/versions.js.map +0 -1
  95. package/lib/esm/Progress.js +0 -57
  96. package/lib/esm/Progress.js.map +0 -1
  97. package/lib/esm/access-control.js +0 -53
  98. package/lib/esm/access-control.js.map +0 -1
  99. package/lib/esm/analytics.js +0 -2
  100. package/lib/esm/analytics.js.map +0 -1
  101. package/lib/esm/apikey.js +0 -13
  102. package/lib/esm/apikey.js.map +0 -1
  103. package/lib/esm/apps.js +0 -2
  104. package/lib/esm/apps.js.map +0 -1
  105. package/lib/esm/common.js +0 -2
  106. package/lib/esm/common.js.map +0 -1
  107. package/lib/esm/environment.js +0 -41
  108. package/lib/esm/environment.js.map +0 -1
  109. package/lib/esm/facets.js +0 -2
  110. package/lib/esm/facets.js.map +0 -1
  111. package/lib/esm/group.js +0 -2
  112. package/lib/esm/group.js.map +0 -1
  113. package/lib/esm/index.js +0 -33
  114. package/lib/esm/index.js.map +0 -1
  115. package/lib/esm/integrations.js +0 -9
  116. package/lib/esm/integrations.js.map +0 -1
  117. package/lib/esm/interaction.js +0 -71
  118. package/lib/esm/interaction.js.map +0 -1
  119. package/lib/esm/json-schema.js +0 -2
  120. package/lib/esm/json-schema.js.map +0 -1
  121. package/lib/esm/json.js +0 -2
  122. package/lib/esm/json.js.map +0 -1
  123. package/lib/esm/meters.js +0 -10
  124. package/lib/esm/meters.js.map +0 -1
  125. package/lib/esm/model_utility.js +0 -2
  126. package/lib/esm/model_utility.js.map +0 -1
  127. package/lib/esm/payload.js +0 -2
  128. package/lib/esm/payload.js.map +0 -1
  129. package/lib/esm/project.js +0 -102
  130. package/lib/esm/project.js.map +0 -1
  131. package/lib/esm/prompt.js +0 -17
  132. package/lib/esm/prompt.js.map +0 -1
  133. package/lib/esm/query.js +0 -2
  134. package/lib/esm/query.js.map +0 -1
  135. package/lib/esm/rate-limiter.js +0 -5
  136. package/lib/esm/rate-limiter.js.map +0 -1
  137. package/lib/esm/refs.js +0 -11
  138. package/lib/esm/refs.js.map +0 -1
  139. package/lib/esm/runs.js +0 -2
  140. package/lib/esm/runs.js.map +0 -1
  141. package/lib/esm/skill.js +0 -13
  142. package/lib/esm/skill.js.map +0 -1
  143. package/lib/esm/store/activity-catalog.js +0 -2
  144. package/lib/esm/store/activity-catalog.js.map +0 -1
  145. package/lib/esm/store/agent.js +0 -2
  146. package/lib/esm/store/agent.js.map +0 -1
  147. package/lib/esm/store/collections.js +0 -6
  148. package/lib/esm/store/collections.js.map +0 -1
  149. package/lib/esm/store/common.js +0 -2
  150. package/lib/esm/store/common.js.map +0 -1
  151. package/lib/esm/store/doc-analyzer.js +0 -2
  152. package/lib/esm/store/doc-analyzer.js.map +0 -1
  153. package/lib/esm/store/dsl-workflow.js +0 -2
  154. package/lib/esm/store/dsl-workflow.js.map +0 -1
  155. package/lib/esm/store/index.js +0 -12
  156. package/lib/esm/store/index.js.map +0 -1
  157. package/lib/esm/store/object-types.js +0 -95
  158. package/lib/esm/store/object-types.js.map +0 -1
  159. package/lib/esm/store/signals.js +0 -2
  160. package/lib/esm/store/signals.js.map +0 -1
  161. package/lib/esm/store/store.js +0 -52
  162. package/lib/esm/store/store.js.map +0 -1
  163. package/lib/esm/store/temporalio.js +0 -41
  164. package/lib/esm/store/temporalio.js.map +0 -1
  165. package/lib/esm/store/workflow.js +0 -45
  166. package/lib/esm/store/workflow.js.map +0 -1
  167. package/lib/esm/sts-token-types.js +0 -24
  168. package/lib/esm/sts-token-types.js.map +0 -1
  169. package/lib/esm/tenant.js +0 -2
  170. package/lib/esm/tenant.js.map +0 -1
  171. package/lib/esm/training.js +0 -11
  172. package/lib/esm/training.js.map +0 -1
  173. package/lib/esm/transient-tokens.js +0 -6
  174. package/lib/esm/transient-tokens.js.map +0 -1
  175. package/lib/esm/user.js +0 -14
  176. package/lib/esm/user.js.map +0 -1
  177. package/lib/esm/utils/auth.js +0 -11
  178. package/lib/esm/utils/auth.js.map +0 -1
  179. package/lib/esm/utils/schemas.js +0 -107
  180. package/lib/esm/utils/schemas.js.map +0 -1
  181. package/lib/esm/utils/type-helpers.js +0 -2
  182. package/lib/esm/utils/type-helpers.js.map +0 -1
  183. package/lib/esm/versions.js +0 -5
  184. package/lib/esm/versions.js.map +0 -1
  185. package/lib/tsconfig.tsbuildinfo +0 -1
  186. package/lib/types/Progress.d.ts +0 -21
  187. package/lib/types/Progress.d.ts.map +0 -1
  188. package/lib/types/access-control.d.ts +0 -73
  189. package/lib/types/access-control.d.ts.map +0 -1
  190. package/lib/types/analytics.d.ts +0 -36
  191. package/lib/types/analytics.d.ts.map +0 -1
  192. package/lib/types/apikey.d.ts +0 -80
  193. package/lib/types/apikey.d.ts.map +0 -1
  194. package/lib/types/apps.d.ts +0 -100
  195. package/lib/types/apps.d.ts.map +0 -1
  196. package/lib/types/common.d.ts +0 -31
  197. package/lib/types/common.d.ts.map +0 -1
  198. package/lib/types/environment.d.ts +0 -84
  199. package/lib/types/environment.d.ts.map +0 -1
  200. package/lib/types/facets.d.ts +0 -34
  201. package/lib/types/facets.d.ts.map +0 -1
  202. package/lib/types/group.d.ts +0 -21
  203. package/lib/types/group.d.ts.map +0 -1
  204. package/lib/types/index.d.ts +0 -33
  205. package/lib/types/index.d.ts.map +0 -1
  206. package/lib/types/integrations.d.ts +0 -28
  207. package/lib/types/integrations.d.ts.map +0 -1
  208. package/lib/types/interaction.d.ts +0 -726
  209. package/lib/types/interaction.d.ts.map +0 -1
  210. package/lib/types/json-schema.d.ts +0 -1
  211. package/lib/types/json-schema.d.ts.map +0 -1
  212. package/lib/types/json.d.ts +0 -1
  213. package/lib/types/json.d.ts.map +0 -1
  214. package/lib/types/meters.d.ts +0 -23
  215. package/lib/types/meters.d.ts.map +0 -1
  216. package/lib/types/model_utility.d.ts +0 -1
  217. package/lib/types/model_utility.d.ts.map +0 -1
  218. package/lib/types/payload.d.ts +0 -60
  219. package/lib/types/payload.d.ts.map +0 -1
  220. package/lib/types/project.d.ts +0 -173
  221. package/lib/types/project.d.ts.map +0 -1
  222. package/lib/types/prompt.d.ts +0 -77
  223. package/lib/types/prompt.d.ts.map +0 -1
  224. package/lib/types/query.d.ts +0 -118
  225. package/lib/types/query.d.ts.map +0 -1
  226. package/lib/types/rate-limiter.d.ts +0 -28
  227. package/lib/types/rate-limiter.d.ts.map +0 -1
  228. package/lib/types/refs.d.ts +0 -22
  229. package/lib/types/refs.d.ts.map +0 -1
  230. package/lib/types/runs.d.ts +0 -32
  231. package/lib/types/runs.d.ts.map +0 -1
  232. package/lib/types/skill.d.ts +0 -78
  233. package/lib/types/skill.d.ts.map +0 -1
  234. package/lib/types/store/activity-catalog.d.ts +0 -26
  235. package/lib/types/store/activity-catalog.d.ts.map +0 -1
  236. package/lib/types/store/agent.d.ts +0 -18
  237. package/lib/types/store/agent.d.ts.map +0 -1
  238. package/lib/types/store/collections.d.ts +0 -78
  239. package/lib/types/store/collections.d.ts.map +0 -1
  240. package/lib/types/store/common.d.ts +0 -22
  241. package/lib/types/store/common.d.ts.map +0 -1
  242. package/lib/types/store/doc-analyzer.d.ts +0 -140
  243. package/lib/types/store/doc-analyzer.d.ts.map +0 -1
  244. package/lib/types/store/dsl-workflow.d.ts +0 -238
  245. package/lib/types/store/dsl-workflow.d.ts.map +0 -1
  246. package/lib/types/store/index.d.ts +0 -11
  247. package/lib/types/store/index.d.ts.map +0 -1
  248. package/lib/types/store/object-types.d.ts +0 -23
  249. package/lib/types/store/object-types.d.ts.map +0 -1
  250. package/lib/types/store/signals.d.ts +0 -5
  251. package/lib/types/store/signals.d.ts.map +0 -1
  252. package/lib/types/store/store.d.ts +0 -358
  253. package/lib/types/store/store.d.ts.map +0 -1
  254. package/lib/types/store/temporalio.d.ts +0 -16
  255. package/lib/types/store/temporalio.d.ts.map +0 -1
  256. package/lib/types/store/workflow.d.ts +0 -412
  257. package/lib/types/store/workflow.d.ts.map +0 -1
  258. package/lib/types/sts-token-types.d.ts +0 -72
  259. package/lib/types/sts-token-types.d.ts.map +0 -1
  260. package/lib/types/tenant.d.ts +0 -10
  261. package/lib/types/tenant.d.ts.map +0 -1
  262. package/lib/types/training.d.ts +0 -38
  263. package/lib/types/training.d.ts.map +0 -1
  264. package/lib/types/transient-tokens.d.ts +0 -24
  265. package/lib/types/transient-tokens.d.ts.map +0 -1
  266. package/lib/types/user.d.ts +0 -108
  267. package/lib/types/user.d.ts.map +0 -1
  268. package/lib/types/utils/auth.d.ts +0 -3
  269. package/lib/types/utils/auth.d.ts.map +0 -1
  270. package/lib/types/utils/schemas.d.ts +0 -9
  271. package/lib/types/utils/schemas.d.ts.map +0 -1
  272. package/lib/types/utils/type-helpers.d.ts +0 -3
  273. package/lib/types/utils/type-helpers.d.ts.map +0 -1
  274. package/lib/types/versions.d.ts +0 -3
  275. package/lib/types/versions.d.ts.map +0 -1
  276. package/lib/vertesia-common.js +0 -2
  277. package/lib/vertesia-common.js.map +0 -1
  278. package/src/store/agent.ts +0 -19
@@ -1,108 +0,0 @@
1
- import { ApiKey } from "./apikey.js";
2
- import { ProjectRoles } from "./project.js";
3
- export interface UserWithAccounts extends User {
4
- accounts: AccountRef[];
5
- }
6
- export interface User {
7
- id: string;
8
- externalId: string;
9
- email: string;
10
- name: string;
11
- username?: string;
12
- picture?: string;
13
- language?: string;
14
- phone?: string;
15
- sign_in_provider?: string;
16
- last_selected_account?: string;
17
- source?: 'firebase' | 'scim';
18
- }
19
- export interface UserRef {
20
- id: string;
21
- name: string;
22
- email: string;
23
- picture?: string;
24
- }
25
- export declare const UserRefPopulate = "id name email picture";
26
- export declare enum Datacenters {
27
- aws = "aws",
28
- gcp = "gcp",
29
- azure = "azure"
30
- }
31
- export declare enum BillingMethod {
32
- stripe = "stripe",
33
- invoice = "invoice"
34
- }
35
- export interface AccountBilling {
36
- method: BillingMethod;
37
- stripe_customer_id?: string;
38
- }
39
- export interface Account {
40
- id: string;
41
- name: string;
42
- email_domains: string[];
43
- onboarding: {
44
- completed: boolean;
45
- completed_at: Date;
46
- };
47
- datacenter: string;
48
- billing: AccountBilling;
49
- created_by: string;
50
- updated_by: string;
51
- created_at: string;
52
- updated_at: string;
53
- }
54
- export interface UpdateAccountPayload {
55
- name?: string;
56
- email_domains?: string[];
57
- billing?: AccountBilling;
58
- }
59
- export interface AccountRef {
60
- id: string;
61
- name: string;
62
- }
63
- export declare const AccountRefPopulate = "id name";
64
- export interface InviteUserRequestPayload {
65
- email: string;
66
- role: ProjectRoles;
67
- }
68
- export interface InviteUserResponsePayload {
69
- action: 'invited' | 'added';
70
- }
71
- type UserOrApiKey<T extends User | ApiKey> = T extends User ? User : ApiKey;
72
- type SessionType<T extends User | ApiKey> = T extends User ? "user" : "apikey";
73
- export interface SessionInfo<T extends User | ApiKey> {
74
- isNew?: boolean;
75
- type: SessionType<T>;
76
- subject: UserOrApiKey<T>;
77
- current_account: Account;
78
- accounts: AccountRef[];
79
- }
80
- export interface UserSessionInfo extends SessionInfo<User> {
81
- }
82
- export interface ApiKeySessionInfo extends SessionInfo<ApiKey> {
83
- }
84
- export interface OnboardingProgress {
85
- interactions: boolean;
86
- prompts: boolean;
87
- environments: boolean;
88
- default_environment_defined: boolean;
89
- }
90
- /**
91
- * Data collected at signup
92
- * used for onboarding and segments
93
- **/
94
- export interface SignupData {
95
- accountType: string;
96
- companyName?: string;
97
- companySize?: number;
98
- companyWebsite?: string;
99
- maturity?: string;
100
- }
101
- /**
102
- * Signup Payload: used to create a new user
103
- */
104
- export interface SignupPayload {
105
- firebaseToken: string;
106
- signupData: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AM,WAAW,eAAgB,SAAQ,WAAW,CAAC,IAAI,CAAC;CAAI;AAC9D,MAAM,WAAW,iBAAkB,SAAQ,WAAW,CAAC,MAAM,CAAC;CAAI;AAElE,MAAM,WAAW,kBAAkB;IAC/B,YAAY,EAAE,OAAO,CAAC;IACtB,OAAO,EAAE,OAAO,CAAC;IACjB,YAAY,EAAE,OAAO,CAAC;IACtB,2BAA2B,EAAE,OAAO,CAAA;CACvC;AAGD;;;IAGI;AACJ,MAAM,WAAW,UAAU;IACvB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAC1B,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,UAAU,CAAC;CAC1B"}
@@ -1,3 +0,0 @@
1
- import { ProjectRef } from "../project.js";
2
- export declare function getTenantId(accountId: string, projectId: string): string;
3
- export declare function getTenantIdFromProject(project: ProjectRef): string;
@@ -1 +0,0 @@
1
- {"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../../src/utils/auth.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,wBAAgB,WAAW,CAAC,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,CAMxE;AACD,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,UAAU,GAAG,MAAM,CAElE"}
@@ -1,9 +0,0 @@
1
- import type { JSONSchema } from "@llumiverse/common";
2
- import type { JSONSchema4 } from "json-schema";
3
- import { InCodePrompt, InteractionRefWithSchema, PopulatedInteraction } from "../interaction.js";
4
- import { ExecutablePromptSegmentDef } from "../prompt.js";
5
- export declare function removeExtraProperties<T>(schema: T): T;
6
- export declare function mergeJSONSchemas(schemas: JSONSchema[]): JSONSchema | null;
7
- export declare function _mergePromptsSchema(prompts: ExecutablePromptSegmentDef[]): JSONSchema4 | null;
8
- export declare function mergePromptsSchema(interaction: InteractionRefWithSchema | PopulatedInteraction): JSONSchema4 | null;
9
- export declare function mergeInCodePromptSchemas(prompts: InCodePrompt[]): JSONSchema | null;
@@ -1 +0,0 @@
1
- {"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../src/utils/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAErD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,wBAAwB,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACjG,OAAO,EAAE,0BAA0B,EAAwB,MAAM,cAAc,CAAC;AAIhF,wBAAgB,qBAAqB,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,GAAG,CAAC,CAmBrD;AAED,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,UAAU,EAAE,qBAerD;AAED,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,0BAA0B,EAAE,sBAoCxE;AAED,wBAAgB,kBAAkB,CAAC,WAAW,EAAE,wBAAwB,GAAG,oBAAoB,sBAG9F;AAED,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,YAAY,EAAE,qBAkB/D"}
@@ -1,3 +0,0 @@
1
- export type RequireAtLeastOne<T, Keys extends keyof T = keyof T> = Pick<T, Exclude<keyof T, Keys>> & {
2
- [K in Keys]-?: Required<Pick<T, K>> & Partial<Pick<T, Exclude<Keys, K>>>;
3
- }[Keys];
@@ -1 +0,0 @@
1
- {"version":3,"file":"type-helpers.d.ts","sourceRoot":"","sources":["../../../src/utils/type-helpers.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,iBAAiB,CAAC,CAAC,EAAE,IAAI,SAAS,MAAM,CAAC,GAAG,MAAM,CAAC,IAC3D,IAAI,CAAC,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,EAAE,IAAI,CAAC,CAAC,GAC/B;KACK,CAAC,IAAI,IAAI,CAAC,CAAC,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,EAAE,OAAO,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;CAC3E,CAAC,IAAI,CAAC,CAAC"}
@@ -1,3 +0,0 @@
1
- export declare enum ApiVersions {
2
- COMPLETION_RESULT_V1 = 20250925
3
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"versions.d.ts","sourceRoot":"","sources":["../../src/versions.ts"],"names":[],"mappings":"AAAA,oBAAY,WAAW;IACnB,oBAAoB,WAAW;CAClC"}
@@ -1,2 +0,0 @@
1
- var e,t,o,i,a,u;!function(e){e.int_read="interaction:read",e.int_write="interaction:write",e.int_delete="interaction:delete",e.int_execute="interaction:execute",e.run_read="run:read",e.run_write="run:write",e.env_admin="environment:admin",e.project_admin="project:admin",e.project_integration_read="project:integration_read",e.project_settings_write="project:settings_write",e.api_key_create="api_key:create",e.api_key_read="api_key:read",e.api_key_update="api_key:update",e.api_key_delete="api_key:delete",e.account_read="account:read",e.account_write="account:write",e.account_admin="account:admin",e.manage_billing="account:billing",e.account_member="account:member",e.content_read="content:read",e.content_write="content:write",e.content_delete="content:delete",e.content_admin="content:admin",e.content_superadmin="content:superadmin",e.workflow_run="workflow:run",e.workflow_admin="workflow:admin",e.workflow_superadmin="workflow:superadmin",e.iam_impersonate="iam:impersonate",e.studio_access="studio:access"}(e||(e={})),function(e){e.project="project",e.environment="environment",e.account="account",e.interaction="interaction",e.app="application"}(t||(t={})),function(e){e.user="user",e.group="group",e.apikey="apikey"}(o||(o={})),function(e){e.secret="sk"}(i||(i={})),function(e){e.User="user",e.Group="group",e.ApiKey="apikey",e.ServiceAccount="service_account",e.Agent="agent"}(a||(a={})),function(e){e.openai="openai",e.azure_openai="azure_openai",e.azure_foundry="azure_foundry",e.huggingface_ie="huggingface_ie",e.replicate="replicate",e.bedrock="bedrock",e.vertexai="vertexai",e.togetherai="togetherai",e.mistralai="mistralai",e.groq="groq",e.watsonx="watsonx"}(u||(u={}));const n={openai:{id:u.openai,name:"OpenAI",requiresApiKey:!0,requiresEndpointUrl:!1,supportSearch:!1},azure_openai:{id:u.azure_openai,name:"Azure OpenAI",requiresApiKey:!1,requiresEndpointUrl:!0,supportSearch:!1},azure_foundry:{id:u.azure_foundry,name:"Azure Foundry",requiresApiKey:!0,requiresEndpointUrl:!0,supportSearch:!1},huggingface_ie:{id:u.huggingface_ie,name:"HuggingFace Inference Endpoint",requiresApiKey:!0,requiresEndpointUrl:!0},replicate:{id:u.replicate,name:"Replicate",requiresApiKey:!0,requiresEndpointUrl:!1,supportSearch:!0},bedrock:{id:u.bedrock,name:"AWS Bedrock",requiresApiKey:!1,requiresEndpointUrl:!1,endpointPlaceholder:"region name (eg. us-east-1)",supportSearch:!1},vertexai:{id:u.vertexai,name:"Google Vertex AI",requiresApiKey:!1,requiresEndpointUrl:!1,supportSearch:!1},togetherai:{id:u.togetherai,name:"Together AI",requiresApiKey:!1,requiresEndpointUrl:!1,supportSearch:!1},mistralai:{id:u.mistralai,name:"Mistral AI",requiresApiKey:!1,requiresEndpointUrl:!1,supportSearch:!1},groq:{id:u.groq,name:"Groq Cloud",requiresApiKey:!1,requiresEndpointUrl:!1,supportSearch:!1},watsonx:{id:u.watsonx,name:"IBM WatsonX",requiresApiKey:!0,requiresEndpointUrl:!0,supportSearch:!1}};var r,d,p,s,m,l,c;!function(e){e.max_tokens="max_tokens",e.temperature="temperature",e.top_p="top_p",e.top_k="top_k",e.presence_penalty="presence_penalty",e.frequency_penalty="frequency_penalty",e.stop_sequence="stop_sequence",e.seed="seed",e.number_of_images="number_of_images"}(r||(r={})),function(e){e.numeric="numeric",e.enum="enum",e.boolean="boolean",e.string_list="string_list"}(d||(d={})),function(e){e.safety="safety",e.system="system",e.user="user",e.assistant="assistant",e.negative="negative",e.mask="mask",e.tool="tool"}(p||(p={})),function(e){e.text="text",e.image="image"}(s||(s={})),function(e){e.Available="available",e.Pending="pending",e.Stopped="stopped",e.Unavailable="unavailable",e.Unknown="unknown",e.Legacy="legacy"}(m||(m={})),function(e){e.Classifier="classifier",e.Regressor="regressor",e.Clustering="clustering",e.AnomalyDetection="anomaly-detection",e.TimeSeries="time-series",e.Text="text",e.Image="image",e.Audio="audio",e.Video="video",e.Embedding="embedding",e.Chat="chat",e.Code="code",e.NLP="nlp",e.MultiModal="multi-modal",e.Test="test",e.Other="other",e.Unknown="unknown"}(l||(l={})),function(e){e.running="running",e.succeeded="succeeded",e.failed="failed",e.cancelled="cancelled"}(c||(c={}));const _={"o1-mini":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1,tool_support_streaming:!1},o3:{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!1},"deepseek-r1-0528":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1,tool_support_streaming:!1},"deepseek-v3-0324":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1,tool_support_streaming:!1},"mistral-medium-2505":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1,tool_support_streaming:!1},"mistral-nemo":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1,tool_support_streaming:!1},"llama-4-scout-17b-16e-instruct":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1,tool_support_streaming:!1}},g={"gpt-3.5-turbo":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1,tool_support_streaming:!1},"gpt-35-turbo":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1,tool_support_streaming:!1},"gpt-35":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1,tool_support_streaming:!1},"gpt-4":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!0},"gpt-4.1":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!0},"gpt-4.5":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!0},"gpt-4o":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!0},gpt:{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!0},o1:{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!1},"o1-preview":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!1},"o1-pro":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!1},"o3-mini":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!1},"o4-mini":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!1},o4:{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!1},o:{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!1},"llama-3.1":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!1},"llama-3.2":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1,tool_support_streaming:!1},"llama-3.3":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!1},"llama-3":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!1},"llama-4":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1,tool_support_streaming:!1},llama:{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1,tool_support_streaming:!1},"mistral-large":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!1},"mistral-small":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!1},mistral:{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1,tool_support_streaming:!1},"phi-4":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1,tool_support_streaming:!1},phi:{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1,tool_support_streaming:!1},"deepseek-r1":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1,tool_support_streaming:!1},"deepseek-v3":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!1},deepseek:{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1,tool_support_streaming:!1},"ai21-jamba":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!0},ai21:{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!0},jamba:{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!0},"cohere-command":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!0},cohere:{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!0},command:{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!0},"grok-3":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!0},grok:{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!0}},v=["image","vision"],b=["video"],x=["audio"],f=["text"],h=["image"],E=["video"],N=["audio"],T=["text"],I=["embed"],O=["tool","gpt-4","gpt-4o","o1","o3","o4","llama-3","mistral-large","mistral-small","jamba","cohere","command","grok"];function y(e,t){return t.some(t=>e.includes(t))}function A(e,t){return t.startsWith("gpt-")||t.startsWith("o1")||t.startsWith("o3")||t.startsWith("o4")?e:{...e,tool_support:!1,tool_support_streaming:!1}}const D={},C={"meta.llama3-1-70b-instruct-v1:0":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1,tool_support_streaming:!1},"meta.llama3-1-8b-instruct-v1:0":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1,tool_support_streaming:!1}},R={"ai21.jamba-instruct-v1:0":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1,tool_support_streaming:!1},"amazon.nova-canvas-v1:0":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{image:!0,text:!1,video:!1,audio:!1,embed:!1},tool_support:!1,tool_support_streaming:!1},"amazon.nova-micro-v1:0":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!0},"anthropic.claude-3-5-haiku-20241022-v1:0":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!1},"meta.llama3-2-11b-instruct-v1:0":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!1},"meta.llama3-2-90b-instruct-v1:0":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!1}},S={"ai21.jamba":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!0},"amazon.nova":{input:{text:!0,image:!0,video:!0,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!0},"amazon.titan":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1,tool_support_streaming:!1},"anthropic.claude-3-5-haiku":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!1},"anthropic.claude":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!0},"cohere.command-r":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!0},"cohere.command":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1,tool_support_streaming:!1},"deepseek.r1":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1,tool_support_streaming:!1},"meta.llama3-1":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!1},"meta.llama3-2":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1,tool_support_streaming:!1},"meta.llama3-3":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1,tool_support_streaming:!1},"meta.llama3":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1,tool_support_streaming:!1},"meta.llama4":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1,tool_support_streaming:!1},"mistral.mistral-large":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!1},"mistral.mistral":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1,tool_support_streaming:!1},"mistral.mixtral":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1,tool_support_streaming:!1},"mistral.pixtral":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!1},"openai.gpt-oss":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1,tool_support_streaming:!1},"qwen.":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1,tool_support_streaming:!1},"twelvelabs.":{input:{text:!0,image:!1,video:!0,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!1},"writer.palmyra":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!1}};const U=["image"],k=["video"],w=["audio"],M=["text"],L=["image"],q=["video"],j=["audio"],G=["text"],P=["embed"],K=["tool","sonnet","opus","nova","palmyra","command-r","mistral-large","pixtral"];function W(e,t){return t.some(t=>e.includes(t))}function F(e){const t=e.toLowerCase();let o=t;if(/^arn:aws:bedrock:[^:]+:[^:]*:(inference-profile|foundation-model)\/.+/i.test(t)){const e=t.lastIndexOf("foundation-model/"),i=t.lastIndexOf("inference-profile/");-1!==e?o=t.substring(e):-1!==i&&(o=t.substring(i))}const i=o.startsWith("inference-profile/"),a=o.startsWith("foundation-model/"),u=function(e){const t=e.toLowerCase(),o=t.lastIndexOf("/");let i=-1===o?t:t.slice(o+1);return t.includes("inference-profile/")&&(i=i.replace(/^[^.]+\./,"")),i}(o);if(a){const e=D[u];if(e)return e}else if(i){const e=C[u];if(e)return e}const n=R[u];if(n)return n;const r=function(e,t){let o;for(const i of Object.keys(t))e.startsWith(i)&&(!o||i.length>o.length)&&(o=i);return o?t[o]:void 0}(u,S);if(r)return r;const d=function(e){const t=e.toLowerCase();if(t.includes("inference-profile")){const e=t.split("/");if(e.length>1){const t=e[e.length-1],o=t.split(".");return o.length>1&&"deepseek"===o[1]?`deepseek-${o.slice(2).join(".")}`:o.length>2?o.slice(2).join("."):t}}return t}(u);return{input:{text:W(d,M)||void 0,image:W(d,U)||void 0,video:W(d,k)||void 0,audio:W(d,w)||void 0,embed:!1},output:{text:W(d,G)||void 0,image:W(d,L)||void 0,video:W(d,q)||void 0,audio:W(d,j)||void 0,embed:W(d,P)||void 0},tool_support:W(d,K)||void 0}}const z={"chatgpt-4o-latest":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1}},B={gpt:{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0},"gpt-3.5":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1},"gpt-4":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1},"gpt-4-turbo":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0},"gpt-4o":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0},"gpt-4.1":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0},"gpt-4.5":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0},"gpt-image":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!1,image:!0,video:!1,audio:!1,embed:!1},tool_support:!1},"gpt-oss":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1},o:{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0},"o1-mini":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1},"o1-preview":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1},"omni-moderation":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1},sora:{input:{text:!0,image:!0,video:!0,audio:!1,embed:!1},output:{text:!1,image:!1,video:!0,audio:!0,embed:!1},tool_support:!1},"text-embedding":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!1,image:!1,video:!1,audio:!1,embed:!0},tool_support:!1},"text-moderation":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1},whisper:{input:{text:!1,image:!1,video:!1,audio:!0,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1}},Y=["image"],V=["video"],H=["audio"],Z=["text"],Q=["image"],X=["video"],J=["audio"],$=["text"],ee=["embed"],te=["tool","gpt","o1","o3","o4"];function oe(e,t){return t.some(t=>e.includes(t))}function ie(e){const t=e.toLowerCase();const o=z[t];if(o)return o;let i,a=0;for(const e of Object.keys(B))t.startsWith(e)&&e.length>a&&(i=e,a=e.length);if(i)return B[i];return{input:{text:oe(t,Z)||void 0,image:oe(t,Y)||void 0,video:oe(t,V)||void 0,audio:oe(t,H)||void 0,embed:!1},output:{text:oe(t,$)||void 0,image:oe(t,Q)||void 0,video:oe(t,X)||void 0,audio:oe(t,J)||void 0,embed:oe(t,ee)||void 0},tool_support:oe(t,te)||void 0}}const ae={"gemini-2.0-flash-lite-001":{input:{text:!0,image:!0,video:!0,audio:!0,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1}},ue={gemini:{input:{text:!0,image:!0,video:!0,audio:!0,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0},"gemini-2.5-flash-image":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!0,video:!1,audio:!1,embed:!1},tool_support:!1},"gemini-3.0-pro-image":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!0,video:!1,audio:!1,embed:!1},tool_support:!1},"gemini-3.0-flash-image":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!0,video:!1,audio:!1,embed:!1},tool_support:!1},imagen:{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!1,image:!0,video:!1,audio:!1,embed:!1},tool_support:!1},"imagen-3.0":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!1,image:!0,video:!1,audio:!1,embed:!1},tool_support:!1},"imagen-3.0-capability":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!1,image:!0,video:!1,audio:!1,embed:!1},tool_support:!1},"imagen-4.0":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!1,image:!0,video:!1,audio:!1,embed:!1},tool_support:!1},"imagen-4.0-capability":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!1,image:!0,video:!1,audio:!1,embed:!1},tool_support:!1},claude:{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0},llama:{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0},"llama-2":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1},"llama-3.2":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0},"llama-4":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0}},ne=["image"],re=["video"],de=["audio"],pe=["text"],se=["image"],me=["video"],le=["audio"],ce=["text"],_e=["embed"],ge=["tool","sonnet","opus","gemini","claude"];function ve(e,t){return t.some(t=>e.includes(t))}function be(e){const t=function(e){const t=e.toLowerCase().split("/");return t[t.length-1]}(e),o=ae[t];if(o)return o;let i,a=0;for(const e of Object.keys(ue))t.startsWith(e)&&e.length>a&&(i=e,a=e.length);if(i)return ue[i];return{input:{text:ve(t,pe)||void 0,image:ve(t,ne)||void 0,video:ve(t,re)||void 0,audio:ve(t,de)||void 0,embed:!1},output:{text:ve(t,ce)||void 0,image:ve(t,se)||void 0,video:ve(t,me)||void 0,audio:ve(t,le)||void 0,embed:ve(t,_e)||void 0},tool_support:ve(t,ge)||void 0}}function xe(e,t){if(e.startsWith("locations/")){const t=e.split("/");t.length>=3&&(e=t.slice(2).join("/"))}const o=function(e,t){switch(t?.toLowerCase()){case u.vertexai:return be(e);case u.openai:return ie(e);case u.bedrock:return F(e);case u.azure_foundry:return function(e){const{baseModel:t}=function(e){const t=e.split("::");return 2===t.length?{deploymentName:t[0],baseModel:t[1]}:{deploymentName:e,baseModel:e}}(e),o=t.toLowerCase(),i=_[o];if(i)return A(i,o);let a,u=0;for(const e of Object.keys(g))o.startsWith(e)&&e.length>u&&(a=e,u=e.length);if(a)return A(g[a],o);const n={text:y(o,f)||!0,image:y(o,v)||void 0,video:y(o,b)||void 0,audio:y(o,x)||void 0,embed:!1},r={text:y(o,T)||!0,image:y(o,h)||void 0,video:y(o,E)||void 0,audio:y(o,N)||void 0,embed:y(o,I)||void 0},d=y(o,O)||void 0;return A({input:n,output:r,tool_support:d,tool_support_streaming:d||void 0},o)}(e);default:return e.startsWith("gpt")?ie(e):e.startsWith("publishers/")?be(e):e.startsWith("arn:aws")?F(e):{input:{},output:{}}}}(e,t);return o.input.audio=!1,o.output.audio=!1,o.output.video=!1,o.tool_support_streaming=!1,o}function fe(e,t,o=!1){const i=xe(e,t);return o?!!i.tool_support_streaming:!!i.tool_support}var he,Ee,Ne,Te;r.max_tokens,d.numeric,r.temperature,d.numeric,r.top_p,d.numeric,r.top_k,d.numeric,r.presence_penalty,d.numeric,r.frequency_penalty,d.numeric,r.stop_sequence,d.string_list,function(e){e.TEXT_IMAGE="TEXT_IMAGE",e.EDIT_MODE_INPAINT_REMOVAL="EDIT_MODE_INPAINT_REMOVAL",e.EDIT_MODE_INPAINT_INSERTION="EDIT_MODE_INPAINT_INSERTION",e.EDIT_MODE_BGSWAP="EDIT_MODE_BGSWAP",e.EDIT_MODE_OUTPAINT="EDIT_MODE_OUTPAINT",e.CUSTOMIZATION_SUBJECT="CUSTOMIZATION_SUBJECT",e.CUSTOMIZATION_STYLE="CUSTOMIZATION_STYLE",e.CUSTOMIZATION_CONTROLLED="CUSTOMIZATION_CONTROLLED",e.CUSTOMIZATION_INSTRUCT="CUSTOMIZATION_INSTRUCT"}(he||(he={})),function(e){e.MASK_MODE_USER_PROVIDED="MASK_MODE_USER_PROVIDED",e.MASK_MODE_BACKGROUND="MASK_MODE_BACKGROUND",e.MASK_MODE_FOREGROUND="MASK_MODE_FOREGROUND",e.MASK_MODE_SEMANTIC="MASK_MODE_SEMANTIC"}(Ee||(Ee={})),function(e){e.HIGH="HIGH",e.LOW="LOW",e.THINKING_LEVEL_UNSPECIFIED="THINKING_LEVEL_UNSPECIFIED"}(Ne||(Ne={})),function(e){e.virtual_lb="virtual_lb",e.virtual_mediator="virtual_mediator",e.test="test"}(Te||(Te={}));const Ie={...u,...Te},Oe={virtual_lb:{id:Te.virtual_lb,name:"Virtual - Load Balancer",requiresApiKey:!1,requiresEndpointUrl:!1,supportSearch:!1},virtual_mediator:{id:Te.virtual_mediator,name:"Virtual - Mediator",requiresApiKey:!1,requiresEndpointUrl:!1,supportSearch:!1},test:{id:Te.test,name:"Test LLM",requiresApiKey:!1,requiresEndpointUrl:!1,supportSearch:!1}},ye={...n,...Oe},Ae="id name provider enabled_models default_model endpoint_url allowed_projects account created_at updated_at",De="id name tags description";var Ce;!function(e){e.gladia="gladia",e.github="github",e.aws="aws",e.magic_pdf="magic_pdf",e.serper="serper"}(Ce||(Ce={}));const Re="id name endpoint parent description status version visibility tags agent_runner_options updated_at prompts",Se=`${Re} result_schema`;var Ue,ke,we,Me;!function(e){e.draft="draft",e.published="published",e.archived="archived"}(Ue||(Ue={})),function(e){e.created="created",e.processing="processing",e.completed="completed",e.failed="failed"}(ke||(ke={})),function(e){e.STANDARD="STANDARD",e.RESTRICTED="RESTRICTED",e.DEBUG="DEBUG"}(we||(we={})),function(e){e.STANDARD="Run data is stored for both the model inputs and output.",e.RESTRICTED="No run data is stored for the model inputs — only the model output.",e.DEBUG="Run data is stored for the model inputs and output, schema, and final prompt."}(Me||(Me={}));const Le={[we.STANDARD]:Me.STANDARD,[we.RESTRICTED]:Me.RESTRICTED,[we.DEBUG]:Me.DEBUG};var qe,je;!function(e){e.Collection="collection"}(qe||(qe={})),function(e){e.api="api",e.cli="cli",e.ui="ui",e.webhook="webhook",e.test="test-data",e.system="system"}(je||(je={}));const Ge="-result -parameters -result_schema -prompt";var Pe,Ke;!function(e){e.RUN_AND_INTERACTION_CONFIG="RUN_AND_INTERACTION_CONFIG",e.RUN_CONFIG_ONLY="RUN_CONFIG_ONLY",e.INTERACTION_CONFIG_ONLY="INTERACTION_CONFIG_ONLY"}(Pe||(Pe={})),function(e){e.RUN_AND_INTERACTION_CONFIG="This run configuration is used. Undefined options are filled with interaction configuration.",e.RUN_CONFIG_ONLY="Only this run configuration is used. Undefined options remain undefined.",e.INTERACTION_CONFIG_ONLY="Only interaction configuration is used."}(Ke||(Ke={}));const We={[Pe.RUN_AND_INTERACTION_CONFIG]:Ke.RUN_AND_INTERACTION_CONFIG,[Pe.RUN_CONFIG_ONLY]:Ke.RUN_CONFIG_ONLY,[Pe.INTERACTION_CONFIG_ONLY]:Ke.INTERACTION_CONFIG_ONLY};var Fe,ze,Be,Ye;!function(e){e.analyzed_pages="analyzed_pages",e.extracted_tables="extracted_tables",e.analyzed_images="analyzed_images",e.input_token_used="input_token_used",e.output_token_used="output_token_used",e.task_run="task_run"}(Fe||(Fe={}));class Ve{constructor(e,t,o){this.parent=e,this.parentUnits=t,this.spanUnits=o,this.unitsDone=0}done(e){const t=this.spanUnits-this.unitsDone;t&&((!e||e>t)&&(e=t),this.unitsDone+=e,this.parent.done(e*this.parentUnits/this.spanUnits))}get parentUnitsDone(){return Math.round(this.unitsDone*this.parentUnits/this.spanUnits)}get isDone(){return this.unitsDone>=this.spanUnits}}class He{constructor(e){this.total=e,this.unitsDone=0}get fraction(){return this.unitsDone/this.total}get percent(){return Math.round(100*this.fraction)}get isDone(){return this.unitsDone>=this.total}done(e){const t=this.total-this.unitsDone;t&&((!e||e>t)&&(e=t),this.unitsDone+=e)}span(e,t){return new Ve(this,e,t||e)}}function Ze(e,t){switch(t){case ze.owner:return!0;case ze.admin:return e!==ze.billing&&e!==ze.owner;case ze.developer:return e===ze.developer;case ze.billing:return e===ze.billing;default:return!1}}!function(e){e.owner="owner",e.admin="admin",e.project_admin="project_admin",e.developer="developer",e.application="application",e.consumer="consumer",e.executor="executor",e.reader="reader",e.billing="billing",e.member="member",e.app_member="app_member",e.content_superadmin="content_superadmin"}(ze||(ze={})),function(e){e.public="public",e.account="account",e.project="project"}(Be||(Be={})),function(e){e.content_type="content_type",e.intake="intake",e.analysis="analysis",e.non_applicable="non_applicable"}(Ye||(Ye={}));const Qe={ExtractInformation:Ye.intake,SelectDocumentType:Ye.intake,GenerateMetadataModel:Ye.content_type,ChunkDocument:Ye.intake,IdentifyTextSections:Ye.intake,AnalyzeDocument:Ye.analysis,ReduceTextSections:Ye.analysis,GenericAgent:Ye.non_applicable,AdhocTaskAgent:Ye.non_applicable,Mediator:Ye.non_applicable,AnalyzeConversation:Ye.analysis,GetAgentConversationTopic:Ye.analysis};function Xe(e){e.startsWith("sys:")&&(e=e.substring(4));const t=Qe[e];if(t!==Ye.non_applicable)return t||void 0}var Je,$e;!function(e){e.text="text",e.image="image",e.properties="properties"}(Je||(Je={})),function(e){e.full_text="full_text"}($e||($e={}));const et={...Je,...$e},tt="id name account";var ot,it,at,ut,nt;!function(e){e.draft="draft",e.published="published",e.archived="archived"}(ot||(ot={})),function(e){e.chat="chat",e.template="template"}(it||(it={})),function(e){e.text="text",e.jst="jst"}(at||(at={})),function(e){e.project="Project",e.projects="Projects",e.environment="Environment",e.user="User",e.account="Account",e.interaction="Interaction",e.userGroup="UserGroup"}(ut||(ut={})),function(e){e.active="active",e.archived="archived"}(nt||(nt={}));const rt="id name description tags created_at updated_at",dt={type:"object",description:"Represent a rendition of a file stored in an object. It will be stored as a separate object in the database.",properties:{mime_type:{type:"string",description:"The format of the rendition. This is a MIME type."},source_etag:{type:"string",description:"The ETag of the file used for the rendition.",nullable:!0},height:{type:"integer",description:"The height of the rendition",nullable:!0},width:{type:"integer",description:"The width of the rendition",nullable:!0},multipart:{type:"boolean",description:"If the rendition is a multi-part rendition",nullable:!0,default:!1},total_parts:{type:"integer",description:"The total number of parts in the rendition",nullable:!0}},required:["mime_type"]},pt={type:"object",description:"Represent a semantic chunk of a document",properties:{source_etag:{type:"string",description:"The ETag of the file used for the rendition.",nullable:!0},part_number:{type:"integer",description:"The part number of the chunk"},title:{type:"string",description:"The title of the chunk",nullable:!0},source_line_start:{type:"integer",description:"The line number where the chunk starts",nullable:!0},source_line_end:{type:"integer",description:"The line number where the chunk ends",nullable:!0},type:{type:"string",description:"The type of the chunk",enum:["text","image","table","chart","diagram","code","other"],nullable:!0},page_number:{type:"integer",description:"The page number of the document part",nullable:!0},description:{type:"string",description:"The description of the document part, if it's an image, the exhaustive description of the image",nullable:!0},height:{type:"integer",description:"The height of the rendition",nullable:!0},width:{type:"integer",description:"The width of the rendition",nullable:!0}},required:["part_number"]};var st,mt,lt;!function(e){e.COLLECTION_ID="x-collection-id",e.PROCESSING_PRIORITY="x-processing-priority",e.CREATE_REVISION="x-create-revision",e.REVISION_LABEL="x-revision-label"}(st||(st={})),function(e){e.created="created",e.processing="processing",e.ready="ready",e.completed="completed",e.failed="failed",e.archived="archived"}(mt||(mt={})),function(e){e.Video="video",e.Image="image",e.Audio="audio",e.Document="document",e.Code="code",e.Other="other"}(lt||(lt={}));const ct="Poster",_t="Audio",gt="Web",vt="PDF";var bt,xt,ft,ht;!function(e){e.single="single",e.multiple="multiple",e.none="none"}(bt||(bt={})),function(e){e.jpeg="jpeg",e.png="png",e.webp="webp"}(xt||(xt={})),function(e){e.docx="docx",e.pdf="pdf"}(ft||(ft={})),function(e){e.normal="normal",e.low="low"}(ht||(ht={}));const Et={TERMINATE:"TERMINATE",ABANDON:"ABANDON",REQUEST_CANCEL:"REQUEST_CANCEL",PARENT_CLOSE_POLICY_UNSPECIFIED:void 0,PARENT_CLOSE_POLICY_TERMINATE:"TERMINATE",PARENT_CLOSE_POLICY_ABANDON:"ABANDON",PARENT_CLOSE_POLICY_REQUEST_CANCEL:"REQUEST_CANCEL"};var Nt,Tt,It;function Ot(e){return"objectIds"in e?e.objectIds:[]}!function(e){e.create="create",e.change_type="change_type",e.update="update",e.revision_created="revision_created",e.delete="delete",e.workflow_finished="workflow_finished",e.workflow_execution_request="workflow_execution_request",e.api_request="api_request"}(Nt||(Nt={})),function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.RUNNING=1]="RUNNING",e[e.COMPLETED=2]="COMPLETED",e[e.FAILED=3]="FAILED",e[e.CANCELED=4]="CANCELED",e[e.TERMINATED=5]="TERMINATED",e[e.CONTINUED_AS_NEW=6]="CONTINUED_AS_NEW",e[e.TIMED_OUT=7]="TIMED_OUT"}(Tt||(Tt={})),function(e){e.SYSTEM="system",e.THOUGHT="thought",e.PLAN="plan",e.UPDATE="update",e.COMPLETE="complete",e.WARNING="warning",e.ERROR="error",e.ANSWER="answer",e.QUESTION="question",e.REQUEST_INPUT="request_input",e.IDLE="idle",e.TERMINATED="terminated"}(It||(It={}));const yt="low_priority";var At,Dt;!function(e){e.created="created",e.building="building",e.prepared="prepared",e.processing="processing",e.completed="completed",e.cancelled="cancelled",e.failed="failed"}(At||(At={})),function(e){e.userInvite="user-invite",e.migration="migration"}(Dt||(Dt={}));const Ct="id name email picture";var Rt,St;!function(e){e.aws="aws",e.gcp="gcp",e.azure="azure"}(Rt||(Rt={})),function(e){e.stripe="stripe",e.invoice="invoice"}(St||(St={}));const Ut="id name";function kt(e,t){return e.slice(-6)+"_"+t.slice(-6)}function wt(e){return kt(e.account,e.id)}function Mt(e){if(!e)return e;if(Array.isArray(e))for(const t of e)Mt(t);else if("object"==typeof e){const t=e;for(const[e,o]of Object.entries(t))("editor"!==e||"textarea"!==o&&"document"!==o&&"media"!==o)&&("format"!==e||"textarea"!==o&&"document"!==o&&"media"!==o)?"object"==typeof o&&Mt(o):delete t[e]}return e}function Lt(e){const t={};let o=[];for(const i of e)if(i.properties){if(i.required)for(const e of i.required)o.includes(e)||o.push(e);Object.assign(t,i.properties)}return Object.keys(t).length>0?{properties:t,required:o,type:"object"}:null}function qt(e){const t={};let o=new Set;for(const i of e)if(i.template?.inputSchema?.properties){const e=i.template?.inputSchema;if(e.required)for(const t of e.required)o.add(t);Object.assign(t,e.properties)}else i.type===it.chat&&(Object.assign(t,{chat:{type:"array",items:{type:"object",properties:{role:{type:"string",enum:[p.assistant,p.user]},content:{type:"string"}},required:["role","content"]}}}),o.add("chat"));return Object.keys(t).length>0?{properties:t,required:Array.from(o)}:null}function jt(e){return e.prompts?qt(e.prompts):null}function Gt(e){const t={};let o=new Set;for(const i of e)if(i.schema?.properties){const e=i.schema;if(e.required)for(const t of e.required)o.add(t);Object.assign(t,e.properties)}return Object.keys(t).length>0?{properties:t,required:Array.from(o)}:null}function Pt(e){return"apikey"===e.type}function Kt(e){return"user"===e.type}function Wt(e){return"project"===e.type}function Ft(e){return"environment"===e.type}function zt(e){return"agent"===e.type}function Bt(e){return"service_account"===e.type}var Yt;!function(e){e[e.COMPLETION_RESULT_V1=20250925]="COMPLETION_RESULT_V1"}(Yt||(Yt={}));export{_t as AUDIO_RENDITION_NAME,o as AccessControlPrincipalType,t as AccessControlResourceType,Ut as AccountRefPopulate,It as AgentMessageType,qe as AgentSearchScope,i as ApiKeyTypes,Yt as ApiVersions,St as BillingMethod,nt as CollectionStatus,Pe as ConfigModes,Ke as ConfigModesDescription,We as ConfigModesOptions,Nt as ContentEventName,lt as ContentNature,st as ContentObjectApiHeaders,ht as ContentObjectProcessingPriority,mt as ContentObjectStatus,Te as CustomProviders,Oe as CustomProvidersList,Rt as Datacenters,pt as DocumentPartSchema,Ae as ExecutionEnvironmentRefPopulate,Ge as ExecutionRunRefSelect,ke as ExecutionRunStatus,$e as FullTextType,xt as ImageRenditionFormat,Re as InteractionRefPopulate,Se as InteractionRefWithSchemaPopulate,Ue as InteractionStatus,yt as LOW_PRIORITY_TASK_QUEUE,ft as MarkdownRenditionFormat,Fe as MeterNames,vt as PDF_RENDITION_NAME,ct as POSTER_RENDITION_NAME,Et as ParentClosePolicy,e as Permission,a as PrincipalType,He as Progress,tt as ProjectRefPopulate,ze as ProjectRoles,it as PromptSegmentDefType,ot as PromptStatus,dt as RenditionSchema,ut as ResolvableRefType,Be as ResourceVisibility,Me as RunDataStorageDescription,we as RunDataStorageLevel,Le as RunDataStorageOptions,je as RunSourceTypes,Qe as SYSTEM_INTERACTION_CATEGORIES,et as SearchTypes,Je as SupportedEmbeddingTypes,Ce as SupportedIntegrations,Ie as SupportedProviders,ye as SupportedProvidersList,Ye as SystemInteractionCategory,at as TemplateType,At as TrainingSessionStatus,Dt as TransientTokenType,De as UserGroupRefPopulate,Ct as UserRefPopulate,gt as WEB_VIDEO_RENDITION_NAME,rt as WorkflowDefinitionRefPopulate,Tt as WorkflowExecutionStatus,bt as WorkflowRuleInputType,qt as _mergePromptsSchema,Ot as getDocumentIds,Xe as getSystemInteractionCategory,kt as getTenantId,wt as getTenantIdFromProject,zt as isAgentRequest,Pt as isApiKeyRequest,Ft as isEnvironmentRequest,Wt as isProjectRequest,Ze as isRoleIncludedIn,Bt as isServiceAccountRequest,Kt as isUserRequest,Gt as mergeInCodePromptSchemas,Lt as mergeJSONSchemas,jt as mergePromptsSchema,Mt as removeExtraProperties,fe as supportsToolUse};
2
- //# sourceMappingURL=vertesia-common.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"vertesia-common.js","sources":["../src/access-control.ts","../src/apikey.ts","../../../llumiverse/common/lib/esm/types.js","../../../llumiverse/common/lib/esm/capability/azure_foundry.js","../../../llumiverse/common/lib/esm/capability/bedrock.js","../../../llumiverse/common/lib/esm/capability/openai.js","../../../llumiverse/common/lib/esm/capability/vertexai.js","../../../llumiverse/common/lib/esm/capability.js","../../../llumiverse/common/lib/esm/options/vertexai.js","../src/environment.ts","../../../llumiverse/common/lib/esm/options/fallback.js","../src/group.ts","../src/integrations.ts","../src/interaction.ts","../src/meters.ts","../src/project.ts","../src/Progress.ts","../src/prompt.ts","../src/refs.ts","../src/store/collections.ts","../src/store/dsl-workflow.ts","../src/store/object-types.ts","../src/store/store.ts","../src/store/temporalio.ts","../src/store/workflow.ts","../src/training.ts","../src/transient-tokens.ts","../src/user.ts","../src/utils/auth.ts","../src/utils/schemas.ts","../src/sts-token-types.ts","../src/versions.ts"],"sourcesContent":[null,null,"// ============== Provider details ===============\nexport var Providers;\n(function (Providers) {\n Providers[\"openai\"] = \"openai\";\n Providers[\"azure_openai\"] = \"azure_openai\";\n Providers[\"azure_foundry\"] = \"azure_foundry\";\n Providers[\"huggingface_ie\"] = \"huggingface_ie\";\n Providers[\"replicate\"] = \"replicate\";\n Providers[\"bedrock\"] = \"bedrock\";\n Providers[\"vertexai\"] = \"vertexai\";\n Providers[\"togetherai\"] = \"togetherai\";\n Providers[\"mistralai\"] = \"mistralai\";\n Providers[\"groq\"] = \"groq\";\n Providers[\"watsonx\"] = \"watsonx\";\n})(Providers || (Providers = {}));\nexport const ProviderList = {\n openai: {\n id: Providers.openai,\n name: \"OpenAI\",\n requiresApiKey: true,\n requiresEndpointUrl: false,\n supportSearch: false,\n },\n azure_openai: {\n id: Providers.azure_openai,\n name: \"Azure OpenAI\",\n requiresApiKey: false,\n requiresEndpointUrl: true,\n supportSearch: false,\n },\n azure_foundry: {\n id: Providers.azure_foundry,\n name: \"Azure Foundry\",\n requiresApiKey: true,\n requiresEndpointUrl: true,\n supportSearch: false,\n },\n huggingface_ie: {\n id: Providers.huggingface_ie,\n name: \"HuggingFace Inference Endpoint\",\n requiresApiKey: true,\n requiresEndpointUrl: true,\n },\n replicate: {\n id: Providers.replicate,\n name: \"Replicate\",\n requiresApiKey: true,\n requiresEndpointUrl: false,\n supportSearch: true,\n },\n bedrock: {\n id: Providers.bedrock,\n name: \"AWS Bedrock\",\n requiresApiKey: false,\n requiresEndpointUrl: false,\n endpointPlaceholder: \"region name (eg. us-east-1)\",\n supportSearch: false,\n },\n vertexai: {\n id: Providers.vertexai,\n name: \"Google Vertex AI\",\n requiresApiKey: false,\n requiresEndpointUrl: false,\n supportSearch: false,\n },\n togetherai: {\n id: Providers.togetherai,\n name: \"Together AI\",\n requiresApiKey: false,\n requiresEndpointUrl: false,\n supportSearch: false,\n },\n mistralai: {\n id: Providers.mistralai,\n name: \"Mistral AI\",\n requiresApiKey: false,\n requiresEndpointUrl: false,\n supportSearch: false,\n },\n groq: {\n id: Providers.groq,\n name: \"Groq Cloud\",\n requiresApiKey: false,\n requiresEndpointUrl: false,\n supportSearch: false,\n },\n watsonx: {\n id: Providers.watsonx,\n name: \"IBM WatsonX\",\n requiresApiKey: true,\n requiresEndpointUrl: true,\n supportSearch: false\n },\n};\n//Common names to share between different models\nexport var SharedOptions;\n(function (SharedOptions) {\n //Text\n SharedOptions[\"max_tokens\"] = \"max_tokens\";\n SharedOptions[\"temperature\"] = \"temperature\";\n SharedOptions[\"top_p\"] = \"top_p\";\n SharedOptions[\"top_k\"] = \"top_k\";\n SharedOptions[\"presence_penalty\"] = \"presence_penalty\";\n SharedOptions[\"frequency_penalty\"] = \"frequency_penalty\";\n SharedOptions[\"stop_sequence\"] = \"stop_sequence\";\n //Image\n SharedOptions[\"seed\"] = \"seed\";\n SharedOptions[\"number_of_images\"] = \"number_of_images\";\n})(SharedOptions || (SharedOptions = {}));\nexport var OptionType;\n(function (OptionType) {\n OptionType[\"numeric\"] = \"numeric\";\n OptionType[\"enum\"] = \"enum\";\n OptionType[\"boolean\"] = \"boolean\";\n OptionType[\"string_list\"] = \"string_list\";\n})(OptionType || (OptionType = {}));\n// ============== Prompts ===============\nexport var PromptRole;\n(function (PromptRole) {\n PromptRole[\"safety\"] = \"safety\";\n PromptRole[\"system\"] = \"system\";\n PromptRole[\"user\"] = \"user\";\n PromptRole[\"assistant\"] = \"assistant\";\n PromptRole[\"negative\"] = \"negative\";\n PromptRole[\"mask\"] = \"mask\";\n /**\n * Used to send the response of a tool\n */\n PromptRole[\"tool\"] = \"tool\";\n})(PromptRole || (PromptRole = {}));\n/**\n * @deprecated This is deprecated. Use CompletionResult.type information instead.\n */\nexport var Modalities;\n(function (Modalities) {\n Modalities[\"text\"] = \"text\";\n Modalities[\"image\"] = \"image\";\n})(Modalities || (Modalities = {}));\nexport var AIModelStatus;\n(function (AIModelStatus) {\n AIModelStatus[\"Available\"] = \"available\";\n AIModelStatus[\"Pending\"] = \"pending\";\n AIModelStatus[\"Stopped\"] = \"stopped\";\n AIModelStatus[\"Unavailable\"] = \"unavailable\";\n AIModelStatus[\"Unknown\"] = \"unknown\";\n AIModelStatus[\"Legacy\"] = \"legacy\";\n})(AIModelStatus || (AIModelStatus = {}));\nexport var ModelType;\n(function (ModelType) {\n ModelType[\"Classifier\"] = \"classifier\";\n ModelType[\"Regressor\"] = \"regressor\";\n ModelType[\"Clustering\"] = \"clustering\";\n ModelType[\"AnomalyDetection\"] = \"anomaly-detection\";\n ModelType[\"TimeSeries\"] = \"time-series\";\n ModelType[\"Text\"] = \"text\";\n ModelType[\"Image\"] = \"image\";\n ModelType[\"Audio\"] = \"audio\";\n ModelType[\"Video\"] = \"video\";\n ModelType[\"Embedding\"] = \"embedding\";\n ModelType[\"Chat\"] = \"chat\";\n ModelType[\"Code\"] = \"code\";\n ModelType[\"NLP\"] = \"nlp\";\n ModelType[\"MultiModal\"] = \"multi-modal\";\n ModelType[\"Test\"] = \"test\";\n ModelType[\"Other\"] = \"other\";\n ModelType[\"Unknown\"] = \"unknown\";\n})(ModelType || (ModelType = {}));\nexport var TrainingJobStatus;\n(function (TrainingJobStatus) {\n TrainingJobStatus[\"running\"] = \"running\";\n TrainingJobStatus[\"succeeded\"] = \"succeeded\";\n TrainingJobStatus[\"failed\"] = \"failed\";\n TrainingJobStatus[\"cancelled\"] = \"cancelled\";\n})(TrainingJobStatus || (TrainingJobStatus = {}));\n//# sourceMappingURL=types.js.map","// Global feature flags - temporarily disable tool support for non-OpenAI models\nconst ENABLE_TOOL_SUPPORT_NON_OPENAI = false;\n// Record of Azure Foundry model capabilities keyed by model ID (lowercased) \n// Only include models with specific exceptions that differ from their family patterns\nconst RECORD_MODEL_CAPABILITIES = {\n // OpenAI O-series exceptions - o1-mini doesn't have tool support like other o1 models\n \"o1-mini\": { input: { text: true, image: true, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: false, tool_support_streaming: false },\n // OpenAI o3 is text-only unlike other o-series models\n \"o3\": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: true, tool_support_streaming: false },\n // Models with special properties not covered by family patterns\n \"deepseek-r1-0528\": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: false, tool_support_streaming: false },\n \"deepseek-v3-0324\": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: false, tool_support_streaming: false },\n \"mistral-medium-2505\": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: false, tool_support_streaming: false },\n \"mistral-nemo\": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: false, tool_support_streaming: false },\n \"llama-4-scout-17b-16e-instruct\": { input: { text: true, image: true, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: false, tool_support_streaming: false },\n};\n// Populate RECORD_FAMILY_CAPABILITIES as a const record (lowest common denominator for each family)\nconst RECORD_FAMILY_CAPABILITIES = {\n // OpenAI GPT families\n \"gpt-3.5-turbo\": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: false, tool_support_streaming: false },\n \"gpt-35-turbo\": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: false, tool_support_streaming: false },\n \"gpt-35\": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: false, tool_support_streaming: false },\n \"gpt-4\": { input: { text: true, image: true, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: true, tool_support_streaming: true },\n \"gpt-4.1\": { input: { text: true, image: true, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: true, tool_support_streaming: true },\n \"gpt-4.5\": { input: { text: true, image: true, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: true, tool_support_streaming: true },\n \"gpt-4o\": { input: { text: true, image: true, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: true, tool_support_streaming: true },\n \"gpt\": { input: { text: true, image: true, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: true, tool_support_streaming: true },\n // OpenAI O-series families\n \"o1\": { input: { text: true, image: true, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: true, tool_support_streaming: false },\n \"o1-preview\": { input: { text: true, image: true, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: true, tool_support_streaming: false },\n \"o1-pro\": { input: { text: true, image: true, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: true, tool_support_streaming: false },\n \"o3-mini\": { input: { text: true, image: true, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: true, tool_support_streaming: false },\n \"o4-mini\": { input: { text: true, image: true, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: true, tool_support_streaming: false },\n \"o4\": { input: { text: true, image: true, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: true, tool_support_streaming: false },\n \"o\": { input: { text: true, image: true, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: true, tool_support_streaming: false },\n // Llama families\n \"llama-3.1\": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: true, tool_support_streaming: false },\n \"llama-3.2\": { input: { text: true, image: true, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: false, tool_support_streaming: false },\n \"llama-3.3\": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: true, tool_support_streaming: false },\n \"llama-3\": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: true, tool_support_streaming: false },\n \"llama-4\": { input: { text: true, image: true, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: false, tool_support_streaming: false },\n \"llama\": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: false, tool_support_streaming: false },\n // Mistral families\n \"mistral-large\": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: true, tool_support_streaming: false },\n \"mistral-small\": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: true, tool_support_streaming: false },\n \"mistral\": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: false, tool_support_streaming: false },\n // Microsoft Phi families\n \"phi-4\": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: false, tool_support_streaming: false },\n \"phi\": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: false, tool_support_streaming: false },\n // DeepSeek families\n \"deepseek-r1\": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: false, tool_support_streaming: false },\n \"deepseek-v3\": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: true, tool_support_streaming: false },\n \"deepseek\": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: false, tool_support_streaming: false },\n // AI21 families\n \"ai21-jamba\": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: true, tool_support_streaming: true },\n \"ai21\": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: true, tool_support_streaming: true },\n \"jamba\": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: true, tool_support_streaming: true },\n // Cohere families\n \"cohere-command\": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: true, tool_support_streaming: true },\n \"cohere\": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: true, tool_support_streaming: true },\n \"command\": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: true, tool_support_streaming: true },\n // xAI families\n \"grok-3\": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: true, tool_support_streaming: true },\n \"grok\": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: true, tool_support_streaming: true }\n};\n// Fallback pattern lists for inferring modalities and tool support\nconst IMAGE_INPUT_MODELS = [\"image\", \"vision\"];\nconst VIDEO_INPUT_MODELS = [\"video\"];\nconst AUDIO_INPUT_MODELS = [\"audio\"];\nconst TEXT_INPUT_MODELS = [\"text\"];\nconst IMAGE_OUTPUT_MODELS = [\"image\"];\nconst VIDEO_OUTPUT_MODELS = [\"video\"];\nconst AUDIO_OUTPUT_MODELS = [\"audio\"];\nconst TEXT_OUTPUT_MODELS = [\"text\"];\nconst EMBEDDING_OUTPUT_MODELS = [\"embed\"];\nconst TOOL_SUPPORT_MODELS = [\"tool\", \"gpt-4\", \"gpt-4o\", \"o1\", \"o3\", \"o4\", \"llama-3\", \"mistral-large\", \"mistral-small\", \"jamba\", \"cohere\", \"command\", \"grok\"];\nfunction modelMatches(modelName, patterns) {\n return patterns.some(pattern => modelName.includes(pattern));\n}\n/**\n * Get the full ModelCapabilities for an Azure Foundry model.\n * Checks RECORD_MODEL_CAPABILITIES first, then falls back to family pattern matching.\n */\nexport function getModelCapabilitiesAzureFoundry(model) {\n // Extract base model from composite ID (deployment::baseModel)\n const { baseModel } = parseAzureFoundryModelId(model);\n const normalized = baseModel.toLowerCase();\n // 1. Exact match in record\n const record = RECORD_MODEL_CAPABILITIES[normalized];\n if (record) {\n return applyGlobalToolSupportDisable(record, normalized);\n }\n // 2. Fallback: find the longest matching family prefix in RECORD_FAMILY_CAPABILITIES\n let bestFamilyKey = undefined;\n let bestFamilyLength = 0;\n for (const key of Object.keys(RECORD_FAMILY_CAPABILITIES)) {\n if (normalized.startsWith(key) && key.length > bestFamilyLength) {\n bestFamilyKey = key;\n bestFamilyLength = key.length;\n }\n }\n if (bestFamilyKey) {\n return applyGlobalToolSupportDisable(RECORD_FAMILY_CAPABILITIES[bestFamilyKey], normalized);\n }\n // 3. Fallback: infer from normalized name using patterns\n const input = {\n text: modelMatches(normalized, TEXT_INPUT_MODELS) || true, // Default to text input\n image: modelMatches(normalized, IMAGE_INPUT_MODELS) || undefined,\n video: modelMatches(normalized, VIDEO_INPUT_MODELS) || undefined,\n audio: modelMatches(normalized, AUDIO_INPUT_MODELS) || undefined,\n embed: false\n };\n const output = {\n text: modelMatches(normalized, TEXT_OUTPUT_MODELS) || true, // Default to text output\n image: modelMatches(normalized, IMAGE_OUTPUT_MODELS) || undefined,\n video: modelMatches(normalized, VIDEO_OUTPUT_MODELS) || undefined,\n audio: modelMatches(normalized, AUDIO_OUTPUT_MODELS) || undefined,\n embed: modelMatches(normalized, EMBEDDING_OUTPUT_MODELS) || undefined\n };\n const tool_support = modelMatches(normalized, TOOL_SUPPORT_MODELS) || undefined;\n const tool_support_streaming = tool_support || undefined;\n const inferredCapabilities = { input, output, tool_support, tool_support_streaming };\n return applyGlobalToolSupportDisable(inferredCapabilities, normalized);\n}\n/**\n * Apply global tool support disable for non-OpenAI models.\n * Preserves model-specific information for future use while temporarily disabling tool support.\n */\nfunction applyGlobalToolSupportDisable(capabilities, modelName) {\n // Check if this is an OpenAI model\n const isOpenAIModel = modelName.startsWith('gpt-') || modelName.startsWith('o1') || modelName.startsWith('o3') || modelName.startsWith('o4');\n if (!ENABLE_TOOL_SUPPORT_NON_OPENAI && !isOpenAIModel) {\n // Disable tool support for non-OpenAI models while preserving other capabilities\n return {\n ...capabilities,\n tool_support: false,\n tool_support_streaming: false\n };\n }\n return capabilities;\n}\n// Helper function to parse composite model IDs\nfunction parseAzureFoundryModelId(compositeId) {\n const parts = compositeId.split('::');\n if (parts.length === 2) {\n return {\n deploymentName: parts[0],\n baseModel: parts[1]\n };\n }\n // Backwards compatibility: if no delimiter found, treat as deployment name\n return {\n deploymentName: compositeId,\n baseModel: compositeId\n };\n}\n//# sourceMappingURL=azure_foundry.js.map","// Explicit exception lists keyed by the model identifier (last segment after the prefix)\nconst RECORD_FOUNDATION_EXCEPTIONS = {};\nconst RECORD_PROFILE_EXCEPTIONS = {\n \"meta.llama3-1-70b-instruct-v1:0\": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: false, tool_support_streaming: false },\n \"meta.llama3-1-8b-instruct-v1:0\": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: false, tool_support_streaming: false },\n};\n// Record of Bedrock model capabilities keyed by model identifier.\n// Only include models that differ from their family defaults\nconst RECORD_MODEL_CAPABILITIES = {\n // Models with specific exceptions that differ from family\n \"ai21.jamba-instruct-v1:0\": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: false, tool_support_streaming: false },\n \"amazon.nova-canvas-v1:0\": { input: { text: true, image: true, video: false, audio: false, embed: false }, output: { image: true, text: false, video: false, audio: false, embed: false }, tool_support: false, tool_support_streaming: false },\n \"amazon.nova-micro-v1:0\": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: true, tool_support_streaming: true },\n \"anthropic.claude-3-5-haiku-20241022-v1:0\": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: true, tool_support_streaming: false },\n \"meta.llama3-2-11b-instruct-v1:0\": { input: { text: true, image: true, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: true, tool_support_streaming: false },\n \"meta.llama3-2-90b-instruct-v1:0\": { input: { text: true, image: true, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: true, tool_support_streaming: false },\n};\n// Family capabilities (longest prefix match)\nconst RECORD_FAMILY_CAPABILITIES = {\n \"ai21.jamba\": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: true, tool_support_streaming: true },\n \"amazon.nova\": { input: { text: true, image: true, video: true, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: true, tool_support_streaming: true },\n \"amazon.titan\": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: false, tool_support_streaming: false },\n \"anthropic.claude-3-5-haiku\": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: true, tool_support_streaming: false },\n \"anthropic.claude\": { input: { text: true, image: true, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: true, tool_support_streaming: true },\n \"cohere.command-r\": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: true, tool_support_streaming: true },\n \"cohere.command\": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: false, tool_support_streaming: false },\n \"deepseek.r1\": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: false, tool_support_streaming: false },\n \"meta.llama3-1\": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: true, tool_support_streaming: false },\n \"meta.llama3-2\": { input: { text: true, image: true, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: false, tool_support_streaming: false },\n \"meta.llama3-3\": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: false, tool_support_streaming: false },\n \"meta.llama3\": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: false, tool_support_streaming: false },\n \"meta.llama4\": { input: { text: true, image: true, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: false, tool_support_streaming: false },\n \"mistral.mistral-large\": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: true, tool_support_streaming: false },\n \"mistral.mistral\": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: false, tool_support_streaming: false },\n \"mistral.mixtral\": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: false, tool_support_streaming: false },\n \"mistral.pixtral\": { input: { text: true, image: true, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: true, tool_support_streaming: false },\n \"openai.gpt-oss\": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: false, tool_support_streaming: false },\n \"qwen.\": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: false, tool_support_streaming: false },\n \"twelvelabs.\": { input: { text: true, image: false, video: true, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: true, tool_support_streaming: false },\n \"writer.palmyra\": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: true, tool_support_streaming: false },\n};\nfunction extractModelLookupKey(modelName) {\n const lower = modelName.toLowerCase();\n const lastSlashIdx = lower.lastIndexOf(\"/\");\n let key = lastSlashIdx === -1 ? lower : lower.slice(lastSlashIdx + 1);\n if (lower.includes(\"inference-profile/\")) {\n key = key.replace(/^[^.]+\\./, \"\");\n }\n return key;\n}\nfunction findFamilyCapability(lookupKey, families) {\n let bestKey;\n for (const key of Object.keys(families)) {\n if (lookupKey.startsWith(key) && (!bestKey || key.length > bestKey.length)) {\n bestKey = key;\n }\n }\n return bestKey ? families[bestKey] : undefined;\n}\n/**\n * Extract the model identifier from an ARN or inference profile\n * @param modelName The full model ARN or name\n * @returns The normalized model identifier\n */\nfunction normalizeModelName(modelName) {\n const modelLower = modelName.toLowerCase();\n if (modelLower.includes(\"inference-profile\")) {\n const parts = modelLower.split(\"/\");\n if (parts.length > 1) {\n const providerModel = parts[parts.length - 1];\n const modelParts = providerModel.split(\".\");\n if (modelParts.length > 1 && modelParts[1] === \"deepseek\") {\n return `deepseek-${modelParts.slice(2).join(\".\")}`;\n }\n return modelParts.length > 2 ? modelParts.slice(2).join(\".\") : providerModel;\n }\n }\n return modelLower;\n}\n// Fallback pattern lists for inferring modalities and tool support\nconst IMAGE_INPUT_MODELS = [\"image\"]; // fallback: if model id contains 'image', supports image input\nconst VIDEO_INPUT_MODELS = [\"video\"];\nconst AUDIO_INPUT_MODELS = [\"audio\"];\nconst TEXT_INPUT_MODELS = [\"text\"];\nconst IMAGE_OUTPUT_MODELS = [\"image\"];\nconst VIDEO_OUTPUT_MODELS = [\"video\"];\nconst AUDIO_OUTPUT_MODELS = [\"audio\"];\nconst TEXT_OUTPUT_MODELS = [\"text\"];\nconst EMBEDDING_OUTPUT_MODELS = [\"embed\"];\nconst TOOL_SUPPORT_MODELS = [\"tool\", \"sonnet\", \"opus\", \"nova\", \"palmyra\", \"command-r\", \"mistral-large\", \"pixtral\"];\nfunction modelMatches(modelName, patterns) {\n return patterns.some(pattern => modelName.includes(pattern));\n}\n/**\n * Get the full ModelCapabilities for a Bedrock model.\n * Checks RECORD_MODEL_CAPABILITIES first, then falls back to pattern-based inference.\n */\nexport function getModelCapabilitiesBedrock(model) {\n // Normalize ARN or inference-profile to model ID\n const modelLower = model.toLowerCase();\n let normalized = modelLower;\n const arnPattern = /^arn:aws:bedrock:[^:]+:[^:]*:(inference-profile|foundation-model)\\/.+/i;\n if (arnPattern.test(modelLower)) {\n // Extract after last occurrence of 'foundation-model/' or 'inference-profile/'\n const foundationIdx = modelLower.lastIndexOf('foundation-model/');\n const inferenceIdx = modelLower.lastIndexOf('inference-profile/');\n if (foundationIdx !== -1) {\n normalized = modelLower.substring(foundationIdx);\n }\n else if (inferenceIdx !== -1) {\n normalized = modelLower.substring(inferenceIdx);\n }\n }\n const isInferenceProfile = normalized.startsWith(\"inference-profile/\");\n const isFoundationModel = normalized.startsWith(\"foundation-model/\");\n const lookupKey = extractModelLookupKey(normalized);\n // 1. Check exceptions\n if (isFoundationModel) {\n const exception = RECORD_FOUNDATION_EXCEPTIONS[lookupKey];\n if (exception)\n return exception;\n }\n else if (isInferenceProfile) {\n const exception = RECORD_PROFILE_EXCEPTIONS[lookupKey];\n if (exception)\n return exception;\n }\n // 2. Check recorded capabilities by model\n const modelCapability = RECORD_MODEL_CAPABILITIES[lookupKey];\n if (modelCapability)\n return modelCapability;\n // 3. Check recorded capabilities by family\n const familyCapability = findFamilyCapability(lookupKey, RECORD_FAMILY_CAPABILITIES);\n if (familyCapability)\n return familyCapability;\n // 4. Fallback: infer from normalized name\n const inferredName = normalizeModelName(lookupKey);\n const input = {\n text: modelMatches(inferredName, TEXT_INPUT_MODELS) || undefined,\n image: modelMatches(inferredName, IMAGE_INPUT_MODELS) || undefined,\n video: modelMatches(inferredName, VIDEO_INPUT_MODELS) || undefined,\n audio: modelMatches(inferredName, AUDIO_INPUT_MODELS) || undefined,\n embed: false\n };\n const output = {\n text: modelMatches(inferredName, TEXT_OUTPUT_MODELS) || undefined,\n image: modelMatches(inferredName, IMAGE_OUTPUT_MODELS) || undefined,\n video: modelMatches(inferredName, VIDEO_OUTPUT_MODELS) || undefined,\n audio: modelMatches(inferredName, AUDIO_OUTPUT_MODELS) || undefined,\n embed: modelMatches(inferredName, EMBEDDING_OUTPUT_MODELS) || undefined\n };\n const tool_support = modelMatches(inferredName, TOOL_SUPPORT_MODELS) || undefined;\n return { input, output, tool_support };\n}\n//# sourceMappingURL=bedrock.js.map","// Record of OpenAI model capabilities keyed by model ID (lowercased)\nconst RECORD_MODEL_CAPABILITIES = {\n \"chatgpt-4o-latest\": { input: { text: true, image: true, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: false }\n};\n// Populate RECORD_FAMILY_CAPABILITIES as a const record (lowest common denominator for each family)\nconst RECORD_FAMILY_CAPABILITIES = {\n \"gpt\": { input: { text: true, image: true, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: true },\n \"gpt-3.5\": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: false },\n \"gpt-4\": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: false },\n \"gpt-4-turbo\": { input: { text: true, image: true, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: true },\n \"gpt-4o\": { input: { text: true, image: true, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: true },\n \"gpt-4.1\": { input: { text: true, image: true, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: true },\n \"gpt-4.5\": { input: { text: true, image: true, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: true },\n \"gpt-image\": { input: { text: true, image: true, video: false, audio: false, embed: false }, output: { text: false, image: true, video: false, audio: false, embed: false }, tool_support: false },\n \"gpt-oss\": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: false },\n \"o\": { input: { text: true, image: true, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: true },\n \"o1-mini\": { input: { text: true, image: true, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: false },\n \"o1-preview\": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: false },\n \"omni-moderation\": { input: { text: true, image: true, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: false },\n \"sora\": { input: { text: true, image: true, video: true, audio: false, embed: false }, output: { text: false, image: false, video: true, audio: true, embed: false }, tool_support: false },\n \"text-embedding\": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: false, image: false, video: false, audio: false, embed: true }, tool_support: false },\n \"text-moderation\": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: false },\n \"whisper\": { input: { text: false, image: false, video: false, audio: true, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: false }\n};\n// Fallback pattern lists for inferring modalities and tool support\nconst IMAGE_INPUT_MODELS = [\"image\"];\nconst VIDEO_INPUT_MODELS = [\"video\"];\nconst AUDIO_INPUT_MODELS = [\"audio\"];\nconst TEXT_INPUT_MODELS = [\"text\"];\nconst IMAGE_OUTPUT_MODELS = [\"image\"];\nconst VIDEO_OUTPUT_MODELS = [\"video\"];\nconst AUDIO_OUTPUT_MODELS = [\"audio\"];\nconst TEXT_OUTPUT_MODELS = [\"text\"];\nconst EMBEDDING_OUTPUT_MODELS = [\"embed\"];\nconst TOOL_SUPPORT_MODELS = [\"tool\", \"gpt\", \"o1\", \"o3\", \"o4\"];\nfunction modelMatches(modelName, patterns) {\n return patterns.some(pattern => modelName.includes(pattern));\n}\nfunction normalizeOpenAIModelName(modelName) {\n return modelName.toLowerCase();\n}\n/**\n * Get the full ModelCapabilities for an OpenAI model.\n * Checks RECORD_MODEL_CAPABILITIES first, then falls back to pattern-based inference.\n */\nexport function getModelCapabilitiesOpenAI(model) {\n const normalized = normalizeOpenAIModelName(model);\n const record = RECORD_MODEL_CAPABILITIES[normalized];\n if (record)\n return record;\n let bestFamilyKey = undefined;\n let bestFamilyLength = 0;\n for (const key of Object.keys(RECORD_FAMILY_CAPABILITIES)) {\n if (normalized.startsWith(key) && key.length > bestFamilyLength) {\n bestFamilyKey = key;\n bestFamilyLength = key.length;\n }\n }\n if (bestFamilyKey) {\n return RECORD_FAMILY_CAPABILITIES[bestFamilyKey];\n }\n const input = {\n text: modelMatches(normalized, TEXT_INPUT_MODELS) || undefined,\n image: modelMatches(normalized, IMAGE_INPUT_MODELS) || undefined,\n video: modelMatches(normalized, VIDEO_INPUT_MODELS) || undefined,\n audio: modelMatches(normalized, AUDIO_INPUT_MODELS) || undefined,\n embed: false\n };\n const output = {\n text: modelMatches(normalized, TEXT_OUTPUT_MODELS) || undefined,\n image: modelMatches(normalized, IMAGE_OUTPUT_MODELS) || undefined,\n video: modelMatches(normalized, VIDEO_OUTPUT_MODELS) || undefined,\n audio: modelMatches(normalized, AUDIO_OUTPUT_MODELS) || undefined,\n embed: modelMatches(normalized, EMBEDDING_OUTPUT_MODELS) || undefined\n };\n const tool_support = modelMatches(normalized, TOOL_SUPPORT_MODELS) || undefined;\n return { input, output, tool_support };\n}\n//# sourceMappingURL=openai.js.map","// Record of Vertex AI model capabilities keyed by model ID (last path segment, lowercased)\nconst RECORD_MODEL_CAPABILITIES = {\n \"gemini-2.0-flash-lite-001\": { input: { text: true, image: true, video: true, audio: true, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: false },\n};\n// Populate RECORD_FAMILY_CAPABILITIES as a const record (lowest common denominator for each family)\nconst RECORD_FAMILY_CAPABILITIES = {\n \"gemini\": { input: { text: true, image: true, video: true, audio: true, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: true },\n \"gemini-2.5-flash-image\": { input: { text: true, image: true, video: false, audio: false, embed: false }, output: { text: true, image: true, video: false, audio: false, embed: false }, tool_support: false },\n \"gemini-3.0-pro-image\": { input: { text: true, image: true, video: false, audio: false, embed: false }, output: { text: true, image: true, video: false, audio: false, embed: false }, tool_support: false },\n \"gemini-3.0-flash-image\": { input: { text: true, image: true, video: false, audio: false, embed: false }, output: { text: true, image: true, video: false, audio: false, embed: false }, tool_support: false },\n 'imagen': { input: { text: true, image: true, video: false, audio: false, embed: false }, output: { text: false, image: true, video: false, audio: false, embed: false }, tool_support: false },\n \"imagen-3.0\": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: false, image: true, video: false, audio: false, embed: false }, tool_support: false },\n \"imagen-3.0-capability\": { input: { text: true, image: true, video: false, audio: false, embed: false }, output: { text: false, image: true, video: false, audio: false, embed: false }, tool_support: false },\n \"imagen-4.0\": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: false, image: true, video: false, audio: false, embed: false }, tool_support: false },\n \"imagen-4.0-capability\": { input: { text: true, image: true, video: false, audio: false, embed: false }, output: { text: false, image: true, video: false, audio: false, embed: false }, tool_support: false },\n \"claude\": { input: { text: true, image: true, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: true },\n \"llama\": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: true },\n \"llama-2\": { input: { text: true, image: false, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: false },\n \"llama-3.2\": { input: { text: true, image: true, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: true },\n \"llama-4\": { input: { text: true, image: true, video: false, audio: false, embed: false }, output: { text: true, image: false, video: false, audio: false, embed: false }, tool_support: true },\n};\n// Fallback pattern lists for inferring modalities and tool support\nconst IMAGE_INPUT_MODELS = [\"image\"];\nconst VIDEO_INPUT_MODELS = [\"video\"];\nconst AUDIO_INPUT_MODELS = [\"audio\"];\nconst TEXT_INPUT_MODELS = [\"text\"];\nconst IMAGE_OUTPUT_MODELS = [\"image\"];\nconst VIDEO_OUTPUT_MODELS = [\"video\"];\nconst AUDIO_OUTPUT_MODELS = [\"audio\"];\nconst TEXT_OUTPUT_MODELS = [\"text\"];\nconst EMBEDDING_OUTPUT_MODELS = [\"embed\"];\nconst TOOL_SUPPORT_MODELS = [\"tool\", \"sonnet\", \"opus\", \"gemini\", \"claude\"];\nfunction modelMatches(modelName, patterns) {\n return patterns.some(pattern => modelName.includes(pattern));\n}\nfunction normalizeVertexAIModelName(modelName) {\n const segments = modelName.toLowerCase().split(\"/\");\n return segments[segments.length - 1];\n}\n/**\n * Get the full ModelCapabilities for a Vertex AI model.\n * Checks RECORD_MODEL_CAPABILITIES first, then falls back to pattern-based inference.\n */\nexport function getModelCapabilitiesVertexAI(model) {\n const normalized = normalizeVertexAIModelName(model);\n const record = RECORD_MODEL_CAPABILITIES[normalized];\n if (record)\n return record;\n let bestFamilyKey = undefined;\n let bestFamilyLength = 0;\n for (const key of Object.keys(RECORD_FAMILY_CAPABILITIES)) {\n if (normalized.startsWith(key) && key.length > bestFamilyLength) {\n bestFamilyKey = key;\n bestFamilyLength = key.length;\n }\n }\n if (bestFamilyKey) {\n return RECORD_FAMILY_CAPABILITIES[bestFamilyKey];\n }\n const input = {\n text: modelMatches(normalized, TEXT_INPUT_MODELS) || undefined,\n image: modelMatches(normalized, IMAGE_INPUT_MODELS) || undefined,\n video: modelMatches(normalized, VIDEO_INPUT_MODELS) || undefined,\n audio: modelMatches(normalized, AUDIO_INPUT_MODELS) || undefined,\n embed: false\n };\n const output = {\n text: modelMatches(normalized, TEXT_OUTPUT_MODELS) || undefined,\n image: modelMatches(normalized, IMAGE_OUTPUT_MODELS) || undefined,\n video: modelMatches(normalized, VIDEO_OUTPUT_MODELS) || undefined,\n audio: modelMatches(normalized, AUDIO_OUTPUT_MODELS) || undefined,\n embed: modelMatches(normalized, EMBEDDING_OUTPUT_MODELS) || undefined\n };\n const tool_support = modelMatches(normalized, TOOL_SUPPORT_MODELS) || undefined;\n return { input, output, tool_support };\n}\n//# sourceMappingURL=vertexai.js.map","import { getModelCapabilitiesAzureFoundry } from \"./capability/azure_foundry.js\";\nimport { getModelCapabilitiesBedrock } from \"./capability/bedrock.js\";\nimport { getModelCapabilitiesOpenAI } from \"./capability/openai.js\";\nimport { getModelCapabilitiesVertexAI } from \"./capability/vertexai.js\";\nimport { Providers } from \"./types.js\";\nexport function getModelCapabilities(model, provider) {\n //Check for locations/<location>/ prefix and remove it\n if (model.startsWith(\"locations/\")) {\n const parts = model.split(\"/\");\n if (parts.length >= 3) {\n model = parts.slice(2).join(\"/\");\n }\n }\n const capabilities = _getModelCapabilities(model, provider);\n // Globally disable audio and video for all models, as we don't support them yet\n // We also do not support tool use while streaming\n // TODO: Remove this when we add support.\n capabilities.input.audio = false;\n capabilities.output.audio = false;\n capabilities.output.video = false;\n capabilities.tool_support_streaming = false;\n return capabilities;\n}\nfunction _getModelCapabilities(model, provider) {\n switch (provider?.toLowerCase()) {\n case Providers.vertexai:\n return getModelCapabilitiesVertexAI(model);\n case Providers.openai:\n return getModelCapabilitiesOpenAI(model);\n case Providers.bedrock:\n return getModelCapabilitiesBedrock(model);\n case Providers.azure_foundry:\n // Azure Foundry uses OpenAI capabilities\n return getModelCapabilitiesAzureFoundry(model);\n default:\n // Guess the provider based on the model name\n if (model.startsWith(\"gpt\")) {\n return getModelCapabilitiesOpenAI(model);\n }\n else if (model.startsWith(\"publishers/\")) {\n return getModelCapabilitiesVertexAI(model);\n }\n else if (model.startsWith(\"arn:aws\")) {\n return getModelCapabilitiesBedrock(model);\n }\n // Fallback to a generic model with no capabilities\n return { input: {}, output: {} };\n }\n}\nexport function supportsToolUse(model, provider, streaming = false) {\n const capabilities = getModelCapabilities(model, provider);\n return streaming ? !!capabilities.tool_support_streaming : !!capabilities.tool_support;\n}\nexport function modelModalitiesToArray(modalities) {\n return Object.entries(modalities)\n .filter(([_, isSupported]) => isSupported)\n .map(([modality]) => modality);\n}\n//# sourceMappingURL=capability.js.map","import { OptionType, SharedOptions } from \"../types.js\";\nimport { textOptionsFallback } from \"./fallback.js\";\nexport var ImagenTaskType;\n(function (ImagenTaskType) {\n ImagenTaskType[\"TEXT_IMAGE\"] = \"TEXT_IMAGE\";\n ImagenTaskType[\"EDIT_MODE_INPAINT_REMOVAL\"] = \"EDIT_MODE_INPAINT_REMOVAL\";\n ImagenTaskType[\"EDIT_MODE_INPAINT_INSERTION\"] = \"EDIT_MODE_INPAINT_INSERTION\";\n ImagenTaskType[\"EDIT_MODE_BGSWAP\"] = \"EDIT_MODE_BGSWAP\";\n ImagenTaskType[\"EDIT_MODE_OUTPAINT\"] = \"EDIT_MODE_OUTPAINT\";\n ImagenTaskType[\"CUSTOMIZATION_SUBJECT\"] = \"CUSTOMIZATION_SUBJECT\";\n ImagenTaskType[\"CUSTOMIZATION_STYLE\"] = \"CUSTOMIZATION_STYLE\";\n ImagenTaskType[\"CUSTOMIZATION_CONTROLLED\"] = \"CUSTOMIZATION_CONTROLLED\";\n ImagenTaskType[\"CUSTOMIZATION_INSTRUCT\"] = \"CUSTOMIZATION_INSTRUCT\";\n})(ImagenTaskType || (ImagenTaskType = {}));\nexport var ImagenMaskMode;\n(function (ImagenMaskMode) {\n ImagenMaskMode[\"MASK_MODE_USER_PROVIDED\"] = \"MASK_MODE_USER_PROVIDED\";\n ImagenMaskMode[\"MASK_MODE_BACKGROUND\"] = \"MASK_MODE_BACKGROUND\";\n ImagenMaskMode[\"MASK_MODE_FOREGROUND\"] = \"MASK_MODE_FOREGROUND\";\n ImagenMaskMode[\"MASK_MODE_SEMANTIC\"] = \"MASK_MODE_SEMANTIC\";\n})(ImagenMaskMode || (ImagenMaskMode = {}));\nexport var ThinkingLevel;\n(function (ThinkingLevel) {\n ThinkingLevel[\"HIGH\"] = \"HIGH\";\n ThinkingLevel[\"LOW\"] = \"LOW\";\n ThinkingLevel[\"THINKING_LEVEL_UNSPECIFIED\"] = \"THINKING_LEVEL_UNSPECIFIED\";\n})(ThinkingLevel || (ThinkingLevel = {}));\nexport function getVertexAiOptions(model, option) {\n if (model.includes(\"imagen-\")) {\n return getImagenOptions(model, option);\n }\n else if (model.includes(\"gemini\")) {\n return getGeminiOptions(model, option);\n }\n else if (model.includes(\"claude\")) {\n return getClaudeOptions(model, option);\n }\n else if (model.includes(\"llama\")) {\n return getLlamaOptions(model);\n }\n return textOptionsFallback;\n}\nfunction getImagenOptions(model, option) {\n const commonOptions = [\n {\n name: SharedOptions.number_of_images, type: OptionType.numeric, min: 1, max: 4, default: 1,\n integer: true, description: \"Number of Images to generate\",\n },\n {\n name: SharedOptions.seed, type: OptionType.numeric, min: 0, max: 4294967295, default: 12,\n integer: true, description: \"The seed of the generated image\"\n },\n {\n name: \"person_generation\", type: OptionType.enum, enum: { \"Disallow the inclusion of people or faces in images\": \"dont_allow\", \"Allow generation of adults only\": \"allow_adult\", \"Allow generation of people of all ages\": \"allow_all\" },\n default: \"allow_adult\", description: \"The safety setting for allowing the generation of people in the image\"\n },\n {\n name: \"safety_setting\", type: OptionType.enum, enum: { \"Block very few problematic prompts and responses\": \"block_none\", \"Block only few problematic prompts and responses\": \"block_only_high\", \"Block some problematic prompts and responses\": \"block_medium_and_above\", \"Strictest filtering\": \"block_low_and_above\" },\n default: \"block_medium_and_above\", description: \"The overall safety setting\"\n },\n ];\n const outputOptions = [\n {\n name: \"image_file_type\", type: OptionType.enum, enum: { \"JPEG\": \"image/jpeg\", \"PNG\": \"image/png\" },\n default: \"image/png\", description: \"The file type of the generated image\",\n refresh: true,\n },\n ];\n const jpegQuality = {\n name: \"jpeg_compression_quality\", type: OptionType.numeric, min: 0, max: 100, default: 75,\n integer: true, description: \"The compression quality of the JPEG image\",\n };\n if (option?.image_file_type === \"image/jpeg\") {\n outputOptions.push(jpegQuality);\n }\n if (model.includes(\"generate\")) {\n // Generate models\n const modeOptions = [\n {\n name: \"aspect_ratio\", type: OptionType.enum, enum: { \"1:1\": \"1:1\", \"4:3\": \"4:3\", \"3:4\": \"3:4\", \"16:9\": \"16:9\", \"9:16\": \"9:16\" },\n default: \"1:1\", description: \"The aspect ratio of the generated image\"\n },\n {\n name: \"add_watermark\", type: OptionType.boolean, default: false, description: \"Add an invisible watermark to the generated image, useful for detection of AI images\"\n },\n ];\n const enhanceOptions = !model.includes(\"generate-001\") ? [\n {\n name: \"enhance_prompt\", type: OptionType.boolean, default: true, description: \"VertexAI automatically rewrites the prompt to better reflect the prompt's intent.\"\n },\n ] : [];\n return {\n _option_id: \"vertexai-imagen\",\n options: [\n ...commonOptions,\n ...modeOptions,\n ...outputOptions,\n ...enhanceOptions,\n ]\n };\n }\n if (model.includes(\"capability\")) {\n // Edit models\n let guidanceScaleDefault = 75;\n if (option?.edit_mode === ImagenTaskType.EDIT_MODE_INPAINT_INSERTION) {\n guidanceScaleDefault = 60;\n }\n const modeOptions = [\n {\n name: \"edit_mode\", type: OptionType.enum,\n enum: {\n \"EDIT_MODE_INPAINT_REMOVAL\": \"EDIT_MODE_INPAINT_REMOVAL\",\n \"EDIT_MODE_INPAINT_INSERTION\": \"EDIT_MODE_INPAINT_INSERTION\",\n \"EDIT_MODE_BGSWAP\": \"EDIT_MODE_BGSWAP\",\n \"EDIT_MODE_OUTPAINT\": \"EDIT_MODE_OUTPAINT\",\n \"CUSTOMIZATION_SUBJECT\": \"CUSTOMIZATION_SUBJECT\",\n \"CUSTOMIZATION_STYLE\": \"CUSTOMIZATION_STYLE\",\n \"CUSTOMIZATION_CONTROLLED\": \"CUSTOMIZATION_CONTROLLED\",\n \"CUSTOMIZATION_INSTRUCT\": \"CUSTOMIZATION_INSTRUCT\",\n },\n description: \"The editing mode. CUSTOMIZATION options use few-shot learning to generate images based on a few examples.\"\n },\n {\n name: \"guidance_scale\", type: OptionType.numeric, min: 0, max: 500, default: guidanceScaleDefault,\n integer: true, description: \"How closely the generation follows the prompt\"\n }\n ];\n const maskOptions = (option?.edit_mode?.includes(\"EDIT\")) ? [\n {\n name: \"mask_mode\", type: OptionType.enum,\n enum: {\n \"MASK_MODE_USER_PROVIDED\": \"MASK_MODE_USER_PROVIDED\",\n \"MASK_MODE_BACKGROUND\": \"MASK_MODE_BACKGROUND\",\n \"MASK_MODE_FOREGROUND\": \"MASK_MODE_FOREGROUND\",\n \"MASK_MODE_SEMANTIC\": \"MASK_MODE_SEMANTIC\",\n },\n default: \"MASK_MODE_USER_PROVIDED\",\n description: \"How should the mask for the generation be provided\"\n },\n {\n name: \"mask_dilation\", type: OptionType.numeric, min: 0, max: 1,\n integer: true, description: \"The mask dilation, grows the mask by a percentage of image width to compensate for imprecise masks.\"\n },\n ] : [];\n const maskClassOptions = (option?.mask_mode === ImagenMaskMode.MASK_MODE_SEMANTIC) ? [\n {\n name: \"mask_class\", type: OptionType.string_list, default: [],\n description: \"Input Class IDs. Create a mask based on image class, based on https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/imagen-api-customization#segment-ids\"\n }\n ] : [];\n const editOptions = option?.edit_mode?.includes(\"EDIT\") ? [\n {\n name: \"edit_steps\", type: OptionType.numeric, default: 75,\n integer: true, description: \"The number of steps for the base image generation, more steps means more time and better quality\"\n },\n ] : [];\n const customizationOptions = option?.edit_mode === ImagenTaskType.CUSTOMIZATION_CONTROLLED\n || option?.edit_mode === ImagenTaskType.CUSTOMIZATION_SUBJECT ? [\n {\n name: \"controlType\", type: OptionType.enum, enum: { \"Face Mesh\": \"CONTROL_TYPE_FACE_MESH\", \"Canny\": \"CONTROL_TYPE_CANNY\", \"Scribble\": \"CONTROL_TYPE_SCRIBBLE\" },\n default: \"CONTROL_TYPE_CANNY\", description: \"Method used to generate the control image\"\n },\n {\n name: \"controlImageComputation\", type: OptionType.boolean, default: true, description: \"Should the control image be computed from the input image, or is it provided\"\n }\n ] : [];\n return {\n _option_id: \"vertexai-imagen\",\n options: [\n ...modeOptions,\n ...commonOptions,\n ...maskOptions,\n ...maskClassOptions,\n ...editOptions,\n ...customizationOptions,\n ...outputOptions,\n ]\n };\n }\n return textOptionsFallback;\n}\nfunction getGeminiOptions(model, _option) {\n // Special handling for gemini-2.5-flash-image\n if (model.includes(\"gemini-2.5-flash-image\")) {\n const options = [\n {\n name: SharedOptions.temperature,\n type: OptionType.numeric,\n min: 0.0,\n max: 2.0,\n default: 0.7,\n step: 0.01,\n description: \"Sampling temperature\"\n },\n {\n name: SharedOptions.top_p,\n type: OptionType.numeric,\n min: 0.0,\n max: 1.0,\n step: 0.01,\n description: \"Nucleus sampling probability\"\n },\n {\n name: \"candidate_count\",\n type: OptionType.numeric,\n min: 1,\n max: 8,\n default: 1,\n integer: true,\n description: \"Number of candidates to generate\"\n },\n {\n name: SharedOptions.max_tokens,\n type: OptionType.numeric,\n min: 1,\n max: 32768,\n integer: true,\n step: 200,\n description: \"Maximum output tokens\"\n }\n ];\n return {\n _option_id: \"vertexai-gemini\",\n options\n };\n }\n // Special handling for gemini-2.5-flash-image and gemini-3-pro-image\n if (model.includes(\"gemini-2.5-flash-image\") || model.includes(\"gemini-3-pro-image\")) {\n const max_tokens_limit = 32768;\n const excludeOptions = [\"max_tokens\", \"presence_penalty\", \"frequency_penalty\", \"seed\", \"top_k\"];\n let commonOptions = textOptionsFallback.options.filter((option) => !excludeOptions.includes(option.name));\n // Set max temperature to 2.0 for gemini-2.5-flash-image\n commonOptions = commonOptions.map((option) => {\n if (option.name === SharedOptions.temperature &&\n option.type === OptionType.numeric) {\n return {\n ...option,\n max: 2.0,\n };\n }\n return option;\n });\n const max_tokens = [{\n name: SharedOptions.max_tokens,\n type: OptionType.numeric,\n min: 1,\n max: max_tokens_limit,\n integer: true,\n step: 200,\n description: \"Maximum output tokens\"\n }];\n const imageAspectRatio = [{\n name: \"image_aspect_ratio\",\n type: OptionType.enum,\n enum: {\n \"1:1\": \"1:1\",\n \"2:3\": \"2:3\",\n \"3:2\": \"3:2\",\n \"3:4\": \"3:4\",\n \"4:3\": \"4:3\",\n \"9:16\": \"9:16\",\n \"16:9\": \"16:9\",\n \"21:9\": \"21:9\"\n },\n description: \"Aspect ratio of the generated images\"\n }];\n return {\n _option_id: \"vertexai-gemini\",\n options: [\n ...max_tokens,\n ...commonOptions,\n ...imageAspectRatio,\n ]\n };\n }\n const max_tokens_limit = getGeminiMaxTokensLimit(model);\n const excludeOptions = [\"max_tokens\"];\n const commonOptions = textOptionsFallback.options.filter((option) => !excludeOptions.includes(option.name));\n const max_tokens = [{\n name: SharedOptions.max_tokens, type: OptionType.numeric, min: 1, max: max_tokens_limit,\n integer: true, step: 200, description: \"The maximum number of tokens to generate\"\n }];\n const seedOption = {\n name: SharedOptions.seed, type: OptionType.numeric, integer: true, description: \"The seed for the generation, useful for reproducibility\"\n };\n if (model.includes(\"-3-\")) {\n const geminiThinkingOptions = [\n {\n name: \"include_thoughts\",\n type: OptionType.boolean,\n default: false,\n description: \"Include the model's reasoning process in the response\"\n }\n ];\n return {\n _option_id: \"vertexai-gemini\",\n options: [\n ...max_tokens,\n ...commonOptions,\n seedOption,\n ...geminiThinkingOptions,\n ]\n };\n }\n if (model.includes(\"-2.5-\")) {\n // Gemini 2.5 thinking models\n // Set budget token ranges based on model variant\n let budgetMin = -1;\n let budgetMax = 24576;\n let budgetDescription = \"\";\n if (model.includes(\"flash-lite\")) {\n budgetMin = -1;\n budgetMax = 24576;\n budgetDescription = \"The target number of tokens to use for reasoning. \" +\n \"Flash Lite default: Model does not think. \" +\n \"Range: 512-24576 tokens. \" +\n \"Set to 0 to disable thinking, -1 for dynamic thinking.\";\n }\n else if (model.includes(\"flash\")) {\n budgetMin = -1;\n budgetMax = 24576;\n budgetDescription = \"The target number of tokens to use for reasoning. \" +\n \"Flash default: Dynamic thinking (model decides when and how much to think). \" +\n \"Range: 0-24576 tokens. \" +\n \"Set to 0 to disable thinking, -1 for dynamic thinking.\";\n }\n else if (model.includes(\"pro\")) {\n budgetMin = -1;\n budgetMax = 32768;\n budgetDescription = \"The target number of tokens to use for reasoning. \" +\n \"Pro default: Dynamic thinking (model decides when and how much to think). \" +\n \"Range: 128-32768 tokens. \" +\n \"Cannot disable thinking - minimum 128 tokens. Set to -1 for dynamic thinking.\";\n }\n const geminiThinkingOptions = [\n {\n name: \"include_thoughts\",\n type: OptionType.boolean,\n default: false,\n description: \"Include the model's reasoning process in the response\"\n },\n {\n name: \"thinking_budget_tokens\",\n type: OptionType.numeric,\n min: budgetMin,\n max: budgetMax,\n default: undefined,\n integer: true,\n step: 100,\n description: budgetDescription,\n }\n ];\n return {\n _option_id: \"vertexai-gemini\",\n options: [\n ...max_tokens,\n ...commonOptions,\n seedOption,\n ...geminiThinkingOptions,\n ]\n };\n }\n return {\n _option_id: \"vertexai-gemini\",\n options: [\n ...max_tokens,\n ...commonOptions,\n seedOption,\n ]\n };\n}\nfunction getClaudeOptions(model, option) {\n const max_tokens_limit = getClaudeMaxTokensLimit(model);\n const excludeOptions = [\"max_tokens\", \"presence_penalty\", \"frequency_penalty\"];\n const commonOptions = textOptionsFallback.options.filter((option) => !excludeOptions.includes(option.name));\n const max_tokens = [{\n name: SharedOptions.max_tokens, type: OptionType.numeric, min: 1, max: max_tokens_limit,\n integer: true, step: 200, description: \"The maximum number of tokens to generate\"\n }];\n if (model.includes(\"-3-7\") || model.includes(\"-4\")) {\n const claudeModeOptions = [\n {\n name: \"thinking_mode\",\n type: OptionType.boolean,\n default: false,\n description: \"If true, use the extended reasoning mode\"\n },\n ];\n const claudeThinkingOptions = option?.thinking_mode ? [\n {\n name: \"thinking_budget_tokens\",\n type: OptionType.numeric,\n min: 1024,\n default: 1024,\n integer: true,\n step: 100,\n description: \"The target number of tokens to use for reasoning, not a hard limit.\"\n },\n {\n name: \"include_thoughts\",\n type: OptionType.boolean,\n default: false,\n description: \"Include the model's reasoning process in the response\"\n }\n ] : [];\n return {\n _option_id: \"vertexai-claude\",\n options: [\n ...max_tokens,\n ...commonOptions,\n ...claudeModeOptions,\n ...claudeThinkingOptions,\n ]\n };\n }\n return {\n _option_id: \"vertexai-claude\",\n options: [\n ...max_tokens,\n ...commonOptions,\n ]\n };\n}\nfunction getLlamaOptions(model) {\n const max_tokens_limit = getLlamaMaxTokensLimit(model);\n const excludeOptions = [\"max_tokens\", \"presence_penalty\", \"frequency_penalty\", \"stop_sequence\"];\n let commonOptions = textOptionsFallback.options.filter((option) => !excludeOptions.includes(option.name));\n const max_tokens = [{\n name: SharedOptions.max_tokens, type: OptionType.numeric, min: 1, max: max_tokens_limit,\n integer: true, step: 200, description: \"The maximum number of tokens to generate\"\n }];\n // Set max temperature to 1.0 for Llama models\n commonOptions = commonOptions.map((option) => {\n if (option.name === SharedOptions.temperature &&\n option.type === OptionType.numeric) {\n return {\n ...option,\n max: 1.0,\n };\n }\n return option;\n });\n return {\n _option_id: \"text-fallback\",\n options: [\n ...max_tokens,\n ...commonOptions,\n ]\n };\n}\nfunction getGeminiMaxTokensLimit(model) {\n if (model.includes(\"gemini-2.5-flash-image\") || model.includes(\"gemini-3-pro-image\")) {\n return 32768;\n }\n if (model.includes(\"thinking\") || model.includes(\"-2.5-\") || model.includes(\"-3-\")) {\n return 65536;\n }\n if (model.includes(\"ultra\") || model.includes(\"vision\")) {\n return 2048;\n }\n return 8192;\n}\nfunction getClaudeMaxTokensLimit(model) {\n if (model.includes(\"-4-\")) {\n if (model.includes(\"opus-\")) {\n return 32768;\n }\n return 65536;\n }\n else if (model.includes(\"-3-7-\")) {\n return 128000;\n }\n else if (model.includes(\"-3-5-\")) {\n return 8192;\n }\n else {\n return 4096;\n }\n}\nfunction getLlamaMaxTokensLimit(_model) {\n return 8192;\n}\nexport function getMaxTokensLimitVertexAi(model) {\n if (model.includes(\"imagen-\")) {\n return 0; // Imagen models do not have a max tokens limit in the same way as text models\n }\n else if (model.includes(\"claude\")) {\n return getClaudeMaxTokensLimit(model);\n }\n else if (model.includes(\"gemini\")) {\n return getGeminiMaxTokensLimit(model);\n }\n else if (model.includes(\"llama\")) {\n return getLlamaMaxTokensLimit(model);\n }\n return 8192; // Default fallback limit\n}\n//# sourceMappingURL=vertexai.js.map",null,"import { OptionType, SharedOptions } from \"../types.js\";\nexport const textOptionsFallback = {\n _option_id: \"text-fallback\",\n options: [\n {\n name: SharedOptions.max_tokens, type: OptionType.numeric, min: 1,\n integer: true, step: 200, description: \"The maximum number of tokens to generate\"\n },\n {\n name: SharedOptions.temperature, type: OptionType.numeric, min: 0.0, default: 0.7,\n integer: false, step: 0.1, description: \"A higher temperature biases toward less likely tokens, making the model more creative\"\n },\n {\n name: SharedOptions.top_p, type: OptionType.numeric, min: 0, max: 1,\n integer: false, step: 0.1, description: \"Limits token sampling to the cumulative probability of the top p tokens\"\n },\n {\n name: SharedOptions.top_k, type: OptionType.numeric, min: 1,\n integer: true, step: 1, description: \"Limits token sampling to the top k tokens\"\n },\n {\n name: SharedOptions.presence_penalty, type: OptionType.numeric, min: -2.0, max: 2.0,\n integer: false, step: 0.1, description: \"Penalise tokens if they appear at least once in the text\"\n },\n {\n name: SharedOptions.frequency_penalty, type: OptionType.numeric, min: -2.0, max: 2.0,\n integer: false, step: 0.1, description: \"Penalise tokens based on their frequency in the text\"\n },\n { name: SharedOptions.stop_sequence, type: OptionType.string_list, value: [], description: \"The generation will halt if one of the stop sequences is output\" },\n ]\n};\n//# sourceMappingURL=fallback.js.map",null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],"names":["Permission","AccessControlResourceType","AccessControlPrincipalType","ApiKeyTypes","PrincipalType","Providers","ProviderList","openai","id","name","requiresApiKey","requiresEndpointUrl","supportSearch","azure_openai","azure_foundry","huggingface_ie","replicate","bedrock","endpointPlaceholder","vertexai","togetherai","mistralai","groq","watsonx","SharedOptions","OptionType","PromptRole","Modalities","AIModelStatus","ModelType","TrainingJobStatus","RECORD_MODEL_CAPABILITIES","input","text","image","video","audio","embed","output","tool_support","tool_support_streaming","o3","RECORD_FAMILY_CAPABILITIES","gpt","o1","o4","o","llama","mistral","phi","deepseek","ai21","jamba","cohere","command","grok","IMAGE_INPUT_MODELS","VIDEO_INPUT_MODELS","AUDIO_INPUT_MODELS","TEXT_INPUT_MODELS","IMAGE_OUTPUT_MODELS","VIDEO_OUTPUT_MODELS","AUDIO_OUTPUT_MODELS","TEXT_OUTPUT_MODELS","EMBEDDING_OUTPUT_MODELS","TOOL_SUPPORT_MODELS","modelMatches","modelName","patterns","some","pattern","includes","applyGlobalToolSupportDisable","capabilities","startsWith","RECORD_FOUNDATION_EXCEPTIONS","RECORD_PROFILE_EXCEPTIONS","getModelCapabilitiesBedrock","model","modelLower","toLowerCase","normalized","test","foundationIdx","lastIndexOf","inferenceIdx","substring","isInferenceProfile","isFoundationModel","lookupKey","lower","lastSlashIdx","key","slice","replace","extractModelLookupKey","exception","modelCapability","familyCapability","families","bestKey","Object","keys","length","undefined","findFamilyCapability","inferredName","parts","split","providerModel","modelParts","join","normalizeModelName","sora","whisper","getModelCapabilitiesOpenAI","record","bestFamilyKey","bestFamilyLength","gemini","imagen","claude","getModelCapabilitiesVertexAI","segments","normalizeVertexAIModelName","getModelCapabilities","provider","baseModel","compositeId","deploymentName","parseAzureFoundryModelId","getModelCapabilitiesAzureFoundry","_getModelCapabilities","supportsToolUse","streaming","ImagenTaskType","ImagenMaskMode","ThinkingLevel","CustomProviders","max_tokens","numeric","temperature","top_p","top_k","presence_penalty","frequency_penalty","stop_sequence","string_list","SupportedProviders","CustomProvidersList","virtual_lb","virtual_mediator","SupportedProvidersList","ExecutionEnvironmentRefPopulate","UserGroupRefPopulate","SupportedIntegrations","InteractionRefPopulate","InteractionRefWithSchemaPopulate","InteractionStatus","ExecutionRunStatus","RunDataStorageLevel","RunDataStorageDescription","RunDataStorageOptions","STANDARD","RESTRICTED","DEBUG","AgentSearchScope","RunSourceTypes","ExecutionRunRefSelect","ConfigModes","ConfigModesDescription","ConfigModesOptions","RUN_AND_INTERACTION_CONFIG","RUN_CONFIG_ONLY","INTERACTION_CONFIG_ONLY","MeterNames","ProjectRoles","ResourceVisibility","SystemInteractionCategory","ProgressSpan","constructor","parent","parentUnits","spanUnits","this","unitsDone","done","units","remaining","parentUnitsDone","Math","round","isDone","Progress","total","fraction","percent","span","isRoleIncludedIn","role","includingRole","owner","admin","billing","developer","SYSTEM_INTERACTION_CATEGORIES","ExtractInformation","intake","SelectDocumentType","GenerateMetadataModel","content_type","ChunkDocument","IdentifyTextSections","AnalyzeDocument","analysis","ReduceTextSections","GenericAgent","non_applicable","AdhocTaskAgent","Mediator","AnalyzeConversation","GetAgentConversationTopic","getSystemInteractionCategory","endpoint","category","SupportedEmbeddingTypes","FullTextType","SearchTypes","ProjectRefPopulate","PromptStatus","PromptSegmentDefType","TemplateType","ResolvableRefType","CollectionStatus","WorkflowDefinitionRefPopulate","RenditionSchema","type","description","properties","mime_type","source_etag","nullable","height","width","multipart","default","total_parts","required","DocumentPartSchema","part_number","title","source_line_start","source_line_end","enum","page_number","ContentObjectApiHeaders","ContentObjectStatus","ContentNature","POSTER_RENDITION_NAME","AUDIO_RENDITION_NAME","WEB_VIDEO_RENDITION_NAME","PDF_RENDITION_NAME","WorkflowRuleInputType","ImageRenditionFormat","MarkdownRenditionFormat","ContentObjectProcessingPriority","ParentClosePolicy","TERMINATE","ABANDON","REQUEST_CANCEL","PARENT_CLOSE_POLICY_UNSPECIFIED","PARENT_CLOSE_POLICY_TERMINATE","PARENT_CLOSE_POLICY_ABANDON","PARENT_CLOSE_POLICY_REQUEST_CANCEL","ContentEventName","WorkflowExecutionStatus","AgentMessageType","getDocumentIds","payload","objectIds","LOW_PRIORITY_TASK_QUEUE","TrainingSessionStatus","TransientTokenType","UserRefPopulate","Datacenters","BillingMethod","AccountRefPopulate","getTenantId","accountId","projectId","getTenantIdFromProject","project","account","removeExtraProperties","schema","Array","isArray","item","obj","value","entries","mergeJSONSchemas","schemas","props","prop","push","assign","_mergePromptsSchema","prompts","Set","prompt","template","inputSchema","add","chat","items","assistant","user","content","from","mergePromptsSchema","interaction","mergeInCodePromptSchemas","isApiKeyRequest","req","isUserRequest","isProjectRequest","isEnvironmentRequest","isAgentRequest","isServiceAccountRequest","ApiVersions"],"mappings":"IAQYA,EA4CAC,EAQAC,ECxDAC,EAsFAC,ECzFDC,GFOX,SAAYL,GACRA,EAAA,SAAA,mBACAA,EAAA,UAAA,oBACAA,EAAA,WAAA,qBAEAA,EAAA,YAAA,sBACAA,EAAA,SAAA,WACAA,EAAA,UAAA,YAEAA,EAAA,UAAA,oBAEAA,EAAA,cAAA,gBACAA,EAAA,yBAAA,2BACAA,EAAA,uBAAA,yBAEAA,EAAA,eAAA,iBACAA,EAAA,aAAA,eACAA,EAAA,eAAA,iBACAA,EAAA,eAAA,iBAEAA,EAAA,aAAA,eACAA,EAAA,cAAA,gBACAA,EAAA,cAAA,gBACAA,EAAA,eAAA,kBACAA,EAAA,eAAA,iBAGAA,EAAA,aAAA,eACAA,EAAA,cAAA,gBACAA,EAAA,eAAA,iBACAA,EAAA,cAAA,gBACAA,EAAA,mBAAA,qBAGAA,EAAA,aAAA,eACAA,EAAA,eAAA,iBACAA,EAAA,oB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IACP,IACtB,CCxBM,SAAU4E,GAAgBC,GAC5B,MAAoB,WAAbA,EAAIxF,IACf,CAEM,SAAUyF,GAAcD,GAC1B,MAAoB,SAAbA,EAAIxF,IACf,CAEM,SAAU0F,GAAiBF,GAC7B,MAAoB,YAAbA,EAAIxF,IACf,CAEM,SAAU2F,GAAqBH,GACjC,MAAoB,gBAAbA,EAAIxF,IACf,CAEM,SAAU4F,GAAeJ,GAC3B,MAAoB,UAAbA,EAAIxF,IACf,CAEM,SAAU6F,GAAwBL,GACpC,MAAoB,oBAAbA,EAAIxF,IACf,KCzGY8F,IAAZ,SAAYA,GACRA,EAAAA,EAAA,qBAAA,UAAA,sBACH,CAFD,CAAYA,KAAAA,GAAW,CAAA"}
@@ -1,19 +0,0 @@
1
- export interface CreateAgentDeploymentRequest {
2
- /**
3
- * The agent ID is composed from the agent organization and the agent name, separated by a slash.
4
- * Example: vertesia/docgen-agent
5
- */
6
- agentId: string;
7
- /**
8
- * The environment to deploy the agent to. This should be one of the following values:
9
- * - `production`
10
- * - `preview`
11
- * - `staging`
12
- */
13
- environment: 'production' | 'preview' | 'staging';
14
-
15
- /**
16
- * The agent docker image version. A major.minor.patch[-modifier] string.
17
- */
18
- version: string;
19
- }