@zapier/zapier-sdk 0.110.0 → 0.110.2
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 +17 -0
- package/dist/{chunk-IHWWBHBO.cjs → chunk-MZR4HZXA.cjs} +385 -105
- package/dist/{chunk-KCJZMIEC.mjs → chunk-YYMYT6JV.mjs} +385 -106
- package/dist/experimental.cjs +430 -389
- package/dist/experimental.d.mts +399 -5
- package/dist/experimental.d.ts +399 -5
- package/dist/experimental.mjs +45 -7
- package/dist/{index-BRxVTixv.d.mts → index-ubhG9-NU.d.mts} +671 -95
- package/dist/{index-BRxVTixv.d.ts → index-ubhG9-NU.d.ts} +671 -95
- package/dist/index.cjs +280 -280
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/experimental.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DEFAULT_PAGE_SIZE, apiPluginRef, workflowIdResolver, extractErrorDetail, ZapierApiError, durableRunIdResolver, ZapierConflictError, workflowVersionIdResolver, workflowDraftIdResolver, workflowDraftRevisionResolver, workflowRunIdResolver, zapierSdkPlugin, ZapierValidationError, ZapierConfigurationError, zapierCoreOptions, SDK_OPTIONS_ID } from './chunk-
|
|
2
|
-
export { ACTION_RUNS_PATH, API_ID, ActionKeyPropertySchema, ActionPropertySchema, ActionTimeoutMillisecondsPropertySchema, ActionTimeoutSecondsPropertySchema, ActionTypePropertySchema, AppKeyPropertySchema, AppPropertySchema, AppsPropertySchema, AuthMechanism, AuthenticationIdPropertySchema, BaseSdkOptionsSchema, CONNECTIONS_ID, CONTEXT, CONTEXT_CACHE_MAX_SIZE, CONTEXT_CACHE_TTL_MILLISECONDS, CORE_ERROR_SYMBOL, CORE_OPTIONS_ID, CORE_SIGNAL_SYMBOL, ClientCredentialsObjectSchema, ConnectionEntrySchema, ConnectionIdPropertySchema, ConnectionPropertySchema, ConnectionsMapSchema, ConnectionsPropertySchema, CoreCancelledSignal, CoreDisposeError, CoreErrorCode, CoreSignal, CredentialsFunctionSchema, CredentialsObjectSchema, CredentialsSchema, DEFAULT_ACTION_TIMEOUT_MILLISECONDS, DEFAULT_APPROVAL_TIMEOUT_MILLISECONDS, DEFAULT_CONFIG_PATH, DEFAULT_MAX_APPROVAL_RETRIES, DEFAULT_PAGE_SIZE, DEPRECATION_NOTICE_EVENT, DebugPropertySchema, DrainTriggerInboxSchema, EVENT_EMISSION_ID, FieldsPropertySchema, InputFieldPropertySchema, InputsPropertySchema, LeaseLimitPropertySchema, LeasePropertySchema, LeaseSecondsPropertySchema, LimitPropertySchema, MANIFEST_ID, MAX_CONCURRENCY_LIMIT, MAX_PAGE_LIMIT, OffsetPropertySchema, OutputPropertySchema, ParamsPropertySchema, PkceCredentialsObjectSchema, RESOLVE_CREDENTIALS_ID, RecordPropertySchema, RecordsPropertySchema, RelayFetchSchema, RelayRequestSchema, ResolvedCredentialsSchema, SDK_OPTIONS_ID, TablePropertySchema, TablesPropertySchema, TriggerInboxKeyPropertySchema, TriggerInboxNamePropertySchema, TriggerInboxPropertySchema, WatchTriggerInboxSchema, ZAPIER_BASE_URL, ZAPIER_MAX_CONCURRENT_REQUESTS, ZAPIER_MAX_NETWORK_RETRIES, ZAPIER_MAX_NETWORK_RETRY_DELAY_MILLISECONDS, ZapierAbortDrainSignal, ZapierActionError, ZapierApiError, ZapierAppNotFoundError, ZapierApprovalError, ZapierAuthenticationError, ZapierBundleError, ZapierConfigurationError, ZapierConflictError, ZapierError, ZapierNotFoundError, ZapierRateLimitError, ZapierRelayError, ZapierReleaseTriggerMessageSignal, ZapierResourceNotFoundError, ZapierSignal, ZapierTimeoutError, ZapierUnknownError, ZapierValidationError, actionKeyResolver, actionTypeResolver, addPlugin, apiPlugin, apiPluginRef, appKeyResolver, appsPlugin, batch, buildApplicationLifecycleEvent, buildCapabilityMessage, buildErrorEvent, buildErrorEventWithContext, buildMethodCalledEvent, cleanupEventListeners, clearTokenCache, clientCredentialsNameResolver, clientIdResolver, composePlugins, connectionIdGenericResolver, connectionIdResolver, connectionsPlugin, connectionsPluginRef, createActionRunPlugin, createBaseEvent, createClientCredentialsPlugin, createController, createCorePlugin, createFunction, createMemoryCache, createPaginatedFunction, createPaginatedPluginMethod, createPluginMethod, createPluginStack, createSdk, createTableFieldsPlugin, createTablePlugin, createTableRecordsPlugin, createZapierApi, createZapierSdkWithoutRegistry, declareMethod, declareOptionalProperty, declarePlugin, declareProperty, defineFormatter, defineLegacyMerge, defineMethod, defineMethodOverride, defineOverride, definePlugin, defineProperty, defineResolver, deleteClientCredentialsPlugin, deleteTableFieldsPlugin, deleteTablePlugin, deleteTableRecordsPlugin, disposeSdk, durableRunIdResolver, eventEmissionHookPlugin, eventEmissionPlugin, eventEmissionPluginRef, fetchPlugin, findFirstConnectionPlugin, findManifestEntry, findUniqueConnectionPlugin, formatErrorMessage, fromFunctionPlugin, generateEventId, getActionInputFieldsSchemaPlugin, getActionPlugin, getActionRunPlugin, getAgent, getAppPlugin, getBaseUrlFromCredentials, getCallerContext, getCiPlatform, getClientIdFromCredentials, getConnectionPlugin, getContext, getCoreErrorCause, getCoreErrorCode, getCpuTime, getCurrentTimestamp, getMemoryUsage, getNegatable, getOrCreateApiClient, getOsInfo, getPlatformVersions, getPreferredManifestEntryKey, getProfilePlugin, getRegistryPlugin, getReleaseId, getTablePlugin, getTableRecordPlugin, getTokenFromCliLogin, getTtyContext, getZapierApprovalMode, getZapierCausationId, getZapierCorrelationId, getZapierDefaultApprovalMode, getZapierOpenAutoModeApprovalsInBrowser, getZapierSdkService, injectCliLogin, inputFieldKeyResolver, inputsAllOptionalResolver, inputsResolver, invalidateCachedToken, invalidateCredentialsToken, isCi, isCliLoginAvailable, isClientCredentials, isCoreCancelledSignal, isCoreError, isCoreSignal, isCredentialsFunction, isCredentialsObject, isPermanentHttpError, isPkceCredentials, isPositional, isZapierAbortDrainSignal, isZapierActionError, isZapierAppNotFoundError, isZapierApprovalError, isZapierAuthenticationError, isZapierBundleError, isZapierConflictError, isZapierError, isZapierNotFoundError, isZapierRateLimitError, isZapierReleaseTriggerMessageSignal, isZapierResourceNotFoundError, isZapierSignal, isZapierTimeoutError, isZapierValidationError, listActionInputFieldChoicesPlugin, listActionInputFieldsPlugin, listActionsPlugin, listAppsPlugin, listClientCredentialsPlugin, listConnectionsPlugin, listTableFieldsPlugin, listTableRecordsPlugin, listTablesPlugin, logDeprecation, manifestPlugin, manifestPluginRef, omitExports, operationAnnotatorPlugin, parseConcurrencyEnvVar, readManifestFromFile, registryPlugin, requestPlugin, resetDeprecationWarnings, resolveAuth, resolveAuthToken, resolveCredentials, resolveCredentialsFromEnv, resolveCredentialsPlugin, resolveCredentialsPluginRef, resolvePlugin, runActionPlugin, runInMethodScope, runWithCallerContext, runWithTelemetryContext, sdkOptionsPluginRef, selectExports, tableFieldIdsResolver, tableFieldsResolver, tableFiltersResolver, tableIdResolver, tableNameResolver, tableRecordIdResolver, tableRecordIdsResolver, tableRecordsResolver, tableSortResolver, tableUpdateRecordsResolver, toSnakeCase, toTitleCase, triggerInboxResolver, triggerMessagesResolver, updateTableRecordsPlugin, workflowDraftIdResolver, workflowDraftRevisionResolver, workflowIdResolver, workflowRunIdResolver, workflowVersionIdResolver, zapierAdaptError, zapierCoreOptions, zapierSdkPlugin } from './chunk-
|
|
1
|
+
import { DEFAULT_PAGE_SIZE, apiPluginRef, workflowIdResolver, SDK_VERSION, extractErrorDetail, ZapierApiError, durableRunIdResolver, ZapierConflictError, workflowVersionIdResolver, workflowDraftIdResolver, workflowDraftRevisionResolver, workflowRunIdResolver, zapierSdkPlugin, ZapierValidationError, ZapierConfigurationError, zapierCoreOptions, SDK_OPTIONS_ID } from './chunk-YYMYT6JV.mjs';
|
|
2
|
+
export { ACTION_RUNS_PATH, API_ID, ActionKeyPropertySchema, ActionPropertySchema, ActionTimeoutMillisecondsPropertySchema, ActionTimeoutSecondsPropertySchema, ActionTypePropertySchema, AppKeyPropertySchema, AppPropertySchema, AppsPropertySchema, AuthMechanism, AuthenticationIdPropertySchema, BaseSdkOptionsSchema, CONNECTIONS_ID, CONTEXT, CONTEXT_CACHE_MAX_SIZE, CONTEXT_CACHE_TTL_MILLISECONDS, CORE_ERROR_SYMBOL, CORE_OPTIONS_ID, CORE_SIGNAL_SYMBOL, ClientCredentialsObjectSchema, ConnectionEntrySchema, ConnectionIdPropertySchema, ConnectionPropertySchema, ConnectionsMapSchema, ConnectionsPropertySchema, CoreCancelledSignal, CoreDisposeError, CoreErrorCode, CoreSignal, CredentialsFunctionSchema, CredentialsObjectSchema, CredentialsSchema, DEFAULT_ACTION_TIMEOUT_MILLISECONDS, DEFAULT_APPROVAL_TIMEOUT_MILLISECONDS, DEFAULT_CONFIG_PATH, DEFAULT_MAX_APPROVAL_RETRIES, DEFAULT_PAGE_SIZE, DEPRECATION_NOTICE_EVENT, DebugPropertySchema, DrainTriggerInboxSchema, EVENT_EMISSION_ID, FieldsPropertySchema, InputFieldPropertySchema, InputsPropertySchema, LeaseLimitPropertySchema, LeasePropertySchema, LeaseSecondsPropertySchema, LimitPropertySchema, MANIFEST_ID, MAX_CONCURRENCY_LIMIT, MAX_PAGE_LIMIT, OffsetPropertySchema, OutputPropertySchema, ParamsPropertySchema, PkceCredentialsObjectSchema, RESOLVE_CREDENTIALS_ID, RecordPropertySchema, RecordsPropertySchema, RelayFetchSchema, RelayRequestSchema, ResolvedCredentialsSchema, SDK_OPTIONS_ID, TablePropertySchema, TablesPropertySchema, TriggerInboxKeyPropertySchema, TriggerInboxNamePropertySchema, TriggerInboxPropertySchema, WatchTriggerInboxSchema, ZAPIER_BASE_URL, ZAPIER_MAX_CONCURRENT_REQUESTS, ZAPIER_MAX_NETWORK_RETRIES, ZAPIER_MAX_NETWORK_RETRY_DELAY_MILLISECONDS, ZapierAbortDrainSignal, ZapierActionError, ZapierApiError, ZapierAppNotFoundError, ZapierApprovalError, ZapierAuthenticationError, ZapierBundleError, ZapierConfigurationError, ZapierConflictError, ZapierError, ZapierNotFoundError, ZapierRateLimitError, ZapierRelayError, ZapierReleaseTriggerMessageSignal, ZapierResourceNotFoundError, ZapierSignal, ZapierTimeoutError, ZapierUnknownError, ZapierValidationError, actionKeyResolver, actionTypeResolver, addPlugin, apiPlugin, apiPluginRef, appKeyResolver, appsPlugin, batch, buildApplicationLifecycleEvent, buildCapabilityMessage, buildErrorEvent, buildErrorEventWithContext, buildMethodCalledEvent, cleanupEventListeners, clearTokenCache, clientCredentialsNameResolver, clientIdResolver, composePlugins, connectionIdGenericResolver, connectionIdResolver, connectionsPlugin, connectionsPluginRef, createActionRunPlugin, createBaseEvent, createClientCredentialsPlugin, createController, createCorePlugin, createFunction, createMemoryCache, createPaginatedFunction, createPaginatedPluginMethod, createPluginMethod, createPluginStack, createSdk, createTableFieldsPlugin, createTablePlugin, createTableRecordsPlugin, createZapierApi, createZapierSdkWithoutRegistry, declareMethod, declareOptionalProperty, declarePlugin, declareProperty, defineFormatter, defineLegacyMerge, defineMethod, defineMethodOverride, defineOverride, definePlugin, defineProperty, defineResolver, deleteClientCredentialsPlugin, deleteTableFieldsPlugin, deleteTablePlugin, deleteTableRecordsPlugin, disposeSdk, durableRunIdResolver, eventEmissionHookPlugin, eventEmissionPlugin, eventEmissionPluginRef, fetchPlugin, findFirstConnectionPlugin, findManifestEntry, findUniqueConnectionPlugin, formatErrorMessage, fromFunctionPlugin, generateEventId, getActionInputFieldsSchemaPlugin, getActionPlugin, getActionRunPlugin, getAgent, getAppPlugin, getBaseUrlFromCredentials, getCallerContext, getCiPlatform, getClientIdFromCredentials, getConnectionPlugin, getContext, getCoreErrorCause, getCoreErrorCode, getCpuTime, getCurrentTimestamp, getMemoryUsage, getNegatable, getOrCreateApiClient, getOsInfo, getPlatformVersions, getPreferredManifestEntryKey, getProfilePlugin, getRegistryPlugin, getReleaseId, getTablePlugin, getTableRecordPlugin, getTokenFromCliLogin, getTtyContext, getZapierApprovalMode, getZapierCausationId, getZapierCorrelationId, getZapierDefaultApprovalMode, getZapierOpenAutoModeApprovalsInBrowser, getZapierSdkService, injectCliLogin, inputFieldKeyResolver, inputsAllOptionalResolver, inputsResolver, invalidateCachedToken, invalidateCredentialsToken, isCi, isCliLoginAvailable, isClientCredentials, isCoreCancelledSignal, isCoreError, isCoreSignal, isCredentialsFunction, isCredentialsObject, isPermanentHttpError, isPkceCredentials, isPositional, isZapierAbortDrainSignal, isZapierActionError, isZapierAppNotFoundError, isZapierApprovalError, isZapierAuthenticationError, isZapierBundleError, isZapierConflictError, isZapierError, isZapierNotFoundError, isZapierRateLimitError, isZapierReleaseTriggerMessageSignal, isZapierResourceNotFoundError, isZapierSignal, isZapierTimeoutError, isZapierValidationError, listActionInputFieldChoicesPlugin, listActionInputFieldsPlugin, listActionsPlugin, listAppsPlugin, listClientCredentialsPlugin, listConnectionsPlugin, listTableFieldsPlugin, listTableRecordsPlugin, listTablesPlugin, logDeprecation, manifestPlugin, manifestPluginRef, omitExports, operationAnnotatorPlugin, parseConcurrencyEnvVar, readManifestFromFile, registryPlugin, requestPlugin, resetDeprecationWarnings, resolveAuth, resolveAuthToken, resolveCredentials, resolveCredentialsFromEnv, resolveCredentialsPlugin, resolveCredentialsPluginRef, resolvePlugin, runActionPlugin, runInMethodScope, runWithCallerContext, runWithTelemetryContext, sdkOptionsPluginRef, selectExports, tableFieldIdsResolver, tableFieldsResolver, tableFiltersResolver, tableIdResolver, tableNameResolver, tableRecordIdResolver, tableRecordIdsResolver, tableRecordsResolver, tableSortResolver, tableUpdateRecordsResolver, toSnakeCase, toTitleCase, triggerInboxResolver, triggerMessagesResolver, updateTableRecordsPlugin, workflowDraftIdResolver, workflowDraftRevisionResolver, workflowIdResolver, workflowRunIdResolver, workflowVersionIdResolver, zapierAdaptError, zapierCoreOptions, zapierSdkPlugin } from './chunk-YYMYT6JV.mjs';
|
|
3
3
|
import './chunk-Y6FXYEAI.mjs';
|
|
4
4
|
import { defineMethod, openEnum, defineResolver, defineFormatter, definePlugin, createSdk, CORE_OPTIONS_ID } from '@zapier/kitcore';
|
|
5
5
|
import { z } from 'zod';
|
|
@@ -130,6 +130,18 @@ var AppVersionBindingSchema2 = z.object({
|
|
|
130
130
|
version: z.string().optional().describe("App implementation version (e.g. '1.27.1')")
|
|
131
131
|
}).describe("App-version binding: maps a single alias to an app version.");
|
|
132
132
|
var WorkflowDraftStatusSchema = z.enum(["open", "discarded"]).describe("Lifecycle status of a workflow draft.");
|
|
133
|
+
var WorkflowCreationAccessMethodSchema = z.enum(["sdk_cli", "sdk_mcp", "zapier_mcp", "editor", "api", "unknown"]).describe(
|
|
134
|
+
"Client access method that created this workflow. `sdk_mcp` is package-derived attribution from `@zapier/zapier-sdk-mcp`; `zapier_mcp` is caller-declared attribution."
|
|
135
|
+
);
|
|
136
|
+
var WORKFLOW_CREATION_CLIENT_HARNESS_MAX_LENGTH = 64;
|
|
137
|
+
var WORKFLOW_CREATION_CLIENT_SDK_VERSION_MAX_LENGTH = 64;
|
|
138
|
+
var WorkflowCreationClientSchema = z.object({
|
|
139
|
+
harness: z.string().max(WORKFLOW_CREATION_CLIENT_HARNESS_MAX_LENGTH).nullable().optional().describe("Client harness that created this workflow"),
|
|
140
|
+
access_method: z.string().describe(
|
|
141
|
+
"Client access method that created this workflow (SDK, MCP, etc)"
|
|
142
|
+
),
|
|
143
|
+
sdk_version: z.string().max(WORKFLOW_CREATION_CLIENT_SDK_VERSION_MAX_LENGTH).nullable().optional().describe("SDK version used to create this workflow")
|
|
144
|
+
}).describe("Client identity recorded when this workflow was created");
|
|
133
145
|
var WorkflowVersionTriggerConfigSchema = z.object({
|
|
134
146
|
selected_api: z.string().describe("Zapier app/API identifier (e.g. 'GoogleSheetsAPI')"),
|
|
135
147
|
action: z.string().describe("Trigger action key (e.g. 'new_row')"),
|
|
@@ -245,7 +257,8 @@ var WorkflowItemSchema = z.object({
|
|
|
245
257
|
"Trigger configurations from the current version, with live claim status. Empty array when the workflow has no triggers."
|
|
246
258
|
),
|
|
247
259
|
created_at: z.string().describe("When the workflow was created (ISO-8601)"),
|
|
248
|
-
updated_at: z.string().describe("When the workflow was last modified (ISO-8601)")
|
|
260
|
+
updated_at: z.string().describe("When the workflow was last modified (ISO-8601)"),
|
|
261
|
+
creation_client: WorkflowCreationClientSchema.nullable().optional().meta({ internal: true })
|
|
249
262
|
});
|
|
250
263
|
var ListWorkflowsOptionsSchema = z.object({
|
|
251
264
|
pageSize: z.number().int().min(1).max(100).optional().describe("Number of workflows per page (max 100)"),
|
|
@@ -344,7 +357,8 @@ var GetWorkflowResponseSchema = z.object({
|
|
|
344
357
|
"Trigger configurations from the current version, with live claim status. Empty array when the workflow has no triggers."
|
|
345
358
|
),
|
|
346
359
|
created_at: z.string().describe("When the workflow was created (ISO-8601)"),
|
|
347
|
-
updated_at: z.string().describe("When the workflow was last modified (ISO-8601)")
|
|
360
|
+
updated_at: z.string().describe("When the workflow was last modified (ISO-8601)"),
|
|
361
|
+
creation_client: WorkflowCreationClientSchema.nullable().optional().meta({ internal: true })
|
|
348
362
|
});
|
|
349
363
|
|
|
350
364
|
// src/plugins/codeSubstrate/getWorkflow/index.ts
|
|
@@ -370,17 +384,33 @@ var getWorkflowPlugin = defineMethod({
|
|
|
370
384
|
return { data: GetWorkflowResponseSchema.parse(raw) };
|
|
371
385
|
}
|
|
372
386
|
});
|
|
387
|
+
var INTERNAL_CREATE_WORKFLOW_FIELDS = [
|
|
388
|
+
"creationHarness",
|
|
389
|
+
"creationAccessMethod"
|
|
390
|
+
];
|
|
373
391
|
var CreateWorkflowOptionsSchema = z.object({
|
|
374
392
|
name: z.string().min(1).describe("Workflow name"),
|
|
375
393
|
description: z.string().optional().describe("Optional description for the workflow"),
|
|
376
394
|
private: z.boolean().optional().describe(
|
|
377
395
|
"If true, only the creating user can see or manage this workflow. Defaults to false (account-visible)."
|
|
378
396
|
),
|
|
397
|
+
creationHarness: WorkflowCreationClientSchema.shape.harness.describe(
|
|
398
|
+
"Optional client harness that created this workflow; null means the client did not report a harness"
|
|
399
|
+
).meta({ internal: true }),
|
|
400
|
+
creationAccessMethod: WorkflowCreationAccessMethodSchema.optional().describe(
|
|
401
|
+
WorkflowCreationAccessMethodSchema.description ?? "Client access method that created this workflow"
|
|
402
|
+
).meta({ internal: true }),
|
|
379
403
|
/** @deprecated Use `private` instead. */
|
|
380
404
|
is_private: z.boolean().optional().describe(
|
|
381
405
|
"If true, only the creating user can see or manage this workflow. Defaults to false (account-visible)."
|
|
382
406
|
).meta({ deprecated: true })
|
|
383
|
-
}).
|
|
407
|
+
}).refine(
|
|
408
|
+
({ creationHarness, creationAccessMethod }) => creationHarness === void 0 || creationAccessMethod !== void 0,
|
|
409
|
+
{
|
|
410
|
+
message: "creationAccessMethod is required when creationHarness is provided",
|
|
411
|
+
path: ["creationAccessMethod"]
|
|
412
|
+
}
|
|
413
|
+
).describe(
|
|
384
414
|
"Create a durable workflow container. Starts disabled with no version; publish a version to add code."
|
|
385
415
|
);
|
|
386
416
|
var CreateWorkflowResponseSchema = z.object({
|
|
@@ -396,7 +426,8 @@ var CreateWorkflowResponseSchema = z.object({
|
|
|
396
426
|
"Whether the workflow is private to the creating user. False means account-visible."
|
|
397
427
|
),
|
|
398
428
|
created_by_user_id: z.string().nullable().describe("User ID of the workflow creator (null in legacy data)"),
|
|
399
|
-
created_at: z.string().describe("When the workflow was created (ISO-8601)")
|
|
429
|
+
created_at: z.string().describe("When the workflow was created (ISO-8601)"),
|
|
430
|
+
creation_client: WorkflowCreationClientSchema.nullable().optional().meta({ internal: true })
|
|
400
431
|
});
|
|
401
432
|
|
|
402
433
|
// src/plugins/codeSubstrate/createWorkflow/index.ts
|
|
@@ -420,6 +451,13 @@ var createWorkflowPlugin = defineMethod({
|
|
|
420
451
|
if (isPrivate !== void 0) {
|
|
421
452
|
body.is_private = isPrivate;
|
|
422
453
|
}
|
|
454
|
+
if (input.creationAccessMethod !== void 0) {
|
|
455
|
+
body.creation_client = {
|
|
456
|
+
...input.creationHarness === void 0 ? {} : { harness: input.creationHarness },
|
|
457
|
+
access_method: input.creationAccessMethod,
|
|
458
|
+
sdk_version: SDK_VERSION
|
|
459
|
+
};
|
|
460
|
+
}
|
|
423
461
|
const raw = await api.post(
|
|
424
462
|
`${CODE_SUBSTRATE_WORKFLOWS_API}/workflows`,
|
|
425
463
|
body,
|
|
@@ -3351,4 +3389,4 @@ function createZapierSdk(options = {}) {
|
|
|
3351
3389
|
});
|
|
3352
3390
|
}
|
|
3353
3391
|
|
|
3354
|
-
export { createZapierSdk, zapierExperimentalSdkPlugin };
|
|
3392
|
+
export { CreateWorkflowOptionsSchema, CreateWorkflowResponseSchema, INTERNAL_CREATE_WORKFLOW_FIELDS, createZapierSdk, zapierExperimentalSdkPlugin };
|