@nocobase/plugin-ai 2.2.0-alpha.1 → 2.2.0-alpha.2

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 (867) hide show
  1. package/dist/ai/docs/nocobase/ai/ai-quick-start.md +1 -1
  2. package/dist/ai/docs/nocobase/ai/claude-code/index.md +2 -2
  3. package/dist/ai/docs/nocobase/ai/codex/index.md +2 -2
  4. package/dist/ai/docs/nocobase/ai/hermes-agent/index.md +2 -2
  5. package/dist/ai/docs/nocobase/ai/index.md +1 -1
  6. package/dist/ai/docs/nocobase/ai/install-nocobase-app.md +117 -0
  7. package/dist/ai/docs/nocobase/ai/local-development-setup.md +94 -0
  8. package/dist/ai/docs/nocobase/ai/openclaw/index.md +2 -2
  9. package/dist/ai/docs/nocobase/ai/opencode/index.md +2 -2
  10. package/dist/ai/docs/nocobase/ai/quick-start.mdx +22 -15
  11. package/dist/ai/docs/nocobase/ai/upgrade-from-2-0-to-2-1.md +57 -0
  12. package/dist/ai/docs/nocobase/ai/upgrade-nocobase-app.md +111 -0
  13. package/dist/ai/docs/nocobase/ai/windows-wsl.md +409 -0
  14. package/dist/ai/docs/nocobase/ai/workbuddy/index.md +2 -2
  15. package/dist/ai/docs/nocobase/ai-builder/index.md +17 -2
  16. package/dist/ai/docs/nocobase/ai-builder/version-control.md +120 -0
  17. package/dist/ai/docs/nocobase/ai-dev/index.md +1 -1
  18. package/dist/ai/docs/nocobase/ai-employees/knowledge-base/dev/external-knowledge-base.md +318 -0
  19. package/dist/ai/docs/nocobase/ai-employees/knowledge-base/knowledge-base/documents.md +76 -0
  20. package/dist/ai/docs/nocobase/ai-employees/knowledge-base/knowledge-base/hit-tests.md +66 -0
  21. package/dist/ai/docs/nocobase/ai-employees/knowledge-base/knowledge-base/index.md +73 -0
  22. package/dist/ai/docs/nocobase/ai-employees/knowledge-base/knowledge-base/segments.md +93 -0
  23. package/dist/ai/docs/nocobase/ai-employees/knowledge-base/knowledge-base/settings.md +77 -0
  24. package/dist/ai/docs/nocobase/ai-employees/knowledge-base/rag.md +1 -1
  25. package/dist/ai/docs/nocobase/ai-employees/workflow/nodes/knowledge/create-document.md +79 -0
  26. package/dist/ai/docs/nocobase/ai-employees/workflow/nodes/knowledge/delete-document.md +71 -0
  27. package/dist/ai/docs/nocobase/ai-employees/workflow/nodes/knowledge/index.md +92 -0
  28. package/dist/ai/docs/nocobase/ai-employees/workflow/nodes/knowledge/retrieve-document.md +87 -0
  29. package/dist/ai/docs/nocobase/ai-employees/workflow/nodes/knowledge/update-document.md +70 -0
  30. package/dist/ai/docs/nocobase/api/cli/app/restart.md +4 -0
  31. package/dist/ai/docs/nocobase/api/cli/app/start.md +7 -0
  32. package/dist/ai/docs/nocobase/api/cli/app/upgrade.md +6 -0
  33. package/dist/ai/docs/nocobase/api/cli/config/delete.md +1 -0
  34. package/dist/ai/docs/nocobase/api/cli/config/index.md +4 -1
  35. package/dist/ai/docs/nocobase/api/cli/config/set.md +1 -0
  36. package/dist/ai/docs/nocobase/api/cli/init.md +41 -4
  37. package/dist/ai/docs/nocobase/api/cli/plugin/import.md +1 -1
  38. package/dist/ai/docs/nocobase/api/cli/self/check.md +19 -2
  39. package/dist/ai/docs/nocobase/api/cli/self/index.md +1 -1
  40. package/dist/ai/docs/nocobase/api/cli/self/update.md +17 -3
  41. package/dist/ai/docs/nocobase/api/cli/skills/install.md +1 -0
  42. package/dist/ai/docs/nocobase/api/cli/skills/update.md +1 -0
  43. package/dist/ai/docs/nocobase/api/cli/source/download.md +19 -0
  44. package/dist/ai/docs/nocobase/data-sources/data-modeling/collection-fields/validation.md +11 -8
  45. package/dist/ai/docs/nocobase/development/index.md +9 -2
  46. package/dist/ai/docs/nocobase/get-started/deployment/how-to-deploy-nocobase-faster.mdx +2 -2
  47. package/dist/ai/docs/nocobase/get-started/how-nocobase-works.mdx +8 -1
  48. package/dist/ai/docs/nocobase/get-started/quickstart.md +6 -1
  49. package/dist/ai/docs/nocobase/get-started/system-requirements.md +9 -1
  50. package/dist/ai/docs/nocobase/index.md +7 -10
  51. package/dist/ai/docs/nocobase/interface-builder/blocks/data-blocks/gantt.md +204 -0
  52. package/dist/ai/docs/nocobase/interface-builder/blocks/data-blocks/map.md +105 -0
  53. package/dist/ai/docs/nocobase/interface-builder/fields/field-settings/scan-input.md +43 -0
  54. package/dist/ai/docs/nocobase/interface-builder/fields/field-settings/validation-rules.md +6 -2
  55. package/dist/ai/docs/nocobase/{quickstart → nocobase-cli}/index.md +6 -6
  56. package/dist/ai/docs/nocobase/{quickstart → nocobase-cli}/installation/cli.md +5 -9
  57. package/dist/ai/docs/nocobase/{quickstart → nocobase-cli}/installation/env.md +3 -3
  58. package/dist/ai/docs/nocobase/{quickstart → nocobase-cli}/installation/migration.md +1 -1
  59. package/dist/ai/docs/nocobase/{quickstart → nocobase-cli}/production/index.md +1 -1
  60. package/dist/ai/docs/nocobase/{quickstart → nocobase-cli}/production/reverse-proxy/caddy.md +1 -1
  61. package/dist/ai/docs/nocobase/{quickstart → nocobase-cli}/production/reverse-proxy/index.md +1 -1
  62. package/dist/ai/docs/nocobase/{quickstart → nocobase-cli}/production/reverse-proxy/nginx.md +1 -1
  63. package/dist/ai/docs/nocobase/ops-management/backup-manager/index.mdx +9 -7
  64. package/dist/ai/docs/nocobase/ops-management/migration-manager/built-in-tables.md +423 -0
  65. package/dist/ai/docs/nocobase/ops-management/migration-manager/index.md +12 -9
  66. package/dist/ai/docs/nocobase/ops-management/release-management/index.md +111 -24
  67. package/dist/ai/docs/nocobase/ops-management/version-control/index.md +21 -6
  68. package/dist/ai/docs/nocobase/plugin-development/client/index.md +1 -0
  69. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-acl/index.md +5 -3
  70. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-action-bulk-edit/index.md +5 -3
  71. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-action-bulk-update/index.md +5 -3
  72. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-action-custom-request/index.md +5 -2
  73. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-action-duplicate/index.md +4 -2
  74. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-action-export/index.md +4 -2
  75. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-action-export-pro/index.md +3 -1
  76. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-action-import/index.md +4 -2
  77. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-action-import-pro/index.md +3 -1
  78. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-action-print/index.md +3 -1
  79. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-action-template-print/index.md +5 -3
  80. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-ai/index.md +6 -2
  81. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-ai-gigachat/index.md +3 -1
  82. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-ai-knowledge-base/index.md +2 -0
  83. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-api-doc/index.md +4 -2
  84. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-api-keys/index.md +5 -3
  85. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-app-sso/index.md +16 -0
  86. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-app-supervisor/index.md +5 -3
  87. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-async-task-manager/index.md +5 -3
  88. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-audit-logger/index.md +2 -0
  89. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-audit-logs/index.md +3 -1
  90. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-auth/index.md +3 -1
  91. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-auth-cas/index.md +3 -1
  92. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-auth-dingtalk/index.md +5 -3
  93. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-auth-ldap/index.md +3 -1
  94. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-auth-oidc/index.md +3 -1
  95. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-auth-saml/index.md +3 -1
  96. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-auth-sms/index.md +5 -3
  97. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-auth-wecom/index.md +5 -3
  98. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-backup-restore/index.md +3 -1
  99. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-backups/index.md +5 -3
  100. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-block-grid-card/index.md +4 -2
  101. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-block-iframe/index.md +3 -1
  102. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-block-list/index.md +3 -1
  103. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-block-markdown/index.md +4 -2
  104. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-block-multi-step-form/index.md +6 -1
  105. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-block-template/index.md +3 -1
  106. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-block-tree/index.md +3 -1
  107. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-block-workbench/index.md +3 -1
  108. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-calendar/index.md +4 -2
  109. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-charts/index.md +5 -1
  110. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-client/index.md +4 -2
  111. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-collection-fdw/index.md +3 -1
  112. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-collection-sql/index.md +3 -1
  113. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-collection-tree/index.md +3 -1
  114. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-comments/index.md +3 -1
  115. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-custom-brand/index.md +2 -0
  116. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-custom-variables/index.md +3 -1
  117. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-data-source-external-clickhouse/index.md +5 -3
  118. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-data-source-external-doris/index.md +5 -3
  119. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-data-source-external-mariadb/index.md +3 -1
  120. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-data-source-external-mssql/index.md +3 -1
  121. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-data-source-external-mysql/index.md +3 -1
  122. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-data-source-external-nocobase/index.md +16 -0
  123. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-data-source-external-oracle/index.md +5 -3
  124. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-data-source-external-postgres/index.md +3 -1
  125. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-data-source-kingbase/index.md +4 -2
  126. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-data-source-main/index.md +5 -3
  127. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-data-source-manager/index.md +5 -3
  128. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-data-source-rest-api/index.md +3 -1
  129. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-data-visualization/index.md +5 -3
  130. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-data-visualization-echarts/index.md +8 -4
  131. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-departments/index.md +3 -1
  132. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-email-manager/index.md +4 -2
  133. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-embed/index.md +4 -1
  134. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-environment-variables/index.md +3 -1
  135. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-error-handler/index.md +3 -1
  136. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-field-attachment-url/index.md +4 -2
  137. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-field-china-region/index.md +5 -3
  138. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-field-code/index.md +3 -1
  139. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-field-component-mask/index.md +5 -3
  140. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-field-encryption/index.md +2 -0
  141. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-field-formula/index.md +3 -1
  142. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-field-m2m-array/index.md +5 -3
  143. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-field-markdown-vditor/index.md +4 -2
  144. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-field-sequence/index.md +3 -1
  145. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-field-signature/index.md +3 -1
  146. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-field-sort/index.md +3 -1
  147. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-file-manager/index.md +5 -3
  148. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-file-previewer-office/index.md +5 -3
  149. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-file-storage-s3-pro/index.md +4 -2
  150. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-flow-engine/index.md +4 -2
  151. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-form-drafts/index.md +5 -3
  152. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-gantt/index.md +3 -1
  153. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-graph-collection-manager/index.md +8 -1
  154. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-idp-oauth/index.md +14 -0
  155. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-ip-restriction/index.md +2 -0
  156. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-kanban/index.md +4 -2
  157. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-license/index.md +3 -1
  158. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-locale-tester/index.md +3 -1
  159. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-localization/index.md +4 -2
  160. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-lock-adapter-redis/index.md +2 -0
  161. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-logger/index.md +4 -2
  162. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-map/index.md +87 -3
  163. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-mcp-server/index.md +14 -0
  164. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-migration-manager/index.md +5 -3
  165. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-mobile/index.md +8 -1
  166. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-mobile-client/index.md +7 -3
  167. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-multi-app-manager/index.md +3 -1
  168. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-multi-app-share-collection/index.md +3 -1
  169. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-multi-keyword-filter/index.md +4 -1
  170. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-multi-portal/index.md +16 -0
  171. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-multi-space/index.md +5 -3
  172. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-notification-email/index.md +3 -1
  173. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-notification-in-app-message/index.md +3 -1
  174. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-notification-manager/index.md +5 -3
  175. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-password-policy/index.md +2 -0
  176. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-public-forms/index.md +5 -3
  177. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-pubsub-adapter-redis/index.md +2 -0
  178. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-queue-adapter-rabbitmq/index.md +2 -0
  179. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-queue-adapter-redis/index.md +2 -0
  180. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-record-history/index.md +2 -0
  181. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-request-encryption/index.md +2 -0
  182. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-snapshot-field/index.md +6 -4
  183. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-system-settings/index.md +3 -1
  184. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-telemetry/index.md +2 -0
  185. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-telemetry-prometheus/index.md +2 -0
  186. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-text-copy/index.md +5 -3
  187. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-theme-editor/index.md +4 -2
  188. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-two-factor-authentication/index.md +2 -0
  189. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-ui-layout/index.md +14 -0
  190. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-ui-schema-storage/index.md +4 -2
  191. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-ui-templates/index.md +4 -2
  192. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-user-data-sync/index.md +5 -3
  193. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-users/index.md +4 -2
  194. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-verification/index.md +3 -1
  195. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-verification-totp-authenticator/index.md +2 -0
  196. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-version-control/index.md +3 -1
  197. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-workerid-allocator-redis/index.md +4 -2
  198. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-workflow/index.md +3 -1
  199. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-workflow-action-trigger/index.md +4 -2
  200. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-workflow-aggregate/index.md +5 -3
  201. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-workflow-approval/index.md +4 -2
  202. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-workflow-cc/index.md +3 -1
  203. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-workflow-custom-action-trigger/index.md +4 -2
  204. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-workflow-date-calculation/index.md +5 -3
  205. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-workflow-delay/index.md +4 -2
  206. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-workflow-dynamic-calculation/index.md +6 -4
  207. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-workflow-javascript/index.md +5 -3
  208. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-workflow-json-query/index.md +5 -3
  209. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-workflow-json-variable-mapping/index.md +3 -1
  210. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-workflow-loop/index.md +4 -2
  211. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-workflow-mailer/index.md +5 -3
  212. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-workflow-manual/index.md +5 -3
  213. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-workflow-notification/index.md +5 -3
  214. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-workflow-parallel/index.md +5 -3
  215. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-workflow-request/index.md +5 -3
  216. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-workflow-request-interceptor/index.md +4 -2
  217. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-workflow-response-message/index.md +4 -2
  218. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-workflow-sql/index.md +5 -3
  219. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-workflow-subflow/index.md +3 -1
  220. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-workflow-test/index.md +4 -2
  221. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-workflow-transaction/index.md +16 -0
  222. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-workflow-variable/index.md +5 -3
  223. package/dist/ai/docs/nocobase/plugins/@nocobase/plugin-workflow-webhook/index.md +4 -2
  224. package/dist/ai/docs/nocobase/shared-components/create-form-registry.md +38 -0
  225. package/dist/ai/docs/nocobase/shared-components/filter/collection-filter-panel.md +44 -0
  226. package/dist/ai/docs/nocobase/shared-components/filter/index.md +44 -0
  227. package/dist/ai/docs/nocobase/shared-components/form/code-scanner.md +34 -0
  228. package/dist/ai/docs/nocobase/shared-components/form/dialog-form-layout.md +45 -0
  229. package/dist/ai/docs/nocobase/shared-components/form/drawer-form-layout.md +45 -0
  230. package/dist/ai/docs/nocobase/shared-components/form/env-variable-input.md +30 -0
  231. package/dist/ai/docs/nocobase/shared-components/form/file-size-input.md +24 -0
  232. package/dist/ai/docs/nocobase/shared-components/form/json-text-area.md +28 -0
  233. package/dist/ai/docs/nocobase/shared-components/form/password-input.md +23 -0
  234. package/dist/ai/docs/nocobase/shared-components/form/remote-select.md +34 -0
  235. package/dist/ai/docs/nocobase/shared-components/form/scan-input.md +27 -0
  236. package/dist/ai/docs/nocobase/shared-components/form/typed-variable-input.md +30 -0
  237. package/dist/ai/docs/nocobase/shared-components/form/variable-input.md +35 -0
  238. package/dist/ai/docs/nocobase/shared-components/form/variable-json-text-area.md +33 -0
  239. package/dist/ai/docs/nocobase/shared-components/form/variable-text-area.md +33 -0
  240. package/dist/ai/docs/nocobase/shared-components/icon.md +21 -0
  241. package/dist/ai/docs/nocobase/shared-components/index.md +70 -0
  242. package/dist/ai/docs/nocobase/shared-components/table/index.md +39 -0
  243. package/dist/ai/docs/nocobase/shared-components/table/sort-handle.md +37 -0
  244. package/dist/ai/docs/nocobase/shared-components/table/sortable-row.md +36 -0
  245. package/dist/ai/docs/nocobase/workflow/nodes/index.md +2 -1
  246. package/dist/ai/docs/nocobase/workflow/nodes/transaction.md +81 -0
  247. package/dist/client/{406.9a530334eae8cede.js → 406.15c09d98faa2ccf1.js} +1 -1
  248. package/dist/client/{428.fdd0cc3cfd1632ef.js → 428.5eb4f53ddbb6a3b8.js} +1 -1
  249. package/dist/client/561.7ec804ef39ec7dcd.js +10 -0
  250. package/dist/client/580.35ba54ff91b7fe6d.js +10 -0
  251. package/dist/client/{646.b0ed728921b007d4.js → 646.d4483b4ff23da0a0.js} +1 -1
  252. package/dist/client/ai-employees/ProfileCard.d.ts +1 -0
  253. package/dist/client/ai-employees/admin/mcp/schemas.d.ts +46 -18
  254. package/dist/client/ai-employees/chatbox/hooks/useChatMessageActions.d.ts +2 -3
  255. package/dist/client/ai-employees/form-filler/tools/index.d.ts +8 -0
  256. package/dist/client/components/ListCollapse.d.ts +2 -1
  257. package/dist/client/features/components.d.ts +9 -0
  258. package/dist/client/features/feature-manager.d.ts +1 -9
  259. package/dist/client/features/index.d.ts +1 -9
  260. package/dist/client/features/vector-database-provider.d.ts +1 -10
  261. package/dist/client/features/vector-store-provider.d.ts +9 -0
  262. package/dist/client/index.d.ts +1 -0
  263. package/dist/client/index.js +3 -3
  264. package/dist/client/manager/ai-feature-manager.d.ts +1 -6
  265. package/dist/client-v2/features/components.d.ts +14 -0
  266. package/dist/client-v2/features/feature-manager.d.ts +19 -0
  267. package/dist/client-v2/features/index.d.ts +22 -0
  268. package/dist/client-v2/features/vector-database-provider.d.ts +18 -0
  269. package/dist/client-v2/features/vector-store-provider.d.ts +38 -0
  270. package/dist/client-v2/index.d.ts +5 -0
  271. package/dist/client-v2/index.js +1 -1
  272. package/dist/client-v2/manager/ai-feature-manager.d.ts +15 -0
  273. package/dist/collections/ai-mcp-clients.js +5 -0
  274. package/dist/externalVersion.js +22 -22
  275. package/dist/locale/en-US.json +8 -3
  276. package/dist/locale/zh-CN.json +8 -3
  277. package/dist/node_modules/@langchain/xai/dist/chat_models/completions.cjs +25 -34
  278. package/dist/node_modules/@langchain/xai/dist/chat_models/completions.d.cts +10 -22
  279. package/dist/node_modules/@langchain/xai/dist/chat_models/completions.d.ts +10 -22
  280. package/dist/node_modules/@langchain/xai/dist/chat_models/completions.js +17 -25
  281. package/dist/node_modules/@langchain/xai/dist/chat_models/index.cjs +2 -2
  282. package/dist/node_modules/@langchain/xai/dist/chat_models/index.d.cts +3 -0
  283. package/dist/node_modules/@langchain/xai/dist/chat_models/index.js +3 -2
  284. package/dist/node_modules/@langchain/xai/dist/chat_models/responses-types.d.cts +5 -12
  285. package/dist/node_modules/@langchain/xai/dist/chat_models/responses-types.d.ts +5 -12
  286. package/dist/node_modules/@langchain/xai/dist/chat_models/responses.cjs +18 -19
  287. package/dist/node_modules/@langchain/xai/dist/chat_models/responses.d.cts +1 -1
  288. package/dist/node_modules/@langchain/xai/dist/chat_models/responses.d.ts +1 -1
  289. package/dist/node_modules/@langchain/xai/dist/chat_models/responses.js +13 -13
  290. package/dist/node_modules/@langchain/xai/dist/converters/responses.cjs +16 -22
  291. package/dist/node_modules/@langchain/xai/dist/converters/responses.js +7 -12
  292. package/dist/node_modules/@langchain/xai/dist/index.cjs +2 -2
  293. package/dist/node_modules/@langchain/xai/dist/index.d.ts +0 -1
  294. package/dist/node_modules/@langchain/xai/dist/index.js +1 -2
  295. package/dist/node_modules/@langchain/xai/dist/live_search.cjs +4 -5
  296. package/dist/node_modules/@langchain/xai/dist/live_search.js +4 -4
  297. package/dist/node_modules/@langchain/xai/dist/profiles.cjs +81 -97
  298. package/dist/node_modules/@langchain/xai/dist/profiles.js +81 -96
  299. package/dist/node_modules/@langchain/xai/dist/tools/code_execution.cjs +1 -2
  300. package/dist/node_modules/@langchain/xai/dist/tools/code_execution.js +1 -1
  301. package/dist/node_modules/@langchain/xai/dist/tools/collections_search.cjs +1 -2
  302. package/dist/node_modules/@langchain/xai/dist/tools/collections_search.js +1 -1
  303. package/dist/node_modules/@langchain/xai/dist/tools/index.cjs +6 -7
  304. package/dist/node_modules/@langchain/xai/dist/tools/index.d.cts +1 -2
  305. package/dist/node_modules/@langchain/xai/dist/tools/index.d.ts +1 -2
  306. package/dist/node_modules/@langchain/xai/dist/tools/index.js +6 -7
  307. package/dist/node_modules/@langchain/xai/dist/tools/live_search.cjs +3 -7
  308. package/dist/node_modules/@langchain/xai/dist/tools/live_search.d.cts +1 -2
  309. package/dist/node_modules/@langchain/xai/dist/tools/live_search.d.ts +1 -2
  310. package/dist/node_modules/@langchain/xai/dist/tools/live_search.js +3 -6
  311. package/dist/node_modules/@langchain/xai/dist/tools/web_search.cjs +1 -2
  312. package/dist/node_modules/@langchain/xai/dist/tools/web_search.js +1 -1
  313. package/dist/node_modules/@langchain/xai/dist/tools/x_search.cjs +1 -2
  314. package/dist/node_modules/@langchain/xai/dist/tools/x_search.js +1 -1
  315. package/dist/node_modules/@langchain/xai/package.json +1 -1
  316. package/dist/node_modules/fs-extra/package.json +1 -1
  317. package/dist/node_modules/jsonrepair/package.json +1 -1
  318. package/dist/node_modules/just-bash/package.json +1 -1
  319. package/dist/node_modules/nodejs-snowflake/package.json +1 -1
  320. package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/branded.d.mts +1 -1
  321. package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/branded.d.ts +1 -1
  322. package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/catch.d.mts +1 -1
  323. package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/catch.d.ts +1 -1
  324. package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/readonly.d.mts +1 -1
  325. package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/readonly.d.ts +1 -1
  326. package/dist/node_modules/openai/api-promise.d.mts +1 -0
  327. package/dist/node_modules/openai/api-promise.d.ts +1 -0
  328. package/dist/node_modules/openai/auth/index.d.mts +4 -0
  329. package/dist/node_modules/openai/auth/index.d.ts +4 -0
  330. package/dist/node_modules/openai/auth/index.js +11 -0
  331. package/dist/node_modules/openai/auth/subject-token-providers.d.mts +20 -0
  332. package/dist/node_modules/openai/auth/subject-token-providers.d.ts +20 -0
  333. package/dist/node_modules/openai/auth/subject-token-providers.js +127 -0
  334. package/dist/node_modules/openai/auth/types.d.mts +23 -0
  335. package/dist/node_modules/openai/auth/types.d.ts +23 -0
  336. package/dist/node_modules/openai/auth/types.js +3 -0
  337. package/dist/node_modules/openai/auth/workload-identity-auth.d.mts +16 -0
  338. package/dist/node_modules/openai/auth/workload-identity-auth.d.ts +16 -0
  339. package/dist/node_modules/openai/auth/workload-identity-auth.js +95 -0
  340. package/dist/node_modules/openai/azure.d.mts +6 -2
  341. package/dist/node_modules/openai/azure.d.ts +6 -2
  342. package/dist/node_modules/openai/azure.js +4 -3
  343. package/dist/node_modules/openai/beta/realtime/websocket.js +7 -2
  344. package/dist/node_modules/openai/beta/realtime/ws.js +5 -1
  345. package/dist/node_modules/openai/bin/migration-config.json +1120 -0
  346. package/dist/node_modules/openai/client.d.mts +72 -10
  347. package/dist/node_modules/openai/client.d.ts +72 -10
  348. package/dist/node_modules/openai/client.js +207 -28
  349. package/dist/node_modules/openai/core/EventEmitter.d.mts +56 -0
  350. package/dist/node_modules/openai/core/EventEmitter.d.ts +56 -0
  351. package/dist/node_modules/openai/core/EventEmitter.js +93 -0
  352. package/dist/node_modules/openai/core/error.d.mts +15 -0
  353. package/dist/node_modules/openai/core/error.d.ts +15 -0
  354. package/dist/node_modules/openai/core/error.js +34 -1
  355. package/dist/node_modules/openai/core/pagination.d.mts +18 -0
  356. package/dist/node_modules/openai/core/pagination.d.ts +18 -0
  357. package/dist/node_modules/openai/core/pagination.js +32 -1
  358. package/dist/node_modules/openai/core/streaming.d.mts +1 -1
  359. package/dist/node_modules/openai/core/streaming.d.ts +1 -1
  360. package/dist/node_modules/openai/core/streaming.js +2 -2
  361. package/dist/node_modules/openai/error.d.mts +1 -0
  362. package/dist/node_modules/openai/error.d.ts +1 -0
  363. package/dist/node_modules/openai/index.d.mts +1 -1
  364. package/dist/node_modules/openai/index.d.ts +1 -1
  365. package/dist/node_modules/openai/index.js +1 -1
  366. package/dist/node_modules/openai/internal/parse.js +2 -2
  367. package/dist/node_modules/openai/internal/qs/index.d.mts +2 -2
  368. package/dist/node_modules/openai/internal/qs/index.d.ts +2 -2
  369. package/dist/node_modules/openai/internal/request-options.d.mts +5 -0
  370. package/dist/node_modules/openai/internal/request-options.d.ts +5 -0
  371. package/dist/node_modules/openai/internal/shims.d.mts +6 -0
  372. package/dist/node_modules/openai/internal/shims.d.ts +6 -0
  373. package/dist/node_modules/openai/internal/types.d.mts +17 -11
  374. package/dist/node_modules/openai/internal/types.d.ts +17 -11
  375. package/dist/node_modules/openai/internal/utils/env.js +2 -2
  376. package/dist/node_modules/openai/internal/utils/log.js +2 -0
  377. package/dist/node_modules/openai/internal/utils/query.d.mts +2 -0
  378. package/dist/node_modules/openai/internal/utils/query.d.ts +2 -0
  379. package/dist/node_modules/openai/internal/utils/query.js +10 -0
  380. package/dist/node_modules/openai/internal/utils.d.mts +1 -0
  381. package/dist/node_modules/openai/internal/utils.d.ts +1 -0
  382. package/dist/node_modules/openai/internal/utils.js +1 -0
  383. package/dist/node_modules/openai/internal/ws-adapter-browser.d.mts +34 -0
  384. package/dist/node_modules/openai/internal/ws-adapter-browser.d.ts +34 -0
  385. package/dist/node_modules/openai/internal/ws-adapter-browser.js +88 -0
  386. package/dist/node_modules/openai/internal/ws-adapter-node.d.mts +27 -0
  387. package/dist/node_modules/openai/internal/ws-adapter-node.d.ts +27 -0
  388. package/dist/node_modules/openai/internal/ws-adapter-node.js +90 -0
  389. package/dist/node_modules/openai/internal/ws-adapter.d.mts +24 -0
  390. package/dist/node_modules/openai/internal/ws-adapter.d.ts +24 -0
  391. package/dist/node_modules/openai/internal/ws-adapter.js +11 -0
  392. package/dist/node_modules/openai/internal/ws.d.mts +80 -0
  393. package/dist/node_modules/openai/internal/ws.d.ts +80 -0
  394. package/dist/node_modules/openai/internal/ws.js +153 -0
  395. package/dist/node_modules/openai/package.json +1 -1
  396. package/dist/node_modules/openai/pagination.d.mts +1 -0
  397. package/dist/node_modules/openai/pagination.d.ts +1 -0
  398. package/dist/node_modules/openai/realtime/websocket.js +7 -2
  399. package/dist/node_modules/openai/realtime/ws.js +5 -1
  400. package/dist/node_modules/openai/resource.d.mts +1 -0
  401. package/dist/node_modules/openai/resource.d.ts +1 -0
  402. package/dist/node_modules/openai/resources/admin/admin.d.mts +10 -0
  403. package/dist/node_modules/openai/resources/admin/admin.d.ts +10 -0
  404. package/dist/node_modules/openai/resources/admin/admin.js +17 -0
  405. package/dist/node_modules/openai/resources/admin/index.d.mts +3 -0
  406. package/dist/node_modules/openai/resources/admin/index.d.ts +3 -0
  407. package/dist/node_modules/openai/resources/admin/index.js +9 -0
  408. package/dist/node_modules/openai/resources/admin/organization/admin-api-keys.d.mts +140 -0
  409. package/dist/node_modules/openai/resources/admin/organization/admin-api-keys.d.ts +140 -0
  410. package/dist/node_modules/openai/resources/admin/organization/admin-api-keys.js +81 -0
  411. package/dist/node_modules/openai/resources/admin/organization/audit-logs.d.mts +1267 -0
  412. package/dist/node_modules/openai/resources/admin/organization/audit-logs.d.ts +1267 -0
  413. package/dist/node_modules/openai/resources/admin/organization/audit-logs.js +31 -0
  414. package/dist/node_modules/openai/resources/admin/organization/certificates.d.mts +322 -0
  415. package/dist/node_modules/openai/resources/admin/organization/certificates.d.ts +322 -0
  416. package/dist/node_modules/openai/resources/admin/organization/certificates.js +144 -0
  417. package/dist/node_modules/openai/resources/admin/organization/data-retention.d.mts +50 -0
  418. package/dist/node_modules/openai/resources/admin/organization/data-retention.d.ts +50 -0
  419. package/dist/node_modules/openai/resources/admin/organization/data-retention.js +42 -0
  420. package/dist/node_modules/openai/resources/admin/organization/groups/groups.d.mts +160 -0
  421. package/dist/node_modules/openai/resources/admin/organization/groups/groups.d.ts +160 -0
  422. package/dist/node_modules/openai/resources/admin/organization/groups/groups.js +109 -0
  423. package/dist/node_modules/openai/resources/admin/organization/groups/index.d.mts +4 -0
  424. package/dist/node_modules/openai/resources/admin/organization/groups/index.d.ts +4 -0
  425. package/dist/node_modules/openai/resources/admin/organization/groups/index.js +11 -0
  426. package/dist/node_modules/openai/resources/admin/organization/groups/roles.d.mts +275 -0
  427. package/dist/node_modules/openai/resources/admin/organization/groups/roles.d.ts +275 -0
  428. package/dist/node_modules/openai/resources/admin/organization/groups/roles.js +84 -0
  429. package/dist/node_modules/openai/resources/admin/organization/groups/users.d.mts +164 -0
  430. package/dist/node_modules/openai/resources/admin/organization/groups/users.d.ts +164 -0
  431. package/dist/node_modules/openai/resources/admin/organization/groups/users.js +84 -0
  432. package/dist/node_modules/openai/resources/admin/organization/groups.d.mts +2 -0
  433. package/dist/node_modules/openai/resources/admin/organization/groups.d.ts +2 -0
  434. package/dist/node_modules/openai/resources/admin/organization/groups.js +6 -0
  435. package/dist/node_modules/openai/resources/admin/organization/index.d.mts +13 -0
  436. package/dist/node_modules/openai/resources/admin/organization/index.d.ts +13 -0
  437. package/dist/node_modules/openai/resources/admin/organization/index.js +29 -0
  438. package/dist/node_modules/openai/resources/admin/organization/invites.d.mts +153 -0
  439. package/dist/node_modules/openai/resources/admin/organization/invites.d.ts +153 -0
  440. package/dist/node_modules/openai/resources/admin/organization/invites.js +83 -0
  441. package/dist/node_modules/openai/resources/admin/organization/organization.d.mts +50 -0
  442. package/dist/node_modules/openai/resources/admin/organization/organization.d.ts +50 -0
  443. package/dist/node_modules/openai/resources/admin/organization/organization.js +57 -0
  444. package/dist/node_modules/openai/resources/admin/organization/projects/api-keys.d.mts +167 -0
  445. package/dist/node_modules/openai/resources/admin/organization/projects/api-keys.d.ts +167 -0
  446. package/dist/node_modules/openai/resources/admin/organization/projects/api-keys.js +68 -0
  447. package/dist/node_modules/openai/resources/admin/organization/projects/certificates.d.mts +186 -0
  448. package/dist/node_modules/openai/resources/admin/organization/projects/certificates.d.ts +186 -0
  449. package/dist/node_modules/openai/resources/admin/organization/projects/certificates.js +64 -0
  450. package/dist/node_modules/openai/resources/admin/organization/projects/data-retention.d.mts +53 -0
  451. package/dist/node_modules/openai/resources/admin/organization/projects/data-retention.d.ts +53 -0
  452. package/dist/node_modules/openai/resources/admin/organization/projects/data-retention.js +46 -0
  453. package/dist/node_modules/openai/resources/admin/organization/projects/groups/groups.d.mts +142 -0
  454. package/dist/node_modules/openai/resources/admin/organization/projects/groups/groups.d.ts +142 -0
  455. package/dist/node_modules/openai/resources/admin/organization/projects/groups/groups.js +93 -0
  456. package/dist/node_modules/openai/resources/admin/organization/projects/groups/index.d.mts +3 -0
  457. package/dist/node_modules/openai/resources/admin/organization/projects/groups/index.d.ts +3 -0
  458. package/dist/node_modules/openai/resources/admin/organization/projects/groups/index.js +9 -0
  459. package/dist/node_modules/openai/resources/admin/organization/projects/groups/roles.d.mts +292 -0
  460. package/dist/node_modules/openai/resources/admin/organization/projects/groups/roles.d.ts +292 -0
  461. package/dist/node_modules/openai/resources/admin/organization/projects/groups/roles.js +87 -0
  462. package/dist/node_modules/openai/resources/admin/organization/projects/groups.d.mts +2 -0
  463. package/dist/node_modules/openai/resources/admin/organization/projects/groups.d.ts +2 -0
  464. package/dist/node_modules/openai/resources/admin/organization/projects/groups.js +6 -0
  465. package/dist/node_modules/openai/resources/admin/organization/projects/hosted-tool-permissions.d.mts +174 -0
  466. package/dist/node_modules/openai/resources/admin/organization/projects/hosted-tool-permissions.d.ts +174 -0
  467. package/dist/node_modules/openai/resources/admin/organization/projects/hosted-tool-permissions.js +45 -0
  468. package/dist/node_modules/openai/resources/admin/organization/projects/index.d.mts +13 -0
  469. package/dist/node_modules/openai/resources/admin/organization/projects/index.d.ts +13 -0
  470. package/dist/node_modules/openai/resources/admin/organization/projects/index.js +29 -0
  471. package/dist/node_modules/openai/resources/admin/organization/projects/model-permissions.d.mts +86 -0
  472. package/dist/node_modules/openai/resources/admin/organization/projects/model-permissions.d.ts +86 -0
  473. package/dist/node_modules/openai/resources/admin/organization/projects/model-permissions.js +63 -0
  474. package/dist/node_modules/openai/resources/admin/organization/projects/projects.d.mts +188 -0
  475. package/dist/node_modules/openai/resources/admin/organization/projects/projects.d.ts +188 -0
  476. package/dist/node_modules/openai/resources/admin/organization/projects/projects.js +149 -0
  477. package/dist/node_modules/openai/resources/admin/organization/projects/rate-limits.d.mts +120 -0
  478. package/dist/node_modules/openai/resources/admin/organization/projects/rate-limits.d.ts +120 -0
  479. package/dist/node_modules/openai/resources/admin/organization/projects/rate-limits.js +47 -0
  480. package/dist/node_modules/openai/resources/admin/organization/projects/roles.d.mts +146 -0
  481. package/dist/node_modules/openai/resources/admin/organization/projects/roles.d.ts +146 -0
  482. package/dist/node_modules/openai/resources/admin/organization/projects/roles.js +108 -0
  483. package/dist/node_modules/openai/resources/admin/organization/projects/service-accounts.d.mts +168 -0
  484. package/dist/node_modules/openai/resources/admin/organization/projects/service-accounts.d.ts +168 -0
  485. package/dist/node_modules/openai/resources/admin/organization/projects/service-accounts.js +101 -0
  486. package/dist/node_modules/openai/resources/admin/organization/projects/spend-alerts.d.mts +241 -0
  487. package/dist/node_modules/openai/resources/admin/organization/projects/spend-alerts.d.ts +241 -0
  488. package/dist/node_modules/openai/resources/admin/organization/projects/spend-alerts.js +102 -0
  489. package/dist/node_modules/openai/resources/admin/organization/projects/users/index.d.mts +3 -0
  490. package/dist/node_modules/openai/resources/admin/organization/projects/users/index.d.ts +3 -0
  491. package/dist/node_modules/openai/resources/admin/organization/projects/users/index.js +9 -0
  492. package/dist/node_modules/openai/resources/admin/organization/projects/users/roles.d.mts +266 -0
  493. package/dist/node_modules/openai/resources/admin/organization/projects/users/roles.d.ts +266 -0
  494. package/dist/node_modules/openai/resources/admin/organization/projects/users/roles.js +87 -0
  495. package/dist/node_modules/openai/resources/admin/organization/projects/users/users.d.mts +157 -0
  496. package/dist/node_modules/openai/resources/admin/organization/projects/users/users.d.ts +157 -0
  497. package/dist/node_modules/openai/resources/admin/organization/projects/users/users.js +116 -0
  498. package/dist/node_modules/openai/resources/admin/organization/projects/users.d.mts +2 -0
  499. package/dist/node_modules/openai/resources/admin/organization/projects/users.d.ts +2 -0
  500. package/dist/node_modules/openai/resources/admin/organization/projects/users.js +6 -0
  501. package/dist/node_modules/openai/resources/admin/organization/projects.d.mts +2 -0
  502. package/dist/node_modules/openai/resources/admin/organization/projects.d.ts +2 -0
  503. package/dist/node_modules/openai/resources/admin/organization/projects.js +6 -0
  504. package/dist/node_modules/openai/resources/admin/organization/roles.d.mts +153 -0
  505. package/dist/node_modules/openai/resources/admin/organization/roles.d.ts +153 -0
  506. package/dist/node_modules/openai/resources/admin/organization/roles.js +96 -0
  507. package/dist/node_modules/openai/resources/admin/organization/spend-alerts.d.mts +224 -0
  508. package/dist/node_modules/openai/resources/admin/organization/spend-alerts.d.ts +224 -0
  509. package/dist/node_modules/openai/resources/admin/organization/spend-alerts.js +93 -0
  510. package/dist/node_modules/openai/resources/admin/organization/usage.d.mts +5123 -0
  511. package/dist/node_modules/openai/resources/admin/organization/usage.d.ts +5123 -0
  512. package/dist/node_modules/openai/resources/admin/organization/usage.js +207 -0
  513. package/dist/node_modules/openai/resources/admin/organization/users/index.d.mts +3 -0
  514. package/dist/node_modules/openai/resources/admin/organization/users/index.d.ts +3 -0
  515. package/dist/node_modules/openai/resources/admin/organization/users/index.js +9 -0
  516. package/dist/node_modules/openai/resources/admin/organization/users/roles.d.mts +249 -0
  517. package/dist/node_modules/openai/resources/admin/organization/users/roles.d.ts +249 -0
  518. package/dist/node_modules/openai/resources/admin/organization/users/roles.js +84 -0
  519. package/dist/node_modules/openai/resources/admin/organization/users/users.d.mts +185 -0
  520. package/dist/node_modules/openai/resources/admin/organization/users/users.d.ts +185 -0
  521. package/dist/node_modules/openai/resources/admin/organization/users/users.js +84 -0
  522. package/dist/node_modules/openai/resources/admin/organization/users.d.mts +2 -0
  523. package/dist/node_modules/openai/resources/admin/organization/users.d.ts +2 -0
  524. package/dist/node_modules/openai/resources/admin/organization/users.js +6 -0
  525. package/dist/node_modules/openai/resources/admin/organization.d.mts +2 -0
  526. package/dist/node_modules/openai/resources/admin/organization.d.ts +2 -0
  527. package/dist/node_modules/openai/resources/admin/organization.js +6 -0
  528. package/dist/node_modules/openai/resources/admin.d.mts +2 -0
  529. package/dist/node_modules/openai/resources/admin.d.ts +2 -0
  530. package/dist/node_modules/openai/resources/admin.js +6 -0
  531. package/dist/node_modules/openai/resources/audio/speech.d.mts +22 -5
  532. package/dist/node_modules/openai/resources/audio/speech.d.ts +22 -5
  533. package/dist/node_modules/openai/resources/audio/speech.js +8 -2
  534. package/dist/node_modules/openai/resources/audio/transcriptions.d.mts +6 -0
  535. package/dist/node_modules/openai/resources/audio/transcriptions.d.ts +6 -0
  536. package/dist/node_modules/openai/resources/audio/transcriptions.js +4 -0
  537. package/dist/node_modules/openai/resources/audio/translations.d.mts +3 -0
  538. package/dist/node_modules/openai/resources/audio/translations.d.ts +3 -0
  539. package/dist/node_modules/openai/resources/audio/translations.js +4 -1
  540. package/dist/node_modules/openai/resources/batches.d.mts +8 -4
  541. package/dist/node_modules/openai/resources/batches.d.ts +8 -4
  542. package/dist/node_modules/openai/resources/batches.js +14 -4
  543. package/dist/node_modules/openai/resources/beta/assistants.d.mts +6 -2
  544. package/dist/node_modules/openai/resources/beta/assistants.d.ts +6 -2
  545. package/dist/node_modules/openai/resources/beta/assistants.js +8 -0
  546. package/dist/node_modules/openai/resources/beta/chatkit/sessions.d.mts +4 -2
  547. package/dist/node_modules/openai/resources/beta/chatkit/sessions.d.ts +4 -2
  548. package/dist/node_modules/openai/resources/beta/chatkit/sessions.js +6 -2
  549. package/dist/node_modules/openai/resources/beta/chatkit/threads.d.mts +4 -4
  550. package/dist/node_modules/openai/resources/beta/chatkit/threads.d.ts +4 -4
  551. package/dist/node_modules/openai/resources/beta/chatkit/threads.js +13 -5
  552. package/dist/node_modules/openai/resources/beta/realtime/sessions.js +1 -0
  553. package/dist/node_modules/openai/resources/beta/realtime/transcription-sessions.js +1 -0
  554. package/dist/node_modules/openai/resources/beta/threads/messages.d.mts +2 -0
  555. package/dist/node_modules/openai/resources/beta/threads/messages.d.ts +2 -0
  556. package/dist/node_modules/openai/resources/beta/threads/messages.js +7 -0
  557. package/dist/node_modules/openai/resources/beta/threads/runs/runs.d.mts +2 -0
  558. package/dist/node_modules/openai/resources/beta/threads/runs/runs.d.ts +2 -0
  559. package/dist/node_modules/openai/resources/beta/threads/runs/runs.js +10 -0
  560. package/dist/node_modules/openai/resources/beta/threads/runs/steps.d.mts +2 -0
  561. package/dist/node_modules/openai/resources/beta/threads/runs/steps.d.ts +2 -0
  562. package/dist/node_modules/openai/resources/beta/threads/runs/steps.js +4 -0
  563. package/dist/node_modules/openai/resources/beta/threads/threads.d.mts +8 -4
  564. package/dist/node_modules/openai/resources/beta/threads/threads.d.ts +8 -4
  565. package/dist/node_modules/openai/resources/beta/threads/threads.js +8 -0
  566. package/dist/node_modules/openai/resources/chat/completions/completions.d.mts +37 -18
  567. package/dist/node_modules/openai/resources/chat/completions/completions.d.ts +37 -18
  568. package/dist/node_modules/openai/resources/chat/completions/completions.js +27 -5
  569. package/dist/node_modules/openai/resources/chat/completions/messages.d.mts +3 -0
  570. package/dist/node_modules/openai/resources/chat/completions/messages.d.ts +3 -0
  571. package/dist/node_modules/openai/resources/chat/completions/messages.js +4 -1
  572. package/dist/node_modules/openai/resources/completions.d.mts +9 -3
  573. package/dist/node_modules/openai/resources/completions.d.ts +9 -3
  574. package/dist/node_modules/openai/resources/completions.js +9 -1
  575. package/dist/node_modules/openai/resources/containers/containers.js +11 -3
  576. package/dist/node_modules/openai/resources/containers/files/content.js +1 -0
  577. package/dist/node_modules/openai/resources/containers/files/files.js +7 -2
  578. package/dist/node_modules/openai/resources/conversations/conversations.d.mts +15 -0
  579. package/dist/node_modules/openai/resources/conversations/conversations.d.ts +15 -0
  580. package/dist/node_modules/openai/resources/conversations/conversations.js +17 -4
  581. package/dist/node_modules/openai/resources/conversations/items.d.mts +4 -1
  582. package/dist/node_modules/openai/resources/conversations/items.d.ts +4 -1
  583. package/dist/node_modules/openai/resources/conversations/items.js +14 -3
  584. package/dist/node_modules/openai/resources/embeddings.d.mts +3 -0
  585. package/dist/node_modules/openai/resources/embeddings.d.ts +3 -0
  586. package/dist/node_modules/openai/resources/embeddings.js +4 -0
  587. package/dist/node_modules/openai/resources/evals/evals.d.mts +3 -0
  588. package/dist/node_modules/openai/resources/evals/evals.d.ts +3 -0
  589. package/dist/node_modules/openai/resources/evals/evals.js +12 -5
  590. package/dist/node_modules/openai/resources/evals/runs/output-items.d.mts +3 -0
  591. package/dist/node_modules/openai/resources/evals/runs/output-items.d.ts +3 -0
  592. package/dist/node_modules/openai/resources/evals/runs/output-items.js +8 -2
  593. package/dist/node_modules/openai/resources/evals/runs/runs.d.mts +3 -0
  594. package/dist/node_modules/openai/resources/evals/runs/runs.d.ts +3 -0
  595. package/dist/node_modules/openai/resources/evals/runs/runs.js +21 -4
  596. package/dist/node_modules/openai/resources/files.d.mts +11 -1
  597. package/dist/node_modules/openai/resources/files.d.ts +11 -1
  598. package/dist/node_modules/openai/resources/files.js +20 -5
  599. package/dist/node_modules/openai/resources/fine-tuning/alpha/graders.d.mts +3 -0
  600. package/dist/node_modules/openai/resources/fine-tuning/alpha/graders.d.ts +3 -0
  601. package/dist/node_modules/openai/resources/fine-tuning/alpha/graders.js +13 -2
  602. package/dist/node_modules/openai/resources/fine-tuning/checkpoints/checkpoints.d.mts +2 -2
  603. package/dist/node_modules/openai/resources/fine-tuning/checkpoints/checkpoints.d.ts +2 -2
  604. package/dist/node_modules/openai/resources/fine-tuning/checkpoints/index.d.mts +1 -1
  605. package/dist/node_modules/openai/resources/fine-tuning/checkpoints/index.d.ts +1 -1
  606. package/dist/node_modules/openai/resources/fine-tuning/checkpoints/permissions.d.mts +54 -7
  607. package/dist/node_modules/openai/resources/fine-tuning/checkpoints/permissions.d.ts +54 -7
  608. package/dist/node_modules/openai/resources/fine-tuning/checkpoints/permissions.js +26 -9
  609. package/dist/node_modules/openai/resources/fine-tuning/jobs/checkpoints.d.mts +3 -0
  610. package/dist/node_modules/openai/resources/fine-tuning/jobs/checkpoints.d.ts +3 -0
  611. package/dist/node_modules/openai/resources/fine-tuning/jobs/checkpoints.js +4 -1
  612. package/dist/node_modules/openai/resources/fine-tuning/jobs/jobs.d.mts +3 -0
  613. package/dist/node_modules/openai/resources/fine-tuning/jobs/jobs.d.ts +3 -0
  614. package/dist/node_modules/openai/resources/fine-tuning/jobs/jobs.js +26 -7
  615. package/dist/node_modules/openai/resources/images.d.mts +56 -24
  616. package/dist/node_modules/openai/resources/images.d.ts +56 -24
  617. package/dist/node_modules/openai/resources/images.js +11 -3
  618. package/dist/node_modules/openai/resources/index.d.mts +2 -1
  619. package/dist/node_modules/openai/resources/index.d.ts +2 -1
  620. package/dist/node_modules/openai/resources/index.js +3 -1
  621. package/dist/node_modules/openai/resources/models.d.mts +3 -0
  622. package/dist/node_modules/openai/resources/models.d.ts +3 -0
  623. package/dist/node_modules/openai/resources/models.js +6 -3
  624. package/dist/node_modules/openai/resources/moderations.d.mts +3 -0
  625. package/dist/node_modules/openai/resources/moderations.d.ts +3 -0
  626. package/dist/node_modules/openai/resources/moderations.js +4 -1
  627. package/dist/node_modules/openai/resources/realtime/calls.d.mts +13 -3
  628. package/dist/node_modules/openai/resources/realtime/calls.d.ts +13 -3
  629. package/dist/node_modules/openai/resources/realtime/calls.js +4 -0
  630. package/dist/node_modules/openai/resources/realtime/client-secrets.d.mts +45 -39
  631. package/dist/node_modules/openai/resources/realtime/client-secrets.d.ts +45 -39
  632. package/dist/node_modules/openai/resources/realtime/client-secrets.js +19 -1
  633. package/dist/node_modules/openai/resources/realtime/index.d.mts +1 -1
  634. package/dist/node_modules/openai/resources/realtime/index.d.ts +1 -1
  635. package/dist/node_modules/openai/resources/realtime/realtime.d.mts +592 -21
  636. package/dist/node_modules/openai/resources/realtime/realtime.d.ts +592 -21
  637. package/dist/node_modules/openai/resources/responses/index.d.mts +2 -0
  638. package/dist/node_modules/openai/resources/responses/index.d.ts +2 -0
  639. package/dist/node_modules/openai/resources/responses/input-items.js +1 -1
  640. package/dist/node_modules/openai/resources/responses/input-tokens.d.mts +4 -1
  641. package/dist/node_modules/openai/resources/responses/input-tokens.d.ts +4 -1
  642. package/dist/node_modules/openai/resources/responses/input-tokens.js +9 -2
  643. package/dist/node_modules/openai/resources/responses/internal-base.d.mts +71 -0
  644. package/dist/node_modules/openai/resources/responses/internal-base.d.ts +71 -0
  645. package/dist/node_modules/openai/resources/responses/internal-base.js +48 -0
  646. package/dist/node_modules/openai/resources/responses/responses.d.mts +956 -64
  647. package/dist/node_modules/openai/resources/responses/responses.d.ts +956 -64
  648. package/dist/node_modules/openai/resources/responses/responses.js +20 -5
  649. package/dist/node_modules/openai/resources/responses/ws-base.d.mts +106 -0
  650. package/dist/node_modules/openai/resources/responses/ws-base.d.ts +106 -0
  651. package/dist/node_modules/openai/resources/responses/ws-base.js +476 -0
  652. package/dist/node_modules/openai/resources/responses/ws.d.mts +13 -0
  653. package/dist/node_modules/openai/resources/responses/ws.d.ts +13 -0
  654. package/dist/node_modules/openai/resources/responses/ws.js +31 -0
  655. package/dist/node_modules/openai/resources/shared.d.mts +3 -2
  656. package/dist/node_modules/openai/resources/shared.d.ts +3 -2
  657. package/dist/node_modules/openai/resources/skills/content.d.mts +1 -1
  658. package/dist/node_modules/openai/resources/skills/content.d.ts +1 -1
  659. package/dist/node_modules/openai/resources/skills/content.js +2 -1
  660. package/dist/node_modules/openai/resources/skills/skills.d.mts +5 -5
  661. package/dist/node_modules/openai/resources/skills/skills.d.ts +5 -5
  662. package/dist/node_modules/openai/resources/skills/skills.js +18 -10
  663. package/dist/node_modules/openai/resources/skills/versions/content.d.mts +1 -1
  664. package/dist/node_modules/openai/resources/skills/versions/content.d.ts +1 -1
  665. package/dist/node_modules/openai/resources/skills/versions/content.js +2 -1
  666. package/dist/node_modules/openai/resources/skills/versions/versions.d.mts +4 -4
  667. package/dist/node_modules/openai/resources/skills/versions/versions.d.ts +4 -4
  668. package/dist/node_modules/openai/resources/skills/versions/versions.js +14 -7
  669. package/dist/node_modules/openai/resources/uploads/parts.d.mts +3 -0
  670. package/dist/node_modules/openai/resources/uploads/parts.d.ts +3 -0
  671. package/dist/node_modules/openai/resources/uploads/parts.js +4 -1
  672. package/dist/node_modules/openai/resources/uploads/uploads.d.mts +10 -1
  673. package/dist/node_modules/openai/resources/uploads/uploads.d.ts +10 -1
  674. package/dist/node_modules/openai/resources/uploads/uploads.js +20 -4
  675. package/dist/node_modules/openai/resources/vector-stores/file-batches.d.mts +9 -3
  676. package/dist/node_modules/openai/resources/vector-stores/file-batches.d.ts +9 -3
  677. package/dist/node_modules/openai/resources/vector-stores/file-batches.js +9 -1
  678. package/dist/node_modules/openai/resources/vector-stores/files.d.mts +3 -1
  679. package/dist/node_modules/openai/resources/vector-stores/files.d.ts +3 -1
  680. package/dist/node_modules/openai/resources/vector-stores/files.js +10 -1
  681. package/dist/node_modules/openai/resources/vector-stores/vector-stores.js +6 -0
  682. package/dist/node_modules/openai/resources/videos.d.mts +123 -11
  683. package/dist/node_modules/openai/resources/videos.d.ts +123 -11
  684. package/dist/node_modules/openai/resources/videos.js +46 -11
  685. package/dist/node_modules/openai/src/auth/index.ts +9 -0
  686. package/dist/node_modules/openai/src/auth/subject-token-providers.ts +185 -0
  687. package/dist/node_modules/openai/src/auth/types.ts +28 -0
  688. package/dist/node_modules/openai/src/auth/workload-identity-auth.ts +122 -0
  689. package/dist/node_modules/openai/src/azure.ts +9 -4
  690. package/dist/node_modules/openai/src/beta/realtime/websocket.ts +7 -2
  691. package/dist/node_modules/openai/src/beta/realtime/ws.ts +5 -1
  692. package/dist/node_modules/openai/src/client.ts +312 -35
  693. package/dist/node_modules/openai/src/core/EventEmitter.ts +114 -0
  694. package/dist/node_modules/openai/src/core/error.ts +40 -0
  695. package/dist/node_modules/openai/src/core/pagination.ts +62 -0
  696. package/dist/node_modules/openai/src/core/streaming.ts +2 -1
  697. package/dist/node_modules/openai/src/index.ts +2 -0
  698. package/dist/node_modules/openai/src/internal/parse.ts +12 -2
  699. package/dist/node_modules/openai/src/internal/request-options.ts +2 -0
  700. package/dist/node_modules/openai/src/internal/types.ts +14 -8
  701. package/dist/node_modules/openai/src/internal/utils/env.ts +2 -2
  702. package/dist/node_modules/openai/src/internal/utils/log.ts +2 -0
  703. package/dist/node_modules/openai/src/internal/utils/query.ts +7 -0
  704. package/dist/node_modules/openai/src/internal/utils.ts +1 -0
  705. package/dist/node_modules/openai/src/internal/ws-adapter-browser.ts +123 -0
  706. package/dist/node_modules/openai/src/internal/ws-adapter-node.ts +105 -0
  707. package/dist/node_modules/openai/src/internal/ws-adapter.ts +30 -0
  708. package/dist/node_modules/openai/src/internal/ws.ts +193 -0
  709. package/dist/node_modules/openai/src/realtime/websocket.ts +7 -2
  710. package/dist/node_modules/openai/src/realtime/ws.ts +5 -1
  711. package/dist/node_modules/openai/src/resources/admin/admin.ts +15 -0
  712. package/dist/node_modules/openai/src/resources/admin/index.ts +4 -0
  713. package/dist/node_modules/openai/src/resources/admin/organization/admin-api-keys.ts +199 -0
  714. package/dist/node_modules/openai/src/resources/admin/organization/audit-logs.ts +1597 -0
  715. package/dist/node_modules/openai/src/resources/admin/organization/certificates.ts +458 -0
  716. package/dist/node_modules/openai/src/resources/admin/organization/data-retention.ts +79 -0
  717. package/dist/node_modules/openai/src/resources/admin/organization/groups/groups.ts +277 -0
  718. package/dist/node_modules/openai/src/resources/admin/organization/groups/index.ts +36 -0
  719. package/dist/node_modules/openai/src/resources/admin/organization/groups/roles.ts +359 -0
  720. package/dist/node_modules/openai/src/resources/admin/organization/groups/users.ts +232 -0
  721. package/dist/node_modules/openai/src/resources/admin/organization/groups.ts +3 -0
  722. package/dist/node_modules/openai/src/resources/admin/organization/index.ts +117 -0
  723. package/dist/node_modules/openai/src/resources/admin/organization/invites.ts +215 -0
  724. package/dist/node_modules/openai/src/resources/admin/organization/organization.ts +272 -0
  725. package/dist/node_modules/openai/src/resources/admin/organization/projects/api-keys.ts +239 -0
  726. package/dist/node_modules/openai/src/resources/admin/organization/projects/certificates.ts +269 -0
  727. package/dist/node_modules/openai/src/resources/admin/organization/projects/data-retention.ts +91 -0
  728. package/dist/node_modules/openai/src/resources/admin/organization/projects/groups/groups.ts +231 -0
  729. package/dist/node_modules/openai/src/resources/admin/organization/projects/groups/index.ts +24 -0
  730. package/dist/node_modules/openai/src/resources/admin/organization/projects/groups/roles.ts +386 -0
  731. package/dist/node_modules/openai/src/resources/admin/organization/projects/groups.ts +3 -0
  732. package/dist/node_modules/openai/src/resources/admin/organization/projects/hosted-tool-permissions.ts +217 -0
  733. package/dist/node_modules/openai/src/resources/admin/organization/projects/index.ts +102 -0
  734. package/dist/node_modules/openai/src/resources/admin/organization/projects/model-permissions.ts +123 -0
  735. package/dist/node_modules/openai/src/resources/admin/organization/projects/projects.ts +445 -0
  736. package/dist/node_modules/openai/src/resources/admin/organization/projects/rate-limits.ts +173 -0
  737. package/dist/node_modules/openai/src/resources/admin/organization/projects/roles.ts +210 -0
  738. package/dist/node_modules/openai/src/resources/admin/organization/projects/service-accounts.ts +266 -0
  739. package/dist/node_modules/openai/src/resources/admin/organization/projects/spend-alerts.ts +332 -0
  740. package/dist/node_modules/openai/src/resources/admin/organization/projects/users/index.ts +25 -0
  741. package/dist/node_modules/openai/src/resources/admin/organization/projects/users/roles.ts +351 -0
  742. package/dist/node_modules/openai/src/resources/admin/organization/projects/users/users.ts +256 -0
  743. package/dist/node_modules/openai/src/resources/admin/organization/projects/users.ts +3 -0
  744. package/dist/node_modules/openai/src/resources/admin/organization/projects.ts +3 -0
  745. package/dist/node_modules/openai/src/resources/admin/organization/roles.ts +217 -0
  746. package/dist/node_modules/openai/src/resources/admin/organization/spend-alerts.ts +301 -0
  747. package/dist/node_modules/openai/src/resources/admin/organization/usage.ts +6427 -0
  748. package/dist/node_modules/openai/src/resources/admin/organization/users/index.ts +22 -0
  749. package/dist/node_modules/openai/src/resources/admin/organization/users/roles.ts +328 -0
  750. package/dist/node_modules/openai/src/resources/admin/organization/users/users.ts +291 -0
  751. package/dist/node_modules/openai/src/resources/admin/organization/users.ts +3 -0
  752. package/dist/node_modules/openai/src/resources/admin/organization.ts +3 -0
  753. package/dist/node_modules/openai/src/resources/admin.ts +3 -0
  754. package/dist/node_modules/openai/src/resources/audio/speech.ts +26 -6
  755. package/dist/node_modules/openai/src/resources/audio/transcriptions.ts +7 -0
  756. package/dist/node_modules/openai/src/resources/audio/translations.ts +7 -1
  757. package/dist/node_modules/openai/src/resources/batches.ts +20 -8
  758. package/dist/node_modules/openai/src/resources/beta/assistants.ts +11 -2
  759. package/dist/node_modules/openai/src/resources/beta/chatkit/sessions.ts +6 -2
  760. package/dist/node_modules/openai/src/resources/beta/chatkit/threads.ts +13 -5
  761. package/dist/node_modules/openai/src/resources/beta/realtime/sessions.ts +1 -0
  762. package/dist/node_modules/openai/src/resources/beta/realtime/transcription-sessions.ts +1 -0
  763. package/dist/node_modules/openai/src/resources/beta/threads/messages.ts +7 -0
  764. package/dist/node_modules/openai/src/resources/beta/threads/runs/runs.ts +10 -0
  765. package/dist/node_modules/openai/src/resources/beta/threads/runs/steps.ts +4 -0
  766. package/dist/node_modules/openai/src/resources/beta/threads/threads.ts +14 -4
  767. package/dist/node_modules/openai/src/resources/chat/completions/completions.ts +64 -27
  768. package/dist/node_modules/openai/src/resources/chat/completions/messages.ts +4 -1
  769. package/dist/node_modules/openai/src/resources/completions.ts +15 -6
  770. package/dist/node_modules/openai/src/resources/containers/containers.ts +11 -3
  771. package/dist/node_modules/openai/src/resources/containers/files/content.ts +1 -0
  772. package/dist/node_modules/openai/src/resources/containers/files/files.ts +7 -2
  773. package/dist/node_modules/openai/src/resources/conversations/conversations.ts +31 -4
  774. package/dist/node_modules/openai/src/resources/conversations/items.ts +17 -3
  775. package/dist/node_modules/openai/src/resources/embeddings.ts +4 -0
  776. package/dist/node_modules/openai/src/resources/evals/evals.ts +12 -5
  777. package/dist/node_modules/openai/src/resources/evals/runs/output-items.ts +8 -2
  778. package/dist/node_modules/openai/src/resources/evals/runs/runs.ts +21 -4
  779. package/dist/node_modules/openai/src/resources/files.ts +23 -5
  780. package/dist/node_modules/openai/src/resources/fine-tuning/alpha/graders.ts +13 -2
  781. package/dist/node_modules/openai/src/resources/fine-tuning/checkpoints/checkpoints.ts +6 -0
  782. package/dist/node_modules/openai/src/resources/fine-tuning/checkpoints/index.ts +3 -0
  783. package/dist/node_modules/openai/src/resources/fine-tuning/checkpoints/permissions.ts +84 -10
  784. package/dist/node_modules/openai/src/resources/fine-tuning/jobs/checkpoints.ts +4 -1
  785. package/dist/node_modules/openai/src/resources/fine-tuning/jobs/jobs.ts +26 -7
  786. package/dist/node_modules/openai/src/resources/images.ts +74 -27
  787. package/dist/node_modules/openai/src/resources/index.ts +7 -0
  788. package/dist/node_modules/openai/src/resources/models.ts +6 -3
  789. package/dist/node_modules/openai/src/resources/moderations.ts +4 -1
  790. package/dist/node_modules/openai/src/resources/realtime/calls.ts +21 -2
  791. package/dist/node_modules/openai/src/resources/realtime/client-secrets.ts +54 -40
  792. package/dist/node_modules/openai/src/resources/realtime/index.ts +0 -1
  793. package/dist/node_modules/openai/src/resources/realtime/realtime.ts +705 -20
  794. package/dist/node_modules/openai/src/resources/responses/index.ts +2 -0
  795. package/dist/node_modules/openai/src/resources/responses/input-items.ts +1 -1
  796. package/dist/node_modules/openai/src/resources/responses/input-tokens.ts +9 -2
  797. package/dist/node_modules/openai/src/resources/responses/internal-base.ts +113 -0
  798. package/dist/node_modules/openai/src/resources/responses/responses.ts +1314 -143
  799. package/dist/node_modules/openai/src/resources/responses/ws-base.ts +611 -0
  800. package/dist/node_modules/openai/src/resources/responses/ws.ts +38 -0
  801. package/dist/node_modules/openai/src/resources/shared.ts +9 -1
  802. package/dist/node_modules/openai/src/resources/skills/content.ts +2 -1
  803. package/dist/node_modules/openai/src/resources/skills/skills.ts +21 -10
  804. package/dist/node_modules/openai/src/resources/skills/versions/content.ts +2 -1
  805. package/dist/node_modules/openai/src/resources/skills/versions/versions.ts +14 -7
  806. package/dist/node_modules/openai/src/resources/uploads/parts.ts +4 -1
  807. package/dist/node_modules/openai/src/resources/uploads/uploads.ts +20 -4
  808. package/dist/node_modules/openai/src/resources/vector-stores/file-batches.ts +18 -4
  809. package/dist/node_modules/openai/src/resources/vector-stores/files.ts +13 -2
  810. package/dist/node_modules/openai/src/resources/vector-stores/vector-stores.ts +6 -0
  811. package/dist/node_modules/openai/src/resources/videos.ts +186 -16
  812. package/dist/node_modules/openai/src/version.ts +1 -1
  813. package/dist/node_modules/openai/streaming.d.mts +1 -0
  814. package/dist/node_modules/openai/streaming.d.ts +1 -0
  815. package/dist/node_modules/openai/uploads.d.mts +1 -0
  816. package/dist/node_modules/openai/uploads.d.ts +1 -0
  817. package/dist/node_modules/openai/version.d.mts +1 -1
  818. package/dist/node_modules/openai/version.d.ts +1 -1
  819. package/dist/node_modules/openai/version.js +1 -1
  820. package/dist/node_modules/zod/package.json +1 -1
  821. package/dist/server/ai-employees/ai-employee.d.ts +1 -10
  822. package/dist/server/ai-employees/ai-employee.js +21 -89
  823. package/dist/server/ai-employees/ai-knowledge-base.d.ts +0 -4
  824. package/dist/server/ai-employees/ai-knowledge-base.js +25 -89
  825. package/dist/server/ai-employees/middleware/index.d.ts +1 -0
  826. package/dist/server/ai-employees/middleware/index.js +2 -0
  827. package/dist/server/ai-employees/middleware/tool-call-sanitizer.d.ts +16 -0
  828. package/dist/server/ai-employees/middleware/tool-call-sanitizer.js +90 -0
  829. package/dist/server/ai-employees/tool-call-sanitizer.d.ts +26 -0
  830. package/dist/server/ai-employees/tool-call-sanitizer.js +84 -0
  831. package/dist/server/ai-employees/utils.js +14 -2
  832. package/dist/server/collections/lc-checkpoint-blobs.js +1 -1
  833. package/dist/server/collections/lc-checkpoint-writes.js +1 -1
  834. package/dist/server/collections/lc-checkpoints.js +1 -1
  835. package/dist/server/features/feature-manager.d.ts +2 -2
  836. package/dist/server/features/index.d.ts +1 -1
  837. package/dist/server/features/knowledge-base.d.ts +2 -1
  838. package/dist/server/features/vector-store-provider.d.ts +2 -9
  839. package/dist/server/llm-providers/dashscope.js +2 -2
  840. package/dist/server/llm-providers/kimi/provider.js +2 -2
  841. package/dist/server/llm-providers/mimo.js +2 -2
  842. package/dist/server/llm-providers/openai/completions.js +2 -2
  843. package/dist/server/llm-providers/openai/responses.js +8 -4
  844. package/dist/server/llm-providers/provider.d.ts +2 -2
  845. package/dist/server/llm-providers/provider.js +1 -0
  846. package/dist/server/plugin.d.ts +3 -0
  847. package/dist/server/plugin.js +61 -0
  848. package/dist/server/resource/aiConversations.js +1 -1
  849. package/dist/server/resource/aiMcpClients.js +2 -2
  850. package/dist/server/resource/aiTools.js +14 -9
  851. package/dist/server/types/knowledge-base.type.d.ts +15 -1
  852. package/dist/server/workflow/nodes/llm/index.js +3 -0
  853. package/package.json +14 -13
  854. package/dist/ai/docs/nocobase/ai-employees/knowledge-base/knowledge-base.md +0 -82
  855. package/dist/client/561.776886c5308e3c26.js +0 -10
  856. package/dist/client/580.e75f97fb883ad042.js +0 -10
  857. package/dist/node_modules/@langchain/xai/dist/_virtual/rolldown_runtime.cjs +0 -25
  858. /package/dist/ai/docs/nocobase/{quickstart → nocobase-cli}/cli-design/nb-app-design-intent.md +0 -0
  859. /package/dist/ai/docs/nocobase/{quickstart → nocobase-cli}/cli-design/nb-proxy-design-intent.md +0 -0
  860. /package/dist/ai/docs/nocobase/{quickstart → nocobase-cli}/installation/airgap.md +0 -0
  861. /package/dist/ai/docs/nocobase/{quickstart → nocobase-cli}/installation/docker-compose.md +0 -0
  862. /package/dist/ai/docs/nocobase/{quickstart → nocobase-cli}/operations/backup-restore.md +0 -0
  863. /package/dist/ai/docs/nocobase/{quickstart → nocobase-cli}/operations/manage-app.md +0 -0
  864. /package/dist/ai/docs/nocobase/{quickstart → nocobase-cli}/operations/multi-environment.md +0 -0
  865. /package/dist/ai/docs/nocobase/{quickstart → nocobase-cli}/plugins/third-party.md +0 -0
  866. /package/dist/ai/docs/nocobase/{quickstart → nocobase-cli}/production/autostart.md +0 -0
  867. /package/dist/ai/docs/nocobase/{quickstart → nocobase-cli}/release-management.md +0 -0
@@ -0,0 +1,277 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../../../../core/resource';
4
+ import * as RolesAPI from './roles';
5
+ import {
6
+ RoleCreateParams,
7
+ RoleCreateResponse,
8
+ RoleDeleteParams,
9
+ RoleDeleteResponse,
10
+ RoleListParams,
11
+ RoleListResponse,
12
+ RoleListResponsesPage,
13
+ RoleRetrieveParams,
14
+ RoleRetrieveResponse,
15
+ Roles,
16
+ } from './roles';
17
+ import * as UsersAPI from './users';
18
+ import {
19
+ OrganizationGroupUser,
20
+ OrganizationGroupUsersPage,
21
+ UserCreateParams,
22
+ UserCreateResponse,
23
+ UserDeleteParams,
24
+ UserDeleteResponse,
25
+ UserListParams,
26
+ UserRetrieveParams,
27
+ UserRetrieveResponse,
28
+ Users,
29
+ } from './users';
30
+ import { APIPromise } from '../../../../core/api-promise';
31
+ import { NextCursorPage, type NextCursorPageParams, PagePromise } from '../../../../core/pagination';
32
+ import { RequestOptions } from '../../../../internal/request-options';
33
+ import { path } from '../../../../internal/utils/path';
34
+
35
+ export class Groups extends APIResource {
36
+ users: UsersAPI.Users = new UsersAPI.Users(this._client);
37
+ roles: RolesAPI.Roles = new RolesAPI.Roles(this._client);
38
+
39
+ /**
40
+ * Creates a new group in the organization.
41
+ *
42
+ * @example
43
+ * ```ts
44
+ * const group = await client.admin.organization.groups.create(
45
+ * { name: 'x' },
46
+ * );
47
+ * ```
48
+ */
49
+ create(body: GroupCreateParams, options?: RequestOptions): APIPromise<Group> {
50
+ return this._client.post('/organization/groups', {
51
+ body,
52
+ ...options,
53
+ __security: { adminAPIKeyAuth: true },
54
+ });
55
+ }
56
+
57
+ /**
58
+ * Retrieves a group.
59
+ *
60
+ * @example
61
+ * ```ts
62
+ * const group =
63
+ * await client.admin.organization.groups.retrieve(
64
+ * 'group_id',
65
+ * );
66
+ * ```
67
+ */
68
+ retrieve(groupID: string, options?: RequestOptions): APIPromise<Group> {
69
+ return this._client.get(path`/organization/groups/${groupID}`, {
70
+ ...options,
71
+ __security: { adminAPIKeyAuth: true },
72
+ });
73
+ }
74
+
75
+ /**
76
+ * Updates a group's information.
77
+ *
78
+ * @example
79
+ * ```ts
80
+ * const group = await client.admin.organization.groups.update(
81
+ * 'group_id',
82
+ * { name: 'x' },
83
+ * );
84
+ * ```
85
+ */
86
+ update(
87
+ groupID: string,
88
+ body: GroupUpdateParams,
89
+ options?: RequestOptions,
90
+ ): APIPromise<GroupUpdateResponse> {
91
+ return this._client.post(path`/organization/groups/${groupID}`, {
92
+ body,
93
+ ...options,
94
+ __security: { adminAPIKeyAuth: true },
95
+ });
96
+ }
97
+
98
+ /**
99
+ * Lists all groups in the organization.
100
+ *
101
+ * @example
102
+ * ```ts
103
+ * // Automatically fetches more pages as needed.
104
+ * for await (const group of client.admin.organization.groups.list()) {
105
+ * // ...
106
+ * }
107
+ * ```
108
+ */
109
+ list(
110
+ query: GroupListParams | null | undefined = {},
111
+ options?: RequestOptions,
112
+ ): PagePromise<GroupsPage, Group> {
113
+ return this._client.getAPIList('/organization/groups', NextCursorPage<Group>, {
114
+ query,
115
+ ...options,
116
+ __security: { adminAPIKeyAuth: true },
117
+ });
118
+ }
119
+
120
+ /**
121
+ * Deletes a group from the organization.
122
+ *
123
+ * @example
124
+ * ```ts
125
+ * const group = await client.admin.organization.groups.delete(
126
+ * 'group_id',
127
+ * );
128
+ * ```
129
+ */
130
+ delete(groupID: string, options?: RequestOptions): APIPromise<GroupDeleteResponse> {
131
+ return this._client.delete(path`/organization/groups/${groupID}`, {
132
+ ...options,
133
+ __security: { adminAPIKeyAuth: true },
134
+ });
135
+ }
136
+ }
137
+
138
+ export type GroupsPage = NextCursorPage<Group>;
139
+
140
+ /**
141
+ * Details about an organization group.
142
+ */
143
+ export interface Group {
144
+ /**
145
+ * Identifier for the group.
146
+ */
147
+ id: string;
148
+
149
+ /**
150
+ * Unix timestamp (in seconds) when the group was created.
151
+ */
152
+ created_at: number;
153
+
154
+ /**
155
+ * The type of the group.
156
+ */
157
+ group_type: 'group' | 'tenant_group';
158
+
159
+ /**
160
+ * Whether the group is managed through SCIM and controlled by your identity
161
+ * provider.
162
+ */
163
+ is_scim_managed: boolean;
164
+
165
+ /**
166
+ * Display name of the group.
167
+ */
168
+ name: string;
169
+ }
170
+
171
+ /**
172
+ * Response returned after updating a group.
173
+ */
174
+ export interface GroupUpdateResponse {
175
+ /**
176
+ * Identifier for the group.
177
+ */
178
+ id: string;
179
+
180
+ /**
181
+ * Unix timestamp (in seconds) when the group was created.
182
+ */
183
+ created_at: number;
184
+
185
+ /**
186
+ * Whether the group is managed through SCIM and controlled by your identity
187
+ * provider.
188
+ */
189
+ is_scim_managed: boolean;
190
+
191
+ /**
192
+ * Updated display name for the group.
193
+ */
194
+ name: string;
195
+ }
196
+
197
+ /**
198
+ * Confirmation payload returned after deleting a group.
199
+ */
200
+ export interface GroupDeleteResponse {
201
+ /**
202
+ * Identifier of the deleted group.
203
+ */
204
+ id: string;
205
+
206
+ /**
207
+ * Whether the group was deleted.
208
+ */
209
+ deleted: boolean;
210
+
211
+ /**
212
+ * Always `group.deleted`.
213
+ */
214
+ object: 'group.deleted';
215
+ }
216
+
217
+ export interface GroupCreateParams {
218
+ /**
219
+ * Human readable name for the group.
220
+ */
221
+ name: string;
222
+ }
223
+
224
+ export interface GroupUpdateParams {
225
+ /**
226
+ * New display name for the group.
227
+ */
228
+ name: string;
229
+ }
230
+
231
+ export interface GroupListParams extends NextCursorPageParams {
232
+ /**
233
+ * Specifies the sort order of the returned groups.
234
+ */
235
+ order?: 'asc' | 'desc';
236
+ }
237
+
238
+ Groups.Users = Users;
239
+ Groups.Roles = Roles;
240
+
241
+ export declare namespace Groups {
242
+ export {
243
+ type Group as Group,
244
+ type GroupUpdateResponse as GroupUpdateResponse,
245
+ type GroupDeleteResponse as GroupDeleteResponse,
246
+ type GroupsPage as GroupsPage,
247
+ type GroupCreateParams as GroupCreateParams,
248
+ type GroupUpdateParams as GroupUpdateParams,
249
+ type GroupListParams as GroupListParams,
250
+ };
251
+
252
+ export {
253
+ Users as Users,
254
+ type OrganizationGroupUser as OrganizationGroupUser,
255
+ type UserCreateResponse as UserCreateResponse,
256
+ type UserRetrieveResponse as UserRetrieveResponse,
257
+ type UserDeleteResponse as UserDeleteResponse,
258
+ type OrganizationGroupUsersPage as OrganizationGroupUsersPage,
259
+ type UserCreateParams as UserCreateParams,
260
+ type UserRetrieveParams as UserRetrieveParams,
261
+ type UserListParams as UserListParams,
262
+ type UserDeleteParams as UserDeleteParams,
263
+ };
264
+
265
+ export {
266
+ Roles as Roles,
267
+ type RoleCreateResponse as RoleCreateResponse,
268
+ type RoleRetrieveResponse as RoleRetrieveResponse,
269
+ type RoleListResponse as RoleListResponse,
270
+ type RoleDeleteResponse as RoleDeleteResponse,
271
+ type RoleListResponsesPage as RoleListResponsesPage,
272
+ type RoleCreateParams as RoleCreateParams,
273
+ type RoleRetrieveParams as RoleRetrieveParams,
274
+ type RoleListParams as RoleListParams,
275
+ type RoleDeleteParams as RoleDeleteParams,
276
+ };
277
+ }
@@ -0,0 +1,36 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ export {
4
+ Groups,
5
+ type Group,
6
+ type GroupUpdateResponse,
7
+ type GroupDeleteResponse,
8
+ type GroupCreateParams,
9
+ type GroupUpdateParams,
10
+ type GroupListParams,
11
+ type GroupsPage,
12
+ } from './groups';
13
+ export {
14
+ Roles,
15
+ type RoleCreateResponse,
16
+ type RoleRetrieveResponse,
17
+ type RoleListResponse,
18
+ type RoleDeleteResponse,
19
+ type RoleCreateParams,
20
+ type RoleRetrieveParams,
21
+ type RoleListParams,
22
+ type RoleDeleteParams,
23
+ type RoleListResponsesPage,
24
+ } from './roles';
25
+ export {
26
+ Users,
27
+ type OrganizationGroupUser,
28
+ type UserCreateResponse,
29
+ type UserRetrieveResponse,
30
+ type UserDeleteResponse,
31
+ type UserCreateParams,
32
+ type UserRetrieveParams,
33
+ type UserListParams,
34
+ type UserDeleteParams,
35
+ type OrganizationGroupUsersPage,
36
+ } from './users';
@@ -0,0 +1,359 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../../../../core/resource';
4
+ import * as RolesAPI from '../roles';
5
+ import { APIPromise } from '../../../../core/api-promise';
6
+ import { NextCursorPage, type NextCursorPageParams, PagePromise } from '../../../../core/pagination';
7
+ import { RequestOptions } from '../../../../internal/request-options';
8
+ import { path } from '../../../../internal/utils/path';
9
+
10
+ export class Roles extends APIResource {
11
+ /**
12
+ * Assigns an organization role to a group within the organization.
13
+ *
14
+ * @example
15
+ * ```ts
16
+ * const role =
17
+ * await client.admin.organization.groups.roles.create(
18
+ * 'group_id',
19
+ * { role_id: 'role_id' },
20
+ * );
21
+ * ```
22
+ */
23
+ create(groupID: string, body: RoleCreateParams, options?: RequestOptions): APIPromise<RoleCreateResponse> {
24
+ return this._client.post(path`/organization/groups/${groupID}/roles`, {
25
+ body,
26
+ ...options,
27
+ __security: { adminAPIKeyAuth: true },
28
+ });
29
+ }
30
+
31
+ /**
32
+ * Retrieves an organization role assigned to a group.
33
+ *
34
+ * @example
35
+ * ```ts
36
+ * const role =
37
+ * await client.admin.organization.groups.roles.retrieve(
38
+ * 'role_id',
39
+ * { group_id: 'group_id' },
40
+ * );
41
+ * ```
42
+ */
43
+ retrieve(
44
+ roleID: string,
45
+ params: RoleRetrieveParams,
46
+ options?: RequestOptions,
47
+ ): APIPromise<RoleRetrieveResponse> {
48
+ const { group_id } = params;
49
+ return this._client.get(path`/organization/groups/${group_id}/roles/${roleID}`, {
50
+ ...options,
51
+ __security: { adminAPIKeyAuth: true },
52
+ });
53
+ }
54
+
55
+ /**
56
+ * Lists the organization roles assigned to a group within the organization.
57
+ *
58
+ * @example
59
+ * ```ts
60
+ * // Automatically fetches more pages as needed.
61
+ * for await (const roleListResponse of client.admin.organization.groups.roles.list(
62
+ * 'group_id',
63
+ * )) {
64
+ * // ...
65
+ * }
66
+ * ```
67
+ */
68
+ list(
69
+ groupID: string,
70
+ query: RoleListParams | null | undefined = {},
71
+ options?: RequestOptions,
72
+ ): PagePromise<RoleListResponsesPage, RoleListResponse> {
73
+ return this._client.getAPIList(
74
+ path`/organization/groups/${groupID}/roles`,
75
+ NextCursorPage<RoleListResponse>,
76
+ { query, ...options, __security: { adminAPIKeyAuth: true } },
77
+ );
78
+ }
79
+
80
+ /**
81
+ * Unassigns an organization role from a group within the organization.
82
+ *
83
+ * @example
84
+ * ```ts
85
+ * const role =
86
+ * await client.admin.organization.groups.roles.delete(
87
+ * 'role_id',
88
+ * { group_id: 'group_id' },
89
+ * );
90
+ * ```
91
+ */
92
+ delete(roleID: string, params: RoleDeleteParams, options?: RequestOptions): APIPromise<RoleDeleteResponse> {
93
+ const { group_id } = params;
94
+ return this._client.delete(path`/organization/groups/${group_id}/roles/${roleID}`, {
95
+ ...options,
96
+ __security: { adminAPIKeyAuth: true },
97
+ });
98
+ }
99
+ }
100
+
101
+ export type RoleListResponsesPage = NextCursorPage<RoleListResponse>;
102
+
103
+ /**
104
+ * Role assignment linking a group to a role.
105
+ */
106
+ export interface RoleCreateResponse {
107
+ /**
108
+ * Summary information about a group returned in role assignment responses.
109
+ */
110
+ group: RoleCreateResponse.Group;
111
+
112
+ /**
113
+ * Always `group.role`.
114
+ */
115
+ object: 'group.role';
116
+
117
+ /**
118
+ * Details about a role that can be assigned through the public Roles API.
119
+ */
120
+ role: RolesAPI.Role;
121
+ }
122
+
123
+ export namespace RoleCreateResponse {
124
+ /**
125
+ * Summary information about a group returned in role assignment responses.
126
+ */
127
+ export interface Group {
128
+ /**
129
+ * Identifier for the group.
130
+ */
131
+ id: string;
132
+
133
+ /**
134
+ * Unix timestamp (in seconds) when the group was created.
135
+ */
136
+ created_at: number;
137
+
138
+ /**
139
+ * Display name of the group.
140
+ */
141
+ name: string;
142
+
143
+ /**
144
+ * Always `group`.
145
+ */
146
+ object: 'group';
147
+
148
+ /**
149
+ * Whether the group is managed through SCIM.
150
+ */
151
+ scim_managed: boolean;
152
+ }
153
+ }
154
+
155
+ /**
156
+ * Detailed information about a role assignment entry returned when listing
157
+ * assignments.
158
+ */
159
+ export interface RoleRetrieveResponse {
160
+ /**
161
+ * Identifier for the role.
162
+ */
163
+ id: string;
164
+
165
+ /**
166
+ * Principals from which the role assignment is inherited, when available.
167
+ */
168
+ assignment_sources: Array<RoleRetrieveResponse.AssignmentSource> | null;
169
+
170
+ /**
171
+ * When the role was created.
172
+ */
173
+ created_at: number | null;
174
+
175
+ /**
176
+ * Identifier of the actor who created the role.
177
+ */
178
+ created_by: string | null;
179
+
180
+ /**
181
+ * User details for the actor that created the role, when available.
182
+ */
183
+ created_by_user_obj: { [key: string]: unknown } | null;
184
+
185
+ /**
186
+ * Description of the role.
187
+ */
188
+ description: string | null;
189
+
190
+ /**
191
+ * Arbitrary metadata stored on the role.
192
+ */
193
+ metadata: { [key: string]: unknown } | null;
194
+
195
+ /**
196
+ * Name of the role.
197
+ */
198
+ name: string;
199
+
200
+ /**
201
+ * Permissions associated with the role.
202
+ */
203
+ permissions: Array<string>;
204
+
205
+ /**
206
+ * Whether the role is predefined by OpenAI.
207
+ */
208
+ predefined_role: boolean;
209
+
210
+ /**
211
+ * Resource type the role applies to.
212
+ */
213
+ resource_type: string;
214
+
215
+ /**
216
+ * When the role was last updated.
217
+ */
218
+ updated_at: number | null;
219
+ }
220
+
221
+ export namespace RoleRetrieveResponse {
222
+ export interface AssignmentSource {
223
+ principal_id: string;
224
+
225
+ principal_type: string;
226
+ }
227
+ }
228
+
229
+ /**
230
+ * Detailed information about a role assignment entry returned when listing
231
+ * assignments.
232
+ */
233
+ export interface RoleListResponse {
234
+ /**
235
+ * Identifier for the role.
236
+ */
237
+ id: string;
238
+
239
+ /**
240
+ * Principals from which the role assignment is inherited, when available.
241
+ */
242
+ assignment_sources: Array<RoleListResponse.AssignmentSource> | null;
243
+
244
+ /**
245
+ * When the role was created.
246
+ */
247
+ created_at: number | null;
248
+
249
+ /**
250
+ * Identifier of the actor who created the role.
251
+ */
252
+ created_by: string | null;
253
+
254
+ /**
255
+ * User details for the actor that created the role, when available.
256
+ */
257
+ created_by_user_obj: { [key: string]: unknown } | null;
258
+
259
+ /**
260
+ * Description of the role.
261
+ */
262
+ description: string | null;
263
+
264
+ /**
265
+ * Arbitrary metadata stored on the role.
266
+ */
267
+ metadata: { [key: string]: unknown } | null;
268
+
269
+ /**
270
+ * Name of the role.
271
+ */
272
+ name: string;
273
+
274
+ /**
275
+ * Permissions associated with the role.
276
+ */
277
+ permissions: Array<string>;
278
+
279
+ /**
280
+ * Whether the role is predefined by OpenAI.
281
+ */
282
+ predefined_role: boolean;
283
+
284
+ /**
285
+ * Resource type the role applies to.
286
+ */
287
+ resource_type: string;
288
+
289
+ /**
290
+ * When the role was last updated.
291
+ */
292
+ updated_at: number | null;
293
+ }
294
+
295
+ export namespace RoleListResponse {
296
+ export interface AssignmentSource {
297
+ principal_id: string;
298
+
299
+ principal_type: string;
300
+ }
301
+ }
302
+
303
+ /**
304
+ * Confirmation payload returned after unassigning a role.
305
+ */
306
+ export interface RoleDeleteResponse {
307
+ /**
308
+ * Whether the assignment was removed.
309
+ */
310
+ deleted: boolean;
311
+
312
+ /**
313
+ * Identifier for the deleted assignment, such as `group.role.deleted` or
314
+ * `user.role.deleted`.
315
+ */
316
+ object: string;
317
+ }
318
+
319
+ export interface RoleCreateParams {
320
+ /**
321
+ * Identifier of the role to assign.
322
+ */
323
+ role_id: string;
324
+ }
325
+
326
+ export interface RoleRetrieveParams {
327
+ /**
328
+ * The ID of the group to inspect.
329
+ */
330
+ group_id: string;
331
+ }
332
+
333
+ export interface RoleListParams extends NextCursorPageParams {
334
+ /**
335
+ * Sort order for the returned organization roles.
336
+ */
337
+ order?: 'asc' | 'desc';
338
+ }
339
+
340
+ export interface RoleDeleteParams {
341
+ /**
342
+ * The ID of the group to modify.
343
+ */
344
+ group_id: string;
345
+ }
346
+
347
+ export declare namespace Roles {
348
+ export {
349
+ type RoleCreateResponse as RoleCreateResponse,
350
+ type RoleRetrieveResponse as RoleRetrieveResponse,
351
+ type RoleListResponse as RoleListResponse,
352
+ type RoleDeleteResponse as RoleDeleteResponse,
353
+ type RoleListResponsesPage as RoleListResponsesPage,
354
+ type RoleCreateParams as RoleCreateParams,
355
+ type RoleRetrieveParams as RoleRetrieveParams,
356
+ type RoleListParams as RoleListParams,
357
+ type RoleDeleteParams as RoleDeleteParams,
358
+ };
359
+ }