@adminide-stack/form-builder-core 5.1.4-alpha.328 → 5.1.4-alpha.332
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/config/__tests__/connectorFieldTokenResolver.test.d.ts +2 -0
- package/lib/config/__tests__/connectorFieldTokenResolver.test.d.ts.map +1 -0
- package/lib/config/configTypes.d.ts +3 -2
- package/lib/config/configTypes.d.ts.map +1 -1
- package/lib/config/connectorFieldTokenResolver.d.ts +11 -0
- package/lib/config/connectorFieldTokenResolver.d.ts.map +1 -0
- package/lib/config/connectorFieldTokenResolver.js +95 -0
- package/lib/config/connectorFieldTokenResolver.js.map +1 -0
- package/lib/config/connectorsConfig.d.ts.map +1 -1
- package/lib/config/connectorsConfig.js +45 -40
- package/lib/config/connectorsConfig.js.map +1 -1
- package/lib/config/llmProviderConfig.d.ts.map +1 -1
- package/lib/config/llmProviderConfig.js +31 -17
- package/lib/config/llmProviderConfig.js.map +1 -1
- package/lib/config/mcpConnectorConfig.d.ts.map +1 -1
- package/lib/config/mcpConnectorConfig.js +40 -20
- package/lib/config/mcpConnectorConfig.js.map +1 -1
- package/lib/index.d.ts +3 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +1 -1
- package/lib/utils/authMetaDataSchema.d.ts +187 -0
- package/lib/utils/authMetaDataSchema.d.ts.map +1 -0
- package/lib/utils/authMetaDataSchema.js +1559 -0
- package/lib/utils/authMetaDataSchema.js.map +1 -0
- package/lib/utils/schemaHelpers.d.ts +85 -0
- package/lib/utils/schemaHelpers.d.ts.map +1 -0
- package/lib/utils/schemaHelpers.js +473 -0
- package/lib/utils/schemaHelpers.js.map +1 -0
- package/package.json +3 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"connectorFieldTokenResolver.test.d.ts","sourceRoot":"","sources":["../../../src/config/__tests__/connectorFieldTokenResolver.test.ts"],"names":[],"mappings":""}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ContributeDefaultValueSourceType, KeyMgmtSecretType } from 'common';
|
|
1
|
+
import { ConfigurationScope, ContributeDefaultValueSourceType, KeyMgmtSecretType } from 'common';
|
|
2
2
|
/**
|
|
3
3
|
* Shared API configuration types.
|
|
4
4
|
*
|
|
@@ -83,11 +83,12 @@ export interface FormFieldConfig {
|
|
|
83
83
|
readOnly: boolean;
|
|
84
84
|
iconType: string;
|
|
85
85
|
/** Standardized semantic type for this field (e.g. 'api_key', 'subdomain', 'workspace_id'). */
|
|
86
|
-
genericType
|
|
86
|
+
genericType: GenericFieldType;
|
|
87
87
|
/** Where this field should be placed in the HTTP request (header, query, body, path). */
|
|
88
88
|
placement?: FieldPlacement;
|
|
89
89
|
/** Custom header/query-param name when placement is 'header' or 'query'. */
|
|
90
90
|
placementKey?: string;
|
|
91
|
+
scope?: ConfigurationScope;
|
|
91
92
|
}
|
|
92
93
|
export type ResourceSourceType = 'jsCode' | 'graphql' | 'rest-api';
|
|
93
94
|
export interface GraphQLResourceConfig {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"configTypes.d.ts","sourceRoot":"","sources":["../../src/config/configTypes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gCAAgC,EAAE,iBAAiB,EAAE,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"configTypes.d.ts","sourceRoot":"","sources":["../../src/config/configTypes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,gCAAgC,EAAE,iBAAiB,EAAE,MAAM,QAAQ,CAAC;AAEjG;;;;;;;;;GASG;AAMH,MAAM,WAAW,iBAAiB;IAC9B,IAAI,EAAE,gCAAgC,CAAC;IACvC,UAAU,EAAE,iBAAiB,CAAC;IAC9B,SAAS,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,MAAM,SAAS,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,QAAQ,CAAC;AAEzF;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jC,CAAC;IACF,2BAA2B;IAC3B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,OAAO,CAAC;IACjB,6CAA6C;IAC7C,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,wEAAwE;IACxE,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC,wFAAwF;IACxF,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,yCAAyC;IACzC,gBAAgB,CAAC,EAAE,qBAAqB,GAAG,oBAAoB,CAAC;IAChE,4EAA4E;IAC5E,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,oEAAoE;IACpE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,mDAAmD;IACnD,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,oEAAoE;IACpE,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,uDAAuD;IACvD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,yDAAyD;IACzD,WAAW,CAAC,EAAE,CAAC,SAAS,CAAC,GAAG,CAAC,QAAQ,CAAC,GAAG,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC;IAC/D,2BAA2B;IAC3B,UAAU,EAAE,sBAAsB,CAAC;IACnC,4EAA4E;IAC5E,MAAM,CAAC,EAAE,eAAe,EAAE,CAAC;IAC3B,2EAA2E;IAC3E,SAAS,CAAC,EAAE,kBAAkB,EAAE,CAAC;IACjC,mEAAmE;IACnE,aAAa,CAAC,EAAE,kBAAkB,EAAE,CAAC;IACrC,8EAA8E;IAC9E,IAAI,CAAC,EAAE,mBAAmB,CAAC;CAC9B"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { FormFieldConfig } from './configTypes';
|
|
2
|
+
type ConnectorFieldToken = Pick<FormFieldConfig, 'name' | 'genericType'>;
|
|
3
|
+
export interface ResolveConnectorFieldTokensOptions {
|
|
4
|
+
fields: ConnectorFieldToken[];
|
|
5
|
+
basePath?: string;
|
|
6
|
+
context?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare function resolveConnectorFieldTokensInString(value: string, options: ResolveConnectorFieldTokensOptions): string;
|
|
9
|
+
export declare function resolveConnectorFieldTokensInValue<T>(value: T, options: ResolveConnectorFieldTokensOptions): T;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=connectorFieldTokenResolver.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"connectorFieldTokenResolver.d.ts","sourceRoot":"","sources":["../../src/config/connectorFieldTokenResolver.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAErD,KAAK,mBAAmB,GAAG,IAAI,CAAC,eAAe,EAAE,MAAM,GAAG,aAAa,CAAC,CAAC;AAEzE,MAAM,WAAW,kCAAkC;IAC/C,MAAM,EAAE,mBAAmB,EAAE,CAAC;IAC9B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;CACpB;AAgGD,wBAAgB,mCAAmC,CAC/C,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,kCAAkC,GAC5C,MAAM,CAER;AAuBD,wBAAgB,kCAAkC,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,OAAO,EAAE,kCAAkC,GAAG,CAAC,CAE9G"}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
const DEFAULT_BASE_PATH = 'step1.oauthConnector';
|
|
2
|
+
const CONNECTOR_FIELD_TOKEN_PATTERN = /\{\{\s*connectorField\.([^}\s]+)\s*\}\}/g;
|
|
3
|
+
const escapeRegExp = value => value.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
|
|
4
|
+
const generatedFieldLeaf = field => field.genericType || field.name;
|
|
5
|
+
const buildConcreteTokenPattern = basePath => new RegExp(`\\{\\{\\s*${escapeRegExp(basePath)}\\.([^}\\s]+)\\s*\\}\\}`, 'g');
|
|
6
|
+
const describeContext = context => context ? ` in ${context}` : '';
|
|
7
|
+
const buildFieldLookup = fields => {
|
|
8
|
+
const byName = new Map();
|
|
9
|
+
const ambiguousNames = new Set();
|
|
10
|
+
const aliases = new Map();
|
|
11
|
+
const ambiguousAliases = new Set();
|
|
12
|
+
const addName = field => {
|
|
13
|
+
const existing = byName.get(field.name);
|
|
14
|
+
if (existing && existing !== field) {
|
|
15
|
+
ambiguousNames.add(field.name);
|
|
16
|
+
return;
|
|
17
|
+
}
|
|
18
|
+
byName.set(field.name, field);
|
|
19
|
+
};
|
|
20
|
+
const addAlias = (alias, field) => {
|
|
21
|
+
if (!alias) return;
|
|
22
|
+
const existing = aliases.get(alias);
|
|
23
|
+
if (existing && existing !== field) {
|
|
24
|
+
ambiguousAliases.add(alias);
|
|
25
|
+
return;
|
|
26
|
+
}
|
|
27
|
+
aliases.set(alias, field);
|
|
28
|
+
};
|
|
29
|
+
fields.forEach(field => {
|
|
30
|
+
addName(field);
|
|
31
|
+
addAlias(field.name, field);
|
|
32
|
+
addAlias(generatedFieldLeaf(field), field);
|
|
33
|
+
});
|
|
34
|
+
return {
|
|
35
|
+
byName,
|
|
36
|
+
ambiguousNames,
|
|
37
|
+
aliases,
|
|
38
|
+
ambiguousAliases
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
const resolveByName = (reference, options, lookup) => {
|
|
42
|
+
const {
|
|
43
|
+
byName,
|
|
44
|
+
ambiguousNames
|
|
45
|
+
} = lookup;
|
|
46
|
+
if (ambiguousNames.has(reference)) {
|
|
47
|
+
throw new Error(`Ambiguous connector field reference "${reference}"${describeContext(options.context)}`);
|
|
48
|
+
}
|
|
49
|
+
const field = byName.get(reference);
|
|
50
|
+
if (!field) {
|
|
51
|
+
const names = Array.from(byName.keys()).sort().join(', ');
|
|
52
|
+
throw new Error(`Unknown connector field reference "${reference}"${describeContext(options.context)}. Expected one of: ${names}`);
|
|
53
|
+
}
|
|
54
|
+
return generatedFieldLeaf(field);
|
|
55
|
+
};
|
|
56
|
+
const resolveByAlias = (reference, options, lookup) => {
|
|
57
|
+
const {
|
|
58
|
+
aliases,
|
|
59
|
+
ambiguousAliases
|
|
60
|
+
} = lookup;
|
|
61
|
+
if (ambiguousAliases.has(reference)) {
|
|
62
|
+
throw new Error(`Ambiguous connector field alias "${reference}"${describeContext(options.context)}`);
|
|
63
|
+
}
|
|
64
|
+
const field = aliases.get(reference);
|
|
65
|
+
return field ? generatedFieldLeaf(field) : null;
|
|
66
|
+
};
|
|
67
|
+
const resolveString = (value, options, lookup) => {
|
|
68
|
+
const basePath = options.basePath || DEFAULT_BASE_PATH;
|
|
69
|
+
const concreteTokenPattern = buildConcreteTokenPattern(basePath);
|
|
70
|
+
return value.replace(CONNECTOR_FIELD_TOKEN_PATTERN, (_match, reference) => {
|
|
71
|
+
const leaf = resolveByName(reference, options, lookup);
|
|
72
|
+
return `{{${basePath}.${leaf}}}`;
|
|
73
|
+
}).replace(concreteTokenPattern, (_match, reference) => {
|
|
74
|
+
const leaf = resolveByAlias(reference, options, lookup);
|
|
75
|
+
return leaf ? `{{${basePath}.${leaf}}}` : `{{${basePath}.${reference}}}`;
|
|
76
|
+
});
|
|
77
|
+
};
|
|
78
|
+
function resolveConnectorFieldTokensInString(value, options) {
|
|
79
|
+
return resolveString(value, options, buildFieldLookup(options.fields));
|
|
80
|
+
}
|
|
81
|
+
const resolveValue = (value, options, lookup) => {
|
|
82
|
+
if (typeof value === 'string') {
|
|
83
|
+
return resolveString(value, options, lookup);
|
|
84
|
+
}
|
|
85
|
+
if (Array.isArray(value)) {
|
|
86
|
+
return value.map(item => resolveValue(item, options, lookup));
|
|
87
|
+
}
|
|
88
|
+
if (value && typeof value === 'object') {
|
|
89
|
+
return Object.fromEntries(Object.entries(value).map(([key, item]) => [key, resolveValue(item, options, lookup)]));
|
|
90
|
+
}
|
|
91
|
+
return value;
|
|
92
|
+
};
|
|
93
|
+
function resolveConnectorFieldTokensInValue(value, options) {
|
|
94
|
+
return resolveValue(value, options, buildFieldLookup(options.fields));
|
|
95
|
+
}export{resolveConnectorFieldTokensInString,resolveConnectorFieldTokensInValue};//# sourceMappingURL=connectorFieldTokenResolver.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"connectorFieldTokenResolver.js","sources":["../../src/config/connectorFieldTokenResolver.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAA,MAAA,iBAAc,GAAA;AAEd,MAAK,6BAA2B,GAAA,0CAAyC;AAEzE,MAAM,YAAW,GAAA,KAAA,IAAA,KAAA,CAAA,OAAA,CAAA,qBAAkC,EAAA,MAAA,CAAA;MAC/C,kBAAQ,GAAA,KAAmB,IAAG,KAAA,CAAA,WAAA,IAAA,KAAA,CAAA,IAAA;MAC9B,yBAAkB,GAAA,QAAA,IAAA,IAAA,MAAA,CAAA,CAAA,UAAA,EAAA,YAAA,CAAA,QAAA,CAAA,CAAA,uBAAA,CAAA,EAAA,GAAA,CAAA;MAClB,eAAiB,GAAA,OAAA,IAAA,OAAA,GAAA,CAAA,IAAA,EAAA,OAAA,CAAA,CAAA,GAAA,EAAA;AACpB,MAAA,gBAAA,GAAA,MAAA,IAAA;AAgGD,EAAA,MAAA,MAAA,GAAA,IAAA,GAAgB,EAAA;AA4BhB,EAAA,MAAA,cAAA,GAAgB,IAAA,GAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connectorsConfig.d.ts","sourceRoot":"","sources":["../../src/config/connectorsConfig.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAErD,eAAO,MAAM,gBAAgB,EAAE,eAAe,
|
|
1
|
+
{"version":3,"file":"connectorsConfig.d.ts","sourceRoot":"","sources":["../../src/config/connectorsConfig.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAErD,eAAO,MAAM,gBAAgB,EAAE,eAAe,EA86+C7C,CAAC"}
|
|
@@ -1020,7 +1020,7 @@ import {KeyMgmtSecretType,ContributeDefaultValueSourceType}from'common';const co
|
|
|
1020
1020
|
urlParams: [],
|
|
1021
1021
|
headers: [{
|
|
1022
1022
|
key: 'Authorization',
|
|
1023
|
-
value: 'Bearer {{
|
|
1023
|
+
value: 'Bearer {{connectorField.airtable-personal-access-token}}'
|
|
1024
1024
|
}],
|
|
1025
1025
|
body: {
|
|
1026
1026
|
format: 'JSON',
|
|
@@ -1459,17 +1459,19 @@ import {KeyMgmtSecretType,ContributeDefaultValueSourceType}from'common';const co
|
|
|
1459
1459
|
title: 'Amazon Bedrock',
|
|
1460
1460
|
description: 'Amazon Bedrock AWS credentials configuration',
|
|
1461
1461
|
providerUrl: '',
|
|
1462
|
+
enabled: true,
|
|
1462
1463
|
icon: {
|
|
1463
|
-
name: '
|
|
1464
|
+
name: 'AiOutlineCloudServer',
|
|
1464
1465
|
style: {
|
|
1465
1466
|
fontSize: 'large'
|
|
1466
1467
|
}
|
|
1467
1468
|
},
|
|
1468
1469
|
logo: '_side/thirdparty/logos/all-images-ai.svg',
|
|
1469
|
-
|
|
1470
|
+
color: '#6350FB',
|
|
1470
1471
|
authMethods: ['api_key'],
|
|
1472
|
+
categories: ['llm'],
|
|
1471
1473
|
fields: [{
|
|
1472
|
-
name: '
|
|
1474
|
+
name: 'amazonBedrockRegion',
|
|
1473
1475
|
label: 'Amazon Bedrock Region',
|
|
1474
1476
|
type: 'string',
|
|
1475
1477
|
placeholder: 'AWS region (e.g., us-east-1, us-west-2)',
|
|
@@ -1485,7 +1487,7 @@ import {KeyMgmtSecretType,ContributeDefaultValueSourceType}from'common';const co
|
|
|
1485
1487
|
iconType: '',
|
|
1486
1488
|
genericType: 'region'
|
|
1487
1489
|
}, {
|
|
1488
|
-
name: '
|
|
1490
|
+
name: 'amazonBedrockAccessKeyId',
|
|
1489
1491
|
label: 'Amazon Bedrock Access Key ID',
|
|
1490
1492
|
type: 'string',
|
|
1491
1493
|
placeholder: 'Starts with AKIA or ASIA (e.g., AKIAIOSFODNN7EXAMPLE)',
|
|
@@ -1503,9 +1505,9 @@ import {KeyMgmtSecretType,ContributeDefaultValueSourceType}from'common';const co
|
|
|
1503
1505
|
enumValues: [],
|
|
1504
1506
|
readOnly: false,
|
|
1505
1507
|
iconType: '',
|
|
1506
|
-
genericType: '
|
|
1508
|
+
genericType: 'access_key'
|
|
1507
1509
|
}, {
|
|
1508
|
-
name: '
|
|
1510
|
+
name: 'amazonBedrockSecretAccessKey',
|
|
1509
1511
|
label: 'Amazon Bedrock Secret Access Key',
|
|
1510
1512
|
type: 'string',
|
|
1511
1513
|
placeholder: '40-character string (e.g., wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY)',
|
|
@@ -1523,13 +1525,13 @@ import {KeyMgmtSecretType,ContributeDefaultValueSourceType}from'common';const co
|
|
|
1523
1525
|
enumValues: [],
|
|
1524
1526
|
readOnly: false,
|
|
1525
1527
|
iconType: '',
|
|
1526
|
-
genericType: '
|
|
1528
|
+
genericType: 'secret_access_key'
|
|
1527
1529
|
}, {
|
|
1528
1530
|
name: 'howToGetBedrockCredentials',
|
|
1529
1531
|
label: 'How to get bedrock credentials',
|
|
1530
1532
|
type: 'string',
|
|
1531
1533
|
placeholder: '',
|
|
1532
|
-
description: '<ol class="tiptap-ordered-list"><li class="tiptap-list-item"><p>Go to <a target="_blank" rel="noopener noreferrer nofollow" class="text-blue-600 underline hover:text-blue-800" href="https://console.aws.amazon.com/iam">https://console.aws.amazon.com/iam</a></p></li><li class="tiptap-list-item"><p>Users → select/create a user</p></li><li class="tiptap-list-item"><p>Security credentials → Create access key</p></li><li class="tiptap-list-item"><p>Choose
|
|
1534
|
+
description: '<ol class="tiptap-ordered-list"><li class="tiptap-list-item"><p>Go to <a target="_blank" rel="noopener noreferrer nofollow" class="text-blue-600 underline hover:text-blue-800" href="https://console.aws.amazon.com/iam">https://console.aws.amazon.com/iam</a></p></li><li class="tiptap-list-item"><p>Users → select/create a user</p></li><li class="tiptap-list-item"><p>Security credentials → Create access key</p></li><li class="tiptap-list-item"><p>Choose "Application running outside AWS" → Next</p></li><li class="tiptap-list-item"><p>Copy <strong>Access Key ID</strong> and <strong>Secret Access Key</strong> immediately</p></li><li class="tiptap-list-item"><p>Note the region where Bedrock is enabled (usually us-east-1 or us-west-2)</p></li></ol>',
|
|
1533
1535
|
required: false,
|
|
1534
1536
|
defaultValue: '',
|
|
1535
1537
|
isConfigField: false,
|
|
@@ -1539,10 +1541,8 @@ import {KeyMgmtSecretType,ContributeDefaultValueSourceType}from'common';const co
|
|
|
1539
1541
|
enumValues: [],
|
|
1540
1542
|
readOnly: true,
|
|
1541
1543
|
iconType: 'info',
|
|
1542
|
-
genericType: 'info'
|
|
1543
|
-
|
|
1544
|
-
}],
|
|
1545
|
-
categories: ['ai & machine learning']
|
|
1544
|
+
genericType: 'info'
|
|
1545
|
+
}]
|
|
1546
1546
|
}, {
|
|
1547
1547
|
id: 'ambee',
|
|
1548
1548
|
title: 'Ambee',
|
|
@@ -2077,7 +2077,7 @@ import {KeyMgmtSecretType,ContributeDefaultValueSourceType}from'common';const co
|
|
|
2077
2077
|
urlParams: [],
|
|
2078
2078
|
headers: [{
|
|
2079
2079
|
key: 'Authorization',
|
|
2080
|
-
value: 'Bearer {{
|
|
2080
|
+
value: 'Bearer {{connectorField.apify-api-key}}'
|
|
2081
2081
|
}],
|
|
2082
2082
|
body: {
|
|
2083
2083
|
format: 'JSON',
|
|
@@ -2703,7 +2703,7 @@ import {KeyMgmtSecretType,ContributeDefaultValueSourceType}from'common';const co
|
|
|
2703
2703
|
urlParams: [],
|
|
2704
2704
|
headers: [{
|
|
2705
2705
|
key: 'Authorization',
|
|
2706
|
-
value: '{{
|
|
2706
|
+
value: '{{connectorField.assembly-ai-assemblyai-api-key}}'
|
|
2707
2707
|
}],
|
|
2708
2708
|
body: {
|
|
2709
2709
|
format: 'JSON',
|
|
@@ -8620,7 +8620,7 @@ import {KeyMgmtSecretType,ContributeDefaultValueSourceType}from'common';const co
|
|
|
8620
8620
|
urlParams: [],
|
|
8621
8621
|
headers: [{
|
|
8622
8622
|
key: 'Authorization',
|
|
8623
|
-
value: 'Bearer {{
|
|
8623
|
+
value: 'Bearer {{connectorField.cohere-api-key}}'
|
|
8624
8624
|
}, {
|
|
8625
8625
|
key: 'Content-Type',
|
|
8626
8626
|
value: 'application/json'
|
|
@@ -9039,7 +9039,7 @@ import {KeyMgmtSecretType,ContributeDefaultValueSourceType}from'common';const co
|
|
|
9039
9039
|
urlParams: [],
|
|
9040
9040
|
headers: [{
|
|
9041
9041
|
key: 'x-api-key',
|
|
9042
|
-
value: '{{
|
|
9042
|
+
value: '{{connectorField.composio-api-key}}'
|
|
9043
9043
|
}],
|
|
9044
9044
|
body: {
|
|
9045
9045
|
format: 'JSON',
|
|
@@ -10963,7 +10963,7 @@ import {KeyMgmtSecretType,ContributeDefaultValueSourceType}from'common';const co
|
|
|
10963
10963
|
value: 'application/json'
|
|
10964
10964
|
}, {
|
|
10965
10965
|
key: 'Authorization',
|
|
10966
|
-
value: 'Bearer {{
|
|
10966
|
+
value: 'Bearer {{connectorField.deepseekai-api-key}}'
|
|
10967
10967
|
}],
|
|
10968
10968
|
body: {
|
|
10969
10969
|
format: 'JSON',
|
|
@@ -14418,7 +14418,7 @@ import {KeyMgmtSecretType,ContributeDefaultValueSourceType}from'common';const co
|
|
|
14418
14418
|
urlParams: [],
|
|
14419
14419
|
headers: [{
|
|
14420
14420
|
key: 'x-api-key',
|
|
14421
|
-
value: '{{
|
|
14421
|
+
value: '{{connectorField.exaSearchApiKey}}'
|
|
14422
14422
|
}, {
|
|
14423
14423
|
key: 'Content-Type',
|
|
14424
14424
|
value: 'application/json'
|
|
@@ -14988,7 +14988,7 @@ import {KeyMgmtSecretType,ContributeDefaultValueSourceType}from'common';const co
|
|
|
14988
14988
|
urlParams: [],
|
|
14989
14989
|
headers: [{
|
|
14990
14990
|
key: 'X-FIGMA-TOKEN',
|
|
14991
|
-
value: '{{
|
|
14991
|
+
value: '{{connectorField.figma-access-token}}'
|
|
14992
14992
|
}],
|
|
14993
14993
|
body: {
|
|
14994
14994
|
format: 'JSON',
|
|
@@ -15398,7 +15398,7 @@ import {KeyMgmtSecretType,ContributeDefaultValueSourceType}from'common';const co
|
|
|
15398
15398
|
urlParams: [],
|
|
15399
15399
|
headers: [{
|
|
15400
15400
|
key: 'Authorization',
|
|
15401
|
-
value: 'Bearer {{
|
|
15401
|
+
value: 'Bearer {{connectorField.firecrawl-api-key}}'
|
|
15402
15402
|
}],
|
|
15403
15403
|
body: {
|
|
15404
15404
|
format: 'JSON',
|
|
@@ -15530,7 +15530,7 @@ import {KeyMgmtSecretType,ContributeDefaultValueSourceType}from'common';const co
|
|
|
15530
15530
|
urlParams: [],
|
|
15531
15531
|
headers: [{
|
|
15532
15532
|
key: 'Authorization',
|
|
15533
|
-
value: 'Bearer {{
|
|
15533
|
+
value: 'Bearer {{connectorField.fireworks-api-key}}'
|
|
15534
15534
|
}],
|
|
15535
15535
|
body: {
|
|
15536
15536
|
format: 'JSON',
|
|
@@ -16834,7 +16834,7 @@ import {KeyMgmtSecretType,ContributeDefaultValueSourceType}from'common';const co
|
|
|
16834
16834
|
urlParams: [],
|
|
16835
16835
|
headers: [{
|
|
16836
16836
|
key: 'X-goog-api-key',
|
|
16837
|
-
value: '{{
|
|
16837
|
+
value: '{{connectorField.gemini-google-api-key}}'
|
|
16838
16838
|
}, {
|
|
16839
16839
|
key: 'Content-Type',
|
|
16840
16840
|
value: 'application/json'
|
|
@@ -17430,7 +17430,7 @@ import {KeyMgmtSecretType,ContributeDefaultValueSourceType}from'common';const co
|
|
|
17430
17430
|
urlParams: [],
|
|
17431
17431
|
headers: [{
|
|
17432
17432
|
key: 'Authorization',
|
|
17433
|
-
value: 'Bearer {{
|
|
17433
|
+
value: 'Bearer {{connectorField.github-personal-access-token}}'
|
|
17434
17434
|
}],
|
|
17435
17435
|
body: {
|
|
17436
17436
|
format: 'JSON',
|
|
@@ -18932,7 +18932,7 @@ import {KeyMgmtSecretType,ContributeDefaultValueSourceType}from'common';const co
|
|
|
18932
18932
|
urlParams: [],
|
|
18933
18933
|
headers: [{
|
|
18934
18934
|
key: 'Authorization',
|
|
18935
|
-
value: 'Bearer {{
|
|
18935
|
+
value: 'Bearer {{connectorField.groq-api-key}}'
|
|
18936
18936
|
}],
|
|
18937
18937
|
body: {
|
|
18938
18938
|
format: 'JSON',
|
|
@@ -20109,7 +20109,7 @@ import {KeyMgmtSecretType,ContributeDefaultValueSourceType}from'common';const co
|
|
|
20109
20109
|
urlParams: [],
|
|
20110
20110
|
headers: [{
|
|
20111
20111
|
key: 'Authorization',
|
|
20112
|
-
value: 'Bearer {{
|
|
20112
|
+
value: 'Bearer {{connectorField.hugging-face-huggingface-access-token}}'
|
|
20113
20113
|
}],
|
|
20114
20114
|
body: {
|
|
20115
20115
|
format: 'JSON',
|
|
@@ -21393,7 +21393,7 @@ import {KeyMgmtSecretType,ContributeDefaultValueSourceType}from'common';const co
|
|
|
21393
21393
|
urlParams: [],
|
|
21394
21394
|
headers: [{
|
|
21395
21395
|
key: 'Authorization',
|
|
21396
|
-
value: 'Bearer {{
|
|
21396
|
+
value: 'Bearer {{connectorField.jina-ai-jinaai-api-key}}'
|
|
21397
21397
|
}],
|
|
21398
21398
|
body: {
|
|
21399
21399
|
format: 'JSON',
|
|
@@ -22643,7 +22643,7 @@ import {KeyMgmtSecretType,ContributeDefaultValueSourceType}from'common';const co
|
|
|
22643
22643
|
urlParams: [],
|
|
22644
22644
|
headers: [{
|
|
22645
22645
|
key: 'x-api-key',
|
|
22646
|
-
value: '{{
|
|
22646
|
+
value: '{{connectorField.langsmith-api-key}}'
|
|
22647
22647
|
}],
|
|
22648
22648
|
body: {
|
|
22649
22649
|
format: 'JSON',
|
|
@@ -25976,7 +25976,7 @@ import {KeyMgmtSecretType,ContributeDefaultValueSourceType}from'common';const co
|
|
|
25976
25976
|
urlParams: [],
|
|
25977
25977
|
headers: [{
|
|
25978
25978
|
key: 'Authorization',
|
|
25979
|
-
value: 'Bearer {{
|
|
25979
|
+
value: 'Bearer {{connectorField.mistral-ai-mistralai-api-key}}'
|
|
25980
25980
|
}],
|
|
25981
25981
|
body: {
|
|
25982
25982
|
format: 'JSON',
|
|
@@ -26538,7 +26538,7 @@ import {KeyMgmtSecretType,ContributeDefaultValueSourceType}from'common';const co
|
|
|
26538
26538
|
logo: '_side/thirdparty/logos/moonclerk.svg',
|
|
26539
26539
|
color: '#6366f1',
|
|
26540
26540
|
authMethods: ['api_key'],
|
|
26541
|
-
categories: ['
|
|
26541
|
+
categories: ['ai & machine learning'],
|
|
26542
26542
|
fields: [{
|
|
26543
26543
|
name: 'moonshotApiKey',
|
|
26544
26544
|
label: 'Moonshot API Key',
|
|
@@ -26557,7 +26557,8 @@ import {KeyMgmtSecretType,ContributeDefaultValueSourceType}from'common';const co
|
|
|
26557
26557
|
uiWidget: 'password',
|
|
26558
26558
|
enumValues: [],
|
|
26559
26559
|
readOnly: false,
|
|
26560
|
-
iconType: ''
|
|
26560
|
+
iconType: '',
|
|
26561
|
+
genericType: 'api_key'
|
|
26561
26562
|
}, {
|
|
26562
26563
|
name: 'howToGetMoonshotApiKey',
|
|
26563
26564
|
label: 'How to get moonshot api key',
|
|
@@ -26572,7 +26573,8 @@ import {KeyMgmtSecretType,ContributeDefaultValueSourceType}from'common';const co
|
|
|
26572
26573
|
uiWidget: 'LabelWidget',
|
|
26573
26574
|
enumValues: [],
|
|
26574
26575
|
readOnly: true,
|
|
26575
|
-
iconType: 'info'
|
|
26576
|
+
iconType: 'info',
|
|
26577
|
+
genericType: 'info'
|
|
26576
26578
|
}],
|
|
26577
26579
|
resources: [{
|
|
26578
26580
|
name: 'moonshotTest',
|
|
@@ -26585,7 +26587,7 @@ import {KeyMgmtSecretType,ContributeDefaultValueSourceType}from'common';const co
|
|
|
26585
26587
|
urlParams: [],
|
|
26586
26588
|
headers: [{
|
|
26587
26589
|
key: 'Authorization',
|
|
26588
|
-
value: 'Bearer {{
|
|
26590
|
+
value: 'Bearer {{connectorField.moonshotApiKey}}'
|
|
26589
26591
|
}, {
|
|
26590
26592
|
key: 'Content-Type',
|
|
26591
26593
|
value: 'application/json'
|
|
@@ -38263,7 +38265,7 @@ import {KeyMgmtSecretType,ContributeDefaultValueSourceType}from'common';const co
|
|
|
38263
38265
|
type: 'jsCode',
|
|
38264
38266
|
config: {
|
|
38265
38267
|
jsCode: {
|
|
38266
|
-
query: "const { commands } = ARGUMENTS[0] || {};\n\nconst request = {\n apiKey: '{{
|
|
38268
|
+
query: "const { commands } = ARGUMENTS[0] || {};\n\nconst request = {\n apiKey: '{{connectorField.stripe-secret-key}}',\n provider: 'stripe',\n};\n\nif (commands) {\n return await commands.executeCommand('connect_credential', request);\n}\n\nreturn 'Not found commands';",
|
|
38267
38269
|
transformResults: ''
|
|
38268
38270
|
}
|
|
38269
38271
|
}
|
|
@@ -38278,7 +38280,7 @@ import {KeyMgmtSecretType,ContributeDefaultValueSourceType}from'common';const co
|
|
|
38278
38280
|
urlParams: [],
|
|
38279
38281
|
headers: [{
|
|
38280
38282
|
key: 'Authorization',
|
|
38281
|
-
value: 'Bearer {{
|
|
38283
|
+
value: 'Bearer {{connectorField.stripe-secret-key}}'
|
|
38282
38284
|
}],
|
|
38283
38285
|
body: {
|
|
38284
38286
|
format: 'JSON',
|
|
@@ -41923,7 +41925,7 @@ import {KeyMgmtSecretType,ContributeDefaultValueSourceType}from'common';const co
|
|
|
41923
41925
|
urlParams: [],
|
|
41924
41926
|
headers: [{
|
|
41925
41927
|
key: 'Authorization',
|
|
41926
|
-
value: 'Bearer {{
|
|
41928
|
+
value: 'Bearer {{connectorField.voyage-ai-voyageai-api-key}}'
|
|
41927
41929
|
}, {
|
|
41928
41930
|
key: 'content-type',
|
|
41929
41931
|
value: 'application/json'
|
|
@@ -43204,7 +43206,8 @@ import {KeyMgmtSecretType,ContributeDefaultValueSourceType}from'common';const co
|
|
|
43204
43206
|
uiWidget: 'password',
|
|
43205
43207
|
enumValues: [],
|
|
43206
43208
|
readOnly: false,
|
|
43207
|
-
iconType: ''
|
|
43209
|
+
iconType: '',
|
|
43210
|
+
genericType: 'api_key'
|
|
43208
43211
|
}, {
|
|
43209
43212
|
name: 'info',
|
|
43210
43213
|
label: 'Info',
|
|
@@ -43219,7 +43222,8 @@ import {KeyMgmtSecretType,ContributeDefaultValueSourceType}from'common';const co
|
|
|
43219
43222
|
uiWidget: 'LabelWidget',
|
|
43220
43223
|
enumValues: [],
|
|
43221
43224
|
readOnly: true,
|
|
43222
|
-
iconType: 'info'
|
|
43225
|
+
iconType: 'info',
|
|
43226
|
+
genericType: 'info'
|
|
43223
43227
|
}],
|
|
43224
43228
|
resources: [{
|
|
43225
43229
|
name: 'xAiApi',
|
|
@@ -43235,7 +43239,7 @@ import {KeyMgmtSecretType,ContributeDefaultValueSourceType}from'common';const co
|
|
|
43235
43239
|
value: 'application/json'
|
|
43236
43240
|
}, {
|
|
43237
43241
|
key: 'Authorization',
|
|
43238
|
-
value: 'Bearer {{
|
|
43242
|
+
value: 'Bearer {{connectorField.xaiApiKey}}'
|
|
43239
43243
|
}],
|
|
43240
43244
|
body: {
|
|
43241
43245
|
format: 'Raw',
|
|
@@ -43919,7 +43923,8 @@ import {KeyMgmtSecretType,ContributeDefaultValueSourceType}from'common';const co
|
|
|
43919
43923
|
label: 'China (com.cn)'
|
|
43920
43924
|
}],
|
|
43921
43925
|
readOnly: false,
|
|
43922
|
-
iconType: ''
|
|
43926
|
+
iconType: '',
|
|
43927
|
+
genericType: 'region'
|
|
43923
43928
|
}]
|
|
43924
43929
|
}, {
|
|
43925
43930
|
id: 'zoho-desk',
|