@zapier/zapier-sdk 0.121.0 → 0.122.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.
@@ -2843,7 +2843,7 @@ function logRouteOverride({
2843
2843
  }
2844
2844
 
2845
2845
  // src/sdk-version.ts
2846
- var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.121.0" : void 0) || "unknown";
2846
+ var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.122.1" : void 0) || "unknown";
2847
2847
 
2848
2848
  // src/utils/open-url.ts
2849
2849
  var nodePrefix = "node:";
@@ -8453,7 +8453,7 @@ var listActionInputFieldsPlugin = kitcore.defineMethod({
8453
8453
  }
8454
8454
  annotate({ selectedApi });
8455
8455
  const { data: action } = await imports.getAction({
8456
- app: appKey,
8456
+ app: selectedApi,
8457
8457
  actionType,
8458
8458
  action: actionKey
8459
8459
  });
@@ -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.121.0" : void 0) || "unknown";
2845
+ var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.122.1" : void 0) || "unknown";
2846
2846
 
2847
2847
  // src/utils/open-url.ts
2848
2848
  var nodePrefix = "node:";
@@ -8452,7 +8452,7 @@ var listActionInputFieldsPlugin = defineMethod({
8452
8452
  }
8453
8453
  annotate({ selectedApi });
8454
8454
  const { data: action } = await imports.getAction({
8455
- app: appKey,
8455
+ app: selectedApi,
8456
8456
  actionType,
8457
8457
  action: actionKey
8458
8458
  });
@@ -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-FEGI2THT.mjs';
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-QNDRHQ3C.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
  });