You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`--credential-id <value>`| No | OAuth credential identifier for connectors that require OAuth. |
661
-
|`--api-key <value>`| No | Write-only API key for connectors that use API-key authentication. |
660
+
|`--credential-id <value>`| No | OAuth credential identifier for connector types whose `auth.mode` is `oauth` (see connector types); omit it for `apiKey` connectors. |
661
+
|`--api-key <value>`| No | Write-only API key for connector types whose `auth.mode` is `apiKey` (see connector types), or a personal access token for an OAuth connector that also accepts one, such as GitHub. Send it instead of `credentialId`. Pass a raw key, or a secret reference written as the whole value `{{SECRET_NAME}}`, which the server resolves; `$SECRET_NAME` is not a reference. |
662
662
|`--source-config <json\|@file>`| Yes | Connector-specific source selection and filtering configuration. (JSON, or @path / @- to read a file or stdin). |
663
663
|`--sync-interval-minutes <value>`| No | Scheduled synchronization interval in minutes; zero disables scheduling. |
|`--credential-id <value>`| No | OAuth credential identifier for connectors that require OAuth. |
2166
-
|`--api-key <value>`| No | Write-only API key for connectors that use API-key authentication. |
2165
+
|`--credential-id <value>`| No | OAuth credential identifier for connector types whose `auth.mode` is `oauth` (see connector types); omit it for `apiKey` connectors. |
2166
+
|`--api-key <value>`| No | Write-only API key for connector types whose `auth.mode` is `apiKey` (see connector types), or a personal access token for an OAuth connector that also accepts one, such as GitHub. Send it instead of `credentialId`. Pass a raw key, or a secret reference written as the whole value `{{SECRET_NAME}}`, which the server resolves; `$SECRET_NAME` is not a reference. |
2167
2167
|`--source-config <json\|@file>`| Yes | Connector-specific source selection and filtering configuration. (JSON, or @path / @- to read a file or stdin). |
2168
2168
|`--sync-interval-minutes <value>`| No | Scheduled synchronization interval in minutes; zero disables scheduling. |
Copy file name to clipboardExpand all lines: apps/docs/openapi-v2-knowledge.json
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -5449,13 +5449,13 @@
5449
5449
"description": "Registered connector type."
5450
5450
},
5451
5451
"credentialId": {
5452
-
"description": "OAuth credential identifier for connectors that require OAuth.",
5452
+
"description": "OAuth credential identifier for connector types whose `auth.mode` is `oauth` (see connector types); omit it for `apiKey` connectors.",
5453
5453
"type": "string",
5454
5454
"minLength": 1,
5455
5455
"maxLength": 255
5456
5456
},
5457
5457
"apiKey": {
5458
-
"description": "Write-only API key for connectors that use API-key authentication.",
5458
+
"description": "Write-only API key for connector types whose `auth.mode` is `apiKey` (see connector types), or a personal access token for an OAuth connector that also accepts one, such as GitHub. Send it instead of `credentialId`. Pass a raw key, or a secret reference written as the whole value `{{SECRET_NAME}}`, which the server resolves; `$SECRET_NAME` is not a reference.",
Copy file name to clipboardExpand all lines: apps/docs/openapi-v2-resources.json
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -15414,7 +15414,7 @@
15414
15414
"mode": {
15415
15415
"type": "string",
15416
15416
"const": "oauth",
15417
-
"description": "Authenticates with an OAuth credential."
15417
+
"description": "Authenticates with an OAuth credential; pass `credentialId` when creating the connector."
15418
15418
},
15419
15419
"provider": {
15420
15420
"type": "string",
@@ -15437,7 +15437,7 @@
15437
15437
"mode": {
15438
15438
"type": "string",
15439
15439
"const": "apiKey",
15440
-
"description": "Authenticates with a stored API key."
15440
+
"description": "Authenticates with a stored API key; pass `apiKey`, and no `credentialId`, when creating the connector."
15441
15441
},
15442
15442
"label": {
15443
15443
"description": "Label shown above the key field.",
@@ -15456,7 +15456,7 @@
15456
15456
"additionalProperties": false
15457
15457
}
15458
15458
],
15459
-
"description": "How the connector authenticates against its source."
15459
+
"description": "How the connector authenticates against its source: `oauth` connectors take `credentialId` (GitHub also accepts a personal access token as `apiKey`), `apiKey` connectors take `apiKey`."
15460
15460
},
15461
15461
"configFields": {
15462
15462
"type": "array",
@@ -15634,7 +15634,7 @@
15634
15634
"mode": {
15635
15635
"type": "string",
15636
15636
"enum": ["oauth", "apiKey"],
15637
-
"description": "How the connector authenticates against its source."
15637
+
"description": "How the connector authenticates against its source: `oauth` connectors take `credentialId` (GitHub also accepts a personal access token as `apiKey`), `apiKey` connectors take `apiKey`."
Copy file name to clipboardExpand all lines: apps/sim/lib/api/contracts/v2/catalog.ts
+16-4Lines changed: 16 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -671,15 +671,23 @@ export const v2ConnectorTypeSchema = z
671
671
auth: z
672
672
.discriminatedUnion('mode',[
673
673
z.object({
674
-
mode: z.literal('oauth').describe('Authenticates with an OAuth credential.'),
674
+
mode: z
675
+
.literal('oauth')
676
+
.describe(
677
+
'Authenticates with an OAuth credential; pass `credentialId` when creating the connector.'
678
+
),
675
679
provider: z.string().describe('OAuth service the credential must authenticate.'),
676
680
requiredScopes: z
677
681
.array(z.string())
678
682
.optional()
679
683
.describe('Scopes the credential must carry.'),
680
684
}),
681
685
z.object({
682
-
mode: z.literal('apiKey').describe('Authenticates with a stored API key.'),
686
+
mode: z
687
+
.literal('apiKey')
688
+
.describe(
689
+
'Authenticates with a stored API key; pass `apiKey`, and no `credentialId`, when creating the connector.'
690
+
),
683
691
label: z.string().optional().describe('Label shown above the key field.'),
684
692
placeholder: z.string().optional().describe('Placeholder shown in the key field.'),
685
693
optional: z
@@ -689,7 +697,9 @@ export const v2ConnectorTypeSchema = z
689
697
),
690
698
}),
691
699
])
692
-
.describe('How the connector authenticates against its source.'),
700
+
.describe(
701
+
'How the connector authenticates against its source: `oauth` connectors take `credentialId` (GitHub also accepts a personal access token as `apiKey`), `apiKey` connectors take `apiKey`.'
702
+
),
693
703
configFields: z
694
704
.array(v2ConnectorConfigFieldSchema)
695
705
.describe('Fields that make up the connector’s `sourceConfig`.'),
@@ -731,7 +741,9 @@ export const v2ConnectorTypeSummarySchema = z
731
741
.object({
732
742
mode: z
733
743
.enum(['oauth','apiKey'])
734
-
.describe('How the connector authenticates against its source.'),
744
+
.describe(
745
+
'How the connector authenticates against its source: `oauth` connectors take `credentialId` (GitHub also accepts a personal access token as `apiKey`), `apiKey` connectors take `apiKey`.'
746
+
),
735
747
})
736
748
.describe(
737
749
'Authentication mode only. `detail=full` adds the OAuth provider and scopes, or the API-key field labels.'
Copy file name to clipboardExpand all lines: apps/sim/lib/api/contracts/v2/knowledge.ts
+6-2Lines changed: 6 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1730,13 +1730,17 @@ export const v2CreateKnowledgeConnectorBodySchema = z
1730
1730
.min(1)
1731
1731
.max(255)
1732
1732
.optional()
1733
-
.describe('OAuth credential identifier for connectors that require OAuth.'),
1733
+
.describe(
1734
+
'OAuth credential identifier for connector types whose `auth.mode` is `oauth` (see connector types); omit it for `apiKey` connectors.'
1735
+
),
1734
1736
apiKey: z
1735
1737
.string()
1736
1738
.min(1)
1737
1739
.max(10_000)
1738
1740
.optional()
1739
-
.describe('Write-only API key for connectors that use API-key authentication.'),
1741
+
.describe(
1742
+
'Write-only API key for connector types whose `auth.mode` is `apiKey` (see connector types), or a personal access token for an OAuth connector that also accepts one, such as GitHub. Send it instead of `credentialId`. Pass a raw key, or a secret reference written as the whole value `{{SECRET_NAME}}`, which the server resolves; `$SECRET_NAME` is not a reference.'
`The ${connectorType} connector rejected sourceConfig without a reason — re-check its required fields in knowledgebases/connectors/${connectorType}.json before retrying; the same config will fail again.`,
360
+
`The ${connectorType} connector rejected sourceConfig without a reason — re-check its required fields with \`sim connector-types list --detail full\` (GET /api/v2/connector-types?detail=full) before retrying; the same config will fail again.`,
describe: 'OAuth credential identifier for connectors that require OAuth.',
14805
+
describe:
14806
+
'OAuth credential identifier for connector types whose `auth.mode` is `oauth` (see connector types); omit it for `apiKey` connectors.',
14806
14807
},
14807
14808
apiKey: {
14808
14809
kind: 'string',
14809
-
describe: 'Write-only API key for connectors that use API-key authentication.',
14810
+
describe:
14811
+
'Write-only API key for connector types whose `auth.mode` is `apiKey` (see connector types), or a personal access token for an OAuth connector that also accepts one, such as GitHub. Send it instead of `credentialId`. Pass a raw key, or a secret reference written as the whole value `{{SECRET_NAME}}`, which the server resolves; `$SECRET_NAME` is not a reference.',
0 commit comments