|
7972 | 7972 | "CreateCredentialConnectionBody": { |
7973 | 7973 | "anyOf": [ |
7974 | 7974 | { |
7975 | | - "type": "object", |
7976 | | - "properties": { |
7977 | | - "workspaceId": { |
7978 | | - "type": "string", |
7979 | | - "minLength": 1, |
7980 | | - "maxLength": 128, |
7981 | | - "description": "Workspace that will own the credential." |
7982 | | - }, |
7983 | | - "providerId": { |
7984 | | - "type": "string", |
7985 | | - "minLength": 1, |
7986 | | - "maxLength": 255, |
7987 | | - "description": "Exact OAuth provider ID returned by credential-provider discovery." |
7988 | | - }, |
7989 | | - "displayName": { |
7990 | | - "type": "string", |
7991 | | - "minLength": 1, |
7992 | | - "maxLength": 255, |
7993 | | - "description": "Name shown for the new credential in Sim." |
7994 | | - }, |
7995 | | - "oauthClientConfig": { |
7996 | | - "description": "Write-only OAuth app configuration when required by the provider.", |
| 7975 | + "anyOf": [ |
| 7976 | + { |
7997 | 7977 | "type": "object", |
7998 | 7978 | "properties": { |
7999 | | - "clientId": { |
| 7979 | + "workspaceId": { |
8000 | 7980 | "type": "string", |
8001 | 7981 | "minLength": 1, |
8002 | | - "maxLength": 255, |
8003 | | - "description": "Client ID for the caller-managed Intuit OAuth application." |
| 7982 | + "maxLength": 128, |
| 7983 | + "description": "Workspace that will own the credential." |
8004 | 7984 | }, |
8005 | | - "clientSecret": { |
| 7985 | + "displayName": { |
8006 | 7986 | "type": "string", |
8007 | 7987 | "minLength": 1, |
8008 | | - "maxLength": 512, |
8009 | | - "description": "Write-only client secret for the caller-managed Intuit OAuth application." |
| 7988 | + "maxLength": 255, |
| 7989 | + "description": "Name shown for the new credential in Sim." |
8010 | 7990 | }, |
8011 | | - "environment": { |
| 7991 | + "providerId": { |
8012 | 7992 | "type": "string", |
8013 | | - "enum": ["sandbox", "production"], |
8014 | | - "description": "Intuit company environment used for authorization and API requests." |
| 7993 | + "const": "quickbooks", |
| 7994 | + "description": "QuickBooks OAuth provider ID returned by credential-provider discovery." |
8015 | 7995 | }, |
8016 | | - "webhookVerifierToken": { |
| 7996 | + "oauthClientConfig": { |
| 7997 | + "type": "object", |
| 7998 | + "properties": { |
| 7999 | + "clientId": { |
| 8000 | + "type": "string", |
| 8001 | + "minLength": 1, |
| 8002 | + "maxLength": 255, |
| 8003 | + "description": "Client ID for the caller-managed Intuit OAuth application." |
| 8004 | + }, |
| 8005 | + "clientSecret": { |
| 8006 | + "type": "string", |
| 8007 | + "minLength": 1, |
| 8008 | + "maxLength": 512, |
| 8009 | + "description": "Write-only client secret for the caller-managed Intuit OAuth application." |
| 8010 | + }, |
| 8011 | + "environment": { |
| 8012 | + "type": "string", |
| 8013 | + "enum": ["sandbox", "production"], |
| 8014 | + "description": "Intuit company environment used for authorization and API requests." |
| 8015 | + }, |
| 8016 | + "webhookVerifierToken": { |
| 8017 | + "type": "string", |
| 8018 | + "minLength": 1, |
| 8019 | + "maxLength": 512, |
| 8020 | + "description": "Write-only verifier token for webhook signatures from the caller-managed app." |
| 8021 | + } |
| 8022 | + }, |
| 8023 | + "required": ["clientId", "clientSecret", "environment", "webhookVerifierToken"], |
| 8024 | + "additionalProperties": false, |
| 8025 | + "description": "Write-only caller-managed Intuit OAuth app configuration." |
| 8026 | + } |
| 8027 | + }, |
| 8028 | + "required": ["workspaceId", "displayName", "providerId", "oauthClientConfig"], |
| 8029 | + "additionalProperties": false |
| 8030 | + }, |
| 8031 | + { |
| 8032 | + "type": "object", |
| 8033 | + "properties": { |
| 8034 | + "workspaceId": { |
8017 | 8035 | "type": "string", |
8018 | 8036 | "minLength": 1, |
8019 | | - "maxLength": 512, |
8020 | | - "description": "Write-only verifier token for webhook signatures from the caller-managed app." |
| 8037 | + "maxLength": 128, |
| 8038 | + "description": "Workspace that will own the credential." |
| 8039 | + }, |
| 8040 | + "displayName": { |
| 8041 | + "type": "string", |
| 8042 | + "minLength": 1, |
| 8043 | + "maxLength": 255, |
| 8044 | + "description": "Name shown for the new credential in Sim." |
| 8045 | + }, |
| 8046 | + "providerId": { |
| 8047 | + "type": "string", |
| 8048 | + "enum": [ |
| 8049 | + "google-email", |
| 8050 | + "google-drive", |
| 8051 | + "google-docs", |
| 8052 | + "google-sheets", |
| 8053 | + "google-forms", |
| 8054 | + "google-calendar", |
| 8055 | + "google-contacts", |
| 8056 | + "google-ads", |
| 8057 | + "google-bigquery", |
| 8058 | + "google-tasks", |
| 8059 | + "google-vault", |
| 8060 | + "google-groups", |
| 8061 | + "google-chat", |
| 8062 | + "google-meet", |
| 8063 | + "vertex-ai", |
| 8064 | + "microsoft-ad", |
| 8065 | + "microsoft-dataverse", |
| 8066 | + "microsoft-excel", |
| 8067 | + "microsoft-planner", |
| 8068 | + "microsoft-teams", |
| 8069 | + "microsoft-word", |
| 8070 | + "outlook", |
| 8071 | + "onedrive", |
| 8072 | + "sharepoint", |
| 8073 | + "x", |
| 8074 | + "tiktok", |
| 8075 | + "confluence", |
| 8076 | + "jira", |
| 8077 | + "airtable", |
| 8078 | + "bitbucket", |
| 8079 | + "notion", |
| 8080 | + "clickup", |
| 8081 | + "linear", |
| 8082 | + "manageengine-sdp", |
| 8083 | + "monday", |
| 8084 | + "box", |
| 8085 | + "dropbox", |
| 8086 | + "shopify", |
| 8087 | + "slack", |
| 8088 | + "reddit", |
| 8089 | + "wealthbox", |
| 8090 | + "webflow", |
| 8091 | + "trello", |
| 8092 | + "asana", |
| 8093 | + "attio", |
| 8094 | + "calcom", |
| 8095 | + "docusign", |
| 8096 | + "pipedrive", |
| 8097 | + "hubspot", |
| 8098 | + "linkedin", |
| 8099 | + "instagram", |
| 8100 | + "salesforce", |
| 8101 | + "salesforce-sandbox", |
| 8102 | + "zoho-desk", |
| 8103 | + "zoom", |
| 8104 | + "wordpress", |
| 8105 | + "spotify" |
| 8106 | + ], |
| 8107 | + "description": "Exact OAuth provider ID returned by credential-provider discovery." |
8021 | 8108 | } |
8022 | 8109 | }, |
8023 | | - "required": ["clientId", "clientSecret", "environment", "webhookVerifierToken"], |
| 8110 | + "required": ["workspaceId", "displayName", "providerId"], |
8024 | 8111 | "additionalProperties": false |
8025 | 8112 | } |
8026 | | - }, |
8027 | | - "required": ["workspaceId", "providerId", "displayName"], |
8028 | | - "additionalProperties": false |
| 8113 | + ] |
8029 | 8114 | }, |
8030 | 8115 | { |
8031 | 8116 | "type": "object", |
|
0 commit comments