@zapier/zapier-sdk 0.121.0 → 0.122.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 +14 -0
- package/README.md +26 -26
- package/dist/beta.cjs +287 -287
- package/dist/beta.d.mts +116 -116
- package/dist/beta.d.ts +116 -116
- package/dist/beta.mjs +2 -2
- package/dist/{chunk-C7DJO3NC.cjs → chunk-5H5J5AKU.cjs} +1 -1
- package/dist/{chunk-KHOLWDHF.cjs → chunk-AUBIZWYI.cjs} +104 -104
- package/dist/{chunk-FEGI2THT.mjs → chunk-FYLZ2LZO.mjs} +1 -1
- package/dist/{chunk-UGG7545M.mjs → chunk-PHEZB6T2.mjs} +17 -17
- package/dist/experimental.cjs +321 -321
- package/dist/experimental.d.mts +170 -170
- package/dist/experimental.d.ts +170 -170
- package/dist/experimental.mjs +7 -7
- package/dist/{index-CThNTXl2.d.mts → index-BnMxdUcw.d.mts} +2 -2
- package/dist/{index-CThNTXl2.d.ts → index-BnMxdUcw.d.ts} +2 -2
- package/dist/index.cjs +281 -281
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +3 -3
|
@@ -2842,7 +2842,7 @@ function logRouteOverride({
|
|
|
2842
2842
|
}
|
|
2843
2843
|
|
|
2844
2844
|
// src/sdk-version.ts
|
|
2845
|
-
var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.
|
|
2845
|
+
var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.122.0" : void 0) || "unknown";
|
|
2846
2846
|
|
|
2847
2847
|
// src/utils/open-url.ts
|
|
2848
2848
|
var nodePrefix = "node:";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { taxonomy, DEFAULT_PAGE_SIZE, apiPluginRef, workflowIdResolver, extractErrorDetail, ZapierApiError, durableRunIdResolver, ZapierConflictError, workflowVersionIdResolver, workflowDraftIdResolver, workflowRunIdResolver, workflowDraftRevisionResolver, isZapierNotFoundError, ZapierTimeoutError, zapierSdkPlugin, SDK_VERSION, ZapierValidationError, sleep, zapierCoreOptions, SDK_OPTIONS_ID } from './chunk-
|
|
1
|
+
import { taxonomy, DEFAULT_PAGE_SIZE, apiPluginRef, workflowIdResolver, extractErrorDetail, ZapierApiError, durableRunIdResolver, ZapierConflictError, workflowVersionIdResolver, workflowDraftIdResolver, workflowRunIdResolver, workflowDraftRevisionResolver, isZapierNotFoundError, ZapierTimeoutError, zapierSdkPlugin, SDK_VERSION, ZapierValidationError, sleep, zapierCoreOptions, SDK_OPTIONS_ID } from './chunk-FYLZ2LZO.mjs';
|
|
2
2
|
import { defineMethod, openEnum, defineResolver, definePlugin, createSdk, CORE_OPTIONS_ID } from '@zapier/kitcore';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
|
|
@@ -787,8 +787,8 @@ var RunErrorSchema = z.object({
|
|
|
787
787
|
var RunItemSchema = z.object({
|
|
788
788
|
id: z.string().describe("Run ID (UUID)"),
|
|
789
789
|
status: RunStatusSchema,
|
|
790
|
-
input: z.unknown().describe("Input data passed to the run"),
|
|
791
|
-
output: z.unknown().nullable().describe("Return value, present when status is `finished`"),
|
|
790
|
+
input: z.unknown().optional().describe("Input data passed to the run"),
|
|
791
|
+
output: z.unknown().nullable().optional().describe("Return value, present when status is `finished`"),
|
|
792
792
|
error: RunErrorSchema.nullable().describe(
|
|
793
793
|
"Structured error details when the run failed (null otherwise)"
|
|
794
794
|
),
|
|
@@ -901,7 +901,7 @@ var ExecutionSummarySchema = z.object({
|
|
|
901
901
|
id: z.string().describe("Execution ID (UUID)"),
|
|
902
902
|
name: z.string().describe("Durable function name"),
|
|
903
903
|
status: ExecutionStatusSchema,
|
|
904
|
-
input: z.unknown().describe("Input passed when the execution was created"),
|
|
904
|
+
input: z.unknown().optional().describe("Input passed when the execution was created"),
|
|
905
905
|
output: z.unknown().optional().describe("Return value when status is `completed`"),
|
|
906
906
|
error: z.unknown().optional().describe("Error details when status is `failed`"),
|
|
907
907
|
metadata: z.record(z.string(), z.unknown()).optional().describe(
|
|
@@ -934,8 +934,8 @@ var GetDurableRunOptionsSchema = z.object({
|
|
|
934
934
|
var GetDurableRunResponseSchema = z.object({
|
|
935
935
|
id: z.string().describe("Run ID (UUID)"),
|
|
936
936
|
status: RunStatusSchema,
|
|
937
|
-
input: z.unknown().describe("Input data passed to the run"),
|
|
938
|
-
output: z.unknown().nullable().describe("Return value, present when status is `finished`"),
|
|
937
|
+
input: z.unknown().optional().describe("Input data passed to the run"),
|
|
938
|
+
output: z.unknown().nullable().optional().describe("Return value, present when status is `finished`"),
|
|
939
939
|
error: RunErrorSchema.nullable().describe(
|
|
940
940
|
"Structured error details when the run failed (null otherwise)"
|
|
941
941
|
),
|
|
@@ -1892,8 +1892,8 @@ var workflowRunListItemBase = z.object({
|
|
|
1892
1892
|
"Linked code-substrate-runner run ID. Null until the durable run is created."
|
|
1893
1893
|
),
|
|
1894
1894
|
status: WorkflowRunStatusSchema,
|
|
1895
|
-
input: z.unknown().describe("Input passed to the run"),
|
|
1896
|
-
error: z.unknown().nullable().describe("Error payload when status is `failed` (null otherwise)"),
|
|
1895
|
+
input: z.unknown().optional().describe("Input passed to the run"),
|
|
1896
|
+
error: z.unknown().nullable().optional().describe("Error payload when status is `failed` (null otherwise)"),
|
|
1897
1897
|
created_at: z.string().describe("When the run was created (ISO-8601)"),
|
|
1898
1898
|
updated_at: z.string().describe("When the run was last updated (ISO-8601)")
|
|
1899
1899
|
});
|
|
@@ -1959,9 +1959,9 @@ var workflowRunBase = z.object({
|
|
|
1959
1959
|
"Linked code-substrate-runner run ID. Null until the durable run is created."
|
|
1960
1960
|
),
|
|
1961
1961
|
status: WorkflowRunStatusSchema,
|
|
1962
|
-
input: z.unknown().describe("Input passed to the run"),
|
|
1963
|
-
output: z.unknown().nullable().describe("Return value, present when status is `finished`"),
|
|
1964
|
-
error: z.unknown().nullable().describe("Error payload when status is `failed` (null otherwise)"),
|
|
1962
|
+
input: z.unknown().optional().describe("Input passed to the run"),
|
|
1963
|
+
output: z.unknown().nullable().optional().describe("Return value, present when status is `finished`"),
|
|
1964
|
+
error: z.unknown().nullable().optional().describe("Error payload when status is `failed` (null otherwise)"),
|
|
1965
1965
|
created_at: z.string().describe("When the run was created (ISO-8601)"),
|
|
1966
1966
|
updated_at: z.string().describe("When the run was last updated (ISO-8601)")
|
|
1967
1967
|
});
|
|
@@ -2045,9 +2045,9 @@ var RunWorkflowDraftResponseSchema = z.object({
|
|
|
2045
2045
|
),
|
|
2046
2046
|
draft_revision: z.number().int().describe("The draft's revision at the moment this run was created."),
|
|
2047
2047
|
status: WorkflowRunStatusSchema,
|
|
2048
|
-
input: z.unknown().describe("Input passed to the run"),
|
|
2049
|
-
output: z.unknown().nullable().describe("Return value, present when status is `finished`"),
|
|
2050
|
-
error: z.unknown().nullable().describe("Error payload when status is `failed` (null otherwise)"),
|
|
2048
|
+
input: z.unknown().optional().describe("Input passed to the run"),
|
|
2049
|
+
output: z.unknown().nullable().optional().describe("Return value, present when status is `finished`"),
|
|
2050
|
+
error: z.unknown().nullable().optional().describe("Error payload when status is `failed` (null otherwise)"),
|
|
2051
2051
|
created_at: z.string().describe("When the run was created (ISO-8601)"),
|
|
2052
2052
|
updated_at: z.string().describe("When the run was last updated (ISO-8601)")
|
|
2053
2053
|
});
|
|
@@ -2164,9 +2164,9 @@ var GetTriggerRunResponseSchema = z.object({
|
|
|
2164
2164
|
),
|
|
2165
2165
|
workflow_version_id: z.string().nullable().describe("Workflow version the run is bound to"),
|
|
2166
2166
|
status: WorkflowRunStatusSchema,
|
|
2167
|
-
input: z.unknown().describe("Input passed to the run"),
|
|
2168
|
-
output: z.unknown().nullable().describe("Return value, present when status is `finished`"),
|
|
2169
|
-
error: z.unknown().nullable().describe("Error payload when status is `failed` (null otherwise)"),
|
|
2167
|
+
input: z.unknown().optional().describe("Input passed to the run"),
|
|
2168
|
+
output: z.unknown().nullable().optional().describe("Return value, present when status is `finished`"),
|
|
2169
|
+
error: z.unknown().nullable().optional().describe("Error payload when status is `failed` (null otherwise)"),
|
|
2170
2170
|
created_at: z.string().describe("When the run was created (ISO-8601)"),
|
|
2171
2171
|
updated_at: z.string().describe("When the run was last updated (ISO-8601)")
|
|
2172
2172
|
});
|