@zapier/zapier-sdk 0.15.2 → 0.15.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/api/auth.d.ts +10 -0
  3. package/dist/api/auth.d.ts.map +1 -1
  4. package/dist/api/auth.js +35 -0
  5. package/dist/api/schemas.d.ts +38 -38
  6. package/dist/index.cjs +209 -27
  7. package/dist/index.d.mts +151 -59
  8. package/dist/index.mjs +209 -27
  9. package/dist/plugins/eventEmission/index.d.ts +1 -1
  10. package/dist/plugins/eventEmission/index.d.ts.map +1 -1
  11. package/dist/plugins/eventEmission/index.js +90 -22
  12. package/dist/plugins/eventEmission/index.test.js +179 -2
  13. package/dist/plugins/fetch/schemas.d.ts +2 -2
  14. package/dist/plugins/getAction/schemas.d.ts +2 -2
  15. package/dist/plugins/getInputFieldsSchema/schemas.d.ts +2 -2
  16. package/dist/plugins/listActions/index.test.js +25 -0
  17. package/dist/plugins/listActions/schemas.d.ts +2 -2
  18. package/dist/plugins/listAuthentications/index.test.js +20 -0
  19. package/dist/plugins/listInputFieldChoices/schemas.d.ts +6 -6
  20. package/dist/plugins/listInputFields/schemas.d.ts +6 -6
  21. package/dist/plugins/manifest/index.d.ts +42 -3
  22. package/dist/plugins/manifest/index.d.ts.map +1 -1
  23. package/dist/plugins/manifest/index.js +68 -1
  24. package/dist/plugins/manifest/index.test.js +513 -1
  25. package/dist/plugins/manifest/schemas.d.ts +75 -2
  26. package/dist/plugins/manifest/schemas.d.ts.map +1 -1
  27. package/dist/plugins/manifest/schemas.js +27 -3
  28. package/dist/plugins/request/schemas.d.ts +4 -4
  29. package/dist/plugins/runAction/schemas.d.ts +6 -6
  30. package/dist/schemas/Action.d.ts +1 -1
  31. package/dist/schemas/Auth.d.ts +6 -6
  32. package/dist/sdk.d.ts +23 -1
  33. package/dist/sdk.d.ts.map +1 -1
  34. package/package.json +1 -1
package/dist/index.d.mts CHANGED
@@ -330,7 +330,7 @@ interface EventEmissionContext {
330
330
  transport: EventTransport;
331
331
  config: EventEmissionConfig;
332
332
  emit<T extends any>(subject: string, event: T): void;
333
- createBaseEvent(): BaseEvent;
333
+ createBaseEvent(): Promise<BaseEvent>;
334
334
  };
335
335
  }
336
336
  interface EventEmissionProvides {
@@ -455,19 +455,19 @@ declare const ActionSchema: z.ZodObject<{
455
455
  key: string;
456
456
  name: string;
457
457
  description: string;
458
+ selected_api?: string | undefined;
458
459
  id?: string | undefined;
459
460
  is_important?: boolean | undefined;
460
461
  is_hidden?: boolean | undefined;
461
- selected_api?: string | undefined;
462
462
  }, {
463
463
  type: "search" | "filter" | "read" | "read_bulk" | "run" | "search_and_write" | "search_or_write" | "write";
464
464
  key: string;
465
465
  name: string;
466
466
  description: string;
467
+ selected_api?: string | undefined;
467
468
  id?: string | undefined;
468
469
  is_important?: boolean | undefined;
469
470
  is_hidden?: boolean | undefined;
470
- selected_api?: string | undefined;
471
471
  }>;
472
472
  declare const ChoiceSchema: z.ZodObject<{
473
473
  value: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
@@ -616,17 +616,17 @@ declare const AuthenticationSchema: z.ZodObject<{
616
616
  members: z.ZodOptional<z.ZodString>;
617
617
  permissions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
618
618
  }, "strip", z.ZodTypeAny, {
619
+ account_id: number;
620
+ selected_api: string;
619
621
  id: number;
620
622
  date: string;
621
- selected_api: string;
622
- account_id: number;
623
623
  is_invite_only: boolean;
624
624
  is_private: boolean;
625
625
  shared_with_all: boolean;
626
626
  url?: string | undefined;
627
+ customuser_id?: number | undefined;
627
628
  label?: string | null | undefined;
628
629
  lastchanged?: string | undefined;
629
- customuser_id?: number | undefined;
630
630
  destination_selected_api?: string | null | undefined;
631
631
  is_stale?: string | undefined;
632
632
  is_shared?: string | undefined;
@@ -637,17 +637,17 @@ declare const AuthenticationSchema: z.ZodObject<{
637
637
  members?: string | undefined;
638
638
  permissions?: Record<string, boolean> | undefined;
639
639
  }, {
640
+ account_id: number;
641
+ selected_api: string;
640
642
  id: number;
641
643
  date: string;
642
- selected_api: string;
643
- account_id: number;
644
644
  is_invite_only: boolean;
645
645
  is_private: boolean;
646
646
  shared_with_all: boolean;
647
647
  url?: string | undefined;
648
+ customuser_id?: number | undefined;
648
649
  label?: string | null | undefined;
649
650
  lastchanged?: string | undefined;
650
- customuser_id?: number | undefined;
651
651
  destination_selected_api?: string | null | undefined;
652
652
  is_stale?: string | undefined;
653
653
  is_shared?: string | undefined;
@@ -684,17 +684,17 @@ declare const AuthenticationsResponseSchema: z.ZodObject<{
684
684
  members: z.ZodOptional<z.ZodString>;
685
685
  permissions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
686
686
  }, "strip", z.ZodTypeAny, {
687
+ account_id: number;
688
+ selected_api: string;
687
689
  id: number;
688
690
  date: string;
689
- selected_api: string;
690
- account_id: number;
691
691
  is_invite_only: boolean;
692
692
  is_private: boolean;
693
693
  shared_with_all: boolean;
694
694
  url?: string | undefined;
695
+ customuser_id?: number | undefined;
695
696
  label?: string | null | undefined;
696
697
  lastchanged?: string | undefined;
697
- customuser_id?: number | undefined;
698
698
  destination_selected_api?: string | null | undefined;
699
699
  is_stale?: string | undefined;
700
700
  is_shared?: string | undefined;
@@ -705,17 +705,17 @@ declare const AuthenticationsResponseSchema: z.ZodObject<{
705
705
  members?: string | undefined;
706
706
  permissions?: Record<string, boolean> | undefined;
707
707
  }, {
708
+ account_id: number;
709
+ selected_api: string;
708
710
  id: number;
709
711
  date: string;
710
- selected_api: string;
711
- account_id: number;
712
712
  is_invite_only: boolean;
713
713
  is_private: boolean;
714
714
  shared_with_all: boolean;
715
715
  url?: string | undefined;
716
+ customuser_id?: number | undefined;
716
717
  label?: string | null | undefined;
717
718
  lastchanged?: string | undefined;
718
- customuser_id?: number | undefined;
719
719
  destination_selected_api?: string | null | undefined;
720
720
  is_stale?: string | undefined;
721
721
  is_shared?: string | undefined;
@@ -729,17 +729,17 @@ declare const AuthenticationsResponseSchema: z.ZodObject<{
729
729
  }, "strip", z.ZodTypeAny, {
730
730
  count: number;
731
731
  results: {
732
+ account_id: number;
733
+ selected_api: string;
732
734
  id: number;
733
735
  date: string;
734
- selected_api: string;
735
- account_id: number;
736
736
  is_invite_only: boolean;
737
737
  is_private: boolean;
738
738
  shared_with_all: boolean;
739
739
  url?: string | undefined;
740
+ customuser_id?: number | undefined;
740
741
  label?: string | null | undefined;
741
742
  lastchanged?: string | undefined;
742
- customuser_id?: number | undefined;
743
743
  destination_selected_api?: string | null | undefined;
744
744
  is_stale?: string | undefined;
745
745
  is_shared?: string | undefined;
@@ -755,17 +755,17 @@ declare const AuthenticationsResponseSchema: z.ZodObject<{
755
755
  }, {
756
756
  count: number;
757
757
  results: {
758
+ account_id: number;
759
+ selected_api: string;
758
760
  id: number;
759
761
  date: string;
760
- selected_api: string;
761
- account_id: number;
762
762
  is_invite_only: boolean;
763
763
  is_private: boolean;
764
764
  shared_with_all: boolean;
765
765
  url?: string | undefined;
766
+ customuser_id?: number | undefined;
766
767
  label?: string | null | undefined;
767
768
  lastchanged?: string | undefined;
768
- customuser_id?: number | undefined;
769
769
  destination_selected_api?: string | null | undefined;
770
770
  is_stale?: string | undefined;
771
771
  is_shared?: string | undefined;
@@ -1307,8 +1307,39 @@ type ManifestEntry = {
1307
1307
  version?: string;
1308
1308
  };
1309
1309
  type GetVersionedImplementationId = (appKey: string) => Promise<string | null>;
1310
+ /**
1311
+ * Action entry for storing saved action configurations
1312
+ * The key in the actions record IS the user-provided name
1313
+ */
1314
+ declare const ActionEntrySchema: z.ZodObject<{
1315
+ appKey: z.ZodString;
1316
+ actionKey: z.ZodString;
1317
+ actionType: z.ZodString;
1318
+ authenticationId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1319
+ inputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1320
+ schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1321
+ createdAt: z.ZodString;
1322
+ }, "strip", z.ZodTypeAny, {
1323
+ schema: Record<string, unknown>;
1324
+ appKey: string;
1325
+ actionKey: string;
1326
+ actionType: string;
1327
+ createdAt: string;
1328
+ authenticationId?: number | null | undefined;
1329
+ inputs?: Record<string, unknown> | undefined;
1330
+ }, {
1331
+ schema: Record<string, unknown>;
1332
+ appKey: string;
1333
+ actionKey: string;
1334
+ actionType: string;
1335
+ createdAt: string;
1336
+ authenticationId?: number | null | undefined;
1337
+ inputs?: Record<string, unknown> | undefined;
1338
+ }>;
1339
+ type ActionEntry = z.infer<typeof ActionEntrySchema>;
1310
1340
  type Manifest = {
1311
1341
  apps: Record<string, ManifestEntry>;
1342
+ actions?: Record<string, ActionEntry>;
1312
1343
  };
1313
1344
  type ResolveAppKeys = ({ appKeys, }: {
1314
1345
  appKeys: string[];
@@ -1347,11 +1378,50 @@ interface UpdateManifestEntryOptions {
1347
1378
  skipWrite?: boolean;
1348
1379
  manifest?: Manifest;
1349
1380
  }
1381
+ interface UpdateManifestEntryResult {
1382
+ key: string;
1383
+ entry: ManifestEntry;
1384
+ manifest: Manifest;
1385
+ }
1386
+ interface AddActionEntryOptions {
1387
+ name: string;
1388
+ entry: ActionEntry;
1389
+ configPath?: string;
1390
+ skipWrite?: boolean;
1391
+ manifest?: Manifest;
1392
+ }
1393
+ interface AddActionEntryResult {
1394
+ name: string;
1395
+ entry: ActionEntry;
1396
+ manifest: Manifest;
1397
+ }
1350
1398
  interface ManifestPluginProvides {
1351
1399
  context: {
1352
1400
  getVersionedImplementationId: GetVersionedImplementationId;
1353
1401
  resolveAppKeys: ResolveAppKeys;
1354
- updateManifestEntry: (options: UpdateManifestEntryOptions) => Promise<[string, ManifestEntry, Manifest]>;
1402
+ updateManifestEntry: (options: UpdateManifestEntryOptions) => Promise<UpdateManifestEntryResult>;
1403
+ addActionEntry: (options: AddActionEntryOptions) => Promise<AddActionEntryResult>;
1404
+ findActionEntry: (options: {
1405
+ name: string;
1406
+ manifest: Manifest;
1407
+ }) => ActionEntry | null;
1408
+ listActionEntries: (options?: {
1409
+ configPath?: string;
1410
+ }) => Promise<Array<[string, ActionEntry]>>;
1411
+ deleteActionEntry: (options: {
1412
+ name: string;
1413
+ configPath?: string;
1414
+ skipWrite?: boolean;
1415
+ }) => Promise<Manifest>;
1416
+ hasActionEntry: (options: {
1417
+ name: string;
1418
+ manifest: Manifest;
1419
+ }) => boolean;
1420
+ findManifestEntry: (options: {
1421
+ appKey: string;
1422
+ manifest: Manifest;
1423
+ }) => [string, ManifestEntry] | null;
1424
+ readManifestFromFile: (filePath: string) => Promise<Manifest | null>;
1355
1425
  };
1356
1426
  }
1357
1427
  /**
@@ -1562,22 +1632,22 @@ declare const ListInputFieldsSchema: z.ZodObject<{
1562
1632
  cursor: z.ZodOptional<z.ZodString>;
1563
1633
  }, "strip", z.ZodTypeAny, {
1564
1634
  appKey: string;
1565
- actionType: "search" | "filter" | "read" | "read_bulk" | "run" | "search_and_write" | "search_or_write" | "write";
1566
1635
  actionKey: string;
1636
+ actionType: "search" | "filter" | "read" | "read_bulk" | "run" | "search_and_write" | "search_or_write" | "write";
1637
+ authenticationId?: number | null | undefined;
1638
+ inputs?: Record<string, unknown> | undefined;
1567
1639
  pageSize?: number | undefined;
1568
1640
  maxItems?: number | undefined;
1569
1641
  cursor?: string | undefined;
1570
- authenticationId?: number | null | undefined;
1571
- inputs?: Record<string, unknown> | undefined;
1572
1642
  }, {
1573
1643
  appKey: string;
1574
- actionType: "search" | "filter" | "read" | "read_bulk" | "run" | "search_and_write" | "search_or_write" | "write";
1575
1644
  actionKey: string;
1645
+ actionType: "search" | "filter" | "read" | "read_bulk" | "run" | "search_and_write" | "search_or_write" | "write";
1646
+ authenticationId?: number | null | undefined;
1647
+ inputs?: Record<string, unknown> | undefined;
1576
1648
  pageSize?: number | undefined;
1577
1649
  maxItems?: number | undefined;
1578
1650
  cursor?: string | undefined;
1579
- authenticationId?: number | null | undefined;
1580
- inputs?: Record<string, unknown> | undefined;
1581
1651
  }>;
1582
1652
  type ListInputFieldsOptions = z.infer<typeof ListInputFieldsSchema>;
1583
1653
 
@@ -1649,18 +1719,18 @@ declare const RelayRequestSchema: z.ZodObject<{
1649
1719
  }, "strip", z.ZodTypeAny, {
1650
1720
  url: string;
1651
1721
  method?: "POST" | "GET" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS" | undefined;
1722
+ authenticationId?: number | undefined;
1652
1723
  headers?: Record<string, string> | [string, string][] | Headers | undefined;
1653
1724
  body?: any;
1654
- authenticationId?: number | undefined;
1655
1725
  callbackUrl?: string | undefined;
1656
1726
  authenticationTemplate?: string | undefined;
1657
1727
  relayBaseUrl?: string | undefined;
1658
1728
  }, {
1659
1729
  url: string;
1660
1730
  method?: "POST" | "GET" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS" | undefined;
1731
+ authenticationId?: number | undefined;
1661
1732
  headers?: Record<string, string> | [string, string][] | Headers | undefined;
1662
1733
  body?: any;
1663
- authenticationId?: number | undefined;
1664
1734
  callbackUrl?: string | undefined;
1665
1735
  authenticationTemplate?: string | undefined;
1666
1736
  relayBaseUrl?: string | undefined;
@@ -1679,18 +1749,18 @@ declare const RelayFetchSchema: z.ZodObject<{
1679
1749
  }, "strip", z.ZodTypeAny, {
1680
1750
  url: string;
1681
1751
  method?: "POST" | "GET" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS" | undefined;
1752
+ authenticationId?: number | undefined;
1682
1753
  headers?: Record<string, string> | [string, string][] | Headers | undefined;
1683
1754
  body?: any;
1684
- authenticationId?: number | undefined;
1685
1755
  callbackUrl?: string | undefined;
1686
1756
  authenticationTemplate?: string | undefined;
1687
1757
  relayBaseUrl?: string | undefined;
1688
1758
  }, {
1689
1759
  url: string;
1690
1760
  method?: "POST" | "GET" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS" | undefined;
1761
+ authenticationId?: number | undefined;
1691
1762
  headers?: Record<string, string> | [string, string][] | Headers | undefined;
1692
1763
  body?: any;
1693
- authenticationId?: number | undefined;
1694
1764
  callbackUrl?: string | undefined;
1695
1765
  authenticationTemplate?: string | undefined;
1696
1766
  relayBaseUrl?: string | undefined;
@@ -1853,22 +1923,22 @@ declare const RunActionSchema: z.ZodObject<{
1853
1923
  cursor: z.ZodOptional<z.ZodString>;
1854
1924
  }, "strip", z.ZodTypeAny, {
1855
1925
  appKey: string;
1856
- actionType: "search" | "filter" | "read" | "read_bulk" | "run" | "search_and_write" | "search_or_write" | "write";
1857
1926
  actionKey: string;
1927
+ actionType: "search" | "filter" | "read" | "read_bulk" | "run" | "search_and_write" | "search_or_write" | "write";
1928
+ authenticationId?: number | null | undefined;
1929
+ inputs?: Record<string, unknown> | undefined;
1858
1930
  pageSize?: number | undefined;
1859
1931
  maxItems?: number | undefined;
1860
1932
  cursor?: string | undefined;
1861
- authenticationId?: number | null | undefined;
1862
- inputs?: Record<string, unknown> | undefined;
1863
1933
  }, {
1864
1934
  appKey: string;
1865
- actionType: "search" | "filter" | "read" | "read_bulk" | "run" | "search_and_write" | "search_or_write" | "write";
1866
1935
  actionKey: string;
1936
+ actionType: "search" | "filter" | "read" | "read_bulk" | "run" | "search_and_write" | "search_or_write" | "write";
1937
+ authenticationId?: number | null | undefined;
1938
+ inputs?: Record<string, unknown> | undefined;
1867
1939
  pageSize?: number | undefined;
1868
1940
  maxItems?: number | undefined;
1869
1941
  cursor?: string | undefined;
1870
- authenticationId?: number | null | undefined;
1871
- inputs?: Record<string, unknown> | undefined;
1872
1942
  }>;
1873
1943
  type RunActionOptions = z.infer<typeof RunActionSchema>;
1874
1944
 
@@ -1880,12 +1950,12 @@ declare const GetActionSchema: z.ZodObject<{
1880
1950
  actionKey: z.ZodString;
1881
1951
  }, "strip", z.ZodTypeAny, {
1882
1952
  appKey: string;
1883
- actionType: "search" | "filter" | "read" | "read_bulk" | "run" | "search_and_write" | "search_or_write" | "write";
1884
1953
  actionKey: string;
1954
+ actionType: "search" | "filter" | "read" | "read_bulk" | "run" | "search_and_write" | "search_or_write" | "write";
1885
1955
  }, {
1886
1956
  appKey: string;
1887
- actionType: "search" | "filter" | "read" | "read_bulk" | "run" | "search_and_write" | "search_or_write" | "write";
1888
1957
  actionKey: string;
1958
+ actionType: "search" | "filter" | "read" | "read_bulk" | "run" | "search_and_write" | "search_or_write" | "write";
1889
1959
  }>;
1890
1960
  type GetActionOptions = z.infer<typeof GetActionSchema>;
1891
1961
 
@@ -1899,16 +1969,16 @@ declare const ListActionsSchema: z.ZodObject<{
1899
1969
  cursor: z.ZodOptional<z.ZodString>;
1900
1970
  }, "strip", z.ZodTypeAny, {
1901
1971
  appKey: string;
1972
+ actionType?: "search" | "filter" | "read" | "read_bulk" | "run" | "search_and_write" | "search_or_write" | "write" | undefined;
1902
1973
  pageSize?: number | undefined;
1903
1974
  maxItems?: number | undefined;
1904
1975
  cursor?: string | undefined;
1905
- actionType?: "search" | "filter" | "read" | "read_bulk" | "run" | "search_and_write" | "search_or_write" | "write" | undefined;
1906
1976
  }, {
1907
1977
  appKey: string;
1978
+ actionType?: "search" | "filter" | "read" | "read_bulk" | "run" | "search_and_write" | "search_or_write" | "write" | undefined;
1908
1979
  pageSize?: number | undefined;
1909
1980
  maxItems?: number | undefined;
1910
1981
  cursor?: string | undefined;
1911
- actionType?: "search" | "filter" | "read" | "read_bulk" | "run" | "search_and_write" | "search_or_write" | "write" | undefined;
1912
1982
  }>;
1913
1983
  type ListActionsOptions = z.infer<typeof ListActionsSchema>;
1914
1984
 
@@ -2409,14 +2479,14 @@ declare const GetInputFieldsSchemaSchema: z.ZodObject<{
2409
2479
  inputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2410
2480
  }, "strip", z.ZodTypeAny, {
2411
2481
  appKey: string;
2412
- actionType: "search" | "filter" | "read" | "read_bulk" | "run" | "search_and_write" | "search_or_write" | "write";
2413
2482
  actionKey: string;
2483
+ actionType: "search" | "filter" | "read" | "read_bulk" | "run" | "search_and_write" | "search_or_write" | "write";
2414
2484
  authenticationId?: number | null | undefined;
2415
2485
  inputs?: Record<string, unknown> | undefined;
2416
2486
  }, {
2417
2487
  appKey: string;
2418
- actionType: "search" | "filter" | "read" | "read_bulk" | "run" | "search_and_write" | "search_or_write" | "write";
2419
2488
  actionKey: string;
2489
+ actionType: "search" | "filter" | "read" | "read_bulk" | "run" | "search_and_write" | "search_or_write" | "write";
2420
2490
  authenticationId?: number | null | undefined;
2421
2491
  inputs?: Record<string, unknown> | undefined;
2422
2492
  }>;
@@ -2467,26 +2537,26 @@ declare const ListInputFieldChoicesSchema: z.ZodObject<{
2467
2537
  cursor: z.ZodOptional<z.ZodString>;
2468
2538
  }, "strip", z.ZodTypeAny, {
2469
2539
  appKey: string;
2470
- actionType: "search" | "filter" | "read" | "read_bulk" | "run" | "search_and_write" | "search_or_write" | "write";
2471
2540
  actionKey: string;
2541
+ actionType: "search" | "filter" | "read" | "read_bulk" | "run" | "search_and_write" | "search_or_write" | "write";
2472
2542
  inputFieldKey: string;
2473
2543
  page?: number | undefined;
2544
+ authenticationId?: number | null | undefined;
2545
+ inputs?: Record<string, unknown> | undefined;
2474
2546
  pageSize?: number | undefined;
2475
2547
  maxItems?: number | undefined;
2476
2548
  cursor?: string | undefined;
2477
- authenticationId?: number | null | undefined;
2478
- inputs?: Record<string, unknown> | undefined;
2479
2549
  }, {
2480
2550
  appKey: string;
2481
- actionType: "search" | "filter" | "read" | "read_bulk" | "run" | "search_and_write" | "search_or_write" | "write";
2482
2551
  actionKey: string;
2552
+ actionType: "search" | "filter" | "read" | "read_bulk" | "run" | "search_and_write" | "search_or_write" | "write";
2483
2553
  inputFieldKey: string;
2484
2554
  page?: number | undefined;
2555
+ authenticationId?: number | null | undefined;
2556
+ inputs?: Record<string, unknown> | undefined;
2485
2557
  pageSize?: number | undefined;
2486
2558
  maxItems?: number | undefined;
2487
2559
  cursor?: string | undefined;
2488
- authenticationId?: number | null | undefined;
2489
- inputs?: Record<string, unknown> | undefined;
2490
2560
  }>;
2491
2561
  type ListInputFieldChoicesOptions = z.infer<typeof ListInputFieldChoicesSchema>;
2492
2562
 
@@ -2952,7 +3022,7 @@ declare const AuthenticationItemSchema: z.ZodObject<Omit<{
2952
3022
  groups: z.ZodOptional<z.ZodString>;
2953
3023
  members: z.ZodOptional<z.ZodString>;
2954
3024
  permissions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
2955
- }, "selected_api" | "customuser_id"> & {
3025
+ }, "customuser_id" | "selected_api"> & {
2956
3026
  implementation_id: z.ZodOptional<z.ZodString>;
2957
3027
  is_expired: z.ZodOptional<z.ZodString>;
2958
3028
  expired_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -2960,9 +3030,9 @@ declare const AuthenticationItemSchema: z.ZodObject<Omit<{
2960
3030
  app_version: z.ZodOptional<z.ZodString>;
2961
3031
  user_id: z.ZodOptional<z.ZodNumber>;
2962
3032
  }, "strip", z.ZodTypeAny, {
3033
+ account_id: number;
2963
3034
  id: number;
2964
3035
  date: string;
2965
- account_id: number;
2966
3036
  is_invite_only: boolean;
2967
3037
  is_private: boolean;
2968
3038
  shared_with_all: boolean;
@@ -2985,9 +3055,9 @@ declare const AuthenticationItemSchema: z.ZodObject<Omit<{
2985
3055
  app_key?: string | undefined;
2986
3056
  app_version?: string | undefined;
2987
3057
  }, {
3058
+ account_id: number;
2988
3059
  id: number;
2989
3060
  date: string;
2990
- account_id: number;
2991
3061
  is_invite_only: boolean;
2992
3062
  is_private: boolean;
2993
3063
  shared_with_all: boolean;
@@ -3031,7 +3101,7 @@ declare const AuthItemSchema: z.ZodObject<Omit<{
3031
3101
  groups: z.ZodOptional<z.ZodString>;
3032
3102
  members: z.ZodOptional<z.ZodString>;
3033
3103
  permissions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
3034
- }, "selected_api" | "customuser_id"> & {
3104
+ }, "customuser_id" | "selected_api"> & {
3035
3105
  implementation_id: z.ZodOptional<z.ZodString>;
3036
3106
  is_expired: z.ZodOptional<z.ZodString>;
3037
3107
  expired_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -3039,9 +3109,9 @@ declare const AuthItemSchema: z.ZodObject<Omit<{
3039
3109
  app_version: z.ZodOptional<z.ZodString>;
3040
3110
  user_id: z.ZodOptional<z.ZodNumber>;
3041
3111
  }, "strip", z.ZodTypeAny, {
3112
+ account_id: number;
3042
3113
  id: number;
3043
3114
  date: string;
3044
- account_id: number;
3045
3115
  is_invite_only: boolean;
3046
3116
  is_private: boolean;
3047
3117
  shared_with_all: boolean;
@@ -3064,9 +3134,9 @@ declare const AuthItemSchema: z.ZodObject<Omit<{
3064
3134
  app_key?: string | undefined;
3065
3135
  app_version?: string | undefined;
3066
3136
  }, {
3137
+ account_id: number;
3067
3138
  id: number;
3068
3139
  date: string;
3069
- account_id: number;
3070
3140
  is_invite_only: boolean;
3071
3141
  is_private: boolean;
3072
3142
  shared_with_all: boolean;
@@ -3100,7 +3170,7 @@ declare const ActionItemSchema: z.ZodObject<Omit<{
3100
3170
  is_important: z.ZodOptional<z.ZodBoolean>;
3101
3171
  is_hidden: z.ZodOptional<z.ZodBoolean>;
3102
3172
  selected_api: z.ZodOptional<z.ZodString>;
3103
- }, "type" | "name" | "selected_api"> & {
3173
+ }, "type" | "selected_api" | "name"> & {
3104
3174
  app_key: z.ZodString;
3105
3175
  app_version: z.ZodOptional<z.ZodString>;
3106
3176
  action_type: z.ZodEnum<["filter", "read", "read_bulk", "run", "search", "search_and_write", "search_or_write", "write"]>;
@@ -3575,7 +3645,29 @@ declare function createZapierSdkWithoutRegistry(options?: ZapierSdkOptions): Sdk
3575
3645
  } & {
3576
3646
  getVersionedImplementationId: GetVersionedImplementationId;
3577
3647
  resolveAppKeys: ResolveAppKeys;
3578
- updateManifestEntry: (options: UpdateManifestEntryOptions) => Promise<[string, ManifestEntry, Manifest]>;
3648
+ updateManifestEntry: (options: UpdateManifestEntryOptions) => Promise<UpdateManifestEntryResult>;
3649
+ addActionEntry: (options: AddActionEntryOptions) => Promise<AddActionEntryResult>;
3650
+ findActionEntry: (options: {
3651
+ name: string;
3652
+ manifest: Manifest;
3653
+ }) => ActionEntry | null;
3654
+ listActionEntries: (options?: {
3655
+ configPath?: string;
3656
+ }) => Promise<Array<[string, ActionEntry]>>;
3657
+ deleteActionEntry: (options: {
3658
+ name: string;
3659
+ configPath?: string;
3660
+ skipWrite?: boolean;
3661
+ }) => Promise<Manifest>;
3662
+ hasActionEntry: (options: {
3663
+ name: string;
3664
+ manifest: Manifest;
3665
+ }) => boolean;
3666
+ findManifestEntry: (options: {
3667
+ appKey: string;
3668
+ manifest: Manifest;
3669
+ }) => [string, ManifestEntry] | null;
3670
+ readManifestFromFile: (filePath: string) => Promise<Manifest | null>;
3579
3671
  } & {
3580
3672
  meta: {
3581
3673
  listApps: {
@@ -3675,4 +3767,4 @@ declare function createZapierSdkWithoutRegistry(options?: ZapierSdkOptions): Sdk
3675
3767
  }>;
3676
3768
  declare function createZapierSdk(options?: ZapierSdkOptions): ZapierSdk;
3677
3769
 
3678
- export { type Action, type ActionExecutionOptions, type ActionExecutionResult, type ActionField, type ActionFieldChoice, type ActionItem$1 as ActionItem, type ActionKeyProperty, ActionKeyPropertySchema, type ActionTypeProperty, ActionTypePropertySchema, 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 RootFieldItem, type RunActionPluginProvides, type Sdk, type SdkEvent, type UpdateManifestEntryOptions, 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, runActionPlugin, toSnakeCase, toTitleCase };
3770
+ 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 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, runActionPlugin, toSnakeCase, toTitleCase };