@nocobase/plugin-ai 2.1.6 → 2.1.8

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 (583) hide show
  1. package/dist/ai/docs/nocobase/ai-employees/knowledge-base/dev/external-knowledge-base.md +318 -0
  2. package/dist/ai/docs/nocobase/ai-employees/knowledge-base/knowledge-base/documents.md +76 -0
  3. package/dist/ai/docs/nocobase/ai-employees/knowledge-base/knowledge-base/hit-tests.md +66 -0
  4. package/dist/ai/docs/nocobase/ai-employees/knowledge-base/knowledge-base/index.md +73 -0
  5. package/dist/ai/docs/nocobase/ai-employees/knowledge-base/knowledge-base/segments.md +93 -0
  6. package/dist/ai/docs/nocobase/ai-employees/knowledge-base/knowledge-base/settings.md +77 -0
  7. package/dist/ai/docs/nocobase/ai-employees/knowledge-base/rag.md +1 -1
  8. package/dist/ai/docs/nocobase/ai-employees/workflow/nodes/knowledge/create-document.md +79 -0
  9. package/dist/ai/docs/nocobase/ai-employees/workflow/nodes/knowledge/delete-document.md +71 -0
  10. package/dist/ai/docs/nocobase/ai-employees/workflow/nodes/knowledge/index.md +84 -0
  11. package/dist/ai/docs/nocobase/ai-employees/workflow/nodes/knowledge/retrieve-document.md +87 -0
  12. package/dist/ai/docs/nocobase/ai-employees/workflow/nodes/knowledge/update-document.md +70 -0
  13. package/dist/ai/docs/nocobase/development/index.md +3 -0
  14. package/dist/ai/docs/nocobase/get-started/deployment/how-to-deploy-nocobase-faster.mdx +2 -2
  15. package/dist/ai/docs/nocobase/ops-management/backup-manager/index.mdx +9 -7
  16. package/dist/ai/docs/nocobase/ops-management/migration-manager/built-in-tables.md +423 -0
  17. package/dist/ai/docs/nocobase/ops-management/migration-manager/index.md +12 -9
  18. package/dist/ai/docs/nocobase/ops-management/release-management/index.md +111 -24
  19. package/dist/client/ai-employees/ProfileCard.d.ts +1 -0
  20. package/dist/client/ai-employees/chatbox/hooks/useChatMessageActions.d.ts +2 -3
  21. package/dist/client/ai-employees/form-filler/tools/index.d.ts +8 -0
  22. package/dist/client/index.js +3 -3
  23. package/dist/externalVersion.js +21 -21
  24. package/dist/node_modules/@langchain/xai/dist/chat_models/completions.cjs +25 -34
  25. package/dist/node_modules/@langchain/xai/dist/chat_models/completions.d.cts +10 -22
  26. package/dist/node_modules/@langchain/xai/dist/chat_models/completions.d.ts +10 -22
  27. package/dist/node_modules/@langchain/xai/dist/chat_models/completions.js +17 -25
  28. package/dist/node_modules/@langchain/xai/dist/chat_models/index.cjs +2 -2
  29. package/dist/node_modules/@langchain/xai/dist/chat_models/index.d.cts +3 -0
  30. package/dist/node_modules/@langchain/xai/dist/chat_models/index.js +3 -2
  31. package/dist/node_modules/@langchain/xai/dist/chat_models/responses-types.d.cts +5 -12
  32. package/dist/node_modules/@langchain/xai/dist/chat_models/responses-types.d.ts +5 -12
  33. package/dist/node_modules/@langchain/xai/dist/chat_models/responses.cjs +18 -19
  34. package/dist/node_modules/@langchain/xai/dist/chat_models/responses.d.cts +1 -1
  35. package/dist/node_modules/@langchain/xai/dist/chat_models/responses.d.ts +1 -1
  36. package/dist/node_modules/@langchain/xai/dist/chat_models/responses.js +13 -13
  37. package/dist/node_modules/@langchain/xai/dist/converters/responses.cjs +16 -22
  38. package/dist/node_modules/@langchain/xai/dist/converters/responses.js +7 -12
  39. package/dist/node_modules/@langchain/xai/dist/index.cjs +2 -2
  40. package/dist/node_modules/@langchain/xai/dist/index.d.ts +0 -1
  41. package/dist/node_modules/@langchain/xai/dist/index.js +1 -2
  42. package/dist/node_modules/@langchain/xai/dist/live_search.cjs +4 -5
  43. package/dist/node_modules/@langchain/xai/dist/live_search.js +4 -4
  44. package/dist/node_modules/@langchain/xai/dist/profiles.cjs +81 -97
  45. package/dist/node_modules/@langchain/xai/dist/profiles.js +81 -96
  46. package/dist/node_modules/@langchain/xai/dist/tools/code_execution.cjs +1 -2
  47. package/dist/node_modules/@langchain/xai/dist/tools/code_execution.js +1 -1
  48. package/dist/node_modules/@langchain/xai/dist/tools/collections_search.cjs +1 -2
  49. package/dist/node_modules/@langchain/xai/dist/tools/collections_search.js +1 -1
  50. package/dist/node_modules/@langchain/xai/dist/tools/index.cjs +6 -7
  51. package/dist/node_modules/@langchain/xai/dist/tools/index.d.cts +1 -2
  52. package/dist/node_modules/@langchain/xai/dist/tools/index.d.ts +1 -2
  53. package/dist/node_modules/@langchain/xai/dist/tools/index.js +6 -7
  54. package/dist/node_modules/@langchain/xai/dist/tools/live_search.cjs +3 -7
  55. package/dist/node_modules/@langchain/xai/dist/tools/live_search.d.cts +1 -2
  56. package/dist/node_modules/@langchain/xai/dist/tools/live_search.d.ts +1 -2
  57. package/dist/node_modules/@langchain/xai/dist/tools/live_search.js +3 -6
  58. package/dist/node_modules/@langchain/xai/dist/tools/web_search.cjs +1 -2
  59. package/dist/node_modules/@langchain/xai/dist/tools/web_search.js +1 -1
  60. package/dist/node_modules/@langchain/xai/dist/tools/x_search.cjs +1 -2
  61. package/dist/node_modules/@langchain/xai/dist/tools/x_search.js +1 -1
  62. package/dist/node_modules/@langchain/xai/package.json +1 -1
  63. package/dist/node_modules/fs-extra/package.json +1 -1
  64. package/dist/node_modules/jsonrepair/package.json +1 -1
  65. package/dist/node_modules/just-bash/package.json +1 -1
  66. package/dist/node_modules/nodejs-snowflake/package.json +1 -1
  67. package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/branded.d.mts +1 -1
  68. package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/branded.d.ts +1 -1
  69. package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/catch.d.mts +1 -1
  70. package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/catch.d.ts +1 -1
  71. package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/readonly.d.mts +1 -1
  72. package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/readonly.d.ts +1 -1
  73. package/dist/node_modules/openai/api-promise.d.mts +1 -0
  74. package/dist/node_modules/openai/api-promise.d.ts +1 -0
  75. package/dist/node_modules/openai/auth/index.d.mts +4 -0
  76. package/dist/node_modules/openai/auth/index.d.ts +4 -0
  77. package/dist/node_modules/openai/auth/index.js +11 -0
  78. package/dist/node_modules/openai/auth/subject-token-providers.d.mts +20 -0
  79. package/dist/node_modules/openai/auth/subject-token-providers.d.ts +20 -0
  80. package/dist/node_modules/openai/auth/subject-token-providers.js +127 -0
  81. package/dist/node_modules/openai/auth/types.d.mts +23 -0
  82. package/dist/node_modules/openai/auth/types.d.ts +23 -0
  83. package/dist/node_modules/openai/auth/types.js +3 -0
  84. package/dist/node_modules/openai/auth/workload-identity-auth.d.mts +16 -0
  85. package/dist/node_modules/openai/auth/workload-identity-auth.d.ts +16 -0
  86. package/dist/node_modules/openai/auth/workload-identity-auth.js +95 -0
  87. package/dist/node_modules/openai/azure.d.mts +6 -2
  88. package/dist/node_modules/openai/azure.d.ts +6 -2
  89. package/dist/node_modules/openai/azure.js +4 -3
  90. package/dist/node_modules/openai/beta/realtime/websocket.js +7 -2
  91. package/dist/node_modules/openai/beta/realtime/ws.js +5 -1
  92. package/dist/node_modules/openai/bin/migration-config.json +1120 -0
  93. package/dist/node_modules/openai/client.d.mts +72 -10
  94. package/dist/node_modules/openai/client.d.ts +72 -10
  95. package/dist/node_modules/openai/client.js +207 -28
  96. package/dist/node_modules/openai/core/EventEmitter.d.mts +56 -0
  97. package/dist/node_modules/openai/core/EventEmitter.d.ts +56 -0
  98. package/dist/node_modules/openai/core/EventEmitter.js +93 -0
  99. package/dist/node_modules/openai/core/error.d.mts +15 -0
  100. package/dist/node_modules/openai/core/error.d.ts +15 -0
  101. package/dist/node_modules/openai/core/error.js +34 -1
  102. package/dist/node_modules/openai/core/pagination.d.mts +18 -0
  103. package/dist/node_modules/openai/core/pagination.d.ts +18 -0
  104. package/dist/node_modules/openai/core/pagination.js +32 -1
  105. package/dist/node_modules/openai/core/streaming.d.mts +1 -1
  106. package/dist/node_modules/openai/core/streaming.d.ts +1 -1
  107. package/dist/node_modules/openai/core/streaming.js +2 -2
  108. package/dist/node_modules/openai/error.d.mts +1 -0
  109. package/dist/node_modules/openai/error.d.ts +1 -0
  110. package/dist/node_modules/openai/index.d.mts +1 -1
  111. package/dist/node_modules/openai/index.d.ts +1 -1
  112. package/dist/node_modules/openai/index.js +1 -1
  113. package/dist/node_modules/openai/internal/parse.js +2 -2
  114. package/dist/node_modules/openai/internal/qs/index.d.mts +2 -2
  115. package/dist/node_modules/openai/internal/qs/index.d.ts +2 -2
  116. package/dist/node_modules/openai/internal/request-options.d.mts +5 -0
  117. package/dist/node_modules/openai/internal/request-options.d.ts +5 -0
  118. package/dist/node_modules/openai/internal/shims.d.mts +6 -0
  119. package/dist/node_modules/openai/internal/shims.d.ts +6 -0
  120. package/dist/node_modules/openai/internal/types.d.mts +17 -11
  121. package/dist/node_modules/openai/internal/types.d.ts +17 -11
  122. package/dist/node_modules/openai/internal/utils/env.js +2 -2
  123. package/dist/node_modules/openai/internal/utils/log.js +2 -0
  124. package/dist/node_modules/openai/internal/utils/query.d.mts +2 -0
  125. package/dist/node_modules/openai/internal/utils/query.d.ts +2 -0
  126. package/dist/node_modules/openai/internal/utils/query.js +10 -0
  127. package/dist/node_modules/openai/internal/utils.d.mts +1 -0
  128. package/dist/node_modules/openai/internal/utils.d.ts +1 -0
  129. package/dist/node_modules/openai/internal/utils.js +1 -0
  130. package/dist/node_modules/openai/internal/ws-adapter-browser.d.mts +34 -0
  131. package/dist/node_modules/openai/internal/ws-adapter-browser.d.ts +34 -0
  132. package/dist/node_modules/openai/internal/ws-adapter-browser.js +88 -0
  133. package/dist/node_modules/openai/internal/ws-adapter-node.d.mts +27 -0
  134. package/dist/node_modules/openai/internal/ws-adapter-node.d.ts +27 -0
  135. package/dist/node_modules/openai/internal/ws-adapter-node.js +90 -0
  136. package/dist/node_modules/openai/internal/ws-adapter.d.mts +24 -0
  137. package/dist/node_modules/openai/internal/ws-adapter.d.ts +24 -0
  138. package/dist/node_modules/openai/internal/ws-adapter.js +11 -0
  139. package/dist/node_modules/openai/internal/ws.d.mts +80 -0
  140. package/dist/node_modules/openai/internal/ws.d.ts +80 -0
  141. package/dist/node_modules/openai/internal/ws.js +153 -0
  142. package/dist/node_modules/openai/package.json +1 -1
  143. package/dist/node_modules/openai/pagination.d.mts +1 -0
  144. package/dist/node_modules/openai/pagination.d.ts +1 -0
  145. package/dist/node_modules/openai/realtime/websocket.js +7 -2
  146. package/dist/node_modules/openai/realtime/ws.js +5 -1
  147. package/dist/node_modules/openai/resource.d.mts +1 -0
  148. package/dist/node_modules/openai/resource.d.ts +1 -0
  149. package/dist/node_modules/openai/resources/admin/admin.d.mts +10 -0
  150. package/dist/node_modules/openai/resources/admin/admin.d.ts +10 -0
  151. package/dist/node_modules/openai/resources/admin/admin.js +17 -0
  152. package/dist/node_modules/openai/resources/admin/index.d.mts +3 -0
  153. package/dist/node_modules/openai/resources/admin/index.d.ts +3 -0
  154. package/dist/node_modules/openai/resources/admin/index.js +9 -0
  155. package/dist/node_modules/openai/resources/admin/organization/admin-api-keys.d.mts +140 -0
  156. package/dist/node_modules/openai/resources/admin/organization/admin-api-keys.d.ts +140 -0
  157. package/dist/node_modules/openai/resources/admin/organization/admin-api-keys.js +81 -0
  158. package/dist/node_modules/openai/resources/admin/organization/audit-logs.d.mts +1267 -0
  159. package/dist/node_modules/openai/resources/admin/organization/audit-logs.d.ts +1267 -0
  160. package/dist/node_modules/openai/resources/admin/organization/audit-logs.js +31 -0
  161. package/dist/node_modules/openai/resources/admin/organization/certificates.d.mts +322 -0
  162. package/dist/node_modules/openai/resources/admin/organization/certificates.d.ts +322 -0
  163. package/dist/node_modules/openai/resources/admin/organization/certificates.js +144 -0
  164. package/dist/node_modules/openai/resources/admin/organization/data-retention.d.mts +50 -0
  165. package/dist/node_modules/openai/resources/admin/organization/data-retention.d.ts +50 -0
  166. package/dist/node_modules/openai/resources/admin/organization/data-retention.js +42 -0
  167. package/dist/node_modules/openai/resources/admin/organization/groups/groups.d.mts +160 -0
  168. package/dist/node_modules/openai/resources/admin/organization/groups/groups.d.ts +160 -0
  169. package/dist/node_modules/openai/resources/admin/organization/groups/groups.js +109 -0
  170. package/dist/node_modules/openai/resources/admin/organization/groups/index.d.mts +4 -0
  171. package/dist/node_modules/openai/resources/admin/organization/groups/index.d.ts +4 -0
  172. package/dist/node_modules/openai/resources/admin/organization/groups/index.js +11 -0
  173. package/dist/node_modules/openai/resources/admin/organization/groups/roles.d.mts +275 -0
  174. package/dist/node_modules/openai/resources/admin/organization/groups/roles.d.ts +275 -0
  175. package/dist/node_modules/openai/resources/admin/organization/groups/roles.js +84 -0
  176. package/dist/node_modules/openai/resources/admin/organization/groups/users.d.mts +164 -0
  177. package/dist/node_modules/openai/resources/admin/organization/groups/users.d.ts +164 -0
  178. package/dist/node_modules/openai/resources/admin/organization/groups/users.js +84 -0
  179. package/dist/node_modules/openai/resources/admin/organization/groups.d.mts +2 -0
  180. package/dist/node_modules/openai/resources/admin/organization/groups.d.ts +2 -0
  181. package/dist/node_modules/openai/resources/admin/organization/groups.js +6 -0
  182. package/dist/node_modules/openai/resources/admin/organization/index.d.mts +13 -0
  183. package/dist/node_modules/openai/resources/admin/organization/index.d.ts +13 -0
  184. package/dist/node_modules/openai/resources/admin/organization/index.js +29 -0
  185. package/dist/node_modules/openai/resources/admin/organization/invites.d.mts +153 -0
  186. package/dist/node_modules/openai/resources/admin/organization/invites.d.ts +153 -0
  187. package/dist/node_modules/openai/resources/admin/organization/invites.js +83 -0
  188. package/dist/node_modules/openai/resources/admin/organization/organization.d.mts +50 -0
  189. package/dist/node_modules/openai/resources/admin/organization/organization.d.ts +50 -0
  190. package/dist/node_modules/openai/resources/admin/organization/organization.js +57 -0
  191. package/dist/node_modules/openai/resources/admin/organization/projects/api-keys.d.mts +167 -0
  192. package/dist/node_modules/openai/resources/admin/organization/projects/api-keys.d.ts +167 -0
  193. package/dist/node_modules/openai/resources/admin/organization/projects/api-keys.js +68 -0
  194. package/dist/node_modules/openai/resources/admin/organization/projects/certificates.d.mts +186 -0
  195. package/dist/node_modules/openai/resources/admin/organization/projects/certificates.d.ts +186 -0
  196. package/dist/node_modules/openai/resources/admin/organization/projects/certificates.js +64 -0
  197. package/dist/node_modules/openai/resources/admin/organization/projects/data-retention.d.mts +53 -0
  198. package/dist/node_modules/openai/resources/admin/organization/projects/data-retention.d.ts +53 -0
  199. package/dist/node_modules/openai/resources/admin/organization/projects/data-retention.js +46 -0
  200. package/dist/node_modules/openai/resources/admin/organization/projects/groups/groups.d.mts +142 -0
  201. package/dist/node_modules/openai/resources/admin/organization/projects/groups/groups.d.ts +142 -0
  202. package/dist/node_modules/openai/resources/admin/organization/projects/groups/groups.js +93 -0
  203. package/dist/node_modules/openai/resources/admin/organization/projects/groups/index.d.mts +3 -0
  204. package/dist/node_modules/openai/resources/admin/organization/projects/groups/index.d.ts +3 -0
  205. package/dist/node_modules/openai/resources/admin/organization/projects/groups/index.js +9 -0
  206. package/dist/node_modules/openai/resources/admin/organization/projects/groups/roles.d.mts +292 -0
  207. package/dist/node_modules/openai/resources/admin/organization/projects/groups/roles.d.ts +292 -0
  208. package/dist/node_modules/openai/resources/admin/organization/projects/groups/roles.js +87 -0
  209. package/dist/node_modules/openai/resources/admin/organization/projects/groups.d.mts +2 -0
  210. package/dist/node_modules/openai/resources/admin/organization/projects/groups.d.ts +2 -0
  211. package/dist/node_modules/openai/resources/admin/organization/projects/groups.js +6 -0
  212. package/dist/node_modules/openai/resources/admin/organization/projects/hosted-tool-permissions.d.mts +174 -0
  213. package/dist/node_modules/openai/resources/admin/organization/projects/hosted-tool-permissions.d.ts +174 -0
  214. package/dist/node_modules/openai/resources/admin/organization/projects/hosted-tool-permissions.js +45 -0
  215. package/dist/node_modules/openai/resources/admin/organization/projects/index.d.mts +13 -0
  216. package/dist/node_modules/openai/resources/admin/organization/projects/index.d.ts +13 -0
  217. package/dist/node_modules/openai/resources/admin/organization/projects/index.js +29 -0
  218. package/dist/node_modules/openai/resources/admin/organization/projects/model-permissions.d.mts +86 -0
  219. package/dist/node_modules/openai/resources/admin/organization/projects/model-permissions.d.ts +86 -0
  220. package/dist/node_modules/openai/resources/admin/organization/projects/model-permissions.js +63 -0
  221. package/dist/node_modules/openai/resources/admin/organization/projects/projects.d.mts +188 -0
  222. package/dist/node_modules/openai/resources/admin/organization/projects/projects.d.ts +188 -0
  223. package/dist/node_modules/openai/resources/admin/organization/projects/projects.js +149 -0
  224. package/dist/node_modules/openai/resources/admin/organization/projects/rate-limits.d.mts +120 -0
  225. package/dist/node_modules/openai/resources/admin/organization/projects/rate-limits.d.ts +120 -0
  226. package/dist/node_modules/openai/resources/admin/organization/projects/rate-limits.js +47 -0
  227. package/dist/node_modules/openai/resources/admin/organization/projects/roles.d.mts +146 -0
  228. package/dist/node_modules/openai/resources/admin/organization/projects/roles.d.ts +146 -0
  229. package/dist/node_modules/openai/resources/admin/organization/projects/roles.js +108 -0
  230. package/dist/node_modules/openai/resources/admin/organization/projects/service-accounts.d.mts +168 -0
  231. package/dist/node_modules/openai/resources/admin/organization/projects/service-accounts.d.ts +168 -0
  232. package/dist/node_modules/openai/resources/admin/organization/projects/service-accounts.js +101 -0
  233. package/dist/node_modules/openai/resources/admin/organization/projects/spend-alerts.d.mts +241 -0
  234. package/dist/node_modules/openai/resources/admin/organization/projects/spend-alerts.d.ts +241 -0
  235. package/dist/node_modules/openai/resources/admin/organization/projects/spend-alerts.js +102 -0
  236. package/dist/node_modules/openai/resources/admin/organization/projects/users/index.d.mts +3 -0
  237. package/dist/node_modules/openai/resources/admin/organization/projects/users/index.d.ts +3 -0
  238. package/dist/node_modules/openai/resources/admin/organization/projects/users/index.js +9 -0
  239. package/dist/node_modules/openai/resources/admin/organization/projects/users/roles.d.mts +266 -0
  240. package/dist/node_modules/openai/resources/admin/organization/projects/users/roles.d.ts +266 -0
  241. package/dist/node_modules/openai/resources/admin/organization/projects/users/roles.js +87 -0
  242. package/dist/node_modules/openai/resources/admin/organization/projects/users/users.d.mts +157 -0
  243. package/dist/node_modules/openai/resources/admin/organization/projects/users/users.d.ts +157 -0
  244. package/dist/node_modules/openai/resources/admin/organization/projects/users/users.js +116 -0
  245. package/dist/node_modules/openai/resources/admin/organization/projects/users.d.mts +2 -0
  246. package/dist/node_modules/openai/resources/admin/organization/projects/users.d.ts +2 -0
  247. package/dist/node_modules/openai/resources/admin/organization/projects/users.js +6 -0
  248. package/dist/node_modules/openai/resources/admin/organization/projects.d.mts +2 -0
  249. package/dist/node_modules/openai/resources/admin/organization/projects.d.ts +2 -0
  250. package/dist/node_modules/openai/resources/admin/organization/projects.js +6 -0
  251. package/dist/node_modules/openai/resources/admin/organization/roles.d.mts +153 -0
  252. package/dist/node_modules/openai/resources/admin/organization/roles.d.ts +153 -0
  253. package/dist/node_modules/openai/resources/admin/organization/roles.js +96 -0
  254. package/dist/node_modules/openai/resources/admin/organization/spend-alerts.d.mts +224 -0
  255. package/dist/node_modules/openai/resources/admin/organization/spend-alerts.d.ts +224 -0
  256. package/dist/node_modules/openai/resources/admin/organization/spend-alerts.js +93 -0
  257. package/dist/node_modules/openai/resources/admin/organization/usage.d.mts +5123 -0
  258. package/dist/node_modules/openai/resources/admin/organization/usage.d.ts +5123 -0
  259. package/dist/node_modules/openai/resources/admin/organization/usage.js +207 -0
  260. package/dist/node_modules/openai/resources/admin/organization/users/index.d.mts +3 -0
  261. package/dist/node_modules/openai/resources/admin/organization/users/index.d.ts +3 -0
  262. package/dist/node_modules/openai/resources/admin/organization/users/index.js +9 -0
  263. package/dist/node_modules/openai/resources/admin/organization/users/roles.d.mts +249 -0
  264. package/dist/node_modules/openai/resources/admin/organization/users/roles.d.ts +249 -0
  265. package/dist/node_modules/openai/resources/admin/organization/users/roles.js +84 -0
  266. package/dist/node_modules/openai/resources/admin/organization/users/users.d.mts +185 -0
  267. package/dist/node_modules/openai/resources/admin/organization/users/users.d.ts +185 -0
  268. package/dist/node_modules/openai/resources/admin/organization/users/users.js +84 -0
  269. package/dist/node_modules/openai/resources/admin/organization/users.d.mts +2 -0
  270. package/dist/node_modules/openai/resources/admin/organization/users.d.ts +2 -0
  271. package/dist/node_modules/openai/resources/admin/organization/users.js +6 -0
  272. package/dist/node_modules/openai/resources/admin/organization.d.mts +2 -0
  273. package/dist/node_modules/openai/resources/admin/organization.d.ts +2 -0
  274. package/dist/node_modules/openai/resources/admin/organization.js +6 -0
  275. package/dist/node_modules/openai/resources/admin.d.mts +2 -0
  276. package/dist/node_modules/openai/resources/admin.d.ts +2 -0
  277. package/dist/node_modules/openai/resources/admin.js +6 -0
  278. package/dist/node_modules/openai/resources/audio/speech.d.mts +22 -5
  279. package/dist/node_modules/openai/resources/audio/speech.d.ts +22 -5
  280. package/dist/node_modules/openai/resources/audio/speech.js +8 -2
  281. package/dist/node_modules/openai/resources/audio/transcriptions.d.mts +6 -0
  282. package/dist/node_modules/openai/resources/audio/transcriptions.d.ts +6 -0
  283. package/dist/node_modules/openai/resources/audio/transcriptions.js +4 -0
  284. package/dist/node_modules/openai/resources/audio/translations.d.mts +3 -0
  285. package/dist/node_modules/openai/resources/audio/translations.d.ts +3 -0
  286. package/dist/node_modules/openai/resources/audio/translations.js +4 -1
  287. package/dist/node_modules/openai/resources/batches.d.mts +8 -4
  288. package/dist/node_modules/openai/resources/batches.d.ts +8 -4
  289. package/dist/node_modules/openai/resources/batches.js +14 -4
  290. package/dist/node_modules/openai/resources/beta/assistants.d.mts +6 -2
  291. package/dist/node_modules/openai/resources/beta/assistants.d.ts +6 -2
  292. package/dist/node_modules/openai/resources/beta/assistants.js +8 -0
  293. package/dist/node_modules/openai/resources/beta/chatkit/sessions.d.mts +4 -2
  294. package/dist/node_modules/openai/resources/beta/chatkit/sessions.d.ts +4 -2
  295. package/dist/node_modules/openai/resources/beta/chatkit/sessions.js +6 -2
  296. package/dist/node_modules/openai/resources/beta/chatkit/threads.d.mts +4 -4
  297. package/dist/node_modules/openai/resources/beta/chatkit/threads.d.ts +4 -4
  298. package/dist/node_modules/openai/resources/beta/chatkit/threads.js +13 -5
  299. package/dist/node_modules/openai/resources/beta/realtime/sessions.js +1 -0
  300. package/dist/node_modules/openai/resources/beta/realtime/transcription-sessions.js +1 -0
  301. package/dist/node_modules/openai/resources/beta/threads/messages.d.mts +2 -0
  302. package/dist/node_modules/openai/resources/beta/threads/messages.d.ts +2 -0
  303. package/dist/node_modules/openai/resources/beta/threads/messages.js +7 -0
  304. package/dist/node_modules/openai/resources/beta/threads/runs/runs.d.mts +2 -0
  305. package/dist/node_modules/openai/resources/beta/threads/runs/runs.d.ts +2 -0
  306. package/dist/node_modules/openai/resources/beta/threads/runs/runs.js +10 -0
  307. package/dist/node_modules/openai/resources/beta/threads/runs/steps.d.mts +2 -0
  308. package/dist/node_modules/openai/resources/beta/threads/runs/steps.d.ts +2 -0
  309. package/dist/node_modules/openai/resources/beta/threads/runs/steps.js +4 -0
  310. package/dist/node_modules/openai/resources/beta/threads/threads.d.mts +8 -4
  311. package/dist/node_modules/openai/resources/beta/threads/threads.d.ts +8 -4
  312. package/dist/node_modules/openai/resources/beta/threads/threads.js +8 -0
  313. package/dist/node_modules/openai/resources/chat/completions/completions.d.mts +37 -18
  314. package/dist/node_modules/openai/resources/chat/completions/completions.d.ts +37 -18
  315. package/dist/node_modules/openai/resources/chat/completions/completions.js +27 -5
  316. package/dist/node_modules/openai/resources/chat/completions/messages.d.mts +3 -0
  317. package/dist/node_modules/openai/resources/chat/completions/messages.d.ts +3 -0
  318. package/dist/node_modules/openai/resources/chat/completions/messages.js +4 -1
  319. package/dist/node_modules/openai/resources/completions.d.mts +9 -3
  320. package/dist/node_modules/openai/resources/completions.d.ts +9 -3
  321. package/dist/node_modules/openai/resources/completions.js +9 -1
  322. package/dist/node_modules/openai/resources/containers/containers.js +11 -3
  323. package/dist/node_modules/openai/resources/containers/files/content.js +1 -0
  324. package/dist/node_modules/openai/resources/containers/files/files.js +7 -2
  325. package/dist/node_modules/openai/resources/conversations/conversations.d.mts +15 -0
  326. package/dist/node_modules/openai/resources/conversations/conversations.d.ts +15 -0
  327. package/dist/node_modules/openai/resources/conversations/conversations.js +17 -4
  328. package/dist/node_modules/openai/resources/conversations/items.d.mts +4 -1
  329. package/dist/node_modules/openai/resources/conversations/items.d.ts +4 -1
  330. package/dist/node_modules/openai/resources/conversations/items.js +14 -3
  331. package/dist/node_modules/openai/resources/embeddings.d.mts +3 -0
  332. package/dist/node_modules/openai/resources/embeddings.d.ts +3 -0
  333. package/dist/node_modules/openai/resources/embeddings.js +4 -0
  334. package/dist/node_modules/openai/resources/evals/evals.d.mts +3 -0
  335. package/dist/node_modules/openai/resources/evals/evals.d.ts +3 -0
  336. package/dist/node_modules/openai/resources/evals/evals.js +12 -5
  337. package/dist/node_modules/openai/resources/evals/runs/output-items.d.mts +3 -0
  338. package/dist/node_modules/openai/resources/evals/runs/output-items.d.ts +3 -0
  339. package/dist/node_modules/openai/resources/evals/runs/output-items.js +8 -2
  340. package/dist/node_modules/openai/resources/evals/runs/runs.d.mts +3 -0
  341. package/dist/node_modules/openai/resources/evals/runs/runs.d.ts +3 -0
  342. package/dist/node_modules/openai/resources/evals/runs/runs.js +21 -4
  343. package/dist/node_modules/openai/resources/files.d.mts +11 -1
  344. package/dist/node_modules/openai/resources/files.d.ts +11 -1
  345. package/dist/node_modules/openai/resources/files.js +20 -5
  346. package/dist/node_modules/openai/resources/fine-tuning/alpha/graders.d.mts +3 -0
  347. package/dist/node_modules/openai/resources/fine-tuning/alpha/graders.d.ts +3 -0
  348. package/dist/node_modules/openai/resources/fine-tuning/alpha/graders.js +13 -2
  349. package/dist/node_modules/openai/resources/fine-tuning/checkpoints/checkpoints.d.mts +2 -2
  350. package/dist/node_modules/openai/resources/fine-tuning/checkpoints/checkpoints.d.ts +2 -2
  351. package/dist/node_modules/openai/resources/fine-tuning/checkpoints/index.d.mts +1 -1
  352. package/dist/node_modules/openai/resources/fine-tuning/checkpoints/index.d.ts +1 -1
  353. package/dist/node_modules/openai/resources/fine-tuning/checkpoints/permissions.d.mts +54 -7
  354. package/dist/node_modules/openai/resources/fine-tuning/checkpoints/permissions.d.ts +54 -7
  355. package/dist/node_modules/openai/resources/fine-tuning/checkpoints/permissions.js +26 -9
  356. package/dist/node_modules/openai/resources/fine-tuning/jobs/checkpoints.d.mts +3 -0
  357. package/dist/node_modules/openai/resources/fine-tuning/jobs/checkpoints.d.ts +3 -0
  358. package/dist/node_modules/openai/resources/fine-tuning/jobs/checkpoints.js +4 -1
  359. package/dist/node_modules/openai/resources/fine-tuning/jobs/jobs.d.mts +3 -0
  360. package/dist/node_modules/openai/resources/fine-tuning/jobs/jobs.d.ts +3 -0
  361. package/dist/node_modules/openai/resources/fine-tuning/jobs/jobs.js +26 -7
  362. package/dist/node_modules/openai/resources/images.d.mts +56 -24
  363. package/dist/node_modules/openai/resources/images.d.ts +56 -24
  364. package/dist/node_modules/openai/resources/images.js +11 -3
  365. package/dist/node_modules/openai/resources/index.d.mts +2 -1
  366. package/dist/node_modules/openai/resources/index.d.ts +2 -1
  367. package/dist/node_modules/openai/resources/index.js +3 -1
  368. package/dist/node_modules/openai/resources/models.d.mts +3 -0
  369. package/dist/node_modules/openai/resources/models.d.ts +3 -0
  370. package/dist/node_modules/openai/resources/models.js +6 -3
  371. package/dist/node_modules/openai/resources/moderations.d.mts +3 -0
  372. package/dist/node_modules/openai/resources/moderations.d.ts +3 -0
  373. package/dist/node_modules/openai/resources/moderations.js +4 -1
  374. package/dist/node_modules/openai/resources/realtime/calls.d.mts +13 -3
  375. package/dist/node_modules/openai/resources/realtime/calls.d.ts +13 -3
  376. package/dist/node_modules/openai/resources/realtime/calls.js +4 -0
  377. package/dist/node_modules/openai/resources/realtime/client-secrets.d.mts +45 -39
  378. package/dist/node_modules/openai/resources/realtime/client-secrets.d.ts +45 -39
  379. package/dist/node_modules/openai/resources/realtime/client-secrets.js +19 -1
  380. package/dist/node_modules/openai/resources/realtime/index.d.mts +1 -1
  381. package/dist/node_modules/openai/resources/realtime/index.d.ts +1 -1
  382. package/dist/node_modules/openai/resources/realtime/realtime.d.mts +592 -21
  383. package/dist/node_modules/openai/resources/realtime/realtime.d.ts +592 -21
  384. package/dist/node_modules/openai/resources/responses/index.d.mts +2 -0
  385. package/dist/node_modules/openai/resources/responses/index.d.ts +2 -0
  386. package/dist/node_modules/openai/resources/responses/input-items.js +1 -1
  387. package/dist/node_modules/openai/resources/responses/input-tokens.d.mts +4 -1
  388. package/dist/node_modules/openai/resources/responses/input-tokens.d.ts +4 -1
  389. package/dist/node_modules/openai/resources/responses/input-tokens.js +9 -2
  390. package/dist/node_modules/openai/resources/responses/internal-base.d.mts +71 -0
  391. package/dist/node_modules/openai/resources/responses/internal-base.d.ts +71 -0
  392. package/dist/node_modules/openai/resources/responses/internal-base.js +48 -0
  393. package/dist/node_modules/openai/resources/responses/responses.d.mts +956 -64
  394. package/dist/node_modules/openai/resources/responses/responses.d.ts +956 -64
  395. package/dist/node_modules/openai/resources/responses/responses.js +20 -5
  396. package/dist/node_modules/openai/resources/responses/ws-base.d.mts +106 -0
  397. package/dist/node_modules/openai/resources/responses/ws-base.d.ts +106 -0
  398. package/dist/node_modules/openai/resources/responses/ws-base.js +476 -0
  399. package/dist/node_modules/openai/resources/responses/ws.d.mts +13 -0
  400. package/dist/node_modules/openai/resources/responses/ws.d.ts +13 -0
  401. package/dist/node_modules/openai/resources/responses/ws.js +31 -0
  402. package/dist/node_modules/openai/resources/shared.d.mts +3 -2
  403. package/dist/node_modules/openai/resources/shared.d.ts +3 -2
  404. package/dist/node_modules/openai/resources/skills/content.d.mts +1 -1
  405. package/dist/node_modules/openai/resources/skills/content.d.ts +1 -1
  406. package/dist/node_modules/openai/resources/skills/content.js +2 -1
  407. package/dist/node_modules/openai/resources/skills/skills.d.mts +5 -5
  408. package/dist/node_modules/openai/resources/skills/skills.d.ts +5 -5
  409. package/dist/node_modules/openai/resources/skills/skills.js +18 -10
  410. package/dist/node_modules/openai/resources/skills/versions/content.d.mts +1 -1
  411. package/dist/node_modules/openai/resources/skills/versions/content.d.ts +1 -1
  412. package/dist/node_modules/openai/resources/skills/versions/content.js +2 -1
  413. package/dist/node_modules/openai/resources/skills/versions/versions.d.mts +4 -4
  414. package/dist/node_modules/openai/resources/skills/versions/versions.d.ts +4 -4
  415. package/dist/node_modules/openai/resources/skills/versions/versions.js +14 -7
  416. package/dist/node_modules/openai/resources/uploads/parts.d.mts +3 -0
  417. package/dist/node_modules/openai/resources/uploads/parts.d.ts +3 -0
  418. package/dist/node_modules/openai/resources/uploads/parts.js +4 -1
  419. package/dist/node_modules/openai/resources/uploads/uploads.d.mts +10 -1
  420. package/dist/node_modules/openai/resources/uploads/uploads.d.ts +10 -1
  421. package/dist/node_modules/openai/resources/uploads/uploads.js +20 -4
  422. package/dist/node_modules/openai/resources/vector-stores/file-batches.d.mts +9 -3
  423. package/dist/node_modules/openai/resources/vector-stores/file-batches.d.ts +9 -3
  424. package/dist/node_modules/openai/resources/vector-stores/file-batches.js +9 -1
  425. package/dist/node_modules/openai/resources/vector-stores/files.d.mts +3 -1
  426. package/dist/node_modules/openai/resources/vector-stores/files.d.ts +3 -1
  427. package/dist/node_modules/openai/resources/vector-stores/files.js +10 -1
  428. package/dist/node_modules/openai/resources/vector-stores/vector-stores.js +6 -0
  429. package/dist/node_modules/openai/resources/videos.d.mts +123 -11
  430. package/dist/node_modules/openai/resources/videos.d.ts +123 -11
  431. package/dist/node_modules/openai/resources/videos.js +46 -11
  432. package/dist/node_modules/openai/src/auth/index.ts +9 -0
  433. package/dist/node_modules/openai/src/auth/subject-token-providers.ts +185 -0
  434. package/dist/node_modules/openai/src/auth/types.ts +28 -0
  435. package/dist/node_modules/openai/src/auth/workload-identity-auth.ts +122 -0
  436. package/dist/node_modules/openai/src/azure.ts +9 -4
  437. package/dist/node_modules/openai/src/beta/realtime/websocket.ts +7 -2
  438. package/dist/node_modules/openai/src/beta/realtime/ws.ts +5 -1
  439. package/dist/node_modules/openai/src/client.ts +312 -35
  440. package/dist/node_modules/openai/src/core/EventEmitter.ts +114 -0
  441. package/dist/node_modules/openai/src/core/error.ts +40 -0
  442. package/dist/node_modules/openai/src/core/pagination.ts +62 -0
  443. package/dist/node_modules/openai/src/core/streaming.ts +2 -1
  444. package/dist/node_modules/openai/src/index.ts +2 -0
  445. package/dist/node_modules/openai/src/internal/parse.ts +12 -2
  446. package/dist/node_modules/openai/src/internal/request-options.ts +2 -0
  447. package/dist/node_modules/openai/src/internal/types.ts +14 -8
  448. package/dist/node_modules/openai/src/internal/utils/env.ts +2 -2
  449. package/dist/node_modules/openai/src/internal/utils/log.ts +2 -0
  450. package/dist/node_modules/openai/src/internal/utils/query.ts +7 -0
  451. package/dist/node_modules/openai/src/internal/utils.ts +1 -0
  452. package/dist/node_modules/openai/src/internal/ws-adapter-browser.ts +123 -0
  453. package/dist/node_modules/openai/src/internal/ws-adapter-node.ts +105 -0
  454. package/dist/node_modules/openai/src/internal/ws-adapter.ts +30 -0
  455. package/dist/node_modules/openai/src/internal/ws.ts +193 -0
  456. package/dist/node_modules/openai/src/realtime/websocket.ts +7 -2
  457. package/dist/node_modules/openai/src/realtime/ws.ts +5 -1
  458. package/dist/node_modules/openai/src/resources/admin/admin.ts +15 -0
  459. package/dist/node_modules/openai/src/resources/admin/index.ts +4 -0
  460. package/dist/node_modules/openai/src/resources/admin/organization/admin-api-keys.ts +199 -0
  461. package/dist/node_modules/openai/src/resources/admin/organization/audit-logs.ts +1597 -0
  462. package/dist/node_modules/openai/src/resources/admin/organization/certificates.ts +458 -0
  463. package/dist/node_modules/openai/src/resources/admin/organization/data-retention.ts +79 -0
  464. package/dist/node_modules/openai/src/resources/admin/organization/groups/groups.ts +277 -0
  465. package/dist/node_modules/openai/src/resources/admin/organization/groups/index.ts +36 -0
  466. package/dist/node_modules/openai/src/resources/admin/organization/groups/roles.ts +359 -0
  467. package/dist/node_modules/openai/src/resources/admin/organization/groups/users.ts +232 -0
  468. package/dist/node_modules/openai/src/resources/admin/organization/groups.ts +3 -0
  469. package/dist/node_modules/openai/src/resources/admin/organization/index.ts +117 -0
  470. package/dist/node_modules/openai/src/resources/admin/organization/invites.ts +215 -0
  471. package/dist/node_modules/openai/src/resources/admin/organization/organization.ts +272 -0
  472. package/dist/node_modules/openai/src/resources/admin/organization/projects/api-keys.ts +239 -0
  473. package/dist/node_modules/openai/src/resources/admin/organization/projects/certificates.ts +269 -0
  474. package/dist/node_modules/openai/src/resources/admin/organization/projects/data-retention.ts +91 -0
  475. package/dist/node_modules/openai/src/resources/admin/organization/projects/groups/groups.ts +231 -0
  476. package/dist/node_modules/openai/src/resources/admin/organization/projects/groups/index.ts +24 -0
  477. package/dist/node_modules/openai/src/resources/admin/organization/projects/groups/roles.ts +386 -0
  478. package/dist/node_modules/openai/src/resources/admin/organization/projects/groups.ts +3 -0
  479. package/dist/node_modules/openai/src/resources/admin/organization/projects/hosted-tool-permissions.ts +217 -0
  480. package/dist/node_modules/openai/src/resources/admin/organization/projects/index.ts +102 -0
  481. package/dist/node_modules/openai/src/resources/admin/organization/projects/model-permissions.ts +123 -0
  482. package/dist/node_modules/openai/src/resources/admin/organization/projects/projects.ts +445 -0
  483. package/dist/node_modules/openai/src/resources/admin/organization/projects/rate-limits.ts +173 -0
  484. package/dist/node_modules/openai/src/resources/admin/organization/projects/roles.ts +210 -0
  485. package/dist/node_modules/openai/src/resources/admin/organization/projects/service-accounts.ts +266 -0
  486. package/dist/node_modules/openai/src/resources/admin/organization/projects/spend-alerts.ts +332 -0
  487. package/dist/node_modules/openai/src/resources/admin/organization/projects/users/index.ts +25 -0
  488. package/dist/node_modules/openai/src/resources/admin/organization/projects/users/roles.ts +351 -0
  489. package/dist/node_modules/openai/src/resources/admin/organization/projects/users/users.ts +256 -0
  490. package/dist/node_modules/openai/src/resources/admin/organization/projects/users.ts +3 -0
  491. package/dist/node_modules/openai/src/resources/admin/organization/projects.ts +3 -0
  492. package/dist/node_modules/openai/src/resources/admin/organization/roles.ts +217 -0
  493. package/dist/node_modules/openai/src/resources/admin/organization/spend-alerts.ts +301 -0
  494. package/dist/node_modules/openai/src/resources/admin/organization/usage.ts +6427 -0
  495. package/dist/node_modules/openai/src/resources/admin/organization/users/index.ts +22 -0
  496. package/dist/node_modules/openai/src/resources/admin/organization/users/roles.ts +328 -0
  497. package/dist/node_modules/openai/src/resources/admin/organization/users/users.ts +291 -0
  498. package/dist/node_modules/openai/src/resources/admin/organization/users.ts +3 -0
  499. package/dist/node_modules/openai/src/resources/admin/organization.ts +3 -0
  500. package/dist/node_modules/openai/src/resources/admin.ts +3 -0
  501. package/dist/node_modules/openai/src/resources/audio/speech.ts +26 -6
  502. package/dist/node_modules/openai/src/resources/audio/transcriptions.ts +7 -0
  503. package/dist/node_modules/openai/src/resources/audio/translations.ts +7 -1
  504. package/dist/node_modules/openai/src/resources/batches.ts +20 -8
  505. package/dist/node_modules/openai/src/resources/beta/assistants.ts +11 -2
  506. package/dist/node_modules/openai/src/resources/beta/chatkit/sessions.ts +6 -2
  507. package/dist/node_modules/openai/src/resources/beta/chatkit/threads.ts +13 -5
  508. package/dist/node_modules/openai/src/resources/beta/realtime/sessions.ts +1 -0
  509. package/dist/node_modules/openai/src/resources/beta/realtime/transcription-sessions.ts +1 -0
  510. package/dist/node_modules/openai/src/resources/beta/threads/messages.ts +7 -0
  511. package/dist/node_modules/openai/src/resources/beta/threads/runs/runs.ts +10 -0
  512. package/dist/node_modules/openai/src/resources/beta/threads/runs/steps.ts +4 -0
  513. package/dist/node_modules/openai/src/resources/beta/threads/threads.ts +14 -4
  514. package/dist/node_modules/openai/src/resources/chat/completions/completions.ts +64 -27
  515. package/dist/node_modules/openai/src/resources/chat/completions/messages.ts +4 -1
  516. package/dist/node_modules/openai/src/resources/completions.ts +15 -6
  517. package/dist/node_modules/openai/src/resources/containers/containers.ts +11 -3
  518. package/dist/node_modules/openai/src/resources/containers/files/content.ts +1 -0
  519. package/dist/node_modules/openai/src/resources/containers/files/files.ts +7 -2
  520. package/dist/node_modules/openai/src/resources/conversations/conversations.ts +31 -4
  521. package/dist/node_modules/openai/src/resources/conversations/items.ts +17 -3
  522. package/dist/node_modules/openai/src/resources/embeddings.ts +4 -0
  523. package/dist/node_modules/openai/src/resources/evals/evals.ts +12 -5
  524. package/dist/node_modules/openai/src/resources/evals/runs/output-items.ts +8 -2
  525. package/dist/node_modules/openai/src/resources/evals/runs/runs.ts +21 -4
  526. package/dist/node_modules/openai/src/resources/files.ts +23 -5
  527. package/dist/node_modules/openai/src/resources/fine-tuning/alpha/graders.ts +13 -2
  528. package/dist/node_modules/openai/src/resources/fine-tuning/checkpoints/checkpoints.ts +6 -0
  529. package/dist/node_modules/openai/src/resources/fine-tuning/checkpoints/index.ts +3 -0
  530. package/dist/node_modules/openai/src/resources/fine-tuning/checkpoints/permissions.ts +84 -10
  531. package/dist/node_modules/openai/src/resources/fine-tuning/jobs/checkpoints.ts +4 -1
  532. package/dist/node_modules/openai/src/resources/fine-tuning/jobs/jobs.ts +26 -7
  533. package/dist/node_modules/openai/src/resources/images.ts +74 -27
  534. package/dist/node_modules/openai/src/resources/index.ts +7 -0
  535. package/dist/node_modules/openai/src/resources/models.ts +6 -3
  536. package/dist/node_modules/openai/src/resources/moderations.ts +4 -1
  537. package/dist/node_modules/openai/src/resources/realtime/calls.ts +21 -2
  538. package/dist/node_modules/openai/src/resources/realtime/client-secrets.ts +54 -40
  539. package/dist/node_modules/openai/src/resources/realtime/index.ts +0 -1
  540. package/dist/node_modules/openai/src/resources/realtime/realtime.ts +705 -20
  541. package/dist/node_modules/openai/src/resources/responses/index.ts +2 -0
  542. package/dist/node_modules/openai/src/resources/responses/input-items.ts +1 -1
  543. package/dist/node_modules/openai/src/resources/responses/input-tokens.ts +9 -2
  544. package/dist/node_modules/openai/src/resources/responses/internal-base.ts +113 -0
  545. package/dist/node_modules/openai/src/resources/responses/responses.ts +1314 -143
  546. package/dist/node_modules/openai/src/resources/responses/ws-base.ts +611 -0
  547. package/dist/node_modules/openai/src/resources/responses/ws.ts +38 -0
  548. package/dist/node_modules/openai/src/resources/shared.ts +9 -1
  549. package/dist/node_modules/openai/src/resources/skills/content.ts +2 -1
  550. package/dist/node_modules/openai/src/resources/skills/skills.ts +21 -10
  551. package/dist/node_modules/openai/src/resources/skills/versions/content.ts +2 -1
  552. package/dist/node_modules/openai/src/resources/skills/versions/versions.ts +14 -7
  553. package/dist/node_modules/openai/src/resources/uploads/parts.ts +4 -1
  554. package/dist/node_modules/openai/src/resources/uploads/uploads.ts +20 -4
  555. package/dist/node_modules/openai/src/resources/vector-stores/file-batches.ts +18 -4
  556. package/dist/node_modules/openai/src/resources/vector-stores/files.ts +13 -2
  557. package/dist/node_modules/openai/src/resources/vector-stores/vector-stores.ts +6 -0
  558. package/dist/node_modules/openai/src/resources/videos.ts +186 -16
  559. package/dist/node_modules/openai/src/version.ts +1 -1
  560. package/dist/node_modules/openai/streaming.d.mts +1 -0
  561. package/dist/node_modules/openai/streaming.d.ts +1 -0
  562. package/dist/node_modules/openai/uploads.d.mts +1 -0
  563. package/dist/node_modules/openai/uploads.d.ts +1 -0
  564. package/dist/node_modules/openai/version.d.mts +1 -1
  565. package/dist/node_modules/openai/version.d.ts +1 -1
  566. package/dist/node_modules/openai/version.js +1 -1
  567. package/dist/node_modules/zod/package.json +1 -1
  568. package/dist/server/ai-employees/ai-employee.d.ts +1 -10
  569. package/dist/server/ai-employees/ai-employee.js +0 -84
  570. package/dist/server/ai-employees/ai-knowledge-base.d.ts +0 -4
  571. package/dist/server/ai-employees/ai-knowledge-base.js +25 -89
  572. package/dist/server/collections/lc-checkpoint-blobs.js +1 -1
  573. package/dist/server/collections/lc-checkpoint-writes.js +1 -1
  574. package/dist/server/collections/lc-checkpoints.js +1 -1
  575. package/dist/server/features/index.d.ts +1 -1
  576. package/dist/server/features/knowledge-base.d.ts +2 -1
  577. package/dist/server/features/vector-store-provider.d.ts +1 -9
  578. package/dist/server/plugin.d.ts +1 -0
  579. package/dist/server/plugin.js +31 -0
  580. package/dist/server/types/knowledge-base.type.d.ts +14 -0
  581. package/package.json +13 -13
  582. package/dist/ai/docs/nocobase/ai-employees/knowledge-base/knowledge-base.md +0 -82
  583. package/dist/node_modules/@langchain/xai/dist/_virtual/rolldown_runtime.cjs +0 -25
@@ -0,0 +1,423 @@
1
+ ---
2
+ title: "Built-in tables for applications and major plugins"
3
+ description: "Reference for built-in tables of applications and major plugins, covering Migration Manager default strategies, version-control scope, and backup/restore handling."
4
+ keywords: "Migration Manager,version control,backup restore,built-in tables,application configuration,plugin configuration,dataCategory,overwrite,schema-only,skip,NocoBase"
5
+ ---
6
+
7
+ # Built-in tables for applications and major plugins
8
+
9
+ ## Introduction
10
+
11
+ This list explains common handling for built-in tables of applications and major plugins in Migration Manager, version control, and backup/restore. In most cases, users do not need to adjust tables one by one. Use the default strategy.
12
+
13
+ These mechanisms focus on different concerns:
14
+
15
+ - **Migration Manager**: publishes across environments. Common strategies include overwrite, schema-only, and skip.
16
+ - **Version control**: saves and restores key checkpoints during application building.
17
+ - **Backup/restore**: backs up and restores the application runtime state.
18
+
19
+ The “Data type” column comes from built-in classification. System base data participates in version control; business runtime data does not; runtime temporary data is not backed up.
20
+
21
+ ## Built-in table reference
22
+
23
+ ### Database
24
+
25
+ | Table | Description | Data type | Default migration strategy | Version control | Backup/restore |
26
+ | --- | --- | --- | --- | --- | --- |
27
+ | `migrations` | Executed ORM/SQL migration versions | System base data | Schema-only | Included | Backed up |
28
+
29
+ ### Server
30
+
31
+ | Table | Description | Data type | Default migration strategy | Version control | Backup/restore |
32
+ | --- | --- | --- | --- | --- | --- |
33
+ | `applicationPlugins` | Plugin list and versions loaded by the application | System base data | Overwrite | Included | Backed up |
34
+ | `applicationVersion` | Application and core version used for upgrade and compatibility checks | System base data | Schema-only | Included | Backed up |
35
+
36
+ ### System settings
37
+
38
+ | Table | Description | Data type | Default migration strategy | Version control | Backup/restore |
39
+ | --- | --- | --- | --- | --- | --- |
40
+ | `systemSettings` | Installation-level system parameters and feature switches | System base data | Overwrite | Included | Backed up |
41
+
42
+ ### Client
43
+
44
+ | Table | Description | Data type | Default migration strategy | Version control | Backup/restore |
45
+ | --- | --- | --- | --- | --- | --- |
46
+ | `desktopRoutes` | Desktop menu and route structure | System base data | Overwrite | Included | Backed up |
47
+
48
+ ### Multi-space
49
+
50
+ | Table | Description | Data type | Default migration strategy | Version control | Backup/restore |
51
+ | --- | --- | --- | --- | --- | --- |
52
+ | `spaces` | Top-level containers for space or workspace isolation | Business runtime data | Schema-only | Not included | Backed up |
53
+ | `spacesUsers` | Membership between users and spaces | Business runtime data | Schema-only | Not included | Backed up |
54
+
55
+ ### App monitoring
56
+
57
+ | Table | Description | Data type | Default migration strategy | Version control | Backup/restore |
58
+ | --- | --- | --- | --- | --- | --- |
59
+ | `apps` | Application entries managed by the app monitoring plugin | Business runtime data | Schema-only | Not included | Backed up |
60
+
61
+ ### Main data source
62
+
63
+ | Table | Description | Data type | Default migration strategy | Version control | Backup/restore |
64
+ | --- | --- | --- | --- | --- | --- |
65
+ | `collectionCategories` | UI grouping for business collections | System base data | Overwrite | Included | Backed up |
66
+ | `collections` | Business collection fields, indexes, and metadata | System base data | Overwrite | Included | Backed up |
67
+ | `fields` | Field types and constraints under collections | System base data | Overwrite | Included | Backed up |
68
+
69
+ ### Data source manager
70
+
71
+ | Table | Description | Data type | Default migration strategy | Version control | Backup/restore |
72
+ | --- | --- | --- | --- | --- | --- |
73
+ | `dataSources` | Main or external database connection configuration | System base data | Overwrite | Included | Backed up |
74
+ | `dataSourcesCollections` | Mapping for synced tables or collections from external sources | System base data | Overwrite | Included | Backed up |
75
+ | `dataSourcesFields` | Mapping between external fields and NocoBase fields | System base data | Overwrite | Included | Backed up |
76
+ | `dataSourcesRoles` | Access roles at data-source level | System base data | Overwrite | Included | Backed up |
77
+ | `dataSourcesRolesResources` | Collections and operations accessible by roles | System base data | Overwrite | Included | Backed up |
78
+ | `dataSourcesRolesResourcesActions` | Allowed actions such as create, read, update, and delete | System base data | Overwrite | Included | Backed up |
79
+ | `dataSourcesRolesResourcesScopes` | Row-level or filter-scope restrictions | System base data | Overwrite | Included | Backed up |
80
+
81
+ ### External database connections
82
+
83
+ | Table | Description | Data type | Default migration strategy | Version control | Backup/restore |
84
+ | --- | --- | --- | --- | --- | --- |
85
+ | `databaseServers` | Registered database instances available for connection | System base data | Overwrite | Included | Backed up |
86
+
87
+ ### Visual data modeling
88
+
89
+ | Table | Description | Data type | Default migration strategy | Version control | Backup/restore |
90
+ | --- | --- | --- | --- | --- | --- |
91
+ | `graphPositions` | Node positions in graph or flow editors | System base data | Overwrite | Included | Backed up |
92
+
93
+ ### China region field
94
+
95
+ | Table | Description | Data type | Default migration strategy | Version control | Backup/restore |
96
+ | --- | --- | --- | --- | --- | --- |
97
+ | `chinaRegions` | Province, city, and district geographic dictionary | Business runtime data | Schema-only | Not included | Backed up |
98
+
99
+ ### Auto-number field
100
+
101
+ | Table | Description | Data type | Default migration strategy | Version control | Backup/restore |
102
+ | --- | --- | --- | --- | --- | --- |
103
+ | `sequences` | Sequence table for auto-generated business numbers | System base data | Overwrite | Included | Backed up |
104
+
105
+ ### UI Schema
106
+
107
+ | Table | Description | Data type | Default migration strategy | Version control | Backup/restore |
108
+ | --- | --- | --- | --- | --- | --- |
109
+ | `uiButtonSchemasRoles` | Relationship between button permissions and roles | System base data | Overwrite | Included | Backed up |
110
+ | `uiSchemaServerHooks` | Server-side hook extension points for UI configuration | System base data | Overwrite | Included | Backed up |
111
+ | `uiSchemaTemplates` | Reusable form and detail layout fragments | System base data | Overwrite | Included | Backed up |
112
+ | `uiSchemaTreePath` | Materialized paths for component-tree hierarchy | System base data | Overwrite | Included | Backed up |
113
+ | `uiSchemas` | JSON layout definitions for pages and blocks | System base data | Overwrite | Included | Backed up |
114
+
115
+ ### UI templates
116
+
117
+ | Table | Description | Data type | Default migration strategy | Version control | Backup/restore |
118
+ | --- | --- | --- | --- | --- | --- |
119
+ | `flowModelTemplateUsages` | Entities instantiated from a flow template | System base data | Overwrite | Included | Backed up |
120
+ | `flowModelTemplates` | Reusable flow-structure templates | System base data | Overwrite | Included | Backed up |
121
+
122
+ ### Flow engine
123
+
124
+ | Table | Description | Data type | Default migration strategy | Version control | Backup/restore |
125
+ | --- | --- | --- | --- | --- | --- |
126
+ | `flowModelTreePath` | Materialized paths for flow-model tree structures | System base data | Overwrite | Included | Backed up |
127
+ | `flowModels` | Model definitions for the modern flow engine | System base data | Overwrite | Included | Backed up |
128
+ | `flowSql` | SQL snippets or scripts registered in flows | System base data | Overwrite | Included | Backed up |
129
+
130
+ ### Block templates
131
+
132
+ | Table | Description | Data type | Default migration strategy | Version control | Backup/restore |
133
+ | --- | --- | --- | --- | --- | --- |
134
+ | `blockTemplateLinks` | Relationships between pages and block templates | System base data | Overwrite | Included | Backed up |
135
+ | `blockTemplates` | Reusable UI block definitions | System base data | Overwrite | Included | Backed up |
136
+
137
+ ### iframe block
138
+
139
+ | Table | Description | Data type | Default migration strategy | Version control | Backup/restore |
140
+ | --- | --- | --- | --- | --- | --- |
141
+ | `iframeHtml` | HTML configuration required by embedded iframes | System base data | Overwrite | Included | Backed up |
142
+
143
+ ### Mobile
144
+
145
+ | Table | Description | Data type | Default migration strategy | Version control | Backup/restore |
146
+ | --- | --- | --- | --- | --- | --- |
147
+ | `mobileRoutes` | Mobile app menus and routes | System base data | Overwrite | Included | Backed up |
148
+
149
+ ### Theme editor
150
+
151
+ | Table | Description | Data type | Default migration strategy | Version control | Backup/restore |
152
+ | --- | --- | --- | --- | --- | --- |
153
+ | `themeConfig` | Light/dark themes and brand colors | System base data | Overwrite | Included | Backed up |
154
+
155
+ ### Map block
156
+
157
+ | Table | Description | Data type | Default migration strategy | Version control | Backup/restore |
158
+ | --- | --- | --- | --- | --- | --- |
159
+ | `mapConfiguration` | Map widget center, zoom, and base-map configuration | System base data | Overwrite | Included | Backed up |
160
+
161
+ ### Public forms
162
+
163
+ | Table | Description | Data type | Default migration strategy | Version control | Backup/restore |
164
+ | --- | --- | --- | --- | --- | --- |
165
+ | `publicForms` | External forms and submission-entry configuration | System base data | Overwrite | Included | Backed up |
166
+
167
+ ### Template printing
168
+
169
+ | Table | Description | Data type | Default migration strategy | Version control | Backup/restore |
170
+ | --- | --- | --- | --- | --- | --- |
171
+ | `printingTemplates` | Print layouts for list or detail views | System base data | Overwrite | Included | Backed up |
172
+
173
+ ### ACL
174
+
175
+ | Table | Description | Data type | Default migration strategy | Version control | Backup/restore |
176
+ | --- | --- | --- | --- | --- | --- |
177
+ | `roles` | Role definitions for permission sets | System base data | Overwrite | Included | Backed up |
178
+ | `rolesResources` | Resources granted to roles | System base data | Overwrite | Included | Backed up |
179
+ | `rolesResourcesActions` | Actions allowed on resources, such as view and update | System base data | Overwrite | Included | Backed up |
180
+ | `rolesResourcesScopes` | Data filter scopes visible to roles | System base data | Overwrite | Included | Backed up |
181
+ | `rolesUsers` | Many-to-many relationship between users and roles | Business runtime data | Schema-only | Not included | Backed up |
182
+
183
+ ### Authentication
184
+
185
+ | Table | Description | Data type | Default migration strategy | Version control | Backup/restore |
186
+ | --- | --- | --- | --- | --- | --- |
187
+ | `authenticators` | Password and third-party login method configuration | System base data | Overwrite | Included | Backed up |
188
+ | `tokenControlConfig` | Session duration and refresh strategy | System base data | Overwrite | Included | Backed up |
189
+ | `issuedTokens` | Issued login or API access tokens | Business runtime data | Schema-only | Not included | Backed up |
190
+ | `tokenBlacklist` | Tokens that have been logged out or forcibly invalidated | Business runtime data | Schema-only | Not included | Backed up |
191
+ | `usersAuthenticators` | Bindings between users and authentication methods | Business runtime data | Schema-only | Not included | Backed up |
192
+
193
+ ### Two-factor authentication
194
+
195
+ | Table | Description | Data type | Default migration strategy | Version control | Backup/restore |
196
+ | --- | --- | --- | --- | --- | --- |
197
+ | `twoFactorAuthSettings` | 2FA methods and user-level switches | System base data | Overwrite | Included | Backed up |
198
+
199
+ ### API keys
200
+
201
+ | Table | Description | Data type | Default migration strategy | Version control | Backup/restore |
202
+ | --- | --- | --- | --- | --- | --- |
203
+ | `apiKeys` | Open API keys and permission scopes | Business runtime data | Schema-only | Not included | Backed up |
204
+
205
+ ### Password policy
206
+
207
+ | Table | Description | Data type | Default migration strategy | Version control | Backup/restore |
208
+ | --- | --- | --- | --- | --- | --- |
209
+ | `passwordPolicy` | Password complexity and expiration policies | System base data | Overwrite | Included | Backed up |
210
+ | `lockedUsers` | Accounts temporarily locked by policy | Business runtime data | Schema-only | Not included | Backed up |
211
+ | `userPasswordHistory` | Recent password hashes used to prevent reuse | Business runtime data | Schema-only | Not included | Backed up |
212
+
213
+ ### IP restriction
214
+
215
+ | Table | Description | Data type | Default migration strategy | Version control | Backup/restore |
216
+ | --- | --- | --- | --- | --- | --- |
217
+ | `ipRestrictionConfig` | IP allowlist or blocklist rules | System base data | Overwrite | Included | Backed up |
218
+
219
+ ### Users
220
+
221
+ | Table | Description | Data type | Default migration strategy | Version control | Backup/restore |
222
+ | --- | --- | --- | --- | --- | --- |
223
+ | `users` | Login accounts, profiles, and basic status | Business runtime data | Schema-only | Not included | Backed up |
224
+
225
+ ### Departments
226
+
227
+ | Table | Description | Data type | Default migration strategy | Version control | Backup/restore |
228
+ | --- | --- | --- | --- | --- | --- |
229
+ | `departments` | Department tree in the organization structure | Business runtime data | Overwrite | Not included | Backed up |
230
+ | `departmentsRoles` | Bindings between departments and default roles | Business runtime data | Overwrite | Not included | Backed up |
231
+ | `departmentsUsers` | Relationships between users and departments | Business runtime data | Schema-only | Not included | Backed up |
232
+
233
+ ### User data sync
234
+
235
+ | Table | Description | Data type | Default migration strategy | Version control | Backup/restore |
236
+ | --- | --- | --- | --- | --- | --- |
237
+ | `userDataSyncSources` | External identity source or account-system connection configuration | System base data | Overwrite | Included | Backed up |
238
+ | `userDataSyncRecords` | Execution records for synchronization jobs | Business runtime data | Schema-only | Not included | Backed up |
239
+ | `userDataSyncRecordsResources` | Tables or resources involved in synchronization jobs | Business runtime data | Schema-only | Not included | Backed up |
240
+ | `userDataSyncTasks` | Synchronization task records | Business runtime data | Schema-only | Not included | Backed up |
241
+
242
+ ### Workflow
243
+
244
+ | Table | Description | Data type | Default migration strategy | Version control | Backup/restore |
245
+ | --- | --- | --- | --- | --- | --- |
246
+ | `flow_nodes` | Workflow nodes | System base data | Overwrite | Included | Backed up |
247
+ | `workflows` | Automation flow charts, triggers, and node configuration | System base data | Overwrite | Included | Backed up |
248
+ | `jobs` | Execution result of each node in a workflow run | Business runtime data | Schema-only | Not included | Backed up |
249
+ | `executions` | Status, inputs, outputs, and log indexes for workflow runs | Business runtime data | Schema-only | Not included | Backed up |
250
+ | `userWorkflowTasks` | Task-count statistics for users | Business runtime data | Schema-only | Not included | Backed up |
251
+ | `workflowCategories` | Workflow grouping in the UI | Business runtime data | Overwrite | Not included | Backed up |
252
+ | `workflowCategoryRelations` | Many-to-many relationship between workflows and categories | Business runtime data | Overwrite | Not included | Backed up |
253
+ | `workflowStats` | Aggregated metrics such as run count and success rate | Business runtime data | Schema-only | Not included | Backed up |
254
+ | `workflowTasks` | Task execution records for automation nodes | Business runtime data | Schema-only | Not included | Backed up |
255
+ | `workflowVersionStats` | Execution and performance statistics by workflow version | Business runtime data | Schema-only | Not included | Backed up |
256
+
257
+ ### Workflow approval
258
+
259
+ | Table | Description | Data type | Default migration strategy | Version control | Backup/restore |
260
+ | --- | --- | --- | --- | --- | --- |
261
+ | `approvalAudienceUsers` | Relationship between approval audiences and users | Business runtime data | Schema-only | Not included | Backed up |
262
+ | `approvalAudiences` | Approval notification or participation scope grouped by role or user | Business runtime data | Schema-only | Not included | Backed up |
263
+ | `approvalExecutions` | Runtime status and current node of an approval flow | Business runtime data | Schema-only | Not included | Backed up |
264
+ | `approvalMsgTpls` | Message templates for approval notices and tasks | Business runtime data | Overwrite | Not included | Backed up |
265
+ | `approvalRecords` | Approval tasks and processing results from a personal view | Business runtime data | Schema-only | Not included | Backed up |
266
+ | `approvals` | Approval-flow templates and step configuration | Business runtime data | Schema-only | Not included | Backed up |
267
+
268
+ ### Workflow manual node
269
+
270
+ | Table | Description | Data type | Default migration strategy | Version control | Backup/restore |
271
+ | --- | --- | --- | --- | --- | --- |
272
+ | `workflowManualTasks` | Manual-node tasks that require human handling | Business runtime data | Schema-only | Not included | Backed up |
273
+
274
+ ### Workflow CC
275
+
276
+ | Table | Description | Data type | Default migration strategy | Version control | Backup/restore |
277
+ | --- | --- | --- | --- | --- | --- |
278
+ | `workflowCcTasks` | Read-only copied workflow tasks | Business runtime data | Schema-only | Not included | Backed up |
279
+
280
+ ### Notification manager
281
+
282
+ | Table | Description | Data type | Default migration strategy | Version control | Backup/restore |
283
+ | --- | --- | --- | --- | --- | --- |
284
+ | `notificationChannels` | Delivery channel configuration such as in-app messages and email | System base data | Overwrite | Included | Backed up |
285
+ | `notificationSendLogs` | Delivery status and failure reason for notifications | Business runtime data | Schema-only | Not included | Backed up |
286
+
287
+ ### In-app messages
288
+
289
+ | Table | Description | Data type | Default migration strategy | Version control | Backup/restore |
290
+ | --- | --- | --- | --- | --- | --- |
291
+ | `notificationInAppMessages` | In-app messages received by users | Business runtime data | Schema-only | Not included | Backed up |
292
+
293
+ ### Verification
294
+
295
+ | Table | Description | Data type | Default migration strategy | Version control | Backup/restore |
296
+ | --- | --- | --- | --- | --- | --- |
297
+ | `verifiers` | Configuration for who can initiate or complete verification | System base data | Overwrite | Included | Backed up |
298
+ | `otpRecords` | SMS or email OTP issue and verification records | Business runtime data | Schema-only | Not included | Backed up |
299
+ | `usersVerifiers` | Bindings between users and verification channels or entities | Business runtime data | Schema-only | Not included | Backed up |
300
+
301
+ ### Mail manager
302
+
303
+ | Table | Description | Data type | Default migration strategy | Version control | Backup/restore |
304
+ | --- | --- | --- | --- | --- | --- |
305
+ | `mailGeneralSettings` | Global mail behavior and default values | System base data | Overwrite | Included | Backed up |
306
+ | `mailSettings` | Mail plugin switches and parameters | System base data | Overwrite | Included | Backed up |
307
+ | `mailAccounts` | Sending mailbox accounts and SMTP configuration | Business runtime data | Overwrite | Not included | Backed up |
308
+ | `mailMassMessages` | Mass-mail tasks and recipient batches | Business runtime data | Schema-only | Not included | Backed up |
309
+ | `mailMessageLabels` | Mail category label definitions | Business runtime data | Schema-only | Not included | Backed up |
310
+ | `mailMessageNotes` | Internal notes for individual emails | Business runtime data | Schema-only | Not included | Backed up |
311
+ | `mailMessages` | Indexes for synced or sent email content | Business runtime data | Schema-only | Not included | Backed up |
312
+ | `mailTemplates` | HTML/text templates for notification emails | Business runtime data | Schema-only | Not included | Backed up |
313
+ | `mailmessagelabelsMailmessages` | Join table between emails and many-to-many labels | Business runtime data | Schema-only | Not included | Backed up |
314
+ | `mailmessagelabelsMailmessagesRel` | Auxiliary fields or extension table for mail-label relationships | Business runtime data | Schema-only | Not included | Backed up |
315
+
316
+ ### AI
317
+
318
+ | Table | Description | Data type | Default migration strategy | Version control | Backup/restore |
319
+ | --- | --- | --- | --- | --- | --- |
320
+ | `aiEmployees` | AI employee profiles: nickname, skills, models, knowledge bases, and related configuration | System base data | Overwrite | Included | Backed up |
321
+ | `aiSettings` | AI basic settings | System base data | Overwrite | Included | Backed up |
322
+ | `rolesAiEmployees` | Relationship between AI employees and roles | System base data | Overwrite | Included | Backed up |
323
+ | `llmServices` | LLM providers and model endpoint configuration | System base data | Overwrite | Included | Backed up |
324
+ | `aiContextDatasources` | Business collections, fields, and filters queryable by AI employees | Business runtime data | Schema-only | Not included | Backed up |
325
+ | `aiConversations` | Conversation context for sessions, topics, and message threads | Business runtime data | Schema-only | Not included | Backed up |
326
+ | `aiFiles` | Uploaded files and storage references generated by the AI plugin | Business runtime data | Schema-only | Not included | Backed up |
327
+ | `aiMessages` | User and assistant messages in conversations | Business runtime data | Schema-only | Not included | Backed up |
328
+ | `aiToolMessages` | Requests and responses for function or tool calls | Business runtime data | Schema-only | Not included | Backed up |
329
+ | `usersAiEmployees` | Relationship between user custom prompts and AI employees | Business runtime data | Schema-only | Not included | Backed up |
330
+ | `lcCheckpointBlobs` | Binary blocks for LLM conversation checkpoints | Runtime temporary data | Schema-only | Not included | Not backed up |
331
+ | `lcCheckpointWrites` | Incremental checkpoint write records | Runtime temporary data | Schema-only | Not included | Not backed up |
332
+ | `lcCheckpoints` | LangGraph checkpoint metadata for recoverable conversations | Runtime temporary data | Schema-only | Not included | Not backed up |
333
+
334
+ ### AI knowledge base
335
+
336
+ | Table | Description | Data type | Default migration strategy | Version control | Backup/restore |
337
+ | --- | --- | --- | --- | --- | --- |
338
+ | `aiKnowledgeBaseDocs` | Document chunks and index metadata stored in knowledge bases | Business runtime data | Schema-only | Not included | Backed up |
339
+ | `aiKnowledgeBase` | Knowledge-base type, external ID, and base information | Business runtime data | Schema-only | Not included | Backed up |
340
+ | `aiVectorDatabases` | Vector database service and connection configuration | Business runtime data | Schema-only | Not included | Backed up |
341
+ | `aiVectorStoreConfig` | Relationship between vector database connections and embedding models | Business runtime data | Schema-only | Not included | Backed up |
342
+
343
+ ### Environment variables
344
+
345
+ | Table | Description | Data type | Default migration strategy | Version control | Backup/restore |
346
+ | --- | --- | --- | --- | --- | --- |
347
+ | `environmentVariables` | Deployment-related key-value entries, such as secret placeholder names | System base data | Schema-only | Included | Backed up |
348
+
349
+ ### Migration manager
350
+
351
+ | Table | Description | Data type | Default migration strategy | Version control | Backup/restore |
352
+ | --- | --- | --- | --- | --- | --- |
353
+ | `migrationRules` | Rules and scope configuration in the migration manager | System base data | Schema-only | Included | Backed up |
354
+
355
+ ### Backup manager
356
+
357
+ | Table | Description | Data type | Default migration strategy | Version control | Backup/restore |
358
+ | --- | --- | --- | --- | --- | --- |
359
+ | `backupSettings` | Automatic backup and retention policy | Business runtime data | Overwrite | Not included | Backed up |
360
+
361
+ ### Audit logs
362
+
363
+ | Table | Description | Data type | Default migration strategy | Version control | Backup/restore |
364
+ | --- | --- | --- | --- | --- | --- |
365
+ | `auditTrails` | Trace of who operated on which resources and when | Business runtime data | Schema-only | Not included | Backed up |
366
+
367
+ ### Async tasks
368
+
369
+ | Table | Description | Data type | Default migration strategy | Version control | Backup/restore |
370
+ | --- | --- | --- | --- | --- | --- |
371
+ | `asyncTasks` | Queue, status, and result of long-running tasks | Business runtime data | Schema-only | Not included | Backed up |
372
+
373
+ ### Record history
374
+
375
+ | Table | Description | Data type | Default migration strategy | Version control | Backup/restore |
376
+ | --- | --- | --- | --- | --- | --- |
377
+ | `recordHistoryCollections` | Collections with field history enabled | System base data | Overwrite | Included | Backed up |
378
+ | `recordHistoryFields` | Fields that need history records | System base data | Overwrite | Included | Backed up |
379
+ | `recordHistoryTemplate` | Display template for history records | System base data | Overwrite | Included | Backed up |
380
+ | `recordFieldHistories` | Historical values and timeline for field changes | Business runtime data | Schema-only | Not included | Backed up |
381
+ | `recordFieldSnapshots` | Snapshot proof of field values at a point in time | Business runtime data | Schema-only | Not included | Backed up |
382
+ | `recordHistories` | Versioned change records for entire records | Business runtime data | Schema-only | Not included | Backed up |
383
+
384
+ ### File manager
385
+
386
+ | Table | Description | Data type | Default migration strategy | Version control | Backup/restore |
387
+ | --- | --- | --- | --- | --- | --- |
388
+ | `storages` | Local, S3, OSS, and other storage bucket configuration | System base data | Overwrite | Included | Backed up |
389
+ | `attachments` | File attachment metadata associated with business records | Business runtime data | Schema-only | Not included | Backed up |
390
+
391
+ ### Localization
392
+
393
+ | Table | Description | Data type | Default migration strategy | Version control | Backup/restore |
394
+ | --- | --- | --- | --- | --- | --- |
395
+ | `localizationTexts` | Keys and default text awaiting translation | System base data | Overwrite | Included | Backed up |
396
+ | `localizationTranslations` | Actual translated content for each language | System base data | Overwrite | Included | Backed up |
397
+
398
+ ### Localization tester
399
+
400
+ | Table | Description | Data type | Default migration strategy | Version control | Backup/restore |
401
+ | --- | --- | --- | --- | --- | --- |
402
+ | `localeTester` | Entries used for localization debugging or testing | Business runtime data | Schema-only | Not included | Backed up |
403
+
404
+ ### Custom request
405
+
406
+ | Table | Description | Data type | Default migration strategy | Version control | Backup/restore |
407
+ | --- | --- | --- | --- | --- | --- |
408
+ | `customRequests` | Custom HTTP request actions with URL and method configuration | System base data | Overwrite | Included | Backed up |
409
+ | `customRequestsRoles` | Roles allowed to call custom requests | System base data | Overwrite | Included | Backed up |
410
+
411
+ ### Custom variables
412
+
413
+ | Table | Description | Data type | Default migration strategy | Version control | Backup/restore |
414
+ | --- | --- | --- | --- | --- | --- |
415
+ | `customVariables` | Variable definitions and default values available to flows or globally | System base data | Overwrite | Included | Backed up |
416
+
417
+ ## User-defined tables
418
+
419
+ User-defined tables are treated as business data by default. In most cases, migrate only the table structure and choose schema-only.
420
+
421
+ If a user-defined table stores business configuration, categories, templates, rules, or other metadata, and those records should be synchronized from development to staging or production with the release, choose overwrite based on the business scenario.
422
+
423
+ If a user-defined table stores runtime data such as customers, orders, tickets, approval records, messages, or logs, avoid overwriting production records.
@@ -1,5 +1,8 @@
1
1
  ---
2
2
  pkg: '@nocobase/plugin-migration-manager'
3
+ title: "Migration Manager"
4
+ description: "Operations migration: migrate application configuration from one environment to another, with schema-only, overwrite, and skip rules. Depends on Backup Manager."
5
+ keywords: "Migration Manager,Migration,application configuration migration,migration rules,schema-only,overwrite,skip,database migration,operations,NocoBase"
3
6
  ---
4
7
 
5
8
  # Migration Manager
@@ -26,17 +29,15 @@ The Migration Manager transfers tables and data from the primary database based
26
29
 
27
30
  ### Built-in Rules
28
31
 
29
- Migration Manager supports five built-in rules:
32
+ Migration Manager supports the following three rules:
30
33
 
31
- - **Schema-only:** Only migrates the structure—no data is moved.
32
- - **Overwrite:** Deletes target table records, then inserts new data.
33
- - **Upsert:** Updates existing records (by primary key) or inserts new ones.
34
- - **Insert-ignore:** Inserts new records; skips existing ones.
35
- - **Skip:** No changes to the table.
34
+ - **Schema-only:** Only synchronizes table structures. No data is inserted or updated.
35
+ - **Overwrite:** Clears existing table records, then inserts new data.
36
+ - **Skip:** Does nothing to the table.
36
37
 
37
- **Additional notes:**
38
- - "Overwrite," "Upsert," and "Insert-ignore" all synchronize table structure changes.
39
- - Tables with auto-increment IDs or no primary keys do not support "Upsert" or "Insert-ignore."
38
+ **Notes:**
39
+ - Overwrite also synchronizes table-structure changes.
40
+ - User-defined business data tables usually use schema-only to avoid overwriting production business data.
40
41
 
41
42
  ### Detailed Design
42
43
 
@@ -46,6 +47,8 @@ Migration Manager supports five built-in rules:
46
47
 
47
48
  Configure migration rules
48
49
 
50
+ For the tables behind default strategies, see: [Built-in tables for applications and major plugins](./built-in-tables.md).
51
+
49
52
  ![20250102205450](https://static-docs.nocobase.com/20250102205450.png)
50
53
 
51
54
  Enable independent rules
@@ -1,52 +1,139 @@
1
+ ---
2
+ title: "Release Management"
3
+ description: "Operations release best practices: use version control to record development checkpoints, multi-app architecture to split business modules, Backup Manager for disaster recovery, and Migration Manager to publish across development, staging, and production environments."
4
+ keywords: "Release Management,Release,multi-environment deployment,version control,multi-app,Backup Manager,Migration Manager,development staging production,NocoBase"
5
+ ---
6
+
1
7
  # Release Management
2
8
 
3
9
  ## Introduction
4
10
 
5
- In real-world applications, to ensure data security and application stability, multiple environments are typically deployed, such as a development environment, a pre-release environment, and a production environment. This document provides examples of two common no-code development processes and explains in detail how to implement release management in NocoBase.
11
+ Release management standardizes how an application moves from development to production. It is not a single operation. It is a repeatable, verifiable, and recoverable release process.
12
+
13
+ Keep production stable. Complete configuration changes in development first, validate them in staging, then publish them to production. Migration files, backups, execution logs, and validation results generated during release should be retained for troubleshooting and rollback.
14
+
15
+ Recommended environments:
16
+
17
+ ```text
18
+ Development environment -> Staging environment -> Production environment
19
+ ```
20
+
21
+ Development is used for configuration and adjustment. Staging restores production constraints and validates the release result. Production carries real business traffic. Clear responsibilities make the release process easier to manage.
22
+
23
+ ## Release Model
24
+
25
+ NocoBase release management usually combines five capabilities.
26
+
27
+ | Capability | Problem solved | Stage |
28
+ | --- | --- | --- |
29
+ | Version control | Saves key checkpoints during development and provides rollback points for configuration changes | Development |
30
+ | Variables and secrets | Isolates environment-specific configuration and sensitive information | Development, staging, and production release |
31
+ | Multi-app | Splits system boundaries by business module and reduces release impact between modules | Architecture planning and team collaboration |
32
+ | Backup Manager | Saves a recoverable production state for release failures and daily incidents | Before release and daily disaster recovery |
33
+ | Migration Manager | Publishes configuration and structure changes to the target environment | Staging and production release |
34
+
35
+ ## Environment Configuration: Use Variables and Secrets
36
+
37
+ Variables and secrets isolate environment-specific configuration and sensitive information. Development, staging, and production should use their own variables and secrets.
38
+
39
+ Identify environment-related configuration during development. Database connections, third-party service addresses, test accounts, access tokens, API keys, and webhook URLs should not be hardcoded in pages, workflows, or plugin settings. Reference them through variables and secrets whenever possible. When migrating to staging or production, you only need to complete missing target-environment values as prompted, and production secrets will not be written into migration content.
40
+
41
+ Related documentation: [Variables and Secrets](../variables-and-secrets/index.md).
42
+
43
+ ## Development Stage: Record Recoverable Checkpoints
44
+
45
+ Development changes frequently. Use version control to save key checkpoints. Before a major configuration change, create a version. After adjusting data models, pages, permissions, workflows, or plugin settings, create another version.
46
+
47
+ Write version descriptions with clear business meaning. For example, “adjust customer follow-up page and field permissions,” “add ticket escalation workflow,” or “optimize asset request approval flow.” Clear descriptions make later validation, comparison, and recovery easier.
48
+
49
+ Version control mainly serves the development process. It is suitable for undoing a configuration change or preserving a milestone. After entering the release stage, synchronize configuration changes through Migration Manager. Use Backup Manager when production needs recovery.
50
+
51
+ Related documentation: [Version control](../version-control/index.md).
52
+
53
+ ## Module Splitting: Control Release Boundaries
54
+
55
+ For small systems, start with a single app. A single app is simple to deploy and works well for prototypes, small internal systems, and early-stage projects.
6
56
 
7
- ## Installation
57
+ As business complexity grows, one app may contain more pages, tables, permissions, and workflows. One configuration change may affect several teams. One release may involve several modules. At that point, consider splitting business boundaries with multi-app architecture.
8
58
 
9
- Three plugins are essential for release management. Please ensure all of the following plugins are activated.
59
+ Multi-app works well when split by business responsibility, such as CRM, tickets, assets, HR, reports, and operations backend. Each app can be developed, tested, released, and rolled back independently. High-change modules, high-risk modules, and modules serving different user groups are often better separated.
10
60
 
11
- ### Environment Variables
61
+ Plan shared capabilities before splitting. Users, organizations, authentication, permissions, and cross-app shared data all affect later release methods. Clearer boundaries make release impact easier to control.
12
62
 
13
- - Built-in plugin, installed and activated by default.
14
- - Provides centralized configuration and management of environment variables and keys, used for sensitive data storage, reusable configuration data, environment-based isolation, etc. ([View Documentation](../variables-and-secrets/index.md)).
63
+ A split release chain usually looks like this:
15
64
 
16
- ### Backup Manager
65
+ ```text
66
+ CRM app: Development environment -> Staging environment -> Production environment
67
+ Ticket app: Development environment -> Staging environment -> Production environment
68
+ Asset app: Development environment -> Staging environment -> Production environment
69
+ ```
17
70
 
18
- - Available only in the Professional edition or higher ([Learn more](https://www.nocobase.com/en/commercial)).
19
- - Supports backup and restoration, including scheduled backups, ensuring data security and quick recovery. ([View Documentation](../backup-manager/index.mdx)).
71
+ Related documentation: [Multi-app management](../../multi-app/multi-app/index.md).
20
72
 
21
- ### Migration Manager
73
+ ## Pre-release Preparation: Confirm Recovery Capability
22
74
 
23
- - Available only in the Professional edition or higher ([Learn more](https://www.nocobase.com/en/commercial)).
24
- - Used to migrate application configurations from one application environment to another ([View Documentation](../migration-manager/index.md)).
75
+ Backup is the safety baseline for production release. Create a pre-release backup before publishing to production. For important releases, verify that the backup can be restored in an independent environment.
25
76
 
26
- ## Common No-Code Development Processes
77
+ Pre-release backups and scheduled daily backups serve different purposes. Scheduled backups handle misoperation, data corruption, and infrastructure failures. Pre-release backups support quick recovery after release failure. Both should be part of the production operations strategy.
27
78
 
28
- ### Single Development Environment, One-Way Release
79
+ Before release, confirm that the backup task has completed and that the backup file can be downloaded or accessed. For important releases, perform a restore verification in an independent environment.
29
80
 
30
- This approach suits simple development processes. There is one development environment, one pre-release environment, and one production environment. Changes flow from the development environment to the pre-release environment and are finally deployed to the production environment. In this process, only the development environment can modify configurations—neither the pre-release nor the production environment allows modifications.
81
+ Backups should cover the database, user-uploaded files, and storage content required by the application runtime. Database-only records are not enough for full recovery.
82
+
83
+ Related documentation: [Backup Manager](../backup-manager/index.mdx).
84
+
85
+ ## Release Execution: Migrate to the Target Environment
86
+
87
+ Migration Manager publishes application configuration from one environment to another. Common migration content includes application configuration, table structures, plugin configuration, and some data that needs to be migrated.
88
+
89
+ Publish to staging first. After the migration file passes staging validation, use the same file for production release.
31
90
 
32
91
  ![20250106234710](https://static-docs.nocobase.com/20250106234710.png)
33
92
 
34
- When configuring migration rules, select **“Overwrite”** for built-in tables in the core and plugins if needed; for all others, you can keep the default settings if there are no special requirements.
93
+ ### Publish to Staging
35
94
 
36
- ![20250105194845](https://static-docs.nocobase.com/20250105194845.png)
95
+ After generating a migration file from development, execute it in staging first. Staging should be as close to production as possible, including core version, plugin versions, variables, secrets, permission configuration, and external-system connection methods. After execution, validate core pages, permission rules, workflows, and external integrations.
96
+
97
+ After staging validation passes, keep the same migration file for production release. Do not modify the migration file right before production. If changes are needed, go back to development, regenerate the file, and validate it again in staging.
98
+
99
+ ### Publish to Production
100
+
101
+ Schedule a maintenance window for production release. Notify users before the release, stop user access or switch to a maintenance page, and avoid new business data writes during migration. In cluster or multi-node deployments, scale the application down to one node before migration.
102
+
103
+ After confirming that the pre-release backup has completed, execute the migration file that passed staging validation. After migration, validate core business flows first, then restore user access. In multi-node deployments, restore the node count after validation passes.
37
104
 
38
- ### Multiple Development Environments, Merged Release
105
+ Migration files, backups, and execution logs are stored in their respective features. Internal release records can add release time, executor, validation result, and backup information for later troubleshooting and rollback.
39
106
 
40
- This approach suits multi-person collaboration or complex projects. Several parallel development environments can be used independently, and all changes are merged into a single pre-release environment for testing and verification before being deployed to production. In this process, only the development environment can modify configurations—neither the pre-release nor the production environment allows modifications.
107
+ ### Migration Rules
41
108
 
42
- ![20250107103829](https://static-docs.nocobase.com/20250107103829.png)
109
+ Migration rules decide how tables and records are handled in the target environment. Common strategies include overwrite, schema-only, and skip. Before configuring rules, first distinguish application and plugin built-in tables from user-defined tables.
43
110
 
44
- When configuring migration rules, select **“Insert or Update”** for built-in tables in the core and plugins if needed; for all others, you can keep the default settings if there are no special requirements.
111
+ Application and plugin built-in tables usually follow the default strategy and use overwrite first. Examples include pages, menus, blocks, permissions, and workflows. During release, development configuration is usually treated as the source of truth and synchronized to staging and production.
45
112
 
46
- ![20250105194942](https://static-docs.nocobase.com/20250105194942.png)
113
+ User-defined tables should be judged by business purpose. Tables that carry real business data usually migrate structure only and use schema-only, avoiding overwrites of production data. Some user-defined tables that store metadata such as configuration, categories, templates, or rules can use overwrite depending on the business scenario.
47
114
 
48
- ## Rollback
115
+ For the tables behind default strategies, see [Built-in tables for applications and major plugins](../migration-manager/built-in-tables.md).
49
116
 
50
- Before executing a migration, the system automatically creates a backup of the current application. If the migration fails or the results are not as expected, you can roll back and restore via the [Backup Manager](../backup-manager/index.mdx).
117
+ ![20250105194845](https://static-docs.nocobase.com/20250105194845.png)
118
+
119
+ Migration Manager mainly handles application configuration and data in the main database. External data sources, sub-app data, and some storage-directory content should be handled separately according to the actual situation.
120
+
121
+ Related documentation: [Migration Manager](../migration-manager/index.md).
122
+
123
+ ## Rollback and Recovery
124
+
125
+ When a release fails, first use the pre-release backup through the Backup Manager plugin. Before restoring, confirm that the backup file is available and follow the UI prompts to complete restoration.
126
+
127
+ If the current production environment can still access Backup Manager and only the migration execution failed, restore the pre-release backup directly in the current environment. After recovery, record the failure cause and handling result to avoid repeating the same issue in later releases.
128
+
129
+ If the current environment is unstable, or you want to reduce the risk of repeated repair attempts in a faulty environment, prepare an independent environment and restore the pre-release backup there. After restoration, validate core business flows first, then switch traffic to the recovered environment.
51
130
 
52
131
  ![20250105195029](https://static-docs.nocobase.com/20250105195029.png)
132
+
133
+ ## Related Documentation
134
+
135
+ - [Variables and Secrets](../variables-and-secrets/index.md)
136
+ - [Version control](../version-control/index.md)
137
+ - [Multi-app management](../../multi-app/multi-app/index.md)
138
+ - [Backup Manager](../backup-manager/index.mdx)
139
+ - [Migration Manager](../migration-manager/index.md)