@zapier/zapier-sdk 0.15.1 → 0.15.3

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 (65) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/api/client.d.ts.map +1 -1
  3. package/dist/api/client.integration.test.d.ts +5 -0
  4. package/dist/api/client.integration.test.d.ts.map +1 -0
  5. package/dist/api/client.integration.test.js +318 -0
  6. package/dist/api/client.js +31 -1
  7. package/dist/index.cjs +401 -108
  8. package/dist/index.d.mts +360 -56
  9. package/dist/index.mjs +401 -108
  10. package/dist/plugins/fetch/schemas.d.ts +2 -2
  11. package/dist/plugins/getAction/schemas.d.ts +2 -2
  12. package/dist/plugins/getApp/index.test.js +17 -21
  13. package/dist/plugins/getInputFieldsSchema/schemas.d.ts +2 -2
  14. package/dist/plugins/listActions/index.test.js +25 -0
  15. package/dist/plugins/listActions/schemas.d.ts +6 -6
  16. package/dist/plugins/listApps/index.d.ts +1 -3
  17. package/dist/plugins/listApps/index.d.ts.map +1 -1
  18. package/dist/plugins/listApps/index.js +18 -44
  19. package/dist/plugins/listApps/index.test.js +89 -288
  20. package/dist/plugins/listApps/schemas.d.ts +19 -26
  21. package/dist/plugins/listApps/schemas.d.ts.map +1 -1
  22. package/dist/plugins/listApps/schemas.js +19 -18
  23. package/dist/plugins/listAuthentications/index.test.js +20 -0
  24. package/dist/plugins/listAuthentications/schemas.d.ts +4 -4
  25. package/dist/plugins/listInputFieldChoices/schemas.d.ts +8 -8
  26. package/dist/plugins/listInputFields/schemas.d.ts +8 -8
  27. package/dist/plugins/manifest/index.d.ts +42 -3
  28. package/dist/plugins/manifest/index.d.ts.map +1 -1
  29. package/dist/plugins/manifest/index.js +68 -1
  30. package/dist/plugins/manifest/index.test.js +513 -1
  31. package/dist/plugins/manifest/schemas.d.ts +75 -2
  32. package/dist/plugins/manifest/schemas.d.ts.map +1 -1
  33. package/dist/plugins/manifest/schemas.js +27 -3
  34. package/dist/plugins/request/schemas.d.ts +4 -4
  35. package/dist/plugins/runAction/schemas.d.ts +8 -8
  36. package/dist/sdk.d.ts +24 -2
  37. package/dist/sdk.d.ts.map +1 -1
  38. package/dist/temporary-internal-core/handlers/listApps.d.ts +67 -0
  39. package/dist/temporary-internal-core/handlers/listApps.d.ts.map +1 -0
  40. package/dist/temporary-internal-core/handlers/listApps.js +121 -0
  41. package/dist/temporary-internal-core/handlers/listApps.test.d.ts +2 -0
  42. package/dist/temporary-internal-core/handlers/listApps.test.d.ts.map +1 -0
  43. package/dist/temporary-internal-core/handlers/listApps.test.js +328 -0
  44. package/dist/temporary-internal-core/index.d.ts +4 -0
  45. package/dist/temporary-internal-core/index.d.ts.map +1 -1
  46. package/dist/temporary-internal-core/index.js +5 -1
  47. package/dist/temporary-internal-core/schemas/apps/index.d.ts +582 -0
  48. package/dist/temporary-internal-core/schemas/apps/index.d.ts.map +1 -0
  49. package/dist/temporary-internal-core/schemas/apps/index.js +95 -0
  50. package/dist/temporary-internal-core/schemas/implementations/index.d.ts +511 -0
  51. package/dist/temporary-internal-core/schemas/implementations/index.d.ts.map +1 -0
  52. package/dist/temporary-internal-core/schemas/implementations/index.js +79 -0
  53. package/dist/temporary-internal-core/types/handler.d.ts +51 -0
  54. package/dist/temporary-internal-core/types/handler.d.ts.map +1 -0
  55. package/dist/temporary-internal-core/types/handler.js +8 -0
  56. package/dist/temporary-internal-core/types/index.d.ts +5 -0
  57. package/dist/temporary-internal-core/types/index.d.ts.map +1 -0
  58. package/dist/temporary-internal-core/types/index.js +4 -0
  59. package/dist/temporary-internal-core/utils/app-locators.d.ts +54 -0
  60. package/dist/temporary-internal-core/utils/app-locators.d.ts.map +1 -0
  61. package/dist/temporary-internal-core/utils/app-locators.js +83 -0
  62. package/dist/temporary-internal-core/utils/transformations.d.ts +18 -0
  63. package/dist/temporary-internal-core/utils/transformations.d.ts.map +1 -0
  64. package/dist/temporary-internal-core/utils/transformations.js +36 -0
  65. package/package.json +1 -1
package/dist/index.d.mts CHANGED
@@ -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;
1567
- cursor?: string | undefined;
1568
- maxItems?: number | undefined;
1569
- pageSize?: number | undefined;
1636
+ actionType: "search" | "filter" | "read" | "read_bulk" | "run" | "search_and_write" | "search_or_write" | "write";
1570
1637
  authenticationId?: number | null | undefined;
1571
1638
  inputs?: Record<string, unknown> | undefined;
1639
+ pageSize?: number | undefined;
1640
+ maxItems?: number | undefined;
1641
+ cursor?: string | 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;
1576
- cursor?: string | undefined;
1577
- maxItems?: number | undefined;
1578
- pageSize?: number | undefined;
1645
+ actionType: "search" | "filter" | "read" | "read_bulk" | "run" | "search_and_write" | "search_or_write" | "write";
1579
1646
  authenticationId?: number | null | undefined;
1580
1647
  inputs?: Record<string, unknown> | undefined;
1648
+ pageSize?: number | undefined;
1649
+ maxItems?: number | undefined;
1650
+ cursor?: string | 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;
1858
- cursor?: string | undefined;
1859
- maxItems?: number | undefined;
1860
- pageSize?: number | undefined;
1927
+ actionType: "search" | "filter" | "read" | "read_bulk" | "run" | "search_and_write" | "search_or_write" | "write";
1861
1928
  authenticationId?: number | null | undefined;
1862
1929
  inputs?: Record<string, unknown> | undefined;
1930
+ pageSize?: number | undefined;
1931
+ maxItems?: number | undefined;
1932
+ cursor?: string | 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;
1867
- cursor?: string | undefined;
1868
- maxItems?: number | undefined;
1869
- pageSize?: number | undefined;
1936
+ actionType: "search" | "filter" | "read" | "read_bulk" | "run" | "search_and_write" | "search_or_write" | "write";
1870
1937
  authenticationId?: number | null | undefined;
1871
1938
  inputs?: Record<string, unknown> | undefined;
1939
+ pageSize?: number | undefined;
1940
+ maxItems?: number | undefined;
1941
+ cursor?: string | 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;
1902
- cursor?: string | undefined;
1903
- maxItems?: number | undefined;
1904
- pageSize?: number | undefined;
1905
1972
  actionType?: "search" | "filter" | "read" | "read_bulk" | "run" | "search_and_write" | "search_or_write" | "write" | undefined;
1973
+ pageSize?: number | undefined;
1974
+ maxItems?: number | undefined;
1975
+ cursor?: string | undefined;
1906
1976
  }, {
1907
1977
  appKey: string;
1908
- cursor?: string | undefined;
1909
- maxItems?: number | undefined;
1910
- pageSize?: number | undefined;
1911
1978
  actionType?: "search" | "filter" | "read" | "read_bulk" | "run" | "search_and_write" | "search_or_write" | "write" | undefined;
1979
+ pageSize?: number | undefined;
1980
+ maxItems?: number | undefined;
1981
+ cursor?: string | undefined;
1912
1982
  }>;
1913
1983
  type ListActionsOptions = z.infer<typeof ListActionsSchema>;
1914
1984
 
@@ -1964,7 +2034,22 @@ declare const GetAppSchema: z.ZodObject<{
1964
2034
  }>;
1965
2035
  type GetAppOptions = z.infer<typeof GetAppSchema>;
1966
2036
 
1967
- declare const ListAppsSchema: z.ZodObject<{
2037
+ /**
2038
+ * App and Service schemas
2039
+ *
2040
+ * Covers:
2041
+ * - App metadata
2042
+ * - Service definitions
2043
+ * - App listings and searches
2044
+ */
2045
+
2046
+ /**
2047
+ * Public API schema for listApps operation
2048
+ *
2049
+ * This is the user-facing schema that accepts app keys (slugs, implementation names, etc.)
2050
+ * The plugin resolves these to implementation IDs before calling the handler.
2051
+ */
2052
+ declare const ListAppsOptionsSchema: z.ZodObject<{
1968
2053
  appKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1969
2054
  search: z.ZodOptional<z.ZodString>;
1970
2055
  pageSize: z.ZodOptional<z.ZodNumber>;
@@ -1973,32 +2058,229 @@ declare const ListAppsSchema: z.ZodObject<{
1973
2058
  }, "strip", z.ZodTypeAny, {
1974
2059
  search?: string | undefined;
1975
2060
  appKeys?: string[] | undefined;
1976
- cursor?: string | undefined;
1977
- maxItems?: number | undefined;
1978
2061
  pageSize?: number | undefined;
2062
+ maxItems?: number | undefined;
2063
+ cursor?: string | undefined;
1979
2064
  }, {
1980
2065
  search?: string | undefined;
1981
2066
  appKeys?: string[] | undefined;
1982
- cursor?: string | undefined;
1983
- maxItems?: number | undefined;
1984
2067
  pageSize?: number | undefined;
2068
+ maxItems?: number | undefined;
2069
+ cursor?: string | undefined;
2070
+ }>;
2071
+ type ListAppsOptions = z.infer<typeof ListAppsOptionsSchema>;
2072
+ /**
2073
+ * Normalized app item returned by listApps
2074
+ * This extends ImplementationMetaSchema with transformed fields (title, key, implementation_id)
2075
+ */
2076
+ declare const AppItemSchema$1: z.ZodObject<{
2077
+ categories: z.ZodOptional<z.ZodArray<z.ZodObject<{
2078
+ id: z.ZodNumber;
2079
+ name: z.ZodString;
2080
+ slug: z.ZodString;
2081
+ }, "strip", z.ZodTypeAny, {
2082
+ id: number;
2083
+ name: string;
2084
+ slug: string;
2085
+ }, {
2086
+ id: number;
2087
+ name: string;
2088
+ slug: string;
2089
+ }>, "many">>;
2090
+ actions: z.ZodOptional<z.ZodObject<{
2091
+ read: z.ZodOptional<z.ZodNumber>;
2092
+ read_bulk: z.ZodOptional<z.ZodNumber>;
2093
+ write: z.ZodOptional<z.ZodNumber>;
2094
+ search: z.ZodOptional<z.ZodNumber>;
2095
+ search_or_write: z.ZodOptional<z.ZodNumber>;
2096
+ search_and_write: z.ZodOptional<z.ZodNumber>;
2097
+ filter: z.ZodOptional<z.ZodNumber>;
2098
+ }, "strip", z.ZodTypeAny, {
2099
+ search?: number | undefined;
2100
+ filter?: number | undefined;
2101
+ read?: number | undefined;
2102
+ read_bulk?: number | undefined;
2103
+ search_and_write?: number | undefined;
2104
+ search_or_write?: number | undefined;
2105
+ write?: number | undefined;
2106
+ }, {
2107
+ search?: number | undefined;
2108
+ filter?: number | undefined;
2109
+ read?: number | undefined;
2110
+ read_bulk?: number | undefined;
2111
+ search_and_write?: number | undefined;
2112
+ search_or_write?: number | undefined;
2113
+ write?: number | undefined;
2114
+ }>>;
2115
+ description: z.ZodOptional<z.ZodString>;
2116
+ is_hidden: z.ZodOptional<z.ZodBoolean>;
2117
+ age_in_days: z.ZodOptional<z.ZodNumber>;
2118
+ api_docs_url: z.ZodOptional<z.ZodString>;
2119
+ banner: z.ZodOptional<z.ZodString>;
2120
+ image: z.ZodOptional<z.ZodString>;
2121
+ images: z.ZodOptional<z.ZodObject<{
2122
+ url_16x16: z.ZodOptional<z.ZodString>;
2123
+ url_32x32: z.ZodOptional<z.ZodString>;
2124
+ url_64x64: z.ZodOptional<z.ZodString>;
2125
+ url_128x128: z.ZodOptional<z.ZodString>;
2126
+ }, "strip", z.ZodTypeAny, {
2127
+ url_16x16?: string | undefined;
2128
+ url_32x32?: string | undefined;
2129
+ url_64x64?: string | undefined;
2130
+ url_128x128?: string | undefined;
2131
+ }, {
2132
+ url_16x16?: string | undefined;
2133
+ url_32x32?: string | undefined;
2134
+ url_64x64?: string | undefined;
2135
+ url_128x128?: string | undefined;
2136
+ }>>;
2137
+ is_beta: z.ZodOptional<z.ZodBoolean>;
2138
+ is_built_in: z.ZodOptional<z.ZodBoolean>;
2139
+ is_featured: z.ZodOptional<z.ZodBoolean>;
2140
+ is_premium: z.ZodOptional<z.ZodBoolean>;
2141
+ is_public: z.ZodOptional<z.ZodBoolean>;
2142
+ is_upcoming: z.ZodOptional<z.ZodBoolean>;
2143
+ popularity: z.ZodOptional<z.ZodNumber>;
2144
+ primary_color: z.ZodOptional<z.ZodString>;
2145
+ slug: z.ZodString;
2146
+ auth_type: z.ZodOptional<z.ZodString>;
2147
+ is_deprecated: z.ZodOptional<z.ZodBoolean>;
2148
+ secondary_color: z.ZodOptional<z.ZodString>;
2149
+ has_filters: z.ZodOptional<z.ZodBoolean>;
2150
+ has_reads: z.ZodOptional<z.ZodBoolean>;
2151
+ has_searches: z.ZodOptional<z.ZodBoolean>;
2152
+ has_searches_or_writes: z.ZodOptional<z.ZodBoolean>;
2153
+ has_upfront_fields: z.ZodOptional<z.ZodBoolean>;
2154
+ has_writes: z.ZodOptional<z.ZodBoolean>;
2155
+ is_invite: z.ZodOptional<z.ZodBoolean>;
2156
+ visibility: z.ZodOptional<z.ZodString>;
2157
+ classification: z.ZodOptional<z.ZodString>;
2158
+ } & {
2159
+ title: z.ZodString;
2160
+ key: z.ZodString;
2161
+ implementation_id: z.ZodString;
2162
+ version: z.ZodOptional<z.ZodString>;
2163
+ }, "strip", z.ZodTypeAny, {
2164
+ key: string;
2165
+ title: string;
2166
+ slug: string;
2167
+ implementation_id: string;
2168
+ categories?: {
2169
+ id: number;
2170
+ name: string;
2171
+ slug: string;
2172
+ }[] | undefined;
2173
+ actions?: {
2174
+ search?: number | undefined;
2175
+ filter?: number | undefined;
2176
+ read?: number | undefined;
2177
+ read_bulk?: number | undefined;
2178
+ search_and_write?: number | undefined;
2179
+ search_or_write?: number | undefined;
2180
+ write?: number | undefined;
2181
+ } | undefined;
2182
+ description?: string | undefined;
2183
+ is_hidden?: boolean | undefined;
2184
+ age_in_days?: number | undefined;
2185
+ api_docs_url?: string | undefined;
2186
+ banner?: string | undefined;
2187
+ image?: string | undefined;
2188
+ images?: {
2189
+ url_16x16?: string | undefined;
2190
+ url_32x32?: string | undefined;
2191
+ url_64x64?: string | undefined;
2192
+ url_128x128?: string | undefined;
2193
+ } | undefined;
2194
+ is_beta?: boolean | undefined;
2195
+ is_built_in?: boolean | undefined;
2196
+ is_featured?: boolean | undefined;
2197
+ is_premium?: boolean | undefined;
2198
+ is_public?: boolean | undefined;
2199
+ is_upcoming?: boolean | undefined;
2200
+ popularity?: number | undefined;
2201
+ primary_color?: string | undefined;
2202
+ auth_type?: string | undefined;
2203
+ is_deprecated?: boolean | undefined;
2204
+ secondary_color?: string | undefined;
2205
+ has_filters?: boolean | undefined;
2206
+ has_reads?: boolean | undefined;
2207
+ has_searches?: boolean | undefined;
2208
+ has_searches_or_writes?: boolean | undefined;
2209
+ has_upfront_fields?: boolean | undefined;
2210
+ has_writes?: boolean | undefined;
2211
+ is_invite?: boolean | undefined;
2212
+ version?: string | undefined;
2213
+ visibility?: string | undefined;
2214
+ classification?: string | undefined;
2215
+ }, {
2216
+ key: string;
2217
+ title: string;
2218
+ slug: string;
2219
+ implementation_id: string;
2220
+ categories?: {
2221
+ id: number;
2222
+ name: string;
2223
+ slug: string;
2224
+ }[] | undefined;
2225
+ actions?: {
2226
+ search?: number | undefined;
2227
+ filter?: number | undefined;
2228
+ read?: number | undefined;
2229
+ read_bulk?: number | undefined;
2230
+ search_and_write?: number | undefined;
2231
+ search_or_write?: number | undefined;
2232
+ write?: number | undefined;
2233
+ } | undefined;
2234
+ description?: string | undefined;
2235
+ is_hidden?: boolean | undefined;
2236
+ age_in_days?: number | undefined;
2237
+ api_docs_url?: string | undefined;
2238
+ banner?: string | undefined;
2239
+ image?: string | undefined;
2240
+ images?: {
2241
+ url_16x16?: string | undefined;
2242
+ url_32x32?: string | undefined;
2243
+ url_64x64?: string | undefined;
2244
+ url_128x128?: string | undefined;
2245
+ } | undefined;
2246
+ is_beta?: boolean | undefined;
2247
+ is_built_in?: boolean | undefined;
2248
+ is_featured?: boolean | undefined;
2249
+ is_premium?: boolean | undefined;
2250
+ is_public?: boolean | undefined;
2251
+ is_upcoming?: boolean | undefined;
2252
+ popularity?: number | undefined;
2253
+ primary_color?: string | undefined;
2254
+ auth_type?: string | undefined;
2255
+ is_deprecated?: boolean | undefined;
2256
+ secondary_color?: string | undefined;
2257
+ has_filters?: boolean | undefined;
2258
+ has_reads?: boolean | undefined;
2259
+ has_searches?: boolean | undefined;
2260
+ has_searches_or_writes?: boolean | undefined;
2261
+ has_upfront_fields?: boolean | undefined;
2262
+ has_writes?: boolean | undefined;
2263
+ is_invite?: boolean | undefined;
2264
+ version?: string | undefined;
2265
+ visibility?: string | undefined;
2266
+ classification?: string | undefined;
1985
2267
  }>;
1986
- type ListAppsOptions = z.infer<typeof ListAppsSchema>;
2268
+ type AppItem$1 = z.infer<typeof AppItemSchema$1>;
1987
2269
 
1988
2270
  interface ListAppsPluginProvides {
1989
2271
  listApps: (options?: ListAppsOptions) => Promise<{
1990
- data: AppItem[];
2272
+ data: AppItem$1[];
1991
2273
  nextCursor?: string;
1992
2274
  }> & AsyncIterable<{
1993
- data: AppItem[];
2275
+ data: AppItem$1[];
1994
2276
  nextCursor?: string;
1995
2277
  }> & {
1996
- items(): AsyncIterable<AppItem>;
2278
+ items(): AsyncIterable<AppItem$1>;
1997
2279
  };
1998
2280
  context: {
1999
2281
  meta: {
2000
2282
  listApps: {
2001
- inputSchema: typeof ListAppsSchema;
2283
+ inputSchema: typeof ListAppsOptionsSchema;
2002
2284
  };
2003
2285
  };
2004
2286
  };
@@ -2070,9 +2352,9 @@ declare const ListAuthenticationsSchema: z.ZodObject<{
2070
2352
  search?: string | undefined;
2071
2353
  title?: string | undefined;
2072
2354
  appKey?: string | undefined;
2073
- cursor?: string | undefined;
2074
- maxItems?: number | undefined;
2075
2355
  pageSize?: number | undefined;
2356
+ maxItems?: number | undefined;
2357
+ cursor?: string | undefined;
2076
2358
  accountId?: string | undefined;
2077
2359
  owner?: string | undefined;
2078
2360
  authenticationIds?: string[] | undefined;
@@ -2080,9 +2362,9 @@ declare const ListAuthenticationsSchema: z.ZodObject<{
2080
2362
  search?: string | undefined;
2081
2363
  title?: string | undefined;
2082
2364
  appKey?: string | undefined;
2083
- cursor?: string | undefined;
2084
- maxItems?: number | undefined;
2085
2365
  pageSize?: number | undefined;
2366
+ maxItems?: number | undefined;
2367
+ cursor?: string | undefined;
2086
2368
  accountId?: string | undefined;
2087
2369
  owner?: string | undefined;
2088
2370
  authenticationIds?: string[] | undefined;
@@ -2197,14 +2479,14 @@ declare const GetInputFieldsSchemaSchema: z.ZodObject<{
2197
2479
  inputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2198
2480
  }, "strip", z.ZodTypeAny, {
2199
2481
  appKey: string;
2200
- actionType: "search" | "filter" | "read" | "read_bulk" | "run" | "search_and_write" | "search_or_write" | "write";
2201
2482
  actionKey: string;
2483
+ actionType: "search" | "filter" | "read" | "read_bulk" | "run" | "search_and_write" | "search_or_write" | "write";
2202
2484
  authenticationId?: number | null | undefined;
2203
2485
  inputs?: Record<string, unknown> | undefined;
2204
2486
  }, {
2205
2487
  appKey: string;
2206
- actionType: "search" | "filter" | "read" | "read_bulk" | "run" | "search_and_write" | "search_or_write" | "write";
2207
2488
  actionKey: string;
2489
+ actionType: "search" | "filter" | "read" | "read_bulk" | "run" | "search_and_write" | "search_or_write" | "write";
2208
2490
  authenticationId?: number | null | undefined;
2209
2491
  inputs?: Record<string, unknown> | undefined;
2210
2492
  }>;
@@ -2255,26 +2537,26 @@ declare const ListInputFieldChoicesSchema: z.ZodObject<{
2255
2537
  cursor: z.ZodOptional<z.ZodString>;
2256
2538
  }, "strip", z.ZodTypeAny, {
2257
2539
  appKey: string;
2258
- actionType: "search" | "filter" | "read" | "read_bulk" | "run" | "search_and_write" | "search_or_write" | "write";
2259
2540
  actionKey: string;
2541
+ actionType: "search" | "filter" | "read" | "read_bulk" | "run" | "search_and_write" | "search_or_write" | "write";
2260
2542
  inputFieldKey: string;
2261
2543
  page?: number | undefined;
2262
- cursor?: string | undefined;
2263
- maxItems?: number | undefined;
2264
- pageSize?: number | undefined;
2265
2544
  authenticationId?: number | null | undefined;
2266
2545
  inputs?: Record<string, unknown> | undefined;
2546
+ pageSize?: number | undefined;
2547
+ maxItems?: number | undefined;
2548
+ cursor?: string | undefined;
2267
2549
  }, {
2268
2550
  appKey: string;
2269
- actionType: "search" | "filter" | "read" | "read_bulk" | "run" | "search_and_write" | "search_or_write" | "write";
2270
2551
  actionKey: string;
2552
+ actionType: "search" | "filter" | "read" | "read_bulk" | "run" | "search_and_write" | "search_or_write" | "write";
2271
2553
  inputFieldKey: string;
2272
2554
  page?: number | undefined;
2273
- cursor?: string | undefined;
2274
- maxItems?: number | undefined;
2275
- pageSize?: number | undefined;
2276
2555
  authenticationId?: number | null | undefined;
2277
2556
  inputs?: Record<string, unknown> | undefined;
2557
+ pageSize?: number | undefined;
2558
+ maxItems?: number | undefined;
2559
+ cursor?: string | undefined;
2278
2560
  }>;
2279
2561
  type ListInputFieldChoicesOptions = z.infer<typeof ListInputFieldChoicesSchema>;
2280
2562
 
@@ -3363,11 +3645,33 @@ declare function createZapierSdkWithoutRegistry(options?: ZapierSdkOptions): Sdk
3363
3645
  } & {
3364
3646
  getVersionedImplementationId: GetVersionedImplementationId;
3365
3647
  resolveAppKeys: ResolveAppKeys;
3366
- 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>;
3367
3671
  } & {
3368
3672
  meta: {
3369
3673
  listApps: {
3370
- inputSchema: typeof ListAppsSchema;
3674
+ inputSchema: typeof ListAppsOptionsSchema;
3371
3675
  };
3372
3676
  };
3373
3677
  } & {
@@ -3463,4 +3767,4 @@ declare function createZapierSdkWithoutRegistry(options?: ZapierSdkOptions): Sdk
3463
3767
  }>;
3464
3768
  declare function createZapierSdk(options?: ZapierSdkOptions): ZapierSdk;
3465
3769
 
3466
- 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 };