@squadbase/vite-server 0.1.10-dev.5aa0720 → 0.1.10-dev.9dac57b
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 +204 -196
- package/dist/connectors/google-ads.js +114 -112
- package/dist/index.js +192 -184
- package/dist/main.js +192 -184
- package/dist/vite-plugin.js +204 -196
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -92875,33 +92875,41 @@ export default async function handler(c: Context) {
|
|
|
92875
92875
|
tools: tools11
|
|
92876
92876
|
});
|
|
92877
92877
|
|
|
92878
|
-
// ../connectors/src/connectors/google-ads/
|
|
92879
|
-
|
|
92880
|
-
|
|
92881
|
-
|
|
92882
|
-
|
|
92883
|
-
customerId: new ParameterDefinition({
|
|
92884
|
-
slug: "customer-id",
|
|
92885
|
-
name: "Google Ads Customer ID",
|
|
92886
|
-
description: "The Google Ads customer ID (e.g., 123-456-7890 or 1234567890). Can be found in the top-right corner of your Google Ads account.",
|
|
92887
|
-
envVarBaseKey: "GOOGLE_ADS_CUSTOMER_ID",
|
|
92888
|
-
type: "text",
|
|
92889
|
-
secret: false,
|
|
92890
|
-
required: false
|
|
92891
|
-
}),
|
|
92892
|
-
developerToken: new ParameterDefinition({
|
|
92893
|
-
slug: "developer-token",
|
|
92894
|
-
name: "Google Ads Developer Token",
|
|
92895
|
-
description: "The developer token for accessing the Google Ads API. Required for all API requests.",
|
|
92896
|
-
envVarBaseKey: "GOOGLE_ADS_DEVELOPER_TOKEN",
|
|
92897
|
-
type: "text",
|
|
92898
|
-
secret: true,
|
|
92899
|
-
required: true
|
|
92900
|
-
})
|
|
92878
|
+
// ../connectors/src/connectors/google-ads/constants.ts
|
|
92879
|
+
var VERSION_FALLBACK_ORDER = ["v22", "v23", "v24"];
|
|
92880
|
+
var cachedWorkingVersion = VERSION_FALLBACK_ORDER[0];
|
|
92881
|
+
var looksSunset = (contentType) => {
|
|
92882
|
+
return contentType != null && contentType.toLowerCase().includes("text/html");
|
|
92901
92883
|
};
|
|
92884
|
+
async function fetchGoogleAdsWithVersionFallback(attempt) {
|
|
92885
|
+
const order = [
|
|
92886
|
+
cachedWorkingVersion,
|
|
92887
|
+
...VERSION_FALLBACK_ORDER.filter((v) => v !== cachedWorkingVersion)
|
|
92888
|
+
];
|
|
92889
|
+
let lastResponse = null;
|
|
92890
|
+
for (let i6 = 0; i6 < order.length; i6++) {
|
|
92891
|
+
const version2 = order[i6];
|
|
92892
|
+
const baseUrl = `https://googleads.googleapis.com/${version2}/`;
|
|
92893
|
+
const response = await attempt(baseUrl);
|
|
92894
|
+
const contentType = response.headers.get("content-type");
|
|
92895
|
+
if (looksSunset(contentType) && i6 < order.length - 1) {
|
|
92896
|
+
console.warn(
|
|
92897
|
+
`[google-ads] version ${version2} returned a sunset/HTML response (status ${response.status}); retrying with newer version`
|
|
92898
|
+
);
|
|
92899
|
+
lastResponse = response;
|
|
92900
|
+
continue;
|
|
92901
|
+
}
|
|
92902
|
+
cachedWorkingVersion = version2;
|
|
92903
|
+
return response;
|
|
92904
|
+
}
|
|
92905
|
+
return lastResponse ?? new Response(null, {
|
|
92906
|
+
status: 502,
|
|
92907
|
+
statusText: "All Google Ads API versions returned sunset responses"
|
|
92908
|
+
});
|
|
92909
|
+
}
|
|
92902
92910
|
|
|
92903
92911
|
// ../connectors/src/connectors/google-ads/tools/list-customers.ts
|
|
92904
|
-
|
|
92912
|
+
import { z as z18 } from "zod";
|
|
92905
92913
|
var REQUEST_TIMEOUT_MS8 = 6e4;
|
|
92906
92914
|
var cachedToken4 = null;
|
|
92907
92915
|
async function getProxyToken4(config) {
|
|
@@ -92972,27 +92980,25 @@ var listCustomersTool = new ConnectorTool({
|
|
|
92972
92980
|
`[connector-request] google-ads/${connection2.name}: listCustomers`
|
|
92973
92981
|
);
|
|
92974
92982
|
try {
|
|
92975
|
-
const developerToken = parameters12.developerToken.getValue(connection2);
|
|
92976
92983
|
const token = await getProxyToken4(config.oauthProxy);
|
|
92977
92984
|
const proxyUrl = `https://${config.oauthProxy.sandboxId}.${config.oauthProxy.previewBaseDomain}/_sqcore/connections/${connectionId}/request`;
|
|
92978
92985
|
const controller = new AbortController();
|
|
92979
92986
|
const timeout = setTimeout(() => controller.abort(), REQUEST_TIMEOUT_MS8);
|
|
92980
92987
|
try {
|
|
92981
|
-
const response = await
|
|
92982
|
-
|
|
92983
|
-
|
|
92984
|
-
"Content-Type": "application/json",
|
|
92985
|
-
Authorization: `Bearer ${token}`
|
|
92986
|
-
},
|
|
92987
|
-
body: JSON.stringify({
|
|
92988
|
-
url: `${BASE_URL2}customers:listAccessibleCustomers`,
|
|
92989
|
-
method: "GET",
|
|
92988
|
+
const response = await fetchGoogleAdsWithVersionFallback(
|
|
92989
|
+
(baseUrl) => fetch(proxyUrl, {
|
|
92990
|
+
method: "POST",
|
|
92990
92991
|
headers: {
|
|
92991
|
-
"
|
|
92992
|
-
|
|
92993
|
-
|
|
92994
|
-
|
|
92995
|
-
|
|
92992
|
+
"Content-Type": "application/json",
|
|
92993
|
+
Authorization: `Bearer ${token}`
|
|
92994
|
+
},
|
|
92995
|
+
body: JSON.stringify({
|
|
92996
|
+
url: `${baseUrl}customers:listAccessibleCustomers`,
|
|
92997
|
+
method: "GET"
|
|
92998
|
+
}),
|
|
92999
|
+
signal: controller.signal
|
|
93000
|
+
})
|
|
93001
|
+
);
|
|
92996
93002
|
const data = await response.json();
|
|
92997
93003
|
if (!response.ok) {
|
|
92998
93004
|
const errorMessage = typeof data?.error === "string" ? data.error : typeof data?.message === "string" ? data.message : `HTTP ${response.status} ${response.statusText}`;
|
|
@@ -93004,26 +93010,27 @@ var listCustomersTool = new ConnectorTool({
|
|
|
93004
93010
|
const customers = [];
|
|
93005
93011
|
for (const cid of customerIds) {
|
|
93006
93012
|
try {
|
|
93007
|
-
const detailResponse = await
|
|
93008
|
-
|
|
93009
|
-
headers: {
|
|
93010
|
-
"Content-Type": "application/json",
|
|
93011
|
-
Authorization: `Bearer ${token}`
|
|
93012
|
-
},
|
|
93013
|
-
body: JSON.stringify({
|
|
93014
|
-
url: `${BASE_URL2}customers/${cid}/googleAds:searchStream`,
|
|
93013
|
+
const detailResponse = await fetchGoogleAdsWithVersionFallback(
|
|
93014
|
+
(baseUrl) => fetch(proxyUrl, {
|
|
93015
93015
|
method: "POST",
|
|
93016
93016
|
headers: {
|
|
93017
93017
|
"Content-Type": "application/json",
|
|
93018
|
-
|
|
93019
|
-
"login-customer-id": cid
|
|
93018
|
+
Authorization: `Bearer ${token}`
|
|
93020
93019
|
},
|
|
93021
93020
|
body: JSON.stringify({
|
|
93022
|
-
|
|
93023
|
-
|
|
93024
|
-
|
|
93025
|
-
|
|
93026
|
-
|
|
93021
|
+
url: `${baseUrl}customers/${cid}/googleAds:searchStream`,
|
|
93022
|
+
method: "POST",
|
|
93023
|
+
headers: {
|
|
93024
|
+
"Content-Type": "application/json",
|
|
93025
|
+
"login-customer-id": cid
|
|
93026
|
+
},
|
|
93027
|
+
body: JSON.stringify({
|
|
93028
|
+
query: "SELECT customer.id, customer.descriptive_name FROM customer LIMIT 1"
|
|
93029
|
+
})
|
|
93030
|
+
}),
|
|
93031
|
+
signal: controller.signal
|
|
93032
|
+
})
|
|
93033
|
+
);
|
|
93027
93034
|
if (detailResponse.ok) {
|
|
93028
93035
|
const detailData = await detailResponse.json();
|
|
93029
93036
|
const customer = detailData?.[0]?.results?.[0]?.customer;
|
|
@@ -93061,30 +93068,24 @@ var googleAdsOnboarding = new ConnectorOnboarding({
|
|
|
93061
93068
|
connectionSetupInstructions: {
|
|
93062
93069
|
ja: `\u4EE5\u4E0B\u306E\u624B\u9806\u3067Google Ads (OAuth) \u30B3\u30CD\u30AF\u30B7\u30E7\u30F3\u306E\u30BB\u30C3\u30C8\u30A2\u30C3\u30D7\u3092\u884C\u3063\u3066\u304F\u3060\u3055\u3044\u3002
|
|
93063
93070
|
|
|
93064
|
-
1. \
|
|
93071
|
+
1. \`${listCustomersToolName}\` \u3092\u547C\u3073\u51FA\u3057\u3066\u3001OAuth\u3067\u30A2\u30AF\u30BB\u30B9\u53EF\u80FD\u306AGoogle Ads\u30AB\u30B9\u30BF\u30DE\u30FC\u30A2\u30AB\u30A6\u30F3\u30C8\u4E00\u89A7\u3092\u53D6\u5F97\u3059\u308B
|
|
93065
93072
|
2. \`updateConnectionParameters\` \u3092\u547C\u3073\u51FA\u3059:
|
|
93066
|
-
- \`parameterSlug\`: \`"developer-token"\`
|
|
93067
|
-
- \`value\`: \u30E6\u30FC\u30B6\u30FC\u304C\u63D0\u4F9B\u3057\u305F Developer Token
|
|
93068
|
-
3. \`${listCustomersToolName}\` \u3092\u547C\u3073\u51FA\u3057\u3066\u3001OAuth\u3067\u30A2\u30AF\u30BB\u30B9\u53EF\u80FD\u306AGoogle Ads\u30AB\u30B9\u30BF\u30DE\u30FC\u30A2\u30AB\u30A6\u30F3\u30C8\u4E00\u89A7\u3092\u53D6\u5F97\u3059\u308B
|
|
93069
|
-
4. \`updateConnectionParameters\` \u3092\u547C\u3073\u51FA\u3059:
|
|
93070
93073
|
- \`parameterSlug\`: \`"customer-id"\`
|
|
93071
93074
|
- \`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
|
|
93072
|
-
|
|
93075
|
+
- \u30AB\u30B9\u30BF\u30DE\u30FC\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\u30A2\u30AB\u30A6\u30F3\u30C8\u304C\u306A\u3044\u65E8\u3092\u4F1D\u3048\u308B
|
|
93076
|
+
3. \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
|
|
93073
93077
|
|
|
93074
93078
|
#### \u5236\u7D04
|
|
93075
93079
|
- **\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
|
|
93076
93080
|
- \u30C4\u30FC\u30EB\u9593\u306F1\u6587\u3060\u3051\u66F8\u3044\u3066\u5373\u6B21\u306E\u30C4\u30FC\u30EB\u547C\u3073\u51FA\u3057\u3002\u4E0D\u8981\u306A\u8AAC\u660E\u306F\u7701\u7565\u3057\u3001\u52B9\u7387\u7684\u306B\u9032\u3081\u308B`,
|
|
93077
93081
|
en: `Follow these steps to set up the Google Ads (OAuth) connection.
|
|
93078
93082
|
|
|
93079
|
-
1.
|
|
93083
|
+
1. Call \`${listCustomersToolName}\` to get the list of Google Ads customer accounts accessible with the OAuth credentials
|
|
93080
93084
|
2. Call \`updateConnectionParameters\`:
|
|
93081
|
-
- \`parameterSlug\`: \`"developer-token"\`
|
|
93082
|
-
- \`value\`: The Developer Token provided by the user
|
|
93083
|
-
3. Call \`${listCustomersToolName}\` to get the list of Google Ads customer accounts accessible with the OAuth credentials
|
|
93084
|
-
4. Call \`updateConnectionParameters\`:
|
|
93085
93085
|
- \`parameterSlug\`: \`"customer-id"\`
|
|
93086
93086
|
- \`options\`: The customer list. Each option's \`label\` should be \`Account Name (id: customerId)\`, \`value\` should be the customer ID
|
|
93087
|
-
|
|
93087
|
+
- If **0 customers** are returned, abort setup and inform the user that no accessible accounts are available
|
|
93088
|
+
3. The \`label\` of the user's selected customer will arrive as a message. Proceed to the next step
|
|
93088
93089
|
|
|
93089
93090
|
#### Constraints
|
|
93090
93091
|
- **Do NOT fetch report data during setup**. Only the metadata requests specified in the steps above are allowed
|
|
@@ -93098,9 +93099,21 @@ var googleAdsOnboarding = new ConnectorOnboarding({
|
|
|
93098
93099
|
}
|
|
93099
93100
|
});
|
|
93100
93101
|
|
|
93102
|
+
// ../connectors/src/connectors/google-ads/parameters.ts
|
|
93103
|
+
var parameters12 = {
|
|
93104
|
+
customerId: new ParameterDefinition({
|
|
93105
|
+
slug: "customer-id",
|
|
93106
|
+
name: "Google Ads Customer ID",
|
|
93107
|
+
description: "The Google Ads customer ID (e.g., 123-456-7890 or 1234567890). Can be found in the top-right corner of your Google Ads account.",
|
|
93108
|
+
envVarBaseKey: "GOOGLE_ADS_CUSTOMER_ID",
|
|
93109
|
+
type: "text",
|
|
93110
|
+
secret: false,
|
|
93111
|
+
required: false
|
|
93112
|
+
})
|
|
93113
|
+
};
|
|
93114
|
+
|
|
93101
93115
|
// ../connectors/src/connectors/google-ads/tools/request.ts
|
|
93102
93116
|
import { z as z19 } from "zod";
|
|
93103
|
-
var BASE_URL3 = "https://googleads.googleapis.com/v18/";
|
|
93104
93117
|
var REQUEST_TIMEOUT_MS9 = 6e4;
|
|
93105
93118
|
var cachedToken5 = null;
|
|
93106
93119
|
async function getProxyToken5(config) {
|
|
@@ -93140,7 +93153,7 @@ var inputSchema19 = z19.object({
|
|
|
93140
93153
|
connectionId: z19.string().describe("ID of the Google Ads OAuth connection to use"),
|
|
93141
93154
|
method: z19.enum(["GET", "POST"]).describe("HTTP method"),
|
|
93142
93155
|
path: z19.string().describe(
|
|
93143
|
-
"API path appended to https://googleads.googleapis.com
|
|
93156
|
+
"API path appended to https://googleads.googleapis.com/<version>/ (e.g., 'customers/{customerId}/googleAds:searchStream'). The API version is auto-managed and {customerId} is automatically replaced."
|
|
93144
93157
|
),
|
|
93145
93158
|
body: z19.record(z19.string(), z19.unknown()).optional().describe("POST request body (JSON)")
|
|
93146
93159
|
});
|
|
@@ -93157,7 +93170,7 @@ var outputSchema19 = z19.discriminatedUnion("success", [
|
|
|
93157
93170
|
]);
|
|
93158
93171
|
var requestTool2 = new ConnectorTool({
|
|
93159
93172
|
name: "request",
|
|
93160
|
-
description: `Send authenticated requests to the Google Ads API
|
|
93173
|
+
description: `Send authenticated requests to the Google Ads API.
|
|
93161
93174
|
Authentication is handled automatically via OAuth proxy.
|
|
93162
93175
|
{customerId} in the path is automatically replaced with the connection's customer ID (hyphens removed).`,
|
|
93163
93176
|
inputSchema: inputSchema19,
|
|
@@ -93177,31 +93190,30 @@ Authentication is handled automatically via OAuth proxy.
|
|
|
93177
93190
|
const rawCustomerId = parameters12.customerId.tryGetValue(connection2);
|
|
93178
93191
|
const customerId = rawCustomerId?.replace(/-/g, "") ?? "";
|
|
93179
93192
|
const resolvedPath = customerId ? path5.replace(/\{customerId\}/g, customerId) : path5;
|
|
93180
|
-
const url = `${BASE_URL3}${resolvedPath}`;
|
|
93181
93193
|
const token = await getProxyToken5(config.oauthProxy);
|
|
93182
93194
|
const proxyUrl = `https://${config.oauthProxy.sandboxId}.${config.oauthProxy.previewBaseDomain}/_sqcore/connections/${connectionId}/request`;
|
|
93183
93195
|
const controller = new AbortController();
|
|
93184
93196
|
const timeout = setTimeout(() => controller.abort(), REQUEST_TIMEOUT_MS9);
|
|
93185
93197
|
try {
|
|
93186
|
-
const
|
|
93187
|
-
|
|
93188
|
-
|
|
93189
|
-
headers: {
|
|
93190
|
-
"Content-Type": "application/json",
|
|
93191
|
-
Authorization: `Bearer ${token}`
|
|
93192
|
-
},
|
|
93193
|
-
body: JSON.stringify({
|
|
93194
|
-
url,
|
|
93195
|
-
method,
|
|
93198
|
+
const response = await fetchGoogleAdsWithVersionFallback(
|
|
93199
|
+
(baseUrl) => fetch(proxyUrl, {
|
|
93200
|
+
method: "POST",
|
|
93196
93201
|
headers: {
|
|
93197
93202
|
"Content-Type": "application/json",
|
|
93198
|
-
|
|
93199
|
-
...customerId ? { "login-customer-id": customerId } : {}
|
|
93203
|
+
Authorization: `Bearer ${token}`
|
|
93200
93204
|
},
|
|
93201
|
-
|
|
93202
|
-
|
|
93203
|
-
|
|
93204
|
-
|
|
93205
|
+
body: JSON.stringify({
|
|
93206
|
+
url: `${baseUrl}${resolvedPath}`,
|
|
93207
|
+
method,
|
|
93208
|
+
headers: {
|
|
93209
|
+
"Content-Type": "application/json",
|
|
93210
|
+
...customerId ? { "login-customer-id": customerId } : {}
|
|
93211
|
+
},
|
|
93212
|
+
...method === "POST" && body ? { body: JSON.stringify(body) } : {}
|
|
93213
|
+
}),
|
|
93214
|
+
signal: controller.signal
|
|
93215
|
+
})
|
|
93216
|
+
);
|
|
93205
93217
|
const data = await response.json();
|
|
93206
93218
|
if (!response.ok) {
|
|
93207
93219
|
const dataObj = data;
|
|
@@ -93376,26 +93388,22 @@ const customerIds = await ads.listAccessibleCustomers();
|
|
|
93376
93388
|
if (!customerId) {
|
|
93377
93389
|
return { success: true };
|
|
93378
93390
|
}
|
|
93379
|
-
const developerToken = params[parameters12.developerToken.slug];
|
|
93380
|
-
if (!developerToken) {
|
|
93381
|
-
return {
|
|
93382
|
-
success: false,
|
|
93383
|
-
error: "Developer token is required"
|
|
93384
|
-
};
|
|
93385
|
-
}
|
|
93386
|
-
const url = `https://googleads.googleapis.com/v18/customers/${customerId}/googleAds:searchStream`;
|
|
93387
93391
|
try {
|
|
93388
|
-
const res = await
|
|
93389
|
-
|
|
93390
|
-
|
|
93391
|
-
|
|
93392
|
-
|
|
93393
|
-
|
|
93394
|
-
|
|
93395
|
-
|
|
93396
|
-
|
|
93397
|
-
|
|
93398
|
-
|
|
93392
|
+
const res = await fetchGoogleAdsWithVersionFallback(
|
|
93393
|
+
(baseUrl) => proxyFetch(
|
|
93394
|
+
`${baseUrl}customers/${customerId}/googleAds:searchStream`,
|
|
93395
|
+
{
|
|
93396
|
+
method: "POST",
|
|
93397
|
+
headers: {
|
|
93398
|
+
"Content-Type": "application/json",
|
|
93399
|
+
"login-customer-id": customerId
|
|
93400
|
+
},
|
|
93401
|
+
body: JSON.stringify({
|
|
93402
|
+
query: "SELECT customer.id FROM customer LIMIT 1"
|
|
93403
|
+
})
|
|
93404
|
+
}
|
|
93405
|
+
)
|
|
93406
|
+
);
|
|
93399
93407
|
if (!res.ok) {
|
|
93400
93408
|
const errorText = await res.text().catch(() => res.statusText);
|
|
93401
93409
|
return {
|
|
@@ -93447,7 +93455,7 @@ var parameters13 = {
|
|
|
93447
93455
|
|
|
93448
93456
|
// ../connectors/src/connectors/google-analytics/tools/request.ts
|
|
93449
93457
|
import { z as z20 } from "zod";
|
|
93450
|
-
var
|
|
93458
|
+
var BASE_URL2 = "https://analyticsdata.googleapis.com/v1beta/";
|
|
93451
93459
|
var REQUEST_TIMEOUT_MS10 = 6e4;
|
|
93452
93460
|
var inputSchema20 = z20.object({
|
|
93453
93461
|
toolUseIntent: z20.string().optional().describe("Brief description of what you intend to accomplish with this tool call"),
|
|
@@ -93496,7 +93504,7 @@ Authentication is handled automatically using a service account.
|
|
|
93496
93504
|
return { success: false, error: "Failed to obtain access token" };
|
|
93497
93505
|
}
|
|
93498
93506
|
const resolvedPath = path5.replace(/\{propertyId\}/g, propertyId);
|
|
93499
|
-
const url = `${
|
|
93507
|
+
const url = `${BASE_URL2}${resolvedPath}`;
|
|
93500
93508
|
const controller = new AbortController();
|
|
93501
93509
|
const timeout = setTimeout(() => controller.abort(), REQUEST_TIMEOUT_MS10);
|
|
93502
93510
|
try {
|
|
@@ -93976,7 +93984,7 @@ var parameters14 = {
|
|
|
93976
93984
|
|
|
93977
93985
|
// ../connectors/src/connectors/google-analytics-oauth/tools/request.ts
|
|
93978
93986
|
import { z as z23 } from "zod";
|
|
93979
|
-
var
|
|
93987
|
+
var BASE_URL3 = "https://analyticsdata.googleapis.com/v1beta/";
|
|
93980
93988
|
var REQUEST_TIMEOUT_MS13 = 6e4;
|
|
93981
93989
|
var cachedToken8 = null;
|
|
93982
93990
|
async function getProxyToken8(config) {
|
|
@@ -94052,7 +94060,7 @@ Authentication is handled automatically via OAuth proxy.
|
|
|
94052
94060
|
try {
|
|
94053
94061
|
const propertyId = parameters14.propertyId.tryGetValue(connection2);
|
|
94054
94062
|
const resolvedPath = propertyId ? path5.replace(/\{propertyId\}/g, propertyId) : path5;
|
|
94055
|
-
const url = `${
|
|
94063
|
+
const url = `${BASE_URL3}${resolvedPath}`;
|
|
94056
94064
|
const token = await getProxyToken8(config.oauthProxy);
|
|
94057
94065
|
const proxyUrl = `https://${config.oauthProxy.sandboxId}.${config.oauthProxy.previewBaseDomain}/_sqcore/connections/${connectionId}/request`;
|
|
94058
94066
|
const controller = new AbortController();
|
|
@@ -94320,7 +94328,7 @@ var parameters15 = {
|
|
|
94320
94328
|
// ../connectors/src/connectors/google-calendar/tools/request.ts
|
|
94321
94329
|
var BASE_HOST = "https://www.googleapis.com";
|
|
94322
94330
|
var BASE_PATH_SEGMENT = "/calendar/v3";
|
|
94323
|
-
var
|
|
94331
|
+
var BASE_URL4 = `${BASE_HOST}${BASE_PATH_SEGMENT}`;
|
|
94324
94332
|
var REQUEST_TIMEOUT_MS14 = 6e4;
|
|
94325
94333
|
function decodeServiceAccount(keyJsonBase64) {
|
|
94326
94334
|
const decoded = Buffer.from(keyJsonBase64, "base64").toString("utf-8");
|
|
@@ -94400,7 +94408,7 @@ var requestTool5 = new ConnectorTool({
|
|
|
94400
94408
|
};
|
|
94401
94409
|
}
|
|
94402
94410
|
const normalizedPath = normalizeRequestPath(path5, BASE_PATH_SEGMENT);
|
|
94403
|
-
let url = `${
|
|
94411
|
+
let url = `${BASE_URL4}${normalizedPath}`;
|
|
94404
94412
|
if (queryParams) {
|
|
94405
94413
|
const searchParams = new URLSearchParams(queryParams);
|
|
94406
94414
|
url += `?${searchParams.toString()}`;
|
|
@@ -94452,7 +94460,7 @@ var requestTool5 = new ConnectorTool({
|
|
|
94452
94460
|
import { z as z25 } from "zod";
|
|
94453
94461
|
var BASE_HOST2 = "https://www.googleapis.com";
|
|
94454
94462
|
var BASE_PATH_SEGMENT2 = "/calendar/v3";
|
|
94455
|
-
var
|
|
94463
|
+
var BASE_URL5 = `${BASE_HOST2}${BASE_PATH_SEGMENT2}`;
|
|
94456
94464
|
var REQUEST_TIMEOUT_MS15 = 6e4;
|
|
94457
94465
|
function decodeServiceAccount2(keyJsonBase64) {
|
|
94458
94466
|
const decoded = Buffer.from(keyJsonBase64, "base64").toString("utf-8");
|
|
@@ -94538,7 +94546,7 @@ var requestWithDelegationTool = new ConnectorTool({
|
|
|
94538
94546
|
};
|
|
94539
94547
|
}
|
|
94540
94548
|
const normalizedPath = normalizeRequestPath(path5, BASE_PATH_SEGMENT2);
|
|
94541
|
-
let url = `${
|
|
94549
|
+
let url = `${BASE_URL5}${normalizedPath}`;
|
|
94542
94550
|
if (queryParams) {
|
|
94543
94551
|
const searchParams = new URLSearchParams(queryParams);
|
|
94544
94552
|
url += `?${searchParams.toString()}`;
|
|
@@ -95018,7 +95026,7 @@ export default async function handler(c: Context) {
|
|
|
95018
95026
|
|
|
95019
95027
|
// ../connectors/src/connectors/google-calendar-oauth/tools/list-calendars.ts
|
|
95020
95028
|
import { z as z26 } from "zod";
|
|
95021
|
-
var
|
|
95029
|
+
var BASE_URL6 = "https://www.googleapis.com/calendar/v3";
|
|
95022
95030
|
var REQUEST_TIMEOUT_MS16 = 6e4;
|
|
95023
95031
|
var cachedToken9 = null;
|
|
95024
95032
|
async function getProxyToken9(config) {
|
|
@@ -95091,7 +95099,7 @@ var listCalendarsTool = new ConnectorTool({
|
|
|
95091
95099
|
`[connector-request] google-calendar-oauth/${connection2.name}: listCalendars`
|
|
95092
95100
|
);
|
|
95093
95101
|
try {
|
|
95094
|
-
const url = `${
|
|
95102
|
+
const url = `${BASE_URL6}/users/me/calendarList`;
|
|
95095
95103
|
const token = await getProxyToken9(config.oauthProxy);
|
|
95096
95104
|
const proxyUrl = `https://${config.oauthProxy.sandboxId}.${config.oauthProxy.previewBaseDomain}/_sqcore/connections/${connectionId}/request`;
|
|
95097
95105
|
const controller = new AbortController();
|
|
@@ -95188,7 +95196,7 @@ var parameters16 = {
|
|
|
95188
95196
|
import { z as z27 } from "zod";
|
|
95189
95197
|
var BASE_HOST3 = "https://www.googleapis.com";
|
|
95190
95198
|
var BASE_PATH_SEGMENT3 = "/calendar/v3";
|
|
95191
|
-
var
|
|
95199
|
+
var BASE_URL7 = `${BASE_HOST3}${BASE_PATH_SEGMENT3}`;
|
|
95192
95200
|
var REQUEST_TIMEOUT_MS17 = 6e4;
|
|
95193
95201
|
var cachedToken10 = null;
|
|
95194
95202
|
async function getProxyToken10(config) {
|
|
@@ -95269,7 +95277,7 @@ Authentication is handled automatically via OAuth proxy.
|
|
|
95269
95277
|
resolvedPath,
|
|
95270
95278
|
BASE_PATH_SEGMENT3
|
|
95271
95279
|
);
|
|
95272
|
-
let url = `${
|
|
95280
|
+
let url = `${BASE_URL7}${normalizedPath}`;
|
|
95273
95281
|
if (queryParams) {
|
|
95274
95282
|
const searchParams = new URLSearchParams(queryParams);
|
|
95275
95283
|
url += `?${searchParams.toString()}`;
|
|
@@ -95807,7 +95815,7 @@ var parameters18 = {};
|
|
|
95807
95815
|
import { z as z29 } from "zod";
|
|
95808
95816
|
var BASE_HOST4 = "https://www.googleapis.com";
|
|
95809
95817
|
var BASE_PATH_SEGMENT4 = "/drive/v3";
|
|
95810
|
-
var
|
|
95818
|
+
var BASE_URL8 = `${BASE_HOST4}${BASE_PATH_SEGMENT4}`;
|
|
95811
95819
|
var REQUEST_TIMEOUT_MS19 = 6e4;
|
|
95812
95820
|
var cachedToken12 = null;
|
|
95813
95821
|
async function getProxyToken12(config) {
|
|
@@ -95883,7 +95891,7 @@ Authentication is handled automatically via OAuth proxy.`,
|
|
|
95883
95891
|
);
|
|
95884
95892
|
try {
|
|
95885
95893
|
const normalizedPath = normalizeRequestPath(path5, BASE_PATH_SEGMENT4);
|
|
95886
|
-
let url = `${
|
|
95894
|
+
let url = `${BASE_URL8}${normalizedPath}`;
|
|
95887
95895
|
if (queryParams) {
|
|
95888
95896
|
const searchParams = new URLSearchParams(queryParams);
|
|
95889
95897
|
url += `?${searchParams.toString()}`;
|
|
@@ -96924,7 +96932,7 @@ await slides.batchUpdate(presentationId, [
|
|
|
96924
96932
|
|
|
96925
96933
|
// ../connectors/src/connectors/hubspot-oauth/tools/request.ts
|
|
96926
96934
|
import { z as z32 } from "zod";
|
|
96927
|
-
var
|
|
96935
|
+
var BASE_URL9 = "https://api.hubapi.com";
|
|
96928
96936
|
var REQUEST_TIMEOUT_MS22 = 6e4;
|
|
96929
96937
|
var cachedToken15 = null;
|
|
96930
96938
|
async function getProxyToken15(config) {
|
|
@@ -96998,7 +97006,7 @@ Authentication is handled automatically via OAuth proxy.`,
|
|
|
96998
97006
|
`[connector-request] hubspot-oauth/${connection2.name}: ${method} ${path5}`
|
|
96999
97007
|
);
|
|
97000
97008
|
try {
|
|
97001
|
-
let url = `${
|
|
97009
|
+
let url = `${BASE_URL9}${path5.startsWith("/") ? "" : "/"}${path5}`;
|
|
97002
97010
|
if (queryParams) {
|
|
97003
97011
|
const searchParams = new URLSearchParams(queryParams);
|
|
97004
97012
|
url += `?${searchParams.toString()}`;
|
|
@@ -97214,7 +97222,7 @@ const data = await res.json();
|
|
|
97214
97222
|
|
|
97215
97223
|
// ../connectors/src/connectors/stripe-oauth/tools/request.ts
|
|
97216
97224
|
import { z as z33 } from "zod";
|
|
97217
|
-
var
|
|
97225
|
+
var BASE_URL10 = "https://api.stripe.com";
|
|
97218
97226
|
var REQUEST_TIMEOUT_MS23 = 6e4;
|
|
97219
97227
|
var cachedToken16 = null;
|
|
97220
97228
|
async function getProxyToken16(config) {
|
|
@@ -97288,7 +97296,7 @@ Authentication is handled automatically via OAuth proxy.`,
|
|
|
97288
97296
|
`[connector-request] stripe-oauth/${connection2.name}: ${method} ${path5}`
|
|
97289
97297
|
);
|
|
97290
97298
|
try {
|
|
97291
|
-
let url = `${
|
|
97299
|
+
let url = `${BASE_URL10}${path5.startsWith("/") ? "" : "/"}${path5}`;
|
|
97292
97300
|
if (queryParams) {
|
|
97293
97301
|
const searchParams = new URLSearchParams(queryParams);
|
|
97294
97302
|
url += `?${searchParams.toString()}`;
|
|
@@ -97526,7 +97534,7 @@ var parameters23 = {
|
|
|
97526
97534
|
};
|
|
97527
97535
|
|
|
97528
97536
|
// ../connectors/src/connectors/stripe-api-key/tools/request.ts
|
|
97529
|
-
var
|
|
97537
|
+
var BASE_URL11 = "https://api.stripe.com";
|
|
97530
97538
|
var REQUEST_TIMEOUT_MS24 = 6e4;
|
|
97531
97539
|
var inputSchema34 = z34.object({
|
|
97532
97540
|
toolUseIntent: z34.string().optional().describe(
|
|
@@ -97575,7 +97583,7 @@ Use this tool for all Stripe API interactions: querying charges, customers, invo
|
|
|
97575
97583
|
);
|
|
97576
97584
|
try {
|
|
97577
97585
|
const apiKey = parameters23.apiKey.getValue(connection2);
|
|
97578
|
-
let url = `${
|
|
97586
|
+
let url = `${BASE_URL11}${path5.startsWith("/") ? "" : "/"}${path5}`;
|
|
97579
97587
|
if (queryParams) {
|
|
97580
97588
|
const searchParams = new URLSearchParams(queryParams);
|
|
97581
97589
|
url += `?${searchParams.toString()}`;
|
|
@@ -97817,7 +97825,7 @@ var parameters24 = {
|
|
|
97817
97825
|
};
|
|
97818
97826
|
|
|
97819
97827
|
// ../connectors/src/connectors/airtable-oauth/tools/request.ts
|
|
97820
|
-
var
|
|
97828
|
+
var BASE_URL12 = "https://api.airtable.com/v0";
|
|
97821
97829
|
var REQUEST_TIMEOUT_MS25 = 6e4;
|
|
97822
97830
|
var cachedToken17 = null;
|
|
97823
97831
|
async function getProxyToken17(config) {
|
|
@@ -97894,7 +97902,7 @@ Authentication is handled automatically via OAuth proxy.
|
|
|
97894
97902
|
try {
|
|
97895
97903
|
const baseId = parameters24.baseId.tryGetValue(connection2);
|
|
97896
97904
|
const resolvedPath = baseId ? path5.replace(/\{baseId\}/g, baseId) : path5;
|
|
97897
|
-
let url = `${
|
|
97905
|
+
let url = `${BASE_URL12}${resolvedPath.startsWith("/") ? "" : "/"}${resolvedPath}`;
|
|
97898
97906
|
if (queryParams) {
|
|
97899
97907
|
const searchParams = new URLSearchParams(queryParams);
|
|
97900
97908
|
url += `?${searchParams.toString()}`;
|
|
@@ -98747,7 +98755,7 @@ var parameters27 = {
|
|
|
98747
98755
|
|
|
98748
98756
|
// ../connectors/src/connectors/wix-store/tools/request.ts
|
|
98749
98757
|
import { z as z38 } from "zod";
|
|
98750
|
-
var
|
|
98758
|
+
var BASE_URL13 = "https://www.wixapis.com/";
|
|
98751
98759
|
var REQUEST_TIMEOUT_MS28 = 6e4;
|
|
98752
98760
|
var inputSchema38 = z38.object({
|
|
98753
98761
|
toolUseIntent: z38.string().optional().describe("Brief description of what you intend to accomplish with this tool call"),
|
|
@@ -98782,7 +98790,7 @@ Authentication is handled automatically using the API Key and Site ID.`,
|
|
|
98782
98790
|
try {
|
|
98783
98791
|
const apiKey = parameters27.apiKey.getValue(connection2);
|
|
98784
98792
|
const siteId = parameters27.siteId.getValue(connection2);
|
|
98785
|
-
const url = `${
|
|
98793
|
+
const url = `${BASE_URL13}${path5}`;
|
|
98786
98794
|
const controller = new AbortController();
|
|
98787
98795
|
const timeout = setTimeout(() => controller.abort(), REQUEST_TIMEOUT_MS28);
|
|
98788
98796
|
try {
|
|
@@ -100062,7 +100070,7 @@ var parameters34 = {
|
|
|
100062
100070
|
|
|
100063
100071
|
// ../connectors/src/connectors/attio/tools/request.ts
|
|
100064
100072
|
import { z as z42 } from "zod";
|
|
100065
|
-
var
|
|
100073
|
+
var BASE_URL14 = "https://api.attio.com/v2";
|
|
100066
100074
|
var REQUEST_TIMEOUT_MS31 = 6e4;
|
|
100067
100075
|
var inputSchema42 = z42.object({
|
|
100068
100076
|
toolUseIntent: z42.string().optional().describe(
|
|
@@ -100109,7 +100117,7 @@ Record queries use POST /objects/{object}/records/query with a JSON body contain
|
|
|
100109
100117
|
);
|
|
100110
100118
|
try {
|
|
100111
100119
|
const apiKey = parameters34.apiKey.getValue(connection2);
|
|
100112
|
-
const url = `${
|
|
100120
|
+
const url = `${BASE_URL14}${path5}`;
|
|
100113
100121
|
const controller = new AbortController();
|
|
100114
100122
|
const timeout = setTimeout(() => controller.abort(), REQUEST_TIMEOUT_MS31);
|
|
100115
100123
|
try {
|
|
@@ -101077,7 +101085,7 @@ var parameters37 = {
|
|
|
101077
101085
|
|
|
101078
101086
|
// ../connectors/src/connectors/hubspot/tools/request.ts
|
|
101079
101087
|
import { z as z45 } from "zod";
|
|
101080
|
-
var
|
|
101088
|
+
var BASE_URL15 = "https://api.hubapi.com";
|
|
101081
101089
|
var REQUEST_TIMEOUT_MS34 = 6e4;
|
|
101082
101090
|
var inputSchema45 = z45.object({
|
|
101083
101091
|
toolUseIntent: z45.string().optional().describe(
|
|
@@ -101124,7 +101132,7 @@ Use the search endpoint (POST /crm/v3/objects/{objectType}/search) for complex q
|
|
|
101124
101132
|
);
|
|
101125
101133
|
try {
|
|
101126
101134
|
const apiKey = parameters37.apiKey.getValue(connection2);
|
|
101127
|
-
const url = `${
|
|
101135
|
+
const url = `${BASE_URL15}${path5.startsWith("/") ? "" : "/"}${path5}`;
|
|
101128
101136
|
const controller = new AbortController();
|
|
101129
101137
|
const timeout = setTimeout(() => controller.abort(), REQUEST_TIMEOUT_MS34);
|
|
101130
101138
|
try {
|
|
@@ -101610,7 +101618,7 @@ var parameters39 = {
|
|
|
101610
101618
|
|
|
101611
101619
|
// ../connectors/src/connectors/linear/tools/request.ts
|
|
101612
101620
|
import { z as z47 } from "zod";
|
|
101613
|
-
var
|
|
101621
|
+
var BASE_URL16 = "https://api.linear.app/graphql";
|
|
101614
101622
|
var REQUEST_TIMEOUT_MS36 = 6e4;
|
|
101615
101623
|
var inputSchema47 = z47.object({
|
|
101616
101624
|
toolUseIntent: z47.string().optional().describe(
|
|
@@ -101660,7 +101668,7 @@ Archived resources are hidden by default; pass includeArchived: true in query ar
|
|
|
101660
101668
|
try {
|
|
101661
101669
|
const body = { query };
|
|
101662
101670
|
if (variables) body.variables = variables;
|
|
101663
|
-
const response = await fetch(
|
|
101671
|
+
const response = await fetch(BASE_URL16, {
|
|
101664
101672
|
method: "POST",
|
|
101665
101673
|
headers: {
|
|
101666
101674
|
Authorization: apiKey,
|
|
@@ -101868,7 +101876,7 @@ var parameters40 = {
|
|
|
101868
101876
|
import { z as z48 } from "zod";
|
|
101869
101877
|
var BASE_HOST5 = "https://app.asana.com";
|
|
101870
101878
|
var BASE_PATH_SEGMENT5 = "/api/1.0";
|
|
101871
|
-
var
|
|
101879
|
+
var BASE_URL17 = `${BASE_HOST5}${BASE_PATH_SEGMENT5}`;
|
|
101872
101880
|
var REQUEST_TIMEOUT_MS37 = 6e4;
|
|
101873
101881
|
var inputSchema48 = z48.object({
|
|
101874
101882
|
toolUseIntent: z48.string().optional().describe(
|
|
@@ -101933,7 +101941,7 @@ Pagination: Use limit (1-100) and offset query parameters. The response includes
|
|
|
101933
101941
|
try {
|
|
101934
101942
|
const token = parameters40.personalAccessToken.getValue(connection2);
|
|
101935
101943
|
const normalizedPath = normalizeRequestPath(path5, BASE_PATH_SEGMENT5);
|
|
101936
|
-
const url = `${
|
|
101944
|
+
const url = `${BASE_URL17}${normalizedPath}`;
|
|
101937
101945
|
const controller = new AbortController();
|
|
101938
101946
|
const timeout = setTimeout(() => controller.abort(), REQUEST_TIMEOUT_MS37);
|
|
101939
101947
|
try {
|
|
@@ -102806,7 +102814,7 @@ var parameters43 = {
|
|
|
102806
102814
|
|
|
102807
102815
|
// ../connectors/src/connectors/notion/tools/request.ts
|
|
102808
102816
|
import { z as z53 } from "zod";
|
|
102809
|
-
var
|
|
102817
|
+
var BASE_URL18 = "https://api.notion.com/v1";
|
|
102810
102818
|
var NOTION_VERSION = "2022-06-28";
|
|
102811
102819
|
var REQUEST_TIMEOUT_MS38 = 6e4;
|
|
102812
102820
|
var inputSchema53 = z53.object({
|
|
@@ -102854,7 +102862,7 @@ Pagination uses cursor-based start_cursor and page_size (max 100).`,
|
|
|
102854
102862
|
);
|
|
102855
102863
|
try {
|
|
102856
102864
|
const apiKey = parameters43.apiKey.getValue(connection2);
|
|
102857
|
-
const url = `${
|
|
102865
|
+
const url = `${BASE_URL18}${path5.startsWith("/") ? "" : "/"}${path5}`;
|
|
102858
102866
|
const controller = new AbortController();
|
|
102859
102867
|
const timeout = setTimeout(() => controller.abort(), REQUEST_TIMEOUT_MS38);
|
|
102860
102868
|
try {
|
|
@@ -103043,7 +103051,7 @@ export default async function handler(c: Context) {
|
|
|
103043
103051
|
|
|
103044
103052
|
// ../connectors/src/connectors/notion-oauth/tools/request.ts
|
|
103045
103053
|
import { z as z54 } from "zod";
|
|
103046
|
-
var
|
|
103054
|
+
var BASE_URL19 = "https://api.notion.com/v1";
|
|
103047
103055
|
var NOTION_VERSION2 = "2022-06-28";
|
|
103048
103056
|
var REQUEST_TIMEOUT_MS39 = 6e4;
|
|
103049
103057
|
var cachedToken19 = null;
|
|
@@ -103119,7 +103127,7 @@ Pagination uses cursor-based start_cursor and page_size (max 100).`,
|
|
|
103119
103127
|
`[connector-request] notion-oauth/${connection2.name}: ${method} ${path5}`
|
|
103120
103128
|
);
|
|
103121
103129
|
try {
|
|
103122
|
-
const url = `${
|
|
103130
|
+
const url = `${BASE_URL19}${path5.startsWith("/") ? "" : "/"}${path5}`;
|
|
103123
103131
|
const token = await getProxyToken19(config.oauthProxy);
|
|
103124
103132
|
const proxyUrl = `https://${config.oauthProxy.sandboxId}.${config.oauthProxy.previewBaseDomain}/_sqcore/connections/${connectionId}/request`;
|
|
103125
103133
|
const controller = new AbortController();
|
|
@@ -103368,7 +103376,7 @@ var parameters45 = {
|
|
|
103368
103376
|
};
|
|
103369
103377
|
|
|
103370
103378
|
// ../connectors/src/connectors/meta-ads/tools/list-ad-accounts.ts
|
|
103371
|
-
var
|
|
103379
|
+
var BASE_URL20 = "https://graph.facebook.com/v21.0/";
|
|
103372
103380
|
var REQUEST_TIMEOUT_MS40 = 6e4;
|
|
103373
103381
|
var inputSchema55 = z55.object({
|
|
103374
103382
|
toolUseIntent: z55.string().optional().describe(
|
|
@@ -103409,7 +103417,7 @@ var listAdAccountsTool = new ConnectorTool({
|
|
|
103409
103417
|
);
|
|
103410
103418
|
try {
|
|
103411
103419
|
const accessToken = parameters45.accessToken.getValue(connection2);
|
|
103412
|
-
const url = `${
|
|
103420
|
+
const url = `${BASE_URL20}me/adaccounts?fields=account_id,name,account_status&access_token=${encodeURIComponent(accessToken)}`;
|
|
103413
103421
|
const controller = new AbortController();
|
|
103414
103422
|
const timeout = setTimeout(() => controller.abort(), REQUEST_TIMEOUT_MS40);
|
|
103415
103423
|
try {
|
|
@@ -103478,7 +103486,7 @@ var metaAdsOnboarding = new ConnectorOnboarding({
|
|
|
103478
103486
|
|
|
103479
103487
|
// ../connectors/src/connectors/meta-ads/tools/request.ts
|
|
103480
103488
|
import { z as z56 } from "zod";
|
|
103481
|
-
var
|
|
103489
|
+
var BASE_URL21 = "https://graph.facebook.com/v21.0/";
|
|
103482
103490
|
var REQUEST_TIMEOUT_MS41 = 6e4;
|
|
103483
103491
|
var inputSchema56 = z56.object({
|
|
103484
103492
|
toolUseIntent: z56.string().optional().describe(
|
|
@@ -103525,7 +103533,7 @@ Authentication is handled via the configured access token.
|
|
|
103525
103533
|
const accessToken = parameters45.accessToken.getValue(connection2);
|
|
103526
103534
|
const adAccountId = parameters45.adAccountId.tryGetValue(connection2) ?? "";
|
|
103527
103535
|
const resolvedPath = adAccountId ? path5.replace(/\{adAccountId\}/g, adAccountId) : path5;
|
|
103528
|
-
let url = `${
|
|
103536
|
+
let url = `${BASE_URL21}${resolvedPath}`;
|
|
103529
103537
|
const params = new URLSearchParams(queryParams ?? {});
|
|
103530
103538
|
params.set("access_token", accessToken);
|
|
103531
103539
|
const separator = url.includes("?") ? "&" : "?";
|
|
@@ -103731,7 +103739,7 @@ const accounts = await meta.listAdAccounts();
|
|
|
103731
103739
|
|
|
103732
103740
|
// ../connectors/src/connectors/meta-ads-oauth/tools/list-ad-accounts.ts
|
|
103733
103741
|
import { z as z57 } from "zod";
|
|
103734
|
-
var
|
|
103742
|
+
var BASE_URL22 = "https://graph.facebook.com/v21.0/";
|
|
103735
103743
|
var REQUEST_TIMEOUT_MS42 = 6e4;
|
|
103736
103744
|
var cachedToken20 = null;
|
|
103737
103745
|
async function getProxyToken20(config) {
|
|
@@ -103814,7 +103822,7 @@ var listAdAccountsTool2 = new ConnectorTool({
|
|
|
103814
103822
|
Authorization: `Bearer ${token}`
|
|
103815
103823
|
},
|
|
103816
103824
|
body: JSON.stringify({
|
|
103817
|
-
url: `${
|
|
103825
|
+
url: `${BASE_URL22}me/adaccounts?fields=account_id,name,account_status`,
|
|
103818
103826
|
method: "GET"
|
|
103819
103827
|
}),
|
|
103820
103828
|
signal: controller.signal
|
|
@@ -103893,7 +103901,7 @@ var parameters46 = {
|
|
|
103893
103901
|
|
|
103894
103902
|
// ../connectors/src/connectors/meta-ads-oauth/tools/request.ts
|
|
103895
103903
|
import { z as z58 } from "zod";
|
|
103896
|
-
var
|
|
103904
|
+
var BASE_URL23 = "https://graph.facebook.com/v21.0/";
|
|
103897
103905
|
var REQUEST_TIMEOUT_MS43 = 6e4;
|
|
103898
103906
|
var cachedToken21 = null;
|
|
103899
103907
|
async function getProxyToken21(config) {
|
|
@@ -103970,7 +103978,7 @@ Authentication is handled automatically via OAuth proxy.
|
|
|
103970
103978
|
try {
|
|
103971
103979
|
const adAccountId = parameters46.adAccountId.tryGetValue(connection2) ?? "";
|
|
103972
103980
|
const resolvedPath = adAccountId ? path5.replace(/\{adAccountId\}/g, adAccountId) : path5;
|
|
103973
|
-
let url = `${
|
|
103981
|
+
let url = `${BASE_URL23}${resolvedPath}`;
|
|
103974
103982
|
if (queryParams && Object.keys(queryParams).length > 0) {
|
|
103975
103983
|
const params = new URLSearchParams(queryParams);
|
|
103976
103984
|
const separator = url.includes("?") ? "&" : "?";
|
|
@@ -104176,7 +104184,7 @@ const data = await res.json();
|
|
|
104176
104184
|
|
|
104177
104185
|
// ../connectors/src/connectors/tiktok-ads/tools/list-advertisers.ts
|
|
104178
104186
|
import { z as z59 } from "zod";
|
|
104179
|
-
var
|
|
104187
|
+
var BASE_URL24 = "https://business-api.tiktok.com/open_api/v1.3/";
|
|
104180
104188
|
var REQUEST_TIMEOUT_MS44 = 6e4;
|
|
104181
104189
|
var cachedToken22 = null;
|
|
104182
104190
|
async function getProxyToken22(config) {
|
|
@@ -104259,7 +104267,7 @@ var listAdvertisersTool = new ConnectorTool({
|
|
|
104259
104267
|
Authorization: `Bearer ${token}`
|
|
104260
104268
|
},
|
|
104261
104269
|
body: JSON.stringify({
|
|
104262
|
-
url: `${
|
|
104270
|
+
url: `${BASE_URL24}oauth2/advertiser/get/`,
|
|
104263
104271
|
method: "GET"
|
|
104264
104272
|
}),
|
|
104265
104273
|
signal: controller.signal
|
|
@@ -104350,7 +104358,7 @@ var parameters47 = {
|
|
|
104350
104358
|
import { z as z60 } from "zod";
|
|
104351
104359
|
var BASE_HOST6 = "https://business-api.tiktok.com";
|
|
104352
104360
|
var BASE_PATH_SEGMENT6 = "/open_api/v1.3";
|
|
104353
|
-
var
|
|
104361
|
+
var BASE_URL25 = `${BASE_HOST6}${BASE_PATH_SEGMENT6}`;
|
|
104354
104362
|
var REQUEST_TIMEOUT_MS45 = 6e4;
|
|
104355
104363
|
var cachedToken23 = null;
|
|
104356
104364
|
async function getProxyToken23(config) {
|
|
@@ -104427,7 +104435,7 @@ The advertiser_id is automatically injected if configured.`,
|
|
|
104427
104435
|
try {
|
|
104428
104436
|
const advertiserId = parameters47.advertiserId.tryGetValue(connection2) ?? "";
|
|
104429
104437
|
const normalizedPath = normalizeRequestPath(path5, BASE_PATH_SEGMENT6);
|
|
104430
|
-
let url = `${
|
|
104438
|
+
let url = `${BASE_URL25}${normalizedPath}`;
|
|
104431
104439
|
if (method === "GET") {
|
|
104432
104440
|
const params = new URLSearchParams(queryParams ?? {});
|
|
104433
104441
|
if (advertiserId && !params.has("advertiser_id")) {
|
|
@@ -105643,7 +105651,7 @@ var parameters51 = {
|
|
|
105643
105651
|
// ../connectors/src/connectors/gmail/tools/request-with-delegation.ts
|
|
105644
105652
|
var BASE_HOST7 = "https://gmail.googleapis.com";
|
|
105645
105653
|
var BASE_PATH_SEGMENT7 = "/gmail/v1/users";
|
|
105646
|
-
var
|
|
105654
|
+
var BASE_URL26 = `${BASE_HOST7}${BASE_PATH_SEGMENT7}`;
|
|
105647
105655
|
var REQUEST_TIMEOUT_MS49 = 6e4;
|
|
105648
105656
|
function decodeServiceAccount3(keyJsonBase64) {
|
|
105649
105657
|
const decoded = Buffer.from(keyJsonBase64, "base64").toString("utf-8");
|
|
@@ -105729,7 +105737,7 @@ var requestWithDelegationTool2 = new ConnectorTool({
|
|
|
105729
105737
|
};
|
|
105730
105738
|
}
|
|
105731
105739
|
const normalizedPath = normalizeRequestPath(path5, BASE_PATH_SEGMENT7);
|
|
105732
|
-
let url = `${
|
|
105740
|
+
let url = `${BASE_URL26}${normalizedPath}`;
|
|
105733
105741
|
if (queryParams) {
|
|
105734
105742
|
const searchParams = new URLSearchParams(queryParams);
|
|
105735
105743
|
url += `?${searchParams.toString()}`;
|
|
@@ -106050,7 +106058,7 @@ for (const msg of messages.messages ?? []) {
|
|
|
106050
106058
|
import { z as z65 } from "zod";
|
|
106051
106059
|
var BASE_HOST8 = "https://gmail.googleapis.com";
|
|
106052
106060
|
var BASE_PATH_SEGMENT8 = "/gmail/v1/users";
|
|
106053
|
-
var
|
|
106061
|
+
var BASE_URL27 = `${BASE_HOST8}${BASE_PATH_SEGMENT8}`;
|
|
106054
106062
|
var REQUEST_TIMEOUT_MS50 = 6e4;
|
|
106055
106063
|
var cachedToken25 = null;
|
|
106056
106064
|
async function getProxyToken25(config) {
|
|
@@ -106127,7 +106135,7 @@ All paths are relative to https://gmail.googleapis.com/gmail/v1/users. Use '/me'
|
|
|
106127
106135
|
);
|
|
106128
106136
|
try {
|
|
106129
106137
|
const normalizedPath = normalizeRequestPath(path5, BASE_PATH_SEGMENT8);
|
|
106130
|
-
let url = `${
|
|
106138
|
+
let url = `${BASE_URL27}${normalizedPath}`;
|
|
106131
106139
|
if (queryParams) {
|
|
106132
106140
|
const searchParams = new URLSearchParams(queryParams);
|
|
106133
106141
|
url += `?${searchParams.toString()}`;
|
|
@@ -106439,7 +106447,7 @@ var parameters53 = {
|
|
|
106439
106447
|
// ../connectors/src/connectors/google-audit-log/tools/request-with-delegation.ts
|
|
106440
106448
|
var BASE_HOST9 = "https://admin.googleapis.com";
|
|
106441
106449
|
var BASE_PATH_SEGMENT9 = "/admin/reports/v1";
|
|
106442
|
-
var
|
|
106450
|
+
var BASE_URL28 = `${BASE_HOST9}${BASE_PATH_SEGMENT9}`;
|
|
106443
106451
|
var REQUEST_TIMEOUT_MS51 = 6e4;
|
|
106444
106452
|
function decodeServiceAccount4(keyJsonBase64) {
|
|
106445
106453
|
const decoded = Buffer.from(keyJsonBase64, "base64").toString("utf-8");
|
|
@@ -106526,7 +106534,7 @@ var requestWithDelegationTool3 = new ConnectorTool({
|
|
|
106526
106534
|
};
|
|
106527
106535
|
}
|
|
106528
106536
|
const normalizedPath = normalizeRequestPath(path5, BASE_PATH_SEGMENT9);
|
|
106529
|
-
let url = `${
|
|
106537
|
+
let url = `${BASE_URL28}${normalizedPath}`;
|
|
106530
106538
|
if (queryParams) {
|
|
106531
106539
|
const searchParams = new URLSearchParams(queryParams);
|
|
106532
106540
|
url += `?${searchParams.toString()}`;
|
|
@@ -106836,7 +106844,7 @@ export default async function handler(c: Context) {
|
|
|
106836
106844
|
|
|
106837
106845
|
// ../connectors/src/connectors/linkedin-ads/tools/list-ad-accounts.ts
|
|
106838
106846
|
import { z as z67 } from "zod";
|
|
106839
|
-
var
|
|
106847
|
+
var BASE_URL29 = "https://api.linkedin.com/rest/";
|
|
106840
106848
|
var LINKEDIN_VERSION = "202603";
|
|
106841
106849
|
var REQUEST_TIMEOUT_MS52 = 6e4;
|
|
106842
106850
|
var cachedToken26 = null;
|
|
@@ -106920,7 +106928,7 @@ var listAdAccountsTool3 = new ConnectorTool({
|
|
|
106920
106928
|
Authorization: `Bearer ${token}`
|
|
106921
106929
|
},
|
|
106922
106930
|
body: JSON.stringify({
|
|
106923
|
-
url: `${
|
|
106931
|
+
url: `${BASE_URL29}adAccounts?q=search&search=(status:(values:List(ACTIVE)))&pageSize=100`,
|
|
106924
106932
|
method: "GET",
|
|
106925
106933
|
headers: {
|
|
106926
106934
|
"LinkedIn-Version": LINKEDIN_VERSION,
|
|
@@ -107003,7 +107011,7 @@ var parameters54 = {
|
|
|
107003
107011
|
|
|
107004
107012
|
// ../connectors/src/connectors/linkedin-ads/tools/request.ts
|
|
107005
107013
|
import { z as z68 } from "zod";
|
|
107006
|
-
var
|
|
107014
|
+
var BASE_URL30 = "https://api.linkedin.com/rest/";
|
|
107007
107015
|
var LINKEDIN_VERSION2 = "202603";
|
|
107008
107016
|
var REQUEST_TIMEOUT_MS53 = 6e4;
|
|
107009
107017
|
var cachedToken27 = null;
|
|
@@ -107082,7 +107090,7 @@ Required headers (LinkedIn-Version, X-Restli-Protocol-Version) are set automatic
|
|
|
107082
107090
|
try {
|
|
107083
107091
|
const adAccountId = parameters54.adAccountId.tryGetValue(connection2) ?? "";
|
|
107084
107092
|
const resolvedPath = adAccountId ? path5.replace(/\{adAccountId\}/g, adAccountId) : path5;
|
|
107085
|
-
let url = `${
|
|
107093
|
+
let url = `${BASE_URL30}${resolvedPath}`;
|
|
107086
107094
|
if (queryParams && Object.keys(queryParams).length > 0) {
|
|
107087
107095
|
const params = new URLSearchParams(queryParams);
|
|
107088
107096
|
const separator = url.includes("?") ? "&" : "?";
|
|
@@ -108038,7 +108046,7 @@ var parameters57 = {
|
|
|
108038
108046
|
|
|
108039
108047
|
// ../connectors/src/connectors/intercom/tools/request.ts
|
|
108040
108048
|
import { z as z71 } from "zod";
|
|
108041
|
-
var
|
|
108049
|
+
var BASE_URL31 = "https://api.intercom.io";
|
|
108042
108050
|
var API_VERSION = "2.11";
|
|
108043
108051
|
var REQUEST_TIMEOUT_MS56 = 6e4;
|
|
108044
108052
|
var inputSchema71 = z71.object({
|
|
@@ -108088,7 +108096,7 @@ The Intercom-Version header is set to 2.11 automatically.`,
|
|
|
108088
108096
|
);
|
|
108089
108097
|
try {
|
|
108090
108098
|
const accessToken = parameters57.accessToken.getValue(connection2);
|
|
108091
|
-
const url = `${
|
|
108099
|
+
const url = `${BASE_URL31}${path5.startsWith("/") ? "" : "/"}${path5}`;
|
|
108092
108100
|
const controller = new AbortController();
|
|
108093
108101
|
const timeout = setTimeout(() => controller.abort(), REQUEST_TIMEOUT_MS56);
|
|
108094
108102
|
try {
|
|
@@ -108331,7 +108339,7 @@ export default async function handler(c: Context) {
|
|
|
108331
108339
|
|
|
108332
108340
|
// ../connectors/src/connectors/intercom-oauth/tools/request.ts
|
|
108333
108341
|
import { z as z72 } from "zod";
|
|
108334
|
-
var
|
|
108342
|
+
var BASE_URL32 = "https://api.intercom.io";
|
|
108335
108343
|
var REQUEST_TIMEOUT_MS57 = 6e4;
|
|
108336
108344
|
var cachedToken29 = null;
|
|
108337
108345
|
async function getProxyToken29(config) {
|
|
@@ -108408,7 +108416,7 @@ Search endpoints (contacts/search, conversations/search) use POST with a query o
|
|
|
108408
108416
|
`[connector-request] intercom-oauth/${connection2.name}: ${method} ${path5}`
|
|
108409
108417
|
);
|
|
108410
108418
|
try {
|
|
108411
|
-
let url = `${
|
|
108419
|
+
let url = `${BASE_URL32}${path5.startsWith("/") ? "" : "/"}${path5}`;
|
|
108412
108420
|
if (queryParams) {
|
|
108413
108421
|
const searchParams = new URLSearchParams(queryParams);
|
|
108414
108422
|
const separator = url.includes("?") ? "&" : "?";
|
|
@@ -109521,7 +109529,7 @@ var parameters62 = {
|
|
|
109521
109529
|
|
|
109522
109530
|
// ../connectors/src/connectors/gamma/tools/request.ts
|
|
109523
109531
|
import { z as z76 } from "zod";
|
|
109524
|
-
var
|
|
109532
|
+
var BASE_URL33 = "https://public-api.gamma.app/v1.0";
|
|
109525
109533
|
var REQUEST_TIMEOUT_MS61 = 6e4;
|
|
109526
109534
|
var inputSchema76 = z76.object({
|
|
109527
109535
|
toolUseIntent: z76.string().optional().describe(
|
|
@@ -109566,7 +109574,7 @@ For creating presentations/documents, prefer the gamma_generate tool instead.`,
|
|
|
109566
109574
|
);
|
|
109567
109575
|
try {
|
|
109568
109576
|
const apiKey = parameters62.apiKey.getValue(connection2);
|
|
109569
|
-
const url = `${
|
|
109577
|
+
const url = `${BASE_URL33}${path5}`;
|
|
109570
109578
|
const controller = new AbortController();
|
|
109571
109579
|
const timeout = setTimeout(() => controller.abort(), REQUEST_TIMEOUT_MS61);
|
|
109572
109580
|
try {
|
|
@@ -109598,7 +109606,7 @@ For creating presentations/documents, prefer the gamma_generate tool instead.`,
|
|
|
109598
109606
|
|
|
109599
109607
|
// ../connectors/src/connectors/gamma/tools/generate.ts
|
|
109600
109608
|
import { z as z77 } from "zod";
|
|
109601
|
-
var
|
|
109609
|
+
var BASE_URL34 = "https://public-api.gamma.app/v1.0";
|
|
109602
109610
|
var POLL_INTERVAL_MS3 = 5e3;
|
|
109603
109611
|
var MAX_POLL_DURATION_MS = 3e5;
|
|
109604
109612
|
var inputSchema77 = z77.object({
|
|
@@ -109715,7 +109723,7 @@ Gamma does NOT support image uploads. To visualize data, embed raw numbers direc
|
|
|
109715
109723
|
if (textAmount) textOptions.amount = textAmount;
|
|
109716
109724
|
if (Object.keys(textOptions).length > 0) body.textOptions = textOptions;
|
|
109717
109725
|
if (imageSource) body.imageOptions = { source: imageSource };
|
|
109718
|
-
const createRes = await fetch(`${
|
|
109726
|
+
const createRes = await fetch(`${BASE_URL34}/generations`, {
|
|
109719
109727
|
method: "POST",
|
|
109720
109728
|
headers,
|
|
109721
109729
|
body: JSON.stringify(body)
|
|
@@ -109735,7 +109743,7 @@ Gamma does NOT support image uploads. To visualize data, embed raw numbers direc
|
|
|
109735
109743
|
const deadline = Date.now() + MAX_POLL_DURATION_MS;
|
|
109736
109744
|
while (Date.now() < deadline) {
|
|
109737
109745
|
await new Promise((resolve) => setTimeout(resolve, POLL_INTERVAL_MS3));
|
|
109738
|
-
const pollRes = await fetch(`${
|
|
109746
|
+
const pollRes = await fetch(`${BASE_URL34}/generations/${generationId}`, {
|
|
109739
109747
|
method: "GET",
|
|
109740
109748
|
headers
|
|
109741
109749
|
});
|
|
@@ -109973,7 +109981,7 @@ var parameters63 = {
|
|
|
109973
109981
|
|
|
109974
109982
|
// ../connectors/src/connectors/sentry/tools/request.ts
|
|
109975
109983
|
import { z as z78 } from "zod";
|
|
109976
|
-
var
|
|
109984
|
+
var BASE_URL35 = "https://sentry.io/api/0";
|
|
109977
109985
|
var REQUEST_TIMEOUT_MS62 = 6e4;
|
|
109978
109986
|
var inputSchema78 = z78.object({
|
|
109979
109987
|
toolUseIntent: z78.string().optional().describe(
|
|
@@ -110023,7 +110031,7 @@ Authentication is handled automatically via Bearer token.
|
|
|
110023
110031
|
/\{organizationSlug\}/g,
|
|
110024
110032
|
organizationSlug
|
|
110025
110033
|
);
|
|
110026
|
-
const url = `${
|
|
110034
|
+
const url = `${BASE_URL35}${resolvedPath.startsWith("/") ? "" : "/"}${resolvedPath}`;
|
|
110027
110035
|
const controller = new AbortController();
|
|
110028
110036
|
const timeout = setTimeout(() => controller.abort(), REQUEST_TIMEOUT_MS62);
|
|
110029
110037
|
try {
|
|
@@ -111036,7 +111044,7 @@ var parameters66 = {
|
|
|
111036
111044
|
|
|
111037
111045
|
// ../connectors/src/connectors/monday/tools/request.ts
|
|
111038
111046
|
import { z as z81 } from "zod";
|
|
111039
|
-
var
|
|
111047
|
+
var BASE_URL36 = "https://api.monday.com/v2";
|
|
111040
111048
|
var REQUEST_TIMEOUT_MS65 = 6e4;
|
|
111041
111049
|
var inputSchema81 = z81.object({
|
|
111042
111050
|
toolUseIntent: z81.string().optional().describe(
|
|
@@ -111094,7 +111102,7 @@ Items are paginated with a cursor-based \`items_page(limit, cursor)\` field on a
|
|
|
111094
111102
|
"Content-Type": "application/json"
|
|
111095
111103
|
};
|
|
111096
111104
|
if (apiVersion) headers["API-Version"] = apiVersion;
|
|
111097
|
-
const response = await fetch(
|
|
111105
|
+
const response = await fetch(BASE_URL36, {
|
|
111098
111106
|
method: "POST",
|
|
111099
111107
|
headers,
|
|
111100
111108
|
body: JSON.stringify(body),
|
|
@@ -112160,7 +112168,7 @@ var parameters68 = {
|
|
|
112160
112168
|
};
|
|
112161
112169
|
|
|
112162
112170
|
// ../connectors/src/connectors/semrush/tools/request.ts
|
|
112163
|
-
var
|
|
112171
|
+
var BASE_URL37 = "https://api.semrush.com";
|
|
112164
112172
|
var REQUEST_TIMEOUT_MS66 = 6e4;
|
|
112165
112173
|
var inputSchema83 = z83.object({
|
|
112166
112174
|
toolUseIntent: z83.string().optional().describe(
|
|
@@ -112240,7 +112248,7 @@ Errors from the Standard API are returned as a plain text body starting with "ER
|
|
|
112240
112248
|
}
|
|
112241
112249
|
}
|
|
112242
112250
|
const url = new URL(
|
|
112243
|
-
isAbsolute ? path5 : `${
|
|
112251
|
+
isAbsolute ? path5 : `${BASE_URL37}${path5.startsWith("/") ? "" : "/"}${path5}`
|
|
112244
112252
|
);
|
|
112245
112253
|
if (queryParams) {
|
|
112246
112254
|
for (const [k6, v] of Object.entries(queryParams)) {
|
|
@@ -112598,7 +112606,7 @@ API \u30E6\u30CB\u30C3\u30C8\u6B8B\u91CF\u306E\u78BA\u8A8D\uFF08\u7121\u6599\u30
|
|
|
112598
112606
|
|
|
112599
112607
|
// ../connectors/src/connectors/google-search-console-oauth/tools/list-sites.ts
|
|
112600
112608
|
import { z as z84 } from "zod";
|
|
112601
|
-
var
|
|
112609
|
+
var BASE_URL38 = "https://searchconsole.googleapis.com/webmasters/v3";
|
|
112602
112610
|
var REQUEST_TIMEOUT_MS67 = 6e4;
|
|
112603
112611
|
var cachedToken30 = null;
|
|
112604
112612
|
async function getProxyToken30(config) {
|
|
@@ -112669,7 +112677,7 @@ var listSitesTool = new ConnectorTool({
|
|
|
112669
112677
|
`[connector-request] google-search-console-oauth/${connection2.name}: listSites`
|
|
112670
112678
|
);
|
|
112671
112679
|
try {
|
|
112672
|
-
const url = `${
|
|
112680
|
+
const url = `${BASE_URL38}/sites`;
|
|
112673
112681
|
const token = await getProxyToken30(config.oauthProxy);
|
|
112674
112682
|
const proxyUrl = `https://${config.oauthProxy.sandboxId}.${config.oauthProxy.previewBaseDomain}/_sqcore/connections/${connectionId}/request`;
|
|
112675
112683
|
const controller = new AbortController();
|
|
@@ -112768,7 +112776,7 @@ var parameters69 = {
|
|
|
112768
112776
|
import { z as z85 } from "zod";
|
|
112769
112777
|
var BASE_HOST10 = "https://searchconsole.googleapis.com";
|
|
112770
112778
|
var BASE_PATH_SEGMENT10 = "/webmasters/v3";
|
|
112771
|
-
var
|
|
112779
|
+
var BASE_URL39 = `${BASE_HOST10}${BASE_PATH_SEGMENT10}`;
|
|
112772
112780
|
var REQUEST_TIMEOUT_MS68 = 6e4;
|
|
112773
112781
|
var cachedToken31 = null;
|
|
112774
112782
|
async function getProxyToken31(config) {
|
|
@@ -112853,7 +112861,7 @@ For URL Inspection API requests, use the absolute path '/v1/urlInspection/index:
|
|
|
112853
112861
|
resolvedPath,
|
|
112854
112862
|
BASE_PATH_SEGMENT10
|
|
112855
112863
|
);
|
|
112856
|
-
let url = `${
|
|
112864
|
+
let url = `${BASE_URL39}${normalizedPath}`;
|
|
112857
112865
|
if (queryParams) {
|
|
112858
112866
|
const searchParams = new URLSearchParams(queryParams);
|
|
112859
112867
|
url += `?${searchParams.toString()}`;
|
|
@@ -113343,7 +113351,7 @@ var parameters71 = {
|
|
|
113343
113351
|
import { z as z87 } from "zod";
|
|
113344
113352
|
var BASE_HOST11 = "https://api.clickup.com";
|
|
113345
113353
|
var BASE_PATH_SEGMENT11 = "/api/v2";
|
|
113346
|
-
var
|
|
113354
|
+
var BASE_URL40 = `${BASE_HOST11}${BASE_PATH_SEGMENT11}`;
|
|
113347
113355
|
var REQUEST_TIMEOUT_MS69 = 6e4;
|
|
113348
113356
|
var inputSchema87 = z87.object({
|
|
113349
113357
|
toolUseIntent: z87.string().optional().describe(
|
|
@@ -113416,7 +113424,7 @@ Pagination: ClickUp uses zero-indexed \`page\` query parameter on list endpoints
|
|
|
113416
113424
|
try {
|
|
113417
113425
|
const token = parameters71.apiToken.getValue(connection2);
|
|
113418
113426
|
const normalizedPath = normalizeRequestPath(path5, BASE_PATH_SEGMENT11);
|
|
113419
|
-
const url = `${
|
|
113427
|
+
const url = `${BASE_URL40}${normalizedPath}`;
|
|
113420
113428
|
const controller = new AbortController();
|
|
113421
113429
|
const timeout = setTimeout(() => controller.abort(), REQUEST_TIMEOUT_MS69);
|
|
113422
113430
|
try {
|