integrate-sdk 0.8.30-dev.0 → 0.8.31-dev.1
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/adapters/auto-routes.js +466 -0
- package/dist/adapters/index.js +466 -0
- package/dist/adapters/nextjs.js +466 -0
- package/dist/adapters/node.js +466 -0
- package/dist/adapters/svelte-kit.js +466 -0
- package/dist/adapters/tanstack-start.js +466 -0
- package/dist/index.js +488 -0
- package/dist/oauth.js +466 -0
- package/dist/server.js +477 -0
- package/dist/src/client.d.ts +12 -1
- package/dist/src/client.d.ts.map +1 -1
- package/dist/src/index.d.ts +22 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/integrations/calcom-client.d.ts +355 -0
- package/dist/src/integrations/calcom-client.d.ts.map +1 -0
- package/dist/src/integrations/calcom.d.ts +39 -0
- package/dist/src/integrations/calcom.d.ts.map +1 -0
- package/dist/src/integrations/cursor-client.d.ts +259 -0
- package/dist/src/integrations/cursor-client.d.ts.map +1 -0
- package/dist/src/integrations/cursor.d.ts +30 -0
- package/dist/src/integrations/cursor.d.ts.map +1 -0
- package/dist/src/integrations/figma-client.d.ts +327 -0
- package/dist/src/integrations/figma-client.d.ts.map +1 -0
- package/dist/src/integrations/figma.d.ts +37 -0
- package/dist/src/integrations/figma.d.ts.map +1 -0
- package/dist/src/integrations/gworkspace-client.d.ts +392 -0
- package/dist/src/integrations/gworkspace-client.d.ts.map +1 -0
- package/dist/src/integrations/gworkspace.d.ts +37 -0
- package/dist/src/integrations/gworkspace.d.ts.map +1 -0
- package/dist/src/integrations/hubspot-client.d.ts +367 -0
- package/dist/src/integrations/hubspot-client.d.ts.map +1 -0
- package/dist/src/integrations/hubspot.d.ts +37 -0
- package/dist/src/integrations/hubspot.d.ts.map +1 -0
- package/dist/src/integrations/intercom-client.d.ts +414 -0
- package/dist/src/integrations/intercom-client.d.ts.map +1 -0
- package/dist/src/integrations/intercom.d.ts +37 -0
- package/dist/src/integrations/intercom.d.ts.map +1 -0
- package/dist/src/integrations/onedrive-client.d.ts +338 -0
- package/dist/src/integrations/onedrive-client.d.ts.map +1 -0
- package/dist/src/integrations/onedrive.d.ts +37 -0
- package/dist/src/integrations/onedrive.d.ts.map +1 -0
- package/dist/src/integrations/polar-client.d.ts +297 -0
- package/dist/src/integrations/polar-client.d.ts.map +1 -0
- package/dist/src/integrations/polar.d.ts +39 -0
- package/dist/src/integrations/polar.d.ts.map +1 -0
- package/dist/src/integrations/ramp-client.d.ts +341 -0
- package/dist/src/integrations/ramp-client.d.ts.map +1 -0
- package/dist/src/integrations/ramp.d.ts +39 -0
- package/dist/src/integrations/ramp.d.ts.map +1 -0
- package/dist/src/integrations/whatsapp-client.d.ts +320 -0
- package/dist/src/integrations/whatsapp-client.d.ts.map +1 -0
- package/dist/src/integrations/whatsapp.d.ts +39 -0
- package/dist/src/integrations/whatsapp.d.ts.map +1 -0
- package/dist/src/integrations/youtube-client.d.ts +459 -0
- package/dist/src/integrations/youtube-client.d.ts.map +1 -0
- package/dist/src/integrations/youtube.d.ts +37 -0
- package/dist/src/integrations/youtube.d.ts.map +1 -0
- package/dist/src/server.d.ts +11 -0
- package/dist/src/server.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3059,6 +3059,450 @@ var init_todoist = __esm(() => {
|
|
|
3059
3059
|
];
|
|
3060
3060
|
});
|
|
3061
3061
|
|
|
3062
|
+
// src/integrations/whatsapp.ts
|
|
3063
|
+
function whatsappIntegration(config = {}) {
|
|
3064
|
+
const oauth = {
|
|
3065
|
+
provider: "whatsapp",
|
|
3066
|
+
clientId: config.clientId ?? getEnv("WHATSAPP_CLIENT_ID"),
|
|
3067
|
+
clientSecret: config.clientSecret ?? getEnv("WHATSAPP_CLIENT_SECRET"),
|
|
3068
|
+
scopes: config.scopes || ["business_management", "whatsapp_business_messaging", "whatsapp_business_management"],
|
|
3069
|
+
redirectUri: config.redirectUri,
|
|
3070
|
+
config: {
|
|
3071
|
+
businessAccountId: config.businessAccountId,
|
|
3072
|
+
...config
|
|
3073
|
+
}
|
|
3074
|
+
};
|
|
3075
|
+
return {
|
|
3076
|
+
id: "whatsapp",
|
|
3077
|
+
tools: [...WHATSAPP_TOOLS],
|
|
3078
|
+
oauth,
|
|
3079
|
+
async onInit(_client) {
|
|
3080
|
+
console.log("WhatsApp Business integration initialized");
|
|
3081
|
+
},
|
|
3082
|
+
async onAfterConnect(_client) {
|
|
3083
|
+
console.log("WhatsApp Business integration connected");
|
|
3084
|
+
}
|
|
3085
|
+
};
|
|
3086
|
+
}
|
|
3087
|
+
var WHATSAPP_TOOLS;
|
|
3088
|
+
var init_whatsapp = __esm(() => {
|
|
3089
|
+
WHATSAPP_TOOLS = [
|
|
3090
|
+
"whatsapp_send_message",
|
|
3091
|
+
"whatsapp_send_template",
|
|
3092
|
+
"whatsapp_send_media",
|
|
3093
|
+
"whatsapp_list_templates",
|
|
3094
|
+
"whatsapp_get_phone_numbers",
|
|
3095
|
+
"whatsapp_get_message_status",
|
|
3096
|
+
"whatsapp_mark_read",
|
|
3097
|
+
"whatsapp_get_profile"
|
|
3098
|
+
];
|
|
3099
|
+
});
|
|
3100
|
+
|
|
3101
|
+
// src/integrations/calcom.ts
|
|
3102
|
+
function calcomIntegration(config = {}) {
|
|
3103
|
+
const oauth = {
|
|
3104
|
+
provider: "calcom",
|
|
3105
|
+
clientId: config.clientId ?? getEnv("CALCOM_CLIENT_ID"),
|
|
3106
|
+
clientSecret: config.clientSecret ?? getEnv("CALCOM_CLIENT_SECRET"),
|
|
3107
|
+
scopes: config.scopes || ["read:bookings", "write:bookings", "read:event-types", "read:schedules"],
|
|
3108
|
+
redirectUri: config.redirectUri,
|
|
3109
|
+
config: {
|
|
3110
|
+
apiBaseUrl: config.apiBaseUrl || "https://api.cal.com/v1",
|
|
3111
|
+
...config
|
|
3112
|
+
}
|
|
3113
|
+
};
|
|
3114
|
+
return {
|
|
3115
|
+
id: "calcom",
|
|
3116
|
+
tools: [...CALCOM_TOOLS],
|
|
3117
|
+
oauth,
|
|
3118
|
+
async onInit(_client) {
|
|
3119
|
+
console.log("Cal.com integration initialized");
|
|
3120
|
+
},
|
|
3121
|
+
async onAfterConnect(_client) {
|
|
3122
|
+
console.log("Cal.com integration connected");
|
|
3123
|
+
}
|
|
3124
|
+
};
|
|
3125
|
+
}
|
|
3126
|
+
var CALCOM_TOOLS;
|
|
3127
|
+
var init_calcom = __esm(() => {
|
|
3128
|
+
CALCOM_TOOLS = [
|
|
3129
|
+
"calcom_list_bookings",
|
|
3130
|
+
"calcom_get_booking",
|
|
3131
|
+
"calcom_create_booking",
|
|
3132
|
+
"calcom_cancel_booking",
|
|
3133
|
+
"calcom_reschedule_booking",
|
|
3134
|
+
"calcom_list_event_types",
|
|
3135
|
+
"calcom_get_availability",
|
|
3136
|
+
"calcom_list_schedules",
|
|
3137
|
+
"calcom_get_me"
|
|
3138
|
+
];
|
|
3139
|
+
});
|
|
3140
|
+
|
|
3141
|
+
// src/integrations/ramp.ts
|
|
3142
|
+
function rampIntegration(config = {}) {
|
|
3143
|
+
const oauth = {
|
|
3144
|
+
provider: "ramp",
|
|
3145
|
+
clientId: config.clientId ?? getEnv("RAMP_CLIENT_ID"),
|
|
3146
|
+
clientSecret: config.clientSecret ?? getEnv("RAMP_CLIENT_SECRET"),
|
|
3147
|
+
scopes: config.scopes || ["transactions:read", "cards:read", "users:read"],
|
|
3148
|
+
redirectUri: config.redirectUri,
|
|
3149
|
+
config: {
|
|
3150
|
+
apiBaseUrl: config.apiBaseUrl || "https://api.ramp.com/v1",
|
|
3151
|
+
...config
|
|
3152
|
+
}
|
|
3153
|
+
};
|
|
3154
|
+
return {
|
|
3155
|
+
id: "ramp",
|
|
3156
|
+
tools: [...RAMP_TOOLS],
|
|
3157
|
+
oauth,
|
|
3158
|
+
async onInit(_client) {
|
|
3159
|
+
console.log("Ramp integration initialized");
|
|
3160
|
+
},
|
|
3161
|
+
async onAfterConnect(_client) {
|
|
3162
|
+
console.log("Ramp integration connected");
|
|
3163
|
+
}
|
|
3164
|
+
};
|
|
3165
|
+
}
|
|
3166
|
+
var RAMP_TOOLS;
|
|
3167
|
+
var init_ramp = __esm(() => {
|
|
3168
|
+
RAMP_TOOLS = [
|
|
3169
|
+
"ramp_list_transactions",
|
|
3170
|
+
"ramp_get_transaction",
|
|
3171
|
+
"ramp_list_cards",
|
|
3172
|
+
"ramp_get_card",
|
|
3173
|
+
"ramp_list_users",
|
|
3174
|
+
"ramp_get_user",
|
|
3175
|
+
"ramp_list_departments",
|
|
3176
|
+
"ramp_list_reimbursements",
|
|
3177
|
+
"ramp_get_spend_limits"
|
|
3178
|
+
];
|
|
3179
|
+
});
|
|
3180
|
+
|
|
3181
|
+
// src/integrations/onedrive.ts
|
|
3182
|
+
function onedriveIntegration(config = {}) {
|
|
3183
|
+
const oauth = {
|
|
3184
|
+
provider: "onedrive",
|
|
3185
|
+
clientId: config.clientId ?? getEnv("ONEDRIVE_CLIENT_ID"),
|
|
3186
|
+
clientSecret: config.clientSecret ?? getEnv("ONEDRIVE_CLIENT_SECRET"),
|
|
3187
|
+
scopes: config.scopes || ["Files.Read", "Files.ReadWrite", "offline_access"],
|
|
3188
|
+
redirectUri: config.redirectUri,
|
|
3189
|
+
config: {
|
|
3190
|
+
...config
|
|
3191
|
+
}
|
|
3192
|
+
};
|
|
3193
|
+
return {
|
|
3194
|
+
id: "onedrive",
|
|
3195
|
+
tools: [...ONEDRIVE_TOOLS],
|
|
3196
|
+
oauth,
|
|
3197
|
+
async onInit(_client) {
|
|
3198
|
+
console.log("OneDrive integration initialized");
|
|
3199
|
+
},
|
|
3200
|
+
async onAfterConnect(_client) {
|
|
3201
|
+
console.log("OneDrive integration connected");
|
|
3202
|
+
}
|
|
3203
|
+
};
|
|
3204
|
+
}
|
|
3205
|
+
var ONEDRIVE_TOOLS;
|
|
3206
|
+
var init_onedrive = __esm(() => {
|
|
3207
|
+
ONEDRIVE_TOOLS = [
|
|
3208
|
+
"onedrive_list_files",
|
|
3209
|
+
"onedrive_get_file",
|
|
3210
|
+
"onedrive_download_file",
|
|
3211
|
+
"onedrive_upload_file",
|
|
3212
|
+
"onedrive_delete_file",
|
|
3213
|
+
"onedrive_search_files",
|
|
3214
|
+
"onedrive_share_file",
|
|
3215
|
+
"onedrive_word_get_content",
|
|
3216
|
+
"onedrive_excel_get_worksheets",
|
|
3217
|
+
"onedrive_excel_get_range",
|
|
3218
|
+
"onedrive_excel_update_range",
|
|
3219
|
+
"onedrive_powerpoint_get_slides"
|
|
3220
|
+
];
|
|
3221
|
+
});
|
|
3222
|
+
|
|
3223
|
+
// src/integrations/gworkspace.ts
|
|
3224
|
+
function gworkspaceIntegration(config = {}) {
|
|
3225
|
+
const oauth = {
|
|
3226
|
+
provider: "gworkspace",
|
|
3227
|
+
clientId: config.clientId ?? getEnv("GWORKSPACE_CLIENT_ID"),
|
|
3228
|
+
clientSecret: config.clientSecret ?? getEnv("GWORKSPACE_CLIENT_SECRET"),
|
|
3229
|
+
scopes: config.scopes || [
|
|
3230
|
+
"https://www.googleapis.com/auth/spreadsheets",
|
|
3231
|
+
"https://www.googleapis.com/auth/documents",
|
|
3232
|
+
"https://www.googleapis.com/auth/presentations",
|
|
3233
|
+
"https://www.googleapis.com/auth/drive.readonly"
|
|
3234
|
+
],
|
|
3235
|
+
redirectUri: config.redirectUri,
|
|
3236
|
+
config: {
|
|
3237
|
+
...config
|
|
3238
|
+
}
|
|
3239
|
+
};
|
|
3240
|
+
return {
|
|
3241
|
+
id: "gworkspace",
|
|
3242
|
+
tools: [...GWORKSPACE_TOOLS],
|
|
3243
|
+
oauth,
|
|
3244
|
+
async onInit(_client) {
|
|
3245
|
+
console.log("Google Workspace integration initialized");
|
|
3246
|
+
},
|
|
3247
|
+
async onAfterConnect(_client) {
|
|
3248
|
+
console.log("Google Workspace integration connected");
|
|
3249
|
+
}
|
|
3250
|
+
};
|
|
3251
|
+
}
|
|
3252
|
+
var GWORKSPACE_TOOLS;
|
|
3253
|
+
var init_gworkspace = __esm(() => {
|
|
3254
|
+
GWORKSPACE_TOOLS = [
|
|
3255
|
+
"gworkspace_sheets_list",
|
|
3256
|
+
"gworkspace_sheets_get",
|
|
3257
|
+
"gworkspace_sheets_get_values",
|
|
3258
|
+
"gworkspace_sheets_update_values",
|
|
3259
|
+
"gworkspace_sheets_create",
|
|
3260
|
+
"gworkspace_docs_list",
|
|
3261
|
+
"gworkspace_docs_get",
|
|
3262
|
+
"gworkspace_docs_create",
|
|
3263
|
+
"gworkspace_slides_list",
|
|
3264
|
+
"gworkspace_slides_get",
|
|
3265
|
+
"gworkspace_slides_get_page",
|
|
3266
|
+
"gworkspace_slides_create"
|
|
3267
|
+
];
|
|
3268
|
+
});
|
|
3269
|
+
|
|
3270
|
+
// src/integrations/polar.ts
|
|
3271
|
+
function polarIntegration(config = {}) {
|
|
3272
|
+
const oauth = {
|
|
3273
|
+
provider: "polar",
|
|
3274
|
+
clientId: config.clientId ?? getEnv("POLAR_CLIENT_ID"),
|
|
3275
|
+
clientSecret: config.clientSecret ?? getEnv("POLAR_CLIENT_SECRET"),
|
|
3276
|
+
scopes: config.scopes || ["products:read", "subscriptions:read", "customers:read", "orders:read", "benefits:read"],
|
|
3277
|
+
redirectUri: config.redirectUri,
|
|
3278
|
+
config: {
|
|
3279
|
+
apiBaseUrl: config.apiBaseUrl || "https://api.polar.sh",
|
|
3280
|
+
...config
|
|
3281
|
+
}
|
|
3282
|
+
};
|
|
3283
|
+
return {
|
|
3284
|
+
id: "polar",
|
|
3285
|
+
tools: [...POLAR_TOOLS],
|
|
3286
|
+
oauth,
|
|
3287
|
+
async onInit(_client) {
|
|
3288
|
+
console.log("Polar integration initialized");
|
|
3289
|
+
},
|
|
3290
|
+
async onAfterConnect(_client) {
|
|
3291
|
+
console.log("Polar integration connected");
|
|
3292
|
+
}
|
|
3293
|
+
};
|
|
3294
|
+
}
|
|
3295
|
+
var POLAR_TOOLS;
|
|
3296
|
+
var init_polar = __esm(() => {
|
|
3297
|
+
POLAR_TOOLS = [
|
|
3298
|
+
"polar_list_products",
|
|
3299
|
+
"polar_get_product",
|
|
3300
|
+
"polar_list_subscriptions",
|
|
3301
|
+
"polar_get_subscription",
|
|
3302
|
+
"polar_list_customers",
|
|
3303
|
+
"polar_get_customer",
|
|
3304
|
+
"polar_list_orders",
|
|
3305
|
+
"polar_get_order",
|
|
3306
|
+
"polar_list_benefits"
|
|
3307
|
+
];
|
|
3308
|
+
});
|
|
3309
|
+
|
|
3310
|
+
// src/integrations/figma.ts
|
|
3311
|
+
function figmaIntegration(config = {}) {
|
|
3312
|
+
const oauth = {
|
|
3313
|
+
provider: "figma",
|
|
3314
|
+
clientId: config.clientId ?? getEnv("FIGMA_CLIENT_ID"),
|
|
3315
|
+
clientSecret: config.clientSecret ?? getEnv("FIGMA_CLIENT_SECRET"),
|
|
3316
|
+
scopes: config.scopes || ["files:read", "file_comments:write"],
|
|
3317
|
+
redirectUri: config.redirectUri,
|
|
3318
|
+
config: {
|
|
3319
|
+
...config
|
|
3320
|
+
}
|
|
3321
|
+
};
|
|
3322
|
+
return {
|
|
3323
|
+
id: "figma",
|
|
3324
|
+
tools: [...FIGMA_TOOLS],
|
|
3325
|
+
oauth,
|
|
3326
|
+
async onInit(_client) {
|
|
3327
|
+
console.log("Figma integration initialized");
|
|
3328
|
+
},
|
|
3329
|
+
async onAfterConnect(_client) {
|
|
3330
|
+
console.log("Figma integration connected");
|
|
3331
|
+
}
|
|
3332
|
+
};
|
|
3333
|
+
}
|
|
3334
|
+
var FIGMA_TOOLS;
|
|
3335
|
+
var init_figma = __esm(() => {
|
|
3336
|
+
FIGMA_TOOLS = [
|
|
3337
|
+
"figma_get_file",
|
|
3338
|
+
"figma_get_file_nodes",
|
|
3339
|
+
"figma_get_images",
|
|
3340
|
+
"figma_get_comments",
|
|
3341
|
+
"figma_post_comment",
|
|
3342
|
+
"figma_list_projects",
|
|
3343
|
+
"figma_get_project_files",
|
|
3344
|
+
"figma_get_file_versions",
|
|
3345
|
+
"figma_get_team_components"
|
|
3346
|
+
];
|
|
3347
|
+
});
|
|
3348
|
+
|
|
3349
|
+
// src/integrations/intercom.ts
|
|
3350
|
+
function intercomIntegration(config = {}) {
|
|
3351
|
+
const oauth = {
|
|
3352
|
+
provider: "intercom",
|
|
3353
|
+
clientId: config.clientId ?? getEnv("INTERCOM_CLIENT_ID"),
|
|
3354
|
+
clientSecret: config.clientSecret ?? getEnv("INTERCOM_CLIENT_SECRET"),
|
|
3355
|
+
scopes: config.scopes || [],
|
|
3356
|
+
redirectUri: config.redirectUri,
|
|
3357
|
+
config: {
|
|
3358
|
+
...config
|
|
3359
|
+
}
|
|
3360
|
+
};
|
|
3361
|
+
return {
|
|
3362
|
+
id: "intercom",
|
|
3363
|
+
tools: [...INTERCOM_TOOLS],
|
|
3364
|
+
oauth,
|
|
3365
|
+
async onInit(_client) {
|
|
3366
|
+
console.log("Intercom integration initialized");
|
|
3367
|
+
},
|
|
3368
|
+
async onAfterConnect(_client) {
|
|
3369
|
+
console.log("Intercom integration connected");
|
|
3370
|
+
}
|
|
3371
|
+
};
|
|
3372
|
+
}
|
|
3373
|
+
var INTERCOM_TOOLS;
|
|
3374
|
+
var init_intercom = __esm(() => {
|
|
3375
|
+
INTERCOM_TOOLS = [
|
|
3376
|
+
"intercom_list_contacts",
|
|
3377
|
+
"intercom_get_contact",
|
|
3378
|
+
"intercom_create_contact",
|
|
3379
|
+
"intercom_list_conversations",
|
|
3380
|
+
"intercom_get_conversation",
|
|
3381
|
+
"intercom_reply_conversation",
|
|
3382
|
+
"intercom_list_companies",
|
|
3383
|
+
"intercom_get_company",
|
|
3384
|
+
"intercom_search_contacts"
|
|
3385
|
+
];
|
|
3386
|
+
});
|
|
3387
|
+
|
|
3388
|
+
// src/integrations/hubspot.ts
|
|
3389
|
+
function hubspotIntegration(config = {}) {
|
|
3390
|
+
const oauth = {
|
|
3391
|
+
provider: "hubspot",
|
|
3392
|
+
clientId: config.clientId ?? getEnv("HUBSPOT_CLIENT_ID"),
|
|
3393
|
+
clientSecret: config.clientSecret ?? getEnv("HUBSPOT_CLIENT_SECRET"),
|
|
3394
|
+
scopes: config.scopes || [
|
|
3395
|
+
"crm.objects.contacts.read",
|
|
3396
|
+
"crm.objects.contacts.write",
|
|
3397
|
+
"crm.objects.companies.read",
|
|
3398
|
+
"crm.objects.companies.write",
|
|
3399
|
+
"crm.objects.deals.read",
|
|
3400
|
+
"crm.objects.deals.write",
|
|
3401
|
+
"tickets"
|
|
3402
|
+
],
|
|
3403
|
+
redirectUri: config.redirectUri,
|
|
3404
|
+
config: {
|
|
3405
|
+
...config
|
|
3406
|
+
}
|
|
3407
|
+
};
|
|
3408
|
+
return {
|
|
3409
|
+
id: "hubspot",
|
|
3410
|
+
tools: [...HUBSPOT_TOOLS],
|
|
3411
|
+
oauth,
|
|
3412
|
+
async onInit(_client) {
|
|
3413
|
+
console.log("HubSpot integration initialized");
|
|
3414
|
+
},
|
|
3415
|
+
async onAfterConnect(_client) {
|
|
3416
|
+
console.log("HubSpot integration connected");
|
|
3417
|
+
}
|
|
3418
|
+
};
|
|
3419
|
+
}
|
|
3420
|
+
var HUBSPOT_TOOLS;
|
|
3421
|
+
var init_hubspot = __esm(() => {
|
|
3422
|
+
HUBSPOT_TOOLS = [
|
|
3423
|
+
"hubspot_list_contacts",
|
|
3424
|
+
"hubspot_get_contact",
|
|
3425
|
+
"hubspot_create_contact",
|
|
3426
|
+
"hubspot_update_contact",
|
|
3427
|
+
"hubspot_list_companies",
|
|
3428
|
+
"hubspot_get_company",
|
|
3429
|
+
"hubspot_create_company",
|
|
3430
|
+
"hubspot_list_deals",
|
|
3431
|
+
"hubspot_get_deal",
|
|
3432
|
+
"hubspot_create_deal",
|
|
3433
|
+
"hubspot_list_tickets",
|
|
3434
|
+
"hubspot_get_ticket"
|
|
3435
|
+
];
|
|
3436
|
+
});
|
|
3437
|
+
|
|
3438
|
+
// src/integrations/youtube.ts
|
|
3439
|
+
function youtubeIntegration(config = {}) {
|
|
3440
|
+
const oauth = {
|
|
3441
|
+
provider: "youtube",
|
|
3442
|
+
clientId: config.clientId ?? getEnv("YOUTUBE_CLIENT_ID"),
|
|
3443
|
+
clientSecret: config.clientSecret ?? getEnv("YOUTUBE_CLIENT_SECRET"),
|
|
3444
|
+
scopes: config.scopes || ["https://www.googleapis.com/auth/youtube.readonly"],
|
|
3445
|
+
redirectUri: config.redirectUri,
|
|
3446
|
+
config: {
|
|
3447
|
+
...config
|
|
3448
|
+
}
|
|
3449
|
+
};
|
|
3450
|
+
return {
|
|
3451
|
+
id: "youtube",
|
|
3452
|
+
tools: [...YOUTUBE_TOOLS],
|
|
3453
|
+
oauth,
|
|
3454
|
+
async onInit(_client) {
|
|
3455
|
+
console.log("YouTube integration initialized");
|
|
3456
|
+
},
|
|
3457
|
+
async onAfterConnect(_client) {
|
|
3458
|
+
console.log("YouTube integration connected");
|
|
3459
|
+
}
|
|
3460
|
+
};
|
|
3461
|
+
}
|
|
3462
|
+
var YOUTUBE_TOOLS;
|
|
3463
|
+
var init_youtube = __esm(() => {
|
|
3464
|
+
YOUTUBE_TOOLS = [
|
|
3465
|
+
"youtube_search",
|
|
3466
|
+
"youtube_get_video",
|
|
3467
|
+
"youtube_list_playlists",
|
|
3468
|
+
"youtube_get_playlist",
|
|
3469
|
+
"youtube_list_playlist_items",
|
|
3470
|
+
"youtube_get_channel",
|
|
3471
|
+
"youtube_list_subscriptions",
|
|
3472
|
+
"youtube_list_comments",
|
|
3473
|
+
"youtube_get_captions"
|
|
3474
|
+
];
|
|
3475
|
+
});
|
|
3476
|
+
|
|
3477
|
+
// src/integrations/cursor.ts
|
|
3478
|
+
function cursorIntegration(_config = {}) {
|
|
3479
|
+
return {
|
|
3480
|
+
id: "cursor",
|
|
3481
|
+
tools: [...CURSOR_TOOLS],
|
|
3482
|
+
async onInit(_client) {
|
|
3483
|
+
console.log("Cursor integration initialized");
|
|
3484
|
+
},
|
|
3485
|
+
async onAfterConnect(_client) {
|
|
3486
|
+
console.log("Cursor integration connected");
|
|
3487
|
+
}
|
|
3488
|
+
};
|
|
3489
|
+
}
|
|
3490
|
+
var CURSOR_TOOLS;
|
|
3491
|
+
var init_cursor = __esm(() => {
|
|
3492
|
+
CURSOR_TOOLS = [
|
|
3493
|
+
"cursor_list_agents",
|
|
3494
|
+
"cursor_get_agent",
|
|
3495
|
+
"cursor_get_conversation",
|
|
3496
|
+
"cursor_launch_agent",
|
|
3497
|
+
"cursor_followup_agent",
|
|
3498
|
+
"cursor_stop_agent",
|
|
3499
|
+
"cursor_delete_agent",
|
|
3500
|
+
"cursor_get_me",
|
|
3501
|
+
"cursor_list_models",
|
|
3502
|
+
"cursor_list_repositories"
|
|
3503
|
+
];
|
|
3504
|
+
});
|
|
3505
|
+
|
|
3062
3506
|
// src/integrations/generic.ts
|
|
3063
3507
|
function genericOAuthIntegration(config) {
|
|
3064
3508
|
const providerUpper = config.provider.toUpperCase().replace(/[^A-Z0-9]/g, "_");
|
|
@@ -7557,6 +8001,8 @@ var init_ai = __esm(() => {
|
|
|
7557
8001
|
var exports_server = {};
|
|
7558
8002
|
__export(exports_server, {
|
|
7559
8003
|
zendeskIntegration: () => zendeskIntegration,
|
|
8004
|
+
youtubeIntegration: () => youtubeIntegration,
|
|
8005
|
+
whatsappIntegration: () => whatsappIntegration,
|
|
7560
8006
|
vercelIntegration: () => vercelIntegration,
|
|
7561
8007
|
todoistIntegration: () => todoistIntegration,
|
|
7562
8008
|
toSvelteKitHandler: () => toSvelteKitHandler,
|
|
@@ -7565,11 +8011,17 @@ __export(exports_server, {
|
|
|
7565
8011
|
stripeIntegration: () => stripeIntegration,
|
|
7566
8012
|
storeCodeVerifier: () => storeCodeVerifier,
|
|
7567
8013
|
slackIntegration: () => slackIntegration,
|
|
8014
|
+
rampIntegration: () => rampIntegration,
|
|
8015
|
+
polarIntegration: () => polarIntegration,
|
|
7568
8016
|
outlookIntegration: () => outlookIntegration,
|
|
8017
|
+
onedriveIntegration: () => onedriveIntegration,
|
|
7569
8018
|
notionIntegration: () => notionIntegration,
|
|
7570
8019
|
linearIntegration: () => linearIntegration,
|
|
8020
|
+
intercomIntegration: () => intercomIntegration,
|
|
8021
|
+
hubspotIntegration: () => hubspotIntegration,
|
|
7571
8022
|
handleOpenAIResponse: () => handleOpenAIResponse,
|
|
7572
8023
|
handleAnthropicMessage: () => handleAnthropicMessage,
|
|
8024
|
+
gworkspaceIntegration: () => gworkspaceIntegration,
|
|
7573
8025
|
gmailIntegration: () => gmailIntegration,
|
|
7574
8026
|
githubIntegration: () => githubIntegration,
|
|
7575
8027
|
getVercelAITools: () => getVercelAITools,
|
|
@@ -7579,9 +8031,12 @@ __export(exports_server, {
|
|
|
7579
8031
|
getAnthropicTools: () => getAnthropicTools,
|
|
7580
8032
|
genericOAuthIntegration: () => genericOAuthIntegration,
|
|
7581
8033
|
gcalIntegration: () => gcalIntegration,
|
|
8034
|
+
figmaIntegration: () => figmaIntegration,
|
|
7582
8035
|
executeGoogleFunctionCalls: () => executeGoogleFunctionCalls,
|
|
8036
|
+
cursorIntegration: () => cursorIntegration,
|
|
7583
8037
|
createSimpleIntegration: () => createSimpleIntegration,
|
|
7584
8038
|
createMCPServer: () => createMCPServer,
|
|
8039
|
+
calcomIntegration: () => calcomIntegration,
|
|
7585
8040
|
airtableIntegration: () => airtableIntegration,
|
|
7586
8041
|
POST: () => POST,
|
|
7587
8042
|
GET: () => GET
|
|
@@ -8109,6 +8564,17 @@ var init_server = __esm(() => {
|
|
|
8109
8564
|
init_outlook();
|
|
8110
8565
|
init_airtable();
|
|
8111
8566
|
init_todoist();
|
|
8567
|
+
init_whatsapp();
|
|
8568
|
+
init_calcom();
|
|
8569
|
+
init_ramp();
|
|
8570
|
+
init_onedrive();
|
|
8571
|
+
init_gworkspace();
|
|
8572
|
+
init_polar();
|
|
8573
|
+
init_figma();
|
|
8574
|
+
init_intercom();
|
|
8575
|
+
init_hubspot();
|
|
8576
|
+
init_youtube();
|
|
8577
|
+
init_cursor();
|
|
8112
8578
|
init_generic();
|
|
8113
8579
|
init_vercel_ai();
|
|
8114
8580
|
init_openai();
|
|
@@ -8766,6 +9232,17 @@ init_gcal();
|
|
|
8766
9232
|
init_outlook();
|
|
8767
9233
|
init_airtable();
|
|
8768
9234
|
init_todoist();
|
|
9235
|
+
init_whatsapp();
|
|
9236
|
+
init_calcom();
|
|
9237
|
+
init_ramp();
|
|
9238
|
+
init_onedrive();
|
|
9239
|
+
init_gworkspace();
|
|
9240
|
+
init_polar();
|
|
9241
|
+
init_figma();
|
|
9242
|
+
init_intercom();
|
|
9243
|
+
init_hubspot();
|
|
9244
|
+
init_youtube();
|
|
9245
|
+
init_cursor();
|
|
8769
9246
|
init_generic();
|
|
8770
9247
|
init_messages();
|
|
8771
9248
|
init_http_session();
|
|
@@ -8802,6 +9279,8 @@ var client = createMCPClient({
|
|
|
8802
9279
|
});
|
|
8803
9280
|
export {
|
|
8804
9281
|
zendeskIntegration,
|
|
9282
|
+
youtubeIntegration,
|
|
9283
|
+
whatsappIntegration,
|
|
8805
9284
|
vercelIntegration,
|
|
8806
9285
|
todoistIntegration,
|
|
8807
9286
|
toWebRequest,
|
|
@@ -8812,14 +9291,20 @@ export {
|
|
|
8812
9291
|
stripeIntegration,
|
|
8813
9292
|
slackIntegration,
|
|
8814
9293
|
sendCallbackToOpener,
|
|
9294
|
+
rampIntegration,
|
|
9295
|
+
polarIntegration,
|
|
8815
9296
|
parseState,
|
|
8816
9297
|
parseServerError,
|
|
8817
9298
|
outlookIntegration,
|
|
9299
|
+
onedriveIntegration,
|
|
8818
9300
|
notionIntegration,
|
|
8819
9301
|
linearIntegration,
|
|
8820
9302
|
isTokenExpiredError,
|
|
8821
9303
|
isAuthorizationError,
|
|
8822
9304
|
isAuthError,
|
|
9305
|
+
intercomIntegration,
|
|
9306
|
+
hubspotIntegration,
|
|
9307
|
+
gworkspaceIntegration,
|
|
8823
9308
|
gmailIntegration,
|
|
8824
9309
|
githubIntegration,
|
|
8825
9310
|
genericOAuthIntegration,
|
|
@@ -8829,6 +9314,8 @@ export {
|
|
|
8829
9314
|
generateCodeChallenge,
|
|
8830
9315
|
gcalIntegration,
|
|
8831
9316
|
fromNodeHeaders,
|
|
9317
|
+
figmaIntegration,
|
|
9318
|
+
cursorIntegration,
|
|
8832
9319
|
createTanStackOAuthHandler,
|
|
8833
9320
|
createSimpleIntegration,
|
|
8834
9321
|
createOAuthRedirectHandler,
|
|
@@ -8836,6 +9323,7 @@ export {
|
|
|
8836
9323
|
createMCPClient,
|
|
8837
9324
|
client,
|
|
8838
9325
|
clearClientCache,
|
|
9326
|
+
calcomIntegration,
|
|
8839
9327
|
airtableIntegration,
|
|
8840
9328
|
ToolCallError,
|
|
8841
9329
|
TokenExpiredError,
|