@zapier/zapier-sdk 0.13.4 → 0.13.6

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.
package/dist/index.d.mts CHANGED
@@ -380,8 +380,9 @@ declare const NeedSchema: z.ZodObject<{
380
380
  list: z.ZodOptional<z.ZodBoolean>;
381
381
  }, "strip", z.ZodTypeAny, {
382
382
  key: string;
383
- type?: "string" | "boolean" | "filter" | "code" | "integer" | "text" | "datetime" | "file" | "decimal" | "copy" | "password" | "dict" | "json" | undefined;
383
+ type?: "string" | "boolean" | "code" | "filter" | "integer" | "text" | "datetime" | "file" | "decimal" | "copy" | "password" | "dict" | "json" | undefined;
384
384
  list?: boolean | undefined;
385
+ default?: string | undefined;
385
386
  label?: string | undefined;
386
387
  alters_custom_fields?: boolean | null | undefined;
387
388
  capabilities?: string[] | undefined;
@@ -393,7 +394,6 @@ declare const NeedSchema: z.ZodObject<{
393
394
  }[] | undefined;
394
395
  computed?: boolean | null | undefined;
395
396
  custom_field?: boolean | undefined;
396
- default?: string | undefined;
397
397
  depends_on?: string[] | undefined;
398
398
  format?: "SELECT" | undefined;
399
399
  from_search?: boolean | undefined;
@@ -411,8 +411,9 @@ declare const NeedSchema: z.ZodObject<{
411
411
  regex?: string | undefined;
412
412
  }, {
413
413
  key: string;
414
- type?: "string" | "boolean" | "filter" | "code" | "integer" | "text" | "datetime" | "file" | "decimal" | "copy" | "password" | "dict" | "json" | undefined;
414
+ type?: "string" | "boolean" | "code" | "filter" | "integer" | "text" | "datetime" | "file" | "decimal" | "copy" | "password" | "dict" | "json" | undefined;
415
415
  list?: boolean | undefined;
416
+ default?: string | undefined;
416
417
  label?: string | undefined;
417
418
  alters_custom_fields?: boolean | null | undefined;
418
419
  capabilities?: string[] | undefined;
@@ -424,7 +425,6 @@ declare const NeedSchema: z.ZodObject<{
424
425
  }[] | undefined;
425
426
  computed?: boolean | null | undefined;
426
427
  custom_field?: boolean | undefined;
427
- default?: string | undefined;
428
428
  depends_on?: string[] | undefined;
429
429
  format?: "SELECT" | undefined;
430
430
  from_search?: boolean | undefined;
@@ -451,7 +451,7 @@ declare const ActionSchema: z.ZodObject<{
451
451
  is_hidden: z.ZodOptional<z.ZodBoolean>;
452
452
  selected_api: z.ZodOptional<z.ZodString>;
453
453
  }, "strip", z.ZodTypeAny, {
454
- type: "search" | "filter" | "read" | "read_bulk" | "write" | "run" | "search_or_write" | "search_and_write";
454
+ type: "search" | "filter" | "read" | "read_bulk" | "run" | "search_and_write" | "search_or_write" | "write";
455
455
  key: string;
456
456
  name: string;
457
457
  description: string;
@@ -460,7 +460,7 @@ declare const ActionSchema: z.ZodObject<{
460
460
  is_hidden?: boolean | undefined;
461
461
  selected_api?: string | undefined;
462
462
  }, {
463
- type: "search" | "filter" | "read" | "read_bulk" | "write" | "run" | "search_or_write" | "search_and_write";
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;
@@ -561,13 +561,13 @@ declare const ActionFieldSchema: z.ZodObject<{
561
561
  key: string;
562
562
  required: boolean;
563
563
  type?: string | undefined;
564
+ default?: string | undefined;
564
565
  label?: string | undefined;
565
566
  choices?: {
566
567
  value: string | number;
567
568
  label: string;
568
569
  }[] | undefined;
569
570
  computed?: boolean | undefined;
570
- default?: string | undefined;
571
571
  format?: string | undefined;
572
572
  placeholder?: string | undefined;
573
573
  helpText?: string | undefined;
@@ -579,13 +579,13 @@ declare const ActionFieldSchema: z.ZodObject<{
579
579
  key: string;
580
580
  required: boolean;
581
581
  type?: string | undefined;
582
+ default?: string | undefined;
582
583
  label?: string | undefined;
583
584
  choices?: {
584
585
  value: string | number;
585
586
  label: string;
586
587
  }[] | undefined;
587
588
  computed?: boolean | undefined;
588
- default?: string | undefined;
589
589
  format?: string | undefined;
590
590
  placeholder?: string | undefined;
591
591
  helpText?: string | undefined;
@@ -1094,8 +1094,9 @@ declare const NeedsResponseSchema: z.ZodObject<{
1094
1094
  list: z.ZodOptional<z.ZodBoolean>;
1095
1095
  }, "strip", z.ZodTypeAny, {
1096
1096
  key: string;
1097
- type?: "string" | "boolean" | "filter" | "code" | "integer" | "text" | "datetime" | "file" | "decimal" | "copy" | "password" | "dict" | "json" | undefined;
1097
+ type?: "string" | "boolean" | "code" | "filter" | "integer" | "text" | "datetime" | "file" | "decimal" | "copy" | "password" | "dict" | "json" | undefined;
1098
1098
  list?: boolean | undefined;
1099
+ default?: string | undefined;
1099
1100
  label?: string | undefined;
1100
1101
  alters_custom_fields?: boolean | null | undefined;
1101
1102
  capabilities?: string[] | undefined;
@@ -1107,7 +1108,6 @@ declare const NeedsResponseSchema: z.ZodObject<{
1107
1108
  }[] | undefined;
1108
1109
  computed?: boolean | null | undefined;
1109
1110
  custom_field?: boolean | undefined;
1110
- default?: string | undefined;
1111
1111
  depends_on?: string[] | undefined;
1112
1112
  format?: "SELECT" | undefined;
1113
1113
  from_search?: boolean | undefined;
@@ -1125,8 +1125,9 @@ declare const NeedsResponseSchema: z.ZodObject<{
1125
1125
  regex?: string | undefined;
1126
1126
  }, {
1127
1127
  key: string;
1128
- type?: "string" | "boolean" | "filter" | "code" | "integer" | "text" | "datetime" | "file" | "decimal" | "copy" | "password" | "dict" | "json" | undefined;
1128
+ type?: "string" | "boolean" | "code" | "filter" | "integer" | "text" | "datetime" | "file" | "decimal" | "copy" | "password" | "dict" | "json" | undefined;
1129
1129
  list?: boolean | undefined;
1130
+ default?: string | undefined;
1130
1131
  label?: string | undefined;
1131
1132
  alters_custom_fields?: boolean | null | undefined;
1132
1133
  capabilities?: string[] | undefined;
@@ -1138,7 +1139,6 @@ declare const NeedsResponseSchema: z.ZodObject<{
1138
1139
  }[] | undefined;
1139
1140
  computed?: boolean | null | undefined;
1140
1141
  custom_field?: boolean | undefined;
1141
- default?: string | undefined;
1142
1142
  depends_on?: string[] | undefined;
1143
1143
  format?: "SELECT" | undefined;
1144
1144
  from_search?: boolean | undefined;
@@ -1161,8 +1161,9 @@ declare const NeedsResponseSchema: z.ZodObject<{
1161
1161
  success: boolean;
1162
1162
  needs?: {
1163
1163
  key: string;
1164
- type?: "string" | "boolean" | "filter" | "code" | "integer" | "text" | "datetime" | "file" | "decimal" | "copy" | "password" | "dict" | "json" | undefined;
1164
+ type?: "string" | "boolean" | "code" | "filter" | "integer" | "text" | "datetime" | "file" | "decimal" | "copy" | "password" | "dict" | "json" | undefined;
1165
1165
  list?: boolean | undefined;
1166
+ default?: string | undefined;
1166
1167
  label?: string | undefined;
1167
1168
  alters_custom_fields?: boolean | null | undefined;
1168
1169
  capabilities?: string[] | undefined;
@@ -1174,7 +1175,6 @@ declare const NeedsResponseSchema: z.ZodObject<{
1174
1175
  }[] | undefined;
1175
1176
  computed?: boolean | null | undefined;
1176
1177
  custom_field?: boolean | undefined;
1177
- default?: string | undefined;
1178
1178
  depends_on?: string[] | undefined;
1179
1179
  format?: "SELECT" | undefined;
1180
1180
  from_search?: boolean | undefined;
@@ -1197,8 +1197,9 @@ declare const NeedsResponseSchema: z.ZodObject<{
1197
1197
  success: boolean;
1198
1198
  needs?: {
1199
1199
  key: string;
1200
- type?: "string" | "boolean" | "filter" | "code" | "integer" | "text" | "datetime" | "file" | "decimal" | "copy" | "password" | "dict" | "json" | undefined;
1200
+ type?: "string" | "boolean" | "code" | "filter" | "integer" | "text" | "datetime" | "file" | "decimal" | "copy" | "password" | "dict" | "json" | undefined;
1201
1201
  list?: boolean | undefined;
1202
+ default?: string | undefined;
1202
1203
  label?: string | undefined;
1203
1204
  alters_custom_fields?: boolean | null | undefined;
1204
1205
  capabilities?: string[] | undefined;
@@ -1210,7 +1211,6 @@ declare const NeedsResponseSchema: z.ZodObject<{
1210
1211
  }[] | undefined;
1211
1212
  computed?: boolean | null | undefined;
1212
1213
  custom_field?: boolean | undefined;
1213
- default?: string | undefined;
1214
1214
  depends_on?: string[] | undefined;
1215
1215
  format?: "SELECT" | undefined;
1216
1216
  from_search?: boolean | undefined;
@@ -1284,6 +1284,99 @@ type App = z.infer<typeof AppSchema>;
1284
1284
  type NeedsRequest = z.infer<typeof NeedsRequestSchema>;
1285
1285
  type NeedsResponse = z.infer<typeof NeedsResponseSchema>;
1286
1286
 
1287
+ /**
1288
+ * Domain utility functions for working with app identifiers and data normalization
1289
+ */
1290
+
1291
+ interface AppLocator {
1292
+ lookupAppKey: string;
1293
+ slug?: string;
1294
+ implementationName?: string;
1295
+ version?: string;
1296
+ }
1297
+ interface ResolvedAppLocator extends AppLocator {
1298
+ implementationName: string;
1299
+ }
1300
+
1301
+ declare const DEFAULT_CONFIG_PATH: ".zapierrc";
1302
+ type ManifestEntry = {
1303
+ implementationName: string;
1304
+ version?: string;
1305
+ };
1306
+ type GetVersionedImplementationId = (appKey: string) => Promise<string | null>;
1307
+ type Manifest = {
1308
+ apps: Record<string, ManifestEntry>;
1309
+ };
1310
+ type ResolveAppKeys = ({ appKeys, }: {
1311
+ appKeys: string[];
1312
+ }) => Promise<ResolvedAppLocator[]>;
1313
+ declare const ManifestPluginOptionsSchema: z.ZodObject<{
1314
+ manifestPath: z.ZodOptional<z.ZodString>;
1315
+ manifest: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1316
+ implementationName: z.ZodString;
1317
+ version: z.ZodOptional<z.ZodString>;
1318
+ }, "strip", z.ZodTypeAny, {
1319
+ implementationName: string;
1320
+ version?: string | undefined;
1321
+ }, {
1322
+ implementationName: string;
1323
+ version?: string | undefined;
1324
+ }>>>;
1325
+ }, "strip", z.ZodTypeAny, {
1326
+ manifestPath?: string | undefined;
1327
+ manifest?: Record<string, {
1328
+ implementationName: string;
1329
+ version?: string | undefined;
1330
+ }> | undefined;
1331
+ }, {
1332
+ manifestPath?: string | undefined;
1333
+ manifest?: Record<string, {
1334
+ implementationName: string;
1335
+ version?: string | undefined;
1336
+ }> | undefined;
1337
+ }>;
1338
+
1339
+ type ManifestPluginOptions = z.infer<typeof ManifestPluginOptionsSchema>;
1340
+ interface UpdateManifestEntryOptions {
1341
+ appKey: string;
1342
+ entry: ManifestEntry;
1343
+ configPath?: string;
1344
+ skipWrite?: boolean;
1345
+ manifest?: Manifest;
1346
+ }
1347
+ interface ManifestPluginProvides {
1348
+ context: {
1349
+ getVersionedImplementationId: GetVersionedImplementationId;
1350
+ resolveAppKeys: ResolveAppKeys;
1351
+ updateManifestEntry: (options: UpdateManifestEntryOptions) => Promise<[string, ManifestEntry, Manifest]>;
1352
+ };
1353
+ }
1354
+ /**
1355
+ * Read manifest from a file path asynchronously
1356
+ * Supports local files (Node.js) and browser environments (fallback to global filesystem)
1357
+ */
1358
+ declare function readManifestFromFile(filePath: string): Promise<Manifest | null>;
1359
+ /**
1360
+ * Get the preferred key for storing an app in the manifest
1361
+ * Extracted from plugin to make it easier to test
1362
+ */
1363
+ declare function getPreferredManifestEntryKey({ appKey, api, }: {
1364
+ appKey: string;
1365
+ api: ApiClient;
1366
+ }): Promise<string>;
1367
+ /**
1368
+ * Find a manifest entry by any app key (implementation name, slug, etc.).
1369
+ */
1370
+ declare function findManifestEntry({ appKey, manifest, }: {
1371
+ appKey: string;
1372
+ manifest: Manifest;
1373
+ }): [string, ManifestEntry] | null;
1374
+
1375
+ declare const manifestPlugin: Plugin<{}, // no SDK dependencies
1376
+ {
1377
+ api: ApiClient;
1378
+ }, ManifestPluginProvides>;
1379
+
1287
1380
  /**
1288
1381
  * Function-related types and interfaces
1289
1382
  */
@@ -1466,22 +1559,22 @@ declare const ListInputFieldsSchema: z.ZodObject<{
1466
1559
  cursor: z.ZodOptional<z.ZodString>;
1467
1560
  }, "strip", z.ZodTypeAny, {
1468
1561
  appKey: string;
1469
- actionType: "search" | "filter" | "read" | "read_bulk" | "write" | "run" | "search_or_write" | "search_and_write";
1562
+ actionType: "search" | "filter" | "read" | "read_bulk" | "run" | "search_and_write" | "search_or_write" | "write";
1470
1563
  actionKey: string;
1564
+ cursor?: string | undefined;
1565
+ maxItems?: number | undefined;
1566
+ pageSize?: number | undefined;
1471
1567
  authenticationId?: number | null | undefined;
1472
1568
  inputs?: Record<string, unknown> | undefined;
1473
- pageSize?: number | undefined;
1474
- maxItems?: number | undefined;
1475
- cursor?: string | undefined;
1476
1569
  }, {
1477
1570
  appKey: string;
1478
- actionType: "search" | "filter" | "read" | "read_bulk" | "write" | "run" | "search_or_write" | "search_and_write";
1571
+ actionType: "search" | "filter" | "read" | "read_bulk" | "run" | "search_and_write" | "search_or_write" | "write";
1479
1572
  actionKey: string;
1573
+ cursor?: string | undefined;
1574
+ maxItems?: number | undefined;
1575
+ pageSize?: number | undefined;
1480
1576
  authenticationId?: number | null | undefined;
1481
1577
  inputs?: Record<string, unknown> | undefined;
1482
- pageSize?: number | undefined;
1483
- maxItems?: number | undefined;
1484
- cursor?: string | undefined;
1485
1578
  }>;
1486
1579
  type ListInputFieldsOptions = z.infer<typeof ListInputFieldsSchema>;
1487
1580
 
@@ -1553,20 +1646,20 @@ declare const RelayRequestSchema: z.ZodObject<{
1553
1646
  }, "strip", z.ZodTypeAny, {
1554
1647
  url: string;
1555
1648
  method?: "POST" | "GET" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS" | undefined;
1556
- authenticationId?: number | undefined;
1649
+ headers?: Record<string, string> | [string, string][] | Headers | undefined;
1557
1650
  body?: any;
1651
+ authenticationId?: number | undefined;
1558
1652
  callbackUrl?: string | undefined;
1559
1653
  authenticationTemplate?: string | undefined;
1560
- headers?: Record<string, string> | [string, string][] | Headers | undefined;
1561
1654
  relayBaseUrl?: string | undefined;
1562
1655
  }, {
1563
1656
  url: string;
1564
1657
  method?: "POST" | "GET" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS" | undefined;
1565
- authenticationId?: number | undefined;
1658
+ headers?: Record<string, string> | [string, string][] | Headers | undefined;
1566
1659
  body?: any;
1660
+ authenticationId?: number | undefined;
1567
1661
  callbackUrl?: string | undefined;
1568
1662
  authenticationTemplate?: string | undefined;
1569
- headers?: Record<string, string> | [string, string][] | Headers | undefined;
1570
1663
  relayBaseUrl?: string | undefined;
1571
1664
  }>;
1572
1665
  type RelayRequestOptions = z.infer<typeof RelayRequestSchema>;
@@ -1583,20 +1676,20 @@ declare const RelayFetchSchema: z.ZodObject<{
1583
1676
  }, "strip", z.ZodTypeAny, {
1584
1677
  url: string;
1585
1678
  method?: "POST" | "GET" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS" | undefined;
1586
- authenticationId?: number | undefined;
1679
+ headers?: Record<string, string> | [string, string][] | Headers | undefined;
1587
1680
  body?: any;
1681
+ authenticationId?: number | undefined;
1588
1682
  callbackUrl?: string | undefined;
1589
1683
  authenticationTemplate?: string | undefined;
1590
- headers?: Record<string, string> | [string, string][] | Headers | undefined;
1591
1684
  relayBaseUrl?: string | undefined;
1592
1685
  }, {
1593
1686
  url: string;
1594
1687
  method?: "POST" | "GET" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS" | undefined;
1595
- authenticationId?: number | undefined;
1688
+ headers?: Record<string, string> | [string, string][] | Headers | undefined;
1596
1689
  body?: any;
1690
+ authenticationId?: number | undefined;
1597
1691
  callbackUrl?: string | undefined;
1598
1692
  authenticationTemplate?: string | undefined;
1599
- headers?: Record<string, string> | [string, string][] | Headers | undefined;
1600
1693
  relayBaseUrl?: string | undefined;
1601
1694
  }>;
1602
1695
 
@@ -1757,22 +1850,22 @@ declare const RunActionSchema: z.ZodObject<{
1757
1850
  cursor: z.ZodOptional<z.ZodString>;
1758
1851
  }, "strip", z.ZodTypeAny, {
1759
1852
  appKey: string;
1760
- actionType: "search" | "filter" | "read" | "read_bulk" | "write" | "run" | "search_or_write" | "search_and_write";
1853
+ actionType: "search" | "filter" | "read" | "read_bulk" | "run" | "search_and_write" | "search_or_write" | "write";
1761
1854
  actionKey: string;
1855
+ cursor?: string | undefined;
1856
+ maxItems?: number | undefined;
1857
+ pageSize?: number | undefined;
1762
1858
  authenticationId?: number | null | undefined;
1763
1859
  inputs?: Record<string, unknown> | undefined;
1764
- pageSize?: number | undefined;
1765
- maxItems?: number | undefined;
1766
- cursor?: string | undefined;
1767
1860
  }, {
1768
1861
  appKey: string;
1769
- actionType: "search" | "filter" | "read" | "read_bulk" | "write" | "run" | "search_or_write" | "search_and_write";
1862
+ actionType: "search" | "filter" | "read" | "read_bulk" | "run" | "search_and_write" | "search_or_write" | "write";
1770
1863
  actionKey: string;
1864
+ cursor?: string | undefined;
1865
+ maxItems?: number | undefined;
1866
+ pageSize?: number | undefined;
1771
1867
  authenticationId?: number | null | undefined;
1772
1868
  inputs?: Record<string, unknown> | undefined;
1773
- pageSize?: number | undefined;
1774
- maxItems?: number | undefined;
1775
- cursor?: string | undefined;
1776
1869
  }>;
1777
1870
  type RunActionOptions = z.infer<typeof RunActionSchema>;
1778
1871
 
@@ -1784,11 +1877,11 @@ declare const GetActionSchema: z.ZodObject<{
1784
1877
  actionKey: z.ZodString;
1785
1878
  }, "strip", z.ZodTypeAny, {
1786
1879
  appKey: string;
1787
- actionType: "search" | "filter" | "read" | "read_bulk" | "write" | "run" | "search_or_write" | "search_and_write";
1880
+ actionType: "search" | "filter" | "read" | "read_bulk" | "run" | "search_and_write" | "search_or_write" | "write";
1788
1881
  actionKey: string;
1789
1882
  }, {
1790
1883
  appKey: string;
1791
- actionType: "search" | "filter" | "read" | "read_bulk" | "write" | "run" | "search_or_write" | "search_and_write";
1884
+ actionType: "search" | "filter" | "read" | "read_bulk" | "run" | "search_and_write" | "search_or_write" | "write";
1792
1885
  actionKey: string;
1793
1886
  }>;
1794
1887
  type GetActionOptions = z.infer<typeof GetActionSchema>;
@@ -1803,105 +1896,19 @@ declare const ListActionsSchema: z.ZodObject<{
1803
1896
  cursor: z.ZodOptional<z.ZodString>;
1804
1897
  }, "strip", z.ZodTypeAny, {
1805
1898
  appKey: string;
1806
- actionType?: "search" | "filter" | "read" | "read_bulk" | "write" | "run" | "search_or_write" | "search_and_write" | undefined;
1807
- pageSize?: number | undefined;
1808
- maxItems?: number | undefined;
1809
1899
  cursor?: string | undefined;
1900
+ maxItems?: number | undefined;
1901
+ pageSize?: number | undefined;
1902
+ actionType?: "search" | "filter" | "read" | "read_bulk" | "run" | "search_and_write" | "search_or_write" | "write" | undefined;
1810
1903
  }, {
1811
1904
  appKey: string;
1812
- actionType?: "search" | "filter" | "read" | "read_bulk" | "write" | "run" | "search_or_write" | "search_and_write" | undefined;
1813
- pageSize?: number | undefined;
1814
- maxItems?: number | undefined;
1815
1905
  cursor?: string | undefined;
1906
+ maxItems?: number | undefined;
1907
+ pageSize?: number | undefined;
1908
+ actionType?: "search" | "filter" | "read" | "read_bulk" | "run" | "search_and_write" | "search_or_write" | "write" | undefined;
1816
1909
  }>;
1817
1910
  type ListActionsOptions = z.infer<typeof ListActionsSchema>;
1818
1911
 
1819
- /**
1820
- * Domain utility functions for working with app identifiers and data normalization
1821
- */
1822
-
1823
- interface AppLocator {
1824
- lookupAppKey: string;
1825
- slug?: string;
1826
- implementationName?: string;
1827
- version?: string;
1828
- }
1829
- interface ResolvedAppLocator extends AppLocator {
1830
- implementationName: string;
1831
- }
1832
-
1833
- declare const DEFAULT_CONFIG_PATH: ".zapierrc";
1834
- type ManifestEntry = {
1835
- implementationName: string;
1836
- version?: string;
1837
- };
1838
- type GetVersionedImplementationId = (appKey: string) => Promise<string | null>;
1839
- type Manifest = {
1840
- apps: Record<string, ManifestEntry>;
1841
- };
1842
- type ResolveAppKeys = ({ appKeys, }: {
1843
- appKeys: string[];
1844
- }) => Promise<ResolvedAppLocator[]>;
1845
- declare const ManifestPluginOptionsSchema: z.ZodObject<{
1846
- manifestPath: z.ZodOptional<z.ZodString>;
1847
- manifest: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1848
- implementationName: z.ZodString;
1849
- version: z.ZodOptional<z.ZodString>;
1850
- }, "strip", z.ZodTypeAny, {
1851
- implementationName: string;
1852
- version?: string | undefined;
1853
- }, {
1854
- implementationName: string;
1855
- version?: string | undefined;
1856
- }>>>;
1857
- }, "strip", z.ZodTypeAny, {
1858
- manifestPath?: string | undefined;
1859
- manifest?: Record<string, {
1860
- implementationName: string;
1861
- version?: string | undefined;
1862
- }> | undefined;
1863
- }, {
1864
- manifestPath?: string | undefined;
1865
- manifest?: Record<string, {
1866
- implementationName: string;
1867
- version?: string | undefined;
1868
- }> | undefined;
1869
- }>;
1870
-
1871
- type ManifestPluginOptions = z.infer<typeof ManifestPluginOptionsSchema>;
1872
- interface ManifestPluginProvides {
1873
- context: {
1874
- getVersionedImplementationId: GetVersionedImplementationId;
1875
- resolveAppKeys: ResolveAppKeys;
1876
- updateManifestEntry: (appKey: string, entry: ManifestEntry, configPath?: string) => Promise<[string, ManifestEntry]>;
1877
- };
1878
- }
1879
- /**
1880
- * Read manifest from a file path asynchronously
1881
- * Supports local files (Node.js) and browser environments (fallback to global filesystem)
1882
- */
1883
- declare function readManifestFromFile(filePath: string): Promise<Manifest | null>;
1884
- /**
1885
- * Get the preferred key for storing an app in the manifest
1886
- * Extracted from plugin to make it easier to test
1887
- */
1888
- declare function getPreferredManifestEntryKey({ appKey, api, }: {
1889
- appKey: string;
1890
- api: ApiClient;
1891
- }): Promise<string>;
1892
- /**
1893
- * Find a manifest entry by any app key (implementation name, slug, etc.).
1894
- */
1895
- declare function findManifestEntry({ appKey, manifest, }: {
1896
- appKey: string;
1897
- manifest: Manifest;
1898
- }): [string, ManifestEntry] | null;
1899
-
1900
- declare const manifestPlugin: Plugin<{}, // no SDK dependencies
1901
- {
1902
- api: ApiClient;
1903
- }, ManifestPluginProvides>;
1904
-
1905
1912
  interface ListActionsPluginProvides {
1906
1913
  listActions: (options?: ListActionsOptions) => Promise<{
1907
1914
  data: ActionItem$1[];
@@ -1962,16 +1969,16 @@ declare const ListAppsSchema: z.ZodObject<{
1962
1969
  cursor: z.ZodOptional<z.ZodString>;
1963
1970
  }, "strip", z.ZodTypeAny, {
1964
1971
  search?: string | undefined;
1965
- pageSize?: number | undefined;
1966
- maxItems?: number | undefined;
1967
- cursor?: string | undefined;
1968
1972
  appKeys?: string[] | undefined;
1973
+ cursor?: string | undefined;
1974
+ maxItems?: number | undefined;
1975
+ pageSize?: number | undefined;
1969
1976
  }, {
1970
1977
  search?: string | undefined;
1971
- pageSize?: number | undefined;
1972
- maxItems?: number | undefined;
1973
- cursor?: string | undefined;
1974
1978
  appKeys?: string[] | undefined;
1979
+ cursor?: string | undefined;
1980
+ maxItems?: number | undefined;
1981
+ pageSize?: number | undefined;
1975
1982
  }>;
1976
1983
  type ListAppsOptions = z.infer<typeof ListAppsSchema>;
1977
1984
 
@@ -2060,9 +2067,9 @@ declare const ListAuthenticationsSchema: z.ZodObject<{
2060
2067
  search?: string | undefined;
2061
2068
  title?: string | undefined;
2062
2069
  appKey?: string | undefined;
2063
- pageSize?: number | undefined;
2064
- maxItems?: number | undefined;
2065
2070
  cursor?: string | undefined;
2071
+ maxItems?: number | undefined;
2072
+ pageSize?: number | undefined;
2066
2073
  accountId?: string | undefined;
2067
2074
  owner?: string | undefined;
2068
2075
  authenticationIds?: string[] | undefined;
@@ -2070,9 +2077,9 @@ declare const ListAuthenticationsSchema: z.ZodObject<{
2070
2077
  search?: string | undefined;
2071
2078
  title?: string | undefined;
2072
2079
  appKey?: string | undefined;
2073
- pageSize?: number | undefined;
2074
- maxItems?: number | undefined;
2075
2080
  cursor?: string | undefined;
2081
+ maxItems?: number | undefined;
2082
+ pageSize?: number | undefined;
2076
2083
  accountId?: string | undefined;
2077
2084
  owner?: string | undefined;
2078
2085
  authenticationIds?: string[] | undefined;
@@ -2209,26 +2216,26 @@ declare const ListInputFieldChoicesSchema: z.ZodObject<{
2209
2216
  cursor: z.ZodOptional<z.ZodString>;
2210
2217
  }, "strip", z.ZodTypeAny, {
2211
2218
  appKey: string;
2212
- actionType: "search" | "filter" | "read" | "read_bulk" | "write" | "run" | "search_or_write" | "search_and_write";
2219
+ actionType: "search" | "filter" | "read" | "read_bulk" | "run" | "search_and_write" | "search_or_write" | "write";
2213
2220
  actionKey: string;
2214
2221
  inputFieldKey: string;
2215
2222
  page?: number | undefined;
2223
+ cursor?: string | undefined;
2224
+ maxItems?: number | undefined;
2225
+ pageSize?: number | undefined;
2216
2226
  authenticationId?: number | null | undefined;
2217
2227
  inputs?: Record<string, unknown> | undefined;
2218
- pageSize?: number | undefined;
2219
- maxItems?: number | undefined;
2220
- cursor?: string | undefined;
2221
2228
  }, {
2222
2229
  appKey: string;
2223
- actionType: "search" | "filter" | "read" | "read_bulk" | "write" | "run" | "search_or_write" | "search_and_write";
2230
+ actionType: "search" | "filter" | "read" | "read_bulk" | "run" | "search_and_write" | "search_or_write" | "write";
2224
2231
  actionKey: string;
2225
2232
  inputFieldKey: string;
2226
2233
  page?: number | undefined;
2234
+ cursor?: string | undefined;
2235
+ maxItems?: number | undefined;
2236
+ pageSize?: number | undefined;
2227
2237
  authenticationId?: number | null | undefined;
2228
2238
  inputs?: Record<string, unknown> | undefined;
2229
- pageSize?: number | undefined;
2230
- maxItems?: number | undefined;
2231
- cursor?: string | undefined;
2232
2239
  }>;
2233
2240
  type ListInputFieldChoicesOptions = z.infer<typeof ListInputFieldChoicesSchema>;
2234
2241
 
@@ -2263,14 +2270,7 @@ interface BaseSdkOptions {
2263
2270
  baseUrl?: string;
2264
2271
  debug?: boolean;
2265
2272
  manifestPath?: string;
2266
- manifest?: {
2267
- apps: {
2268
- [appKey: string]: {
2269
- implementationName: string;
2270
- version?: string;
2271
- };
2272
- };
2273
- };
2273
+ manifest?: Manifest;
2274
2274
  eventEmission?: EventEmissionConfig;
2275
2275
  }
2276
2276
 
@@ -2549,17 +2549,17 @@ declare const AppItemSchema: z.ZodObject<Omit<{
2549
2549
  filter?: number | undefined;
2550
2550
  read?: number | undefined;
2551
2551
  read_bulk?: number | undefined;
2552
- write?: number | undefined;
2553
- search_or_write?: number | undefined;
2554
2552
  search_and_write?: number | undefined;
2553
+ search_or_write?: number | undefined;
2554
+ write?: number | undefined;
2555
2555
  }, {
2556
2556
  search?: number | undefined;
2557
2557
  filter?: number | undefined;
2558
2558
  read?: number | undefined;
2559
2559
  read_bulk?: number | undefined;
2560
- write?: number | undefined;
2561
- search_or_write?: number | undefined;
2562
2560
  search_and_write?: number | undefined;
2561
+ search_or_write?: number | undefined;
2562
+ write?: number | undefined;
2563
2563
  }>>;
2564
2564
  description: z.ZodOptional<z.ZodString>;
2565
2565
  primary_color: z.ZodOptional<z.ZodString>;
@@ -2586,9 +2586,9 @@ declare const AppItemSchema: z.ZodObject<Omit<{
2586
2586
  filter?: number | undefined;
2587
2587
  read?: number | undefined;
2588
2588
  read_bulk?: number | undefined;
2589
- write?: number | undefined;
2590
- search_or_write?: number | undefined;
2591
2589
  search_and_write?: number | undefined;
2590
+ search_or_write?: number | undefined;
2591
+ write?: number | undefined;
2592
2592
  } | undefined;
2593
2593
  description?: string | undefined;
2594
2594
  is_hidden?: boolean | undefined;
@@ -2638,9 +2638,9 @@ declare const AppItemSchema: z.ZodObject<Omit<{
2638
2638
  filter?: number | undefined;
2639
2639
  read?: number | undefined;
2640
2640
  read_bulk?: number | undefined;
2641
- write?: number | undefined;
2642
- search_or_write?: number | undefined;
2643
2641
  search_and_write?: number | undefined;
2642
+ search_or_write?: number | undefined;
2643
+ write?: number | undefined;
2644
2644
  } | undefined;
2645
2645
  description?: string | undefined;
2646
2646
  is_hidden?: boolean | undefined;
@@ -2858,7 +2858,7 @@ declare const ActionItemSchema: z.ZodObject<Omit<{
2858
2858
  description: string;
2859
2859
  title: string;
2860
2860
  app_key: string;
2861
- action_type: "search" | "filter" | "read" | "read_bulk" | "write" | "run" | "search_or_write" | "search_and_write";
2861
+ action_type: "search" | "filter" | "read" | "read_bulk" | "run" | "search_and_write" | "search_or_write" | "write";
2862
2862
  id?: string | undefined;
2863
2863
  is_important?: boolean | undefined;
2864
2864
  is_hidden?: boolean | undefined;
@@ -2869,7 +2869,7 @@ declare const ActionItemSchema: z.ZodObject<Omit<{
2869
2869
  description: string;
2870
2870
  title: string;
2871
2871
  app_key: string;
2872
- action_type: "search" | "filter" | "read" | "read_bulk" | "write" | "run" | "search_or_write" | "search_and_write";
2872
+ action_type: "search" | "filter" | "read" | "read_bulk" | "run" | "search_and_write" | "search_or_write" | "write";
2873
2873
  id?: string | undefined;
2874
2874
  is_important?: boolean | undefined;
2875
2875
  is_hidden?: boolean | undefined;
@@ -3232,7 +3232,7 @@ declare function createZapierSdkWithoutRegistry(options?: ZapierSdkOptions): Sdk
3232
3232
  } & {
3233
3233
  getVersionedImplementationId: GetVersionedImplementationId;
3234
3234
  resolveAppKeys: ResolveAppKeys;
3235
- updateManifestEntry: (appKey: string, entry: ManifestEntry, configPath?: string) => Promise<[string, ManifestEntry]>;
3235
+ updateManifestEntry: (options: UpdateManifestEntryOptions) => Promise<[string, ManifestEntry, Manifest]>;
3236
3236
  } & {
3237
3237
  meta: {
3238
3238
  listApps: {
@@ -3326,4 +3326,4 @@ declare function createZapierSdkWithoutRegistry(options?: ZapierSdkOptions): Sdk
3326
3326
  }>;
3327
3327
  declare function createZapierSdk(options?: ZapierSdkOptions): ZapierSdk;
3328
3328
 
3329
- 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 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, 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 UserProfile, type UserProfileItem, 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, 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 };
3329
+ 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 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, 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, 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, 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 };