|
7498 | 7498 | "additionalProperties": false |
7499 | 7499 | }, |
7500 | 7500 | "description": "Authorization servers available for this OAuth service." |
| 7501 | + }, |
| 7502 | + "fields": { |
| 7503 | + "maxItems": 20, |
| 7504 | + "type": "array", |
| 7505 | + "items": { |
| 7506 | + "type": "object", |
| 7507 | + "properties": { |
| 7508 | + "id": { |
| 7509 | + "type": "string", |
| 7510 | + "minLength": 1, |
| 7511 | + "maxLength": 255, |
| 7512 | + "description": "Exact create-body field name." |
| 7513 | + }, |
| 7514 | + "label": { |
| 7515 | + "type": "string", |
| 7516 | + "minLength": 1, |
| 7517 | + "maxLength": 255, |
| 7518 | + "description": "Human-readable field label." |
| 7519 | + }, |
| 7520 | + "placeholder": { |
| 7521 | + "type": "string", |
| 7522 | + "minLength": 1, |
| 7523 | + "maxLength": 1000, |
| 7524 | + "description": "Suggested input placeholder." |
| 7525 | + }, |
| 7526 | + "required": { |
| 7527 | + "type": "boolean", |
| 7528 | + "description": "Whether the field is required for the selected flow." |
| 7529 | + }, |
| 7530 | + "secret": { |
| 7531 | + "type": "boolean", |
| 7532 | + "description": "Whether the submitted field is write-only secret material." |
| 7533 | + }, |
| 7534 | + "multiline": { |
| 7535 | + "type": "boolean", |
| 7536 | + "description": "Whether the field is intended for multi-line input." |
| 7537 | + }, |
| 7538 | + "requiredForAuthMethods": { |
| 7539 | + "description": "Authentication methods for which this field is required.", |
| 7540 | + "minItems": 1, |
| 7541 | + "maxItems": 10, |
| 7542 | + "type": "array", |
| 7543 | + "items": { |
| 7544 | + "type": "string", |
| 7545 | + "minLength": 1, |
| 7546 | + "maxLength": 64 |
| 7547 | + } |
| 7548 | + }, |
| 7549 | + "options": { |
| 7550 | + "description": "Fixed values accepted by a selector field.", |
| 7551 | + "minItems": 1, |
| 7552 | + "maxItems": 20, |
| 7553 | + "type": "array", |
| 7554 | + "items": { |
| 7555 | + "type": "object", |
| 7556 | + "properties": { |
| 7557 | + "value": { |
| 7558 | + "type": "string", |
| 7559 | + "minLength": 1, |
| 7560 | + "maxLength": 255, |
| 7561 | + "description": "Submitted option value." |
| 7562 | + }, |
| 7563 | + "label": { |
| 7564 | + "type": "string", |
| 7565 | + "minLength": 1, |
| 7566 | + "maxLength": 255, |
| 7567 | + "description": "Human-readable option label." |
| 7568 | + } |
| 7569 | + }, |
| 7570 | + "required": ["value", "label"], |
| 7571 | + "additionalProperties": false |
| 7572 | + } |
| 7573 | + }, |
| 7574 | + "hint": { |
| 7575 | + "description": "Provider-specific setup guidance.", |
| 7576 | + "type": "string", |
| 7577 | + "minLength": 1, |
| 7578 | + "maxLength": 2000 |
| 7579 | + } |
| 7580 | + }, |
| 7581 | + "required": ["id", "label", "placeholder", "required", "secret", "multiline"], |
| 7582 | + "additionalProperties": false |
| 7583 | + }, |
| 7584 | + "description": "Write-only setup fields required before starting this OAuth flow." |
7501 | 7585 | } |
7502 | 7586 | }, |
7503 | 7587 | "required": [ |
|
7508 | 7592 | "providerFamily", |
7509 | 7593 | "available", |
7510 | 7594 | "supportsReconnect", |
7511 | | - "authorizationOptions" |
| 7595 | + "authorizationOptions", |
| 7596 | + "fields" |
7512 | 7597 | ], |
7513 | 7598 | "additionalProperties": false |
7514 | 7599 | }, |
|
7710 | 7795 | "providerFamily": "salesforce", |
7711 | 7796 | "available": true, |
7712 | 7797 | "supportsReconnect": true, |
| 7798 | + "fields": [], |
7713 | 7799 | "authorizationOptions": [ |
7714 | 7800 | { |
7715 | 7801 | "providerId": "salesforce", |
|
7905 | 7991 | "minLength": 1, |
7906 | 7992 | "maxLength": 255, |
7907 | 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.", |
| 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 | + }, |
| 8017 | + "required": ["clientId", "clientSecret", "environment"], |
| 8018 | + "additionalProperties": false |
7908 | 8019 | } |
7909 | 8020 | }, |
7910 | 8021 | "required": ["workspaceId", "providerId", "displayName"], |
|
7924 | 8035 | "minLength": 1, |
7925 | 8036 | "maxLength": 255, |
7926 | 8037 | "description": "Existing OAuth credential to reconnect in place." |
| 8038 | + }, |
| 8039 | + "oauthClientConfig": { |
| 8040 | + "description": "Write-only OAuth app configuration when required by the provider.", |
| 8041 | + "type": "object", |
| 8042 | + "properties": { |
| 8043 | + "clientId": { |
| 8044 | + "type": "string", |
| 8045 | + "minLength": 1, |
| 8046 | + "maxLength": 255, |
| 8047 | + "description": "Client ID for the caller-managed Intuit OAuth application." |
| 8048 | + }, |
| 8049 | + "clientSecret": { |
| 8050 | + "type": "string", |
| 8051 | + "minLength": 1, |
| 8052 | + "maxLength": 512, |
| 8053 | + "description": "Write-only client secret for the caller-managed Intuit OAuth application." |
| 8054 | + }, |
| 8055 | + "environment": { |
| 8056 | + "type": "string", |
| 8057 | + "enum": ["sandbox", "production"], |
| 8058 | + "description": "Intuit company environment used for authorization and API requests." |
| 8059 | + } |
| 8060 | + }, |
| 8061 | + "required": ["clientId", "clientSecret", "environment"], |
| 8062 | + "additionalProperties": false |
7927 | 8063 | } |
7928 | 8064 | }, |
7929 | 8065 | "required": ["workspaceId", "credentialId"], |
|
0 commit comments