integrate-sdk 0.8.70-dev.0 → 0.8.73-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 +88 -9
- package/dist/adapters/base-handler.d.ts.map +1 -1
- package/dist/adapters/index.js +88 -9
- package/dist/adapters/nextjs.js +88 -9
- package/dist/adapters/node.js +88 -9
- package/dist/adapters/svelte-kit.js +88 -9
- package/dist/adapters/tanstack-start.js +88 -9
- package/dist/index.js +88 -9
- package/dist/oauth.js +88 -9
- package/dist/server.js +88 -9
- package/dist/src/adapters/base-handler.d.ts.map +1 -1
- package/dist/src/integrations/linear-client.d.ts +416 -87
- package/dist/src/integrations/linear-client.d.ts.map +1 -1
- package/dist/src/integrations/linear.d.ts +2 -2
- package/dist/src/integrations/linear.d.ts.map +1 -1
- package/dist/src/integrations/polar-client.d.ts +303 -69
- package/dist/src/integrations/polar-client.d.ts.map +1 -1
- package/dist/src/integrations/polar.d.ts +2 -2
- package/dist/src/integrations/polar.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -2859,7 +2859,7 @@ function linearIntegration(config = {}) {
|
|
|
2859
2859
|
provider: "linear",
|
|
2860
2860
|
clientId: config.clientId ?? getEnv("LINEAR_CLIENT_ID"),
|
|
2861
2861
|
clientSecret: config.clientSecret ?? getEnv("LINEAR_CLIENT_SECRET"),
|
|
2862
|
-
scopes: config.scopes || ["read", "write", "issues:create"],
|
|
2862
|
+
scopes: config.scopes || ["read", "write", "issues:create", "comments:create"],
|
|
2863
2863
|
redirectUri: config.redirectUri,
|
|
2864
2864
|
config: {
|
|
2865
2865
|
...config
|
|
@@ -2888,11 +2888,35 @@ var init_linear = __esm(() => {
|
|
|
2888
2888
|
"linear_list_issues",
|
|
2889
2889
|
"linear_get_issue",
|
|
2890
2890
|
"linear_update_issue",
|
|
2891
|
-
"
|
|
2892
|
-
"
|
|
2891
|
+
"linear_archive_issue",
|
|
2892
|
+
"linear_delete_issue",
|
|
2893
|
+
"linear_search_issues",
|
|
2893
2894
|
"linear_add_comment",
|
|
2895
|
+
"linear_list_users",
|
|
2896
|
+
"linear_get_user",
|
|
2897
|
+
"linear_list_teams",
|
|
2898
|
+
"linear_list_workflow_states",
|
|
2899
|
+
"linear_create_workflow_state",
|
|
2900
|
+
"linear_list_projects",
|
|
2901
|
+
"linear_get_project",
|
|
2902
|
+
"linear_create_project",
|
|
2903
|
+
"linear_update_project",
|
|
2904
|
+
"linear_list_cycles",
|
|
2905
|
+
"linear_get_cycle",
|
|
2906
|
+
"linear_create_cycle",
|
|
2907
|
+
"linear_update_cycle",
|
|
2894
2908
|
"linear_list_labels",
|
|
2895
|
-
"
|
|
2909
|
+
"linear_create_issue_relation",
|
|
2910
|
+
"linear_delete_issue_relation",
|
|
2911
|
+
"linear_list_documents",
|
|
2912
|
+
"linear_get_document",
|
|
2913
|
+
"linear_create_document",
|
|
2914
|
+
"linear_update_document",
|
|
2915
|
+
"linear_list_initiatives",
|
|
2916
|
+
"linear_get_initiative",
|
|
2917
|
+
"linear_create_initiative",
|
|
2918
|
+
"linear_create_attachment",
|
|
2919
|
+
"linear_create_project_update"
|
|
2896
2920
|
];
|
|
2897
2921
|
});
|
|
2898
2922
|
|
|
@@ -3499,11 +3523,29 @@ function polarIntegration(config = {}) {
|
|
|
3499
3523
|
provider: "polar",
|
|
3500
3524
|
clientId: config.clientId ?? getEnv("POLAR_CLIENT_ID"),
|
|
3501
3525
|
clientSecret: config.clientSecret ?? getEnv("POLAR_CLIENT_SECRET"),
|
|
3502
|
-
scopes: config.scopes || [
|
|
3526
|
+
scopes: config.scopes || [
|
|
3527
|
+
"openid",
|
|
3528
|
+
"products:read",
|
|
3529
|
+
"products:write",
|
|
3530
|
+
"subscriptions:read",
|
|
3531
|
+
"subscriptions:write",
|
|
3532
|
+
"customers:read",
|
|
3533
|
+
"customers:write",
|
|
3534
|
+
"orders:read",
|
|
3535
|
+
"benefits:read",
|
|
3536
|
+
"benefits:write",
|
|
3537
|
+
"license_keys:read",
|
|
3538
|
+
"license_keys:write",
|
|
3539
|
+
"checkout_links:read",
|
|
3540
|
+
"checkout_links:write",
|
|
3541
|
+
"discounts:read",
|
|
3542
|
+
"discounts:write",
|
|
3543
|
+
"metrics:read",
|
|
3544
|
+
"organizations:read"
|
|
3545
|
+
],
|
|
3503
3546
|
redirectUri: config.redirectUri,
|
|
3504
3547
|
config: {
|
|
3505
|
-
apiBaseUrl: config.apiBaseUrl || "https://api.polar.sh"
|
|
3506
|
-
...config
|
|
3548
|
+
apiBaseUrl: config.apiBaseUrl || "https://api.polar.sh"
|
|
3507
3549
|
}
|
|
3508
3550
|
};
|
|
3509
3551
|
return {
|
|
@@ -3527,13 +3569,39 @@ var init_polar = __esm(() => {
|
|
|
3527
3569
|
POLAR_TOOLS = [
|
|
3528
3570
|
"polar_list_products",
|
|
3529
3571
|
"polar_get_product",
|
|
3572
|
+
"polar_create_product",
|
|
3573
|
+
"polar_update_product",
|
|
3530
3574
|
"polar_list_subscriptions",
|
|
3531
3575
|
"polar_get_subscription",
|
|
3576
|
+
"polar_update_subscription",
|
|
3577
|
+
"polar_revoke_subscription",
|
|
3532
3578
|
"polar_list_customers",
|
|
3533
3579
|
"polar_get_customer",
|
|
3580
|
+
"polar_create_customer",
|
|
3581
|
+
"polar_update_customer",
|
|
3582
|
+
"polar_delete_customer",
|
|
3583
|
+
"polar_get_customer_state",
|
|
3534
3584
|
"polar_list_orders",
|
|
3535
3585
|
"polar_get_order",
|
|
3536
|
-
"
|
|
3586
|
+
"polar_get_order_invoice",
|
|
3587
|
+
"polar_list_benefits",
|
|
3588
|
+
"polar_get_benefit",
|
|
3589
|
+
"polar_create_benefit",
|
|
3590
|
+
"polar_update_benefit",
|
|
3591
|
+
"polar_list_discounts",
|
|
3592
|
+
"polar_get_discount",
|
|
3593
|
+
"polar_create_discount",
|
|
3594
|
+
"polar_delete_discount",
|
|
3595
|
+
"polar_list_checkout_links",
|
|
3596
|
+
"polar_get_checkout_link",
|
|
3597
|
+
"polar_create_checkout_link",
|
|
3598
|
+
"polar_list_license_keys",
|
|
3599
|
+
"polar_get_license_key",
|
|
3600
|
+
"polar_validate_license_key",
|
|
3601
|
+
"polar_activate_license_key",
|
|
3602
|
+
"polar_get_metrics",
|
|
3603
|
+
"polar_list_organizations",
|
|
3604
|
+
"polar_get_organization"
|
|
3537
3605
|
];
|
|
3538
3606
|
});
|
|
3539
3607
|
|
|
@@ -11487,9 +11555,20 @@ class OAuthHandler {
|
|
|
11487
11555
|
if (redirectUri) {
|
|
11488
11556
|
url.searchParams.set("redirect_uri", redirectUri);
|
|
11489
11557
|
}
|
|
11558
|
+
const OAUTH_FIELDS = new Set([
|
|
11559
|
+
"clientId",
|
|
11560
|
+
"clientSecret",
|
|
11561
|
+
"scopes",
|
|
11562
|
+
"redirectUri",
|
|
11563
|
+
"client_id",
|
|
11564
|
+
"client_secret",
|
|
11565
|
+
"scope",
|
|
11566
|
+
"redirect_uri",
|
|
11567
|
+
"provider"
|
|
11568
|
+
]);
|
|
11490
11569
|
if (providerConfig.config) {
|
|
11491
11570
|
for (const [key, value] of Object.entries(providerConfig.config)) {
|
|
11492
|
-
if (value !== undefined && value !== null) {
|
|
11571
|
+
if (value !== undefined && value !== null && !OAUTH_FIELDS.has(key)) {
|
|
11493
11572
|
url.searchParams.set(key, String(value));
|
|
11494
11573
|
}
|
|
11495
11574
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base-handler.d.ts","sourceRoot":"","sources":["../../../src/adapters/base-handler.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAc3D;;;GAGG;AACH,MAAM,WAAW,kBAAkB;IACjC,uCAAuC;IACvC,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE;QACxB,iDAAiD;QACjD,QAAQ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ration(config = {}) {
|
|
|
2859
2859
|
provider: "linear",
|
|
2860
2860
|
clientId: config.clientId ?? getEnv("LINEAR_CLIENT_ID"),
|
|
2861
2861
|
clientSecret: config.clientSecret ?? getEnv("LINEAR_CLIENT_SECRET"),
|
|
2862
|
-
scopes: config.scopes || ["read", "write", "issues:create"],
|
|
2862
|
+
scopes: config.scopes || ["read", "write", "issues:create", "comments:create"],
|
|
2863
2863
|
redirectUri: config.redirectUri,
|
|
2864
2864
|
config: {
|
|
2865
2865
|
...config
|
|
@@ -2888,11 +2888,35 @@ var init_linear = __esm(() => {
|
|
|
2888
2888
|
"linear_list_issues",
|
|
2889
2889
|
"linear_get_issue",
|
|
2890
2890
|
"linear_update_issue",
|
|
2891
|
-
"
|
|
2892
|
-
"
|
|
2891
|
+
"linear_archive_issue",
|
|
2892
|
+
"linear_delete_issue",
|
|
2893
|
+
"linear_search_issues",
|
|
2893
2894
|
"linear_add_comment",
|
|
2895
|
+
"linear_list_users",
|
|
2896
|
+
"linear_get_user",
|
|
2897
|
+
"linear_list_teams",
|
|
2898
|
+
"linear_list_workflow_states",
|
|
2899
|
+
"linear_create_workflow_state",
|
|
2900
|
+
"linear_list_projects",
|
|
2901
|
+
"linear_get_project",
|
|
2902
|
+
"linear_create_project",
|
|
2903
|
+
"linear_update_project",
|
|
2904
|
+
"linear_list_cycles",
|
|
2905
|
+
"linear_get_cycle",
|
|
2906
|
+
"linear_create_cycle",
|
|
2907
|
+
"linear_update_cycle",
|
|
2894
2908
|
"linear_list_labels",
|
|
2895
|
-
"
|
|
2909
|
+
"linear_create_issue_relation",
|
|
2910
|
+
"linear_delete_issue_relation",
|
|
2911
|
+
"linear_list_documents",
|
|
2912
|
+
"linear_get_document",
|
|
2913
|
+
"linear_create_document",
|
|
2914
|
+
"linear_update_document",
|
|
2915
|
+
"linear_list_initiatives",
|
|
2916
|
+
"linear_get_initiative",
|
|
2917
|
+
"linear_create_initiative",
|
|
2918
|
+
"linear_create_attachment",
|
|
2919
|
+
"linear_create_project_update"
|
|
2896
2920
|
];
|
|
2897
2921
|
});
|
|
2898
2922
|
|
|
@@ -3499,11 +3523,29 @@ function polarIntegration(config = {}) {
|
|
|
3499
3523
|
provider: "polar",
|
|
3500
3524
|
clientId: config.clientId ?? getEnv("POLAR_CLIENT_ID"),
|
|
3501
3525
|
clientSecret: config.clientSecret ?? getEnv("POLAR_CLIENT_SECRET"),
|
|
3502
|
-
scopes: config.scopes || [
|
|
3526
|
+
scopes: config.scopes || [
|
|
3527
|
+
"openid",
|
|
3528
|
+
"products:read",
|
|
3529
|
+
"products:write",
|
|
3530
|
+
"subscriptions:read",
|
|
3531
|
+
"subscriptions:write",
|
|
3532
|
+
"customers:read",
|
|
3533
|
+
"customers:write",
|
|
3534
|
+
"orders:read",
|
|
3535
|
+
"benefits:read",
|
|
3536
|
+
"benefits:write",
|
|
3537
|
+
"license_keys:read",
|
|
3538
|
+
"license_keys:write",
|
|
3539
|
+
"checkout_links:read",
|
|
3540
|
+
"checkout_links:write",
|
|
3541
|
+
"discounts:read",
|
|
3542
|
+
"discounts:write",
|
|
3543
|
+
"metrics:read",
|
|
3544
|
+
"organizations:read"
|
|
3545
|
+
],
|
|
3503
3546
|
redirectUri: config.redirectUri,
|
|
3504
3547
|
config: {
|
|
3505
|
-
apiBaseUrl: config.apiBaseUrl || "https://api.polar.sh"
|
|
3506
|
-
...config
|
|
3548
|
+
apiBaseUrl: config.apiBaseUrl || "https://api.polar.sh"
|
|
3507
3549
|
}
|
|
3508
3550
|
};
|
|
3509
3551
|
return {
|
|
@@ -3527,13 +3569,39 @@ var init_polar = __esm(() => {
|
|
|
3527
3569
|
POLAR_TOOLS = [
|
|
3528
3570
|
"polar_list_products",
|
|
3529
3571
|
"polar_get_product",
|
|
3572
|
+
"polar_create_product",
|
|
3573
|
+
"polar_update_product",
|
|
3530
3574
|
"polar_list_subscriptions",
|
|
3531
3575
|
"polar_get_subscription",
|
|
3576
|
+
"polar_update_subscription",
|
|
3577
|
+
"polar_revoke_subscription",
|
|
3532
3578
|
"polar_list_customers",
|
|
3533
3579
|
"polar_get_customer",
|
|
3580
|
+
"polar_create_customer",
|
|
3581
|
+
"polar_update_customer",
|
|
3582
|
+
"polar_delete_customer",
|
|
3583
|
+
"polar_get_customer_state",
|
|
3534
3584
|
"polar_list_orders",
|
|
3535
3585
|
"polar_get_order",
|
|
3536
|
-
"
|
|
3586
|
+
"polar_get_order_invoice",
|
|
3587
|
+
"polar_list_benefits",
|
|
3588
|
+
"polar_get_benefit",
|
|
3589
|
+
"polar_create_benefit",
|
|
3590
|
+
"polar_update_benefit",
|
|
3591
|
+
"polar_list_discounts",
|
|
3592
|
+
"polar_get_discount",
|
|
3593
|
+
"polar_create_discount",
|
|
3594
|
+
"polar_delete_discount",
|
|
3595
|
+
"polar_list_checkout_links",
|
|
3596
|
+
"polar_get_checkout_link",
|
|
3597
|
+
"polar_create_checkout_link",
|
|
3598
|
+
"polar_list_license_keys",
|
|
3599
|
+
"polar_get_license_key",
|
|
3600
|
+
"polar_validate_license_key",
|
|
3601
|
+
"polar_activate_license_key",
|
|
3602
|
+
"polar_get_metrics",
|
|
3603
|
+
"polar_list_organizations",
|
|
3604
|
+
"polar_get_organization"
|
|
3537
3605
|
];
|
|
3538
3606
|
});
|
|
3539
3607
|
|
|
@@ -11487,9 +11555,20 @@ class OAuthHandler {
|
|
|
11487
11555
|
if (redirectUri) {
|
|
11488
11556
|
url.searchParams.set("redirect_uri", redirectUri);
|
|
11489
11557
|
}
|
|
11558
|
+
const OAUTH_FIELDS = new Set([
|
|
11559
|
+
"clientId",
|
|
11560
|
+
"clientSecret",
|
|
11561
|
+
"scopes",
|
|
11562
|
+
"redirectUri",
|
|
11563
|
+
"client_id",
|
|
11564
|
+
"client_secret",
|
|
11565
|
+
"scope",
|
|
11566
|
+
"redirect_uri",
|
|
11567
|
+
"provider"
|
|
11568
|
+
]);
|
|
11490
11569
|
if (providerConfig.config) {
|
|
11491
11570
|
for (const [key, value] of Object.entries(providerConfig.config)) {
|
|
11492
|
-
if (value !== undefined && value !== null) {
|
|
11571
|
+
if (value !== undefined && value !== null && !OAUTH_FIELDS.has(key)) {
|
|
11493
11572
|
url.searchParams.set(key, String(value));
|
|
11494
11573
|
}
|
|
11495
11574
|
}
|
package/dist/adapters/nextjs.js
CHANGED
|
@@ -2859,7 +2859,7 @@ function linearIntegration(config = {}) {
|
|
|
2859
2859
|
provider: "linear",
|
|
2860
2860
|
clientId: config.clientId ?? getEnv("LINEAR_CLIENT_ID"),
|
|
2861
2861
|
clientSecret: config.clientSecret ?? getEnv("LINEAR_CLIENT_SECRET"),
|
|
2862
|
-
scopes: config.scopes || ["read", "write", "issues:create"],
|
|
2862
|
+
scopes: config.scopes || ["read", "write", "issues:create", "comments:create"],
|
|
2863
2863
|
redirectUri: config.redirectUri,
|
|
2864
2864
|
config: {
|
|
2865
2865
|
...config
|
|
@@ -2888,11 +2888,35 @@ var init_linear = __esm(() => {
|
|
|
2888
2888
|
"linear_list_issues",
|
|
2889
2889
|
"linear_get_issue",
|
|
2890
2890
|
"linear_update_issue",
|
|
2891
|
-
"
|
|
2892
|
-
"
|
|
2891
|
+
"linear_archive_issue",
|
|
2892
|
+
"linear_delete_issue",
|
|
2893
|
+
"linear_search_issues",
|
|
2893
2894
|
"linear_add_comment",
|
|
2895
|
+
"linear_list_users",
|
|
2896
|
+
"linear_get_user",
|
|
2897
|
+
"linear_list_teams",
|
|
2898
|
+
"linear_list_workflow_states",
|
|
2899
|
+
"linear_create_workflow_state",
|
|
2900
|
+
"linear_list_projects",
|
|
2901
|
+
"linear_get_project",
|
|
2902
|
+
"linear_create_project",
|
|
2903
|
+
"linear_update_project",
|
|
2904
|
+
"linear_list_cycles",
|
|
2905
|
+
"linear_get_cycle",
|
|
2906
|
+
"linear_create_cycle",
|
|
2907
|
+
"linear_update_cycle",
|
|
2894
2908
|
"linear_list_labels",
|
|
2895
|
-
"
|
|
2909
|
+
"linear_create_issue_relation",
|
|
2910
|
+
"linear_delete_issue_relation",
|
|
2911
|
+
"linear_list_documents",
|
|
2912
|
+
"linear_get_document",
|
|
2913
|
+
"linear_create_document",
|
|
2914
|
+
"linear_update_document",
|
|
2915
|
+
"linear_list_initiatives",
|
|
2916
|
+
"linear_get_initiative",
|
|
2917
|
+
"linear_create_initiative",
|
|
2918
|
+
"linear_create_attachment",
|
|
2919
|
+
"linear_create_project_update"
|
|
2896
2920
|
];
|
|
2897
2921
|
});
|
|
2898
2922
|
|
|
@@ -3499,11 +3523,29 @@ function polarIntegration(config = {}) {
|
|
|
3499
3523
|
provider: "polar",
|
|
3500
3524
|
clientId: config.clientId ?? getEnv("POLAR_CLIENT_ID"),
|
|
3501
3525
|
clientSecret: config.clientSecret ?? getEnv("POLAR_CLIENT_SECRET"),
|
|
3502
|
-
scopes: config.scopes || [
|
|
3526
|
+
scopes: config.scopes || [
|
|
3527
|
+
"openid",
|
|
3528
|
+
"products:read",
|
|
3529
|
+
"products:write",
|
|
3530
|
+
"subscriptions:read",
|
|
3531
|
+
"subscriptions:write",
|
|
3532
|
+
"customers:read",
|
|
3533
|
+
"customers:write",
|
|
3534
|
+
"orders:read",
|
|
3535
|
+
"benefits:read",
|
|
3536
|
+
"benefits:write",
|
|
3537
|
+
"license_keys:read",
|
|
3538
|
+
"license_keys:write",
|
|
3539
|
+
"checkout_links:read",
|
|
3540
|
+
"checkout_links:write",
|
|
3541
|
+
"discounts:read",
|
|
3542
|
+
"discounts:write",
|
|
3543
|
+
"metrics:read",
|
|
3544
|
+
"organizations:read"
|
|
3545
|
+
],
|
|
3503
3546
|
redirectUri: config.redirectUri,
|
|
3504
3547
|
config: {
|
|
3505
|
-
apiBaseUrl: config.apiBaseUrl || "https://api.polar.sh"
|
|
3506
|
-
...config
|
|
3548
|
+
apiBaseUrl: config.apiBaseUrl || "https://api.polar.sh"
|
|
3507
3549
|
}
|
|
3508
3550
|
};
|
|
3509
3551
|
return {
|
|
@@ -3527,13 +3569,39 @@ var init_polar = __esm(() => {
|
|
|
3527
3569
|
POLAR_TOOLS = [
|
|
3528
3570
|
"polar_list_products",
|
|
3529
3571
|
"polar_get_product",
|
|
3572
|
+
"polar_create_product",
|
|
3573
|
+
"polar_update_product",
|
|
3530
3574
|
"polar_list_subscriptions",
|
|
3531
3575
|
"polar_get_subscription",
|
|
3576
|
+
"polar_update_subscription",
|
|
3577
|
+
"polar_revoke_subscription",
|
|
3532
3578
|
"polar_list_customers",
|
|
3533
3579
|
"polar_get_customer",
|
|
3580
|
+
"polar_create_customer",
|
|
3581
|
+
"polar_update_customer",
|
|
3582
|
+
"polar_delete_customer",
|
|
3583
|
+
"polar_get_customer_state",
|
|
3534
3584
|
"polar_list_orders",
|
|
3535
3585
|
"polar_get_order",
|
|
3536
|
-
"
|
|
3586
|
+
"polar_get_order_invoice",
|
|
3587
|
+
"polar_list_benefits",
|
|
3588
|
+
"polar_get_benefit",
|
|
3589
|
+
"polar_create_benefit",
|
|
3590
|
+
"polar_update_benefit",
|
|
3591
|
+
"polar_list_discounts",
|
|
3592
|
+
"polar_get_discount",
|
|
3593
|
+
"polar_create_discount",
|
|
3594
|
+
"polar_delete_discount",
|
|
3595
|
+
"polar_list_checkout_links",
|
|
3596
|
+
"polar_get_checkout_link",
|
|
3597
|
+
"polar_create_checkout_link",
|
|
3598
|
+
"polar_list_license_keys",
|
|
3599
|
+
"polar_get_license_key",
|
|
3600
|
+
"polar_validate_license_key",
|
|
3601
|
+
"polar_activate_license_key",
|
|
3602
|
+
"polar_get_metrics",
|
|
3603
|
+
"polar_list_organizations",
|
|
3604
|
+
"polar_get_organization"
|
|
3537
3605
|
];
|
|
3538
3606
|
});
|
|
3539
3607
|
|
|
@@ -11487,9 +11555,20 @@ class OAuthHandler {
|
|
|
11487
11555
|
if (redirectUri) {
|
|
11488
11556
|
url.searchParams.set("redirect_uri", redirectUri);
|
|
11489
11557
|
}
|
|
11558
|
+
const OAUTH_FIELDS = new Set([
|
|
11559
|
+
"clientId",
|
|
11560
|
+
"clientSecret",
|
|
11561
|
+
"scopes",
|
|
11562
|
+
"redirectUri",
|
|
11563
|
+
"client_id",
|
|
11564
|
+
"client_secret",
|
|
11565
|
+
"scope",
|
|
11566
|
+
"redirect_uri",
|
|
11567
|
+
"provider"
|
|
11568
|
+
]);
|
|
11490
11569
|
if (providerConfig.config) {
|
|
11491
11570
|
for (const [key, value] of Object.entries(providerConfig.config)) {
|
|
11492
|
-
if (value !== undefined && value !== null) {
|
|
11571
|
+
if (value !== undefined && value !== null && !OAUTH_FIELDS.has(key)) {
|
|
11493
11572
|
url.searchParams.set(key, String(value));
|
|
11494
11573
|
}
|
|
11495
11574
|
}
|
package/dist/adapters/node.js
CHANGED
|
@@ -2859,7 +2859,7 @@ function linearIntegration(config = {}) {
|
|
|
2859
2859
|
provider: "linear",
|
|
2860
2860
|
clientId: config.clientId ?? getEnv("LINEAR_CLIENT_ID"),
|
|
2861
2861
|
clientSecret: config.clientSecret ?? getEnv("LINEAR_CLIENT_SECRET"),
|
|
2862
|
-
scopes: config.scopes || ["read", "write", "issues:create"],
|
|
2862
|
+
scopes: config.scopes || ["read", "write", "issues:create", "comments:create"],
|
|
2863
2863
|
redirectUri: config.redirectUri,
|
|
2864
2864
|
config: {
|
|
2865
2865
|
...config
|
|
@@ -2888,11 +2888,35 @@ var init_linear = __esm(() => {
|
|
|
2888
2888
|
"linear_list_issues",
|
|
2889
2889
|
"linear_get_issue",
|
|
2890
2890
|
"linear_update_issue",
|
|
2891
|
-
"
|
|
2892
|
-
"
|
|
2891
|
+
"linear_archive_issue",
|
|
2892
|
+
"linear_delete_issue",
|
|
2893
|
+
"linear_search_issues",
|
|
2893
2894
|
"linear_add_comment",
|
|
2895
|
+
"linear_list_users",
|
|
2896
|
+
"linear_get_user",
|
|
2897
|
+
"linear_list_teams",
|
|
2898
|
+
"linear_list_workflow_states",
|
|
2899
|
+
"linear_create_workflow_state",
|
|
2900
|
+
"linear_list_projects",
|
|
2901
|
+
"linear_get_project",
|
|
2902
|
+
"linear_create_project",
|
|
2903
|
+
"linear_update_project",
|
|
2904
|
+
"linear_list_cycles",
|
|
2905
|
+
"linear_get_cycle",
|
|
2906
|
+
"linear_create_cycle",
|
|
2907
|
+
"linear_update_cycle",
|
|
2894
2908
|
"linear_list_labels",
|
|
2895
|
-
"
|
|
2909
|
+
"linear_create_issue_relation",
|
|
2910
|
+
"linear_delete_issue_relation",
|
|
2911
|
+
"linear_list_documents",
|
|
2912
|
+
"linear_get_document",
|
|
2913
|
+
"linear_create_document",
|
|
2914
|
+
"linear_update_document",
|
|
2915
|
+
"linear_list_initiatives",
|
|
2916
|
+
"linear_get_initiative",
|
|
2917
|
+
"linear_create_initiative",
|
|
2918
|
+
"linear_create_attachment",
|
|
2919
|
+
"linear_create_project_update"
|
|
2896
2920
|
];
|
|
2897
2921
|
});
|
|
2898
2922
|
|
|
@@ -3499,11 +3523,29 @@ function polarIntegration(config = {}) {
|
|
|
3499
3523
|
provider: "polar",
|
|
3500
3524
|
clientId: config.clientId ?? getEnv("POLAR_CLIENT_ID"),
|
|
3501
3525
|
clientSecret: config.clientSecret ?? getEnv("POLAR_CLIENT_SECRET"),
|
|
3502
|
-
scopes: config.scopes || [
|
|
3526
|
+
scopes: config.scopes || [
|
|
3527
|
+
"openid",
|
|
3528
|
+
"products:read",
|
|
3529
|
+
"products:write",
|
|
3530
|
+
"subscriptions:read",
|
|
3531
|
+
"subscriptions:write",
|
|
3532
|
+
"customers:read",
|
|
3533
|
+
"customers:write",
|
|
3534
|
+
"orders:read",
|
|
3535
|
+
"benefits:read",
|
|
3536
|
+
"benefits:write",
|
|
3537
|
+
"license_keys:read",
|
|
3538
|
+
"license_keys:write",
|
|
3539
|
+
"checkout_links:read",
|
|
3540
|
+
"checkout_links:write",
|
|
3541
|
+
"discounts:read",
|
|
3542
|
+
"discounts:write",
|
|
3543
|
+
"metrics:read",
|
|
3544
|
+
"organizations:read"
|
|
3545
|
+
],
|
|
3503
3546
|
redirectUri: config.redirectUri,
|
|
3504
3547
|
config: {
|
|
3505
|
-
apiBaseUrl: config.apiBaseUrl || "https://api.polar.sh"
|
|
3506
|
-
...config
|
|
3548
|
+
apiBaseUrl: config.apiBaseUrl || "https://api.polar.sh"
|
|
3507
3549
|
}
|
|
3508
3550
|
};
|
|
3509
3551
|
return {
|
|
@@ -3527,13 +3569,39 @@ var init_polar = __esm(() => {
|
|
|
3527
3569
|
POLAR_TOOLS = [
|
|
3528
3570
|
"polar_list_products",
|
|
3529
3571
|
"polar_get_product",
|
|
3572
|
+
"polar_create_product",
|
|
3573
|
+
"polar_update_product",
|
|
3530
3574
|
"polar_list_subscriptions",
|
|
3531
3575
|
"polar_get_subscription",
|
|
3576
|
+
"polar_update_subscription",
|
|
3577
|
+
"polar_revoke_subscription",
|
|
3532
3578
|
"polar_list_customers",
|
|
3533
3579
|
"polar_get_customer",
|
|
3580
|
+
"polar_create_customer",
|
|
3581
|
+
"polar_update_customer",
|
|
3582
|
+
"polar_delete_customer",
|
|
3583
|
+
"polar_get_customer_state",
|
|
3534
3584
|
"polar_list_orders",
|
|
3535
3585
|
"polar_get_order",
|
|
3536
|
-
"
|
|
3586
|
+
"polar_get_order_invoice",
|
|
3587
|
+
"polar_list_benefits",
|
|
3588
|
+
"polar_get_benefit",
|
|
3589
|
+
"polar_create_benefit",
|
|
3590
|
+
"polar_update_benefit",
|
|
3591
|
+
"polar_list_discounts",
|
|
3592
|
+
"polar_get_discount",
|
|
3593
|
+
"polar_create_discount",
|
|
3594
|
+
"polar_delete_discount",
|
|
3595
|
+
"polar_list_checkout_links",
|
|
3596
|
+
"polar_get_checkout_link",
|
|
3597
|
+
"polar_create_checkout_link",
|
|
3598
|
+
"polar_list_license_keys",
|
|
3599
|
+
"polar_get_license_key",
|
|
3600
|
+
"polar_validate_license_key",
|
|
3601
|
+
"polar_activate_license_key",
|
|
3602
|
+
"polar_get_metrics",
|
|
3603
|
+
"polar_list_organizations",
|
|
3604
|
+
"polar_get_organization"
|
|
3537
3605
|
];
|
|
3538
3606
|
});
|
|
3539
3607
|
|
|
@@ -11487,9 +11555,20 @@ class OAuthHandler {
|
|
|
11487
11555
|
if (redirectUri) {
|
|
11488
11556
|
url.searchParams.set("redirect_uri", redirectUri);
|
|
11489
11557
|
}
|
|
11558
|
+
const OAUTH_FIELDS = new Set([
|
|
11559
|
+
"clientId",
|
|
11560
|
+
"clientSecret",
|
|
11561
|
+
"scopes",
|
|
11562
|
+
"redirectUri",
|
|
11563
|
+
"client_id",
|
|
11564
|
+
"client_secret",
|
|
11565
|
+
"scope",
|
|
11566
|
+
"redirect_uri",
|
|
11567
|
+
"provider"
|
|
11568
|
+
]);
|
|
11490
11569
|
if (providerConfig.config) {
|
|
11491
11570
|
for (const [key, value] of Object.entries(providerConfig.config)) {
|
|
11492
|
-
if (value !== undefined && value !== null) {
|
|
11571
|
+
if (value !== undefined && value !== null && !OAUTH_FIELDS.has(key)) {
|
|
11493
11572
|
url.searchParams.set(key, String(value));
|
|
11494
11573
|
}
|
|
11495
11574
|
}
|