@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/main.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);
|
|
@@ -66438,11 +66438,7 @@ var snowflakeOnboarding = new ConnectorOnboarding({
|
|
|
66438
66438
|
8. \u7D50\u679C\u306B\u5FDC\u3058\u3066\u5206\u5C90:
|
|
66439
66439
|
- **\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
|
|
66440
66440
|
- **\u30C6\u30FC\u30D6\u30EB\u304C1\u3064\u3060\u3051**: askUserQuestion \u306F\u4F7F\u308F\u305A\u81EA\u52D5\u63A1\u7528
|
|
66441
|
-
9. \`
|
|
66442
|
-
- \`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
|
|
66443
|
-
- \`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
|
|
66444
|
-
- \`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
|
|
66445
|
-
- \`note\`: \u30BB\u30C3\u30C8\u30A2\u30C3\u30D7\u5185\u5BB9\u306E\u7C21\u5358\u306A\u8AAC\u660E
|
|
66441
|
+
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
|
|
66446
66442
|
|
|
66447
66443
|
#### \u5236\u7D04
|
|
66448
66444
|
- 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
|
|
@@ -66465,11 +66461,7 @@ var snowflakeOnboarding = new ConnectorOnboarding({
|
|
|
66465
66461
|
8. Branch based on results:
|
|
66466
66462
|
- **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
|
|
66467
66463
|
- **Exactly 1 table**: Do NOT call askUserQuestion. Auto-select it
|
|
66468
|
-
9.
|
|
66469
|
-
- \`database\`: Selected database name(s) (comma-separated if multiple)
|
|
66470
|
-
- \`schema\`: Selected schema name(s) (comma-separated if multiple)
|
|
66471
|
-
- \`tables\`: Selected table names (fully qualified database.schema.table, comma-separated if multiple. Use "{database}.{schema}.*" for "all tables" schemas)
|
|
66472
|
-
- \`note\`: Brief description of the setup
|
|
66464
|
+
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.
|
|
66473
66465
|
|
|
66474
66466
|
#### Constraints
|
|
66475
66467
|
- askUserQuestion options requires at least 2 items. If there is only 1 item, do NOT call askUserQuestion \u2014 proceed to the next step directly
|
|
@@ -67603,10 +67595,7 @@ var bigqueryOnboarding = new ConnectorOnboarding({
|
|
|
67603
67595
|
7. \u7D50\u679C\u306B\u5FDC\u3058\u3066\u5206\u5C90:
|
|
67604
67596
|
- **\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
|
|
67605
67597
|
- **\u30C6\u30FC\u30D6\u30EB\u304C1\u3064\u3060\u3051**: askUserQuestion \u306F\u4F7F\u308F\u305A\u81EA\u52D5\u63A1\u7528
|
|
67606
|
-
8. \`
|
|
67607
|
-
- \`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
|
|
67608
|
-
- \`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
|
|
67609
|
-
- \`note\`: \u30BB\u30C3\u30C8\u30A2\u30C3\u30D7\u5185\u5BB9\u306E\u7C21\u5358\u306A\u8AAC\u660E
|
|
67598
|
+
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
|
|
67610
67599
|
|
|
67611
67600
|
#### \u5236\u7D04
|
|
67612
67601
|
- **\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
|
|
@@ -67635,10 +67624,7 @@ var bigqueryOnboarding = new ConnectorOnboarding({
|
|
|
67635
67624
|
7. Branch based on results:
|
|
67636
67625
|
- **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
|
|
67637
67626
|
- **Exactly 1 table**: Do NOT call askUserQuestion. Auto-select it
|
|
67638
|
-
8.
|
|
67639
|
-
- \`dataset\`: Selected dataset name(s) (comma-separated if multiple). Record public datasets in the format \`bigquery-public-data.{dataset}\`
|
|
67640
|
-
- \`tables\`: Selected table name(s) (comma-separated if multiple)
|
|
67641
|
-
- \`note\`: Brief description of the setup
|
|
67627
|
+
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.
|
|
67642
67628
|
|
|
67643
67629
|
#### Constraints
|
|
67644
67630
|
- **Do NOT read table row data**. Only the metadata queries specified in the steps above are allowed. All other queries are forbidden
|
|
@@ -68065,10 +68051,7 @@ var bigqueryOnboarding2 = new ConnectorOnboarding({
|
|
|
68065
68051
|
7. \u7D50\u679C\u306B\u5FDC\u3058\u3066\u5206\u5C90:
|
|
68066
68052
|
- **\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
|
|
68067
68053
|
- **\u30C6\u30FC\u30D6\u30EB\u304C1\u3064\u3060\u3051**: askUserQuestion \u306F\u4F7F\u308F\u305A\u81EA\u52D5\u63A1\u7528
|
|
68068
|
-
8. \`
|
|
68069
|
-
- \`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
|
|
68070
|
-
- \`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
|
|
68071
|
-
- \`note\`: \u30BB\u30C3\u30C8\u30A2\u30C3\u30D7\u5185\u5BB9\u306E\u7C21\u5358\u306A\u8AAC\u660E
|
|
68054
|
+
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
|
|
68072
68055
|
|
|
68073
68056
|
#### \u5236\u7D04
|
|
68074
68057
|
- **\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
|
|
@@ -68097,10 +68080,7 @@ var bigqueryOnboarding2 = new ConnectorOnboarding({
|
|
|
68097
68080
|
7. Branch based on results:
|
|
68098
68081
|
- **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
|
|
68099
68082
|
- **Exactly 1 table**: Do NOT call askUserQuestion. Auto-select it
|
|
68100
|
-
8.
|
|
68101
|
-
- \`dataset\`: Selected dataset name(s) (comma-separated if multiple). Record public datasets in the format \`bigquery-public-data.{dataset}\`
|
|
68102
|
-
- \`tables\`: Selected table name(s) (comma-separated if multiple)
|
|
68103
|
-
- \`note\`: Brief description of the setup
|
|
68083
|
+
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.
|
|
68104
68084
|
|
|
68105
68085
|
#### Constraints
|
|
68106
68086
|
- **Do NOT read table row data**. Only the metadata queries specified in the steps above are allowed. All other queries are forbidden
|
|
@@ -69720,10 +69700,6 @@ var googleAdsOnboarding = new ConnectorOnboarding({
|
|
|
69720
69700
|
- \`parameterSlug\`: \`"customer-id"\`
|
|
69721
69701
|
- \`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
|
|
69722
69702
|
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
|
|
69723
|
-
6. \`updateConnectionContext\` \u3092\u547C\u3073\u51FA\u3059:
|
|
69724
|
-
- \`customer\`: \u9078\u629E\u3055\u308C\u305F\u30AB\u30B9\u30BF\u30DE\u30FC\u306E\u8868\u793A\u540D
|
|
69725
|
-
- \`customerId\`: \u9078\u629E\u3055\u308C\u305F\u30AB\u30B9\u30BF\u30DE\u30FCID
|
|
69726
|
-
- \`note\`: \u30BB\u30C3\u30C8\u30A2\u30C3\u30D7\u5185\u5BB9\u306E\u7C21\u5358\u306A\u8AAC\u660E
|
|
69727
69703
|
|
|
69728
69704
|
#### \u5236\u7D04
|
|
69729
69705
|
- **\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
|
|
@@ -69739,10 +69715,6 @@ var googleAdsOnboarding = new ConnectorOnboarding({
|
|
|
69739
69715
|
- \`parameterSlug\`: \`"customer-id"\`
|
|
69740
69716
|
- \`options\`: The customer list. Each option's \`label\` should be \`Account Name (id: customerId)\`, \`value\` should be the customer ID
|
|
69741
69717
|
5. The \`label\` of the user's selected customer will arrive as a message. Proceed to the next step
|
|
69742
|
-
6. Call \`updateConnectionContext\`:
|
|
69743
|
-
- \`customer\`: The selected customer's display name
|
|
69744
|
-
- \`customerId\`: The selected customer ID
|
|
69745
|
-
- \`note\`: Brief description of the setup
|
|
69746
69718
|
|
|
69747
69719
|
#### Constraints
|
|
69748
69720
|
- **Do NOT fetch report data during setup**. Only the metadata requests specified in the steps above are allowed
|
|
@@ -70585,10 +70557,6 @@ var googleAnalyticsOauthOnboarding = new ConnectorOnboarding({
|
|
|
70585
70557
|
- \`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
|
|
70586
70558
|
- \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
|
|
70587
70559
|
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
|
|
70588
|
-
6. \`updateConnectionContext\` \u3092\u547C\u3073\u51FA\u3059:
|
|
70589
|
-
- \`property\`: \u9078\u629E\u3055\u308C\u305F\u30D7\u30ED\u30D1\u30C6\u30A3\u306E\u8868\u793A\u540D
|
|
70590
|
-
- \`propertyId\`: \u9078\u629E\u3055\u308C\u305F\u30D7\u30ED\u30D1\u30C6\u30A3ID
|
|
70591
|
-
- \`note\`: \u30BB\u30C3\u30C8\u30A2\u30C3\u30D7\u5185\u5BB9\u306E\u7C21\u5358\u306A\u8AAC\u660E
|
|
70592
70560
|
|
|
70593
70561
|
#### \u5236\u7D04
|
|
70594
70562
|
- **\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
|
|
@@ -70607,10 +70575,6 @@ var googleAnalyticsOauthOnboarding = new ConnectorOnboarding({
|
|
|
70607
70575
|
- \`options\`: The property list. Each option's \`label\` should be \`Display Name (id: propertyId)\`, \`value\` should be the property ID
|
|
70608
70576
|
- If **0 properties** are returned, abort setup and inform the user that no accessible properties are available
|
|
70609
70577
|
5. The \`label\` of the user's selected property will arrive as a message. Proceed to the next step
|
|
70610
|
-
6. Call \`updateConnectionContext\`:
|
|
70611
|
-
- \`property\`: The selected property's display name
|
|
70612
|
-
- \`propertyId\`: The selected property ID
|
|
70613
|
-
- \`note\`: Brief description of the setup
|
|
70614
70578
|
|
|
70615
70579
|
#### Constraints
|
|
70616
70580
|
- **Do NOT fetch report data during setup**. Only the metadata requests specified in the steps above are allowed
|
|
@@ -71182,11 +71146,6 @@ var googleCalendarOnboarding = new ConnectorOnboarding({
|
|
|
71182
71146
|
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:
|
|
71183
71147
|
- \`parameterSlug\`: \`"impersonate-email"\`
|
|
71184
71148
|
- \`options\`: \`[{ value: <ownerEmail>, label: <ownerEmail> }]\`
|
|
71185
|
-
6. \`updateConnectionContext\` \u3092\u547C\u3073\u51FA\u3057\u3066\u3001\u5BFE\u8C61\u60C5\u5831\u3092\u8A18\u9332\u3059\u308B:
|
|
71186
|
-
- \`user\`: \u6700\u7D42\u7684\u306B\u8A2D\u5B9A\u3057\u305F\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9
|
|
71187
|
-
- \`calendar\`: \u9078\u629E\u3055\u308C\u305F\u30AB\u30EC\u30F3\u30C0\u30FC\u540D
|
|
71188
|
-
- \`calendarId\`: \u9078\u629E\u3055\u308C\u305F\u30AB\u30EC\u30F3\u30C0\u30FCID
|
|
71189
|
-
- \`note\`: \u300CDomain-wide Delegation\u3067 {email} \u306E {calendar} \u306B\u30A2\u30AF\u30BB\u30B9\u300D\u306A\u3069\u306E\u8AAC\u660E
|
|
71190
71149
|
|
|
71191
71150
|
#### \u5236\u7D04
|
|
71192
71151
|
- **\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
|
|
@@ -71209,11 +71168,6 @@ var googleCalendarOnboarding = new ConnectorOnboarding({
|
|
|
71209
71168
|
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:
|
|
71210
71169
|
- \`parameterSlug\`: \`"impersonate-email"\`
|
|
71211
71170
|
- \`options\`: \`[{ value: <ownerEmail>, label: <ownerEmail> }]\`
|
|
71212
|
-
6. Call \`updateConnectionContext\` to record the target:
|
|
71213
|
-
- \`user\`: The final configured email address
|
|
71214
|
-
- \`calendar\`: The selected calendar's name
|
|
71215
|
-
- \`calendarId\`: The selected calendar ID
|
|
71216
|
-
- \`note\`: A description such as "Accessing {email}'s {calendar} via Domain-wide Delegation"
|
|
71217
71171
|
|
|
71218
71172
|
#### Constraints
|
|
71219
71173
|
- **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
|
|
@@ -71639,10 +71593,6 @@ var googleCalendarOauthOnboarding = new ConnectorOnboarding({
|
|
|
71639
71593
|
3. \`updateConnectionParameters\` \u3092\u547C\u3073\u51FA\u3059:
|
|
71640
71594
|
- \`parameterSlug\`: \`"calendar-id"\`
|
|
71641
71595
|
- \`value\`: \u9078\u629E\u3055\u308C\u305F\u30AB\u30EC\u30F3\u30C0\u30FCID
|
|
71642
|
-
4. \`updateConnectionContext\` \u3092\u547C\u3073\u51FA\u3059:
|
|
71643
|
-
- \`calendar\`: \u9078\u629E\u3055\u308C\u305F\u30AB\u30EC\u30F3\u30C0\u30FC\u540D
|
|
71644
|
-
- \`calendarId\`: \u9078\u629E\u3055\u308C\u305F\u30AB\u30EC\u30F3\u30C0\u30FCID
|
|
71645
|
-
- \`note\`: \u30BB\u30C3\u30C8\u30A2\u30C3\u30D7\u5185\u5BB9\u306E\u7C21\u5358\u306A\u8AAC\u660E
|
|
71646
71596
|
|
|
71647
71597
|
#### \u5236\u7D04
|
|
71648
71598
|
- **\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
|
|
@@ -71655,10 +71605,6 @@ var googleCalendarOauthOnboarding = new ConnectorOnboarding({
|
|
|
71655
71605
|
3. Call \`updateConnectionParameters\`:
|
|
71656
71606
|
- \`parameterSlug\`: \`"calendar-id"\`
|
|
71657
71607
|
- \`value\`: The selected calendar ID
|
|
71658
|
-
4. Call \`updateConnectionContext\`:
|
|
71659
|
-
- \`calendar\`: The selected calendar's name
|
|
71660
|
-
- \`calendarId\`: The selected calendar ID
|
|
71661
|
-
- \`note\`: Brief description of the setup
|
|
71662
71608
|
|
|
71663
71609
|
#### Constraints
|
|
71664
71610
|
- **Do NOT fetch event data during setup**. Only the metadata requests specified in the steps above are allowed
|
|
@@ -73460,9 +73406,6 @@ var hubspotOnboarding = new ConnectorOnboarding({
|
|
|
73460
73406
|
- \`method\`: \`"GET"\`
|
|
73461
73407
|
- \`path\`: \`"/account-info/v3/details"\`
|
|
73462
73408
|
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
|
|
73463
|
-
3. \`updateConnectionContext\` \u3092\u547C\u3073\u51FA\u3059:
|
|
73464
|
-
- \`account\`: HubSpot\u30A2\u30AB\u30A6\u30F3\u30C8\u540D\u307E\u305F\u306FID
|
|
73465
|
-
- \`note\`: \u30BB\u30C3\u30C8\u30A2\u30C3\u30D7\u5185\u5BB9\u306E\u7C21\u5358\u306A\u8AAC\u660E
|
|
73466
73409
|
|
|
73467
73410
|
#### \u5236\u7D04
|
|
73468
73411
|
- **\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
|
|
@@ -73473,9 +73416,6 @@ var hubspotOnboarding = new ConnectorOnboarding({
|
|
|
73473
73416
|
- \`method\`: \`"GET"\`
|
|
73474
73417
|
- \`path\`: \`"/account-info/v3/details"\`
|
|
73475
73418
|
2. If an error is returned, ask the user to check the OAuth connection settings
|
|
73476
|
-
3. Call \`updateConnectionContext\`:
|
|
73477
|
-
- \`account\`: HubSpot account name or ID
|
|
73478
|
-
- \`note\`: Brief description of the setup
|
|
73479
73419
|
|
|
73480
73420
|
#### Constraints
|
|
73481
73421
|
- **Do NOT read business data during setup**. Only the metadata request specified in the steps above is allowed
|
|
@@ -73755,9 +73695,6 @@ var stripeOnboarding = new ConnectorOnboarding({
|
|
|
73755
73695
|
- \`method\`: \`"GET"\`
|
|
73756
73696
|
- \`path\`: \`"/v1/accounts"\`
|
|
73757
73697
|
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
|
|
73758
|
-
3. \`updateConnectionContext\` \u3092\u547C\u3073\u51FA\u3059:
|
|
73759
|
-
- \`account\`: Stripe\u30A2\u30AB\u30A6\u30F3\u30C8\u60C5\u5831
|
|
73760
|
-
- \`note\`: \u30BB\u30C3\u30C8\u30A2\u30C3\u30D7\u5185\u5BB9\u306E\u7C21\u5358\u306A\u8AAC\u660E
|
|
73761
73698
|
|
|
73762
73699
|
#### \u5236\u7D04
|
|
73763
73700
|
- **\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
|
|
@@ -73768,9 +73705,6 @@ var stripeOnboarding = new ConnectorOnboarding({
|
|
|
73768
73705
|
- \`method\`: \`"GET"\`
|
|
73769
73706
|
- \`path\`: \`"/v1/accounts"\`
|
|
73770
73707
|
2. If an error is returned, ask the user to check the OAuth connection settings
|
|
73771
|
-
3. Call \`updateConnectionContext\`:
|
|
73772
|
-
- \`account\`: Stripe account info
|
|
73773
|
-
- \`note\`: Brief description of the setup
|
|
73774
73708
|
|
|
73775
73709
|
#### Constraints
|
|
73776
73710
|
- **Do NOT read payment data during setup**. Only the metadata request specified in the steps above is allowed
|
|
@@ -74051,8 +73985,6 @@ var stripeApiKeyOnboarding = new ConnectorOnboarding({
|
|
|
74051
73985
|
- \`method\`: \`"GET"\`
|
|
74052
73986
|
- \`path\`: \`"/v1/balance"\`
|
|
74053
73987
|
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
|
|
74054
|
-
3. \`updateConnectionContext\` \u3092\u547C\u3073\u51FA\u3059:
|
|
74055
|
-
- \`note\`: \u30BB\u30C3\u30C8\u30A2\u30C3\u30D7\u5185\u5BB9\u306E\u7C21\u5358\u306A\u8AAC\u660E
|
|
74056
73988
|
|
|
74057
73989
|
#### \u5236\u7D04
|
|
74058
73990
|
- **\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
|
|
@@ -74063,8 +73995,6 @@ var stripeApiKeyOnboarding = new ConnectorOnboarding({
|
|
|
74063
73995
|
- \`method\`: \`"GET"\`
|
|
74064
73996
|
- \`path\`: \`"/v1/balance"\`
|
|
74065
73997
|
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)
|
|
74066
|
-
3. Call \`updateConnectionContext\`:
|
|
74067
|
-
- \`note\`: Brief description of the setup
|
|
74068
73998
|
|
|
74069
73999
|
#### Constraints
|
|
74070
74000
|
- **Do NOT read payment data during setup**. Only the metadata request specified in the steps above is allowed
|
|
@@ -74374,10 +74304,6 @@ var airtableOauthOnboarding = new ConnectorOnboarding({
|
|
|
74374
74304
|
- \`method\`: \`"GET"\`
|
|
74375
74305
|
- \`path\`: \`"/meta/bases/{baseId}/tables"\`
|
|
74376
74306
|
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
|
|
74377
|
-
6. \`updateConnectionContext\` \u3092\u547C\u3073\u51FA\u3059:
|
|
74378
|
-
- \`base\`: \u30D9\u30FC\u30B9ID
|
|
74379
|
-
- \`tables\`: \u30C6\u30FC\u30D6\u30EB\u540D\u4E00\u89A7\uFF08\u30AB\u30F3\u30DE\u533A\u5207\u308A\uFF09
|
|
74380
|
-
- \`note\`: \u30BB\u30C3\u30C8\u30A2\u30C3\u30D7\u5185\u5BB9\u306E\u7C21\u5358\u306A\u8AAC\u660E
|
|
74381
74307
|
|
|
74382
74308
|
#### \u5236\u7D04
|
|
74383
74309
|
- **\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
|
|
@@ -74393,10 +74319,6 @@ var airtableOauthOnboarding = new ConnectorOnboarding({
|
|
|
74393
74319
|
- \`method\`: \`"GET"\`
|
|
74394
74320
|
- \`path\`: \`"/meta/bases/{baseId}/tables"\`
|
|
74395
74321
|
5. If an error is returned, ask the user to check the base sharing settings
|
|
74396
|
-
6. Call \`updateConnectionContext\`:
|
|
74397
|
-
- \`base\`: The base ID
|
|
74398
|
-
- \`tables\`: Table names (comma-separated)
|
|
74399
|
-
- \`note\`: Brief description of the setup
|
|
74400
74322
|
|
|
74401
74323
|
#### Constraints
|
|
74402
74324
|
- **Do NOT read table record data during setup**. Only the metadata request specified in the steps above is allowed
|
|
@@ -77303,9 +77225,6 @@ var shopifyOauthOnboarding = new ConnectorOnboarding({
|
|
|
77303
77225
|
- \`method\`: \`"GET"\`
|
|
77304
77226
|
- \`path\`: \`"/admin/api/2024-10/shop.json"\`
|
|
77305
77227
|
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
|
|
77306
|
-
3. \`updateConnectionContext\` \u3092\u547C\u3073\u51FA\u3059:
|
|
77307
|
-
- \`shop\`: Shopify\u30B7\u30E7\u30C3\u30D7\u60C5\u5831
|
|
77308
|
-
- \`note\`: \u30BB\u30C3\u30C8\u30A2\u30C3\u30D7\u5185\u5BB9\u306E\u7C21\u5358\u306A\u8AAC\u660E
|
|
77309
77228
|
|
|
77310
77229
|
#### \u5236\u7D04
|
|
77311
77230
|
- **\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
|
|
@@ -77316,9 +77235,6 @@ var shopifyOauthOnboarding = new ConnectorOnboarding({
|
|
|
77316
77235
|
- \`method\`: \`"GET"\`
|
|
77317
77236
|
- \`path\`: \`"/admin/api/2024-10/shop.json"\`
|
|
77318
77237
|
2. If an error is returned, ask the user to check the OAuth connection settings
|
|
77319
|
-
3. Call \`updateConnectionContext\`:
|
|
77320
|
-
- \`shop\`: Shopify shop info
|
|
77321
|
-
- \`note\`: Brief description of the setup
|
|
77322
77238
|
|
|
77323
77239
|
#### Constraints
|
|
77324
77240
|
- **Do NOT read business data (orders, customers, etc.) during setup**. Only the metadata request specified in the steps above is allowed
|
|
@@ -79581,9 +79497,6 @@ var notionOauthOnboarding = new ConnectorOnboarding({
|
|
|
79581
79497
|
- \`method\`: \`"GET"\`
|
|
79582
79498
|
- \`path\`: \`"/users/me"\`
|
|
79583
79499
|
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
|
|
79584
|
-
3. \`updateConnectionContext\` \u3092\u547C\u3073\u51FA\u3059:
|
|
79585
|
-
- \`account\`: Notion\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u540D\u307E\u305F\u306F\u30DC\u30C3\u30C8\u540D
|
|
79586
|
-
- \`note\`: \u30BB\u30C3\u30C8\u30A2\u30C3\u30D7\u5185\u5BB9\u306E\u7C21\u5358\u306A\u8AAC\u660E
|
|
79587
79500
|
|
|
79588
79501
|
#### \u5236\u7D04
|
|
79589
79502
|
- **\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
|
|
@@ -79594,9 +79507,6 @@ var notionOauthOnboarding = new ConnectorOnboarding({
|
|
|
79594
79507
|
- \`method\`: \`"GET"\`
|
|
79595
79508
|
- \`path\`: \`"/users/me"\`
|
|
79596
79509
|
2. If an error is returned, ask the user to check the OAuth connection settings
|
|
79597
|
-
3. Call \`updateConnectionContext\`:
|
|
79598
|
-
- \`account\`: Notion workspace name or bot name
|
|
79599
|
-
- \`note\`: Brief description of the setup
|
|
79600
79510
|
|
|
79601
79511
|
#### Constraints
|
|
79602
79512
|
- **Do NOT read business data during setup**. Only the metadata request specified in the steps above is allowed
|
|
@@ -79870,10 +79780,6 @@ var metaAdsOnboarding = new ConnectorOnboarding({
|
|
|
79870
79780
|
- \`parameterSlug\`: \`"ad-account-id"\`
|
|
79871
79781
|
- \`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
|
|
79872
79782
|
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
|
|
79873
|
-
5. \`updateConnectionContext\` \u3092\u547C\u3073\u51FA\u3059:
|
|
79874
|
-
- \`adAccount\`: \u9078\u629E\u3055\u308C\u305F\u30A2\u30AB\u30A6\u30F3\u30C8\u306E\u8868\u793A\u540D
|
|
79875
|
-
- \`adAccountId\`: \u9078\u629E\u3055\u308C\u305F\u30A2\u30AB\u30A6\u30F3\u30C8ID
|
|
79876
|
-
- \`note\`: \u30BB\u30C3\u30C8\u30A2\u30C3\u30D7\u5185\u5BB9\u306E\u7C21\u5358\u306A\u8AAC\u660E
|
|
79877
79783
|
|
|
79878
79784
|
#### \u5236\u7D04
|
|
79879
79785
|
- **\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
|
|
@@ -79886,10 +79792,6 @@ var metaAdsOnboarding = new ConnectorOnboarding({
|
|
|
79886
79792
|
- \`parameterSlug\`: \`"ad-account-id"\`
|
|
79887
79793
|
- \`options\`: The ad account list. Each option's \`label\` should be \`Account Name (id: accountId)\`, \`value\` should be the account ID
|
|
79888
79794
|
4. The \`label\` of the user's selected account will arrive as a message. Proceed to the next step
|
|
79889
|
-
5. Call \`updateConnectionContext\`:
|
|
79890
|
-
- \`adAccount\`: The selected account's display name
|
|
79891
|
-
- \`adAccountId\`: The selected account ID
|
|
79892
|
-
- \`note\`: Brief description of the setup
|
|
79893
79795
|
|
|
79894
79796
|
#### Constraints
|
|
79895
79797
|
- **Do NOT fetch report data during setup**. Only the metadata requests specified in the steps above are allowed
|
|
@@ -80279,10 +80181,6 @@ var metaAdsOauthOnboarding = new ConnectorOnboarding({
|
|
|
80279
80181
|
- \`parameterSlug\`: \`"ad-account-id"\`
|
|
80280
80182
|
- \`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
|
|
80281
80183
|
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
|
|
80282
|
-
5. \`updateConnectionContext\` \u3092\u547C\u3073\u51FA\u3059:
|
|
80283
|
-
- \`adAccount\`: \u9078\u629E\u3055\u308C\u305F\u30A2\u30AB\u30A6\u30F3\u30C8\u306E\u8868\u793A\u540D
|
|
80284
|
-
- \`adAccountId\`: \u9078\u629E\u3055\u308C\u305F\u30A2\u30AB\u30A6\u30F3\u30C8ID
|
|
80285
|
-
- \`note\`: \u30BB\u30C3\u30C8\u30A2\u30C3\u30D7\u5185\u5BB9\u306E\u7C21\u5358\u306A\u8AAC\u660E
|
|
80286
80184
|
|
|
80287
80185
|
#### \u5236\u7D04
|
|
80288
80186
|
- **\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
|
|
@@ -80295,10 +80193,6 @@ var metaAdsOauthOnboarding = new ConnectorOnboarding({
|
|
|
80295
80193
|
- \`parameterSlug\`: \`"ad-account-id"\`
|
|
80296
80194
|
- \`options\`: The ad account list. Each option's \`label\` should be \`Account Name (id: accountId)\`, \`value\` should be the account ID
|
|
80297
80195
|
4. The \`label\` of the user's selected account will arrive as a message. Proceed to the next step
|
|
80298
|
-
5. Call \`updateConnectionContext\`:
|
|
80299
|
-
- \`adAccount\`: The selected account's display name
|
|
80300
|
-
- \`adAccountId\`: The selected account ID
|
|
80301
|
-
- \`note\`: Brief description of the setup
|
|
80302
80196
|
|
|
80303
80197
|
#### Constraints
|
|
80304
80198
|
- **Do NOT fetch report data during setup**. Only the metadata requests specified in the steps above are allowed
|
|
@@ -80741,10 +80635,6 @@ var tiktokAdsOnboarding = new ConnectorOnboarding({
|
|
|
80741
80635
|
- \`parameterSlug\`: \`"advertiser-id"\`
|
|
80742
80636
|
- \`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
|
|
80743
80637
|
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
|
|
80744
|
-
5. \`updateConnectionContext\` \u3092\u547C\u3073\u51FA\u3059:
|
|
80745
|
-
- \`advertiser\`: \u9078\u629E\u3055\u308C\u305F\u5E83\u544A\u4E3B\u306E\u8868\u793A\u540D
|
|
80746
|
-
- \`advertiserId\`: \u9078\u629E\u3055\u308C\u305F\u5E83\u544A\u4E3BID
|
|
80747
|
-
- \`note\`: \u30BB\u30C3\u30C8\u30A2\u30C3\u30D7\u5185\u5BB9\u306E\u7C21\u5358\u306A\u8AAC\u660E
|
|
80748
80638
|
|
|
80749
80639
|
#### \u5236\u7D04
|
|
80750
80640
|
- **\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
|
|
@@ -80757,10 +80647,6 @@ var tiktokAdsOnboarding = new ConnectorOnboarding({
|
|
|
80757
80647
|
- \`parameterSlug\`: \`"advertiser-id"\`
|
|
80758
80648
|
- \`options\`: The advertiser list. Each option's \`label\` should be \`Advertiser Name (id: advertiserId)\`, \`value\` should be the advertiser ID
|
|
80759
80649
|
4. The \`label\` of the user's selected advertiser will arrive as a message. Proceed to the next step
|
|
80760
|
-
5. Call \`updateConnectionContext\`:
|
|
80761
|
-
- \`advertiser\`: The selected advertiser's display name
|
|
80762
|
-
- \`advertiserId\`: The selected advertiser ID
|
|
80763
|
-
- \`note\`: Brief description of the setup
|
|
80764
80650
|
|
|
80765
80651
|
#### Constraints
|
|
80766
80652
|
- **Do NOT fetch report data during setup**. Only the metadata requests specified in the steps above are allowed
|
|
@@ -82206,10 +82092,6 @@ var gmailOnboarding = new ConnectorOnboarding({
|
|
|
82206
82092
|
5. \`${requestToolName7}\` \u3092\u547C\u3073\u51FA\u3057\u3066\u30E9\u30D9\u30EB\u4E00\u89A7\u3092\u53D6\u5F97\u3059\u308B:
|
|
82207
82093
|
- \`method\`: \`"GET"\`
|
|
82208
82094
|
- \`path\`: \`"/me/labels"\`
|
|
82209
|
-
6. \`updateConnectionContext\` \u3092\u547C\u3073\u51FA\u3059:
|
|
82210
|
-
- \`email\`: \u8A2D\u5B9A\u3057\u305F\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9
|
|
82211
|
-
- \`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
|
|
82212
|
-
- \`note\`: \u30BB\u30C3\u30C8\u30A2\u30C3\u30D7\u5185\u5BB9\u306E\u7C21\u5358\u306A\u8AAC\u660E
|
|
82213
82095
|
|
|
82214
82096
|
#### \u5236\u7D04
|
|
82215
82097
|
- **\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
|
|
@@ -82233,10 +82115,6 @@ var gmailOnboarding = new ConnectorOnboarding({
|
|
|
82233
82115
|
5. Call \`${requestToolName7}\` to get the label list:
|
|
82234
82116
|
- \`method\`: \`"GET"\`
|
|
82235
82117
|
- \`path\`: \`"/me/labels"\`
|
|
82236
|
-
6. Call \`updateConnectionContext\`:
|
|
82237
|
-
- \`email\`: The configured email address
|
|
82238
|
-
- \`labels\`: Key label names (comma-separated, including system labels like INBOX, SENT, DRAFT, SPAM, TRASH)
|
|
82239
|
-
- \`note\`: Brief description of the setup
|
|
82240
82118
|
|
|
82241
82119
|
#### Constraints
|
|
82242
82120
|
- **Do NOT read message bodies during setup**. Only the profile and label list requests specified above are allowed
|
|
@@ -82598,10 +82476,6 @@ var gmailOnboarding2 = new ConnectorOnboarding({
|
|
|
82598
82476
|
3. \`${requestToolName8}\` \u3092\u547C\u3073\u51FA\u3057\u3066\u30E9\u30D9\u30EB\u4E00\u89A7\u3092\u53D6\u5F97\u3059\u308B:
|
|
82599
82477
|
- \`method\`: \`"GET"\`
|
|
82600
82478
|
- \`path\`: \`"/me/labels"\`
|
|
82601
|
-
4. \`updateConnectionContext\` \u3092\u547C\u3073\u51FA\u3059:
|
|
82602
|
-
- \`email\`: \u30E6\u30FC\u30B6\u30FC\u306E\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9
|
|
82603
|
-
- \`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
|
|
82604
|
-
- \`note\`: \u30BB\u30C3\u30C8\u30A2\u30C3\u30D7\u5185\u5BB9\u306E\u7C21\u5358\u306A\u8AAC\u660E
|
|
82605
82479
|
|
|
82606
82480
|
#### \u5236\u7D04
|
|
82607
82481
|
- **\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
|
|
@@ -82615,10 +82489,6 @@ var gmailOnboarding2 = new ConnectorOnboarding({
|
|
|
82615
82489
|
3. Call \`${requestToolName8}\` to get the label list:
|
|
82616
82490
|
- \`method\`: \`"GET"\`
|
|
82617
82491
|
- \`path\`: \`"/me/labels"\`
|
|
82618
|
-
4. Call \`updateConnectionContext\`:
|
|
82619
|
-
- \`email\`: The user's email address
|
|
82620
|
-
- \`labels\`: Key label names (comma-separated, including system labels like INBOX, SENT, DRAFT, SPAM, TRASH)
|
|
82621
|
-
- \`note\`: Brief description of the setup
|
|
82622
82492
|
|
|
82623
82493
|
#### Constraints
|
|
82624
82494
|
- **Do NOT read message bodies during setup**. Only the profile and label list requests specified above are allowed
|
|
@@ -82974,10 +82844,6 @@ var linkedinAdsOnboarding = new ConnectorOnboarding({
|
|
|
82974
82844
|
- \`parameterSlug\`: \`"ad-account-id"\`
|
|
82975
82845
|
- \`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
|
|
82976
82846
|
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
|
|
82977
|
-
5. \`updateConnectionContext\` \u3092\u547C\u3073\u51FA\u3059:
|
|
82978
|
-
- \`adAccount\`: \u9078\u629E\u3055\u308C\u305F\u30A2\u30AB\u30A6\u30F3\u30C8\u306E\u8868\u793A\u540D
|
|
82979
|
-
- \`adAccountId\`: \u9078\u629E\u3055\u308C\u305F\u30A2\u30AB\u30A6\u30F3\u30C8ID
|
|
82980
|
-
- \`note\`: \u30BB\u30C3\u30C8\u30A2\u30C3\u30D7\u5185\u5BB9\u306E\u7C21\u5358\u306A\u8AAC\u660E
|
|
82981
82847
|
|
|
82982
82848
|
#### \u5236\u7D04
|
|
82983
82849
|
- **\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
|
|
@@ -82990,10 +82856,6 @@ var linkedinAdsOnboarding = new ConnectorOnboarding({
|
|
|
82990
82856
|
- \`parameterSlug\`: \`"ad-account-id"\`
|
|
82991
82857
|
- \`options\`: The ad account list. Each option's \`label\` should be \`Account Name (id: accountId)\`, \`value\` should be the account ID
|
|
82992
82858
|
4. The \`label\` of the user's selected account will arrive as a message. Proceed to the next step
|
|
82993
|
-
5. Call \`updateConnectionContext\`:
|
|
82994
|
-
- \`adAccount\`: The selected account's display name
|
|
82995
|
-
- \`adAccountId\`: The selected account ID
|
|
82996
|
-
- \`note\`: Brief description of the setup
|
|
82997
82859
|
|
|
82998
82860
|
#### Constraints
|
|
82999
82861
|
- **Do NOT fetch report data during setup**. Only the metadata requests specified in the steps above are allowed
|
|
@@ -83836,9 +83698,6 @@ var zendeskOauthOnboarding = new ConnectorOnboarding({
|
|
|
83836
83698
|
- \`method\`: \`"GET"\`
|
|
83837
83699
|
- \`path\`: \`"/api/v2/account/settings.json"\`
|
|
83838
83700
|
2. If an error is returned, ask the user to check the OAuth connection settings
|
|
83839
|
-
3. Call \`updateConnectionContext\`:
|
|
83840
|
-
- \`account\`: Zendesk subdomain or account name
|
|
83841
|
-
- \`note\`: Brief description of the setup
|
|
83842
83701
|
|
|
83843
83702
|
#### Constraints
|
|
83844
83703
|
- **Do NOT read business data during setup**. Only the metadata request specified in the steps above is allowed
|
|
@@ -83849,9 +83708,6 @@ var zendeskOauthOnboarding = new ConnectorOnboarding({
|
|
|
83849
83708
|
- \`method\`: \`"GET"\`
|
|
83850
83709
|
- \`path\`: \`"/api/v2/account/settings.json"\`
|
|
83851
83710
|
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
|
|
83852
|
-
3. \`updateConnectionContext\` \u3092\u547C\u3073\u51FA\u3059:
|
|
83853
|
-
- \`account\`: Zendesk\u30B5\u30D6\u30C9\u30E1\u30A4\u30F3\u307E\u305F\u306F\u30A2\u30AB\u30A6\u30F3\u30C8\u540D
|
|
83854
|
-
- \`note\`: \u30BB\u30C3\u30C8\u30A2\u30C3\u30D7\u5185\u5BB9\u306E\u7C21\u5358\u306A\u8AAC\u660E
|
|
83855
83711
|
|
|
83856
83712
|
#### \u5236\u7D04
|
|
83857
83713
|
- **\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
|
|
@@ -84482,9 +84338,6 @@ var intercomOauthOnboarding = new ConnectorOnboarding({
|
|
|
84482
84338
|
- \`method\`: \`"GET"\`
|
|
84483
84339
|
- \`path\`: \`"/me"\`
|
|
84484
84340
|
2. If an error is returned, ask the user to check the OAuth connection settings
|
|
84485
|
-
3. Call \`updateConnectionContext\`:
|
|
84486
|
-
- \`account\`: Intercom workspace name or admin email
|
|
84487
|
-
- \`note\`: Brief description of the setup
|
|
84488
84341
|
|
|
84489
84342
|
#### Constraints
|
|
84490
84343
|
- **Do NOT read business data during setup**. Only the metadata request specified in the steps above is allowed
|
|
@@ -84495,9 +84348,6 @@ var intercomOauthOnboarding = new ConnectorOnboarding({
|
|
|
84495
84348
|
- \`method\`: \`"GET"\`
|
|
84496
84349
|
- \`path\`: \`"/me"\`
|
|
84497
84350
|
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
|
|
84498
|
-
3. \`updateConnectionContext\` \u3092\u547C\u3073\u51FA\u3059:
|
|
84499
|
-
- \`account\`: Intercom\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u540D\u307E\u305F\u306F\u7BA1\u7406\u8005\u30E1\u30FC\u30EB
|
|
84500
|
-
- \`note\`: \u30BB\u30C3\u30C8\u30A2\u30C3\u30D7\u5185\u5BB9\u306E\u7C21\u5358\u306A\u8AAC\u660E
|
|
84501
84351
|
|
|
84502
84352
|
#### \u5236\u7D04
|
|
84503
84353
|
- **\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
|
|
@@ -86673,6 +86523,330 @@ export default async function handler(c: Context) {
|
|
|
86673
86523
|
tools: tools62
|
|
86674
86524
|
});
|
|
86675
86525
|
|
|
86526
|
+
// ../connectors/src/connectors/influxdb/setup.ts
|
|
86527
|
+
var influxdbOnboarding = new ConnectorOnboarding({
|
|
86528
|
+
connectionSetupInstructions: {
|
|
86529
|
+
en: `#### Generate an API Token
|
|
86530
|
+
1. Sign in to your InfluxDB Cloud / OSS instance
|
|
86531
|
+
2. Go to Load Data \u2192 API Tokens \u2192 Generate API Token
|
|
86532
|
+
3. Create an All-Access or Custom token with at least read permission on your target database/bucket
|
|
86533
|
+
4. Copy the token into the API Token parameter
|
|
86534
|
+
|
|
86535
|
+
#### Confirm the Database (or Bucket) Name
|
|
86536
|
+
- InfluxDB 3: use the database name
|
|
86537
|
+
- InfluxDB 2: use the bucket name (buckets act as databases in the v1/v3 compatibility endpoints)
|
|
86538
|
+
|
|
86539
|
+
#### Organization (InfluxDB 2 only)
|
|
86540
|
+
- If you are on InfluxDB 2, set the Organization parameter to the org that owns the bucket
|
|
86541
|
+
- For InfluxDB 3 Cloud you can leave Organization blank`,
|
|
86542
|
+
ja: `#### API \u30C8\u30FC\u30AF\u30F3\u306E\u767A\u884C
|
|
86543
|
+
1. InfluxDB Cloud / OSS \u306B\u30B5\u30A4\u30F3\u30A4\u30F3
|
|
86544
|
+
2. Load Data \u2192 API Tokens \u2192 Generate API Token
|
|
86545
|
+
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
|
|
86546
|
+
4. \u767A\u884C\u3057\u305F\u30C8\u30FC\u30AF\u30F3\u3092 API Token \u30D1\u30E9\u30E1\u30FC\u30BF\u306B\u8CBC\u308A\u4ED8\u3051
|
|
86547
|
+
|
|
86548
|
+
#### Database (\u307E\u305F\u306F Bucket) \u540D\u306E\u78BA\u8A8D
|
|
86549
|
+
- InfluxDB 3: database \u540D\u3092\u4F7F\u7528
|
|
86550
|
+
- 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
|
|
86551
|
+
|
|
86552
|
+
#### Organization\uFF08InfluxDB 2 \u306E\u307F\uFF09
|
|
86553
|
+
- InfluxDB 2 \u306E\u5834\u5408\u3001bucket \u3092\u4FDD\u6709\u3059\u308B\u7D44\u7E54\u540D\u3092 Organization \u30D1\u30E9\u30E1\u30FC\u30BF\u306B\u8A2D\u5B9A
|
|
86554
|
+
- InfluxDB 3 Cloud \u306E\u5834\u5408\u306F\u7A7A\u306E\u307E\u307E\u3067\u554F\u984C\u306A\u3044`
|
|
86555
|
+
},
|
|
86556
|
+
dataOverviewInstructions: {
|
|
86557
|
+
en: `1. For InfluxDB 3: call influxdb_request with POST /api/v3/query_sql, body { "db": "<database>", "q": "SHOW TABLES" } to list measurements
|
|
86558
|
+
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" }
|
|
86559
|
+
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`,
|
|
86560
|
+
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
|
|
86561
|
+
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
|
|
86562
|
+
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`
|
|
86563
|
+
}
|
|
86564
|
+
});
|
|
86565
|
+
|
|
86566
|
+
// ../connectors/src/connectors/influxdb/parameters.ts
|
|
86567
|
+
var parameters63 = {
|
|
86568
|
+
url: new ParameterDefinition({
|
|
86569
|
+
slug: "url",
|
|
86570
|
+
name: "InfluxDB URL",
|
|
86571
|
+
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.",
|
|
86572
|
+
envVarBaseKey: "INFLUXDB_URL",
|
|
86573
|
+
type: "text",
|
|
86574
|
+
secret: false,
|
|
86575
|
+
required: true
|
|
86576
|
+
}),
|
|
86577
|
+
token: new ParameterDefinition({
|
|
86578
|
+
slug: "token",
|
|
86579
|
+
name: "API Token",
|
|
86580
|
+
description: "The API token used to authenticate against your InfluxDB instance. Generate one from the InfluxDB UI (Load Data \u2192 API Tokens).",
|
|
86581
|
+
envVarBaseKey: "INFLUXDB_TOKEN",
|
|
86582
|
+
type: "text",
|
|
86583
|
+
secret: true,
|
|
86584
|
+
required: true
|
|
86585
|
+
}),
|
|
86586
|
+
database: new ParameterDefinition({
|
|
86587
|
+
slug: "database",
|
|
86588
|
+
name: "Database",
|
|
86589
|
+
description: "The default database to query. For InfluxDB 3 this is the database name; for InfluxDB 2 use the bucket name.",
|
|
86590
|
+
envVarBaseKey: "INFLUXDB_DATABASE",
|
|
86591
|
+
type: "text",
|
|
86592
|
+
secret: false,
|
|
86593
|
+
required: true
|
|
86594
|
+
}),
|
|
86595
|
+
org: new ParameterDefinition({
|
|
86596
|
+
slug: "org",
|
|
86597
|
+
name: "Organization",
|
|
86598
|
+
description: "The InfluxDB organization name. Required for InfluxDB 2.x Flux queries and writes; optional for InfluxDB 3.",
|
|
86599
|
+
envVarBaseKey: "INFLUXDB_ORG",
|
|
86600
|
+
type: "text",
|
|
86601
|
+
secret: false,
|
|
86602
|
+
required: false
|
|
86603
|
+
})
|
|
86604
|
+
};
|
|
86605
|
+
|
|
86606
|
+
// ../connectors/src/connectors/influxdb/tools/request.ts
|
|
86607
|
+
import { z as z78 } from "zod";
|
|
86608
|
+
var REQUEST_TIMEOUT_MS60 = 6e4;
|
|
86609
|
+
var inputSchema76 = z78.object({
|
|
86610
|
+
toolUseIntent: z78.string().optional().describe(
|
|
86611
|
+
"Brief description of what you intend to accomplish with this tool call"
|
|
86612
|
+
),
|
|
86613
|
+
connectionId: z78.string().describe("ID of the InfluxDB connection to use"),
|
|
86614
|
+
method: z78.enum(["GET", "POST", "DELETE"]).describe(
|
|
86615
|
+
"HTTP method. POST for SQL/InfluxQL/Flux queries and writes, GET for metadata endpoints, DELETE for delete endpoints."
|
|
86616
|
+
),
|
|
86617
|
+
path: z78.string().describe(
|
|
86618
|
+
"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."
|
|
86619
|
+
),
|
|
86620
|
+
body: z78.union([z78.record(z78.string(), z78.unknown()), z78.string()]).optional().describe(
|
|
86621
|
+
"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."
|
|
86622
|
+
),
|
|
86623
|
+
contentType: z78.string().optional().describe(
|
|
86624
|
+
"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'."
|
|
86625
|
+
)
|
|
86626
|
+
});
|
|
86627
|
+
var outputSchema76 = z78.discriminatedUnion("success", [
|
|
86628
|
+
z78.object({
|
|
86629
|
+
success: z78.literal(true),
|
|
86630
|
+
status: z78.number(),
|
|
86631
|
+
data: z78.unknown()
|
|
86632
|
+
}),
|
|
86633
|
+
z78.object({
|
|
86634
|
+
success: z78.literal(false),
|
|
86635
|
+
error: z78.string()
|
|
86636
|
+
})
|
|
86637
|
+
]);
|
|
86638
|
+
var requestTool48 = new ConnectorTool({
|
|
86639
|
+
name: "request",
|
|
86640
|
+
description: `Send authenticated requests to the InfluxDB HTTP API.
|
|
86641
|
+
Authentication is handled automatically using the API token (\`Authorization: Token {token}\`). The instance URL is resolved from the connection.
|
|
86642
|
+
Use this tool for all InfluxDB interactions: running SQL / InfluxQL / Flux queries, writing line protocol, and managing buckets / databases.
|
|
86643
|
+
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.`,
|
|
86644
|
+
inputSchema: inputSchema76,
|
|
86645
|
+
outputSchema: outputSchema76,
|
|
86646
|
+
async execute({ connectionId, method, path: path6, body, contentType }, connections) {
|
|
86647
|
+
const connection2 = connections.find((c6) => c6.id === connectionId);
|
|
86648
|
+
if (!connection2) {
|
|
86649
|
+
return {
|
|
86650
|
+
success: false,
|
|
86651
|
+
error: `Connection ${connectionId} not found`
|
|
86652
|
+
};
|
|
86653
|
+
}
|
|
86654
|
+
console.log(
|
|
86655
|
+
`[connector-request] influxdb/${connection2.name}: ${method} ${path6}`
|
|
86656
|
+
);
|
|
86657
|
+
try {
|
|
86658
|
+
const url = parameters63.url.getValue(connection2).replace(/\/$/, "");
|
|
86659
|
+
const token = parameters63.token.getValue(connection2);
|
|
86660
|
+
const fullUrl = `${url}${path6.startsWith("/") ? "" : "/"}${path6}`;
|
|
86661
|
+
const controller = new AbortController();
|
|
86662
|
+
const timeout = setTimeout(() => controller.abort(), REQUEST_TIMEOUT_MS60);
|
|
86663
|
+
const resolvedContentType = contentType ?? (typeof body === "string" ? "text/plain; charset=utf-8" : "application/json");
|
|
86664
|
+
const serializedBody = body === void 0 ? void 0 : typeof body === "string" ? body : JSON.stringify(body);
|
|
86665
|
+
try {
|
|
86666
|
+
const response = await fetch(fullUrl, {
|
|
86667
|
+
method,
|
|
86668
|
+
headers: {
|
|
86669
|
+
Authorization: `Token ${token}`,
|
|
86670
|
+
"Content-Type": resolvedContentType,
|
|
86671
|
+
Accept: "application/json"
|
|
86672
|
+
},
|
|
86673
|
+
body: serializedBody,
|
|
86674
|
+
signal: controller.signal
|
|
86675
|
+
});
|
|
86676
|
+
const text = await response.text();
|
|
86677
|
+
let data;
|
|
86678
|
+
const resContentType = response.headers.get("content-type") ?? "";
|
|
86679
|
+
if (resContentType.includes("application/json")) {
|
|
86680
|
+
try {
|
|
86681
|
+
data = text ? JSON.parse(text) : null;
|
|
86682
|
+
} catch {
|
|
86683
|
+
data = { raw: text };
|
|
86684
|
+
}
|
|
86685
|
+
} else {
|
|
86686
|
+
data = text;
|
|
86687
|
+
}
|
|
86688
|
+
if (!response.ok) {
|
|
86689
|
+
let errorMessage = `HTTP ${response.status} ${response.statusText}`;
|
|
86690
|
+
if (data && typeof data === "object" && !Array.isArray(data) && typeof data.message === "string") {
|
|
86691
|
+
errorMessage = data.message;
|
|
86692
|
+
} else if (typeof data === "string" && data) {
|
|
86693
|
+
errorMessage = data;
|
|
86694
|
+
}
|
|
86695
|
+
return { success: false, error: errorMessage };
|
|
86696
|
+
}
|
|
86697
|
+
return { success: true, status: response.status, data };
|
|
86698
|
+
} finally {
|
|
86699
|
+
clearTimeout(timeout);
|
|
86700
|
+
}
|
|
86701
|
+
} catch (err) {
|
|
86702
|
+
const msg = err instanceof Error ? err.message : String(err);
|
|
86703
|
+
return { success: false, error: msg };
|
|
86704
|
+
}
|
|
86705
|
+
}
|
|
86706
|
+
});
|
|
86707
|
+
|
|
86708
|
+
// ../connectors/src/connectors/influxdb/index.ts
|
|
86709
|
+
var tools63 = { request: requestTool48 };
|
|
86710
|
+
var influxdbConnector = new ConnectorPlugin({
|
|
86711
|
+
slug: "influxdb",
|
|
86712
|
+
authType: AUTH_TYPES.API_KEY,
|
|
86713
|
+
name: "InfluxDB",
|
|
86714
|
+
description: "Connect to InfluxDB (Cloud or OSS) to query time-series data with SQL, InfluxQL, or Flux and to write line protocol.",
|
|
86715
|
+
iconUrl: "https://upload.wikimedia.org/wikipedia/commons/b/b2/Influxdb_logo.svg",
|
|
86716
|
+
parameters: parameters63,
|
|
86717
|
+
releaseFlag: { dev1: true, dev2: false, prod: false },
|
|
86718
|
+
onboarding: influxdbOnboarding,
|
|
86719
|
+
systemPrompt: {
|
|
86720
|
+
en: `### Tools
|
|
86721
|
+
|
|
86722
|
+
- \`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\`.
|
|
86723
|
+
|
|
86724
|
+
### Business Logic
|
|
86725
|
+
|
|
86726
|
+
The business logic type for this connector is "typescript". Use the connector SDK in your handler. Do NOT read credentials from environment variables.
|
|
86727
|
+
|
|
86728
|
+
SDK methods (client created via \`connection(connectionId)\`):
|
|
86729
|
+
- \`client.request(path, init?)\` \u2014 low-level authenticated fetch against the InfluxDB base URL
|
|
86730
|
+
- \`client.querySql<T>(sql, options?)\` \u2014 InfluxDB 3 SQL query; returns an array of row objects, defaults \`db\` to the configured database
|
|
86731
|
+
- \`client.queryInfluxql<T>(influxql, options?)\` \u2014 InfluxDB 3 InfluxQL query; same shape as \`querySql\`
|
|
86732
|
+
- \`client.queryFlux(flux, options?)\` \u2014 InfluxDB 2 Flux query; returns raw annotated CSV (parse as needed)
|
|
86733
|
+
- \`client.writeLineProtocol(lineProtocol, options?)\` \u2014 append-only write; uses v3 or v2 endpoint depending on whether \`org\` is configured
|
|
86734
|
+
- \`client.database\` / \`client.org\` \u2014 connection-level defaults
|
|
86735
|
+
|
|
86736
|
+
\`\`\`ts
|
|
86737
|
+
import type { Context } from "hono";
|
|
86738
|
+
import { connection } from "@squadbase/vite-server/connectors/influxdb";
|
|
86739
|
+
|
|
86740
|
+
const influx = connection("<connectionId>");
|
|
86741
|
+
|
|
86742
|
+
export default async function handler(c: Context) {
|
|
86743
|
+
const { measurement = "cpu", limit = 60 } = await c.req.json<{
|
|
86744
|
+
measurement?: string;
|
|
86745
|
+
limit?: number;
|
|
86746
|
+
}>();
|
|
86747
|
+
|
|
86748
|
+
const rows = await influx.querySql<{
|
|
86749
|
+
time: string;
|
|
86750
|
+
usage_user: number;
|
|
86751
|
+
host: string;
|
|
86752
|
+
}>(
|
|
86753
|
+
\`SELECT time, usage_user, host FROM \${measurement} ORDER BY time DESC LIMIT \${limit}\`,
|
|
86754
|
+
);
|
|
86755
|
+
|
|
86756
|
+
return c.json({ series: rows });
|
|
86757
|
+
}
|
|
86758
|
+
\`\`\`
|
|
86759
|
+
|
|
86760
|
+
### InfluxDB HTTP API Reference
|
|
86761
|
+
|
|
86762
|
+
- Base URL: the \`url\` parameter (e.g., \`https://us-east-1-1.aws.cloud2.influxdata.com\`)
|
|
86763
|
+
- Authentication: \`Authorization: Token {token}\` (handled automatically)
|
|
86764
|
+
- Response content types: \`application/json\` for SQL/InfluxQL, annotated CSV for Flux
|
|
86765
|
+
|
|
86766
|
+
#### InfluxDB 3 Endpoints
|
|
86767
|
+
- POST \`/api/v3/query_sql\` \u2014 Body: \`{ "db": "<database>", "q": "<sql>" }\` \u2192 JSON rows
|
|
86768
|
+
- POST \`/api/v3/query_influxql\` \u2014 Body: \`{ "db": "<database>", "q": "<influxql>" }\` \u2192 JSON rows
|
|
86769
|
+
- POST \`/api/v3/write_lp?db=<database>&precision=ns\` \u2014 Body: raw line protocol
|
|
86770
|
+
- GET \`/api/v3/configure/database\` \u2014 List databases
|
|
86771
|
+
|
|
86772
|
+
#### InfluxDB 2 Endpoints
|
|
86773
|
+
- POST \`/api/v2/query?org=<org>\` \u2014 Body: Flux script (Content-Type: \`application/vnd.flux\`) \u2192 annotated CSV
|
|
86774
|
+
- POST \`/api/v2/write?org=<org>&bucket=<bucket>&precision=ns\` \u2014 Body: raw line protocol
|
|
86775
|
+
- GET \`/api/v2/buckets?org=<org>\` \u2014 List buckets
|
|
86776
|
+
- GET \`/api/v2/orgs\` \u2014 List organizations
|
|
86777
|
+
|
|
86778
|
+
#### SQL Reference (InfluxDB 3)
|
|
86779
|
+
- \`SELECT field_list FROM measurement WHERE time >= now() - INTERVAL '1 hour' AND tag = 'x' ORDER BY time DESC LIMIT 100\`
|
|
86780
|
+
- Time filtering uses standard SQL \`time\` column comparisons (\`time >= now() - INTERVAL '...' \`)
|
|
86781
|
+
- Aggregates: \`AVG\`, \`SUM\`, \`MIN\`, \`MAX\`, \`COUNT\`; bucket time with \`date_bin('5 minutes', time)\`
|
|
86782
|
+
- List measurements: \`SHOW TABLES\`; list columns: \`SHOW COLUMNS FROM <measurement>\``,
|
|
86783
|
+
ja: `### \u30C4\u30FC\u30EB
|
|
86784
|
+
|
|
86785
|
+
- \`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
|
|
86786
|
+
|
|
86787
|
+
### Business Logic
|
|
86788
|
+
|
|
86789
|
+
\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
|
|
86790
|
+
|
|
86791
|
+
SDK\u30E1\u30BD\u30C3\u30C9 (\`connection(connectionId)\` \u3067\u4F5C\u6210\u3057\u305F\u30AF\u30E9\u30A4\u30A2\u30F3\u30C8):
|
|
86792
|
+
- \`client.request(path, init?)\` \u2014 InfluxDB \u30D9\u30FC\u30B9 URL \u306B\u5BFE\u3059\u308B\u4F4E\u30EC\u30D9\u30EB\u306E\u8A8D\u8A3C\u4ED8\u304D fetch
|
|
86793
|
+
- \`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
|
|
86794
|
+
- \`client.queryInfluxql<T>(influxql, options?)\` \u2014 InfluxDB 3 \u306E InfluxQL \u30AF\u30A8\u30EA\uFF08\`querySql\` \u3068\u540C\u3058\u5F62\u5F0F\uFF09
|
|
86795
|
+
- \`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
|
|
86796
|
+
- \`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
|
|
86797
|
+
- \`client.database\` / \`client.org\` \u2014 \u63A5\u7D9A\u5358\u4F4D\u306E\u30C7\u30D5\u30A9\u30EB\u30C8\u5024
|
|
86798
|
+
|
|
86799
|
+
\`\`\`ts
|
|
86800
|
+
import type { Context } from "hono";
|
|
86801
|
+
import { connection } from "@squadbase/vite-server/connectors/influxdb";
|
|
86802
|
+
|
|
86803
|
+
const influx = connection("<connectionId>");
|
|
86804
|
+
|
|
86805
|
+
export default async function handler(c: Context) {
|
|
86806
|
+
const { measurement = "cpu", limit = 60 } = await c.req.json<{
|
|
86807
|
+
measurement?: string;
|
|
86808
|
+
limit?: number;
|
|
86809
|
+
}>();
|
|
86810
|
+
|
|
86811
|
+
const rows = await influx.querySql<{
|
|
86812
|
+
time: string;
|
|
86813
|
+
usage_user: number;
|
|
86814
|
+
host: string;
|
|
86815
|
+
}>(
|
|
86816
|
+
\`SELECT time, usage_user, host FROM \${measurement} ORDER BY time DESC LIMIT \${limit}\`,
|
|
86817
|
+
);
|
|
86818
|
+
|
|
86819
|
+
return c.json({ series: rows });
|
|
86820
|
+
}
|
|
86821
|
+
\`\`\`
|
|
86822
|
+
|
|
86823
|
+
### InfluxDB HTTP API \u30EA\u30D5\u30A1\u30EC\u30F3\u30B9
|
|
86824
|
+
|
|
86825
|
+
- \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
|
|
86826
|
+
- \u8A8D\u8A3C: \`Authorization: Token {token}\`\uFF08\u81EA\u52D5\u8A2D\u5B9A\uFF09
|
|
86827
|
+
- \u30EC\u30B9\u30DD\u30F3\u30B9\u5F62\u5F0F: SQL/InfluxQL \u306F JSON\u3001Flux \u306F\u6CE8\u91C8\u4ED8\u304D CSV
|
|
86828
|
+
|
|
86829
|
+
#### InfluxDB 3 \u30A8\u30F3\u30C9\u30DD\u30A4\u30F3\u30C8
|
|
86830
|
+
- POST \`/api/v3/query_sql\` \u2014 Body: \`{ "db": "<database>", "q": "<sql>" }\` \u2192 JSON \u884C
|
|
86831
|
+
- POST \`/api/v3/query_influxql\` \u2014 Body: \`{ "db": "<database>", "q": "<influxql>" }\` \u2192 JSON \u884C
|
|
86832
|
+
- POST \`/api/v3/write_lp?db=<database>&precision=ns\` \u2014 Body: line protocol \u751F\u6587\u5B57\u5217
|
|
86833
|
+
- GET \`/api/v3/configure/database\` \u2014 database \u4E00\u89A7
|
|
86834
|
+
|
|
86835
|
+
#### InfluxDB 2 \u30A8\u30F3\u30C9\u30DD\u30A4\u30F3\u30C8
|
|
86836
|
+
- 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
|
|
86837
|
+
- POST \`/api/v2/write?org=<org>&bucket=<bucket>&precision=ns\` \u2014 Body: line protocol \u751F\u6587\u5B57\u5217
|
|
86838
|
+
- GET \`/api/v2/buckets?org=<org>\` \u2014 bucket \u4E00\u89A7
|
|
86839
|
+
- GET \`/api/v2/orgs\` \u2014 organization \u4E00\u89A7
|
|
86840
|
+
|
|
86841
|
+
#### SQL \u30EA\u30D5\u30A1\u30EC\u30F3\u30B9 (InfluxDB 3)
|
|
86842
|
+
- \`SELECT field_list FROM measurement WHERE time >= now() - INTERVAL '1 hour' AND tag = 'x' ORDER BY time DESC LIMIT 100\`
|
|
86843
|
+
- \u6642\u523B\u30D5\u30A3\u30EB\u30BF\u306F\u6A19\u6E96 SQL \u306E \`time\` \u5217\u6BD4\u8F03\uFF08\`time >= now() - INTERVAL '...'\`\uFF09
|
|
86844
|
+
- \u96C6\u8A08: \`AVG\`, \`SUM\`, \`MIN\`, \`MAX\`, \`COUNT\`\u3002\u6642\u9593\u30D0\u30B1\u30C3\u30C8: \`date_bin('5 minutes', time)\`
|
|
86845
|
+
- measurement \u4E00\u89A7: \`SHOW TABLES\`\u3001\u5217\u4E00\u89A7: \`SHOW COLUMNS FROM <measurement>\``
|
|
86846
|
+
},
|
|
86847
|
+
tools: tools63
|
|
86848
|
+
});
|
|
86849
|
+
|
|
86676
86850
|
// ../connectors/src/connectors/registry.ts
|
|
86677
86851
|
var plugins = {
|
|
86678
86852
|
snowflake: snowflakeConnector,
|
|
@@ -86736,7 +86910,8 @@ var plugins = {
|
|
|
86736
86910
|
backlog: backlogConnector,
|
|
86737
86911
|
gamma: gammaConnector,
|
|
86738
86912
|
sentry: sentryConnector,
|
|
86739
|
-
salesforce: salesforceConnector
|
|
86913
|
+
salesforce: salesforceConnector,
|
|
86914
|
+
influxdb: influxdbConnector
|
|
86740
86915
|
};
|
|
86741
86916
|
var connectors = {
|
|
86742
86917
|
...plugins,
|
|
@@ -86947,62 +87122,62 @@ function resolveParams2(entry, connectionId, plugin) {
|
|
|
86947
87122
|
var { getQuery, loadConnections, reloadEnvFile, watchConnectionsFile } = createConnectorRegistry();
|
|
86948
87123
|
|
|
86949
87124
|
// src/types/server-logic.ts
|
|
86950
|
-
import { z as
|
|
86951
|
-
var parameterMetaSchema =
|
|
86952
|
-
name:
|
|
86953
|
-
type:
|
|
86954
|
-
description:
|
|
86955
|
-
required:
|
|
86956
|
-
default:
|
|
86957
|
-
});
|
|
86958
|
-
var serverLogicCacheConfigSchema =
|
|
86959
|
-
ttl:
|
|
86960
|
-
staleWhileRevalidate:
|
|
86961
|
-
});
|
|
86962
|
-
var serverLogicSchemaObjectSchema =
|
|
86963
|
-
() =>
|
|
86964
|
-
type:
|
|
86965
|
-
format:
|
|
86966
|
-
description:
|
|
86967
|
-
nullable:
|
|
86968
|
-
enum:
|
|
87125
|
+
import { z as z79 } from "zod";
|
|
87126
|
+
var parameterMetaSchema = z79.object({
|
|
87127
|
+
name: z79.string(),
|
|
87128
|
+
type: z79.enum(["string", "number", "boolean"]),
|
|
87129
|
+
description: z79.string(),
|
|
87130
|
+
required: z79.boolean().optional(),
|
|
87131
|
+
default: z79.union([z79.string(), z79.number(), z79.boolean()]).optional()
|
|
87132
|
+
});
|
|
87133
|
+
var serverLogicCacheConfigSchema = z79.object({
|
|
87134
|
+
ttl: z79.number(),
|
|
87135
|
+
staleWhileRevalidate: z79.boolean().optional()
|
|
87136
|
+
});
|
|
87137
|
+
var serverLogicSchemaObjectSchema = z79.lazy(
|
|
87138
|
+
() => z79.object({
|
|
87139
|
+
type: z79.enum(["string", "number", "integer", "boolean", "object", "array", "null"]).optional(),
|
|
87140
|
+
format: z79.string().optional(),
|
|
87141
|
+
description: z79.string().optional(),
|
|
87142
|
+
nullable: z79.boolean().optional(),
|
|
87143
|
+
enum: z79.array(z79.union([z79.string(), z79.number(), z79.boolean(), z79.null()])).optional(),
|
|
86969
87144
|
items: serverLogicSchemaObjectSchema.optional(),
|
|
86970
|
-
properties:
|
|
86971
|
-
required:
|
|
86972
|
-
additionalProperties:
|
|
86973
|
-
minimum:
|
|
86974
|
-
maximum:
|
|
86975
|
-
minLength:
|
|
86976
|
-
maxLength:
|
|
86977
|
-
pattern:
|
|
87145
|
+
properties: z79.record(z79.string(), serverLogicSchemaObjectSchema).optional(),
|
|
87146
|
+
required: z79.array(z79.string()).optional(),
|
|
87147
|
+
additionalProperties: z79.union([z79.boolean(), serverLogicSchemaObjectSchema]).optional(),
|
|
87148
|
+
minimum: z79.number().optional(),
|
|
87149
|
+
maximum: z79.number().optional(),
|
|
87150
|
+
minLength: z79.number().optional(),
|
|
87151
|
+
maxLength: z79.number().optional(),
|
|
87152
|
+
pattern: z79.string().optional()
|
|
86978
87153
|
})
|
|
86979
87154
|
);
|
|
86980
|
-
var serverLogicMediaTypeSchema =
|
|
87155
|
+
var serverLogicMediaTypeSchema = z79.object({
|
|
86981
87156
|
schema: serverLogicSchemaObjectSchema.optional(),
|
|
86982
|
-
example:
|
|
87157
|
+
example: z79.unknown().optional()
|
|
86983
87158
|
});
|
|
86984
|
-
var serverLogicResponseSchema =
|
|
86985
|
-
description:
|
|
86986
|
-
content:
|
|
87159
|
+
var serverLogicResponseSchema = z79.object({
|
|
87160
|
+
description: z79.string().optional(),
|
|
87161
|
+
content: z79.record(z79.string(), serverLogicMediaTypeSchema).optional()
|
|
86987
87162
|
});
|
|
86988
87163
|
var jsonBaseFields = {
|
|
86989
|
-
description:
|
|
86990
|
-
parameters:
|
|
87164
|
+
description: z79.string(),
|
|
87165
|
+
parameters: z79.array(parameterMetaSchema).optional(),
|
|
86991
87166
|
response: serverLogicResponseSchema.optional(),
|
|
86992
87167
|
cache: serverLogicCacheConfigSchema.optional()
|
|
86993
87168
|
};
|
|
86994
|
-
var jsonSqlServerLogicSchema =
|
|
87169
|
+
var jsonSqlServerLogicSchema = z79.object({
|
|
86995
87170
|
...jsonBaseFields,
|
|
86996
|
-
type:
|
|
86997
|
-
query:
|
|
86998
|
-
connectionId:
|
|
87171
|
+
type: z79.literal("sql").optional(),
|
|
87172
|
+
query: z79.string(),
|
|
87173
|
+
connectionId: z79.string()
|
|
86999
87174
|
});
|
|
87000
|
-
var jsonTypeScriptServerLogicSchema =
|
|
87175
|
+
var jsonTypeScriptServerLogicSchema = z79.object({
|
|
87001
87176
|
...jsonBaseFields,
|
|
87002
|
-
type:
|
|
87003
|
-
handlerPath:
|
|
87177
|
+
type: z79.literal("typescript"),
|
|
87178
|
+
handlerPath: z79.string()
|
|
87004
87179
|
});
|
|
87005
|
-
var anyJsonServerLogicSchema =
|
|
87180
|
+
var anyJsonServerLogicSchema = z79.union([
|
|
87006
87181
|
jsonTypeScriptServerLogicSchema,
|
|
87007
87182
|
jsonSqlServerLogicSchema
|
|
87008
87183
|
]);
|