@zapier/zapier-sdk 0.29.0 → 0.30.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 (58) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/index.cjs +213 -202
  3. package/dist/index.d.mts +0 -30
  4. package/dist/index.mjs +213 -202
  5. package/dist/plugins/createClientCredentials/schemas.d.ts +0 -3
  6. package/dist/plugins/createClientCredentials/schemas.d.ts.map +1 -1
  7. package/dist/plugins/createClientCredentials/schemas.js +0 -2
  8. package/dist/plugins/deleteClientCredentials/schemas.d.ts +0 -3
  9. package/dist/plugins/deleteClientCredentials/schemas.d.ts.map +1 -1
  10. package/dist/plugins/deleteClientCredentials/schemas.js +0 -2
  11. package/dist/plugins/fetch/index.d.ts +0 -3
  12. package/dist/plugins/fetch/index.d.ts.map +1 -1
  13. package/dist/plugins/fetch/index.js +59 -53
  14. package/dist/plugins/findFirstConnection/index.d.ts.map +1 -1
  15. package/dist/plugins/findFirstConnection/index.js +0 -1
  16. package/dist/plugins/findFirstConnection/schemas.d.ts.map +1 -1
  17. package/dist/plugins/findFirstConnection/schemas.js +0 -1
  18. package/dist/plugins/findUniqueConnection/index.d.ts.map +1 -1
  19. package/dist/plugins/findUniqueConnection/index.js +0 -1
  20. package/dist/plugins/findUniqueConnection/schemas.d.ts.map +1 -1
  21. package/dist/plugins/findUniqueConnection/schemas.js +0 -1
  22. package/dist/plugins/getAction/index.d.ts.map +1 -1
  23. package/dist/plugins/getAction/index.js +1 -3
  24. package/dist/plugins/getAction/schemas.d.ts +0 -3
  25. package/dist/plugins/getAction/schemas.d.ts.map +1 -1
  26. package/dist/plugins/getAction/schemas.js +0 -2
  27. package/dist/plugins/getApp/index.d.ts.map +1 -1
  28. package/dist/plugins/getApp/index.js +0 -1
  29. package/dist/plugins/listActions/schemas.d.ts +0 -3
  30. package/dist/plugins/listActions/schemas.d.ts.map +1 -1
  31. package/dist/plugins/listActions/schemas.js +0 -2
  32. package/dist/plugins/listApps/schemas.d.ts +0 -3
  33. package/dist/plugins/listApps/schemas.d.ts.map +1 -1
  34. package/dist/plugins/listApps/schemas.js +0 -2
  35. package/dist/plugins/listClientCredentials/schemas.d.ts +0 -3
  36. package/dist/plugins/listClientCredentials/schemas.d.ts.map +1 -1
  37. package/dist/plugins/listClientCredentials/schemas.js +0 -2
  38. package/dist/plugins/listConnections/schemas.d.ts +0 -3
  39. package/dist/plugins/listConnections/schemas.d.ts.map +1 -1
  40. package/dist/plugins/listConnections/schemas.js +0 -2
  41. package/dist/plugins/request/index.d.ts.map +1 -1
  42. package/dist/plugins/request/index.js +0 -1
  43. package/dist/plugins/request/schemas.d.ts +0 -6
  44. package/dist/plugins/request/schemas.d.ts.map +1 -1
  45. package/dist/plugins/request/schemas.js +0 -2
  46. package/dist/plugins/runAction/index.d.ts.map +1 -1
  47. package/dist/plugins/runAction/index.js +0 -1
  48. package/dist/utils/function-utils.d.ts +1 -14
  49. package/dist/utils/function-utils.d.ts.map +1 -1
  50. package/dist/utils/function-utils.js +115 -123
  51. package/dist/utils/function-utils.test.js +79 -1
  52. package/dist/utils/telemetry-context.d.ts +3 -0
  53. package/dist/utils/telemetry-context.d.ts.map +1 -0
  54. package/dist/utils/telemetry-context.js +23 -0
  55. package/dist/utils/telemetry-context.test.d.ts +2 -0
  56. package/dist/utils/telemetry-context.test.d.ts.map +1 -0
  57. package/dist/utils/telemetry-context.test.js +92 -0
  58. package/package.json +1 -1
package/dist/index.d.mts CHANGED
@@ -1168,9 +1168,6 @@ declare const RelayRequestSchema: z.ZodObject<{
1168
1168
  authenticationId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
1169
1169
  callbackUrl: z.ZodOptional<z.ZodString>;
1170
1170
  headers: z.ZodOptional<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodString>, z.ZodCustom<Headers, Headers>, z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodString], null>>]>>;
1171
- _telemetry: z.ZodOptional<z.ZodObject<{
1172
- isNested: z.ZodOptional<z.ZodBoolean>;
1173
- }, z.core.$strip>>;
1174
1171
  }, z.core.$strip>;
1175
1172
  type RelayRequestOptions = z.infer<typeof RelayRequestSchema>;
1176
1173
  declare const RelayFetchSchema: z.ZodObject<{
@@ -1189,9 +1186,6 @@ declare const RelayFetchSchema: z.ZodObject<{
1189
1186
  authenticationId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
1190
1187
  callbackUrl: z.ZodOptional<z.ZodString>;
1191
1188
  headers: z.ZodOptional<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodString>, z.ZodCustom<Headers, Headers>, z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodString], null>>]>>;
1192
- _telemetry: z.ZodOptional<z.ZodObject<{
1193
- isNested: z.ZodOptional<z.ZodBoolean>;
1194
- }, z.core.$strip>>;
1195
1189
  }, z.core.$strip>;
1196
1190
 
1197
1191
  interface RegistryPluginProvides {
@@ -1330,9 +1324,6 @@ interface FetchPluginProvides {
1330
1324
  /** @deprecated Use connectionId instead */
1331
1325
  authenticationId?: string | number;
1332
1326
  callbackUrl?: string;
1333
- _telemetry?: {
1334
- isNested?: boolean;
1335
- };
1336
1327
  }) => Promise<Response>;
1337
1328
  context: {
1338
1329
  meta: {
@@ -1406,9 +1397,6 @@ declare const GetActionSchema: z.ZodObject<{
1406
1397
  write: "write";
1407
1398
  }>;
1408
1399
  actionKey: z.ZodString;
1409
- _telemetry: z.ZodOptional<z.ZodObject<{
1410
- isNested: z.ZodOptional<z.ZodBoolean>;
1411
- }, z.core.$strip>>;
1412
1400
  }, z.core.$strip>;
1413
1401
  type GetActionOptions = z.infer<typeof GetActionSchema>;
1414
1402
 
@@ -1429,9 +1417,6 @@ declare const ListActionsSchema: z.ZodObject<{
1429
1417
  pageSize: z.ZodOptional<z.ZodNumber>;
1430
1418
  maxItems: z.ZodOptional<z.ZodNumber>;
1431
1419
  cursor: z.ZodOptional<z.ZodString>;
1432
- _telemetry: z.ZodOptional<z.ZodObject<{
1433
- isNested: z.ZodOptional<z.ZodBoolean>;
1434
- }, z.core.$strip>>;
1435
1420
  }, z.core.$strip>;
1436
1421
  type ListActionsOptions = z.infer<typeof ListActionsSchema>;
1437
1422
 
@@ -1511,9 +1496,6 @@ declare const ListAppsSchema: z.ZodObject<{
1511
1496
  pageSize: z.ZodOptional<z.ZodNumber>;
1512
1497
  maxItems: z.ZodOptional<z.ZodNumber>;
1513
1498
  cursor: z.ZodOptional<z.ZodString>;
1514
- _telemetry: z.ZodOptional<z.ZodObject<{
1515
- isNested: z.ZodOptional<z.ZodBoolean>;
1516
- }, z.core.$strip>>;
1517
1499
  }, z.core.$strip>;
1518
1500
  type ListAppsOptions = z.infer<typeof ListAppsSchema>;
1519
1501
  interface ListAppsPage {
@@ -1599,9 +1581,6 @@ declare const ListConnectionsQuerySchema: z.ZodObject<{
1599
1581
  pageSize: z.ZodOptional<z.ZodNumber>;
1600
1582
  maxItems: z.ZodOptional<z.ZodNumber>;
1601
1583
  cursor: z.ZodOptional<z.ZodString>;
1602
- _telemetry: z.ZodOptional<z.ZodObject<{
1603
- isNested: z.ZodOptional<z.ZodBoolean>;
1604
- }, z.core.$strip>>;
1605
1584
  }, z.core.$strip>;
1606
1585
  type ListConnectionsOptions = z.infer<typeof ListConnectionsQuerySchema>;
1607
1586
  interface ListConnectionsPage {
@@ -1734,9 +1713,6 @@ declare const ListClientCredentialsQuerySchema: z.ZodObject<{
1734
1713
  pageSize: z.ZodOptional<z.ZodNumber>;
1735
1714
  maxItems: z.ZodOptional<z.ZodNumber>;
1736
1715
  cursor: z.ZodOptional<z.ZodString>;
1737
- _telemetry: z.ZodOptional<z.ZodObject<{
1738
- isNested: z.ZodOptional<z.ZodBoolean>;
1739
- }, z.core.$strip>>;
1740
1716
  }, z.core.$strip>;
1741
1717
  type ListClientCredentialsOptions = z.infer<typeof ListClientCredentialsQuerySchema>;
1742
1718
  interface ListClientCredentialsPage {
@@ -1766,9 +1742,6 @@ declare const CreateClientCredentialsSchema: z.ZodObject<{
1766
1742
  external: "external";
1767
1743
  credentials: "credentials";
1768
1744
  }>>>;
1769
- _telemetry: z.ZodOptional<z.ZodObject<{
1770
- isNested: z.ZodOptional<z.ZodBoolean>;
1771
- }, z.core.$strip>>;
1772
1745
  }, z.core.$strip>;
1773
1746
  type CreateClientCredentialsOptions = z.infer<typeof CreateClientCredentialsSchema> & FunctionOptions;
1774
1747
  interface CreateClientCredentialsResult {
@@ -1791,9 +1764,6 @@ declare const createClientCredentialsPlugin: Plugin<{}, {
1791
1764
 
1792
1765
  declare const DeleteClientCredentialsSchema: z.ZodObject<{
1793
1766
  clientId: z.ZodString;
1794
- _telemetry: z.ZodOptional<z.ZodObject<{
1795
- isNested: z.ZodOptional<z.ZodBoolean>;
1796
- }, z.core.$strip>>;
1797
1767
  }, z.core.$strip>;
1798
1768
  type DeleteClientCredentialsOptions = z.infer<typeof DeleteClientCredentialsSchema> & FunctionOptions;
1799
1769
  interface DeleteClientCredentialsResult {