@zapier/zapier-sdk 0.85.0 → 0.87.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/dist/apps.cjs +2 -0
- package/dist/apps.mjs +2 -0
- package/dist/chunk-275CXIIT.cjs +15632 -0
- package/dist/chunk-OBGZSXTJ.cjs +10 -0
- package/dist/chunk-XUT7EPI7.mjs +15360 -0
- package/dist/chunk-Y6FXYEAI.mjs +8 -0
- package/dist/define.cjs +2 -0
- package/dist/define.mjs +2 -0
- package/dist/experimental.cjs +2147 -16298
- package/dist/experimental.d.mts +4 -4
- package/dist/experimental.d.ts +4 -4
- package/dist/experimental.mjs +30 -15003
- package/dist/{index-BxgeAXDh.d.mts → index-CBvczsOD.d.mts} +214 -124
- package/dist/{index-BxgeAXDh.d.ts → index-CBvczsOD.d.ts} +214 -124
- package/dist/index.cjs +1013 -15183
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +2 -14996
- package/package.json +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as zod from 'zod';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
import { ConnectionSchema, ConnectionsResponseSchema, GetConnectionResponse } from '@zapier/zapier-sdk-core/v0/schemas/connections';
|
|
3
|
+
import { ConnectionItemSchema, ConnectionSchema, ConnectionsResponseSchema, GetConnectionResponse } from '@zapier/zapier-sdk-core/v0/schemas/connections';
|
|
4
4
|
import { RequestContext } from '@zapier/policy-context';
|
|
5
5
|
import * as zod_v4_core from 'zod/v4/core';
|
|
6
6
|
|
|
@@ -58,37 +58,6 @@ declare const AppItemSchema: z.ZodObject<{
|
|
|
58
58
|
version: z.ZodOptional<z.ZodString>;
|
|
59
59
|
}, z.core.$strip>;
|
|
60
60
|
|
|
61
|
-
declare const ConnectionItemSchema: z.ZodObject<{
|
|
62
|
-
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
63
|
-
date: z.ZodString;
|
|
64
|
-
is_invite_only: z.ZodBoolean;
|
|
65
|
-
slug: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
66
|
-
lastchanged: z.ZodOptional<z.ZodString>;
|
|
67
|
-
destination_selected_api: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
68
|
-
is_private: z.ZodBoolean;
|
|
69
|
-
shared_with_all: z.ZodBoolean;
|
|
70
|
-
is_stale: z.ZodOptional<z.ZodString>;
|
|
71
|
-
is_shared: z.ZodOptional<z.ZodString>;
|
|
72
|
-
marked_stale_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
73
|
-
label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
74
|
-
identifier: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
75
|
-
url: z.ZodOptional<z.ZodString>;
|
|
76
|
-
groups: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
77
|
-
members: z.ZodOptional<z.ZodString>;
|
|
78
|
-
permissions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
|
|
79
|
-
public_id: z.ZodOptional<z.ZodString>;
|
|
80
|
-
account_public_id: z.ZodOptional<z.ZodString>;
|
|
81
|
-
customuser_public_id: z.ZodOptional<z.ZodString>;
|
|
82
|
-
id: z.ZodString;
|
|
83
|
-
account_id: z.ZodString;
|
|
84
|
-
implementation_id: z.ZodOptional<z.ZodString>;
|
|
85
|
-
profile_id: z.ZodOptional<z.ZodString>;
|
|
86
|
-
is_expired: z.ZodOptional<z.ZodString>;
|
|
87
|
-
expired_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
88
|
-
app_key: z.ZodOptional<z.ZodString>;
|
|
89
|
-
app_version: z.ZodOptional<z.ZodString>;
|
|
90
|
-
}, z.core.$strip>;
|
|
91
|
-
|
|
92
61
|
declare const ActionItemSchema: z.ZodObject<{
|
|
93
62
|
description: z.ZodString;
|
|
94
63
|
is_hidden: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -270,6 +239,69 @@ interface PaginatedSdkResult<TItem> extends Promise<SdkPage<TItem>> {
|
|
|
270
239
|
}
|
|
271
240
|
type PaginatedSdkFunction<TOptions, TItem> = (options: TOptions) => PaginatedSdkResult<TItem>;
|
|
272
241
|
|
|
242
|
+
/**
|
|
243
|
+
* Per-call context threaded explicitly through the method boundary in place of
|
|
244
|
+
* ambient AsyncLocalStorage. It carries call identity, nesting depth, and a
|
|
245
|
+
* per-invocation annotation bag. Because it travels as data, correlation and
|
|
246
|
+
* nested-call dedup work without `async_hooks` — including in browsers, where
|
|
247
|
+
* the old ALS store was inert and nested calls all looked top-level.
|
|
248
|
+
*
|
|
249
|
+
* Framework-neutral: heads surface `callId` under their own name (e.g. a
|
|
250
|
+
* correlation id) and own their annotation field names.
|
|
251
|
+
*/
|
|
252
|
+
/**
|
|
253
|
+
* A private brand (a fresh `Symbol()`, never `Symbol.for`) makes a CallContext
|
|
254
|
+
* unforgeable: no outside code can name the symbol to synthesize an id-bearing
|
|
255
|
+
* context, and the brand never collides across bundled copies. This is the same
|
|
256
|
+
* unforgeability the `INTERNAL_CALL` sentinel relies on.
|
|
257
|
+
*/
|
|
258
|
+
declare const CALL_CONTEXT_BRAND: unique symbol;
|
|
259
|
+
interface CallContext {
|
|
260
|
+
/** Minted once at the root call; copied verbatim to every nested (child) call. */
|
|
261
|
+
callId: string | null;
|
|
262
|
+
/** 0 at the outermost call; `parent.depth + 1` for a delegated call. */
|
|
263
|
+
depth: number;
|
|
264
|
+
/**
|
|
265
|
+
* Per-invocation scratch space. Never forwarded to callees — a child call
|
|
266
|
+
* gets a fresh bag — so annotations describe one method's own invocation.
|
|
267
|
+
*/
|
|
268
|
+
annotations: Record<string, unknown>;
|
|
269
|
+
readonly [CALL_CONTEXT_BRAND]: true;
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
/**
|
|
273
|
+
* Method-call lifecycle hooks. Plugins contribute `onMethodStart` and/or
|
|
274
|
+
* `onMethodEnd` on their context; `buildHooks` composes contributions across
|
|
275
|
+
* plugins so multiple observers can coexist. Composition is right-additive
|
|
276
|
+
* (newer plugins fire after earlier ones); only opt-in methods built through
|
|
277
|
+
* `createPluginMethod` / `createPaginatedPluginMethod` trigger the hooks.
|
|
278
|
+
*/
|
|
279
|
+
interface OnMethodStartContext {
|
|
280
|
+
methodName: string;
|
|
281
|
+
args: unknown[];
|
|
282
|
+
isPaginated: boolean;
|
|
283
|
+
/**
|
|
284
|
+
* Depth of this method invocation in the SDK call tree. 0 = outermost
|
|
285
|
+
* (user-initiated) call; 1+ = called from inside another SDK method.
|
|
286
|
+
* Observers can use this to ignore nested calls if they only want
|
|
287
|
+
* top-level events.
|
|
288
|
+
*/
|
|
289
|
+
depth: number;
|
|
290
|
+
}
|
|
291
|
+
type OnMethodStart = (ctx: OnMethodStartContext) => void;
|
|
292
|
+
interface OnMethodEndContext {
|
|
293
|
+
methodName: string;
|
|
294
|
+
args: unknown[];
|
|
295
|
+
isPaginated: boolean;
|
|
296
|
+
depth: number;
|
|
297
|
+
durationMs: number;
|
|
298
|
+
error?: Error;
|
|
299
|
+
}
|
|
300
|
+
type OnMethodEnd = (ctx: OnMethodEndContext) => void;
|
|
301
|
+
interface MethodHooks {
|
|
302
|
+
onMethodStart?: OnMethodStart;
|
|
303
|
+
onMethodEnd?: OnMethodEnd;
|
|
304
|
+
}
|
|
273
305
|
interface FormattedItem {
|
|
274
306
|
title: string;
|
|
275
307
|
/**
|
|
@@ -360,8 +392,6 @@ type ListPromptConfig = PromptConfig & {
|
|
|
360
392
|
* - `filter` — no resolver uses it; transform values in `listItems` instead.
|
|
361
393
|
* - `validate`— validation is the resolver's top-level `validate`, which
|
|
362
394
|
* never routes through rendering (and gets `imports`).
|
|
363
|
-
* (The legacy `SchemaParameterResolver` still honors `default`/`filter`/
|
|
364
|
-
* `validate`, so the full `PromptConfig` stays for that path.)
|
|
365
395
|
*/
|
|
366
396
|
type ResolverPromptConfig = Omit<PromptConfig, "name" | "default" | "filter" | "validate">;
|
|
367
397
|
interface Resolver$1 {
|
|
@@ -531,40 +561,6 @@ interface PositionalMetadata {
|
|
|
531
561
|
}
|
|
532
562
|
declare function isPositional(schema: z.ZodType): boolean;
|
|
533
563
|
|
|
534
|
-
/**
|
|
535
|
-
* Method-call lifecycle hooks. Plugins contribute `onMethodStart` and/or
|
|
536
|
-
* `onMethodEnd` on their context; `buildHooks` composes contributions across
|
|
537
|
-
* plugins so multiple observers can coexist. Composition is right-additive
|
|
538
|
-
* (newer plugins fire after earlier ones); only opt-in methods built through
|
|
539
|
-
* `createPluginMethod` / `createPaginatedPluginMethod` trigger the hooks.
|
|
540
|
-
*/
|
|
541
|
-
interface OnMethodStartContext {
|
|
542
|
-
methodName: string;
|
|
543
|
-
args: unknown[];
|
|
544
|
-
isPaginated: boolean;
|
|
545
|
-
/**
|
|
546
|
-
* Depth of this method invocation in the SDK call tree. 0 = outermost
|
|
547
|
-
* (user-initiated) call; 1+ = called from inside another SDK method.
|
|
548
|
-
* Observers can use this to ignore nested calls if they only want
|
|
549
|
-
* top-level events.
|
|
550
|
-
*/
|
|
551
|
-
depth: number;
|
|
552
|
-
}
|
|
553
|
-
type OnMethodStart = (ctx: OnMethodStartContext) => void;
|
|
554
|
-
interface OnMethodEndContext {
|
|
555
|
-
methodName: string;
|
|
556
|
-
args: unknown[];
|
|
557
|
-
isPaginated: boolean;
|
|
558
|
-
depth: number;
|
|
559
|
-
durationMs: number;
|
|
560
|
-
error?: Error;
|
|
561
|
-
}
|
|
562
|
-
type OnMethodEnd = (ctx: OnMethodEndContext) => void;
|
|
563
|
-
interface MethodHooks {
|
|
564
|
-
onMethodStart?: OnMethodStart;
|
|
565
|
-
onMethodEnd?: OnMethodEnd;
|
|
566
|
-
}
|
|
567
|
-
|
|
568
564
|
/**
|
|
569
565
|
* Descriptive metadata a leaf carries for the registry / CLI / MCP / docs:
|
|
570
566
|
* description, categories, type, formatter, resolvers, etc.
|
|
@@ -587,10 +583,6 @@ interface LeafMetaFields {
|
|
|
587
583
|
itemType?: string;
|
|
588
584
|
returnType?: string;
|
|
589
585
|
outputSchema?: z.ZodSchema;
|
|
590
|
-
inputParameters?: Array<{
|
|
591
|
-
name: string;
|
|
592
|
-
schema: z.ZodSchema;
|
|
593
|
-
}>;
|
|
594
586
|
packages?: string[];
|
|
595
587
|
experimental?: boolean;
|
|
596
588
|
confirm?: "create-secret" | "delete";
|
|
@@ -756,12 +748,11 @@ interface DynamicResolver extends ResolverBase {
|
|
|
756
748
|
input: Record<string, unknown>;
|
|
757
749
|
}) => PromiseLike<unknown>;
|
|
758
750
|
/** Produce the candidate list. Behaves like an SDK list method: returns a
|
|
759
|
-
* paginated result (
|
|
760
|
-
*
|
|
761
|
-
*
|
|
762
|
-
*
|
|
763
|
-
*
|
|
764
|
-
* auto-resolution someday) is the `static` kind's job. */
|
|
751
|
+
* paginated result (the engine awaits the first page + `nextCursor`), never a
|
|
752
|
+
* bare array. `cursor` is the stateless re-entry hook for "load more": the
|
|
753
|
+
* engine awaits one page, carries `nextCursor`, and calls again with `cursor`.
|
|
754
|
+
* Required: a dynamic resolver IS a candidate-lister; a free-text field (with
|
|
755
|
+
* or without auto-resolution someday) is the `static` kind's job. */
|
|
765
756
|
listItems: (bag: {
|
|
766
757
|
imports: Record<string, unknown>;
|
|
767
758
|
input: Record<string, unknown>;
|
|
@@ -845,6 +836,27 @@ interface ObjectResolver extends ResolverBase {
|
|
|
845
836
|
input: Record<string, unknown>;
|
|
846
837
|
}) => PromiseLike<Record<string, Field$1>>;
|
|
847
838
|
definitions?: Record<string, Resolver>;
|
|
839
|
+
/** Open-ended entries whose keys aren't known up front (a `z.record`): the
|
|
840
|
+
* walk collects entries in an add/done loop, asking each entry's key (via
|
|
841
|
+
* `keys`, default a free-text string) then its value (via `values`), and
|
|
842
|
+
* assembling them onto the object alongside any fixed `properties`. The
|
|
843
|
+
* JSON-Schema `additionalProperties` analog. */
|
|
844
|
+
additionalKeys?: AdditionalKeys;
|
|
845
|
+
}
|
|
846
|
+
/** The open-keyed-entry spec for an {@link ObjectResolver.additionalKeys}. */
|
|
847
|
+
interface AdditionalKeys {
|
|
848
|
+
/** Resolver for each entry's key; defaults to a free-text string prompt. A
|
|
849
|
+
* `{ ref }` resolves against the object's `definitions`. */
|
|
850
|
+
keys?: Resolver | ResolverRef;
|
|
851
|
+
/** Resolver for each entry's value. A `{ ref }` resolves against the
|
|
852
|
+
* object's `definitions`. */
|
|
853
|
+
values: Resolver | ResolverRef;
|
|
854
|
+
minEntries?: number;
|
|
855
|
+
maxEntries?: number;
|
|
856
|
+
/** Coarse value types so a free-text key/value answer coerces (usually
|
|
857
|
+
* `"string"` for the key), the way `Field.valueType` does. */
|
|
858
|
+
keyValueType?: string;
|
|
859
|
+
valueValueType?: string;
|
|
848
860
|
}
|
|
849
861
|
/** A homogeneous list: each element resolves through `items`. */
|
|
850
862
|
interface ArrayResolver extends ResolverBase {
|
|
@@ -890,9 +902,9 @@ interface Formatter extends MethodAttachment {
|
|
|
890
902
|
}) => FormattedItem;
|
|
891
903
|
}
|
|
892
904
|
/** What a dynamic resolver's `listItems` yields: an SDK list-method result
|
|
893
|
-
* (
|
|
894
|
-
*
|
|
895
|
-
*
|
|
905
|
+
* (the engine awaits the first page + `nextCursor`), or a plain page / promise
|
|
906
|
+
* of one. No bare array and no scalar: it behaves like any other list method,
|
|
907
|
+
* and exact-match short-circuits live on `tryResolveFromSearch`. */
|
|
896
908
|
type ListItemsResult<TItem> = PaginatedSdkResult<TItem> | SdkPage<TItem> | Promise<SdkPage<TItem>>;
|
|
897
909
|
/** A bound object resolver's literal property: its resolver is already bound
|
|
898
910
|
* (or a `{ ref }` the CLI resolves against `definitions` at runtime). */
|
|
@@ -963,7 +975,8 @@ interface BoundDynamicResolver extends BoundResolverBase {
|
|
|
963
975
|
} | null>;
|
|
964
976
|
}
|
|
965
977
|
/** Keyed members: static `properties` (bound) or a `getProperties`-built
|
|
966
|
-
* (unbound) field map; `definitions` holds ref targets.
|
|
978
|
+
* (unbound) field map; `definitions` holds ref targets. `additionalKeys`
|
|
979
|
+
* carries open-ended entries (a `z.record`). */
|
|
967
980
|
interface BoundObjectResolver extends BoundResolverBase {
|
|
968
981
|
type: "object";
|
|
969
982
|
properties?: Record<string, BoundField>;
|
|
@@ -971,6 +984,17 @@ interface BoundObjectResolver extends BoundResolverBase {
|
|
|
971
984
|
getProperties?: (bag: {
|
|
972
985
|
input: Record<string, unknown>;
|
|
973
986
|
}) => PromiseLike<Record<string, Field$1>>;
|
|
987
|
+
additionalKeys?: BoundAdditionalKeys;
|
|
988
|
+
}
|
|
989
|
+
/** The bound form of {@link AdditionalKeys}: `keys`/`values` are bound (or a
|
|
990
|
+
* `{ ref }` into the object's `definitions`). */
|
|
991
|
+
interface BoundAdditionalKeys {
|
|
992
|
+
keys?: BoundResolver | ResolverRef;
|
|
993
|
+
values: BoundResolver | ResolverRef;
|
|
994
|
+
minEntries?: number;
|
|
995
|
+
maxEntries?: number;
|
|
996
|
+
keyValueType?: string;
|
|
997
|
+
valueValueType?: string;
|
|
974
998
|
}
|
|
975
999
|
/** A homogeneous list resolved through `items` (bound, or a ref into
|
|
976
1000
|
* `definitions`). */
|
|
@@ -1361,9 +1385,18 @@ interface MethodEntry {
|
|
|
1361
1385
|
* `resolvePlugin` bind this; the surface and registry bind `value`. Absent
|
|
1362
1386
|
* on legacy graph entries (they bind `value`). */
|
|
1363
1387
|
internalValue?: (input: any) => any;
|
|
1388
|
+
/** Produce the import-facing twin for a given call context: with a context,
|
|
1389
|
+
* the twin mints a fresh child per invocation (callee inherits `callId`, sits
|
|
1390
|
+
* one level deeper); without one it is the parent-less `internalValue`.
|
|
1391
|
+
* `buildImports` binds this. Absent on legacy graph entries. */
|
|
1392
|
+
bindInternal?: (ctx?: CallContext) => (...args: any[]) => any;
|
|
1364
1393
|
chain: MiddlewareWrap[];
|
|
1365
1394
|
/** Carried from the descriptor for the registry / CLI / MCP / docs. */
|
|
1366
1395
|
inputSchema?: z.ZodType;
|
|
1396
|
+
/** When true, the method owns its input validation and the boundary passes it
|
|
1397
|
+
* through unparsed; carried so the controller skips its final `safeParse` too
|
|
1398
|
+
* (it still uses `inputSchema` to plan/prompt parameters). */
|
|
1399
|
+
skipInputValidation?: boolean;
|
|
1367
1400
|
meta?: LeafMeta;
|
|
1368
1401
|
/** Resolved output mode; the registry derives presentation from it. */
|
|
1369
1402
|
output?: NormalizedOutput;
|
|
@@ -1608,7 +1641,7 @@ interface CategoryDefinition {
|
|
|
1608
1641
|
/** Plural form of `title`. Auto-derived from the resolved title if omitted. */
|
|
1609
1642
|
titlePlural?: string;
|
|
1610
1643
|
}
|
|
1611
|
-
interface FunctionRegistryEntry
|
|
1644
|
+
interface FunctionRegistryEntry {
|
|
1612
1645
|
name: string;
|
|
1613
1646
|
/**
|
|
1614
1647
|
* Human-readable description of the function. Surfaced wherever the
|
|
@@ -1621,29 +1654,30 @@ interface FunctionRegistryEntry<TSdk = any> {
|
|
|
1621
1654
|
itemType?: string;
|
|
1622
1655
|
returnType?: string;
|
|
1623
1656
|
inputSchema?: z.ZodSchema;
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1657
|
+
/**
|
|
1658
|
+
* When true, the method owns its input validation and its boundary passes the
|
|
1659
|
+
* input through unparsed. The resolution controller reads this to skip its
|
|
1660
|
+
* final `safeParse` (it still uses `inputSchema` to plan/prompt parameters),
|
|
1661
|
+
* so a method routed through the controller isn't re-validated against a
|
|
1662
|
+
* schema it deliberately opts out of. Lifted off the materialized entry.
|
|
1663
|
+
*/
|
|
1664
|
+
skipInputValidation?: boolean;
|
|
1628
1665
|
outputSchema?: z.ZodSchema;
|
|
1629
1666
|
/**
|
|
1630
1667
|
* Ordered input keys the public surface projects onto positional arguments
|
|
1631
1668
|
* (the method's `positional` declaration). Absent when the method takes only
|
|
1632
1669
|
* the canonical single bag. Lifted off the materialized method entry by the
|
|
1633
|
-
* surface builder, like `
|
|
1670
|
+
* surface builder, like `resolvers` — a runtime projection, not
|
|
1634
1671
|
* descriptive meta.
|
|
1635
1672
|
*/
|
|
1636
1673
|
positional?: readonly string[];
|
|
1637
1674
|
categories: string[];
|
|
1638
|
-
resolvers?: Record<string, ResolverMetadata<TSdk, any, any>>;
|
|
1639
1675
|
/**
|
|
1640
|
-
* Per-parameter bound resolvers
|
|
1641
|
-
*
|
|
1642
|
-
*
|
|
1643
|
-
* entry. Additive bridge — populated for migrated `defineMethod` plugins; the
|
|
1644
|
-
* legacy `resolvers` field above stays the source for unmigrated ones.
|
|
1676
|
+
* Per-parameter bound resolvers (imports already captured, called with
|
|
1677
|
+
* `input` only, no sdk). Lifted off the materialized method entry by the
|
|
1678
|
+
* surface builder.
|
|
1645
1679
|
*/
|
|
1646
|
-
|
|
1680
|
+
resolvers?: Record<string, BoundResolver>;
|
|
1647
1681
|
packages?: string[];
|
|
1648
1682
|
/**
|
|
1649
1683
|
* True if the plugin is registered only in the experimental SDK
|
|
@@ -1677,8 +1711,8 @@ interface FunctionDeprecation {
|
|
|
1677
1711
|
/** User-facing deprecation message for why/how to migrate */
|
|
1678
1712
|
message: string;
|
|
1679
1713
|
}
|
|
1680
|
-
interface RegistryResult
|
|
1681
|
-
functions: FunctionRegistryEntry
|
|
1714
|
+
interface RegistryResult {
|
|
1715
|
+
functions: FunctionRegistryEntry[];
|
|
1682
1716
|
categories: {
|
|
1683
1717
|
key: string;
|
|
1684
1718
|
title: string;
|
|
@@ -1783,7 +1817,7 @@ type Sdk<T = {
|
|
|
1783
1817
|
}> = T & {
|
|
1784
1818
|
getRegistry(options?: {
|
|
1785
1819
|
package?: string;
|
|
1786
|
-
}): RegistryResult
|
|
1820
|
+
}): RegistryResult;
|
|
1787
1821
|
};
|
|
1788
1822
|
|
|
1789
1823
|
/**
|
|
@@ -2371,6 +2405,8 @@ declare function defineResolver<const TImports extends ImportsInput = readonly [
|
|
|
2371
2405
|
input: TInput;
|
|
2372
2406
|
}) => PromiseLike<Record<string, Field$1>>;
|
|
2373
2407
|
definitions?: Record<string, Resolver>;
|
|
2408
|
+
/** Open-ended entries whose keys aren't known up front (a `z.record`). */
|
|
2409
|
+
additionalKeys?: AdditionalKeys;
|
|
2374
2410
|
}): ObjectResolver;
|
|
2375
2411
|
declare function defineResolver(config: {
|
|
2376
2412
|
type: "array";
|
|
@@ -2745,7 +2781,7 @@ interface CoreOptions {
|
|
|
2745
2781
|
*/
|
|
2746
2782
|
declare const getRegistryPlugin: MethodPlugin<"getRegistry", {
|
|
2747
2783
|
package?: string | undefined;
|
|
2748
|
-
} | undefined, RegistryResult
|
|
2784
|
+
} | undefined, RegistryResult, readonly []> & LeafSummary<"kitcore", "getRegistry", readonly [PropertyPlugin<"context", SdkContext>]>;
|
|
2749
2785
|
|
|
2750
2786
|
/**
|
|
2751
2787
|
* The external escape-hatch key for an SDK's context. A Symbol,
|
|
@@ -2906,13 +2942,13 @@ type ControllerQuestion = {
|
|
|
2906
2942
|
path: ControllerPath;
|
|
2907
2943
|
message: string;
|
|
2908
2944
|
description?: string;
|
|
2909
|
-
/** Which container
|
|
2910
|
-
*
|
|
2911
|
-
* its fields are fetched
|
|
2912
|
-
*
|
|
2913
|
-
* needs nothing else; this is additive metadata for hosts
|
|
2914
|
-
* containers specially. */
|
|
2915
|
-
container: "array" | "object";
|
|
2945
|
+
/** Which container type this decision is about. `array`/`record` are the
|
|
2946
|
+
* add-another loops; `object` covers both the optional-object gate (fired
|
|
2947
|
+
* BEFORE its fields are fetched: `add` descends, `done` skips it) and the
|
|
2948
|
+
* optional-fields gate. A host that renders `message` + `actions`
|
|
2949
|
+
* generically needs nothing else; this is additive metadata for hosts
|
|
2950
|
+
* that render containers specially. */
|
|
2951
|
+
container: "array" | "object" | "record";
|
|
2916
2952
|
/** Object optionals gate only: the fields the `add` action would walk
|
|
2917
2953
|
* (key + display label + coarse value type), so a smart host can render
|
|
2918
2954
|
* them (or a form section) instead of a blind yes/no. Dumb hosts keep
|
|
@@ -3021,11 +3057,16 @@ interface ControllerState {
|
|
|
3021
3057
|
/** The path of the parameter (or nested field) currently being asked. */
|
|
3022
3058
|
current?: ControllerPath;
|
|
3023
3059
|
/** Which container decision the outstanding `collection` question is, when
|
|
3024
|
-
* `current` points at one
|
|
3025
|
-
*
|
|
3026
|
-
*
|
|
3027
|
-
*
|
|
3028
|
-
|
|
3060
|
+
* `current` points at one, named `<container>_<subject>`: `array_items` and
|
|
3061
|
+
* `record_entries` are the add/done loops; `object_optional` is whether to
|
|
3062
|
+
* provide an optional object at all (fired before its fields are fetched);
|
|
3063
|
+
* `object_optional_properties` is whether to fill that object's optional
|
|
3064
|
+
* fields. `record_key` marks the one bespoke record step (collecting an
|
|
3065
|
+
* entry's key); the value that follows is an ordinary leaf question with no
|
|
3066
|
+
* gate. Recorded explicitly so `step`'s handling never infers the decision
|
|
3067
|
+
* from value presence or resolver shape. Absent when `current` is a plain
|
|
3068
|
+
* leaf question. */
|
|
3069
|
+
gate?: "array_items" | "record_entries" | "record_key" | "object_optional" | "object_optional_properties";
|
|
3029
3070
|
/** Where pagination stands for the current dynamic leaf: coordinates only
|
|
3030
3071
|
* (cursor trail, generation), never items or live iterators — the page's
|
|
3031
3072
|
* items ride the ask's question. */
|
|
@@ -3244,7 +3285,7 @@ type FunctionSdk = {
|
|
|
3244
3285
|
* and `context.core`
|
|
3245
3286
|
* @param options.schema - optional Zod schema for input validation
|
|
3246
3287
|
*/
|
|
3247
|
-
declare function createFunction<TOptions, TResult, TSchemaOptions extends TOptions = TOptions>(coreFn: (options: TOptions) => Promise<TResult>, options: {
|
|
3288
|
+
declare function createFunction<TOptions, TResult, TSchemaOptions extends TOptions = TOptions>(coreFn: (options: TOptions, context?: CallContext) => Promise<TResult>, options: {
|
|
3248
3289
|
sdk: FunctionSdk;
|
|
3249
3290
|
schema?: z.ZodSchema<TSchemaOptions>;
|
|
3250
3291
|
name?: string;
|
|
@@ -3270,7 +3311,7 @@ type ItemType<TResult> = TResult extends {
|
|
|
3270
3311
|
declare function createPaginatedFunction<TUserOptions, TResponse, TItem = ItemType<TResponse>>(coreFn: (options: TUserOptions & {
|
|
3271
3312
|
cursor?: string;
|
|
3272
3313
|
pageSize?: number;
|
|
3273
|
-
}) => Promise<TResponse>, options: {
|
|
3314
|
+
}, context?: CallContext) => Promise<TResponse>, options: {
|
|
3274
3315
|
sdk: FunctionSdk;
|
|
3275
3316
|
schema?: z.ZodSchema<TUserOptions>;
|
|
3276
3317
|
name?: string;
|
|
@@ -3370,7 +3411,7 @@ declare abstract class CoreSignal extends Error {
|
|
|
3370
3411
|
* control-flow throw), as opposed to a real error. Survives the
|
|
3371
3412
|
* bundled/standalone kitcore split, where `instanceof CoreSignal` may not.
|
|
3372
3413
|
*/
|
|
3373
|
-
declare function isCoreSignal(value: unknown):
|
|
3414
|
+
declare function isCoreSignal(value: unknown): value is CoreSignal;
|
|
3374
3415
|
/**
|
|
3375
3416
|
* Thrown by `Controller.resolve` when the host cancels resolution (the answer
|
|
3376
3417
|
* callback returned `{ type: "cancel" }`). The lower-level `start`/`step`
|
|
@@ -3383,6 +3424,13 @@ declare class CoreCancelledSignal extends CoreSignal {
|
|
|
3383
3424
|
readonly code: "CANCELLED";
|
|
3384
3425
|
constructor(message?: string);
|
|
3385
3426
|
}
|
|
3427
|
+
/**
|
|
3428
|
+
* Cross-package-safe check for {@link CoreCancelledSignal}. Keys on the
|
|
3429
|
+
* signal brand + `code` rather than `instanceof`, so it recognizes a
|
|
3430
|
+
* cancel signal raised by a different copy of kitcore (e.g. one bundled
|
|
3431
|
+
* into a head vs. one installed standalone).
|
|
3432
|
+
*/
|
|
3433
|
+
declare function isCoreCancelledSignal(value: unknown): value is CoreCancelledSignal;
|
|
3386
3434
|
|
|
3387
3435
|
declare const AppKeyPropertySchema: z.ZodString & {
|
|
3388
3436
|
_def: z.core.$ZodStringDef & PositionalMetadata;
|
|
@@ -3484,7 +3532,6 @@ interface ErrorOptions {
|
|
|
3484
3532
|
* the existing `Zapier*` / `ZAPIER_*` convention.
|
|
3485
3533
|
*/
|
|
3486
3534
|
declare class ZapierError extends Error {
|
|
3487
|
-
readonly [CORE_ERROR_SYMBOL] = true;
|
|
3488
3535
|
readonly name: string;
|
|
3489
3536
|
readonly code: string;
|
|
3490
3537
|
statusCode?: number;
|
|
@@ -3560,8 +3607,8 @@ declare class ZapierNotFoundError extends ZapierError {
|
|
|
3560
3607
|
/**
|
|
3561
3608
|
* Error thrown when a requested resource is not found and the caller
|
|
3562
3609
|
* provided a `resource` hint on the request, populating `resourceType`
|
|
3563
|
-
* and (optionally) `resourceId`. Subclass of `ZapierNotFoundError
|
|
3564
|
-
*
|
|
3610
|
+
* and (optionally) `resourceId`. Subclass of `ZapierNotFoundError`, so it
|
|
3611
|
+
* inherits the not-found brand and `isZapierNotFoundError` matches it.
|
|
3565
3612
|
*/
|
|
3566
3613
|
declare class ZapierResourceNotFoundError extends ZapierNotFoundError {
|
|
3567
3614
|
readonly name = "ZapierResourceNotFoundError";
|
|
@@ -3717,6 +3764,30 @@ declare class ZapierRelayError extends ZapierError {
|
|
|
3717
3764
|
readonly code: "ZAPIER_RELAY_ERROR";
|
|
3718
3765
|
constructor(message: string, options?: ErrorOptions);
|
|
3719
3766
|
}
|
|
3767
|
+
/**
|
|
3768
|
+
* Any Zapier-thrown error (the cross-package-safe equivalent of
|
|
3769
|
+
* `instanceof ZapierError`). Matches every subclass — including the
|
|
3770
|
+
* CLI's `ZapierCliError` — since the brand is inherited.
|
|
3771
|
+
*/
|
|
3772
|
+
declare function isZapierError(value: unknown): value is ZapierError;
|
|
3773
|
+
declare function isZapierValidationError(value: unknown): value is ZapierValidationError;
|
|
3774
|
+
declare function isZapierAuthenticationError(value: unknown): value is ZapierAuthenticationError;
|
|
3775
|
+
declare function isZapierAppNotFoundError(value: unknown): value is ZapierAppNotFoundError;
|
|
3776
|
+
/**
|
|
3777
|
+
* Matches `ZapierNotFoundError` and any subclass (e.g.
|
|
3778
|
+
* `ZapierResourceNotFoundError`), preserving the subclass semantics of
|
|
3779
|
+
* `instanceof ZapierNotFoundError`. Keys on the not-found brand inherited
|
|
3780
|
+
* from the base constructor, so new subclasses are matched automatically
|
|
3781
|
+
* with no change here.
|
|
3782
|
+
*/
|
|
3783
|
+
declare function isZapierNotFoundError(value: unknown): value is ZapierNotFoundError;
|
|
3784
|
+
declare function isZapierResourceNotFoundError(value: unknown): value is ZapierResourceNotFoundError;
|
|
3785
|
+
declare function isZapierConflictError(value: unknown): value is ZapierConflictError;
|
|
3786
|
+
declare function isZapierTimeoutError(value: unknown): value is ZapierTimeoutError;
|
|
3787
|
+
declare function isZapierBundleError(value: unknown): value is ZapierBundleError;
|
|
3788
|
+
declare function isZapierActionError(value: unknown): value is ZapierActionError;
|
|
3789
|
+
declare function isZapierRateLimitError(value: unknown): value is ZapierRateLimitError;
|
|
3790
|
+
declare function isZapierApprovalError(value: unknown): value is ZapierApprovalError;
|
|
3720
3791
|
/**
|
|
3721
3792
|
* Utility function to format error messages for display
|
|
3722
3793
|
*/
|
|
@@ -3732,15 +3803,23 @@ declare function formatErrorMessage(error: ZapierError): string;
|
|
|
3732
3803
|
* leave it leased.
|
|
3733
3804
|
*
|
|
3734
3805
|
* Distinct from `ZapierError` (failures): signals are not errors and
|
|
3735
|
-
* shouldn't be caught by error-handling code
|
|
3736
|
-
*
|
|
3737
|
-
*
|
|
3806
|
+
* shouldn't be caught by error-handling code. Use `isZapierSignal` to
|
|
3807
|
+
* discriminate intent throws from real failures — it recognizes any
|
|
3808
|
+
* `Zapier*` signal via the `CORE_SIGNAL_SYMBOL` brand stamped below,
|
|
3809
|
+
* which survives across bundle copies where `instanceof` would not.
|
|
3738
3810
|
*/
|
|
3739
3811
|
declare abstract class ZapierSignal extends Error {
|
|
3740
3812
|
abstract readonly name: string;
|
|
3741
3813
|
abstract readonly code: string;
|
|
3742
3814
|
constructor(message?: string);
|
|
3743
3815
|
}
|
|
3816
|
+
/**
|
|
3817
|
+
* Cross-package-safe check that `value` is a `Zapier*` (or kitcore)
|
|
3818
|
+
* signal. Prefer this over `instanceof ZapierSignal`, which breaks when
|
|
3819
|
+
* the SDK is loaded as more than one copy (index vs experimental entry,
|
|
3820
|
+
* `.cjs` vs `.mjs`, or two installed versions).
|
|
3821
|
+
*/
|
|
3822
|
+
declare function isZapierSignal(value: unknown): value is ZapierSignal;
|
|
3744
3823
|
|
|
3745
3824
|
declare const TriggerMessageStatusSchema: z.ZodUnion<readonly [z.ZodEnum<{
|
|
3746
3825
|
available: "available";
|
|
@@ -3793,6 +3872,17 @@ declare class ZapierAbortDrainSignal extends ZapierSignal {
|
|
|
3793
3872
|
readonly name = "ZapierAbortDrainSignal";
|
|
3794
3873
|
readonly code: "ZAPIER_ABORT_DRAIN_SIGNAL";
|
|
3795
3874
|
}
|
|
3875
|
+
/**
|
|
3876
|
+
* Cross-package-safe check for `ZapierReleaseTriggerMessageSignal`.
|
|
3877
|
+
* Keys on the signal brand + `code` rather than `instanceof`, so it
|
|
3878
|
+
* recognizes a signal thrown by a different copy of the SDK.
|
|
3879
|
+
*/
|
|
3880
|
+
declare function isZapierReleaseTriggerMessageSignal(value: unknown): value is ZapierReleaseTriggerMessageSignal;
|
|
3881
|
+
/**
|
|
3882
|
+
* Cross-package-safe check for `ZapierAbortDrainSignal`. See
|
|
3883
|
+
* `isZapierReleaseTriggerMessageSignal` for why this beats `instanceof`.
|
|
3884
|
+
*/
|
|
3885
|
+
declare function isZapierAbortDrainSignal(value: unknown): value is ZapierAbortDrainSignal;
|
|
3796
3886
|
/**
|
|
3797
3887
|
* Per-message handler. Resolves to ack the message; rejects to
|
|
3798
3888
|
* release-or-leave per `releaseOnError`. Throw a
|
|
@@ -7363,7 +7453,7 @@ interface ZapierSdkOptions extends BaseSdkOptions {
|
|
|
7363
7453
|
declare function createZapierSdkWithoutRegistry(options?: ZapierSdkOptions): {
|
|
7364
7454
|
getRegistry: (input?: {
|
|
7365
7455
|
package?: string | undefined;
|
|
7366
|
-
} | undefined) => RegistryResult
|
|
7456
|
+
} | undefined) => RegistryResult;
|
|
7367
7457
|
getProfile: (input?: Record<string, never> | undefined) => Promise<{
|
|
7368
7458
|
data: {
|
|
7369
7459
|
id: string;
|
|
@@ -8808,7 +8898,7 @@ declare function createZapierSdkWithoutRegistry(options?: ZapierSdkOptions): {
|
|
|
8808
8898
|
declare const zapierSdkPlugin: AggregatePlugin<"sdk", {
|
|
8809
8899
|
getRegistry: MethodPlugin<"getRegistry", {
|
|
8810
8900
|
package?: string | undefined;
|
|
8811
|
-
} | undefined, RegistryResult
|
|
8901
|
+
} | undefined, RegistryResult, readonly []> & LeafSummary<"kitcore", "getRegistry", readonly [PropertyPlugin<"context", SdkContext>]>;
|
|
8812
8902
|
} & {
|
|
8813
8903
|
getProfile: MethodPlugin<"getProfile", Record<string, never> | undefined, Promise<{
|
|
8814
8904
|
data: {
|
|
@@ -11571,7 +11661,7 @@ declare const zapierSdkPlugin: AggregatePlugin<"sdk", {
|
|
|
11571
11661
|
declare function createZapierSdk(options?: ZapierSdkOptions): {
|
|
11572
11662
|
getRegistry: (input?: {
|
|
11573
11663
|
package?: string | undefined;
|
|
11574
|
-
} | undefined) => RegistryResult
|
|
11664
|
+
} | undefined) => RegistryResult;
|
|
11575
11665
|
getProfile: (input?: Record<string, never> | undefined) => Promise<{
|
|
11576
11666
|
data: {
|
|
11577
11667
|
id: string;
|
|
@@ -13686,4 +13776,4 @@ declare function getAgent(): string | null;
|
|
|
13686
13776
|
*/
|
|
13687
13777
|
declare const registryPlugin: (_sdk: {}) => {};
|
|
13688
13778
|
|
|
13689
|
-
export { type Connection as $, type AggregatePlugin as A, type BaseSdkOptions as B, type ConnectionsProvider as C, type DeleteTriggerInboxResult as D, type EventCallback as E, type FieldsetItem as F, type GetActionInputFieldsSchemaOptions as G, type FindFirstAuthenticationPluginProvides as H, type FindUniqueAuthenticationPluginProvides as I, type Action as J, type App as K, type LeafSummary as L, type MethodPlugin as M, type Need as N, type Field as O, type PropertyPlugin as P, type Choice as Q, type RegistryResult as R, type SdkContext as S, type TriggerInboxCommandSharedFields as T, type ActionExecutionResult as U, type ActionField as V, type WatchTriggerInboxOptions as W, type ActionFieldChoice as X, type NeedsRequest as Y, type ZapierFetchInitOptions as Z, type NeedsResponse as _, type ApiClient as a, type BatchOptions as a$, type ConnectionsResponse as a0, type UserProfile as a1, isPositional as a2, type PositionalMetadata as a3, createFunction as a4, createPaginatedFunction as a5, createPluginStack as a6, createCorePlugin as a7, addPlugin as a8, disposeSdk as a9, type Resolver$1 as aA, type ArrayResolver$1 as aB, type ResolverMetadata as aC, type StaticResolver$1 as aD, type DynamicResolver$1 as aE, type DynamicListResolver as aF, type DynamicSearchResolver as aG, type FieldsResolver as aH, type Resolver as aI, type DynamicMember as aJ, type PluginSurface as aK, createController as aL, type ControllerQuestion as aM, type ControllerAction as aN, type ControllerAnswerFn as aO, type ControllerChoice as aP, type ControllerMethodSummary as aQ, type ControllerMethodDescription as aR, type ControllerParameterDescription as aS, runInMethodScope as aT, runWithTelemetryContext as aU, getCallerContext as aV, runWithCallerContext as aW, type CallerContext as aX, toSnakeCase as aY, toTitleCase as aZ, batch as a_, CoreDisposeError as aa, createSdk as ab, CONTEXT as ac, resolvePlugin as ad, fromFunctionPlugin as ae, defineLegacyMerge as af, getContext as ag, declarePlugin as ah, defineMethod as ai, defineMethodOverride as aj, defineProperty as ak, defineResolver as al, defineFormatter as am, declareMethod as an, declareProperty as ao, declareOptionalProperty as ap, selectExports as aq, omitExports as ar, getRegistryPlugin as as, zapierSdkPlugin as at, SDK_OPTIONS_ID as au, sdkOptionsPluginRef as av, type FormattedItem as aw, type BoundFormatter as ax, type Formatter as ay, type OutputFormatter as az, type PluginSummary as b, DebugPropertySchema as b$, buildCapabilityMessage as b0, logDeprecation as b1, resetDeprecationWarnings as b2, RelayRequestSchema as b3, RelayFetchSchema as b4, createZapierSdkWithoutRegistry as b5, zapierCoreOptions as b6, CORE_OPTIONS_ID as b7, type FunctionRegistryEntry as b8, type FunctionDeprecation as b9, isPermanentHttpError as bA, type SseMessage as bB, type JsonSseMessage as bC, DEPRECATION_NOTICE_EVENT as bD, type DeprecationNoticePayload as bE, type AppItem as bF, type ConnectionItem as bG, type ActionItem$1 as bH, type InputFieldItem as bI, type InfoFieldItem as bJ, type RootFieldItem as bK, type UserProfileItem as bL, type SdkPage as bM, type PaginatedSdkFunction as bN, AppKeyPropertySchema as bO, AppPropertySchema as bP, ActionTypePropertySchema as bQ, ActionKeyPropertySchema as bR, ActionPropertySchema as bS, InputFieldPropertySchema as bT, ConnectionIdPropertySchema as bU, AuthenticationIdPropertySchema as bV, ConnectionPropertySchema as bW, InputsPropertySchema as bX, LimitPropertySchema as bY, OffsetPropertySchema as bZ, OutputPropertySchema as b_, BaseSdkOptionsSchema as ba, isCoreError as bb, getCoreErrorCode as bc, getCoreErrorCause as bd, CORE_ERROR_SYMBOL as be, CoreErrorCode as bf, CoreSignal as bg, CoreCancelledSignal as bh, isCoreSignal as bi, CORE_SIGNAL_SYMBOL as bj, type Plugin as bk, type PluginProvides as bl, type MethodOverridePlugin as bm, definePlugin as bn, createPluginMethod as bo, createPaginatedPluginMethod as bp, composePlugins as bq, type ActionItem as br, type ActionTypeItem as bs, type ResolvedAppLocator as bt, getAgent as bu, registryPlugin as bv, type RequestOptions as bw, type PollOptions as bx, createZapierApi as by, getOrCreateApiClient as bz, type PaginatedSdkResult as c, ZapierRelayError as c$, ParamsPropertySchema as c0, ActionTimeoutMsPropertySchema as c1, TablePropertySchema as c2, RecordPropertySchema as c3, RecordsPropertySchema as c4, FieldsPropertySchema as c5, AppsPropertySchema as c6, TablesPropertySchema as c7, ConnectionsPropertySchema as c8, TriggerInboxPropertySchema as c9, type TablesProperty as cA, type ConnectionsProperty as cB, type TriggerInboxProperty as cC, type TriggerInboxKeyProperty as cD, type TriggerInboxNameProperty as cE, type LeaseProperty as cF, type LeaseSecondsProperty as cG, type LeaseLimitProperty as cH, type ErrorOptions as cI, ZapierError as cJ, ZapierValidationError as cK, ZapierUnknownError as cL, ZapierAuthenticationError as cM, zapierAdaptError as cN, ZapierApiError as cO, ZapierAppNotFoundError as cP, ZapierNotFoundError as cQ, ZapierResourceNotFoundError as cR, ZapierConfigurationError as cS, ZapierBundleError as cT, ZapierTimeoutError as cU, ZapierActionError as cV, ZapierConflictError as cW, type RateLimitInfo as cX, ZapierRateLimitError as cY, type ApprovalStatus as cZ, ZapierApprovalError as c_, TriggerInboxKeyPropertySchema as ca, TriggerInboxNamePropertySchema as cb, LeasePropertySchema as cc, LeaseSecondsPropertySchema as cd, LeaseLimitPropertySchema as ce, type AppKeyProperty as cf, type AppProperty as cg, type ActionTypeProperty as ch, type ActionKeyProperty as ci, type ActionProperty as cj, type InputFieldProperty as ck, type ConnectionIdProperty as cl, type ConnectionProperty as cm, type AuthenticationIdProperty as cn, type InputsProperty as co, type LimitProperty as cp, type OffsetProperty as cq, type OutputProperty as cr, type DebugProperty as cs, type ParamsProperty as ct, type ActionTimeoutMsProperty as cu, type TableProperty as cv, type RecordProperty as cw, type RecordsProperty as cx, type FieldsProperty as cy, type AppsProperty as cz, type ManifestProvider as d, tableIdResolver as d$, formatErrorMessage as d0, type CoreApiError as d1, ZapierSignal as d2, appsPlugin as d3, type ActionExecutionOptions as d4, type AppFactoryInput as d5, type FetchPluginProvides as d6, fetchPlugin as d7, listAppsPlugin as d8, type ListAppsPluginProvides as d9, MANIFEST_ID as dA, manifestPluginRef as dB, manifestPlugin as dC, type UpdateManifestEntryOptions as dD, type UpdateManifestEntryResult as dE, DEFAULT_CONFIG_PATH as dF, type ManifestEntry as dG, type ActionEntry as dH, getProfilePlugin as dI, type ApiPluginOptions as dJ, type ResolveCredentialsFn as dK, API_ID as dL, apiPluginRef as dM, apiPlugin as dN, RESOLVE_CREDENTIALS_ID as dO, resolveCredentialsPluginRef as dP, resolveCredentialsPlugin as dQ, appKeyResolver as dR, actionTypeResolver as dS, actionKeyResolver as dT, connectionIdResolver as dU, connectionIdGenericResolver as dV, inputsResolver as dW, inputsAllOptionalResolver as dX, inputFieldKeyResolver as dY, clientCredentialsNameResolver as dZ, clientIdResolver as d_, listActionsPlugin as da, type ListActionsPluginProvides as db, listActionInputFieldsPlugin as dc, type ListActionInputFieldsPluginProvides as dd, listActionInputFieldChoicesPlugin as de, getActionInputFieldsSchemaPlugin as df, listConnectionsPlugin as dg, type ListConnectionsPluginProvides as dh, listClientCredentialsPlugin as di, createClientCredentialsPlugin as dj, deleteClientCredentialsPlugin as dk, getAppPlugin as dl, getActionPlugin as dm, getConnectionPlugin as dn, findFirstConnectionPlugin as dp, findUniqueConnectionPlugin as dq, CONTEXT_CACHE_TTL_MS as dr, CONTEXT_CACHE_MAX_SIZE as ds, runActionPlugin as dt, type RunActionPluginProvides as du, requestPlugin as dv, type ManifestPluginOptions as dw, readManifestFromFile as dx, getPreferredManifestEntryKey as dy, findManifestEntry as dz, type CapabilitiesContext as e, getZapierSdkService as e$, triggerInboxResolver as e0, workflowIdResolver as e1, durableRunIdResolver as e2, workflowVersionIdResolver as e3, workflowRunIdResolver as e4, triggerMessagesResolver as e5, tableRecordIdResolver as e6, tableRecordIdsResolver as e7, tableFieldIdsResolver as e8, tableNameResolver as e9, type ClientCredentialsObject as eA, type PkceCredentialsObject as eB, isClientCredentials as eC, isPkceCredentials as eD, isCredentialsObject as eE, isCredentialsFunction as eF, type ResolveCredentialsOptions as eG, resolveCredentialsFromEnv as eH, resolveCredentials as eI, getBaseUrlFromCredentials as eJ, getClientIdFromCredentials as eK, ClientCredentialsObjectSchema as eL, PkceCredentialsObjectSchema as eM, CredentialsObjectSchema as eN, ResolvedCredentialsSchema as eO, CredentialsFunctionSchema as eP, type CredentialsFunction as eQ, CredentialsSchema as eR, ConnectionEntrySchema as eS, type ConnectionEntry as eT, ConnectionsMapSchema as eU, type ConnectionsMap as eV, type ResolveConnection as eW, CONNECTIONS_ID as eX, connectionsPluginRef as eY, connectionsPlugin as eZ, ZAPIER_BASE_URL as e_, tableFieldsResolver as ea, tableRecordsResolver as eb, tableUpdateRecordsResolver as ec, tableFiltersResolver as ed, tableSortResolver as ee, type ResolveAuthTokenOptions as ef, AuthMechanism as eg, type ResolvedAuth as eh, clearTokenCache as ei, invalidateCachedToken as ej, injectCliLogin as ek, isCliLoginAvailable as el, getTokenFromCliLogin as em, resolveAuth as en, resolveAuthToken as eo, invalidateCredentialsToken as ep, type ZapierCacheEntry as eq, type ZapierCacheSetOptions as er, createMemoryCache as es, type SdkEvent as et, type AuthEvent as eu, type ApiEvent as ev, type LoadingEvent as ew, type Credentials as ex, type ResolvedCredentials as ey, type CredentialsObject as ez, type CoreOptions as f, MAX_PAGE_LIMIT as f0, DEFAULT_PAGE_SIZE as f1, DEFAULT_ACTION_TIMEOUT_MS as f2, ZAPIER_MAX_NETWORK_RETRIES as f3, ZAPIER_MAX_NETWORK_RETRY_DELAY_MS as f4, MAX_CONCURRENCY_LIMIT as f5, parseConcurrencyEnvVar as f6, ZAPIER_MAX_CONCURRENT_REQUESTS as f7, getZapierApprovalMode as f8, getZapierOpenAutoModeApprovalsInBrowser as f9, type MethodCalledEventData as fA, buildApplicationLifecycleEvent as fB, buildErrorEventWithContext as fC, buildErrorEvent as fD, createBaseEvent as fE, buildMethodCalledEvent as fF, type BaseEvent as fG, type MethodCalledEvent as fH, generateEventId as fI, getCurrentTimestamp as fJ, getReleaseId as fK, getOsInfo as fL, getPlatformVersions as fM, isCi as fN, getCiPlatform as fO, getMemoryUsage as fP, getCpuTime as fQ, getTtyContext as fR, createZapierSdk as fS, type ZapierSdkOptions as fT, type ZapierSdk as fU, getZapierDefaultApprovalMode as fa, DEFAULT_APPROVAL_TIMEOUT_MS as fb, DEFAULT_MAX_APPROVAL_RETRIES as fc, listTablesPlugin as fd, getTablePlugin as fe, createTablePlugin as ff, deleteTablePlugin as fg, listTableFieldsPlugin as fh, createTableFieldsPlugin as fi, deleteTableFieldsPlugin as fj, getTableRecordPlugin as fk, listTableRecordsPlugin as fl, createTableRecordsPlugin as fm, deleteTableRecordsPlugin as fn, updateTableRecordsPlugin as fo, cleanupEventListeners as fp, type EventEmissionContext as fq, type EventEmitter as fr, EVENT_EMISSION_ID as fs, eventEmissionPluginRef as ft, eventEmissionPlugin as fu, eventEmissionHookPlugin as fv, type EventTransport as fw, type EventContext as fx, type ApplicationLifecycleEventData as fy, type EnhancedErrorEventData as fz, type ActionProxy as g, type ZapierSdkApps as h, type DrainTriggerInboxOptions as i, type Manifest as j, type EventEmissionConfig as k, type ZapierCache as l, type ListActionsOptions as m, type ListActionInputFieldsOptions as n, type ListActionInputFieldChoicesOptions as o, type PluginMeta as p, DrainTriggerInboxSchema as q, WatchTriggerInboxSchema as r, ZapierAbortDrainSignal as s, ZapierReleaseTriggerMessageSignal as t, type DrainTriggerInboxCallback as u, type DrainTriggerInboxErrorObserver as v, type LeasedTriggerMessageItem as w, type TriggerMessageStatus as x, type ListAuthenticationsPluginProvides as y, type GetAuthenticationPluginProvides as z };
|
|
13779
|
+
export { type NeedsRequest as $, type AggregatePlugin as A, type BaseSdkOptions as B, type ConnectionsProvider as C, type DeleteTriggerInboxResult as D, type EventCallback as E, type FieldsetItem as F, type GetActionInputFieldsSchemaOptions as G, type ListAuthenticationsPluginProvides as H, type GetAuthenticationPluginProvides as I, type FindFirstAuthenticationPluginProvides as J, type FindUniqueAuthenticationPluginProvides as K, type LeafSummary as L, type MethodPlugin as M, type Action as N, type App as O, type PropertyPlugin as P, type Need as Q, type RegistryResult as R, type SdkContext as S, type TriggerInboxCommandSharedFields as T, type Field as U, type Choice as V, type WatchTriggerInboxOptions as W, type ActionExecutionResult as X, type ActionField as Y, type ZapierFetchInitOptions as Z, type ActionFieldChoice as _, type ApiClient as a, toTitleCase as a$, type NeedsResponse as a0, type Connection as a1, type ConnectionsResponse as a2, type UserProfile as a3, isPositional as a4, type PositionalMetadata as a5, createFunction as a6, createPaginatedFunction as a7, createPluginStack as a8, createCorePlugin as a9, type Formatter as aA, type OutputFormatter as aB, type Resolver$1 as aC, type ArrayResolver$1 as aD, type ResolverMetadata as aE, type StaticResolver$1 as aF, type DynamicResolver$1 as aG, type DynamicListResolver as aH, type DynamicSearchResolver as aI, type FieldsResolver as aJ, type Resolver as aK, type DynamicMember as aL, type PluginSurface as aM, createController as aN, type ControllerQuestion as aO, type ControllerAction as aP, type ControllerAnswerFn as aQ, type ControllerChoice as aR, type ControllerMethodSummary as aS, type ControllerMethodDescription as aT, type ControllerParameterDescription as aU, runInMethodScope as aV, runWithTelemetryContext as aW, getCallerContext as aX, runWithCallerContext as aY, type CallerContext as aZ, toSnakeCase as a_, addPlugin as aa, disposeSdk as ab, CoreDisposeError as ac, createSdk as ad, CONTEXT as ae, resolvePlugin as af, fromFunctionPlugin as ag, defineLegacyMerge as ah, getContext as ai, declarePlugin as aj, defineMethod as ak, defineMethodOverride as al, defineProperty as am, defineResolver as an, defineFormatter as ao, declareMethod as ap, declareProperty as aq, declareOptionalProperty as ar, selectExports as as, omitExports as at, getRegistryPlugin as au, zapierSdkPlugin as av, SDK_OPTIONS_ID as aw, sdkOptionsPluginRef as ax, type FormattedItem as ay, type BoundFormatter as az, type PluginSummary as b, LimitPropertySchema as b$, batch as b0, type BatchOptions as b1, buildCapabilityMessage as b2, logDeprecation as b3, resetDeprecationWarnings as b4, RelayRequestSchema as b5, RelayFetchSchema as b6, createZapierSdkWithoutRegistry as b7, zapierCoreOptions as b8, CORE_OPTIONS_ID as b9, type PollOptions as bA, createZapierApi as bB, getOrCreateApiClient as bC, isPermanentHttpError as bD, type SseMessage as bE, type JsonSseMessage as bF, DEPRECATION_NOTICE_EVENT as bG, type DeprecationNoticePayload as bH, type AppItem as bI, type ConnectionItem as bJ, type ActionItem$1 as bK, type InputFieldItem as bL, type InfoFieldItem as bM, type RootFieldItem as bN, type UserProfileItem as bO, type SdkPage as bP, type PaginatedSdkFunction as bQ, AppKeyPropertySchema as bR, AppPropertySchema as bS, ActionTypePropertySchema as bT, ActionKeyPropertySchema as bU, ActionPropertySchema as bV, InputFieldPropertySchema as bW, ConnectionIdPropertySchema as bX, AuthenticationIdPropertySchema as bY, ConnectionPropertySchema as bZ, InputsPropertySchema as b_, type FunctionRegistryEntry as ba, type FunctionDeprecation as bb, BaseSdkOptionsSchema as bc, isCoreError as bd, getCoreErrorCode as be, getCoreErrorCause as bf, CORE_ERROR_SYMBOL as bg, CoreErrorCode as bh, CoreSignal as bi, CoreCancelledSignal as bj, isCoreSignal as bk, isCoreCancelledSignal as bl, CORE_SIGNAL_SYMBOL as bm, type Plugin as bn, type PluginProvides as bo, type MethodOverridePlugin as bp, definePlugin as bq, createPluginMethod as br, createPaginatedPluginMethod as bs, composePlugins as bt, type ActionItem as bu, type ActionTypeItem as bv, type ResolvedAppLocator as bw, getAgent as bx, registryPlugin as by, type RequestOptions as bz, type PaginatedSdkResult as c, ZapierRateLimitError as c$, OffsetPropertySchema as c0, OutputPropertySchema as c1, DebugPropertySchema as c2, ParamsPropertySchema as c3, ActionTimeoutMsPropertySchema as c4, TablePropertySchema as c5, RecordPropertySchema as c6, RecordsPropertySchema as c7, FieldsPropertySchema as c8, AppsPropertySchema as c9, type RecordsProperty as cA, type FieldsProperty as cB, type AppsProperty as cC, type TablesProperty as cD, type ConnectionsProperty as cE, type TriggerInboxProperty as cF, type TriggerInboxKeyProperty as cG, type TriggerInboxNameProperty as cH, type LeaseProperty as cI, type LeaseSecondsProperty as cJ, type LeaseLimitProperty as cK, type ErrorOptions as cL, ZapierError as cM, ZapierValidationError as cN, ZapierUnknownError as cO, ZapierAuthenticationError as cP, zapierAdaptError as cQ, ZapierApiError as cR, ZapierAppNotFoundError as cS, ZapierNotFoundError as cT, ZapierResourceNotFoundError as cU, ZapierConfigurationError as cV, ZapierBundleError as cW, ZapierTimeoutError as cX, ZapierActionError as cY, ZapierConflictError as cZ, type RateLimitInfo as c_, TablesPropertySchema as ca, ConnectionsPropertySchema as cb, TriggerInboxPropertySchema as cc, TriggerInboxKeyPropertySchema as cd, TriggerInboxNamePropertySchema as ce, LeasePropertySchema as cf, LeaseSecondsPropertySchema as cg, LeaseLimitPropertySchema as ch, type AppKeyProperty as ci, type AppProperty as cj, type ActionTypeProperty as ck, type ActionKeyProperty as cl, type ActionProperty as cm, type InputFieldProperty as cn, type ConnectionIdProperty as co, type ConnectionProperty as cp, type AuthenticationIdProperty as cq, type InputsProperty as cr, type LimitProperty as cs, type OffsetProperty as ct, type OutputProperty as cu, type DebugProperty as cv, type ParamsProperty as cw, type ActionTimeoutMsProperty as cx, type TableProperty as cy, type RecordProperty as cz, type ManifestProvider as d, API_ID as d$, type ApprovalStatus as d0, ZapierApprovalError as d1, ZapierRelayError as d2, isZapierError as d3, isZapierValidationError as d4, isZapierAuthenticationError as d5, isZapierAppNotFoundError as d6, isZapierNotFoundError as d7, isZapierResourceNotFoundError as d8, isZapierConflictError as d9, createClientCredentialsPlugin as dA, deleteClientCredentialsPlugin as dB, getAppPlugin as dC, getActionPlugin as dD, getConnectionPlugin as dE, findFirstConnectionPlugin as dF, findUniqueConnectionPlugin as dG, CONTEXT_CACHE_TTL_MS as dH, CONTEXT_CACHE_MAX_SIZE as dI, runActionPlugin as dJ, type RunActionPluginProvides as dK, requestPlugin as dL, type ManifestPluginOptions as dM, readManifestFromFile as dN, getPreferredManifestEntryKey as dO, findManifestEntry as dP, MANIFEST_ID as dQ, manifestPluginRef as dR, manifestPlugin as dS, type UpdateManifestEntryOptions as dT, type UpdateManifestEntryResult as dU, DEFAULT_CONFIG_PATH as dV, type ManifestEntry as dW, type ActionEntry as dX, getProfilePlugin as dY, type ApiPluginOptions as dZ, type ResolveCredentialsFn as d_, isZapierTimeoutError as da, isZapierBundleError as db, isZapierActionError as dc, isZapierRateLimitError as dd, isZapierApprovalError as de, formatErrorMessage as df, type CoreApiError as dg, ZapierSignal as dh, isZapierSignal as di, appsPlugin as dj, type ActionExecutionOptions as dk, type AppFactoryInput as dl, type FetchPluginProvides as dm, fetchPlugin as dn, listAppsPlugin as dp, type ListAppsPluginProvides as dq, listActionsPlugin as dr, type ListActionsPluginProvides as ds, listActionInputFieldsPlugin as dt, type ListActionInputFieldsPluginProvides as du, listActionInputFieldChoicesPlugin as dv, getActionInputFieldsSchemaPlugin as dw, listConnectionsPlugin as dx, type ListConnectionsPluginProvides as dy, listClientCredentialsPlugin as dz, type CapabilitiesContext as e, ClientCredentialsObjectSchema as e$, apiPluginRef as e0, apiPlugin as e1, RESOLVE_CREDENTIALS_ID as e2, resolveCredentialsPluginRef as e3, resolveCredentialsPlugin as e4, appKeyResolver as e5, actionTypeResolver as e6, actionKeyResolver as e7, connectionIdResolver as e8, connectionIdGenericResolver as e9, injectCliLogin as eA, isCliLoginAvailable as eB, getTokenFromCliLogin as eC, resolveAuth as eD, resolveAuthToken as eE, invalidateCredentialsToken as eF, type ZapierCacheEntry as eG, type ZapierCacheSetOptions as eH, createMemoryCache as eI, type SdkEvent as eJ, type AuthEvent as eK, type ApiEvent as eL, type LoadingEvent as eM, type Credentials as eN, type ResolvedCredentials as eO, type CredentialsObject as eP, type ClientCredentialsObject as eQ, type PkceCredentialsObject as eR, isClientCredentials as eS, isPkceCredentials as eT, isCredentialsObject as eU, isCredentialsFunction as eV, type ResolveCredentialsOptions as eW, resolveCredentialsFromEnv as eX, resolveCredentials as eY, getBaseUrlFromCredentials as eZ, getClientIdFromCredentials as e_, inputsResolver as ea, inputsAllOptionalResolver as eb, inputFieldKeyResolver as ec, clientCredentialsNameResolver as ed, clientIdResolver as ee, tableIdResolver as ef, triggerInboxResolver as eg, workflowIdResolver as eh, durableRunIdResolver as ei, workflowVersionIdResolver as ej, workflowRunIdResolver as ek, triggerMessagesResolver as el, tableRecordIdResolver as em, tableRecordIdsResolver as en, tableFieldIdsResolver as eo, tableNameResolver as ep, tableFieldsResolver as eq, tableRecordsResolver as er, tableUpdateRecordsResolver as es, tableFiltersResolver as et, tableSortResolver as eu, type ResolveAuthTokenOptions as ev, AuthMechanism as ew, type ResolvedAuth as ex, clearTokenCache as ey, invalidateCachedToken as ez, type CoreOptions as f, getOsInfo as f$, PkceCredentialsObjectSchema as f0, CredentialsObjectSchema as f1, ResolvedCredentialsSchema as f2, CredentialsFunctionSchema as f3, type CredentialsFunction as f4, CredentialsSchema as f5, ConnectionEntrySchema as f6, type ConnectionEntry as f7, ConnectionsMapSchema as f8, type ConnectionsMap as f9, getTableRecordPlugin as fA, listTableRecordsPlugin as fB, createTableRecordsPlugin as fC, deleteTableRecordsPlugin as fD, updateTableRecordsPlugin as fE, cleanupEventListeners as fF, type EventEmissionContext as fG, type EventEmitter as fH, EVENT_EMISSION_ID as fI, eventEmissionPluginRef as fJ, eventEmissionPlugin as fK, eventEmissionHookPlugin as fL, type EventTransport as fM, type EventContext as fN, type ApplicationLifecycleEventData as fO, type EnhancedErrorEventData as fP, type MethodCalledEventData as fQ, buildApplicationLifecycleEvent as fR, buildErrorEventWithContext as fS, buildErrorEvent as fT, createBaseEvent as fU, buildMethodCalledEvent as fV, type BaseEvent as fW, type MethodCalledEvent as fX, generateEventId as fY, getCurrentTimestamp as fZ, getReleaseId as f_, type ResolveConnection as fa, CONNECTIONS_ID as fb, connectionsPluginRef as fc, connectionsPlugin as fd, ZAPIER_BASE_URL as fe, getZapierSdkService as ff, MAX_PAGE_LIMIT as fg, DEFAULT_PAGE_SIZE as fh, DEFAULT_ACTION_TIMEOUT_MS as fi, ZAPIER_MAX_NETWORK_RETRIES as fj, ZAPIER_MAX_NETWORK_RETRY_DELAY_MS as fk, MAX_CONCURRENCY_LIMIT as fl, parseConcurrencyEnvVar as fm, ZAPIER_MAX_CONCURRENT_REQUESTS as fn, getZapierApprovalMode as fo, getZapierOpenAutoModeApprovalsInBrowser as fp, getZapierDefaultApprovalMode as fq, DEFAULT_APPROVAL_TIMEOUT_MS as fr, DEFAULT_MAX_APPROVAL_RETRIES as fs, listTablesPlugin as ft, getTablePlugin as fu, createTablePlugin as fv, deleteTablePlugin as fw, listTableFieldsPlugin as fx, createTableFieldsPlugin as fy, deleteTableFieldsPlugin as fz, type ActionProxy as g, getPlatformVersions as g0, isCi as g1, getCiPlatform as g2, getMemoryUsage as g3, getCpuTime as g4, getTtyContext as g5, createZapierSdk as g6, type ZapierSdkOptions as g7, type ZapierSdk as g8, type ZapierSdkApps as h, type DrainTriggerInboxOptions as i, type Manifest as j, type EventEmissionConfig as k, type ZapierCache as l, type ListActionsOptions as m, type ListActionInputFieldsOptions as n, type ListActionInputFieldChoicesOptions as o, type PluginMeta as p, DrainTriggerInboxSchema as q, WatchTriggerInboxSchema as r, ZapierAbortDrainSignal as s, ZapierReleaseTriggerMessageSignal as t, isZapierAbortDrainSignal as u, isZapierReleaseTriggerMessageSignal as v, type DrainTriggerInboxCallback as w, type DrainTriggerInboxErrorObserver as x, type LeasedTriggerMessageItem as y, type TriggerMessageStatus as z };
|