|
1540 | 1540 | }
|
1541 | 1541 | }
|
1542 | 1542 | },
|
| 1543 | + "/v1/mcp-providers": { |
| 1544 | + "get": { |
| 1545 | + "tags": [ |
| 1546 | + "organizations", |
| 1547 | + "organizations" |
| 1548 | + ], |
| 1549 | + "summary": "Get Mcp Providers", |
| 1550 | + "description": "Get all MCP providers from oauth_providers table.\n\nReturns only providers with is_mcp=True.", |
| 1551 | + "operationId": "get_mcp_providers_v1_mcp_providers_get", |
| 1552 | + "parameters": [ |
| 1553 | + { |
| 1554 | + "name": "authorization", |
| 1555 | + "in": "header", |
| 1556 | + "required": false, |
| 1557 | + "schema": { |
| 1558 | + "title": "Authorization" |
| 1559 | + } |
| 1560 | + } |
| 1561 | + ], |
| 1562 | + "responses": { |
| 1563 | + "200": { |
| 1564 | + "description": "Successful Response", |
| 1565 | + "content": { |
| 1566 | + "application/json": { |
| 1567 | + "schema": { |
| 1568 | + "type": "array", |
| 1569 | + "items": { |
| 1570 | + "$ref": "#/components/schemas/OAuthProviderResponse" |
| 1571 | + }, |
| 1572 | + "title": "Response Get Mcp Providers V1 Mcp Providers Get" |
| 1573 | + } |
| 1574 | + } |
| 1575 | + } |
| 1576 | + }, |
| 1577 | + "422": { |
| 1578 | + "description": "Validation Error", |
| 1579 | + "content": { |
| 1580 | + "application/json": { |
| 1581 | + "schema": { |
| 1582 | + "$ref": "#/components/schemas/HTTPValidationError" |
| 1583 | + } |
| 1584 | + } |
| 1585 | + } |
| 1586 | + } |
| 1587 | + } |
| 1588 | + } |
| 1589 | + }, |
| 1590 | + "/v1/oauth/tokens/status": { |
| 1591 | + "get": { |
| 1592 | + "tags": [ |
| 1593 | + "organizations", |
| 1594 | + "organizations" |
| 1595 | + ], |
| 1596 | + "summary": "Get Oauth Token Status", |
| 1597 | + "description": "Get list of providers that have active OAuth tokens for the current user and organization.\n\nReturns a list of provider names that are connected.", |
| 1598 | + "operationId": "get_oauth_token_status_v1_oauth_tokens_status_get", |
| 1599 | + "parameters": [ |
| 1600 | + { |
| 1601 | + "name": "org_id", |
| 1602 | + "in": "query", |
| 1603 | + "required": true, |
| 1604 | + "schema": { |
| 1605 | + "type": "integer", |
| 1606 | + "title": "Org Id" |
| 1607 | + } |
| 1608 | + }, |
| 1609 | + { |
| 1610 | + "name": "authorization", |
| 1611 | + "in": "header", |
| 1612 | + "required": false, |
| 1613 | + "schema": { |
| 1614 | + "title": "Authorization" |
| 1615 | + } |
| 1616 | + } |
| 1617 | + ], |
| 1618 | + "responses": { |
| 1619 | + "200": { |
| 1620 | + "description": "Successful Response", |
| 1621 | + "content": { |
| 1622 | + "application/json": { |
| 1623 | + "schema": {} |
| 1624 | + } |
| 1625 | + } |
| 1626 | + }, |
| 1627 | + "422": { |
| 1628 | + "description": "Validation Error", |
| 1629 | + "content": { |
| 1630 | + "application/json": { |
| 1631 | + "schema": { |
| 1632 | + "$ref": "#/components/schemas/HTTPValidationError" |
| 1633 | + } |
| 1634 | + } |
| 1635 | + } |
| 1636 | + } |
| 1637 | + } |
| 1638 | + } |
| 1639 | + }, |
| 1640 | + "/v1/oauth/tokens/revoke": { |
| 1641 | + "post": { |
| 1642 | + "tags": [ |
| 1643 | + "organizations", |
| 1644 | + "organizations" |
| 1645 | + ], |
| 1646 | + "summary": "Revoke Oauth Token", |
| 1647 | + "description": "Revoke/disconnect an OAuth token for a specific provider.\n\nMarks ALL tokens as inactive (is_active=False) for the current user and organization.", |
| 1648 | + "operationId": "revoke_oauth_token_v1_oauth_tokens_revoke_post", |
| 1649 | + "parameters": [ |
| 1650 | + { |
| 1651 | + "name": "provider", |
| 1652 | + "in": "query", |
| 1653 | + "required": true, |
| 1654 | + "schema": { |
| 1655 | + "type": "string", |
| 1656 | + "title": "Provider" |
| 1657 | + } |
| 1658 | + }, |
| 1659 | + { |
| 1660 | + "name": "org_id", |
| 1661 | + "in": "query", |
| 1662 | + "required": true, |
| 1663 | + "schema": { |
| 1664 | + "type": "integer", |
| 1665 | + "title": "Org Id" |
| 1666 | + } |
| 1667 | + }, |
| 1668 | + { |
| 1669 | + "name": "authorization", |
| 1670 | + "in": "header", |
| 1671 | + "required": false, |
| 1672 | + "schema": { |
| 1673 | + "title": "Authorization" |
| 1674 | + } |
| 1675 | + } |
| 1676 | + ], |
| 1677 | + "responses": { |
| 1678 | + "200": { |
| 1679 | + "description": "Successful Response", |
| 1680 | + "content": { |
| 1681 | + "application/json": { |
| 1682 | + "schema": {} |
| 1683 | + } |
| 1684 | + } |
| 1685 | + }, |
| 1686 | + "422": { |
| 1687 | + "description": "Validation Error", |
| 1688 | + "content": { |
| 1689 | + "application/json": { |
| 1690 | + "schema": { |
| 1691 | + "$ref": "#/components/schemas/HTTPValidationError" |
| 1692 | + } |
| 1693 | + } |
| 1694 | + } |
| 1695 | + } |
| 1696 | + } |
| 1697 | + } |
| 1698 | + }, |
1543 | 1699 | "/v1/organizations/{org_id}/sandbox/{sandbox_id}/analyze-logs": {
|
1544 | 1700 | "post": {
|
1545 | 1701 | "tags": [
|
|
2850 | 3006 | "type": "object",
|
2851 | 3007 | "title": "NoReposFoundInOrgErrorResponse"
|
2852 | 3008 | },
|
| 3009 | + "OAuthProviderResponse": { |
| 3010 | + "properties": { |
| 3011 | + "id": { |
| 3012 | + "type": "integer", |
| 3013 | + "title": "Id" |
| 3014 | + }, |
| 3015 | + "name": { |
| 3016 | + "type": "string", |
| 3017 | + "title": "Name" |
| 3018 | + }, |
| 3019 | + "issuer": { |
| 3020 | + "type": "string", |
| 3021 | + "title": "Issuer" |
| 3022 | + }, |
| 3023 | + "authorization_endpoint": { |
| 3024 | + "type": "string", |
| 3025 | + "title": "Authorization Endpoint" |
| 3026 | + }, |
| 3027 | + "token_endpoint": { |
| 3028 | + "type": "string", |
| 3029 | + "title": "Token Endpoint" |
| 3030 | + }, |
| 3031 | + "default_scopes": { |
| 3032 | + "anyOf": [ |
| 3033 | + { |
| 3034 | + "items": { |
| 3035 | + "type": "string" |
| 3036 | + }, |
| 3037 | + "type": "array" |
| 3038 | + }, |
| 3039 | + { |
| 3040 | + "type": "null" |
| 3041 | + } |
| 3042 | + ], |
| 3043 | + "title": "Default Scopes" |
| 3044 | + }, |
| 3045 | + "is_mcp": { |
| 3046 | + "type": "boolean", |
| 3047 | + "title": "Is Mcp" |
| 3048 | + }, |
| 3049 | + "meta": { |
| 3050 | + "anyOf": [ |
| 3051 | + { |
| 3052 | + "additionalProperties": true, |
| 3053 | + "type": "object" |
| 3054 | + }, |
| 3055 | + { |
| 3056 | + "type": "null" |
| 3057 | + } |
| 3058 | + ], |
| 3059 | + "title": "Meta" |
| 3060 | + } |
| 3061 | + }, |
| 3062 | + "type": "object", |
| 3063 | + "required": [ |
| 3064 | + "id", |
| 3065 | + "name", |
| 3066 | + "issuer", |
| 3067 | + "authorization_endpoint", |
| 3068 | + "token_endpoint", |
| 3069 | + "default_scopes", |
| 3070 | + "is_mcp" |
| 3071 | + ], |
| 3072 | + "title": "OAuthProviderResponse", |
| 3073 | + "description": "Response model for OAuth provider data." |
| 3074 | + }, |
2853 | 3075 | "OrganizationIntegrationsResponse": {
|
2854 | 3076 | "properties": {
|
2855 | 3077 | "organization_id": {
|
|
0 commit comments