@zapier/zapier-sdk 0.15.10 → 0.15.11

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 (104) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/index.cjs +583 -337
  3. package/dist/index.d.mts +184 -39
  4. package/dist/index.d.ts +3 -3
  5. package/dist/index.d.ts.map +1 -1
  6. package/dist/index.js +1 -1
  7. package/dist/index.mjs +583 -338
  8. package/dist/plugins/eventEmission/builders.d.ts +3 -2
  9. package/dist/plugins/eventEmission/builders.d.ts.map +1 -1
  10. package/dist/plugins/eventEmission/builders.js +32 -0
  11. package/dist/plugins/eventEmission/index.d.ts +4 -2
  12. package/dist/plugins/eventEmission/index.d.ts.map +1 -1
  13. package/dist/plugins/eventEmission/index.js +8 -2
  14. package/dist/plugins/eventEmission/types.d.ts +10 -0
  15. package/dist/plugins/eventEmission/types.d.ts.map +1 -1
  16. package/dist/plugins/fetch/index.d.ts +2 -1
  17. package/dist/plugins/fetch/index.d.ts.map +1 -1
  18. package/dist/plugins/fetch/index.js +39 -11
  19. package/dist/plugins/findFirstAuthentication/index.d.ts +2 -1
  20. package/dist/plugins/findFirstAuthentication/index.d.ts.map +1 -1
  21. package/dist/plugins/findFirstAuthentication/index.js +4 -2
  22. package/dist/plugins/findFirstAuthentication/index.test.js +11 -4
  23. package/dist/plugins/findUniqueAuthentication/index.d.ts +2 -1
  24. package/dist/plugins/findUniqueAuthentication/index.d.ts.map +1 -1
  25. package/dist/plugins/findUniqueAuthentication/index.js +4 -2
  26. package/dist/plugins/findUniqueAuthentication/index.test.js +9 -2
  27. package/dist/plugins/getAction/index.d.ts +3 -1
  28. package/dist/plugins/getAction/index.d.ts.map +1 -1
  29. package/dist/plugins/getAction/index.js +6 -3
  30. package/dist/plugins/getAction/index.test.js +5 -3
  31. package/dist/plugins/getAction/schemas.d.ts +14 -0
  32. package/dist/plugins/getAction/schemas.d.ts.map +1 -1
  33. package/dist/plugins/getAction/schemas.js +2 -0
  34. package/dist/plugins/getApp/index.d.ts +2 -1
  35. package/dist/plugins/getApp/index.d.ts.map +1 -1
  36. package/dist/plugins/getApp/index.js +9 -3
  37. package/dist/plugins/getApp/index.test.js +7 -0
  38. package/dist/plugins/getAuthentication/index.d.ts +3 -1
  39. package/dist/plugins/getAuthentication/index.d.ts.map +1 -1
  40. package/dist/plugins/getAuthentication/index.js +2 -1
  41. package/dist/plugins/getAuthentication/index.test.js +10 -1
  42. package/dist/plugins/getInputFieldsSchema/index.d.ts +2 -1
  43. package/dist/plugins/getInputFieldsSchema/index.d.ts.map +1 -1
  44. package/dist/plugins/getInputFieldsSchema/index.js +2 -1
  45. package/dist/plugins/getInputFieldsSchema/index.test.js +3 -0
  46. package/dist/plugins/getProfile/index.d.ts +3 -1
  47. package/dist/plugins/getProfile/index.d.ts.map +1 -1
  48. package/dist/plugins/getProfile/index.js +2 -1
  49. package/dist/plugins/listActions/index.d.ts +2 -1
  50. package/dist/plugins/listActions/index.d.ts.map +1 -1
  51. package/dist/plugins/listActions/index.js +14 -12
  52. package/dist/plugins/listActions/index.test.js +7 -0
  53. package/dist/plugins/listActions/schemas.d.ts +18 -4
  54. package/dist/plugins/listActions/schemas.d.ts.map +1 -1
  55. package/dist/plugins/listActions/schemas.js +2 -0
  56. package/dist/plugins/listApps/index.d.ts +2 -1
  57. package/dist/plugins/listApps/index.d.ts.map +1 -1
  58. package/dist/plugins/listApps/index.js +2 -1
  59. package/dist/plugins/listApps/index.test.js +7 -0
  60. package/dist/plugins/listAuthentications/index.d.ts +2 -1
  61. package/dist/plugins/listAuthentications/index.d.ts.map +1 -1
  62. package/dist/plugins/listAuthentications/index.js +2 -1
  63. package/dist/plugins/listAuthentications/index.test.js +7 -0
  64. package/dist/plugins/listAuthentications/schemas.d.ts +18 -4
  65. package/dist/plugins/listAuthentications/schemas.d.ts.map +1 -1
  66. package/dist/plugins/listAuthentications/schemas.js +2 -0
  67. package/dist/plugins/listInputFieldChoices/index.d.ts +3 -1
  68. package/dist/plugins/listInputFieldChoices/index.d.ts.map +1 -1
  69. package/dist/plugins/listInputFieldChoices/index.js +2 -1
  70. package/dist/plugins/listInputFieldChoices/index.test.js +5 -2
  71. package/dist/plugins/listInputFieldChoices/schemas.d.ts +4 -4
  72. package/dist/plugins/listInputFields/index.d.ts +3 -1
  73. package/dist/plugins/listInputFields/index.d.ts.map +1 -1
  74. package/dist/plugins/listInputFields/index.js +2 -1
  75. package/dist/plugins/listInputFields/index.test.js +3 -0
  76. package/dist/plugins/listInputFields/schemas.d.ts +4 -4
  77. package/dist/plugins/manifest/index.test.js +10 -1
  78. package/dist/plugins/request/index.d.ts +3 -1
  79. package/dist/plugins/request/index.d.ts.map +1 -1
  80. package/dist/plugins/request/index.js +2 -1
  81. package/dist/plugins/request/index.test.js +10 -1
  82. package/dist/plugins/request/schemas.d.ts +28 -0
  83. package/dist/plugins/request/schemas.d.ts.map +1 -1
  84. package/dist/plugins/request/schemas.js +2 -0
  85. package/dist/plugins/runAction/index.d.ts +3 -1
  86. package/dist/plugins/runAction/index.d.ts.map +1 -1
  87. package/dist/plugins/runAction/index.js +3 -1
  88. package/dist/plugins/runAction/index.test.js +20 -8
  89. package/dist/plugins/runAction/schemas.d.ts +4 -4
  90. package/dist/temporary-internal-core/schemas/apps/index.d.ts +21 -7
  91. package/dist/temporary-internal-core/schemas/apps/index.d.ts.map +1 -1
  92. package/dist/temporary-internal-core/schemas/apps/index.js +2 -0
  93. package/dist/types/telemetry-events.d.ts +31 -2
  94. package/dist/types/telemetry-events.d.ts.map +1 -1
  95. package/dist/utils/function-utils.d.ts +42 -3
  96. package/dist/utils/function-utils.d.ts.map +1 -1
  97. package/dist/utils/function-utils.js +83 -8
  98. package/dist/utils/telemetry-utils.d.ts +32 -0
  99. package/dist/utils/telemetry-utils.d.ts.map +1 -0
  100. package/dist/utils/telemetry-utils.js +43 -0
  101. package/dist/utils/telemetry-utils.test.d.ts +2 -0
  102. package/dist/utils/telemetry-utils.test.d.ts.map +1 -0
  103. package/dist/utils/telemetry-utils.test.js +94 -0
  104. package/package.json +1 -1
package/dist/index.d.mts CHANGED
@@ -185,6 +185,35 @@ interface ApplicationLifecycleEvent extends BaseEvent {
185
185
  shutdown_duration_ms?: number | null;
186
186
  active_requests_count?: number | null;
187
187
  }
188
+ interface MethodCalledEvent extends BaseEvent {
189
+ method_name: string;
190
+ method_module: string | null;
191
+ execution_duration_ms: number;
192
+ success_flag: boolean;
193
+ error_message: string | null;
194
+ error_type: string | null;
195
+ argument_count: number;
196
+ is_paginated: boolean;
197
+ sdk_version: string;
198
+ environment: string | null;
199
+ selected_api: string | null;
200
+ app_id: number | null;
201
+ app_version_id: number | null;
202
+ zap_id: number | null;
203
+ node_id: number | null;
204
+ operation_type: string | null;
205
+ operation_key: string | null;
206
+ call_context: string | null;
207
+ is_retry: boolean;
208
+ retry_attempt: number | null;
209
+ argument_types: string[] | null;
210
+ return_type: string | null;
211
+ caller_method: string | null;
212
+ call_stack_depth: number | null;
213
+ is_synchronous: boolean | null;
214
+ cpu_time_ms: number | null;
215
+ memory_usage_bytes: number | null;
216
+ }
188
217
 
189
218
  /**
190
219
  * Transport abstraction layer for event emission
@@ -256,6 +285,16 @@ interface ApplicationLifecycleEventData {
256
285
  cpu_time_ms?: number | null;
257
286
  active_requests_count?: number | null;
258
287
  }
288
+ interface MethodCalledEventData {
289
+ method_name: string;
290
+ method_module?: string | null;
291
+ execution_duration_ms: number;
292
+ success_flag: boolean;
293
+ error_message?: string | null;
294
+ error_type?: string | null;
295
+ argument_count: number;
296
+ is_paginated?: boolean;
297
+ }
259
298
 
260
299
  /**
261
300
  * Event builder utilities for creating telemetry events
@@ -268,6 +307,7 @@ declare function createBaseEvent(context?: EventContext): BaseEvent;
268
307
  declare function buildErrorEvent(data: ErrorEventData, context?: EventContext): ErrorOccurredEvent;
269
308
  declare function buildApplicationLifecycleEvent(data: ApplicationLifecycleEventData, context?: EventContext): ApplicationLifecycleEvent;
270
309
  declare function buildErrorEventWithContext(data: EnhancedErrorEventData, context?: EventContext): ErrorOccurredEvent;
310
+ declare function buildMethodCalledEvent(data: MethodCalledEventData, context?: EventContext): MethodCalledEvent;
271
311
 
272
312
  /**
273
313
  * Simple utility functions for event emission
@@ -331,6 +371,7 @@ interface EventEmissionContext {
331
371
  config: EventEmissionConfig;
332
372
  emit<T extends any>(subject: string, event: T): void;
333
373
  createBaseEvent(): Promise<BaseEvent>;
374
+ emitMethodCalled(data: MethodCalledEventData): void;
334
375
  };
335
376
  }
336
377
  interface EventEmissionProvides {
@@ -1636,18 +1677,18 @@ declare const ListInputFieldsSchema: z.ZodObject<{
1636
1677
  actionType: "search" | "filter" | "read" | "read_bulk" | "run" | "search_and_write" | "search_or_write" | "write";
1637
1678
  authenticationId?: number | null | undefined;
1638
1679
  inputs?: Record<string, unknown> | undefined;
1639
- pageSize?: number | undefined;
1640
- maxItems?: number | undefined;
1641
1680
  cursor?: string | undefined;
1681
+ maxItems?: number | undefined;
1682
+ pageSize?: number | undefined;
1642
1683
  }, {
1643
1684
  appKey: string;
1644
1685
  actionKey: string;
1645
1686
  actionType: "search" | "filter" | "read" | "read_bulk" | "run" | "search_and_write" | "search_or_write" | "write";
1646
1687
  authenticationId?: number | null | undefined;
1647
1688
  inputs?: Record<string, unknown> | undefined;
1648
- pageSize?: number | undefined;
1649
- maxItems?: number | undefined;
1650
1689
  cursor?: string | undefined;
1690
+ maxItems?: number | undefined;
1691
+ pageSize?: number | undefined;
1651
1692
  }>;
1652
1693
  type ListInputFieldsOptions = z.infer<typeof ListInputFieldsSchema>;
1653
1694
 
@@ -1672,18 +1713,32 @@ declare const ListAppsOptionsSchema: z.ZodObject<{
1672
1713
  pageSize: z.ZodOptional<z.ZodNumber>;
1673
1714
  maxItems: z.ZodOptional<z.ZodNumber>;
1674
1715
  cursor: z.ZodOptional<z.ZodString>;
1716
+ } & {
1717
+ _telemetry: z.ZodOptional<z.ZodObject<{
1718
+ isNested: z.ZodOptional<z.ZodBoolean>;
1719
+ }, "strip", z.ZodTypeAny, {
1720
+ isNested?: boolean | undefined;
1721
+ }, {
1722
+ isNested?: boolean | undefined;
1723
+ }>>;
1675
1724
  }, "strip", z.ZodTypeAny, {
1676
1725
  search?: string | undefined;
1677
1726
  appKeys?: string[] | undefined;
1678
- pageSize?: number | undefined;
1679
- maxItems?: number | undefined;
1680
1727
  cursor?: string | undefined;
1728
+ maxItems?: number | undefined;
1729
+ pageSize?: number | undefined;
1730
+ _telemetry?: {
1731
+ isNested?: boolean | undefined;
1732
+ } | undefined;
1681
1733
  }, {
1682
1734
  search?: string | undefined;
1683
1735
  appKeys?: string[] | undefined;
1684
- pageSize?: number | undefined;
1685
- maxItems?: number | undefined;
1686
1736
  cursor?: string | undefined;
1737
+ maxItems?: number | undefined;
1738
+ pageSize?: number | undefined;
1739
+ _telemetry?: {
1740
+ isNested?: boolean | undefined;
1741
+ } | undefined;
1687
1742
  }>;
1688
1743
  type ListAppsOptions = z.infer<typeof ListAppsOptionsSchema>;
1689
1744
  /**
@@ -2097,12 +2152,23 @@ declare const RelayRequestSchema: z.ZodObject<{
2097
2152
  headers: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodString>, z.ZodType<Headers, z.ZodTypeDef, Headers>, z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodString], null>, "many">]>>;
2098
2153
  } & {
2099
2154
  relayBaseUrl: z.ZodOptional<z.ZodString>;
2155
+ } & {
2156
+ _telemetry: z.ZodOptional<z.ZodObject<{
2157
+ isNested: z.ZodOptional<z.ZodBoolean>;
2158
+ }, "strip", z.ZodTypeAny, {
2159
+ isNested?: boolean | undefined;
2160
+ }, {
2161
+ isNested?: boolean | undefined;
2162
+ }>>;
2100
2163
  }, "strip", z.ZodTypeAny, {
2101
2164
  url: string;
2102
2165
  method?: "POST" | "GET" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS" | undefined;
2103
2166
  authenticationId?: number | undefined;
2104
2167
  headers?: Record<string, string> | [string, string][] | Headers | undefined;
2105
2168
  body?: any;
2169
+ _telemetry?: {
2170
+ isNested?: boolean | undefined;
2171
+ } | undefined;
2106
2172
  callbackUrl?: string | undefined;
2107
2173
  authenticationTemplate?: string | undefined;
2108
2174
  relayBaseUrl?: string | undefined;
@@ -2112,6 +2178,9 @@ declare const RelayRequestSchema: z.ZodObject<{
2112
2178
  authenticationId?: number | undefined;
2113
2179
  headers?: Record<string, string> | [string, string][] | Headers | undefined;
2114
2180
  body?: any;
2181
+ _telemetry?: {
2182
+ isNested?: boolean | undefined;
2183
+ } | undefined;
2115
2184
  callbackUrl?: string | undefined;
2116
2185
  authenticationTemplate?: string | undefined;
2117
2186
  relayBaseUrl?: string | undefined;
@@ -2127,12 +2196,23 @@ declare const RelayFetchSchema: z.ZodObject<{
2127
2196
  headers: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodString>, z.ZodType<Headers, z.ZodTypeDef, Headers>, z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodString], null>, "many">]>>;
2128
2197
  } & {
2129
2198
  relayBaseUrl: z.ZodOptional<z.ZodString>;
2199
+ } & {
2200
+ _telemetry: z.ZodOptional<z.ZodObject<{
2201
+ isNested: z.ZodOptional<z.ZodBoolean>;
2202
+ }, "strip", z.ZodTypeAny, {
2203
+ isNested?: boolean | undefined;
2204
+ }, {
2205
+ isNested?: boolean | undefined;
2206
+ }>>;
2130
2207
  }, "strip", z.ZodTypeAny, {
2131
2208
  url: string;
2132
2209
  method?: "POST" | "GET" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS" | undefined;
2133
2210
  authenticationId?: number | undefined;
2134
2211
  headers?: Record<string, string> | [string, string][] | Headers | undefined;
2135
2212
  body?: any;
2213
+ _telemetry?: {
2214
+ isNested?: boolean | undefined;
2215
+ } | undefined;
2136
2216
  callbackUrl?: string | undefined;
2137
2217
  authenticationTemplate?: string | undefined;
2138
2218
  relayBaseUrl?: string | undefined;
@@ -2142,6 +2222,9 @@ declare const RelayFetchSchema: z.ZodObject<{
2142
2222
  authenticationId?: number | undefined;
2143
2223
  headers?: Record<string, string> | [string, string][] | Headers | undefined;
2144
2224
  body?: any;
2225
+ _telemetry?: {
2226
+ isNested?: boolean | undefined;
2227
+ } | undefined;
2145
2228
  callbackUrl?: string | undefined;
2146
2229
  authenticationTemplate?: string | undefined;
2147
2230
  relayBaseUrl?: string | undefined;
@@ -2180,9 +2263,10 @@ interface GetProfilePluginProvides {
2180
2263
  };
2181
2264
  }
2182
2265
  declare const getProfilePlugin: Plugin<{}, // no SDK dependencies
2266
+ // no SDK dependencies
2183
2267
  {
2184
2268
  api: ApiClient;
2185
- }, // requires api in context
2269
+ } & EventEmissionContext, // requires api and eventEmission in context
2186
2270
  GetProfilePluginProvides>;
2187
2271
 
2188
2272
  interface ApiPluginOptions extends BaseSdkOptions {
@@ -2254,9 +2338,10 @@ interface RequestPluginProvides {
2254
2338
  };
2255
2339
  }
2256
2340
  declare const requestPlugin: Plugin<{}, // no SDK dependencies
2341
+ // no SDK dependencies
2257
2342
  {
2258
2343
  api: ApiClient;
2259
- }, // requires api in context
2344
+ } & EventEmissionContext, // requires api in context
2260
2345
  RequestPluginProvides>;
2261
2346
 
2262
2347
  interface FetchPluginProvides {
@@ -2283,7 +2368,7 @@ interface FetchPluginProvides {
2283
2368
  * Direct plugin function - takes options + sdk + context in one object
2284
2369
  */
2285
2370
  declare const fetchPlugin: Plugin<GetSdkType<RequestPluginProvides>, // requires request in SDK
2286
- {}, // requires no context (uses SDK methods)
2371
+ EventEmissionContext, // requires eventEmission context for telemetry
2287
2372
  FetchPluginProvides>;
2288
2373
  type ZapierFetchInitOptions = RequestInit & {
2289
2374
  authenticationId?: number;
@@ -2308,18 +2393,18 @@ declare const RunActionSchema: z.ZodObject<{
2308
2393
  actionType: "search" | "filter" | "read" | "read_bulk" | "run" | "search_and_write" | "search_or_write" | "write";
2309
2394
  authenticationId?: number | null | undefined;
2310
2395
  inputs?: Record<string, unknown> | undefined;
2311
- pageSize?: number | undefined;
2312
- maxItems?: number | undefined;
2313
2396
  cursor?: string | undefined;
2397
+ maxItems?: number | undefined;
2398
+ pageSize?: number | undefined;
2314
2399
  }, {
2315
2400
  appKey: string;
2316
2401
  actionKey: string;
2317
2402
  actionType: "search" | "filter" | "read" | "read_bulk" | "run" | "search_and_write" | "search_or_write" | "write";
2318
2403
  authenticationId?: number | null | undefined;
2319
2404
  inputs?: Record<string, unknown> | undefined;
2320
- pageSize?: number | undefined;
2321
- maxItems?: number | undefined;
2322
2405
  cursor?: string | undefined;
2406
+ maxItems?: number | undefined;
2407
+ pageSize?: number | undefined;
2323
2408
  }>;
2324
2409
  type RunActionOptions = z.infer<typeof RunActionSchema>;
2325
2410
 
@@ -2329,14 +2414,28 @@ declare const GetActionSchema: z.ZodObject<{
2329
2414
  };
2330
2415
  actionType: z.ZodEnum<["read", "read_bulk", "write", "run", "search", "search_or_write", "search_and_write", "filter"]>;
2331
2416
  actionKey: z.ZodString;
2417
+ } & {
2418
+ _telemetry: z.ZodOptional<z.ZodObject<{
2419
+ isNested: z.ZodOptional<z.ZodBoolean>;
2420
+ }, "strip", z.ZodTypeAny, {
2421
+ isNested?: boolean | undefined;
2422
+ }, {
2423
+ isNested?: boolean | undefined;
2424
+ }>>;
2332
2425
  }, "strip", z.ZodTypeAny, {
2333
2426
  appKey: string;
2334
2427
  actionKey: string;
2335
2428
  actionType: "search" | "filter" | "read" | "read_bulk" | "run" | "search_and_write" | "search_or_write" | "write";
2429
+ _telemetry?: {
2430
+ isNested?: boolean | undefined;
2431
+ } | undefined;
2336
2432
  }, {
2337
2433
  appKey: string;
2338
2434
  actionKey: string;
2339
2435
  actionType: "search" | "filter" | "read" | "read_bulk" | "run" | "search_and_write" | "search_or_write" | "write";
2436
+ _telemetry?: {
2437
+ isNested?: boolean | undefined;
2438
+ } | undefined;
2340
2439
  }>;
2341
2440
  type GetActionOptions = z.infer<typeof GetActionSchema>;
2342
2441
 
@@ -2348,18 +2447,32 @@ declare const ListActionsSchema: z.ZodObject<{
2348
2447
  pageSize: z.ZodOptional<z.ZodNumber>;
2349
2448
  maxItems: z.ZodOptional<z.ZodNumber>;
2350
2449
  cursor: z.ZodOptional<z.ZodString>;
2450
+ } & {
2451
+ _telemetry: z.ZodOptional<z.ZodObject<{
2452
+ isNested: z.ZodOptional<z.ZodBoolean>;
2453
+ }, "strip", z.ZodTypeAny, {
2454
+ isNested?: boolean | undefined;
2455
+ }, {
2456
+ isNested?: boolean | undefined;
2457
+ }>>;
2351
2458
  }, "strip", z.ZodTypeAny, {
2352
2459
  appKey: string;
2353
2460
  actionType?: "search" | "filter" | "read" | "read_bulk" | "run" | "search_and_write" | "search_or_write" | "write" | undefined;
2354
- pageSize?: number | undefined;
2355
- maxItems?: number | undefined;
2356
2461
  cursor?: string | undefined;
2462
+ maxItems?: number | undefined;
2463
+ pageSize?: number | undefined;
2464
+ _telemetry?: {
2465
+ isNested?: boolean | undefined;
2466
+ } | undefined;
2357
2467
  }, {
2358
2468
  appKey: string;
2359
2469
  actionType?: "search" | "filter" | "read" | "read_bulk" | "run" | "search_and_write" | "search_or_write" | "write" | undefined;
2360
- pageSize?: number | undefined;
2361
- maxItems?: number | undefined;
2362
2470
  cursor?: string | undefined;
2471
+ maxItems?: number | undefined;
2472
+ pageSize?: number | undefined;
2473
+ _telemetry?: {
2474
+ isNested?: boolean | undefined;
2475
+ } | undefined;
2363
2476
  }>;
2364
2477
  type ListActionsOptions = z.infer<typeof ListActionsSchema>;
2365
2478
 
@@ -2384,7 +2497,7 @@ interface ListActionsPluginProvides {
2384
2497
  declare const listActionsPlugin: Plugin<GetSdkType<ManifestPluginProvides>, {
2385
2498
  api: ApiClient;
2386
2499
  getVersionedImplementationId: GetVersionedImplementationId;
2387
- }, ListActionsPluginProvides>;
2500
+ } & EventEmissionContext, ListActionsPluginProvides>;
2388
2501
 
2389
2502
  interface GetActionPluginProvides {
2390
2503
  getAction: (options: GetActionOptions) => Promise<{
@@ -2399,9 +2512,10 @@ interface GetActionPluginProvides {
2399
2512
  };
2400
2513
  }
2401
2514
  declare const getActionPlugin: Plugin<GetSdkType<ListActionsPluginProvides>, // requires listActions in SDK
2515
+ // requires listActions in SDK
2402
2516
  {
2403
2517
  api: ApiClient;
2404
- }, // requires api in context
2518
+ } & EventEmissionContext, // requires api in context
2405
2519
  GetActionPluginProvides>;
2406
2520
 
2407
2521
  declare const GetAppSchema: z.ZodObject<{
@@ -2433,7 +2547,7 @@ interface ListAppsPluginProvides {
2433
2547
  };
2434
2548
  };
2435
2549
  }
2436
- declare const listAppsPlugin: Plugin<{}, GetContextType<ApiPluginProvides & ManifestPluginProvides>, ListAppsPluginProvides>;
2550
+ declare const listAppsPlugin: Plugin<{}, GetContextType<ApiPluginProvides & ManifestPluginProvides> & EventEmissionContext, ListAppsPluginProvides>;
2437
2551
 
2438
2552
  interface GetAppPluginProvides {
2439
2553
  getApp: (options: GetAppOptions) => Promise<{
@@ -2447,7 +2561,7 @@ interface GetAppPluginProvides {
2447
2561
  };
2448
2562
  };
2449
2563
  }
2450
- declare const getAppPlugin: Plugin<GetSdkType<ListAppsPluginProvides>, {}, GetAppPluginProvides>;
2564
+ declare const getAppPlugin: Plugin<GetSdkType<ListAppsPluginProvides>, EventEmissionContext, GetAppPluginProvides>;
2451
2565
 
2452
2566
  interface RunActionPluginProvides {
2453
2567
  runAction: (options?: RunActionOptions) => Promise<{
@@ -2468,10 +2582,11 @@ interface RunActionPluginProvides {
2468
2582
  };
2469
2583
  }
2470
2584
  declare const runActionPlugin: Plugin<GetSdkType<GetActionPluginProvides & GetAppPluginProvides>, // requires getAction and getApp in SDK
2585
+ // requires getAction and getApp in SDK
2471
2586
  {
2472
2587
  api: ApiClient;
2473
2588
  getVersionedImplementationId: GetVersionedImplementationId;
2474
- }, // requires api in context
2589
+ } & EventEmissionContext, // requires api and eventEmission in context
2475
2590
  RunActionPluginProvides>;
2476
2591
 
2477
2592
  interface AppsPluginProvides {
@@ -2496,13 +2611,24 @@ declare const ListAuthenticationsSchema: z.ZodObject<{
2496
2611
  pageSize: z.ZodOptional<z.ZodNumber>;
2497
2612
  maxItems: z.ZodOptional<z.ZodNumber>;
2498
2613
  cursor: z.ZodOptional<z.ZodString>;
2614
+ } & {
2615
+ _telemetry: z.ZodOptional<z.ZodObject<{
2616
+ isNested: z.ZodOptional<z.ZodBoolean>;
2617
+ }, "strip", z.ZodTypeAny, {
2618
+ isNested?: boolean | undefined;
2619
+ }, {
2620
+ isNested?: boolean | undefined;
2621
+ }>>;
2499
2622
  }, "strip", z.ZodTypeAny, {
2500
2623
  search?: string | undefined;
2501
2624
  title?: string | undefined;
2502
2625
  appKey?: string | undefined;
2503
- pageSize?: number | undefined;
2504
- maxItems?: number | undefined;
2505
2626
  cursor?: string | undefined;
2627
+ maxItems?: number | undefined;
2628
+ pageSize?: number | undefined;
2629
+ _telemetry?: {
2630
+ isNested?: boolean | undefined;
2631
+ } | undefined;
2506
2632
  accountId?: string | undefined;
2507
2633
  owner?: string | undefined;
2508
2634
  authenticationIds?: string[] | undefined;
@@ -2510,9 +2636,12 @@ declare const ListAuthenticationsSchema: z.ZodObject<{
2510
2636
  search?: string | undefined;
2511
2637
  title?: string | undefined;
2512
2638
  appKey?: string | undefined;
2513
- pageSize?: number | undefined;
2514
- maxItems?: number | undefined;
2515
2639
  cursor?: string | undefined;
2640
+ maxItems?: number | undefined;
2641
+ pageSize?: number | undefined;
2642
+ _telemetry?: {
2643
+ isNested?: boolean | undefined;
2644
+ } | undefined;
2516
2645
  accountId?: string | undefined;
2517
2646
  owner?: string | undefined;
2518
2647
  authenticationIds?: string[] | undefined;
@@ -2540,7 +2669,7 @@ interface ListAuthenticationsPluginProvides {
2540
2669
  declare const listAuthenticationsPlugin: Plugin<GetSdkType<ManifestPluginProvides>, {
2541
2670
  api: ApiClient;
2542
2671
  getVersionedImplementationId: GetVersionedImplementationId;
2543
- }, ListAuthenticationsPluginProvides>;
2672
+ } & EventEmissionContext, ListAuthenticationsPluginProvides>;
2544
2673
 
2545
2674
  interface GetAuthenticationPluginProvides {
2546
2675
  getAuthentication: (options: GetAuthenticationOptions) => Promise<GetAuthenticationResponse>;
@@ -2553,9 +2682,10 @@ interface GetAuthenticationPluginProvides {
2553
2682
  };
2554
2683
  }
2555
2684
  declare const getAuthenticationPlugin: Plugin<{}, // no SDK dependencies
2685
+ // no SDK dependencies
2556
2686
  {
2557
2687
  api: ApiClient;
2558
- }, // requires api in context
2688
+ } & EventEmissionContext, // requires api in context
2559
2689
  GetAuthenticationPluginProvides>;
2560
2690
 
2561
2691
  interface FindFirstAuthenticationPluginProvides {
@@ -2571,7 +2701,7 @@ interface FindFirstAuthenticationPluginProvides {
2571
2701
  };
2572
2702
  }
2573
2703
  declare const findFirstAuthenticationPlugin: Plugin<GetSdkType<ListAuthenticationsPluginProvides>, // requires listAuthentications in SDK
2574
- {}, // no context requirements
2704
+ EventEmissionContext, // requires eventEmission in context
2575
2705
  FindFirstAuthenticationPluginProvides>;
2576
2706
 
2577
2707
  interface FindUniqueAuthenticationPluginProvides {
@@ -2587,7 +2717,7 @@ interface FindUniqueAuthenticationPluginProvides {
2587
2717
  };
2588
2718
  }
2589
2719
  declare const findUniqueAuthenticationPlugin: Plugin<GetSdkType<ListAuthenticationsPluginProvides>, // requires listAuthentications in SDK
2590
- {}, // no context requirements
2720
+ EventEmissionContext, // requires eventEmission in context
2591
2721
  FindUniqueAuthenticationPluginProvides>;
2592
2722
 
2593
2723
  interface ListInputFieldsPluginProvides {
@@ -2609,10 +2739,11 @@ interface ListInputFieldsPluginProvides {
2609
2739
  };
2610
2740
  }
2611
2741
  declare const listInputFieldsPlugin: Plugin<GetSdkType<GetAppPluginProvides & GetActionPluginProvides>, // requires getApp and getAction in SDK
2742
+ // requires getApp and getAction in SDK
2612
2743
  {
2613
2744
  api: ApiClient;
2614
2745
  getVersionedImplementationId: GetVersionedImplementationId;
2615
- }, // requires api and getVersionedImplementationId in context
2746
+ } & EventEmissionContext, // requires api, getVersionedImplementationId, and eventEmission in context
2616
2747
  ListInputFieldsPluginProvides>;
2617
2748
 
2618
2749
  declare const GetInputFieldsSchemaSchema: z.ZodObject<{
@@ -2689,9 +2820,9 @@ declare const ListInputFieldChoicesSchema: z.ZodObject<{
2689
2820
  page?: number | undefined;
2690
2821
  authenticationId?: number | null | undefined;
2691
2822
  inputs?: Record<string, unknown> | undefined;
2692
- pageSize?: number | undefined;
2693
- maxItems?: number | undefined;
2694
2823
  cursor?: string | undefined;
2824
+ maxItems?: number | undefined;
2825
+ pageSize?: number | undefined;
2695
2826
  }, {
2696
2827
  appKey: string;
2697
2828
  actionKey: string;
@@ -2700,9 +2831,9 @@ declare const ListInputFieldChoicesSchema: z.ZodObject<{
2700
2831
  page?: number | undefined;
2701
2832
  authenticationId?: number | null | undefined;
2702
2833
  inputs?: Record<string, unknown> | undefined;
2703
- pageSize?: number | undefined;
2704
- maxItems?: number | undefined;
2705
2834
  cursor?: string | undefined;
2835
+ maxItems?: number | undefined;
2836
+ pageSize?: number | undefined;
2706
2837
  }>;
2707
2838
  type ListInputFieldChoicesOptions = z.infer<typeof ListInputFieldChoicesSchema>;
2708
2839
 
@@ -3570,14 +3701,28 @@ type ParamsProperty = z.infer<typeof ParamsPropertySchema>;
3570
3701
  * Generic utility functions for creating paginated SDK functions
3571
3702
  */
3572
3703
 
3704
+ /**
3705
+ * Callbacks for telemetry events during function execution
3706
+ */
3707
+ interface TelemetryCallbacks {
3708
+ onMethodCalled?: (data: {
3709
+ methodName: string;
3710
+ durationMs: number;
3711
+ success: boolean;
3712
+ error?: Error;
3713
+ argumentCount: number;
3714
+ isPaginated: boolean;
3715
+ }) => void;
3716
+ }
3573
3717
  /**
3574
3718
  * Higher-order function that creates a function from a core function
3575
3719
  *
3576
3720
  * @param coreFn - Function that returns T directly or throws errors
3577
3721
  * @param schema - Optional Zod schema for validation
3722
+ * @param telemetry - Optional telemetry callbacks
3578
3723
  * @returns A function that normalizes and rethrows errors
3579
3724
  */
3580
- declare function createFunction<TOptions, TResult, TSchemaOptions extends TOptions = TOptions>(coreFn: (options: TOptions) => Promise<TResult>, schema?: z.ZodSchema<TSchemaOptions>): (options?: TOptions) => Promise<TResult>;
3725
+ declare function createFunction<TOptions, TResult, TSchemaOptions extends TOptions = TOptions>(coreFn: (options: TOptions) => Promise<TResult>, schema?: z.ZodSchema<TSchemaOptions>, telemetry?: TelemetryCallbacks): (options?: TOptions) => Promise<TResult>;
3581
3726
 
3582
3727
  /**
3583
3728
  * String utility functions for the Zapier SDK
@@ -3928,4 +4073,4 @@ declare function createZapierSdkWithoutRegistry(options?: ZapierSdkOptions): Sdk
3928
4073
  }>;
3929
4074
  declare function createZapierSdk(options?: ZapierSdkOptions): ZapierSdk;
3930
4075
 
3931
- export { type Action, type ActionEntry, type ActionExecutionOptions, type ActionExecutionResult, type ActionField, type ActionFieldChoice, type ActionItem$1 as ActionItem, type ActionKeyProperty, ActionKeyPropertySchema, type ActionTypeProperty, ActionTypePropertySchema, type AddActionEntryOptions, type AddActionEntryResult, type ApiError, type ApiEvent, type ApiPluginOptions, type ApiPluginProvides, type App, type AppItem, type AppKeyProperty, AppKeyPropertySchema, type ApplicationLifecycleEventData, type AppsPluginProvides, type AuthEvent, type AuthOptions, type Authentication, type AuthenticationIdProperty, AuthenticationIdPropertySchema, type AuthenticationItem, type AuthenticationsResponse, type BaseEvent, type BatchOptions, type Choice, DEFAULT_CONFIG_PATH, type DebugProperty, DebugPropertySchema, type EnhancedErrorEventData, type ErrorOptions, type EventCallback, type EventContext, type EventEmissionContext, type FetchPluginProvides, type Field, type FieldsetItem, type FindFirstAuthenticationPluginProvides, type FindUniqueAuthenticationPluginProvides, type FormatMetadata, type FormattedItem, type FunctionOptions, type FunctionRegistryEntry, type GetActionPluginProvides, type GetAppPluginProvides, type GetAuthenticationPluginProvides, type GetContextType, type GetProfilePluginProvides, type GetSdkType, type InfoFieldItem, type InputFieldItem, type InputsProperty, InputsPropertySchema, type LimitProperty, LimitPropertySchema, type ListActionsPluginProvides, type ListAppsPluginProvides, type ListAuthenticationsPluginProvides, type ListInputFieldsPluginProvides, type LoadingEvent, MAX_PAGE_LIMIT, type Manifest, type ManifestEntry, type ManifestPluginOptions, type ManifestPluginProvides, type Need, type NeedsRequest, type NeedsResponse, type OffsetProperty, OffsetPropertySchema, type OutputProperty, OutputPropertySchema, type PaginatedSdkFunction, type ParamsProperty, ParamsPropertySchema, type Plugin, type PluginDependencies, type PluginOptions, type PluginProvides, type PositionalMetadata, RelayFetchSchema, RelayRequestSchema, type RequestPluginProvides, type ResolveAuthTokenOptions, type RootFieldItem, type RunActionPluginProvides, type Sdk, type SdkEvent, type UpdateManifestEntryOptions, type UpdateManifestEntryResult, type UserProfile, type UserProfileItem, ZAPIER_BASE_URL, ZapierActionError, ZapierApiError, ZapierAppNotFoundError, ZapierAuthenticationError, ZapierBundleError, ZapierConfigurationError, ZapierError, type ZapierFetchInitOptions, ZapierNotFoundError, ZapierResourceNotFoundError, type ZapierSdk, type ZapierSdkApps, type ZapierSdkOptions, ZapierTimeoutError, ZapierUnknownError, ZapierValidationError, actionKeyResolver, actionTypeResolver, apiPlugin, appKeyResolver, appsPlugin, authenticationIdGenericResolver, authenticationIdResolver, batch, buildApplicationLifecycleEvent, buildErrorEvent, buildErrorEventWithContext, createBaseEvent, createFunction, createSdk, createZapierSdk, createZapierSdkWithoutRegistry, fetchPlugin, findFirstAuthenticationPlugin, findManifestEntry, findUniqueAuthenticationPlugin, formatErrorMessage, generateEventId, getActionPlugin, getAppPlugin, getAuthenticationPlugin, getCiPlatform, getCpuTime, getCurrentTimestamp, getMemoryUsage, getOsInfo, getPlatformVersions, getPreferredManifestEntryKey, getProfilePlugin, getReleaseId, getTokenFromCliLogin, getTokenFromEnv, getTokenFromEnvOrConfig, inputFieldKeyResolver, inputsAllOptionalResolver, inputsResolver, isCi, isPositional, listActionsPlugin, listAppsPlugin, listAuthenticationsPlugin, listInputFieldsPlugin, manifestPlugin, readManifestFromFile, registryPlugin, requestPlugin, resolveAuthToken, runActionPlugin, toSnakeCase, toTitleCase };
4076
+ export { type Action, type ActionEntry, type ActionExecutionOptions, type ActionExecutionResult, type ActionField, type ActionFieldChoice, type ActionItem$1 as ActionItem, type ActionKeyProperty, ActionKeyPropertySchema, type ActionTypeProperty, ActionTypePropertySchema, type AddActionEntryOptions, type AddActionEntryResult, type ApiError, type ApiEvent, type ApiPluginOptions, type ApiPluginProvides, type App, type AppItem, type AppKeyProperty, AppKeyPropertySchema, type ApplicationLifecycleEventData, type AppsPluginProvides, type AuthEvent, type AuthOptions, type Authentication, type AuthenticationIdProperty, AuthenticationIdPropertySchema, type AuthenticationItem, type AuthenticationsResponse, type BaseEvent, type BatchOptions, type Choice, DEFAULT_CONFIG_PATH, type DebugProperty, DebugPropertySchema, type EnhancedErrorEventData, type ErrorOptions, type EventCallback, type EventContext, type EventEmissionContext, type FetchPluginProvides, type Field, type FieldsetItem, type FindFirstAuthenticationPluginProvides, type FindUniqueAuthenticationPluginProvides, type FormatMetadata, type FormattedItem, type FunctionOptions, type FunctionRegistryEntry, type GetActionPluginProvides, type GetAppPluginProvides, type GetAuthenticationPluginProvides, type GetContextType, type GetProfilePluginProvides, type GetSdkType, type InfoFieldItem, type InputFieldItem, type InputsProperty, InputsPropertySchema, type LimitProperty, LimitPropertySchema, type ListActionsPluginProvides, type ListAppsPluginProvides, type ListAuthenticationsPluginProvides, type ListInputFieldsPluginProvides, type LoadingEvent, MAX_PAGE_LIMIT, type Manifest, type ManifestEntry, type ManifestPluginOptions, type ManifestPluginProvides, type MethodCalledEvent, type MethodCalledEventData, type Need, type NeedsRequest, type NeedsResponse, type OffsetProperty, OffsetPropertySchema, type OutputProperty, OutputPropertySchema, type PaginatedSdkFunction, type ParamsProperty, ParamsPropertySchema, type Plugin, type PluginDependencies, type PluginOptions, type PluginProvides, type PositionalMetadata, RelayFetchSchema, RelayRequestSchema, type RequestPluginProvides, type ResolveAuthTokenOptions, type RootFieldItem, type RunActionPluginProvides, type Sdk, type SdkEvent, type UpdateManifestEntryOptions, type UpdateManifestEntryResult, type UserProfile, type UserProfileItem, ZAPIER_BASE_URL, ZapierActionError, ZapierApiError, ZapierAppNotFoundError, ZapierAuthenticationError, ZapierBundleError, ZapierConfigurationError, ZapierError, type ZapierFetchInitOptions, ZapierNotFoundError, ZapierResourceNotFoundError, type ZapierSdk, type ZapierSdkApps, type ZapierSdkOptions, ZapierTimeoutError, ZapierUnknownError, ZapierValidationError, actionKeyResolver, actionTypeResolver, apiPlugin, appKeyResolver, appsPlugin, authenticationIdGenericResolver, authenticationIdResolver, batch, buildApplicationLifecycleEvent, buildErrorEvent, buildErrorEventWithContext, buildMethodCalledEvent, createBaseEvent, createFunction, createSdk, createZapierSdk, createZapierSdkWithoutRegistry, fetchPlugin, findFirstAuthenticationPlugin, findManifestEntry, findUniqueAuthenticationPlugin, formatErrorMessage, generateEventId, getActionPlugin, getAppPlugin, getAuthenticationPlugin, getCiPlatform, getCpuTime, getCurrentTimestamp, getMemoryUsage, getOsInfo, getPlatformVersions, getPreferredManifestEntryKey, getProfilePlugin, getReleaseId, getTokenFromCliLogin, getTokenFromEnv, getTokenFromEnvOrConfig, inputFieldKeyResolver, inputsAllOptionalResolver, inputsResolver, isCi, isPositional, listActionsPlugin, listAppsPlugin, listAuthenticationsPlugin, listInputFieldsPlugin, manifestPlugin, readManifestFromFile, registryPlugin, requestPlugin, resolveAuthToken, runActionPlugin, toSnakeCase, toTitleCase };
package/dist/index.d.ts CHANGED
@@ -34,7 +34,7 @@ export type { FunctionRegistryEntry } from "./types/sdk";
34
34
  export type { Plugin, PluginProvides, PluginDependencies, PluginOptions, GetSdkType, GetContextType, Sdk, } from "./types/plugin";
35
35
  export { registryPlugin } from "./plugins/registry";
36
36
  export type { ZapierSdk } from "./types/sdk";
37
- export type { BaseEvent } from "./types/telemetry-events";
38
- export type { EventEmissionContext, EventContext, ApplicationLifecycleEventData, EnhancedErrorEventData, } from "./plugins/eventEmission";
39
- export { generateEventId, getCurrentTimestamp, getReleaseId, getOsInfo, getPlatformVersions, isCi, getCiPlatform, getMemoryUsage, getCpuTime, buildApplicationLifecycleEvent, buildErrorEventWithContext, buildErrorEvent, createBaseEvent, } from "./plugins/eventEmission";
37
+ export type { BaseEvent, MethodCalledEvent } from "./types/telemetry-events";
38
+ export type { EventEmissionContext, EventContext, ApplicationLifecycleEventData, EnhancedErrorEventData, MethodCalledEventData, } from "./plugins/eventEmission";
39
+ export { generateEventId, getCurrentTimestamp, getReleaseId, getOsInfo, getPlatformVersions, isCi, getCiPlatform, getMemoryUsage, getCpuTime, buildApplicationLifecycleEvent, buildErrorEventWithContext, buildErrorEvent, createBaseEvent, buildMethodCalledEvent, } from "./plugins/eventEmission";
40
40
  //# 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,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,mCAAmC,CAAC;AAClD,cAAc,oCAAoC,CAAC;AACnD,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,eAAe,CAAC;AAG9B,YAAY,EACV,MAAM,EACN,GAAG,EACH,IAAI,EACJ,KAAK,EACL,MAAM,EACN,qBAAqB,EACrB,WAAW,EACX,iBAAiB,EACjB,YAAY,EACZ,aAAa,EACb,cAAc,EACd,uBAAuB,EACvB,WAAW,GACZ,MAAM,aAAa,CAAC;AAGrB,OAAO,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AACxE,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,YAAY,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAG1E,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAGhE,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAC5C,YAAY,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAGxD,cAAc,aAAa,CAAC;AAG5B,cAAc,QAAQ,CAAC;AAGvB,cAAc,aAAa,CAAC;AAI5B,OAAO,EACL,kBAAkB,EAClB,gBAAgB,GACjB,MAAM,2BAA2B,CAAC;AAGnC,OAAO,EACL,eAAe,EACf,8BAA8B,EAC9B,SAAS,EACT,gBAAgB,GACjB,MAAM,OAAO,CAAC;AAGf,YAAY,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAGzD,YAAY,EACV,MAAM,EACN,cAAc,EACd,kBAAkB,EAClB,aAAa,EACb,UAAU,EACV,cAAc,EACd,GAAG,GACJ,MAAM,gBAAgB,CAAC;AAGxB,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAGpD,YAAY,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAG7C,YAAY,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAC1D,YAAY,EACV,oBAAoB,EACpB,YAAY,EACZ,6BAA6B,EAC7B,sBAAsB,GACvB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,YAAY,EACZ,SAAS,EACT,mBAAmB,EACnB,IAAI,EACJ,aAAa,EACb,cAAc,EACd,UAAU,EACV,8BAA8B,EAC9B,0BAA0B,EAC1B,eAAe,EACf,eAAe,GAChB,MAAM,yBAAyB,CAAC"}
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,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,mCAAmC,CAAC;AAClD,cAAc,oCAAoC,CAAC;AACnD,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,eAAe,CAAC;AAG9B,YAAY,EACV,MAAM,EACN,GAAG,EACH,IAAI,EACJ,KAAK,EACL,MAAM,EACN,qBAAqB,EACrB,WAAW,EACX,iBAAiB,EACjB,YAAY,EACZ,aAAa,EACb,cAAc,EACd,uBAAuB,EACvB,WAAW,GACZ,MAAM,aAAa,CAAC;AAGrB,OAAO,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AACxE,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,YAAY,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAG1E,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAGhE,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAC5C,YAAY,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAGxD,cAAc,aAAa,CAAC;AAG5B,cAAc,QAAQ,CAAC;AAGvB,cAAc,aAAa,CAAC;AAI5B,OAAO,EACL,kBAAkB,EAClB,gBAAgB,GACjB,MAAM,2BAA2B,CAAC;AAGnC,OAAO,EACL,eAAe,EACf,8BAA8B,EAC9B,SAAS,EACT,gBAAgB,GACjB,MAAM,OAAO,CAAC;AAGf,YAAY,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAGzD,YAAY,EACV,MAAM,EACN,cAAc,EACd,kBAAkB,EAClB,aAAa,EACb,UAAU,EACV,cAAc,EACd,GAAG,GACJ,MAAM,gBAAgB,CAAC;AAGxB,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAGpD,YAAY,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAG7C,YAAY,EAAE,SAAS,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7E,YAAY,EACV,oBAAoB,EACpB,YAAY,EACZ,6BAA6B,EAC7B,sBAAsB,EACtB,qBAAqB,GACtB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,YAAY,EACZ,SAAS,EACT,mBAAmB,EACnB,IAAI,EACJ,aAAa,EACb,cAAc,EACd,UAAU,EACV,8BAA8B,EAC9B,0BAA0B,EAC1B,eAAe,EACf,eAAe,EACf,sBAAsB,GACvB,MAAM,yBAAyB,CAAC"}
package/dist/index.js CHANGED
@@ -39,4 +39,4 @@ export { RelayRequestSchema, RelayFetchSchema, } from "./plugins/request/schemas
39
39
  export { createZapierSdk, createZapierSdkWithoutRegistry, createSdk, } from "./sdk";
40
40
  // Export registry plugin for manual use
41
41
  export { registryPlugin } from "./plugins/registry";
42
- export { generateEventId, getCurrentTimestamp, getReleaseId, getOsInfo, getPlatformVersions, isCi, getCiPlatform, getMemoryUsage, getCpuTime, buildApplicationLifecycleEvent, buildErrorEventWithContext, buildErrorEvent, createBaseEvent, } from "./plugins/eventEmission";
42
+ export { generateEventId, getCurrentTimestamp, getReleaseId, getOsInfo, getPlatformVersions, isCi, getCiPlatform, getMemoryUsage, getCpuTime, buildApplicationLifecycleEvent, buildErrorEventWithContext, buildErrorEvent, createBaseEvent, buildMethodCalledEvent, } from "./plugins/eventEmission";