@zapier/zapier-sdk 0.56.2 → 0.58.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.
Files changed (52) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/README.md +28 -20
  3. package/dist/experimental.cjs +35 -10
  4. package/dist/experimental.d.mts +12 -2
  5. package/dist/experimental.d.ts +10 -0
  6. package/dist/experimental.d.ts.map +1 -1
  7. package/dist/experimental.mjs +34 -11
  8. package/dist/{index-CjP7lGzL.d.mts → index-eliz1Uq3.d.mts} +38 -1
  9. package/dist/{index-CjP7lGzL.d.ts → index-eliz1Uq3.d.ts} +38 -1
  10. package/dist/index.cjs +35 -10
  11. package/dist/index.d.mts +1 -1
  12. package/dist/index.d.ts +1 -3
  13. package/dist/index.d.ts.map +1 -1
  14. package/dist/index.js +1 -1
  15. package/dist/index.mjs +34 -11
  16. package/dist/plugins/eventEmission/index.d.ts +1 -1
  17. package/dist/plugins/eventEmission/index.d.ts.map +1 -1
  18. package/dist/plugins/tables/createTableFields/index.d.ts +1 -0
  19. package/dist/plugins/tables/createTableFields/index.d.ts.map +1 -1
  20. package/dist/plugins/tables/createTableFields/schemas.d.ts +2 -0
  21. package/dist/plugins/tables/createTableFields/schemas.d.ts.map +1 -1
  22. package/dist/plugins/tables/createTableRecords/index.d.ts +1 -0
  23. package/dist/plugins/tables/createTableRecords/index.d.ts.map +1 -1
  24. package/dist/plugins/tables/createTableRecords/schemas.d.ts +2 -0
  25. package/dist/plugins/tables/createTableRecords/schemas.d.ts.map +1 -1
  26. package/dist/plugins/tables/getTableRecord/index.d.ts +1 -0
  27. package/dist/plugins/tables/getTableRecord/index.d.ts.map +1 -1
  28. package/dist/plugins/tables/getTableRecord/schemas.d.ts +3 -0
  29. package/dist/plugins/tables/getTableRecord/schemas.d.ts.map +1 -1
  30. package/dist/plugins/tables/getTableRecord/schemas.js +2 -0
  31. package/dist/plugins/tables/listTableFields/index.d.ts +3 -0
  32. package/dist/plugins/tables/listTableFields/index.d.ts.map +1 -1
  33. package/dist/plugins/tables/listTableFields/index.js +3 -0
  34. package/dist/plugins/tables/listTableFields/schemas.d.ts +23 -0
  35. package/dist/plugins/tables/listTableFields/schemas.d.ts.map +1 -1
  36. package/dist/plugins/tables/listTableFields/schemas.js +4 -0
  37. package/dist/plugins/tables/listTableRecords/index.d.ts +3 -0
  38. package/dist/plugins/tables/listTableRecords/index.d.ts.map +1 -1
  39. package/dist/plugins/tables/listTableRecords/index.js +7 -1
  40. package/dist/plugins/tables/listTableRecords/schemas.d.ts +21 -0
  41. package/dist/plugins/tables/listTableRecords/schemas.d.ts.map +1 -1
  42. package/dist/plugins/tables/listTableRecords/schemas.js +2 -1
  43. package/dist/plugins/tables/updateTableRecords/index.d.ts +1 -0
  44. package/dist/plugins/tables/updateTableRecords/index.d.ts.map +1 -1
  45. package/dist/plugins/tables/updateTableRecords/schemas.d.ts +2 -0
  46. package/dist/plugins/tables/updateTableRecords/schemas.d.ts.map +1 -1
  47. package/dist/plugins/tables/utils.d.ts +6 -0
  48. package/dist/plugins/tables/utils.d.ts.map +1 -1
  49. package/dist/plugins/tables/utils.js +6 -0
  50. package/dist/sdk.d.ts +20 -0
  51. package/dist/sdk.d.ts.map +1 -1
  52. package/package.json +1 -1
@@ -1196,6 +1196,11 @@ declare function getMemoryUsage(): number | null;
1196
1196
  */
1197
1197
  declare function getCpuTime(): number | null;
1198
1198
 
1199
+ /**
1200
+ * Removes all registered process event listeners.
1201
+ * Useful for test cleanup to prevent listener accumulation.
1202
+ */
1203
+ declare function cleanupEventListeners(): void;
1199
1204
  interface EventEmissionConfig {
1200
1205
  enabled?: boolean;
1201
1206
  transport?: TransportConfig;
@@ -3165,10 +3170,12 @@ declare function createZapierSdkWithoutRegistry(options?: ZapierSdkOptions): Wit
3165
3170
  table: string;
3166
3171
  fields?: (string | number)[] | undefined;
3167
3172
  fieldKeys?: (string | number)[] | undefined;
3173
+ trash?: "include" | "exclude" | "only" | undefined;
3168
3174
  } | {
3169
3175
  tableId: string;
3170
3176
  fields?: (string | number)[] | undefined;
3171
3177
  fieldKeys?: (string | number)[] | undefined;
3178
+ trash?: "include" | "exclude" | "only" | undefined;
3172
3179
  } | undefined) => Promise<{
3173
3180
  data: {
3174
3181
  id: string;
@@ -3178,6 +3185,7 @@ declare function createZapierSdkWithoutRegistry(options?: ZapierSdkOptions): Wit
3178
3185
  edited_at?: string | undefined;
3179
3186
  options?: Record<string, unknown> | undefined;
3180
3187
  config?: Record<string, unknown> | undefined;
3188
+ deleted_at?: string | null | undefined;
3181
3189
  }[];
3182
3190
  }>;
3183
3191
  } & {
@@ -3212,6 +3220,7 @@ declare function createZapierSdkWithoutRegistry(options?: ZapierSdkOptions): Wit
3212
3220
  edited_at?: string | undefined;
3213
3221
  options?: Record<string, unknown> | undefined;
3214
3222
  config?: Record<string, unknown> | undefined;
3223
+ deleted_at?: string | null | undefined;
3215
3224
  }[];
3216
3225
  }>;
3217
3226
  } & {
@@ -3251,6 +3260,7 @@ declare function createZapierSdkWithoutRegistry(options?: ZapierSdkOptions): Wit
3251
3260
  id: string;
3252
3261
  created_at: string;
3253
3262
  edited_at: string;
3263
+ deleted_at?: string | null | undefined;
3254
3264
  };
3255
3265
  }>;
3256
3266
  } & {
@@ -3275,6 +3285,7 @@ declare function createZapierSdkWithoutRegistry(options?: ZapierSdkOptions): Wit
3275
3285
  pageSize?: number | undefined;
3276
3286
  maxItems?: number | undefined;
3277
3287
  cursor?: string | undefined;
3288
+ trash?: "include" | "exclude" | "only" | undefined;
3278
3289
  } | {
3279
3290
  tableId: string;
3280
3291
  keyMode: "names" | "ids";
@@ -3290,6 +3301,7 @@ declare function createZapierSdkWithoutRegistry(options?: ZapierSdkOptions): Wit
3290
3301
  pageSize?: number | undefined;
3291
3302
  maxItems?: number | undefined;
3292
3303
  cursor?: string | undefined;
3304
+ trash?: "include" | "exclude" | "only" | undefined;
3293
3305
  }) & {
3294
3306
  cursor?: string;
3295
3307
  pageSize?: number;
@@ -3299,6 +3311,7 @@ declare function createZapierSdkWithoutRegistry(options?: ZapierSdkOptions): Wit
3299
3311
  data: Record<string, unknown>;
3300
3312
  created_at: string;
3301
3313
  edited_at: string;
3314
+ deleted_at?: string | null | undefined;
3302
3315
  }>;
3303
3316
  } & {
3304
3317
  context: {
@@ -3325,6 +3338,7 @@ declare function createZapierSdkWithoutRegistry(options?: ZapierSdkOptions): Wit
3325
3338
  id: string;
3326
3339
  created_at: string;
3327
3340
  edited_at: string;
3341
+ deleted_at?: string | null | undefined;
3328
3342
  }[];
3329
3343
  }>;
3330
3344
  } & {
@@ -3370,6 +3384,7 @@ declare function createZapierSdkWithoutRegistry(options?: ZapierSdkOptions): Wit
3370
3384
  id: string;
3371
3385
  created_at: string;
3372
3386
  edited_at: string;
3387
+ deleted_at?: string | null | undefined;
3373
3388
  }[];
3374
3389
  }>;
3375
3390
  } & {
@@ -4945,10 +4960,12 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
4945
4960
  table: string;
4946
4961
  fields?: (string | number)[] | undefined;
4947
4962
  fieldKeys?: (string | number)[] | undefined;
4963
+ trash?: "include" | "exclude" | "only" | undefined;
4948
4964
  } | {
4949
4965
  tableId: string;
4950
4966
  fields?: (string | number)[] | undefined;
4951
4967
  fieldKeys?: (string | number)[] | undefined;
4968
+ trash?: "include" | "exclude" | "only" | undefined;
4952
4969
  } | undefined) => Promise<{
4953
4970
  data: {
4954
4971
  id: string;
@@ -4958,6 +4975,7 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
4958
4975
  edited_at?: string | undefined;
4959
4976
  options?: Record<string, unknown> | undefined;
4960
4977
  config?: Record<string, unknown> | undefined;
4978
+ deleted_at?: string | null | undefined;
4961
4979
  }[];
4962
4980
  }>;
4963
4981
  } & {
@@ -4992,6 +5010,7 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
4992
5010
  edited_at?: string | undefined;
4993
5011
  options?: Record<string, unknown> | undefined;
4994
5012
  config?: Record<string, unknown> | undefined;
5013
+ deleted_at?: string | null | undefined;
4995
5014
  }[];
4996
5015
  }>;
4997
5016
  } & {
@@ -5031,6 +5050,7 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
5031
5050
  id: string;
5032
5051
  created_at: string;
5033
5052
  edited_at: string;
5053
+ deleted_at?: string | null | undefined;
5034
5054
  };
5035
5055
  }>;
5036
5056
  } & {
@@ -5055,6 +5075,7 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
5055
5075
  pageSize?: number | undefined;
5056
5076
  maxItems?: number | undefined;
5057
5077
  cursor?: string | undefined;
5078
+ trash?: "include" | "exclude" | "only" | undefined;
5058
5079
  } | {
5059
5080
  tableId: string;
5060
5081
  keyMode: "names" | "ids";
@@ -5070,6 +5091,7 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
5070
5091
  pageSize?: number | undefined;
5071
5092
  maxItems?: number | undefined;
5072
5093
  cursor?: string | undefined;
5094
+ trash?: "include" | "exclude" | "only" | undefined;
5073
5095
  }) & {
5074
5096
  cursor?: string;
5075
5097
  pageSize?: number;
@@ -5079,6 +5101,7 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
5079
5101
  data: Record<string, unknown>;
5080
5102
  created_at: string;
5081
5103
  edited_at: string;
5104
+ deleted_at?: string | null | undefined;
5082
5105
  }>;
5083
5106
  } & {
5084
5107
  context: {
@@ -5105,6 +5128,7 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
5105
5128
  id: string;
5106
5129
  created_at: string;
5107
5130
  edited_at: string;
5131
+ deleted_at?: string | null | undefined;
5108
5132
  }[];
5109
5133
  }>;
5110
5134
  } & {
@@ -5150,6 +5174,7 @@ declare function createZapierSdk(options?: ZapierSdkOptions): WithAddPlugin<{
5150
5174
  id: string;
5151
5175
  created_at: string;
5152
5176
  edited_at: string;
5177
+ deleted_at?: string | null | undefined;
5153
5178
  }[];
5154
5179
  }>;
5155
5180
  } & {
@@ -8566,6 +8591,7 @@ declare const RecordItemSchema: z.ZodObject<{
8566
8591
  data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
8567
8592
  created_at: z.ZodString;
8568
8593
  edited_at: z.ZodString;
8594
+ deleted_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8569
8595
  }, z.core.$strip>;
8570
8596
  type RecordItem = z.infer<typeof RecordItemSchema>;
8571
8597
 
@@ -8615,6 +8641,7 @@ declare const FieldItemSchema: z.ZodObject<{
8615
8641
  edited_at: z.ZodOptional<z.ZodString>;
8616
8642
  options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
8617
8643
  config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
8644
+ deleted_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8618
8645
  }, z.core.$strip>;
8619
8646
  type FieldItem = z.infer<typeof FieldItemSchema>;
8620
8647
 
@@ -9134,10 +9161,12 @@ declare const listTableFieldsPlugin: (sdk: {
9134
9161
  table: string;
9135
9162
  fields?: (string | number)[] | undefined;
9136
9163
  fieldKeys?: (string | number)[] | undefined;
9164
+ trash?: "include" | "exclude" | "only" | undefined;
9137
9165
  } | {
9138
9166
  tableId: string;
9139
9167
  fields?: (string | number)[] | undefined;
9140
9168
  fieldKeys?: (string | number)[] | undefined;
9169
+ trash?: "include" | "exclude" | "only" | undefined;
9141
9170
  } | undefined) => Promise<{
9142
9171
  data: {
9143
9172
  id: string;
@@ -9147,6 +9176,7 @@ declare const listTableFieldsPlugin: (sdk: {
9147
9176
  edited_at?: string | undefined;
9148
9177
  options?: Record<string, unknown> | undefined;
9149
9178
  config?: Record<string, unknown> | undefined;
9179
+ deleted_at?: string | null | undefined;
9150
9180
  }[];
9151
9181
  }>;
9152
9182
  } & {
@@ -9206,6 +9236,7 @@ declare const createTableFieldsPlugin: (sdk: {
9206
9236
  edited_at?: string | undefined;
9207
9237
  options?: Record<string, unknown> | undefined;
9208
9238
  config?: Record<string, unknown> | undefined;
9239
+ deleted_at?: string | null | undefined;
9209
9240
  }[];
9210
9241
  }>;
9211
9242
  } & {
@@ -9295,6 +9326,7 @@ declare const getTableRecordPlugin: (sdk: {
9295
9326
  id: string;
9296
9327
  created_at: string;
9297
9328
  edited_at: string;
9329
+ deleted_at?: string | null | undefined;
9298
9330
  };
9299
9331
  }>;
9300
9332
  } & {
@@ -9344,6 +9376,7 @@ declare const listTableRecordsPlugin: (sdk: {
9344
9376
  pageSize?: number | undefined;
9345
9377
  maxItems?: number | undefined;
9346
9378
  cursor?: string | undefined;
9379
+ trash?: "include" | "exclude" | "only" | undefined;
9347
9380
  } | {
9348
9381
  tableId: string;
9349
9382
  keyMode: "names" | "ids";
@@ -9359,6 +9392,7 @@ declare const listTableRecordsPlugin: (sdk: {
9359
9392
  pageSize?: number | undefined;
9360
9393
  maxItems?: number | undefined;
9361
9394
  cursor?: string | undefined;
9395
+ trash?: "include" | "exclude" | "only" | undefined;
9362
9396
  }) & {
9363
9397
  cursor?: string;
9364
9398
  pageSize?: number;
@@ -9368,6 +9402,7 @@ declare const listTableRecordsPlugin: (sdk: {
9368
9402
  data: Record<string, unknown>;
9369
9403
  created_at: string;
9370
9404
  edited_at: string;
9405
+ deleted_at?: string | null | undefined;
9371
9406
  }>;
9372
9407
  } & {
9373
9408
  context: {
@@ -9419,6 +9454,7 @@ declare const createTableRecordsPlugin: (sdk: {
9419
9454
  id: string;
9420
9455
  created_at: string;
9421
9456
  edited_at: string;
9457
+ deleted_at?: string | null | undefined;
9422
9458
  }[];
9423
9459
  }>;
9424
9460
  } & {
@@ -9514,6 +9550,7 @@ declare const updateTableRecordsPlugin: (sdk: {
9514
9550
  id: string;
9515
9551
  created_at: string;
9516
9552
  edited_at: string;
9553
+ deleted_at?: string | null | undefined;
9517
9554
  }[];
9518
9555
  }>;
9519
9556
  } & {
@@ -9778,4 +9815,4 @@ declare const registryPlugin: (sdk: {
9778
9815
  };
9779
9816
  }) => {};
9780
9817
 
9781
- export { type Resolver as $, type ApiClient as A, type BaseSdkOptions as B, type CapabilitiesContext as C, type DrainTriggerInboxOptions as D, type EventEmissionContext as E, type FieldsetItem as F, type GetAuthenticationPluginProvides as G, type ActionFieldChoice as H, type NeedsRequest as I, type NeedsResponse as J, type Connection as K, type LeasedTriggerMessageItem as L, type Manifest as M, type Need as N, type ConnectionsResponse as O, type PluginMeta as P, type UserProfile as Q, type ResolvedAppLocator as R, isPositional as S, type TriggerMessageStatus as T, type UpdateManifestEntryOptions as U, createFunction as V, type WithAddPlugin as W, type FormattedItem as X, type FormatMetadata as Y, type ZapierSdkOptions as Z, type OutputFormatter as _, type UpdateManifestEntryResult as a, type FunctionOptions as a$, type ArrayResolver as a0, type ResolverMetadata as a1, type StaticResolver as a2, type DynamicListResolver as a3, type DynamicSearchResolver as a4, type FieldsResolver as a5, runWithTelemetryContext as a6, toSnakeCase as a7, toTitleCase as a8, batch as a9, type MethodCalledEvent as aA, type EventEmissionProvides as aB, type EventContext as aC, type ApplicationLifecycleEventData as aD, type EnhancedErrorEventData as aE, type MethodCalledEventData as aF, generateEventId as aG, getCurrentTimestamp as aH, getReleaseId as aI, getOsInfo as aJ, getPlatformVersions as aK, isCi as aL, getCiPlatform as aM, getMemoryUsage as aN, getCpuTime as aO, buildApplicationLifecycleEvent as aP, buildErrorEventWithContext as aQ, buildErrorEvent as aR, createBaseEvent as aS, buildMethodCalledEvent as aT, type AppItem as aU, type ConnectionItem as aV, type ActionItem$1 as aW, type InputFieldItem as aX, type InfoFieldItem as aY, type RootFieldItem as aZ, type UserProfileItem as a_, type BatchOptions as aa, buildCapabilityMessage as ab, logDeprecation as ac, resetDeprecationWarnings as ad, RelayRequestSchema as ae, RelayFetchSchema as af, createZapierSdkWithoutRegistry as ag, createSdk as ah, createOptionsPlugin as ai, type FunctionRegistryEntry as aj, type FunctionDeprecation as ak, BaseSdkOptionsSchema as al, type Plugin as am, type PluginProvides as an, definePlugin as ao, createPluginMethod as ap, createPaginatedPluginMethod as aq, composePlugins as ar, type ActionItem as as, type ActionTypeItem as at, registryPlugin as au, type RequestOptions as av, type PollOptions as aw, createZapierApi as ax, getOrCreateApiClient as ay, type BaseEvent as az, type AddActionEntryOptions as b, ZapierValidationError as b$, type SdkPage as b0, type PaginatedSdkFunction as b1, AppKeyPropertySchema as b2, AppPropertySchema as b3, ActionTypePropertySchema as b4, ActionKeyPropertySchema as b5, ActionPropertySchema as b6, InputFieldPropertySchema as b7, ConnectionIdPropertySchema as b8, AuthenticationIdPropertySchema as b9, type ConnectionIdProperty as bA, type ConnectionProperty as bB, type AuthenticationIdProperty as bC, type InputsProperty as bD, type LimitProperty as bE, type OffsetProperty as bF, type OutputProperty as bG, type DebugProperty as bH, type ParamsProperty as bI, type ActionTimeoutMsProperty as bJ, type TableProperty as bK, type RecordProperty as bL, type RecordsProperty as bM, type FieldsProperty as bN, type AppsProperty as bO, type TablesProperty as bP, type ConnectionsProperty as bQ, type TriggerInboxProperty as bR, type TriggerInboxNameProperty as bS, type LeaseProperty as bT, type LeaseSecondsProperty as bU, type LeaseLimitProperty as bV, type ApiError as bW, type ErrorOptions as bX, ZapierError as bY, ZapierApiError as bZ, ZapierAppNotFoundError as b_, ConnectionPropertySchema as ba, InputsPropertySchema as bb, LimitPropertySchema as bc, OffsetPropertySchema as bd, OutputPropertySchema as be, DebugPropertySchema as bf, ParamsPropertySchema as bg, ActionTimeoutMsPropertySchema as bh, TablePropertySchema as bi, RecordPropertySchema as bj, RecordsPropertySchema as bk, FieldsPropertySchema as bl, AppsPropertySchema as bm, TablesPropertySchema as bn, ConnectionsPropertySchema as bo, TriggerInboxPropertySchema as bp, TriggerInboxNamePropertySchema as bq, LeasePropertySchema as br, LeaseSecondsPropertySchema as bs, LeaseLimitPropertySchema as bt, type AppKeyProperty as bu, type AppProperty as bv, type ActionTypeProperty as bw, type ActionKeyProperty as bx, type ActionProperty as by, type InputFieldProperty as bz, type AddActionEntryResult as c, type GetProfilePluginProvides as c$, ZapierUnknownError as c0, ZapierAuthenticationError as c1, ZapierNotFoundError as c2, ZapierResourceNotFoundError as c3, ZapierConfigurationError as c4, ZapierBundleError as c5, ZapierTimeoutError as c6, ZapierActionError as c7, ZapierConflictError as c8, type RateLimitInfo as c9, createClientCredentialsPlugin as cA, type CreateClientCredentialsPluginProvides as cB, deleteClientCredentialsPlugin as cC, type DeleteClientCredentialsPluginProvides as cD, getAppPlugin as cE, type GetAppPluginProvides as cF, getActionPlugin as cG, type GetActionPluginProvides as cH, getConnectionPlugin as cI, type GetConnectionPluginProvides as cJ, findFirstConnectionPlugin as cK, type FindFirstConnectionPluginProvides as cL, findUniqueConnectionPlugin as cM, type FindUniqueConnectionPluginProvides as cN, CONTEXT_CACHE_TTL_MS as cO, CONTEXT_CACHE_MAX_SIZE as cP, runActionPlugin as cQ, type RunActionPluginProvides as cR, requestPlugin as cS, type RequestPluginProvides as cT, type ManifestPluginOptions as cU, getPreferredManifestEntryKey as cV, manifestPlugin as cW, type ManifestPluginProvides as cX, DEFAULT_CONFIG_PATH as cY, type ManifestEntry as cZ, getProfilePlugin as c_, ZapierRateLimitError as ca, type ApprovalStatus as cb, ZapierApprovalError as cc, ZapierRelayError as cd, formatErrorMessage as ce, ZapierSignal as cf, appsPlugin as cg, type AppsPluginProvides as ch, type ActionExecutionOptions as ci, type AppFactoryInput as cj, fetchPlugin as ck, type FetchPluginProvides as cl, listAppsPlugin as cm, type ListAppsPluginProvides as cn, listActionsPlugin as co, type ListActionsPluginProvides as cp, listActionInputFieldsPlugin as cq, type ListActionInputFieldsPluginProvides as cr, listActionInputFieldChoicesPlugin as cs, type ListActionInputFieldChoicesPluginProvides as ct, getActionInputFieldsSchemaPlugin as cu, type GetActionInputFieldsSchemaPluginProvides as cv, listConnectionsPlugin as cw, type ListConnectionsPluginProvides as cx, listClientCredentialsPlugin as cy, type ListClientCredentialsPluginProvides as cz, type ActionEntry as d, CredentialsSchema as d$, type ApiPluginOptions as d0, apiPlugin as d1, type ApiPluginProvides as d2, appKeyResolver as d3, actionTypeResolver as d4, actionKeyResolver as d5, connectionIdResolver as d6, connectionIdGenericResolver as d7, inputsResolver as d8, inputsAllOptionalResolver as d9, type ZapierCacheSetOptions as dA, createMemoryCache as dB, type SdkEvent as dC, type AuthEvent as dD, type ApiEvent as dE, type LoadingEvent as dF, type EventCallback as dG, type Credentials as dH, type ResolvedCredentials as dI, type CredentialsObject as dJ, type ClientCredentialsObject as dK, type PkceCredentialsObject as dL, isClientCredentials as dM, isPkceCredentials as dN, isCredentialsObject as dO, isCredentialsFunction as dP, type ResolveCredentialsOptions as dQ, resolveCredentialsFromEnv as dR, resolveCredentials as dS, getBaseUrlFromCredentials as dT, getClientIdFromCredentials as dU, ClientCredentialsObjectSchema as dV, PkceCredentialsObjectSchema as dW, CredentialsObjectSchema as dX, ResolvedCredentialsSchema as dY, CredentialsFunctionSchema as dZ, type CredentialsFunction as d_, inputFieldKeyResolver as da, clientCredentialsNameResolver as db, clientIdResolver as dc, tableIdResolver as dd, triggerInboxResolver as de, triggerMessagesResolver as df, tableRecordIdResolver as dg, tableRecordIdsResolver as dh, tableFieldIdsResolver as di, tableNameResolver as dj, tableFieldsResolver as dk, tableRecordsResolver as dl, tableUpdateRecordsResolver as dm, tableFiltersResolver as dn, tableSortResolver as dp, type ResolveAuthTokenOptions as dq, clearTokenCache as dr, invalidateCachedToken as ds, injectCliLogin as dt, isCliLoginAvailable as du, getTokenFromCliLogin as dv, resolveAuthToken as dw, invalidateCredentialsToken as dx, type ZapierCache as dy, type ZapierCacheEntry as dz, type PaginatedSdkResult as e, ConnectionEntrySchema as e0, type ConnectionEntry as e1, ConnectionsMapSchema as e2, type ConnectionsMap as e3, connectionsPlugin as e4, type ConnectionsPluginProvides as e5, ZAPIER_BASE_URL as e6, getZapierSdkService as e7, MAX_PAGE_LIMIT as e8, DEFAULT_PAGE_SIZE as e9, listTableRecordsPlugin as eA, type ListTableRecordsPluginProvides as eB, createTableRecordsPlugin as eC, type CreateTableRecordsPluginProvides as eD, deleteTableRecordsPlugin as eE, type DeleteTableRecordsPluginProvides as eF, updateTableRecordsPlugin as eG, type UpdateTableRecordsPluginProvides as eH, createZapierSdk as eI, type ZapierSdk as eJ, DEFAULT_ACTION_TIMEOUT_MS as ea, ZAPIER_MAX_NETWORK_RETRIES as eb, ZAPIER_MAX_NETWORK_RETRY_DELAY_MS as ec, MAX_CONCURRENCY_LIMIT as ed, parseConcurrencyEnvVar as ee, ZAPIER_MAX_CONCURRENT_REQUESTS as ef, getZapierApprovalMode as eg, getZapierDefaultApprovalMode as eh, DEFAULT_APPROVAL_TIMEOUT_MS as ei, DEFAULT_MAX_APPROVAL_RETRIES as ej, listTablesPlugin as ek, type ListTablesPluginProvides as el, getTablePlugin as em, type GetTablePluginProvides as en, createTablePlugin as eo, type CreateTablePluginProvides as ep, deleteTablePlugin as eq, type DeleteTablePluginProvides as er, listTableFieldsPlugin as es, type ListTableFieldsPluginProvides as et, createTableFieldsPlugin as eu, type CreateTableFieldsPluginProvides as ev, deleteTableFieldsPlugin as ew, type DeleteTableFieldsPluginProvides as ex, getTableRecordPlugin as ey, type GetTableRecordPluginProvides as ez, findManifestEntry as f, type PositionalMetadata as g, type ZapierFetchInitOptions as h, type DynamicResolver as i, type WatchTriggerInboxOptions as j, type ActionProxy as k, type ZapierSdkApps as l, ZapierAbortDrainSignal as m, ZapierReleaseTriggerMessageSignal as n, type DrainTriggerInboxCallback as o, type DrainTriggerInboxErrorObserver as p, type ListAuthenticationsPluginProvides as q, readManifestFromFile as r, type FindFirstAuthenticationPluginProvides as s, type FindUniqueAuthenticationPluginProvides as t, type Action as u, type App as v, type Field as w, type Choice as x, type ActionExecutionResult as y, type ActionField as z };
9818
+ export { type Resolver as $, type ApiClient as A, type BaseSdkOptions as B, type CapabilitiesContext as C, type DrainTriggerInboxOptions as D, type EventEmissionContext as E, type FieldsetItem as F, type GetAuthenticationPluginProvides as G, type ActionFieldChoice as H, type NeedsRequest as I, type NeedsResponse as J, type Connection as K, type LeasedTriggerMessageItem as L, type Manifest as M, type Need as N, type ConnectionsResponse as O, type PluginMeta as P, type UserProfile as Q, type ResolvedAppLocator as R, isPositional as S, type TriggerMessageStatus as T, type UpdateManifestEntryOptions as U, createFunction as V, type WithAddPlugin as W, type FormattedItem as X, type FormatMetadata as Y, type ZapierSdkOptions as Z, type OutputFormatter as _, type UpdateManifestEntryResult as a, RecordsPropertySchema as a$, type ArrayResolver as a0, type ResolverMetadata as a1, type StaticResolver as a2, type DynamicListResolver as a3, type DynamicSearchResolver as a4, type FieldsResolver as a5, runWithTelemetryContext as a6, toSnakeCase as a7, toTitleCase as a8, batch as a9, type ConnectionItem as aA, type ActionItem$1 as aB, type InputFieldItem as aC, type InfoFieldItem as aD, type RootFieldItem as aE, type UserProfileItem as aF, type FunctionOptions as aG, type SdkPage as aH, type PaginatedSdkFunction as aI, AppKeyPropertySchema as aJ, AppPropertySchema as aK, ActionTypePropertySchema as aL, ActionKeyPropertySchema as aM, ActionPropertySchema as aN, InputFieldPropertySchema as aO, ConnectionIdPropertySchema as aP, AuthenticationIdPropertySchema as aQ, ConnectionPropertySchema as aR, InputsPropertySchema as aS, LimitPropertySchema as aT, OffsetPropertySchema as aU, OutputPropertySchema as aV, DebugPropertySchema as aW, ParamsPropertySchema as aX, ActionTimeoutMsPropertySchema as aY, TablePropertySchema as aZ, RecordPropertySchema as a_, type BatchOptions as aa, buildCapabilityMessage as ab, logDeprecation as ac, resetDeprecationWarnings as ad, RelayRequestSchema as ae, RelayFetchSchema as af, createZapierSdkWithoutRegistry as ag, createSdk as ah, createOptionsPlugin as ai, type FunctionRegistryEntry as aj, type FunctionDeprecation as ak, BaseSdkOptionsSchema as al, type Plugin as am, type PluginProvides as an, definePlugin as ao, createPluginMethod as ap, createPaginatedPluginMethod as aq, composePlugins as ar, type ActionItem as as, type ActionTypeItem as at, registryPlugin as au, type RequestOptions as av, type PollOptions as aw, createZapierApi as ax, getOrCreateApiClient as ay, type AppItem as az, type AddActionEntryOptions as b, fetchPlugin as b$, FieldsPropertySchema as b0, AppsPropertySchema as b1, TablesPropertySchema as b2, ConnectionsPropertySchema as b3, TriggerInboxPropertySchema as b4, TriggerInboxNamePropertySchema as b5, LeasePropertySchema as b6, LeaseSecondsPropertySchema as b7, LeaseLimitPropertySchema as b8, type AppKeyProperty as b9, type LeaseLimitProperty as bA, type ApiError as bB, type ErrorOptions as bC, ZapierError as bD, ZapierApiError as bE, ZapierAppNotFoundError as bF, ZapierValidationError as bG, ZapierUnknownError as bH, ZapierAuthenticationError as bI, ZapierNotFoundError as bJ, ZapierResourceNotFoundError as bK, ZapierConfigurationError as bL, ZapierBundleError as bM, ZapierTimeoutError as bN, ZapierActionError as bO, ZapierConflictError as bP, type RateLimitInfo as bQ, ZapierRateLimitError as bR, type ApprovalStatus as bS, ZapierApprovalError as bT, ZapierRelayError as bU, formatErrorMessage as bV, ZapierSignal as bW, appsPlugin as bX, type AppsPluginProvides as bY, type ActionExecutionOptions as bZ, type AppFactoryInput as b_, type AppProperty as ba, type ActionTypeProperty as bb, type ActionKeyProperty as bc, type ActionProperty as bd, type InputFieldProperty as be, type ConnectionIdProperty as bf, type ConnectionProperty as bg, type AuthenticationIdProperty as bh, type InputsProperty as bi, type LimitProperty as bj, type OffsetProperty as bk, type OutputProperty as bl, type DebugProperty as bm, type ParamsProperty as bn, type ActionTimeoutMsProperty as bo, type TableProperty as bp, type RecordProperty as bq, type RecordsProperty as br, type FieldsProperty as bs, type AppsProperty as bt, type TablesProperty as bu, type ConnectionsProperty as bv, type TriggerInboxProperty as bw, type TriggerInboxNameProperty as bx, type LeaseProperty as by, type LeaseSecondsProperty as bz, type AddActionEntryResult as c, tableFieldsResolver as c$, type FetchPluginProvides as c0, listAppsPlugin as c1, type ListAppsPluginProvides as c2, listActionsPlugin as c3, type ListActionsPluginProvides as c4, listActionInputFieldsPlugin as c5, type ListActionInputFieldsPluginProvides as c6, listActionInputFieldChoicesPlugin as c7, type ListActionInputFieldChoicesPluginProvides as c8, getActionInputFieldsSchemaPlugin as c9, getPreferredManifestEntryKey as cA, manifestPlugin as cB, type ManifestPluginProvides as cC, DEFAULT_CONFIG_PATH as cD, type ManifestEntry as cE, getProfilePlugin as cF, type GetProfilePluginProvides as cG, type ApiPluginOptions as cH, apiPlugin as cI, type ApiPluginProvides as cJ, appKeyResolver as cK, actionTypeResolver as cL, actionKeyResolver as cM, connectionIdResolver as cN, connectionIdGenericResolver as cO, inputsResolver as cP, inputsAllOptionalResolver as cQ, inputFieldKeyResolver as cR, clientCredentialsNameResolver as cS, clientIdResolver as cT, tableIdResolver as cU, triggerInboxResolver as cV, triggerMessagesResolver as cW, tableRecordIdResolver as cX, tableRecordIdsResolver as cY, tableFieldIdsResolver as cZ, tableNameResolver as c_, type GetActionInputFieldsSchemaPluginProvides as ca, listConnectionsPlugin as cb, type ListConnectionsPluginProvides as cc, listClientCredentialsPlugin as cd, type ListClientCredentialsPluginProvides as ce, createClientCredentialsPlugin as cf, type CreateClientCredentialsPluginProvides as cg, deleteClientCredentialsPlugin as ch, type DeleteClientCredentialsPluginProvides as ci, getAppPlugin as cj, type GetAppPluginProvides as ck, getActionPlugin as cl, type GetActionPluginProvides as cm, getConnectionPlugin as cn, type GetConnectionPluginProvides as co, findFirstConnectionPlugin as cp, type FindFirstConnectionPluginProvides as cq, findUniqueConnectionPlugin as cr, type FindUniqueConnectionPluginProvides as cs, CONTEXT_CACHE_TTL_MS as ct, CONTEXT_CACHE_MAX_SIZE as cu, runActionPlugin as cv, type RunActionPluginProvides as cw, requestPlugin as cx, type RequestPluginProvides as cy, type ManifestPluginOptions as cz, type ActionEntry as d, listTablesPlugin as d$, tableRecordsResolver as d0, tableUpdateRecordsResolver as d1, tableFiltersResolver as d2, tableSortResolver as d3, type ResolveAuthTokenOptions as d4, clearTokenCache as d5, invalidateCachedToken as d6, injectCliLogin as d7, isCliLoginAvailable as d8, getTokenFromCliLogin as d9, ClientCredentialsObjectSchema as dA, PkceCredentialsObjectSchema as dB, CredentialsObjectSchema as dC, ResolvedCredentialsSchema as dD, CredentialsFunctionSchema as dE, type CredentialsFunction as dF, CredentialsSchema as dG, ConnectionEntrySchema as dH, type ConnectionEntry as dI, ConnectionsMapSchema as dJ, type ConnectionsMap as dK, connectionsPlugin as dL, type ConnectionsPluginProvides as dM, ZAPIER_BASE_URL as dN, getZapierSdkService as dO, MAX_PAGE_LIMIT as dP, DEFAULT_PAGE_SIZE as dQ, DEFAULT_ACTION_TIMEOUT_MS as dR, ZAPIER_MAX_NETWORK_RETRIES as dS, ZAPIER_MAX_NETWORK_RETRY_DELAY_MS as dT, MAX_CONCURRENCY_LIMIT as dU, parseConcurrencyEnvVar as dV, ZAPIER_MAX_CONCURRENT_REQUESTS as dW, getZapierApprovalMode as dX, getZapierDefaultApprovalMode as dY, DEFAULT_APPROVAL_TIMEOUT_MS as dZ, DEFAULT_MAX_APPROVAL_RETRIES as d_, resolveAuthToken as da, invalidateCredentialsToken as db, type ZapierCache as dc, type ZapierCacheEntry as dd, type ZapierCacheSetOptions as de, createMemoryCache as df, type SdkEvent as dg, type AuthEvent as dh, type ApiEvent as di, type LoadingEvent as dj, type EventCallback as dk, type Credentials as dl, type ResolvedCredentials as dm, type CredentialsObject as dn, type ClientCredentialsObject as dp, type PkceCredentialsObject as dq, isClientCredentials as dr, isPkceCredentials as ds, isCredentialsObject as dt, isCredentialsFunction as du, type ResolveCredentialsOptions as dv, resolveCredentialsFromEnv as dw, resolveCredentials as dx, getBaseUrlFromCredentials as dy, getClientIdFromCredentials as dz, type PaginatedSdkResult as e, type ListTablesPluginProvides as e0, getTablePlugin as e1, type GetTablePluginProvides as e2, createTablePlugin as e3, type CreateTablePluginProvides as e4, deleteTablePlugin as e5, type DeleteTablePluginProvides as e6, listTableFieldsPlugin as e7, type ListTableFieldsPluginProvides as e8, createTableFieldsPlugin as e9, type BaseEvent as eA, type MethodCalledEvent as eB, generateEventId as eC, getCurrentTimestamp as eD, getReleaseId as eE, getOsInfo as eF, getPlatformVersions as eG, isCi as eH, getCiPlatform as eI, getMemoryUsage as eJ, getCpuTime as eK, createZapierSdk as eL, type ZapierSdk as eM, type CreateTableFieldsPluginProvides as ea, deleteTableFieldsPlugin as eb, type DeleteTableFieldsPluginProvides as ec, getTableRecordPlugin as ed, type GetTableRecordPluginProvides as ee, listTableRecordsPlugin as ef, type ListTableRecordsPluginProvides as eg, createTableRecordsPlugin as eh, type CreateTableRecordsPluginProvides as ei, deleteTableRecordsPlugin as ej, type DeleteTableRecordsPluginProvides as ek, updateTableRecordsPlugin as el, type UpdateTableRecordsPluginProvides as em, cleanupEventListeners as en, type EventEmissionConfig as eo, eventEmissionPlugin as ep, type EventEmissionProvides as eq, type EventContext as er, type ApplicationLifecycleEventData as es, type EnhancedErrorEventData as et, type MethodCalledEventData as eu, buildApplicationLifecycleEvent as ev, buildErrorEventWithContext as ew, buildErrorEvent as ex, createBaseEvent as ey, buildMethodCalledEvent as ez, findManifestEntry as f, type PositionalMetadata as g, type ZapierFetchInitOptions as h, type DynamicResolver as i, type WatchTriggerInboxOptions as j, type ActionProxy as k, type ZapierSdkApps as l, ZapierAbortDrainSignal as m, ZapierReleaseTriggerMessageSignal as n, type DrainTriggerInboxCallback as o, type DrainTriggerInboxErrorObserver as p, type ListAuthenticationsPluginProvides as q, readManifestFromFile as r, type FindFirstAuthenticationPluginProvides as s, type FindUniqueAuthenticationPluginProvides as t, type Action as u, type App as v, type Field as w, type Choice as x, type ActionExecutionResult as y, type ActionField as z };
package/dist/index.cjs CHANGED
@@ -2647,7 +2647,8 @@ function transformFieldItem(apiItem) {
2647
2647
  created_at: apiItem.created_at,
2648
2648
  edited_at: apiItem.edited_at,
2649
2649
  options: apiItem.options,
2650
- config: apiItem.config
2650
+ config: apiItem.config,
2651
+ deleted_at: apiItem.deleted_at
2651
2652
  };
2652
2653
  }
2653
2654
  function transformRecordItem(apiItem) {
@@ -2655,7 +2656,8 @@ function transformRecordItem(apiItem) {
2655
2656
  id: apiItem.id,
2656
2657
  data: apiItem.data,
2657
2658
  created_at: apiItem.created_at,
2658
- edited_at: apiItem.edited_at
2659
+ edited_at: apiItem.edited_at,
2660
+ deleted_at: apiItem.deleted_at
2659
2661
  };
2660
2662
  }
2661
2663
  function formatRecordError(fieldId, err) {
@@ -2699,6 +2701,9 @@ function throwOnResponseErrors(response) {
2699
2701
  var KeyModeSchema = zod.z.enum(["names", "ids"]).optional().default("names").describe(
2700
2702
  'How to interpret field keys in record data. "names" (default) uses human-readable field names, "ids" uses raw field IDs (f1, f2).'
2701
2703
  );
2704
+ var TrashSchema = zod.z.enum(["exclude", "include", "only"]).optional().describe(
2705
+ 'Control soft-deleted item visibility. "exclude" (default) returns active items only, "include" returns both active and soft-deleted, "only" returns soft-deleted items only.'
2706
+ );
2702
2707
  var FIELD_ID_PATTERN = /^f\d+$/;
2703
2708
  function isFieldId(key) {
2704
2709
  return FIELD_ID_PATTERN.test(key);
@@ -2949,7 +2954,8 @@ var FieldApiItemSchema = zod.z.object({
2949
2954
  config: zod.z.record(zod.z.string(), zod.z.unknown()).optional(),
2950
2955
  is_order_field: zod.z.boolean().optional(),
2951
2956
  is_filter_field: zod.z.boolean().optional(),
2952
- is_selected_field: zod.z.boolean().optional()
2957
+ is_selected_field: zod.z.boolean().optional(),
2958
+ deleted_at: zod.z.string().nullable().optional()
2953
2959
  });
2954
2960
  var ListTableFieldsApiResponseSchema = zod.z.object({
2955
2961
  data: zod.z.array(FieldApiItemSchema)
@@ -2961,7 +2967,8 @@ var FieldItemSchemaBase = zod.z.object({
2961
2967
  created_at: zod.z.string().optional(),
2962
2968
  edited_at: zod.z.string().optional(),
2963
2969
  options: zod.z.record(zod.z.string(), zod.z.unknown()).optional(),
2964
- config: zod.z.record(zod.z.string(), zod.z.unknown()).optional()
2970
+ config: zod.z.record(zod.z.string(), zod.z.unknown()).optional(),
2971
+ deleted_at: zod.z.string().nullable().optional()
2965
2972
  });
2966
2973
  var FieldItemSchema = withFormatter(FieldItemSchemaBase, {
2967
2974
  format: (item) => ({
@@ -2975,7 +2982,8 @@ var ListTableFieldsOptionsBaseSchema = zod.z.object({
2975
2982
  fields: FieldsPropertySchema.optional(),
2976
2983
  fieldKeys: zod.z.array(zod.z.union([zod.z.string(), zod.z.number()])).optional().describe(
2977
2984
  'Filter by specific fields. Accepts field names (e.g., "Email") or IDs (e.g., "f6", "6", or 6).'
2978
- ).meta({ deprecated: true })
2985
+ ).meta({ deprecated: true }),
2986
+ trash: TrashSchema
2979
2987
  });
2980
2988
  var ListTableFieldsOptionsSchema = zod.z.object({
2981
2989
  table: TablePropertySchema
@@ -6322,7 +6330,7 @@ async function invalidateCredentialsToken(options) {
6322
6330
  }
6323
6331
 
6324
6332
  // src/sdk-version.ts
6325
- var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.56.2" : void 0) || "unknown";
6333
+ var SDK_VERSION = (typeof process !== "undefined" && process.env ? "0.58.0" : void 0) || "unknown";
6326
6334
 
6327
6335
  // src/utils/open-url.ts
6328
6336
  var nodePrefix = "node:";
@@ -7652,6 +7660,9 @@ var listTableFieldsPlugin = definePlugin(
7652
7660
  });
7653
7661
  searchParams.field_ids = numericIds.join(",");
7654
7662
  }
7663
+ if (options.trash) {
7664
+ searchParams.trash = options.trash;
7665
+ }
7655
7666
  const rawResponse = await api.get(
7656
7667
  `/tables/api/v1/tables/${tableId}/fields`,
7657
7668
  {
@@ -7782,13 +7793,15 @@ var RecordApiItemSchema = zod.z.object({
7782
7793
  schema_revision_id: zod.z.number(),
7783
7794
  errors: zod.z.record(zod.z.string(), zod.z.unknown()).nullable().optional(),
7784
7795
  orig_data: zod.z.record(zod.z.string(), zod.z.unknown()).nullable().optional(),
7785
- is_source_record: zod.z.boolean().nullable().optional()
7796
+ is_source_record: zod.z.boolean().nullable().optional(),
7797
+ deleted_at: zod.z.string().nullable().optional()
7786
7798
  });
7787
7799
  var RecordItemSchemaBase = zod.z.object({
7788
7800
  id: zod.z.string(),
7789
7801
  data: zod.z.record(zod.z.string(), zod.z.unknown()),
7790
7802
  created_at: zod.z.string(),
7791
- edited_at: zod.z.string()
7803
+ edited_at: zod.z.string(),
7804
+ deleted_at: zod.z.string().nullable().optional()
7792
7805
  });
7793
7806
  var RecordItemSchema = withFormatter(RecordItemSchemaBase, {
7794
7807
  format: (item) => ({
@@ -7918,7 +7931,8 @@ var ListTableRecordsBase = zod.z.object({
7918
7931
  pageSize: zod.z.number().min(1).max(1e3).optional().describe("Number of records per page (max 1000)"),
7919
7932
  maxItems: zod.z.number().min(1).optional().describe("Maximum total items to return across all pages"),
7920
7933
  cursor: zod.z.string().optional().describe("Cursor to start from"),
7921
- keyMode: KeyModeSchema
7934
+ keyMode: KeyModeSchema,
7935
+ trash: TrashSchema
7922
7936
  });
7923
7937
  var ListTableRecordsOptionsSchema = zod.z.object({
7924
7938
  table: TablePropertySchema
@@ -7983,11 +7997,17 @@ var listTableRecordsPlugin = definePlugin(
7983
7997
  start_cursor: options.cursor
7984
7998
  };
7985
7999
  }
8000
+ const searchParams = {
8001
+ allow_nested_queries: "true"
8002
+ };
8003
+ if (options.trash) {
8004
+ searchParams.trash = options.trash;
8005
+ }
7986
8006
  const rawResponse = await api.post(
7987
8007
  `/tables/api/v1/tables/${tableId}/records/query`,
7988
8008
  body,
7989
8009
  {
7990
- searchParams: { allow_nested_queries: "true" },
8010
+ searchParams,
7991
8011
  authRequired: true,
7992
8012
  resource: { type: "table", id: tableId }
7993
8013
  }
@@ -8677,6 +8697,9 @@ function removeExistingListeners() {
8677
8697
  }
8678
8698
  registeredListeners = {};
8679
8699
  }
8700
+ function cleanupEventListeners() {
8701
+ removeExistingListeners();
8702
+ }
8680
8703
  var APPLICATION_LIFECYCLE_EVENT_SUBJECT = "platform.sdk.ApplicationLifecycleEvent";
8681
8704
  var ERROR_OCCURRED_EVENT_SUBJECT = "platform.sdk.ErrorOccurredEvent";
8682
8705
  var METHOD_CALLED_EVENT_SUBJECT = "platform.sdk.MethodCalledEvent";
@@ -9237,6 +9260,7 @@ exports.buildCapabilityMessage = buildCapabilityMessage;
9237
9260
  exports.buildErrorEvent = buildErrorEvent;
9238
9261
  exports.buildErrorEventWithContext = buildErrorEventWithContext;
9239
9262
  exports.buildMethodCalledEvent = buildMethodCalledEvent;
9263
+ exports.cleanupEventListeners = cleanupEventListeners;
9240
9264
  exports.clearTokenCache = clearTokenCache;
9241
9265
  exports.clientCredentialsNameResolver = clientCredentialsNameResolver;
9242
9266
  exports.clientIdResolver = clientIdResolver;
@@ -9263,6 +9287,7 @@ exports.deleteClientCredentialsPlugin = deleteClientCredentialsPlugin;
9263
9287
  exports.deleteTableFieldsPlugin = deleteTableFieldsPlugin;
9264
9288
  exports.deleteTablePlugin = deleteTablePlugin;
9265
9289
  exports.deleteTableRecordsPlugin = deleteTableRecordsPlugin;
9290
+ exports.eventEmissionPlugin = eventEmissionPlugin;
9266
9291
  exports.fetchPlugin = fetchPlugin;
9267
9292
  exports.findFirstConnectionPlugin = findFirstConnectionPlugin;
9268
9293
  exports.findManifestEntry = findManifestEntry;
package/dist/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- export { u as Action, d as ActionEntry, ci as ActionExecutionOptions, y as ActionExecutionResult, z as ActionField, H as ActionFieldChoice, aW as ActionItem, bx as ActionKeyProperty, b5 as ActionKeyPropertySchema, by as ActionProperty, b6 as ActionPropertySchema, as as ActionResolverItem, bJ as ActionTimeoutMsProperty, bh as ActionTimeoutMsPropertySchema, at as ActionTypeItem, bw as ActionTypeProperty, b4 as ActionTypePropertySchema, b as AddActionEntryOptions, c as AddActionEntryResult, A as ApiClient, bW as ApiError, dE as ApiEvent, d0 as ApiPluginOptions, d2 as ApiPluginProvides, v as App, cj as AppFactoryInput, aU as AppItem, bu as AppKeyProperty, b2 as AppKeyPropertySchema, bv as AppProperty, b3 as AppPropertySchema, aD as ApplicationLifecycleEventData, cb as ApprovalStatus, ch as AppsPluginProvides, bO as AppsProperty, bm as AppsPropertySchema, a0 as ArrayResolver, dD as AuthEvent, bC as AuthenticationIdProperty, b9 as AuthenticationIdPropertySchema, az as BaseEvent, al as BaseSdkOptionsSchema, aa as BatchOptions, cP as CONTEXT_CACHE_MAX_SIZE, cO as CONTEXT_CACHE_TTL_MS, x as Choice, dK as ClientCredentialsObject, dV as ClientCredentialsObjectSchema, K as Connection, e1 as ConnectionEntry, e0 as ConnectionEntrySchema, bA as ConnectionIdProperty, b8 as ConnectionIdPropertySchema, aV as ConnectionItem, bB as ConnectionProperty, ba as ConnectionPropertySchema, e3 as ConnectionsMap, e2 as ConnectionsMapSchema, e5 as ConnectionsPluginProvides, bQ as ConnectionsProperty, bo as ConnectionsPropertySchema, O as ConnectionsResponse, cB as CreateClientCredentialsPluginProvides, ev as CreateTableFieldsPluginProvides, ep as CreateTablePluginProvides, eD as CreateTableRecordsPluginProvides, dH as Credentials, d_ as CredentialsFunction, dZ as CredentialsFunctionSchema, dJ as CredentialsObject, dX as CredentialsObjectSchema, d$ as CredentialsSchema, ea as DEFAULT_ACTION_TIMEOUT_MS, ei as DEFAULT_APPROVAL_TIMEOUT_MS, cY as DEFAULT_CONFIG_PATH, ej as DEFAULT_MAX_APPROVAL_RETRIES, e9 as DEFAULT_PAGE_SIZE, bH as DebugProperty, bf as DebugPropertySchema, cD as DeleteClientCredentialsPluginProvides, ex as DeleteTableFieldsPluginProvides, er as DeleteTablePluginProvides, eF as DeleteTableRecordsPluginProvides, o as DrainTriggerInboxCallback, p as DrainTriggerInboxErrorObserver, D as DrainTriggerInboxOptions, a3 as DynamicListResolver, i as DynamicResolver, a4 as DynamicSearchResolver, aE as EnhancedErrorEventData, bX as ErrorOptions, dG as EventCallback, aC as EventContext, E as EventEmissionContext, aB as EventEmissionProvides, cl as FetchPluginProvides, w as Field, bN as FieldsProperty, bl as FieldsPropertySchema, a5 as FieldsResolver, F as FieldsetItem, s as FindFirstAuthenticationPluginProvides, cL as FindFirstConnectionPluginProvides, t as FindUniqueAuthenticationPluginProvides, cN as FindUniqueConnectionPluginProvides, Y as FormatMetadata, X as FormattedItem, ak as FunctionDeprecation, a$ as FunctionOptions, aj as FunctionRegistryEntry, cv as GetActionInputFieldsSchemaPluginProvides, cH as GetActionPluginProvides, cF as GetAppPluginProvides, G as GetAuthenticationPluginProvides, cJ as GetConnectionPluginProvides, c$ as GetProfilePluginProvides, en as GetTablePluginProvides, ez as GetTableRecordPluginProvides, aY as InfoFieldItem, aX as InputFieldItem, bz as InputFieldProperty, b7 as InputFieldPropertySchema, bD as InputsProperty, bb as InputsPropertySchema, bV as LeaseLimitProperty, bt as LeaseLimitPropertySchema, bT as LeaseProperty, br as LeasePropertySchema, bU as LeaseSecondsProperty, bs as LeaseSecondsPropertySchema, L as LeasedTriggerMessageItem, bE as LimitProperty, bc as LimitPropertySchema, ct as ListActionInputFieldChoicesPluginProvides, cr as ListActionInputFieldsPluginProvides, cp as ListActionsPluginProvides, cn as ListAppsPluginProvides, q as ListAuthenticationsPluginProvides, cz as ListClientCredentialsPluginProvides, cx as ListConnectionsPluginProvides, et as ListTableFieldsPluginProvides, eB as ListTableRecordsPluginProvides, el as ListTablesPluginProvides, dF as LoadingEvent, ed as MAX_CONCURRENCY_LIMIT, e8 as MAX_PAGE_LIMIT, M as Manifest, cZ as ManifestEntry, cU as ManifestPluginOptions, cX as ManifestPluginProvides, aA as MethodCalledEvent, aF as MethodCalledEventData, N as Need, I as NeedsRequest, J as NeedsResponse, bF as OffsetProperty, bd as OffsetPropertySchema, _ as OutputFormatter, bG as OutputProperty, be as OutputPropertySchema, b1 as PaginatedSdkFunction, e as PaginatedSdkResult, bI as ParamsProperty, bg as ParamsPropertySchema, dL as PkceCredentialsObject, dW as PkceCredentialsObjectSchema, am as Plugin, P as PluginMeta, an as PluginProvides, aw as PollOptions, g as PositionalMetadata, c9 as RateLimitInfo, bL as RecordProperty, bj as RecordPropertySchema, bM as RecordsProperty, bk as RecordsPropertySchema, af as RelayFetchSchema, ae as RelayRequestSchema, av as RequestOptions, cT as RequestPluginProvides, dq as ResolveAuthTokenOptions, dQ as ResolveCredentialsOptions, R as ResolvedAppLocator, dI as ResolvedCredentials, dY as ResolvedCredentialsSchema, $ as Resolver, a1 as ResolverMetadata, aZ as RootFieldItem, cR as RunActionPluginProvides, dC as SdkEvent, b0 as SdkPage, a2 as StaticResolver, bK as TableProperty, bi as TablePropertySchema, bP as TablesProperty, bn as TablesPropertySchema, bS as TriggerInboxNameProperty, bq as TriggerInboxNamePropertySchema, bR as TriggerInboxProperty, bp as TriggerInboxPropertySchema, T as TriggerMessageStatus, U as UpdateManifestEntryOptions, a as UpdateManifestEntryResult, eH as UpdateTableRecordsPluginProvides, Q as UserProfile, a_ as UserProfileItem, j as WatchTriggerInboxOptions, W as WithAddPlugin, e6 as ZAPIER_BASE_URL, ef as ZAPIER_MAX_CONCURRENT_REQUESTS, eb as ZAPIER_MAX_NETWORK_RETRIES, ec as ZAPIER_MAX_NETWORK_RETRY_DELAY_MS, m as ZapierAbortDrainSignal, c7 as ZapierActionError, bZ as ZapierApiError, b_ as ZapierAppNotFoundError, cc as ZapierApprovalError, c1 as ZapierAuthenticationError, c5 as ZapierBundleError, dy as ZapierCache, dz as ZapierCacheEntry, dA as ZapierCacheSetOptions, c4 as ZapierConfigurationError, c8 as ZapierConflictError, bY as ZapierError, h as ZapierFetchInitOptions, c2 as ZapierNotFoundError, ca as ZapierRateLimitError, cd as ZapierRelayError, n as ZapierReleaseTriggerMessageSignal, c3 as ZapierResourceNotFoundError, eJ as ZapierSdk, l as ZapierSdkApps, Z as ZapierSdkOptions, cf as ZapierSignal, c6 as ZapierTimeoutError, c0 as ZapierUnknownError, b$ as ZapierValidationError, d5 as actionKeyResolver, d4 as actionTypeResolver, d1 as apiPlugin, d3 as appKeyResolver, cg as appsPlugin, d7 as authenticationIdGenericResolver, d6 as authenticationIdResolver, a9 as batch, aP as buildApplicationLifecycleEvent, ab as buildCapabilityMessage, aR as buildErrorEvent, aQ as buildErrorEventWithContext, aT as buildMethodCalledEvent, dr as clearTokenCache, db as clientCredentialsNameResolver, dc as clientIdResolver, ar as composePlugins, d7 as connectionIdGenericResolver, d6 as connectionIdResolver, e4 as connectionsPlugin, aS as createBaseEvent, cA as createClientCredentialsPlugin, V as createFunction, dB as createMemoryCache, ai as createOptionsPlugin, aq as createPaginatedPluginMethod, ap as createPluginMethod, ah as createSdk, eu as createTableFieldsPlugin, eo as createTablePlugin, eC as createTableRecordsPlugin, ax as createZapierApi, eI as createZapierSdk, ag as createZapierSdkWithoutRegistry, ao as definePlugin, cC as deleteClientCredentialsPlugin, ew as deleteTableFieldsPlugin, eq as deleteTablePlugin, eE as deleteTableRecordsPlugin, ck as fetchPlugin, cK as findFirstConnectionPlugin, f as findManifestEntry, cM as findUniqueConnectionPlugin, ce as formatErrorMessage, aG as generateEventId, cu as getActionInputFieldsSchemaPlugin, cG as getActionPlugin, cE as getAppPlugin, dT as getBaseUrlFromCredentials, aM as getCiPlatform, dU as getClientIdFromCredentials, cI as getConnectionPlugin, aO as getCpuTime, aH as getCurrentTimestamp, aN as getMemoryUsage, ay as getOrCreateApiClient, aJ as getOsInfo, aK as getPlatformVersions, cV as getPreferredManifestEntryKey, c_ as getProfilePlugin, aI as getReleaseId, em as getTablePlugin, ey as getTableRecordPlugin, dv as getTokenFromCliLogin, eg as getZapierApprovalMode, eh as getZapierDefaultApprovalMode, e7 as getZapierSdkService, dt as injectCliLogin, da as inputFieldKeyResolver, d9 as inputsAllOptionalResolver, d8 as inputsResolver, ds as invalidateCachedToken, dx as invalidateCredentialsToken, aL as isCi, du as isCliLoginAvailable, dM as isClientCredentials, dP as isCredentialsFunction, dO as isCredentialsObject, dN as isPkceCredentials, S as isPositional, cs as listActionInputFieldChoicesPlugin, cq as listActionInputFieldsPlugin, co as listActionsPlugin, cm as listAppsPlugin, cy as listClientCredentialsPlugin, cw as listConnectionsPlugin, es as listTableFieldsPlugin, eA as listTableRecordsPlugin, ek as listTablesPlugin, ac as logDeprecation, cW as manifestPlugin, ee as parseConcurrencyEnvVar, r as readManifestFromFile, au as registryPlugin, cS as requestPlugin, ad as resetDeprecationWarnings, dw as resolveAuthToken, dS as resolveCredentials, dR as resolveCredentialsFromEnv, cQ as runActionPlugin, a6 as runWithTelemetryContext, di as tableFieldIdsResolver, dk as tableFieldsResolver, dn as tableFiltersResolver, dd as tableIdResolver, dj as tableNameResolver, dg as tableRecordIdResolver, dh as tableRecordIdsResolver, dl as tableRecordsResolver, dp as tableSortResolver, dm as tableUpdateRecordsResolver, a7 as toSnakeCase, a8 as toTitleCase, de as triggerInboxResolver, df as triggerMessagesResolver, eG as updateTableRecordsPlugin } from './index-CjP7lGzL.mjs';
1
+ export { u as Action, d as ActionEntry, bZ as ActionExecutionOptions, y as ActionExecutionResult, z as ActionField, H as ActionFieldChoice, aB as ActionItem, bc as ActionKeyProperty, aM as ActionKeyPropertySchema, bd as ActionProperty, aN as ActionPropertySchema, as as ActionResolverItem, bo as ActionTimeoutMsProperty, aY as ActionTimeoutMsPropertySchema, at as ActionTypeItem, bb as ActionTypeProperty, aL as ActionTypePropertySchema, b as AddActionEntryOptions, c as AddActionEntryResult, A as ApiClient, bB as ApiError, di as ApiEvent, cH as ApiPluginOptions, cJ as ApiPluginProvides, v as App, b_ as AppFactoryInput, az as AppItem, b9 as AppKeyProperty, aJ as AppKeyPropertySchema, ba as AppProperty, aK as AppPropertySchema, es as ApplicationLifecycleEventData, bS as ApprovalStatus, bY as AppsPluginProvides, bt as AppsProperty, b1 as AppsPropertySchema, a0 as ArrayResolver, dh as AuthEvent, bh as AuthenticationIdProperty, aQ as AuthenticationIdPropertySchema, eA as BaseEvent, al as BaseSdkOptionsSchema, aa as BatchOptions, cu as CONTEXT_CACHE_MAX_SIZE, ct as CONTEXT_CACHE_TTL_MS, x as Choice, dp as ClientCredentialsObject, dA as ClientCredentialsObjectSchema, K as Connection, dI as ConnectionEntry, dH as ConnectionEntrySchema, bf as ConnectionIdProperty, aP as ConnectionIdPropertySchema, aA as ConnectionItem, bg as ConnectionProperty, aR as ConnectionPropertySchema, dK as ConnectionsMap, dJ as ConnectionsMapSchema, dM as ConnectionsPluginProvides, bv as ConnectionsProperty, b3 as ConnectionsPropertySchema, O as ConnectionsResponse, cg as CreateClientCredentialsPluginProvides, ea as CreateTableFieldsPluginProvides, e4 as CreateTablePluginProvides, ei as CreateTableRecordsPluginProvides, dl as Credentials, dF as CredentialsFunction, dE as CredentialsFunctionSchema, dn as CredentialsObject, dC as CredentialsObjectSchema, dG as CredentialsSchema, dR as DEFAULT_ACTION_TIMEOUT_MS, dZ as DEFAULT_APPROVAL_TIMEOUT_MS, cD as DEFAULT_CONFIG_PATH, d_ as DEFAULT_MAX_APPROVAL_RETRIES, dQ as DEFAULT_PAGE_SIZE, bm as DebugProperty, aW as DebugPropertySchema, ci as DeleteClientCredentialsPluginProvides, ec as DeleteTableFieldsPluginProvides, e6 as DeleteTablePluginProvides, ek as DeleteTableRecordsPluginProvides, o as DrainTriggerInboxCallback, p as DrainTriggerInboxErrorObserver, D as DrainTriggerInboxOptions, a3 as DynamicListResolver, i as DynamicResolver, a4 as DynamicSearchResolver, et as EnhancedErrorEventData, bC as ErrorOptions, dk as EventCallback, er as EventContext, eo as EventEmissionConfig, E as EventEmissionContext, eq as EventEmissionProvides, c0 as FetchPluginProvides, w as Field, bs as FieldsProperty, b0 as FieldsPropertySchema, a5 as FieldsResolver, F as FieldsetItem, s as FindFirstAuthenticationPluginProvides, cq as FindFirstConnectionPluginProvides, t as FindUniqueAuthenticationPluginProvides, cs as FindUniqueConnectionPluginProvides, Y as FormatMetadata, X as FormattedItem, ak as FunctionDeprecation, aG as FunctionOptions, aj as FunctionRegistryEntry, ca as GetActionInputFieldsSchemaPluginProvides, cm as GetActionPluginProvides, ck as GetAppPluginProvides, G as GetAuthenticationPluginProvides, co as GetConnectionPluginProvides, cG as GetProfilePluginProvides, e2 as GetTablePluginProvides, ee as GetTableRecordPluginProvides, aD as InfoFieldItem, aC as InputFieldItem, be as InputFieldProperty, aO as InputFieldPropertySchema, bi as InputsProperty, aS as InputsPropertySchema, bA as LeaseLimitProperty, b8 as LeaseLimitPropertySchema, by as LeaseProperty, b6 as LeasePropertySchema, bz as LeaseSecondsProperty, b7 as LeaseSecondsPropertySchema, L as LeasedTriggerMessageItem, bj as LimitProperty, aT as LimitPropertySchema, c8 as ListActionInputFieldChoicesPluginProvides, c6 as ListActionInputFieldsPluginProvides, c4 as ListActionsPluginProvides, c2 as ListAppsPluginProvides, q as ListAuthenticationsPluginProvides, ce as ListClientCredentialsPluginProvides, cc as ListConnectionsPluginProvides, e8 as ListTableFieldsPluginProvides, eg as ListTableRecordsPluginProvides, e0 as ListTablesPluginProvides, dj as LoadingEvent, dU as MAX_CONCURRENCY_LIMIT, dP as MAX_PAGE_LIMIT, M as Manifest, cE as ManifestEntry, cz as ManifestPluginOptions, cC as ManifestPluginProvides, eB as MethodCalledEvent, eu as MethodCalledEventData, N as Need, I as NeedsRequest, J as NeedsResponse, bk as OffsetProperty, aU as OffsetPropertySchema, _ as OutputFormatter, bl as OutputProperty, aV as OutputPropertySchema, aI as PaginatedSdkFunction, e as PaginatedSdkResult, bn as ParamsProperty, aX as ParamsPropertySchema, dq as PkceCredentialsObject, dB as PkceCredentialsObjectSchema, am as Plugin, P as PluginMeta, an as PluginProvides, aw as PollOptions, g as PositionalMetadata, bQ as RateLimitInfo, bq as RecordProperty, a_ as RecordPropertySchema, br as RecordsProperty, a$ as RecordsPropertySchema, af as RelayFetchSchema, ae as RelayRequestSchema, av as RequestOptions, cy as RequestPluginProvides, d4 as ResolveAuthTokenOptions, dv as ResolveCredentialsOptions, R as ResolvedAppLocator, dm as ResolvedCredentials, dD as ResolvedCredentialsSchema, $ as Resolver, a1 as ResolverMetadata, aE as RootFieldItem, cw as RunActionPluginProvides, dg as SdkEvent, aH as SdkPage, a2 as StaticResolver, bp as TableProperty, aZ as TablePropertySchema, bu as TablesProperty, b2 as TablesPropertySchema, bx as TriggerInboxNameProperty, b5 as TriggerInboxNamePropertySchema, bw as TriggerInboxProperty, b4 as TriggerInboxPropertySchema, T as TriggerMessageStatus, U as UpdateManifestEntryOptions, a as UpdateManifestEntryResult, em as UpdateTableRecordsPluginProvides, Q as UserProfile, aF as UserProfileItem, j as WatchTriggerInboxOptions, W as WithAddPlugin, dN as ZAPIER_BASE_URL, dW as ZAPIER_MAX_CONCURRENT_REQUESTS, dS as ZAPIER_MAX_NETWORK_RETRIES, dT as ZAPIER_MAX_NETWORK_RETRY_DELAY_MS, m as ZapierAbortDrainSignal, bO as ZapierActionError, bE as ZapierApiError, bF as ZapierAppNotFoundError, bT as ZapierApprovalError, bI as ZapierAuthenticationError, bM as ZapierBundleError, dc as ZapierCache, dd as ZapierCacheEntry, de as ZapierCacheSetOptions, bL as ZapierConfigurationError, bP as ZapierConflictError, bD as ZapierError, h as ZapierFetchInitOptions, bJ as ZapierNotFoundError, bR as ZapierRateLimitError, bU as ZapierRelayError, n as ZapierReleaseTriggerMessageSignal, bK as ZapierResourceNotFoundError, eM as ZapierSdk, l as ZapierSdkApps, Z as ZapierSdkOptions, bW as ZapierSignal, bN as ZapierTimeoutError, bH as ZapierUnknownError, bG as ZapierValidationError, cM as actionKeyResolver, cL as actionTypeResolver, cI as apiPlugin, cK as appKeyResolver, bX as appsPlugin, cO as authenticationIdGenericResolver, cN as authenticationIdResolver, a9 as batch, ev as buildApplicationLifecycleEvent, ab as buildCapabilityMessage, ex as buildErrorEvent, ew as buildErrorEventWithContext, ez as buildMethodCalledEvent, en as cleanupEventListeners, d5 as clearTokenCache, cS as clientCredentialsNameResolver, cT as clientIdResolver, ar as composePlugins, cO as connectionIdGenericResolver, cN as connectionIdResolver, dL as connectionsPlugin, ey as createBaseEvent, cf as createClientCredentialsPlugin, V as createFunction, df as createMemoryCache, ai as createOptionsPlugin, aq as createPaginatedPluginMethod, ap as createPluginMethod, ah as createSdk, e9 as createTableFieldsPlugin, e3 as createTablePlugin, eh as createTableRecordsPlugin, ax as createZapierApi, eL as createZapierSdk, ag as createZapierSdkWithoutRegistry, ao as definePlugin, ch as deleteClientCredentialsPlugin, eb as deleteTableFieldsPlugin, e5 as deleteTablePlugin, ej as deleteTableRecordsPlugin, ep as eventEmissionPlugin, b$ as fetchPlugin, cp as findFirstConnectionPlugin, f as findManifestEntry, cr as findUniqueConnectionPlugin, bV as formatErrorMessage, eC as generateEventId, c9 as getActionInputFieldsSchemaPlugin, cl as getActionPlugin, cj as getAppPlugin, dy as getBaseUrlFromCredentials, eI as getCiPlatform, dz as getClientIdFromCredentials, cn as getConnectionPlugin, eK as getCpuTime, eD as getCurrentTimestamp, eJ as getMemoryUsage, ay as getOrCreateApiClient, eF as getOsInfo, eG as getPlatformVersions, cA as getPreferredManifestEntryKey, cF as getProfilePlugin, eE as getReleaseId, e1 as getTablePlugin, ed as getTableRecordPlugin, d9 as getTokenFromCliLogin, dX as getZapierApprovalMode, dY as getZapierDefaultApprovalMode, dO as getZapierSdkService, d7 as injectCliLogin, cR as inputFieldKeyResolver, cQ as inputsAllOptionalResolver, cP as inputsResolver, d6 as invalidateCachedToken, db as invalidateCredentialsToken, eH as isCi, d8 as isCliLoginAvailable, dr as isClientCredentials, du as isCredentialsFunction, dt as isCredentialsObject, ds as isPkceCredentials, S as isPositional, c7 as listActionInputFieldChoicesPlugin, c5 as listActionInputFieldsPlugin, c3 as listActionsPlugin, c1 as listAppsPlugin, cd as listClientCredentialsPlugin, cb as listConnectionsPlugin, e7 as listTableFieldsPlugin, ef as listTableRecordsPlugin, d$ as listTablesPlugin, ac as logDeprecation, cB as manifestPlugin, dV as parseConcurrencyEnvVar, r as readManifestFromFile, au as registryPlugin, cx as requestPlugin, ad as resetDeprecationWarnings, da as resolveAuthToken, dx as resolveCredentials, dw as resolveCredentialsFromEnv, cv as runActionPlugin, a6 as runWithTelemetryContext, cZ as tableFieldIdsResolver, c$ as tableFieldsResolver, d2 as tableFiltersResolver, cU as tableIdResolver, c_ as tableNameResolver, cX as tableRecordIdResolver, cY as tableRecordIdsResolver, d0 as tableRecordsResolver, d3 as tableSortResolver, d1 as tableUpdateRecordsResolver, a7 as toSnakeCase, a8 as toTitleCase, cV as triggerInboxResolver, cW as triggerMessagesResolver, el as updateTableRecordsPlugin } from './index-eliz1Uq3.mjs';
2
2
  import 'zod';
3
3
  import '@zapier/zapier-sdk-core/v0/schemas/connections';
4
4
  import '@zapier/policy-context';
package/dist/index.d.ts CHANGED
@@ -70,7 +70,5 @@ export { registryPlugin } from "./plugins/registry";
70
70
  export type { ApiClient, RequestOptions, PollOptions } from "./api/types";
71
71
  export { createZapierApi, getOrCreateApiClient } from "./api";
72
72
  export type { ZapierSdk } from "./sdk";
73
- export type { BaseEvent, MethodCalledEvent } from "./types/telemetry-events";
74
- export type { EventEmissionContext, EventEmissionProvides, EventContext, ApplicationLifecycleEventData, EnhancedErrorEventData, MethodCalledEventData, } from "./plugins/eventEmission";
75
- export { generateEventId, getCurrentTimestamp, getReleaseId, getOsInfo, getPlatformVersions, isCi, getCiPlatform, getMemoryUsage, getCpuTime, buildApplicationLifecycleEvent, buildErrorEventWithContext, buildErrorEvent, createBaseEvent, buildMethodCalledEvent, } from "./plugins/eventEmission";
73
+ export * from "./plugins/eventEmission";
76
74
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,OAAO,EACL,sBAAsB,EACtB,iCAAiC,GAClC,MAAM,8CAA8C,CAAC;AACtD,YAAY,EACV,wBAAwB,EACxB,wBAAwB,EACxB,yBAAyB,EACzB,8BAA8B,GAC/B,MAAM,8CAA8C,CAAC;AACtD,YAAY,EACV,wBAAwB,EACxB,oBAAoB,GACrB,MAAM,0BAA0B,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,o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wBAAwB,CAAC;AAC7D,YAAY,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAG/D,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAGpD,YAAY,EAAE,SAAS,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1E,OAAO,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,OAAO,CAAC;AAG9D,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,cAAc,yBAAyB,CAAC"}
package/dist/index.js CHANGED
@@ -74,4 +74,4 @@ export { definePlugin, createPluginMethod, createPaginatedPluginMethod, composeP
74
74
  // Export registry plugin for manual use
75
75
  export { registryPlugin } from "./plugins/registry";
76
76
  export { createZapierApi, getOrCreateApiClient } from "./api";
77
- export { generateEventId, getCurrentTimestamp, getReleaseId, getOsInfo, getPlatformVersions, isCi, getCiPlatform, getMemoryUsage, getCpuTime, buildApplicationLifecycleEvent, buildErrorEventWithContext, buildErrorEvent, createBaseEvent, buildMethodCalledEvent, } from "./plugins/eventEmission";
77
+ export * from "./plugins/eventEmission";