@zapier/zapier-sdk 0.70.3 → 0.71.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/CHANGELOG.md +35 -0
- package/README.md +248 -95
- package/dist/api/approval-review-stream.d.ts +25 -0
- package/dist/api/approval-review-stream.d.ts.map +1 -0
- package/dist/api/approval-review-stream.js +104 -0
- package/dist/api/client.d.ts.map +1 -1
- package/dist/api/client.js +215 -27
- package/dist/api/types.d.ts +13 -3
- package/dist/api/types.d.ts.map +1 -1
- package/dist/constants.d.ts +1 -0
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +6 -0
- package/dist/experimental.cjs +702 -67
- package/dist/experimental.d.mts +242 -2
- package/dist/experimental.d.ts +240 -0
- package/dist/experimental.d.ts.map +1 -1
- package/dist/experimental.js +10 -0
- package/dist/experimental.mjs +702 -68
- package/dist/{index-rIzBEINC.d.mts → index-B43uST61.d.mts} +248 -10
- package/dist/{index-rIzBEINC.d.ts → index-B43uST61.d.ts} +248 -10
- package/dist/index.cjs +592 -32
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +592 -33
- package/dist/plugins/api/index.d.ts.map +1 -1
- package/dist/plugins/api/index.js +2 -1
- package/dist/plugins/codeSubstrate/deleteWorkflow/index.d.ts +9 -0
- package/dist/plugins/codeSubstrate/deleteWorkflow/index.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/disableWorkflow/index.d.ts +9 -0
- package/dist/plugins/codeSubstrate/disableWorkflow/index.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/enableWorkflow/index.d.ts +9 -0
- package/dist/plugins/codeSubstrate/enableWorkflow/index.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/getDurableRun/schemas.d.ts +5 -5
- package/dist/plugins/codeSubstrate/getTriggerRun/schemas.d.ts +1 -1
- package/dist/plugins/codeSubstrate/getWorkflow/index.d.ts +31 -0
- package/dist/plugins/codeSubstrate/getWorkflow/index.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/getWorkflow/schemas.d.ts +42 -0
- package/dist/plugins/codeSubstrate/getWorkflow/schemas.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/getWorkflow/schemas.js +20 -0
- package/dist/plugins/codeSubstrate/getWorkflowRun/index.d.ts +9 -0
- package/dist/plugins/codeSubstrate/getWorkflowRun/index.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/getWorkflowRun/schemas.d.ts +1 -1
- package/dist/plugins/codeSubstrate/getWorkflowVersion/index.d.ts +35 -0
- package/dist/plugins/codeSubstrate/getWorkflowVersion/index.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/getWorkflowVersion/schemas.d.ts +13 -0
- package/dist/plugins/codeSubstrate/getWorkflowVersion/schemas.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/getWorkflowVersion/schemas.js +10 -0
- package/dist/plugins/codeSubstrate/listDurableRuns/schemas.d.ts +3 -3
- package/dist/plugins/codeSubstrate/listWorkflowRuns/index.d.ts +9 -0
- package/dist/plugins/codeSubstrate/listWorkflowRuns/index.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/listWorkflowRuns/schemas.d.ts +3 -3
- package/dist/plugins/codeSubstrate/listWorkflowVersions/index.d.ts +22 -0
- package/dist/plugins/codeSubstrate/listWorkflowVersions/index.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/listWorkflowVersions/schemas.d.ts +26 -0
- package/dist/plugins/codeSubstrate/listWorkflowVersions/schemas.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/listWorkflowVersions/schemas.js +10 -0
- package/dist/plugins/codeSubstrate/listWorkflows/index.d.ts +9 -0
- package/dist/plugins/codeSubstrate/listWorkflows/index.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/listWorkflows/schemas.d.ts +32 -0
- package/dist/plugins/codeSubstrate/listWorkflows/schemas.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/listWorkflows/schemas.js +11 -0
- package/dist/plugins/codeSubstrate/publishWorkflowVersion/index.d.ts +22 -0
- package/dist/plugins/codeSubstrate/publishWorkflowVersion/index.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/publishWorkflowVersion/schemas.d.ts +14 -1
- package/dist/plugins/codeSubstrate/publishWorkflowVersion/schemas.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/publishWorkflowVersion/schemas.js +11 -44
- package/dist/plugins/codeSubstrate/runDurable/index.d.ts +6 -0
- package/dist/plugins/codeSubstrate/runDurable/index.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/runDurable/index.js +3 -0
- package/dist/plugins/codeSubstrate/runDurable/schemas.d.ts +12 -0
- package/dist/plugins/codeSubstrate/runDurable/schemas.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/runDurable/schemas.js +33 -0
- package/dist/plugins/codeSubstrate/shared-schemas.d.ts +37 -0
- package/dist/plugins/codeSubstrate/shared-schemas.d.ts.map +1 -0
- package/dist/plugins/codeSubstrate/shared-schemas.js +69 -0
- package/dist/plugins/codeSubstrate/triggerWorkflow/index.d.ts +9 -0
- package/dist/plugins/codeSubstrate/triggerWorkflow/index.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/updateWorkflow/index.d.ts +11 -0
- package/dist/plugins/codeSubstrate/updateWorkflow/index.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/updateWorkflow/schemas.d.ts +2 -0
- package/dist/plugins/codeSubstrate/updateWorkflow/schemas.d.ts.map +1 -1
- package/dist/plugins/codeSubstrate/updateWorkflow/schemas.js +7 -0
- package/dist/plugins/createConnection/index.d.ts +189 -0
- package/dist/plugins/createConnection/index.d.ts.map +1 -0
- package/dist/plugins/createConnection/index.js +71 -0
- package/dist/plugins/createConnection/schemas.d.ts +21 -0
- package/dist/plugins/createConnection/schemas.d.ts.map +1 -0
- package/dist/plugins/createConnection/schemas.js +38 -0
- package/dist/plugins/getConnectionStartUrl/index.d.ts +206 -0
- package/dist/plugins/getConnectionStartUrl/index.d.ts.map +1 -0
- package/dist/plugins/getConnectionStartUrl/index.js +39 -0
- package/dist/plugins/getConnectionStartUrl/schemas.d.ts +15 -0
- package/dist/plugins/getConnectionStartUrl/schemas.d.ts.map +1 -0
- package/dist/plugins/getConnectionStartUrl/schemas.js +23 -0
- package/dist/plugins/waitForNewConnection/index.d.ts +209 -0
- package/dist/plugins/waitForNewConnection/index.d.ts.map +1 -0
- package/dist/plugins/waitForNewConnection/index.js +75 -0
- package/dist/plugins/waitForNewConnection/schemas.d.ts +17 -0
- package/dist/plugins/waitForNewConnection/schemas.d.ts.map +1 -0
- package/dist/plugins/waitForNewConnection/schemas.js +39 -0
- package/dist/sdk.d.ts +126 -0
- package/dist/sdk.d.ts.map +1 -1
- package/dist/sdk.js +8 -0
- package/dist/types/errors.d.ts +13 -4
- package/dist/types/errors.d.ts.map +1 -1
- package/dist/types/errors.js +2 -0
- package/dist/types/sdk.d.ts +1 -0
- package/dist/types/sdk.d.ts.map +1 -1
- package/dist/types/sdk.js +5 -1
- package/dist/utils/open-url.d.ts.map +1 -1
- package/dist/utils/open-url.js +7 -0
- package/dist/utils/should-open-browser.d.ts +24 -0
- package/dist/utils/should-open-browser.d.ts.map +1 -0
- package/dist/utils/should-open-browser.js +55 -0
- package/package.json +1 -1
package/dist/experimental.d.ts
CHANGED
|
@@ -442,6 +442,48 @@ export declare function createZapierSdkStack(options?: ZapierSdkOptions): import
|
|
|
442
442
|
findUniqueConnection: PluginMeta<unknown>;
|
|
443
443
|
};
|
|
444
444
|
};
|
|
445
|
+
} & {
|
|
446
|
+
getConnectionStartUrl: (options?: {
|
|
447
|
+
app: string;
|
|
448
|
+
} | undefined) => Promise<{
|
|
449
|
+
data: import("./plugins/getConnectionStartUrl/schemas").GetConnectionStartUrlItem;
|
|
450
|
+
}>;
|
|
451
|
+
} & {
|
|
452
|
+
context: {
|
|
453
|
+
meta: {
|
|
454
|
+
getConnectionStartUrl: PluginMeta<unknown>;
|
|
455
|
+
};
|
|
456
|
+
};
|
|
457
|
+
} & {
|
|
458
|
+
waitForNewConnection: (options?: {
|
|
459
|
+
app: string;
|
|
460
|
+
startedAt: number;
|
|
461
|
+
timeoutMs?: number | undefined;
|
|
462
|
+
pollIntervalMs?: number | undefined;
|
|
463
|
+
} | undefined) => Promise<{
|
|
464
|
+
data: import("./plugins/waitForNewConnection/schemas").WaitForNewConnectionItem;
|
|
465
|
+
}>;
|
|
466
|
+
} & {
|
|
467
|
+
context: {
|
|
468
|
+
meta: {
|
|
469
|
+
waitForNewConnection: PluginMeta<unknown>;
|
|
470
|
+
};
|
|
471
|
+
};
|
|
472
|
+
} & {
|
|
473
|
+
createConnection: (options?: {
|
|
474
|
+
app: string;
|
|
475
|
+
browser: "never" | "auto" | "always";
|
|
476
|
+
timeoutMs?: number | undefined;
|
|
477
|
+
pollIntervalMs?: number | undefined;
|
|
478
|
+
} | undefined) => Promise<{
|
|
479
|
+
data: import("./plugins/createConnection/schemas").CreateConnectionItem;
|
|
480
|
+
}>;
|
|
481
|
+
} & {
|
|
482
|
+
context: {
|
|
483
|
+
meta: {
|
|
484
|
+
createConnection: PluginMeta<unknown>;
|
|
485
|
+
};
|
|
486
|
+
};
|
|
445
487
|
} & {
|
|
446
488
|
listActions: (options?: (({
|
|
447
489
|
app: string;
|
|
@@ -2552,7 +2594,16 @@ export declare function createZapierSdkStack(options?: ZapierSdkOptions): import
|
|
|
2552
2594
|
description: string | null;
|
|
2553
2595
|
trigger_url: string;
|
|
2554
2596
|
enabled: boolean;
|
|
2597
|
+
is_private: boolean;
|
|
2598
|
+
created_by_user_id: string | null;
|
|
2555
2599
|
current_version_id: string | null;
|
|
2600
|
+
triggers: {
|
|
2601
|
+
selected_api: string;
|
|
2602
|
+
action: string;
|
|
2603
|
+
status: "failed" | "pending" | "active" | "unclaimed" | "releasing" | "released";
|
|
2604
|
+
authentication_id?: string | null | undefined;
|
|
2605
|
+
params?: Record<string, unknown> | undefined;
|
|
2606
|
+
}[];
|
|
2556
2607
|
created_at: string;
|
|
2557
2608
|
updated_at: string;
|
|
2558
2609
|
}>;
|
|
@@ -2572,6 +2623,15 @@ export declare function createZapierSdkStack(options?: ZapierSdkOptions): import
|
|
|
2572
2623
|
description: string | null;
|
|
2573
2624
|
trigger_url: string;
|
|
2574
2625
|
enabled: boolean;
|
|
2626
|
+
is_private: boolean;
|
|
2627
|
+
created_by_user_id: string | null;
|
|
2628
|
+
triggers: {
|
|
2629
|
+
selected_api: string;
|
|
2630
|
+
action: string;
|
|
2631
|
+
status: "failed" | "pending" | "active" | "unclaimed" | "releasing" | "released";
|
|
2632
|
+
authentication_id?: string | null | undefined;
|
|
2633
|
+
params?: Record<string, unknown> | undefined;
|
|
2634
|
+
}[];
|
|
2575
2635
|
created_at: string;
|
|
2576
2636
|
updated_at: string;
|
|
2577
2637
|
current_version?: {
|
|
@@ -2582,6 +2642,19 @@ export declare function createZapierSdkStack(options?: ZapierSdkOptions): import
|
|
|
2582
2642
|
dependencies: Record<string, string> | null;
|
|
2583
2643
|
created_by_user_id: string;
|
|
2584
2644
|
created_at: string;
|
|
2645
|
+
trigger: {
|
|
2646
|
+
selected_api: string;
|
|
2647
|
+
action: string;
|
|
2648
|
+
authentication_id?: string | null | undefined;
|
|
2649
|
+
params?: Record<string, unknown> | undefined;
|
|
2650
|
+
} | null;
|
|
2651
|
+
connections: Record<string, {
|
|
2652
|
+
connection_id: string | number;
|
|
2653
|
+
}> | null;
|
|
2654
|
+
app_versions: Record<string, {
|
|
2655
|
+
implementation_name: string;
|
|
2656
|
+
version?: string | undefined;
|
|
2657
|
+
}> | null;
|
|
2585
2658
|
} | undefined;
|
|
2586
2659
|
};
|
|
2587
2660
|
}>;
|
|
@@ -2626,6 +2699,8 @@ export declare function createZapierSdkStack(options?: ZapierSdkOptions): import
|
|
|
2626
2699
|
description: string | null;
|
|
2627
2700
|
trigger_url: string;
|
|
2628
2701
|
enabled: boolean;
|
|
2702
|
+
is_private: boolean;
|
|
2703
|
+
created_by_user_id: string | null;
|
|
2629
2704
|
created_at: string;
|
|
2630
2705
|
updated_at: string;
|
|
2631
2706
|
};
|
|
@@ -2788,6 +2863,12 @@ export declare function createZapierSdkStack(options?: ZapierSdkOptions): import
|
|
|
2788
2863
|
version?: string | undefined;
|
|
2789
2864
|
}> | undefined;
|
|
2790
2865
|
private?: boolean | undefined;
|
|
2866
|
+
notifications?: {
|
|
2867
|
+
url: string;
|
|
2868
|
+
events: ("error" | "started" | "cancelled" | "completed" | "progress")[];
|
|
2869
|
+
type?: "webhook" | undefined;
|
|
2870
|
+
max_retries?: number | undefined;
|
|
2871
|
+
}[] | undefined;
|
|
2791
2872
|
} | undefined) => Promise<{
|
|
2792
2873
|
data: {
|
|
2793
2874
|
id: string;
|
|
@@ -2846,6 +2927,19 @@ export declare function createZapierSdkStack(options?: ZapierSdkOptions): import
|
|
|
2846
2927
|
dependencies: Record<string, string> | null;
|
|
2847
2928
|
created_by_user_id: string;
|
|
2848
2929
|
created_at: string;
|
|
2930
|
+
trigger: {
|
|
2931
|
+
selected_api: string;
|
|
2932
|
+
action: string;
|
|
2933
|
+
authentication_id?: string | null | undefined;
|
|
2934
|
+
params?: Record<string, unknown> | undefined;
|
|
2935
|
+
} | null;
|
|
2936
|
+
connections: Record<string, {
|
|
2937
|
+
connection_id: string | number;
|
|
2938
|
+
}> | null;
|
|
2939
|
+
app_versions: Record<string, {
|
|
2940
|
+
implementation_name: string;
|
|
2941
|
+
version?: string | undefined;
|
|
2942
|
+
}> | null;
|
|
2849
2943
|
};
|
|
2850
2944
|
}>;
|
|
2851
2945
|
} & {
|
|
@@ -2871,6 +2965,19 @@ export declare function createZapierSdkStack(options?: ZapierSdkOptions): import
|
|
|
2871
2965
|
dependencies: Record<string, string> | null;
|
|
2872
2966
|
created_by_user_id: string;
|
|
2873
2967
|
created_at: string;
|
|
2968
|
+
trigger: {
|
|
2969
|
+
selected_api: string;
|
|
2970
|
+
action: string;
|
|
2971
|
+
authentication_id?: string | null | undefined;
|
|
2972
|
+
params?: Record<string, unknown> | undefined;
|
|
2973
|
+
} | null;
|
|
2974
|
+
connections: Record<string, {
|
|
2975
|
+
connection_id: string | number;
|
|
2976
|
+
}> | null;
|
|
2977
|
+
app_versions: Record<string, {
|
|
2978
|
+
implementation_name: string;
|
|
2979
|
+
version?: string | undefined;
|
|
2980
|
+
}> | null;
|
|
2874
2981
|
}>;
|
|
2875
2982
|
} & {
|
|
2876
2983
|
context: {
|
|
@@ -2891,6 +2998,19 @@ export declare function createZapierSdkStack(options?: ZapierSdkOptions): import
|
|
|
2891
2998
|
dependencies: Record<string, string> | null;
|
|
2892
2999
|
created_by_user_id: string;
|
|
2893
3000
|
created_at: string;
|
|
3001
|
+
trigger: {
|
|
3002
|
+
selected_api: string;
|
|
3003
|
+
action: string;
|
|
3004
|
+
authentication_id?: string | null | undefined;
|
|
3005
|
+
params?: Record<string, unknown> | undefined;
|
|
3006
|
+
} | null;
|
|
3007
|
+
connections: Record<string, {
|
|
3008
|
+
connection_id: string | number;
|
|
3009
|
+
}> | null;
|
|
3010
|
+
app_versions: Record<string, {
|
|
3011
|
+
implementation_name: string;
|
|
3012
|
+
version?: string | undefined;
|
|
3013
|
+
}> | null;
|
|
2894
3014
|
};
|
|
2895
3015
|
}>;
|
|
2896
3016
|
} & {
|
|
@@ -3447,6 +3567,48 @@ export declare function createZapierSdk(options?: ZapierSdkOptions): import("kit
|
|
|
3447
3567
|
findUniqueConnection: PluginMeta<unknown>;
|
|
3448
3568
|
};
|
|
3449
3569
|
};
|
|
3570
|
+
} & {
|
|
3571
|
+
getConnectionStartUrl: (options?: {
|
|
3572
|
+
app: string;
|
|
3573
|
+
} | undefined) => Promise<{
|
|
3574
|
+
data: import("./plugins/getConnectionStartUrl/schemas").GetConnectionStartUrlItem;
|
|
3575
|
+
}>;
|
|
3576
|
+
} & {
|
|
3577
|
+
context: {
|
|
3578
|
+
meta: {
|
|
3579
|
+
getConnectionStartUrl: PluginMeta<unknown>;
|
|
3580
|
+
};
|
|
3581
|
+
};
|
|
3582
|
+
} & {
|
|
3583
|
+
waitForNewConnection: (options?: {
|
|
3584
|
+
app: string;
|
|
3585
|
+
startedAt: number;
|
|
3586
|
+
timeoutMs?: number | undefined;
|
|
3587
|
+
pollIntervalMs?: number | undefined;
|
|
3588
|
+
} | undefined) => Promise<{
|
|
3589
|
+
data: import("./plugins/waitForNewConnection/schemas").WaitForNewConnectionItem;
|
|
3590
|
+
}>;
|
|
3591
|
+
} & {
|
|
3592
|
+
context: {
|
|
3593
|
+
meta: {
|
|
3594
|
+
waitForNewConnection: PluginMeta<unknown>;
|
|
3595
|
+
};
|
|
3596
|
+
};
|
|
3597
|
+
} & {
|
|
3598
|
+
createConnection: (options?: {
|
|
3599
|
+
app: string;
|
|
3600
|
+
browser: "never" | "auto" | "always";
|
|
3601
|
+
timeoutMs?: number | undefined;
|
|
3602
|
+
pollIntervalMs?: number | undefined;
|
|
3603
|
+
} | undefined) => Promise<{
|
|
3604
|
+
data: import("./plugins/createConnection/schemas").CreateConnectionItem;
|
|
3605
|
+
}>;
|
|
3606
|
+
} & {
|
|
3607
|
+
context: {
|
|
3608
|
+
meta: {
|
|
3609
|
+
createConnection: PluginMeta<unknown>;
|
|
3610
|
+
};
|
|
3611
|
+
};
|
|
3450
3612
|
} & {
|
|
3451
3613
|
listActions: (options?: (({
|
|
3452
3614
|
app: string;
|
|
@@ -5557,7 +5719,16 @@ export declare function createZapierSdk(options?: ZapierSdkOptions): import("kit
|
|
|
5557
5719
|
description: string | null;
|
|
5558
5720
|
trigger_url: string;
|
|
5559
5721
|
enabled: boolean;
|
|
5722
|
+
is_private: boolean;
|
|
5723
|
+
created_by_user_id: string | null;
|
|
5560
5724
|
current_version_id: string | null;
|
|
5725
|
+
triggers: {
|
|
5726
|
+
selected_api: string;
|
|
5727
|
+
action: string;
|
|
5728
|
+
status: "failed" | "pending" | "active" | "unclaimed" | "releasing" | "released";
|
|
5729
|
+
authentication_id?: string | null | undefined;
|
|
5730
|
+
params?: Record<string, unknown> | undefined;
|
|
5731
|
+
}[];
|
|
5561
5732
|
created_at: string;
|
|
5562
5733
|
updated_at: string;
|
|
5563
5734
|
}>;
|
|
@@ -5577,6 +5748,15 @@ export declare function createZapierSdk(options?: ZapierSdkOptions): import("kit
|
|
|
5577
5748
|
description: string | null;
|
|
5578
5749
|
trigger_url: string;
|
|
5579
5750
|
enabled: boolean;
|
|
5751
|
+
is_private: boolean;
|
|
5752
|
+
created_by_user_id: string | null;
|
|
5753
|
+
triggers: {
|
|
5754
|
+
selected_api: string;
|
|
5755
|
+
action: string;
|
|
5756
|
+
status: "failed" | "pending" | "active" | "unclaimed" | "releasing" | "released";
|
|
5757
|
+
authentication_id?: string | null | undefined;
|
|
5758
|
+
params?: Record<string, unknown> | undefined;
|
|
5759
|
+
}[];
|
|
5580
5760
|
created_at: string;
|
|
5581
5761
|
updated_at: string;
|
|
5582
5762
|
current_version?: {
|
|
@@ -5587,6 +5767,19 @@ export declare function createZapierSdk(options?: ZapierSdkOptions): import("kit
|
|
|
5587
5767
|
dependencies: Record<string, string> | null;
|
|
5588
5768
|
created_by_user_id: string;
|
|
5589
5769
|
created_at: string;
|
|
5770
|
+
trigger: {
|
|
5771
|
+
selected_api: string;
|
|
5772
|
+
action: string;
|
|
5773
|
+
authentication_id?: string | null | undefined;
|
|
5774
|
+
params?: Record<string, unknown> | undefined;
|
|
5775
|
+
} | null;
|
|
5776
|
+
connections: Record<string, {
|
|
5777
|
+
connection_id: string | number;
|
|
5778
|
+
}> | null;
|
|
5779
|
+
app_versions: Record<string, {
|
|
5780
|
+
implementation_name: string;
|
|
5781
|
+
version?: string | undefined;
|
|
5782
|
+
}> | null;
|
|
5590
5783
|
} | undefined;
|
|
5591
5784
|
};
|
|
5592
5785
|
}>;
|
|
@@ -5631,6 +5824,8 @@ export declare function createZapierSdk(options?: ZapierSdkOptions): import("kit
|
|
|
5631
5824
|
description: string | null;
|
|
5632
5825
|
trigger_url: string;
|
|
5633
5826
|
enabled: boolean;
|
|
5827
|
+
is_private: boolean;
|
|
5828
|
+
created_by_user_id: string | null;
|
|
5634
5829
|
created_at: string;
|
|
5635
5830
|
updated_at: string;
|
|
5636
5831
|
};
|
|
@@ -5793,6 +5988,12 @@ export declare function createZapierSdk(options?: ZapierSdkOptions): import("kit
|
|
|
5793
5988
|
version?: string | undefined;
|
|
5794
5989
|
}> | undefined;
|
|
5795
5990
|
private?: boolean | undefined;
|
|
5991
|
+
notifications?: {
|
|
5992
|
+
url: string;
|
|
5993
|
+
events: ("error" | "started" | "cancelled" | "completed" | "progress")[];
|
|
5994
|
+
type?: "webhook" | undefined;
|
|
5995
|
+
max_retries?: number | undefined;
|
|
5996
|
+
}[] | undefined;
|
|
5796
5997
|
} | undefined) => Promise<{
|
|
5797
5998
|
data: {
|
|
5798
5999
|
id: string;
|
|
@@ -5851,6 +6052,19 @@ export declare function createZapierSdk(options?: ZapierSdkOptions): import("kit
|
|
|
5851
6052
|
dependencies: Record<string, string> | null;
|
|
5852
6053
|
created_by_user_id: string;
|
|
5853
6054
|
created_at: string;
|
|
6055
|
+
trigger: {
|
|
6056
|
+
selected_api: string;
|
|
6057
|
+
action: string;
|
|
6058
|
+
authentication_id?: string | null | undefined;
|
|
6059
|
+
params?: Record<string, unknown> | undefined;
|
|
6060
|
+
} | null;
|
|
6061
|
+
connections: Record<string, {
|
|
6062
|
+
connection_id: string | number;
|
|
6063
|
+
}> | null;
|
|
6064
|
+
app_versions: Record<string, {
|
|
6065
|
+
implementation_name: string;
|
|
6066
|
+
version?: string | undefined;
|
|
6067
|
+
}> | null;
|
|
5854
6068
|
};
|
|
5855
6069
|
}>;
|
|
5856
6070
|
} & {
|
|
@@ -5876,6 +6090,19 @@ export declare function createZapierSdk(options?: ZapierSdkOptions): import("kit
|
|
|
5876
6090
|
dependencies: Record<string, string> | null;
|
|
5877
6091
|
created_by_user_id: string;
|
|
5878
6092
|
created_at: string;
|
|
6093
|
+
trigger: {
|
|
6094
|
+
selected_api: string;
|
|
6095
|
+
action: string;
|
|
6096
|
+
authentication_id?: string | null | undefined;
|
|
6097
|
+
params?: Record<string, unknown> | undefined;
|
|
6098
|
+
} | null;
|
|
6099
|
+
connections: Record<string, {
|
|
6100
|
+
connection_id: string | number;
|
|
6101
|
+
}> | null;
|
|
6102
|
+
app_versions: Record<string, {
|
|
6103
|
+
implementation_name: string;
|
|
6104
|
+
version?: string | undefined;
|
|
6105
|
+
}> | null;
|
|
5879
6106
|
}>;
|
|
5880
6107
|
} & {
|
|
5881
6108
|
context: {
|
|
@@ -5896,6 +6123,19 @@ export declare function createZapierSdk(options?: ZapierSdkOptions): import("kit
|
|
|
5896
6123
|
dependencies: Record<string, string> | null;
|
|
5897
6124
|
created_by_user_id: string;
|
|
5898
6125
|
created_at: string;
|
|
6126
|
+
trigger: {
|
|
6127
|
+
selected_api: string;
|
|
6128
|
+
action: string;
|
|
6129
|
+
authentication_id?: string | null | undefined;
|
|
6130
|
+
params?: Record<string, unknown> | undefined;
|
|
6131
|
+
} | null;
|
|
6132
|
+
connections: Record<string, {
|
|
6133
|
+
connection_id: string | number;
|
|
6134
|
+
}> | null;
|
|
6135
|
+
app_versions: Record<string, {
|
|
6136
|
+
implementation_name: string;
|
|
6137
|
+
version?: string | undefined;
|
|
6138
|
+
}> | null;
|
|
5899
6139
|
};
|
|
5900
6140
|
}>;
|
|
5901
6141
|
} & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"experimental.d.ts","sourceRoot":"","sources":["../src/experimental.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"experimental.d.ts","sourceRoot":"","sources":["../src/experimental.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAhBhhD;AASD,MAAM,WAAW,SAAU,SAAQ,UAAU,CAAC,OAAO,eAAe,CAAC;CAAG;AAMxE,YAAY,EAAE,UAAU,EAAE,CAAC"}
|
package/dist/experimental.js
CHANGED
|
@@ -35,6 +35,9 @@ import { listConnectionsPlugin } from "./plugins/listConnections";
|
|
|
35
35
|
import { getConnectionPlugin } from "./plugins/getConnection";
|
|
36
36
|
import { findFirstConnectionPlugin } from "./plugins/findFirstConnection";
|
|
37
37
|
import { findUniqueConnectionPlugin } from "./plugins/findUniqueConnection";
|
|
38
|
+
import { getConnectionStartUrlPlugin } from "./plugins/getConnectionStartUrl";
|
|
39
|
+
import { waitForNewConnectionPlugin } from "./plugins/waitForNewConnection";
|
|
40
|
+
import { createConnectionPlugin } from "./plugins/createConnection";
|
|
38
41
|
import { listAuthenticationsPlugin, getAuthenticationPlugin, findFirstAuthenticationPlugin, findUniqueAuthenticationPlugin, } from "./plugins/deprecated/authentications";
|
|
39
42
|
import { listClientCredentialsPlugin } from "./plugins/listClientCredentials";
|
|
40
43
|
import { createClientCredentialsPlugin } from "./plugins/createClientCredentials";
|
|
@@ -129,6 +132,13 @@ export function createZapierSdkStack(options = {}) {
|
|
|
129
132
|
.use(getConnectionPlugin)
|
|
130
133
|
.use(findFirstConnectionPlugin)
|
|
131
134
|
.use(findUniqueConnectionPlugin)
|
|
135
|
+
// Connection creation. `createConnection` composes the two low-level
|
|
136
|
+
// methods at runtime, so register them first. (Stable — also
|
|
137
|
+
// registered in the stable factory; kept here to preserve the
|
|
138
|
+
// full-literal-copy parity enforced by experimental-shape.test.ts.)
|
|
139
|
+
.use(getConnectionStartUrlPlugin)
|
|
140
|
+
.use(waitForNewConnectionPlugin)
|
|
141
|
+
.use(createConnectionPlugin)
|
|
132
142
|
// Actions / fields
|
|
133
143
|
.use(listActionsPlugin)
|
|
134
144
|
.use(getActionPlugin)
|