openai 6.47.0 → 6.49.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 +52 -0
- package/azure.d.mts.map +1 -1
- package/azure.d.ts.map +1 -1
- package/azure.js +5 -1
- package/azure.js.map +1 -1
- package/azure.mjs +5 -1
- package/azure.mjs.map +1 -1
- package/helpers/standard-schema.d.mts +104 -0
- package/helpers/standard-schema.d.mts.map +1 -0
- package/helpers/standard-schema.d.ts +104 -0
- package/helpers/standard-schema.d.ts.map +1 -0
- package/helpers/standard-schema.js +320 -0
- package/helpers/standard-schema.js.map +1 -0
- package/helpers/standard-schema.mjs +314 -0
- package/helpers/standard-schema.mjs.map +1 -0
- package/helpers/zod.d.mts +26 -3
- package/helpers/zod.d.mts.map +1 -1
- package/helpers/zod.d.ts +26 -3
- package/helpers/zod.d.ts.map +1 -1
- package/helpers/zod.js +97 -7
- package/helpers/zod.js.map +1 -1
- package/helpers/zod.mjs +96 -7
- package/helpers/zod.mjs.map +1 -1
- package/internal/headers.d.mts.map +1 -1
- package/internal/headers.d.ts.map +1 -1
- package/internal/headers.js +7 -3
- package/internal/headers.js.map +1 -1
- package/internal/headers.mjs +7 -3
- package/internal/headers.mjs.map +1 -1
- package/lib/AbstractChatCompletionRunner.d.mts.map +1 -1
- package/lib/AbstractChatCompletionRunner.d.ts.map +1 -1
- package/lib/AbstractChatCompletionRunner.js +43 -1
- package/lib/AbstractChatCompletionRunner.js.map +1 -1
- package/lib/AbstractChatCompletionRunner.mjs +43 -1
- package/lib/AbstractChatCompletionRunner.mjs.map +1 -1
- package/lib/ChatCompletionStream.d.mts +2 -1
- package/lib/ChatCompletionStream.d.mts.map +1 -1
- package/lib/ChatCompletionStream.d.ts +2 -1
- package/lib/ChatCompletionStream.d.ts.map +1 -1
- package/lib/ChatCompletionStream.js +53 -14
- package/lib/ChatCompletionStream.js.map +1 -1
- package/lib/ChatCompletionStream.mjs +53 -14
- package/lib/ChatCompletionStream.mjs.map +1 -1
- package/lib/ResponsesParser.d.mts.map +1 -1
- package/lib/ResponsesParser.d.ts.map +1 -1
- package/lib/ResponsesParser.js +3 -5
- package/lib/ResponsesParser.js.map +1 -1
- package/lib/ResponsesParser.mjs +3 -5
- package/lib/ResponsesParser.mjs.map +1 -1
- package/lib/jsonschema.d.mts +3 -0
- package/lib/jsonschema.d.mts.map +1 -1
- package/lib/jsonschema.d.ts +3 -0
- package/lib/jsonschema.d.ts.map +1 -1
- package/lib/transform.d.mts +25 -1
- package/lib/transform.d.mts.map +1 -1
- package/lib/transform.d.ts +25 -1
- package/lib/transform.d.ts.map +1 -1
- package/lib/transform.js +1521 -82
- package/lib/transform.js.map +1 -1
- package/lib/transform.mjs +1515 -82
- package/lib/transform.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/admin/organization/audit-logs.d.mts +2 -2
- package/resources/admin/organization/audit-logs.d.mts.map +1 -1
- package/resources/admin/organization/audit-logs.d.ts +2 -2
- package/resources/admin/organization/audit-logs.d.ts.map +1 -1
- package/resources/admin/organization/index.d.mts +1 -0
- package/resources/admin/organization/index.d.mts.map +1 -1
- package/resources/admin/organization/index.d.ts +1 -0
- package/resources/admin/organization/index.d.ts.map +1 -1
- package/resources/admin/organization/index.js +3 -1
- package/resources/admin/organization/index.js.map +1 -1
- package/resources/admin/organization/index.mjs +1 -0
- package/resources/admin/organization/index.mjs.map +1 -1
- package/resources/admin/organization/organization.d.mts +4 -0
- package/resources/admin/organization/organization.d.mts.map +1 -1
- package/resources/admin/organization/organization.d.ts +4 -0
- package/resources/admin/organization/organization.d.ts.map +1 -1
- package/resources/admin/organization/organization.js +4 -0
- package/resources/admin/organization/organization.js.map +1 -1
- package/resources/admin/organization/organization.mjs +4 -0
- package/resources/admin/organization/organization.mjs.map +1 -1
- package/resources/admin/organization/projects/index.d.mts +2 -1
- package/resources/admin/organization/projects/index.d.mts.map +1 -1
- package/resources/admin/organization/projects/index.d.ts +2 -1
- package/resources/admin/organization/projects/index.d.ts.map +1 -1
- package/resources/admin/organization/projects/index.js +7 -5
- package/resources/admin/organization/projects/index.js.map +1 -1
- package/resources/admin/organization/projects/index.mjs +2 -1
- package/resources/admin/organization/projects/index.mjs.map +1 -1
- package/resources/admin/organization/projects/projects.d.mts +6 -2
- package/resources/admin/organization/projects/projects.d.mts.map +1 -1
- package/resources/admin/organization/projects/projects.d.ts +6 -2
- package/resources/admin/organization/projects/projects.d.ts.map +1 -1
- package/resources/admin/organization/projects/projects.js +6 -2
- package/resources/admin/organization/projects/projects.js.map +1 -1
- package/resources/admin/organization/projects/projects.mjs +6 -2
- package/resources/admin/organization/projects/projects.mjs.map +1 -1
- package/resources/admin/organization/projects/service-accounts/api-keys.d.mts +58 -0
- package/resources/admin/organization/projects/service-accounts/api-keys.d.mts.map +1 -0
- package/resources/admin/organization/projects/service-accounts/api-keys.d.ts +58 -0
- package/resources/admin/organization/projects/service-accounts/api-keys.d.ts.map +1 -0
- package/resources/admin/organization/projects/service-accounts/api-keys.js +26 -0
- package/resources/admin/organization/projects/service-accounts/api-keys.js.map +1 -0
- package/resources/admin/organization/projects/service-accounts/api-keys.mjs +22 -0
- package/resources/admin/organization/projects/service-accounts/api-keys.mjs.map +1 -0
- package/resources/admin/organization/projects/service-accounts/index.d.mts +3 -0
- package/resources/admin/organization/projects/service-accounts/index.d.mts.map +1 -0
- package/resources/admin/organization/projects/service-accounts/index.d.ts +3 -0
- package/resources/admin/organization/projects/service-accounts/index.d.ts.map +1 -0
- package/resources/admin/organization/projects/service-accounts/index.js +9 -0
- package/resources/admin/organization/projects/service-accounts/index.js.map +1 -0
- package/resources/admin/organization/projects/service-accounts/index.mjs +4 -0
- package/resources/admin/organization/projects/service-accounts/index.mjs.map +1 -0
- package/resources/admin/organization/projects/service-accounts/service-accounts.d.mts +177 -0
- package/resources/admin/organization/projects/service-accounts/service-accounts.d.mts.map +1 -0
- package/resources/admin/organization/projects/service-accounts/service-accounts.d.ts +177 -0
- package/resources/admin/organization/projects/service-accounts/service-accounts.d.ts.map +1 -0
- package/resources/admin/organization/projects/service-accounts/service-accounts.js +109 -0
- package/resources/admin/organization/projects/service-accounts/service-accounts.js.map +1 -0
- package/resources/admin/organization/projects/service-accounts/service-accounts.mjs +104 -0
- package/resources/admin/organization/projects/service-accounts/service-accounts.mjs.map +1 -0
- package/resources/admin/organization/projects/service-accounts.d.mts +1 -167
- package/resources/admin/organization/projects/service-accounts.d.mts.map +1 -1
- package/resources/admin/organization/projects/service-accounts.d.ts +1 -167
- package/resources/admin/organization/projects/service-accounts.d.ts.map +1 -1
- package/resources/admin/organization/projects/service-accounts.js +2 -97
- package/resources/admin/organization/projects/service-accounts.js.map +1 -1
- package/resources/admin/organization/projects/service-accounts.mjs +1 -95
- package/resources/admin/organization/projects/service-accounts.mjs.map +1 -1
- package/resources/admin/organization/projects/spend-limit.d.mts +115 -0
- package/resources/admin/organization/projects/spend-limit.d.mts.map +1 -0
- package/resources/admin/organization/projects/spend-limit.d.ts +115 -0
- package/resources/admin/organization/projects/spend-limit.d.ts.map +1 -0
- package/resources/admin/organization/projects/spend-limit.js +67 -0
- package/resources/admin/organization/projects/spend-limit.js.map +1 -0
- package/resources/admin/organization/projects/spend-limit.mjs +63 -0
- package/resources/admin/organization/projects/spend-limit.mjs.map +1 -0
- package/resources/admin/organization/spend-limit.d.mts +108 -0
- package/resources/admin/organization/spend-limit.d.mts.map +1 -0
- package/resources/admin/organization/spend-limit.d.ts +108 -0
- package/resources/admin/organization/spend-limit.d.ts.map +1 -0
- package/resources/admin/organization/spend-limit.js +59 -0
- package/resources/admin/organization/spend-limit.js.map +1 -0
- package/resources/admin/organization/spend-limit.mjs +55 -0
- package/resources/admin/organization/spend-limit.mjs.map +1 -0
- package/resources/admin/organization/usage.d.mts +517 -88
- package/resources/admin/organization/usage.d.mts.map +1 -1
- package/resources/admin/organization/usage.d.ts +517 -88
- package/resources/admin/organization/usage.d.ts.map +1 -1
- package/resources/beta/responses/input-tokens.d.mts +6 -2
- package/resources/beta/responses/input-tokens.d.mts.map +1 -1
- package/resources/beta/responses/input-tokens.d.ts +6 -2
- package/resources/beta/responses/input-tokens.d.ts.map +1 -1
- package/resources/beta/responses/responses.d.mts +25 -15
- package/resources/beta/responses/responses.d.mts.map +1 -1
- package/resources/beta/responses/responses.d.ts +25 -15
- package/resources/beta/responses/responses.d.ts.map +1 -1
- package/resources/beta/responses/responses.js.map +1 -1
- package/resources/beta/responses/responses.mjs.map +1 -1
- package/resources/chat/completions/completions.d.mts +4 -3
- package/resources/chat/completions/completions.d.mts.map +1 -1
- package/resources/chat/completions/completions.d.ts +4 -3
- package/resources/chat/completions/completions.d.ts.map +1 -1
- package/resources/chat/completions/completions.js.map +1 -1
- package/resources/chat/completions/completions.mjs.map +1 -1
- package/resources/responses/input-tokens.d.mts +2 -1
- package/resources/responses/input-tokens.d.mts.map +1 -1
- package/resources/responses/input-tokens.d.ts +2 -1
- package/resources/responses/input-tokens.d.ts.map +1 -1
- package/resources/responses/responses.d.mts +9 -8
- package/resources/responses/responses.d.mts.map +1 -1
- package/resources/responses/responses.d.ts +9 -8
- package/resources/responses/responses.d.ts.map +1 -1
- package/resources/responses/responses.js.map +1 -1
- package/resources/responses/responses.mjs.map +1 -1
- package/resources/shared.d.mts +4 -1
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +4 -1
- package/resources/shared.d.ts.map +1 -1
- package/src/azure.ts +5 -1
- package/src/helpers/standard-schema.ts +570 -0
- package/src/helpers/zod.ts +158 -29
- package/src/internal/headers.ts +7 -3
- package/src/lib/AbstractChatCompletionRunner.ts +43 -1
- package/src/lib/ChatCompletionStream.ts +56 -8
- package/src/lib/ResponsesParser.ts +7 -5
- package/src/lib/jsonschema.ts +3 -0
- package/src/lib/transform.ts +1930 -103
- package/src/resources/admin/organization/audit-logs.ts +169 -1
- package/src/resources/admin/organization/index.ts +6 -0
- package/src/resources/admin/organization/organization.ts +16 -0
- package/src/resources/admin/organization/projects/index.ts +7 -1
- package/src/resources/admin/organization/projects/projects.ts +29 -13
- package/src/resources/admin/organization/projects/service-accounts/api-keys.ts +80 -0
- package/src/resources/admin/organization/projects/service-accounts/index.ts +15 -0
- package/src/resources/admin/organization/projects/service-accounts/service-accounts.ts +284 -0
- package/src/resources/admin/organization/projects/service-accounts.ts +1 -264
- package/src/resources/admin/organization/projects/spend-limit.ts +156 -0
- package/src/resources/admin/organization/spend-limit.ts +144 -0
- package/src/resources/admin/organization/usage.ts +616 -88
- package/src/resources/beta/responses/input-tokens.ts +6 -2
- package/src/resources/beta/responses/responses.ts +25 -14
- package/src/resources/chat/completions/completions.ts +4 -3
- package/src/resources/responses/input-tokens.ts +2 -1
- package/src/resources/responses/responses.ts +9 -7
- package/src/resources/shared.ts +4 -1
- 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
|
@@ -113,7 +113,91 @@ export interface AuditLogListResponse {
|
|
|
113
113
|
| 'service_account.deleted'
|
|
114
114
|
| 'user.added'
|
|
115
115
|
| 'user.updated'
|
|
116
|
-
| 'user.deleted'
|
|
116
|
+
| 'user.deleted'
|
|
117
|
+
| 'tenant.metadata.updated'
|
|
118
|
+
| 'tenant.microsoft_entra_mapping.upserted'
|
|
119
|
+
| 'tenant.microsoft_entra_mapping.deleted'
|
|
120
|
+
| 'tenant.workload_identity.provider.created'
|
|
121
|
+
| 'tenant.workload_identity.provider.updated'
|
|
122
|
+
| 'tenant.workload_identity.provider.archived'
|
|
123
|
+
| 'tenant.workload_identity.mapping.created'
|
|
124
|
+
| 'tenant.workload_identity.mapping.updated'
|
|
125
|
+
| 'tenant.workload_identity.mapping.archived'
|
|
126
|
+
| 'tenant.workload_identity.binding.created'
|
|
127
|
+
| 'tenant.workload_identity.principal.provisioned'
|
|
128
|
+
| 'tenant.admin_api_key.created'
|
|
129
|
+
| 'tenant.admin_api_key.updated'
|
|
130
|
+
| 'tenant.admin_api_key.deleted'
|
|
131
|
+
| 'tenant.project_api_key.created'
|
|
132
|
+
| 'tenant.chatgpt_access_token.revoked'
|
|
133
|
+
| 'tenant.migration.completed'
|
|
134
|
+
| 'tenant.sso.migrated'
|
|
135
|
+
| 'tenant.domains.migrated'
|
|
136
|
+
| 'tenant.sso_connection.created'
|
|
137
|
+
| 'tenant.sso_connection.updated'
|
|
138
|
+
| 'tenant.sso_connection.deleted'
|
|
139
|
+
| 'tenant.sso_connection.setup.started'
|
|
140
|
+
| 'tenant.policy.created'
|
|
141
|
+
| 'tenant.policy.updated'
|
|
142
|
+
| 'tenant.policy.deleted'
|
|
143
|
+
| 'tenant.policy.attached'
|
|
144
|
+
| 'tenant.policy.detached'
|
|
145
|
+
| 'tenant.principal_authentication_policy.resolved'
|
|
146
|
+
| 'tenant.scim.setup.started'
|
|
147
|
+
| 'tenant.scim.deletion.requested'
|
|
148
|
+
| 'tenant.scim.directory.created'
|
|
149
|
+
| 'tenant.product_access_policy.updated'
|
|
150
|
+
| 'tenant.resource_share_grant.created'
|
|
151
|
+
| 'tenant.resource_share_grant.updated'
|
|
152
|
+
| 'tenant.resource_share_grant.accepted'
|
|
153
|
+
| 'tenant.resource_share_grant.declined'
|
|
154
|
+
| 'tenant.resource_share_grant.revoked'
|
|
155
|
+
| 'tenant.resource_share_grant.deleted'
|
|
156
|
+
| 'tenant.service_account.updated'
|
|
157
|
+
| 'tenant.service_account.deleted'
|
|
158
|
+
| 'tenant.service_account.token.revoked'
|
|
159
|
+
| 'tenant.billing.overage_limit.updated'
|
|
160
|
+
| 'tenant.billing.alerts.updated'
|
|
161
|
+
| 'tenant.billing.info.updated'
|
|
162
|
+
| 'tenant.usage_limit.workspace.updated'
|
|
163
|
+
| 'tenant.usage_limit.group.updated'
|
|
164
|
+
| 'tenant.usage_limit.user.updated'
|
|
165
|
+
| 'tenant.usage_limit.increase_request.updated'
|
|
166
|
+
| 'tenant.usage_limit.increase_request.resolved'
|
|
167
|
+
| 'tenant.group.created'
|
|
168
|
+
| 'tenant.group.updated'
|
|
169
|
+
| 'tenant.group.deleted'
|
|
170
|
+
| 'tenant.group.member.added'
|
|
171
|
+
| 'tenant.group.member.removed'
|
|
172
|
+
| 'tenant.migration_rollout.status.updated'
|
|
173
|
+
| 'tenant.migration_rollout.tier.updated'
|
|
174
|
+
| 'tenant.role.metadata.updated'
|
|
175
|
+
| 'tenant.custom_role.created'
|
|
176
|
+
| 'tenant.custom_role.updated'
|
|
177
|
+
| 'tenant.custom_role.deleted'
|
|
178
|
+
| 'tenant.role_assignment.created'
|
|
179
|
+
| 'tenant.role_assignment.deleted'
|
|
180
|
+
| 'tenant.resource_role_assignment.created'
|
|
181
|
+
| 'tenant.resource_role_assignment.deleted'
|
|
182
|
+
| 'tenant.resource_access.updated'
|
|
183
|
+
| 'tenant.resource_access.deleted'
|
|
184
|
+
| 'tenant.session_policy.created'
|
|
185
|
+
| 'tenant.session_policy.updated'
|
|
186
|
+
| 'tenant.session_policy.deleted'
|
|
187
|
+
| 'tenant.session_revocation.started'
|
|
188
|
+
| 'tenant.third_party_app_policy.updated'
|
|
189
|
+
| 'tenant.user.added'
|
|
190
|
+
| 'tenant.user.updated'
|
|
191
|
+
| 'tenant.user.removed'
|
|
192
|
+
| 'tenant.user.looked_up'
|
|
193
|
+
| 'tenant.user.invited'
|
|
194
|
+
| 'tenant.membership.revoked'
|
|
195
|
+
| 'tenant.api_organization_invite.upserted'
|
|
196
|
+
| 'tenant.api_organization_invite.deleted'
|
|
197
|
+
| 'tenant.chatgpt_workspace_invite.upserted'
|
|
198
|
+
| 'tenant.membership.accepted'
|
|
199
|
+
| 'tenant.membership.declined'
|
|
200
|
+
| 'tenant.workspace_invite_email_settings.updated';
|
|
117
201
|
|
|
118
202
|
/**
|
|
119
203
|
* The actor who performed the audit logged action.
|
|
@@ -1834,6 +1918,90 @@ export interface AuditLogListParams extends ConversationCursorPageParams {
|
|
|
1834
1918
|
| 'user.added'
|
|
1835
1919
|
| 'user.updated'
|
|
1836
1920
|
| 'user.deleted'
|
|
1921
|
+
| 'tenant.metadata.updated'
|
|
1922
|
+
| 'tenant.microsoft_entra_mapping.upserted'
|
|
1923
|
+
| 'tenant.microsoft_entra_mapping.deleted'
|
|
1924
|
+
| 'tenant.workload_identity.provider.created'
|
|
1925
|
+
| 'tenant.workload_identity.provider.updated'
|
|
1926
|
+
| 'tenant.workload_identity.provider.archived'
|
|
1927
|
+
| 'tenant.workload_identity.mapping.created'
|
|
1928
|
+
| 'tenant.workload_identity.mapping.updated'
|
|
1929
|
+
| 'tenant.workload_identity.mapping.archived'
|
|
1930
|
+
| 'tenant.workload_identity.binding.created'
|
|
1931
|
+
| 'tenant.workload_identity.principal.provisioned'
|
|
1932
|
+
| 'tenant.admin_api_key.created'
|
|
1933
|
+
| 'tenant.admin_api_key.updated'
|
|
1934
|
+
| 'tenant.admin_api_key.deleted'
|
|
1935
|
+
| 'tenant.project_api_key.created'
|
|
1936
|
+
| 'tenant.chatgpt_access_token.revoked'
|
|
1937
|
+
| 'tenant.migration.completed'
|
|
1938
|
+
| 'tenant.sso.migrated'
|
|
1939
|
+
| 'tenant.domains.migrated'
|
|
1940
|
+
| 'tenant.sso_connection.created'
|
|
1941
|
+
| 'tenant.sso_connection.updated'
|
|
1942
|
+
| 'tenant.sso_connection.deleted'
|
|
1943
|
+
| 'tenant.sso_connection.setup.started'
|
|
1944
|
+
| 'tenant.policy.created'
|
|
1945
|
+
| 'tenant.policy.updated'
|
|
1946
|
+
| 'tenant.policy.deleted'
|
|
1947
|
+
| 'tenant.policy.attached'
|
|
1948
|
+
| 'tenant.policy.detached'
|
|
1949
|
+
| 'tenant.principal_authentication_policy.resolved'
|
|
1950
|
+
| 'tenant.scim.setup.started'
|
|
1951
|
+
| 'tenant.scim.deletion.requested'
|
|
1952
|
+
| 'tenant.scim.directory.created'
|
|
1953
|
+
| 'tenant.product_access_policy.updated'
|
|
1954
|
+
| 'tenant.resource_share_grant.created'
|
|
1955
|
+
| 'tenant.resource_share_grant.updated'
|
|
1956
|
+
| 'tenant.resource_share_grant.accepted'
|
|
1957
|
+
| 'tenant.resource_share_grant.declined'
|
|
1958
|
+
| 'tenant.resource_share_grant.revoked'
|
|
1959
|
+
| 'tenant.resource_share_grant.deleted'
|
|
1960
|
+
| 'tenant.service_account.updated'
|
|
1961
|
+
| 'tenant.service_account.deleted'
|
|
1962
|
+
| 'tenant.service_account.token.revoked'
|
|
1963
|
+
| 'tenant.billing.overage_limit.updated'
|
|
1964
|
+
| 'tenant.billing.alerts.updated'
|
|
1965
|
+
| 'tenant.billing.info.updated'
|
|
1966
|
+
| 'tenant.usage_limit.workspace.updated'
|
|
1967
|
+
| 'tenant.usage_limit.group.updated'
|
|
1968
|
+
| 'tenant.usage_limit.user.updated'
|
|
1969
|
+
| 'tenant.usage_limit.increase_request.updated'
|
|
1970
|
+
| 'tenant.usage_limit.increase_request.resolved'
|
|
1971
|
+
| 'tenant.group.created'
|
|
1972
|
+
| 'tenant.group.updated'
|
|
1973
|
+
| 'tenant.group.deleted'
|
|
1974
|
+
| 'tenant.group.member.added'
|
|
1975
|
+
| 'tenant.group.member.removed'
|
|
1976
|
+
| 'tenant.migration_rollout.status.updated'
|
|
1977
|
+
| 'tenant.migration_rollout.tier.updated'
|
|
1978
|
+
| 'tenant.role.metadata.updated'
|
|
1979
|
+
| 'tenant.custom_role.created'
|
|
1980
|
+
| 'tenant.custom_role.updated'
|
|
1981
|
+
| 'tenant.custom_role.deleted'
|
|
1982
|
+
| 'tenant.role_assignment.created'
|
|
1983
|
+
| 'tenant.role_assignment.deleted'
|
|
1984
|
+
| 'tenant.resource_role_assignment.created'
|
|
1985
|
+
| 'tenant.resource_role_assignment.deleted'
|
|
1986
|
+
| 'tenant.resource_access.updated'
|
|
1987
|
+
| 'tenant.resource_access.deleted'
|
|
1988
|
+
| 'tenant.session_policy.created'
|
|
1989
|
+
| 'tenant.session_policy.updated'
|
|
1990
|
+
| 'tenant.session_policy.deleted'
|
|
1991
|
+
| 'tenant.session_revocation.started'
|
|
1992
|
+
| 'tenant.third_party_app_policy.updated'
|
|
1993
|
+
| 'tenant.user.added'
|
|
1994
|
+
| 'tenant.user.updated'
|
|
1995
|
+
| 'tenant.user.removed'
|
|
1996
|
+
| 'tenant.user.looked_up'
|
|
1997
|
+
| 'tenant.user.invited'
|
|
1998
|
+
| 'tenant.membership.revoked'
|
|
1999
|
+
| 'tenant.api_organization_invite.upserted'
|
|
2000
|
+
| 'tenant.api_organization_invite.deleted'
|
|
2001
|
+
| 'tenant.chatgpt_workspace_invite.upserted'
|
|
2002
|
+
| 'tenant.membership.accepted'
|
|
2003
|
+
| 'tenant.membership.declined'
|
|
2004
|
+
| 'tenant.workspace_invite_email_settings.updated'
|
|
1837
2005
|
>;
|
|
1838
2006
|
|
|
1839
2007
|
/**
|
|
@@ -82,6 +82,12 @@ export {
|
|
|
82
82
|
type SpendAlertListParams,
|
|
83
83
|
type OrganizationSpendAlertsPage,
|
|
84
84
|
} from './spend-alerts';
|
|
85
|
+
export {
|
|
86
|
+
SpendLimit,
|
|
87
|
+
type OrganizationSpendLimit,
|
|
88
|
+
type OrganizationSpendLimitDeleted,
|
|
89
|
+
type SpendLimitUpdateParams,
|
|
90
|
+
} from './spend-limit';
|
|
85
91
|
export {
|
|
86
92
|
Usage,
|
|
87
93
|
type UsageAudioSpeechesResponse,
|
|
@@ -62,6 +62,13 @@ import {
|
|
|
62
62
|
SpendAlertUpdateParams,
|
|
63
63
|
SpendAlerts,
|
|
64
64
|
} from './spend-alerts';
|
|
65
|
+
import * as SpendLimitAPI from './spend-limit';
|
|
66
|
+
import {
|
|
67
|
+
OrganizationSpendLimit,
|
|
68
|
+
OrganizationSpendLimitDeleted,
|
|
69
|
+
SpendLimit,
|
|
70
|
+
SpendLimitUpdateParams,
|
|
71
|
+
} from './spend-limit';
|
|
65
72
|
import * as UsageAPI from './usage';
|
|
66
73
|
import {
|
|
67
74
|
Usage,
|
|
@@ -127,6 +134,7 @@ export class Organization extends APIResource {
|
|
|
127
134
|
groups: GroupsAPI.Groups = new GroupsAPI.Groups(this._client);
|
|
128
135
|
roles: RolesAPI.Roles = new RolesAPI.Roles(this._client);
|
|
129
136
|
dataRetention: DataRetentionAPI.DataRetention = new DataRetentionAPI.DataRetention(this._client);
|
|
137
|
+
spendLimit: SpendLimitAPI.SpendLimit = new SpendLimitAPI.SpendLimit(this._client);
|
|
130
138
|
spendAlerts: SpendAlertsAPI.SpendAlerts = new SpendAlertsAPI.SpendAlerts(this._client);
|
|
131
139
|
certificates: CertificatesAPI.Certificates = new CertificatesAPI.Certificates(this._client);
|
|
132
140
|
projects: ProjectsAPI.Projects = new ProjectsAPI.Projects(this._client);
|
|
@@ -140,6 +148,7 @@ Organization.Users = Users;
|
|
|
140
148
|
Organization.Groups = Groups;
|
|
141
149
|
Organization.Roles = Roles;
|
|
142
150
|
Organization.DataRetention = DataRetention;
|
|
151
|
+
Organization.SpendLimit = SpendLimit;
|
|
143
152
|
Organization.SpendAlerts = SpendAlerts;
|
|
144
153
|
Organization.Certificates = Certificates;
|
|
145
154
|
Organization.Projects = Projects;
|
|
@@ -233,6 +242,13 @@ export declare namespace Organization {
|
|
|
233
242
|
type DataRetentionUpdateParams as DataRetentionUpdateParams,
|
|
234
243
|
};
|
|
235
244
|
|
|
245
|
+
export {
|
|
246
|
+
SpendLimit as SpendLimit,
|
|
247
|
+
type OrganizationSpendLimit as OrganizationSpendLimit,
|
|
248
|
+
type OrganizationSpendLimitDeleted as OrganizationSpendLimitDeleted,
|
|
249
|
+
type SpendLimitUpdateParams as SpendLimitUpdateParams,
|
|
250
|
+
};
|
|
251
|
+
|
|
236
252
|
export {
|
|
237
253
|
SpendAlerts as SpendAlerts,
|
|
238
254
|
type OrganizationSpendAlert as OrganizationSpendAlert,
|
|
@@ -78,7 +78,7 @@ export {
|
|
|
78
78
|
type ServiceAccountListParams,
|
|
79
79
|
type ServiceAccountDeleteParams,
|
|
80
80
|
type ProjectServiceAccountsPage,
|
|
81
|
-
} from './service-accounts';
|
|
81
|
+
} from './service-accounts/index';
|
|
82
82
|
export {
|
|
83
83
|
SpendAlerts,
|
|
84
84
|
type ProjectSpendAlert,
|
|
@@ -90,6 +90,12 @@ export {
|
|
|
90
90
|
type SpendAlertDeleteParams,
|
|
91
91
|
type ProjectSpendAlertsPage,
|
|
92
92
|
} from './spend-alerts';
|
|
93
|
+
export {
|
|
94
|
+
SpendLimit,
|
|
95
|
+
type ProjectSpendLimit,
|
|
96
|
+
type ProjectSpendLimitDeleted,
|
|
97
|
+
type SpendLimitUpdateParams,
|
|
98
|
+
} from './spend-limit';
|
|
93
99
|
export {
|
|
94
100
|
Users,
|
|
95
101
|
type ProjectUser,
|
|
@@ -57,19 +57,6 @@ import {
|
|
|
57
57
|
RoleUpdateParams,
|
|
58
58
|
Roles,
|
|
59
59
|
} from './roles';
|
|
60
|
-
import * as ServiceAccountsAPI from './service-accounts';
|
|
61
|
-
import {
|
|
62
|
-
ProjectServiceAccount,
|
|
63
|
-
ProjectServiceAccountsPage,
|
|
64
|
-
ServiceAccountCreateParams,
|
|
65
|
-
ServiceAccountCreateResponse,
|
|
66
|
-
ServiceAccountDeleteParams,
|
|
67
|
-
ServiceAccountDeleteResponse,
|
|
68
|
-
ServiceAccountListParams,
|
|
69
|
-
ServiceAccountRetrieveParams,
|
|
70
|
-
ServiceAccountUpdateParams,
|
|
71
|
-
ServiceAccounts,
|
|
72
|
-
} from './service-accounts';
|
|
73
60
|
import * as SpendAlertsAPI from './spend-alerts';
|
|
74
61
|
import {
|
|
75
62
|
ProjectSpendAlert,
|
|
@@ -82,6 +69,13 @@ import {
|
|
|
82
69
|
SpendAlertUpdateParams,
|
|
83
70
|
SpendAlerts,
|
|
84
71
|
} from './spend-alerts';
|
|
72
|
+
import * as SpendLimitAPI from './spend-limit';
|
|
73
|
+
import {
|
|
74
|
+
ProjectSpendLimit,
|
|
75
|
+
ProjectSpendLimitDeleted,
|
|
76
|
+
SpendLimit,
|
|
77
|
+
SpendLimitUpdateParams,
|
|
78
|
+
} from './spend-limit';
|
|
85
79
|
import * as GroupsAPI from './groups/groups';
|
|
86
80
|
import {
|
|
87
81
|
GroupCreateParams,
|
|
@@ -93,6 +87,19 @@ import {
|
|
|
93
87
|
ProjectGroup,
|
|
94
88
|
ProjectGroupsPage,
|
|
95
89
|
} from './groups/groups';
|
|
90
|
+
import * as ServiceAccountsAPI from './service-accounts/service-accounts';
|
|
91
|
+
import {
|
|
92
|
+
ProjectServiceAccount,
|
|
93
|
+
ProjectServiceAccountsPage,
|
|
94
|
+
ServiceAccountCreateParams,
|
|
95
|
+
ServiceAccountCreateResponse,
|
|
96
|
+
ServiceAccountDeleteParams,
|
|
97
|
+
ServiceAccountDeleteResponse,
|
|
98
|
+
ServiceAccountListParams,
|
|
99
|
+
ServiceAccountRetrieveParams,
|
|
100
|
+
ServiceAccountUpdateParams,
|
|
101
|
+
ServiceAccounts,
|
|
102
|
+
} from './service-accounts/service-accounts';
|
|
96
103
|
import * as UsersAPI from './users/users';
|
|
97
104
|
import {
|
|
98
105
|
ProjectUser,
|
|
@@ -127,6 +134,7 @@ export class Projects extends APIResource {
|
|
|
127
134
|
groups: GroupsAPI.Groups = new GroupsAPI.Groups(this._client);
|
|
128
135
|
roles: RolesAPI.Roles = new RolesAPI.Roles(this._client);
|
|
129
136
|
dataRetention: DataRetentionAPI.DataRetention = new DataRetentionAPI.DataRetention(this._client);
|
|
137
|
+
spendLimit: SpendLimitAPI.SpendLimit = new SpendLimitAPI.SpendLimit(this._client);
|
|
130
138
|
spendAlerts: SpendAlertsAPI.SpendAlerts = new SpendAlertsAPI.SpendAlerts(this._client);
|
|
131
139
|
certificates: CertificatesAPI.Certificates = new CertificatesAPI.Certificates(this._client);
|
|
132
140
|
|
|
@@ -325,6 +333,7 @@ Projects.HostedToolPermissions = HostedToolPermissions;
|
|
|
325
333
|
Projects.Groups = Groups;
|
|
326
334
|
Projects.Roles = Roles;
|
|
327
335
|
Projects.DataRetention = DataRetention;
|
|
336
|
+
Projects.SpendLimit = SpendLimit;
|
|
328
337
|
Projects.SpendAlerts = SpendAlerts;
|
|
329
338
|
Projects.Certificates = Certificates;
|
|
330
339
|
|
|
@@ -420,6 +429,13 @@ export declare namespace Projects {
|
|
|
420
429
|
type DataRetentionUpdateParams as DataRetentionUpdateParams,
|
|
421
430
|
};
|
|
422
431
|
|
|
432
|
+
export {
|
|
433
|
+
SpendLimit as SpendLimit,
|
|
434
|
+
type ProjectSpendLimit as ProjectSpendLimit,
|
|
435
|
+
type ProjectSpendLimitDeleted as ProjectSpendLimitDeleted,
|
|
436
|
+
type SpendLimitUpdateParams as SpendLimitUpdateParams,
|
|
437
|
+
};
|
|
438
|
+
|
|
423
439
|
export {
|
|
424
440
|
SpendAlerts as SpendAlerts,
|
|
425
441
|
type ProjectSpendAlert as ProjectSpendAlert,
|
|
@@ -0,0 +1,80 @@
|
|
|
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 { RequestOptions } from '../../../../../internal/request-options';
|
|
6
|
+
import { path } from '../../../../../internal/utils/path';
|
|
7
|
+
|
|
8
|
+
export class APIKeys extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Creates an API key for a service account in the project.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* const apiKey =
|
|
15
|
+
* await client.admin.organization.projects.serviceAccounts.apiKeys.create(
|
|
16
|
+
* 'service_account_id',
|
|
17
|
+
* { project_id: 'project_id' },
|
|
18
|
+
* );
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
create(
|
|
22
|
+
serviceAccountID: string,
|
|
23
|
+
params: APIKeyCreateParams,
|
|
24
|
+
options?: RequestOptions,
|
|
25
|
+
): APIPromise<APIKeyCreateResponse> {
|
|
26
|
+
const { project_id, ...body } = params;
|
|
27
|
+
return this._client.post(
|
|
28
|
+
path`/organization/projects/${project_id}/service_accounts/${serviceAccountID}/api_keys`,
|
|
29
|
+
{ body, ...options, __security: { adminAPIKeyAuth: true } },
|
|
30
|
+
);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export interface APIKeyCreateResponse {
|
|
35
|
+
/**
|
|
36
|
+
* The identifier of the API key.
|
|
37
|
+
*/
|
|
38
|
+
id: string;
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* The Unix timestamp (in seconds) when the API key was created.
|
|
42
|
+
*/
|
|
43
|
+
created_at: number;
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* The name of the API key.
|
|
47
|
+
*/
|
|
48
|
+
name: string;
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* The object type, which is always `organization.project.service_account.api_key`
|
|
52
|
+
*/
|
|
53
|
+
object: 'organization.project.service_account.api_key';
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* The unredacted API key value.
|
|
57
|
+
*/
|
|
58
|
+
value: string;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export interface APIKeyCreateParams {
|
|
62
|
+
/**
|
|
63
|
+
* Path param: The ID of the project.
|
|
64
|
+
*/
|
|
65
|
+
project_id: string;
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Body param: API key name.
|
|
69
|
+
*/
|
|
70
|
+
name?: string;
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Body param: API key scopes.
|
|
74
|
+
*/
|
|
75
|
+
scopes?: Array<string>;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export declare namespace APIKeys {
|
|
79
|
+
export { type APIKeyCreateResponse as APIKeyCreateResponse, type APIKeyCreateParams as APIKeyCreateParams };
|
|
80
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
export { APIKeys, type APIKeyCreateResponse, type APIKeyCreateParams } from './api-keys';
|
|
4
|
+
export {
|
|
5
|
+
ServiceAccounts,
|
|
6
|
+
type ProjectServiceAccount,
|
|
7
|
+
type ServiceAccountCreateResponse,
|
|
8
|
+
type ServiceAccountDeleteResponse,
|
|
9
|
+
type ServiceAccountCreateParams,
|
|
10
|
+
type ServiceAccountRetrieveParams,
|
|
11
|
+
type ServiceAccountUpdateParams,
|
|
12
|
+
type ServiceAccountListParams,
|
|
13
|
+
type ServiceAccountDeleteParams,
|
|
14
|
+
type ProjectServiceAccountsPage,
|
|
15
|
+
} from './service-accounts';
|