@zapier/zapier-sdk 0.102.2 → 0.102.4
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 +5 -0
- package/dist/{chunk-WWJRIDEW.mjs → chunk-6TIBB6TI.mjs} +80 -11
- package/dist/{chunk-J5ELTMEQ.cjs → chunk-WVRZG6I6.cjs} +79 -10
- package/dist/experimental.cjs +361 -355
- package/dist/experimental.d.mts +186 -176
- package/dist/experimental.d.ts +186 -176
- package/dist/experimental.mjs +8 -2
- package/dist/{index-DmQUHMSz.d.mts → index-CfJjkJU-.d.mts} +23 -11
- package/dist/{index-DmQUHMSz.d.ts → index-CfJjkJU-.d.ts} +23 -11
- package/dist/index.cjs +277 -277
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +2 -2
package/dist/experimental.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DEFAULT_PAGE_SIZE, apiPluginRef, workflowIdResolver, extractErrorDetail, ZapierApiError, durableRunIdResolver, ZapierConflictError, workflowVersionIdResolver, workflowDraftIdResolver, 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, 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, workflowIdResolver, workflowRunIdResolver, workflowVersionIdResolver, zapierAdaptError, zapierCoreOptions, zapierSdkPlugin } from './chunk-
|
|
1
|
+
import { DEFAULT_PAGE_SIZE, apiPluginRef, workflowIdResolver, extractErrorDetail, ZapierApiError, durableRunIdResolver, ZapierConflictError, workflowVersionIdResolver, workflowDraftIdResolver, workflowRunIdResolver, zapierSdkPlugin, ZapierValidationError, ZapierConfigurationError, zapierCoreOptions, SDK_OPTIONS_ID } from './chunk-6TIBB6TI.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, 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, workflowIdResolver, workflowRunIdResolver, workflowVersionIdResolver, zapierAdaptError, zapierCoreOptions, zapierSdkPlugin } from './chunk-6TIBB6TI.mjs';
|
|
3
3
|
import './chunk-Y6FXYEAI.mjs';
|
|
4
4
|
import { defineMethod, openEnum, defineResolver, definePlugin, createSdk, CORE_OPTIONS_ID } from '@zapier/kitcore';
|
|
5
5
|
import { z } from 'zod';
|
|
@@ -113,6 +113,7 @@ function toWireAppVersions(appVersions) {
|
|
|
113
113
|
var WorkflowTriggerUrlSchema = z.string().describe(
|
|
114
114
|
"Public URL that fires this workflow when POSTed to. Embeds a trigger token in the path \u2014 treat as sensitive. Requests must also be authenticated as the account."
|
|
115
115
|
);
|
|
116
|
+
var WorkflowEditorUrlSchema = z.string().url().describe("URL to the Zapier workflow editor for this workflow");
|
|
116
117
|
var ConnectionBindingSchema2 = z.object({
|
|
117
118
|
connection_id: z.union([
|
|
118
119
|
z.number().int().positive(),
|
|
@@ -226,6 +227,7 @@ var WorkflowItemSchema = z.object({
|
|
|
226
227
|
name: z.string().describe("Workflow name"),
|
|
227
228
|
description: z.string().nullable().describe("Optional workflow description (null if unset)"),
|
|
228
229
|
trigger_url: WorkflowTriggerUrlSchema,
|
|
230
|
+
editor_url: WorkflowEditorUrlSchema,
|
|
229
231
|
enabled: z.boolean().describe("Whether the workflow currently accepts triggers"),
|
|
230
232
|
// Optional until COSUB-630 ships the field server-side; afterwards the API
|
|
231
233
|
// always sends it (null unless the workflow was system-disabled).
|
|
@@ -323,6 +325,7 @@ var GetWorkflowResponseSchema = z.object({
|
|
|
323
325
|
name: z.string().describe("Workflow name"),
|
|
324
326
|
description: z.string().nullable().describe("Optional workflow description (null if unset)"),
|
|
325
327
|
trigger_url: WorkflowTriggerUrlSchema,
|
|
328
|
+
editor_url: WorkflowEditorUrlSchema,
|
|
326
329
|
enabled: z.boolean().describe("Whether the workflow currently accepts triggers"),
|
|
327
330
|
// Optional until COSUB-630 ships the field server-side; afterwards the API
|
|
328
331
|
// always sends it (null unless the workflow was system-disabled). Kept
|
|
@@ -385,6 +388,7 @@ var CreateWorkflowResponseSchema = z.object({
|
|
|
385
388
|
name: z.string().describe("Workflow name"),
|
|
386
389
|
description: z.string().nullable().describe("Workflow description (null if unset)"),
|
|
387
390
|
trigger_url: WorkflowTriggerUrlSchema,
|
|
391
|
+
editor_url: WorkflowEditorUrlSchema,
|
|
388
392
|
enabled: z.boolean().describe(
|
|
389
393
|
"Whether the workflow currently accepts triggers. Always false on a new workflow until enabled."
|
|
390
394
|
),
|
|
@@ -458,6 +462,7 @@ var ImportedWorkflowSchema = z.object({
|
|
|
458
462
|
name: z.string().describe("Workflow name"),
|
|
459
463
|
description: z.string().nullable().optional().describe("Optional workflow description (null if unset)"),
|
|
460
464
|
trigger_url: WorkflowTriggerUrlSchema,
|
|
465
|
+
editor_url: WorkflowEditorUrlSchema,
|
|
461
466
|
enabled: z.boolean().describe(
|
|
462
467
|
"Whether the workflow accepts triggers. An import always lands disabled."
|
|
463
468
|
),
|
|
@@ -543,6 +548,7 @@ var UpdateWorkflowResponseSchema = z.object({
|
|
|
543
548
|
name: z.string().describe("Workflow name (post-update)"),
|
|
544
549
|
description: z.string().nullable().describe("Workflow description, post-update (null if unset)"),
|
|
545
550
|
trigger_url: WorkflowTriggerUrlSchema,
|
|
551
|
+
editor_url: WorkflowEditorUrlSchema,
|
|
546
552
|
enabled: z.boolean().describe("Whether the workflow currently accepts triggers"),
|
|
547
553
|
is_private: z.boolean().describe(
|
|
548
554
|
"Whether the workflow is private to the creating user. False means account-visible."
|
|
@@ -2,7 +2,7 @@ import * as zod from 'zod';
|
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
import { ConnectionItemSchema, ConnectionSchema, ConnectionsResponseSchema, GetConnectionResponse } from '@zapier/zapier-sdk-core/v0/schemas/connections';
|
|
4
4
|
import * as _zapier_kitcore from '@zapier/kitcore';
|
|
5
|
-
import { CoreApiError, AdaptError, PluginSurface, PaginatedSdkFunction, ModelResolver, CoreOptions } from '@zapier/kitcore';
|
|
5
|
+
import { CoreApiError, AdaptError, SendHttpRequest, PluginSurface, PaginatedSdkFunction, ModelResolver, CoreOptions } from '@zapier/kitcore';
|
|
6
6
|
import { RequestContext } from '@zapier/policy-context';
|
|
7
7
|
import * as zod_v4_core from 'zod/v4/core';
|
|
8
8
|
|
|
@@ -1818,6 +1818,16 @@ interface ApiClientOptions {
|
|
|
1818
1818
|
* invocations. See ZapierCache in ../cache.ts.
|
|
1819
1819
|
*/
|
|
1820
1820
|
cache?: ZapierCache;
|
|
1821
|
+
/**
|
|
1822
|
+
* Transport used for API requests. `apiPlugin` supplies the graph-composed
|
|
1823
|
+
* transport so host wraps, including a `dispatchHttpRequest` replacement,
|
|
1824
|
+
* apply. If omitted, the client builds a standalone transport from `fetch`
|
|
1825
|
+
* and `debug`.
|
|
1826
|
+
*
|
|
1827
|
+
* `fetch` remains the credential-exchange transport because token resolution
|
|
1828
|
+
* runs outside the request pipeline.
|
|
1829
|
+
*/
|
|
1830
|
+
sendHttpRequest?: SendHttpRequest;
|
|
1821
1831
|
}
|
|
1822
1832
|
interface FetchStreamInit extends RequestInit, CorrelationIdCarrier {
|
|
1823
1833
|
searchParams?: Record<string, string>;
|
|
@@ -4122,7 +4132,7 @@ type RunActionPluginProvides = PluginSurface<typeof runActionPlugin>;
|
|
|
4122
4132
|
*/
|
|
4123
4133
|
declare const requestPlugin: _zapier_kitcore.MethodPlugin<"request", {
|
|
4124
4134
|
url: string;
|
|
4125
|
-
method?: "GET" | "POST" | "
|
|
4135
|
+
method?: "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS" | undefined;
|
|
4126
4136
|
body?: any;
|
|
4127
4137
|
connection?: string | number | undefined;
|
|
4128
4138
|
connectionId?: string | number | undefined;
|
|
@@ -4131,7 +4141,7 @@ declare const requestPlugin: _zapier_kitcore.MethodPlugin<"request", {
|
|
|
4131
4141
|
headers?: Record<string, string> | [string, string][] | Headers | undefined;
|
|
4132
4142
|
}, Promise<Response>, readonly [], {
|
|
4133
4143
|
url: string;
|
|
4134
|
-
method?: "GET" | "POST" | "
|
|
4144
|
+
method?: "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS" | undefined;
|
|
4135
4145
|
body?: any;
|
|
4136
4146
|
connection?: string | number | undefined;
|
|
4137
4147
|
connectionId?: string | number | undefined;
|
|
@@ -4222,8 +4232,8 @@ declare const RelayRequestSchema: z.ZodObject<{
|
|
|
4222
4232
|
method: z.ZodOptional<z.ZodEnum<{
|
|
4223
4233
|
GET: "GET";
|
|
4224
4234
|
POST: "POST";
|
|
4225
|
-
DELETE: "DELETE";
|
|
4226
4235
|
PUT: "PUT";
|
|
4236
|
+
DELETE: "DELETE";
|
|
4227
4237
|
PATCH: "PATCH";
|
|
4228
4238
|
HEAD: "HEAD";
|
|
4229
4239
|
OPTIONS: "OPTIONS";
|
|
@@ -4240,8 +4250,8 @@ declare const RelayFetchSchema: z.ZodObject<{
|
|
|
4240
4250
|
method: z.ZodOptional<z.ZodEnum<{
|
|
4241
4251
|
GET: "GET";
|
|
4242
4252
|
POST: "POST";
|
|
4243
|
-
DELETE: "DELETE";
|
|
4244
4253
|
PUT: "PUT";
|
|
4254
|
+
DELETE: "DELETE";
|
|
4245
4255
|
PATCH: "PATCH";
|
|
4246
4256
|
HEAD: "HEAD";
|
|
4247
4257
|
OPTIONS: "OPTIONS";
|
|
@@ -4482,7 +4492,9 @@ declare const apiPlugin: _zapier_kitcore.PropertyPlugin<"api", ApiClient> & _zap
|
|
|
4482
4492
|
canIncludeSharedTables?: boolean | undefined;
|
|
4483
4493
|
canDeleteTables?: boolean | undefined;
|
|
4484
4494
|
token?: string | undefined;
|
|
4485
|
-
} | undefined> & _zapier_kitcore.PluginSummary<never, never> & _zapier_kitcore.StandInId<"zapier/sdkOptions"
|
|
4495
|
+
} | undefined> & _zapier_kitcore.PluginSummary<never, never> & _zapier_kitcore.StandInId<"zapier/sdkOptions">, _zapier_kitcore.AggregatePlugin<"httpTransport", {
|
|
4496
|
+
sendHttpRequest: _zapier_kitcore.MethodPlugin<"sendHttpRequest", _zapier_kitcore.HttpRequestInput, Promise<Response>, readonly [], _zapier_kitcore.HttpRequestInput> & _zapier_kitcore.LeafSummary<"kitcore", "sendHttpRequest", readonly [_zapier_kitcore.MethodPlugin<"initializeHttpRequest", _zapier_kitcore.InitializeHttpRequestInput, Promise<_zapier_kitcore.HttpOperationContext>, readonly [], _zapier_kitcore.InitializeHttpRequestInput> & _zapier_kitcore.LeafSummary<"kitcore", "initializeHttpRequest", readonly []>, _zapier_kitcore.MethodPlugin<"attemptHttpRequest", _zapier_kitcore.AttemptHttpRequestInput, Promise<Response>, readonly [], _zapier_kitcore.AttemptHttpRequestInput> & _zapier_kitcore.LeafSummary<"kitcore", "attemptHttpRequest", readonly [_zapier_kitcore.MethodPlugin<"prepareHttpRequest", _zapier_kitcore.PrepareHttpRequestInput, Promise<_zapier_kitcore.HttpRequest>, readonly [], _zapier_kitcore.PrepareHttpRequestInput> & _zapier_kitcore.LeafSummary<"kitcore", "prepareHttpRequest", readonly []>, _zapier_kitcore.MethodPlugin<"authorizeHttpRequest", _zapier_kitcore.AuthorizeHttpRequestInput, Promise<_zapier_kitcore.HttpRequest>, readonly [], _zapier_kitcore.AuthorizeHttpRequestInput> & _zapier_kitcore.LeafSummary<"kitcore", "authorizeHttpRequest", readonly []>, _zapier_kitcore.MethodPlugin<"dispatchHttpRequest", _zapier_kitcore.DispatchHttpRequestInput, Promise<Response>, readonly [], _zapier_kitcore.DispatchHttpRequestInput> & _zapier_kitcore.LeafSummary<"kitcore", "dispatchHttpRequest", readonly [_zapier_kitcore.PropertyPlugin<"httpFetch", typeof fetch | undefined> & _zapier_kitcore.PluginSummary<never, never> & _zapier_kitcore.StandInId<"kitcore/httpFetch">]>, _zapier_kitcore.MethodPlugin<"receiveHttpResponse", _zapier_kitcore.ReceiveHttpResponseInput, Promise<Response>, readonly [], _zapier_kitcore.ReceiveHttpResponseInput> & _zapier_kitcore.LeafSummary<"kitcore", "receiveHttpResponse", readonly []>]>]>;
|
|
4497
|
+
}> & _zapier_kitcore.PluginSummary<never, "kitcore/httpFetch" | "kitcore/initializeHttpRequest" | "kitcore/prepareHttpRequest" | "kitcore/authorizeHttpRequest" | "kitcore/dispatchHttpRequest" | "kitcore/receiveHttpResponse" | "kitcore/attemptHttpRequest" | "kitcore/sendHttpRequest" | "zapier/httpTransport">]>;
|
|
4486
4498
|
declare const RESOLVE_CREDENTIALS_ID = "zapier/resolveCredentials";
|
|
4487
4499
|
/**
|
|
4488
4500
|
* The typed stand-in for the credentials resolver
|
|
@@ -5921,7 +5933,7 @@ declare function createZapierSdkWithoutRegistry(options?: ZapierSdkOptions): {
|
|
|
5921
5933
|
fetch: (arg: string | URL, arg_1?: ZapierFetchInitOptions | undefined) => Promise<Response>;
|
|
5922
5934
|
request: (input: {
|
|
5923
5935
|
url: string;
|
|
5924
|
-
method?: "GET" | "POST" | "
|
|
5936
|
+
method?: "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS" | undefined;
|
|
5925
5937
|
body?: any;
|
|
5926
5938
|
connection?: string | number | undefined;
|
|
5927
5939
|
connectionId?: string | number | undefined;
|
|
@@ -9357,7 +9369,7 @@ declare const zapierSdkPlugin: _zapier_kitcore.AggregatePlugin<"sdk", {
|
|
|
9357
9369
|
} & {
|
|
9358
9370
|
request: _zapier_kitcore.MethodPlugin<"request", {
|
|
9359
9371
|
url: string;
|
|
9360
|
-
method?: "GET" | "POST" | "
|
|
9372
|
+
method?: "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS" | undefined;
|
|
9361
9373
|
body?: any;
|
|
9362
9374
|
connection?: string | number | undefined;
|
|
9363
9375
|
connectionId?: string | number | undefined;
|
|
@@ -9366,7 +9378,7 @@ declare const zapierSdkPlugin: _zapier_kitcore.AggregatePlugin<"sdk", {
|
|
|
9366
9378
|
headers?: Record<string, string> | [string, string][] | Headers | undefined;
|
|
9367
9379
|
}, Promise<Response>, readonly [], {
|
|
9368
9380
|
url: string;
|
|
9369
|
-
method?: "GET" | "POST" | "
|
|
9381
|
+
method?: "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS" | undefined;
|
|
9370
9382
|
body?: any;
|
|
9371
9383
|
connection?: string | number | undefined;
|
|
9372
9384
|
connectionId?: string | number | undefined;
|
|
@@ -10697,7 +10709,7 @@ declare const zapierSdkPlugin: _zapier_kitcore.AggregatePlugin<"sdk", {
|
|
|
10697
10709
|
data: Record<string, unknown>;
|
|
10698
10710
|
}[];
|
|
10699
10711
|
}> & _zapier_kitcore.LeafSummary<"", "updateTableRecords", readonly [_zapier_kitcore.PropertyPlugin<"api", ApiClient> & _zapier_kitcore.PluginSummary<"zapier/api", never> & _zapier_kitcore.StandInId<"zapier/api">]>;
|
|
10700
|
-
}> & _zapier_kitcore.PluginSummary<never, "fetch" | "zapier/eventEmission" | "apps" | "zapier/manifest" | "zapier/api" | "zapier/resolveCredentials" | "zapier/connections" | "getApp" | "listApps" | "listActions" | "zapier/capabilities" | "listConnections" | "listActionInputFields" | "listActionInputFieldChoices" | "listClientCredentials" | "listTablesInternal" | "listTriggerInboxes" | "listTriggerInboxMessages" | "listTableRecords" | "listTableFields" | "getAction" | "createActionRun" | "runAction" | "getActionInputFieldsSchema" | "createClientCredentials" | "deleteClientCredentials" | "getConnection" | "findFirstConnection" | "findUniqueConnection" | "listAuthentications" | "getAuthentication" | "findFirstAuthentication" | "findUniqueAuthentication" | "getActionRun" | "request" | "getProfile" | "getConnectionStartUrl" | "waitForNewConnection" | "createConnection" | "listInputFields" | "listInputFieldChoices" | "getInputFieldsSchema" | "createTriggerInbox" | "ensureTriggerInbox" | "getTriggerInbox" | "updateTriggerInbox" | "deleteTriggerInbox" | "pauseTriggerInbox" | "resumeTriggerInbox" | "leaseTriggerInboxMessages" | "ackTriggerInboxMessages" | "releaseTriggerInboxMessages" | "drainTriggerInbox" | "watchTriggerInbox" | "listTriggers" | "listTriggerInputFields" | "listTriggerInputFieldChoices" | "getTriggerInputFieldsSchema" | "listTables" | "getTable" | "deleteTable" | "createTable" | "createTableFields" | "deleteTableFields" | "getTableRecord" | "createTableRecords" | "deleteTableRecords" | "updateTableRecords" | "kitcore/getRegistry" | "zapier/sdk">;
|
|
10712
|
+
}> & _zapier_kitcore.PluginSummary<never, "fetch" | "zapier/eventEmission" | "apps" | "zapier/manifest" | "zapier/api" | "kitcore/httpFetch" | "kitcore/initializeHttpRequest" | "kitcore/prepareHttpRequest" | "kitcore/authorizeHttpRequest" | "kitcore/dispatchHttpRequest" | "kitcore/receiveHttpResponse" | "kitcore/attemptHttpRequest" | "kitcore/sendHttpRequest" | "zapier/httpTransport" | "zapier/resolveCredentials" | "zapier/connections" | "getApp" | "listApps" | "listActions" | "zapier/capabilities" | "listConnections" | "listActionInputFields" | "listActionInputFieldChoices" | "listClientCredentials" | "listTablesInternal" | "listTriggerInboxes" | "listTriggerInboxMessages" | "listTableRecords" | "listTableFields" | "getAction" | "createActionRun" | "runAction" | "getActionInputFieldsSchema" | "createClientCredentials" | "deleteClientCredentials" | "getConnection" | "findFirstConnection" | "findUniqueConnection" | "listAuthentications" | "getAuthentication" | "findFirstAuthentication" | "findUniqueAuthentication" | "getActionRun" | "request" | "getProfile" | "getConnectionStartUrl" | "waitForNewConnection" | "createConnection" | "listInputFields" | "listInputFieldChoices" | "getInputFieldsSchema" | "createTriggerInbox" | "ensureTriggerInbox" | "getTriggerInbox" | "updateTriggerInbox" | "deleteTriggerInbox" | "pauseTriggerInbox" | "resumeTriggerInbox" | "leaseTriggerInboxMessages" | "ackTriggerInboxMessages" | "releaseTriggerInboxMessages" | "drainTriggerInbox" | "watchTriggerInbox" | "listTriggers" | "listTriggerInputFields" | "listTriggerInputFieldChoices" | "getTriggerInputFieldsSchema" | "listTables" | "getTable" | "deleteTable" | "createTable" | "createTableFields" | "deleteTableFields" | "getTableRecord" | "createTableRecords" | "deleteTableRecords" | "updateTableRecords" | "kitcore/getRegistry" | "zapier/sdk">;
|
|
10701
10713
|
declare function createZapierSdk(options?: ZapierSdkOptions): {
|
|
10702
10714
|
getRegistry: (input?: {
|
|
10703
10715
|
package?: string | undefined;
|
|
@@ -11703,7 +11715,7 @@ declare function createZapierSdk(options?: ZapierSdkOptions): {
|
|
|
11703
11715
|
fetch: (arg: string | URL, arg_1?: ZapierFetchInitOptions | undefined) => Promise<Response>;
|
|
11704
11716
|
request: (input: {
|
|
11705
11717
|
url: string;
|
|
11706
|
-
method?: "GET" | "POST" | "
|
|
11718
|
+
method?: "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS" | undefined;
|
|
11707
11719
|
body?: any;
|
|
11708
11720
|
connection?: string | number | undefined;
|
|
11709
11721
|
connectionId?: string | number | undefined;
|
|
@@ -2,7 +2,7 @@ import * as zod from 'zod';
|
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
import { ConnectionItemSchema, ConnectionSchema, ConnectionsResponseSchema, GetConnectionResponse } from '@zapier/zapier-sdk-core/v0/schemas/connections';
|
|
4
4
|
import * as _zapier_kitcore from '@zapier/kitcore';
|
|
5
|
-
import { CoreApiError, AdaptError, PluginSurface, PaginatedSdkFunction, ModelResolver, CoreOptions } from '@zapier/kitcore';
|
|
5
|
+
import { CoreApiError, AdaptError, SendHttpRequest, PluginSurface, PaginatedSdkFunction, ModelResolver, CoreOptions } from '@zapier/kitcore';
|
|
6
6
|
import { RequestContext } from '@zapier/policy-context';
|
|
7
7
|
import * as zod_v4_core from 'zod/v4/core';
|
|
8
8
|
|
|
@@ -1818,6 +1818,16 @@ interface ApiClientOptions {
|
|
|
1818
1818
|
* invocations. See ZapierCache in ../cache.ts.
|
|
1819
1819
|
*/
|
|
1820
1820
|
cache?: ZapierCache;
|
|
1821
|
+
/**
|
|
1822
|
+
* Transport used for API requests. `apiPlugin` supplies the graph-composed
|
|
1823
|
+
* transport so host wraps, including a `dispatchHttpRequest` replacement,
|
|
1824
|
+
* apply. If omitted, the client builds a standalone transport from `fetch`
|
|
1825
|
+
* and `debug`.
|
|
1826
|
+
*
|
|
1827
|
+
* `fetch` remains the credential-exchange transport because token resolution
|
|
1828
|
+
* runs outside the request pipeline.
|
|
1829
|
+
*/
|
|
1830
|
+
sendHttpRequest?: SendHttpRequest;
|
|
1821
1831
|
}
|
|
1822
1832
|
interface FetchStreamInit extends RequestInit, CorrelationIdCarrier {
|
|
1823
1833
|
searchParams?: Record<string, string>;
|
|
@@ -4122,7 +4132,7 @@ type RunActionPluginProvides = PluginSurface<typeof runActionPlugin>;
|
|
|
4122
4132
|
*/
|
|
4123
4133
|
declare const requestPlugin: _zapier_kitcore.MethodPlugin<"request", {
|
|
4124
4134
|
url: string;
|
|
4125
|
-
method?: "GET" | "POST" | "
|
|
4135
|
+
method?: "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS" | undefined;
|
|
4126
4136
|
body?: any;
|
|
4127
4137
|
connection?: string | number | undefined;
|
|
4128
4138
|
connectionId?: string | number | undefined;
|
|
@@ -4131,7 +4141,7 @@ declare const requestPlugin: _zapier_kitcore.MethodPlugin<"request", {
|
|
|
4131
4141
|
headers?: Record<string, string> | [string, string][] | Headers | undefined;
|
|
4132
4142
|
}, Promise<Response>, readonly [], {
|
|
4133
4143
|
url: string;
|
|
4134
|
-
method?: "GET" | "POST" | "
|
|
4144
|
+
method?: "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS" | undefined;
|
|
4135
4145
|
body?: any;
|
|
4136
4146
|
connection?: string | number | undefined;
|
|
4137
4147
|
connectionId?: string | number | undefined;
|
|
@@ -4222,8 +4232,8 @@ declare const RelayRequestSchema: z.ZodObject<{
|
|
|
4222
4232
|
method: z.ZodOptional<z.ZodEnum<{
|
|
4223
4233
|
GET: "GET";
|
|
4224
4234
|
POST: "POST";
|
|
4225
|
-
DELETE: "DELETE";
|
|
4226
4235
|
PUT: "PUT";
|
|
4236
|
+
DELETE: "DELETE";
|
|
4227
4237
|
PATCH: "PATCH";
|
|
4228
4238
|
HEAD: "HEAD";
|
|
4229
4239
|
OPTIONS: "OPTIONS";
|
|
@@ -4240,8 +4250,8 @@ declare const RelayFetchSchema: z.ZodObject<{
|
|
|
4240
4250
|
method: z.ZodOptional<z.ZodEnum<{
|
|
4241
4251
|
GET: "GET";
|
|
4242
4252
|
POST: "POST";
|
|
4243
|
-
DELETE: "DELETE";
|
|
4244
4253
|
PUT: "PUT";
|
|
4254
|
+
DELETE: "DELETE";
|
|
4245
4255
|
PATCH: "PATCH";
|
|
4246
4256
|
HEAD: "HEAD";
|
|
4247
4257
|
OPTIONS: "OPTIONS";
|
|
@@ -4482,7 +4492,9 @@ declare const apiPlugin: _zapier_kitcore.PropertyPlugin<"api", ApiClient> & _zap
|
|
|
4482
4492
|
canIncludeSharedTables?: boolean | undefined;
|
|
4483
4493
|
canDeleteTables?: boolean | undefined;
|
|
4484
4494
|
token?: string | undefined;
|
|
4485
|
-
} | undefined> & _zapier_kitcore.PluginSummary<never, never> & _zapier_kitcore.StandInId<"zapier/sdkOptions"
|
|
4495
|
+
} | undefined> & _zapier_kitcore.PluginSummary<never, never> & _zapier_kitcore.StandInId<"zapier/sdkOptions">, _zapier_kitcore.AggregatePlugin<"httpTransport", {
|
|
4496
|
+
sendHttpRequest: _zapier_kitcore.MethodPlugin<"sendHttpRequest", _zapier_kitcore.HttpRequestInput, Promise<Response>, readonly [], _zapier_kitcore.HttpRequestInput> & _zapier_kitcore.LeafSummary<"kitcore", "sendHttpRequest", readonly [_zapier_kitcore.MethodPlugin<"initializeHttpRequest", _zapier_kitcore.InitializeHttpRequestInput, Promise<_zapier_kitcore.HttpOperationContext>, readonly [], _zapier_kitcore.InitializeHttpRequestInput> & _zapier_kitcore.LeafSummary<"kitcore", "initializeHttpRequest", readonly []>, _zapier_kitcore.MethodPlugin<"attemptHttpRequest", _zapier_kitcore.AttemptHttpRequestInput, Promise<Response>, readonly [], _zapier_kitcore.AttemptHttpRequestInput> & _zapier_kitcore.LeafSummary<"kitcore", "attemptHttpRequest", readonly [_zapier_kitcore.MethodPlugin<"prepareHttpRequest", _zapier_kitcore.PrepareHttpRequestInput, Promise<_zapier_kitcore.HttpRequest>, readonly [], _zapier_kitcore.PrepareHttpRequestInput> & _zapier_kitcore.LeafSummary<"kitcore", "prepareHttpRequest", readonly []>, _zapier_kitcore.MethodPlugin<"authorizeHttpRequest", _zapier_kitcore.AuthorizeHttpRequestInput, Promise<_zapier_kitcore.HttpRequest>, readonly [], _zapier_kitcore.AuthorizeHttpRequestInput> & _zapier_kitcore.LeafSummary<"kitcore", "authorizeHttpRequest", readonly []>, _zapier_kitcore.MethodPlugin<"dispatchHttpRequest", _zapier_kitcore.DispatchHttpRequestInput, Promise<Response>, readonly [], _zapier_kitcore.DispatchHttpRequestInput> & _zapier_kitcore.LeafSummary<"kitcore", "dispatchHttpRequest", readonly [_zapier_kitcore.PropertyPlugin<"httpFetch", typeof fetch | undefined> & _zapier_kitcore.PluginSummary<never, never> & _zapier_kitcore.StandInId<"kitcore/httpFetch">]>, _zapier_kitcore.MethodPlugin<"receiveHttpResponse", _zapier_kitcore.ReceiveHttpResponseInput, Promise<Response>, readonly [], _zapier_kitcore.ReceiveHttpResponseInput> & _zapier_kitcore.LeafSummary<"kitcore", "receiveHttpResponse", readonly []>]>]>;
|
|
4497
|
+
}> & _zapier_kitcore.PluginSummary<never, "kitcore/httpFetch" | "kitcore/initializeHttpRequest" | "kitcore/prepareHttpRequest" | "kitcore/authorizeHttpRequest" | "kitcore/dispatchHttpRequest" | "kitcore/receiveHttpResponse" | "kitcore/attemptHttpRequest" | "kitcore/sendHttpRequest" | "zapier/httpTransport">]>;
|
|
4486
4498
|
declare const RESOLVE_CREDENTIALS_ID = "zapier/resolveCredentials";
|
|
4487
4499
|
/**
|
|
4488
4500
|
* The typed stand-in for the credentials resolver
|
|
@@ -5921,7 +5933,7 @@ declare function createZapierSdkWithoutRegistry(options?: ZapierSdkOptions): {
|
|
|
5921
5933
|
fetch: (arg: string | URL, arg_1?: ZapierFetchInitOptions | undefined) => Promise<Response>;
|
|
5922
5934
|
request: (input: {
|
|
5923
5935
|
url: string;
|
|
5924
|
-
method?: "GET" | "POST" | "
|
|
5936
|
+
method?: "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS" | undefined;
|
|
5925
5937
|
body?: any;
|
|
5926
5938
|
connection?: string | number | undefined;
|
|
5927
5939
|
connectionId?: string | number | undefined;
|
|
@@ -9357,7 +9369,7 @@ declare const zapierSdkPlugin: _zapier_kitcore.AggregatePlugin<"sdk", {
|
|
|
9357
9369
|
} & {
|
|
9358
9370
|
request: _zapier_kitcore.MethodPlugin<"request", {
|
|
9359
9371
|
url: string;
|
|
9360
|
-
method?: "GET" | "POST" | "
|
|
9372
|
+
method?: "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS" | undefined;
|
|
9361
9373
|
body?: any;
|
|
9362
9374
|
connection?: string | number | undefined;
|
|
9363
9375
|
connectionId?: string | number | undefined;
|
|
@@ -9366,7 +9378,7 @@ declare const zapierSdkPlugin: _zapier_kitcore.AggregatePlugin<"sdk", {
|
|
|
9366
9378
|
headers?: Record<string, string> | [string, string][] | Headers | undefined;
|
|
9367
9379
|
}, Promise<Response>, readonly [], {
|
|
9368
9380
|
url: string;
|
|
9369
|
-
method?: "GET" | "POST" | "
|
|
9381
|
+
method?: "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS" | undefined;
|
|
9370
9382
|
body?: any;
|
|
9371
9383
|
connection?: string | number | undefined;
|
|
9372
9384
|
connectionId?: string | number | undefined;
|
|
@@ -10697,7 +10709,7 @@ declare const zapierSdkPlugin: _zapier_kitcore.AggregatePlugin<"sdk", {
|
|
|
10697
10709
|
data: Record<string, unknown>;
|
|
10698
10710
|
}[];
|
|
10699
10711
|
}> & _zapier_kitcore.LeafSummary<"", "updateTableRecords", readonly [_zapier_kitcore.PropertyPlugin<"api", ApiClient> & _zapier_kitcore.PluginSummary<"zapier/api", never> & _zapier_kitcore.StandInId<"zapier/api">]>;
|
|
10700
|
-
}> & _zapier_kitcore.PluginSummary<never, "fetch" | "zapier/eventEmission" | "apps" | "zapier/manifest" | "zapier/api" | "zapier/resolveCredentials" | "zapier/connections" | "getApp" | "listApps" | "listActions" | "zapier/capabilities" | "listConnections" | "listActionInputFields" | "listActionInputFieldChoices" | "listClientCredentials" | "listTablesInternal" | "listTriggerInboxes" | "listTriggerInboxMessages" | "listTableRecords" | "listTableFields" | "getAction" | "createActionRun" | "runAction" | "getActionInputFieldsSchema" | "createClientCredentials" | "deleteClientCredentials" | "getConnection" | "findFirstConnection" | "findUniqueConnection" | "listAuthentications" | "getAuthentication" | "findFirstAuthentication" | "findUniqueAuthentication" | "getActionRun" | "request" | "getProfile" | "getConnectionStartUrl" | "waitForNewConnection" | "createConnection" | "listInputFields" | "listInputFieldChoices" | "getInputFieldsSchema" | "createTriggerInbox" | "ensureTriggerInbox" | "getTriggerInbox" | "updateTriggerInbox" | "deleteTriggerInbox" | "pauseTriggerInbox" | "resumeTriggerInbox" | "leaseTriggerInboxMessages" | "ackTriggerInboxMessages" | "releaseTriggerInboxMessages" | "drainTriggerInbox" | "watchTriggerInbox" | "listTriggers" | "listTriggerInputFields" | "listTriggerInputFieldChoices" | "getTriggerInputFieldsSchema" | "listTables" | "getTable" | "deleteTable" | "createTable" | "createTableFields" | "deleteTableFields" | "getTableRecord" | "createTableRecords" | "deleteTableRecords" | "updateTableRecords" | "kitcore/getRegistry" | "zapier/sdk">;
|
|
10712
|
+
}> & _zapier_kitcore.PluginSummary<never, "fetch" | "zapier/eventEmission" | "apps" | "zapier/manifest" | "zapier/api" | "kitcore/httpFetch" | "kitcore/initializeHttpRequest" | "kitcore/prepareHttpRequest" | "kitcore/authorizeHttpRequest" | "kitcore/dispatchHttpRequest" | "kitcore/receiveHttpResponse" | "kitcore/attemptHttpRequest" | "kitcore/sendHttpRequest" | "zapier/httpTransport" | "zapier/resolveCredentials" | "zapier/connections" | "getApp" | "listApps" | "listActions" | "zapier/capabilities" | "listConnections" | "listActionInputFields" | "listActionInputFieldChoices" | "listClientCredentials" | "listTablesInternal" | "listTriggerInboxes" | "listTriggerInboxMessages" | "listTableRecords" | "listTableFields" | "getAction" | "createActionRun" | "runAction" | "getActionInputFieldsSchema" | "createClientCredentials" | "deleteClientCredentials" | "getConnection" | "findFirstConnection" | "findUniqueConnection" | "listAuthentications" | "getAuthentication" | "findFirstAuthentication" | "findUniqueAuthentication" | "getActionRun" | "request" | "getProfile" | "getConnectionStartUrl" | "waitForNewConnection" | "createConnection" | "listInputFields" | "listInputFieldChoices" | "getInputFieldsSchema" | "createTriggerInbox" | "ensureTriggerInbox" | "getTriggerInbox" | "updateTriggerInbox" | "deleteTriggerInbox" | "pauseTriggerInbox" | "resumeTriggerInbox" | "leaseTriggerInboxMessages" | "ackTriggerInboxMessages" | "releaseTriggerInboxMessages" | "drainTriggerInbox" | "watchTriggerInbox" | "listTriggers" | "listTriggerInputFields" | "listTriggerInputFieldChoices" | "getTriggerInputFieldsSchema" | "listTables" | "getTable" | "deleteTable" | "createTable" | "createTableFields" | "deleteTableFields" | "getTableRecord" | "createTableRecords" | "deleteTableRecords" | "updateTableRecords" | "kitcore/getRegistry" | "zapier/sdk">;
|
|
10701
10713
|
declare function createZapierSdk(options?: ZapierSdkOptions): {
|
|
10702
10714
|
getRegistry: (input?: {
|
|
10703
10715
|
package?: string | undefined;
|
|
@@ -11703,7 +11715,7 @@ declare function createZapierSdk(options?: ZapierSdkOptions): {
|
|
|
11703
11715
|
fetch: (arg: string | URL, arg_1?: ZapierFetchInitOptions | undefined) => Promise<Response>;
|
|
11704
11716
|
request: (input: {
|
|
11705
11717
|
url: string;
|
|
11706
|
-
method?: "GET" | "POST" | "
|
|
11718
|
+
method?: "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS" | undefined;
|
|
11707
11719
|
body?: any;
|
|
11708
11720
|
connection?: string | number | undefined;
|
|
11709
11721
|
connectionId?: string | number | undefined;
|