@webiny/api-core 0.0.0-unstable.7be00a75a9 → 0.0.0-unstable.7c2def32a7

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 (499) hide show
  1. package/ApiCoreFeature.d.ts +2 -2
  2. package/ApiCoreFeature.js +35 -5
  3. package/ApiCoreFeature.js.map +1 -1
  4. package/exports/api/security/api-key.d.ts +1 -0
  5. package/exports/api/security/api-key.js +1 -0
  6. package/exports/api/tasks.d.ts +1 -0
  7. package/exports/api/tasks.js +1 -1
  8. package/exports/api.d.ts +2 -1
  9. package/exports/api.js +2 -1
  10. package/features/ai/Ai.d.ts +5 -1
  11. package/features/ai/Ai.js +72 -29
  12. package/features/ai/Ai.js.map +1 -1
  13. package/features/ai/AiModelRegistry.d.ts +14 -0
  14. package/features/ai/AiModelRegistry.js +39 -0
  15. package/features/ai/AiModelRegistry.js.map +1 -0
  16. package/features/ai/AiSdkToolHandlerResolver.d.ts +11 -0
  17. package/features/ai/AiSdkToolHandlerResolver.js +19 -0
  18. package/features/ai/AiSdkToolHandlerResolver.js.map +1 -0
  19. package/features/ai/AiSdkTools.d.ts +4 -3
  20. package/features/ai/AiSdkTools.js +11 -9
  21. package/features/ai/AiSdkTools.js.map +1 -1
  22. package/features/ai/AnthropicSdkFactory.js +18 -34
  23. package/features/ai/AnthropicSdkFactory.js.map +1 -1
  24. package/features/ai/DEVELOPERS.md +183 -0
  25. package/features/ai/GoogleSdkFactory.d.ts +10 -0
  26. package/features/ai/GoogleSdkFactory.js +65 -0
  27. package/features/ai/GoogleSdkFactory.js.map +1 -0
  28. package/features/ai/OpenAiSdkFactory.js +42 -150
  29. package/features/ai/OpenAiSdkFactory.js.map +1 -1
  30. package/features/ai/OpenRouterSdkFactory.d.ts +10 -0
  31. package/features/ai/OpenRouterSdkFactory.js +112 -0
  32. package/features/ai/OpenRouterSdkFactory.js.map +1 -0
  33. package/features/ai/RemoteAiModelCatalog.d.ts +13 -0
  34. package/features/ai/RemoteAiModelCatalog.js +74 -0
  35. package/features/ai/RemoteAiModelCatalog.js.map +1 -0
  36. package/features/ai/TextExtractor/DefaultTextExtractor.d.ts +9 -0
  37. package/features/ai/TextExtractor/DefaultTextExtractor.js +28 -0
  38. package/features/ai/TextExtractor/DefaultTextExtractor.js.map +1 -0
  39. package/features/ai/TextExtractor/abstractions.d.ts +12 -0
  40. package/features/ai/TextExtractor/abstractions.js +5 -0
  41. package/features/ai/TextExtractor/abstractions.js.map +1 -0
  42. package/features/ai/TextExtractor/index.d.ts +3 -0
  43. package/features/ai/TextExtractor/index.js +2 -0
  44. package/features/ai/TextExtractor/parsers/docxParser.d.ts +1 -0
  45. package/features/ai/TextExtractor/parsers/docxParser.js +111 -0
  46. package/features/ai/TextExtractor/parsers/docxParser.js.map +1 -0
  47. package/features/ai/abstractions.d.ts +102 -7
  48. package/features/ai/abstractions.js +6 -2
  49. package/features/ai/abstractions.js.map +1 -1
  50. package/features/ai/events.d.ts +59 -0
  51. package/features/ai/events.js +41 -0
  52. package/features/ai/events.js.map +1 -0
  53. package/features/ai/feature.js +16 -0
  54. package/features/ai/feature.js.map +1 -1
  55. package/features/ai/index.d.ts +6 -2
  56. package/features/ai/index.js +4 -1
  57. package/features/ai/toolPipeline/AiOutputToolRegistry.d.ts +11 -0
  58. package/features/ai/toolPipeline/AiOutputToolRegistry.js +31 -0
  59. package/features/ai/toolPipeline/AiOutputToolRegistry.js.map +1 -0
  60. package/features/ai/toolPipeline/AiToolPipelineRunner.d.ts +10 -0
  61. package/features/ai/toolPipeline/AiToolPipelineRunner.js +36 -0
  62. package/features/ai/toolPipeline/AiToolPipelineRunner.js.map +1 -0
  63. package/features/ai/toolPipeline/abstractions.d.ts +23 -0
  64. package/features/ai/toolPipeline/abstractions.js +7 -0
  65. package/features/ai/toolPipeline/abstractions.js.map +1 -0
  66. package/features/ai/toolPipeline/index.d.ts +2 -0
  67. package/features/ai/toolPipeline/index.js +1 -0
  68. package/features/dateFormatter/DefaultDateFormatter.d.ts +15 -0
  69. package/features/dateFormatter/DefaultDateFormatter.js +20 -0
  70. package/features/dateFormatter/DefaultDateFormatter.js.map +1 -0
  71. package/features/dateFormatter/abstractions.d.ts +13 -0
  72. package/features/dateFormatter/abstractions.js +5 -0
  73. package/features/dateFormatter/abstractions.js.map +1 -0
  74. package/features/dateFormatter/feature.d.ts +4 -0
  75. package/features/dateFormatter/feature.js +11 -0
  76. package/features/dateFormatter/feature.js.map +1 -0
  77. package/features/dateFormatter/index.d.ts +3 -0
  78. package/features/dateFormatter/index.js +2 -0
  79. package/features/debugger/Debugger.d.ts +30 -0
  80. package/features/debugger/Debugger.js +142 -0
  81. package/features/debugger/Debugger.js.map +1 -0
  82. package/features/debugger/DebuggerRouteDecorator.d.ts +45 -0
  83. package/features/debugger/DebuggerRouteDecorator.js +107 -0
  84. package/features/debugger/DebuggerRouteDecorator.js.map +1 -0
  85. package/features/debugger/GraphQLDebuggerTransport.d.ts +28 -0
  86. package/features/debugger/GraphQLDebuggerTransport.js +45 -0
  87. package/features/debugger/GraphQLDebuggerTransport.js.map +1 -0
  88. package/features/debugger/__tests__/matchNamespace.test.d.ts +1 -0
  89. package/features/debugger/__tests__/matchNamespace.test.js +68 -0
  90. package/features/debugger/__tests__/matchNamespace.test.js.map +1 -0
  91. package/features/debugger/__tests__/serialize.test.d.ts +1 -0
  92. package/features/debugger/__tests__/serialize.test.js +220 -0
  93. package/features/debugger/__tests__/serialize.test.js.map +1 -0
  94. package/features/debugger/abstractions.d.ts +100 -0
  95. package/features/debugger/abstractions.js +6 -0
  96. package/features/debugger/abstractions.js.map +1 -0
  97. package/features/debugger/feature.d.ts +5 -0
  98. package/features/debugger/feature.js +15 -0
  99. package/features/debugger/feature.js.map +1 -0
  100. package/features/debugger/index.d.ts +12 -0
  101. package/features/debugger/index.js +7 -0
  102. package/features/debugger/limits.d.ts +18 -0
  103. package/features/debugger/limits.js +11 -0
  104. package/features/debugger/limits.js.map +1 -0
  105. package/features/debugger/matchNamespace.d.ts +14 -0
  106. package/features/debugger/matchNamespace.js +35 -0
  107. package/features/debugger/matchNamespace.js.map +1 -0
  108. package/features/debugger/parseNamespaceHeader.d.ts +7 -0
  109. package/features/debugger/parseNamespaceHeader.js +16 -0
  110. package/features/debugger/parseNamespaceHeader.js.map +1 -0
  111. package/features/debugger/permissions.d.ts +14 -0
  112. package/features/debugger/permissions.js +8 -0
  113. package/features/debugger/permissions.js.map +1 -0
  114. package/features/debugger/permissionsSchema.d.ts +17 -0
  115. package/features/debugger/permissionsSchema.js +18 -0
  116. package/features/debugger/permissionsSchema.js.map +1 -0
  117. package/features/debugger/serialize.d.ts +11 -0
  118. package/features/debugger/serialize.js +121 -0
  119. package/features/debugger/serialize.js.map +1 -0
  120. package/features/encryption/EncryptionKeyCacheFeature.d.ts +8 -0
  121. package/features/encryption/EncryptionKeyCacheFeature.js +11 -0
  122. package/features/encryption/EncryptionKeyCacheFeature.js.map +1 -0
  123. package/features/encryption/EncryptionService.d.ts +2 -1
  124. package/features/encryption/EncryptionService.js +11 -4
  125. package/features/encryption/EncryptionService.js.map +1 -1
  126. package/features/encryption/MemoryEncryptionKeyCache.d.ts +13 -0
  127. package/features/encryption/MemoryEncryptionKeyCache.js +26 -0
  128. package/features/encryption/MemoryEncryptionKeyCache.js.map +1 -0
  129. package/features/encryption/abstractions.d.ts +11 -0
  130. package/features/encryption/abstractions.js +2 -1
  131. package/features/encryption/abstractions.js.map +1 -1
  132. package/features/encryption/index.d.ts +1 -0
  133. package/features/encryption/index.js +1 -0
  134. package/features/featureFlags/decorators/FeatureFlagsWithLicenseDecorator.d.ts +13 -0
  135. package/features/featureFlags/decorators/FeatureFlagsWithLicenseDecorator.js +62 -0
  136. package/features/featureFlags/decorators/FeatureFlagsWithLicenseDecorator.js.map +1 -0
  137. package/features/hashing/ScryptHasher.d.ts +11 -0
  138. package/features/hashing/ScryptHasher.js +74 -0
  139. package/features/hashing/ScryptHasher.js.map +1 -0
  140. package/features/hashing/abstractions.d.ts +18 -0
  141. package/features/hashing/abstractions.js +5 -0
  142. package/features/hashing/abstractions.js.map +1 -0
  143. package/features/hashing/feature.d.ts +4 -0
  144. package/features/hashing/feature.js +11 -0
  145. package/features/hashing/feature.js.map +1 -0
  146. package/features/hashing/index.d.ts +2 -0
  147. package/features/hashing/index.js +1 -0
  148. package/features/httpClient/HttpClient.d.ts +7 -0
  149. package/features/httpClient/HttpClient.js +72 -0
  150. package/features/httpClient/HttpClient.js.map +1 -0
  151. package/features/httpClient/HttpRequestError.d.ts +10 -0
  152. package/features/httpClient/HttpRequestError.js +13 -0
  153. package/features/httpClient/HttpRequestError.js.map +1 -0
  154. package/features/httpClient/HttpStatusError.d.ts +12 -0
  155. package/features/httpClient/HttpStatusError.js +12 -0
  156. package/features/httpClient/HttpStatusError.js.map +1 -0
  157. package/features/httpClient/abstractions.d.ts +32 -0
  158. package/features/httpClient/abstractions.js +5 -0
  159. package/features/httpClient/abstractions.js.map +1 -0
  160. package/features/httpClient/feature.d.ts +4 -0
  161. package/features/httpClient/feature.js +11 -0
  162. package/features/httpClient/feature.js.map +1 -0
  163. package/features/httpClient/index.d.ts +3 -0
  164. package/features/httpClient/index.js +3 -0
  165. package/features/keyValueStore/GlobalKeyValueStore.d.ts +9 -3
  166. package/features/keyValueStore/GlobalKeyValueStore.js +12 -2
  167. package/features/keyValueStore/GlobalKeyValueStore.js.map +1 -1
  168. package/features/keyValueStore/KeyValueStore.d.ts +6 -2
  169. package/features/keyValueStore/KeyValueStore.js +13 -3
  170. package/features/keyValueStore/KeyValueStore.js.map +1 -1
  171. package/features/keyValueStore/KeyValueStoreRepository.d.ts +8 -2
  172. package/features/keyValueStore/KeyValueStoreRepository.js +82 -4
  173. package/features/keyValueStore/KeyValueStoreRepository.js.map +1 -1
  174. package/features/keyValueStore/abstractions.d.ts +132 -14
  175. package/features/keyValueStore/abstractions.js.map +1 -1
  176. package/features/keyValueStore/errors.d.ts +29 -0
  177. package/features/keyValueStore/errors.js +49 -1
  178. package/features/keyValueStore/errors.js.map +1 -1
  179. package/features/keyValueStore/index.d.ts +4 -1
  180. package/features/keyValueStore/index.js +1 -1
  181. package/features/publicUrls/NullPublicUrls.d.ts +11 -0
  182. package/features/publicUrls/NullPublicUrls.js +17 -0
  183. package/features/publicUrls/NullPublicUrls.js.map +1 -0
  184. package/features/publicUrls/PublicUrl.d.ts +24 -0
  185. package/features/publicUrls/PublicUrl.js +43 -0
  186. package/features/publicUrls/PublicUrl.js.map +1 -0
  187. package/features/publicUrls/__tests__/PublicUrl.test.d.ts +1 -0
  188. package/features/publicUrls/__tests__/PublicUrl.test.js +38 -0
  189. package/features/publicUrls/__tests__/PublicUrl.test.js.map +1 -0
  190. package/features/publicUrls/__tests__/PublicUrls.test.d.ts +1 -0
  191. package/features/publicUrls/__tests__/PublicUrls.test.js +14 -0
  192. package/features/publicUrls/__tests__/PublicUrls.test.js.map +1 -0
  193. package/features/publicUrls/abstractions.d.ts +27 -0
  194. package/features/publicUrls/abstractions.js +5 -0
  195. package/features/publicUrls/abstractions.js.map +1 -0
  196. package/features/publicUrls/feature.d.ts +8 -0
  197. package/features/publicUrls/feature.js +11 -0
  198. package/features/publicUrls/feature.js.map +1 -0
  199. package/features/publicUrls/index.d.ts +3 -0
  200. package/features/publicUrls/index.js +3 -0
  201. package/features/requestContext/RawAssumePermissions.d.ts +14 -0
  202. package/features/requestContext/RawAssumePermissions.js +19 -0
  203. package/features/requestContext/RawAssumePermissions.js.map +1 -0
  204. package/features/requestContext/RawAuthToken.d.ts +14 -0
  205. package/features/requestContext/RawAuthToken.js +19 -0
  206. package/features/requestContext/RawAuthToken.js.map +1 -0
  207. package/features/requestContext/RawTenantId.d.ts +14 -0
  208. package/features/requestContext/RawTenantId.js +19 -0
  209. package/features/requestContext/RawTenantId.js.map +1 -0
  210. package/features/requestContext/RequestIdentityLoader.d.ts +19 -0
  211. package/features/requestContext/RequestIdentityLoader.js +26 -0
  212. package/features/requestContext/RequestIdentityLoader.js.map +1 -0
  213. package/features/requestContext/RequestTenantLoader.d.ts +18 -0
  214. package/features/requestContext/RequestTenantLoader.js +52 -0
  215. package/features/requestContext/RequestTenantLoader.js.map +1 -0
  216. package/features/requestContext/abstractions.d.ts +75 -0
  217. package/features/requestContext/abstractions.js +9 -0
  218. package/features/requestContext/abstractions.js.map +1 -0
  219. package/features/requestContext/extractAssumePermissions.d.ts +14 -0
  220. package/features/requestContext/extractAssumePermissions.js +32 -0
  221. package/features/requestContext/extractAssumePermissions.js.map +1 -0
  222. package/features/requestContext/feature.d.ts +12 -0
  223. package/features/requestContext/feature.js +19 -0
  224. package/features/requestContext/feature.js.map +1 -0
  225. package/features/requestContext/index.d.ts +4 -0
  226. package/features/requestContext/index.js +3 -0
  227. package/features/security/IdentityContext/IdentityContext.d.ts +3 -3
  228. package/features/security/IdentityContext/IdentityContext.js +6 -6
  229. package/features/security/IdentityContext/IdentityContext.js.map +1 -1
  230. package/features/security/apiKeys/ApiKeyAuthenticator.d.ts +14 -0
  231. package/features/security/apiKeys/ApiKeyAuthenticator.js +36 -0
  232. package/features/security/apiKeys/ApiKeyAuthenticator.js.map +1 -0
  233. package/features/security/apiKeys/ApiKeyAuthorizer.d.ts +10 -0
  234. package/features/security/apiKeys/ApiKeyAuthorizer.js +15 -0
  235. package/features/security/apiKeys/ApiKeyAuthorizer.js.map +1 -0
  236. package/features/security/apiKeys/CreateApiKey/CreateApiKeyUseCase.js +11 -6
  237. package/features/security/apiKeys/CreateApiKey/CreateApiKeyUseCase.js.map +1 -1
  238. package/features/security/apiKeys/GetApiKey/GetApiKeyUseCase.d.ts +1 -1
  239. package/features/security/apiKeys/GetApiKey/GetApiKeyUseCase.js.map +1 -1
  240. package/features/security/apiKeys/GetApiKeyBySlug/GetApiKeyBySlugUseCase.d.ts +1 -3
  241. package/features/security/apiKeys/GetApiKeyBySlug/GetApiKeyBySlugUseCase.js.map +1 -1
  242. package/features/security/apiKeys/GetApiKeyBySlug/abstractions.d.ts +1 -1
  243. package/features/security/apiKeys/GetApiKeyBySlug/abstractions.js.map +1 -1
  244. package/features/security/apiKeys/GetApiKeyByToken/GetApiKeyByTokenUseCase.d.ts +1 -3
  245. package/features/security/apiKeys/GetApiKeyByToken/GetApiKeyByTokenUseCase.js.map +1 -1
  246. package/features/security/apiKeys/GetApiKeyByToken/abstractions.d.ts +1 -1
  247. package/features/security/apiKeys/GetApiKeyByToken/abstractions.js.map +1 -1
  248. package/features/security/apiKeys/UpdateApiKey/UpdateApiKeyUseCase.js +9 -3
  249. package/features/security/apiKeys/UpdateApiKey/UpdateApiKeyUseCase.js.map +1 -1
  250. package/features/security/apiKeys/feature.js +11 -2
  251. package/features/security/apiKeys/feature.js.map +1 -1
  252. package/features/security/apiKeys/shared/ApiKeyProvider.d.ts +3 -5
  253. package/features/security/apiKeys/shared/ApiKeyProvider.js +6 -21
  254. package/features/security/apiKeys/shared/ApiKeyProvider.js.map +1 -1
  255. package/features/security/apiKeys/shared/ApiKeysRepository.d.ts +1 -0
  256. package/features/security/apiKeys/shared/ApiKeysRepository.js +19 -4
  257. package/features/security/apiKeys/shared/ApiKeysRepository.js.map +1 -1
  258. package/features/security/apiKeys/shared/generateToken.d.ts +1 -1
  259. package/features/security/apiKeys/shared/generateToken.js.map +1 -1
  260. package/features/security/apiKeys/shared/schemas.d.ts +2 -2
  261. package/features/security/apiKeys/shared/schemas.js +2 -2
  262. package/features/security/apiKeys/shared/schemas.js.map +1 -1
  263. package/features/security/apiKeys/shared/types.d.ts +1 -1
  264. package/features/security/authorization/GroupsTeamsAuthorizer/AssumedPermissions.d.ts +30 -0
  265. package/features/security/authorization/GroupsTeamsAuthorizer/AssumedPermissions.js +60 -0
  266. package/features/security/authorization/GroupsTeamsAuthorizer/AssumedPermissions.js.map +1 -0
  267. package/features/security/authorization/GroupsTeamsAuthorizer/GetPermissionsFromIdentity.d.ts +4 -4
  268. package/features/security/authorization/GroupsTeamsAuthorizer/GetPermissionsFromIdentity.js +5 -5
  269. package/features/security/authorization/GroupsTeamsAuthorizer/GetPermissionsFromIdentity.js.map +1 -1
  270. package/features/security/authorization/GroupsTeamsAuthorizer/feature.js +2 -0
  271. package/features/security/authorization/GroupsTeamsAuthorizer/feature.js.map +1 -1
  272. package/features/security/roles/CreateRole/CreateRoleUseCase.js +11 -6
  273. package/features/security/roles/CreateRole/CreateRoleUseCase.js.map +1 -1
  274. package/features/security/roles/CreateRole/schema.d.ts +1 -1
  275. package/features/security/roles/CreateRole/schema.js +1 -1
  276. package/features/security/roles/CreateRole/schema.js.map +1 -1
  277. package/features/security/roles/Installer/RolesInstaller.js +1 -0
  278. package/features/security/roles/Installer/RolesInstaller.js.map +1 -1
  279. package/features/security/roles/UpdateRole/UpdateRoleUseCase.js +9 -3
  280. package/features/security/roles/UpdateRole/UpdateRoleUseCase.js.map +1 -1
  281. package/features/security/roles/UpdateRole/schema.d.ts +1 -1
  282. package/features/security/roles/UpdateRole/schema.js +1 -1
  283. package/features/security/roles/UpdateRole/schema.js.map +1 -1
  284. package/features/security/shared/description.d.ts +4 -0
  285. package/features/security/shared/description.js +7 -0
  286. package/features/security/shared/description.js.map +1 -0
  287. package/features/security/shared/index.d.ts +1 -0
  288. package/features/security/shared/index.js +1 -0
  289. package/features/security/teams/CreateTeam/CreateTeamUseCase.d.ts +3 -1
  290. package/features/security/teams/CreateTeam/CreateTeamUseCase.js +20 -8
  291. package/features/security/teams/CreateTeam/CreateTeamUseCase.js.map +1 -1
  292. package/features/security/teams/CreateTeam/schema.d.ts +1 -1
  293. package/features/security/teams/CreateTeam/schema.js +1 -1
  294. package/features/security/teams/CreateTeam/schema.js.map +1 -1
  295. package/features/security/teams/UpdateTeam/UpdateTeamUseCase.d.ts +3 -1
  296. package/features/security/teams/UpdateTeam/UpdateTeamUseCase.js +20 -5
  297. package/features/security/teams/UpdateTeam/UpdateTeamUseCase.js.map +1 -1
  298. package/features/security/teams/UpdateTeam/schema.d.ts +1 -1
  299. package/features/security/teams/UpdateTeam/schema.js +1 -1
  300. package/features/security/teams/UpdateTeam/schema.js.map +1 -1
  301. package/features/security/teams/shared/resolveRoleIdentifiers.d.ts +17 -0
  302. package/features/security/teams/shared/resolveRoleIdentifiers.js +32 -0
  303. package/features/security/teams/shared/resolveRoleIdentifiers.js.map +1 -0
  304. package/features/security/utils/getPermissionsFromRoles.d.ts +1 -1
  305. package/features/serviceDiscovery/ServiceDiscovery.d.ts +17 -0
  306. package/features/serviceDiscovery/ServiceDiscovery.js +22 -0
  307. package/features/serviceDiscovery/ServiceDiscovery.js.map +1 -0
  308. package/features/serviceDiscovery/__tests__/ServiceDiscovery.test.d.ts +1 -0
  309. package/features/serviceDiscovery/__tests__/ServiceDiscovery.test.js +111 -0
  310. package/features/serviceDiscovery/__tests__/ServiceDiscovery.test.js.map +1 -0
  311. package/features/serviceDiscovery/index.d.ts +3 -0
  312. package/features/serviceDiscovery/index.js +1 -0
  313. package/features/slugify/DefaultSlugify.d.ts +8 -0
  314. package/features/slugify/DefaultSlugify.js +20 -0
  315. package/features/slugify/DefaultSlugify.js.map +1 -0
  316. package/features/slugify/abstractions.d.ts +12 -0
  317. package/features/slugify/abstractions.js +5 -0
  318. package/features/slugify/abstractions.js.map +1 -0
  319. package/features/slugify/feature.d.ts +4 -0
  320. package/features/slugify/feature.js +11 -0
  321. package/features/slugify/feature.js.map +1 -0
  322. package/features/slugify/index.d.ts +3 -0
  323. package/features/slugify/index.js +2 -0
  324. package/features/storageOperations/abstractions.d.ts +21 -0
  325. package/features/storageOperations/abstractions.js +10 -0
  326. package/features/storageOperations/abstractions.js.map +1 -0
  327. package/features/stringFormatter/DefaultStringFormatter.d.ts +17 -0
  328. package/features/stringFormatter/DefaultStringFormatter.js +19 -0
  329. package/features/stringFormatter/DefaultStringFormatter.js.map +1 -0
  330. package/features/stringFormatter/abstractions.d.ts +11 -0
  331. package/features/stringFormatter/abstractions.js +5 -0
  332. package/features/stringFormatter/abstractions.js.map +1 -0
  333. package/features/stringFormatter/feature.d.ts +4 -0
  334. package/features/stringFormatter/feature.js +13 -0
  335. package/features/stringFormatter/feature.js.map +1 -0
  336. package/features/stringFormatter/index.d.ts +3 -0
  337. package/features/stringFormatter/index.js +2 -0
  338. package/features/task/TaskDefinition/abstractions.d.ts +69 -4
  339. package/features/task/TaskDefinition/abstractions.js +2 -1
  340. package/features/task/TaskDefinition/abstractions.js.map +1 -1
  341. package/features/tenancy/CreateTenant/CreateTenantUseCase.d.ts +1 -1
  342. package/features/tenancy/InstallTenant/InstallTenantUseCase.d.ts +1 -1
  343. package/features/tenancy/TenantContext/TenantContext.d.ts +1 -0
  344. package/features/tenancy/TenantContext/TenantContext.js +13 -8
  345. package/features/tenancy/TenantContext/TenantContext.js.map +1 -1
  346. package/features/tenancy/UpdateTenant/UpdateTenantUseCase.d.ts +2 -2
  347. package/features/users/CreateUser/decorators/CreateUserWithWcpIncrement.d.ts +1 -1
  348. package/features/wcp/WcpContext/WcpContext.d.ts +16 -5
  349. package/features/wcp/WcpContext/WcpContext.js +41 -2
  350. package/features/wcp/WcpContext/WcpContext.js.map +1 -1
  351. package/features/wcp/WcpContext/decorators/WcpContextWithFeatureFlagsDecorator.d.ts +15 -60
  352. package/features/wcp/WcpContext/decorators/WcpContextWithFeatureFlagsDecorator.js +81 -25
  353. package/features/wcp/WcpContext/decorators/WcpContextWithFeatureFlagsDecorator.js.map +1 -1
  354. package/features/wcp/WcpContext/feature.d.ts +1 -2
  355. package/features/wcp/WcpContext/feature.js +2 -2
  356. package/features/wcp/WcpContext/feature.js.map +1 -1
  357. package/features/wcp/WcpContext/index.d.ts +0 -1
  358. package/features/wcp/WcpContext/types.d.ts +0 -4
  359. package/features/wcp/WcpFeature.d.ts +1 -1
  360. package/features/wcp/WcpFeature.js +7 -2
  361. package/features/wcp/WcpFeature.js.map +1 -1
  362. package/features/wcp/WcpLicenseLoader.d.ts +25 -0
  363. package/features/wcp/WcpLicenseLoader.js +58 -0
  364. package/features/wcp/WcpLicenseLoader.js.map +1 -0
  365. package/features/wcp/WcpLicenseProvider.d.ts +21 -0
  366. package/features/wcp/WcpLicenseProvider.js +14 -0
  367. package/features/wcp/WcpLicenseProvider.js.map +1 -0
  368. package/features/wcp/resolveWcpProjectEnvironment.d.ts +9 -0
  369. package/features/wcp/resolveWcpProjectEnvironment.js +23 -0
  370. package/features/wcp/resolveWcpProjectEnvironment.js.map +1 -0
  371. package/graphql/ApiCoreSchemaFactory.d.ts +16 -0
  372. package/graphql/ApiCoreSchemaFactory.js +58 -0
  373. package/graphql/ApiCoreSchemaFactory.js.map +1 -0
  374. package/graphql/featureFlags/FeatureFlagsSchemaFactory.d.ts +10 -0
  375. package/graphql/featureFlags/FeatureFlagsSchemaFactory.js +53 -0
  376. package/graphql/featureFlags/FeatureFlagsSchemaFactory.js.map +1 -0
  377. package/graphql/security/NotAuthorizedResponse.d.ts +1 -1
  378. package/graphql/security/NotAuthorizedResponse.js +1 -1
  379. package/graphql/security/NotAuthorizedResponse.js.map +1 -1
  380. package/graphql/security/SecuritySchemaFactory.d.ts +15 -0
  381. package/graphql/security/SecuritySchemaFactory.js +27 -0
  382. package/graphql/security/SecuritySchemaFactory.js.map +1 -0
  383. package/graphql/security/addApiKeySchema.d.ts +2 -0
  384. package/graphql/security/{apiKey.gql.js → addApiKeySchema.js} +45 -27
  385. package/graphql/security/addApiKeySchema.js.map +1 -0
  386. package/graphql/security/addIdentitySchema.d.ts +2 -0
  387. package/graphql/security/{identity.gql.js → addIdentitySchema.js} +52 -35
  388. package/graphql/security/addIdentitySchema.js.map +1 -0
  389. package/graphql/security/addRoleSchema.d.ts +2 -0
  390. package/graphql/security/addRoleSchema.js +137 -0
  391. package/graphql/security/addRoleSchema.js.map +1 -0
  392. package/graphql/security/addSecurityBaseSchema.d.ts +2 -0
  393. package/graphql/security/{base.gql.js → addSecurityBaseSchema.js} +14 -16
  394. package/graphql/security/addSecurityBaseSchema.js.map +1 -0
  395. package/graphql/security/addTeamSchema.d.ts +2 -0
  396. package/graphql/security/addTeamSchema.js +157 -0
  397. package/graphql/security/addTeamSchema.js.map +1 -0
  398. package/graphql/system/SystemSchemaFactory.d.ts +10 -0
  399. package/graphql/system/SystemSchemaFactory.js +70 -0
  400. package/graphql/system/SystemSchemaFactory.js.map +1 -0
  401. package/graphql/users/UsersSchemaFactory.d.ts +10 -0
  402. package/graphql/users/UsersSchemaFactory.js +195 -0
  403. package/graphql/users/UsersSchemaFactory.js.map +1 -0
  404. package/graphql/wcp/WcpSchemaFactory.d.ts +10 -0
  405. package/graphql/wcp/{graphql.js → WcpSchemaFactory.js} +32 -18
  406. package/graphql/wcp/WcpSchemaFactory.js.map +1 -0
  407. package/idp/JwksCache.d.ts +14 -3
  408. package/idp/JwksCache.js +97 -17
  409. package/idp/JwksCache.js.map +1 -1
  410. package/idp/JwksStoreFeature.d.ts +8 -0
  411. package/idp/JwksStoreFeature.js +11 -0
  412. package/idp/JwksStoreFeature.js.map +1 -0
  413. package/idp/MemoryJwksStore.d.ts +14 -0
  414. package/idp/MemoryJwksStore.js +21 -0
  415. package/idp/MemoryJwksStore.js.map +1 -0
  416. package/idp/OidcJwtIdentityProvider.js +5 -1
  417. package/idp/OidcJwtIdentityProvider.js.map +1 -1
  418. package/idp/abstractions.d.ts +24 -0
  419. package/idp/abstractions.js +2 -1
  420. package/idp/abstractions.js.map +1 -1
  421. package/idp/feature.js +1 -2
  422. package/idp/feature.js.map +1 -1
  423. package/idp/index.d.ts +1 -0
  424. package/idp/index.js +1 -0
  425. package/index.d.ts +3 -1
  426. package/index.js +3 -1
  427. package/package.json +23 -24
  428. package/testing/environment.d.ts +14 -0
  429. package/testing/environment.js +18 -0
  430. package/testing/environment.js.map +1 -0
  431. package/types/core.d.ts +17 -5
  432. package/types/security.d.ts +1 -7
  433. package/types/tenancy.d.ts +0 -17
  434. package/types/users.d.ts +0 -13
  435. package/createApiCore.d.ts +0 -7
  436. package/createApiCore.js +0 -22
  437. package/createApiCore.js.map +0 -1
  438. package/graphql/security/apiKey.gql.d.ts +0 -4
  439. package/graphql/security/apiKey.gql.js.map +0 -1
  440. package/graphql/security/base.gql.d.ts +0 -4
  441. package/graphql/security/base.gql.js.map +0 -1
  442. package/graphql/security/identity.gql.d.ts +0 -4
  443. package/graphql/security/identity.gql.js.map +0 -1
  444. package/graphql/security/index.d.ts +0 -1
  445. package/graphql/security/index.js +0 -15
  446. package/graphql/security/index.js.map +0 -1
  447. package/graphql/security/role.gql.d.ts +0 -4
  448. package/graphql/security/role.gql.js +0 -106
  449. package/graphql/security/role.gql.js.map +0 -1
  450. package/graphql/security/team.gql.d.ts +0 -4
  451. package/graphql/security/team.gql.js +0 -119
  452. package/graphql/security/team.gql.js.map +0 -1
  453. package/graphql/system/createSystemGraphQL.d.ts +0 -2
  454. package/graphql/system/createSystemGraphQL.js +0 -54
  455. package/graphql/system/createSystemGraphQL.js.map +0 -1
  456. package/graphql/users/user.gql.d.ts +0 -3
  457. package/graphql/users/user.gql.js +0 -167
  458. package/graphql/users/user.gql.js.map +0 -1
  459. package/graphql/wcp/graphql.d.ts +0 -2
  460. package/graphql/wcp/graphql.js.map +0 -1
  461. package/legacy/security/LegacyContext.d.ts +0 -36
  462. package/legacy/security/LegacyContext.js +0 -152
  463. package/legacy/security/LegacyContext.js.map +0 -1
  464. package/legacy/security/createSecurityContext.d.ts +0 -3
  465. package/legacy/security/createSecurityContext.js +0 -10
  466. package/legacy/security/createSecurityContext.js.map +0 -1
  467. package/legacy/security/plugins/apiKeyAuthentication.d.ts +0 -7
  468. package/legacy/security/plugins/apiKeyAuthentication.js +0 -20
  469. package/legacy/security/plugins/apiKeyAuthentication.js.map +0 -1
  470. package/legacy/security/plugins/apiKeyAuthorization.d.ts +0 -6
  471. package/legacy/security/plugins/apiKeyAuthorization.js +0 -13
  472. package/legacy/security/plugins/apiKeyAuthorization.js.map +0 -1
  473. package/legacy/security/plugins/authenticateUsingCookie.d.ts +0 -5
  474. package/legacy/security/plugins/authenticateUsingCookie.js +0 -23
  475. package/legacy/security/plugins/authenticateUsingCookie.js.map +0 -1
  476. package/legacy/security/plugins/authenticateUsingHttpHeader.d.ts +0 -5
  477. package/legacy/security/plugins/authenticateUsingHttpHeader.js +0 -20
  478. package/legacy/security/plugins/authenticateUsingHttpHeader.js.map +0 -1
  479. package/legacy/security/plugins/secureHeaders.d.ts +0 -1
  480. package/legacy/security/plugins/secureHeaders.js +0 -30
  481. package/legacy/security/plugins/secureHeaders.js.map +0 -1
  482. package/legacy/tenancy/LegacyContext.d.ts +0 -15
  483. package/legacy/tenancy/LegacyContext.js +0 -57
  484. package/legacy/tenancy/LegacyContext.js.map +0 -1
  485. package/legacy/tenancy/createTenancyContext.d.ts +0 -3
  486. package/legacy/tenancy/createTenancyContext.js +0 -31
  487. package/legacy/tenancy/createTenancyContext.js.map +0 -1
  488. package/legacy/users/LegacyContext.d.ts +0 -13
  489. package/legacy/users/LegacyContext.js +0 -55
  490. package/legacy/users/LegacyContext.js.map +0 -1
  491. package/legacy/users/createAdminUsersContext.d.ts +0 -3
  492. package/legacy/users/createAdminUsersContext.js +0 -12
  493. package/legacy/users/createAdminUsersContext.js.map +0 -1
  494. package/legacy/wcp/LegacyWcpContext.d.ts +0 -33
  495. package/legacy/wcp/LegacyWcpContext.js +0 -84
  496. package/legacy/wcp/LegacyWcpContext.js.map +0 -1
  497. package/legacy/wcp/context.d.ts +0 -5
  498. package/legacy/wcp/context.js +0 -46
  499. package/legacy/wcp/context.js.map +0 -1
@@ -2,64 +2,48 @@ import { createImplementation } from "@webiny/feature/api";
2
2
  import { AiSdkFactory } from "./abstractions.js";
3
3
  const ANTHROPIC_MODELS = [
4
4
  {
5
- id: "claude-3-haiku-20240307",
6
- name: "Claude 3 Haiku"
5
+ id: "claude-fable-5-1",
6
+ name: "Claude Fable 5.1"
7
7
  },
8
8
  {
9
- id: "claude-haiku-4-5-20251001",
10
- name: "Claude Haiku 4.5"
9
+ id: "claude-opus-5",
10
+ name: "Claude Opus 5"
11
+ },
12
+ {
13
+ id: "claude-sonnet-5",
14
+ name: "Claude Sonnet 5"
11
15
  },
12
16
  {
13
17
  id: "claude-haiku-4-5",
14
18
  name: "Claude Haiku 4.5"
15
19
  },
16
20
  {
17
- id: "claude-opus-4-0",
18
- name: "Claude Opus 4"
21
+ id: "claude-fable-5",
22
+ name: "Claude Fable 5"
19
23
  },
20
24
  {
21
- id: "claude-opus-4-20250514",
22
- name: "Claude Opus 4"
25
+ id: "claude-opus-4-8",
26
+ name: "Claude Opus 4.8"
23
27
  },
24
28
  {
25
- id: "claude-opus-4-1-20250805",
26
- name: "Claude Opus 4.1"
29
+ id: "claude-opus-4-7",
30
+ name: "Claude Opus 4.7"
27
31
  },
28
32
  {
29
- id: "claude-opus-4-1",
30
- name: "Claude Opus 4.1"
33
+ id: "claude-opus-4-6",
34
+ name: "Claude Opus 4.6"
31
35
  },
32
36
  {
33
37
  id: "claude-opus-4-5",
34
38
  name: "Claude Opus 4.5"
35
39
  },
36
- {
37
- id: "claude-opus-4-5-20251101",
38
- name: "Claude Opus 4.5"
39
- },
40
- {
41
- id: "claude-sonnet-4-0",
42
- name: "Claude Sonnet 4"
43
- },
44
- {
45
- id: "claude-sonnet-4-20250514",
46
- name: "Claude Sonnet 4"
47
- },
48
- {
49
- id: "claude-sonnet-4-5-20250929",
50
- name: "Claude Sonnet 4.5"
51
- },
52
- {
53
- id: "claude-sonnet-4-5",
54
- name: "Claude Sonnet 4.5"
55
- },
56
40
  {
57
41
  id: "claude-sonnet-4-6",
58
42
  name: "Claude Sonnet 4.6"
59
43
  },
60
44
  {
61
- id: "claude-opus-4-6",
62
- name: "Claude Opus 4.6"
45
+ id: "claude-sonnet-4-5",
46
+ name: "Claude Sonnet 4.5"
63
47
  }
64
48
  ];
65
49
  class AnthropicSdkFactoryImpl {
@@ -1 +1 @@
1
- {"version":3,"file":"features/ai/AnthropicSdkFactory.js","sources":["../../../src/features/ai/AnthropicSdkFactory.ts"],"sourcesContent":["import { createImplementation } from \"@webiny/feature/api\";\nimport { AiSdkFactory as AiSdkFactoryAbstraction } from \"./abstractions.js\";\nimport type { IAiSdk, IAiSdkModel } from \"./abstractions.js\";\n\nconst ANTHROPIC_MODELS: IAiSdkModel[] = [\n { id: \"claude-3-haiku-20240307\", name: \"Claude 3 Haiku\" },\n { id: \"claude-haiku-4-5-20251001\", name: \"Claude Haiku 4.5\" },\n { id: \"claude-haiku-4-5\", name: \"Claude Haiku 4.5\" },\n { id: \"claude-opus-4-0\", name: \"Claude Opus 4\" },\n { id: \"claude-opus-4-20250514\", name: \"Claude Opus 4\" },\n { id: \"claude-opus-4-1-20250805\", name: \"Claude Opus 4.1\" },\n { id: \"claude-opus-4-1\", name: \"Claude Opus 4.1\" },\n { id: \"claude-opus-4-5\", name: \"Claude Opus 4.5\" },\n { id: \"claude-opus-4-5-20251101\", name: \"Claude Opus 4.5\" },\n { id: \"claude-sonnet-4-0\", name: \"Claude Sonnet 4\" },\n { id: \"claude-sonnet-4-20250514\", name: \"Claude Sonnet 4\" },\n { id: \"claude-sonnet-4-5-20250929\", name: \"Claude Sonnet 4.5\" },\n { id: \"claude-sonnet-4-5\", name: \"Claude Sonnet 4.5\" },\n { id: \"claude-sonnet-4-6\", name: \"Claude Sonnet 4.6\" },\n { id: \"claude-opus-4-6\", name: \"Claude Opus 4.6\" }\n];\n\nclass AnthropicSdkFactoryImpl implements AiSdkFactoryAbstraction.Interface {\n readonly id = \"anthropic\";\n readonly name = \"Anthropic\";\n readonly models = ANTHROPIC_MODELS;\n\n async execute(apiKey?: string): Promise<IAiSdk> {\n const { createAnthropic } = await import(\"@ai-sdk/anthropic\");\n const provider = createAnthropic({\n apiKey: apiKey ?? process.env.WEBINY_API_ANTHROPIC_API_KEY\n });\n return {\n languageModel: modelId => provider.chat(modelId)\n };\n }\n}\n\nexport const AnthropicSdkFactory = createImplementation({\n abstraction: AiSdkFactoryAbstraction,\n implementation: AnthropicSdkFactoryImpl,\n dependencies: []\n});\n"],"names":["ANTHROPIC_MODELS","AnthropicSdkFactoryImpl","apiKey","createAnthropic","provider","process","modelId","AnthropicSdkFactory","createImplementation","AiSdkFactoryAbstraction"],"mappings":";;AAIA,MAAMA,mBAAkC;IACpC;QAAE,IAAI;QAA2B,MAAM;IAAiB;IACxD;QAAE,IAAI;QAA6B,MAAM;IAAmB;IAC5D;QAAE,IAAI;QAAoB,MAAM;IAAmB;IACnD;QAAE,IAAI;QAAmB,MAAM;IAAgB;IAC/C;QAAE,IAAI;QAA0B,MAAM;IAAgB;IACtD;QAAE,IAAI;QAA4B,MAAM;IAAkB;IAC1D;QAAE,IAAI;QAAmB,MAAM;IAAkB;IACjD;QAAE,IAAI;QAAmB,MAAM;IAAkB;IACjD;QAAE,IAAI;QAA4B,MAAM;IAAkB;IAC1D;QAAE,IAAI;QAAqB,MAAM;IAAkB;IACnD;QAAE,IAAI;QAA4B,MAAM;IAAkB;IAC1D;QAAE,IAAI;QAA8B,MAAM;IAAoB;IAC9D;QAAE,IAAI;QAAqB,MAAM;IAAoB;IACrD;QAAE,IAAI;QAAqB,MAAM;IAAoB;IACrD;QAAE,IAAI;QAAmB,MAAM;IAAkB;CACpD;AAED,MAAMC;IAKF,MAAM,QAAQC,MAAe,EAAmB;QAC5C,MAAM,EAAEC,eAAe,EAAE,GAAG,MAAM,MAAM,CAAC;QACzC,MAAMC,WAAWD,gBAAgB;YAC7B,QAAQD,UAAUG,QAAQ,GAAG,CAAC,4BAA4B;QAC9D;QACA,OAAO;YACH,eAAeC,CAAAA,UAAWF,SAAS,IAAI,CAACE;QAC5C;IACJ;;aAZS,EAAE,GAAG;aACL,IAAI,GAAG;aACP,MAAM,GAAGN;;AAWtB;AAEO,MAAMO,sBAAsBC,qBAAqB;IACpD,aAAaC;IACb,gBAAgBR;IAChB,cAAc,EAAE;AACpB"}
1
+ {"version":3,"file":"features/ai/AnthropicSdkFactory.js","sources":["../../../src/features/ai/AnthropicSdkFactory.ts"],"sourcesContent":["import { createImplementation } from \"@webiny/feature/api\";\nimport { AiSdkFactory as AiSdkFactoryAbstraction } from \"./abstractions.js\";\nimport type { IAiSdk, IAiSdkModel } from \"./abstractions.js\";\n\nconst ANTHROPIC_MODELS: IAiSdkModel[] = [\n { id: \"claude-fable-5-1\", name: \"Claude Fable 5.1\" },\n { id: \"claude-opus-5\", name: \"Claude Opus 5\" },\n { id: \"claude-sonnet-5\", name: \"Claude Sonnet 5\" },\n { id: \"claude-haiku-4-5\", name: \"Claude Haiku 4.5\" },\n { id: \"claude-fable-5\", name: \"Claude Fable 5\" },\n { id: \"claude-opus-4-8\", name: \"Claude Opus 4.8\" },\n { id: \"claude-opus-4-7\", name: \"Claude Opus 4.7\" },\n { id: \"claude-opus-4-6\", name: \"Claude Opus 4.6\" },\n { id: \"claude-opus-4-5\", name: \"Claude Opus 4.5\" },\n { id: \"claude-sonnet-4-6\", name: \"Claude Sonnet 4.6\" },\n { id: \"claude-sonnet-4-5\", name: \"Claude Sonnet 4.5\" }\n];\n\nclass AnthropicSdkFactoryImpl implements AiSdkFactoryAbstraction.Interface {\n readonly id = \"anthropic\";\n readonly name = \"Anthropic\";\n readonly models = ANTHROPIC_MODELS;\n\n async execute(apiKey?: string): Promise<IAiSdk> {\n const { createAnthropic } = await import(\"@ai-sdk/anthropic\");\n const provider = createAnthropic({\n apiKey: apiKey ?? process.env.WEBINY_API_ANTHROPIC_API_KEY\n });\n return {\n languageModel: modelId => provider.chat(modelId)\n };\n }\n}\n\nexport const AnthropicSdkFactory = createImplementation({\n abstraction: AiSdkFactoryAbstraction,\n implementation: AnthropicSdkFactoryImpl,\n dependencies: []\n});\n"],"names":["ANTHROPIC_MODELS","AnthropicSdkFactoryImpl","apiKey","createAnthropic","provider","process","modelId","AnthropicSdkFactory","createImplementation","AiSdkFactoryAbstraction"],"mappings":";;AAIA,MAAMA,mBAAkC;IACpC;QAAE,IAAI;QAAoB,MAAM;IAAmB;IACnD;QAAE,IAAI;QAAiB,MAAM;IAAgB;IAC7C;QAAE,IAAI;QAAmB,MAAM;IAAkB;IACjD;QAAE,IAAI;QAAoB,MAAM;IAAmB;IACnD;QAAE,IAAI;QAAkB,MAAM;IAAiB;IAC/C;QAAE,IAAI;QAAmB,MAAM;IAAkB;IACjD;QAAE,IAAI;QAAmB,MAAM;IAAkB;IACjD;QAAE,IAAI;QAAmB,MAAM;IAAkB;IACjD;QAAE,IAAI;QAAmB,MAAM;IAAkB;IACjD;QAAE,IAAI;QAAqB,MAAM;IAAoB;IACrD;QAAE,IAAI;QAAqB,MAAM;IAAoB;CACxD;AAED,MAAMC;IAKF,MAAM,QAAQC,MAAe,EAAmB;QAC5C,MAAM,EAAEC,eAAe,EAAE,GAAG,MAAM,MAAM,CAAC;QACzC,MAAMC,WAAWD,gBAAgB;YAC7B,QAAQD,UAAUG,QAAQ,GAAG,CAAC,4BAA4B;QAC9D;QACA,OAAO;YACH,eAAeC,CAAAA,UAAWF,SAAS,IAAI,CAACE;QAC5C;IACJ;;aAZS,EAAE,GAAG;aACL,IAAI,GAAG;aACP,MAAM,GAAGN;;AAWtB;AAEO,MAAMO,sBAAsBC,qBAAqB;IACpD,aAAaC;IACb,gBAAgBR;IAChB,cAAc,EAAE;AACpB"}
@@ -0,0 +1,183 @@
1
+ # AI Models
2
+
3
+ This directory contains the AI SDK factory implementations that serve the models available in Webiny's AI Powerups.
4
+
5
+ ## Where the model list comes from
6
+
7
+ `AiModelRegistry` takes the published catalog at `https://api.webiny.com/ai/models` (`RemoteAiModelCatalog`, overridable through `WCP_API_URL`) and intersects it with the registered SDK factories:
8
+
9
+ - A catalog provider with no SDK factory is not offered. The SDK factory is the last gate.
10
+ - For a provider that has a factory, the catalog's models and names replace the factory's own list.
11
+ - A factory the catalog doesn't know (a custom SDK) keeps its own `models`.
12
+ - If the catalog can't be loaded (timeout, error status, invalid body), every factory falls back to its own `models`.
13
+
14
+ The catalog is cached for an hour per process. A failed load is retried after a minute. The first AI call on a cold Lambda waits for the fetch. If the catalog doesn't answer within 3 seconds, the fetch is aborted and the factories' own lists are used.
15
+
16
+ So adding or deprecating a model for an existing provider is a catalog change and needs no release. The `*_MODELS` arrays below are the offline fallback; keep them roughly in sync.
17
+
18
+ The catalog response looks like this. Dates are ISO strings. `supports` is kept (`tools`, `vision`, `temperature`), and fields the schema doesn't know (`api`, other `supports` keys, ...) are dropped:
19
+
20
+ ```json
21
+ {
22
+ "providers": [
23
+ {
24
+ "id": "openai",
25
+ "name": "OpenAI",
26
+ "models": [
27
+ {
28
+ "id": "o3",
29
+ "name": "o3",
30
+ "deprecated": "2026-06-11",
31
+ "endOfLife": "2026-12-11",
32
+ "supports": { "tools": true, "vision": true, "temperature": false }
33
+ }
34
+ ]
35
+ }
36
+ ]
37
+ }
38
+ ```
39
+
40
+ A response that doesn't match the schema counts as a failed load, so one bad entry drops the whole catalog and every factory falls back to its own list.
41
+
42
+ `Ai.generateText()` and `Ai.streamText()` send `temperature` only to a model whose `supports.temperature` is `true`. A model that says `false`, or says nothing (no `supports`, or a factory's fallback list), gets the call without it. Several current models reject `temperature` with a 400, so callers can always pass it and leave the decision to `Ai`.
43
+
44
+ ## Selection criteria
45
+
46
+ Every model in the catalog or in a factory **must** support:
47
+
48
+ - **Tool/function calling** — AI Powerups relies on tools for structured output (content generation, entry comparison, image enrichment, etc.). Models without tool support will break these features at runtime.
49
+ - **Chat/text generation** — only conversational models are listed; embedding, image-generation, TTS, and other specialized models are excluded.
50
+ - **General availability** — preview-only models are excluded unless they fill a gap no GA model covers.
51
+
52
+ Models are ordered newest-first within each factory. Deprecated models that still work via the provider API are kept at the bottom of the list so existing user presets don't break.
53
+
54
+ ## Model lifecycle
55
+
56
+ Each model entry in `IAiSdkModel` supports two optional `Date` fields:
57
+
58
+ - **`deprecated`** — the date the provider officially deprecated the model. The model still works but is no longer recommended.
59
+ - **`endOfLife`** — the date the provider will shut down the model. After this date, API requests to the model will fail.
60
+
61
+ Set these fields when the provider announces deprecation or end-of-life dates. The UI can use them to warn users about upcoming shutdowns or steer them toward replacements.
62
+
63
+ When a model reaches its `endOfLife` date, remove it from the catalog, which takes effect within an hour. Remove it from the factory in the next release too, or deployments that can't reach the catalog will keep offering a model that no longer works.
64
+
65
+ ## Providers
66
+
67
+ ### Anthropic (`AnthropicSdkFactory.ts`)
68
+
69
+ All Anthropic models listed are **Active**. Anthropic commits to a "not sooner than" retirement date but does not deprecate models until closer to retirement.
70
+
71
+ | Model ID | Name | Status | Retirement (not sooner than) |
72
+ | ------------------- | ----------------- | --------------- | ---------------------------- |
73
+ | `claude-fable-5-1` | Claude Fable 5.1 | Active | September 1, 2027 |
74
+ | `claude-opus-5` | Claude Opus 5 | Active | July 24, 2027 |
75
+ | `claude-sonnet-5` | Claude Sonnet 5 | Active | June 30, 2027 |
76
+ | `claude-haiku-4-5` | Claude Haiku 4.5 | Active | October 15, 2026 |
77
+ | `claude-fable-5` | Claude Fable 5 | Active (legacy) | June 9, 2027 |
78
+ | `claude-opus-4-8` | Claude Opus 4.8 | Active (legacy) | May 28, 2027 |
79
+ | `claude-opus-4-7` | Claude Opus 4.7 | Active (legacy) | April 16, 2027 |
80
+ | `claude-opus-4-6` | Claude Opus 4.6 | Active (legacy) | February 5, 2027 |
81
+ | `claude-opus-4-5` | Claude Opus 4.5 | Active (legacy) | November 24, 2026 |
82
+ | `claude-sonnet-4-6` | Claude Sonnet 4.6 | Active (legacy) | February 17, 2027 |
83
+ | `claude-sonnet-4-5` | Claude Sonnet 4.5 | Active (legacy) | September 29, 2026 |
84
+
85
+ All Claude models support tool use. Env var fallback: `WEBINY_API_ANTHROPIC_API_KEY`.
86
+
87
+ Source: https://platform.claude.com/docs/en/about-claude/model-deprecations
88
+
89
+ ### OpenAI (`OpenAiSdkFactory.ts`)
90
+
91
+ | Model ID | Name | Status | Deprecated | End of life |
92
+ | --------------- | ------------- | ---------- | -------------- | ----------------- |
93
+ | `gpt-6-astra` | GPT-6 Astra | Active | — | — |
94
+ | `gpt-5.6-sol` | GPT-5.6 Sol | Active | — | — |
95
+ | `gpt-5.6-terra` | GPT-5.6 Terra | Active | — | — |
96
+ | `gpt-5.6-luna` | GPT-5.6 Luna | Active | — | — |
97
+ | `gpt-5.5` | GPT-5.5 | Active | — | — |
98
+ | `gpt-5.5-pro` | GPT-5.5 Pro | Active | — | — |
99
+ | `gpt-5.4` | GPT-5.4 | Active | — | — |
100
+ | `gpt-5.4-pro` | GPT-5.4 Pro | Active | — | — |
101
+ | `gpt-5.4-mini` | GPT-5.4 Mini | Active | — | — |
102
+ | `gpt-5.4-nano` | GPT-5.4 Nano | Active | — | — |
103
+ | `gpt-5.2` | GPT-5.2 | Active | — | — |
104
+ | `gpt-5.2-pro` | GPT-5.2 Pro | Active | — | — |
105
+ | `gpt-5` | GPT-5 | Active | — | — |
106
+ | `gpt-5-pro` | GPT-5 Pro | Active | — | — |
107
+ | `gpt-5-mini` | GPT-5 Mini | Active | — | — |
108
+ | `gpt-5-nano` | GPT-5 Nano | Active | — | — |
109
+ | `gpt-4.1` | GPT-4.1 | Active | — | — |
110
+ | `gpt-4.1-mini` | GPT-4.1 Mini | Active | — | — |
111
+ | `gpt-4o` | GPT-4o | Active | — | — |
112
+ | `gpt-4o-mini` | GPT-4o Mini | Active | — | — |
113
+ | `o3-pro` | o3 Pro | Deprecated | June 11, 2026 | December 11, 2026 |
114
+ | `o3` | o3 | Deprecated | June 11, 2026 | December 11, 2026 |
115
+ | `gpt-4.1-nano` | GPT-4.1 Nano | Deprecated | April 22, 2026 | October 23, 2026 |
116
+ | `o4-mini` | o4 Mini | Deprecated | April 22, 2026 | October 23, 2026 |
117
+
118
+ All listed models support function calling. Env var fallback: `WEBINY_API_OPENAI_API_KEY`.
119
+
120
+ Source: https://developers.openai.com/api/docs/deprecations
121
+
122
+ ### Google (`GoogleSdkFactory.ts`)
123
+
124
+ | Model ID | Name | Status | End of life |
125
+ | ----------------------- | --------------------- | ------ | ----------- |
126
+ | `gemini-3.8-flash` | Gemini 3.8 Flash | Active | — |
127
+ | `gemini-3.7-flash` | Gemini 3.7 Flash | Active | — |
128
+ | `gemini-3.6-flash` | Gemini 3.6 Flash | Active | — |
129
+ | `gemini-3.5-flash` | Gemini 3.5 Flash | Active | — |
130
+ | `gemini-3.5-flash-lite` | Gemini 3.5 Flash Lite | Active | — |
131
+ | `gemini-3.1-flash-lite` | Gemini 3.1 Flash Lite | Active | May 7, 2027 |
132
+ | `gemini-2.5-pro` | Gemini 2.5 Pro | Active | — |
133
+ | `gemini-2.5-flash` | Gemini 2.5 Flash | Active | — |
134
+ | `gemini-2.5-flash-lite` | Gemini 2.5 Flash Lite | Active | — |
135
+
136
+ All listed models support function calling. `gemini-3.1-flash-lite` does not support streaming tool call arguments, but standard (non-streaming) function calling works.
137
+
138
+ Env var fallback: `WEBINY_API_GOOGLE_API_KEY`.
139
+
140
+ Source: https://ai.google.dev/gemini-api/docs/deprecations
141
+
142
+ ### OpenRouter (`OpenRouterSdkFactory.ts`)
143
+
144
+ OpenRouter is a gateway: one key reaches models from many vendors. Its model ids carry the vendor, so a stored model looks like `openrouter/anthropic/claude-sonnet-5.5`. `Ai` splits on the first slash, so the provider is `openrouter` and the rest goes to OpenRouter unchanged.
145
+
146
+ The factory list is a short pick of each vendor's current models that support tool calling, not OpenRouter's whole catalog (a few hundred models, many without tools). Pick from `https://openrouter.ai/api/v1/models`, keeping entries whose `supported_parameters` includes `tools` and skipping the `:free` and `:batch` variants. OpenRouter publishes retirement dates as `expiration_date`; leave out models that have one coming up.
147
+
148
+ `openrouter/auto` is OpenRouter's Auto Router: it picks the model per request, so the vendor that answers can change between calls. It's stored as `openrouter/openrouter/auto`. The catalog marks it as not accepting `temperature`, because some of the models it can pick reject it.
149
+
150
+ Uses `@openrouter/ai-sdk-provider` rather than `@ai-sdk/openai` with a different base URL, so non-OpenAI models routed through it don't get OpenAI-only request options.
151
+
152
+ Env var fallback: `WEBINY_API_OPENROUTER_API_KEY`.
153
+
154
+ Source: https://openrouter.ai/models
155
+
156
+ ## Adding a new model
157
+
158
+ 1. Verify the model supports tool/function calling.
159
+ 2. Add it to the catalog at `https://api.webiny.com/ai/models`. That is what users see.
160
+ 3. Add an entry to the `*_MODELS` array in the corresponding factory file. The `id` must match the provider's API model ID exactly.
161
+ 4. If the model has known deprecation or end-of-life dates, set `deprecated` and/or `endOfLife`: ISO strings (`"YYYY-MM-DD"`) in the catalog, `new Date("YYYY-MM-DD")` in the factory.
162
+ 5. Update the table in this file.
163
+
164
+ ## Adding a new provider
165
+
166
+ A new provider needs a release, because the catalog can only offer providers that have an SDK factory.
167
+
168
+ 1. Create a new `<Provider>SdkFactory.ts` implementing `AiSdkFactory`. Its `id` is the key the catalog matches on.
169
+ 2. Add the `@ai-sdk/<provider>` dependency via `yarn add` in `packages/api-core`.
170
+ 3. Register the factory in `feature.ts`.
171
+ 4. Add the provider to the catalog under the same `id`. Until you do, the factory's own `models` are used.
172
+ 5. Update this file.
173
+
174
+ ## Updating models
175
+
176
+ Check the provider docs periodically and update the catalog first, then the factory lists:
177
+
178
+ - **New models**: add to the top of the active section.
179
+ - **Deprecated models**: set `deprecated` and `endOfLife` dates, move to the bottom of the array.
180
+ - **End-of-life reached**: remove from the catalog and the factory. Keeping a dead model causes runtime failures.
181
+ - **Never remove a model before its end-of-life date** — users may have presets referencing it, and removing it breaks `ProvidersHandler` validation on save. This matters more for the catalog than for the factory: `Ai` rejects any model the registry doesn't list, so dropping a model from the catalog breaks calls that use it in every deployment within the hour.
182
+
183
+ Last updated: October 2026.
@@ -0,0 +1,10 @@
1
+ import { AiSdkFactory as AiSdkFactoryAbstraction } from "./abstractions.js";
2
+ import type { IAiSdk, IAiSdkModel } from "./abstractions.js";
3
+ declare class GoogleSdkFactoryImpl implements AiSdkFactoryAbstraction.Interface {
4
+ readonly id = "google";
5
+ readonly name = "Google";
6
+ readonly models: IAiSdkModel[];
7
+ execute(apiKey?: string): Promise<IAiSdk>;
8
+ }
9
+ export declare const GoogleSdkFactory: import("@webiny/di").Implementation<typeof GoogleSdkFactoryImpl>;
10
+ export {};
@@ -0,0 +1,65 @@
1
+ import { createImplementation } from "@webiny/feature/api";
2
+ import { AiSdkFactory } from "./abstractions.js";
3
+ const GOOGLE_MODELS = [
4
+ {
5
+ id: "gemini-3.8-flash",
6
+ name: "Gemini 3.8 Flash"
7
+ },
8
+ {
9
+ id: "gemini-3.7-flash",
10
+ name: "Gemini 3.7 Flash"
11
+ },
12
+ {
13
+ id: "gemini-3.6-flash",
14
+ name: "Gemini 3.6 Flash"
15
+ },
16
+ {
17
+ id: "gemini-3.5-flash",
18
+ name: "Gemini 3.5 Flash"
19
+ },
20
+ {
21
+ id: "gemini-3.5-flash-lite",
22
+ name: "Gemini 3.5 Flash Lite"
23
+ },
24
+ {
25
+ id: "gemini-3.1-flash-lite",
26
+ name: "Gemini 3.1 Flash Lite",
27
+ endOfLife: new Date("2027-05-07")
28
+ },
29
+ {
30
+ id: "gemini-2.5-pro",
31
+ name: "Gemini 2.5 Pro"
32
+ },
33
+ {
34
+ id: "gemini-2.5-flash",
35
+ name: "Gemini 2.5 Flash"
36
+ },
37
+ {
38
+ id: "gemini-2.5-flash-lite",
39
+ name: "Gemini 2.5 Flash Lite"
40
+ }
41
+ ];
42
+ class GoogleSdkFactoryImpl {
43
+ async execute(apiKey) {
44
+ const { createGoogleGenerativeAI } = await import("@ai-sdk/google");
45
+ const provider = createGoogleGenerativeAI({
46
+ apiKey: apiKey ?? process.env.WEBINY_API_GOOGLE_API_KEY
47
+ });
48
+ return {
49
+ languageModel: (modelId)=>provider.chat(modelId)
50
+ };
51
+ }
52
+ constructor(){
53
+ this.id = "google";
54
+ this.name = "Google";
55
+ this.models = GOOGLE_MODELS;
56
+ }
57
+ }
58
+ const GoogleSdkFactory = createImplementation({
59
+ abstraction: AiSdkFactory,
60
+ implementation: GoogleSdkFactoryImpl,
61
+ dependencies: []
62
+ });
63
+ export { GoogleSdkFactory };
64
+
65
+ //# sourceMappingURL=GoogleSdkFactory.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"features/ai/GoogleSdkFactory.js","sources":["../../../src/features/ai/GoogleSdkFactory.ts"],"sourcesContent":["import { createImplementation } from \"@webiny/feature/api\";\nimport { AiSdkFactory as AiSdkFactoryAbstraction } from \"./abstractions.js\";\nimport type { IAiSdk, IAiSdkModel } from \"./abstractions.js\";\n\nconst GOOGLE_MODELS: IAiSdkModel[] = [\n { id: \"gemini-3.8-flash\", name: \"Gemini 3.8 Flash\" },\n { id: \"gemini-3.7-flash\", name: \"Gemini 3.7 Flash\" },\n { id: \"gemini-3.6-flash\", name: \"Gemini 3.6 Flash\" },\n { id: \"gemini-3.5-flash\", name: \"Gemini 3.5 Flash\" },\n { id: \"gemini-3.5-flash-lite\", name: \"Gemini 3.5 Flash Lite\" },\n {\n id: \"gemini-3.1-flash-lite\",\n name: \"Gemini 3.1 Flash Lite\",\n endOfLife: new Date(\"2027-05-07\")\n },\n { id: \"gemini-2.5-pro\", name: \"Gemini 2.5 Pro\" },\n { id: \"gemini-2.5-flash\", name: \"Gemini 2.5 Flash\" },\n { id: \"gemini-2.5-flash-lite\", name: \"Gemini 2.5 Flash Lite\" }\n];\n\nclass GoogleSdkFactoryImpl implements AiSdkFactoryAbstraction.Interface {\n readonly id = \"google\";\n readonly name = \"Google\";\n readonly models = GOOGLE_MODELS;\n\n async execute(apiKey?: string): Promise<IAiSdk> {\n const { createGoogleGenerativeAI } = await import(\"@ai-sdk/google\");\n const provider = createGoogleGenerativeAI({\n apiKey: apiKey ?? process.env.WEBINY_API_GOOGLE_API_KEY\n });\n return {\n languageModel: modelId => provider.chat(modelId)\n };\n }\n}\n\nexport const GoogleSdkFactory = createImplementation({\n abstraction: AiSdkFactoryAbstraction,\n implementation: GoogleSdkFactoryImpl,\n dependencies: []\n});\n"],"names":["GOOGLE_MODELS","Date","GoogleSdkFactoryImpl","apiKey","createGoogleGenerativeAI","provider","process","modelId","GoogleSdkFactory","createImplementation","AiSdkFactoryAbstraction"],"mappings":";;AAIA,MAAMA,gBAA+B;IACjC;QAAE,IAAI;QAAoB,MAAM;IAAmB;IACnD;QAAE,IAAI;QAAoB,MAAM;IAAmB;IACnD;QAAE,IAAI;QAAoB,MAAM;IAAmB;IACnD;QAAE,IAAI;QAAoB,MAAM;IAAmB;IACnD;QAAE,IAAI;QAAyB,MAAM;IAAwB;IAC7D;QACI,IAAI;QACJ,MAAM;QACN,WAAW,IAAIC,KAAK;IACxB;IACA;QAAE,IAAI;QAAkB,MAAM;IAAiB;IAC/C;QAAE,IAAI;QAAoB,MAAM;IAAmB;IACnD;QAAE,IAAI;QAAyB,MAAM;IAAwB;CAChE;AAED,MAAMC;IAKF,MAAM,QAAQC,MAAe,EAAmB;QAC5C,MAAM,EAAEC,wBAAwB,EAAE,GAAG,MAAM,MAAM,CAAC;QAClD,MAAMC,WAAWD,yBAAyB;YACtC,QAAQD,UAAUG,QAAQ,GAAG,CAAC,yBAAyB;QAC3D;QACA,OAAO;YACH,eAAeC,CAAAA,UAAWF,SAAS,IAAI,CAACE;QAC5C;IACJ;;aAZS,EAAE,GAAG;aACL,IAAI,GAAG;aACP,MAAM,GAAGP;;AAWtB;AAEO,MAAMQ,mBAAmBC,qBAAqB;IACjD,aAAaC;IACb,gBAAgBR;IAChB,cAAc,EAAE;AACpB"}
@@ -2,216 +2,108 @@ import { createImplementation } from "@webiny/feature/api";
2
2
  import { AiSdkFactory } from "./abstractions.js";
3
3
  const OPENAI_MODELS = [
4
4
  {
5
- id: "gpt-5",
6
- name: "GPT-5"
5
+ id: "gpt-6-astra",
6
+ name: "GPT-6 Astra"
7
7
  },
8
8
  {
9
- id: "gpt-5-2025-08-07",
10
- name: "GPT-5"
9
+ id: "gpt-5.6-sol",
10
+ name: "GPT-5.6 Sol"
11
11
  },
12
12
  {
13
- id: "gpt-5-chat-latest",
14
- name: "GPT-5"
13
+ id: "gpt-5.6-terra",
14
+ name: "GPT-5.6 Terra"
15
15
  },
16
16
  {
17
- id: "gpt-5-mini",
18
- name: "GPT-5 Mini"
17
+ id: "gpt-5.6-luna",
18
+ name: "GPT-5.6 Luna"
19
19
  },
20
20
  {
21
- id: "gpt-5-mini-2025-08-07",
22
- name: "GPT-5 Mini"
21
+ id: "gpt-5.5",
22
+ name: "GPT-5.5"
23
23
  },
24
24
  {
25
- id: "gpt-5-nano",
26
- name: "GPT-5 Nano"
25
+ id: "gpt-5.5-pro",
26
+ name: "GPT-5.5 Pro"
27
27
  },
28
28
  {
29
- id: "gpt-5-nano-2025-08-07",
30
- name: "GPT-5 Nano"
29
+ id: "gpt-5.4",
30
+ name: "GPT-5.4"
31
31
  },
32
32
  {
33
- id: "gpt-5.1",
34
- name: "GPT-5.1"
33
+ id: "gpt-5.4-pro",
34
+ name: "GPT-5.4 Pro"
35
35
  },
36
36
  {
37
- id: "gpt-5.1-2025-11-13",
38
- name: "GPT-5.1"
37
+ id: "gpt-5.4-mini",
38
+ name: "GPT-5.4 Mini"
39
39
  },
40
40
  {
41
- id: "gpt-5.1-chat-latest",
42
- name: "GPT-5.1"
41
+ id: "gpt-5.4-nano",
42
+ name: "GPT-5.4 Nano"
43
43
  },
44
44
  {
45
45
  id: "gpt-5.2",
46
46
  name: "GPT-5.2"
47
47
  },
48
- {
49
- id: "gpt-5.2-2025-12-11",
50
- name: "GPT-5.2"
51
- },
52
- {
53
- id: "gpt-5.2-chat-latest",
54
- name: "GPT-5.2"
55
- },
56
48
  {
57
49
  id: "gpt-5.2-pro",
58
50
  name: "GPT-5.2 Pro"
59
51
  },
60
52
  {
61
- id: "gpt-5.2-pro-2025-12-11",
62
- name: "GPT-5.2 Pro"
63
- },
64
- {
65
- id: "gpt-5.3-chat-latest",
66
- name: "GPT-5.3"
67
- },
68
- {
69
- id: "gpt-5.4",
70
- name: "GPT-5.4"
71
- },
72
- {
73
- id: "gpt-5.4-2026-03-05",
74
- name: "GPT-5.4"
75
- },
76
- {
77
- id: "gpt-5.4-mini",
78
- name: "GPT-5.4 Mini"
79
- },
80
- {
81
- id: "gpt-5.4-mini-2026-03-17",
82
- name: "GPT-5.4 Mini"
53
+ id: "gpt-5",
54
+ name: "GPT-5"
83
55
  },
84
56
  {
85
- id: "gpt-5.4-nano",
86
- name: "GPT-5.4 Nano"
57
+ id: "gpt-5-pro",
58
+ name: "GPT-5 Pro"
87
59
  },
88
60
  {
89
- id: "gpt-5.4-nano-2026-03-17",
90
- name: "GPT-5.4 Nano"
91
- },
92
- {
93
- id: "gpt-5.4-pro",
94
- name: "GPT-5.4 Pro"
61
+ id: "gpt-5-mini",
62
+ name: "GPT-5 Mini"
95
63
  },
96
64
  {
97
- id: "gpt-5.4-pro-2026-03-05",
98
- name: "GPT-5.4 Pro"
65
+ id: "gpt-5-nano",
66
+ name: "GPT-5 Nano"
99
67
  },
100
68
  {
101
69
  id: "gpt-4.1",
102
70
  name: "GPT-4.1"
103
71
  },
104
- {
105
- id: "gpt-4.1-2025-04-14",
106
- name: "GPT-4.1"
107
- },
108
72
  {
109
73
  id: "gpt-4.1-mini",
110
74
  name: "GPT-4.1 Mini"
111
75
  },
112
- {
113
- id: "gpt-4.1-mini-2025-04-14",
114
- name: "GPT-4.1 Mini"
115
- },
116
- {
117
- id: "gpt-4.1-nano",
118
- name: "GPT-4.1 Nano"
119
- },
120
- {
121
- id: "gpt-4.1-nano-2025-04-14",
122
- name: "GPT-4.1 Nano"
123
- },
124
76
  {
125
77
  id: "gpt-4o",
126
78
  name: "GPT-4o"
127
79
  },
128
- {
129
- id: "gpt-4o-2024-05-13",
130
- name: "GPT-4o"
131
- },
132
- {
133
- id: "gpt-4o-2024-08-06",
134
- name: "GPT-4o"
135
- },
136
- {
137
- id: "gpt-4o-2024-11-20",
138
- name: "GPT-4o"
139
- },
140
- {
141
- id: "gpt-4o-audio-preview",
142
- name: "GPT-4o Audio Preview"
143
- },
144
- {
145
- id: "gpt-4o-audio-preview-2024-12-17",
146
- name: "GPT-4o Audio Preview"
147
- },
148
- {
149
- id: "gpt-4o-search-preview",
150
- name: "GPT-4o Search Preview"
151
- },
152
- {
153
- id: "gpt-4o-search-preview-2025-03-11",
154
- name: "GPT-4o Search Preview"
155
- },
156
- {
157
- id: "gpt-4o-mini-search-preview",
158
- name: "GPT-4o Mini Search Preview"
159
- },
160
- {
161
- id: "gpt-4o-mini-search-preview-2025-03-11",
162
- name: "GPT-4o Mini Search Preview"
163
- },
164
80
  {
165
81
  id: "gpt-4o-mini",
166
82
  name: "GPT-4o Mini"
167
83
  },
168
84
  {
169
- id: "gpt-4o-mini-2024-07-18",
170
- name: "GPT-4o Mini"
171
- },
172
- {
173
- id: "gpt-3.5-turbo-0125",
174
- name: "GPT-3.5 Turbo"
175
- },
176
- {
177
- id: "gpt-3.5-turbo",
178
- name: "GPT-3.5 Turbo"
179
- },
180
- {
181
- id: "gpt-3.5-turbo-1106",
182
- name: "GPT-3.5 Turbo"
183
- },
184
- {
185
- id: "o1",
186
- name: "o1"
187
- },
188
- {
189
- id: "o1-2024-12-17",
190
- name: "o1"
85
+ id: "o3-pro",
86
+ name: "o3 Pro",
87
+ deprecated: new Date("2026-06-11"),
88
+ endOfLife: new Date("2026-12-11")
191
89
  },
192
90
  {
193
91
  id: "o3",
194
- name: "o3"
92
+ name: "o3",
93
+ deprecated: new Date("2026-06-11"),
94
+ endOfLife: new Date("2026-12-11")
195
95
  },
196
96
  {
197
- id: "o3-2025-04-16",
198
- name: "o3"
199
- },
200
- {
201
- id: "o3-mini",
202
- name: "o3 Mini"
203
- },
204
- {
205
- id: "o3-mini-2025-01-31",
206
- name: "o3 Mini"
97
+ id: "gpt-4.1-nano",
98
+ name: "GPT-4.1 Nano",
99
+ deprecated: new Date("2026-04-22"),
100
+ endOfLife: new Date("2026-10-23")
207
101
  },
208
102
  {
209
103
  id: "o4-mini",
210
- name: "o4 Mini"
211
- },
212
- {
213
- id: "o4-mini-2025-04-16",
214
- name: "o4 Mini"
104
+ name: "o4 Mini",
105
+ deprecated: new Date("2026-04-22"),
106
+ endOfLife: new Date("2026-10-23")
215
107
  }
216
108
  ];
217
109
  class OpenAiSdkFactoryImpl {