Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
308 changes: 308 additions & 0 deletions .speakeasy/in.openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11562,6 +11562,29 @@ components:
required:
- 'data'
type: 'object'
CreateScimOrganizationRoleMappingRequest:
properties:
role:
description: 'Organization role granted to members of the mapped SCIM group.'
enum:
- 'admin'
- 'member'
example: 'member'
type: 'string'
scim_group_id:
format: 'uuid'
type: 'string'
required:
- 'scim_group_id'
- 'role'
type: 'object'
CreateScimOrganizationRoleMappingResponse:
properties:
data:
$ref: '#/components/schemas/ScimOrganizationRoleMapping'
required:
- 'data'
type: 'object'
CreateScimSyncJobResponse:
properties:
data:
Expand Down Expand Up @@ -12750,6 +12773,14 @@ components:
required:
- 'deleted'
type: 'object'
DeleteScimOrganizationRoleMappingResponse:
properties:
deleted:
const: true
type: 'boolean'
required:
- 'deleted'
type: 'object'
DeleteWorkspaceBudgetResponse:
example:
deleted: true
Expand Down Expand Up @@ -19361,6 +19392,22 @@ components:
- 'data'
- 'total_count'
type: 'object'
ListScimOrganizationRoleMappingsResponse:
properties:
data:
items:
$ref: '#/components/schemas/ScimOrganizationRoleMapping'
type: 'array'
role_mapping_enabled:
description: 'Whether organization role mapping is enabled for the SCIM directory. Enable it in the dashboard before creating or deleting mappings.'
type: 'boolean'
total_count:
type: 'integer'
required:
- 'role_mapping_enabled'
- 'data'
- 'total_count'
type: 'object'
ListToolsResponse:
properties:
data:
Expand Down Expand Up @@ -34656,6 +34703,49 @@ components:
- 'created_at'
- 'updated_at'
type: 'object'
ScimOrganizationRoleMapping:
example:
created_at: '2025-08-24T10:30:00.000Z'
id: 'scimgrm_2abc123'
precedence: 1
role: 'member'
scim_group_display_name: 'Engineering'
scim_group_id: '550e8400-e29b-41d4-a716-446655440000'
updated_at: '2025-08-24T10:30:00.000Z'
properties:
created_at:
type: 'string'
id:
type: 'string'
precedence:
description: 'Resolution order when a user is in several mapped groups; lower wins.'
type: 'integer'
role:
description: 'Organization role granted to members of the mapped SCIM group.'
enum:
- 'admin'
- 'member'
example: 'member'
type: 'string'
scim_group_display_name:
type: 'string'
scim_group_id:
description: 'ID of the SCIM group (from `GET /scim/groups`). `null` when the identity provider group has not been synced yet.'
format: 'uuid'
type:
- 'string'
- 'null'
updated_at:
type: 'string'
required:
- 'id'
- 'scim_group_id'
- 'scim_group_display_name'
- 'role'
- 'precedence'
- 'created_at'
- 'updated_at'
type: 'object'
ScimSyncJob:
properties:
created_at:
Expand Down Expand Up @@ -61464,6 +61554,224 @@ paths:
outputs:
results: '$.data'
type: 'offsetLimit'
/scim/organization-role-mappings:
get:
description: 'List the SCIM group-to-organization-role mappings for the organization, and whether organization role mapping is enabled. [Management key](/docs/guides/overview/auth/management-api-keys) required.'
operationId: 'listScimOrganizationRoleMappings'
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/ListScimOrganizationRoleMappingsResponse'
description: 'List of SCIM organization role mappings'
'401':
content:
application/json:
example:
error:
code: 401
message: 'Missing Authentication header'
schema:
$ref: '#/components/schemas/UnauthorizedResponse'
description: 'Unauthorized - Authentication required or invalid credentials'
'403':
content:
application/json:
example:
error:
code: 403
message: 'Only management keys can perform this operation'
schema:
$ref: '#/components/schemas/ForbiddenResponse'
description: 'Forbidden - Authentication successful but insufficient permissions'
'404':
content:
application/json:
example:
error:
code: 404
message: 'Resource not found'
schema:
$ref: '#/components/schemas/NotFoundResponse'
description: 'Not Found - Resource does not exist'
'500':
content:
application/json:
example:
error:
code: 500
message: 'Internal Server Error'
schema:
$ref: '#/components/schemas/InternalServerResponse'
description: 'Internal Server Error - Unexpected server error'
summary: 'List SCIM organization role mappings'
tags:
- 'SCIM'
x-speakeasy-name-override: 'listOrganizationRoleMappings'
post:
description: 'Map a SCIM group to an organization role (`admin` or `member`). Members of the group receive that organization role on their next SCIM sync. Organization role mapping must be enabled for the SCIM directory in the dashboard; otherwise writes return `409`. [Management key](/docs/guides/overview/auth/management-api-keys) required.'
operationId: 'createScimOrganizationRoleMapping'
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/CreateScimOrganizationRoleMappingRequest'
required: true
responses:
'201':
content:
application/json:
schema:
$ref: '#/components/schemas/CreateScimOrganizationRoleMappingResponse'
description: 'SCIM organization role mapping created'
'400':
content:
application/json:
example:
error:
code: 400
message: 'Invalid request parameters'
schema:
$ref: '#/components/schemas/BadRequestResponse'
description: 'Bad Request - Invalid request parameters or malformed input'
'401':
content:
application/json:
example:
error:
code: 401
message: 'Missing Authentication header'
schema:
$ref: '#/components/schemas/UnauthorizedResponse'
description: 'Unauthorized - Authentication required or invalid credentials'
'403':
content:
application/json:
example:
error:
code: 403
message: 'Only management keys can perform this operation'
schema:
$ref: '#/components/schemas/ForbiddenResponse'
description: 'Forbidden - Authentication successful but insufficient permissions'
'404':
content:
application/json:
example:
error:
code: 404
message: 'Resource not found'
schema:
$ref: '#/components/schemas/NotFoundResponse'
description: 'Not Found - Resource does not exist'
'409':
content:
application/json:
example:
error:
code: 409
message: 'Resource conflict. Please try again later.'
schema:
$ref: '#/components/schemas/ConflictResponse'
description: 'Conflict - Resource conflict or concurrent modification'
'500':
content:
application/json:
example:
error:
code: 500
message: 'Internal Server Error'
schema:
$ref: '#/components/schemas/InternalServerResponse'
description: 'Internal Server Error - Unexpected server error'
summary: 'Create a SCIM organization role mapping'
tags:
- 'SCIM'
x-speakeasy-name-override: 'createOrganizationRoleMapping'
/scim/organization-role-mappings/{id}:
delete:
description: 'Delete a SCIM group-to-organization-role mapping. Deleting the last `admin` mapping returns `409`. Organization role mapping must be enabled for the SCIM directory in the dashboard; otherwise writes return `409`. [Management key](/docs/guides/overview/auth/management-api-keys) required.'
operationId: 'deleteScimOrganizationRoleMapping'
parameters:
- in: 'path'
name: 'id'
required: true
schema:
maxLength: 128
minLength: 1
type: 'string'
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/DeleteScimOrganizationRoleMappingResponse'
description: 'SCIM organization role mapping deleted'
'400':
content:
application/json:
example:
error:
code: 400
message: 'Invalid request parameters'
schema:
$ref: '#/components/schemas/BadRequestResponse'
description: 'Bad Request - Invalid request parameters or malformed input'
'401':
content:
application/json:
example:
error:
code: 401
message: 'Missing Authentication header'
schema:
$ref: '#/components/schemas/UnauthorizedResponse'
description: 'Unauthorized - Authentication required or invalid credentials'
'403':
content:
application/json:
example:
error:
code: 403
message: 'Only management keys can perform this operation'
schema:
$ref: '#/components/schemas/ForbiddenResponse'
description: 'Forbidden - Authentication successful but insufficient permissions'
'404':
content:
application/json:
example:
error:
code: 404
message: 'Resource not found'
schema:
$ref: '#/components/schemas/NotFoundResponse'
description: 'Not Found - Resource does not exist'
'409':
content:
application/json:
example:
error:
code: 409
message: 'Resource conflict. Please try again later.'
schema:
$ref: '#/components/schemas/ConflictResponse'
description: 'Conflict - Resource conflict or concurrent modification'
'500':
content:
application/json:
example:
error:
code: 500
message: 'Internal Server Error'
schema:
$ref: '#/components/schemas/InternalServerResponse'
description: 'Internal Server Error - Unexpected server error'
summary: 'Delete a SCIM organization role mapping'
tags:
- 'SCIM'
x-speakeasy-name-override: 'deleteOrganizationRoleMapping'
/scim/sync-jobs:
post:
description: 'Start a SCIM directory sync. [Management key](/docs/guides/overview/auth/management-api-keys) required.'
Expand Down
Loading