openai 6.35.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 +25 -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/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/package.json +1 -1
- 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.map +1 -1
- package/resources/audio/speech.d.ts.map +1 -1
- package/resources/audio/speech.js +1 -0
- package/resources/audio/speech.js.map +1 -1
- package/resources/audio/speech.mjs +1 -0
- 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.map +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.map +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/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/responses.d.mts.map +1 -1
- 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.map +1 -1
- package/resources/responses/ws-base.d.ts.map +1 -1
- package/resources/responses/ws-base.js +3 -1
- package/resources/responses/ws-base.js.map +1 -1
- package/resources/responses/ws-base.mjs +3 -1
- package/resources/responses/ws-base.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/pagination.ts +62 -0
- package/src/internal/request-options.ts +1 -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 +1 -0
- 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 +24 -7
- package/src/resources/chat/completions/messages.ts +1 -1
- package/src/resources/completions.ts +6 -3
- 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/input-items.ts +1 -1
- package/src/resources/responses/input-tokens.ts +5 -1
- package/src/resources/responses/responses.ts +13 -5
- package/src/resources/responses/ws-base.ts +3 -1
- 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,458 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../../core/resource';
|
|
4
|
+
import { APIPromise } from '../../../core/api-promise';
|
|
5
|
+
import {
|
|
6
|
+
ConversationCursorPage,
|
|
7
|
+
type ConversationCursorPageParams,
|
|
8
|
+
Page,
|
|
9
|
+
PagePromise,
|
|
10
|
+
} from '../../../core/pagination';
|
|
11
|
+
import { RequestOptions } from '../../../internal/request-options';
|
|
12
|
+
import { path } from '../../../internal/utils/path';
|
|
13
|
+
|
|
14
|
+
export class Certificates extends APIResource {
|
|
15
|
+
/**
|
|
16
|
+
* Upload a certificate to the organization. This does **not** automatically
|
|
17
|
+
* activate the certificate.
|
|
18
|
+
*
|
|
19
|
+
* Organizations can upload up to 50 certificates.
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* ```ts
|
|
23
|
+
* const certificate =
|
|
24
|
+
* await client.admin.organization.certificates.create({
|
|
25
|
+
* certificate: 'certificate',
|
|
26
|
+
* });
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
create(body: CertificateCreateParams, options?: RequestOptions): APIPromise<Certificate> {
|
|
30
|
+
return this._client.post('/organization/certificates', {
|
|
31
|
+
body,
|
|
32
|
+
...options,
|
|
33
|
+
__security: { adminAPIKeyAuth: true },
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Get a certificate that has been uploaded to the organization.
|
|
39
|
+
*
|
|
40
|
+
* You can get a certificate regardless of whether it is active or not.
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* ```ts
|
|
44
|
+
* const certificate =
|
|
45
|
+
* await client.admin.organization.certificates.retrieve(
|
|
46
|
+
* 'certificate_id',
|
|
47
|
+
* );
|
|
48
|
+
* ```
|
|
49
|
+
*/
|
|
50
|
+
retrieve(
|
|
51
|
+
certificateID: string,
|
|
52
|
+
query: CertificateRetrieveParams | null | undefined = {},
|
|
53
|
+
options?: RequestOptions,
|
|
54
|
+
): APIPromise<Certificate> {
|
|
55
|
+
return this._client.get(path`/organization/certificates/${certificateID}`, {
|
|
56
|
+
query,
|
|
57
|
+
...options,
|
|
58
|
+
__security: { adminAPIKeyAuth: true },
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Modify a certificate. Note that only the name can be modified.
|
|
64
|
+
*
|
|
65
|
+
* @example
|
|
66
|
+
* ```ts
|
|
67
|
+
* const certificate =
|
|
68
|
+
* await client.admin.organization.certificates.update(
|
|
69
|
+
* 'certificate_id',
|
|
70
|
+
* );
|
|
71
|
+
* ```
|
|
72
|
+
*/
|
|
73
|
+
update(
|
|
74
|
+
certificateID: string,
|
|
75
|
+
body: CertificateUpdateParams,
|
|
76
|
+
options?: RequestOptions,
|
|
77
|
+
): APIPromise<Certificate> {
|
|
78
|
+
return this._client.post(path`/organization/certificates/${certificateID}`, {
|
|
79
|
+
body,
|
|
80
|
+
...options,
|
|
81
|
+
__security: { adminAPIKeyAuth: true },
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* List uploaded certificates for this organization.
|
|
87
|
+
*
|
|
88
|
+
* @example
|
|
89
|
+
* ```ts
|
|
90
|
+
* // Automatically fetches more pages as needed.
|
|
91
|
+
* for await (const certificateListResponse of client.admin.organization.certificates.list()) {
|
|
92
|
+
* // ...
|
|
93
|
+
* }
|
|
94
|
+
* ```
|
|
95
|
+
*/
|
|
96
|
+
list(
|
|
97
|
+
query: CertificateListParams | null | undefined = {},
|
|
98
|
+
options?: RequestOptions,
|
|
99
|
+
): PagePromise<CertificateListResponsesPage, CertificateListResponse> {
|
|
100
|
+
return this._client.getAPIList(
|
|
101
|
+
'/organization/certificates',
|
|
102
|
+
ConversationCursorPage<CertificateListResponse>,
|
|
103
|
+
{ query, ...options, __security: { adminAPIKeyAuth: true } },
|
|
104
|
+
);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* Delete a certificate from the organization.
|
|
109
|
+
*
|
|
110
|
+
* The certificate must be inactive for the organization and all projects.
|
|
111
|
+
*
|
|
112
|
+
* @example
|
|
113
|
+
* ```ts
|
|
114
|
+
* const certificate =
|
|
115
|
+
* await client.admin.organization.certificates.delete(
|
|
116
|
+
* 'certificate_id',
|
|
117
|
+
* );
|
|
118
|
+
* ```
|
|
119
|
+
*/
|
|
120
|
+
delete(certificateID: string, options?: RequestOptions): APIPromise<CertificateDeleteResponse> {
|
|
121
|
+
return this._client.delete(path`/organization/certificates/${certificateID}`, {
|
|
122
|
+
...options,
|
|
123
|
+
__security: { adminAPIKeyAuth: true },
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* Activate certificates at the organization level.
|
|
129
|
+
*
|
|
130
|
+
* You can atomically and idempotently activate up to 10 certificates at a time.
|
|
131
|
+
*
|
|
132
|
+
* @example
|
|
133
|
+
* ```ts
|
|
134
|
+
* // Automatically fetches more pages as needed.
|
|
135
|
+
* for await (const certificateActivateResponse of client.admin.organization.certificates.activate(
|
|
136
|
+
* { certificate_ids: ['cert_abc'] },
|
|
137
|
+
* )) {
|
|
138
|
+
* // ...
|
|
139
|
+
* }
|
|
140
|
+
* ```
|
|
141
|
+
*/
|
|
142
|
+
activate(
|
|
143
|
+
body: CertificateActivateParams,
|
|
144
|
+
options?: RequestOptions,
|
|
145
|
+
): PagePromise<CertificateActivateResponsesPage, CertificateActivateResponse> {
|
|
146
|
+
return this._client.getAPIList('/organization/certificates/activate', Page<CertificateActivateResponse>, {
|
|
147
|
+
body,
|
|
148
|
+
method: 'post',
|
|
149
|
+
...options,
|
|
150
|
+
__security: { adminAPIKeyAuth: true },
|
|
151
|
+
});
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* Deactivate certificates at the organization level.
|
|
156
|
+
*
|
|
157
|
+
* You can atomically and idempotently deactivate up to 10 certificates at a time.
|
|
158
|
+
*
|
|
159
|
+
* @example
|
|
160
|
+
* ```ts
|
|
161
|
+
* // Automatically fetches more pages as needed.
|
|
162
|
+
* for await (const certificateDeactivateResponse of client.admin.organization.certificates.deactivate(
|
|
163
|
+
* { certificate_ids: ['cert_abc'] },
|
|
164
|
+
* )) {
|
|
165
|
+
* // ...
|
|
166
|
+
* }
|
|
167
|
+
* ```
|
|
168
|
+
*/
|
|
169
|
+
deactivate(
|
|
170
|
+
body: CertificateDeactivateParams,
|
|
171
|
+
options?: RequestOptions,
|
|
172
|
+
): PagePromise<CertificateDeactivateResponsesPage, CertificateDeactivateResponse> {
|
|
173
|
+
return this._client.getAPIList(
|
|
174
|
+
'/organization/certificates/deactivate',
|
|
175
|
+
Page<CertificateDeactivateResponse>,
|
|
176
|
+
{ body, method: 'post', ...options, __security: { adminAPIKeyAuth: true } },
|
|
177
|
+
);
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
export type CertificateListResponsesPage = ConversationCursorPage<CertificateListResponse>;
|
|
182
|
+
|
|
183
|
+
// Note: no pagination actually occurs yet, this is for forwards-compatibility.
|
|
184
|
+
export type CertificateActivateResponsesPage = Page<CertificateActivateResponse>;
|
|
185
|
+
|
|
186
|
+
// Note: no pagination actually occurs yet, this is for forwards-compatibility.
|
|
187
|
+
export type CertificateDeactivateResponsesPage = Page<CertificateDeactivateResponse>;
|
|
188
|
+
|
|
189
|
+
/**
|
|
190
|
+
* Represents an individual `certificate` uploaded to the organization.
|
|
191
|
+
*/
|
|
192
|
+
export interface Certificate {
|
|
193
|
+
/**
|
|
194
|
+
* The identifier, which can be referenced in API endpoints
|
|
195
|
+
*/
|
|
196
|
+
id: string;
|
|
197
|
+
|
|
198
|
+
certificate_details: Certificate.CertificateDetails;
|
|
199
|
+
|
|
200
|
+
/**
|
|
201
|
+
* The Unix timestamp (in seconds) of when the certificate was uploaded.
|
|
202
|
+
*/
|
|
203
|
+
created_at: number;
|
|
204
|
+
|
|
205
|
+
/**
|
|
206
|
+
* The name of the certificate.
|
|
207
|
+
*/
|
|
208
|
+
name: string | null;
|
|
209
|
+
|
|
210
|
+
/**
|
|
211
|
+
* The object type.
|
|
212
|
+
*
|
|
213
|
+
* - If creating, updating, or getting a specific certificate, the object type is
|
|
214
|
+
* `certificate`.
|
|
215
|
+
* - If listing, activating, or deactivating certificates for the organization, the
|
|
216
|
+
* object type is `organization.certificate`.
|
|
217
|
+
* - If listing, activating, or deactivating certificates for a project, the object
|
|
218
|
+
* type is `organization.project.certificate`.
|
|
219
|
+
*/
|
|
220
|
+
object: 'certificate' | 'organization.certificate' | 'organization.project.certificate';
|
|
221
|
+
|
|
222
|
+
/**
|
|
223
|
+
* Whether the certificate is currently active at the specified scope. Not returned
|
|
224
|
+
* when getting details for a specific certificate.
|
|
225
|
+
*/
|
|
226
|
+
active?: boolean;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
export namespace Certificate {
|
|
230
|
+
export interface CertificateDetails {
|
|
231
|
+
/**
|
|
232
|
+
* The content of the certificate in PEM format.
|
|
233
|
+
*/
|
|
234
|
+
content?: string;
|
|
235
|
+
|
|
236
|
+
/**
|
|
237
|
+
* The Unix timestamp (in seconds) of when the certificate expires.
|
|
238
|
+
*/
|
|
239
|
+
expires_at?: number;
|
|
240
|
+
|
|
241
|
+
/**
|
|
242
|
+
* The Unix timestamp (in seconds) of when the certificate becomes valid.
|
|
243
|
+
*/
|
|
244
|
+
valid_at?: number;
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
/**
|
|
249
|
+
* Represents an individual certificate configured at the organization level.
|
|
250
|
+
*/
|
|
251
|
+
export interface CertificateListResponse {
|
|
252
|
+
/**
|
|
253
|
+
* The identifier, which can be referenced in API endpoints
|
|
254
|
+
*/
|
|
255
|
+
id: string;
|
|
256
|
+
|
|
257
|
+
/**
|
|
258
|
+
* Whether the certificate is currently active at the organization level.
|
|
259
|
+
*/
|
|
260
|
+
active: boolean;
|
|
261
|
+
|
|
262
|
+
certificate_details: CertificateListResponse.CertificateDetails;
|
|
263
|
+
|
|
264
|
+
/**
|
|
265
|
+
* The Unix timestamp (in seconds) of when the certificate was uploaded.
|
|
266
|
+
*/
|
|
267
|
+
created_at: number;
|
|
268
|
+
|
|
269
|
+
/**
|
|
270
|
+
* The name of the certificate.
|
|
271
|
+
*/
|
|
272
|
+
name: string | null;
|
|
273
|
+
|
|
274
|
+
/**
|
|
275
|
+
* The object type, which is always `organization.certificate`.
|
|
276
|
+
*/
|
|
277
|
+
object: 'organization.certificate';
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
export namespace CertificateListResponse {
|
|
281
|
+
export interface CertificateDetails {
|
|
282
|
+
/**
|
|
283
|
+
* The Unix timestamp (in seconds) of when the certificate expires.
|
|
284
|
+
*/
|
|
285
|
+
expires_at?: number;
|
|
286
|
+
|
|
287
|
+
/**
|
|
288
|
+
* The Unix timestamp (in seconds) of when the certificate becomes valid.
|
|
289
|
+
*/
|
|
290
|
+
valid_at?: number;
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
export interface CertificateDeleteResponse {
|
|
295
|
+
/**
|
|
296
|
+
* The ID of the certificate that was deleted.
|
|
297
|
+
*/
|
|
298
|
+
id: string;
|
|
299
|
+
|
|
300
|
+
/**
|
|
301
|
+
* The object type, must be `certificate.deleted`.
|
|
302
|
+
*/
|
|
303
|
+
object: 'certificate.deleted';
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
/**
|
|
307
|
+
* Represents an individual certificate configured at the organization level.
|
|
308
|
+
*/
|
|
309
|
+
export interface CertificateActivateResponse {
|
|
310
|
+
/**
|
|
311
|
+
* The identifier, which can be referenced in API endpoints
|
|
312
|
+
*/
|
|
313
|
+
id: string;
|
|
314
|
+
|
|
315
|
+
/**
|
|
316
|
+
* Whether the certificate is currently active at the organization level.
|
|
317
|
+
*/
|
|
318
|
+
active: boolean;
|
|
319
|
+
|
|
320
|
+
certificate_details: CertificateActivateResponse.CertificateDetails;
|
|
321
|
+
|
|
322
|
+
/**
|
|
323
|
+
* The Unix timestamp (in seconds) of when the certificate was uploaded.
|
|
324
|
+
*/
|
|
325
|
+
created_at: number;
|
|
326
|
+
|
|
327
|
+
/**
|
|
328
|
+
* The name of the certificate.
|
|
329
|
+
*/
|
|
330
|
+
name: string | null;
|
|
331
|
+
|
|
332
|
+
/**
|
|
333
|
+
* The object type, which is always `organization.certificate`.
|
|
334
|
+
*/
|
|
335
|
+
object: 'organization.certificate';
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
export namespace CertificateActivateResponse {
|
|
339
|
+
export interface CertificateDetails {
|
|
340
|
+
/**
|
|
341
|
+
* The Unix timestamp (in seconds) of when the certificate expires.
|
|
342
|
+
*/
|
|
343
|
+
expires_at?: number;
|
|
344
|
+
|
|
345
|
+
/**
|
|
346
|
+
* The Unix timestamp (in seconds) of when the certificate becomes valid.
|
|
347
|
+
*/
|
|
348
|
+
valid_at?: number;
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
/**
|
|
353
|
+
* Represents an individual certificate configured at the organization level.
|
|
354
|
+
*/
|
|
355
|
+
export interface CertificateDeactivateResponse {
|
|
356
|
+
/**
|
|
357
|
+
* The identifier, which can be referenced in API endpoints
|
|
358
|
+
*/
|
|
359
|
+
id: string;
|
|
360
|
+
|
|
361
|
+
/**
|
|
362
|
+
* Whether the certificate is currently active at the organization level.
|
|
363
|
+
*/
|
|
364
|
+
active: boolean;
|
|
365
|
+
|
|
366
|
+
certificate_details: CertificateDeactivateResponse.CertificateDetails;
|
|
367
|
+
|
|
368
|
+
/**
|
|
369
|
+
* The Unix timestamp (in seconds) of when the certificate was uploaded.
|
|
370
|
+
*/
|
|
371
|
+
created_at: number;
|
|
372
|
+
|
|
373
|
+
/**
|
|
374
|
+
* The name of the certificate.
|
|
375
|
+
*/
|
|
376
|
+
name: string | null;
|
|
377
|
+
|
|
378
|
+
/**
|
|
379
|
+
* The object type, which is always `organization.certificate`.
|
|
380
|
+
*/
|
|
381
|
+
object: 'organization.certificate';
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
export namespace CertificateDeactivateResponse {
|
|
385
|
+
export interface CertificateDetails {
|
|
386
|
+
/**
|
|
387
|
+
* The Unix timestamp (in seconds) of when the certificate expires.
|
|
388
|
+
*/
|
|
389
|
+
expires_at?: number;
|
|
390
|
+
|
|
391
|
+
/**
|
|
392
|
+
* The Unix timestamp (in seconds) of when the certificate becomes valid.
|
|
393
|
+
*/
|
|
394
|
+
valid_at?: number;
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
export interface CertificateCreateParams {
|
|
399
|
+
/**
|
|
400
|
+
* The certificate content in PEM format
|
|
401
|
+
*/
|
|
402
|
+
certificate: string;
|
|
403
|
+
|
|
404
|
+
/**
|
|
405
|
+
* An optional name for the certificate
|
|
406
|
+
*/
|
|
407
|
+
name?: string;
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
export interface CertificateRetrieveParams {
|
|
411
|
+
/**
|
|
412
|
+
* A list of additional fields to include in the response. Currently the only
|
|
413
|
+
* supported value is `content` to fetch the PEM content of the certificate.
|
|
414
|
+
*/
|
|
415
|
+
include?: Array<'content'>;
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
export interface CertificateUpdateParams {
|
|
419
|
+
/**
|
|
420
|
+
* The updated name for the certificate
|
|
421
|
+
*/
|
|
422
|
+
name?: string;
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
export interface CertificateListParams extends ConversationCursorPageParams {
|
|
426
|
+
/**
|
|
427
|
+
* Sort order by the `created_at` timestamp of the objects. `asc` for ascending
|
|
428
|
+
* order and `desc` for descending order.
|
|
429
|
+
*/
|
|
430
|
+
order?: 'asc' | 'desc';
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
export interface CertificateActivateParams {
|
|
434
|
+
certificate_ids: Array<string>;
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
export interface CertificateDeactivateParams {
|
|
438
|
+
certificate_ids: Array<string>;
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
export declare namespace Certificates {
|
|
442
|
+
export {
|
|
443
|
+
type Certificate as Certificate,
|
|
444
|
+
type CertificateListResponse as CertificateListResponse,
|
|
445
|
+
type CertificateDeleteResponse as CertificateDeleteResponse,
|
|
446
|
+
type CertificateActivateResponse as CertificateActivateResponse,
|
|
447
|
+
type CertificateDeactivateResponse as CertificateDeactivateResponse,
|
|
448
|
+
type CertificateListResponsesPage as CertificateListResponsesPage,
|
|
449
|
+
type CertificateActivateResponsesPage as CertificateActivateResponsesPage,
|
|
450
|
+
type CertificateDeactivateResponsesPage as CertificateDeactivateResponsesPage,
|
|
451
|
+
type CertificateCreateParams as CertificateCreateParams,
|
|
452
|
+
type CertificateRetrieveParams as CertificateRetrieveParams,
|
|
453
|
+
type CertificateUpdateParams as CertificateUpdateParams,
|
|
454
|
+
type CertificateListParams as CertificateListParams,
|
|
455
|
+
type CertificateActivateParams as CertificateActivateParams,
|
|
456
|
+
type CertificateDeactivateParams as CertificateDeactivateParams,
|
|
457
|
+
};
|
|
458
|
+
}
|
|
@@ -0,0 +1,251 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../../../core/resource';
|
|
4
|
+
import * as RolesAPI from './roles';
|
|
5
|
+
import {
|
|
6
|
+
RoleCreateParams,
|
|
7
|
+
RoleCreateResponse,
|
|
8
|
+
RoleDeleteParams,
|
|
9
|
+
RoleDeleteResponse,
|
|
10
|
+
RoleListParams,
|
|
11
|
+
RoleListResponse,
|
|
12
|
+
RoleListResponsesPage,
|
|
13
|
+
Roles,
|
|
14
|
+
} from './roles';
|
|
15
|
+
import * as UsersAPI from './users';
|
|
16
|
+
import {
|
|
17
|
+
OrganizationGroupUser,
|
|
18
|
+
OrganizationGroupUsersPage,
|
|
19
|
+
UserCreateParams,
|
|
20
|
+
UserCreateResponse,
|
|
21
|
+
UserDeleteParams,
|
|
22
|
+
UserDeleteResponse,
|
|
23
|
+
UserListParams,
|
|
24
|
+
Users,
|
|
25
|
+
} from './users';
|
|
26
|
+
import { APIPromise } from '../../../../core/api-promise';
|
|
27
|
+
import { NextCursorPage, type NextCursorPageParams, PagePromise } from '../../../../core/pagination';
|
|
28
|
+
import { RequestOptions } from '../../../../internal/request-options';
|
|
29
|
+
import { path } from '../../../../internal/utils/path';
|
|
30
|
+
|
|
31
|
+
export class Groups extends APIResource {
|
|
32
|
+
users: UsersAPI.Users = new UsersAPI.Users(this._client);
|
|
33
|
+
roles: RolesAPI.Roles = new RolesAPI.Roles(this._client);
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Creates a new group in the organization.
|
|
37
|
+
*
|
|
38
|
+
* @example
|
|
39
|
+
* ```ts
|
|
40
|
+
* const group = await client.admin.organization.groups.create(
|
|
41
|
+
* { name: 'x' },
|
|
42
|
+
* );
|
|
43
|
+
* ```
|
|
44
|
+
*/
|
|
45
|
+
create(body: GroupCreateParams, options?: RequestOptions): APIPromise<Group> {
|
|
46
|
+
return this._client.post('/organization/groups', {
|
|
47
|
+
body,
|
|
48
|
+
...options,
|
|
49
|
+
__security: { adminAPIKeyAuth: true },
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Updates a group's information.
|
|
55
|
+
*
|
|
56
|
+
* @example
|
|
57
|
+
* ```ts
|
|
58
|
+
* const group = await client.admin.organization.groups.update(
|
|
59
|
+
* 'group_id',
|
|
60
|
+
* { name: 'x' },
|
|
61
|
+
* );
|
|
62
|
+
* ```
|
|
63
|
+
*/
|
|
64
|
+
update(
|
|
65
|
+
groupID: string,
|
|
66
|
+
body: GroupUpdateParams,
|
|
67
|
+
options?: RequestOptions,
|
|
68
|
+
): APIPromise<GroupUpdateResponse> {
|
|
69
|
+
return this._client.post(path`/organization/groups/${groupID}`, {
|
|
70
|
+
body,
|
|
71
|
+
...options,
|
|
72
|
+
__security: { adminAPIKeyAuth: true },
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* Lists all groups in the organization.
|
|
78
|
+
*
|
|
79
|
+
* @example
|
|
80
|
+
* ```ts
|
|
81
|
+
* // Automatically fetches more pages as needed.
|
|
82
|
+
* for await (const group of client.admin.organization.groups.list()) {
|
|
83
|
+
* // ...
|
|
84
|
+
* }
|
|
85
|
+
* ```
|
|
86
|
+
*/
|
|
87
|
+
list(
|
|
88
|
+
query: GroupListParams | null | undefined = {},
|
|
89
|
+
options?: RequestOptions,
|
|
90
|
+
): PagePromise<GroupsPage, Group> {
|
|
91
|
+
return this._client.getAPIList('/organization/groups', NextCursorPage<Group>, {
|
|
92
|
+
query,
|
|
93
|
+
...options,
|
|
94
|
+
__security: { adminAPIKeyAuth: true },
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* Deletes a group from the organization.
|
|
100
|
+
*
|
|
101
|
+
* @example
|
|
102
|
+
* ```ts
|
|
103
|
+
* const group = await client.admin.organization.groups.delete(
|
|
104
|
+
* 'group_id',
|
|
105
|
+
* );
|
|
106
|
+
* ```
|
|
107
|
+
*/
|
|
108
|
+
delete(groupID: string, options?: RequestOptions): APIPromise<GroupDeleteResponse> {
|
|
109
|
+
return this._client.delete(path`/organization/groups/${groupID}`, {
|
|
110
|
+
...options,
|
|
111
|
+
__security: { adminAPIKeyAuth: true },
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
export type GroupsPage = NextCursorPage<Group>;
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* Details about an organization group.
|
|
120
|
+
*/
|
|
121
|
+
export interface Group {
|
|
122
|
+
/**
|
|
123
|
+
* Identifier for the group.
|
|
124
|
+
*/
|
|
125
|
+
id: string;
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* Unix timestamp (in seconds) when the group was created.
|
|
129
|
+
*/
|
|
130
|
+
created_at: number;
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* The type of the group.
|
|
134
|
+
*/
|
|
135
|
+
group_type: string;
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* Whether the group is managed through SCIM and controlled by your identity
|
|
139
|
+
* provider.
|
|
140
|
+
*/
|
|
141
|
+
is_scim_managed: boolean;
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* Display name of the group.
|
|
145
|
+
*/
|
|
146
|
+
name: string;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* Response returned after updating a group.
|
|
151
|
+
*/
|
|
152
|
+
export interface GroupUpdateResponse {
|
|
153
|
+
/**
|
|
154
|
+
* Identifier for the group.
|
|
155
|
+
*/
|
|
156
|
+
id: string;
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* Unix timestamp (in seconds) when the group was created.
|
|
160
|
+
*/
|
|
161
|
+
created_at: number;
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* Whether the group is managed through SCIM and controlled by your identity
|
|
165
|
+
* provider.
|
|
166
|
+
*/
|
|
167
|
+
is_scim_managed: boolean;
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* Updated display name for the group.
|
|
171
|
+
*/
|
|
172
|
+
name: string;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* Confirmation payload returned after deleting a group.
|
|
177
|
+
*/
|
|
178
|
+
export interface GroupDeleteResponse {
|
|
179
|
+
/**
|
|
180
|
+
* Identifier of the deleted group.
|
|
181
|
+
*/
|
|
182
|
+
id: string;
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* Whether the group was deleted.
|
|
186
|
+
*/
|
|
187
|
+
deleted: boolean;
|
|
188
|
+
|
|
189
|
+
/**
|
|
190
|
+
* Always `group.deleted`.
|
|
191
|
+
*/
|
|
192
|
+
object: 'group.deleted';
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
export interface GroupCreateParams {
|
|
196
|
+
/**
|
|
197
|
+
* Human readable name for the group.
|
|
198
|
+
*/
|
|
199
|
+
name: string;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
export interface GroupUpdateParams {
|
|
203
|
+
/**
|
|
204
|
+
* New display name for the group.
|
|
205
|
+
*/
|
|
206
|
+
name: string;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
export interface GroupListParams extends NextCursorPageParams {
|
|
210
|
+
/**
|
|
211
|
+
* Specifies the sort order of the returned groups.
|
|
212
|
+
*/
|
|
213
|
+
order?: 'asc' | 'desc';
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
Groups.Users = Users;
|
|
217
|
+
Groups.Roles = Roles;
|
|
218
|
+
|
|
219
|
+
export declare namespace Groups {
|
|
220
|
+
export {
|
|
221
|
+
type Group as Group,
|
|
222
|
+
type GroupUpdateResponse as GroupUpdateResponse,
|
|
223
|
+
type GroupDeleteResponse as GroupDeleteResponse,
|
|
224
|
+
type GroupsPage as GroupsPage,
|
|
225
|
+
type GroupCreateParams as GroupCreateParams,
|
|
226
|
+
type GroupUpdateParams as GroupUpdateParams,
|
|
227
|
+
type GroupListParams as GroupListParams,
|
|
228
|
+
};
|
|
229
|
+
|
|
230
|
+
export {
|
|
231
|
+
Users as Users,
|
|
232
|
+
type OrganizationGroupUser as OrganizationGroupUser,
|
|
233
|
+
type UserCreateResponse as UserCreateResponse,
|
|
234
|
+
type UserDeleteResponse as UserDeleteResponse,
|
|
235
|
+
type OrganizationGroupUsersPage as OrganizationGroupUsersPage,
|
|
236
|
+
type UserCreateParams as UserCreateParams,
|
|
237
|
+
type UserListParams as UserListParams,
|
|
238
|
+
type UserDeleteParams as UserDeleteParams,
|
|
239
|
+
};
|
|
240
|
+
|
|
241
|
+
export {
|
|
242
|
+
Roles as Roles,
|
|
243
|
+
type RoleCreateResponse as RoleCreateResponse,
|
|
244
|
+
type RoleListResponse as RoleListResponse,
|
|
245
|
+
type RoleDeleteResponse as RoleDeleteResponse,
|
|
246
|
+
type RoleListResponsesPage as RoleListResponsesPage,
|
|
247
|
+
type RoleCreateParams as RoleCreateParams,
|
|
248
|
+
type RoleListParams as RoleListParams,
|
|
249
|
+
type RoleDeleteParams as RoleDeleteParams,
|
|
250
|
+
};
|
|
251
|
+
}
|