@zapier/zapier-sdk 0.99.0 → 0.101.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.
@@ -4254,6 +4254,86 @@ declare const zapierExperimentalSdkPlugin: AggregatePlugin<"experimental-sdk", {
4254
4254
  is_private?: boolean | undefined;
4255
4255
  private?: boolean | undefined;
4256
4256
  }> & LeafSummary<"", "createWorkflow", readonly [PropertyPlugin<"api", ApiClient> & PluginSummary<"zapier/api", never> & StandInId<"zapier/api">]>;
4257
+ } & {
4258
+ importWorkflow: MethodPlugin<"importWorkflow", {
4259
+ zap: string;
4260
+ name?: string | undefined;
4261
+ private?: boolean | undefined;
4262
+ } & {
4263
+ skipOutputDataValidation?: boolean;
4264
+ }, Promise<{
4265
+ data: {
4266
+ workflow: {
4267
+ id: string;
4268
+ name: string;
4269
+ trigger_url: string;
4270
+ enabled: boolean;
4271
+ is_private: boolean;
4272
+ created_by_user_id: string;
4273
+ triggers: {
4274
+ selected_api: string;
4275
+ action: string;
4276
+ status: "active" | "unclaimed" | "pending" | "releasing" | "released" | "failed";
4277
+ authentication_id?: string | null | undefined;
4278
+ params?: Record<string, unknown> | undefined;
4279
+ error?: string | null | undefined;
4280
+ details?: {
4281
+ webhook_url?: string | undefined;
4282
+ } | null | undefined;
4283
+ }[];
4284
+ created_at: string;
4285
+ description?: string | null | undefined;
4286
+ disabled_reason?: "trigger_claim_failed" | null | undefined;
4287
+ source_zap_id?: string | null | undefined;
4288
+ updated_by_user_id?: string | null | undefined;
4289
+ current_version_id?: string | null | undefined;
4290
+ updated_at?: string | undefined;
4291
+ };
4292
+ draft: {
4293
+ id: string;
4294
+ workflow_id: string;
4295
+ slug: string;
4296
+ base_version_id: string | null;
4297
+ source_files: Record<string, string>;
4298
+ zapier_durable_version: string;
4299
+ dependencies: Record<string, string> | null;
4300
+ draft_revision: number;
4301
+ status: "open" | "discarded";
4302
+ created_by_user_id: string;
4303
+ last_edited_by_user_id: string | null;
4304
+ last_edited_at: string | null;
4305
+ discarded_at: string | null;
4306
+ created_at: string;
4307
+ updated_at: string;
4308
+ trigger: {
4309
+ selected_api: string;
4310
+ action: string;
4311
+ authentication_id?: string | null | undefined;
4312
+ params?: Record<string, unknown> | undefined;
4313
+ } | null;
4314
+ connections: Record<string, {
4315
+ connection_id: string | number;
4316
+ }> | null;
4317
+ app_versions: Record<string, {
4318
+ implementation_name: string;
4319
+ version?: string | undefined;
4320
+ }> | null;
4321
+ };
4322
+ issues: {
4323
+ line: number;
4324
+ column: number;
4325
+ node_kind: string;
4326
+ message: string;
4327
+ blocking: boolean;
4328
+ step_name?: string | undefined;
4329
+ }[];
4330
+ };
4331
+ meta?: ResponseMeta;
4332
+ }>, readonly [], {
4333
+ name?: string | undefined;
4334
+ private?: boolean | undefined;
4335
+ zap: string;
4336
+ }> & LeafSummary<"", "importWorkflow", readonly [PropertyPlugin<"api", ApiClient> & PluginSummary<"zapier/api", never> & StandInId<"zapier/api">]>;
4257
4337
  } & {
4258
4338
  updateWorkflow: MethodPlugin<"updateWorkflow", {
4259
4339
  workflow: string;
@@ -4707,6 +4787,7 @@ declare const zapierExperimentalSdkPlugin: AggregatePlugin<"experimental-sdk", {
4707
4787
  authentication_id?: string | null | undefined;
4708
4788
  params?: Record<string, unknown> | undefined;
4709
4789
  } | null | undefined;
4790
+ draft: string;
4710
4791
  sourceFiles: Record<string, string>;
4711
4792
  zapierDurableVersion?: string | undefined;
4712
4793
  appVersions?: Record<string, {
@@ -4715,7 +4796,6 @@ declare const zapierExperimentalSdkPlugin: AggregatePlugin<"experimental-sdk", {
4715
4796
  version?: string | undefined;
4716
4797
  }> | null | undefined;
4717
4798
  manual?: boolean | undefined;
4718
- draft: string;
4719
4799
  draftRevision?: number | undefined;
4720
4800
  }> & LeafSummary<"", "updateWorkflowDraft", readonly [PropertyPlugin<"api", ApiClient> & PluginSummary<"zapier/api", never> & StandInId<"zapier/api">]>;
4721
4801
  } & {
@@ -4828,8 +4908,8 @@ declare const zapierExperimentalSdkPlugin: AggregatePlugin<"experimental-sdk", {
4828
4908
  }>, readonly [], {
4829
4909
  enabled?: boolean | undefined;
4830
4910
  workflow: string;
4831
- manual?: boolean | undefined;
4832
4911
  draft: string;
4912
+ manual?: boolean | undefined;
4833
4913
  draftRevision?: number | undefined;
4834
4914
  }> & LeafSummary<"", "publishWorkflowDraft", readonly [PropertyPlugin<"api", ApiClient> & PluginSummary<"zapier/api", never> & StandInId<"zapier/api">]>;
4835
4915
  } & {
@@ -5129,6 +5209,35 @@ declare const zapierExperimentalSdkPlugin: AggregatePlugin<"experimental-sdk", {
5129
5209
  }>, readonly [], {
5130
5210
  trigger: string;
5131
5211
  }> & LeafSummary<"", "getTriggerRun", readonly [PropertyPlugin<"api", ApiClient> & PluginSummary<"zapier/api", never> & StandInId<"zapier/api">]>;
5212
+ } & {
5213
+ validateWorkflow: MethodPlugin<"validateWorkflow", {
5214
+ sourceFiles: Record<string, string>;
5215
+ entrypointFile?: string | undefined;
5216
+ } & {
5217
+ skipOutputDataValidation?: boolean;
5218
+ }, Promise<{
5219
+ data: {
5220
+ issues: {
5221
+ kind: string;
5222
+ message: string;
5223
+ severity: "error" | "warning" | "hint" | "info";
5224
+ suggestion?: string | undefined;
5225
+ source?: {
5226
+ file_id: string;
5227
+ start_line: number;
5228
+ start_column: number;
5229
+ end_line: number;
5230
+ end_column: number;
5231
+ } | undefined;
5232
+ source_excerpt?: string | undefined;
5233
+ syntax_kind?: string | undefined;
5234
+ }[];
5235
+ };
5236
+ meta?: ResponseMeta;
5237
+ }>, readonly [], {
5238
+ sourceFiles: Record<string, string>;
5239
+ entrypointFile?: string | undefined;
5240
+ }> & LeafSummary<"", "validateWorkflow", readonly [PropertyPlugin<"api", ApiClient> & PluginSummary<"zapier/api", never> & StandInId<"zapier/api">]>;
5132
5241
  } & {
5133
5242
  createForm: MethodPlugin<"createForm", {
5134
5243
  title: string;
@@ -5241,7 +5350,7 @@ declare const zapierExperimentalSdkPlugin: AggregatePlugin<"experimental-sdk", {
5241
5350
  children?: unknown[] | undefined;
5242
5351
  } | undefined;
5243
5352
  }> & LeafSummary<"", "createForm", readonly [PropertyPlugin<"api", ApiClient> & PluginSummary<"zapier/api", never> & StandInId<"zapier/api">]>;
5244
- }> & PluginSummary<never, "fetch" | "zapier/api" | "zapier/manifest" | "zapier/eventEmission" | "zapier/resolveCredentials" | "zapier/connections" | "zapier/capabilities" | "getProfile" | "listApps" | "apps" | "getApp" | "listActions" | "getAction" | "listConnections" | "getConnection" | "findFirstConnection" | "findUniqueConnection" | "listAuthentications" | "getAuthentication" | "findFirstAuthentication" | "findUniqueAuthentication" | "listClientCredentials" | "createClientCredentials" | "deleteClientCredentials" | "getConnectionStartUrl" | "waitForNewConnection" | "createConnection" | "listActionInputFields" | "getActionInputFieldsSchema" | "listActionInputFieldChoices" | "listInputFields" | "getInputFieldsSchema" | "listInputFieldChoices" | "createActionRun" | "getActionRun" | "runAction" | "request" | "listTriggerInboxes" | "createTriggerInbox" | "ensureTriggerInbox" | "getTriggerInbox" | "updateTriggerInbox" | "deleteTriggerInbox" | "pauseTriggerInbox" | "resumeTriggerInbox" | "listTriggerInboxMessages" | "leaseTriggerInboxMessages" | "ackTriggerInboxMessages" | "releaseTriggerInboxMessages" | "drainTriggerInbox" | "watchTriggerInbox" | "listTriggers" | "listTriggerInputFields" | "listTriggerInputFieldChoices" | "getTriggerInputFieldsSchema" | "listTables" | "listTablesInternal" | "getTable" | "deleteTable" | "createTable" | "listTableFields" | "createTableFields" | "deleteTableFields" | "listTableRecords" | "getTableRecord" | "createTableRecords" | "deleteTableRecords" | "updateTableRecords" | "kitcore/getRegistry" | "listWorkflows" | "getWorkflow" | "createWorkflow" | "updateWorkflow" | "enableWorkflow" | "disableWorkflow" | "deleteWorkflow" | "listWorkflowVersions" | "getWorkflowVersion" | "publishWorkflowVersion" | "listWorkflowDrafts" | "getWorkflowDraft" | "createWorkflowDraft" | "updateWorkflowDraft" | "discardWorkflowDraft" | "publishWorkflowDraft" | "listWorkflowRuns" | "getWorkflowRun" | "listDurableRuns" | "getDurableRun" | "runDurable" | "cancelDurableRun" | "triggerWorkflow" | "getTriggerRun" | "createForm" | "zapier/sdk" | "zapier/experimental-sdk">;
5353
+ }> & PluginSummary<never, "fetch" | "zapier/api" | "zapier/manifest" | "zapier/eventEmission" | "zapier/resolveCredentials" | "zapier/connections" | "zapier/capabilities" | "getProfile" | "listApps" | "apps" | "getApp" | "listActions" | "getAction" | "listConnections" | "getConnection" | "findFirstConnection" | "findUniqueConnection" | "listAuthentications" | "getAuthentication" | "findFirstAuthentication" | "findUniqueAuthentication" | "listClientCredentials" | "createClientCredentials" | "deleteClientCredentials" | "getConnectionStartUrl" | "waitForNewConnection" | "createConnection" | "listActionInputFields" | "getActionInputFieldsSchema" | "listActionInputFieldChoices" | "listInputFields" | "getInputFieldsSchema" | "listInputFieldChoices" | "createActionRun" | "getActionRun" | "runAction" | "request" | "listTriggerInboxes" | "createTriggerInbox" | "ensureTriggerInbox" | "getTriggerInbox" | "updateTriggerInbox" | "deleteTriggerInbox" | "pauseTriggerInbox" | "resumeTriggerInbox" | "listTriggerInboxMessages" | "leaseTriggerInboxMessages" | "ackTriggerInboxMessages" | "releaseTriggerInboxMessages" | "drainTriggerInbox" | "watchTriggerInbox" | "listTriggers" | "listTriggerInputFields" | "listTriggerInputFieldChoices" | "getTriggerInputFieldsSchema" | "listTables" | "listTablesInternal" | "getTable" | "deleteTable" | "createTable" | "listTableFields" | "createTableFields" | "deleteTableFields" | "listTableRecords" | "getTableRecord" | "createTableRecords" | "deleteTableRecords" | "updateTableRecords" | "kitcore/getRegistry" | "listWorkflows" | "getWorkflow" | "createWorkflow" | "importWorkflow" | "updateWorkflow" | "enableWorkflow" | "disableWorkflow" | "deleteWorkflow" | "listWorkflowVersions" | "getWorkflowVersion" | "publishWorkflowVersion" | "listWorkflowDrafts" | "getWorkflowDraft" | "createWorkflowDraft" | "updateWorkflowDraft" | "discardWorkflowDraft" | "publishWorkflowDraft" | "listWorkflowRuns" | "getWorkflowRun" | "listDurableRuns" | "getDurableRun" | "runDurable" | "cancelDurableRun" | "triggerWorkflow" | "getTriggerRun" | "validateWorkflow" | "createForm" | "zapier/sdk" | "zapier/experimental-sdk">;
5245
5354
  declare function createZapierSdk(options?: ZapierSdkOptions): {
5246
5355
  getRegistry: (input?: {
5247
5356
  package?: string | undefined;
@@ -7019,6 +7128,81 @@ declare function createZapierSdk(options?: ZapierSdkOptions): {
7019
7128
  };
7020
7129
  meta?: ResponseMeta;
7021
7130
  }>;
7131
+ importWorkflow: (input: {
7132
+ zap: string;
7133
+ name?: string | undefined;
7134
+ private?: boolean | undefined;
7135
+ } & {
7136
+ skipOutputDataValidation?: boolean;
7137
+ }) => Promise<{
7138
+ data: {
7139
+ workflow: {
7140
+ id: string;
7141
+ name: string;
7142
+ trigger_url: string;
7143
+ enabled: boolean;
7144
+ is_private: boolean;
7145
+ created_by_user_id: string;
7146
+ triggers: {
7147
+ selected_api: string;
7148
+ action: string;
7149
+ status: "active" | "unclaimed" | "pending" | "releasing" | "released" | "failed";
7150
+ authentication_id?: string | null | undefined;
7151
+ params?: Record<string, unknown> | undefined;
7152
+ error?: string | null | undefined;
7153
+ details?: {
7154
+ webhook_url?: string | undefined;
7155
+ } | null | undefined;
7156
+ }[];
7157
+ created_at: string;
7158
+ description?: string | null | undefined;
7159
+ disabled_reason?: "trigger_claim_failed" | null | undefined;
7160
+ source_zap_id?: string | null | undefined;
7161
+ updated_by_user_id?: string | null | undefined;
7162
+ current_version_id?: string | null | undefined;
7163
+ updated_at?: string | undefined;
7164
+ };
7165
+ draft: {
7166
+ id: string;
7167
+ workflow_id: string;
7168
+ slug: string;
7169
+ base_version_id: string | null;
7170
+ source_files: Record<string, string>;
7171
+ zapier_durable_version: string;
7172
+ dependencies: Record<string, string> | null;
7173
+ draft_revision: number;
7174
+ status: "open" | "discarded";
7175
+ created_by_user_id: string;
7176
+ last_edited_by_user_id: string | null;
7177
+ last_edited_at: string | null;
7178
+ discarded_at: string | null;
7179
+ created_at: string;
7180
+ updated_at: string;
7181
+ trigger: {
7182
+ selected_api: string;
7183
+ action: string;
7184
+ authentication_id?: string | null | undefined;
7185
+ params?: Record<string, unknown> | undefined;
7186
+ } | null;
7187
+ connections: Record<string, {
7188
+ connection_id: string | number;
7189
+ }> | null;
7190
+ app_versions: Record<string, {
7191
+ implementation_name: string;
7192
+ version?: string | undefined;
7193
+ }> | null;
7194
+ };
7195
+ issues: {
7196
+ line: number;
7197
+ column: number;
7198
+ node_kind: string;
7199
+ message: string;
7200
+ blocking: boolean;
7201
+ step_name?: string | undefined;
7202
+ }[];
7203
+ };
7204
+ meta?: ResponseMeta;
7205
+ }>;
7022
7206
  updateWorkflow: (input: {
7023
7207
  workflow: string;
7024
7208
  name?: string | undefined;
@@ -7723,6 +7907,31 @@ declare function createZapierSdk(options?: ZapierSdkOptions): {
7723
7907
  };
7724
7908
  meta?: ResponseMeta;
7725
7909
  }>;
7910
+ validateWorkflow: (input: {
7911
+ sourceFiles: Record<string, string>;
7912
+ entrypointFile?: string | undefined;
7913
+ } & {
7914
+ skipOutputDataValidation?: boolean;
7915
+ }) => Promise<{
7916
+ data: {
7917
+ issues: {
7918
+ kind: string;
7919
+ message: string;
7920
+ severity: "error" | "warning" | "hint" | "info";
7921
+ suggestion?: string | undefined;
7922
+ source?: {
7923
+ file_id: string;
7924
+ start_line: number;
7925
+ start_column: number;
7926
+ end_line: number;
7927
+ end_column: number;
7928
+ } | undefined;
7929
+ source_excerpt?: string | undefined;
7930
+ syntax_kind?: string | undefined;
7931
+ }[];
7932
+ };
7933
+ meta?: ResponseMeta;
7934
+ }>;
7726
7935
  createForm: (input: {
7727
7936
  title: string;
7728
7937
  description?: string | undefined;
@@ -4254,6 +4254,86 @@ declare const zapierExperimentalSdkPlugin: AggregatePlugin<"experimental-sdk", {
4254
4254
  is_private?: boolean | undefined;
4255
4255
  private?: boolean | undefined;
4256
4256
  }> & LeafSummary<"", "createWorkflow", readonly [PropertyPlugin<"api", ApiClient> & PluginSummary<"zapier/api", never> & StandInId<"zapier/api">]>;
4257
+ } & {
4258
+ importWorkflow: MethodPlugin<"importWorkflow", {
4259
+ zap: string;
4260
+ name?: string | undefined;
4261
+ private?: boolean | undefined;
4262
+ } & {
4263
+ skipOutputDataValidation?: boolean;
4264
+ }, Promise<{
4265
+ data: {
4266
+ workflow: {
4267
+ id: string;
4268
+ name: string;
4269
+ trigger_url: string;
4270
+ enabled: boolean;
4271
+ is_private: boolean;
4272
+ created_by_user_id: string;
4273
+ triggers: {
4274
+ selected_api: string;
4275
+ action: string;
4276
+ status: "active" | "unclaimed" | "pending" | "releasing" | "released" | "failed";
4277
+ authentication_id?: string | null | undefined;
4278
+ params?: Record<string, unknown> | undefined;
4279
+ error?: string | null | undefined;
4280
+ details?: {
4281
+ webhook_url?: string | undefined;
4282
+ } | null | undefined;
4283
+ }[];
4284
+ created_at: string;
4285
+ description?: string | null | undefined;
4286
+ disabled_reason?: "trigger_claim_failed" | null | undefined;
4287
+ source_zap_id?: string | null | undefined;
4288
+ updated_by_user_id?: string | null | undefined;
4289
+ current_version_id?: string | null | undefined;
4290
+ updated_at?: string | undefined;
4291
+ };
4292
+ draft: {
4293
+ id: string;
4294
+ workflow_id: string;
4295
+ slug: string;
4296
+ base_version_id: string | null;
4297
+ source_files: Record<string, string>;
4298
+ zapier_durable_version: string;
4299
+ dependencies: Record<string, string> | null;
4300
+ draft_revision: number;
4301
+ status: "open" | "discarded";
4302
+ created_by_user_id: string;
4303
+ last_edited_by_user_id: string | null;
4304
+ last_edited_at: string | null;
4305
+ discarded_at: string | null;
4306
+ created_at: string;
4307
+ updated_at: string;
4308
+ trigger: {
4309
+ selected_api: string;
4310
+ action: string;
4311
+ authentication_id?: string | null | undefined;
4312
+ params?: Record<string, unknown> | undefined;
4313
+ } | null;
4314
+ connections: Record<string, {
4315
+ connection_id: string | number;
4316
+ }> | null;
4317
+ app_versions: Record<string, {
4318
+ implementation_name: string;
4319
+ version?: string | undefined;
4320
+ }> | null;
4321
+ };
4322
+ issues: {
4323
+ line: number;
4324
+ column: number;
4325
+ node_kind: string;
4326
+ message: string;
4327
+ blocking: boolean;
4328
+ step_name?: string | undefined;
4329
+ }[];
4330
+ };
4331
+ meta?: ResponseMeta;
4332
+ }>, readonly [], {
4333
+ name?: string | undefined;
4334
+ private?: boolean | undefined;
4335
+ zap: string;
4336
+ }> & LeafSummary<"", "importWorkflow", readonly [PropertyPlugin<"api", ApiClient> & PluginSummary<"zapier/api", never> & StandInId<"zapier/api">]>;
4257
4337
  } & {
4258
4338
  updateWorkflow: MethodPlugin<"updateWorkflow", {
4259
4339
  workflow: string;
@@ -4707,6 +4787,7 @@ declare const zapierExperimentalSdkPlugin: AggregatePlugin<"experimental-sdk", {
4707
4787
  authentication_id?: string | null | undefined;
4708
4788
  params?: Record<string, unknown> | undefined;
4709
4789
  } | null | undefined;
4790
+ draft: string;
4710
4791
  sourceFiles: Record<string, string>;
4711
4792
  zapierDurableVersion?: string | undefined;
4712
4793
  appVersions?: Record<string, {
@@ -4715,7 +4796,6 @@ declare const zapierExperimentalSdkPlugin: AggregatePlugin<"experimental-sdk", {
4715
4796
  version?: string | undefined;
4716
4797
  }> | null | undefined;
4717
4798
  manual?: boolean | undefined;
4718
- draft: string;
4719
4799
  draftRevision?: number | undefined;
4720
4800
  }> & LeafSummary<"", "updateWorkflowDraft", readonly [PropertyPlugin<"api", ApiClient> & PluginSummary<"zapier/api", never> & StandInId<"zapier/api">]>;
4721
4801
  } & {
@@ -4828,8 +4908,8 @@ declare const zapierExperimentalSdkPlugin: AggregatePlugin<"experimental-sdk", {
4828
4908
  }>, readonly [], {
4829
4909
  enabled?: boolean | undefined;
4830
4910
  workflow: string;
4831
- manual?: boolean | undefined;
4832
4911
  draft: string;
4912
+ manual?: boolean | undefined;
4833
4913
  draftRevision?: number | undefined;
4834
4914
  }> & LeafSummary<"", "publishWorkflowDraft", readonly [PropertyPlugin<"api", ApiClient> & PluginSummary<"zapier/api", never> & StandInId<"zapier/api">]>;
4835
4915
  } & {
@@ -5129,6 +5209,35 @@ declare const zapierExperimentalSdkPlugin: AggregatePlugin<"experimental-sdk", {
5129
5209
  }>, readonly [], {
5130
5210
  trigger: string;
5131
5211
  }> & LeafSummary<"", "getTriggerRun", readonly [PropertyPlugin<"api", ApiClient> & PluginSummary<"zapier/api", never> & StandInId<"zapier/api">]>;
5212
+ } & {
5213
+ validateWorkflow: MethodPlugin<"validateWorkflow", {
5214
+ sourceFiles: Record<string, string>;
5215
+ entrypointFile?: string | undefined;
5216
+ } & {
5217
+ skipOutputDataValidation?: boolean;
5218
+ }, Promise<{
5219
+ data: {
5220
+ issues: {
5221
+ kind: string;
5222
+ message: string;
5223
+ severity: "error" | "warning" | "hint" | "info";
5224
+ suggestion?: string | undefined;
5225
+ source?: {
5226
+ file_id: string;
5227
+ start_line: number;
5228
+ start_column: number;
5229
+ end_line: number;
5230
+ end_column: number;
5231
+ } | undefined;
5232
+ source_excerpt?: string | undefined;
5233
+ syntax_kind?: string | undefined;
5234
+ }[];
5235
+ };
5236
+ meta?: ResponseMeta;
5237
+ }>, readonly [], {
5238
+ sourceFiles: Record<string, string>;
5239
+ entrypointFile?: string | undefined;
5240
+ }> & LeafSummary<"", "validateWorkflow", readonly [PropertyPlugin<"api", ApiClient> & PluginSummary<"zapier/api", never> & StandInId<"zapier/api">]>;
5132
5241
  } & {
5133
5242
  createForm: MethodPlugin<"createForm", {
5134
5243
  title: string;
@@ -5241,7 +5350,7 @@ declare const zapierExperimentalSdkPlugin: AggregatePlugin<"experimental-sdk", {
5241
5350
  children?: unknown[] | undefined;
5242
5351
  } | undefined;
5243
5352
  }> & LeafSummary<"", "createForm", readonly [PropertyPlugin<"api", ApiClient> & PluginSummary<"zapier/api", never> & StandInId<"zapier/api">]>;
5244
- }> & PluginSummary<never, "fetch" | "zapier/api" | "zapier/manifest" | "zapier/eventEmission" | "zapier/resolveCredentials" | "zapier/connections" | "zapier/capabilities" | "getProfile" | "listApps" | "apps" | "getApp" | "listActions" | "getAction" | "listConnections" | "getConnection" | "findFirstConnection" | "findUniqueConnection" | "listAuthentications" | "getAuthentication" | "findFirstAuthentication" | "findUniqueAuthentication" | "listClientCredentials" | "createClientCredentials" | "deleteClientCredentials" | "getConnectionStartUrl" | "waitForNewConnection" | "createConnection" | "listActionInputFields" | "getActionInputFieldsSchema" | "listActionInputFieldChoices" | "listInputFields" | "getInputFieldsSchema" | "listInputFieldChoices" | "createActionRun" | "getActionRun" | "runAction" | "request" | "listTriggerInboxes" | "createTriggerInbox" | "ensureTriggerInbox" | "getTriggerInbox" | "updateTriggerInbox" | "deleteTriggerInbox" | "pauseTriggerInbox" | "resumeTriggerInbox" | "listTriggerInboxMessages" | "leaseTriggerInboxMessages" | "ackTriggerInboxMessages" | "releaseTriggerInboxMessages" | "drainTriggerInbox" | "watchTriggerInbox" | "listTriggers" | "listTriggerInputFields" | "listTriggerInputFieldChoices" | "getTriggerInputFieldsSchema" | "listTables" | "listTablesInternal" | "getTable" | "deleteTable" | "createTable" | "listTableFields" | "createTableFields" | "deleteTableFields" | "listTableRecords" | "getTableRecord" | "createTableRecords" | "deleteTableRecords" | "updateTableRecords" | "kitcore/getRegistry" | "listWorkflows" | "getWorkflow" | "createWorkflow" | "updateWorkflow" | "enableWorkflow" | "disableWorkflow" | "deleteWorkflow" | "listWorkflowVersions" | "getWorkflowVersion" | "publishWorkflowVersion" | "listWorkflowDrafts" | "getWorkflowDraft" | "createWorkflowDraft" | "updateWorkflowDraft" | "discardWorkflowDraft" | "publishWorkflowDraft" | "listWorkflowRuns" | "getWorkflowRun" | "listDurableRuns" | "getDurableRun" | "runDurable" | "cancelDurableRun" | "triggerWorkflow" | "getTriggerRun" | "createForm" | "zapier/sdk" | "zapier/experimental-sdk">;
5353
+ }> & PluginSummary<never, "fetch" | "zapier/api" | "zapier/manifest" | "zapier/eventEmission" | "zapier/resolveCredentials" | "zapier/connections" | "zapier/capabilities" | "getProfile" | "listApps" | "apps" | "getApp" | "listActions" | "getAction" | "listConnections" | "getConnection" | "findFirstConnection" | "findUniqueConnection" | "listAuthentications" | "getAuthentication" | "findFirstAuthentication" | "findUniqueAuthentication" | "listClientCredentials" | "createClientCredentials" | "deleteClientCredentials" | "getConnectionStartUrl" | "waitForNewConnection" | "createConnection" | "listActionInputFields" | "getActionInputFieldsSchema" | "listActionInputFieldChoices" | "listInputFields" | "getInputFieldsSchema" | "listInputFieldChoices" | "createActionRun" | "getActionRun" | "runAction" | "request" | "listTriggerInboxes" | "createTriggerInbox" | "ensureTriggerInbox" | "getTriggerInbox" | "updateTriggerInbox" | "deleteTriggerInbox" | "pauseTriggerInbox" | "resumeTriggerInbox" | "listTriggerInboxMessages" | "leaseTriggerInboxMessages" | "ackTriggerInboxMessages" | "releaseTriggerInboxMessages" | "drainTriggerInbox" | "watchTriggerInbox" | "listTriggers" | "listTriggerInputFields" | "listTriggerInputFieldChoices" | "getTriggerInputFieldsSchema" | "listTables" | "listTablesInternal" | "getTable" | "deleteTable" | "createTable" | "listTableFields" | "createTableFields" | "deleteTableFields" | "listTableRecords" | "getTableRecord" | "createTableRecords" | "deleteTableRecords" | "updateTableRecords" | "kitcore/getRegistry" | "listWorkflows" | "getWorkflow" | "createWorkflow" | "importWorkflow" | "updateWorkflow" | "enableWorkflow" | "disableWorkflow" | "deleteWorkflow" | "listWorkflowVersions" | "getWorkflowVersion" | "publishWorkflowVersion" | "listWorkflowDrafts" | "getWorkflowDraft" | "createWorkflowDraft" | "updateWorkflowDraft" | "discardWorkflowDraft" | "publishWorkflowDraft" | "listWorkflowRuns" | "getWorkflowRun" | "listDurableRuns" | "getDurableRun" | "runDurable" | "cancelDurableRun" | "triggerWorkflow" | "getTriggerRun" | "validateWorkflow" | "createForm" | "zapier/sdk" | "zapier/experimental-sdk">;
5245
5354
  declare function createZapierSdk(options?: ZapierSdkOptions): {
5246
5355
  getRegistry: (input?: {
5247
5356
  package?: string | undefined;
@@ -7019,6 +7128,81 @@ declare function createZapierSdk(options?: ZapierSdkOptions): {
7019
7128
  };
7020
7129
  meta?: ResponseMeta;
7021
7130
  }>;
7131
+ importWorkflow: (input: {
7132
+ zap: string;
7133
+ name?: string | undefined;
7134
+ private?: boolean | undefined;
7135
+ } & {
7136
+ skipOutputDataValidation?: boolean;
7137
+ }) => Promise<{
7138
+ data: {
7139
+ workflow: {
7140
+ id: string;
7141
+ name: string;
7142
+ trigger_url: string;
7143
+ enabled: boolean;
7144
+ is_private: boolean;
7145
+ created_by_user_id: string;
7146
+ triggers: {
7147
+ selected_api: string;
7148
+ action: string;
7149
+ status: "active" | "unclaimed" | "pending" | "releasing" | "released" | "failed";
7150
+ authentication_id?: string | null | undefined;
7151
+ params?: Record<string, unknown> | undefined;
7152
+ error?: string | null | undefined;
7153
+ details?: {
7154
+ webhook_url?: string | undefined;
7155
+ } | null | undefined;
7156
+ }[];
7157
+ created_at: string;
7158
+ description?: string | null | undefined;
7159
+ disabled_reason?: "trigger_claim_failed" | null | undefined;
7160
+ source_zap_id?: string | null | undefined;
7161
+ updated_by_user_id?: string | null | undefined;
7162
+ current_version_id?: string | null | undefined;
7163
+ updated_at?: string | undefined;
7164
+ };
7165
+ draft: {
7166
+ id: string;
7167
+ workflow_id: string;
7168
+ slug: string;
7169
+ base_version_id: string | null;
7170
+ source_files: Record<string, string>;
7171
+ zapier_durable_version: string;
7172
+ dependencies: Record<string, string> | null;
7173
+ draft_revision: number;
7174
+ status: "open" | "discarded";
7175
+ created_by_user_id: string;
7176
+ last_edited_by_user_id: string | null;
7177
+ last_edited_at: string | null;
7178
+ discarded_at: string | null;
7179
+ created_at: string;
7180
+ updated_at: string;
7181
+ trigger: {
7182
+ selected_api: string;
7183
+ action: string;
7184
+ authentication_id?: string | null | undefined;
7185
+ params?: Record<string, unknown> | undefined;
7186
+ } | null;
7187
+ connections: Record<string, {
7188
+ connection_id: string | number;
7189
+ }> | null;
7190
+ app_versions: Record<string, {
7191
+ implementation_name: string;
7192
+ version?: string | undefined;
7193
+ }> | null;
7194
+ };
7195
+ issues: {
7196
+ line: number;
7197
+ column: number;
7198
+ node_kind: string;
7199
+ message: string;
7200
+ blocking: boolean;
7201
+ step_name?: string | undefined;
7202
+ }[];
7203
+ };
7204
+ meta?: ResponseMeta;
7205
+ }>;
7022
7206
  updateWorkflow: (input: {
7023
7207
  workflow: string;
7024
7208
  name?: string | undefined;
@@ -7723,6 +7907,31 @@ declare function createZapierSdk(options?: ZapierSdkOptions): {
7723
7907
  };
7724
7908
  meta?: ResponseMeta;
7725
7909
  }>;
7910
+ validateWorkflow: (input: {
7911
+ sourceFiles: Record<string, string>;
7912
+ entrypointFile?: string | undefined;
7913
+ } & {
7914
+ skipOutputDataValidation?: boolean;
7915
+ }) => Promise<{
7916
+ data: {
7917
+ issues: {
7918
+ kind: string;
7919
+ message: string;
7920
+ severity: "error" | "warning" | "hint" | "info";
7921
+ suggestion?: string | undefined;
7922
+ source?: {
7923
+ file_id: string;
7924
+ start_line: number;
7925
+ start_column: number;
7926
+ end_line: number;
7927
+ end_column: number;
7928
+ } | undefined;
7929
+ source_excerpt?: string | undefined;
7930
+ syntax_kind?: string | undefined;
7931
+ }[];
7932
+ };
7933
+ meta?: ResponseMeta;
7934
+ }>;
7726
7935
  createForm: (input: {
7727
7936
  title: string;
7728
7937
  description?: string | undefined;