openai 6.34.0 → 6.36.0
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.
- package/CHANGELOG.md +69 -0
- package/azure.d.mts +4 -1
- package/azure.d.mts.map +1 -1
- package/azure.d.ts +4 -1
- package/azure.d.ts.map +1 -1
- package/azure.js +4 -3
- package/azure.js.map +1 -1
- package/azure.mjs +4 -3
- package/azure.mjs.map +1 -1
- package/beta/realtime/websocket.d.mts.map +1 -1
- package/beta/realtime/websocket.d.ts.map +1 -1
- package/beta/realtime/websocket.js +7 -2
- package/beta/realtime/websocket.js.map +1 -1
- package/beta/realtime/websocket.mjs +7 -2
- package/beta/realtime/websocket.mjs.map +1 -1
- package/beta/realtime/ws.d.mts.map +1 -1
- package/beta/realtime/ws.d.ts.map +1 -1
- package/beta/realtime/ws.js +5 -1
- package/beta/realtime/ws.js.map +1 -1
- package/beta/realtime/ws.mjs +5 -1
- package/beta/realtime/ws.mjs.map +1 -1
- package/bin/migration-config.json +735 -0
- package/client.d.mts +30 -8
- package/client.d.mts.map +1 -1
- package/client.d.ts +30 -8
- package/client.d.ts.map +1 -1
- package/client.js +78 -22
- package/client.js.map +1 -1
- package/client.mjs +78 -22
- package/client.mjs.map +1 -1
- package/core/EventEmitter.d.mts +11 -0
- package/core/EventEmitter.d.mts.map +1 -1
- package/core/EventEmitter.d.ts +11 -0
- package/core/EventEmitter.d.ts.map +1 -1
- package/core/EventEmitter.js +15 -1
- package/core/EventEmitter.js.map +1 -1
- package/core/EventEmitter.mjs +13 -0
- package/core/EventEmitter.mjs.map +1 -1
- package/core/pagination.d.mts +18 -0
- package/core/pagination.d.mts.map +1 -1
- package/core/pagination.d.ts +18 -0
- package/core/pagination.d.ts.map +1 -1
- package/core/pagination.js +32 -1
- package/core/pagination.js.map +1 -1
- package/core/pagination.mjs +30 -0
- package/core/pagination.mjs.map +1 -1
- package/internal/request-options.d.mts +4 -0
- package/internal/request-options.d.mts.map +1 -1
- package/internal/request-options.d.ts +4 -0
- package/internal/request-options.d.ts.map +1 -1
- package/internal/request-options.js.map +1 -1
- package/internal/request-options.mjs.map +1 -1
- package/internal/types.d.mts +6 -6
- package/internal/types.d.mts.map +1 -1
- package/internal/types.d.ts +6 -6
- package/internal/types.d.ts.map +1 -1
- package/internal/utils/env.js +2 -2
- package/internal/utils/env.js.map +1 -1
- package/internal/utils/env.mjs +2 -2
- package/internal/utils/env.mjs.map +1 -1
- package/internal/ws-adapter-browser.d.mts +34 -0
- package/internal/ws-adapter-browser.d.mts.map +1 -0
- package/internal/ws-adapter-browser.d.ts +34 -0
- package/internal/ws-adapter-browser.d.ts.map +1 -0
- package/internal/ws-adapter-browser.js +88 -0
- package/internal/ws-adapter-browser.js.map +1 -0
- package/internal/ws-adapter-browser.mjs +84 -0
- package/internal/ws-adapter-browser.mjs.map +1 -0
- package/internal/ws-adapter-node.d.mts +27 -0
- package/internal/ws-adapter-node.d.mts.map +1 -0
- package/internal/ws-adapter-node.d.ts +27 -0
- package/internal/ws-adapter-node.d.ts.map +1 -0
- package/internal/ws-adapter-node.js +90 -0
- package/internal/ws-adapter-node.js.map +1 -0
- package/internal/ws-adapter-node.mjs +86 -0
- package/internal/ws-adapter-node.mjs.map +1 -0
- package/internal/ws-adapter.d.mts +24 -0
- package/internal/ws-adapter.d.mts.map +1 -0
- package/internal/ws-adapter.d.ts +24 -0
- package/internal/ws-adapter.d.ts.map +1 -0
- package/internal/ws-adapter.js +11 -0
- package/internal/ws-adapter.js.map +1 -0
- package/internal/ws-adapter.mjs +8 -0
- package/internal/ws-adapter.mjs.map +1 -0
- package/internal/ws.d.mts +80 -0
- package/internal/ws.d.mts.map +1 -0
- package/internal/ws.d.ts +80 -0
- package/internal/ws.d.ts.map +1 -0
- package/internal/ws.js +153 -0
- package/internal/ws.js.map +1 -0
- package/internal/ws.mjs +147 -0
- package/internal/ws.mjs.map +1 -0
- package/package.json +13 -13
- package/realtime/websocket.d.mts.map +1 -1
- package/realtime/websocket.d.ts.map +1 -1
- package/realtime/websocket.js +7 -2
- package/realtime/websocket.js.map +1 -1
- package/realtime/websocket.mjs +7 -2
- package/realtime/websocket.mjs.map +1 -1
- package/realtime/ws.d.mts.map +1 -1
- package/realtime/ws.d.ts.map +1 -1
- package/realtime/ws.js +5 -1
- package/realtime/ws.js.map +1 -1
- package/realtime/ws.mjs +5 -1
- package/realtime/ws.mjs.map +1 -1
- package/resources/admin/admin.d.mts +10 -0
- package/resources/admin/admin.d.mts.map +1 -0
- package/resources/admin/admin.d.ts +10 -0
- package/resources/admin/admin.d.ts.map +1 -0
- package/resources/admin/admin.js +17 -0
- package/resources/admin/admin.js.map +1 -0
- package/resources/admin/admin.mjs +12 -0
- package/resources/admin/admin.mjs.map +1 -0
- package/resources/admin/index.d.mts +3 -0
- package/resources/admin/index.d.mts.map +1 -0
- package/resources/admin/index.d.ts +3 -0
- package/resources/admin/index.d.ts.map +1 -0
- package/resources/admin/index.js +9 -0
- package/resources/admin/index.js.map +1 -0
- package/resources/admin/index.mjs +4 -0
- package/resources/admin/index.mjs.map +1 -0
- package/resources/admin/organization/admin-api-keys.d.mts +140 -0
- package/resources/admin/organization/admin-api-keys.d.mts.map +1 -0
- package/resources/admin/organization/admin-api-keys.d.ts +140 -0
- package/resources/admin/organization/admin-api-keys.d.ts.map +1 -0
- package/resources/admin/organization/admin-api-keys.js +81 -0
- package/resources/admin/organization/admin-api-keys.js.map +1 -0
- package/resources/admin/organization/admin-api-keys.mjs +77 -0
- package/resources/admin/organization/admin-api-keys.mjs.map +1 -0
- package/resources/admin/organization/audit-logs.d.mts +1267 -0
- package/resources/admin/organization/audit-logs.d.mts.map +1 -0
- package/resources/admin/organization/audit-logs.d.ts +1267 -0
- package/resources/admin/organization/audit-logs.d.ts.map +1 -0
- package/resources/admin/organization/audit-logs.js +31 -0
- package/resources/admin/organization/audit-logs.js.map +1 -0
- package/resources/admin/organization/audit-logs.mjs +27 -0
- package/resources/admin/organization/audit-logs.mjs.map +1 -0
- package/resources/admin/organization/certificates.d.mts +322 -0
- package/resources/admin/organization/certificates.d.mts.map +1 -0
- package/resources/admin/organization/certificates.d.ts +322 -0
- package/resources/admin/organization/certificates.d.ts.map +1 -0
- package/resources/admin/organization/certificates.js +144 -0
- package/resources/admin/organization/certificates.js.map +1 -0
- package/resources/admin/organization/certificates.mjs +140 -0
- package/resources/admin/organization/certificates.mjs.map +1 -0
- package/resources/admin/organization/groups/groups.d.mts +148 -0
- package/resources/admin/organization/groups/groups.d.mts.map +1 -0
- package/resources/admin/organization/groups/groups.d.ts +148 -0
- package/resources/admin/organization/groups/groups.d.ts.map +1 -0
- package/resources/admin/organization/groups/groups.js +92 -0
- package/resources/admin/organization/groups/groups.js.map +1 -0
- package/resources/admin/organization/groups/groups.mjs +87 -0
- package/resources/admin/organization/groups/groups.mjs.map +1 -0
- package/resources/admin/organization/groups/index.d.mts +4 -0
- package/resources/admin/organization/groups/index.d.mts.map +1 -0
- package/resources/admin/organization/groups/index.d.ts +4 -0
- package/resources/admin/organization/groups/index.d.ts.map +1 -0
- package/resources/admin/organization/groups/index.js +11 -0
- package/resources/admin/organization/groups/index.js.map +1 -0
- package/resources/admin/organization/groups/index.mjs +5 -0
- package/resources/admin/organization/groups/index.mjs.map +1 -0
- package/resources/admin/organization/groups/roles.d.mts +182 -0
- package/resources/admin/organization/groups/roles.d.mts.map +1 -0
- package/resources/admin/organization/groups/roles.d.ts +182 -0
- package/resources/admin/organization/groups/roles.d.ts.map +1 -0
- package/resources/admin/organization/groups/roles.js +65 -0
- package/resources/admin/organization/groups/roles.js.map +1 -0
- package/resources/admin/organization/groups/roles.mjs +61 -0
- package/resources/admin/organization/groups/roles.mjs.map +1 -0
- package/resources/admin/organization/groups/users.d.mts +116 -0
- package/resources/admin/organization/groups/users.d.mts.map +1 -0
- package/resources/admin/organization/groups/users.d.ts +116 -0
- package/resources/admin/organization/groups/users.d.ts.map +1 -0
- package/resources/admin/organization/groups/users.js +65 -0
- package/resources/admin/organization/groups/users.js.map +1 -0
- package/resources/admin/organization/groups/users.mjs +61 -0
- package/resources/admin/organization/groups/users.mjs.map +1 -0
- package/resources/admin/organization/groups.d.mts +2 -0
- package/resources/admin/organization/groups.d.mts.map +1 -0
- package/resources/admin/organization/groups.d.ts +2 -0
- package/resources/admin/organization/groups.d.ts.map +1 -0
- package/resources/admin/organization/groups.js +6 -0
- package/resources/admin/organization/groups.js.map +1 -0
- package/resources/admin/organization/groups.mjs +3 -0
- package/resources/admin/organization/groups.mjs.map +1 -0
- package/resources/admin/organization/index.d.mts +11 -0
- package/resources/admin/organization/index.d.mts.map +1 -0
- package/resources/admin/organization/index.d.ts +11 -0
- package/resources/admin/organization/index.d.ts.map +1 -0
- package/resources/admin/organization/index.js +25 -0
- package/resources/admin/organization/index.js.map +1 -0
- package/resources/admin/organization/index.mjs +12 -0
- package/resources/admin/organization/index.mjs.map +1 -0
- package/resources/admin/organization/invites.d.mts +152 -0
- package/resources/admin/organization/invites.d.mts.map +1 -0
- package/resources/admin/organization/invites.d.ts +152 -0
- package/resources/admin/organization/invites.d.ts.map +1 -0
- package/resources/admin/organization/invites.js +83 -0
- package/resources/admin/organization/invites.js.map +1 -0
- package/resources/admin/organization/invites.mjs +79 -0
- package/resources/admin/organization/invites.mjs.map +1 -0
- package/resources/admin/organization/organization.d.mts +42 -0
- package/resources/admin/organization/organization.d.mts.map +1 -0
- package/resources/admin/organization/organization.d.ts +42 -0
- package/resources/admin/organization/organization.d.ts.map +1 -0
- package/resources/admin/organization/organization.js +49 -0
- package/resources/admin/organization/organization.js.map +1 -0
- package/resources/admin/organization/organization.mjs +44 -0
- package/resources/admin/organization/organization.mjs.map +1 -0
- package/resources/admin/organization/projects/api-keys.d.mts +167 -0
- package/resources/admin/organization/projects/api-keys.d.mts.map +1 -0
- package/resources/admin/organization/projects/api-keys.d.ts +167 -0
- package/resources/admin/organization/projects/api-keys.d.ts.map +1 -0
- package/resources/admin/organization/projects/api-keys.js +68 -0
- package/resources/admin/organization/projects/api-keys.js.map +1 -0
- package/resources/admin/organization/projects/api-keys.mjs +64 -0
- package/resources/admin/organization/projects/api-keys.mjs.map +1 -0
- package/resources/admin/organization/projects/certificates.d.mts +186 -0
- package/resources/admin/organization/projects/certificates.d.mts.map +1 -0
- package/resources/admin/organization/projects/certificates.d.ts +186 -0
- package/resources/admin/organization/projects/certificates.d.ts.map +1 -0
- package/resources/admin/organization/projects/certificates.js +64 -0
- package/resources/admin/organization/projects/certificates.js.map +1 -0
- package/resources/admin/organization/projects/certificates.mjs +60 -0
- package/resources/admin/organization/projects/certificates.mjs.map +1 -0
- package/resources/admin/organization/projects/groups/groups.d.mts +119 -0
- package/resources/admin/organization/projects/groups/groups.d.mts.map +1 -0
- package/resources/admin/organization/projects/groups/groups.d.ts +119 -0
- package/resources/admin/organization/projects/groups/groups.d.ts.map +1 -0
- package/resources/admin/organization/projects/groups/groups.js +73 -0
- package/resources/admin/organization/projects/groups/groups.js.map +1 -0
- package/resources/admin/organization/projects/groups/groups.mjs +68 -0
- package/resources/admin/organization/projects/groups/groups.mjs.map +1 -0
- package/resources/admin/organization/projects/groups/index.d.mts +3 -0
- package/resources/admin/organization/projects/groups/index.d.mts.map +1 -0
- package/resources/admin/organization/projects/groups/index.d.ts +3 -0
- package/resources/admin/organization/projects/groups/index.d.ts.map +1 -0
- package/resources/admin/organization/projects/groups/index.js +9 -0
- package/resources/admin/organization/projects/groups/index.js.map +1 -0
- package/resources/admin/organization/projects/groups/index.mjs +4 -0
- package/resources/admin/organization/projects/groups/index.mjs.map +1 -0
- package/resources/admin/organization/projects/groups/roles.d.mts +195 -0
- package/resources/admin/organization/projects/groups/roles.d.mts.map +1 -0
- package/resources/admin/organization/projects/groups/roles.d.ts +195 -0
- package/resources/admin/organization/projects/groups/roles.d.ts.map +1 -0
- package/resources/admin/organization/projects/groups/roles.js +68 -0
- package/resources/admin/organization/projects/groups/roles.js.map +1 -0
- package/resources/admin/organization/projects/groups/roles.mjs +64 -0
- package/resources/admin/organization/projects/groups/roles.mjs.map +1 -0
- package/resources/admin/organization/projects/groups.d.mts +2 -0
- package/resources/admin/organization/projects/groups.d.mts.map +1 -0
- package/resources/admin/organization/projects/groups.d.ts +2 -0
- package/resources/admin/organization/projects/groups.d.ts.map +1 -0
- package/resources/admin/organization/projects/groups.js +6 -0
- package/resources/admin/organization/projects/groups.js.map +1 -0
- package/resources/admin/organization/projects/groups.mjs +3 -0
- package/resources/admin/organization/projects/groups.mjs.map +1 -0
- package/resources/admin/organization/projects/index.d.mts +9 -0
- package/resources/admin/organization/projects/index.d.mts.map +1 -0
- package/resources/admin/organization/projects/index.d.ts +9 -0
- package/resources/admin/organization/projects/index.d.ts.map +1 -0
- package/resources/admin/organization/projects/index.js +21 -0
- package/resources/admin/organization/projects/index.js.map +1 -0
- package/resources/admin/organization/projects/index.mjs +10 -0
- package/resources/admin/organization/projects/index.mjs.map +1 -0
- package/resources/admin/organization/projects/projects.d.mts +172 -0
- package/resources/admin/organization/projects/projects.d.mts.map +1 -0
- package/resources/admin/organization/projects/projects.d.ts +172 -0
- package/resources/admin/organization/projects/projects.d.ts.map +1 -0
- package/resources/admin/organization/projects/projects.js +133 -0
- package/resources/admin/organization/projects/projects.js.map +1 -0
- package/resources/admin/organization/projects/projects.mjs +128 -0
- package/resources/admin/organization/projects/projects.mjs.map +1 -0
- package/resources/admin/organization/projects/rate-limits.d.mts +120 -0
- package/resources/admin/organization/projects/rate-limits.d.mts.map +1 -0
- package/resources/admin/organization/projects/rate-limits.d.ts +120 -0
- package/resources/admin/organization/projects/rate-limits.d.ts.map +1 -0
- package/resources/admin/organization/projects/rate-limits.js +47 -0
- package/resources/admin/organization/projects/rate-limits.js.map +1 -0
- package/resources/admin/organization/projects/rate-limits.mjs +43 -0
- package/resources/admin/organization/projects/rate-limits.mjs.map +1 -0
- package/resources/admin/organization/projects/roles.d.mts +127 -0
- package/resources/admin/organization/projects/roles.d.mts.map +1 -0
- package/resources/admin/organization/projects/roles.d.ts +127 -0
- package/resources/admin/organization/projects/roles.d.ts.map +1 -0
- package/resources/admin/organization/projects/roles.js +89 -0
- package/resources/admin/organization/projects/roles.js.map +1 -0
- package/resources/admin/organization/projects/roles.mjs +85 -0
- package/resources/admin/organization/projects/roles.mjs.map +1 -0
- package/resources/admin/organization/projects/service-accounts.d.mts +141 -0
- package/resources/admin/organization/projects/service-accounts.d.mts.map +1 -0
- package/resources/admin/organization/projects/service-accounts.d.ts +141 -0
- package/resources/admin/organization/projects/service-accounts.d.ts.map +1 -0
- package/resources/admin/organization/projects/service-accounts.js +85 -0
- package/resources/admin/organization/projects/service-accounts.js.map +1 -0
- package/resources/admin/organization/projects/service-accounts.mjs +81 -0
- package/resources/admin/organization/projects/service-accounts.mjs.map +1 -0
- package/resources/admin/organization/projects/users/index.d.mts +3 -0
- package/resources/admin/organization/projects/users/index.d.mts.map +1 -0
- package/resources/admin/organization/projects/users/index.d.ts +3 -0
- package/resources/admin/organization/projects/users/index.d.ts.map +1 -0
- package/resources/admin/organization/projects/users/index.js +9 -0
- package/resources/admin/organization/projects/users/index.js.map +1 -0
- package/resources/admin/organization/projects/users/index.mjs +4 -0
- package/resources/admin/organization/projects/users/index.mjs.map +1 -0
- package/resources/admin/organization/projects/users/roles.d.mts +169 -0
- package/resources/admin/organization/projects/users/roles.d.mts.map +1 -0
- package/resources/admin/organization/projects/users/roles.d.ts +169 -0
- package/resources/admin/organization/projects/users/roles.d.ts.map +1 -0
- package/resources/admin/organization/projects/users/roles.js +68 -0
- package/resources/admin/organization/projects/users/roles.js.map +1 -0
- package/resources/admin/organization/projects/users/roles.mjs +64 -0
- package/resources/admin/organization/projects/users/roles.mjs.map +1 -0
- package/resources/admin/organization/projects/users/users.d.mts +157 -0
- package/resources/admin/organization/projects/users/users.d.mts.map +1 -0
- package/resources/admin/organization/projects/users/users.d.ts +157 -0
- package/resources/admin/organization/projects/users/users.d.ts.map +1 -0
- package/resources/admin/organization/projects/users/users.js +116 -0
- package/resources/admin/organization/projects/users/users.js.map +1 -0
- package/resources/admin/organization/projects/users/users.mjs +111 -0
- package/resources/admin/organization/projects/users/users.mjs.map +1 -0
- package/resources/admin/organization/projects/users.d.mts +2 -0
- package/resources/admin/organization/projects/users.d.mts.map +1 -0
- package/resources/admin/organization/projects/users.d.ts +2 -0
- package/resources/admin/organization/projects/users.d.ts.map +1 -0
- package/resources/admin/organization/projects/users.js +6 -0
- package/resources/admin/organization/projects/users.js.map +1 -0
- package/resources/admin/organization/projects/users.mjs +3 -0
- package/resources/admin/organization/projects/users.mjs.map +1 -0
- package/resources/admin/organization/projects.d.mts +2 -0
- package/resources/admin/organization/projects.d.mts.map +1 -0
- package/resources/admin/organization/projects.d.ts +2 -0
- package/resources/admin/organization/projects.d.ts.map +1 -0
- package/resources/admin/organization/projects.js +6 -0
- package/resources/admin/organization/projects.js.map +1 -0
- package/resources/admin/organization/projects.mjs +3 -0
- package/resources/admin/organization/projects.mjs.map +1 -0
- package/resources/admin/organization/roles.d.mts +142 -0
- package/resources/admin/organization/roles.d.mts.map +1 -0
- package/resources/admin/organization/roles.d.ts +142 -0
- package/resources/admin/organization/roles.d.ts.map +1 -0
- package/resources/admin/organization/roles.js +80 -0
- package/resources/admin/organization/roles.js.map +1 -0
- package/resources/admin/organization/roles.mjs +76 -0
- package/resources/admin/organization/roles.mjs.map +1 -0
- package/resources/admin/organization/usage.d.mts +3519 -0
- package/resources/admin/organization/usage.d.mts.map +1 -0
- package/resources/admin/organization/usage.d.ts +3519 -0
- package/resources/admin/organization/usage.d.ts.map +1 -0
- package/resources/admin/organization/usage.js +171 -0
- package/resources/admin/organization/usage.js.map +1 -0
- package/resources/admin/organization/usage.mjs +167 -0
- package/resources/admin/organization/usage.mjs.map +1 -0
- package/resources/admin/organization/users/index.d.mts +3 -0
- package/resources/admin/organization/users/index.d.mts.map +1 -0
- package/resources/admin/organization/users/index.d.ts +3 -0
- package/resources/admin/organization/users/index.d.ts.map +1 -0
- package/resources/admin/organization/users/index.js +9 -0
- package/resources/admin/organization/users/index.js.map +1 -0
- package/resources/admin/organization/users/index.mjs +4 -0
- package/resources/admin/organization/users/index.mjs.map +1 -0
- package/resources/admin/organization/users/roles.d.mts +156 -0
- package/resources/admin/organization/users/roles.d.mts.map +1 -0
- package/resources/admin/organization/users/roles.d.ts +156 -0
- package/resources/admin/organization/users/roles.d.ts.map +1 -0
- package/resources/admin/organization/users/roles.js +65 -0
- package/resources/admin/organization/users/roles.js.map +1 -0
- package/resources/admin/organization/users/roles.mjs +61 -0
- package/resources/admin/organization/users/roles.mjs.map +1 -0
- package/resources/admin/organization/users/users.d.mts +185 -0
- package/resources/admin/organization/users/users.d.mts.map +1 -0
- package/resources/admin/organization/users/users.d.ts +185 -0
- package/resources/admin/organization/users/users.d.ts.map +1 -0
- package/resources/admin/organization/users/users.js +84 -0
- package/resources/admin/organization/users/users.js.map +1 -0
- package/resources/admin/organization/users/users.mjs +79 -0
- package/resources/admin/organization/users/users.mjs.map +1 -0
- package/resources/admin/organization/users.d.mts +2 -0
- package/resources/admin/organization/users.d.mts.map +1 -0
- package/resources/admin/organization/users.d.ts +2 -0
- package/resources/admin/organization/users.d.ts.map +1 -0
- package/resources/admin/organization/users.js +6 -0
- package/resources/admin/organization/users.js.map +1 -0
- package/resources/admin/organization/users.mjs +3 -0
- package/resources/admin/organization/users.mjs.map +1 -0
- package/resources/admin/organization.d.mts +2 -0
- package/resources/admin/organization.d.mts.map +1 -0
- package/resources/admin/organization.d.ts +2 -0
- package/resources/admin/organization.d.ts.map +1 -0
- package/resources/admin/organization.js +6 -0
- package/resources/admin/organization.js.map +1 -0
- package/resources/admin/organization.mjs +3 -0
- package/resources/admin/organization.mjs.map +1 -0
- package/resources/admin.d.mts +2 -0
- package/resources/admin.d.mts.map +1 -0
- package/resources/admin.d.ts +2 -0
- package/resources/admin.d.ts.map +1 -0
- package/resources/admin.js +6 -0
- package/resources/admin.js.map +1 -0
- package/resources/admin.mjs +3 -0
- package/resources/admin.mjs.map +1 -0
- package/resources/audio/speech.d.mts +2 -2
- package/resources/audio/speech.d.mts.map +1 -1
- package/resources/audio/speech.d.ts +2 -2
- package/resources/audio/speech.d.ts.map +1 -1
- package/resources/audio/speech.js +3 -2
- package/resources/audio/speech.js.map +1 -1
- package/resources/audio/speech.mjs +3 -2
- package/resources/audio/speech.mjs.map +1 -1
- package/resources/audio/transcriptions.d.mts.map +1 -1
- package/resources/audio/transcriptions.d.ts.map +1 -1
- package/resources/audio/transcriptions.js +1 -0
- package/resources/audio/transcriptions.js.map +1 -1
- package/resources/audio/transcriptions.mjs +1 -0
- package/resources/audio/transcriptions.mjs.map +1 -1
- package/resources/audio/translations.d.mts.map +1 -1
- package/resources/audio/translations.d.ts.map +1 -1
- package/resources/audio/translations.js +1 -1
- package/resources/audio/translations.js.map +1 -1
- package/resources/audio/translations.mjs +1 -1
- package/resources/audio/translations.mjs.map +1 -1
- package/resources/batches.d.mts.map +1 -1
- package/resources/batches.d.ts.map +1 -1
- package/resources/batches.js +11 -4
- package/resources/batches.js.map +1 -1
- package/resources/batches.mjs +11 -4
- package/resources/batches.mjs.map +1 -1
- package/resources/beta/assistants.d.mts.map +1 -1
- package/resources/beta/assistants.d.ts.map +1 -1
- package/resources/beta/assistants.js +5 -0
- package/resources/beta/assistants.js.map +1 -1
- package/resources/beta/assistants.mjs +5 -0
- package/resources/beta/assistants.mjs.map +1 -1
- package/resources/beta/chatkit/sessions.d.mts.map +1 -1
- package/resources/beta/chatkit/sessions.d.ts.map +1 -1
- package/resources/beta/chatkit/sessions.js +2 -0
- package/resources/beta/chatkit/sessions.js.map +1 -1
- package/resources/beta/chatkit/sessions.mjs +2 -0
- package/resources/beta/chatkit/sessions.mjs.map +1 -1
- package/resources/beta/chatkit/threads.d.mts.map +1 -1
- package/resources/beta/chatkit/threads.d.ts.map +1 -1
- package/resources/beta/chatkit/threads.js +9 -1
- package/resources/beta/chatkit/threads.js.map +1 -1
- package/resources/beta/chatkit/threads.mjs +9 -1
- package/resources/beta/chatkit/threads.mjs.map +1 -1
- package/resources/beta/realtime/sessions.d.mts.map +1 -1
- package/resources/beta/realtime/sessions.d.ts.map +1 -1
- package/resources/beta/realtime/sessions.js +1 -0
- package/resources/beta/realtime/sessions.js.map +1 -1
- package/resources/beta/realtime/sessions.mjs +1 -0
- package/resources/beta/realtime/sessions.mjs.map +1 -1
- package/resources/beta/realtime/transcription-sessions.d.mts.map +1 -1
- package/resources/beta/realtime/transcription-sessions.d.ts.map +1 -1
- package/resources/beta/realtime/transcription-sessions.js +1 -0
- package/resources/beta/realtime/transcription-sessions.js.map +1 -1
- package/resources/beta/realtime/transcription-sessions.mjs +1 -0
- package/resources/beta/realtime/transcription-sessions.mjs.map +1 -1
- package/resources/beta/threads/messages.d.mts.map +1 -1
- package/resources/beta/threads/messages.d.ts.map +1 -1
- package/resources/beta/threads/messages.js +5 -0
- package/resources/beta/threads/messages.js.map +1 -1
- package/resources/beta/threads/messages.mjs +5 -0
- package/resources/beta/threads/messages.mjs.map +1 -1
- package/resources/beta/threads/runs/runs.d.mts.map +1 -1
- package/resources/beta/threads/runs/runs.d.ts.map +1 -1
- package/resources/beta/threads/runs/runs.js +6 -0
- package/resources/beta/threads/runs/runs.js.map +1 -1
- package/resources/beta/threads/runs/runs.mjs +6 -0
- package/resources/beta/threads/runs/runs.mjs.map +1 -1
- package/resources/beta/threads/runs/steps.d.mts.map +1 -1
- package/resources/beta/threads/runs/steps.d.ts.map +1 -1
- package/resources/beta/threads/runs/steps.js +2 -0
- package/resources/beta/threads/runs/steps.js.map +1 -1
- package/resources/beta/threads/runs/steps.mjs +2 -0
- package/resources/beta/threads/runs/steps.mjs.map +1 -1
- package/resources/beta/threads/threads.d.mts.map +1 -1
- package/resources/beta/threads/threads.d.ts.map +1 -1
- package/resources/beta/threads/threads.js +5 -0
- package/resources/beta/threads/threads.js.map +1 -1
- package/resources/beta/threads/threads.mjs +5 -0
- package/resources/beta/threads/threads.mjs.map +1 -1
- package/resources/chat/completions/completions.d.mts +1 -1
- package/resources/chat/completions/completions.d.mts.map +1 -1
- package/resources/chat/completions/completions.d.ts +1 -1
- package/resources/chat/completions/completions.d.ts.map +1 -1
- package/resources/chat/completions/completions.js +24 -5
- package/resources/chat/completions/completions.js.map +1 -1
- package/resources/chat/completions/completions.mjs +24 -5
- package/resources/chat/completions/completions.mjs.map +1 -1
- package/resources/chat/completions/messages.js +1 -1
- package/resources/chat/completions/messages.js.map +1 -1
- package/resources/chat/completions/messages.mjs +1 -1
- package/resources/chat/completions/messages.mjs.map +1 -1
- package/resources/completions.d.mts +1 -1
- package/resources/completions.d.mts.map +1 -1
- package/resources/completions.d.ts +1 -1
- package/resources/completions.d.ts.map +1 -1
- package/resources/completions.js +6 -1
- package/resources/completions.js.map +1 -1
- package/resources/completions.mjs +6 -1
- package/resources/completions.mjs.map +1 -1
- package/resources/containers/containers.d.mts.map +1 -1
- package/resources/containers/containers.d.ts.map +1 -1
- package/resources/containers/containers.js +11 -3
- package/resources/containers/containers.js.map +1 -1
- package/resources/containers/containers.mjs +11 -3
- package/resources/containers/containers.mjs.map +1 -1
- package/resources/containers/files/content.d.mts.map +1 -1
- package/resources/containers/files/content.d.ts.map +1 -1
- package/resources/containers/files/content.js +1 -0
- package/resources/containers/files/content.js.map +1 -1
- package/resources/containers/files/content.mjs +1 -0
- package/resources/containers/files/content.mjs.map +1 -1
- package/resources/containers/files/files.d.mts.map +1 -1
- package/resources/containers/files/files.d.ts.map +1 -1
- package/resources/containers/files/files.js +7 -2
- package/resources/containers/files/files.js.map +1 -1
- package/resources/containers/files/files.mjs +7 -2
- package/resources/containers/files/files.mjs.map +1 -1
- package/resources/conversations/conversations.d.mts.map +1 -1
- package/resources/conversations/conversations.d.ts.map +1 -1
- package/resources/conversations/conversations.js +14 -4
- package/resources/conversations/conversations.js.map +1 -1
- package/resources/conversations/conversations.mjs +14 -4
- package/resources/conversations/conversations.mjs.map +1 -1
- package/resources/conversations/items.d.mts.map +1 -1
- package/resources/conversations/items.d.ts.map +1 -1
- package/resources/conversations/items.js +11 -3
- package/resources/conversations/items.js.map +1 -1
- package/resources/conversations/items.mjs +11 -3
- package/resources/conversations/items.mjs.map +1 -1
- package/resources/embeddings.d.mts.map +1 -1
- package/resources/embeddings.d.ts.map +1 -1
- package/resources/embeddings.js +1 -0
- package/resources/embeddings.js.map +1 -1
- package/resources/embeddings.mjs +1 -0
- package/resources/embeddings.mjs.map +1 -1
- package/resources/evals/evals.d.mts.map +1 -1
- package/resources/evals/evals.d.ts.map +1 -1
- package/resources/evals/evals.js +9 -5
- package/resources/evals/evals.js.map +1 -1
- package/resources/evals/evals.mjs +9 -5
- package/resources/evals/evals.mjs.map +1 -1
- package/resources/evals/runs/output-items.d.mts.map +1 -1
- package/resources/evals/runs/output-items.d.ts.map +1 -1
- package/resources/evals/runs/output-items.js +5 -2
- package/resources/evals/runs/output-items.js.map +1 -1
- package/resources/evals/runs/output-items.mjs +5 -2
- package/resources/evals/runs/output-items.mjs.map +1 -1
- package/resources/evals/runs/runs.d.mts.map +1 -1
- package/resources/evals/runs/runs.d.ts.map +1 -1
- package/resources/evals/runs/runs.js +18 -4
- package/resources/evals/runs/runs.js.map +1 -1
- package/resources/evals/runs/runs.mjs +18 -4
- package/resources/evals/runs/runs.mjs.map +1 -1
- package/resources/files.d.mts +8 -1
- package/resources/files.d.mts.map +1 -1
- package/resources/files.d.ts +8 -1
- package/resources/files.d.ts.map +1 -1
- package/resources/files.js +17 -5
- package/resources/files.js.map +1 -1
- package/resources/files.mjs +17 -5
- package/resources/files.mjs.map +1 -1
- package/resources/fine-tuning/alpha/graders.d.mts.map +1 -1
- package/resources/fine-tuning/alpha/graders.d.ts.map +1 -1
- package/resources/fine-tuning/alpha/graders.js +10 -2
- package/resources/fine-tuning/alpha/graders.js.map +1 -1
- package/resources/fine-tuning/alpha/graders.mjs +10 -2
- package/resources/fine-tuning/alpha/graders.mjs.map +1 -1
- package/resources/fine-tuning/checkpoints/permissions.d.mts.map +1 -1
- package/resources/fine-tuning/checkpoints/permissions.d.ts.map +1 -1
- package/resources/fine-tuning/checkpoints/permissions.js +4 -3
- package/resources/fine-tuning/checkpoints/permissions.js.map +1 -1
- package/resources/fine-tuning/checkpoints/permissions.mjs +4 -3
- package/resources/fine-tuning/checkpoints/permissions.mjs.map +1 -1
- package/resources/fine-tuning/jobs/checkpoints.js +1 -1
- package/resources/fine-tuning/jobs/checkpoints.js.map +1 -1
- package/resources/fine-tuning/jobs/checkpoints.mjs +1 -1
- package/resources/fine-tuning/jobs/checkpoints.mjs.map +1 -1
- package/resources/fine-tuning/jobs/jobs.d.mts.map +1 -1
- package/resources/fine-tuning/jobs/jobs.d.ts.map +1 -1
- package/resources/fine-tuning/jobs/jobs.js +23 -7
- package/resources/fine-tuning/jobs/jobs.js.map +1 -1
- package/resources/fine-tuning/jobs/jobs.mjs +23 -7
- package/resources/fine-tuning/jobs/jobs.mjs.map +1 -1
- package/resources/images.d.mts.map +1 -1
- package/resources/images.d.ts.map +1 -1
- package/resources/images.js +8 -3
- package/resources/images.js.map +1 -1
- package/resources/images.mjs +8 -3
- package/resources/images.mjs.map +1 -1
- package/resources/index.d.mts +1 -0
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/models.js +3 -3
- package/resources/models.js.map +1 -1
- package/resources/models.mjs +3 -3
- package/resources/models.mjs.map +1 -1
- package/resources/moderations.js +1 -1
- package/resources/moderations.js.map +1 -1
- package/resources/moderations.mjs +1 -1
- package/resources/moderations.mjs.map +1 -1
- package/resources/realtime/calls.d.mts.map +1 -1
- package/resources/realtime/calls.d.ts.map +1 -1
- package/resources/realtime/calls.js +4 -0
- package/resources/realtime/calls.js.map +1 -1
- package/resources/realtime/calls.mjs +4 -0
- package/resources/realtime/calls.mjs.map +1 -1
- package/resources/realtime/client-secrets.d.mts.map +1 -1
- package/resources/realtime/client-secrets.d.ts.map +1 -1
- package/resources/realtime/client-secrets.js +5 -1
- package/resources/realtime/client-secrets.js.map +1 -1
- package/resources/realtime/client-secrets.mjs +5 -1
- package/resources/realtime/client-secrets.mjs.map +1 -1
- package/resources/responses/index.d.mts +2 -0
- package/resources/responses/index.d.mts.map +1 -1
- package/resources/responses/index.d.ts +2 -0
- package/resources/responses/index.d.ts.map +1 -1
- package/resources/responses/input-items.js +1 -1
- package/resources/responses/input-items.js.map +1 -1
- package/resources/responses/input-items.mjs +1 -1
- package/resources/responses/input-items.mjs.map +1 -1
- package/resources/responses/input-tokens.d.mts.map +1 -1
- package/resources/responses/input-tokens.d.ts.map +1 -1
- package/resources/responses/input-tokens.js +5 -1
- package/resources/responses/input-tokens.js.map +1 -1
- package/resources/responses/input-tokens.mjs +5 -1
- package/resources/responses/input-tokens.mjs.map +1 -1
- package/resources/responses/internal-base.d.mts +24 -2
- package/resources/responses/internal-base.d.mts.map +1 -1
- package/resources/responses/internal-base.d.ts +24 -2
- package/resources/responses/internal-base.d.ts.map +1 -1
- package/resources/responses/internal-base.js +5 -9
- package/resources/responses/internal-base.js.map +1 -1
- package/resources/responses/internal-base.mjs +5 -9
- package/resources/responses/internal-base.mjs.map +1 -1
- package/resources/responses/responses.d.mts +19 -3
- package/resources/responses/responses.d.mts.map +1 -1
- package/resources/responses/responses.d.ts +19 -3
- package/resources/responses/responses.d.ts.map +1 -1
- package/resources/responses/responses.js +13 -3
- package/resources/responses/responses.js.map +1 -1
- package/resources/responses/responses.mjs +13 -3
- package/resources/responses/responses.mjs.map +1 -1
- package/resources/responses/ws-base.d.mts +106 -0
- package/resources/responses/ws-base.d.mts.map +1 -0
- package/resources/responses/ws-base.d.ts +106 -0
- package/resources/responses/ws-base.d.ts.map +1 -0
- package/resources/responses/ws-base.js +476 -0
- package/resources/responses/ws-base.js.map +1 -0
- package/resources/responses/ws-base.mjs +472 -0
- package/resources/responses/ws-base.mjs.map +1 -0
- package/resources/responses/ws.d.mts +9 -38
- package/resources/responses/ws.d.mts.map +1 -1
- package/resources/responses/ws.d.ts +9 -38
- package/resources/responses/ws.d.ts.map +1 -1
- package/resources/responses/ws.js +17 -171
- package/resources/responses/ws.js.map +1 -1
- package/resources/responses/ws.mjs +17 -171
- package/resources/responses/ws.mjs.map +1 -1
- package/resources/skills/content.d.mts.map +1 -1
- package/resources/skills/content.d.ts.map +1 -1
- package/resources/skills/content.js +1 -0
- package/resources/skills/content.js.map +1 -1
- package/resources/skills/content.mjs +1 -0
- package/resources/skills/content.mjs.map +1 -1
- package/resources/skills/skills.d.mts.map +1 -1
- package/resources/skills/skills.d.ts.map +1 -1
- package/resources/skills/skills.js +13 -5
- package/resources/skills/skills.js.map +1 -1
- package/resources/skills/skills.mjs +13 -5
- package/resources/skills/skills.mjs.map +1 -1
- package/resources/skills/versions/content.d.mts.map +1 -1
- package/resources/skills/versions/content.d.ts.map +1 -1
- package/resources/skills/versions/content.js +1 -0
- package/resources/skills/versions/content.js.map +1 -1
- package/resources/skills/versions/content.mjs +1 -0
- package/resources/skills/versions/content.mjs.map +1 -1
- package/resources/skills/versions/versions.d.mts.map +1 -1
- package/resources/skills/versions/versions.d.ts.map +1 -1
- package/resources/skills/versions/versions.js +10 -3
- package/resources/skills/versions/versions.js.map +1 -1
- package/resources/skills/versions/versions.mjs +10 -3
- package/resources/skills/versions/versions.mjs.map +1 -1
- package/resources/uploads/parts.js +1 -1
- package/resources/uploads/parts.js.map +1 -1
- package/resources/uploads/parts.mjs +1 -1
- package/resources/uploads/parts.mjs.map +1 -1
- package/resources/uploads/uploads.d.mts.map +1 -1
- package/resources/uploads/uploads.d.ts.map +1 -1
- package/resources/uploads/uploads.js +10 -3
- package/resources/uploads/uploads.js.map +1 -1
- package/resources/uploads/uploads.mjs +10 -3
- package/resources/uploads/uploads.mjs.map +1 -1
- package/resources/vector-stores/file-batches.d.mts.map +1 -1
- package/resources/vector-stores/file-batches.d.ts.map +1 -1
- package/resources/vector-stores/file-batches.js +9 -1
- package/resources/vector-stores/file-batches.js.map +1 -1
- package/resources/vector-stores/file-batches.mjs +9 -1
- package/resources/vector-stores/file-batches.mjs.map +1 -1
- package/resources/vector-stores/files.d.mts.map +1 -1
- package/resources/vector-stores/files.d.ts.map +1 -1
- package/resources/vector-stores/files.js +10 -1
- package/resources/vector-stores/files.js.map +1 -1
- package/resources/vector-stores/files.mjs +10 -1
- package/resources/vector-stores/files.mjs.map +1 -1
- package/resources/vector-stores/vector-stores.d.mts.map +1 -1
- package/resources/vector-stores/vector-stores.d.ts.map +1 -1
- package/resources/vector-stores/vector-stores.js +6 -0
- package/resources/vector-stores/vector-stores.js.map +1 -1
- package/resources/vector-stores/vector-stores.mjs +6 -0
- package/resources/vector-stores/vector-stores.mjs.map +1 -1
- package/resources/videos.d.mts.map +1 -1
- package/resources/videos.d.ts.map +1 -1
- package/resources/videos.js +17 -9
- package/resources/videos.js.map +1 -1
- package/resources/videos.mjs +17 -9
- package/resources/videos.mjs.map +1 -1
- package/src/azure.ts +7 -3
- package/src/beta/realtime/websocket.ts +7 -2
- package/src/beta/realtime/ws.ts +5 -1
- package/src/client.ts +114 -27
- package/src/core/EventEmitter.ts +16 -0
- package/src/core/pagination.ts +62 -0
- package/src/internal/request-options.ts +1 -0
- package/src/internal/types.ts +6 -8
- package/src/internal/utils/env.ts +2 -2
- package/src/internal/ws-adapter-browser.ts +123 -0
- package/src/internal/ws-adapter-node.ts +105 -0
- package/src/internal/ws-adapter.ts +30 -0
- package/src/internal/ws.ts +193 -0
- package/src/realtime/websocket.ts +7 -2
- package/src/realtime/ws.ts +5 -1
- package/src/resources/admin/admin.ts +15 -0
- package/src/resources/admin/index.ts +4 -0
- package/src/resources/admin/organization/admin-api-keys.ts +199 -0
- package/src/resources/admin/organization/audit-logs.ts +1597 -0
- package/src/resources/admin/organization/certificates.ts +458 -0
- package/src/resources/admin/organization/groups/groups.ts +251 -0
- package/src/resources/admin/organization/groups/index.ts +32 -0
- package/src/resources/admin/organization/groups/roles.ts +239 -0
- package/src/resources/admin/organization/groups/users.ts +164 -0
- package/src/resources/admin/organization/groups.ts +3 -0
- package/src/resources/admin/organization/index.ts +99 -0
- package/src/resources/admin/organization/invites.ts +214 -0
- package/src/resources/admin/organization/organization.ts +232 -0
- package/src/resources/admin/organization/projects/api-keys.ts +239 -0
- package/src/resources/admin/organization/projects/certificates.ts +269 -0
- package/src/resources/admin/organization/projects/groups/groups.ts +193 -0
- package/src/resources/admin/organization/projects/groups/index.ts +21 -0
- package/src/resources/admin/organization/projects/groups/roles.ts +261 -0
- package/src/resources/admin/organization/projects/groups.ts +3 -0
- package/src/resources/admin/organization/projects/index.ts +77 -0
- package/src/resources/admin/organization/projects/projects.ts +372 -0
- package/src/resources/admin/organization/projects/rate-limits.ts +173 -0
- package/src/resources/admin/organization/projects/roles.ts +182 -0
- package/src/resources/admin/organization/projects/service-accounts.ts +224 -0
- package/src/resources/admin/organization/projects/users/index.ts +23 -0
- package/src/resources/admin/organization/projects/users/roles.ts +226 -0
- package/src/resources/admin/organization/projects/users/users.ts +252 -0
- package/src/resources/admin/organization/projects/users.ts +3 -0
- package/src/resources/admin/organization/projects.ts +3 -0
- package/src/resources/admin/organization/roles.ts +200 -0
- package/src/resources/admin/organization/usage.ts +4429 -0
- package/src/resources/admin/organization/users/index.ts +20 -0
- package/src/resources/admin/organization/users/roles.ts +208 -0
- package/src/resources/admin/organization/users/users.ts +287 -0
- package/src/resources/admin/organization/users.ts +3 -0
- package/src/resources/admin/organization.ts +3 -0
- package/src/resources/admin.ts +3 -0
- package/src/resources/audio/speech.ts +3 -2
- package/src/resources/audio/transcriptions.ts +1 -0
- package/src/resources/audio/translations.ts +4 -1
- package/src/resources/batches.ts +11 -4
- package/src/resources/beta/assistants.ts +5 -0
- package/src/resources/beta/chatkit/sessions.ts +2 -0
- package/src/resources/beta/chatkit/threads.ts +9 -1
- package/src/resources/beta/realtime/sessions.ts +1 -0
- package/src/resources/beta/realtime/transcription-sessions.ts +1 -0
- package/src/resources/beta/threads/messages.ts +5 -0
- package/src/resources/beta/threads/runs/runs.ts +6 -0
- package/src/resources/beta/threads/runs/steps.ts +2 -0
- package/src/resources/beta/threads/threads.ts +5 -0
- package/src/resources/chat/completions/completions.ts +25 -8
- package/src/resources/chat/completions/messages.ts +1 -1
- package/src/resources/completions.ts +7 -4
- package/src/resources/containers/containers.ts +11 -3
- package/src/resources/containers/files/content.ts +1 -0
- package/src/resources/containers/files/files.ts +7 -2
- package/src/resources/conversations/conversations.ts +14 -4
- package/src/resources/conversations/items.ts +11 -3
- package/src/resources/embeddings.ts +1 -0
- package/src/resources/evals/evals.ts +9 -5
- package/src/resources/evals/runs/output-items.ts +5 -2
- package/src/resources/evals/runs/runs.ts +18 -4
- package/src/resources/files.ts +20 -5
- package/src/resources/fine-tuning/alpha/graders.ts +10 -2
- package/src/resources/fine-tuning/checkpoints/permissions.ts +4 -3
- package/src/resources/fine-tuning/jobs/checkpoints.ts +1 -1
- package/src/resources/fine-tuning/jobs/jobs.ts +23 -7
- package/src/resources/images.ts +11 -5
- package/src/resources/index.ts +1 -0
- package/src/resources/models.ts +3 -3
- package/src/resources/moderations.ts +1 -1
- package/src/resources/realtime/calls.ts +4 -0
- package/src/resources/realtime/client-secrets.ts +5 -1
- package/src/resources/responses/index.ts +2 -0
- package/src/resources/responses/input-items.ts +1 -1
- package/src/resources/responses/input-tokens.ts +5 -1
- package/src/resources/responses/internal-base.ts +26 -10
- package/src/resources/responses/responses.ts +35 -8
- package/src/resources/responses/ws-base.ts +611 -0
- package/src/resources/responses/ws.ts +23 -186
- package/src/resources/skills/content.ts +1 -0
- package/src/resources/skills/skills.ts +16 -5
- package/src/resources/skills/versions/content.ts +1 -0
- package/src/resources/skills/versions/versions.ts +10 -3
- package/src/resources/uploads/parts.ts +1 -1
- package/src/resources/uploads/uploads.ts +10 -3
- package/src/resources/vector-stores/file-batches.ts +9 -1
- package/src/resources/vector-stores/files.ts +10 -1
- package/src/resources/vector-stores/vector-stores.ts +6 -0
- package/src/resources/videos.ts +20 -9
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -0,0 +1,3519 @@
|
|
|
1
|
+
import { APIResource } from "../../../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../../../core/api-promise.js";
|
|
3
|
+
import { RequestOptions } from "../../../internal/request-options.js";
|
|
4
|
+
export declare class Usage extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Get audio speeches usage details for the organization.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* const response =
|
|
11
|
+
* await client.admin.organization.usage.audioSpeeches({
|
|
12
|
+
* start_time: 0,
|
|
13
|
+
* });
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
audioSpeeches(query: UsageAudioSpeechesParams, options?: RequestOptions): APIPromise<UsageAudioSpeechesResponse>;
|
|
17
|
+
/**
|
|
18
|
+
* Get audio transcriptions usage details for the organization.
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```ts
|
|
22
|
+
* const response =
|
|
23
|
+
* await client.admin.organization.usage.audioTranscriptions(
|
|
24
|
+
* { start_time: 0 },
|
|
25
|
+
* );
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
audioTranscriptions(query: UsageAudioTranscriptionsParams, options?: RequestOptions): APIPromise<UsageAudioTranscriptionsResponse>;
|
|
29
|
+
/**
|
|
30
|
+
* Get code interpreter sessions usage details for the organization.
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* ```ts
|
|
34
|
+
* const response =
|
|
35
|
+
* await client.admin.organization.usage.codeInterpreterSessions(
|
|
36
|
+
* { start_time: 0 },
|
|
37
|
+
* );
|
|
38
|
+
* ```
|
|
39
|
+
*/
|
|
40
|
+
codeInterpreterSessions(query: UsageCodeInterpreterSessionsParams, options?: RequestOptions): APIPromise<UsageCodeInterpreterSessionsResponse>;
|
|
41
|
+
/**
|
|
42
|
+
* Get completions usage details for the organization.
|
|
43
|
+
*
|
|
44
|
+
* @example
|
|
45
|
+
* ```ts
|
|
46
|
+
* const response =
|
|
47
|
+
* await client.admin.organization.usage.completions({
|
|
48
|
+
* start_time: 0,
|
|
49
|
+
* });
|
|
50
|
+
* ```
|
|
51
|
+
*/
|
|
52
|
+
completions(query: UsageCompletionsParams, options?: RequestOptions): APIPromise<UsageCompletionsResponse>;
|
|
53
|
+
/**
|
|
54
|
+
* Get costs details for the organization.
|
|
55
|
+
*
|
|
56
|
+
* @example
|
|
57
|
+
* ```ts
|
|
58
|
+
* const response =
|
|
59
|
+
* await client.admin.organization.usage.costs({
|
|
60
|
+
* start_time: 0,
|
|
61
|
+
* });
|
|
62
|
+
* ```
|
|
63
|
+
*/
|
|
64
|
+
costs(query: UsageCostsParams, options?: RequestOptions): APIPromise<UsageCostsResponse>;
|
|
65
|
+
/**
|
|
66
|
+
* Get embeddings usage details for the organization.
|
|
67
|
+
*
|
|
68
|
+
* @example
|
|
69
|
+
* ```ts
|
|
70
|
+
* const response =
|
|
71
|
+
* await client.admin.organization.usage.embeddings({
|
|
72
|
+
* start_time: 0,
|
|
73
|
+
* });
|
|
74
|
+
* ```
|
|
75
|
+
*/
|
|
76
|
+
embeddings(query: UsageEmbeddingsParams, options?: RequestOptions): APIPromise<UsageEmbeddingsResponse>;
|
|
77
|
+
/**
|
|
78
|
+
* Get images usage details for the organization.
|
|
79
|
+
*
|
|
80
|
+
* @example
|
|
81
|
+
* ```ts
|
|
82
|
+
* const response =
|
|
83
|
+
* await client.admin.organization.usage.images({
|
|
84
|
+
* start_time: 0,
|
|
85
|
+
* });
|
|
86
|
+
* ```
|
|
87
|
+
*/
|
|
88
|
+
images(query: UsageImagesParams, options?: RequestOptions): APIPromise<UsageImagesResponse>;
|
|
89
|
+
/**
|
|
90
|
+
* Get moderations usage details for the organization.
|
|
91
|
+
*
|
|
92
|
+
* @example
|
|
93
|
+
* ```ts
|
|
94
|
+
* const response =
|
|
95
|
+
* await client.admin.organization.usage.moderations({
|
|
96
|
+
* start_time: 0,
|
|
97
|
+
* });
|
|
98
|
+
* ```
|
|
99
|
+
*/
|
|
100
|
+
moderations(query: UsageModerationsParams, options?: RequestOptions): APIPromise<UsageModerationsResponse>;
|
|
101
|
+
/**
|
|
102
|
+
* Get vector stores usage details for the organization.
|
|
103
|
+
*
|
|
104
|
+
* @example
|
|
105
|
+
* ```ts
|
|
106
|
+
* const response =
|
|
107
|
+
* await client.admin.organization.usage.vectorStores({
|
|
108
|
+
* start_time: 0,
|
|
109
|
+
* });
|
|
110
|
+
* ```
|
|
111
|
+
*/
|
|
112
|
+
vectorStores(query: UsageVectorStoresParams, options?: RequestOptions): APIPromise<UsageVectorStoresResponse>;
|
|
113
|
+
}
|
|
114
|
+
export interface UsageAudioSpeechesResponse {
|
|
115
|
+
data: Array<UsageAudioSpeechesResponse.Data>;
|
|
116
|
+
has_more: boolean;
|
|
117
|
+
next_page: string | null;
|
|
118
|
+
object: 'page';
|
|
119
|
+
}
|
|
120
|
+
export declare namespace UsageAudioSpeechesResponse {
|
|
121
|
+
interface Data {
|
|
122
|
+
end_time: number;
|
|
123
|
+
object: 'bucket';
|
|
124
|
+
results: Array<Data.OrganizationUsageCompletionsResult | Data.OrganizationUsageEmbeddingsResult | Data.OrganizationUsageModerationsResult | Data.OrganizationUsageImagesResult | Data.OrganizationUsageAudioSpeechesResult | Data.OrganizationUsageAudioTranscriptionsResult | Data.OrganizationUsageVectorStoresResult | Data.OrganizationUsageCodeInterpreterSessionsResult | Data.OrganizationCostsResult>;
|
|
125
|
+
start_time: number;
|
|
126
|
+
}
|
|
127
|
+
namespace Data {
|
|
128
|
+
/**
|
|
129
|
+
* The aggregated completions usage details of the specific time bucket.
|
|
130
|
+
*/
|
|
131
|
+
interface OrganizationUsageCompletionsResult {
|
|
132
|
+
/**
|
|
133
|
+
* The aggregated number of text input tokens used, including cached tokens. For
|
|
134
|
+
* customers subscribe to scale tier, this includes scale tier tokens.
|
|
135
|
+
*/
|
|
136
|
+
input_tokens: number;
|
|
137
|
+
/**
|
|
138
|
+
* The count of requests made to the model.
|
|
139
|
+
*/
|
|
140
|
+
num_model_requests: number;
|
|
141
|
+
object: 'organization.usage.completions.result';
|
|
142
|
+
/**
|
|
143
|
+
* The aggregated number of text output tokens used. For customers subscribe to
|
|
144
|
+
* scale tier, this includes scale tier tokens.
|
|
145
|
+
*/
|
|
146
|
+
output_tokens: number;
|
|
147
|
+
/**
|
|
148
|
+
* When `group_by=api_key_id`, this field provides the API key ID of the grouped
|
|
149
|
+
* usage result.
|
|
150
|
+
*/
|
|
151
|
+
api_key_id?: string | null;
|
|
152
|
+
/**
|
|
153
|
+
* When `group_by=batch`, this field tells whether the grouped usage result is
|
|
154
|
+
* batch or not.
|
|
155
|
+
*/
|
|
156
|
+
batch?: boolean | null;
|
|
157
|
+
/**
|
|
158
|
+
* The aggregated number of audio input tokens used, including cached tokens.
|
|
159
|
+
*/
|
|
160
|
+
input_audio_tokens?: number;
|
|
161
|
+
/**
|
|
162
|
+
* The aggregated number of text input tokens that has been cached from previous
|
|
163
|
+
* requests. For customers subscribe to scale tier, this includes scale tier
|
|
164
|
+
* tokens.
|
|
165
|
+
*/
|
|
166
|
+
input_cached_tokens?: number;
|
|
167
|
+
/**
|
|
168
|
+
* When `group_by=model`, this field provides the model name of the grouped usage
|
|
169
|
+
* result.
|
|
170
|
+
*/
|
|
171
|
+
model?: string | null;
|
|
172
|
+
/**
|
|
173
|
+
* The aggregated number of audio output tokens used.
|
|
174
|
+
*/
|
|
175
|
+
output_audio_tokens?: number;
|
|
176
|
+
/**
|
|
177
|
+
* When `group_by=project_id`, this field provides the project ID of the grouped
|
|
178
|
+
* usage result.
|
|
179
|
+
*/
|
|
180
|
+
project_id?: string | null;
|
|
181
|
+
/**
|
|
182
|
+
* When `group_by=service_tier`, this field provides the service tier of the
|
|
183
|
+
* grouped usage result.
|
|
184
|
+
*/
|
|
185
|
+
service_tier?: string | null;
|
|
186
|
+
/**
|
|
187
|
+
* When `group_by=user_id`, this field provides the user ID of the grouped usage
|
|
188
|
+
* result.
|
|
189
|
+
*/
|
|
190
|
+
user_id?: string | null;
|
|
191
|
+
}
|
|
192
|
+
/**
|
|
193
|
+
* The aggregated embeddings usage details of the specific time bucket.
|
|
194
|
+
*/
|
|
195
|
+
interface OrganizationUsageEmbeddingsResult {
|
|
196
|
+
/**
|
|
197
|
+
* The aggregated number of input tokens used.
|
|
198
|
+
*/
|
|
199
|
+
input_tokens: number;
|
|
200
|
+
/**
|
|
201
|
+
* The count of requests made to the model.
|
|
202
|
+
*/
|
|
203
|
+
num_model_requests: number;
|
|
204
|
+
object: 'organization.usage.embeddings.result';
|
|
205
|
+
/**
|
|
206
|
+
* When `group_by=api_key_id`, this field provides the API key ID of the grouped
|
|
207
|
+
* usage result.
|
|
208
|
+
*/
|
|
209
|
+
api_key_id?: string | null;
|
|
210
|
+
/**
|
|
211
|
+
* When `group_by=model`, this field provides the model name of the grouped usage
|
|
212
|
+
* result.
|
|
213
|
+
*/
|
|
214
|
+
model?: string | null;
|
|
215
|
+
/**
|
|
216
|
+
* When `group_by=project_id`, this field provides the project ID of the grouped
|
|
217
|
+
* usage result.
|
|
218
|
+
*/
|
|
219
|
+
project_id?: string | null;
|
|
220
|
+
/**
|
|
221
|
+
* When `group_by=user_id`, this field provides the user ID of the grouped usage
|
|
222
|
+
* result.
|
|
223
|
+
*/
|
|
224
|
+
user_id?: string | null;
|
|
225
|
+
}
|
|
226
|
+
/**
|
|
227
|
+
* The aggregated moderations usage details of the specific time bucket.
|
|
228
|
+
*/
|
|
229
|
+
interface OrganizationUsageModerationsResult {
|
|
230
|
+
/**
|
|
231
|
+
* The aggregated number of input tokens used.
|
|
232
|
+
*/
|
|
233
|
+
input_tokens: number;
|
|
234
|
+
/**
|
|
235
|
+
* The count of requests made to the model.
|
|
236
|
+
*/
|
|
237
|
+
num_model_requests: number;
|
|
238
|
+
object: 'organization.usage.moderations.result';
|
|
239
|
+
/**
|
|
240
|
+
* When `group_by=api_key_id`, this field provides the API key ID of the grouped
|
|
241
|
+
* usage result.
|
|
242
|
+
*/
|
|
243
|
+
api_key_id?: string | null;
|
|
244
|
+
/**
|
|
245
|
+
* When `group_by=model`, this field provides the model name of the grouped usage
|
|
246
|
+
* result.
|
|
247
|
+
*/
|
|
248
|
+
model?: string | null;
|
|
249
|
+
/**
|
|
250
|
+
* When `group_by=project_id`, this field provides the project ID of the grouped
|
|
251
|
+
* usage result.
|
|
252
|
+
*/
|
|
253
|
+
project_id?: string | null;
|
|
254
|
+
/**
|
|
255
|
+
* When `group_by=user_id`, this field provides the user ID of the grouped usage
|
|
256
|
+
* result.
|
|
257
|
+
*/
|
|
258
|
+
user_id?: string | null;
|
|
259
|
+
}
|
|
260
|
+
/**
|
|
261
|
+
* The aggregated images usage details of the specific time bucket.
|
|
262
|
+
*/
|
|
263
|
+
interface OrganizationUsageImagesResult {
|
|
264
|
+
/**
|
|
265
|
+
* The number of images processed.
|
|
266
|
+
*/
|
|
267
|
+
images: number;
|
|
268
|
+
/**
|
|
269
|
+
* The count of requests made to the model.
|
|
270
|
+
*/
|
|
271
|
+
num_model_requests: number;
|
|
272
|
+
object: 'organization.usage.images.result';
|
|
273
|
+
/**
|
|
274
|
+
* When `group_by=api_key_id`, this field provides the API key ID of the grouped
|
|
275
|
+
* usage result.
|
|
276
|
+
*/
|
|
277
|
+
api_key_id?: string | null;
|
|
278
|
+
/**
|
|
279
|
+
* When `group_by=model`, this field provides the model name of the grouped usage
|
|
280
|
+
* result.
|
|
281
|
+
*/
|
|
282
|
+
model?: string | null;
|
|
283
|
+
/**
|
|
284
|
+
* When `group_by=project_id`, this field provides the project ID of the grouped
|
|
285
|
+
* usage result.
|
|
286
|
+
*/
|
|
287
|
+
project_id?: string | null;
|
|
288
|
+
/**
|
|
289
|
+
* When `group_by=size`, this field provides the image size of the grouped usage
|
|
290
|
+
* result.
|
|
291
|
+
*/
|
|
292
|
+
size?: string | null;
|
|
293
|
+
/**
|
|
294
|
+
* When `group_by=source`, this field provides the source of the grouped usage
|
|
295
|
+
* result, possible values are `image.generation`, `image.edit`, `image.variation`.
|
|
296
|
+
*/
|
|
297
|
+
source?: string | null;
|
|
298
|
+
/**
|
|
299
|
+
* When `group_by=user_id`, this field provides the user ID of the grouped usage
|
|
300
|
+
* result.
|
|
301
|
+
*/
|
|
302
|
+
user_id?: string | null;
|
|
303
|
+
}
|
|
304
|
+
/**
|
|
305
|
+
* The aggregated audio speeches usage details of the specific time bucket.
|
|
306
|
+
*/
|
|
307
|
+
interface OrganizationUsageAudioSpeechesResult {
|
|
308
|
+
/**
|
|
309
|
+
* The number of characters processed.
|
|
310
|
+
*/
|
|
311
|
+
characters: number;
|
|
312
|
+
/**
|
|
313
|
+
* The count of requests made to the model.
|
|
314
|
+
*/
|
|
315
|
+
num_model_requests: number;
|
|
316
|
+
object: 'organization.usage.audio_speeches.result';
|
|
317
|
+
/**
|
|
318
|
+
* When `group_by=api_key_id`, this field provides the API key ID of the grouped
|
|
319
|
+
* usage result.
|
|
320
|
+
*/
|
|
321
|
+
api_key_id?: string | null;
|
|
322
|
+
/**
|
|
323
|
+
* When `group_by=model`, this field provides the model name of the grouped usage
|
|
324
|
+
* result.
|
|
325
|
+
*/
|
|
326
|
+
model?: string | null;
|
|
327
|
+
/**
|
|
328
|
+
* When `group_by=project_id`, this field provides the project ID of the grouped
|
|
329
|
+
* usage result.
|
|
330
|
+
*/
|
|
331
|
+
project_id?: string | null;
|
|
332
|
+
/**
|
|
333
|
+
* When `group_by=user_id`, this field provides the user ID of the grouped usage
|
|
334
|
+
* result.
|
|
335
|
+
*/
|
|
336
|
+
user_id?: string | null;
|
|
337
|
+
}
|
|
338
|
+
/**
|
|
339
|
+
* The aggregated audio transcriptions usage details of the specific time bucket.
|
|
340
|
+
*/
|
|
341
|
+
interface OrganizationUsageAudioTranscriptionsResult {
|
|
342
|
+
/**
|
|
343
|
+
* The count of requests made to the model.
|
|
344
|
+
*/
|
|
345
|
+
num_model_requests: number;
|
|
346
|
+
object: 'organization.usage.audio_transcriptions.result';
|
|
347
|
+
/**
|
|
348
|
+
* The number of seconds processed.
|
|
349
|
+
*/
|
|
350
|
+
seconds: number;
|
|
351
|
+
/**
|
|
352
|
+
* When `group_by=api_key_id`, this field provides the API key ID of the grouped
|
|
353
|
+
* usage result.
|
|
354
|
+
*/
|
|
355
|
+
api_key_id?: string | null;
|
|
356
|
+
/**
|
|
357
|
+
* When `group_by=model`, this field provides the model name of the grouped usage
|
|
358
|
+
* result.
|
|
359
|
+
*/
|
|
360
|
+
model?: string | null;
|
|
361
|
+
/**
|
|
362
|
+
* When `group_by=project_id`, this field provides the project ID of the grouped
|
|
363
|
+
* usage result.
|
|
364
|
+
*/
|
|
365
|
+
project_id?: string | null;
|
|
366
|
+
/**
|
|
367
|
+
* When `group_by=user_id`, this field provides the user ID of the grouped usage
|
|
368
|
+
* result.
|
|
369
|
+
*/
|
|
370
|
+
user_id?: string | null;
|
|
371
|
+
}
|
|
372
|
+
/**
|
|
373
|
+
* The aggregated vector stores usage details of the specific time bucket.
|
|
374
|
+
*/
|
|
375
|
+
interface OrganizationUsageVectorStoresResult {
|
|
376
|
+
object: 'organization.usage.vector_stores.result';
|
|
377
|
+
/**
|
|
378
|
+
* The vector stores usage in bytes.
|
|
379
|
+
*/
|
|
380
|
+
usage_bytes: number;
|
|
381
|
+
/**
|
|
382
|
+
* When `group_by=project_id`, this field provides the project ID of the grouped
|
|
383
|
+
* usage result.
|
|
384
|
+
*/
|
|
385
|
+
project_id?: string | null;
|
|
386
|
+
}
|
|
387
|
+
/**
|
|
388
|
+
* The aggregated code interpreter sessions usage details of the specific time
|
|
389
|
+
* bucket.
|
|
390
|
+
*/
|
|
391
|
+
interface OrganizationUsageCodeInterpreterSessionsResult {
|
|
392
|
+
/**
|
|
393
|
+
* The number of code interpreter sessions.
|
|
394
|
+
*/
|
|
395
|
+
num_sessions: number;
|
|
396
|
+
object: 'organization.usage.code_interpreter_sessions.result';
|
|
397
|
+
/**
|
|
398
|
+
* When `group_by=project_id`, this field provides the project ID of the grouped
|
|
399
|
+
* usage result.
|
|
400
|
+
*/
|
|
401
|
+
project_id?: string | null;
|
|
402
|
+
}
|
|
403
|
+
/**
|
|
404
|
+
* The aggregated costs details of the specific time bucket.
|
|
405
|
+
*/
|
|
406
|
+
interface OrganizationCostsResult {
|
|
407
|
+
object: 'organization.costs.result';
|
|
408
|
+
/**
|
|
409
|
+
* The monetary value in its associated currency.
|
|
410
|
+
*/
|
|
411
|
+
amount?: OrganizationCostsResult.Amount;
|
|
412
|
+
/**
|
|
413
|
+
* When `group_by=api_key_id`, this field provides the API Key ID of the grouped
|
|
414
|
+
* costs result.
|
|
415
|
+
*/
|
|
416
|
+
api_key_id?: string | null;
|
|
417
|
+
/**
|
|
418
|
+
* When `group_by=line_item`, this field provides the line item of the grouped
|
|
419
|
+
* costs result.
|
|
420
|
+
*/
|
|
421
|
+
line_item?: string | null;
|
|
422
|
+
/**
|
|
423
|
+
* When `group_by=project_id`, this field provides the project ID of the grouped
|
|
424
|
+
* costs result.
|
|
425
|
+
*/
|
|
426
|
+
project_id?: string | null;
|
|
427
|
+
}
|
|
428
|
+
namespace OrganizationCostsResult {
|
|
429
|
+
/**
|
|
430
|
+
* The monetary value in its associated currency.
|
|
431
|
+
*/
|
|
432
|
+
interface Amount {
|
|
433
|
+
/**
|
|
434
|
+
* Lowercase ISO-4217 currency e.g. "usd"
|
|
435
|
+
*/
|
|
436
|
+
currency?: string;
|
|
437
|
+
/**
|
|
438
|
+
* The numeric value of the cost.
|
|
439
|
+
*/
|
|
440
|
+
value?: number;
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
export interface UsageAudioTranscriptionsResponse {
|
|
446
|
+
data: Array<UsageAudioTranscriptionsResponse.Data>;
|
|
447
|
+
has_more: boolean;
|
|
448
|
+
next_page: string | null;
|
|
449
|
+
object: 'page';
|
|
450
|
+
}
|
|
451
|
+
export declare namespace UsageAudioTranscriptionsResponse {
|
|
452
|
+
interface Data {
|
|
453
|
+
end_time: number;
|
|
454
|
+
object: 'bucket';
|
|
455
|
+
results: Array<Data.OrganizationUsageCompletionsResult | Data.OrganizationUsageEmbeddingsResult | Data.OrganizationUsageModerationsResult | Data.OrganizationUsageImagesResult | Data.OrganizationUsageAudioSpeechesResult | Data.OrganizationUsageAudioTranscriptionsResult | Data.OrganizationUsageVectorStoresResult | Data.OrganizationUsageCodeInterpreterSessionsResult | Data.OrganizationCostsResult>;
|
|
456
|
+
start_time: number;
|
|
457
|
+
}
|
|
458
|
+
namespace Data {
|
|
459
|
+
/**
|
|
460
|
+
* The aggregated completions usage details of the specific time bucket.
|
|
461
|
+
*/
|
|
462
|
+
interface OrganizationUsageCompletionsResult {
|
|
463
|
+
/**
|
|
464
|
+
* The aggregated number of text input tokens used, including cached tokens. For
|
|
465
|
+
* customers subscribe to scale tier, this includes scale tier tokens.
|
|
466
|
+
*/
|
|
467
|
+
input_tokens: number;
|
|
468
|
+
/**
|
|
469
|
+
* The count of requests made to the model.
|
|
470
|
+
*/
|
|
471
|
+
num_model_requests: number;
|
|
472
|
+
object: 'organization.usage.completions.result';
|
|
473
|
+
/**
|
|
474
|
+
* The aggregated number of text output tokens used. For customers subscribe to
|
|
475
|
+
* scale tier, this includes scale tier tokens.
|
|
476
|
+
*/
|
|
477
|
+
output_tokens: number;
|
|
478
|
+
/**
|
|
479
|
+
* When `group_by=api_key_id`, this field provides the API key ID of the grouped
|
|
480
|
+
* usage result.
|
|
481
|
+
*/
|
|
482
|
+
api_key_id?: string | null;
|
|
483
|
+
/**
|
|
484
|
+
* When `group_by=batch`, this field tells whether the grouped usage result is
|
|
485
|
+
* batch or not.
|
|
486
|
+
*/
|
|
487
|
+
batch?: boolean | null;
|
|
488
|
+
/**
|
|
489
|
+
* The aggregated number of audio input tokens used, including cached tokens.
|
|
490
|
+
*/
|
|
491
|
+
input_audio_tokens?: number;
|
|
492
|
+
/**
|
|
493
|
+
* The aggregated number of text input tokens that has been cached from previous
|
|
494
|
+
* requests. For customers subscribe to scale tier, this includes scale tier
|
|
495
|
+
* tokens.
|
|
496
|
+
*/
|
|
497
|
+
input_cached_tokens?: number;
|
|
498
|
+
/**
|
|
499
|
+
* When `group_by=model`, this field provides the model name of the grouped usage
|
|
500
|
+
* result.
|
|
501
|
+
*/
|
|
502
|
+
model?: string | null;
|
|
503
|
+
/**
|
|
504
|
+
* The aggregated number of audio output tokens used.
|
|
505
|
+
*/
|
|
506
|
+
output_audio_tokens?: number;
|
|
507
|
+
/**
|
|
508
|
+
* When `group_by=project_id`, this field provides the project ID of the grouped
|
|
509
|
+
* usage result.
|
|
510
|
+
*/
|
|
511
|
+
project_id?: string | null;
|
|
512
|
+
/**
|
|
513
|
+
* When `group_by=service_tier`, this field provides the service tier of the
|
|
514
|
+
* grouped usage result.
|
|
515
|
+
*/
|
|
516
|
+
service_tier?: string | null;
|
|
517
|
+
/**
|
|
518
|
+
* When `group_by=user_id`, this field provides the user ID of the grouped usage
|
|
519
|
+
* result.
|
|
520
|
+
*/
|
|
521
|
+
user_id?: string | null;
|
|
522
|
+
}
|
|
523
|
+
/**
|
|
524
|
+
* The aggregated embeddings usage details of the specific time bucket.
|
|
525
|
+
*/
|
|
526
|
+
interface OrganizationUsageEmbeddingsResult {
|
|
527
|
+
/**
|
|
528
|
+
* The aggregated number of input tokens used.
|
|
529
|
+
*/
|
|
530
|
+
input_tokens: number;
|
|
531
|
+
/**
|
|
532
|
+
* The count of requests made to the model.
|
|
533
|
+
*/
|
|
534
|
+
num_model_requests: number;
|
|
535
|
+
object: 'organization.usage.embeddings.result';
|
|
536
|
+
/**
|
|
537
|
+
* When `group_by=api_key_id`, this field provides the API key ID of the grouped
|
|
538
|
+
* usage result.
|
|
539
|
+
*/
|
|
540
|
+
api_key_id?: string | null;
|
|
541
|
+
/**
|
|
542
|
+
* When `group_by=model`, this field provides the model name of the grouped usage
|
|
543
|
+
* result.
|
|
544
|
+
*/
|
|
545
|
+
model?: string | null;
|
|
546
|
+
/**
|
|
547
|
+
* When `group_by=project_id`, this field provides the project ID of the grouped
|
|
548
|
+
* usage result.
|
|
549
|
+
*/
|
|
550
|
+
project_id?: string | null;
|
|
551
|
+
/**
|
|
552
|
+
* When `group_by=user_id`, this field provides the user ID of the grouped usage
|
|
553
|
+
* result.
|
|
554
|
+
*/
|
|
555
|
+
user_id?: string | null;
|
|
556
|
+
}
|
|
557
|
+
/**
|
|
558
|
+
* The aggregated moderations usage details of the specific time bucket.
|
|
559
|
+
*/
|
|
560
|
+
interface OrganizationUsageModerationsResult {
|
|
561
|
+
/**
|
|
562
|
+
* The aggregated number of input tokens used.
|
|
563
|
+
*/
|
|
564
|
+
input_tokens: number;
|
|
565
|
+
/**
|
|
566
|
+
* The count of requests made to the model.
|
|
567
|
+
*/
|
|
568
|
+
num_model_requests: number;
|
|
569
|
+
object: 'organization.usage.moderations.result';
|
|
570
|
+
/**
|
|
571
|
+
* When `group_by=api_key_id`, this field provides the API key ID of the grouped
|
|
572
|
+
* usage result.
|
|
573
|
+
*/
|
|
574
|
+
api_key_id?: string | null;
|
|
575
|
+
/**
|
|
576
|
+
* When `group_by=model`, this field provides the model name of the grouped usage
|
|
577
|
+
* result.
|
|
578
|
+
*/
|
|
579
|
+
model?: string | null;
|
|
580
|
+
/**
|
|
581
|
+
* When `group_by=project_id`, this field provides the project ID of the grouped
|
|
582
|
+
* usage result.
|
|
583
|
+
*/
|
|
584
|
+
project_id?: string | null;
|
|
585
|
+
/**
|
|
586
|
+
* When `group_by=user_id`, this field provides the user ID of the grouped usage
|
|
587
|
+
* result.
|
|
588
|
+
*/
|
|
589
|
+
user_id?: string | null;
|
|
590
|
+
}
|
|
591
|
+
/**
|
|
592
|
+
* The aggregated images usage details of the specific time bucket.
|
|
593
|
+
*/
|
|
594
|
+
interface OrganizationUsageImagesResult {
|
|
595
|
+
/**
|
|
596
|
+
* The number of images processed.
|
|
597
|
+
*/
|
|
598
|
+
images: number;
|
|
599
|
+
/**
|
|
600
|
+
* The count of requests made to the model.
|
|
601
|
+
*/
|
|
602
|
+
num_model_requests: number;
|
|
603
|
+
object: 'organization.usage.images.result';
|
|
604
|
+
/**
|
|
605
|
+
* When `group_by=api_key_id`, this field provides the API key ID of the grouped
|
|
606
|
+
* usage result.
|
|
607
|
+
*/
|
|
608
|
+
api_key_id?: string | null;
|
|
609
|
+
/**
|
|
610
|
+
* When `group_by=model`, this field provides the model name of the grouped usage
|
|
611
|
+
* result.
|
|
612
|
+
*/
|
|
613
|
+
model?: string | null;
|
|
614
|
+
/**
|
|
615
|
+
* When `group_by=project_id`, this field provides the project ID of the grouped
|
|
616
|
+
* usage result.
|
|
617
|
+
*/
|
|
618
|
+
project_id?: string | null;
|
|
619
|
+
/**
|
|
620
|
+
* When `group_by=size`, this field provides the image size of the grouped usage
|
|
621
|
+
* result.
|
|
622
|
+
*/
|
|
623
|
+
size?: string | null;
|
|
624
|
+
/**
|
|
625
|
+
* When `group_by=source`, this field provides the source of the grouped usage
|
|
626
|
+
* result, possible values are `image.generation`, `image.edit`, `image.variation`.
|
|
627
|
+
*/
|
|
628
|
+
source?: string | null;
|
|
629
|
+
/**
|
|
630
|
+
* When `group_by=user_id`, this field provides the user ID of the grouped usage
|
|
631
|
+
* result.
|
|
632
|
+
*/
|
|
633
|
+
user_id?: string | null;
|
|
634
|
+
}
|
|
635
|
+
/**
|
|
636
|
+
* The aggregated audio speeches usage details of the specific time bucket.
|
|
637
|
+
*/
|
|
638
|
+
interface OrganizationUsageAudioSpeechesResult {
|
|
639
|
+
/**
|
|
640
|
+
* The number of characters processed.
|
|
641
|
+
*/
|
|
642
|
+
characters: number;
|
|
643
|
+
/**
|
|
644
|
+
* The count of requests made to the model.
|
|
645
|
+
*/
|
|
646
|
+
num_model_requests: number;
|
|
647
|
+
object: 'organization.usage.audio_speeches.result';
|
|
648
|
+
/**
|
|
649
|
+
* When `group_by=api_key_id`, this field provides the API key ID of the grouped
|
|
650
|
+
* usage result.
|
|
651
|
+
*/
|
|
652
|
+
api_key_id?: string | null;
|
|
653
|
+
/**
|
|
654
|
+
* When `group_by=model`, this field provides the model name of the grouped usage
|
|
655
|
+
* result.
|
|
656
|
+
*/
|
|
657
|
+
model?: string | null;
|
|
658
|
+
/**
|
|
659
|
+
* When `group_by=project_id`, this field provides the project ID of the grouped
|
|
660
|
+
* usage result.
|
|
661
|
+
*/
|
|
662
|
+
project_id?: string | null;
|
|
663
|
+
/**
|
|
664
|
+
* When `group_by=user_id`, this field provides the user ID of the grouped usage
|
|
665
|
+
* result.
|
|
666
|
+
*/
|
|
667
|
+
user_id?: string | null;
|
|
668
|
+
}
|
|
669
|
+
/**
|
|
670
|
+
* The aggregated audio transcriptions usage details of the specific time bucket.
|
|
671
|
+
*/
|
|
672
|
+
interface OrganizationUsageAudioTranscriptionsResult {
|
|
673
|
+
/**
|
|
674
|
+
* The count of requests made to the model.
|
|
675
|
+
*/
|
|
676
|
+
num_model_requests: number;
|
|
677
|
+
object: 'organization.usage.audio_transcriptions.result';
|
|
678
|
+
/**
|
|
679
|
+
* The number of seconds processed.
|
|
680
|
+
*/
|
|
681
|
+
seconds: number;
|
|
682
|
+
/**
|
|
683
|
+
* When `group_by=api_key_id`, this field provides the API key ID of the grouped
|
|
684
|
+
* usage result.
|
|
685
|
+
*/
|
|
686
|
+
api_key_id?: string | null;
|
|
687
|
+
/**
|
|
688
|
+
* When `group_by=model`, this field provides the model name of the grouped usage
|
|
689
|
+
* result.
|
|
690
|
+
*/
|
|
691
|
+
model?: string | null;
|
|
692
|
+
/**
|
|
693
|
+
* When `group_by=project_id`, this field provides the project ID of the grouped
|
|
694
|
+
* usage result.
|
|
695
|
+
*/
|
|
696
|
+
project_id?: string | null;
|
|
697
|
+
/**
|
|
698
|
+
* When `group_by=user_id`, this field provides the user ID of the grouped usage
|
|
699
|
+
* result.
|
|
700
|
+
*/
|
|
701
|
+
user_id?: string | null;
|
|
702
|
+
}
|
|
703
|
+
/**
|
|
704
|
+
* The aggregated vector stores usage details of the specific time bucket.
|
|
705
|
+
*/
|
|
706
|
+
interface OrganizationUsageVectorStoresResult {
|
|
707
|
+
object: 'organization.usage.vector_stores.result';
|
|
708
|
+
/**
|
|
709
|
+
* The vector stores usage in bytes.
|
|
710
|
+
*/
|
|
711
|
+
usage_bytes: number;
|
|
712
|
+
/**
|
|
713
|
+
* When `group_by=project_id`, this field provides the project ID of the grouped
|
|
714
|
+
* usage result.
|
|
715
|
+
*/
|
|
716
|
+
project_id?: string | null;
|
|
717
|
+
}
|
|
718
|
+
/**
|
|
719
|
+
* The aggregated code interpreter sessions usage details of the specific time
|
|
720
|
+
* bucket.
|
|
721
|
+
*/
|
|
722
|
+
interface OrganizationUsageCodeInterpreterSessionsResult {
|
|
723
|
+
/**
|
|
724
|
+
* The number of code interpreter sessions.
|
|
725
|
+
*/
|
|
726
|
+
num_sessions: number;
|
|
727
|
+
object: 'organization.usage.code_interpreter_sessions.result';
|
|
728
|
+
/**
|
|
729
|
+
* When `group_by=project_id`, this field provides the project ID of the grouped
|
|
730
|
+
* usage result.
|
|
731
|
+
*/
|
|
732
|
+
project_id?: string | null;
|
|
733
|
+
}
|
|
734
|
+
/**
|
|
735
|
+
* The aggregated costs details of the specific time bucket.
|
|
736
|
+
*/
|
|
737
|
+
interface OrganizationCostsResult {
|
|
738
|
+
object: 'organization.costs.result';
|
|
739
|
+
/**
|
|
740
|
+
* The monetary value in its associated currency.
|
|
741
|
+
*/
|
|
742
|
+
amount?: OrganizationCostsResult.Amount;
|
|
743
|
+
/**
|
|
744
|
+
* When `group_by=api_key_id`, this field provides the API Key ID of the grouped
|
|
745
|
+
* costs result.
|
|
746
|
+
*/
|
|
747
|
+
api_key_id?: string | null;
|
|
748
|
+
/**
|
|
749
|
+
* When `group_by=line_item`, this field provides the line item of the grouped
|
|
750
|
+
* costs result.
|
|
751
|
+
*/
|
|
752
|
+
line_item?: string | null;
|
|
753
|
+
/**
|
|
754
|
+
* When `group_by=project_id`, this field provides the project ID of the grouped
|
|
755
|
+
* costs result.
|
|
756
|
+
*/
|
|
757
|
+
project_id?: string | null;
|
|
758
|
+
}
|
|
759
|
+
namespace OrganizationCostsResult {
|
|
760
|
+
/**
|
|
761
|
+
* The monetary value in its associated currency.
|
|
762
|
+
*/
|
|
763
|
+
interface Amount {
|
|
764
|
+
/**
|
|
765
|
+
* Lowercase ISO-4217 currency e.g. "usd"
|
|
766
|
+
*/
|
|
767
|
+
currency?: string;
|
|
768
|
+
/**
|
|
769
|
+
* The numeric value of the cost.
|
|
770
|
+
*/
|
|
771
|
+
value?: number;
|
|
772
|
+
}
|
|
773
|
+
}
|
|
774
|
+
}
|
|
775
|
+
}
|
|
776
|
+
export interface UsageCodeInterpreterSessionsResponse {
|
|
777
|
+
data: Array<UsageCodeInterpreterSessionsResponse.Data>;
|
|
778
|
+
has_more: boolean;
|
|
779
|
+
next_page: string | null;
|
|
780
|
+
object: 'page';
|
|
781
|
+
}
|
|
782
|
+
export declare namespace UsageCodeInterpreterSessionsResponse {
|
|
783
|
+
interface Data {
|
|
784
|
+
end_time: number;
|
|
785
|
+
object: 'bucket';
|
|
786
|
+
results: Array<Data.OrganizationUsageCompletionsResult | Data.OrganizationUsageEmbeddingsResult | Data.OrganizationUsageModerationsResult | Data.OrganizationUsageImagesResult | Data.OrganizationUsageAudioSpeechesResult | Data.OrganizationUsageAudioTranscriptionsResult | Data.OrganizationUsageVectorStoresResult | Data.OrganizationUsageCodeInterpreterSessionsResult | Data.OrganizationCostsResult>;
|
|
787
|
+
start_time: number;
|
|
788
|
+
}
|
|
789
|
+
namespace Data {
|
|
790
|
+
/**
|
|
791
|
+
* The aggregated completions usage details of the specific time bucket.
|
|
792
|
+
*/
|
|
793
|
+
interface OrganizationUsageCompletionsResult {
|
|
794
|
+
/**
|
|
795
|
+
* The aggregated number of text input tokens used, including cached tokens. For
|
|
796
|
+
* customers subscribe to scale tier, this includes scale tier tokens.
|
|
797
|
+
*/
|
|
798
|
+
input_tokens: number;
|
|
799
|
+
/**
|
|
800
|
+
* The count of requests made to the model.
|
|
801
|
+
*/
|
|
802
|
+
num_model_requests: number;
|
|
803
|
+
object: 'organization.usage.completions.result';
|
|
804
|
+
/**
|
|
805
|
+
* The aggregated number of text output tokens used. For customers subscribe to
|
|
806
|
+
* scale tier, this includes scale tier tokens.
|
|
807
|
+
*/
|
|
808
|
+
output_tokens: number;
|
|
809
|
+
/**
|
|
810
|
+
* When `group_by=api_key_id`, this field provides the API key ID of the grouped
|
|
811
|
+
* usage result.
|
|
812
|
+
*/
|
|
813
|
+
api_key_id?: string | null;
|
|
814
|
+
/**
|
|
815
|
+
* When `group_by=batch`, this field tells whether the grouped usage result is
|
|
816
|
+
* batch or not.
|
|
817
|
+
*/
|
|
818
|
+
batch?: boolean | null;
|
|
819
|
+
/**
|
|
820
|
+
* The aggregated number of audio input tokens used, including cached tokens.
|
|
821
|
+
*/
|
|
822
|
+
input_audio_tokens?: number;
|
|
823
|
+
/**
|
|
824
|
+
* The aggregated number of text input tokens that has been cached from previous
|
|
825
|
+
* requests. For customers subscribe to scale tier, this includes scale tier
|
|
826
|
+
* tokens.
|
|
827
|
+
*/
|
|
828
|
+
input_cached_tokens?: number;
|
|
829
|
+
/**
|
|
830
|
+
* When `group_by=model`, this field provides the model name of the grouped usage
|
|
831
|
+
* result.
|
|
832
|
+
*/
|
|
833
|
+
model?: string | null;
|
|
834
|
+
/**
|
|
835
|
+
* The aggregated number of audio output tokens used.
|
|
836
|
+
*/
|
|
837
|
+
output_audio_tokens?: number;
|
|
838
|
+
/**
|
|
839
|
+
* When `group_by=project_id`, this field provides the project ID of the grouped
|
|
840
|
+
* usage result.
|
|
841
|
+
*/
|
|
842
|
+
project_id?: string | null;
|
|
843
|
+
/**
|
|
844
|
+
* When `group_by=service_tier`, this field provides the service tier of the
|
|
845
|
+
* grouped usage result.
|
|
846
|
+
*/
|
|
847
|
+
service_tier?: string | null;
|
|
848
|
+
/**
|
|
849
|
+
* When `group_by=user_id`, this field provides the user ID of the grouped usage
|
|
850
|
+
* result.
|
|
851
|
+
*/
|
|
852
|
+
user_id?: string | null;
|
|
853
|
+
}
|
|
854
|
+
/**
|
|
855
|
+
* The aggregated embeddings usage details of the specific time bucket.
|
|
856
|
+
*/
|
|
857
|
+
interface OrganizationUsageEmbeddingsResult {
|
|
858
|
+
/**
|
|
859
|
+
* The aggregated number of input tokens used.
|
|
860
|
+
*/
|
|
861
|
+
input_tokens: number;
|
|
862
|
+
/**
|
|
863
|
+
* The count of requests made to the model.
|
|
864
|
+
*/
|
|
865
|
+
num_model_requests: number;
|
|
866
|
+
object: 'organization.usage.embeddings.result';
|
|
867
|
+
/**
|
|
868
|
+
* When `group_by=api_key_id`, this field provides the API key ID of the grouped
|
|
869
|
+
* usage result.
|
|
870
|
+
*/
|
|
871
|
+
api_key_id?: string | null;
|
|
872
|
+
/**
|
|
873
|
+
* When `group_by=model`, this field provides the model name of the grouped usage
|
|
874
|
+
* result.
|
|
875
|
+
*/
|
|
876
|
+
model?: string | null;
|
|
877
|
+
/**
|
|
878
|
+
* When `group_by=project_id`, this field provides the project ID of the grouped
|
|
879
|
+
* usage result.
|
|
880
|
+
*/
|
|
881
|
+
project_id?: string | null;
|
|
882
|
+
/**
|
|
883
|
+
* When `group_by=user_id`, this field provides the user ID of the grouped usage
|
|
884
|
+
* result.
|
|
885
|
+
*/
|
|
886
|
+
user_id?: string | null;
|
|
887
|
+
}
|
|
888
|
+
/**
|
|
889
|
+
* The aggregated moderations usage details of the specific time bucket.
|
|
890
|
+
*/
|
|
891
|
+
interface OrganizationUsageModerationsResult {
|
|
892
|
+
/**
|
|
893
|
+
* The aggregated number of input tokens used.
|
|
894
|
+
*/
|
|
895
|
+
input_tokens: number;
|
|
896
|
+
/**
|
|
897
|
+
* The count of requests made to the model.
|
|
898
|
+
*/
|
|
899
|
+
num_model_requests: number;
|
|
900
|
+
object: 'organization.usage.moderations.result';
|
|
901
|
+
/**
|
|
902
|
+
* When `group_by=api_key_id`, this field provides the API key ID of the grouped
|
|
903
|
+
* usage result.
|
|
904
|
+
*/
|
|
905
|
+
api_key_id?: string | null;
|
|
906
|
+
/**
|
|
907
|
+
* When `group_by=model`, this field provides the model name of the grouped usage
|
|
908
|
+
* result.
|
|
909
|
+
*/
|
|
910
|
+
model?: string | null;
|
|
911
|
+
/**
|
|
912
|
+
* When `group_by=project_id`, this field provides the project ID of the grouped
|
|
913
|
+
* usage result.
|
|
914
|
+
*/
|
|
915
|
+
project_id?: string | null;
|
|
916
|
+
/**
|
|
917
|
+
* When `group_by=user_id`, this field provides the user ID of the grouped usage
|
|
918
|
+
* result.
|
|
919
|
+
*/
|
|
920
|
+
user_id?: string | null;
|
|
921
|
+
}
|
|
922
|
+
/**
|
|
923
|
+
* The aggregated images usage details of the specific time bucket.
|
|
924
|
+
*/
|
|
925
|
+
interface OrganizationUsageImagesResult {
|
|
926
|
+
/**
|
|
927
|
+
* The number of images processed.
|
|
928
|
+
*/
|
|
929
|
+
images: number;
|
|
930
|
+
/**
|
|
931
|
+
* The count of requests made to the model.
|
|
932
|
+
*/
|
|
933
|
+
num_model_requests: number;
|
|
934
|
+
object: 'organization.usage.images.result';
|
|
935
|
+
/**
|
|
936
|
+
* When `group_by=api_key_id`, this field provides the API key ID of the grouped
|
|
937
|
+
* usage result.
|
|
938
|
+
*/
|
|
939
|
+
api_key_id?: string | null;
|
|
940
|
+
/**
|
|
941
|
+
* When `group_by=model`, this field provides the model name of the grouped usage
|
|
942
|
+
* result.
|
|
943
|
+
*/
|
|
944
|
+
model?: string | null;
|
|
945
|
+
/**
|
|
946
|
+
* When `group_by=project_id`, this field provides the project ID of the grouped
|
|
947
|
+
* usage result.
|
|
948
|
+
*/
|
|
949
|
+
project_id?: string | null;
|
|
950
|
+
/**
|
|
951
|
+
* When `group_by=size`, this field provides the image size of the grouped usage
|
|
952
|
+
* result.
|
|
953
|
+
*/
|
|
954
|
+
size?: string | null;
|
|
955
|
+
/**
|
|
956
|
+
* When `group_by=source`, this field provides the source of the grouped usage
|
|
957
|
+
* result, possible values are `image.generation`, `image.edit`, `image.variation`.
|
|
958
|
+
*/
|
|
959
|
+
source?: string | null;
|
|
960
|
+
/**
|
|
961
|
+
* When `group_by=user_id`, this field provides the user ID of the grouped usage
|
|
962
|
+
* result.
|
|
963
|
+
*/
|
|
964
|
+
user_id?: string | null;
|
|
965
|
+
}
|
|
966
|
+
/**
|
|
967
|
+
* The aggregated audio speeches usage details of the specific time bucket.
|
|
968
|
+
*/
|
|
969
|
+
interface OrganizationUsageAudioSpeechesResult {
|
|
970
|
+
/**
|
|
971
|
+
* The number of characters processed.
|
|
972
|
+
*/
|
|
973
|
+
characters: number;
|
|
974
|
+
/**
|
|
975
|
+
* The count of requests made to the model.
|
|
976
|
+
*/
|
|
977
|
+
num_model_requests: number;
|
|
978
|
+
object: 'organization.usage.audio_speeches.result';
|
|
979
|
+
/**
|
|
980
|
+
* When `group_by=api_key_id`, this field provides the API key ID of the grouped
|
|
981
|
+
* usage result.
|
|
982
|
+
*/
|
|
983
|
+
api_key_id?: string | null;
|
|
984
|
+
/**
|
|
985
|
+
* When `group_by=model`, this field provides the model name of the grouped usage
|
|
986
|
+
* result.
|
|
987
|
+
*/
|
|
988
|
+
model?: string | null;
|
|
989
|
+
/**
|
|
990
|
+
* When `group_by=project_id`, this field provides the project ID of the grouped
|
|
991
|
+
* usage result.
|
|
992
|
+
*/
|
|
993
|
+
project_id?: string | null;
|
|
994
|
+
/**
|
|
995
|
+
* When `group_by=user_id`, this field provides the user ID of the grouped usage
|
|
996
|
+
* result.
|
|
997
|
+
*/
|
|
998
|
+
user_id?: string | null;
|
|
999
|
+
}
|
|
1000
|
+
/**
|
|
1001
|
+
* The aggregated audio transcriptions usage details of the specific time bucket.
|
|
1002
|
+
*/
|
|
1003
|
+
interface OrganizationUsageAudioTranscriptionsResult {
|
|
1004
|
+
/**
|
|
1005
|
+
* The count of requests made to the model.
|
|
1006
|
+
*/
|
|
1007
|
+
num_model_requests: number;
|
|
1008
|
+
object: 'organization.usage.audio_transcriptions.result';
|
|
1009
|
+
/**
|
|
1010
|
+
* The number of seconds processed.
|
|
1011
|
+
*/
|
|
1012
|
+
seconds: number;
|
|
1013
|
+
/**
|
|
1014
|
+
* When `group_by=api_key_id`, this field provides the API key ID of the grouped
|
|
1015
|
+
* usage result.
|
|
1016
|
+
*/
|
|
1017
|
+
api_key_id?: string | null;
|
|
1018
|
+
/**
|
|
1019
|
+
* When `group_by=model`, this field provides the model name of the grouped usage
|
|
1020
|
+
* result.
|
|
1021
|
+
*/
|
|
1022
|
+
model?: string | null;
|
|
1023
|
+
/**
|
|
1024
|
+
* When `group_by=project_id`, this field provides the project ID of the grouped
|
|
1025
|
+
* usage result.
|
|
1026
|
+
*/
|
|
1027
|
+
project_id?: string | null;
|
|
1028
|
+
/**
|
|
1029
|
+
* When `group_by=user_id`, this field provides the user ID of the grouped usage
|
|
1030
|
+
* result.
|
|
1031
|
+
*/
|
|
1032
|
+
user_id?: string | null;
|
|
1033
|
+
}
|
|
1034
|
+
/**
|
|
1035
|
+
* The aggregated vector stores usage details of the specific time bucket.
|
|
1036
|
+
*/
|
|
1037
|
+
interface OrganizationUsageVectorStoresResult {
|
|
1038
|
+
object: 'organization.usage.vector_stores.result';
|
|
1039
|
+
/**
|
|
1040
|
+
* The vector stores usage in bytes.
|
|
1041
|
+
*/
|
|
1042
|
+
usage_bytes: number;
|
|
1043
|
+
/**
|
|
1044
|
+
* When `group_by=project_id`, this field provides the project ID of the grouped
|
|
1045
|
+
* usage result.
|
|
1046
|
+
*/
|
|
1047
|
+
project_id?: string | null;
|
|
1048
|
+
}
|
|
1049
|
+
/**
|
|
1050
|
+
* The aggregated code interpreter sessions usage details of the specific time
|
|
1051
|
+
* bucket.
|
|
1052
|
+
*/
|
|
1053
|
+
interface OrganizationUsageCodeInterpreterSessionsResult {
|
|
1054
|
+
/**
|
|
1055
|
+
* The number of code interpreter sessions.
|
|
1056
|
+
*/
|
|
1057
|
+
num_sessions: number;
|
|
1058
|
+
object: 'organization.usage.code_interpreter_sessions.result';
|
|
1059
|
+
/**
|
|
1060
|
+
* When `group_by=project_id`, this field provides the project ID of the grouped
|
|
1061
|
+
* usage result.
|
|
1062
|
+
*/
|
|
1063
|
+
project_id?: string | null;
|
|
1064
|
+
}
|
|
1065
|
+
/**
|
|
1066
|
+
* The aggregated costs details of the specific time bucket.
|
|
1067
|
+
*/
|
|
1068
|
+
interface OrganizationCostsResult {
|
|
1069
|
+
object: 'organization.costs.result';
|
|
1070
|
+
/**
|
|
1071
|
+
* The monetary value in its associated currency.
|
|
1072
|
+
*/
|
|
1073
|
+
amount?: OrganizationCostsResult.Amount;
|
|
1074
|
+
/**
|
|
1075
|
+
* When `group_by=api_key_id`, this field provides the API Key ID of the grouped
|
|
1076
|
+
* costs result.
|
|
1077
|
+
*/
|
|
1078
|
+
api_key_id?: string | null;
|
|
1079
|
+
/**
|
|
1080
|
+
* When `group_by=line_item`, this field provides the line item of the grouped
|
|
1081
|
+
* costs result.
|
|
1082
|
+
*/
|
|
1083
|
+
line_item?: string | null;
|
|
1084
|
+
/**
|
|
1085
|
+
* When `group_by=project_id`, this field provides the project ID of the grouped
|
|
1086
|
+
* costs result.
|
|
1087
|
+
*/
|
|
1088
|
+
project_id?: string | null;
|
|
1089
|
+
}
|
|
1090
|
+
namespace OrganizationCostsResult {
|
|
1091
|
+
/**
|
|
1092
|
+
* The monetary value in its associated currency.
|
|
1093
|
+
*/
|
|
1094
|
+
interface Amount {
|
|
1095
|
+
/**
|
|
1096
|
+
* Lowercase ISO-4217 currency e.g. "usd"
|
|
1097
|
+
*/
|
|
1098
|
+
currency?: string;
|
|
1099
|
+
/**
|
|
1100
|
+
* The numeric value of the cost.
|
|
1101
|
+
*/
|
|
1102
|
+
value?: number;
|
|
1103
|
+
}
|
|
1104
|
+
}
|
|
1105
|
+
}
|
|
1106
|
+
}
|
|
1107
|
+
export interface UsageCompletionsResponse {
|
|
1108
|
+
data: Array<UsageCompletionsResponse.Data>;
|
|
1109
|
+
has_more: boolean;
|
|
1110
|
+
next_page: string | null;
|
|
1111
|
+
object: 'page';
|
|
1112
|
+
}
|
|
1113
|
+
export declare namespace UsageCompletionsResponse {
|
|
1114
|
+
interface Data {
|
|
1115
|
+
end_time: number;
|
|
1116
|
+
object: 'bucket';
|
|
1117
|
+
results: Array<Data.OrganizationUsageCompletionsResult | Data.OrganizationUsageEmbeddingsResult | Data.OrganizationUsageModerationsResult | Data.OrganizationUsageImagesResult | Data.OrganizationUsageAudioSpeechesResult | Data.OrganizationUsageAudioTranscriptionsResult | Data.OrganizationUsageVectorStoresResult | Data.OrganizationUsageCodeInterpreterSessionsResult | Data.OrganizationCostsResult>;
|
|
1118
|
+
start_time: number;
|
|
1119
|
+
}
|
|
1120
|
+
namespace Data {
|
|
1121
|
+
/**
|
|
1122
|
+
* The aggregated completions usage details of the specific time bucket.
|
|
1123
|
+
*/
|
|
1124
|
+
interface OrganizationUsageCompletionsResult {
|
|
1125
|
+
/**
|
|
1126
|
+
* The aggregated number of text input tokens used, including cached tokens. For
|
|
1127
|
+
* customers subscribe to scale tier, this includes scale tier tokens.
|
|
1128
|
+
*/
|
|
1129
|
+
input_tokens: number;
|
|
1130
|
+
/**
|
|
1131
|
+
* The count of requests made to the model.
|
|
1132
|
+
*/
|
|
1133
|
+
num_model_requests: number;
|
|
1134
|
+
object: 'organization.usage.completions.result';
|
|
1135
|
+
/**
|
|
1136
|
+
* The aggregated number of text output tokens used. For customers subscribe to
|
|
1137
|
+
* scale tier, this includes scale tier tokens.
|
|
1138
|
+
*/
|
|
1139
|
+
output_tokens: number;
|
|
1140
|
+
/**
|
|
1141
|
+
* When `group_by=api_key_id`, this field provides the API key ID of the grouped
|
|
1142
|
+
* usage result.
|
|
1143
|
+
*/
|
|
1144
|
+
api_key_id?: string | null;
|
|
1145
|
+
/**
|
|
1146
|
+
* When `group_by=batch`, this field tells whether the grouped usage result is
|
|
1147
|
+
* batch or not.
|
|
1148
|
+
*/
|
|
1149
|
+
batch?: boolean | null;
|
|
1150
|
+
/**
|
|
1151
|
+
* The aggregated number of audio input tokens used, including cached tokens.
|
|
1152
|
+
*/
|
|
1153
|
+
input_audio_tokens?: number;
|
|
1154
|
+
/**
|
|
1155
|
+
* The aggregated number of text input tokens that has been cached from previous
|
|
1156
|
+
* requests. For customers subscribe to scale tier, this includes scale tier
|
|
1157
|
+
* tokens.
|
|
1158
|
+
*/
|
|
1159
|
+
input_cached_tokens?: number;
|
|
1160
|
+
/**
|
|
1161
|
+
* When `group_by=model`, this field provides the model name of the grouped usage
|
|
1162
|
+
* result.
|
|
1163
|
+
*/
|
|
1164
|
+
model?: string | null;
|
|
1165
|
+
/**
|
|
1166
|
+
* The aggregated number of audio output tokens used.
|
|
1167
|
+
*/
|
|
1168
|
+
output_audio_tokens?: number;
|
|
1169
|
+
/**
|
|
1170
|
+
* When `group_by=project_id`, this field provides the project ID of the grouped
|
|
1171
|
+
* usage result.
|
|
1172
|
+
*/
|
|
1173
|
+
project_id?: string | null;
|
|
1174
|
+
/**
|
|
1175
|
+
* When `group_by=service_tier`, this field provides the service tier of the
|
|
1176
|
+
* grouped usage result.
|
|
1177
|
+
*/
|
|
1178
|
+
service_tier?: string | null;
|
|
1179
|
+
/**
|
|
1180
|
+
* When `group_by=user_id`, this field provides the user ID of the grouped usage
|
|
1181
|
+
* result.
|
|
1182
|
+
*/
|
|
1183
|
+
user_id?: string | null;
|
|
1184
|
+
}
|
|
1185
|
+
/**
|
|
1186
|
+
* The aggregated embeddings usage details of the specific time bucket.
|
|
1187
|
+
*/
|
|
1188
|
+
interface OrganizationUsageEmbeddingsResult {
|
|
1189
|
+
/**
|
|
1190
|
+
* The aggregated number of input tokens used.
|
|
1191
|
+
*/
|
|
1192
|
+
input_tokens: number;
|
|
1193
|
+
/**
|
|
1194
|
+
* The count of requests made to the model.
|
|
1195
|
+
*/
|
|
1196
|
+
num_model_requests: number;
|
|
1197
|
+
object: 'organization.usage.embeddings.result';
|
|
1198
|
+
/**
|
|
1199
|
+
* When `group_by=api_key_id`, this field provides the API key ID of the grouped
|
|
1200
|
+
* usage result.
|
|
1201
|
+
*/
|
|
1202
|
+
api_key_id?: string | null;
|
|
1203
|
+
/**
|
|
1204
|
+
* When `group_by=model`, this field provides the model name of the grouped usage
|
|
1205
|
+
* result.
|
|
1206
|
+
*/
|
|
1207
|
+
model?: string | null;
|
|
1208
|
+
/**
|
|
1209
|
+
* When `group_by=project_id`, this field provides the project ID of the grouped
|
|
1210
|
+
* usage result.
|
|
1211
|
+
*/
|
|
1212
|
+
project_id?: string | null;
|
|
1213
|
+
/**
|
|
1214
|
+
* When `group_by=user_id`, this field provides the user ID of the grouped usage
|
|
1215
|
+
* result.
|
|
1216
|
+
*/
|
|
1217
|
+
user_id?: string | null;
|
|
1218
|
+
}
|
|
1219
|
+
/**
|
|
1220
|
+
* The aggregated moderations usage details of the specific time bucket.
|
|
1221
|
+
*/
|
|
1222
|
+
interface OrganizationUsageModerationsResult {
|
|
1223
|
+
/**
|
|
1224
|
+
* The aggregated number of input tokens used.
|
|
1225
|
+
*/
|
|
1226
|
+
input_tokens: number;
|
|
1227
|
+
/**
|
|
1228
|
+
* The count of requests made to the model.
|
|
1229
|
+
*/
|
|
1230
|
+
num_model_requests: number;
|
|
1231
|
+
object: 'organization.usage.moderations.result';
|
|
1232
|
+
/**
|
|
1233
|
+
* When `group_by=api_key_id`, this field provides the API key ID of the grouped
|
|
1234
|
+
* usage result.
|
|
1235
|
+
*/
|
|
1236
|
+
api_key_id?: string | null;
|
|
1237
|
+
/**
|
|
1238
|
+
* When `group_by=model`, this field provides the model name of the grouped usage
|
|
1239
|
+
* result.
|
|
1240
|
+
*/
|
|
1241
|
+
model?: string | null;
|
|
1242
|
+
/**
|
|
1243
|
+
* When `group_by=project_id`, this field provides the project ID of the grouped
|
|
1244
|
+
* usage result.
|
|
1245
|
+
*/
|
|
1246
|
+
project_id?: string | null;
|
|
1247
|
+
/**
|
|
1248
|
+
* When `group_by=user_id`, this field provides the user ID of the grouped usage
|
|
1249
|
+
* result.
|
|
1250
|
+
*/
|
|
1251
|
+
user_id?: string | null;
|
|
1252
|
+
}
|
|
1253
|
+
/**
|
|
1254
|
+
* The aggregated images usage details of the specific time bucket.
|
|
1255
|
+
*/
|
|
1256
|
+
interface OrganizationUsageImagesResult {
|
|
1257
|
+
/**
|
|
1258
|
+
* The number of images processed.
|
|
1259
|
+
*/
|
|
1260
|
+
images: number;
|
|
1261
|
+
/**
|
|
1262
|
+
* The count of requests made to the model.
|
|
1263
|
+
*/
|
|
1264
|
+
num_model_requests: number;
|
|
1265
|
+
object: 'organization.usage.images.result';
|
|
1266
|
+
/**
|
|
1267
|
+
* When `group_by=api_key_id`, this field provides the API key ID of the grouped
|
|
1268
|
+
* usage result.
|
|
1269
|
+
*/
|
|
1270
|
+
api_key_id?: string | null;
|
|
1271
|
+
/**
|
|
1272
|
+
* When `group_by=model`, this field provides the model name of the grouped usage
|
|
1273
|
+
* result.
|
|
1274
|
+
*/
|
|
1275
|
+
model?: string | null;
|
|
1276
|
+
/**
|
|
1277
|
+
* When `group_by=project_id`, this field provides the project ID of the grouped
|
|
1278
|
+
* usage result.
|
|
1279
|
+
*/
|
|
1280
|
+
project_id?: string | null;
|
|
1281
|
+
/**
|
|
1282
|
+
* When `group_by=size`, this field provides the image size of the grouped usage
|
|
1283
|
+
* result.
|
|
1284
|
+
*/
|
|
1285
|
+
size?: string | null;
|
|
1286
|
+
/**
|
|
1287
|
+
* When `group_by=source`, this field provides the source of the grouped usage
|
|
1288
|
+
* result, possible values are `image.generation`, `image.edit`, `image.variation`.
|
|
1289
|
+
*/
|
|
1290
|
+
source?: string | null;
|
|
1291
|
+
/**
|
|
1292
|
+
* When `group_by=user_id`, this field provides the user ID of the grouped usage
|
|
1293
|
+
* result.
|
|
1294
|
+
*/
|
|
1295
|
+
user_id?: string | null;
|
|
1296
|
+
}
|
|
1297
|
+
/**
|
|
1298
|
+
* The aggregated audio speeches usage details of the specific time bucket.
|
|
1299
|
+
*/
|
|
1300
|
+
interface OrganizationUsageAudioSpeechesResult {
|
|
1301
|
+
/**
|
|
1302
|
+
* The number of characters processed.
|
|
1303
|
+
*/
|
|
1304
|
+
characters: number;
|
|
1305
|
+
/**
|
|
1306
|
+
* The count of requests made to the model.
|
|
1307
|
+
*/
|
|
1308
|
+
num_model_requests: number;
|
|
1309
|
+
object: 'organization.usage.audio_speeches.result';
|
|
1310
|
+
/**
|
|
1311
|
+
* When `group_by=api_key_id`, this field provides the API key ID of the grouped
|
|
1312
|
+
* usage result.
|
|
1313
|
+
*/
|
|
1314
|
+
api_key_id?: string | null;
|
|
1315
|
+
/**
|
|
1316
|
+
* When `group_by=model`, this field provides the model name of the grouped usage
|
|
1317
|
+
* result.
|
|
1318
|
+
*/
|
|
1319
|
+
model?: string | null;
|
|
1320
|
+
/**
|
|
1321
|
+
* When `group_by=project_id`, this field provides the project ID of the grouped
|
|
1322
|
+
* usage result.
|
|
1323
|
+
*/
|
|
1324
|
+
project_id?: string | null;
|
|
1325
|
+
/**
|
|
1326
|
+
* When `group_by=user_id`, this field provides the user ID of the grouped usage
|
|
1327
|
+
* result.
|
|
1328
|
+
*/
|
|
1329
|
+
user_id?: string | null;
|
|
1330
|
+
}
|
|
1331
|
+
/**
|
|
1332
|
+
* The aggregated audio transcriptions usage details of the specific time bucket.
|
|
1333
|
+
*/
|
|
1334
|
+
interface OrganizationUsageAudioTranscriptionsResult {
|
|
1335
|
+
/**
|
|
1336
|
+
* The count of requests made to the model.
|
|
1337
|
+
*/
|
|
1338
|
+
num_model_requests: number;
|
|
1339
|
+
object: 'organization.usage.audio_transcriptions.result';
|
|
1340
|
+
/**
|
|
1341
|
+
* The number of seconds processed.
|
|
1342
|
+
*/
|
|
1343
|
+
seconds: number;
|
|
1344
|
+
/**
|
|
1345
|
+
* When `group_by=api_key_id`, this field provides the API key ID of the grouped
|
|
1346
|
+
* usage result.
|
|
1347
|
+
*/
|
|
1348
|
+
api_key_id?: string | null;
|
|
1349
|
+
/**
|
|
1350
|
+
* When `group_by=model`, this field provides the model name of the grouped usage
|
|
1351
|
+
* result.
|
|
1352
|
+
*/
|
|
1353
|
+
model?: string | null;
|
|
1354
|
+
/**
|
|
1355
|
+
* When `group_by=project_id`, this field provides the project ID of the grouped
|
|
1356
|
+
* usage result.
|
|
1357
|
+
*/
|
|
1358
|
+
project_id?: string | null;
|
|
1359
|
+
/**
|
|
1360
|
+
* When `group_by=user_id`, this field provides the user ID of the grouped usage
|
|
1361
|
+
* result.
|
|
1362
|
+
*/
|
|
1363
|
+
user_id?: string | null;
|
|
1364
|
+
}
|
|
1365
|
+
/**
|
|
1366
|
+
* The aggregated vector stores usage details of the specific time bucket.
|
|
1367
|
+
*/
|
|
1368
|
+
interface OrganizationUsageVectorStoresResult {
|
|
1369
|
+
object: 'organization.usage.vector_stores.result';
|
|
1370
|
+
/**
|
|
1371
|
+
* The vector stores usage in bytes.
|
|
1372
|
+
*/
|
|
1373
|
+
usage_bytes: number;
|
|
1374
|
+
/**
|
|
1375
|
+
* When `group_by=project_id`, this field provides the project ID of the grouped
|
|
1376
|
+
* usage result.
|
|
1377
|
+
*/
|
|
1378
|
+
project_id?: string | null;
|
|
1379
|
+
}
|
|
1380
|
+
/**
|
|
1381
|
+
* The aggregated code interpreter sessions usage details of the specific time
|
|
1382
|
+
* bucket.
|
|
1383
|
+
*/
|
|
1384
|
+
interface OrganizationUsageCodeInterpreterSessionsResult {
|
|
1385
|
+
/**
|
|
1386
|
+
* The number of code interpreter sessions.
|
|
1387
|
+
*/
|
|
1388
|
+
num_sessions: number;
|
|
1389
|
+
object: 'organization.usage.code_interpreter_sessions.result';
|
|
1390
|
+
/**
|
|
1391
|
+
* When `group_by=project_id`, this field provides the project ID of the grouped
|
|
1392
|
+
* usage result.
|
|
1393
|
+
*/
|
|
1394
|
+
project_id?: string | null;
|
|
1395
|
+
}
|
|
1396
|
+
/**
|
|
1397
|
+
* The aggregated costs details of the specific time bucket.
|
|
1398
|
+
*/
|
|
1399
|
+
interface OrganizationCostsResult {
|
|
1400
|
+
object: 'organization.costs.result';
|
|
1401
|
+
/**
|
|
1402
|
+
* The monetary value in its associated currency.
|
|
1403
|
+
*/
|
|
1404
|
+
amount?: OrganizationCostsResult.Amount;
|
|
1405
|
+
/**
|
|
1406
|
+
* When `group_by=api_key_id`, this field provides the API Key ID of the grouped
|
|
1407
|
+
* costs result.
|
|
1408
|
+
*/
|
|
1409
|
+
api_key_id?: string | null;
|
|
1410
|
+
/**
|
|
1411
|
+
* When `group_by=line_item`, this field provides the line item of the grouped
|
|
1412
|
+
* costs result.
|
|
1413
|
+
*/
|
|
1414
|
+
line_item?: string | null;
|
|
1415
|
+
/**
|
|
1416
|
+
* When `group_by=project_id`, this field provides the project ID of the grouped
|
|
1417
|
+
* costs result.
|
|
1418
|
+
*/
|
|
1419
|
+
project_id?: string | null;
|
|
1420
|
+
}
|
|
1421
|
+
namespace OrganizationCostsResult {
|
|
1422
|
+
/**
|
|
1423
|
+
* The monetary value in its associated currency.
|
|
1424
|
+
*/
|
|
1425
|
+
interface Amount {
|
|
1426
|
+
/**
|
|
1427
|
+
* Lowercase ISO-4217 currency e.g. "usd"
|
|
1428
|
+
*/
|
|
1429
|
+
currency?: string;
|
|
1430
|
+
/**
|
|
1431
|
+
* The numeric value of the cost.
|
|
1432
|
+
*/
|
|
1433
|
+
value?: number;
|
|
1434
|
+
}
|
|
1435
|
+
}
|
|
1436
|
+
}
|
|
1437
|
+
}
|
|
1438
|
+
export interface UsageCostsResponse {
|
|
1439
|
+
data: Array<UsageCostsResponse.Data>;
|
|
1440
|
+
has_more: boolean;
|
|
1441
|
+
next_page: string | null;
|
|
1442
|
+
object: 'page';
|
|
1443
|
+
}
|
|
1444
|
+
export declare namespace UsageCostsResponse {
|
|
1445
|
+
interface Data {
|
|
1446
|
+
end_time: number;
|
|
1447
|
+
object: 'bucket';
|
|
1448
|
+
results: Array<Data.OrganizationUsageCompletionsResult | Data.OrganizationUsageEmbeddingsResult | Data.OrganizationUsageModerationsResult | Data.OrganizationUsageImagesResult | Data.OrganizationUsageAudioSpeechesResult | Data.OrganizationUsageAudioTranscriptionsResult | Data.OrganizationUsageVectorStoresResult | Data.OrganizationUsageCodeInterpreterSessionsResult | Data.OrganizationCostsResult>;
|
|
1449
|
+
start_time: number;
|
|
1450
|
+
}
|
|
1451
|
+
namespace Data {
|
|
1452
|
+
/**
|
|
1453
|
+
* The aggregated completions usage details of the specific time bucket.
|
|
1454
|
+
*/
|
|
1455
|
+
interface OrganizationUsageCompletionsResult {
|
|
1456
|
+
/**
|
|
1457
|
+
* The aggregated number of text input tokens used, including cached tokens. For
|
|
1458
|
+
* customers subscribe to scale tier, this includes scale tier tokens.
|
|
1459
|
+
*/
|
|
1460
|
+
input_tokens: number;
|
|
1461
|
+
/**
|
|
1462
|
+
* The count of requests made to the model.
|
|
1463
|
+
*/
|
|
1464
|
+
num_model_requests: number;
|
|
1465
|
+
object: 'organization.usage.completions.result';
|
|
1466
|
+
/**
|
|
1467
|
+
* The aggregated number of text output tokens used. For customers subscribe to
|
|
1468
|
+
* scale tier, this includes scale tier tokens.
|
|
1469
|
+
*/
|
|
1470
|
+
output_tokens: number;
|
|
1471
|
+
/**
|
|
1472
|
+
* When `group_by=api_key_id`, this field provides the API key ID of the grouped
|
|
1473
|
+
* usage result.
|
|
1474
|
+
*/
|
|
1475
|
+
api_key_id?: string | null;
|
|
1476
|
+
/**
|
|
1477
|
+
* When `group_by=batch`, this field tells whether the grouped usage result is
|
|
1478
|
+
* batch or not.
|
|
1479
|
+
*/
|
|
1480
|
+
batch?: boolean | null;
|
|
1481
|
+
/**
|
|
1482
|
+
* The aggregated number of audio input tokens used, including cached tokens.
|
|
1483
|
+
*/
|
|
1484
|
+
input_audio_tokens?: number;
|
|
1485
|
+
/**
|
|
1486
|
+
* The aggregated number of text input tokens that has been cached from previous
|
|
1487
|
+
* requests. For customers subscribe to scale tier, this includes scale tier
|
|
1488
|
+
* tokens.
|
|
1489
|
+
*/
|
|
1490
|
+
input_cached_tokens?: number;
|
|
1491
|
+
/**
|
|
1492
|
+
* When `group_by=model`, this field provides the model name of the grouped usage
|
|
1493
|
+
* result.
|
|
1494
|
+
*/
|
|
1495
|
+
model?: string | null;
|
|
1496
|
+
/**
|
|
1497
|
+
* The aggregated number of audio output tokens used.
|
|
1498
|
+
*/
|
|
1499
|
+
output_audio_tokens?: number;
|
|
1500
|
+
/**
|
|
1501
|
+
* When `group_by=project_id`, this field provides the project ID of the grouped
|
|
1502
|
+
* usage result.
|
|
1503
|
+
*/
|
|
1504
|
+
project_id?: string | null;
|
|
1505
|
+
/**
|
|
1506
|
+
* When `group_by=service_tier`, this field provides the service tier of the
|
|
1507
|
+
* grouped usage result.
|
|
1508
|
+
*/
|
|
1509
|
+
service_tier?: string | null;
|
|
1510
|
+
/**
|
|
1511
|
+
* When `group_by=user_id`, this field provides the user ID of the grouped usage
|
|
1512
|
+
* result.
|
|
1513
|
+
*/
|
|
1514
|
+
user_id?: string | null;
|
|
1515
|
+
}
|
|
1516
|
+
/**
|
|
1517
|
+
* The aggregated embeddings usage details of the specific time bucket.
|
|
1518
|
+
*/
|
|
1519
|
+
interface OrganizationUsageEmbeddingsResult {
|
|
1520
|
+
/**
|
|
1521
|
+
* The aggregated number of input tokens used.
|
|
1522
|
+
*/
|
|
1523
|
+
input_tokens: number;
|
|
1524
|
+
/**
|
|
1525
|
+
* The count of requests made to the model.
|
|
1526
|
+
*/
|
|
1527
|
+
num_model_requests: number;
|
|
1528
|
+
object: 'organization.usage.embeddings.result';
|
|
1529
|
+
/**
|
|
1530
|
+
* When `group_by=api_key_id`, this field provides the API key ID of the grouped
|
|
1531
|
+
* usage result.
|
|
1532
|
+
*/
|
|
1533
|
+
api_key_id?: string | null;
|
|
1534
|
+
/**
|
|
1535
|
+
* When `group_by=model`, this field provides the model name of the grouped usage
|
|
1536
|
+
* result.
|
|
1537
|
+
*/
|
|
1538
|
+
model?: string | null;
|
|
1539
|
+
/**
|
|
1540
|
+
* When `group_by=project_id`, this field provides the project ID of the grouped
|
|
1541
|
+
* usage result.
|
|
1542
|
+
*/
|
|
1543
|
+
project_id?: string | null;
|
|
1544
|
+
/**
|
|
1545
|
+
* When `group_by=user_id`, this field provides the user ID of the grouped usage
|
|
1546
|
+
* result.
|
|
1547
|
+
*/
|
|
1548
|
+
user_id?: string | null;
|
|
1549
|
+
}
|
|
1550
|
+
/**
|
|
1551
|
+
* The aggregated moderations usage details of the specific time bucket.
|
|
1552
|
+
*/
|
|
1553
|
+
interface OrganizationUsageModerationsResult {
|
|
1554
|
+
/**
|
|
1555
|
+
* The aggregated number of input tokens used.
|
|
1556
|
+
*/
|
|
1557
|
+
input_tokens: number;
|
|
1558
|
+
/**
|
|
1559
|
+
* The count of requests made to the model.
|
|
1560
|
+
*/
|
|
1561
|
+
num_model_requests: number;
|
|
1562
|
+
object: 'organization.usage.moderations.result';
|
|
1563
|
+
/**
|
|
1564
|
+
* When `group_by=api_key_id`, this field provides the API key ID of the grouped
|
|
1565
|
+
* usage result.
|
|
1566
|
+
*/
|
|
1567
|
+
api_key_id?: string | null;
|
|
1568
|
+
/**
|
|
1569
|
+
* When `group_by=model`, this field provides the model name of the grouped usage
|
|
1570
|
+
* result.
|
|
1571
|
+
*/
|
|
1572
|
+
model?: string | null;
|
|
1573
|
+
/**
|
|
1574
|
+
* When `group_by=project_id`, this field provides the project ID of the grouped
|
|
1575
|
+
* usage result.
|
|
1576
|
+
*/
|
|
1577
|
+
project_id?: string | null;
|
|
1578
|
+
/**
|
|
1579
|
+
* When `group_by=user_id`, this field provides the user ID of the grouped usage
|
|
1580
|
+
* result.
|
|
1581
|
+
*/
|
|
1582
|
+
user_id?: string | null;
|
|
1583
|
+
}
|
|
1584
|
+
/**
|
|
1585
|
+
* The aggregated images usage details of the specific time bucket.
|
|
1586
|
+
*/
|
|
1587
|
+
interface OrganizationUsageImagesResult {
|
|
1588
|
+
/**
|
|
1589
|
+
* The number of images processed.
|
|
1590
|
+
*/
|
|
1591
|
+
images: number;
|
|
1592
|
+
/**
|
|
1593
|
+
* The count of requests made to the model.
|
|
1594
|
+
*/
|
|
1595
|
+
num_model_requests: number;
|
|
1596
|
+
object: 'organization.usage.images.result';
|
|
1597
|
+
/**
|
|
1598
|
+
* When `group_by=api_key_id`, this field provides the API key ID of the grouped
|
|
1599
|
+
* usage result.
|
|
1600
|
+
*/
|
|
1601
|
+
api_key_id?: string | null;
|
|
1602
|
+
/**
|
|
1603
|
+
* When `group_by=model`, this field provides the model name of the grouped usage
|
|
1604
|
+
* result.
|
|
1605
|
+
*/
|
|
1606
|
+
model?: string | null;
|
|
1607
|
+
/**
|
|
1608
|
+
* When `group_by=project_id`, this field provides the project ID of the grouped
|
|
1609
|
+
* usage result.
|
|
1610
|
+
*/
|
|
1611
|
+
project_id?: string | null;
|
|
1612
|
+
/**
|
|
1613
|
+
* When `group_by=size`, this field provides the image size of the grouped usage
|
|
1614
|
+
* result.
|
|
1615
|
+
*/
|
|
1616
|
+
size?: string | null;
|
|
1617
|
+
/**
|
|
1618
|
+
* When `group_by=source`, this field provides the source of the grouped usage
|
|
1619
|
+
* result, possible values are `image.generation`, `image.edit`, `image.variation`.
|
|
1620
|
+
*/
|
|
1621
|
+
source?: string | null;
|
|
1622
|
+
/**
|
|
1623
|
+
* When `group_by=user_id`, this field provides the user ID of the grouped usage
|
|
1624
|
+
* result.
|
|
1625
|
+
*/
|
|
1626
|
+
user_id?: string | null;
|
|
1627
|
+
}
|
|
1628
|
+
/**
|
|
1629
|
+
* The aggregated audio speeches usage details of the specific time bucket.
|
|
1630
|
+
*/
|
|
1631
|
+
interface OrganizationUsageAudioSpeechesResult {
|
|
1632
|
+
/**
|
|
1633
|
+
* The number of characters processed.
|
|
1634
|
+
*/
|
|
1635
|
+
characters: number;
|
|
1636
|
+
/**
|
|
1637
|
+
* The count of requests made to the model.
|
|
1638
|
+
*/
|
|
1639
|
+
num_model_requests: number;
|
|
1640
|
+
object: 'organization.usage.audio_speeches.result';
|
|
1641
|
+
/**
|
|
1642
|
+
* When `group_by=api_key_id`, this field provides the API key ID of the grouped
|
|
1643
|
+
* usage result.
|
|
1644
|
+
*/
|
|
1645
|
+
api_key_id?: string | null;
|
|
1646
|
+
/**
|
|
1647
|
+
* When `group_by=model`, this field provides the model name of the grouped usage
|
|
1648
|
+
* result.
|
|
1649
|
+
*/
|
|
1650
|
+
model?: string | null;
|
|
1651
|
+
/**
|
|
1652
|
+
* When `group_by=project_id`, this field provides the project ID of the grouped
|
|
1653
|
+
* usage result.
|
|
1654
|
+
*/
|
|
1655
|
+
project_id?: string | null;
|
|
1656
|
+
/**
|
|
1657
|
+
* When `group_by=user_id`, this field provides the user ID of the grouped usage
|
|
1658
|
+
* result.
|
|
1659
|
+
*/
|
|
1660
|
+
user_id?: string | null;
|
|
1661
|
+
}
|
|
1662
|
+
/**
|
|
1663
|
+
* The aggregated audio transcriptions usage details of the specific time bucket.
|
|
1664
|
+
*/
|
|
1665
|
+
interface OrganizationUsageAudioTranscriptionsResult {
|
|
1666
|
+
/**
|
|
1667
|
+
* The count of requests made to the model.
|
|
1668
|
+
*/
|
|
1669
|
+
num_model_requests: number;
|
|
1670
|
+
object: 'organization.usage.audio_transcriptions.result';
|
|
1671
|
+
/**
|
|
1672
|
+
* The number of seconds processed.
|
|
1673
|
+
*/
|
|
1674
|
+
seconds: number;
|
|
1675
|
+
/**
|
|
1676
|
+
* When `group_by=api_key_id`, this field provides the API key ID of the grouped
|
|
1677
|
+
* usage result.
|
|
1678
|
+
*/
|
|
1679
|
+
api_key_id?: string | null;
|
|
1680
|
+
/**
|
|
1681
|
+
* When `group_by=model`, this field provides the model name of the grouped usage
|
|
1682
|
+
* result.
|
|
1683
|
+
*/
|
|
1684
|
+
model?: string | null;
|
|
1685
|
+
/**
|
|
1686
|
+
* When `group_by=project_id`, this field provides the project ID of the grouped
|
|
1687
|
+
* usage result.
|
|
1688
|
+
*/
|
|
1689
|
+
project_id?: string | null;
|
|
1690
|
+
/**
|
|
1691
|
+
* When `group_by=user_id`, this field provides the user ID of the grouped usage
|
|
1692
|
+
* result.
|
|
1693
|
+
*/
|
|
1694
|
+
user_id?: string | null;
|
|
1695
|
+
}
|
|
1696
|
+
/**
|
|
1697
|
+
* The aggregated vector stores usage details of the specific time bucket.
|
|
1698
|
+
*/
|
|
1699
|
+
interface OrganizationUsageVectorStoresResult {
|
|
1700
|
+
object: 'organization.usage.vector_stores.result';
|
|
1701
|
+
/**
|
|
1702
|
+
* The vector stores usage in bytes.
|
|
1703
|
+
*/
|
|
1704
|
+
usage_bytes: number;
|
|
1705
|
+
/**
|
|
1706
|
+
* When `group_by=project_id`, this field provides the project ID of the grouped
|
|
1707
|
+
* usage result.
|
|
1708
|
+
*/
|
|
1709
|
+
project_id?: string | null;
|
|
1710
|
+
}
|
|
1711
|
+
/**
|
|
1712
|
+
* The aggregated code interpreter sessions usage details of the specific time
|
|
1713
|
+
* bucket.
|
|
1714
|
+
*/
|
|
1715
|
+
interface OrganizationUsageCodeInterpreterSessionsResult {
|
|
1716
|
+
/**
|
|
1717
|
+
* The number of code interpreter sessions.
|
|
1718
|
+
*/
|
|
1719
|
+
num_sessions: number;
|
|
1720
|
+
object: 'organization.usage.code_interpreter_sessions.result';
|
|
1721
|
+
/**
|
|
1722
|
+
* When `group_by=project_id`, this field provides the project ID of the grouped
|
|
1723
|
+
* usage result.
|
|
1724
|
+
*/
|
|
1725
|
+
project_id?: string | null;
|
|
1726
|
+
}
|
|
1727
|
+
/**
|
|
1728
|
+
* The aggregated costs details of the specific time bucket.
|
|
1729
|
+
*/
|
|
1730
|
+
interface OrganizationCostsResult {
|
|
1731
|
+
object: 'organization.costs.result';
|
|
1732
|
+
/**
|
|
1733
|
+
* The monetary value in its associated currency.
|
|
1734
|
+
*/
|
|
1735
|
+
amount?: OrganizationCostsResult.Amount;
|
|
1736
|
+
/**
|
|
1737
|
+
* When `group_by=api_key_id`, this field provides the API Key ID of the grouped
|
|
1738
|
+
* costs result.
|
|
1739
|
+
*/
|
|
1740
|
+
api_key_id?: string | null;
|
|
1741
|
+
/**
|
|
1742
|
+
* When `group_by=line_item`, this field provides the line item of the grouped
|
|
1743
|
+
* costs result.
|
|
1744
|
+
*/
|
|
1745
|
+
line_item?: string | null;
|
|
1746
|
+
/**
|
|
1747
|
+
* When `group_by=project_id`, this field provides the project ID of the grouped
|
|
1748
|
+
* costs result.
|
|
1749
|
+
*/
|
|
1750
|
+
project_id?: string | null;
|
|
1751
|
+
}
|
|
1752
|
+
namespace OrganizationCostsResult {
|
|
1753
|
+
/**
|
|
1754
|
+
* The monetary value in its associated currency.
|
|
1755
|
+
*/
|
|
1756
|
+
interface Amount {
|
|
1757
|
+
/**
|
|
1758
|
+
* Lowercase ISO-4217 currency e.g. "usd"
|
|
1759
|
+
*/
|
|
1760
|
+
currency?: string;
|
|
1761
|
+
/**
|
|
1762
|
+
* The numeric value of the cost.
|
|
1763
|
+
*/
|
|
1764
|
+
value?: number;
|
|
1765
|
+
}
|
|
1766
|
+
}
|
|
1767
|
+
}
|
|
1768
|
+
}
|
|
1769
|
+
export interface UsageEmbeddingsResponse {
|
|
1770
|
+
data: Array<UsageEmbeddingsResponse.Data>;
|
|
1771
|
+
has_more: boolean;
|
|
1772
|
+
next_page: string | null;
|
|
1773
|
+
object: 'page';
|
|
1774
|
+
}
|
|
1775
|
+
export declare namespace UsageEmbeddingsResponse {
|
|
1776
|
+
interface Data {
|
|
1777
|
+
end_time: number;
|
|
1778
|
+
object: 'bucket';
|
|
1779
|
+
results: Array<Data.OrganizationUsageCompletionsResult | Data.OrganizationUsageEmbeddingsResult | Data.OrganizationUsageModerationsResult | Data.OrganizationUsageImagesResult | Data.OrganizationUsageAudioSpeechesResult | Data.OrganizationUsageAudioTranscriptionsResult | Data.OrganizationUsageVectorStoresResult | Data.OrganizationUsageCodeInterpreterSessionsResult | Data.OrganizationCostsResult>;
|
|
1780
|
+
start_time: number;
|
|
1781
|
+
}
|
|
1782
|
+
namespace Data {
|
|
1783
|
+
/**
|
|
1784
|
+
* The aggregated completions usage details of the specific time bucket.
|
|
1785
|
+
*/
|
|
1786
|
+
interface OrganizationUsageCompletionsResult {
|
|
1787
|
+
/**
|
|
1788
|
+
* The aggregated number of text input tokens used, including cached tokens. For
|
|
1789
|
+
* customers subscribe to scale tier, this includes scale tier tokens.
|
|
1790
|
+
*/
|
|
1791
|
+
input_tokens: number;
|
|
1792
|
+
/**
|
|
1793
|
+
* The count of requests made to the model.
|
|
1794
|
+
*/
|
|
1795
|
+
num_model_requests: number;
|
|
1796
|
+
object: 'organization.usage.completions.result';
|
|
1797
|
+
/**
|
|
1798
|
+
* The aggregated number of text output tokens used. For customers subscribe to
|
|
1799
|
+
* scale tier, this includes scale tier tokens.
|
|
1800
|
+
*/
|
|
1801
|
+
output_tokens: number;
|
|
1802
|
+
/**
|
|
1803
|
+
* When `group_by=api_key_id`, this field provides the API key ID of the grouped
|
|
1804
|
+
* usage result.
|
|
1805
|
+
*/
|
|
1806
|
+
api_key_id?: string | null;
|
|
1807
|
+
/**
|
|
1808
|
+
* When `group_by=batch`, this field tells whether the grouped usage result is
|
|
1809
|
+
* batch or not.
|
|
1810
|
+
*/
|
|
1811
|
+
batch?: boolean | null;
|
|
1812
|
+
/**
|
|
1813
|
+
* The aggregated number of audio input tokens used, including cached tokens.
|
|
1814
|
+
*/
|
|
1815
|
+
input_audio_tokens?: number;
|
|
1816
|
+
/**
|
|
1817
|
+
* The aggregated number of text input tokens that has been cached from previous
|
|
1818
|
+
* requests. For customers subscribe to scale tier, this includes scale tier
|
|
1819
|
+
* tokens.
|
|
1820
|
+
*/
|
|
1821
|
+
input_cached_tokens?: number;
|
|
1822
|
+
/**
|
|
1823
|
+
* When `group_by=model`, this field provides the model name of the grouped usage
|
|
1824
|
+
* result.
|
|
1825
|
+
*/
|
|
1826
|
+
model?: string | null;
|
|
1827
|
+
/**
|
|
1828
|
+
* The aggregated number of audio output tokens used.
|
|
1829
|
+
*/
|
|
1830
|
+
output_audio_tokens?: number;
|
|
1831
|
+
/**
|
|
1832
|
+
* When `group_by=project_id`, this field provides the project ID of the grouped
|
|
1833
|
+
* usage result.
|
|
1834
|
+
*/
|
|
1835
|
+
project_id?: string | null;
|
|
1836
|
+
/**
|
|
1837
|
+
* When `group_by=service_tier`, this field provides the service tier of the
|
|
1838
|
+
* grouped usage result.
|
|
1839
|
+
*/
|
|
1840
|
+
service_tier?: string | null;
|
|
1841
|
+
/**
|
|
1842
|
+
* When `group_by=user_id`, this field provides the user ID of the grouped usage
|
|
1843
|
+
* result.
|
|
1844
|
+
*/
|
|
1845
|
+
user_id?: string | null;
|
|
1846
|
+
}
|
|
1847
|
+
/**
|
|
1848
|
+
* The aggregated embeddings usage details of the specific time bucket.
|
|
1849
|
+
*/
|
|
1850
|
+
interface OrganizationUsageEmbeddingsResult {
|
|
1851
|
+
/**
|
|
1852
|
+
* The aggregated number of input tokens used.
|
|
1853
|
+
*/
|
|
1854
|
+
input_tokens: number;
|
|
1855
|
+
/**
|
|
1856
|
+
* The count of requests made to the model.
|
|
1857
|
+
*/
|
|
1858
|
+
num_model_requests: number;
|
|
1859
|
+
object: 'organization.usage.embeddings.result';
|
|
1860
|
+
/**
|
|
1861
|
+
* When `group_by=api_key_id`, this field provides the API key ID of the grouped
|
|
1862
|
+
* usage result.
|
|
1863
|
+
*/
|
|
1864
|
+
api_key_id?: string | null;
|
|
1865
|
+
/**
|
|
1866
|
+
* When `group_by=model`, this field provides the model name of the grouped usage
|
|
1867
|
+
* result.
|
|
1868
|
+
*/
|
|
1869
|
+
model?: string | null;
|
|
1870
|
+
/**
|
|
1871
|
+
* When `group_by=project_id`, this field provides the project ID of the grouped
|
|
1872
|
+
* usage result.
|
|
1873
|
+
*/
|
|
1874
|
+
project_id?: string | null;
|
|
1875
|
+
/**
|
|
1876
|
+
* When `group_by=user_id`, this field provides the user ID of the grouped usage
|
|
1877
|
+
* result.
|
|
1878
|
+
*/
|
|
1879
|
+
user_id?: string | null;
|
|
1880
|
+
}
|
|
1881
|
+
/**
|
|
1882
|
+
* The aggregated moderations usage details of the specific time bucket.
|
|
1883
|
+
*/
|
|
1884
|
+
interface OrganizationUsageModerationsResult {
|
|
1885
|
+
/**
|
|
1886
|
+
* The aggregated number of input tokens used.
|
|
1887
|
+
*/
|
|
1888
|
+
input_tokens: number;
|
|
1889
|
+
/**
|
|
1890
|
+
* The count of requests made to the model.
|
|
1891
|
+
*/
|
|
1892
|
+
num_model_requests: number;
|
|
1893
|
+
object: 'organization.usage.moderations.result';
|
|
1894
|
+
/**
|
|
1895
|
+
* When `group_by=api_key_id`, this field provides the API key ID of the grouped
|
|
1896
|
+
* usage result.
|
|
1897
|
+
*/
|
|
1898
|
+
api_key_id?: string | null;
|
|
1899
|
+
/**
|
|
1900
|
+
* When `group_by=model`, this field provides the model name of the grouped usage
|
|
1901
|
+
* result.
|
|
1902
|
+
*/
|
|
1903
|
+
model?: string | null;
|
|
1904
|
+
/**
|
|
1905
|
+
* When `group_by=project_id`, this field provides the project ID of the grouped
|
|
1906
|
+
* usage result.
|
|
1907
|
+
*/
|
|
1908
|
+
project_id?: string | null;
|
|
1909
|
+
/**
|
|
1910
|
+
* When `group_by=user_id`, this field provides the user ID of the grouped usage
|
|
1911
|
+
* result.
|
|
1912
|
+
*/
|
|
1913
|
+
user_id?: string | null;
|
|
1914
|
+
}
|
|
1915
|
+
/**
|
|
1916
|
+
* The aggregated images usage details of the specific time bucket.
|
|
1917
|
+
*/
|
|
1918
|
+
interface OrganizationUsageImagesResult {
|
|
1919
|
+
/**
|
|
1920
|
+
* The number of images processed.
|
|
1921
|
+
*/
|
|
1922
|
+
images: number;
|
|
1923
|
+
/**
|
|
1924
|
+
* The count of requests made to the model.
|
|
1925
|
+
*/
|
|
1926
|
+
num_model_requests: number;
|
|
1927
|
+
object: 'organization.usage.images.result';
|
|
1928
|
+
/**
|
|
1929
|
+
* When `group_by=api_key_id`, this field provides the API key ID of the grouped
|
|
1930
|
+
* usage result.
|
|
1931
|
+
*/
|
|
1932
|
+
api_key_id?: string | null;
|
|
1933
|
+
/**
|
|
1934
|
+
* When `group_by=model`, this field provides the model name of the grouped usage
|
|
1935
|
+
* result.
|
|
1936
|
+
*/
|
|
1937
|
+
model?: string | null;
|
|
1938
|
+
/**
|
|
1939
|
+
* When `group_by=project_id`, this field provides the project ID of the grouped
|
|
1940
|
+
* usage result.
|
|
1941
|
+
*/
|
|
1942
|
+
project_id?: string | null;
|
|
1943
|
+
/**
|
|
1944
|
+
* When `group_by=size`, this field provides the image size of the grouped usage
|
|
1945
|
+
* result.
|
|
1946
|
+
*/
|
|
1947
|
+
size?: string | null;
|
|
1948
|
+
/**
|
|
1949
|
+
* When `group_by=source`, this field provides the source of the grouped usage
|
|
1950
|
+
* result, possible values are `image.generation`, `image.edit`, `image.variation`.
|
|
1951
|
+
*/
|
|
1952
|
+
source?: string | null;
|
|
1953
|
+
/**
|
|
1954
|
+
* When `group_by=user_id`, this field provides the user ID of the grouped usage
|
|
1955
|
+
* result.
|
|
1956
|
+
*/
|
|
1957
|
+
user_id?: string | null;
|
|
1958
|
+
}
|
|
1959
|
+
/**
|
|
1960
|
+
* The aggregated audio speeches usage details of the specific time bucket.
|
|
1961
|
+
*/
|
|
1962
|
+
interface OrganizationUsageAudioSpeechesResult {
|
|
1963
|
+
/**
|
|
1964
|
+
* The number of characters processed.
|
|
1965
|
+
*/
|
|
1966
|
+
characters: number;
|
|
1967
|
+
/**
|
|
1968
|
+
* The count of requests made to the model.
|
|
1969
|
+
*/
|
|
1970
|
+
num_model_requests: number;
|
|
1971
|
+
object: 'organization.usage.audio_speeches.result';
|
|
1972
|
+
/**
|
|
1973
|
+
* When `group_by=api_key_id`, this field provides the API key ID of the grouped
|
|
1974
|
+
* usage result.
|
|
1975
|
+
*/
|
|
1976
|
+
api_key_id?: string | null;
|
|
1977
|
+
/**
|
|
1978
|
+
* When `group_by=model`, this field provides the model name of the grouped usage
|
|
1979
|
+
* result.
|
|
1980
|
+
*/
|
|
1981
|
+
model?: string | null;
|
|
1982
|
+
/**
|
|
1983
|
+
* When `group_by=project_id`, this field provides the project ID of the grouped
|
|
1984
|
+
* usage result.
|
|
1985
|
+
*/
|
|
1986
|
+
project_id?: string | null;
|
|
1987
|
+
/**
|
|
1988
|
+
* When `group_by=user_id`, this field provides the user ID of the grouped usage
|
|
1989
|
+
* result.
|
|
1990
|
+
*/
|
|
1991
|
+
user_id?: string | null;
|
|
1992
|
+
}
|
|
1993
|
+
/**
|
|
1994
|
+
* The aggregated audio transcriptions usage details of the specific time bucket.
|
|
1995
|
+
*/
|
|
1996
|
+
interface OrganizationUsageAudioTranscriptionsResult {
|
|
1997
|
+
/**
|
|
1998
|
+
* The count of requests made to the model.
|
|
1999
|
+
*/
|
|
2000
|
+
num_model_requests: number;
|
|
2001
|
+
object: 'organization.usage.audio_transcriptions.result';
|
|
2002
|
+
/**
|
|
2003
|
+
* The number of seconds processed.
|
|
2004
|
+
*/
|
|
2005
|
+
seconds: number;
|
|
2006
|
+
/**
|
|
2007
|
+
* When `group_by=api_key_id`, this field provides the API key ID of the grouped
|
|
2008
|
+
* usage result.
|
|
2009
|
+
*/
|
|
2010
|
+
api_key_id?: string | null;
|
|
2011
|
+
/**
|
|
2012
|
+
* When `group_by=model`, this field provides the model name of the grouped usage
|
|
2013
|
+
* result.
|
|
2014
|
+
*/
|
|
2015
|
+
model?: string | null;
|
|
2016
|
+
/**
|
|
2017
|
+
* When `group_by=project_id`, this field provides the project ID of the grouped
|
|
2018
|
+
* usage result.
|
|
2019
|
+
*/
|
|
2020
|
+
project_id?: string | null;
|
|
2021
|
+
/**
|
|
2022
|
+
* When `group_by=user_id`, this field provides the user ID of the grouped usage
|
|
2023
|
+
* result.
|
|
2024
|
+
*/
|
|
2025
|
+
user_id?: string | null;
|
|
2026
|
+
}
|
|
2027
|
+
/**
|
|
2028
|
+
* The aggregated vector stores usage details of the specific time bucket.
|
|
2029
|
+
*/
|
|
2030
|
+
interface OrganizationUsageVectorStoresResult {
|
|
2031
|
+
object: 'organization.usage.vector_stores.result';
|
|
2032
|
+
/**
|
|
2033
|
+
* The vector stores usage in bytes.
|
|
2034
|
+
*/
|
|
2035
|
+
usage_bytes: number;
|
|
2036
|
+
/**
|
|
2037
|
+
* When `group_by=project_id`, this field provides the project ID of the grouped
|
|
2038
|
+
* usage result.
|
|
2039
|
+
*/
|
|
2040
|
+
project_id?: string | null;
|
|
2041
|
+
}
|
|
2042
|
+
/**
|
|
2043
|
+
* The aggregated code interpreter sessions usage details of the specific time
|
|
2044
|
+
* bucket.
|
|
2045
|
+
*/
|
|
2046
|
+
interface OrganizationUsageCodeInterpreterSessionsResult {
|
|
2047
|
+
/**
|
|
2048
|
+
* The number of code interpreter sessions.
|
|
2049
|
+
*/
|
|
2050
|
+
num_sessions: number;
|
|
2051
|
+
object: 'organization.usage.code_interpreter_sessions.result';
|
|
2052
|
+
/**
|
|
2053
|
+
* When `group_by=project_id`, this field provides the project ID of the grouped
|
|
2054
|
+
* usage result.
|
|
2055
|
+
*/
|
|
2056
|
+
project_id?: string | null;
|
|
2057
|
+
}
|
|
2058
|
+
/**
|
|
2059
|
+
* The aggregated costs details of the specific time bucket.
|
|
2060
|
+
*/
|
|
2061
|
+
interface OrganizationCostsResult {
|
|
2062
|
+
object: 'organization.costs.result';
|
|
2063
|
+
/**
|
|
2064
|
+
* The monetary value in its associated currency.
|
|
2065
|
+
*/
|
|
2066
|
+
amount?: OrganizationCostsResult.Amount;
|
|
2067
|
+
/**
|
|
2068
|
+
* When `group_by=api_key_id`, this field provides the API Key ID of the grouped
|
|
2069
|
+
* costs result.
|
|
2070
|
+
*/
|
|
2071
|
+
api_key_id?: string | null;
|
|
2072
|
+
/**
|
|
2073
|
+
* When `group_by=line_item`, this field provides the line item of the grouped
|
|
2074
|
+
* costs result.
|
|
2075
|
+
*/
|
|
2076
|
+
line_item?: string | null;
|
|
2077
|
+
/**
|
|
2078
|
+
* When `group_by=project_id`, this field provides the project ID of the grouped
|
|
2079
|
+
* costs result.
|
|
2080
|
+
*/
|
|
2081
|
+
project_id?: string | null;
|
|
2082
|
+
}
|
|
2083
|
+
namespace OrganizationCostsResult {
|
|
2084
|
+
/**
|
|
2085
|
+
* The monetary value in its associated currency.
|
|
2086
|
+
*/
|
|
2087
|
+
interface Amount {
|
|
2088
|
+
/**
|
|
2089
|
+
* Lowercase ISO-4217 currency e.g. "usd"
|
|
2090
|
+
*/
|
|
2091
|
+
currency?: string;
|
|
2092
|
+
/**
|
|
2093
|
+
* The numeric value of the cost.
|
|
2094
|
+
*/
|
|
2095
|
+
value?: number;
|
|
2096
|
+
}
|
|
2097
|
+
}
|
|
2098
|
+
}
|
|
2099
|
+
}
|
|
2100
|
+
export interface UsageImagesResponse {
|
|
2101
|
+
data: Array<UsageImagesResponse.Data>;
|
|
2102
|
+
has_more: boolean;
|
|
2103
|
+
next_page: string | null;
|
|
2104
|
+
object: 'page';
|
|
2105
|
+
}
|
|
2106
|
+
export declare namespace UsageImagesResponse {
|
|
2107
|
+
interface Data {
|
|
2108
|
+
end_time: number;
|
|
2109
|
+
object: 'bucket';
|
|
2110
|
+
results: Array<Data.OrganizationUsageCompletionsResult | Data.OrganizationUsageEmbeddingsResult | Data.OrganizationUsageModerationsResult | Data.OrganizationUsageImagesResult | Data.OrganizationUsageAudioSpeechesResult | Data.OrganizationUsageAudioTranscriptionsResult | Data.OrganizationUsageVectorStoresResult | Data.OrganizationUsageCodeInterpreterSessionsResult | Data.OrganizationCostsResult>;
|
|
2111
|
+
start_time: number;
|
|
2112
|
+
}
|
|
2113
|
+
namespace Data {
|
|
2114
|
+
/**
|
|
2115
|
+
* The aggregated completions usage details of the specific time bucket.
|
|
2116
|
+
*/
|
|
2117
|
+
interface OrganizationUsageCompletionsResult {
|
|
2118
|
+
/**
|
|
2119
|
+
* The aggregated number of text input tokens used, including cached tokens. For
|
|
2120
|
+
* customers subscribe to scale tier, this includes scale tier tokens.
|
|
2121
|
+
*/
|
|
2122
|
+
input_tokens: number;
|
|
2123
|
+
/**
|
|
2124
|
+
* The count of requests made to the model.
|
|
2125
|
+
*/
|
|
2126
|
+
num_model_requests: number;
|
|
2127
|
+
object: 'organization.usage.completions.result';
|
|
2128
|
+
/**
|
|
2129
|
+
* The aggregated number of text output tokens used. For customers subscribe to
|
|
2130
|
+
* scale tier, this includes scale tier tokens.
|
|
2131
|
+
*/
|
|
2132
|
+
output_tokens: number;
|
|
2133
|
+
/**
|
|
2134
|
+
* When `group_by=api_key_id`, this field provides the API key ID of the grouped
|
|
2135
|
+
* usage result.
|
|
2136
|
+
*/
|
|
2137
|
+
api_key_id?: string | null;
|
|
2138
|
+
/**
|
|
2139
|
+
* When `group_by=batch`, this field tells whether the grouped usage result is
|
|
2140
|
+
* batch or not.
|
|
2141
|
+
*/
|
|
2142
|
+
batch?: boolean | null;
|
|
2143
|
+
/**
|
|
2144
|
+
* The aggregated number of audio input tokens used, including cached tokens.
|
|
2145
|
+
*/
|
|
2146
|
+
input_audio_tokens?: number;
|
|
2147
|
+
/**
|
|
2148
|
+
* The aggregated number of text input tokens that has been cached from previous
|
|
2149
|
+
* requests. For customers subscribe to scale tier, this includes scale tier
|
|
2150
|
+
* tokens.
|
|
2151
|
+
*/
|
|
2152
|
+
input_cached_tokens?: number;
|
|
2153
|
+
/**
|
|
2154
|
+
* When `group_by=model`, this field provides the model name of the grouped usage
|
|
2155
|
+
* result.
|
|
2156
|
+
*/
|
|
2157
|
+
model?: string | null;
|
|
2158
|
+
/**
|
|
2159
|
+
* The aggregated number of audio output tokens used.
|
|
2160
|
+
*/
|
|
2161
|
+
output_audio_tokens?: number;
|
|
2162
|
+
/**
|
|
2163
|
+
* When `group_by=project_id`, this field provides the project ID of the grouped
|
|
2164
|
+
* usage result.
|
|
2165
|
+
*/
|
|
2166
|
+
project_id?: string | null;
|
|
2167
|
+
/**
|
|
2168
|
+
* When `group_by=service_tier`, this field provides the service tier of the
|
|
2169
|
+
* grouped usage result.
|
|
2170
|
+
*/
|
|
2171
|
+
service_tier?: string | null;
|
|
2172
|
+
/**
|
|
2173
|
+
* When `group_by=user_id`, this field provides the user ID of the grouped usage
|
|
2174
|
+
* result.
|
|
2175
|
+
*/
|
|
2176
|
+
user_id?: string | null;
|
|
2177
|
+
}
|
|
2178
|
+
/**
|
|
2179
|
+
* The aggregated embeddings usage details of the specific time bucket.
|
|
2180
|
+
*/
|
|
2181
|
+
interface OrganizationUsageEmbeddingsResult {
|
|
2182
|
+
/**
|
|
2183
|
+
* The aggregated number of input tokens used.
|
|
2184
|
+
*/
|
|
2185
|
+
input_tokens: number;
|
|
2186
|
+
/**
|
|
2187
|
+
* The count of requests made to the model.
|
|
2188
|
+
*/
|
|
2189
|
+
num_model_requests: number;
|
|
2190
|
+
object: 'organization.usage.embeddings.result';
|
|
2191
|
+
/**
|
|
2192
|
+
* When `group_by=api_key_id`, this field provides the API key ID of the grouped
|
|
2193
|
+
* usage result.
|
|
2194
|
+
*/
|
|
2195
|
+
api_key_id?: string | null;
|
|
2196
|
+
/**
|
|
2197
|
+
* When `group_by=model`, this field provides the model name of the grouped usage
|
|
2198
|
+
* result.
|
|
2199
|
+
*/
|
|
2200
|
+
model?: string | null;
|
|
2201
|
+
/**
|
|
2202
|
+
* When `group_by=project_id`, this field provides the project ID of the grouped
|
|
2203
|
+
* usage result.
|
|
2204
|
+
*/
|
|
2205
|
+
project_id?: string | null;
|
|
2206
|
+
/**
|
|
2207
|
+
* When `group_by=user_id`, this field provides the user ID of the grouped usage
|
|
2208
|
+
* result.
|
|
2209
|
+
*/
|
|
2210
|
+
user_id?: string | null;
|
|
2211
|
+
}
|
|
2212
|
+
/**
|
|
2213
|
+
* The aggregated moderations usage details of the specific time bucket.
|
|
2214
|
+
*/
|
|
2215
|
+
interface OrganizationUsageModerationsResult {
|
|
2216
|
+
/**
|
|
2217
|
+
* The aggregated number of input tokens used.
|
|
2218
|
+
*/
|
|
2219
|
+
input_tokens: number;
|
|
2220
|
+
/**
|
|
2221
|
+
* The count of requests made to the model.
|
|
2222
|
+
*/
|
|
2223
|
+
num_model_requests: number;
|
|
2224
|
+
object: 'organization.usage.moderations.result';
|
|
2225
|
+
/**
|
|
2226
|
+
* When `group_by=api_key_id`, this field provides the API key ID of the grouped
|
|
2227
|
+
* usage result.
|
|
2228
|
+
*/
|
|
2229
|
+
api_key_id?: string | null;
|
|
2230
|
+
/**
|
|
2231
|
+
* When `group_by=model`, this field provides the model name of the grouped usage
|
|
2232
|
+
* result.
|
|
2233
|
+
*/
|
|
2234
|
+
model?: string | null;
|
|
2235
|
+
/**
|
|
2236
|
+
* When `group_by=project_id`, this field provides the project ID of the grouped
|
|
2237
|
+
* usage result.
|
|
2238
|
+
*/
|
|
2239
|
+
project_id?: string | null;
|
|
2240
|
+
/**
|
|
2241
|
+
* When `group_by=user_id`, this field provides the user ID of the grouped usage
|
|
2242
|
+
* result.
|
|
2243
|
+
*/
|
|
2244
|
+
user_id?: string | null;
|
|
2245
|
+
}
|
|
2246
|
+
/**
|
|
2247
|
+
* The aggregated images usage details of the specific time bucket.
|
|
2248
|
+
*/
|
|
2249
|
+
interface OrganizationUsageImagesResult {
|
|
2250
|
+
/**
|
|
2251
|
+
* The number of images processed.
|
|
2252
|
+
*/
|
|
2253
|
+
images: number;
|
|
2254
|
+
/**
|
|
2255
|
+
* The count of requests made to the model.
|
|
2256
|
+
*/
|
|
2257
|
+
num_model_requests: number;
|
|
2258
|
+
object: 'organization.usage.images.result';
|
|
2259
|
+
/**
|
|
2260
|
+
* When `group_by=api_key_id`, this field provides the API key ID of the grouped
|
|
2261
|
+
* usage result.
|
|
2262
|
+
*/
|
|
2263
|
+
api_key_id?: string | null;
|
|
2264
|
+
/**
|
|
2265
|
+
* When `group_by=model`, this field provides the model name of the grouped usage
|
|
2266
|
+
* result.
|
|
2267
|
+
*/
|
|
2268
|
+
model?: string | null;
|
|
2269
|
+
/**
|
|
2270
|
+
* When `group_by=project_id`, this field provides the project ID of the grouped
|
|
2271
|
+
* usage result.
|
|
2272
|
+
*/
|
|
2273
|
+
project_id?: string | null;
|
|
2274
|
+
/**
|
|
2275
|
+
* When `group_by=size`, this field provides the image size of the grouped usage
|
|
2276
|
+
* result.
|
|
2277
|
+
*/
|
|
2278
|
+
size?: string | null;
|
|
2279
|
+
/**
|
|
2280
|
+
* When `group_by=source`, this field provides the source of the grouped usage
|
|
2281
|
+
* result, possible values are `image.generation`, `image.edit`, `image.variation`.
|
|
2282
|
+
*/
|
|
2283
|
+
source?: string | null;
|
|
2284
|
+
/**
|
|
2285
|
+
* When `group_by=user_id`, this field provides the user ID of the grouped usage
|
|
2286
|
+
* result.
|
|
2287
|
+
*/
|
|
2288
|
+
user_id?: string | null;
|
|
2289
|
+
}
|
|
2290
|
+
/**
|
|
2291
|
+
* The aggregated audio speeches usage details of the specific time bucket.
|
|
2292
|
+
*/
|
|
2293
|
+
interface OrganizationUsageAudioSpeechesResult {
|
|
2294
|
+
/**
|
|
2295
|
+
* The number of characters processed.
|
|
2296
|
+
*/
|
|
2297
|
+
characters: number;
|
|
2298
|
+
/**
|
|
2299
|
+
* The count of requests made to the model.
|
|
2300
|
+
*/
|
|
2301
|
+
num_model_requests: number;
|
|
2302
|
+
object: 'organization.usage.audio_speeches.result';
|
|
2303
|
+
/**
|
|
2304
|
+
* When `group_by=api_key_id`, this field provides the API key ID of the grouped
|
|
2305
|
+
* usage result.
|
|
2306
|
+
*/
|
|
2307
|
+
api_key_id?: string | null;
|
|
2308
|
+
/**
|
|
2309
|
+
* When `group_by=model`, this field provides the model name of the grouped usage
|
|
2310
|
+
* result.
|
|
2311
|
+
*/
|
|
2312
|
+
model?: string | null;
|
|
2313
|
+
/**
|
|
2314
|
+
* When `group_by=project_id`, this field provides the project ID of the grouped
|
|
2315
|
+
* usage result.
|
|
2316
|
+
*/
|
|
2317
|
+
project_id?: string | null;
|
|
2318
|
+
/**
|
|
2319
|
+
* When `group_by=user_id`, this field provides the user ID of the grouped usage
|
|
2320
|
+
* result.
|
|
2321
|
+
*/
|
|
2322
|
+
user_id?: string | null;
|
|
2323
|
+
}
|
|
2324
|
+
/**
|
|
2325
|
+
* The aggregated audio transcriptions usage details of the specific time bucket.
|
|
2326
|
+
*/
|
|
2327
|
+
interface OrganizationUsageAudioTranscriptionsResult {
|
|
2328
|
+
/**
|
|
2329
|
+
* The count of requests made to the model.
|
|
2330
|
+
*/
|
|
2331
|
+
num_model_requests: number;
|
|
2332
|
+
object: 'organization.usage.audio_transcriptions.result';
|
|
2333
|
+
/**
|
|
2334
|
+
* The number of seconds processed.
|
|
2335
|
+
*/
|
|
2336
|
+
seconds: number;
|
|
2337
|
+
/**
|
|
2338
|
+
* When `group_by=api_key_id`, this field provides the API key ID of the grouped
|
|
2339
|
+
* usage result.
|
|
2340
|
+
*/
|
|
2341
|
+
api_key_id?: string | null;
|
|
2342
|
+
/**
|
|
2343
|
+
* When `group_by=model`, this field provides the model name of the grouped usage
|
|
2344
|
+
* result.
|
|
2345
|
+
*/
|
|
2346
|
+
model?: string | null;
|
|
2347
|
+
/**
|
|
2348
|
+
* When `group_by=project_id`, this field provides the project ID of the grouped
|
|
2349
|
+
* usage result.
|
|
2350
|
+
*/
|
|
2351
|
+
project_id?: string | null;
|
|
2352
|
+
/**
|
|
2353
|
+
* When `group_by=user_id`, this field provides the user ID of the grouped usage
|
|
2354
|
+
* result.
|
|
2355
|
+
*/
|
|
2356
|
+
user_id?: string | null;
|
|
2357
|
+
}
|
|
2358
|
+
/**
|
|
2359
|
+
* The aggregated vector stores usage details of the specific time bucket.
|
|
2360
|
+
*/
|
|
2361
|
+
interface OrganizationUsageVectorStoresResult {
|
|
2362
|
+
object: 'organization.usage.vector_stores.result';
|
|
2363
|
+
/**
|
|
2364
|
+
* The vector stores usage in bytes.
|
|
2365
|
+
*/
|
|
2366
|
+
usage_bytes: number;
|
|
2367
|
+
/**
|
|
2368
|
+
* When `group_by=project_id`, this field provides the project ID of the grouped
|
|
2369
|
+
* usage result.
|
|
2370
|
+
*/
|
|
2371
|
+
project_id?: string | null;
|
|
2372
|
+
}
|
|
2373
|
+
/**
|
|
2374
|
+
* The aggregated code interpreter sessions usage details of the specific time
|
|
2375
|
+
* bucket.
|
|
2376
|
+
*/
|
|
2377
|
+
interface OrganizationUsageCodeInterpreterSessionsResult {
|
|
2378
|
+
/**
|
|
2379
|
+
* The number of code interpreter sessions.
|
|
2380
|
+
*/
|
|
2381
|
+
num_sessions: number;
|
|
2382
|
+
object: 'organization.usage.code_interpreter_sessions.result';
|
|
2383
|
+
/**
|
|
2384
|
+
* When `group_by=project_id`, this field provides the project ID of the grouped
|
|
2385
|
+
* usage result.
|
|
2386
|
+
*/
|
|
2387
|
+
project_id?: string | null;
|
|
2388
|
+
}
|
|
2389
|
+
/**
|
|
2390
|
+
* The aggregated costs details of the specific time bucket.
|
|
2391
|
+
*/
|
|
2392
|
+
interface OrganizationCostsResult {
|
|
2393
|
+
object: 'organization.costs.result';
|
|
2394
|
+
/**
|
|
2395
|
+
* The monetary value in its associated currency.
|
|
2396
|
+
*/
|
|
2397
|
+
amount?: OrganizationCostsResult.Amount;
|
|
2398
|
+
/**
|
|
2399
|
+
* When `group_by=api_key_id`, this field provides the API Key ID of the grouped
|
|
2400
|
+
* costs result.
|
|
2401
|
+
*/
|
|
2402
|
+
api_key_id?: string | null;
|
|
2403
|
+
/**
|
|
2404
|
+
* When `group_by=line_item`, this field provides the line item of the grouped
|
|
2405
|
+
* costs result.
|
|
2406
|
+
*/
|
|
2407
|
+
line_item?: string | null;
|
|
2408
|
+
/**
|
|
2409
|
+
* When `group_by=project_id`, this field provides the project ID of the grouped
|
|
2410
|
+
* costs result.
|
|
2411
|
+
*/
|
|
2412
|
+
project_id?: string | null;
|
|
2413
|
+
}
|
|
2414
|
+
namespace OrganizationCostsResult {
|
|
2415
|
+
/**
|
|
2416
|
+
* The monetary value in its associated currency.
|
|
2417
|
+
*/
|
|
2418
|
+
interface Amount {
|
|
2419
|
+
/**
|
|
2420
|
+
* Lowercase ISO-4217 currency e.g. "usd"
|
|
2421
|
+
*/
|
|
2422
|
+
currency?: string;
|
|
2423
|
+
/**
|
|
2424
|
+
* The numeric value of the cost.
|
|
2425
|
+
*/
|
|
2426
|
+
value?: number;
|
|
2427
|
+
}
|
|
2428
|
+
}
|
|
2429
|
+
}
|
|
2430
|
+
}
|
|
2431
|
+
export interface UsageModerationsResponse {
|
|
2432
|
+
data: Array<UsageModerationsResponse.Data>;
|
|
2433
|
+
has_more: boolean;
|
|
2434
|
+
next_page: string | null;
|
|
2435
|
+
object: 'page';
|
|
2436
|
+
}
|
|
2437
|
+
export declare namespace UsageModerationsResponse {
|
|
2438
|
+
interface Data {
|
|
2439
|
+
end_time: number;
|
|
2440
|
+
object: 'bucket';
|
|
2441
|
+
results: Array<Data.OrganizationUsageCompletionsResult | Data.OrganizationUsageEmbeddingsResult | Data.OrganizationUsageModerationsResult | Data.OrganizationUsageImagesResult | Data.OrganizationUsageAudioSpeechesResult | Data.OrganizationUsageAudioTranscriptionsResult | Data.OrganizationUsageVectorStoresResult | Data.OrganizationUsageCodeInterpreterSessionsResult | Data.OrganizationCostsResult>;
|
|
2442
|
+
start_time: number;
|
|
2443
|
+
}
|
|
2444
|
+
namespace Data {
|
|
2445
|
+
/**
|
|
2446
|
+
* The aggregated completions usage details of the specific time bucket.
|
|
2447
|
+
*/
|
|
2448
|
+
interface OrganizationUsageCompletionsResult {
|
|
2449
|
+
/**
|
|
2450
|
+
* The aggregated number of text input tokens used, including cached tokens. For
|
|
2451
|
+
* customers subscribe to scale tier, this includes scale tier tokens.
|
|
2452
|
+
*/
|
|
2453
|
+
input_tokens: number;
|
|
2454
|
+
/**
|
|
2455
|
+
* The count of requests made to the model.
|
|
2456
|
+
*/
|
|
2457
|
+
num_model_requests: number;
|
|
2458
|
+
object: 'organization.usage.completions.result';
|
|
2459
|
+
/**
|
|
2460
|
+
* The aggregated number of text output tokens used. For customers subscribe to
|
|
2461
|
+
* scale tier, this includes scale tier tokens.
|
|
2462
|
+
*/
|
|
2463
|
+
output_tokens: number;
|
|
2464
|
+
/**
|
|
2465
|
+
* When `group_by=api_key_id`, this field provides the API key ID of the grouped
|
|
2466
|
+
* usage result.
|
|
2467
|
+
*/
|
|
2468
|
+
api_key_id?: string | null;
|
|
2469
|
+
/**
|
|
2470
|
+
* When `group_by=batch`, this field tells whether the grouped usage result is
|
|
2471
|
+
* batch or not.
|
|
2472
|
+
*/
|
|
2473
|
+
batch?: boolean | null;
|
|
2474
|
+
/**
|
|
2475
|
+
* The aggregated number of audio input tokens used, including cached tokens.
|
|
2476
|
+
*/
|
|
2477
|
+
input_audio_tokens?: number;
|
|
2478
|
+
/**
|
|
2479
|
+
* The aggregated number of text input tokens that has been cached from previous
|
|
2480
|
+
* requests. For customers subscribe to scale tier, this includes scale tier
|
|
2481
|
+
* tokens.
|
|
2482
|
+
*/
|
|
2483
|
+
input_cached_tokens?: number;
|
|
2484
|
+
/**
|
|
2485
|
+
* When `group_by=model`, this field provides the model name of the grouped usage
|
|
2486
|
+
* result.
|
|
2487
|
+
*/
|
|
2488
|
+
model?: string | null;
|
|
2489
|
+
/**
|
|
2490
|
+
* The aggregated number of audio output tokens used.
|
|
2491
|
+
*/
|
|
2492
|
+
output_audio_tokens?: number;
|
|
2493
|
+
/**
|
|
2494
|
+
* When `group_by=project_id`, this field provides the project ID of the grouped
|
|
2495
|
+
* usage result.
|
|
2496
|
+
*/
|
|
2497
|
+
project_id?: string | null;
|
|
2498
|
+
/**
|
|
2499
|
+
* When `group_by=service_tier`, this field provides the service tier of the
|
|
2500
|
+
* grouped usage result.
|
|
2501
|
+
*/
|
|
2502
|
+
service_tier?: string | null;
|
|
2503
|
+
/**
|
|
2504
|
+
* When `group_by=user_id`, this field provides the user ID of the grouped usage
|
|
2505
|
+
* result.
|
|
2506
|
+
*/
|
|
2507
|
+
user_id?: string | null;
|
|
2508
|
+
}
|
|
2509
|
+
/**
|
|
2510
|
+
* The aggregated embeddings usage details of the specific time bucket.
|
|
2511
|
+
*/
|
|
2512
|
+
interface OrganizationUsageEmbeddingsResult {
|
|
2513
|
+
/**
|
|
2514
|
+
* The aggregated number of input tokens used.
|
|
2515
|
+
*/
|
|
2516
|
+
input_tokens: number;
|
|
2517
|
+
/**
|
|
2518
|
+
* The count of requests made to the model.
|
|
2519
|
+
*/
|
|
2520
|
+
num_model_requests: number;
|
|
2521
|
+
object: 'organization.usage.embeddings.result';
|
|
2522
|
+
/**
|
|
2523
|
+
* When `group_by=api_key_id`, this field provides the API key ID of the grouped
|
|
2524
|
+
* usage result.
|
|
2525
|
+
*/
|
|
2526
|
+
api_key_id?: string | null;
|
|
2527
|
+
/**
|
|
2528
|
+
* When `group_by=model`, this field provides the model name of the grouped usage
|
|
2529
|
+
* result.
|
|
2530
|
+
*/
|
|
2531
|
+
model?: string | null;
|
|
2532
|
+
/**
|
|
2533
|
+
* When `group_by=project_id`, this field provides the project ID of the grouped
|
|
2534
|
+
* usage result.
|
|
2535
|
+
*/
|
|
2536
|
+
project_id?: string | null;
|
|
2537
|
+
/**
|
|
2538
|
+
* When `group_by=user_id`, this field provides the user ID of the grouped usage
|
|
2539
|
+
* result.
|
|
2540
|
+
*/
|
|
2541
|
+
user_id?: string | null;
|
|
2542
|
+
}
|
|
2543
|
+
/**
|
|
2544
|
+
* The aggregated moderations usage details of the specific time bucket.
|
|
2545
|
+
*/
|
|
2546
|
+
interface OrganizationUsageModerationsResult {
|
|
2547
|
+
/**
|
|
2548
|
+
* The aggregated number of input tokens used.
|
|
2549
|
+
*/
|
|
2550
|
+
input_tokens: number;
|
|
2551
|
+
/**
|
|
2552
|
+
* The count of requests made to the model.
|
|
2553
|
+
*/
|
|
2554
|
+
num_model_requests: number;
|
|
2555
|
+
object: 'organization.usage.moderations.result';
|
|
2556
|
+
/**
|
|
2557
|
+
* When `group_by=api_key_id`, this field provides the API key ID of the grouped
|
|
2558
|
+
* usage result.
|
|
2559
|
+
*/
|
|
2560
|
+
api_key_id?: string | null;
|
|
2561
|
+
/**
|
|
2562
|
+
* When `group_by=model`, this field provides the model name of the grouped usage
|
|
2563
|
+
* result.
|
|
2564
|
+
*/
|
|
2565
|
+
model?: string | null;
|
|
2566
|
+
/**
|
|
2567
|
+
* When `group_by=project_id`, this field provides the project ID of the grouped
|
|
2568
|
+
* usage result.
|
|
2569
|
+
*/
|
|
2570
|
+
project_id?: string | null;
|
|
2571
|
+
/**
|
|
2572
|
+
* When `group_by=user_id`, this field provides the user ID of the grouped usage
|
|
2573
|
+
* result.
|
|
2574
|
+
*/
|
|
2575
|
+
user_id?: string | null;
|
|
2576
|
+
}
|
|
2577
|
+
/**
|
|
2578
|
+
* The aggregated images usage details of the specific time bucket.
|
|
2579
|
+
*/
|
|
2580
|
+
interface OrganizationUsageImagesResult {
|
|
2581
|
+
/**
|
|
2582
|
+
* The number of images processed.
|
|
2583
|
+
*/
|
|
2584
|
+
images: number;
|
|
2585
|
+
/**
|
|
2586
|
+
* The count of requests made to the model.
|
|
2587
|
+
*/
|
|
2588
|
+
num_model_requests: number;
|
|
2589
|
+
object: 'organization.usage.images.result';
|
|
2590
|
+
/**
|
|
2591
|
+
* When `group_by=api_key_id`, this field provides the API key ID of the grouped
|
|
2592
|
+
* usage result.
|
|
2593
|
+
*/
|
|
2594
|
+
api_key_id?: string | null;
|
|
2595
|
+
/**
|
|
2596
|
+
* When `group_by=model`, this field provides the model name of the grouped usage
|
|
2597
|
+
* result.
|
|
2598
|
+
*/
|
|
2599
|
+
model?: string | null;
|
|
2600
|
+
/**
|
|
2601
|
+
* When `group_by=project_id`, this field provides the project ID of the grouped
|
|
2602
|
+
* usage result.
|
|
2603
|
+
*/
|
|
2604
|
+
project_id?: string | null;
|
|
2605
|
+
/**
|
|
2606
|
+
* When `group_by=size`, this field provides the image size of the grouped usage
|
|
2607
|
+
* result.
|
|
2608
|
+
*/
|
|
2609
|
+
size?: string | null;
|
|
2610
|
+
/**
|
|
2611
|
+
* When `group_by=source`, this field provides the source of the grouped usage
|
|
2612
|
+
* result, possible values are `image.generation`, `image.edit`, `image.variation`.
|
|
2613
|
+
*/
|
|
2614
|
+
source?: string | null;
|
|
2615
|
+
/**
|
|
2616
|
+
* When `group_by=user_id`, this field provides the user ID of the grouped usage
|
|
2617
|
+
* result.
|
|
2618
|
+
*/
|
|
2619
|
+
user_id?: string | null;
|
|
2620
|
+
}
|
|
2621
|
+
/**
|
|
2622
|
+
* The aggregated audio speeches usage details of the specific time bucket.
|
|
2623
|
+
*/
|
|
2624
|
+
interface OrganizationUsageAudioSpeechesResult {
|
|
2625
|
+
/**
|
|
2626
|
+
* The number of characters processed.
|
|
2627
|
+
*/
|
|
2628
|
+
characters: number;
|
|
2629
|
+
/**
|
|
2630
|
+
* The count of requests made to the model.
|
|
2631
|
+
*/
|
|
2632
|
+
num_model_requests: number;
|
|
2633
|
+
object: 'organization.usage.audio_speeches.result';
|
|
2634
|
+
/**
|
|
2635
|
+
* When `group_by=api_key_id`, this field provides the API key ID of the grouped
|
|
2636
|
+
* usage result.
|
|
2637
|
+
*/
|
|
2638
|
+
api_key_id?: string | null;
|
|
2639
|
+
/**
|
|
2640
|
+
* When `group_by=model`, this field provides the model name of the grouped usage
|
|
2641
|
+
* result.
|
|
2642
|
+
*/
|
|
2643
|
+
model?: string | null;
|
|
2644
|
+
/**
|
|
2645
|
+
* When `group_by=project_id`, this field provides the project ID of the grouped
|
|
2646
|
+
* usage result.
|
|
2647
|
+
*/
|
|
2648
|
+
project_id?: string | null;
|
|
2649
|
+
/**
|
|
2650
|
+
* When `group_by=user_id`, this field provides the user ID of the grouped usage
|
|
2651
|
+
* result.
|
|
2652
|
+
*/
|
|
2653
|
+
user_id?: string | null;
|
|
2654
|
+
}
|
|
2655
|
+
/**
|
|
2656
|
+
* The aggregated audio transcriptions usage details of the specific time bucket.
|
|
2657
|
+
*/
|
|
2658
|
+
interface OrganizationUsageAudioTranscriptionsResult {
|
|
2659
|
+
/**
|
|
2660
|
+
* The count of requests made to the model.
|
|
2661
|
+
*/
|
|
2662
|
+
num_model_requests: number;
|
|
2663
|
+
object: 'organization.usage.audio_transcriptions.result';
|
|
2664
|
+
/**
|
|
2665
|
+
* The number of seconds processed.
|
|
2666
|
+
*/
|
|
2667
|
+
seconds: number;
|
|
2668
|
+
/**
|
|
2669
|
+
* When `group_by=api_key_id`, this field provides the API key ID of the grouped
|
|
2670
|
+
* usage result.
|
|
2671
|
+
*/
|
|
2672
|
+
api_key_id?: string | null;
|
|
2673
|
+
/**
|
|
2674
|
+
* When `group_by=model`, this field provides the model name of the grouped usage
|
|
2675
|
+
* result.
|
|
2676
|
+
*/
|
|
2677
|
+
model?: string | null;
|
|
2678
|
+
/**
|
|
2679
|
+
* When `group_by=project_id`, this field provides the project ID of the grouped
|
|
2680
|
+
* usage result.
|
|
2681
|
+
*/
|
|
2682
|
+
project_id?: string | null;
|
|
2683
|
+
/**
|
|
2684
|
+
* When `group_by=user_id`, this field provides the user ID of the grouped usage
|
|
2685
|
+
* result.
|
|
2686
|
+
*/
|
|
2687
|
+
user_id?: string | null;
|
|
2688
|
+
}
|
|
2689
|
+
/**
|
|
2690
|
+
* The aggregated vector stores usage details of the specific time bucket.
|
|
2691
|
+
*/
|
|
2692
|
+
interface OrganizationUsageVectorStoresResult {
|
|
2693
|
+
object: 'organization.usage.vector_stores.result';
|
|
2694
|
+
/**
|
|
2695
|
+
* The vector stores usage in bytes.
|
|
2696
|
+
*/
|
|
2697
|
+
usage_bytes: number;
|
|
2698
|
+
/**
|
|
2699
|
+
* When `group_by=project_id`, this field provides the project ID of the grouped
|
|
2700
|
+
* usage result.
|
|
2701
|
+
*/
|
|
2702
|
+
project_id?: string | null;
|
|
2703
|
+
}
|
|
2704
|
+
/**
|
|
2705
|
+
* The aggregated code interpreter sessions usage details of the specific time
|
|
2706
|
+
* bucket.
|
|
2707
|
+
*/
|
|
2708
|
+
interface OrganizationUsageCodeInterpreterSessionsResult {
|
|
2709
|
+
/**
|
|
2710
|
+
* The number of code interpreter sessions.
|
|
2711
|
+
*/
|
|
2712
|
+
num_sessions: number;
|
|
2713
|
+
object: 'organization.usage.code_interpreter_sessions.result';
|
|
2714
|
+
/**
|
|
2715
|
+
* When `group_by=project_id`, this field provides the project ID of the grouped
|
|
2716
|
+
* usage result.
|
|
2717
|
+
*/
|
|
2718
|
+
project_id?: string | null;
|
|
2719
|
+
}
|
|
2720
|
+
/**
|
|
2721
|
+
* The aggregated costs details of the specific time bucket.
|
|
2722
|
+
*/
|
|
2723
|
+
interface OrganizationCostsResult {
|
|
2724
|
+
object: 'organization.costs.result';
|
|
2725
|
+
/**
|
|
2726
|
+
* The monetary value in its associated currency.
|
|
2727
|
+
*/
|
|
2728
|
+
amount?: OrganizationCostsResult.Amount;
|
|
2729
|
+
/**
|
|
2730
|
+
* When `group_by=api_key_id`, this field provides the API Key ID of the grouped
|
|
2731
|
+
* costs result.
|
|
2732
|
+
*/
|
|
2733
|
+
api_key_id?: string | null;
|
|
2734
|
+
/**
|
|
2735
|
+
* When `group_by=line_item`, this field provides the line item of the grouped
|
|
2736
|
+
* costs result.
|
|
2737
|
+
*/
|
|
2738
|
+
line_item?: string | null;
|
|
2739
|
+
/**
|
|
2740
|
+
* When `group_by=project_id`, this field provides the project ID of the grouped
|
|
2741
|
+
* costs result.
|
|
2742
|
+
*/
|
|
2743
|
+
project_id?: string | null;
|
|
2744
|
+
}
|
|
2745
|
+
namespace OrganizationCostsResult {
|
|
2746
|
+
/**
|
|
2747
|
+
* The monetary value in its associated currency.
|
|
2748
|
+
*/
|
|
2749
|
+
interface Amount {
|
|
2750
|
+
/**
|
|
2751
|
+
* Lowercase ISO-4217 currency e.g. "usd"
|
|
2752
|
+
*/
|
|
2753
|
+
currency?: string;
|
|
2754
|
+
/**
|
|
2755
|
+
* The numeric value of the cost.
|
|
2756
|
+
*/
|
|
2757
|
+
value?: number;
|
|
2758
|
+
}
|
|
2759
|
+
}
|
|
2760
|
+
}
|
|
2761
|
+
}
|
|
2762
|
+
export interface UsageVectorStoresResponse {
|
|
2763
|
+
data: Array<UsageVectorStoresResponse.Data>;
|
|
2764
|
+
has_more: boolean;
|
|
2765
|
+
next_page: string | null;
|
|
2766
|
+
object: 'page';
|
|
2767
|
+
}
|
|
2768
|
+
export declare namespace UsageVectorStoresResponse {
|
|
2769
|
+
interface Data {
|
|
2770
|
+
end_time: number;
|
|
2771
|
+
object: 'bucket';
|
|
2772
|
+
results: Array<Data.OrganizationUsageCompletionsResult | Data.OrganizationUsageEmbeddingsResult | Data.OrganizationUsageModerationsResult | Data.OrganizationUsageImagesResult | Data.OrganizationUsageAudioSpeechesResult | Data.OrganizationUsageAudioTranscriptionsResult | Data.OrganizationUsageVectorStoresResult | Data.OrganizationUsageCodeInterpreterSessionsResult | Data.OrganizationCostsResult>;
|
|
2773
|
+
start_time: number;
|
|
2774
|
+
}
|
|
2775
|
+
namespace Data {
|
|
2776
|
+
/**
|
|
2777
|
+
* The aggregated completions usage details of the specific time bucket.
|
|
2778
|
+
*/
|
|
2779
|
+
interface OrganizationUsageCompletionsResult {
|
|
2780
|
+
/**
|
|
2781
|
+
* The aggregated number of text input tokens used, including cached tokens. For
|
|
2782
|
+
* customers subscribe to scale tier, this includes scale tier tokens.
|
|
2783
|
+
*/
|
|
2784
|
+
input_tokens: number;
|
|
2785
|
+
/**
|
|
2786
|
+
* The count of requests made to the model.
|
|
2787
|
+
*/
|
|
2788
|
+
num_model_requests: number;
|
|
2789
|
+
object: 'organization.usage.completions.result';
|
|
2790
|
+
/**
|
|
2791
|
+
* The aggregated number of text output tokens used. For customers subscribe to
|
|
2792
|
+
* scale tier, this includes scale tier tokens.
|
|
2793
|
+
*/
|
|
2794
|
+
output_tokens: number;
|
|
2795
|
+
/**
|
|
2796
|
+
* When `group_by=api_key_id`, this field provides the API key ID of the grouped
|
|
2797
|
+
* usage result.
|
|
2798
|
+
*/
|
|
2799
|
+
api_key_id?: string | null;
|
|
2800
|
+
/**
|
|
2801
|
+
* When `group_by=batch`, this field tells whether the grouped usage result is
|
|
2802
|
+
* batch or not.
|
|
2803
|
+
*/
|
|
2804
|
+
batch?: boolean | null;
|
|
2805
|
+
/**
|
|
2806
|
+
* The aggregated number of audio input tokens used, including cached tokens.
|
|
2807
|
+
*/
|
|
2808
|
+
input_audio_tokens?: number;
|
|
2809
|
+
/**
|
|
2810
|
+
* The aggregated number of text input tokens that has been cached from previous
|
|
2811
|
+
* requests. For customers subscribe to scale tier, this includes scale tier
|
|
2812
|
+
* tokens.
|
|
2813
|
+
*/
|
|
2814
|
+
input_cached_tokens?: number;
|
|
2815
|
+
/**
|
|
2816
|
+
* When `group_by=model`, this field provides the model name of the grouped usage
|
|
2817
|
+
* result.
|
|
2818
|
+
*/
|
|
2819
|
+
model?: string | null;
|
|
2820
|
+
/**
|
|
2821
|
+
* The aggregated number of audio output tokens used.
|
|
2822
|
+
*/
|
|
2823
|
+
output_audio_tokens?: number;
|
|
2824
|
+
/**
|
|
2825
|
+
* When `group_by=project_id`, this field provides the project ID of the grouped
|
|
2826
|
+
* usage result.
|
|
2827
|
+
*/
|
|
2828
|
+
project_id?: string | null;
|
|
2829
|
+
/**
|
|
2830
|
+
* When `group_by=service_tier`, this field provides the service tier of the
|
|
2831
|
+
* grouped usage result.
|
|
2832
|
+
*/
|
|
2833
|
+
service_tier?: string | null;
|
|
2834
|
+
/**
|
|
2835
|
+
* When `group_by=user_id`, this field provides the user ID of the grouped usage
|
|
2836
|
+
* result.
|
|
2837
|
+
*/
|
|
2838
|
+
user_id?: string | null;
|
|
2839
|
+
}
|
|
2840
|
+
/**
|
|
2841
|
+
* The aggregated embeddings usage details of the specific time bucket.
|
|
2842
|
+
*/
|
|
2843
|
+
interface OrganizationUsageEmbeddingsResult {
|
|
2844
|
+
/**
|
|
2845
|
+
* The aggregated number of input tokens used.
|
|
2846
|
+
*/
|
|
2847
|
+
input_tokens: number;
|
|
2848
|
+
/**
|
|
2849
|
+
* The count of requests made to the model.
|
|
2850
|
+
*/
|
|
2851
|
+
num_model_requests: number;
|
|
2852
|
+
object: 'organization.usage.embeddings.result';
|
|
2853
|
+
/**
|
|
2854
|
+
* When `group_by=api_key_id`, this field provides the API key ID of the grouped
|
|
2855
|
+
* usage result.
|
|
2856
|
+
*/
|
|
2857
|
+
api_key_id?: string | null;
|
|
2858
|
+
/**
|
|
2859
|
+
* When `group_by=model`, this field provides the model name of the grouped usage
|
|
2860
|
+
* result.
|
|
2861
|
+
*/
|
|
2862
|
+
model?: string | null;
|
|
2863
|
+
/**
|
|
2864
|
+
* When `group_by=project_id`, this field provides the project ID of the grouped
|
|
2865
|
+
* usage result.
|
|
2866
|
+
*/
|
|
2867
|
+
project_id?: string | null;
|
|
2868
|
+
/**
|
|
2869
|
+
* When `group_by=user_id`, this field provides the user ID of the grouped usage
|
|
2870
|
+
* result.
|
|
2871
|
+
*/
|
|
2872
|
+
user_id?: string | null;
|
|
2873
|
+
}
|
|
2874
|
+
/**
|
|
2875
|
+
* The aggregated moderations usage details of the specific time bucket.
|
|
2876
|
+
*/
|
|
2877
|
+
interface OrganizationUsageModerationsResult {
|
|
2878
|
+
/**
|
|
2879
|
+
* The aggregated number of input tokens used.
|
|
2880
|
+
*/
|
|
2881
|
+
input_tokens: number;
|
|
2882
|
+
/**
|
|
2883
|
+
* The count of requests made to the model.
|
|
2884
|
+
*/
|
|
2885
|
+
num_model_requests: number;
|
|
2886
|
+
object: 'organization.usage.moderations.result';
|
|
2887
|
+
/**
|
|
2888
|
+
* When `group_by=api_key_id`, this field provides the API key ID of the grouped
|
|
2889
|
+
* usage result.
|
|
2890
|
+
*/
|
|
2891
|
+
api_key_id?: string | null;
|
|
2892
|
+
/**
|
|
2893
|
+
* When `group_by=model`, this field provides the model name of the grouped usage
|
|
2894
|
+
* result.
|
|
2895
|
+
*/
|
|
2896
|
+
model?: string | null;
|
|
2897
|
+
/**
|
|
2898
|
+
* When `group_by=project_id`, this field provides the project ID of the grouped
|
|
2899
|
+
* usage result.
|
|
2900
|
+
*/
|
|
2901
|
+
project_id?: string | null;
|
|
2902
|
+
/**
|
|
2903
|
+
* When `group_by=user_id`, this field provides the user ID of the grouped usage
|
|
2904
|
+
* result.
|
|
2905
|
+
*/
|
|
2906
|
+
user_id?: string | null;
|
|
2907
|
+
}
|
|
2908
|
+
/**
|
|
2909
|
+
* The aggregated images usage details of the specific time bucket.
|
|
2910
|
+
*/
|
|
2911
|
+
interface OrganizationUsageImagesResult {
|
|
2912
|
+
/**
|
|
2913
|
+
* The number of images processed.
|
|
2914
|
+
*/
|
|
2915
|
+
images: number;
|
|
2916
|
+
/**
|
|
2917
|
+
* The count of requests made to the model.
|
|
2918
|
+
*/
|
|
2919
|
+
num_model_requests: number;
|
|
2920
|
+
object: 'organization.usage.images.result';
|
|
2921
|
+
/**
|
|
2922
|
+
* When `group_by=api_key_id`, this field provides the API key ID of the grouped
|
|
2923
|
+
* usage result.
|
|
2924
|
+
*/
|
|
2925
|
+
api_key_id?: string | null;
|
|
2926
|
+
/**
|
|
2927
|
+
* When `group_by=model`, this field provides the model name of the grouped usage
|
|
2928
|
+
* result.
|
|
2929
|
+
*/
|
|
2930
|
+
model?: string | null;
|
|
2931
|
+
/**
|
|
2932
|
+
* When `group_by=project_id`, this field provides the project ID of the grouped
|
|
2933
|
+
* usage result.
|
|
2934
|
+
*/
|
|
2935
|
+
project_id?: string | null;
|
|
2936
|
+
/**
|
|
2937
|
+
* When `group_by=size`, this field provides the image size of the grouped usage
|
|
2938
|
+
* result.
|
|
2939
|
+
*/
|
|
2940
|
+
size?: string | null;
|
|
2941
|
+
/**
|
|
2942
|
+
* When `group_by=source`, this field provides the source of the grouped usage
|
|
2943
|
+
* result, possible values are `image.generation`, `image.edit`, `image.variation`.
|
|
2944
|
+
*/
|
|
2945
|
+
source?: string | null;
|
|
2946
|
+
/**
|
|
2947
|
+
* When `group_by=user_id`, this field provides the user ID of the grouped usage
|
|
2948
|
+
* result.
|
|
2949
|
+
*/
|
|
2950
|
+
user_id?: string | null;
|
|
2951
|
+
}
|
|
2952
|
+
/**
|
|
2953
|
+
* The aggregated audio speeches usage details of the specific time bucket.
|
|
2954
|
+
*/
|
|
2955
|
+
interface OrganizationUsageAudioSpeechesResult {
|
|
2956
|
+
/**
|
|
2957
|
+
* The number of characters processed.
|
|
2958
|
+
*/
|
|
2959
|
+
characters: number;
|
|
2960
|
+
/**
|
|
2961
|
+
* The count of requests made to the model.
|
|
2962
|
+
*/
|
|
2963
|
+
num_model_requests: number;
|
|
2964
|
+
object: 'organization.usage.audio_speeches.result';
|
|
2965
|
+
/**
|
|
2966
|
+
* When `group_by=api_key_id`, this field provides the API key ID of the grouped
|
|
2967
|
+
* usage result.
|
|
2968
|
+
*/
|
|
2969
|
+
api_key_id?: string | null;
|
|
2970
|
+
/**
|
|
2971
|
+
* When `group_by=model`, this field provides the model name of the grouped usage
|
|
2972
|
+
* result.
|
|
2973
|
+
*/
|
|
2974
|
+
model?: string | null;
|
|
2975
|
+
/**
|
|
2976
|
+
* When `group_by=project_id`, this field provides the project ID of the grouped
|
|
2977
|
+
* usage result.
|
|
2978
|
+
*/
|
|
2979
|
+
project_id?: string | null;
|
|
2980
|
+
/**
|
|
2981
|
+
* When `group_by=user_id`, this field provides the user ID of the grouped usage
|
|
2982
|
+
* result.
|
|
2983
|
+
*/
|
|
2984
|
+
user_id?: string | null;
|
|
2985
|
+
}
|
|
2986
|
+
/**
|
|
2987
|
+
* The aggregated audio transcriptions usage details of the specific time bucket.
|
|
2988
|
+
*/
|
|
2989
|
+
interface OrganizationUsageAudioTranscriptionsResult {
|
|
2990
|
+
/**
|
|
2991
|
+
* The count of requests made to the model.
|
|
2992
|
+
*/
|
|
2993
|
+
num_model_requests: number;
|
|
2994
|
+
object: 'organization.usage.audio_transcriptions.result';
|
|
2995
|
+
/**
|
|
2996
|
+
* The number of seconds processed.
|
|
2997
|
+
*/
|
|
2998
|
+
seconds: number;
|
|
2999
|
+
/**
|
|
3000
|
+
* When `group_by=api_key_id`, this field provides the API key ID of the grouped
|
|
3001
|
+
* usage result.
|
|
3002
|
+
*/
|
|
3003
|
+
api_key_id?: string | null;
|
|
3004
|
+
/**
|
|
3005
|
+
* When `group_by=model`, this field provides the model name of the grouped usage
|
|
3006
|
+
* result.
|
|
3007
|
+
*/
|
|
3008
|
+
model?: string | null;
|
|
3009
|
+
/**
|
|
3010
|
+
* When `group_by=project_id`, this field provides the project ID of the grouped
|
|
3011
|
+
* usage result.
|
|
3012
|
+
*/
|
|
3013
|
+
project_id?: string | null;
|
|
3014
|
+
/**
|
|
3015
|
+
* When `group_by=user_id`, this field provides the user ID of the grouped usage
|
|
3016
|
+
* result.
|
|
3017
|
+
*/
|
|
3018
|
+
user_id?: string | null;
|
|
3019
|
+
}
|
|
3020
|
+
/**
|
|
3021
|
+
* The aggregated vector stores usage details of the specific time bucket.
|
|
3022
|
+
*/
|
|
3023
|
+
interface OrganizationUsageVectorStoresResult {
|
|
3024
|
+
object: 'organization.usage.vector_stores.result';
|
|
3025
|
+
/**
|
|
3026
|
+
* The vector stores usage in bytes.
|
|
3027
|
+
*/
|
|
3028
|
+
usage_bytes: number;
|
|
3029
|
+
/**
|
|
3030
|
+
* When `group_by=project_id`, this field provides the project ID of the grouped
|
|
3031
|
+
* usage result.
|
|
3032
|
+
*/
|
|
3033
|
+
project_id?: string | null;
|
|
3034
|
+
}
|
|
3035
|
+
/**
|
|
3036
|
+
* The aggregated code interpreter sessions usage details of the specific time
|
|
3037
|
+
* bucket.
|
|
3038
|
+
*/
|
|
3039
|
+
interface OrganizationUsageCodeInterpreterSessionsResult {
|
|
3040
|
+
/**
|
|
3041
|
+
* The number of code interpreter sessions.
|
|
3042
|
+
*/
|
|
3043
|
+
num_sessions: number;
|
|
3044
|
+
object: 'organization.usage.code_interpreter_sessions.result';
|
|
3045
|
+
/**
|
|
3046
|
+
* When `group_by=project_id`, this field provides the project ID of the grouped
|
|
3047
|
+
* usage result.
|
|
3048
|
+
*/
|
|
3049
|
+
project_id?: string | null;
|
|
3050
|
+
}
|
|
3051
|
+
/**
|
|
3052
|
+
* The aggregated costs details of the specific time bucket.
|
|
3053
|
+
*/
|
|
3054
|
+
interface OrganizationCostsResult {
|
|
3055
|
+
object: 'organization.costs.result';
|
|
3056
|
+
/**
|
|
3057
|
+
* The monetary value in its associated currency.
|
|
3058
|
+
*/
|
|
3059
|
+
amount?: OrganizationCostsResult.Amount;
|
|
3060
|
+
/**
|
|
3061
|
+
* When `group_by=api_key_id`, this field provides the API Key ID of the grouped
|
|
3062
|
+
* costs result.
|
|
3063
|
+
*/
|
|
3064
|
+
api_key_id?: string | null;
|
|
3065
|
+
/**
|
|
3066
|
+
* When `group_by=line_item`, this field provides the line item of the grouped
|
|
3067
|
+
* costs result.
|
|
3068
|
+
*/
|
|
3069
|
+
line_item?: string | null;
|
|
3070
|
+
/**
|
|
3071
|
+
* When `group_by=project_id`, this field provides the project ID of the grouped
|
|
3072
|
+
* costs result.
|
|
3073
|
+
*/
|
|
3074
|
+
project_id?: string | null;
|
|
3075
|
+
}
|
|
3076
|
+
namespace OrganizationCostsResult {
|
|
3077
|
+
/**
|
|
3078
|
+
* The monetary value in its associated currency.
|
|
3079
|
+
*/
|
|
3080
|
+
interface Amount {
|
|
3081
|
+
/**
|
|
3082
|
+
* Lowercase ISO-4217 currency e.g. "usd"
|
|
3083
|
+
*/
|
|
3084
|
+
currency?: string;
|
|
3085
|
+
/**
|
|
3086
|
+
* The numeric value of the cost.
|
|
3087
|
+
*/
|
|
3088
|
+
value?: number;
|
|
3089
|
+
}
|
|
3090
|
+
}
|
|
3091
|
+
}
|
|
3092
|
+
}
|
|
3093
|
+
export interface UsageAudioSpeechesParams {
|
|
3094
|
+
/**
|
|
3095
|
+
* Start time (Unix seconds) of the query time range, inclusive.
|
|
3096
|
+
*/
|
|
3097
|
+
start_time: number;
|
|
3098
|
+
/**
|
|
3099
|
+
* Return only usage for these API keys.
|
|
3100
|
+
*/
|
|
3101
|
+
api_key_ids?: Array<string>;
|
|
3102
|
+
/**
|
|
3103
|
+
* Width of each time bucket in response. Currently `1m`, `1h` and `1d` are
|
|
3104
|
+
* supported, default to `1d`.
|
|
3105
|
+
*/
|
|
3106
|
+
bucket_width?: '1m' | '1h' | '1d';
|
|
3107
|
+
/**
|
|
3108
|
+
* End time (Unix seconds) of the query time range, exclusive.
|
|
3109
|
+
*/
|
|
3110
|
+
end_time?: number;
|
|
3111
|
+
/**
|
|
3112
|
+
* Group the usage data by the specified fields. Support fields include
|
|
3113
|
+
* `project_id`, `user_id`, `api_key_id`, `model` or any combination of them.
|
|
3114
|
+
*/
|
|
3115
|
+
group_by?: Array<'project_id' | 'user_id' | 'api_key_id' | 'model'>;
|
|
3116
|
+
/**
|
|
3117
|
+
* Specifies the number of buckets to return.
|
|
3118
|
+
*
|
|
3119
|
+
* - `bucket_width=1d`: default: 7, max: 31
|
|
3120
|
+
* - `bucket_width=1h`: default: 24, max: 168
|
|
3121
|
+
* - `bucket_width=1m`: default: 60, max: 1440
|
|
3122
|
+
*/
|
|
3123
|
+
limit?: number;
|
|
3124
|
+
/**
|
|
3125
|
+
* Return only usage for these models.
|
|
3126
|
+
*/
|
|
3127
|
+
models?: Array<string>;
|
|
3128
|
+
/**
|
|
3129
|
+
* A cursor for use in pagination. Corresponding to the `next_page` field from the
|
|
3130
|
+
* previous response.
|
|
3131
|
+
*/
|
|
3132
|
+
page?: string;
|
|
3133
|
+
/**
|
|
3134
|
+
* Return only usage for these projects.
|
|
3135
|
+
*/
|
|
3136
|
+
project_ids?: Array<string>;
|
|
3137
|
+
/**
|
|
3138
|
+
* Return only usage for these users.
|
|
3139
|
+
*/
|
|
3140
|
+
user_ids?: Array<string>;
|
|
3141
|
+
}
|
|
3142
|
+
export interface UsageAudioTranscriptionsParams {
|
|
3143
|
+
/**
|
|
3144
|
+
* Start time (Unix seconds) of the query time range, inclusive.
|
|
3145
|
+
*/
|
|
3146
|
+
start_time: number;
|
|
3147
|
+
/**
|
|
3148
|
+
* Return only usage for these API keys.
|
|
3149
|
+
*/
|
|
3150
|
+
api_key_ids?: Array<string>;
|
|
3151
|
+
/**
|
|
3152
|
+
* Width of each time bucket in response. Currently `1m`, `1h` and `1d` are
|
|
3153
|
+
* supported, default to `1d`.
|
|
3154
|
+
*/
|
|
3155
|
+
bucket_width?: '1m' | '1h' | '1d';
|
|
3156
|
+
/**
|
|
3157
|
+
* End time (Unix seconds) of the query time range, exclusive.
|
|
3158
|
+
*/
|
|
3159
|
+
end_time?: number;
|
|
3160
|
+
/**
|
|
3161
|
+
* Group the usage data by the specified fields. Support fields include
|
|
3162
|
+
* `project_id`, `user_id`, `api_key_id`, `model` or any combination of them.
|
|
3163
|
+
*/
|
|
3164
|
+
group_by?: Array<'project_id' | 'user_id' | 'api_key_id' | 'model'>;
|
|
3165
|
+
/**
|
|
3166
|
+
* Specifies the number of buckets to return.
|
|
3167
|
+
*
|
|
3168
|
+
* - `bucket_width=1d`: default: 7, max: 31
|
|
3169
|
+
* - `bucket_width=1h`: default: 24, max: 168
|
|
3170
|
+
* - `bucket_width=1m`: default: 60, max: 1440
|
|
3171
|
+
*/
|
|
3172
|
+
limit?: number;
|
|
3173
|
+
/**
|
|
3174
|
+
* Return only usage for these models.
|
|
3175
|
+
*/
|
|
3176
|
+
models?: Array<string>;
|
|
3177
|
+
/**
|
|
3178
|
+
* A cursor for use in pagination. Corresponding to the `next_page` field from the
|
|
3179
|
+
* previous response.
|
|
3180
|
+
*/
|
|
3181
|
+
page?: string;
|
|
3182
|
+
/**
|
|
3183
|
+
* Return only usage for these projects.
|
|
3184
|
+
*/
|
|
3185
|
+
project_ids?: Array<string>;
|
|
3186
|
+
/**
|
|
3187
|
+
* Return only usage for these users.
|
|
3188
|
+
*/
|
|
3189
|
+
user_ids?: Array<string>;
|
|
3190
|
+
}
|
|
3191
|
+
export interface UsageCodeInterpreterSessionsParams {
|
|
3192
|
+
/**
|
|
3193
|
+
* Start time (Unix seconds) of the query time range, inclusive.
|
|
3194
|
+
*/
|
|
3195
|
+
start_time: number;
|
|
3196
|
+
/**
|
|
3197
|
+
* Width of each time bucket in response. Currently `1m`, `1h` and `1d` are
|
|
3198
|
+
* supported, default to `1d`.
|
|
3199
|
+
*/
|
|
3200
|
+
bucket_width?: '1m' | '1h' | '1d';
|
|
3201
|
+
/**
|
|
3202
|
+
* End time (Unix seconds) of the query time range, exclusive.
|
|
3203
|
+
*/
|
|
3204
|
+
end_time?: number;
|
|
3205
|
+
/**
|
|
3206
|
+
* Group the usage data by the specified fields. Support fields include
|
|
3207
|
+
* `project_id`.
|
|
3208
|
+
*/
|
|
3209
|
+
group_by?: Array<'project_id'>;
|
|
3210
|
+
/**
|
|
3211
|
+
* Specifies the number of buckets to return.
|
|
3212
|
+
*
|
|
3213
|
+
* - `bucket_width=1d`: default: 7, max: 31
|
|
3214
|
+
* - `bucket_width=1h`: default: 24, max: 168
|
|
3215
|
+
* - `bucket_width=1m`: default: 60, max: 1440
|
|
3216
|
+
*/
|
|
3217
|
+
limit?: number;
|
|
3218
|
+
/**
|
|
3219
|
+
* A cursor for use in pagination. Corresponding to the `next_page` field from the
|
|
3220
|
+
* previous response.
|
|
3221
|
+
*/
|
|
3222
|
+
page?: string;
|
|
3223
|
+
/**
|
|
3224
|
+
* Return only usage for these projects.
|
|
3225
|
+
*/
|
|
3226
|
+
project_ids?: Array<string>;
|
|
3227
|
+
}
|
|
3228
|
+
export interface UsageCompletionsParams {
|
|
3229
|
+
/**
|
|
3230
|
+
* Start time (Unix seconds) of the query time range, inclusive.
|
|
3231
|
+
*/
|
|
3232
|
+
start_time: number;
|
|
3233
|
+
/**
|
|
3234
|
+
* Return only usage for these API keys.
|
|
3235
|
+
*/
|
|
3236
|
+
api_key_ids?: Array<string>;
|
|
3237
|
+
/**
|
|
3238
|
+
* If `true`, return batch jobs only. If `false`, return non-batch jobs only. By
|
|
3239
|
+
* default, return both.
|
|
3240
|
+
*/
|
|
3241
|
+
batch?: boolean;
|
|
3242
|
+
/**
|
|
3243
|
+
* Width of each time bucket in response. Currently `1m`, `1h` and `1d` are
|
|
3244
|
+
* supported, default to `1d`.
|
|
3245
|
+
*/
|
|
3246
|
+
bucket_width?: '1m' | '1h' | '1d';
|
|
3247
|
+
/**
|
|
3248
|
+
* End time (Unix seconds) of the query time range, exclusive.
|
|
3249
|
+
*/
|
|
3250
|
+
end_time?: number;
|
|
3251
|
+
/**
|
|
3252
|
+
* Group the usage data by the specified fields. Support fields include
|
|
3253
|
+
* `project_id`, `user_id`, `api_key_id`, `model`, `batch`, `service_tier` or any
|
|
3254
|
+
* combination of them.
|
|
3255
|
+
*/
|
|
3256
|
+
group_by?: Array<'project_id' | 'user_id' | 'api_key_id' | 'model' | 'batch' | 'service_tier'>;
|
|
3257
|
+
/**
|
|
3258
|
+
* Specifies the number of buckets to return.
|
|
3259
|
+
*
|
|
3260
|
+
* - `bucket_width=1d`: default: 7, max: 31
|
|
3261
|
+
* - `bucket_width=1h`: default: 24, max: 168
|
|
3262
|
+
* - `bucket_width=1m`: default: 60, max: 1440
|
|
3263
|
+
*/
|
|
3264
|
+
limit?: number;
|
|
3265
|
+
/**
|
|
3266
|
+
* Return only usage for these models.
|
|
3267
|
+
*/
|
|
3268
|
+
models?: Array<string>;
|
|
3269
|
+
/**
|
|
3270
|
+
* A cursor for use in pagination. Corresponding to the `next_page` field from the
|
|
3271
|
+
* previous response.
|
|
3272
|
+
*/
|
|
3273
|
+
page?: string;
|
|
3274
|
+
/**
|
|
3275
|
+
* Return only usage for these projects.
|
|
3276
|
+
*/
|
|
3277
|
+
project_ids?: Array<string>;
|
|
3278
|
+
/**
|
|
3279
|
+
* Return only usage for these users.
|
|
3280
|
+
*/
|
|
3281
|
+
user_ids?: Array<string>;
|
|
3282
|
+
}
|
|
3283
|
+
export interface UsageCostsParams {
|
|
3284
|
+
/**
|
|
3285
|
+
* Start time (Unix seconds) of the query time range, inclusive.
|
|
3286
|
+
*/
|
|
3287
|
+
start_time: number;
|
|
3288
|
+
/**
|
|
3289
|
+
* Return only costs for these API keys.
|
|
3290
|
+
*/
|
|
3291
|
+
api_key_ids?: Array<string>;
|
|
3292
|
+
/**
|
|
3293
|
+
* Width of each time bucket in response. Currently only `1d` is supported, default
|
|
3294
|
+
* to `1d`.
|
|
3295
|
+
*/
|
|
3296
|
+
bucket_width?: '1d';
|
|
3297
|
+
/**
|
|
3298
|
+
* End time (Unix seconds) of the query time range, exclusive.
|
|
3299
|
+
*/
|
|
3300
|
+
end_time?: number;
|
|
3301
|
+
/**
|
|
3302
|
+
* Group the costs by the specified fields. Support fields include `project_id`,
|
|
3303
|
+
* `line_item`, `api_key_id` and any combination of them.
|
|
3304
|
+
*/
|
|
3305
|
+
group_by?: Array<'project_id' | 'line_item' | 'api_key_id'>;
|
|
3306
|
+
/**
|
|
3307
|
+
* A limit on the number of buckets to be returned. Limit can range between 1 and
|
|
3308
|
+
* 180, and the default is 7.
|
|
3309
|
+
*/
|
|
3310
|
+
limit?: number;
|
|
3311
|
+
/**
|
|
3312
|
+
* A cursor for use in pagination. Corresponding to the `next_page` field from the
|
|
3313
|
+
* previous response.
|
|
3314
|
+
*/
|
|
3315
|
+
page?: string;
|
|
3316
|
+
/**
|
|
3317
|
+
* Return only costs for these projects.
|
|
3318
|
+
*/
|
|
3319
|
+
project_ids?: Array<string>;
|
|
3320
|
+
}
|
|
3321
|
+
export interface UsageEmbeddingsParams {
|
|
3322
|
+
/**
|
|
3323
|
+
* Start time (Unix seconds) of the query time range, inclusive.
|
|
3324
|
+
*/
|
|
3325
|
+
start_time: number;
|
|
3326
|
+
/**
|
|
3327
|
+
* Return only usage for these API keys.
|
|
3328
|
+
*/
|
|
3329
|
+
api_key_ids?: Array<string>;
|
|
3330
|
+
/**
|
|
3331
|
+
* Width of each time bucket in response. Currently `1m`, `1h` and `1d` are
|
|
3332
|
+
* supported, default to `1d`.
|
|
3333
|
+
*/
|
|
3334
|
+
bucket_width?: '1m' | '1h' | '1d';
|
|
3335
|
+
/**
|
|
3336
|
+
* End time (Unix seconds) of the query time range, exclusive.
|
|
3337
|
+
*/
|
|
3338
|
+
end_time?: number;
|
|
3339
|
+
/**
|
|
3340
|
+
* Group the usage data by the specified fields. Support fields include
|
|
3341
|
+
* `project_id`, `user_id`, `api_key_id`, `model` or any combination of them.
|
|
3342
|
+
*/
|
|
3343
|
+
group_by?: Array<'project_id' | 'user_id' | 'api_key_id' | 'model'>;
|
|
3344
|
+
/**
|
|
3345
|
+
* Specifies the number of buckets to return.
|
|
3346
|
+
*
|
|
3347
|
+
* - `bucket_width=1d`: default: 7, max: 31
|
|
3348
|
+
* - `bucket_width=1h`: default: 24, max: 168
|
|
3349
|
+
* - `bucket_width=1m`: default: 60, max: 1440
|
|
3350
|
+
*/
|
|
3351
|
+
limit?: number;
|
|
3352
|
+
/**
|
|
3353
|
+
* Return only usage for these models.
|
|
3354
|
+
*/
|
|
3355
|
+
models?: Array<string>;
|
|
3356
|
+
/**
|
|
3357
|
+
* A cursor for use in pagination. Corresponding to the `next_page` field from the
|
|
3358
|
+
* previous response.
|
|
3359
|
+
*/
|
|
3360
|
+
page?: string;
|
|
3361
|
+
/**
|
|
3362
|
+
* Return only usage for these projects.
|
|
3363
|
+
*/
|
|
3364
|
+
project_ids?: Array<string>;
|
|
3365
|
+
/**
|
|
3366
|
+
* Return only usage for these users.
|
|
3367
|
+
*/
|
|
3368
|
+
user_ids?: Array<string>;
|
|
3369
|
+
}
|
|
3370
|
+
export interface UsageImagesParams {
|
|
3371
|
+
/**
|
|
3372
|
+
* Start time (Unix seconds) of the query time range, inclusive.
|
|
3373
|
+
*/
|
|
3374
|
+
start_time: number;
|
|
3375
|
+
/**
|
|
3376
|
+
* Return only usage for these API keys.
|
|
3377
|
+
*/
|
|
3378
|
+
api_key_ids?: Array<string>;
|
|
3379
|
+
/**
|
|
3380
|
+
* Width of each time bucket in response. Currently `1m`, `1h` and `1d` are
|
|
3381
|
+
* supported, default to `1d`.
|
|
3382
|
+
*/
|
|
3383
|
+
bucket_width?: '1m' | '1h' | '1d';
|
|
3384
|
+
/**
|
|
3385
|
+
* End time (Unix seconds) of the query time range, exclusive.
|
|
3386
|
+
*/
|
|
3387
|
+
end_time?: number;
|
|
3388
|
+
/**
|
|
3389
|
+
* Group the usage data by the specified fields. Support fields include
|
|
3390
|
+
* `project_id`, `user_id`, `api_key_id`, `model`, `size`, `source` or any
|
|
3391
|
+
* combination of them.
|
|
3392
|
+
*/
|
|
3393
|
+
group_by?: Array<'project_id' | 'user_id' | 'api_key_id' | 'model' | 'size' | 'source'>;
|
|
3394
|
+
/**
|
|
3395
|
+
* Specifies the number of buckets to return.
|
|
3396
|
+
*
|
|
3397
|
+
* - `bucket_width=1d`: default: 7, max: 31
|
|
3398
|
+
* - `bucket_width=1h`: default: 24, max: 168
|
|
3399
|
+
* - `bucket_width=1m`: default: 60, max: 1440
|
|
3400
|
+
*/
|
|
3401
|
+
limit?: number;
|
|
3402
|
+
/**
|
|
3403
|
+
* Return only usage for these models.
|
|
3404
|
+
*/
|
|
3405
|
+
models?: Array<string>;
|
|
3406
|
+
/**
|
|
3407
|
+
* A cursor for use in pagination. Corresponding to the `next_page` field from the
|
|
3408
|
+
* previous response.
|
|
3409
|
+
*/
|
|
3410
|
+
page?: string;
|
|
3411
|
+
/**
|
|
3412
|
+
* Return only usage for these projects.
|
|
3413
|
+
*/
|
|
3414
|
+
project_ids?: Array<string>;
|
|
3415
|
+
/**
|
|
3416
|
+
* Return only usages for these image sizes. Possible values are `256x256`,
|
|
3417
|
+
* `512x512`, `1024x1024`, `1792x1792`, `1024x1792` or any combination of them.
|
|
3418
|
+
*/
|
|
3419
|
+
sizes?: Array<'256x256' | '512x512' | '1024x1024' | '1792x1792' | '1024x1792'>;
|
|
3420
|
+
/**
|
|
3421
|
+
* Return only usages for these sources. Possible values are `image.generation`,
|
|
3422
|
+
* `image.edit`, `image.variation` or any combination of them.
|
|
3423
|
+
*/
|
|
3424
|
+
sources?: Array<'image.generation' | 'image.edit' | 'image.variation'>;
|
|
3425
|
+
/**
|
|
3426
|
+
* Return only usage for these users.
|
|
3427
|
+
*/
|
|
3428
|
+
user_ids?: Array<string>;
|
|
3429
|
+
}
|
|
3430
|
+
export interface UsageModerationsParams {
|
|
3431
|
+
/**
|
|
3432
|
+
* Start time (Unix seconds) of the query time range, inclusive.
|
|
3433
|
+
*/
|
|
3434
|
+
start_time: number;
|
|
3435
|
+
/**
|
|
3436
|
+
* Return only usage for these API keys.
|
|
3437
|
+
*/
|
|
3438
|
+
api_key_ids?: Array<string>;
|
|
3439
|
+
/**
|
|
3440
|
+
* Width of each time bucket in response. Currently `1m`, `1h` and `1d` are
|
|
3441
|
+
* supported, default to `1d`.
|
|
3442
|
+
*/
|
|
3443
|
+
bucket_width?: '1m' | '1h' | '1d';
|
|
3444
|
+
/**
|
|
3445
|
+
* End time (Unix seconds) of the query time range, exclusive.
|
|
3446
|
+
*/
|
|
3447
|
+
end_time?: number;
|
|
3448
|
+
/**
|
|
3449
|
+
* Group the usage data by the specified fields. Support fields include
|
|
3450
|
+
* `project_id`, `user_id`, `api_key_id`, `model` or any combination of them.
|
|
3451
|
+
*/
|
|
3452
|
+
group_by?: Array<'project_id' | 'user_id' | 'api_key_id' | 'model'>;
|
|
3453
|
+
/**
|
|
3454
|
+
* Specifies the number of buckets to return.
|
|
3455
|
+
*
|
|
3456
|
+
* - `bucket_width=1d`: default: 7, max: 31
|
|
3457
|
+
* - `bucket_width=1h`: default: 24, max: 168
|
|
3458
|
+
* - `bucket_width=1m`: default: 60, max: 1440
|
|
3459
|
+
*/
|
|
3460
|
+
limit?: number;
|
|
3461
|
+
/**
|
|
3462
|
+
* Return only usage for these models.
|
|
3463
|
+
*/
|
|
3464
|
+
models?: Array<string>;
|
|
3465
|
+
/**
|
|
3466
|
+
* A cursor for use in pagination. Corresponding to the `next_page` field from the
|
|
3467
|
+
* previous response.
|
|
3468
|
+
*/
|
|
3469
|
+
page?: string;
|
|
3470
|
+
/**
|
|
3471
|
+
* Return only usage for these projects.
|
|
3472
|
+
*/
|
|
3473
|
+
project_ids?: Array<string>;
|
|
3474
|
+
/**
|
|
3475
|
+
* Return only usage for these users.
|
|
3476
|
+
*/
|
|
3477
|
+
user_ids?: Array<string>;
|
|
3478
|
+
}
|
|
3479
|
+
export interface UsageVectorStoresParams {
|
|
3480
|
+
/**
|
|
3481
|
+
* Start time (Unix seconds) of the query time range, inclusive.
|
|
3482
|
+
*/
|
|
3483
|
+
start_time: number;
|
|
3484
|
+
/**
|
|
3485
|
+
* Width of each time bucket in response. Currently `1m`, `1h` and `1d` are
|
|
3486
|
+
* supported, default to `1d`.
|
|
3487
|
+
*/
|
|
3488
|
+
bucket_width?: '1m' | '1h' | '1d';
|
|
3489
|
+
/**
|
|
3490
|
+
* End time (Unix seconds) of the query time range, exclusive.
|
|
3491
|
+
*/
|
|
3492
|
+
end_time?: number;
|
|
3493
|
+
/**
|
|
3494
|
+
* Group the usage data by the specified fields. Support fields include
|
|
3495
|
+
* `project_id`.
|
|
3496
|
+
*/
|
|
3497
|
+
group_by?: Array<'project_id'>;
|
|
3498
|
+
/**
|
|
3499
|
+
* Specifies the number of buckets to return.
|
|
3500
|
+
*
|
|
3501
|
+
* - `bucket_width=1d`: default: 7, max: 31
|
|
3502
|
+
* - `bucket_width=1h`: default: 24, max: 168
|
|
3503
|
+
* - `bucket_width=1m`: default: 60, max: 1440
|
|
3504
|
+
*/
|
|
3505
|
+
limit?: number;
|
|
3506
|
+
/**
|
|
3507
|
+
* A cursor for use in pagination. Corresponding to the `next_page` field from the
|
|
3508
|
+
* previous response.
|
|
3509
|
+
*/
|
|
3510
|
+
page?: string;
|
|
3511
|
+
/**
|
|
3512
|
+
* Return only usage for these projects.
|
|
3513
|
+
*/
|
|
3514
|
+
project_ids?: Array<string>;
|
|
3515
|
+
}
|
|
3516
|
+
export declare namespace Usage {
|
|
3517
|
+
export { type UsageAudioSpeechesResponse as UsageAudioSpeechesResponse, type UsageAudioTranscriptionsResponse as UsageAudioTranscriptionsResponse, type UsageCodeInterpreterSessionsResponse as UsageCodeInterpreterSessionsResponse, type UsageCompletionsResponse as UsageCompletionsResponse, type UsageCostsResponse as UsageCostsResponse, type UsageEmbeddingsResponse as UsageEmbeddingsResponse, type UsageImagesResponse as UsageImagesResponse, type UsageModerationsResponse as UsageModerationsResponse, type UsageVectorStoresResponse as UsageVectorStoresResponse, type UsageAudioSpeechesParams as UsageAudioSpeechesParams, type UsageAudioTranscriptionsParams as UsageAudioTranscriptionsParams, type UsageCodeInterpreterSessionsParams as UsageCodeInterpreterSessionsParams, type UsageCompletionsParams as UsageCompletionsParams, type UsageCostsParams as UsageCostsParams, type UsageEmbeddingsParams as UsageEmbeddingsParams, type UsageImagesParams as UsageImagesParams, type UsageModerationsParams as UsageModerationsParams, type UsageVectorStoresParams as UsageVectorStoresParams, };
|
|
3518
|
+
}
|
|
3519
|
+
//# sourceMappingURL=usage.d.ts.map
|