integrate-sdk 0.8.30-dev.0 → 0.8.31-dev.0
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 +435 -0
- package/dist/adapters/index.js +435 -0
- package/dist/adapters/nextjs.js +435 -0
- package/dist/adapters/node.js +435 -0
- package/dist/adapters/svelte-kit.js +435 -0
- package/dist/adapters/tanstack-start.js +435 -0
- package/dist/index.js +455 -0
- package/dist/oauth.js +435 -0
- package/dist/server.js +445 -0
- package/dist/src/client.d.ts +11 -1
- package/dist/src/client.d.ts.map +1 -1
- package/dist/src/index.d.ts +20 -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/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 +10 -0
- package/dist/src/server.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3059,6 +3059,421 @@ 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
|
+
|
|
3062
3477
|
// src/integrations/generic.ts
|
|
3063
3478
|
function genericOAuthIntegration(config) {
|
|
3064
3479
|
const providerUpper = config.provider.toUpperCase().replace(/[^A-Z0-9]/g, "_");
|
|
@@ -7557,6 +7972,8 @@ var init_ai = __esm(() => {
|
|
|
7557
7972
|
var exports_server = {};
|
|
7558
7973
|
__export(exports_server, {
|
|
7559
7974
|
zendeskIntegration: () => zendeskIntegration,
|
|
7975
|
+
youtubeIntegration: () => youtubeIntegration,
|
|
7976
|
+
whatsappIntegration: () => whatsappIntegration,
|
|
7560
7977
|
vercelIntegration: () => vercelIntegration,
|
|
7561
7978
|
todoistIntegration: () => todoistIntegration,
|
|
7562
7979
|
toSvelteKitHandler: () => toSvelteKitHandler,
|
|
@@ -7565,11 +7982,17 @@ __export(exports_server, {
|
|
|
7565
7982
|
stripeIntegration: () => stripeIntegration,
|
|
7566
7983
|
storeCodeVerifier: () => storeCodeVerifier,
|
|
7567
7984
|
slackIntegration: () => slackIntegration,
|
|
7985
|
+
rampIntegration: () => rampIntegration,
|
|
7986
|
+
polarIntegration: () => polarIntegration,
|
|
7568
7987
|
outlookIntegration: () => outlookIntegration,
|
|
7988
|
+
onedriveIntegration: () => onedriveIntegration,
|
|
7569
7989
|
notionIntegration: () => notionIntegration,
|
|
7570
7990
|
linearIntegration: () => linearIntegration,
|
|
7991
|
+
intercomIntegration: () => intercomIntegration,
|
|
7992
|
+
hubspotIntegration: () => hubspotIntegration,
|
|
7571
7993
|
handleOpenAIResponse: () => handleOpenAIResponse,
|
|
7572
7994
|
handleAnthropicMessage: () => handleAnthropicMessage,
|
|
7995
|
+
gworkspaceIntegration: () => gworkspaceIntegration,
|
|
7573
7996
|
gmailIntegration: () => gmailIntegration,
|
|
7574
7997
|
githubIntegration: () => githubIntegration,
|
|
7575
7998
|
getVercelAITools: () => getVercelAITools,
|
|
@@ -7579,9 +8002,11 @@ __export(exports_server, {
|
|
|
7579
8002
|
getAnthropicTools: () => getAnthropicTools,
|
|
7580
8003
|
genericOAuthIntegration: () => genericOAuthIntegration,
|
|
7581
8004
|
gcalIntegration: () => gcalIntegration,
|
|
8005
|
+
figmaIntegration: () => figmaIntegration,
|
|
7582
8006
|
executeGoogleFunctionCalls: () => executeGoogleFunctionCalls,
|
|
7583
8007
|
createSimpleIntegration: () => createSimpleIntegration,
|
|
7584
8008
|
createMCPServer: () => createMCPServer,
|
|
8009
|
+
calcomIntegration: () => calcomIntegration,
|
|
7585
8010
|
airtableIntegration: () => airtableIntegration,
|
|
7586
8011
|
POST: () => POST,
|
|
7587
8012
|
GET: () => GET
|
|
@@ -8109,6 +8534,16 @@ var init_server = __esm(() => {
|
|
|
8109
8534
|
init_outlook();
|
|
8110
8535
|
init_airtable();
|
|
8111
8536
|
init_todoist();
|
|
8537
|
+
init_whatsapp();
|
|
8538
|
+
init_calcom();
|
|
8539
|
+
init_ramp();
|
|
8540
|
+
init_onedrive();
|
|
8541
|
+
init_gworkspace();
|
|
8542
|
+
init_polar();
|
|
8543
|
+
init_figma();
|
|
8544
|
+
init_intercom();
|
|
8545
|
+
init_hubspot();
|
|
8546
|
+
init_youtube();
|
|
8112
8547
|
init_generic();
|
|
8113
8548
|
init_vercel_ai();
|
|
8114
8549
|
init_openai();
|
|
@@ -8766,6 +9201,16 @@ init_gcal();
|
|
|
8766
9201
|
init_outlook();
|
|
8767
9202
|
init_airtable();
|
|
8768
9203
|
init_todoist();
|
|
9204
|
+
init_whatsapp();
|
|
9205
|
+
init_calcom();
|
|
9206
|
+
init_ramp();
|
|
9207
|
+
init_onedrive();
|
|
9208
|
+
init_gworkspace();
|
|
9209
|
+
init_polar();
|
|
9210
|
+
init_figma();
|
|
9211
|
+
init_intercom();
|
|
9212
|
+
init_hubspot();
|
|
9213
|
+
init_youtube();
|
|
8769
9214
|
init_generic();
|
|
8770
9215
|
init_messages();
|
|
8771
9216
|
init_http_session();
|
|
@@ -8802,6 +9247,8 @@ var client = createMCPClient({
|
|
|
8802
9247
|
});
|
|
8803
9248
|
export {
|
|
8804
9249
|
zendeskIntegration,
|
|
9250
|
+
youtubeIntegration,
|
|
9251
|
+
whatsappIntegration,
|
|
8805
9252
|
vercelIntegration,
|
|
8806
9253
|
todoistIntegration,
|
|
8807
9254
|
toWebRequest,
|
|
@@ -8812,14 +9259,20 @@ export {
|
|
|
8812
9259
|
stripeIntegration,
|
|
8813
9260
|
slackIntegration,
|
|
8814
9261
|
sendCallbackToOpener,
|
|
9262
|
+
rampIntegration,
|
|
9263
|
+
polarIntegration,
|
|
8815
9264
|
parseState,
|
|
8816
9265
|
parseServerError,
|
|
8817
9266
|
outlookIntegration,
|
|
9267
|
+
onedriveIntegration,
|
|
8818
9268
|
notionIntegration,
|
|
8819
9269
|
linearIntegration,
|
|
8820
9270
|
isTokenExpiredError,
|
|
8821
9271
|
isAuthorizationError,
|
|
8822
9272
|
isAuthError,
|
|
9273
|
+
intercomIntegration,
|
|
9274
|
+
hubspotIntegration,
|
|
9275
|
+
gworkspaceIntegration,
|
|
8823
9276
|
gmailIntegration,
|
|
8824
9277
|
githubIntegration,
|
|
8825
9278
|
genericOAuthIntegration,
|
|
@@ -8829,6 +9282,7 @@ export {
|
|
|
8829
9282
|
generateCodeChallenge,
|
|
8830
9283
|
gcalIntegration,
|
|
8831
9284
|
fromNodeHeaders,
|
|
9285
|
+
figmaIntegration,
|
|
8832
9286
|
createTanStackOAuthHandler,
|
|
8833
9287
|
createSimpleIntegration,
|
|
8834
9288
|
createOAuthRedirectHandler,
|
|
@@ -8836,6 +9290,7 @@ export {
|
|
|
8836
9290
|
createMCPClient,
|
|
8837
9291
|
client,
|
|
8838
9292
|
clearClientCache,
|
|
9293
|
+
calcomIntegration,
|
|
8839
9294
|
airtableIntegration,
|
|
8840
9295
|
ToolCallError,
|
|
8841
9296
|
TokenExpiredError,
|