@squadbase/vite-server 0.1.17-dev.3b633bb → 0.1.17-dev.71a85cd
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 +3310 -742
- package/dist/connectors/airtable-oauth.js +50 -8
- package/dist/connectors/airtable.js +46 -8
- package/dist/connectors/amplitude.js +10 -8
- package/dist/connectors/anthropic.js +4 -2
- package/dist/connectors/asana.js +39 -10
- package/dist/connectors/attio.js +32 -13
- package/dist/connectors/aws-billing.js +10 -8
- package/dist/connectors/azure-sql.js +33 -7
- package/dist/connectors/backlog-api-key.js +42 -15
- package/dist/connectors/clickup.js +52 -10
- package/dist/connectors/cosmosdb.js +14 -12
- package/dist/connectors/customerio.js +10 -8
- package/dist/connectors/dbt.js +688 -25
- package/dist/connectors/freshdesk.js +84 -8
- package/dist/connectors/freshsales.js +10 -8
- package/dist/connectors/freshservice.js +10 -8
- package/dist/connectors/gamma.js +17 -15
- package/dist/connectors/gemini.js +4 -2
- package/dist/connectors/github.js +14 -12
- package/dist/connectors/gmail-oauth.js +10 -10
- package/dist/connectors/gmail.js +6 -4
- package/dist/connectors/google-ads.js +10 -8
- package/dist/connectors/google-analytics-oauth.js +154 -25
- package/dist/connectors/google-analytics.js +536 -109
- package/dist/connectors/google-audit-log.js +6 -4
- package/dist/connectors/google-calendar-oauth.js +63 -15
- package/dist/connectors/google-calendar.js +63 -11
- package/dist/connectors/google-docs.js +10 -10
- package/dist/connectors/google-drive.js +32 -10
- package/dist/connectors/google-search-console-oauth.js +128 -17
- package/dist/connectors/google-sheets.js +8 -6
- package/dist/connectors/google-slides.js +10 -10
- package/dist/connectors/grafana.js +47 -10
- package/dist/connectors/hubspot-oauth.js +41 -9
- package/dist/connectors/hubspot.js +27 -9
- package/dist/connectors/influxdb.js +10 -8
- package/dist/connectors/intercom-oauth.js +72 -12
- package/dist/connectors/intercom.js +14 -12
- package/dist/connectors/jdbc.js +8 -6
- package/dist/connectors/jira-api-key.js +70 -11
- package/dist/connectors/kintone-api-token.js +68 -18
- package/dist/connectors/kintone.js +56 -11
- package/dist/connectors/linear.js +56 -12
- package/dist/connectors/linkedin-ads.js +43 -14
- package/dist/connectors/mailchimp-oauth.js +8 -6
- package/dist/connectors/mailchimp.js +8 -6
- package/dist/connectors/meta-ads-oauth.js +35 -14
- package/dist/connectors/meta-ads.js +37 -14
- package/dist/connectors/mixpanel.js +10 -8
- package/dist/connectors/monday.js +11 -9
- package/dist/connectors/mongodb.js +10 -8
- package/dist/connectors/notion-oauth.js +60 -11
- package/dist/connectors/notion.js +62 -11
- package/dist/connectors/openai.js +4 -2
- package/dist/connectors/oracle.js +25 -7
- package/dist/connectors/outlook-oauth.js +21 -21
- package/dist/connectors/powerbi-oauth.js +13 -13
- package/dist/connectors/salesforce.js +44 -9
- package/dist/connectors/semrush.js +8 -6
- package/dist/connectors/sentry.js +38 -10
- package/dist/connectors/shopify-oauth.js +43 -10
- package/dist/connectors/shopify.js +10 -8
- package/dist/connectors/sqlserver.js +33 -7
- package/dist/connectors/stripe-api-key.js +68 -15
- package/dist/connectors/stripe-oauth.js +70 -19
- package/dist/connectors/supabase.js +24 -5
- package/dist/connectors/tableau.js +17 -15
- package/dist/connectors/tiktok-ads.js +39 -16
- package/dist/connectors/wix-store.js +10 -8
- package/dist/connectors/zendesk-oauth.js +55 -12
- package/dist/connectors/zendesk.js +14 -12
- package/dist/index.d.ts +1 -0
- package/dist/index.js +3339 -746
- package/dist/main.js +3328 -740
- package/dist/vite-plugin.js +3308 -740
- package/package.json +1 -1
|
@@ -16,6 +16,7 @@ var init_parameter_definition = __esm({
|
|
|
16
16
|
type;
|
|
17
17
|
secret;
|
|
18
18
|
required;
|
|
19
|
+
isDeprecated;
|
|
19
20
|
constructor(config) {
|
|
20
21
|
this.slug = config.slug;
|
|
21
22
|
this.name = config.name;
|
|
@@ -24,6 +25,7 @@ var init_parameter_definition = __esm({
|
|
|
24
25
|
this.type = config.type;
|
|
25
26
|
this.secret = config.secret;
|
|
26
27
|
this.required = config.required;
|
|
28
|
+
this.isDeprecated = config.isDeprecated ?? false;
|
|
27
29
|
}
|
|
28
30
|
/**
|
|
29
31
|
* Get the parameter value from a ConnectorConnectionObject.
|
|
@@ -317,7 +319,7 @@ var ConnectorPlugin = class _ConnectorPlugin {
|
|
|
317
319
|
/**
|
|
318
320
|
* Create tools for connections that belong to this connector.
|
|
319
321
|
* Filters connections by connectorKey internally.
|
|
320
|
-
* Returns tools keyed as
|
|
322
|
+
* Returns tools keyed as `connector_${connectorKey}_${toolName}`.
|
|
321
323
|
*/
|
|
322
324
|
createTools(connections, config, opts) {
|
|
323
325
|
const myConnections = connections.filter(
|
|
@@ -327,7 +329,7 @@ var ConnectorPlugin = class _ConnectorPlugin {
|
|
|
327
329
|
for (const t of Object.values(this.tools)) {
|
|
328
330
|
const tool = t.createTool(myConnections, config);
|
|
329
331
|
const originalToModelOutput = tool.toModelOutput;
|
|
330
|
-
result[
|
|
332
|
+
result[`connector_${this.connectorKey}_${t.name}`] = {
|
|
331
333
|
...tool,
|
|
332
334
|
toModelOutput: async (options) => {
|
|
333
335
|
if (!originalToModelOutput) {
|
|
@@ -452,11 +454,11 @@ var AUTH_TYPES = {
|
|
|
452
454
|
// ../connectors/src/connectors/wix-store/setup.ts
|
|
453
455
|
var wixStoreOnboarding = new ConnectorOnboarding({
|
|
454
456
|
dataOverviewInstructions: {
|
|
455
|
-
en: `1. Call
|
|
456
|
-
2. Call
|
|
457
|
+
en: `1. Call connector_wix-store_request with POST stores/v1/products/query with { "query": { "paging": { "limit": 5 } } } to explore products
|
|
458
|
+
2. Call connector_wix-store_request with POST ecom/v1/orders/search with { "search": { "cursorPaging": { "limit": 5 } } } to explore orders
|
|
457
459
|
3. Explore other endpoints (collections, inventory) as needed`,
|
|
458
|
-
ja: `1.
|
|
459
|
-
2.
|
|
460
|
+
ja: `1. connector_wix-store_request \u3067 POST stores/v1/products/query \u3092 { "query": { "paging": { "limit": 5 } } } \u3067\u547C\u3073\u51FA\u3057\u3001\u5546\u54C1\u30C7\u30FC\u30BF\u3092\u78BA\u8A8D
|
|
461
|
+
2. connector_wix-store_request \u3067 POST ecom/v1/orders/search \u3092 { "search": { "cursorPaging": { "limit": 5 } } } \u3067\u547C\u3073\u51FA\u3057\u3001\u6CE8\u6587\u30C7\u30FC\u30BF\u3092\u78BA\u8A8D
|
|
460
462
|
3. \u5FC5\u8981\u306B\u5FDC\u3058\u3066\u4ED6\u306E\u30A8\u30F3\u30C9\u30DD\u30A4\u30F3\u30C8\uFF08\u30B3\u30EC\u30AF\u30B7\u30E7\u30F3\u3001\u5728\u5EAB\uFF09\u3092\u63A2\u7D22`
|
|
461
463
|
}
|
|
462
464
|
});
|
|
@@ -657,7 +659,7 @@ var wixStoreConnector = new ConnectorPlugin({
|
|
|
657
659
|
systemPrompt: {
|
|
658
660
|
en: `### Tools
|
|
659
661
|
|
|
660
|
-
- \`
|
|
662
|
+
- \`connector_wix-store_request\`: The only way to call the Wix Store REST API. Use it to query products, orders, collections, and inventory. Authentication (API Key, Site ID) is configured automatically. Note that Wix uses POST even for query endpoints, and filters are written in WQL (Wix Query Language). See the Wix Store API Reference below for endpoints and request bodies.
|
|
661
663
|
|
|
662
664
|
### Business Logic
|
|
663
665
|
|
|
@@ -731,7 +733,7 @@ export default async function handler(c: Context) {
|
|
|
731
733
|
- Body: \`{ "query": { "paging": { "limit": 50 } } }\``,
|
|
732
734
|
ja: `### \u30C4\u30FC\u30EB
|
|
733
735
|
|
|
734
|
-
- \`
|
|
736
|
+
- \`connector_wix-store_request\`: Wix Store REST API\u3092\u547C\u3073\u51FA\u3059\u552F\u4E00\u306E\u624B\u6BB5\u3067\u3059\u3002\u5546\u54C1\u3001\u6CE8\u6587\u3001\u30B3\u30EC\u30AF\u30B7\u30E7\u30F3\u3001\u5728\u5EAB\u306E\u30AF\u30A8\u30EA\u306B\u4F7F\u7528\u3057\u307E\u3059\u3002\u8A8D\u8A3C\uFF08API Key\u3001Site ID\uFF09\u306F\u81EA\u52D5\u7684\u306B\u8A2D\u5B9A\u3055\u308C\u307E\u3059\u3002Wix\u306F\u30AF\u30A8\u30EA\u30A8\u30F3\u30C9\u30DD\u30A4\u30F3\u30C8\u3067\u3082 POST \u3092\u4F7F\u7528\u3057\u3001\u30D5\u30A3\u30EB\u30BF\u306F WQL (Wix Query Language) \u3067\u8A18\u8FF0\u3059\u308B\u3053\u3068\u306B\u6CE8\u610F\u3057\u3066\u304F\u3060\u3055\u3044\u3002\u5229\u7528\u53EF\u80FD\u306A\u30A8\u30F3\u30C9\u30DD\u30A4\u30F3\u30C8\u3068\u30EA\u30AF\u30A8\u30B9\u30C8\u30DC\u30C7\u30A3\u306F\u4E0B\u90E8\u306E\u300CWix Store API \u30EA\u30D5\u30A1\u30EC\u30F3\u30B9\u300D\u3092\u53C2\u7167\u3057\u3066\u304F\u3060\u3055\u3044\u3002
|
|
735
737
|
|
|
736
738
|
### Business Logic
|
|
737
739
|
|
|
@@ -112,7 +112,7 @@ var ConnectorPlugin = class _ConnectorPlugin {
|
|
|
112
112
|
/**
|
|
113
113
|
* Create tools for connections that belong to this connector.
|
|
114
114
|
* Filters connections by connectorKey internally.
|
|
115
|
-
* Returns tools keyed as
|
|
115
|
+
* Returns tools keyed as `connector_${connectorKey}_${toolName}`.
|
|
116
116
|
*/
|
|
117
117
|
createTools(connections, config, opts) {
|
|
118
118
|
const myConnections = connections.filter(
|
|
@@ -122,7 +122,7 @@ var ConnectorPlugin = class _ConnectorPlugin {
|
|
|
122
122
|
for (const t of Object.values(this.tools)) {
|
|
123
123
|
const tool = t.createTool(myConnections, config);
|
|
124
124
|
const originalToModelOutput = tool.toModelOutput;
|
|
125
|
-
result[
|
|
125
|
+
result[`connector_${this.connectorKey}_${t.name}`] = {
|
|
126
126
|
...tool,
|
|
127
127
|
toModelOutput: async (options) => {
|
|
128
128
|
if (!originalToModelOutput) {
|
|
@@ -392,14 +392,14 @@ var zendeskOauthOnboarding = new ConnectorOnboarding({
|
|
|
392
392
|
- \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`
|
|
393
393
|
},
|
|
394
394
|
dataOverviewInstructions: {
|
|
395
|
-
en: `1. Call
|
|
396
|
-
2. Call
|
|
397
|
-
3. Call
|
|
398
|
-
4. Call
|
|
399
|
-
ja: `1.
|
|
400
|
-
2.
|
|
401
|
-
3.
|
|
402
|
-
4.
|
|
395
|
+
en: `1. Call connector_zendesk-oauth_request with GET /api/v2/ticket_fields.json to list available ticket fields
|
|
396
|
+
2. Call connector_zendesk-oauth_request with GET /api/v2/tickets.json?page[size]=5 to explore ticket structure
|
|
397
|
+
3. Call connector_zendesk-oauth_request with GET /api/v2/users.json?page[size]=5 to explore user structure
|
|
398
|
+
4. Call connector_zendesk-oauth_request with GET /api/v2/organizations.json?page[size]=5 to explore organization structure`,
|
|
399
|
+
ja: `1. connector_zendesk-oauth_request \u3067 GET /api/v2/ticket_fields.json \u3092\u547C\u3073\u51FA\u3057\u3001\u5229\u7528\u53EF\u80FD\u306A\u30C1\u30B1\u30C3\u30C8\u30D5\u30A3\u30FC\u30EB\u30C9\u3092\u78BA\u8A8D
|
|
400
|
+
2. connector_zendesk-oauth_request \u3067 GET /api/v2/tickets.json?page[size]=5 \u3092\u547C\u3073\u51FA\u3057\u3001\u30C1\u30B1\u30C3\u30C8\u306E\u69CB\u9020\u3092\u78BA\u8A8D
|
|
401
|
+
3. connector_zendesk-oauth_request \u3067 GET /api/v2/users.json?page[size]=5 \u3092\u547C\u3073\u51FA\u3057\u3001\u30E6\u30FC\u30B6\u30FC\u306E\u69CB\u9020\u3092\u78BA\u8A8D
|
|
402
|
+
4. connector_zendesk-oauth_request \u3067 GET /api/v2/organizations.json?page[size]=5 \u3092\u547C\u3073\u51FA\u3057\u3001\u7D44\u7E54\u306E\u69CB\u9020\u3092\u78BA\u8A8D`
|
|
403
403
|
}
|
|
404
404
|
});
|
|
405
405
|
|
|
@@ -517,6 +517,49 @@ var zendeskOauthSetupFlow = {
|
|
|
517
517
|
);
|
|
518
518
|
}
|
|
519
519
|
sections.push("");
|
|
520
|
+
if (targetEntities.includes("tickets")) {
|
|
521
|
+
try {
|
|
522
|
+
const statusRes = await apiFetch(
|
|
523
|
+
rt.config.proxyFetch,
|
|
524
|
+
"/api/v2/tickets.json?page[size]=100&sort=-created_at"
|
|
525
|
+
);
|
|
526
|
+
if (statusRes.ok) {
|
|
527
|
+
const statusData = await statusRes.json();
|
|
528
|
+
const tickets = statusData.tickets ?? [];
|
|
529
|
+
if (tickets.length > 0) {
|
|
530
|
+
const statusCounts = {};
|
|
531
|
+
for (const t of tickets) {
|
|
532
|
+
const s = t.status ?? "unknown";
|
|
533
|
+
statusCounts[s] = (statusCounts[s] ?? 0) + 1;
|
|
534
|
+
}
|
|
535
|
+
sections.push("### Ticket status breakdown (from recent tickets)", "");
|
|
536
|
+
sections.push("| Status | Count |");
|
|
537
|
+
sections.push("|--------|-------|");
|
|
538
|
+
for (const [status, cnt] of Object.entries(statusCounts).sort(
|
|
539
|
+
(a, b) => b[1] - a[1]
|
|
540
|
+
)) {
|
|
541
|
+
sections.push(`| ${status} | ${cnt} |`);
|
|
542
|
+
}
|
|
543
|
+
sections.push("");
|
|
544
|
+
sections.push("### Recent tickets (sample)", "");
|
|
545
|
+
sections.push("| ID | Subject | Status | Priority | Created |");
|
|
546
|
+
sections.push("|----|---------|--------|----------|---------|");
|
|
547
|
+
for (const t of tickets.slice(0, 5)) {
|
|
548
|
+
const id = t.id != null ? String(t.id) : "-";
|
|
549
|
+
const subject = (t.subject ?? "-").replace(/\|/g, "\\|").slice(0, 60);
|
|
550
|
+
const status = t.status ?? "-";
|
|
551
|
+
const priority = t.priority ?? "-";
|
|
552
|
+
const created = t.created_at ? t.created_at.slice(0, 10) : "-";
|
|
553
|
+
sections.push(
|
|
554
|
+
`| ${id} | ${subject} | ${status} | ${priority} | ${created} |`
|
|
555
|
+
);
|
|
556
|
+
}
|
|
557
|
+
sections.push("");
|
|
558
|
+
}
|
|
559
|
+
}
|
|
560
|
+
} catch {
|
|
561
|
+
}
|
|
562
|
+
}
|
|
520
563
|
return sections.join("\n");
|
|
521
564
|
}
|
|
522
565
|
};
|
|
@@ -548,7 +591,7 @@ var zendeskOauthConnector = new ConnectorPlugin({
|
|
|
548
591
|
systemPrompt: {
|
|
549
592
|
en: `### Tools
|
|
550
593
|
|
|
551
|
-
- \`
|
|
594
|
+
- \`connector_zendesk-oauth_request\`: The only way to call the Zendesk Support API. Use it to query tickets, users, organizations, groups, and perform searches. Authentication is configured automatically via OAuth. Zendesk uses cursor-based pagination with \`page[size]\` and \`page[after]\` parameters. All endpoint paths end with \`.json\`.
|
|
552
595
|
|
|
553
596
|
### Zendesk API Reference
|
|
554
597
|
|
|
@@ -606,7 +649,7 @@ const data = await res.json();
|
|
|
606
649
|
\`\`\``,
|
|
607
650
|
ja: `### \u30C4\u30FC\u30EB
|
|
608
651
|
|
|
609
|
-
- \`
|
|
652
|
+
- \`connector_zendesk-oauth_request\`: Zendesk Support API\u3092\u547C\u3073\u51FA\u3059\u552F\u4E00\u306E\u624B\u6BB5\u3067\u3059\u3002\u30C1\u30B1\u30C3\u30C8\u3001\u30E6\u30FC\u30B6\u30FC\u3001\u7D44\u7E54\u3001\u30B0\u30EB\u30FC\u30D7\u306E\u30AF\u30A8\u30EA\u3084\u691C\u7D22\u306B\u4F7F\u7528\u3057\u307E\u3059\u3002OAuth\u7D4C\u7531\u3067\u8A8D\u8A3C\u306F\u81EA\u52D5\u8A2D\u5B9A\u3055\u308C\u307E\u3059\u3002Zendesk\u306F \`page[size]\` \u3068 \`page[after]\` \u30D1\u30E9\u30E1\u30FC\u30BF\u306B\u3088\u308B\u30AB\u30FC\u30BD\u30EB\u30D9\u30FC\u30B9\u306E\u30DA\u30FC\u30B8\u30CD\u30FC\u30B7\u30E7\u30F3\u3092\u4F7F\u7528\u3057\u307E\u3059\u3002\u5168\u3066\u306E\u30A8\u30F3\u30C9\u30DD\u30A4\u30F3\u30C8\u30D1\u30B9\u306F \`.json\` \u3067\u7D42\u308F\u308A\u307E\u3059\u3002
|
|
610
653
|
|
|
611
654
|
### Zendesk API \u30EA\u30D5\u30A1\u30EC\u30F3\u30B9
|
|
612
655
|
|
|
@@ -16,6 +16,7 @@ var init_parameter_definition = __esm({
|
|
|
16
16
|
type;
|
|
17
17
|
secret;
|
|
18
18
|
required;
|
|
19
|
+
isDeprecated;
|
|
19
20
|
constructor(config) {
|
|
20
21
|
this.slug = config.slug;
|
|
21
22
|
this.name = config.name;
|
|
@@ -24,6 +25,7 @@ var init_parameter_definition = __esm({
|
|
|
24
25
|
this.type = config.type;
|
|
25
26
|
this.secret = config.secret;
|
|
26
27
|
this.required = config.required;
|
|
28
|
+
this.isDeprecated = config.isDeprecated ?? false;
|
|
27
29
|
}
|
|
28
30
|
/**
|
|
29
31
|
* Get the parameter value from a ConnectorConnectionObject.
|
|
@@ -299,7 +301,7 @@ var ConnectorPlugin = class _ConnectorPlugin {
|
|
|
299
301
|
/**
|
|
300
302
|
* Create tools for connections that belong to this connector.
|
|
301
303
|
* Filters connections by connectorKey internally.
|
|
302
|
-
* Returns tools keyed as
|
|
304
|
+
* Returns tools keyed as `connector_${connectorKey}_${toolName}`.
|
|
303
305
|
*/
|
|
304
306
|
createTools(connections, config, opts) {
|
|
305
307
|
const myConnections = connections.filter(
|
|
@@ -309,7 +311,7 @@ var ConnectorPlugin = class _ConnectorPlugin {
|
|
|
309
311
|
for (const t of Object.values(this.tools)) {
|
|
310
312
|
const tool = t.createTool(myConnections, config);
|
|
311
313
|
const originalToModelOutput = tool.toModelOutput;
|
|
312
|
-
result[
|
|
314
|
+
result[`connector_${this.connectorKey}_${t.name}`] = {
|
|
313
315
|
...tool,
|
|
314
316
|
toModelOutput: async (options) => {
|
|
315
317
|
if (!originalToModelOutput) {
|
|
@@ -439,14 +441,14 @@ var AUTH_TYPES = {
|
|
|
439
441
|
// ../connectors/src/connectors/zendesk/setup.ts
|
|
440
442
|
var zendeskOnboarding = new ConnectorOnboarding({
|
|
441
443
|
dataOverviewInstructions: {
|
|
442
|
-
en: `1. Call
|
|
443
|
-
2. Call
|
|
444
|
-
3. Call
|
|
445
|
-
4. Call
|
|
446
|
-
ja: `1.
|
|
447
|
-
2.
|
|
448
|
-
3.
|
|
449
|
-
4.
|
|
444
|
+
en: `1. Call connector_zendesk_request with GET /api/v2/ticket_fields.json to list available ticket fields
|
|
445
|
+
2. Call connector_zendesk_request with GET /api/v2/tickets.json?page[size]=5 to explore ticket structure
|
|
446
|
+
3. Call connector_zendesk_request with GET /api/v2/users.json?page[size]=5 to explore user structure
|
|
447
|
+
4. Call connector_zendesk_request with GET /api/v2/organizations.json?page[size]=5 to explore organization structure`,
|
|
448
|
+
ja: `1. connector_zendesk_request \u3067 GET /api/v2/ticket_fields.json \u3092\u547C\u3073\u51FA\u3057\u3001\u5229\u7528\u53EF\u80FD\u306A\u30C1\u30B1\u30C3\u30C8\u30D5\u30A3\u30FC\u30EB\u30C9\u3092\u78BA\u8A8D
|
|
449
|
+
2. connector_zendesk_request \u3067 GET /api/v2/tickets.json?page[size]=5 \u3092\u547C\u3073\u51FA\u3057\u3001\u30C1\u30B1\u30C3\u30C8\u306E\u69CB\u9020\u3092\u78BA\u8A8D
|
|
450
|
+
3. connector_zendesk_request \u3067 GET /api/v2/users.json?page[size]=5 \u3092\u547C\u3073\u51FA\u3057\u3001\u30E6\u30FC\u30B6\u30FC\u306E\u69CB\u9020\u3092\u78BA\u8A8D
|
|
451
|
+
4. connector_zendesk_request \u3067 GET /api/v2/organizations.json?page[size]=5 \u3092\u547C\u3073\u51FA\u3057\u3001\u7D44\u7E54\u306E\u69CB\u9020\u3092\u78BA\u8A8D`
|
|
450
452
|
}
|
|
451
453
|
});
|
|
452
454
|
|
|
@@ -691,7 +693,7 @@ var zendeskConnector = new ConnectorPlugin({
|
|
|
691
693
|
systemPrompt: {
|
|
692
694
|
en: `### Tools
|
|
693
695
|
|
|
694
|
-
- \`
|
|
696
|
+
- \`connector_zendesk_request\`: The only way to call the Zendesk Support API. Use it to query tickets, users, organizations, groups, and perform searches. Authentication (Basic auth with email/token) is configured automatically. Zendesk uses cursor-based pagination with \`page[size]\` and \`page[after]\` parameters. All endpoint paths end with \`.json\`.
|
|
695
697
|
|
|
696
698
|
### Business Logic
|
|
697
699
|
|
|
@@ -777,7 +779,7 @@ export default async function handler(c: Context) {
|
|
|
777
779
|
- \`type:organization {name}\` \u2014 Organizations matching a name`,
|
|
778
780
|
ja: `### \u30C4\u30FC\u30EB
|
|
779
781
|
|
|
780
|
-
- \`
|
|
782
|
+
- \`connector_zendesk_request\`: Zendesk Support API\u3092\u547C\u3073\u51FA\u3059\u552F\u4E00\u306E\u624B\u6BB5\u3067\u3059\u3002\u30C1\u30B1\u30C3\u30C8\u3001\u30E6\u30FC\u30B6\u30FC\u3001\u7D44\u7E54\u3001\u30B0\u30EB\u30FC\u30D7\u306E\u30AF\u30A8\u30EA\u3084\u691C\u7D22\u306B\u4F7F\u7528\u3057\u307E\u3059\u3002\u8A8D\u8A3C\uFF08\u30E1\u30FC\u30EB/\u30C8\u30FC\u30AF\u30F3\u306B\u3088\u308BBasic\u8A8D\u8A3C\uFF09\u306F\u81EA\u52D5\u7684\u306B\u8A2D\u5B9A\u3055\u308C\u307E\u3059\u3002Zendesk\u306F \`page[size]\` \u3068 \`page[after]\` \u30D1\u30E9\u30E1\u30FC\u30BF\u306B\u3088\u308B\u30AB\u30FC\u30BD\u30EB\u30D9\u30FC\u30B9\u306E\u30DA\u30FC\u30B8\u30CD\u30FC\u30B7\u30E7\u30F3\u3092\u4F7F\u7528\u3057\u307E\u3059\u3002\u5168\u3066\u306E\u30A8\u30F3\u30C9\u30DD\u30A4\u30F3\u30C8\u30D1\u30B9\u306F \`.json\` \u3067\u7D42\u308F\u308A\u307E\u3059\u3002
|
|
781
783
|
|
|
782
784
|
### Business Logic
|
|
783
785
|
|