@squadbase/vite-server 0.1.5-dev.0 → 0.1.6
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/dist/cli/index.js +411 -236
- package/dist/connectors/airtable-oauth.js +0 -8
- package/dist/connectors/gmail-oauth.js +0 -8
- package/dist/connectors/gmail.js +0 -8
- package/dist/connectors/google-ads.js +0 -8
- package/dist/connectors/google-analytics-oauth.js +0 -8
- package/dist/connectors/google-calendar-oauth.js +0 -8
- package/dist/connectors/google-calendar.js +0 -10
- package/dist/connectors/hubspot-oauth.js +0 -6
- package/dist/connectors/influxdb.d.ts +5 -0
- package/dist/connectors/influxdb.js +767 -0
- package/dist/connectors/intercom-oauth.js +0 -6
- package/dist/connectors/linear.d.ts +5 -0
- package/dist/connectors/linear.js +688 -0
- package/dist/connectors/linkedin-ads.js +0 -8
- package/dist/connectors/meta-ads-oauth.d.ts +5 -0
- package/dist/connectors/meta-ads-oauth.js +795 -0
- package/dist/connectors/meta-ads.d.ts +5 -0
- package/dist/connectors/meta-ads.js +780 -0
- package/dist/connectors/notion-oauth.js +0 -6
- package/dist/connectors/shopify-oauth.js +0 -6
- package/dist/connectors/stripe-api-key.js +0 -4
- package/dist/connectors/stripe-oauth.js +0 -6
- package/dist/connectors/tiktok-ads.d.ts +5 -0
- package/dist/connectors/tiktok-ads.js +840 -0
- package/dist/connectors/zendesk-oauth.js +0 -6
- package/dist/index.js +411 -236
- package/dist/main.js +411 -236
- package/dist/vite-plugin.js +411 -236
- package/package.json +21 -1
package/dist/vite-plugin.js
CHANGED
|
@@ -18863,14 +18863,14 @@ var init_NormalizedSchema = __esm({
|
|
|
18863
18863
|
throw new Error("@smithy/core/schema - cannot iterate non-struct schema.");
|
|
18864
18864
|
}
|
|
18865
18865
|
const struct = this.getSchema();
|
|
18866
|
-
const
|
|
18866
|
+
const z80 = struct[4].length;
|
|
18867
18867
|
let it = struct[anno.it];
|
|
18868
|
-
if (it &&
|
|
18868
|
+
if (it && z80 === it.length) {
|
|
18869
18869
|
yield* it;
|
|
18870
18870
|
return;
|
|
18871
18871
|
}
|
|
18872
|
-
it = Array(
|
|
18873
|
-
for (let i6 = 0; i6 <
|
|
18872
|
+
it = Array(z80);
|
|
18873
|
+
for (let i6 = 0; i6 < z80; ++i6) {
|
|
18874
18874
|
const k6 = struct[4][i6];
|
|
18875
18875
|
const v7 = member([struct[5][i6], 0], k6);
|
|
18876
18876
|
yield it[i6] = [k6, v7];
|
|
@@ -19546,12 +19546,12 @@ var init_split_header = __esm({
|
|
|
19546
19546
|
"../../node_modules/@smithy/core/dist-es/submodules/serde/split-header.js"() {
|
|
19547
19547
|
"use strict";
|
|
19548
19548
|
splitHeader = (value) => {
|
|
19549
|
-
const
|
|
19549
|
+
const z80 = value.length;
|
|
19550
19550
|
const values = [];
|
|
19551
19551
|
let withinQuotes = false;
|
|
19552
19552
|
let prevChar = void 0;
|
|
19553
19553
|
let anchor = 0;
|
|
19554
|
-
for (let i6 = 0; i6 <
|
|
19554
|
+
for (let i6 = 0; i6 < z80; ++i6) {
|
|
19555
19555
|
const char = value[i6];
|
|
19556
19556
|
switch (char) {
|
|
19557
19557
|
case `"`:
|
|
@@ -19572,12 +19572,12 @@ var init_split_header = __esm({
|
|
|
19572
19572
|
values.push(value.slice(anchor));
|
|
19573
19573
|
return values.map((v7) => {
|
|
19574
19574
|
v7 = v7.trim();
|
|
19575
|
-
const
|
|
19576
|
-
if (
|
|
19575
|
+
const z81 = v7.length;
|
|
19576
|
+
if (z81 < 2) {
|
|
19577
19577
|
return v7;
|
|
19578
19578
|
}
|
|
19579
|
-
if (v7[0] === `"` && v7[
|
|
19580
|
-
v7 = v7.slice(1,
|
|
19579
|
+
if (v7[0] === `"` && v7[z81 - 1] === `"`) {
|
|
19580
|
+
v7 = v7.slice(1, z81 - 1);
|
|
19581
19581
|
}
|
|
19582
19582
|
return v7.replace(/\\"/g, '"');
|
|
19583
19583
|
});
|
|
@@ -20975,11 +20975,11 @@ var init_EndpointCache = __esm({
|
|
|
20975
20975
|
}
|
|
20976
20976
|
hash(endpointParams) {
|
|
20977
20977
|
let buffer = "";
|
|
20978
|
-
const { parameters:
|
|
20979
|
-
if (
|
|
20978
|
+
const { parameters: parameters64 } = this;
|
|
20979
|
+
if (parameters64.length === 0) {
|
|
20980
20980
|
return false;
|
|
20981
20981
|
}
|
|
20982
|
-
for (const param of
|
|
20982
|
+
for (const param of parameters64) {
|
|
20983
20983
|
const val = String(endpointParams[param] ?? "");
|
|
20984
20984
|
if (val.includes("|;")) {
|
|
20985
20985
|
return false;
|
|
@@ -21696,15 +21696,15 @@ var init_resolveEndpoint = __esm({
|
|
|
21696
21696
|
init_utils();
|
|
21697
21697
|
resolveEndpoint = (ruleSetObject, options) => {
|
|
21698
21698
|
const { endpointParams, logger: logger2 } = options;
|
|
21699
|
-
const { parameters:
|
|
21699
|
+
const { parameters: parameters64, rules } = ruleSetObject;
|
|
21700
21700
|
options.logger?.debug?.(`${debugId} Initial EndpointParams: ${toDebugString(endpointParams)}`);
|
|
21701
|
-
const paramsWithDefault = Object.entries(
|
|
21701
|
+
const paramsWithDefault = Object.entries(parameters64).filter(([, v7]) => v7.default != null).map(([k6, v7]) => [k6, v7.default]);
|
|
21702
21702
|
if (paramsWithDefault.length > 0) {
|
|
21703
21703
|
for (const [paramKey, paramDefaultValue] of paramsWithDefault) {
|
|
21704
21704
|
endpointParams[paramKey] = endpointParams[paramKey] ?? paramDefaultValue;
|
|
21705
21705
|
}
|
|
21706
21706
|
}
|
|
21707
|
-
const requiredParams = Object.entries(
|
|
21707
|
+
const requiredParams = Object.entries(parameters64).filter(([, v7]) => v7.required).map(([k6]) => k6);
|
|
21708
21708
|
for (const requiredParam of requiredParams) {
|
|
21709
21709
|
if (endpointParams[requiredParam] == null) {
|
|
21710
21710
|
throw new EndpointError(`Missing required parameter: '${requiredParam}'`);
|
|
@@ -27314,8 +27314,8 @@ var init_ProtocolLib = __esm({
|
|
|
27314
27314
|
constructor(queryCompat = false) {
|
|
27315
27315
|
this.queryCompat = queryCompat;
|
|
27316
27316
|
}
|
|
27317
|
-
resolveRestContentType(defaultContentType,
|
|
27318
|
-
const members =
|
|
27317
|
+
resolveRestContentType(defaultContentType, inputSchema77) {
|
|
27318
|
+
const members = inputSchema77.getMemberSchemas();
|
|
27319
27319
|
const httpPayloadMember = Object.values(members).find((m6) => {
|
|
27320
27320
|
return !!m6.getMergedTraits().httpPayload;
|
|
27321
27321
|
});
|
|
@@ -27330,7 +27330,7 @@ var init_ProtocolLib = __esm({
|
|
|
27330
27330
|
} else {
|
|
27331
27331
|
return defaultContentType;
|
|
27332
27332
|
}
|
|
27333
|
-
} else if (!
|
|
27333
|
+
} else if (!inputSchema77.isUnitSchema()) {
|
|
27334
27334
|
const hasBody = Object.values(members).find((m6) => {
|
|
27335
27335
|
const { httpQuery, httpQueryParams, httpHeader, httpLabel, httpPrefixHeaders } = m6.getMergedTraits();
|
|
27336
27336
|
const noPrefixHeaders = httpPrefixHeaders === void 0;
|
|
@@ -28173,9 +28173,9 @@ var init_AwsRestJsonProtocol = __esm({
|
|
|
28173
28173
|
}
|
|
28174
28174
|
async serializeRequest(operationSchema, input, context) {
|
|
28175
28175
|
const request2 = await super.serializeRequest(operationSchema, input, context);
|
|
28176
|
-
const
|
|
28176
|
+
const inputSchema77 = NormalizedSchema.of(operationSchema.input);
|
|
28177
28177
|
if (!request2.headers["content-type"]) {
|
|
28178
|
-
const contentType = this.mixin.resolveRestContentType(this.getDefaultContentType(),
|
|
28178
|
+
const contentType = this.mixin.resolveRestContentType(this.getDefaultContentType(), inputSchema77);
|
|
28179
28179
|
if (contentType) {
|
|
28180
28180
|
request2.headers["content-type"] = contentType;
|
|
28181
28181
|
}
|
|
@@ -28187,8 +28187,8 @@ var init_AwsRestJsonProtocol = __esm({
|
|
|
28187
28187
|
}
|
|
28188
28188
|
async deserializeResponse(operationSchema, context, response) {
|
|
28189
28189
|
const output = await super.deserializeResponse(operationSchema, context, response);
|
|
28190
|
-
const
|
|
28191
|
-
for (const [name, member2] of
|
|
28190
|
+
const outputSchema77 = NormalizedSchema.of(operationSchema.output);
|
|
28191
|
+
for (const [name, member2] of outputSchema77.structIterator()) {
|
|
28192
28192
|
if (member2.getMemberTraits().httpPayload && !(name in output)) {
|
|
28193
28193
|
output[name] = null;
|
|
28194
28194
|
}
|
|
@@ -32052,22 +32052,22 @@ var init_loadCognitoIdentity = __esm({
|
|
|
32052
32052
|
});
|
|
32053
32053
|
|
|
32054
32054
|
// ../../node_modules/@aws-sdk/credential-provider-cognito-identity/dist-es/fromCognitoIdentity.js
|
|
32055
|
-
function fromCognitoIdentity(
|
|
32055
|
+
function fromCognitoIdentity(parameters64) {
|
|
32056
32056
|
return async (awsIdentityProperties) => {
|
|
32057
|
-
|
|
32057
|
+
parameters64.logger?.debug("@aws-sdk/credential-provider-cognito-identity - fromCognitoIdentity");
|
|
32058
32058
|
const { GetCredentialsForIdentityCommand: GetCredentialsForIdentityCommand2, CognitoIdentityClient: CognitoIdentityClient2 } = await Promise.resolve().then(() => (init_loadCognitoIdentity(), loadCognitoIdentity_exports));
|
|
32059
|
-
const fromConfigs = (property) =>
|
|
32060
|
-
const { Credentials: { AccessKeyId = throwOnMissingAccessKeyId(
|
|
32059
|
+
const fromConfigs = (property) => parameters64.clientConfig?.[property] ?? parameters64.parentClientConfig?.[property] ?? awsIdentityProperties?.callerClientConfig?.[property];
|
|
32060
|
+
const { Credentials: { AccessKeyId = throwOnMissingAccessKeyId(parameters64.logger), Expiration, SecretKey = throwOnMissingSecretKey(parameters64.logger), SessionToken } = throwOnMissingCredentials(parameters64.logger) } = await (parameters64.client ?? new CognitoIdentityClient2(Object.assign({}, parameters64.clientConfig ?? {}, {
|
|
32061
32061
|
region: fromConfigs("region"),
|
|
32062
32062
|
profile: fromConfigs("profile"),
|
|
32063
32063
|
userAgentAppId: fromConfigs("userAgentAppId")
|
|
32064
32064
|
}))).send(new GetCredentialsForIdentityCommand2({
|
|
32065
|
-
CustomRoleArn:
|
|
32066
|
-
IdentityId:
|
|
32067
|
-
Logins:
|
|
32065
|
+
CustomRoleArn: parameters64.customRoleArn,
|
|
32066
|
+
IdentityId: parameters64.identityId,
|
|
32067
|
+
Logins: parameters64.logins ? await resolveLogins(parameters64.logins) : void 0
|
|
32068
32068
|
}));
|
|
32069
32069
|
return {
|
|
32070
|
-
identityId:
|
|
32070
|
+
identityId: parameters64.identityId,
|
|
32071
32071
|
accessKeyId: AccessKeyId,
|
|
32072
32072
|
secretAccessKey: SecretKey,
|
|
32073
32073
|
sessionToken: SessionToken,
|
|
@@ -44628,11 +44628,11 @@ var require_bignumber = __commonJS({
|
|
|
44628
44628
|
return n6 > 0 || n6 === i6 ? i6 : i6 - 1;
|
|
44629
44629
|
}
|
|
44630
44630
|
function coeffToString(a6) {
|
|
44631
|
-
var s6,
|
|
44631
|
+
var s6, z80, i6 = 1, j6 = a6.length, r6 = a6[0] + "";
|
|
44632
44632
|
for (; i6 < j6; ) {
|
|
44633
44633
|
s6 = a6[i6++] + "";
|
|
44634
|
-
|
|
44635
|
-
for (;
|
|
44634
|
+
z80 = LOG_BASE - s6.length;
|
|
44635
|
+
for (; z80--; s6 = "0" + s6) ;
|
|
44636
44636
|
r6 += s6;
|
|
44637
44637
|
}
|
|
44638
44638
|
for (j6 = r6.length; r6.charCodeAt(--j6) === 48; ) ;
|
|
@@ -44665,15 +44665,15 @@ var require_bignumber = __commonJS({
|
|
|
44665
44665
|
function toExponential(str, e6) {
|
|
44666
44666
|
return (str.length > 1 ? str.charAt(0) + "." + str.slice(1) : str) + (e6 < 0 ? "e" : "e+") + e6;
|
|
44667
44667
|
}
|
|
44668
|
-
function toFixedPoint(str, e6,
|
|
44668
|
+
function toFixedPoint(str, e6, z80) {
|
|
44669
44669
|
var len, zs;
|
|
44670
44670
|
if (e6 < 0) {
|
|
44671
|
-
for (zs =
|
|
44671
|
+
for (zs = z80 + "."; ++e6; zs += z80) ;
|
|
44672
44672
|
str = zs + str;
|
|
44673
44673
|
} else {
|
|
44674
44674
|
len = str.length;
|
|
44675
44675
|
if (++e6 > len) {
|
|
44676
|
-
for (zs =
|
|
44676
|
+
for (zs = z80, e6 -= len; --e6; zs += z80) ;
|
|
44677
44677
|
str += zs;
|
|
44678
44678
|
} else if (e6 < len) {
|
|
44679
44679
|
str = str.slice(0, e6) + "." + str.slice(e6);
|
|
@@ -66439,11 +66439,7 @@ var snowflakeOnboarding = new ConnectorOnboarding({
|
|
|
66439
66439
|
8. \u7D50\u679C\u306B\u5FDC\u3058\u3066\u5206\u5C90:
|
|
66440
66440
|
- **\u30C6\u30FC\u30D6\u30EB\u304C2\u3064\u4EE5\u4E0A**: \`askUserQuestion\`\uFF08multiSelect: true\uFF09\u3067\u30E6\u30FC\u30B6\u30FC\u306B\u63D0\u793A\u3057\u3001\u4F7F\u7528\u3059\u308B\u30C6\u30FC\u30D6\u30EB\u3092\u9078\u629E\u3055\u305B\u308B\u3002description \u306B\u306F\u30C7\u30FC\u30BF\u30D9\u30FC\u30B9\u540D.\u30B9\u30AD\u30FC\u30DE\u540D\u3092\u8A18\u8F09\u3059\u308B
|
|
66441
66441
|
- **\u30C6\u30FC\u30D6\u30EB\u304C1\u3064\u3060\u3051**: askUserQuestion \u306F\u4F7F\u308F\u305A\u81EA\u52D5\u63A1\u7528
|
|
66442
|
-
9. \`
|
|
66443
|
-
- \`database\`: \u9078\u629E\u3055\u308C\u305F\u30C7\u30FC\u30BF\u30D9\u30FC\u30B9\u540D\uFF08\u8907\u6570\u306E\u5834\u5408\u306F\u30AB\u30F3\u30DE\u533A\u5207\u308A\uFF09
|
|
66444
|
-
- \`schema\`: \u9078\u629E\u3055\u308C\u305F\u30B9\u30AD\u30FC\u30DE\u540D\uFF08\u8907\u6570\u306E\u5834\u5408\u306F\u30AB\u30F3\u30DE\u533A\u5207\u308A\uFF09
|
|
66445
|
-
- \`tables\`: \u9078\u629E\u3055\u308C\u305F\u30C6\u30FC\u30D6\u30EB\u540D\uFF08\u5B8C\u5168\u4FEE\u98FE\u540D database.schema.table\u3001\u8907\u6570\u306E\u5834\u5408\u306F\u30AB\u30F3\u30DE\u533A\u5207\u308A\u3002\u300C\u5168\u30C6\u30FC\u30D6\u30EB\u300D\u306E\u5834\u5408\u306F "{database}.{schema}.*"\uFF09
|
|
66446
|
-
- \`note\`: \u30BB\u30C3\u30C8\u30A2\u30C3\u30D7\u5185\u5BB9\u306E\u7C21\u5358\u306A\u8AAC\u660E
|
|
66442
|
+
9. Phase 5 \u306E \`finalizeSetup\` \u306B\u6E21\u3059 \`projectKnowledge\` \u3067\u306F\u3001\u30B9\u30C6\u30C3\u30D72\u3067\u9078\u629E\u3057\u305F\u30C7\u30FC\u30BF\u30D9\u30FC\u30B9\u3092 \`#### \u30B9\u30B3\u30FC\u30D7\` \u7BC0\u306B \`- database: <\u30C7\u30FC\u30BF\u30D9\u30FC\u30B9\u540D>\` \u3068\u3057\u3066\u3001\u30B9\u30C6\u30C3\u30D75\u3067\u9078\u629E\u3057\u305F\u30B9\u30AD\u30FC\u30DE\u3092 \`- schema: <\u30C7\u30FC\u30BF\u30D9\u30FC\u30B9\u540D>.<\u30B9\u30AD\u30FC\u30DE\u540D>\` \u3068\u3057\u3066\u8A18\u9332\u3059\u308B\u3053\u3068\uFF08\u8907\u6570\u9078\u629E\u3057\u305F\u5834\u5408\u306F\u8907\u6570\u884C\u3067\u5217\u6319\u3059\u308B\uFF09\u3002\u300C\u5168\u30C6\u30FC\u30D6\u30EB\u300D\u304C\u9078\u3070\u308C\u305F\u30B9\u30AD\u30FC\u30DE\u306B\u3064\u3044\u3066\u306F \`#### \u30C6\u30FC\u30D6\u30EB\` \u3067\u500B\u5225\u5217\u6319\u3067\u304D\u306A\u3044\u305F\u3081\u3001\u30B9\u30B3\u30FC\u30D7\u7BC0\u306B \`- allTables: <\u30C7\u30FC\u30BF\u30D9\u30FC\u30B9\u540D>.<\u30B9\u30AD\u30FC\u30DE\u540D>.*\` \u306E\u5F62\u3067\u30EF\u30A4\u30EB\u30C9\u30AB\u30FC\u30C9\u7BC4\u56F2\u3092\u660E\u793A\u7684\u306B\u8A18\u9332\u3059\u308B\u3002\u500B\u5225\u306B\u9078\u629E\u3055\u308C\u305F\u30C6\u30FC\u30D6\u30EB\u306F \`#### \u30C6\u30FC\u30D6\u30EB\` \u7BC0\u3067\u5217\u6319\u3055\u308C\u308B\u305F\u3081\u3001\u30B9\u30B3\u30FC\u30D7\u7BC0\u306B\u306F\u66F8\u304B\u306A\u3044\u3002
|
|
66447
66443
|
|
|
66448
66444
|
#### \u5236\u7D04
|
|
66449
66445
|
- askUserQuestion \u306E options \u306B\u306F\u6700\u4F4E2\u4EF6\u5FC5\u8981\u30021\u4EF6\u3057\u304B\u306A\u3044\u5834\u5408\u306F askUserQuestion \u3092\u547C\u3070\u305A\u6B21\u306E\u30B9\u30C6\u30C3\u30D7\u306B\u9032\u3080\u3053\u3068
|
|
@@ -66466,11 +66462,7 @@ var snowflakeOnboarding = new ConnectorOnboarding({
|
|
|
66466
66462
|
8. Branch based on results:
|
|
66467
66463
|
- **2 or more tables**: Present them to the user via \`askUserQuestion\` (multiSelect: true) and let them select which tables to use. Include database.schema in the description
|
|
66468
66464
|
- **Exactly 1 table**: Do NOT call askUserQuestion. Auto-select it
|
|
66469
|
-
9.
|
|
66470
|
-
- \`database\`: Selected database name(s) (comma-separated if multiple)
|
|
66471
|
-
- \`schema\`: Selected schema name(s) (comma-separated if multiple)
|
|
66472
|
-
- \`tables\`: Selected table names (fully qualified database.schema.table, comma-separated if multiple. Use "{database}.{schema}.*" for "all tables" schemas)
|
|
66473
|
-
- \`note\`: Brief description of the setup
|
|
66465
|
+
9. When passing \`projectKnowledge\` to \`finalizeSetup\` in Phase 5, record each database selected in step 2 under the \`#### \u30B9\u30B3\u30FC\u30D7\` subsection as \`- database: <database_name>\` and each schema selected in step 5 as \`- schema: <database_name>.<schema_name>\` (one bullet per selection if multiple were chosen). For schemas where "all tables" was chosen, the wildcard range cannot be expressed by the per-table enumeration under \`#### \u30C6\u30FC\u30D6\u30EB\`, so record it in the scope section as \`- allTables: <database_name>.<schema_name>.*\`. Individually selected tables are listed under \`#### \u30C6\u30FC\u30D6\u30EB\`, so do NOT repeat them in the scope section.
|
|
66474
66466
|
|
|
66475
66467
|
#### Constraints
|
|
66476
66468
|
- askUserQuestion options requires at least 2 items. If there is only 1 item, do NOT call askUserQuestion \u2014 proceed to the next step directly
|
|
@@ -67604,10 +67596,7 @@ var bigqueryOnboarding = new ConnectorOnboarding({
|
|
|
67604
67596
|
7. \u7D50\u679C\u306B\u5FDC\u3058\u3066\u5206\u5C90:
|
|
67605
67597
|
- **\u30C6\u30FC\u30D6\u30EB\u304C2\u3064\u4EE5\u4E0A**: \`askUserQuestion\`\uFF08multiSelect: true\uFF09\u3067\u30E6\u30FC\u30B6\u30FC\u306B\u63D0\u793A\u3057\u3001\u4F7F\u7528\u3059\u308B\u30C6\u30FC\u30D6\u30EB\u3092\u9078\u629E\u3055\u305B\u308B\u3002description \u306B\u306F\u30C7\u30FC\u30BF\u30BB\u30C3\u30C8\u540D\u3092\u8A18\u8F09\u3059\u308B
|
|
67606
67598
|
- **\u30C6\u30FC\u30D6\u30EB\u304C1\u3064\u3060\u3051**: askUserQuestion \u306F\u4F7F\u308F\u305A\u81EA\u52D5\u63A1\u7528
|
|
67607
|
-
8. \`
|
|
67608
|
-
- \`dataset\`: \u9078\u629E\u3055\u308C\u305F\u30C7\u30FC\u30BF\u30BB\u30C3\u30C8\u540D\uFF08\u8907\u6570\u306E\u5834\u5408\u306F\u30AB\u30F3\u30DE\u533A\u5207\u308A\uFF09\u3002\u30D1\u30D6\u30EA\u30C3\u30AF\u30C7\u30FC\u30BF\u30BB\u30C3\u30C8\u306F \`bigquery-public-data.{dataset}\` \u306E\u5F62\u5F0F\u3067\u8A18\u9332\u3059\u308B
|
|
67609
|
-
- \`tables\`: \u9078\u629E\u3055\u308C\u305F\u30C6\u30FC\u30D6\u30EB\u540D\uFF08\u8907\u6570\u306E\u5834\u5408\u306F\u30AB\u30F3\u30DE\u533A\u5207\u308A\uFF09
|
|
67610
|
-
- \`note\`: \u30BB\u30C3\u30C8\u30A2\u30C3\u30D7\u5185\u5BB9\u306E\u7C21\u5358\u306A\u8AAC\u660E
|
|
67599
|
+
8. Phase 5 \u306E \`finalizeSetup\` \u306B\u6E21\u3059 \`projectKnowledge\` \u3067\u306F\u3001\u30B9\u30C6\u30C3\u30D75\u3067\u30E6\u30FC\u30B6\u30FC\u304C\u9078\u629E\u3057\u305F\u30C7\u30FC\u30BF\u30BB\u30C3\u30C8\u3092 \`#### \u30B9\u30B3\u30FC\u30D7\` \u7BC0\u306B \`- dataset: <\u30C7\u30FC\u30BF\u30BB\u30C3\u30C8\u540D>\` \u3068\u3057\u3066\u8A18\u9332\u3059\u308B\u3053\u3068\uFF08\u8907\u6570\u9078\u629E\u3057\u305F\u5834\u5408\u306F\u8907\u6570\u884C\u3067\u5217\u6319\u3059\u308B\uFF09\u3002\u30D1\u30D6\u30EA\u30C3\u30AF\u30C7\u30FC\u30BF\u30BB\u30C3\u30C8\u306F \`bigquery-public-data.{dataset}\` \u306E\u5F62\u5F0F\u3067\u8A18\u9332\u3059\u308B\u3002\u9078\u629E\u3057\u305F\u30C6\u30FC\u30D6\u30EB\u306F \`#### \u30C6\u30FC\u30D6\u30EB\` \u7BC0\u3067\u5217\u6319\u3055\u308C\u308B\u305F\u3081\u3001\u30B9\u30B3\u30FC\u30D7\u7BC0\u306B \`tables\` \u306F\u66F8\u304B\u306A\u3044\u3002
|
|
67611
67600
|
|
|
67612
67601
|
#### \u5236\u7D04
|
|
67613
67602
|
- **\u30C6\u30FC\u30D6\u30EB\u306E\u884C\u30C7\u30FC\u30BF\u3092\u8AAD\u307F\u53D6\u3089\u306A\u3044\u3053\u3068**\u3002\u5B9F\u884C\u3057\u3066\u3088\u3044\u306E\u306F\u4E0A\u8A18\u624B\u9806\u3067\u6307\u5B9A\u3055\u308C\u305F\u30E1\u30BF\u30C7\u30FC\u30BF\u53D6\u5F97\u30AF\u30A8\u30EA\u306E\u307F\u3002\u305D\u308C\u4EE5\u5916\u306E\u30AF\u30A8\u30EA\u306F\u5B9F\u884C\u7981\u6B62
|
|
@@ -67636,10 +67625,7 @@ var bigqueryOnboarding = new ConnectorOnboarding({
|
|
|
67636
67625
|
7. Branch based on results:
|
|
67637
67626
|
- **2 or more tables**: Present them to the user via \`askUserQuestion\` (multiSelect: true) and let them select which tables to use. Include the dataset name in the description
|
|
67638
67627
|
- **Exactly 1 table**: Do NOT call askUserQuestion. Auto-select it
|
|
67639
|
-
8.
|
|
67640
|
-
- \`dataset\`: Selected dataset name(s) (comma-separated if multiple). Record public datasets in the format \`bigquery-public-data.{dataset}\`
|
|
67641
|
-
- \`tables\`: Selected table name(s) (comma-separated if multiple)
|
|
67642
|
-
- \`note\`: Brief description of the setup
|
|
67628
|
+
8. When passing \`projectKnowledge\` to \`finalizeSetup\` in Phase 5, record each dataset selected in step 5 under the \`#### \u30B9\u30B3\u30FC\u30D7\` subsection as \`- dataset: <dataset_name>\` (one bullet per dataset if multiple were chosen). Use the form \`bigquery-public-data.{dataset}\` for public datasets. Selected tables are listed under \`#### \u30C6\u30FC\u30D6\u30EB\`, so do NOT add a \`tables:\` entry to the scope section.
|
|
67643
67629
|
|
|
67644
67630
|
#### Constraints
|
|
67645
67631
|
- **Do NOT read table row data**. Only the metadata queries specified in the steps above are allowed. All other queries are forbidden
|
|
@@ -68066,10 +68052,7 @@ var bigqueryOnboarding2 = new ConnectorOnboarding({
|
|
|
68066
68052
|
7. \u7D50\u679C\u306B\u5FDC\u3058\u3066\u5206\u5C90:
|
|
68067
68053
|
- **\u30C6\u30FC\u30D6\u30EB\u304C2\u3064\u4EE5\u4E0A**: \`askUserQuestion\`\uFF08multiSelect: true\uFF09\u3067\u30E6\u30FC\u30B6\u30FC\u306B\u63D0\u793A\u3057\u3001\u4F7F\u7528\u3059\u308B\u30C6\u30FC\u30D6\u30EB\u3092\u9078\u629E\u3055\u305B\u308B\u3002description \u306B\u306F\u30C7\u30FC\u30BF\u30BB\u30C3\u30C8\u540D\u3092\u8A18\u8F09\u3059\u308B
|
|
68068
68054
|
- **\u30C6\u30FC\u30D6\u30EB\u304C1\u3064\u3060\u3051**: askUserQuestion \u306F\u4F7F\u308F\u305A\u81EA\u52D5\u63A1\u7528
|
|
68069
|
-
8. \`
|
|
68070
|
-
- \`dataset\`: \u9078\u629E\u3055\u308C\u305F\u30C7\u30FC\u30BF\u30BB\u30C3\u30C8\u540D\uFF08\u8907\u6570\u306E\u5834\u5408\u306F\u30AB\u30F3\u30DE\u533A\u5207\u308A\uFF09\u3002\u30D1\u30D6\u30EA\u30C3\u30AF\u30C7\u30FC\u30BF\u30BB\u30C3\u30C8\u306F \`bigquery-public-data.{dataset}\` \u306E\u5F62\u5F0F\u3067\u8A18\u9332\u3059\u308B
|
|
68071
|
-
- \`tables\`: \u9078\u629E\u3055\u308C\u305F\u30C6\u30FC\u30D6\u30EB\u540D\uFF08\u8907\u6570\u306E\u5834\u5408\u306F\u30AB\u30F3\u30DE\u533A\u5207\u308A\uFF09
|
|
68072
|
-
- \`note\`: \u30BB\u30C3\u30C8\u30A2\u30C3\u30D7\u5185\u5BB9\u306E\u7C21\u5358\u306A\u8AAC\u660E
|
|
68055
|
+
8. Phase 5 \u306E \`finalizeSetup\` \u306B\u6E21\u3059 \`projectKnowledge\` \u3067\u306F\u3001\u30B9\u30C6\u30C3\u30D75\u3067\u30E6\u30FC\u30B6\u30FC\u304C\u9078\u629E\u3057\u305F\u30C7\u30FC\u30BF\u30BB\u30C3\u30C8\u3092 \`#### \u30B9\u30B3\u30FC\u30D7\` \u7BC0\u306B \`- dataset: <\u30C7\u30FC\u30BF\u30BB\u30C3\u30C8\u540D>\` \u3068\u3057\u3066\u8A18\u9332\u3059\u308B\u3053\u3068\uFF08\u8907\u6570\u9078\u629E\u3057\u305F\u5834\u5408\u306F\u8907\u6570\u884C\u3067\u5217\u6319\u3059\u308B\uFF09\u3002\u30D1\u30D6\u30EA\u30C3\u30AF\u30C7\u30FC\u30BF\u30BB\u30C3\u30C8\u306F \`bigquery-public-data.{dataset}\` \u306E\u5F62\u5F0F\u3067\u8A18\u9332\u3059\u308B\u3002\u9078\u629E\u3057\u305F\u30C6\u30FC\u30D6\u30EB\u306F \`#### \u30C6\u30FC\u30D6\u30EB\` \u7BC0\u3067\u5217\u6319\u3055\u308C\u308B\u305F\u3081\u3001\u30B9\u30B3\u30FC\u30D7\u7BC0\u306B \`tables\` \u306F\u66F8\u304B\u306A\u3044\u3002
|
|
68073
68056
|
|
|
68074
68057
|
#### \u5236\u7D04
|
|
68075
68058
|
- **\u30C6\u30FC\u30D6\u30EB\u306E\u884C\u30C7\u30FC\u30BF\u3092\u8AAD\u307F\u53D6\u3089\u306A\u3044\u3053\u3068**\u3002\u5B9F\u884C\u3057\u3066\u3088\u3044\u306E\u306F\u4E0A\u8A18\u624B\u9806\u3067\u6307\u5B9A\u3055\u308C\u305F\u30E1\u30BF\u30C7\u30FC\u30BF\u53D6\u5F97\u30AF\u30A8\u30EA\u306E\u307F\u3002\u305D\u308C\u4EE5\u5916\u306E\u30AF\u30A8\u30EA\u306F\u5B9F\u884C\u7981\u6B62
|
|
@@ -68098,10 +68081,7 @@ var bigqueryOnboarding2 = new ConnectorOnboarding({
|
|
|
68098
68081
|
7. Branch based on results:
|
|
68099
68082
|
- **2 or more tables**: Present them to the user via \`askUserQuestion\` (multiSelect: true) and let them select which tables to use. Include the dataset name in the description
|
|
68100
68083
|
- **Exactly 1 table**: Do NOT call askUserQuestion. Auto-select it
|
|
68101
|
-
8.
|
|
68102
|
-
- \`dataset\`: Selected dataset name(s) (comma-separated if multiple). Record public datasets in the format \`bigquery-public-data.{dataset}\`
|
|
68103
|
-
- \`tables\`: Selected table name(s) (comma-separated if multiple)
|
|
68104
|
-
- \`note\`: Brief description of the setup
|
|
68084
|
+
8. When passing \`projectKnowledge\` to \`finalizeSetup\` in Phase 5, record each dataset selected in step 5 under the \`#### \u30B9\u30B3\u30FC\u30D7\` subsection as \`- dataset: <dataset_name>\` (one bullet per dataset if multiple were chosen). Use the form \`bigquery-public-data.{dataset}\` for public datasets. Selected tables are listed under \`#### \u30C6\u30FC\u30D6\u30EB\`, so do NOT add a \`tables:\` entry to the scope section.
|
|
68105
68085
|
|
|
68106
68086
|
#### Constraints
|
|
68107
68087
|
- **Do NOT read table row data**. Only the metadata queries specified in the steps above are allowed. All other queries are forbidden
|
|
@@ -69721,10 +69701,6 @@ var googleAdsOnboarding = new ConnectorOnboarding({
|
|
|
69721
69701
|
- \`parameterSlug\`: \`"customer-id"\`
|
|
69722
69702
|
- \`options\`: \u30AB\u30B9\u30BF\u30DE\u30FC\u4E00\u89A7\u3002\u5404 option \u306E \`label\` \u306F \`\u30A2\u30AB\u30A6\u30F3\u30C8\u540D (id: \u30AB\u30B9\u30BF\u30DE\u30FCID)\` \u306E\u5F62\u5F0F\u3001\`value\` \u306F\u30AB\u30B9\u30BF\u30DE\u30FCID
|
|
69723
69703
|
5. \u30E6\u30FC\u30B6\u30FC\u304C\u9078\u629E\u3057\u305F\u30AB\u30B9\u30BF\u30DE\u30FC\u306E \`label\` \u304C\u30E1\u30C3\u30BB\u30FC\u30B8\u3068\u3057\u3066\u5C4A\u304F\u306E\u3067\u3001\u6B21\u306E\u30B9\u30C6\u30C3\u30D7\u306B\u9032\u3080
|
|
69724
|
-
6. \`updateConnectionContext\` \u3092\u547C\u3073\u51FA\u3059:
|
|
69725
|
-
- \`customer\`: \u9078\u629E\u3055\u308C\u305F\u30AB\u30B9\u30BF\u30DE\u30FC\u306E\u8868\u793A\u540D
|
|
69726
|
-
- \`customerId\`: \u9078\u629E\u3055\u308C\u305F\u30AB\u30B9\u30BF\u30DE\u30FCID
|
|
69727
|
-
- \`note\`: \u30BB\u30C3\u30C8\u30A2\u30C3\u30D7\u5185\u5BB9\u306E\u7C21\u5358\u306A\u8AAC\u660E
|
|
69728
69704
|
|
|
69729
69705
|
#### \u5236\u7D04
|
|
69730
69706
|
- **\u30BB\u30C3\u30C8\u30A2\u30C3\u30D7\u4E2D\u306B\u30EC\u30DD\u30FC\u30C8\u30C7\u30FC\u30BF\u3092\u53D6\u5F97\u3057\u306A\u3044\u3053\u3068**\u3002\u5B9F\u884C\u3057\u3066\u3088\u3044\u306E\u306F\u4E0A\u8A18\u624B\u9806\u3067\u6307\u5B9A\u3055\u308C\u305F\u30E1\u30BF\u30C7\u30FC\u30BF\u53D6\u5F97\u306E\u307F
|
|
@@ -69740,10 +69716,6 @@ var googleAdsOnboarding = new ConnectorOnboarding({
|
|
|
69740
69716
|
- \`parameterSlug\`: \`"customer-id"\`
|
|
69741
69717
|
- \`options\`: The customer list. Each option's \`label\` should be \`Account Name (id: customerId)\`, \`value\` should be the customer ID
|
|
69742
69718
|
5. The \`label\` of the user's selected customer will arrive as a message. Proceed to the next step
|
|
69743
|
-
6. Call \`updateConnectionContext\`:
|
|
69744
|
-
- \`customer\`: The selected customer's display name
|
|
69745
|
-
- \`customerId\`: The selected customer ID
|
|
69746
|
-
- \`note\`: Brief description of the setup
|
|
69747
69719
|
|
|
69748
69720
|
#### Constraints
|
|
69749
69721
|
- **Do NOT fetch report data during setup**. Only the metadata requests specified in the steps above are allowed
|
|
@@ -70586,10 +70558,6 @@ var googleAnalyticsOauthOnboarding = new ConnectorOnboarding({
|
|
|
70586
70558
|
- \`options\`: \u30D7\u30ED\u30D1\u30C6\u30A3\u4E00\u89A7\u3002\u5404 option \u306E \`label\` \u306F \`\u8868\u793A\u540D (id: \u30D7\u30ED\u30D1\u30C6\u30A3ID)\` \u306E\u5F62\u5F0F\u3001\`value\` \u306F\u30D7\u30ED\u30D1\u30C6\u30A3ID
|
|
70587
70559
|
- \u30D7\u30ED\u30D1\u30C6\u30A3\u304C **0\u4EF6** \u306E\u5834\u5408\u306F\u30BB\u30C3\u30C8\u30A2\u30C3\u30D7\u3092\u4E2D\u65AD\u3057\u3001\u30E6\u30FC\u30B6\u30FC\u306B\u30A2\u30AF\u30BB\u30B9\u53EF\u80FD\u306A\u30D7\u30ED\u30D1\u30C6\u30A3\u304C\u306A\u3044\u65E8\u3092\u4F1D\u3048\u308B
|
|
70588
70560
|
5. \u30E6\u30FC\u30B6\u30FC\u304C\u9078\u629E\u3057\u305F\u30D7\u30ED\u30D1\u30C6\u30A3\u306E \`label\` \u304C\u30E1\u30C3\u30BB\u30FC\u30B8\u3068\u3057\u3066\u5C4A\u304F\u306E\u3067\u3001\u6B21\u306E\u30B9\u30C6\u30C3\u30D7\u306B\u9032\u3080
|
|
70589
|
-
6. \`updateConnectionContext\` \u3092\u547C\u3073\u51FA\u3059:
|
|
70590
|
-
- \`property\`: \u9078\u629E\u3055\u308C\u305F\u30D7\u30ED\u30D1\u30C6\u30A3\u306E\u8868\u793A\u540D
|
|
70591
|
-
- \`propertyId\`: \u9078\u629E\u3055\u308C\u305F\u30D7\u30ED\u30D1\u30C6\u30A3ID
|
|
70592
|
-
- \`note\`: \u30BB\u30C3\u30C8\u30A2\u30C3\u30D7\u5185\u5BB9\u306E\u7C21\u5358\u306A\u8AAC\u660E
|
|
70593
70561
|
|
|
70594
70562
|
#### \u5236\u7D04
|
|
70595
70563
|
- **\u30BB\u30C3\u30C8\u30A2\u30C3\u30D7\u4E2D\u306B\u30EC\u30DD\u30FC\u30C8\u30C7\u30FC\u30BF\u3092\u53D6\u5F97\u3057\u306A\u3044\u3053\u3068**\u3002\u5B9F\u884C\u3057\u3066\u3088\u3044\u306E\u306F\u4E0A\u8A18\u624B\u9806\u3067\u6307\u5B9A\u3055\u308C\u305F\u30E1\u30BF\u30C7\u30FC\u30BF\u53D6\u5F97\u306E\u307F
|
|
@@ -70608,10 +70576,6 @@ var googleAnalyticsOauthOnboarding = new ConnectorOnboarding({
|
|
|
70608
70576
|
- \`options\`: The property list. Each option's \`label\` should be \`Display Name (id: propertyId)\`, \`value\` should be the property ID
|
|
70609
70577
|
- If **0 properties** are returned, abort setup and inform the user that no accessible properties are available
|
|
70610
70578
|
5. The \`label\` of the user's selected property will arrive as a message. Proceed to the next step
|
|
70611
|
-
6. Call \`updateConnectionContext\`:
|
|
70612
|
-
- \`property\`: The selected property's display name
|
|
70613
|
-
- \`propertyId\`: The selected property ID
|
|
70614
|
-
- \`note\`: Brief description of the setup
|
|
70615
70579
|
|
|
70616
70580
|
#### Constraints
|
|
70617
70581
|
- **Do NOT fetch report data during setup**. Only the metadata requests specified in the steps above are allowed
|
|
@@ -71183,11 +71147,6 @@ var googleCalendarOnboarding = new ConnectorOnboarding({
|
|
|
71183
71147
|
5. \u30E6\u30FC\u30B6\u30FC\u304C\u9078\u629E\u3057\u305F\u30AB\u30EC\u30F3\u30C0\u30FC\u306E \`label\` \u304B\u3089 owner \u306E\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9\u3092\u62BD\u51FA\u3057\u3001\`updateConnectionParameters\` \u3092\u547C\u3073\u51FA\u3057\u3066 \`impersonate-email\` \u3092\u6700\u7D42\u5024\u3067\u4E0A\u66F8\u304D\u3059\u308B:
|
|
71184
71148
|
- \`parameterSlug\`: \`"impersonate-email"\`
|
|
71185
71149
|
- \`options\`: \`[{ value: <ownerEmail>, label: <ownerEmail> }]\`
|
|
71186
|
-
6. \`updateConnectionContext\` \u3092\u547C\u3073\u51FA\u3057\u3066\u3001\u5BFE\u8C61\u60C5\u5831\u3092\u8A18\u9332\u3059\u308B:
|
|
71187
|
-
- \`user\`: \u6700\u7D42\u7684\u306B\u8A2D\u5B9A\u3057\u305F\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9
|
|
71188
|
-
- \`calendar\`: \u9078\u629E\u3055\u308C\u305F\u30AB\u30EC\u30F3\u30C0\u30FC\u540D
|
|
71189
|
-
- \`calendarId\`: \u9078\u629E\u3055\u308C\u305F\u30AB\u30EC\u30F3\u30C0\u30FCID
|
|
71190
|
-
- \`note\`: \u300CDomain-wide Delegation\u3067 {email} \u306E {calendar} \u306B\u30A2\u30AF\u30BB\u30B9\u300D\u306A\u3069\u306E\u8AAC\u660E
|
|
71191
71150
|
|
|
71192
71151
|
#### \u5236\u7D04
|
|
71193
71152
|
- **\u30B5\u30FC\u30D3\u30B9\u30A2\u30AB\u30A6\u30F3\u30C8\u306E\u30C9\u30E1\u30A4\u30F3\u5168\u4F53\u306E\u59D4\u4EFB\u8A2D\u5B9A\u304C\u5FC5\u8981\u3067\u3059**\u3002\`${listCalendarsToolName}\` \u306E \`errors\` \u306B\u6A29\u9650\u30A8\u30E9\u30FC\u304C\u51FA\u308B\u5834\u5408\u3001Google Workspace\u7BA1\u7406\u8005\u306BDomain-wide Delegation\u306E\u8A2D\u5B9A\u78BA\u8A8D\u3092\u4FC3\u3057\u3066\u304F\u3060\u3055\u3044
|
|
@@ -71210,11 +71169,6 @@ var googleCalendarOnboarding = new ConnectorOnboarding({
|
|
|
71210
71169
|
5. Extract the owner email from the \`label\` of the user's selected calendar, then call \`updateConnectionParameters\` to overwrite \`impersonate-email\` with the final value:
|
|
71211
71170
|
- \`parameterSlug\`: \`"impersonate-email"\`
|
|
71212
71171
|
- \`options\`: \`[{ value: <ownerEmail>, label: <ownerEmail> }]\`
|
|
71213
|
-
6. Call \`updateConnectionContext\` to record the target:
|
|
71214
|
-
- \`user\`: The final configured email address
|
|
71215
|
-
- \`calendar\`: The selected calendar's name
|
|
71216
|
-
- \`calendarId\`: The selected calendar ID
|
|
71217
|
-
- \`note\`: A description such as "Accessing {email}'s {calendar} via Domain-wide Delegation"
|
|
71218
71172
|
|
|
71219
71173
|
#### Constraints
|
|
71220
71174
|
- **Domain-wide Delegation must be configured on the service account**. If \`${listCalendarsToolName}\` returns permission errors in the \`errors\` field, ask the user to verify the Domain-wide Delegation setup with their Google Workspace administrator
|
|
@@ -71640,10 +71594,6 @@ var googleCalendarOauthOnboarding = new ConnectorOnboarding({
|
|
|
71640
71594
|
3. \`updateConnectionParameters\` \u3092\u547C\u3073\u51FA\u3059:
|
|
71641
71595
|
- \`parameterSlug\`: \`"calendar-id"\`
|
|
71642
71596
|
- \`value\`: \u9078\u629E\u3055\u308C\u305F\u30AB\u30EC\u30F3\u30C0\u30FCID
|
|
71643
|
-
4. \`updateConnectionContext\` \u3092\u547C\u3073\u51FA\u3059:
|
|
71644
|
-
- \`calendar\`: \u9078\u629E\u3055\u308C\u305F\u30AB\u30EC\u30F3\u30C0\u30FC\u540D
|
|
71645
|
-
- \`calendarId\`: \u9078\u629E\u3055\u308C\u305F\u30AB\u30EC\u30F3\u30C0\u30FCID
|
|
71646
|
-
- \`note\`: \u30BB\u30C3\u30C8\u30A2\u30C3\u30D7\u5185\u5BB9\u306E\u7C21\u5358\u306A\u8AAC\u660E
|
|
71647
71597
|
|
|
71648
71598
|
#### \u5236\u7D04
|
|
71649
71599
|
- **\u30BB\u30C3\u30C8\u30A2\u30C3\u30D7\u4E2D\u306B\u30A4\u30D9\u30F3\u30C8\u30C7\u30FC\u30BF\u3092\u53D6\u5F97\u3057\u306A\u3044\u3053\u3068**\u3002\u5B9F\u884C\u3057\u3066\u3088\u3044\u306E\u306F\u4E0A\u8A18\u624B\u9806\u3067\u6307\u5B9A\u3055\u308C\u305F\u30E1\u30BF\u30C7\u30FC\u30BF\u53D6\u5F97\u306E\u307F
|
|
@@ -71656,10 +71606,6 @@ var googleCalendarOauthOnboarding = new ConnectorOnboarding({
|
|
|
71656
71606
|
3. Call \`updateConnectionParameters\`:
|
|
71657
71607
|
- \`parameterSlug\`: \`"calendar-id"\`
|
|
71658
71608
|
- \`value\`: The selected calendar ID
|
|
71659
|
-
4. Call \`updateConnectionContext\`:
|
|
71660
|
-
- \`calendar\`: The selected calendar's name
|
|
71661
|
-
- \`calendarId\`: The selected calendar ID
|
|
71662
|
-
- \`note\`: Brief description of the setup
|
|
71663
71609
|
|
|
71664
71610
|
#### Constraints
|
|
71665
71611
|
- **Do NOT fetch event data during setup**. Only the metadata requests specified in the steps above are allowed
|
|
@@ -73461,9 +73407,6 @@ var hubspotOnboarding = new ConnectorOnboarding({
|
|
|
73461
73407
|
- \`method\`: \`"GET"\`
|
|
73462
73408
|
- \`path\`: \`"/account-info/v3/details"\`
|
|
73463
73409
|
2. \u30A8\u30E9\u30FC\u304C\u8FD4\u3055\u308C\u305F\u5834\u5408\u3001\u30E6\u30FC\u30B6\u30FC\u306BOAuth\u63A5\u7D9A\u306E\u8A2D\u5B9A\u3092\u78BA\u8A8D\u3059\u308B\u3088\u3046\u4F1D\u3048\u308B
|
|
73464
|
-
3. \`updateConnectionContext\` \u3092\u547C\u3073\u51FA\u3059:
|
|
73465
|
-
- \`account\`: HubSpot\u30A2\u30AB\u30A6\u30F3\u30C8\u540D\u307E\u305F\u306FID
|
|
73466
|
-
- \`note\`: \u30BB\u30C3\u30C8\u30A2\u30C3\u30D7\u5185\u5BB9\u306E\u7C21\u5358\u306A\u8AAC\u660E
|
|
73467
73410
|
|
|
73468
73411
|
#### \u5236\u7D04
|
|
73469
73412
|
- **\u30BB\u30C3\u30C8\u30A2\u30C3\u30D7\u4E2D\u306B\u30D3\u30B8\u30CD\u30B9\u30C7\u30FC\u30BF\u3092\u8AAD\u307F\u53D6\u3089\u306A\u3044\u3053\u3068**\u3002\u5B9F\u884C\u3057\u3066\u3088\u3044\u306E\u306F\u4E0A\u8A18\u624B\u9806\u3067\u6307\u5B9A\u3055\u308C\u305F\u30E1\u30BF\u30C7\u30FC\u30BF\u53D6\u5F97\u30EA\u30AF\u30A8\u30B9\u30C8\u306E\u307F
|
|
@@ -73474,9 +73417,6 @@ var hubspotOnboarding = new ConnectorOnboarding({
|
|
|
73474
73417
|
- \`method\`: \`"GET"\`
|
|
73475
73418
|
- \`path\`: \`"/account-info/v3/details"\`
|
|
73476
73419
|
2. If an error is returned, ask the user to check the OAuth connection settings
|
|
73477
|
-
3. Call \`updateConnectionContext\`:
|
|
73478
|
-
- \`account\`: HubSpot account name or ID
|
|
73479
|
-
- \`note\`: Brief description of the setup
|
|
73480
73420
|
|
|
73481
73421
|
#### Constraints
|
|
73482
73422
|
- **Do NOT read business data during setup**. Only the metadata request specified in the steps above is allowed
|
|
@@ -73756,9 +73696,6 @@ var stripeOnboarding = new ConnectorOnboarding({
|
|
|
73756
73696
|
- \`method\`: \`"GET"\`
|
|
73757
73697
|
- \`path\`: \`"/v1/accounts"\`
|
|
73758
73698
|
2. \u30A8\u30E9\u30FC\u304C\u8FD4\u3055\u308C\u305F\u5834\u5408\u3001\u30E6\u30FC\u30B6\u30FC\u306BOAuth\u63A5\u7D9A\u306E\u8A2D\u5B9A\u3092\u78BA\u8A8D\u3059\u308B\u3088\u3046\u4F1D\u3048\u308B
|
|
73759
|
-
3. \`updateConnectionContext\` \u3092\u547C\u3073\u51FA\u3059:
|
|
73760
|
-
- \`account\`: Stripe\u30A2\u30AB\u30A6\u30F3\u30C8\u60C5\u5831
|
|
73761
|
-
- \`note\`: \u30BB\u30C3\u30C8\u30A2\u30C3\u30D7\u5185\u5BB9\u306E\u7C21\u5358\u306A\u8AAC\u660E
|
|
73762
73699
|
|
|
73763
73700
|
#### \u5236\u7D04
|
|
73764
73701
|
- **\u30BB\u30C3\u30C8\u30A2\u30C3\u30D7\u4E2D\u306B\u6C7A\u6E08\u30C7\u30FC\u30BF\u3092\u8AAD\u307F\u53D6\u3089\u306A\u3044\u3053\u3068**\u3002\u5B9F\u884C\u3057\u3066\u3088\u3044\u306E\u306F\u4E0A\u8A18\u624B\u9806\u3067\u6307\u5B9A\u3055\u308C\u305F\u30E1\u30BF\u30C7\u30FC\u30BF\u53D6\u5F97\u30EA\u30AF\u30A8\u30B9\u30C8\u306E\u307F
|
|
@@ -73769,9 +73706,6 @@ var stripeOnboarding = new ConnectorOnboarding({
|
|
|
73769
73706
|
- \`method\`: \`"GET"\`
|
|
73770
73707
|
- \`path\`: \`"/v1/accounts"\`
|
|
73771
73708
|
2. If an error is returned, ask the user to check the OAuth connection settings
|
|
73772
|
-
3. Call \`updateConnectionContext\`:
|
|
73773
|
-
- \`account\`: Stripe account info
|
|
73774
|
-
- \`note\`: Brief description of the setup
|
|
73775
73709
|
|
|
73776
73710
|
#### Constraints
|
|
73777
73711
|
- **Do NOT read payment data during setup**. Only the metadata request specified in the steps above is allowed
|
|
@@ -74052,8 +73986,6 @@ var stripeApiKeyOnboarding = new ConnectorOnboarding({
|
|
|
74052
73986
|
- \`method\`: \`"GET"\`
|
|
74053
73987
|
- \`path\`: \`"/v1/balance"\`
|
|
74054
73988
|
2. \u30A8\u30E9\u30FC\u304C\u8FD4\u3055\u308C\u305F\u5834\u5408\u3001\u30E6\u30FC\u30B6\u30FC\u306BAPI\u30AD\u30FC\u306E\u8A2D\u5B9A\u3092\u78BA\u8A8D\u3059\u308B\u3088\u3046\u4F1D\u3048\u308B\uFF08Secret API Key\u307E\u305F\u306FRestricted API Key\u304C\u6B63\u3057\u304F\u8A2D\u5B9A\u3055\u308C\u3066\u3044\u308B\u304B\uFF09
|
|
74055
|
-
3. \`updateConnectionContext\` \u3092\u547C\u3073\u51FA\u3059:
|
|
74056
|
-
- \`note\`: \u30BB\u30C3\u30C8\u30A2\u30C3\u30D7\u5185\u5BB9\u306E\u7C21\u5358\u306A\u8AAC\u660E
|
|
74057
73989
|
|
|
74058
73990
|
#### \u5236\u7D04
|
|
74059
73991
|
- **\u30BB\u30C3\u30C8\u30A2\u30C3\u30D7\u4E2D\u306B\u6C7A\u6E08\u30C7\u30FC\u30BF\u3092\u8AAD\u307F\u53D6\u3089\u306A\u3044\u3053\u3068**\u3002\u5B9F\u884C\u3057\u3066\u3088\u3044\u306E\u306F\u4E0A\u8A18\u624B\u9806\u3067\u6307\u5B9A\u3055\u308C\u305F\u30E1\u30BF\u30C7\u30FC\u30BF\u53D6\u5F97\u30EA\u30AF\u30A8\u30B9\u30C8\u306E\u307F
|
|
@@ -74064,8 +73996,6 @@ var stripeApiKeyOnboarding = new ConnectorOnboarding({
|
|
|
74064
73996
|
- \`method\`: \`"GET"\`
|
|
74065
73997
|
- \`path\`: \`"/v1/balance"\`
|
|
74066
73998
|
2. If an error is returned, ask the user to check the API key settings (verify that the Secret API Key or Restricted API Key is configured correctly)
|
|
74067
|
-
3. Call \`updateConnectionContext\`:
|
|
74068
|
-
- \`note\`: Brief description of the setup
|
|
74069
73999
|
|
|
74070
74000
|
#### Constraints
|
|
74071
74001
|
- **Do NOT read payment data during setup**. Only the metadata request specified in the steps above is allowed
|
|
@@ -74375,10 +74305,6 @@ var airtableOauthOnboarding = new ConnectorOnboarding({
|
|
|
74375
74305
|
- \`method\`: \`"GET"\`
|
|
74376
74306
|
- \`path\`: \`"/meta/bases/{baseId}/tables"\`
|
|
74377
74307
|
5. \u30A8\u30E9\u30FC\u304C\u8FD4\u3055\u308C\u305F\u5834\u5408\u3001\u30E6\u30FC\u30B6\u30FC\u306B\u30D9\u30FC\u30B9\u306E\u5171\u6709\u8A2D\u5B9A\u3092\u78BA\u8A8D\u3059\u308B\u3088\u3046\u4F1D\u3048\u308B
|
|
74378
|
-
6. \`updateConnectionContext\` \u3092\u547C\u3073\u51FA\u3059:
|
|
74379
|
-
- \`base\`: \u30D9\u30FC\u30B9ID
|
|
74380
|
-
- \`tables\`: \u30C6\u30FC\u30D6\u30EB\u540D\u4E00\u89A7\uFF08\u30AB\u30F3\u30DE\u533A\u5207\u308A\uFF09
|
|
74381
|
-
- \`note\`: \u30BB\u30C3\u30C8\u30A2\u30C3\u30D7\u5185\u5BB9\u306E\u7C21\u5358\u306A\u8AAC\u660E
|
|
74382
74308
|
|
|
74383
74309
|
#### \u5236\u7D04
|
|
74384
74310
|
- **\u30BB\u30C3\u30C8\u30A2\u30C3\u30D7\u4E2D\u306B\u30C6\u30FC\u30D6\u30EB\u306E\u30EC\u30B3\u30FC\u30C9\u30C7\u30FC\u30BF\u3092\u8AAD\u307F\u53D6\u3089\u306A\u3044\u3053\u3068**\u3002\u5B9F\u884C\u3057\u3066\u3088\u3044\u306E\u306F\u4E0A\u8A18\u624B\u9806\u3067\u6307\u5B9A\u3055\u308C\u305F\u30E1\u30BF\u30C7\u30FC\u30BF\u53D6\u5F97\u30EA\u30AF\u30A8\u30B9\u30C8\u306E\u307F
|
|
@@ -74394,10 +74320,6 @@ var airtableOauthOnboarding = new ConnectorOnboarding({
|
|
|
74394
74320
|
- \`method\`: \`"GET"\`
|
|
74395
74321
|
- \`path\`: \`"/meta/bases/{baseId}/tables"\`
|
|
74396
74322
|
5. If an error is returned, ask the user to check the base sharing settings
|
|
74397
|
-
6. Call \`updateConnectionContext\`:
|
|
74398
|
-
- \`base\`: The base ID
|
|
74399
|
-
- \`tables\`: Table names (comma-separated)
|
|
74400
|
-
- \`note\`: Brief description of the setup
|
|
74401
74323
|
|
|
74402
74324
|
#### Constraints
|
|
74403
74325
|
- **Do NOT read table record data during setup**. Only the metadata request specified in the steps above is allowed
|
|
@@ -77304,9 +77226,6 @@ var shopifyOauthOnboarding = new ConnectorOnboarding({
|
|
|
77304
77226
|
- \`method\`: \`"GET"\`
|
|
77305
77227
|
- \`path\`: \`"/admin/api/2024-10/shop.json"\`
|
|
77306
77228
|
2. \u30A8\u30E9\u30FC\u304C\u8FD4\u3055\u308C\u305F\u5834\u5408\u3001\u30E6\u30FC\u30B6\u30FC\u306BOAuth\u63A5\u7D9A\u306E\u8A2D\u5B9A\u3092\u78BA\u8A8D\u3059\u308B\u3088\u3046\u4F1D\u3048\u308B
|
|
77307
|
-
3. \`updateConnectionContext\` \u3092\u547C\u3073\u51FA\u3059:
|
|
77308
|
-
- \`shop\`: Shopify\u30B7\u30E7\u30C3\u30D7\u60C5\u5831
|
|
77309
|
-
- \`note\`: \u30BB\u30C3\u30C8\u30A2\u30C3\u30D7\u5185\u5BB9\u306E\u7C21\u5358\u306A\u8AAC\u660E
|
|
77310
77229
|
|
|
77311
77230
|
#### \u5236\u7D04
|
|
77312
77231
|
- **\u30BB\u30C3\u30C8\u30A2\u30C3\u30D7\u4E2D\u306B\u30D3\u30B8\u30CD\u30B9\u30C7\u30FC\u30BF\uFF08\u6CE8\u6587\u3001\u9867\u5BA2\u306A\u3069\uFF09\u3092\u8AAD\u307F\u53D6\u3089\u306A\u3044\u3053\u3068**\u3002\u5B9F\u884C\u3057\u3066\u3088\u3044\u306E\u306F\u4E0A\u8A18\u624B\u9806\u3067\u6307\u5B9A\u3055\u308C\u305F\u30E1\u30BF\u30C7\u30FC\u30BF\u53D6\u5F97\u30EA\u30AF\u30A8\u30B9\u30C8\u306E\u307F
|
|
@@ -77317,9 +77236,6 @@ var shopifyOauthOnboarding = new ConnectorOnboarding({
|
|
|
77317
77236
|
- \`method\`: \`"GET"\`
|
|
77318
77237
|
- \`path\`: \`"/admin/api/2024-10/shop.json"\`
|
|
77319
77238
|
2. If an error is returned, ask the user to check the OAuth connection settings
|
|
77320
|
-
3. Call \`updateConnectionContext\`:
|
|
77321
|
-
- \`shop\`: Shopify shop info
|
|
77322
|
-
- \`note\`: Brief description of the setup
|
|
77323
77239
|
|
|
77324
77240
|
#### Constraints
|
|
77325
77241
|
- **Do NOT read business data (orders, customers, etc.) during setup**. Only the metadata request specified in the steps above is allowed
|
|
@@ -79582,9 +79498,6 @@ var notionOauthOnboarding = new ConnectorOnboarding({
|
|
|
79582
79498
|
- \`method\`: \`"GET"\`
|
|
79583
79499
|
- \`path\`: \`"/users/me"\`
|
|
79584
79500
|
2. \u30A8\u30E9\u30FC\u304C\u8FD4\u3055\u308C\u305F\u5834\u5408\u3001\u30E6\u30FC\u30B6\u30FC\u306BOAuth\u63A5\u7D9A\u306E\u8A2D\u5B9A\u3092\u78BA\u8A8D\u3059\u308B\u3088\u3046\u4F1D\u3048\u308B
|
|
79585
|
-
3. \`updateConnectionContext\` \u3092\u547C\u3073\u51FA\u3059:
|
|
79586
|
-
- \`account\`: Notion\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u540D\u307E\u305F\u306F\u30DC\u30C3\u30C8\u540D
|
|
79587
|
-
- \`note\`: \u30BB\u30C3\u30C8\u30A2\u30C3\u30D7\u5185\u5BB9\u306E\u7C21\u5358\u306A\u8AAC\u660E
|
|
79588
79501
|
|
|
79589
79502
|
#### \u5236\u7D04
|
|
79590
79503
|
- **\u30BB\u30C3\u30C8\u30A2\u30C3\u30D7\u4E2D\u306B\u30D3\u30B8\u30CD\u30B9\u30C7\u30FC\u30BF\u3092\u8AAD\u307F\u53D6\u3089\u306A\u3044\u3053\u3068**\u3002\u5B9F\u884C\u3057\u3066\u3088\u3044\u306E\u306F\u4E0A\u8A18\u624B\u9806\u3067\u6307\u5B9A\u3055\u308C\u305F\u30E1\u30BF\u30C7\u30FC\u30BF\u53D6\u5F97\u30EA\u30AF\u30A8\u30B9\u30C8\u306E\u307F
|
|
@@ -79595,9 +79508,6 @@ var notionOauthOnboarding = new ConnectorOnboarding({
|
|
|
79595
79508
|
- \`method\`: \`"GET"\`
|
|
79596
79509
|
- \`path\`: \`"/users/me"\`
|
|
79597
79510
|
2. If an error is returned, ask the user to check the OAuth connection settings
|
|
79598
|
-
3. Call \`updateConnectionContext\`:
|
|
79599
|
-
- \`account\`: Notion workspace name or bot name
|
|
79600
|
-
- \`note\`: Brief description of the setup
|
|
79601
79511
|
|
|
79602
79512
|
#### Constraints
|
|
79603
79513
|
- **Do NOT read business data during setup**. Only the metadata request specified in the steps above is allowed
|
|
@@ -79871,10 +79781,6 @@ var metaAdsOnboarding = new ConnectorOnboarding({
|
|
|
79871
79781
|
- \`parameterSlug\`: \`"ad-account-id"\`
|
|
79872
79782
|
- \`options\`: \u5E83\u544A\u30A2\u30AB\u30A6\u30F3\u30C8\u4E00\u89A7\u3002\u5404 option \u306E \`label\` \u306F \`\u30A2\u30AB\u30A6\u30F3\u30C8\u540D (id: \u30A2\u30AB\u30A6\u30F3\u30C8ID)\` \u306E\u5F62\u5F0F\u3001\`value\` \u306F\u30A2\u30AB\u30A6\u30F3\u30C8ID
|
|
79873
79783
|
4. \u30E6\u30FC\u30B6\u30FC\u304C\u9078\u629E\u3057\u305F\u30A2\u30AB\u30A6\u30F3\u30C8\u306E \`label\` \u304C\u30E1\u30C3\u30BB\u30FC\u30B8\u3068\u3057\u3066\u5C4A\u304F\u306E\u3067\u3001\u6B21\u306E\u30B9\u30C6\u30C3\u30D7\u306B\u9032\u3080
|
|
79874
|
-
5. \`updateConnectionContext\` \u3092\u547C\u3073\u51FA\u3059:
|
|
79875
|
-
- \`adAccount\`: \u9078\u629E\u3055\u308C\u305F\u30A2\u30AB\u30A6\u30F3\u30C8\u306E\u8868\u793A\u540D
|
|
79876
|
-
- \`adAccountId\`: \u9078\u629E\u3055\u308C\u305F\u30A2\u30AB\u30A6\u30F3\u30C8ID
|
|
79877
|
-
- \`note\`: \u30BB\u30C3\u30C8\u30A2\u30C3\u30D7\u5185\u5BB9\u306E\u7C21\u5358\u306A\u8AAC\u660E
|
|
79878
79784
|
|
|
79879
79785
|
#### \u5236\u7D04
|
|
79880
79786
|
- **\u30BB\u30C3\u30C8\u30A2\u30C3\u30D7\u4E2D\u306B\u30EC\u30DD\u30FC\u30C8\u30C7\u30FC\u30BF\u3092\u53D6\u5F97\u3057\u306A\u3044\u3053\u3068**\u3002\u5B9F\u884C\u3057\u3066\u3088\u3044\u306E\u306F\u4E0A\u8A18\u624B\u9806\u3067\u6307\u5B9A\u3055\u308C\u305F\u30E1\u30BF\u30C7\u30FC\u30BF\u53D6\u5F97\u306E\u307F
|
|
@@ -79887,10 +79793,6 @@ var metaAdsOnboarding = new ConnectorOnboarding({
|
|
|
79887
79793
|
- \`parameterSlug\`: \`"ad-account-id"\`
|
|
79888
79794
|
- \`options\`: The ad account list. Each option's \`label\` should be \`Account Name (id: accountId)\`, \`value\` should be the account ID
|
|
79889
79795
|
4. The \`label\` of the user's selected account will arrive as a message. Proceed to the next step
|
|
79890
|
-
5. Call \`updateConnectionContext\`:
|
|
79891
|
-
- \`adAccount\`: The selected account's display name
|
|
79892
|
-
- \`adAccountId\`: The selected account ID
|
|
79893
|
-
- \`note\`: Brief description of the setup
|
|
79894
79796
|
|
|
79895
79797
|
#### Constraints
|
|
79896
79798
|
- **Do NOT fetch report data during setup**. Only the metadata requests specified in the steps above are allowed
|
|
@@ -80280,10 +80182,6 @@ var metaAdsOauthOnboarding = new ConnectorOnboarding({
|
|
|
80280
80182
|
- \`parameterSlug\`: \`"ad-account-id"\`
|
|
80281
80183
|
- \`options\`: \u5E83\u544A\u30A2\u30AB\u30A6\u30F3\u30C8\u4E00\u89A7\u3002\u5404 option \u306E \`label\` \u306F \`\u30A2\u30AB\u30A6\u30F3\u30C8\u540D (id: \u30A2\u30AB\u30A6\u30F3\u30C8ID)\` \u306E\u5F62\u5F0F\u3001\`value\` \u306F\u30A2\u30AB\u30A6\u30F3\u30C8ID
|
|
80282
80184
|
4. \u30E6\u30FC\u30B6\u30FC\u304C\u9078\u629E\u3057\u305F\u30A2\u30AB\u30A6\u30F3\u30C8\u306E \`label\` \u304C\u30E1\u30C3\u30BB\u30FC\u30B8\u3068\u3057\u3066\u5C4A\u304F\u306E\u3067\u3001\u6B21\u306E\u30B9\u30C6\u30C3\u30D7\u306B\u9032\u3080
|
|
80283
|
-
5. \`updateConnectionContext\` \u3092\u547C\u3073\u51FA\u3059:
|
|
80284
|
-
- \`adAccount\`: \u9078\u629E\u3055\u308C\u305F\u30A2\u30AB\u30A6\u30F3\u30C8\u306E\u8868\u793A\u540D
|
|
80285
|
-
- \`adAccountId\`: \u9078\u629E\u3055\u308C\u305F\u30A2\u30AB\u30A6\u30F3\u30C8ID
|
|
80286
|
-
- \`note\`: \u30BB\u30C3\u30C8\u30A2\u30C3\u30D7\u5185\u5BB9\u306E\u7C21\u5358\u306A\u8AAC\u660E
|
|
80287
80185
|
|
|
80288
80186
|
#### \u5236\u7D04
|
|
80289
80187
|
- **\u30BB\u30C3\u30C8\u30A2\u30C3\u30D7\u4E2D\u306B\u30EC\u30DD\u30FC\u30C8\u30C7\u30FC\u30BF\u3092\u53D6\u5F97\u3057\u306A\u3044\u3053\u3068**\u3002\u5B9F\u884C\u3057\u3066\u3088\u3044\u306E\u306F\u4E0A\u8A18\u624B\u9806\u3067\u6307\u5B9A\u3055\u308C\u305F\u30E1\u30BF\u30C7\u30FC\u30BF\u53D6\u5F97\u306E\u307F
|
|
@@ -80296,10 +80194,6 @@ var metaAdsOauthOnboarding = new ConnectorOnboarding({
|
|
|
80296
80194
|
- \`parameterSlug\`: \`"ad-account-id"\`
|
|
80297
80195
|
- \`options\`: The ad account list. Each option's \`label\` should be \`Account Name (id: accountId)\`, \`value\` should be the account ID
|
|
80298
80196
|
4. The \`label\` of the user's selected account will arrive as a message. Proceed to the next step
|
|
80299
|
-
5. Call \`updateConnectionContext\`:
|
|
80300
|
-
- \`adAccount\`: The selected account's display name
|
|
80301
|
-
- \`adAccountId\`: The selected account ID
|
|
80302
|
-
- \`note\`: Brief description of the setup
|
|
80303
80197
|
|
|
80304
80198
|
#### Constraints
|
|
80305
80199
|
- **Do NOT fetch report data during setup**. Only the metadata requests specified in the steps above are allowed
|
|
@@ -80742,10 +80636,6 @@ var tiktokAdsOnboarding = new ConnectorOnboarding({
|
|
|
80742
80636
|
- \`parameterSlug\`: \`"advertiser-id"\`
|
|
80743
80637
|
- \`options\`: \u5E83\u544A\u4E3B\u4E00\u89A7\u3002\u5404 option \u306E \`label\` \u306F \`\u5E83\u544A\u4E3B\u540D (id: \u5E83\u544A\u4E3BID)\` \u306E\u5F62\u5F0F\u3001\`value\` \u306F\u5E83\u544A\u4E3BID
|
|
80744
80638
|
4. \u30E6\u30FC\u30B6\u30FC\u304C\u9078\u629E\u3057\u305F\u5E83\u544A\u4E3B\u306E \`label\` \u304C\u30E1\u30C3\u30BB\u30FC\u30B8\u3068\u3057\u3066\u5C4A\u304F\u306E\u3067\u3001\u6B21\u306E\u30B9\u30C6\u30C3\u30D7\u306B\u9032\u3080
|
|
80745
|
-
5. \`updateConnectionContext\` \u3092\u547C\u3073\u51FA\u3059:
|
|
80746
|
-
- \`advertiser\`: \u9078\u629E\u3055\u308C\u305F\u5E83\u544A\u4E3B\u306E\u8868\u793A\u540D
|
|
80747
|
-
- \`advertiserId\`: \u9078\u629E\u3055\u308C\u305F\u5E83\u544A\u4E3BID
|
|
80748
|
-
- \`note\`: \u30BB\u30C3\u30C8\u30A2\u30C3\u30D7\u5185\u5BB9\u306E\u7C21\u5358\u306A\u8AAC\u660E
|
|
80749
80639
|
|
|
80750
80640
|
#### \u5236\u7D04
|
|
80751
80641
|
- **\u30BB\u30C3\u30C8\u30A2\u30C3\u30D7\u4E2D\u306B\u30EC\u30DD\u30FC\u30C8\u30C7\u30FC\u30BF\u3092\u53D6\u5F97\u3057\u306A\u3044\u3053\u3068**\u3002\u5B9F\u884C\u3057\u3066\u3088\u3044\u306E\u306F\u4E0A\u8A18\u624B\u9806\u3067\u6307\u5B9A\u3055\u308C\u305F\u30E1\u30BF\u30C7\u30FC\u30BF\u53D6\u5F97\u306E\u307F
|
|
@@ -80758,10 +80648,6 @@ var tiktokAdsOnboarding = new ConnectorOnboarding({
|
|
|
80758
80648
|
- \`parameterSlug\`: \`"advertiser-id"\`
|
|
80759
80649
|
- \`options\`: The advertiser list. Each option's \`label\` should be \`Advertiser Name (id: advertiserId)\`, \`value\` should be the advertiser ID
|
|
80760
80650
|
4. The \`label\` of the user's selected advertiser will arrive as a message. Proceed to the next step
|
|
80761
|
-
5. Call \`updateConnectionContext\`:
|
|
80762
|
-
- \`advertiser\`: The selected advertiser's display name
|
|
80763
|
-
- \`advertiserId\`: The selected advertiser ID
|
|
80764
|
-
- \`note\`: Brief description of the setup
|
|
80765
80651
|
|
|
80766
80652
|
#### Constraints
|
|
80767
80653
|
- **Do NOT fetch report data during setup**. Only the metadata requests specified in the steps above are allowed
|
|
@@ -82207,10 +82093,6 @@ var gmailOnboarding = new ConnectorOnboarding({
|
|
|
82207
82093
|
5. \`${requestToolName7}\` \u3092\u547C\u3073\u51FA\u3057\u3066\u30E9\u30D9\u30EB\u4E00\u89A7\u3092\u53D6\u5F97\u3059\u308B:
|
|
82208
82094
|
- \`method\`: \`"GET"\`
|
|
82209
82095
|
- \`path\`: \`"/me/labels"\`
|
|
82210
|
-
6. \`updateConnectionContext\` \u3092\u547C\u3073\u51FA\u3059:
|
|
82211
|
-
- \`email\`: \u8A2D\u5B9A\u3057\u305F\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9
|
|
82212
|
-
- \`labels\`: \u4E3B\u8981\u306A\u30E9\u30D9\u30EB\u540D\u4E00\u89A7\uFF08\u30AB\u30F3\u30DE\u533A\u5207\u308A\u3001INBOX, SENT, DRAFT, SPAM, TRASH\u7B49\u306E\u30B7\u30B9\u30C6\u30E0\u30E9\u30D9\u30EB\u3092\u542B\u3080\uFF09
|
|
82213
|
-
- \`note\`: \u30BB\u30C3\u30C8\u30A2\u30C3\u30D7\u5185\u5BB9\u306E\u7C21\u5358\u306A\u8AAC\u660E
|
|
82214
82096
|
|
|
82215
82097
|
#### \u5236\u7D04
|
|
82216
82098
|
- **\u30BB\u30C3\u30C8\u30A2\u30C3\u30D7\u4E2D\u306B\u30E1\u30C3\u30BB\u30FC\u30B8\u672C\u6587\u3092\u8AAD\u307F\u53D6\u3089\u306A\u3044\u3053\u3068**\u3002\u5B9F\u884C\u3057\u3066\u3088\u3044\u306E\u306F\u4E0A\u8A18\u624B\u9806\u3067\u6307\u5B9A\u3055\u308C\u305F\u30D7\u30ED\u30D5\u30A3\u30FC\u30EB\u53D6\u5F97\u3068\u30E9\u30D9\u30EB\u4E00\u89A7\u53D6\u5F97\u306E\u307F
|
|
@@ -82234,10 +82116,6 @@ var gmailOnboarding = new ConnectorOnboarding({
|
|
|
82234
82116
|
5. Call \`${requestToolName7}\` to get the label list:
|
|
82235
82117
|
- \`method\`: \`"GET"\`
|
|
82236
82118
|
- \`path\`: \`"/me/labels"\`
|
|
82237
|
-
6. Call \`updateConnectionContext\`:
|
|
82238
|
-
- \`email\`: The configured email address
|
|
82239
|
-
- \`labels\`: Key label names (comma-separated, including system labels like INBOX, SENT, DRAFT, SPAM, TRASH)
|
|
82240
|
-
- \`note\`: Brief description of the setup
|
|
82241
82119
|
|
|
82242
82120
|
#### Constraints
|
|
82243
82121
|
- **Do NOT read message bodies during setup**. Only the profile and label list requests specified above are allowed
|
|
@@ -82599,10 +82477,6 @@ var gmailOnboarding2 = new ConnectorOnboarding({
|
|
|
82599
82477
|
3. \`${requestToolName8}\` \u3092\u547C\u3073\u51FA\u3057\u3066\u30E9\u30D9\u30EB\u4E00\u89A7\u3092\u53D6\u5F97\u3059\u308B:
|
|
82600
82478
|
- \`method\`: \`"GET"\`
|
|
82601
82479
|
- \`path\`: \`"/me/labels"\`
|
|
82602
|
-
4. \`updateConnectionContext\` \u3092\u547C\u3073\u51FA\u3059:
|
|
82603
|
-
- \`email\`: \u30E6\u30FC\u30B6\u30FC\u306E\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9
|
|
82604
|
-
- \`labels\`: \u4E3B\u8981\u306A\u30E9\u30D9\u30EB\u540D\u4E00\u89A7\uFF08\u30AB\u30F3\u30DE\u533A\u5207\u308A\u3001INBOX, SENT, DRAFT, SPAM, TRASH\u7B49\u306E\u30B7\u30B9\u30C6\u30E0\u30E9\u30D9\u30EB\u3092\u542B\u3080\uFF09
|
|
82605
|
-
- \`note\`: \u30BB\u30C3\u30C8\u30A2\u30C3\u30D7\u5185\u5BB9\u306E\u7C21\u5358\u306A\u8AAC\u660E
|
|
82606
82480
|
|
|
82607
82481
|
#### \u5236\u7D04
|
|
82608
82482
|
- **\u30BB\u30C3\u30C8\u30A2\u30C3\u30D7\u4E2D\u306B\u30E1\u30C3\u30BB\u30FC\u30B8\u672C\u6587\u3092\u8AAD\u307F\u53D6\u3089\u306A\u3044\u3053\u3068**\u3002\u5B9F\u884C\u3057\u3066\u3088\u3044\u306E\u306F\u4E0A\u8A18\u624B\u9806\u3067\u6307\u5B9A\u3055\u308C\u305F\u30D7\u30ED\u30D5\u30A3\u30FC\u30EB\u53D6\u5F97\u3068\u30E9\u30D9\u30EB\u4E00\u89A7\u53D6\u5F97\u306E\u307F
|
|
@@ -82616,10 +82490,6 @@ var gmailOnboarding2 = new ConnectorOnboarding({
|
|
|
82616
82490
|
3. Call \`${requestToolName8}\` to get the label list:
|
|
82617
82491
|
- \`method\`: \`"GET"\`
|
|
82618
82492
|
- \`path\`: \`"/me/labels"\`
|
|
82619
|
-
4. Call \`updateConnectionContext\`:
|
|
82620
|
-
- \`email\`: The user's email address
|
|
82621
|
-
- \`labels\`: Key label names (comma-separated, including system labels like INBOX, SENT, DRAFT, SPAM, TRASH)
|
|
82622
|
-
- \`note\`: Brief description of the setup
|
|
82623
82493
|
|
|
82624
82494
|
#### Constraints
|
|
82625
82495
|
- **Do NOT read message bodies during setup**. Only the profile and label list requests specified above are allowed
|
|
@@ -82975,10 +82845,6 @@ var linkedinAdsOnboarding = new ConnectorOnboarding({
|
|
|
82975
82845
|
- \`parameterSlug\`: \`"ad-account-id"\`
|
|
82976
82846
|
- \`options\`: \u5E83\u544A\u30A2\u30AB\u30A6\u30F3\u30C8\u4E00\u89A7\u3002\u5404 option \u306E \`label\` \u306F \`\u30A2\u30AB\u30A6\u30F3\u30C8\u540D (id: \u30A2\u30AB\u30A6\u30F3\u30C8ID)\` \u306E\u5F62\u5F0F\u3001\`value\` \u306F\u30A2\u30AB\u30A6\u30F3\u30C8ID
|
|
82977
82847
|
4. \u30E6\u30FC\u30B6\u30FC\u304C\u9078\u629E\u3057\u305F\u30A2\u30AB\u30A6\u30F3\u30C8\u306E \`label\` \u304C\u30E1\u30C3\u30BB\u30FC\u30B8\u3068\u3057\u3066\u5C4A\u304F\u306E\u3067\u3001\u6B21\u306E\u30B9\u30C6\u30C3\u30D7\u306B\u9032\u3080
|
|
82978
|
-
5. \`updateConnectionContext\` \u3092\u547C\u3073\u51FA\u3059:
|
|
82979
|
-
- \`adAccount\`: \u9078\u629E\u3055\u308C\u305F\u30A2\u30AB\u30A6\u30F3\u30C8\u306E\u8868\u793A\u540D
|
|
82980
|
-
- \`adAccountId\`: \u9078\u629E\u3055\u308C\u305F\u30A2\u30AB\u30A6\u30F3\u30C8ID
|
|
82981
|
-
- \`note\`: \u30BB\u30C3\u30C8\u30A2\u30C3\u30D7\u5185\u5BB9\u306E\u7C21\u5358\u306A\u8AAC\u660E
|
|
82982
82848
|
|
|
82983
82849
|
#### \u5236\u7D04
|
|
82984
82850
|
- **\u30BB\u30C3\u30C8\u30A2\u30C3\u30D7\u4E2D\u306B\u30EC\u30DD\u30FC\u30C8\u30C7\u30FC\u30BF\u3092\u53D6\u5F97\u3057\u306A\u3044\u3053\u3068**\u3002\u5B9F\u884C\u3057\u3066\u3088\u3044\u306E\u306F\u4E0A\u8A18\u624B\u9806\u3067\u6307\u5B9A\u3055\u308C\u305F\u30E1\u30BF\u30C7\u30FC\u30BF\u53D6\u5F97\u306E\u307F
|
|
@@ -82991,10 +82857,6 @@ var linkedinAdsOnboarding = new ConnectorOnboarding({
|
|
|
82991
82857
|
- \`parameterSlug\`: \`"ad-account-id"\`
|
|
82992
82858
|
- \`options\`: The ad account list. Each option's \`label\` should be \`Account Name (id: accountId)\`, \`value\` should be the account ID
|
|
82993
82859
|
4. The \`label\` of the user's selected account will arrive as a message. Proceed to the next step
|
|
82994
|
-
5. Call \`updateConnectionContext\`:
|
|
82995
|
-
- \`adAccount\`: The selected account's display name
|
|
82996
|
-
- \`adAccountId\`: The selected account ID
|
|
82997
|
-
- \`note\`: Brief description of the setup
|
|
82998
82860
|
|
|
82999
82861
|
#### Constraints
|
|
83000
82862
|
- **Do NOT fetch report data during setup**. Only the metadata requests specified in the steps above are allowed
|
|
@@ -83837,9 +83699,6 @@ var zendeskOauthOnboarding = new ConnectorOnboarding({
|
|
|
83837
83699
|
- \`method\`: \`"GET"\`
|
|
83838
83700
|
- \`path\`: \`"/api/v2/account/settings.json"\`
|
|
83839
83701
|
2. If an error is returned, ask the user to check the OAuth connection settings
|
|
83840
|
-
3. Call \`updateConnectionContext\`:
|
|
83841
|
-
- \`account\`: Zendesk subdomain or account name
|
|
83842
|
-
- \`note\`: Brief description of the setup
|
|
83843
83702
|
|
|
83844
83703
|
#### Constraints
|
|
83845
83704
|
- **Do NOT read business data during setup**. Only the metadata request specified in the steps above is allowed
|
|
@@ -83850,9 +83709,6 @@ var zendeskOauthOnboarding = new ConnectorOnboarding({
|
|
|
83850
83709
|
- \`method\`: \`"GET"\`
|
|
83851
83710
|
- \`path\`: \`"/api/v2/account/settings.json"\`
|
|
83852
83711
|
2. \u30A8\u30E9\u30FC\u304C\u8FD4\u3055\u308C\u305F\u5834\u5408\u3001\u30E6\u30FC\u30B6\u30FC\u306BOAuth\u63A5\u7D9A\u306E\u8A2D\u5B9A\u3092\u78BA\u8A8D\u3059\u308B\u3088\u3046\u4F1D\u3048\u308B
|
|
83853
|
-
3. \`updateConnectionContext\` \u3092\u547C\u3073\u51FA\u3059:
|
|
83854
|
-
- \`account\`: Zendesk\u30B5\u30D6\u30C9\u30E1\u30A4\u30F3\u307E\u305F\u306F\u30A2\u30AB\u30A6\u30F3\u30C8\u540D
|
|
83855
|
-
- \`note\`: \u30BB\u30C3\u30C8\u30A2\u30C3\u30D7\u5185\u5BB9\u306E\u7C21\u5358\u306A\u8AAC\u660E
|
|
83856
83712
|
|
|
83857
83713
|
#### \u5236\u7D04
|
|
83858
83714
|
- **\u30BB\u30C3\u30C8\u30A2\u30C3\u30D7\u4E2D\u306B\u30D3\u30B8\u30CD\u30B9\u30C7\u30FC\u30BF\u3092\u8AAD\u307F\u53D6\u3089\u306A\u3044\u3053\u3068**\u3002\u5B9F\u884C\u3057\u3066\u3088\u3044\u306E\u306F\u4E0A\u8A18\u624B\u9806\u3067\u6307\u5B9A\u3055\u308C\u305F\u30E1\u30BF\u30C7\u30FC\u30BF\u53D6\u5F97\u30EA\u30AF\u30A8\u30B9\u30C8\u306E\u307F
|
|
@@ -84483,9 +84339,6 @@ var intercomOauthOnboarding = new ConnectorOnboarding({
|
|
|
84483
84339
|
- \`method\`: \`"GET"\`
|
|
84484
84340
|
- \`path\`: \`"/me"\`
|
|
84485
84341
|
2. If an error is returned, ask the user to check the OAuth connection settings
|
|
84486
|
-
3. Call \`updateConnectionContext\`:
|
|
84487
|
-
- \`account\`: Intercom workspace name or admin email
|
|
84488
|
-
- \`note\`: Brief description of the setup
|
|
84489
84342
|
|
|
84490
84343
|
#### Constraints
|
|
84491
84344
|
- **Do NOT read business data during setup**. Only the metadata request specified in the steps above is allowed
|
|
@@ -84496,9 +84349,6 @@ var intercomOauthOnboarding = new ConnectorOnboarding({
|
|
|
84496
84349
|
- \`method\`: \`"GET"\`
|
|
84497
84350
|
- \`path\`: \`"/me"\`
|
|
84498
84351
|
2. \u30A8\u30E9\u30FC\u304C\u8FD4\u3055\u308C\u305F\u5834\u5408\u3001\u30E6\u30FC\u30B6\u30FC\u306BOAuth\u63A5\u7D9A\u306E\u8A2D\u5B9A\u3092\u78BA\u8A8D\u3059\u308B\u3088\u3046\u4F1D\u3048\u308B
|
|
84499
|
-
3. \`updateConnectionContext\` \u3092\u547C\u3073\u51FA\u3059:
|
|
84500
|
-
- \`account\`: Intercom\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u540D\u307E\u305F\u306F\u7BA1\u7406\u8005\u30E1\u30FC\u30EB
|
|
84501
|
-
- \`note\`: \u30BB\u30C3\u30C8\u30A2\u30C3\u30D7\u5185\u5BB9\u306E\u7C21\u5358\u306A\u8AAC\u660E
|
|
84502
84352
|
|
|
84503
84353
|
#### \u5236\u7D04
|
|
84504
84354
|
- **\u30BB\u30C3\u30C8\u30A2\u30C3\u30D7\u4E2D\u306B\u30D3\u30B8\u30CD\u30B9\u30C7\u30FC\u30BF\u3092\u8AAD\u307F\u53D6\u3089\u306A\u3044\u3053\u3068**\u3002\u5B9F\u884C\u3057\u3066\u3088\u3044\u306E\u306F\u4E0A\u8A18\u624B\u9806\u3067\u6307\u5B9A\u3055\u308C\u305F\u30E1\u30BF\u30C7\u30FC\u30BF\u53D6\u5F97\u30EA\u30AF\u30A8\u30B9\u30C8\u306E\u307F
|
|
@@ -86674,6 +86524,330 @@ export default async function handler(c: Context) {
|
|
|
86674
86524
|
tools: tools62
|
|
86675
86525
|
});
|
|
86676
86526
|
|
|
86527
|
+
// ../connectors/src/connectors/influxdb/setup.ts
|
|
86528
|
+
var influxdbOnboarding = new ConnectorOnboarding({
|
|
86529
|
+
connectionSetupInstructions: {
|
|
86530
|
+
en: `#### Generate an API Token
|
|
86531
|
+
1. Sign in to your InfluxDB Cloud / OSS instance
|
|
86532
|
+
2. Go to Load Data \u2192 API Tokens \u2192 Generate API Token
|
|
86533
|
+
3. Create an All-Access or Custom token with at least read permission on your target database/bucket
|
|
86534
|
+
4. Copy the token into the API Token parameter
|
|
86535
|
+
|
|
86536
|
+
#### Confirm the Database (or Bucket) Name
|
|
86537
|
+
- InfluxDB 3: use the database name
|
|
86538
|
+
- InfluxDB 2: use the bucket name (buckets act as databases in the v1/v3 compatibility endpoints)
|
|
86539
|
+
|
|
86540
|
+
#### Organization (InfluxDB 2 only)
|
|
86541
|
+
- If you are on InfluxDB 2, set the Organization parameter to the org that owns the bucket
|
|
86542
|
+
- For InfluxDB 3 Cloud you can leave Organization blank`,
|
|
86543
|
+
ja: `#### API \u30C8\u30FC\u30AF\u30F3\u306E\u767A\u884C
|
|
86544
|
+
1. InfluxDB Cloud / OSS \u306B\u30B5\u30A4\u30F3\u30A4\u30F3
|
|
86545
|
+
2. Load Data \u2192 API Tokens \u2192 Generate API Token
|
|
86546
|
+
3. \u5BFE\u8C61\u306E database / bucket \u306B\u5BFE\u3057\u3066\u6700\u4F4E\u9650 read \u6A29\u9650\u3092\u6301\u3064 All-Access \u307E\u305F\u306F Custom \u30C8\u30FC\u30AF\u30F3\u3092\u4F5C\u6210
|
|
86547
|
+
4. \u767A\u884C\u3057\u305F\u30C8\u30FC\u30AF\u30F3\u3092 API Token \u30D1\u30E9\u30E1\u30FC\u30BF\u306B\u8CBC\u308A\u4ED8\u3051
|
|
86548
|
+
|
|
86549
|
+
#### Database (\u307E\u305F\u306F Bucket) \u540D\u306E\u78BA\u8A8D
|
|
86550
|
+
- InfluxDB 3: database \u540D\u3092\u4F7F\u7528
|
|
86551
|
+
- InfluxDB 2: bucket \u540D\u3092\u4F7F\u7528\uFF08v1/v3 \u4E92\u63DB\u30A8\u30F3\u30C9\u30DD\u30A4\u30F3\u30C8\u3067\u306F bucket \u304C database \u3068\u3057\u3066\u6271\u308F\u308C\u308B\uFF09
|
|
86552
|
+
|
|
86553
|
+
#### Organization\uFF08InfluxDB 2 \u306E\u307F\uFF09
|
|
86554
|
+
- InfluxDB 2 \u306E\u5834\u5408\u3001bucket \u3092\u4FDD\u6709\u3059\u308B\u7D44\u7E54\u540D\u3092 Organization \u30D1\u30E9\u30E1\u30FC\u30BF\u306B\u8A2D\u5B9A
|
|
86555
|
+
- InfluxDB 3 Cloud \u306E\u5834\u5408\u306F\u7A7A\u306E\u307E\u307E\u3067\u554F\u984C\u306A\u3044`
|
|
86556
|
+
},
|
|
86557
|
+
dataOverviewInstructions: {
|
|
86558
|
+
en: `1. For InfluxDB 3: call influxdb_request with POST /api/v3/query_sql, body { "db": "<database>", "q": "SHOW TABLES" } to list measurements
|
|
86559
|
+
2. For InfluxDB 3: inspect a sample measurement with POST /api/v3/query_sql, body { "db": "<database>", "q": "SELECT * FROM <measurement> ORDER BY time DESC LIMIT 5" }
|
|
86560
|
+
3. For InfluxDB 2: call influxdb_request with POST /api/v2/query?org=<org>, contentType 'application/vnd.flux', body 'buckets()' to list buckets, then 'from(bucket:"<bucket>") |> range(start: -1h) |> limit(n:5)' to inspect data`,
|
|
86561
|
+
ja: `1. InfluxDB 3 \u306E\u5834\u5408: influxdb_request \u3067 POST /api/v3/query_sql\u3001body { "db": "<database>", "q": "SHOW TABLES" } \u3092\u5B9F\u884C\u3057 measurement \u4E00\u89A7\u3092\u53D6\u5F97
|
|
86562
|
+
2. InfluxDB 3 \u306E\u5834\u5408: POST /api/v3/query_sql\u3001body { "db": "<database>", "q": "SELECT * FROM <measurement> ORDER BY time DESC LIMIT 5" } \u3067\u4EE3\u8868\u7684\u306A measurement \u306E\u69CB\u9020\u3092\u78BA\u8A8D
|
|
86563
|
+
3. InfluxDB 2 \u306E\u5834\u5408: POST /api/v2/query?org=<org>\u3001contentType 'application/vnd.flux'\u3001body 'buckets()' \u3067 bucket \u4E00\u89A7\u3092\u53D6\u5F97\u3057\u3001\u7D9A\u3044\u3066 'from(bucket:"<bucket>") |> range(start: -1h) |> limit(n:5)' \u3067\u30C7\u30FC\u30BF\u3092\u78BA\u8A8D`
|
|
86564
|
+
}
|
|
86565
|
+
});
|
|
86566
|
+
|
|
86567
|
+
// ../connectors/src/connectors/influxdb/parameters.ts
|
|
86568
|
+
var parameters63 = {
|
|
86569
|
+
url: new ParameterDefinition({
|
|
86570
|
+
slug: "url",
|
|
86571
|
+
name: "InfluxDB URL",
|
|
86572
|
+
description: "The base URL of your InfluxDB instance (e.g., 'https://us-east-1-1.aws.cloud2.influxdata.com' for InfluxDB Cloud). Do not include a trailing slash.",
|
|
86573
|
+
envVarBaseKey: "INFLUXDB_URL",
|
|
86574
|
+
type: "text",
|
|
86575
|
+
secret: false,
|
|
86576
|
+
required: true
|
|
86577
|
+
}),
|
|
86578
|
+
token: new ParameterDefinition({
|
|
86579
|
+
slug: "token",
|
|
86580
|
+
name: "API Token",
|
|
86581
|
+
description: "The API token used to authenticate against your InfluxDB instance. Generate one from the InfluxDB UI (Load Data \u2192 API Tokens).",
|
|
86582
|
+
envVarBaseKey: "INFLUXDB_TOKEN",
|
|
86583
|
+
type: "text",
|
|
86584
|
+
secret: true,
|
|
86585
|
+
required: true
|
|
86586
|
+
}),
|
|
86587
|
+
database: new ParameterDefinition({
|
|
86588
|
+
slug: "database",
|
|
86589
|
+
name: "Database",
|
|
86590
|
+
description: "The default database to query. For InfluxDB 3 this is the database name; for InfluxDB 2 use the bucket name.",
|
|
86591
|
+
envVarBaseKey: "INFLUXDB_DATABASE",
|
|
86592
|
+
type: "text",
|
|
86593
|
+
secret: false,
|
|
86594
|
+
required: true
|
|
86595
|
+
}),
|
|
86596
|
+
org: new ParameterDefinition({
|
|
86597
|
+
slug: "org",
|
|
86598
|
+
name: "Organization",
|
|
86599
|
+
description: "The InfluxDB organization name. Required for InfluxDB 2.x Flux queries and writes; optional for InfluxDB 3.",
|
|
86600
|
+
envVarBaseKey: "INFLUXDB_ORG",
|
|
86601
|
+
type: "text",
|
|
86602
|
+
secret: false,
|
|
86603
|
+
required: false
|
|
86604
|
+
})
|
|
86605
|
+
};
|
|
86606
|
+
|
|
86607
|
+
// ../connectors/src/connectors/influxdb/tools/request.ts
|
|
86608
|
+
import { z as z78 } from "zod";
|
|
86609
|
+
var REQUEST_TIMEOUT_MS60 = 6e4;
|
|
86610
|
+
var inputSchema76 = z78.object({
|
|
86611
|
+
toolUseIntent: z78.string().optional().describe(
|
|
86612
|
+
"Brief description of what you intend to accomplish with this tool call"
|
|
86613
|
+
),
|
|
86614
|
+
connectionId: z78.string().describe("ID of the InfluxDB connection to use"),
|
|
86615
|
+
method: z78.enum(["GET", "POST", "DELETE"]).describe(
|
|
86616
|
+
"HTTP method. POST for SQL/InfluxQL/Flux queries and writes, GET for metadata endpoints, DELETE for delete endpoints."
|
|
86617
|
+
),
|
|
86618
|
+
path: z78.string().describe(
|
|
86619
|
+
"API path appended to the InfluxDB base URL. Use '/api/v3/query_sql' for InfluxDB 3 SQL, '/api/v3/query_influxql' for InfluxDB 3 InfluxQL, '/api/v2/query?org={org}' for InfluxDB 2 Flux, '/api/v2/write?org={org}&bucket={bucket}' for writes."
|
|
86620
|
+
),
|
|
86621
|
+
body: z78.union([z78.record(z78.string(), z78.unknown()), z78.string()]).optional().describe(
|
|
86622
|
+
"Request body. JSON object for query endpoints ({ db, q } for InfluxDB 3 SQL; { query, type } for v2 query); raw string for Flux queries and line-protocol writes."
|
|
86623
|
+
),
|
|
86624
|
+
contentType: z78.string().optional().describe(
|
|
86625
|
+
"Content-Type header override. Use 'application/vnd.flux' for Flux queries and 'text/plain; charset=utf-8' for line-protocol writes. Defaults to 'application/json'."
|
|
86626
|
+
)
|
|
86627
|
+
});
|
|
86628
|
+
var outputSchema76 = z78.discriminatedUnion("success", [
|
|
86629
|
+
z78.object({
|
|
86630
|
+
success: z78.literal(true),
|
|
86631
|
+
status: z78.number(),
|
|
86632
|
+
data: z78.unknown()
|
|
86633
|
+
}),
|
|
86634
|
+
z78.object({
|
|
86635
|
+
success: z78.literal(false),
|
|
86636
|
+
error: z78.string()
|
|
86637
|
+
})
|
|
86638
|
+
]);
|
|
86639
|
+
var requestTool48 = new ConnectorTool({
|
|
86640
|
+
name: "request",
|
|
86641
|
+
description: `Send authenticated requests to the InfluxDB HTTP API.
|
|
86642
|
+
Authentication is handled automatically using the API token (\`Authorization: Token {token}\`). The instance URL is resolved from the connection.
|
|
86643
|
+
Use this tool for all InfluxDB interactions: running SQL / InfluxQL / Flux queries, writing line protocol, and managing buckets / databases.
|
|
86644
|
+
For read-only data exploration prefer SQL (InfluxDB 3) or InfluxQL queries \u2014 they return JSON that is straightforward to parse. Flux queries return annotated CSV.`,
|
|
86645
|
+
inputSchema: inputSchema76,
|
|
86646
|
+
outputSchema: outputSchema76,
|
|
86647
|
+
async execute({ connectionId, method, path: path4, body, contentType }, connections) {
|
|
86648
|
+
const connection = connections.find((c6) => c6.id === connectionId);
|
|
86649
|
+
if (!connection) {
|
|
86650
|
+
return {
|
|
86651
|
+
success: false,
|
|
86652
|
+
error: `Connection ${connectionId} not found`
|
|
86653
|
+
};
|
|
86654
|
+
}
|
|
86655
|
+
console.log(
|
|
86656
|
+
`[connector-request] influxdb/${connection.name}: ${method} ${path4}`
|
|
86657
|
+
);
|
|
86658
|
+
try {
|
|
86659
|
+
const url = parameters63.url.getValue(connection).replace(/\/$/, "");
|
|
86660
|
+
const token = parameters63.token.getValue(connection);
|
|
86661
|
+
const fullUrl = `${url}${path4.startsWith("/") ? "" : "/"}${path4}`;
|
|
86662
|
+
const controller = new AbortController();
|
|
86663
|
+
const timeout = setTimeout(() => controller.abort(), REQUEST_TIMEOUT_MS60);
|
|
86664
|
+
const resolvedContentType = contentType ?? (typeof body === "string" ? "text/plain; charset=utf-8" : "application/json");
|
|
86665
|
+
const serializedBody = body === void 0 ? void 0 : typeof body === "string" ? body : JSON.stringify(body);
|
|
86666
|
+
try {
|
|
86667
|
+
const response = await fetch(fullUrl, {
|
|
86668
|
+
method,
|
|
86669
|
+
headers: {
|
|
86670
|
+
Authorization: `Token ${token}`,
|
|
86671
|
+
"Content-Type": resolvedContentType,
|
|
86672
|
+
Accept: "application/json"
|
|
86673
|
+
},
|
|
86674
|
+
body: serializedBody,
|
|
86675
|
+
signal: controller.signal
|
|
86676
|
+
});
|
|
86677
|
+
const text = await response.text();
|
|
86678
|
+
let data;
|
|
86679
|
+
const resContentType = response.headers.get("content-type") ?? "";
|
|
86680
|
+
if (resContentType.includes("application/json")) {
|
|
86681
|
+
try {
|
|
86682
|
+
data = text ? JSON.parse(text) : null;
|
|
86683
|
+
} catch {
|
|
86684
|
+
data = { raw: text };
|
|
86685
|
+
}
|
|
86686
|
+
} else {
|
|
86687
|
+
data = text;
|
|
86688
|
+
}
|
|
86689
|
+
if (!response.ok) {
|
|
86690
|
+
let errorMessage = `HTTP ${response.status} ${response.statusText}`;
|
|
86691
|
+
if (data && typeof data === "object" && !Array.isArray(data) && typeof data.message === "string") {
|
|
86692
|
+
errorMessage = data.message;
|
|
86693
|
+
} else if (typeof data === "string" && data) {
|
|
86694
|
+
errorMessage = data;
|
|
86695
|
+
}
|
|
86696
|
+
return { success: false, error: errorMessage };
|
|
86697
|
+
}
|
|
86698
|
+
return { success: true, status: response.status, data };
|
|
86699
|
+
} finally {
|
|
86700
|
+
clearTimeout(timeout);
|
|
86701
|
+
}
|
|
86702
|
+
} catch (err) {
|
|
86703
|
+
const msg = err instanceof Error ? err.message : String(err);
|
|
86704
|
+
return { success: false, error: msg };
|
|
86705
|
+
}
|
|
86706
|
+
}
|
|
86707
|
+
});
|
|
86708
|
+
|
|
86709
|
+
// ../connectors/src/connectors/influxdb/index.ts
|
|
86710
|
+
var tools63 = { request: requestTool48 };
|
|
86711
|
+
var influxdbConnector = new ConnectorPlugin({
|
|
86712
|
+
slug: "influxdb",
|
|
86713
|
+
authType: AUTH_TYPES.API_KEY,
|
|
86714
|
+
name: "InfluxDB",
|
|
86715
|
+
description: "Connect to InfluxDB (Cloud or OSS) to query time-series data with SQL, InfluxQL, or Flux and to write line protocol.",
|
|
86716
|
+
iconUrl: "https://upload.wikimedia.org/wikipedia/commons/b/b2/Influxdb_logo.svg",
|
|
86717
|
+
parameters: parameters63,
|
|
86718
|
+
releaseFlag: { dev1: true, dev2: false, prod: false },
|
|
86719
|
+
onboarding: influxdbOnboarding,
|
|
86720
|
+
systemPrompt: {
|
|
86721
|
+
en: `### Tools
|
|
86722
|
+
|
|
86723
|
+
- \`influxdb_request\`: The only way to call the InfluxDB HTTP API. Use it to run SQL / InfluxQL / Flux queries, write line protocol, and inspect buckets / databases. Authentication (\`Authorization: Token {token}\`) and the instance URL are configured automatically. For InfluxDB 3 prefer SQL (\`POST /api/v3/query_sql\`) \u2014 it returns JSON rows that are directly usable. For InfluxDB 2 use Flux (\`POST /api/v2/query?org={org}\`) \u2014 the response is annotated CSV. Writes use \`POST /api/v3/write_lp?db={db}\` (v3) or \`POST /api/v2/write?org={org}&bucket={bucket}\` (v2) with a line-protocol body and \`contentType\` set to \`text/plain; charset=utf-8\`.
|
|
86724
|
+
|
|
86725
|
+
### Business Logic
|
|
86726
|
+
|
|
86727
|
+
The business logic type for this connector is "typescript". Use the connector SDK in your handler. Do NOT read credentials from environment variables.
|
|
86728
|
+
|
|
86729
|
+
SDK methods (client created via \`connection(connectionId)\`):
|
|
86730
|
+
- \`client.request(path, init?)\` \u2014 low-level authenticated fetch against the InfluxDB base URL
|
|
86731
|
+
- \`client.querySql<T>(sql, options?)\` \u2014 InfluxDB 3 SQL query; returns an array of row objects, defaults \`db\` to the configured database
|
|
86732
|
+
- \`client.queryInfluxql<T>(influxql, options?)\` \u2014 InfluxDB 3 InfluxQL query; same shape as \`querySql\`
|
|
86733
|
+
- \`client.queryFlux(flux, options?)\` \u2014 InfluxDB 2 Flux query; returns raw annotated CSV (parse as needed)
|
|
86734
|
+
- \`client.writeLineProtocol(lineProtocol, options?)\` \u2014 append-only write; uses v3 or v2 endpoint depending on whether \`org\` is configured
|
|
86735
|
+
- \`client.database\` / \`client.org\` \u2014 connection-level defaults
|
|
86736
|
+
|
|
86737
|
+
\`\`\`ts
|
|
86738
|
+
import type { Context } from "hono";
|
|
86739
|
+
import { connection } from "@squadbase/vite-server/connectors/influxdb";
|
|
86740
|
+
|
|
86741
|
+
const influx = connection("<connectionId>");
|
|
86742
|
+
|
|
86743
|
+
export default async function handler(c: Context) {
|
|
86744
|
+
const { measurement = "cpu", limit = 60 } = await c.req.json<{
|
|
86745
|
+
measurement?: string;
|
|
86746
|
+
limit?: number;
|
|
86747
|
+
}>();
|
|
86748
|
+
|
|
86749
|
+
const rows = await influx.querySql<{
|
|
86750
|
+
time: string;
|
|
86751
|
+
usage_user: number;
|
|
86752
|
+
host: string;
|
|
86753
|
+
}>(
|
|
86754
|
+
\`SELECT time, usage_user, host FROM \${measurement} ORDER BY time DESC LIMIT \${limit}\`,
|
|
86755
|
+
);
|
|
86756
|
+
|
|
86757
|
+
return c.json({ series: rows });
|
|
86758
|
+
}
|
|
86759
|
+
\`\`\`
|
|
86760
|
+
|
|
86761
|
+
### InfluxDB HTTP API Reference
|
|
86762
|
+
|
|
86763
|
+
- Base URL: the \`url\` parameter (e.g., \`https://us-east-1-1.aws.cloud2.influxdata.com\`)
|
|
86764
|
+
- Authentication: \`Authorization: Token {token}\` (handled automatically)
|
|
86765
|
+
- Response content types: \`application/json\` for SQL/InfluxQL, annotated CSV for Flux
|
|
86766
|
+
|
|
86767
|
+
#### InfluxDB 3 Endpoints
|
|
86768
|
+
- POST \`/api/v3/query_sql\` \u2014 Body: \`{ "db": "<database>", "q": "<sql>" }\` \u2192 JSON rows
|
|
86769
|
+
- POST \`/api/v3/query_influxql\` \u2014 Body: \`{ "db": "<database>", "q": "<influxql>" }\` \u2192 JSON rows
|
|
86770
|
+
- POST \`/api/v3/write_lp?db=<database>&precision=ns\` \u2014 Body: raw line protocol
|
|
86771
|
+
- GET \`/api/v3/configure/database\` \u2014 List databases
|
|
86772
|
+
|
|
86773
|
+
#### InfluxDB 2 Endpoints
|
|
86774
|
+
- POST \`/api/v2/query?org=<org>\` \u2014 Body: Flux script (Content-Type: \`application/vnd.flux\`) \u2192 annotated CSV
|
|
86775
|
+
- POST \`/api/v2/write?org=<org>&bucket=<bucket>&precision=ns\` \u2014 Body: raw line protocol
|
|
86776
|
+
- GET \`/api/v2/buckets?org=<org>\` \u2014 List buckets
|
|
86777
|
+
- GET \`/api/v2/orgs\` \u2014 List organizations
|
|
86778
|
+
|
|
86779
|
+
#### SQL Reference (InfluxDB 3)
|
|
86780
|
+
- \`SELECT field_list FROM measurement WHERE time >= now() - INTERVAL '1 hour' AND tag = 'x' ORDER BY time DESC LIMIT 100\`
|
|
86781
|
+
- Time filtering uses standard SQL \`time\` column comparisons (\`time >= now() - INTERVAL '...' \`)
|
|
86782
|
+
- Aggregates: \`AVG\`, \`SUM\`, \`MIN\`, \`MAX\`, \`COUNT\`; bucket time with \`date_bin('5 minutes', time)\`
|
|
86783
|
+
- List measurements: \`SHOW TABLES\`; list columns: \`SHOW COLUMNS FROM <measurement>\``,
|
|
86784
|
+
ja: `### \u30C4\u30FC\u30EB
|
|
86785
|
+
|
|
86786
|
+
- \`influxdb_request\`: InfluxDB HTTP API \u3092\u547C\u3073\u51FA\u3059\u552F\u4E00\u306E\u624B\u6BB5\u3067\u3059\u3002SQL / InfluxQL / Flux \u30AF\u30A8\u30EA\u306E\u5B9F\u884C\u3001line protocol \u66F8\u304D\u8FBC\u307F\u3001bucket / database \u306E\u78BA\u8A8D\u306B\u4F7F\u7528\u3057\u307E\u3059\u3002\u8A8D\u8A3C\uFF08\`Authorization: Token {token}\`\uFF09\u3068 instance URL \u306F\u81EA\u52D5\u3067\u8A2D\u5B9A\u3055\u308C\u307E\u3059\u3002InfluxDB 3 \u3067\u306F SQL (\`POST /api/v3/query_sql\`) \u304C JSON \u884C\u3092\u8FD4\u3059\u305F\u3081\u6700\u3082\u6271\u3044\u3084\u3059\u3044\u3067\u3059\u3002InfluxDB 2 \u3067\u306F Flux (\`POST /api/v2/query?org={org}\`) \u3092\u4F7F\u7528\u3057\u3001\u30EC\u30B9\u30DD\u30F3\u30B9\u306F\u6CE8\u91C8\u4ED8\u304D CSV \u3067\u3059\u3002\u66F8\u304D\u8FBC\u307F\u306F \`POST /api/v3/write_lp?db={db}\` (v3) \u307E\u305F\u306F \`POST /api/v2/write?org={org}&bucket={bucket}\` (v2) \u306B line protocol \u3092\u9001\u308A\u307E\u3059\uFF08\`contentType\` \u306F \`text/plain; charset=utf-8\`\uFF09\u3002
|
|
86787
|
+
|
|
86788
|
+
### Business Logic
|
|
86789
|
+
|
|
86790
|
+
\u3053\u306E\u30B3\u30CD\u30AF\u30BF\u306E\u30D3\u30B8\u30CD\u30B9\u30ED\u30B8\u30C3\u30AF\u30BF\u30A4\u30D7\u306F "typescript" \u3067\u3059\u3002\u30CF\u30F3\u30C9\u30E9\u5185\u3067\u306F\u30B3\u30CD\u30AF\u30BF SDK \u3092\u4F7F\u7528\u3057\u3066\u304F\u3060\u3055\u3044\u3002\u74B0\u5883\u5909\u6570\u304B\u3089\u8A8D\u8A3C\u60C5\u5831\u3092\u8AAD\u307F\u53D6\u3089\u306A\u3044\u3067\u304F\u3060\u3055\u3044\u3002
|
|
86791
|
+
|
|
86792
|
+
SDK\u30E1\u30BD\u30C3\u30C9 (\`connection(connectionId)\` \u3067\u4F5C\u6210\u3057\u305F\u30AF\u30E9\u30A4\u30A2\u30F3\u30C8):
|
|
86793
|
+
- \`client.request(path, init?)\` \u2014 InfluxDB \u30D9\u30FC\u30B9 URL \u306B\u5BFE\u3059\u308B\u4F4E\u30EC\u30D9\u30EB\u306E\u8A8D\u8A3C\u4ED8\u304D fetch
|
|
86794
|
+
- \`client.querySql<T>(sql, options?)\` \u2014 InfluxDB 3 \u306E SQL \u30AF\u30A8\u30EA\u3002\u884C\u30AA\u30D6\u30B8\u30A7\u30AF\u30C8\u306E\u914D\u5217\u3092\u8FD4\u5374\u3057\u3001\`db\` \u306F\u65E2\u5B9A\u3067\u63A5\u7D9A\u306E database
|
|
86795
|
+
- \`client.queryInfluxql<T>(influxql, options?)\` \u2014 InfluxDB 3 \u306E InfluxQL \u30AF\u30A8\u30EA\uFF08\`querySql\` \u3068\u540C\u3058\u5F62\u5F0F\uFF09
|
|
86796
|
+
- \`client.queryFlux(flux, options?)\` \u2014 InfluxDB 2 \u306E Flux \u30AF\u30A8\u30EA\u3002\u6CE8\u91C8\u4ED8\u304D CSV \u3092\u6587\u5B57\u5217\u3067\u8FD4\u5374\uFF08\u5FC5\u8981\u306B\u5FDC\u3058\u3066\u30D1\u30FC\u30B9\uFF09
|
|
86797
|
+
- \`client.writeLineProtocol(lineProtocol, options?)\` \u2014 append-only \u66F8\u304D\u8FBC\u307F\u3002\`org\` \u306E\u6709\u7121\u3067 v3 / v2 \u30A8\u30F3\u30C9\u30DD\u30A4\u30F3\u30C8\u3092\u5207\u308A\u66FF\u3048
|
|
86798
|
+
- \`client.database\` / \`client.org\` \u2014 \u63A5\u7D9A\u5358\u4F4D\u306E\u30C7\u30D5\u30A9\u30EB\u30C8\u5024
|
|
86799
|
+
|
|
86800
|
+
\`\`\`ts
|
|
86801
|
+
import type { Context } from "hono";
|
|
86802
|
+
import { connection } from "@squadbase/vite-server/connectors/influxdb";
|
|
86803
|
+
|
|
86804
|
+
const influx = connection("<connectionId>");
|
|
86805
|
+
|
|
86806
|
+
export default async function handler(c: Context) {
|
|
86807
|
+
const { measurement = "cpu", limit = 60 } = await c.req.json<{
|
|
86808
|
+
measurement?: string;
|
|
86809
|
+
limit?: number;
|
|
86810
|
+
}>();
|
|
86811
|
+
|
|
86812
|
+
const rows = await influx.querySql<{
|
|
86813
|
+
time: string;
|
|
86814
|
+
usage_user: number;
|
|
86815
|
+
host: string;
|
|
86816
|
+
}>(
|
|
86817
|
+
\`SELECT time, usage_user, host FROM \${measurement} ORDER BY time DESC LIMIT \${limit}\`,
|
|
86818
|
+
);
|
|
86819
|
+
|
|
86820
|
+
return c.json({ series: rows });
|
|
86821
|
+
}
|
|
86822
|
+
\`\`\`
|
|
86823
|
+
|
|
86824
|
+
### InfluxDB HTTP API \u30EA\u30D5\u30A1\u30EC\u30F3\u30B9
|
|
86825
|
+
|
|
86826
|
+
- \u30D9\u30FC\u30B9 URL: \`url\` \u30D1\u30E9\u30E1\u30FC\u30BF\u3067\u6307\u5B9A\uFF08\u4F8B: \`https://us-east-1-1.aws.cloud2.influxdata.com\`\uFF09
|
|
86827
|
+
- \u8A8D\u8A3C: \`Authorization: Token {token}\`\uFF08\u81EA\u52D5\u8A2D\u5B9A\uFF09
|
|
86828
|
+
- \u30EC\u30B9\u30DD\u30F3\u30B9\u5F62\u5F0F: SQL/InfluxQL \u306F JSON\u3001Flux \u306F\u6CE8\u91C8\u4ED8\u304D CSV
|
|
86829
|
+
|
|
86830
|
+
#### InfluxDB 3 \u30A8\u30F3\u30C9\u30DD\u30A4\u30F3\u30C8
|
|
86831
|
+
- POST \`/api/v3/query_sql\` \u2014 Body: \`{ "db": "<database>", "q": "<sql>" }\` \u2192 JSON \u884C
|
|
86832
|
+
- POST \`/api/v3/query_influxql\` \u2014 Body: \`{ "db": "<database>", "q": "<influxql>" }\` \u2192 JSON \u884C
|
|
86833
|
+
- POST \`/api/v3/write_lp?db=<database>&precision=ns\` \u2014 Body: line protocol \u751F\u6587\u5B57\u5217
|
|
86834
|
+
- GET \`/api/v3/configure/database\` \u2014 database \u4E00\u89A7
|
|
86835
|
+
|
|
86836
|
+
#### InfluxDB 2 \u30A8\u30F3\u30C9\u30DD\u30A4\u30F3\u30C8
|
|
86837
|
+
- POST \`/api/v2/query?org=<org>\` \u2014 Body: Flux \u30B9\u30AF\u30EA\u30D7\u30C8\uFF08Content-Type: \`application/vnd.flux\`\uFF09\u2192 \u6CE8\u91C8\u4ED8\u304D CSV
|
|
86838
|
+
- POST \`/api/v2/write?org=<org>&bucket=<bucket>&precision=ns\` \u2014 Body: line protocol \u751F\u6587\u5B57\u5217
|
|
86839
|
+
- GET \`/api/v2/buckets?org=<org>\` \u2014 bucket \u4E00\u89A7
|
|
86840
|
+
- GET \`/api/v2/orgs\` \u2014 organization \u4E00\u89A7
|
|
86841
|
+
|
|
86842
|
+
#### SQL \u30EA\u30D5\u30A1\u30EC\u30F3\u30B9 (InfluxDB 3)
|
|
86843
|
+
- \`SELECT field_list FROM measurement WHERE time >= now() - INTERVAL '1 hour' AND tag = 'x' ORDER BY time DESC LIMIT 100\`
|
|
86844
|
+
- \u6642\u523B\u30D5\u30A3\u30EB\u30BF\u306F\u6A19\u6E96 SQL \u306E \`time\` \u5217\u6BD4\u8F03\uFF08\`time >= now() - INTERVAL '...'\`\uFF09
|
|
86845
|
+
- \u96C6\u8A08: \`AVG\`, \`SUM\`, \`MIN\`, \`MAX\`, \`COUNT\`\u3002\u6642\u9593\u30D0\u30B1\u30C3\u30C8: \`date_bin('5 minutes', time)\`
|
|
86846
|
+
- measurement \u4E00\u89A7: \`SHOW TABLES\`\u3001\u5217\u4E00\u89A7: \`SHOW COLUMNS FROM <measurement>\``
|
|
86847
|
+
},
|
|
86848
|
+
tools: tools63
|
|
86849
|
+
});
|
|
86850
|
+
|
|
86677
86851
|
// ../connectors/src/connectors/registry.ts
|
|
86678
86852
|
var plugins = {
|
|
86679
86853
|
snowflake: snowflakeConnector,
|
|
@@ -86737,7 +86911,8 @@ var plugins = {
|
|
|
86737
86911
|
backlog: backlogConnector,
|
|
86738
86912
|
gamma: gammaConnector,
|
|
86739
86913
|
sentry: sentryConnector,
|
|
86740
|
-
salesforce: salesforceConnector
|
|
86914
|
+
salesforce: salesforceConnector,
|
|
86915
|
+
influxdb: influxdbConnector
|
|
86741
86916
|
};
|
|
86742
86917
|
var connectors = {
|
|
86743
86918
|
...plugins,
|
|
@@ -86948,62 +87123,62 @@ function resolveParams2(entry, connectionId, plugin) {
|
|
|
86948
87123
|
var { getQuery, loadConnections, reloadEnvFile, watchConnectionsFile } = createConnectorRegistry();
|
|
86949
87124
|
|
|
86950
87125
|
// src/types/server-logic.ts
|
|
86951
|
-
import { z as
|
|
86952
|
-
var parameterMetaSchema =
|
|
86953
|
-
name:
|
|
86954
|
-
type:
|
|
86955
|
-
description:
|
|
86956
|
-
required:
|
|
86957
|
-
default:
|
|
86958
|
-
});
|
|
86959
|
-
var serverLogicCacheConfigSchema =
|
|
86960
|
-
ttl:
|
|
86961
|
-
staleWhileRevalidate:
|
|
86962
|
-
});
|
|
86963
|
-
var serverLogicSchemaObjectSchema =
|
|
86964
|
-
() =>
|
|
86965
|
-
type:
|
|
86966
|
-
format:
|
|
86967
|
-
description:
|
|
86968
|
-
nullable:
|
|
86969
|
-
enum:
|
|
87126
|
+
import { z as z79 } from "zod";
|
|
87127
|
+
var parameterMetaSchema = z79.object({
|
|
87128
|
+
name: z79.string(),
|
|
87129
|
+
type: z79.enum(["string", "number", "boolean"]),
|
|
87130
|
+
description: z79.string(),
|
|
87131
|
+
required: z79.boolean().optional(),
|
|
87132
|
+
default: z79.union([z79.string(), z79.number(), z79.boolean()]).optional()
|
|
87133
|
+
});
|
|
87134
|
+
var serverLogicCacheConfigSchema = z79.object({
|
|
87135
|
+
ttl: z79.number(),
|
|
87136
|
+
staleWhileRevalidate: z79.boolean().optional()
|
|
87137
|
+
});
|
|
87138
|
+
var serverLogicSchemaObjectSchema = z79.lazy(
|
|
87139
|
+
() => z79.object({
|
|
87140
|
+
type: z79.enum(["string", "number", "integer", "boolean", "object", "array", "null"]).optional(),
|
|
87141
|
+
format: z79.string().optional(),
|
|
87142
|
+
description: z79.string().optional(),
|
|
87143
|
+
nullable: z79.boolean().optional(),
|
|
87144
|
+
enum: z79.array(z79.union([z79.string(), z79.number(), z79.boolean(), z79.null()])).optional(),
|
|
86970
87145
|
items: serverLogicSchemaObjectSchema.optional(),
|
|
86971
|
-
properties:
|
|
86972
|
-
required:
|
|
86973
|
-
additionalProperties:
|
|
86974
|
-
minimum:
|
|
86975
|
-
maximum:
|
|
86976
|
-
minLength:
|
|
86977
|
-
maxLength:
|
|
86978
|
-
pattern:
|
|
87146
|
+
properties: z79.record(z79.string(), serverLogicSchemaObjectSchema).optional(),
|
|
87147
|
+
required: z79.array(z79.string()).optional(),
|
|
87148
|
+
additionalProperties: z79.union([z79.boolean(), serverLogicSchemaObjectSchema]).optional(),
|
|
87149
|
+
minimum: z79.number().optional(),
|
|
87150
|
+
maximum: z79.number().optional(),
|
|
87151
|
+
minLength: z79.number().optional(),
|
|
87152
|
+
maxLength: z79.number().optional(),
|
|
87153
|
+
pattern: z79.string().optional()
|
|
86979
87154
|
})
|
|
86980
87155
|
);
|
|
86981
|
-
var serverLogicMediaTypeSchema =
|
|
87156
|
+
var serverLogicMediaTypeSchema = z79.object({
|
|
86982
87157
|
schema: serverLogicSchemaObjectSchema.optional(),
|
|
86983
|
-
example:
|
|
87158
|
+
example: z79.unknown().optional()
|
|
86984
87159
|
});
|
|
86985
|
-
var serverLogicResponseSchema =
|
|
86986
|
-
description:
|
|
86987
|
-
content:
|
|
87160
|
+
var serverLogicResponseSchema = z79.object({
|
|
87161
|
+
description: z79.string().optional(),
|
|
87162
|
+
content: z79.record(z79.string(), serverLogicMediaTypeSchema).optional()
|
|
86988
87163
|
});
|
|
86989
87164
|
var jsonBaseFields = {
|
|
86990
|
-
description:
|
|
86991
|
-
parameters:
|
|
87165
|
+
description: z79.string(),
|
|
87166
|
+
parameters: z79.array(parameterMetaSchema).optional(),
|
|
86992
87167
|
response: serverLogicResponseSchema.optional(),
|
|
86993
87168
|
cache: serverLogicCacheConfigSchema.optional()
|
|
86994
87169
|
};
|
|
86995
|
-
var jsonSqlServerLogicSchema =
|
|
87170
|
+
var jsonSqlServerLogicSchema = z79.object({
|
|
86996
87171
|
...jsonBaseFields,
|
|
86997
|
-
type:
|
|
86998
|
-
query:
|
|
86999
|
-
connectionId:
|
|
87172
|
+
type: z79.literal("sql").optional(),
|
|
87173
|
+
query: z79.string(),
|
|
87174
|
+
connectionId: z79.string()
|
|
87000
87175
|
});
|
|
87001
|
-
var jsonTypeScriptServerLogicSchema =
|
|
87176
|
+
var jsonTypeScriptServerLogicSchema = z79.object({
|
|
87002
87177
|
...jsonBaseFields,
|
|
87003
|
-
type:
|
|
87004
|
-
handlerPath:
|
|
87178
|
+
type: z79.literal("typescript"),
|
|
87179
|
+
handlerPath: z79.string()
|
|
87005
87180
|
});
|
|
87006
|
-
var anyJsonServerLogicSchema =
|
|
87181
|
+
var anyJsonServerLogicSchema = z79.union([
|
|
87007
87182
|
jsonTypeScriptServerLogicSchema,
|
|
87008
87183
|
jsonSqlServerLogicSchema
|
|
87009
87184
|
]);
|