@@ -11562,6 +11562,29 @@ components:
1156211562 required:
1156311563 - 'data'
1156411564 type: 'object'
11565+ CreateScimOrganizationRoleMappingRequest:
11566+ properties:
11567+ role:
11568+ description: 'Organization role granted to members of the mapped SCIM group.'
11569+ enum:
11570+ - 'admin'
11571+ - 'member'
11572+ example: 'member'
11573+ type: 'string'
11574+ scim_group_id:
11575+ format: 'uuid'
11576+ type: 'string'
11577+ required:
11578+ - 'scim_group_id'
11579+ - 'role'
11580+ type: 'object'
11581+ CreateScimOrganizationRoleMappingResponse:
11582+ properties:
11583+ data:
11584+ $ref: '#/components/schemas/ScimOrganizationRoleMapping'
11585+ required:
11586+ - 'data'
11587+ type: 'object'
1156511588 CreateScimSyncJobResponse:
1156611589 properties:
1156711590 data:
@@ -12750,6 +12773,14 @@ components:
1275012773 required:
1275112774 - 'deleted'
1275212775 type: 'object'
12776+ DeleteScimOrganizationRoleMappingResponse:
12777+ properties:
12778+ deleted:
12779+ const: true
12780+ type: 'boolean'
12781+ required:
12782+ - 'deleted'
12783+ type: 'object'
1275312784 DeleteWorkspaceBudgetResponse:
1275412785 example:
1275512786 deleted: true
@@ -19361,6 +19392,22 @@ components:
1936119392 - 'data'
1936219393 - 'total_count'
1936319394 type: 'object'
19395+ ListScimOrganizationRoleMappingsResponse:
19396+ properties:
19397+ data:
19398+ items:
19399+ $ref: '#/components/schemas/ScimOrganizationRoleMapping'
19400+ type: 'array'
19401+ role_mapping_enabled:
19402+ description: 'Whether organization role mapping is enabled for the SCIM directory. Enable it in the dashboard before creating or deleting mappings.'
19403+ type: 'boolean'
19404+ total_count:
19405+ type: 'integer'
19406+ required:
19407+ - 'role_mapping_enabled'
19408+ - 'data'
19409+ - 'total_count'
19410+ type: 'object'
1936419411 ListToolsResponse:
1936519412 properties:
1936619413 data:
@@ -34656,6 +34703,49 @@ components:
3465634703 - 'created_at'
3465734704 - 'updated_at'
3465834705 type: 'object'
34706+ ScimOrganizationRoleMapping:
34707+ example:
34708+ created_at: '2025-08-24T10:30:00.000Z'
34709+ id: 'scimgrm_2abc123'
34710+ precedence: 1
34711+ role: 'member'
34712+ scim_group_display_name: 'Engineering'
34713+ scim_group_id: '550e8400-e29b-41d4-a716-446655440000'
34714+ updated_at: '2025-08-24T10:30:00.000Z'
34715+ properties:
34716+ created_at:
34717+ type: 'string'
34718+ id:
34719+ type: 'string'
34720+ precedence:
34721+ description: 'Resolution order when a user is in several mapped groups; lower wins.'
34722+ type: 'integer'
34723+ role:
34724+ description: 'Organization role granted to members of the mapped SCIM group.'
34725+ enum:
34726+ - 'admin'
34727+ - 'member'
34728+ example: 'member'
34729+ type: 'string'
34730+ scim_group_display_name:
34731+ type: 'string'
34732+ scim_group_id:
34733+ description: 'ID of the SCIM group (from `GET /scim/groups`). `null` when the identity provider group has not been synced yet.'
34734+ format: 'uuid'
34735+ type:
34736+ - 'string'
34737+ - 'null'
34738+ updated_at:
34739+ type: 'string'
34740+ required:
34741+ - 'id'
34742+ - 'scim_group_id'
34743+ - 'scim_group_display_name'
34744+ - 'role'
34745+ - 'precedence'
34746+ - 'created_at'
34747+ - 'updated_at'
34748+ type: 'object'
3465934749 ScimSyncJob:
3466034750 properties:
3466134751 created_at:
@@ -61464,6 +61554,224 @@ paths:
6146461554 outputs:
6146561555 results: '$.data'
6146661556 type: 'offsetLimit'
61557+ /scim/organization-role-mappings:
61558+ get:
61559+ 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.'
61560+ operationId: 'listScimOrganizationRoleMappings'
61561+ responses:
61562+ '200':
61563+ content:
61564+ application/json:
61565+ schema:
61566+ $ref: '#/components/schemas/ListScimOrganizationRoleMappingsResponse'
61567+ description: 'List of SCIM organization role mappings'
61568+ '401':
61569+ content:
61570+ application/json:
61571+ example:
61572+ error:
61573+ code: 401
61574+ message: 'Missing Authentication header'
61575+ schema:
61576+ $ref: '#/components/schemas/UnauthorizedResponse'
61577+ description: 'Unauthorized - Authentication required or invalid credentials'
61578+ '403':
61579+ content:
61580+ application/json:
61581+ example:
61582+ error:
61583+ code: 403
61584+ message: 'Only management keys can perform this operation'
61585+ schema:
61586+ $ref: '#/components/schemas/ForbiddenResponse'
61587+ description: 'Forbidden - Authentication successful but insufficient permissions'
61588+ '404':
61589+ content:
61590+ application/json:
61591+ example:
61592+ error:
61593+ code: 404
61594+ message: 'Resource not found'
61595+ schema:
61596+ $ref: '#/components/schemas/NotFoundResponse'
61597+ description: 'Not Found - Resource does not exist'
61598+ '500':
61599+ content:
61600+ application/json:
61601+ example:
61602+ error:
61603+ code: 500
61604+ message: 'Internal Server Error'
61605+ schema:
61606+ $ref: '#/components/schemas/InternalServerResponse'
61607+ description: 'Internal Server Error - Unexpected server error'
61608+ summary: 'List SCIM organization role mappings'
61609+ tags:
61610+ - 'SCIM'
61611+ x-speakeasy-name-override: 'listOrganizationRoleMappings'
61612+ post:
61613+ 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.'
61614+ operationId: 'createScimOrganizationRoleMapping'
61615+ requestBody:
61616+ content:
61617+ application/json:
61618+ schema:
61619+ $ref: '#/components/schemas/CreateScimOrganizationRoleMappingRequest'
61620+ required: true
61621+ responses:
61622+ '201':
61623+ content:
61624+ application/json:
61625+ schema:
61626+ $ref: '#/components/schemas/CreateScimOrganizationRoleMappingResponse'
61627+ description: 'SCIM organization role mapping created'
61628+ '400':
61629+ content:
61630+ application/json:
61631+ example:
61632+ error:
61633+ code: 400
61634+ message: 'Invalid request parameters'
61635+ schema:
61636+ $ref: '#/components/schemas/BadRequestResponse'
61637+ description: 'Bad Request - Invalid request parameters or malformed input'
61638+ '401':
61639+ content:
61640+ application/json:
61641+ example:
61642+ error:
61643+ code: 401
61644+ message: 'Missing Authentication header'
61645+ schema:
61646+ $ref: '#/components/schemas/UnauthorizedResponse'
61647+ description: 'Unauthorized - Authentication required or invalid credentials'
61648+ '403':
61649+ content:
61650+ application/json:
61651+ example:
61652+ error:
61653+ code: 403
61654+ message: 'Only management keys can perform this operation'
61655+ schema:
61656+ $ref: '#/components/schemas/ForbiddenResponse'
61657+ description: 'Forbidden - Authentication successful but insufficient permissions'
61658+ '404':
61659+ content:
61660+ application/json:
61661+ example:
61662+ error:
61663+ code: 404
61664+ message: 'Resource not found'
61665+ schema:
61666+ $ref: '#/components/schemas/NotFoundResponse'
61667+ description: 'Not Found - Resource does not exist'
61668+ '409':
61669+ content:
61670+ application/json:
61671+ example:
61672+ error:
61673+ code: 409
61674+ message: 'Resource conflict. Please try again later.'
61675+ schema:
61676+ $ref: '#/components/schemas/ConflictResponse'
61677+ description: 'Conflict - Resource conflict or concurrent modification'
61678+ '500':
61679+ content:
61680+ application/json:
61681+ example:
61682+ error:
61683+ code: 500
61684+ message: 'Internal Server Error'
61685+ schema:
61686+ $ref: '#/components/schemas/InternalServerResponse'
61687+ description: 'Internal Server Error - Unexpected server error'
61688+ summary: 'Create a SCIM organization role mapping'
61689+ tags:
61690+ - 'SCIM'
61691+ x-speakeasy-name-override: 'createOrganizationRoleMapping'
61692+ /scim/organization-role-mappings/{id}:
61693+ delete:
61694+ 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.'
61695+ operationId: 'deleteScimOrganizationRoleMapping'
61696+ parameters:
61697+ - in: 'path'
61698+ name: 'id'
61699+ required: true
61700+ schema:
61701+ maxLength: 128
61702+ minLength: 1
61703+ type: 'string'
61704+ responses:
61705+ '200':
61706+ content:
61707+ application/json:
61708+ schema:
61709+ $ref: '#/components/schemas/DeleteScimOrganizationRoleMappingResponse'
61710+ description: 'SCIM organization role mapping deleted'
61711+ '400':
61712+ content:
61713+ application/json:
61714+ example:
61715+ error:
61716+ code: 400
61717+ message: 'Invalid request parameters'
61718+ schema:
61719+ $ref: '#/components/schemas/BadRequestResponse'
61720+ description: 'Bad Request - Invalid request parameters or malformed input'
61721+ '401':
61722+ content:
61723+ application/json:
61724+ example:
61725+ error:
61726+ code: 401
61727+ message: 'Missing Authentication header'
61728+ schema:
61729+ $ref: '#/components/schemas/UnauthorizedResponse'
61730+ description: 'Unauthorized - Authentication required or invalid credentials'
61731+ '403':
61732+ content:
61733+ application/json:
61734+ example:
61735+ error:
61736+ code: 403
61737+ message: 'Only management keys can perform this operation'
61738+ schema:
61739+ $ref: '#/components/schemas/ForbiddenResponse'
61740+ description: 'Forbidden - Authentication successful but insufficient permissions'
61741+ '404':
61742+ content:
61743+ application/json:
61744+ example:
61745+ error:
61746+ code: 404
61747+ message: 'Resource not found'
61748+ schema:
61749+ $ref: '#/components/schemas/NotFoundResponse'
61750+ description: 'Not Found - Resource does not exist'
61751+ '409':
61752+ content:
61753+ application/json:
61754+ example:
61755+ error:
61756+ code: 409
61757+ message: 'Resource conflict. Please try again later.'
61758+ schema:
61759+ $ref: '#/components/schemas/ConflictResponse'
61760+ description: 'Conflict - Resource conflict or concurrent modification'
61761+ '500':
61762+ content:
61763+ application/json:
61764+ example:
61765+ error:
61766+ code: 500
61767+ message: 'Internal Server Error'
61768+ schema:
61769+ $ref: '#/components/schemas/InternalServerResponse'
61770+ description: 'Internal Server Error - Unexpected server error'
61771+ summary: 'Delete a SCIM organization role mapping'
61772+ tags:
61773+ - 'SCIM'
61774+ x-speakeasy-name-override: 'deleteOrganizationRoleMapping'
6146761775 /scim/sync-jobs:
6146861776 post:
6146961777 description: 'Start a SCIM directory sync. [Management key](/docs/guides/overview/auth/management-api-keys) required.'
0 commit comments