@zapier/zapier-sdk 0.15.0 → 0.15.2

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 (70) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/README.md +28 -0
  3. package/dist/api/client.d.ts.map +1 -1
  4. package/dist/api/client.integration.test.d.ts +5 -0
  5. package/dist/api/client.integration.test.d.ts.map +1 -0
  6. package/dist/api/client.integration.test.js +318 -0
  7. package/dist/api/client.js +31 -1
  8. package/dist/api/schemas.d.ts +3 -0
  9. package/dist/api/schemas.d.ts.map +1 -1
  10. package/dist/api/schemas.js +1 -0
  11. package/dist/index.cjs +386 -106
  12. package/dist/index.d.mts +290 -33
  13. package/dist/index.mjs +386 -106
  14. package/dist/plugins/getApp/index.test.js +17 -21
  15. package/dist/plugins/getInputFieldsSchema/index.d.ts +22 -0
  16. package/dist/plugins/getInputFieldsSchema/index.d.ts.map +1 -0
  17. package/dist/plugins/getInputFieldsSchema/index.js +51 -0
  18. package/dist/plugins/getInputFieldsSchema/index.test.d.ts +2 -0
  19. package/dist/plugins/getInputFieldsSchema/index.test.d.ts.map +1 -0
  20. package/dist/plugins/getInputFieldsSchema/index.test.js +288 -0
  21. package/dist/plugins/getInputFieldsSchema/schemas.d.ts +31 -0
  22. package/dist/plugins/getInputFieldsSchema/schemas.d.ts.map +1 -0
  23. package/dist/plugins/getInputFieldsSchema/schemas.js +13 -0
  24. package/dist/plugins/listActions/schemas.d.ts +4 -4
  25. package/dist/plugins/listApps/index.d.ts +1 -3
  26. package/dist/plugins/listApps/index.d.ts.map +1 -1
  27. package/dist/plugins/listApps/index.js +18 -44
  28. package/dist/plugins/listApps/index.test.js +89 -288
  29. package/dist/plugins/listApps/schemas.d.ts +19 -26
  30. package/dist/plugins/listApps/schemas.d.ts.map +1 -1
  31. package/dist/plugins/listApps/schemas.js +19 -18
  32. package/dist/plugins/listAuthentications/schemas.d.ts +4 -4
  33. package/dist/plugins/listInputFieldChoices/schemas.d.ts +4 -4
  34. package/dist/plugins/listInputFields/index.d.ts.map +1 -1
  35. package/dist/plugins/listInputFields/index.js +2 -0
  36. package/dist/plugins/listInputFields/schemas.d.ts +4 -4
  37. package/dist/plugins/runAction/schemas.d.ts +4 -4
  38. package/dist/sdk.d.ts +8 -2
  39. package/dist/sdk.d.ts.map +1 -1
  40. package/dist/sdk.js +2 -0
  41. package/dist/temporary-internal-core/handlers/listApps.d.ts +67 -0
  42. package/dist/temporary-internal-core/handlers/listApps.d.ts.map +1 -0
  43. package/dist/temporary-internal-core/handlers/listApps.js +121 -0
  44. package/dist/temporary-internal-core/handlers/listApps.test.d.ts +2 -0
  45. package/dist/temporary-internal-core/handlers/listApps.test.d.ts.map +1 -0
  46. package/dist/temporary-internal-core/handlers/listApps.test.js +328 -0
  47. package/dist/temporary-internal-core/index.d.ts +18 -0
  48. package/dist/temporary-internal-core/index.d.ts.map +1 -0
  49. package/dist/temporary-internal-core/index.js +18 -0
  50. package/dist/temporary-internal-core/schemas/apps/index.d.ts +582 -0
  51. package/dist/temporary-internal-core/schemas/apps/index.d.ts.map +1 -0
  52. package/dist/temporary-internal-core/schemas/apps/index.js +95 -0
  53. package/dist/temporary-internal-core/schemas/implementations/index.d.ts +511 -0
  54. package/dist/temporary-internal-core/schemas/implementations/index.d.ts.map +1 -0
  55. package/dist/temporary-internal-core/schemas/implementations/index.js +79 -0
  56. package/dist/temporary-internal-core/types/handler.d.ts +51 -0
  57. package/dist/temporary-internal-core/types/handler.d.ts.map +1 -0
  58. package/dist/temporary-internal-core/types/handler.js +8 -0
  59. package/dist/temporary-internal-core/types/index.d.ts +5 -0
  60. package/dist/temporary-internal-core/types/index.d.ts.map +1 -0
  61. package/dist/temporary-internal-core/types/index.js +4 -0
  62. package/dist/temporary-internal-core/utils/app-locators.d.ts +54 -0
  63. package/dist/temporary-internal-core/utils/app-locators.d.ts.map +1 -0
  64. package/dist/temporary-internal-core/utils/app-locators.js +83 -0
  65. package/dist/temporary-internal-core/utils/transformations.d.ts +18 -0
  66. package/dist/temporary-internal-core/utils/transformations.d.ts.map +1 -0
  67. package/dist/temporary-internal-core/utils/transformations.js +36 -0
  68. package/dist/types/sdk.d.ts +2 -1
  69. package/dist/types/sdk.d.ts.map +1 -1
  70. package/package.json +1 -1
package/dist/index.d.mts CHANGED
@@ -1157,6 +1157,7 @@ declare const NeedsResponseSchema: z.ZodObject<{
1157
1157
  }>, "many">>;
1158
1158
  errors: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1159
1159
  last_fetched_at: z.ZodOptional<z.ZodString>;
1160
+ schema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1160
1161
  }, "strip", z.ZodTypeAny, {
1161
1162
  success: boolean;
1162
1163
  needs?: {
@@ -1193,6 +1194,7 @@ declare const NeedsResponseSchema: z.ZodObject<{
1193
1194
  }[] | undefined;
1194
1195
  errors?: string[] | undefined;
1195
1196
  last_fetched_at?: string | undefined;
1197
+ schema?: Record<string, unknown> | undefined;
1196
1198
  }, {
1197
1199
  success: boolean;
1198
1200
  needs?: {
@@ -1229,6 +1231,7 @@ declare const NeedsResponseSchema: z.ZodObject<{
1229
1231
  }[] | undefined;
1230
1232
  errors?: string[] | undefined;
1231
1233
  last_fetched_at?: string | undefined;
1234
+ schema?: Record<string, unknown> | undefined;
1232
1235
  }>;
1233
1236
 
1234
1237
  /**
@@ -1561,18 +1564,18 @@ declare const ListInputFieldsSchema: z.ZodObject<{
1561
1564
  appKey: string;
1562
1565
  actionType: "search" | "filter" | "read" | "read_bulk" | "run" | "search_and_write" | "search_or_write" | "write";
1563
1566
  actionKey: string;
1564
- cursor?: string | undefined;
1565
- maxItems?: number | undefined;
1566
1567
  pageSize?: number | undefined;
1568
+ maxItems?: number | undefined;
1569
+ cursor?: string | undefined;
1567
1570
  authenticationId?: number | null | undefined;
1568
1571
  inputs?: Record<string, unknown> | undefined;
1569
1572
  }, {
1570
1573
  appKey: string;
1571
1574
  actionType: "search" | "filter" | "read" | "read_bulk" | "run" | "search_and_write" | "search_or_write" | "write";
1572
1575
  actionKey: string;
1573
- cursor?: string | undefined;
1574
- maxItems?: number | undefined;
1575
1576
  pageSize?: number | undefined;
1577
+ maxItems?: number | undefined;
1578
+ cursor?: string | undefined;
1576
1579
  authenticationId?: number | null | undefined;
1577
1580
  inputs?: Record<string, unknown> | undefined;
1578
1581
  }>;
@@ -1852,18 +1855,18 @@ declare const RunActionSchema: z.ZodObject<{
1852
1855
  appKey: string;
1853
1856
  actionType: "search" | "filter" | "read" | "read_bulk" | "run" | "search_and_write" | "search_or_write" | "write";
1854
1857
  actionKey: string;
1855
- cursor?: string | undefined;
1856
- maxItems?: number | undefined;
1857
1858
  pageSize?: number | undefined;
1859
+ maxItems?: number | undefined;
1860
+ cursor?: string | undefined;
1858
1861
  authenticationId?: number | null | undefined;
1859
1862
  inputs?: Record<string, unknown> | undefined;
1860
1863
  }, {
1861
1864
  appKey: string;
1862
1865
  actionType: "search" | "filter" | "read" | "read_bulk" | "run" | "search_and_write" | "search_or_write" | "write";
1863
1866
  actionKey: string;
1864
- cursor?: string | undefined;
1865
- maxItems?: number | undefined;
1866
1867
  pageSize?: number | undefined;
1868
+ maxItems?: number | undefined;
1869
+ cursor?: string | undefined;
1867
1870
  authenticationId?: number | null | undefined;
1868
1871
  inputs?: Record<string, unknown> | undefined;
1869
1872
  }>;
@@ -1896,15 +1899,15 @@ declare const ListActionsSchema: z.ZodObject<{
1896
1899
  cursor: z.ZodOptional<z.ZodString>;
1897
1900
  }, "strip", z.ZodTypeAny, {
1898
1901
  appKey: string;
1899
- cursor?: string | undefined;
1900
- maxItems?: number | undefined;
1901
1902
  pageSize?: number | undefined;
1903
+ maxItems?: number | undefined;
1904
+ cursor?: string | undefined;
1902
1905
  actionType?: "search" | "filter" | "read" | "read_bulk" | "run" | "search_and_write" | "search_or_write" | "write" | undefined;
1903
1906
  }, {
1904
1907
  appKey: string;
1905
- cursor?: string | undefined;
1906
- maxItems?: number | undefined;
1907
1908
  pageSize?: number | undefined;
1909
+ maxItems?: number | undefined;
1910
+ cursor?: string | undefined;
1908
1911
  actionType?: "search" | "filter" | "read" | "read_bulk" | "run" | "search_and_write" | "search_or_write" | "write" | undefined;
1909
1912
  }>;
1910
1913
  type ListActionsOptions = z.infer<typeof ListActionsSchema>;
@@ -1961,7 +1964,22 @@ declare const GetAppSchema: z.ZodObject<{
1961
1964
  }>;
1962
1965
  type GetAppOptions = z.infer<typeof GetAppSchema>;
1963
1966
 
1964
- declare const ListAppsSchema: z.ZodObject<{
1967
+ /**
1968
+ * App and Service schemas
1969
+ *
1970
+ * Covers:
1971
+ * - App metadata
1972
+ * - Service definitions
1973
+ * - App listings and searches
1974
+ */
1975
+
1976
+ /**
1977
+ * Public API schema for listApps operation
1978
+ *
1979
+ * This is the user-facing schema that accepts app keys (slugs, implementation names, etc.)
1980
+ * The plugin resolves these to implementation IDs before calling the handler.
1981
+ */
1982
+ declare const ListAppsOptionsSchema: z.ZodObject<{
1965
1983
  appKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1966
1984
  search: z.ZodOptional<z.ZodString>;
1967
1985
  pageSize: z.ZodOptional<z.ZodNumber>;
@@ -1970,32 +1988,229 @@ declare const ListAppsSchema: z.ZodObject<{
1970
1988
  }, "strip", z.ZodTypeAny, {
1971
1989
  search?: string | undefined;
1972
1990
  appKeys?: string[] | undefined;
1973
- cursor?: string | undefined;
1974
- maxItems?: number | undefined;
1975
1991
  pageSize?: number | undefined;
1992
+ maxItems?: number | undefined;
1993
+ cursor?: string | undefined;
1976
1994
  }, {
1977
1995
  search?: string | undefined;
1978
1996
  appKeys?: string[] | undefined;
1979
- cursor?: string | undefined;
1980
- maxItems?: number | undefined;
1981
1997
  pageSize?: number | undefined;
1998
+ maxItems?: number | undefined;
1999
+ cursor?: string | undefined;
1982
2000
  }>;
1983
- type ListAppsOptions = z.infer<typeof ListAppsSchema>;
2001
+ type ListAppsOptions = z.infer<typeof ListAppsOptionsSchema>;
2002
+ /**
2003
+ * Normalized app item returned by listApps
2004
+ * This extends ImplementationMetaSchema with transformed fields (title, key, implementation_id)
2005
+ */
2006
+ declare const AppItemSchema$1: z.ZodObject<{
2007
+ categories: z.ZodOptional<z.ZodArray<z.ZodObject<{
2008
+ id: z.ZodNumber;
2009
+ name: z.ZodString;
2010
+ slug: z.ZodString;
2011
+ }, "strip", z.ZodTypeAny, {
2012
+ id: number;
2013
+ name: string;
2014
+ slug: string;
2015
+ }, {
2016
+ id: number;
2017
+ name: string;
2018
+ slug: string;
2019
+ }>, "many">>;
2020
+ actions: z.ZodOptional<z.ZodObject<{
2021
+ read: z.ZodOptional<z.ZodNumber>;
2022
+ read_bulk: z.ZodOptional<z.ZodNumber>;
2023
+ write: z.ZodOptional<z.ZodNumber>;
2024
+ search: z.ZodOptional<z.ZodNumber>;
2025
+ search_or_write: z.ZodOptional<z.ZodNumber>;
2026
+ search_and_write: z.ZodOptional<z.ZodNumber>;
2027
+ filter: z.ZodOptional<z.ZodNumber>;
2028
+ }, "strip", z.ZodTypeAny, {
2029
+ search?: number | undefined;
2030
+ filter?: number | undefined;
2031
+ read?: number | undefined;
2032
+ read_bulk?: number | undefined;
2033
+ search_and_write?: number | undefined;
2034
+ search_or_write?: number | undefined;
2035
+ write?: number | undefined;
2036
+ }, {
2037
+ search?: number | undefined;
2038
+ filter?: number | undefined;
2039
+ read?: number | undefined;
2040
+ read_bulk?: number | undefined;
2041
+ search_and_write?: number | undefined;
2042
+ search_or_write?: number | undefined;
2043
+ write?: number | undefined;
2044
+ }>>;
2045
+ description: z.ZodOptional<z.ZodString>;
2046
+ is_hidden: z.ZodOptional<z.ZodBoolean>;
2047
+ age_in_days: z.ZodOptional<z.ZodNumber>;
2048
+ api_docs_url: z.ZodOptional<z.ZodString>;
2049
+ banner: z.ZodOptional<z.ZodString>;
2050
+ image: z.ZodOptional<z.ZodString>;
2051
+ images: z.ZodOptional<z.ZodObject<{
2052
+ url_16x16: z.ZodOptional<z.ZodString>;
2053
+ url_32x32: z.ZodOptional<z.ZodString>;
2054
+ url_64x64: z.ZodOptional<z.ZodString>;
2055
+ url_128x128: z.ZodOptional<z.ZodString>;
2056
+ }, "strip", z.ZodTypeAny, {
2057
+ url_16x16?: string | undefined;
2058
+ url_32x32?: string | undefined;
2059
+ url_64x64?: string | undefined;
2060
+ url_128x128?: string | undefined;
2061
+ }, {
2062
+ url_16x16?: string | undefined;
2063
+ url_32x32?: string | undefined;
2064
+ url_64x64?: string | undefined;
2065
+ url_128x128?: string | undefined;
2066
+ }>>;
2067
+ is_beta: z.ZodOptional<z.ZodBoolean>;
2068
+ is_built_in: z.ZodOptional<z.ZodBoolean>;
2069
+ is_featured: z.ZodOptional<z.ZodBoolean>;
2070
+ is_premium: z.ZodOptional<z.ZodBoolean>;
2071
+ is_public: z.ZodOptional<z.ZodBoolean>;
2072
+ is_upcoming: z.ZodOptional<z.ZodBoolean>;
2073
+ popularity: z.ZodOptional<z.ZodNumber>;
2074
+ primary_color: z.ZodOptional<z.ZodString>;
2075
+ slug: z.ZodString;
2076
+ auth_type: z.ZodOptional<z.ZodString>;
2077
+ is_deprecated: z.ZodOptional<z.ZodBoolean>;
2078
+ secondary_color: z.ZodOptional<z.ZodString>;
2079
+ has_filters: z.ZodOptional<z.ZodBoolean>;
2080
+ has_reads: z.ZodOptional<z.ZodBoolean>;
2081
+ has_searches: z.ZodOptional<z.ZodBoolean>;
2082
+ has_searches_or_writes: z.ZodOptional<z.ZodBoolean>;
2083
+ has_upfront_fields: z.ZodOptional<z.ZodBoolean>;
2084
+ has_writes: z.ZodOptional<z.ZodBoolean>;
2085
+ is_invite: z.ZodOptional<z.ZodBoolean>;
2086
+ visibility: z.ZodOptional<z.ZodString>;
2087
+ classification: z.ZodOptional<z.ZodString>;
2088
+ } & {
2089
+ title: z.ZodString;
2090
+ key: z.ZodString;
2091
+ implementation_id: z.ZodString;
2092
+ version: z.ZodOptional<z.ZodString>;
2093
+ }, "strip", z.ZodTypeAny, {
2094
+ key: string;
2095
+ title: string;
2096
+ slug: string;
2097
+ implementation_id: string;
2098
+ categories?: {
2099
+ id: number;
2100
+ name: string;
2101
+ slug: string;
2102
+ }[] | undefined;
2103
+ actions?: {
2104
+ search?: number | undefined;
2105
+ filter?: number | undefined;
2106
+ read?: number | undefined;
2107
+ read_bulk?: number | undefined;
2108
+ search_and_write?: number | undefined;
2109
+ search_or_write?: number | undefined;
2110
+ write?: number | undefined;
2111
+ } | undefined;
2112
+ description?: string | undefined;
2113
+ is_hidden?: boolean | undefined;
2114
+ age_in_days?: number | undefined;
2115
+ api_docs_url?: string | undefined;
2116
+ banner?: string | undefined;
2117
+ image?: string | undefined;
2118
+ images?: {
2119
+ url_16x16?: string | undefined;
2120
+ url_32x32?: string | undefined;
2121
+ url_64x64?: string | undefined;
2122
+ url_128x128?: string | undefined;
2123
+ } | undefined;
2124
+ is_beta?: boolean | undefined;
2125
+ is_built_in?: boolean | undefined;
2126
+ is_featured?: boolean | undefined;
2127
+ is_premium?: boolean | undefined;
2128
+ is_public?: boolean | undefined;
2129
+ is_upcoming?: boolean | undefined;
2130
+ popularity?: number | undefined;
2131
+ primary_color?: string | undefined;
2132
+ auth_type?: string | undefined;
2133
+ is_deprecated?: boolean | undefined;
2134
+ secondary_color?: string | undefined;
2135
+ has_filters?: boolean | undefined;
2136
+ has_reads?: boolean | undefined;
2137
+ has_searches?: boolean | undefined;
2138
+ has_searches_or_writes?: boolean | undefined;
2139
+ has_upfront_fields?: boolean | undefined;
2140
+ has_writes?: boolean | undefined;
2141
+ is_invite?: boolean | undefined;
2142
+ version?: string | undefined;
2143
+ visibility?: string | undefined;
2144
+ classification?: string | undefined;
2145
+ }, {
2146
+ key: string;
2147
+ title: string;
2148
+ slug: string;
2149
+ implementation_id: string;
2150
+ categories?: {
2151
+ id: number;
2152
+ name: string;
2153
+ slug: string;
2154
+ }[] | undefined;
2155
+ actions?: {
2156
+ search?: number | undefined;
2157
+ filter?: number | undefined;
2158
+ read?: number | undefined;
2159
+ read_bulk?: number | undefined;
2160
+ search_and_write?: number | undefined;
2161
+ search_or_write?: number | undefined;
2162
+ write?: number | undefined;
2163
+ } | undefined;
2164
+ description?: string | undefined;
2165
+ is_hidden?: boolean | undefined;
2166
+ age_in_days?: number | undefined;
2167
+ api_docs_url?: string | undefined;
2168
+ banner?: string | undefined;
2169
+ image?: string | undefined;
2170
+ images?: {
2171
+ url_16x16?: string | undefined;
2172
+ url_32x32?: string | undefined;
2173
+ url_64x64?: string | undefined;
2174
+ url_128x128?: string | undefined;
2175
+ } | undefined;
2176
+ is_beta?: boolean | undefined;
2177
+ is_built_in?: boolean | undefined;
2178
+ is_featured?: boolean | undefined;
2179
+ is_premium?: boolean | undefined;
2180
+ is_public?: boolean | undefined;
2181
+ is_upcoming?: boolean | undefined;
2182
+ popularity?: number | undefined;
2183
+ primary_color?: string | undefined;
2184
+ auth_type?: string | undefined;
2185
+ is_deprecated?: boolean | undefined;
2186
+ secondary_color?: string | undefined;
2187
+ has_filters?: boolean | undefined;
2188
+ has_reads?: boolean | undefined;
2189
+ has_searches?: boolean | undefined;
2190
+ has_searches_or_writes?: boolean | undefined;
2191
+ has_upfront_fields?: boolean | undefined;
2192
+ has_writes?: boolean | undefined;
2193
+ is_invite?: boolean | undefined;
2194
+ version?: string | undefined;
2195
+ visibility?: string | undefined;
2196
+ classification?: string | undefined;
2197
+ }>;
2198
+ type AppItem$1 = z.infer<typeof AppItemSchema$1>;
1984
2199
 
1985
2200
  interface ListAppsPluginProvides {
1986
2201
  listApps: (options?: ListAppsOptions) => Promise<{
1987
- data: AppItem[];
2202
+ data: AppItem$1[];
1988
2203
  nextCursor?: string;
1989
2204
  }> & AsyncIterable<{
1990
- data: AppItem[];
2205
+ data: AppItem$1[];
1991
2206
  nextCursor?: string;
1992
2207
  }> & {
1993
- items(): AsyncIterable<AppItem>;
2208
+ items(): AsyncIterable<AppItem$1>;
1994
2209
  };
1995
2210
  context: {
1996
2211
  meta: {
1997
2212
  listApps: {
1998
- inputSchema: typeof ListAppsSchema;
2213
+ inputSchema: typeof ListAppsOptionsSchema;
1999
2214
  };
2000
2215
  };
2001
2216
  };
@@ -2067,9 +2282,9 @@ declare const ListAuthenticationsSchema: z.ZodObject<{
2067
2282
  search?: string | undefined;
2068
2283
  title?: string | undefined;
2069
2284
  appKey?: string | undefined;
2070
- cursor?: string | undefined;
2071
- maxItems?: number | undefined;
2072
2285
  pageSize?: number | undefined;
2286
+ maxItems?: number | undefined;
2287
+ cursor?: string | undefined;
2073
2288
  accountId?: string | undefined;
2074
2289
  owner?: string | undefined;
2075
2290
  authenticationIds?: string[] | undefined;
@@ -2077,9 +2292,9 @@ declare const ListAuthenticationsSchema: z.ZodObject<{
2077
2292
  search?: string | undefined;
2078
2293
  title?: string | undefined;
2079
2294
  appKey?: string | undefined;
2080
- cursor?: string | undefined;
2081
- maxItems?: number | undefined;
2082
2295
  pageSize?: number | undefined;
2296
+ maxItems?: number | undefined;
2297
+ cursor?: string | undefined;
2083
2298
  accountId?: string | undefined;
2084
2299
  owner?: string | undefined;
2085
2300
  authenticationIds?: string[] | undefined;
@@ -2184,6 +2399,42 @@ declare const listInputFieldsPlugin: Plugin<GetSdkType<GetAppPluginProvides & Ge
2184
2399
  }, // requires api and getVersionedImplementationId in context
2185
2400
  ListInputFieldsPluginProvides>;
2186
2401
 
2402
+ declare const GetInputFieldsSchemaSchema: z.ZodObject<{
2403
+ appKey: z.ZodString & {
2404
+ _def: z.ZodStringDef & PositionalMetadata;
2405
+ };
2406
+ actionType: z.ZodEnum<["read", "read_bulk", "write", "run", "search", "search_or_write", "search_and_write", "filter"]>;
2407
+ actionKey: z.ZodString;
2408
+ authenticationId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2409
+ inputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2410
+ }, "strip", z.ZodTypeAny, {
2411
+ appKey: string;
2412
+ actionType: "search" | "filter" | "read" | "read_bulk" | "run" | "search_and_write" | "search_or_write" | "write";
2413
+ actionKey: string;
2414
+ authenticationId?: number | null | undefined;
2415
+ inputs?: Record<string, unknown> | undefined;
2416
+ }, {
2417
+ appKey: string;
2418
+ actionType: "search" | "filter" | "read" | "read_bulk" | "run" | "search_and_write" | "search_or_write" | "write";
2419
+ actionKey: string;
2420
+ authenticationId?: number | null | undefined;
2421
+ inputs?: Record<string, unknown> | undefined;
2422
+ }>;
2423
+ type GetInputFieldsSchemaOptions = z.infer<typeof GetInputFieldsSchemaSchema>;
2424
+
2425
+ interface GetInputFieldsSchemaPluginProvides {
2426
+ getInputFieldsSchema: (options: GetInputFieldsSchemaOptions) => Promise<{
2427
+ data: Record<string, unknown>;
2428
+ }>;
2429
+ context: {
2430
+ meta: {
2431
+ getInputFieldsSchema: {
2432
+ inputSchema: typeof GetInputFieldsSchemaSchema;
2433
+ };
2434
+ };
2435
+ };
2436
+ }
2437
+
2187
2438
  declare const InputFieldChoiceItemSchema: z.ZodObject<{
2188
2439
  key: z.ZodOptional<z.ZodString>;
2189
2440
  label: z.ZodOptional<z.ZodString>;
@@ -2220,9 +2471,9 @@ declare const ListInputFieldChoicesSchema: z.ZodObject<{
2220
2471
  actionKey: string;
2221
2472
  inputFieldKey: string;
2222
2473
  page?: number | undefined;
2223
- cursor?: string | undefined;
2224
- maxItems?: number | undefined;
2225
2474
  pageSize?: number | undefined;
2475
+ maxItems?: number | undefined;
2476
+ cursor?: string | undefined;
2226
2477
  authenticationId?: number | null | undefined;
2227
2478
  inputs?: Record<string, unknown> | undefined;
2228
2479
  }, {
@@ -2231,9 +2482,9 @@ declare const ListInputFieldChoicesSchema: z.ZodObject<{
2231
2482
  actionKey: string;
2232
2483
  inputFieldKey: string;
2233
2484
  page?: number | undefined;
2234
- cursor?: string | undefined;
2235
- maxItems?: number | undefined;
2236
2485
  pageSize?: number | undefined;
2486
+ maxItems?: number | undefined;
2487
+ cursor?: string | undefined;
2237
2488
  authenticationId?: number | null | undefined;
2238
2489
  inputs?: Record<string, unknown> | undefined;
2239
2490
  }>;
@@ -2292,7 +2543,7 @@ interface FunctionRegistryEntry {
2292
2543
  resolvers?: Record<string, any>;
2293
2544
  packages?: string[];
2294
2545
  }
2295
- interface ZapierSdk extends GetSdkType<RegistryPluginProvides & FetchPluginProvides & AppsPluginProvides & ListAppsPluginProvides & ManifestPluginProvides & GetAppPluginProvides & ListActionsPluginProvides & GetActionPluginProvides & RunActionPluginProvides & ListAuthenticationsPluginProvides & GetAuthenticationPluginProvides & FindFirstAuthenticationPluginProvides & FindUniqueAuthenticationPluginProvides & ListInputFieldsPluginProvides & ListInputFieldChoicesPluginProvides & RequestPluginProvides & GetProfilePluginProvides & EventEmissionProvides & ApiPluginProvides> {
2546
+ interface ZapierSdk extends GetSdkType<RegistryPluginProvides & FetchPluginProvides & AppsPluginProvides & ListAppsPluginProvides & ManifestPluginProvides & GetAppPluginProvides & ListActionsPluginProvides & GetActionPluginProvides & RunActionPluginProvides & ListAuthenticationsPluginProvides & GetAuthenticationPluginProvides & FindFirstAuthenticationPluginProvides & FindUniqueAuthenticationPluginProvides & ListInputFieldsPluginProvides & GetInputFieldsSchemaPluginProvides & ListInputFieldChoicesPluginProvides & RequestPluginProvides & GetProfilePluginProvides & EventEmissionProvides & ApiPluginProvides> {
2296
2547
  apps: ActionProxy & ZapierSdkApps;
2297
2548
  }
2298
2549
 
@@ -3317,7 +3568,7 @@ declare function createSdk<TCurrentSdk = {}, TCurrentContext extends {
3317
3568
  getContext(): TCurrentContext;
3318
3569
  }, TRequiresContext, TProvides>, addPluginOptions?: Record<string, unknown>): Sdk<TCurrentSdk & ExtractSdkProperties<TProvides>, TCurrentContext & NonNullable<ExtractContextProperties<TProvides>>>;
3319
3570
  };
3320
- declare function createZapierSdkWithoutRegistry(options?: ZapierSdkOptions): Sdk<ExtractSdkProperties<EventEmissionProvides> & ExtractSdkProperties<ApiPluginProvides> & ExtractSdkProperties<ManifestPluginProvides> & ExtractSdkProperties<ListAppsPluginProvides> & ExtractSdkProperties<GetAppPluginProvides> & ExtractSdkProperties<ListActionsPluginProvides> & ExtractSdkProperties<GetActionPluginProvides> & ExtractSdkProperties<ListInputFieldsPluginProvides> & ExtractSdkProperties<ListInputFieldChoicesPluginProvides> & ExtractSdkProperties<RunActionPluginProvides> & ExtractSdkProperties<ListAuthenticationsPluginProvides> & ExtractSdkProperties<GetAuthenticationPluginProvides> & ExtractSdkProperties<FindFirstAuthenticationPluginProvides> & ExtractSdkProperties<FindUniqueAuthenticationPluginProvides> & ExtractSdkProperties<RequestPluginProvides> & ExtractSdkProperties<FetchPluginProvides> & ExtractSdkProperties<AppsPluginProvides> & ExtractSdkProperties<GetProfilePluginProvides>, {
3571
+ declare function createZapierSdkWithoutRegistry(options?: ZapierSdkOptions): Sdk<ExtractSdkProperties<EventEmissionProvides> & ExtractSdkProperties<ApiPluginProvides> & ExtractSdkProperties<ManifestPluginProvides> & ExtractSdkProperties<ListAppsPluginProvides> & ExtractSdkProperties<GetAppPluginProvides> & ExtractSdkProperties<ListActionsPluginProvides> & ExtractSdkProperties<GetActionPluginProvides> & ExtractSdkProperties<ListInputFieldsPluginProvides> & ExtractSdkProperties<GetInputFieldsSchemaPluginProvides> & ExtractSdkProperties<ListInputFieldChoicesPluginProvides> & ExtractSdkProperties<RunActionPluginProvides> & ExtractSdkProperties<ListAuthenticationsPluginProvides> & ExtractSdkProperties<GetAuthenticationPluginProvides> & ExtractSdkProperties<FindFirstAuthenticationPluginProvides> & ExtractSdkProperties<FindUniqueAuthenticationPluginProvides> & ExtractSdkProperties<RequestPluginProvides> & ExtractSdkProperties<FetchPluginProvides> & ExtractSdkProperties<AppsPluginProvides> & ExtractSdkProperties<GetProfilePluginProvides>, {
3321
3572
  meta: Record<string, PluginMeta>;
3322
3573
  } & EventEmissionContext & {
3323
3574
  api: ApiClient;
@@ -3328,7 +3579,7 @@ declare function createZapierSdkWithoutRegistry(options?: ZapierSdkOptions): Sdk
3328
3579
  } & {
3329
3580
  meta: {
3330
3581
  listApps: {
3331
- inputSchema: typeof ListAppsSchema;
3582
+ inputSchema: typeof ListAppsOptionsSchema;
3332
3583
  };
3333
3584
  };
3334
3585
  } & {
@@ -3355,6 +3606,12 @@ declare function createZapierSdkWithoutRegistry(options?: ZapierSdkOptions): Sdk
3355
3606
  inputSchema: typeof ListInputFieldsSchema;
3356
3607
  };
3357
3608
  };
3609
+ } & {
3610
+ meta: {
3611
+ getInputFieldsSchema: {
3612
+ inputSchema: typeof GetInputFieldsSchemaSchema;
3613
+ };
3614
+ };
3358
3615
  } & {
3359
3616
  meta: {
3360
3617
  listInputFieldChoices: {