@zapier/zapier-sdk 0.34.1 → 0.36.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (156) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/README.md +341 -0
  3. package/dist/api/client.d.ts.map +1 -1
  4. package/dist/api/client.js +10 -2
  5. package/dist/api/types.d.ts +2 -1
  6. package/dist/api/types.d.ts.map +1 -1
  7. package/dist/constants.d.ts +4 -0
  8. package/dist/constants.d.ts.map +1 -1
  9. package/dist/constants.js +4 -0
  10. package/dist/formatters/index.d.ts +2 -0
  11. package/dist/formatters/index.d.ts.map +1 -0
  12. package/dist/formatters/index.js +1 -0
  13. package/dist/formatters/tableRecord.d.ts +6 -0
  14. package/dist/formatters/tableRecord.d.ts.map +1 -0
  15. package/dist/formatters/tableRecord.js +23 -0
  16. package/dist/index.cjs +2054 -191
  17. package/dist/index.d.mts +639 -59
  18. package/dist/index.d.ts +13 -1
  19. package/dist/index.d.ts.map +1 -1
  20. package/dist/index.js +13 -0
  21. package/dist/index.mjs +2030 -192
  22. package/dist/plugins/deleteClientCredentials/index.d.ts.map +1 -1
  23. package/dist/plugins/deleteClientCredentials/index.js +1 -1
  24. package/dist/plugins/listActions/index.d.ts.map +1 -1
  25. package/dist/plugins/listActions/index.js +2 -1
  26. package/dist/plugins/listApps/index.d.ts.map +1 -1
  27. package/dist/plugins/listApps/index.js +5 -2
  28. package/dist/plugins/listClientCredentials/index.d.ts.map +1 -1
  29. package/dist/plugins/listClientCredentials/index.js +6 -4
  30. package/dist/plugins/listConnections/index.d.ts.map +1 -1
  31. package/dist/plugins/listConnections/index.js +6 -4
  32. package/dist/plugins/listInputFieldChoices/index.d.ts.map +1 -1
  33. package/dist/plugins/listInputFieldChoices/index.js +2 -1
  34. package/dist/plugins/listInputFields/index.d.ts.map +1 -1
  35. package/dist/plugins/listInputFields/index.js +2 -1
  36. package/dist/plugins/registry/index.d.ts.map +1 -1
  37. package/dist/plugins/registry/index.js +4 -0
  38. package/dist/plugins/runAction/index.d.ts +2 -0
  39. package/dist/plugins/runAction/index.d.ts.map +1 -1
  40. package/dist/plugins/runAction/index.js +73 -14
  41. package/dist/plugins/tables/createTable/index.d.ts +18 -0
  42. package/dist/plugins/tables/createTable/index.d.ts.map +1 -0
  43. package/dist/plugins/tables/createTable/index.js +48 -0
  44. package/dist/plugins/tables/createTable/schemas.d.ts +37 -0
  45. package/dist/plugins/tables/createTable/schemas.d.ts.map +1 -0
  46. package/dist/plugins/tables/createTable/schemas.js +16 -0
  47. package/dist/plugins/tables/createTableFields/index.d.ts +18 -0
  48. package/dist/plugins/tables/createTableFields/index.d.ts.map +1 -0
  49. package/dist/plugins/tables/createTableFields/index.js +49 -0
  50. package/dist/plugins/tables/createTableFields/schemas.d.ts +192 -0
  51. package/dist/plugins/tables/createTableFields/schemas.d.ts.map +1 -0
  52. package/dist/plugins/tables/createTableFields/schemas.js +42 -0
  53. package/dist/plugins/tables/createTableRecords/index.d.ts +18 -0
  54. package/dist/plugins/tables/createTableRecords/index.d.ts.map +1 -0
  55. package/dist/plugins/tables/createTableRecords/index.js +67 -0
  56. package/dist/plugins/tables/createTableRecords/schemas.d.ts +57 -0
  57. package/dist/plugins/tables/createTableRecords/schemas.d.ts.map +1 -0
  58. package/dist/plugins/tables/createTableRecords/schemas.js +35 -0
  59. package/dist/plugins/tables/deleteTable/index.d.ts +18 -0
  60. package/dist/plugins/tables/deleteTable/index.d.ts.map +1 -0
  61. package/dist/plugins/tables/deleteTable/index.js +43 -0
  62. package/dist/plugins/tables/deleteTable/schemas.d.ts +15 -0
  63. package/dist/plugins/tables/deleteTable/schemas.d.ts.map +1 -0
  64. package/dist/plugins/tables/deleteTable/schemas.js +9 -0
  65. package/dist/plugins/tables/deleteTableFields/index.d.ts +18 -0
  66. package/dist/plugins/tables/deleteTableFields/index.d.ts.map +1 -0
  67. package/dist/plugins/tables/deleteTableFields/index.js +50 -0
  68. package/dist/plugins/tables/deleteTableFields/schemas.d.ts +16 -0
  69. package/dist/plugins/tables/deleteTableFields/schemas.d.ts.map +1 -0
  70. package/dist/plugins/tables/deleteTableFields/schemas.js +13 -0
  71. package/dist/plugins/tables/deleteTableRecords/index.d.ts +18 -0
  72. package/dist/plugins/tables/deleteTableRecords/index.d.ts.map +1 -0
  73. package/dist/plugins/tables/deleteTableRecords/index.js +44 -0
  74. package/dist/plugins/tables/deleteTableRecords/schemas.d.ts +16 -0
  75. package/dist/plugins/tables/deleteTableRecords/schemas.d.ts.map +1 -0
  76. package/dist/plugins/tables/deleteTableRecords/schemas.js +14 -0
  77. package/dist/plugins/tables/getTable/index.d.ts +20 -0
  78. package/dist/plugins/tables/getTable/index.d.ts.map +1 -0
  79. package/dist/plugins/tables/getTable/index.js +48 -0
  80. package/dist/plugins/tables/getTable/schemas.d.ts +34 -0
  81. package/dist/plugins/tables/getTable/schemas.d.ts.map +1 -0
  82. package/dist/plugins/tables/getTable/schemas.js +15 -0
  83. package/dist/plugins/tables/getTableRecord/index.d.ts +18 -0
  84. package/dist/plugins/tables/getTableRecord/index.d.ts.map +1 -0
  85. package/dist/plugins/tables/getTableRecord/index.js +60 -0
  86. package/dist/plugins/tables/getTableRecord/schemas.d.ts +51 -0
  87. package/dist/plugins/tables/getTableRecord/schemas.d.ts.map +1 -0
  88. package/dist/plugins/tables/getTableRecord/schemas.js +44 -0
  89. package/dist/plugins/tables/listTableFields/index.d.ts +18 -0
  90. package/dist/plugins/tables/listTableFields/index.d.ts.map +1 -0
  91. package/dist/plugins/tables/listTableFields/index.js +58 -0
  92. package/dist/plugins/tables/listTableFields/schemas.d.ts +180 -0
  93. package/dist/plugins/tables/listTableFields/schemas.d.ts.map +1 -0
  94. package/dist/plugins/tables/listTableFields/schemas.js +77 -0
  95. package/dist/plugins/tables/listTableRecords/index.d.ts +24 -0
  96. package/dist/plugins/tables/listTableRecords/index.d.ts.map +1 -0
  97. package/dist/plugins/tables/listTableRecords/index.js +97 -0
  98. package/dist/plugins/tables/listTableRecords/schemas.d.ts +120 -0
  99. package/dist/plugins/tables/listTableRecords/schemas.d.ts.map +1 -0
  100. package/dist/plugins/tables/listTableRecords/schemas.js +74 -0
  101. package/dist/plugins/tables/listTables/index.d.ts +24 -0
  102. package/dist/plugins/tables/listTables/index.d.ts.map +1 -0
  103. package/dist/plugins/tables/listTables/index.js +85 -0
  104. package/dist/plugins/tables/listTables/schemas.d.ts +78 -0
  105. package/dist/plugins/tables/listTables/schemas.d.ts.map +1 -0
  106. package/dist/plugins/tables/listTables/schemas.js +63 -0
  107. package/dist/plugins/tables/updateTableRecords/index.d.ts +18 -0
  108. package/dist/plugins/tables/updateTableRecords/index.d.ts.map +1 -0
  109. package/dist/plugins/tables/updateTableRecords/index.js +68 -0
  110. package/dist/plugins/tables/updateTableRecords/schemas.d.ts +59 -0
  111. package/dist/plugins/tables/updateTableRecords/schemas.d.ts.map +1 -0
  112. package/dist/plugins/tables/updateTableRecords/schemas.js +35 -0
  113. package/dist/plugins/tables/utils.d.ts +63 -0
  114. package/dist/plugins/tables/utils.d.ts.map +1 -0
  115. package/dist/plugins/tables/utils.js +262 -0
  116. package/dist/resolvers/index.d.ts +8 -0
  117. package/dist/resolvers/index.d.ts.map +1 -1
  118. package/dist/resolvers/index.js +8 -0
  119. package/dist/resolvers/tableFieldIds.d.ts +6 -0
  120. package/dist/resolvers/tableFieldIds.d.ts.map +1 -0
  121. package/dist/resolvers/tableFieldIds.js +19 -0
  122. package/dist/resolvers/tableFields.d.ts +3 -0
  123. package/dist/resolvers/tableFields.d.ts.map +1 -0
  124. package/dist/resolvers/tableFields.js +31 -0
  125. package/dist/resolvers/tableFilters.d.ts +5 -0
  126. package/dist/resolvers/tableFilters.d.ts.map +1 -0
  127. package/dist/resolvers/tableFilters.js +74 -0
  128. package/dist/resolvers/tableId.d.ts +4 -0
  129. package/dist/resolvers/tableId.d.ts.map +1 -0
  130. package/dist/resolvers/tableId.js +19 -0
  131. package/dist/resolvers/tableName.d.ts +3 -0
  132. package/dist/resolvers/tableName.d.ts.map +1 -0
  133. package/dist/resolvers/tableName.js +5 -0
  134. package/dist/resolvers/tableRecordId.d.ts +9 -0
  135. package/dist/resolvers/tableRecordId.d.ts.map +1 -0
  136. package/dist/resolvers/tableRecordId.js +48 -0
  137. package/dist/resolvers/tableRecords.d.ts +8 -0
  138. package/dist/resolvers/tableRecords.d.ts.map +1 -0
  139. package/dist/resolvers/tableRecords.js +77 -0
  140. package/dist/resolvers/tableSort.d.ts +5 -0
  141. package/dist/resolvers/tableSort.d.ts.map +1 -0
  142. package/dist/resolvers/tableSort.js +43 -0
  143. package/dist/sdk.d.ts +73 -1
  144. package/dist/sdk.d.ts.map +1 -1
  145. package/dist/sdk.js +25 -0
  146. package/dist/types/sdk.d.ts +16 -1
  147. package/dist/types/sdk.d.ts.map +1 -1
  148. package/dist/utils/function-utils.d.ts +2 -2
  149. package/dist/utils/function-utils.d.ts.map +1 -1
  150. package/dist/utils/function-utils.js +2 -3
  151. package/dist/utils/pagination-utils.d.ts +24 -0
  152. package/dist/utils/pagination-utils.d.ts.map +1 -1
  153. package/dist/utils/pagination-utils.js +78 -0
  154. package/dist/utils/schema-utils.d.ts +33 -5
  155. package/dist/utils/schema-utils.d.ts.map +1 -1
  156. package/package.json +7 -2
package/dist/index.d.mts CHANGED
@@ -852,7 +852,8 @@ interface ApiClient {
852
852
  get: <T = unknown>(path: string, options?: RequestOptions) => Promise<T>;
853
853
  post: <T = unknown>(path: string, data?: unknown, options?: RequestOptions) => Promise<T>;
854
854
  put: <T = unknown>(path: string, data?: unknown, options?: RequestOptions) => Promise<T>;
855
- delete: <T = unknown>(path: string, options?: RequestOptions) => Promise<T>;
855
+ patch: <T = unknown>(path: string, data?: unknown, options?: RequestOptions) => Promise<T>;
856
+ delete: <T = unknown>(path: string, data?: unknown, options?: RequestOptions) => Promise<T>;
856
857
  poll: <T = unknown>(path: string, options?: PollOptions) => Promise<T>;
857
858
  fetch: (path: string, init?: RequestInit & {
858
859
  searchParams?: Record<string, string>;
@@ -1696,6 +1697,8 @@ interface RunActionPluginProvides {
1696
1697
  };
1697
1698
  };
1698
1699
  }
1700
+ declare const CONTEXT_CACHE_TTL_MS = 60000;
1701
+ declare const CONTEXT_CACHE_MAX_SIZE = 500;
1699
1702
  declare const runActionPlugin: Plugin<GetSdkType<GetActionPluginProvides & GetAppPluginProvides>, // requires getAction and getApp in SDK
1700
1703
  // requires getAction and getApp in SDK
1701
1704
  {
@@ -2061,6 +2064,443 @@ declare const requestPlugin: Plugin<GetSdkType<FetchPluginProvides>, // requires
2061
2064
  EventEmissionContext, // requires eventEmission context for telemetry
2062
2065
  RequestPluginProvides>;
2063
2066
 
2067
+ declare const TableItemSchema: z.ZodObject<{
2068
+ id: z.ZodString;
2069
+ name: z.ZodString;
2070
+ description: z.ZodOptional<z.ZodString>;
2071
+ created_at: z.ZodString;
2072
+ edited_at: z.ZodString;
2073
+ kind: z.ZodEnum<{
2074
+ table: "table";
2075
+ virtual_table: "virtual_table";
2076
+ }>;
2077
+ owner_account_id: z.ZodString;
2078
+ profile_id: z.ZodString;
2079
+ parent_table_id: z.ZodOptional<z.ZodString>;
2080
+ }, z.core.$strip>;
2081
+ type TableItem = z.infer<typeof TableItemSchema>;
2082
+ declare const ListTablesOptionsSchema: z.ZodObject<{
2083
+ tableIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
2084
+ kind: z.ZodOptional<z.ZodEnum<{
2085
+ table: "table";
2086
+ virtual_table: "virtual_table";
2087
+ both: "both";
2088
+ }>>;
2089
+ search: z.ZodOptional<z.ZodString>;
2090
+ owner: z.ZodOptional<z.ZodString>;
2091
+ pageSize: z.ZodOptional<z.ZodNumber>;
2092
+ maxItems: z.ZodOptional<z.ZodNumber>;
2093
+ cursor: z.ZodOptional<z.ZodString>;
2094
+ }, z.core.$strip>;
2095
+ type ListTablesOptions = z.infer<typeof ListTablesOptionsSchema>;
2096
+
2097
+ interface ListTablesPluginProvides {
2098
+ listTables: (options?: ListTablesOptions) => Promise<{
2099
+ data: TableItem[];
2100
+ nextCursor?: string;
2101
+ }> & AsyncIterable<{
2102
+ data: TableItem[];
2103
+ nextCursor?: string;
2104
+ }> & {
2105
+ items(): AsyncIterable<TableItem>;
2106
+ };
2107
+ context: {
2108
+ meta: {
2109
+ listTables: {
2110
+ inputSchema: typeof ListTablesOptionsSchema;
2111
+ };
2112
+ };
2113
+ };
2114
+ }
2115
+ declare const listTablesPlugin: Plugin<{}, GetContextType<ApiPluginProvides> & EventEmissionContext, ListTablesPluginProvides>;
2116
+
2117
+ declare const GetTableOptionsSchema: z.ZodObject<{
2118
+ tableId: z.ZodString;
2119
+ }, z.core.$strip>;
2120
+ type GetTableOptions = z.infer<typeof GetTableOptionsSchema>;
2121
+
2122
+ interface GetTablePluginProvides {
2123
+ getTable: (options: GetTableOptions) => Promise<{
2124
+ data: TableItem;
2125
+ }>;
2126
+ context: {
2127
+ meta: {
2128
+ getTable: {
2129
+ inputSchema: typeof GetTableOptionsSchema;
2130
+ };
2131
+ };
2132
+ };
2133
+ }
2134
+ declare const getTablePlugin: Plugin<{}, {
2135
+ api: ApiClient;
2136
+ } & EventEmissionContext, GetTablePluginProvides>;
2137
+
2138
+ declare const DeleteTableOptionsSchema: z.ZodObject<{
2139
+ tableId: z.ZodString;
2140
+ }, z.core.$strip>;
2141
+ type DeleteTableOptions = z.infer<typeof DeleteTableOptionsSchema> & FunctionOptions;
2142
+ interface DeleteTableResult {
2143
+ success: boolean;
2144
+ }
2145
+
2146
+ interface DeleteTablePluginProvides {
2147
+ deleteTable: (options: DeleteTableOptions) => Promise<DeleteTableResult>;
2148
+ context: {
2149
+ meta: {
2150
+ deleteTable: {
2151
+ inputSchema: typeof DeleteTableOptionsSchema;
2152
+ };
2153
+ };
2154
+ };
2155
+ }
2156
+ declare const deleteTablePlugin: Plugin<{}, {
2157
+ api: ApiClient;
2158
+ } & EventEmissionContext, DeleteTablePluginProvides>;
2159
+
2160
+ declare const CreateTableOptionsSchema: z.ZodObject<{
2161
+ name: z.ZodString;
2162
+ description: z.ZodOptional<z.ZodString>;
2163
+ }, z.core.$strip>;
2164
+ type CreateTableOptions = z.infer<typeof CreateTableOptionsSchema> & FunctionOptions;
2165
+ interface CreateTableResult {
2166
+ data: TableItem;
2167
+ }
2168
+
2169
+ interface CreateTablePluginProvides {
2170
+ createTable: (options: CreateTableOptions) => Promise<CreateTableResult>;
2171
+ context: {
2172
+ meta: {
2173
+ createTable: {
2174
+ inputSchema: typeof CreateTableOptionsSchema;
2175
+ };
2176
+ };
2177
+ };
2178
+ }
2179
+ declare const createTablePlugin: Plugin<{}, {
2180
+ api: ApiClient;
2181
+ } & EventEmissionContext, CreateTablePluginProvides>;
2182
+
2183
+ declare const FieldItemSchema: z.ZodObject<{
2184
+ id: z.ZodString;
2185
+ type: z.ZodEnum<{
2186
+ string: "string";
2187
+ number: "number";
2188
+ boolean: "boolean";
2189
+ link: "link";
2190
+ email: "email";
2191
+ uuid: "uuid";
2192
+ text: "text";
2193
+ datetime: "datetime";
2194
+ decimal: "decimal";
2195
+ json: "json";
2196
+ multiple_string: "multiple_string";
2197
+ labeled_string: "labeled_string";
2198
+ multiple_labeled_string: "multiple_labeled_string";
2199
+ multiple_text: "multiple_text";
2200
+ multiple_boolean: "multiple_boolean";
2201
+ multiple_number: "multiple_number";
2202
+ multiple_decimal: "multiple_decimal";
2203
+ multiple_datetime: "multiple_datetime";
2204
+ multiple_uuid: "multiple_uuid";
2205
+ multiple_json: "multiple_json";
2206
+ formula: "formula";
2207
+ button_trigger_zap: "button_trigger_zap";
2208
+ button_continue_zap: "button_continue_zap";
2209
+ multiple_email: "multiple_email";
2210
+ multiple_link: "multiple_link";
2211
+ currency: "currency";
2212
+ phone_number: "phone_number";
2213
+ ai_formula: "ai_formula";
2214
+ linked_record: "linked_record";
2215
+ multiple_linked_record: "multiple_linked_record";
2216
+ }>;
2217
+ name: z.ZodString;
2218
+ created_at: z.ZodOptional<z.ZodString>;
2219
+ edited_at: z.ZodOptional<z.ZodString>;
2220
+ options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2221
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2222
+ }, z.core.$strip>;
2223
+ type FieldItem = z.infer<typeof FieldItemSchema>;
2224
+ declare const ListTableFieldsOptionsSchema: z.ZodObject<{
2225
+ tableId: z.ZodString;
2226
+ fieldKeys: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
2227
+ }, z.core.$strip>;
2228
+ type ListTableFieldsOptions = z.infer<typeof ListTableFieldsOptionsSchema> & FunctionOptions;
2229
+ interface ListTableFieldsResult {
2230
+ data: FieldItem[];
2231
+ }
2232
+
2233
+ interface ListTableFieldsPluginProvides {
2234
+ listTableFields: (options: ListTableFieldsOptions) => Promise<ListTableFieldsResult>;
2235
+ context: {
2236
+ meta: {
2237
+ listTableFields: {
2238
+ inputSchema: typeof ListTableFieldsOptionsSchema;
2239
+ };
2240
+ };
2241
+ };
2242
+ }
2243
+ declare const listTableFieldsPlugin: Plugin<{}, {
2244
+ api: ApiClient;
2245
+ } & EventEmissionContext, ListTableFieldsPluginProvides>;
2246
+
2247
+ declare const CreateTableFieldsOptionsSchema: z.ZodObject<{
2248
+ tableId: z.ZodString;
2249
+ fields: z.ZodArray<z.ZodObject<{
2250
+ type: z.ZodEnum<{
2251
+ string: "string";
2252
+ number: "number";
2253
+ boolean: "boolean";
2254
+ link: "link";
2255
+ email: "email";
2256
+ uuid: "uuid";
2257
+ text: "text";
2258
+ datetime: "datetime";
2259
+ decimal: "decimal";
2260
+ json: "json";
2261
+ multiple_string: "multiple_string";
2262
+ labeled_string: "labeled_string";
2263
+ multiple_labeled_string: "multiple_labeled_string";
2264
+ multiple_text: "multiple_text";
2265
+ multiple_boolean: "multiple_boolean";
2266
+ multiple_number: "multiple_number";
2267
+ multiple_decimal: "multiple_decimal";
2268
+ multiple_datetime: "multiple_datetime";
2269
+ multiple_uuid: "multiple_uuid";
2270
+ multiple_json: "multiple_json";
2271
+ formula: "formula";
2272
+ button_trigger_zap: "button_trigger_zap";
2273
+ button_continue_zap: "button_continue_zap";
2274
+ multiple_email: "multiple_email";
2275
+ multiple_link: "multiple_link";
2276
+ currency: "currency";
2277
+ phone_number: "phone_number";
2278
+ ai_formula: "ai_formula";
2279
+ linked_record: "linked_record";
2280
+ multiple_linked_record: "multiple_linked_record";
2281
+ }>;
2282
+ name: z.ZodString;
2283
+ options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2284
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2285
+ }, z.core.$strip>>;
2286
+ }, z.core.$strip>;
2287
+ type CreateTableFieldsOptions = z.infer<typeof CreateTableFieldsOptionsSchema> & FunctionOptions;
2288
+ interface CreateTableFieldsResult {
2289
+ data: FieldItem[];
2290
+ }
2291
+
2292
+ interface CreateTableFieldsPluginProvides {
2293
+ createTableFields: (options: CreateTableFieldsOptions) => Promise<CreateTableFieldsResult>;
2294
+ context: {
2295
+ meta: {
2296
+ createTableFields: {
2297
+ inputSchema: typeof CreateTableFieldsOptionsSchema;
2298
+ };
2299
+ };
2300
+ };
2301
+ }
2302
+ declare const createTableFieldsPlugin: Plugin<{}, {
2303
+ api: ApiClient;
2304
+ } & EventEmissionContext, CreateTableFieldsPluginProvides>;
2305
+
2306
+ declare const DeleteTableFieldsOptionsSchema: z.ZodObject<{
2307
+ tableId: z.ZodString;
2308
+ fieldKeys: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
2309
+ }, z.core.$strip>;
2310
+ type DeleteTableFieldsOptions = z.infer<typeof DeleteTableFieldsOptionsSchema> & FunctionOptions;
2311
+ interface DeleteTableFieldsResult {
2312
+ success: boolean;
2313
+ }
2314
+
2315
+ interface DeleteTableFieldsPluginProvides {
2316
+ deleteTableFields: (options: DeleteTableFieldsOptions) => Promise<DeleteTableFieldsResult>;
2317
+ context: {
2318
+ meta: {
2319
+ deleteTableFields: {
2320
+ inputSchema: typeof DeleteTableFieldsOptionsSchema;
2321
+ };
2322
+ };
2323
+ };
2324
+ }
2325
+ declare const deleteTableFieldsPlugin: Plugin<{}, {
2326
+ api: ApiClient;
2327
+ } & EventEmissionContext, DeleteTableFieldsPluginProvides>;
2328
+
2329
+ declare const RecordItemSchema: z.ZodObject<{
2330
+ id: z.ZodString;
2331
+ data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2332
+ created_at: z.ZodString;
2333
+ edited_at: z.ZodString;
2334
+ }, z.core.$strip>;
2335
+ type RecordItem = z.infer<typeof RecordItemSchema>;
2336
+ declare const GetTableRecordOptionsSchema: z.ZodObject<{
2337
+ tableId: z.ZodString;
2338
+ recordId: z.ZodString;
2339
+ keyMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
2340
+ names: "names";
2341
+ ids: "ids";
2342
+ }>>>;
2343
+ }, z.core.$strip>;
2344
+ type GetTableRecordOptions = z.infer<typeof GetTableRecordOptionsSchema> & FunctionOptions;
2345
+ interface GetTableRecordResult {
2346
+ data: RecordItem;
2347
+ }
2348
+
2349
+ interface GetTableRecordPluginProvides {
2350
+ getTableRecord: (options: GetTableRecordOptions) => Promise<GetTableRecordResult>;
2351
+ context: {
2352
+ meta: {
2353
+ getTableRecord: {
2354
+ inputSchema: typeof GetTableRecordOptionsSchema;
2355
+ };
2356
+ };
2357
+ };
2358
+ }
2359
+ declare const getTableRecordPlugin: Plugin<{}, {
2360
+ api: ApiClient;
2361
+ } & EventEmissionContext, GetTableRecordPluginProvides>;
2362
+
2363
+ declare const ListTableRecordsOptionsSchema: z.ZodObject<{
2364
+ tableId: z.ZodString;
2365
+ filters: z.ZodOptional<z.ZodArray<z.ZodObject<{
2366
+ fieldKey: z.ZodString;
2367
+ operator: z.ZodEnum<{
2368
+ in: "in";
2369
+ search: "search";
2370
+ contains: "contains";
2371
+ exact: "exact";
2372
+ different: "different";
2373
+ icontains: "icontains";
2374
+ gte: "gte";
2375
+ gt: "gt";
2376
+ lt: "lt";
2377
+ lte: "lte";
2378
+ range: "range";
2379
+ isnull: "isnull";
2380
+ startswith: "startswith";
2381
+ is_within: "is_within";
2382
+ }>;
2383
+ value: z.ZodOptional<z.ZodUnknown>;
2384
+ }, z.core.$strip>>>;
2385
+ sort: z.ZodOptional<z.ZodObject<{
2386
+ fieldKey: z.ZodString;
2387
+ direction: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
2388
+ asc: "asc";
2389
+ desc: "desc";
2390
+ }>>>;
2391
+ }, z.core.$strip>>;
2392
+ pageSize: z.ZodOptional<z.ZodNumber>;
2393
+ maxItems: z.ZodOptional<z.ZodNumber>;
2394
+ cursor: z.ZodOptional<z.ZodString>;
2395
+ keyMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
2396
+ names: "names";
2397
+ ids: "ids";
2398
+ }>>>;
2399
+ }, z.core.$strip>;
2400
+ type ListTableRecordsOptions = z.infer<typeof ListTableRecordsOptionsSchema>;
2401
+
2402
+ interface ListTableRecordsPluginProvides {
2403
+ listTableRecords: (options: ListTableRecordsOptions) => Promise<{
2404
+ data: RecordItem[];
2405
+ nextCursor?: string;
2406
+ }> & AsyncIterable<{
2407
+ data: RecordItem[];
2408
+ nextCursor?: string;
2409
+ }> & {
2410
+ items(): AsyncIterable<RecordItem>;
2411
+ };
2412
+ context: {
2413
+ meta: {
2414
+ listTableRecords: {
2415
+ inputSchema: typeof ListTableRecordsOptionsSchema;
2416
+ };
2417
+ };
2418
+ };
2419
+ }
2420
+ declare const listTableRecordsPlugin: Plugin<{}, GetContextType<ApiPluginProvides> & EventEmissionContext, ListTableRecordsPluginProvides>;
2421
+
2422
+ declare const CreateTableRecordsOptionsSchema: z.ZodObject<{
2423
+ tableId: z.ZodString;
2424
+ records: z.ZodArray<z.ZodObject<{
2425
+ data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2426
+ }, z.core.$strip>>;
2427
+ keyMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
2428
+ names: "names";
2429
+ ids: "ids";
2430
+ }>>>;
2431
+ }, z.core.$strip>;
2432
+ type CreateTableRecordsOptions = z.infer<typeof CreateTableRecordsOptionsSchema> & FunctionOptions;
2433
+ interface CreateTableRecordsResult {
2434
+ data: RecordItem[];
2435
+ }
2436
+
2437
+ interface CreateTableRecordsPluginProvides {
2438
+ createTableRecords: (options: CreateTableRecordsOptions) => Promise<CreateTableRecordsResult>;
2439
+ context: {
2440
+ meta: {
2441
+ createTableRecords: {
2442
+ inputSchema: typeof CreateTableRecordsOptionsSchema;
2443
+ };
2444
+ };
2445
+ };
2446
+ }
2447
+ declare const createTableRecordsPlugin: Plugin<{}, {
2448
+ api: ApiClient;
2449
+ } & EventEmissionContext, CreateTableRecordsPluginProvides>;
2450
+
2451
+ declare const DeleteTableRecordsOptionsSchema: z.ZodObject<{
2452
+ tableId: z.ZodString;
2453
+ recordIds: z.ZodArray<z.ZodString>;
2454
+ }, z.core.$strip>;
2455
+ type DeleteTableRecordsOptions = z.infer<typeof DeleteTableRecordsOptionsSchema> & FunctionOptions;
2456
+ interface DeleteTableRecordsResult {
2457
+ success: boolean;
2458
+ }
2459
+
2460
+ interface DeleteTableRecordsPluginProvides {
2461
+ deleteTableRecords: (options: DeleteTableRecordsOptions) => Promise<DeleteTableRecordsResult>;
2462
+ context: {
2463
+ meta: {
2464
+ deleteTableRecords: {
2465
+ inputSchema: typeof DeleteTableRecordsOptionsSchema;
2466
+ };
2467
+ };
2468
+ };
2469
+ }
2470
+ declare const deleteTableRecordsPlugin: Plugin<{}, {
2471
+ api: ApiClient;
2472
+ } & EventEmissionContext, DeleteTableRecordsPluginProvides>;
2473
+
2474
+ declare const UpdateTableRecordsOptionsSchema: z.ZodObject<{
2475
+ tableId: z.ZodString;
2476
+ records: z.ZodArray<z.ZodObject<{
2477
+ id: z.ZodString;
2478
+ data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2479
+ }, z.core.$strip>>;
2480
+ keyMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
2481
+ names: "names";
2482
+ ids: "ids";
2483
+ }>>>;
2484
+ }, z.core.$strip>;
2485
+ type UpdateTableRecordsOptions = z.infer<typeof UpdateTableRecordsOptionsSchema> & FunctionOptions;
2486
+ interface UpdateTableRecordsResult {
2487
+ data: RecordItem[];
2488
+ }
2489
+
2490
+ interface UpdateTableRecordsPluginProvides {
2491
+ updateTableRecords: (options: UpdateTableRecordsOptions) => Promise<UpdateTableRecordsResult>;
2492
+ context: {
2493
+ meta: {
2494
+ updateTableRecords: {
2495
+ inputSchema: typeof UpdateTableRecordsOptionsSchema;
2496
+ };
2497
+ };
2498
+ };
2499
+ }
2500
+ declare const updateTableRecordsPlugin: Plugin<{}, {
2501
+ api: ApiClient;
2502
+ } & EventEmissionContext, UpdateTableRecordsPluginProvides>;
2503
+
2064
2504
  /**
2065
2505
  * SDK-related types and interfaces
2066
2506
  */
@@ -2156,6 +2596,8 @@ interface FunctionRegistryEntry {
2156
2596
  deprecatedParameters?: string[];
2157
2597
  /** Short flag aliases for CLI options (e.g., { request: "X", header: "H" }) */
2158
2598
  aliases?: Record<string, string>;
2599
+ /** Output formatter with optional page-level enrichment (mirrors resolvers for output) */
2600
+ formatter?: OutputFormatter;
2159
2601
  /** Defaults to true. Set to false to suppress --json (e.g. login/logout/init). */
2160
2602
  supportsJsonOutput: boolean;
2161
2603
  }
@@ -2163,62 +2605,10 @@ interface FunctionDeprecation {
2163
2605
  /** User-facing deprecation message for why/how to migrate */
2164
2606
  message: string;
2165
2607
  }
2166
- interface ZapierSdk extends GetSdkType<RegistryPluginProvides & FetchPluginProvides & AppsPluginProvides & ListAppsPluginProvides & ManifestPluginProvides & GetAppPluginProvides & ListActionsPluginProvides & GetActionPluginProvides & RunActionPluginProvides & ListConnectionsPluginProvides & GetConnectionPluginProvides & FindFirstConnectionPluginProvides & FindUniqueConnectionPluginProvides & ListAuthenticationsPluginProvides & GetAuthenticationPluginProvides & FindFirstAuthenticationPluginProvides & FindUniqueAuthenticationPluginProvides & ListClientCredentialsPluginProvides & CreateClientCredentialsPluginProvides & DeleteClientCredentialsPluginProvides & ListInputFieldsPluginProvides & GetInputFieldsSchemaPluginProvides & ListInputFieldChoicesPluginProvides & RequestPluginProvides & GetProfilePluginProvides & EventEmissionProvides & ApiPluginProvides> {
2608
+ interface ZapierSdk extends GetSdkType<RegistryPluginProvides & FetchPluginProvides & AppsPluginProvides & ListAppsPluginProvides & ManifestPluginProvides & GetAppPluginProvides & ListActionsPluginProvides & GetActionPluginProvides & RunActionPluginProvides & ListConnectionsPluginProvides & GetConnectionPluginProvides & FindFirstConnectionPluginProvides & FindUniqueConnectionPluginProvides & ListAuthenticationsPluginProvides & GetAuthenticationPluginProvides & FindFirstAuthenticationPluginProvides & FindUniqueAuthenticationPluginProvides & ListClientCredentialsPluginProvides & CreateClientCredentialsPluginProvides & DeleteClientCredentialsPluginProvides & ListInputFieldsPluginProvides & GetInputFieldsSchemaPluginProvides & ListInputFieldChoicesPluginProvides & RequestPluginProvides & GetProfilePluginProvides & EventEmissionProvides & ApiPluginProvides & ListTablesPluginProvides & GetTablePluginProvides & DeleteTablePluginProvides & CreateTablePluginProvides & ListTableFieldsPluginProvides & CreateTableFieldsPluginProvides & DeleteTableFieldsPluginProvides & GetTableRecordPluginProvides & ListTableRecordsPluginProvides & CreateTableRecordsPluginProvides & DeleteTableRecordsPluginProvides & UpdateTableRecordsPluginProvides> {
2167
2609
  apps: ActionProxy & ZapierSdkApps;
2168
2610
  }
2169
2611
 
2170
- declare const InputFieldItemSchema: z.ZodObject<{
2171
- key: z.ZodString;
2172
- type: z.ZodLiteral<"input_field">;
2173
- default_value: z.ZodString;
2174
- depends_on: z.ZodArray<z.ZodString>;
2175
- description: z.ZodString;
2176
- invalidates_input_fields: z.ZodBoolean;
2177
- is_required: z.ZodBoolean;
2178
- placeholder: z.ZodString;
2179
- title: z.ZodString;
2180
- value_type: z.ZodString;
2181
- format: z.ZodOptional<z.ZodString>;
2182
- items: z.ZodOptional<z.ZodObject<{
2183
- type: z.ZodString;
2184
- }, z.core.$strip>>;
2185
- }, z.core.$strip>;
2186
- declare const InfoFieldItemSchema: z.ZodObject<{
2187
- key: z.ZodString;
2188
- type: z.ZodLiteral<"info_field">;
2189
- description: z.ZodString;
2190
- title: z.ZodOptional<z.ZodString>;
2191
- }, z.core.$strip>;
2192
- type FieldsetItemType = z.infer<typeof InputFieldItemSchema> | z.infer<typeof InfoFieldItemSchema> | FieldsetItem;
2193
- interface FieldsetItem {
2194
- type: "fieldset";
2195
- key: string;
2196
- title: string;
2197
- fields: FieldsetItemType[];
2198
- }
2199
- declare const RootFieldItemSchema: z.ZodUnion<readonly [z.ZodObject<{
2200
- key: z.ZodString;
2201
- type: z.ZodLiteral<"input_field">;
2202
- default_value: z.ZodString;
2203
- depends_on: z.ZodArray<z.ZodString>;
2204
- description: z.ZodString;
2205
- invalidates_input_fields: z.ZodBoolean;
2206
- is_required: z.ZodBoolean;
2207
- placeholder: z.ZodString;
2208
- title: z.ZodString;
2209
- value_type: z.ZodString;
2210
- format: z.ZodOptional<z.ZodString>;
2211
- items: z.ZodOptional<z.ZodObject<{
2212
- type: z.ZodString;
2213
- }, z.core.$strip>>;
2214
- }, z.core.$strip>, z.ZodObject<{
2215
- key: z.ZodString;
2216
- type: z.ZodLiteral<"info_field">;
2217
- description: z.ZodString;
2218
- title: z.ZodOptional<z.ZodString>;
2219
- }, z.core.$strip>, z.ZodType<FieldsetItem, unknown, z.core.$ZodTypeInternals<FieldsetItem, unknown>>]>;
2220
- type InputFieldItem$1 = z.infer<typeof InputFieldItemSchema>;
2221
-
2222
2612
  interface FormattedItem {
2223
2613
  title: string;
2224
2614
  id?: string;
@@ -2227,6 +2617,7 @@ interface FormattedItem {
2227
2617
  description?: string;
2228
2618
  data?: unknown;
2229
2619
  details: Array<{
2620
+ label?: string;
2230
2621
  text: string;
2231
2622
  style: "normal" | "dim" | "accent" | "warning" | "success";
2232
2623
  }>;
@@ -2234,6 +2625,10 @@ interface FormattedItem {
2234
2625
  interface FormatMetadata<TItem = unknown> {
2235
2626
  format: (item: TItem) => FormattedItem;
2236
2627
  }
2628
+ interface OutputFormatter<TItem = unknown, TParams = Record<string, unknown>, TContext = unknown> {
2629
+ fetch?: (sdk: ZapierSdk, params: TParams, item: TItem, context: TContext | undefined) => Promise<TContext>;
2630
+ format: (item: TItem, context?: TContext) => FormattedItem;
2631
+ }
2237
2632
  interface PromptConfig {
2238
2633
  type: "list" | "checkbox" | "confirm";
2239
2634
  name: string;
@@ -2244,6 +2639,7 @@ interface PromptConfig {
2244
2639
  }>;
2245
2640
  default?: unknown;
2246
2641
  filter?: (value: unknown) => unknown;
2642
+ validate?: (value: unknown) => boolean | string;
2247
2643
  }
2248
2644
  interface Resolver {
2249
2645
  type: string;
@@ -2256,7 +2652,10 @@ interface StaticResolver extends Resolver {
2256
2652
  }
2257
2653
  interface DynamicResolver<TItem = unknown, TParams = Record<string, unknown>> extends Resolver {
2258
2654
  type: "dynamic";
2259
- fetch: (sdk: ZapierSdk, resolvedParams: TParams) => Promise<TItem[]>;
2655
+ fetch: (sdk: ZapierSdk, resolvedParams: TParams) => PromiseLike<TItem[] | {
2656
+ data: TItem[];
2657
+ nextCursor?: string;
2658
+ }>;
2260
2659
  prompt: (items: TItem[], params: TParams) => PromptConfig;
2261
2660
  /**
2262
2661
  * Optional hook called before fetch/prompt. If it returns a non-null object,
@@ -2269,10 +2668,31 @@ interface DynamicResolver<TItem = unknown, TParams = Record<string, unknown>> ex
2269
2668
  resolvedValue: unknown;
2270
2669
  } | null>;
2271
2670
  }
2272
- interface FieldsResolver<TParams = Record<string, unknown>> extends Resolver {
2671
+ interface ResolverFieldItem {
2672
+ type: string;
2673
+ key: string;
2674
+ title?: string;
2675
+ is_required?: boolean;
2676
+ value_type?: string;
2677
+ choices?: Array<{
2678
+ label: string;
2679
+ value: string;
2680
+ }>;
2681
+ fields?: ResolverFieldItem[];
2682
+ resolver?: ResolverMetadata<any, any>;
2683
+ }
2684
+ interface FieldsResolver<TParams = Record<string, unknown>, TResult = Record<string, unknown>> extends Resolver {
2273
2685
  type: "fields";
2274
- fetch: (sdk: ZapierSdk, resolvedParams: TParams) => Promise<InputFieldItem$1[]>;
2686
+ fetch: (sdk: ZapierSdk, resolvedParams: TParams) => Promise<ResolverFieldItem[]>;
2687
+ transform?: (value: Record<string, unknown>) => TResult;
2275
2688
  }
2689
+ interface ArrayResolver<TParams = Record<string, unknown>> extends Resolver {
2690
+ type: "array";
2691
+ fetch: (sdk: ZapierSdk, resolvedParams: TParams) => Promise<ResolverMetadata<unknown, TParams>>;
2692
+ minItems?: number;
2693
+ maxItems?: number;
2694
+ }
2695
+ type ResolverMetadata<TItem = unknown, TParams = Record<string, unknown>> = StaticResolver | DynamicResolver<TItem, TParams> | FieldsResolver<TParams> | ArrayResolver<TParams>;
2276
2696
  interface PositionalMetadata {
2277
2697
  positionalMeta: {
2278
2698
  positional: true;
@@ -2384,6 +2804,58 @@ declare const ActionItemSchema: z.ZodObject<{
2384
2804
  type: z.ZodLiteral<"action">;
2385
2805
  }, z.core.$strip>;
2386
2806
 
2807
+ declare const InputFieldItemSchema: z.ZodObject<{
2808
+ key: z.ZodString;
2809
+ type: z.ZodLiteral<"input_field">;
2810
+ default_value: z.ZodString;
2811
+ depends_on: z.ZodArray<z.ZodString>;
2812
+ description: z.ZodString;
2813
+ invalidates_input_fields: z.ZodBoolean;
2814
+ is_required: z.ZodBoolean;
2815
+ placeholder: z.ZodString;
2816
+ title: z.ZodString;
2817
+ value_type: z.ZodString;
2818
+ format: z.ZodOptional<z.ZodString>;
2819
+ items: z.ZodOptional<z.ZodObject<{
2820
+ type: z.ZodString;
2821
+ }, z.core.$strip>>;
2822
+ }, z.core.$strip>;
2823
+ declare const InfoFieldItemSchema: z.ZodObject<{
2824
+ key: z.ZodString;
2825
+ type: z.ZodLiteral<"info_field">;
2826
+ description: z.ZodString;
2827
+ title: z.ZodOptional<z.ZodString>;
2828
+ }, z.core.$strip>;
2829
+ type FieldsetItemType = z.infer<typeof InputFieldItemSchema> | z.infer<typeof InfoFieldItemSchema> | FieldsetItem;
2830
+ interface FieldsetItem {
2831
+ type: "fieldset";
2832
+ key: string;
2833
+ title: string;
2834
+ fields: FieldsetItemType[];
2835
+ }
2836
+ declare const RootFieldItemSchema: z.ZodUnion<readonly [z.ZodObject<{
2837
+ key: z.ZodString;
2838
+ type: z.ZodLiteral<"input_field">;
2839
+ default_value: z.ZodString;
2840
+ depends_on: z.ZodArray<z.ZodString>;
2841
+ description: z.ZodString;
2842
+ invalidates_input_fields: z.ZodBoolean;
2843
+ is_required: z.ZodBoolean;
2844
+ placeholder: z.ZodString;
2845
+ title: z.ZodString;
2846
+ value_type: z.ZodString;
2847
+ format: z.ZodOptional<z.ZodString>;
2848
+ items: z.ZodOptional<z.ZodObject<{
2849
+ type: z.ZodString;
2850
+ }, z.core.$strip>>;
2851
+ }, z.core.$strip>, z.ZodObject<{
2852
+ key: z.ZodString;
2853
+ type: z.ZodLiteral<"info_field">;
2854
+ description: z.ZodString;
2855
+ title: z.ZodOptional<z.ZodString>;
2856
+ }, z.core.$strip>, z.ZodType<FieldsetItem, unknown, z.core.$ZodTypeInternals<FieldsetItem, unknown>>]>;
2857
+ type InputFieldItem$1 = z.infer<typeof InputFieldItemSchema>;
2858
+
2387
2859
  declare const UserProfileItemSchema: z.ZodObject<{
2388
2860
  id: z.ZodString;
2389
2861
  first_name: z.ZodString;
@@ -2619,6 +3091,38 @@ type ClientCredentialsItem = z.infer<typeof ClientCredentialsItemSchema>;
2619
3091
 
2620
3092
  declare const clientIdResolver: DynamicResolver<ClientCredentialsItem, {}>;
2621
3093
 
3094
+ declare const tableIdResolver: DynamicResolver<TableItem, {}>;
3095
+
3096
+ declare const tableRecordIdResolver: DynamicResolver<RecordItem, {
3097
+ tableId: string;
3098
+ }>;
3099
+ declare const tableRecordIdsResolver: DynamicResolver<RecordItem, {
3100
+ tableId: string;
3101
+ }>;
3102
+
3103
+ declare const tableFieldIdsResolver: DynamicResolver<FieldItem, {
3104
+ tableId: string;
3105
+ }>;
3106
+
3107
+ declare const tableNameResolver: StaticResolver;
3108
+
3109
+ declare const tableFieldsResolver: ArrayResolver;
3110
+
3111
+ declare const tableRecordsResolver: ArrayResolver<{
3112
+ tableId: string;
3113
+ }>;
3114
+ declare const tableUpdateRecordsResolver: ArrayResolver<{
3115
+ tableId: string;
3116
+ }>;
3117
+
3118
+ declare const tableFiltersResolver: ArrayResolver<{
3119
+ tableId: string;
3120
+ }>;
3121
+
3122
+ declare const tableSortResolver: FieldsResolver<{
3123
+ tableId: string;
3124
+ }>;
3125
+
2622
3126
  /**
2623
3127
  * Options for resolving auth tokens.
2624
3128
  */
@@ -2789,6 +3293,10 @@ declare const ZAPIER_BASE_URL: string;
2789
3293
  * Maximum number of items that can be requested per page across all paginated functions
2790
3294
  */
2791
3295
  declare const MAX_PAGE_LIMIT = 10000;
3296
+ /**
3297
+ * Default number of items per page for paginated functions
3298
+ */
3299
+ declare const DEFAULT_PAGE_SIZE = 100;
2792
3300
  /**
2793
3301
  * Default timeout for action execution (in milliseconds)
2794
3302
  */
@@ -2811,7 +3319,7 @@ declare function createSdk<TCurrentSdk = {}, TCurrentContext extends {
2811
3319
  getContext(): TCurrentContext;
2812
3320
  }, TRequiresContext, TProvides>, addPluginOptions?: Record<string, unknown>): Sdk<TCurrentSdk & ExtractSdkProperties<TProvides>, TCurrentContext & NonNullable<ExtractContextProperties<TProvides>>>;
2813
3321
  };
2814
- 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<ListConnectionsPluginProvides> & ExtractSdkProperties<GetConnectionPluginProvides> & ExtractSdkProperties<FindFirstConnectionPluginProvides> & ExtractSdkProperties<FindUniqueConnectionPluginProvides> & ExtractSdkProperties<ListAuthenticationsPluginProvides> & ExtractSdkProperties<GetAuthenticationPluginProvides> & ExtractSdkProperties<FindFirstAuthenticationPluginProvides> & ExtractSdkProperties<FindUniqueAuthenticationPluginProvides> & ExtractSdkProperties<ListClientCredentialsPluginProvides> & ExtractSdkProperties<CreateClientCredentialsPluginProvides> & ExtractSdkProperties<DeleteClientCredentialsPluginProvides> & ExtractSdkProperties<FetchPluginProvides> & ExtractSdkProperties<RequestPluginProvides> & ExtractSdkProperties<AppsPluginProvides> & ExtractSdkProperties<GetProfilePluginProvides>, {
3322
+ 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<ListConnectionsPluginProvides> & ExtractSdkProperties<GetConnectionPluginProvides> & ExtractSdkProperties<FindFirstConnectionPluginProvides> & ExtractSdkProperties<FindUniqueConnectionPluginProvides> & ExtractSdkProperties<ListAuthenticationsPluginProvides> & ExtractSdkProperties<GetAuthenticationPluginProvides> & ExtractSdkProperties<FindFirstAuthenticationPluginProvides> & ExtractSdkProperties<FindUniqueAuthenticationPluginProvides> & ExtractSdkProperties<ListClientCredentialsPluginProvides> & ExtractSdkProperties<CreateClientCredentialsPluginProvides> & ExtractSdkProperties<DeleteClientCredentialsPluginProvides> & ExtractSdkProperties<FetchPluginProvides> & ExtractSdkProperties<RequestPluginProvides> & ExtractSdkProperties<ListTablesPluginProvides> & ExtractSdkProperties<GetTablePluginProvides> & ExtractSdkProperties<DeleteTablePluginProvides> & ExtractSdkProperties<CreateTablePluginProvides> & ExtractSdkProperties<ListTableFieldsPluginProvides> & ExtractSdkProperties<CreateTableFieldsPluginProvides> & ExtractSdkProperties<DeleteTableFieldsPluginProvides> & ExtractSdkProperties<GetTableRecordPluginProvides> & ExtractSdkProperties<ListTableRecordsPluginProvides> & ExtractSdkProperties<CreateTableRecordsPluginProvides> & ExtractSdkProperties<DeleteTableRecordsPluginProvides> & ExtractSdkProperties<UpdateTableRecordsPluginProvides> & ExtractSdkProperties<AppsPluginProvides> & ExtractSdkProperties<GetProfilePluginProvides>, {
2815
3323
  meta: Record<string, PluginMeta>;
2816
3324
  } & EventEmissionContext & {
2817
3325
  api: ApiClient;
@@ -2975,6 +3483,78 @@ declare function createZapierSdkWithoutRegistry(options?: ZapierSdkOptions): Sdk
2975
3483
  inputSchema: typeof RelayRequestSchema;
2976
3484
  };
2977
3485
  };
3486
+ } & {
3487
+ meta: {
3488
+ listTables: {
3489
+ inputSchema: typeof ListTablesOptionsSchema;
3490
+ };
3491
+ };
3492
+ } & {
3493
+ meta: {
3494
+ getTable: {
3495
+ inputSchema: typeof GetTableOptionsSchema;
3496
+ };
3497
+ };
3498
+ } & {
3499
+ meta: {
3500
+ deleteTable: {
3501
+ inputSchema: typeof DeleteTableOptionsSchema;
3502
+ };
3503
+ };
3504
+ } & {
3505
+ meta: {
3506
+ createTable: {
3507
+ inputSchema: typeof CreateTableOptionsSchema;
3508
+ };
3509
+ };
3510
+ } & {
3511
+ meta: {
3512
+ listTableFields: {
3513
+ inputSchema: typeof ListTableFieldsOptionsSchema;
3514
+ };
3515
+ };
3516
+ } & {
3517
+ meta: {
3518
+ createTableFields: {
3519
+ inputSchema: typeof CreateTableFieldsOptionsSchema;
3520
+ };
3521
+ };
3522
+ } & {
3523
+ meta: {
3524
+ deleteTableFields: {
3525
+ inputSchema: typeof DeleteTableFieldsOptionsSchema;
3526
+ };
3527
+ };
3528
+ } & {
3529
+ meta: {
3530
+ getTableRecord: {
3531
+ inputSchema: typeof GetTableRecordOptionsSchema;
3532
+ };
3533
+ };
3534
+ } & {
3535
+ meta: {
3536
+ listTableRecords: {
3537
+ inputSchema: typeof ListTableRecordsOptionsSchema;
3538
+ };
3539
+ };
3540
+ } & {
3541
+ meta: {
3542
+ createTableRecords: {
3543
+ inputSchema: typeof CreateTableRecordsOptionsSchema;
3544
+ };
3545
+ };
3546
+ } & {
3547
+ meta: {
3548
+ deleteTableRecords: {
3549
+ inputSchema: typeof DeleteTableRecordsOptionsSchema;
3550
+ };
3551
+ };
3552
+ } & {
3553
+ meta: {
3554
+ updateTableRecords: {
3555
+ inputSchema: typeof UpdateTableRecordsOptionsSchema;
3556
+ };
3557
+ };
2978
3558
  } & {
2979
3559
  meta: {
2980
3560
  getProfile: {
@@ -2984,4 +3564,4 @@ declare function createZapierSdkWithoutRegistry(options?: ZapierSdkOptions): Sdk
2984
3564
  }>;
2985
3565
  declare function createZapierSdk(options?: ZapierSdkOptions): ZapierSdk;
2986
3566
 
2987
- export { type Action, type ActionEntry, type ActionExecutionOptions, type ActionExecutionResult, type ActionField, type ActionFieldChoice, type ActionItem$1 as ActionItem, type ActionKeyProperty, ActionKeyPropertySchema, type ActionTimeoutMsProperty, ActionTimeoutMsPropertySchema, 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 AuthenticationIdProperty, AuthenticationIdPropertySchema, type BaseEvent, BaseSdkOptionsSchema, type BatchOptions, type Choice, type ClientCredentialsObject, ClientCredentialsObjectSchema, type Connection, type ConnectionIdProperty, ConnectionIdPropertySchema, type ConnectionItem, type ConnectionsResponse, type CreateClientCredentialsPluginProvides, type Credentials, type CredentialsFunction, CredentialsFunctionSchema, type CredentialsObject, CredentialsObjectSchema, CredentialsSchema, DEFAULT_ACTION_TIMEOUT_MS, DEFAULT_CONFIG_PATH, type DebugProperty, DebugPropertySchema, type DeleteClientCredentialsPluginProvides, type DynamicResolver, type EnhancedErrorEventData, type ErrorOptions, type EventCallback, type EventContext, type EventEmissionContext, type FetchPluginProvides, type Field, type FieldsResolver, type FieldsetItem, type FindFirstAuthenticationPluginProvides, type FindFirstConnectionPluginProvides, type FindUniqueAuthenticationPluginProvides, type FindUniqueConnectionPluginProvides, type FormatMetadata, type FormattedItem, type FunctionDeprecation, type FunctionOptions, type FunctionRegistryEntry, type GetActionPluginProvides, type GetAppPluginProvides, type GetAuthenticationPluginProvides, type GetConnectionPluginProvides, type GetContextType, type GetProfilePluginProvides, type GetSdkType, type InfoFieldItem, type InputFieldItem, type InputsProperty, InputsPropertySchema, type LimitProperty, LimitPropertySchema, type ListActionsPluginProvides, type ListAppsPluginProvides, type ListAuthenticationsPluginProvides, type ListClientCredentialsPluginProvides, type ListConnectionsPluginProvides, type ListInputFieldsPluginProvides, type LoadingEvent, MAX_PAGE_LIMIT, type Manifest, type ManifestEntry, type ManifestPluginOptions, type ManifestPluginProvides, type MethodCalledEvent, type MethodCalledEventData, type Need, type NeedsRequest, type NeedsResponse, type OffsetProperty, OffsetPropertySchema, type OutputProperty, OutputPropertySchema, type PaginatedSdkFunction, type ParamsProperty, ParamsPropertySchema, type PkceCredentialsObject, PkceCredentialsObjectSchema, type Plugin, type PluginDependencies, type PluginOptions, type PluginProvides, type PositionalMetadata, type RateLimitInfo, RelayFetchSchema, RelayRequestSchema, type RequestPluginProvides, type ResolveAuthTokenOptions, type ResolveCredentialsOptions, type ResolvedCredentials, ResolvedCredentialsSchema, type Resolver, type RootFieldItem, type RunActionPluginProvides, type Sdk, type SdkEvent, type SdkPage, type StaticResolver, type UpdateManifestEntryOptions, type UpdateManifestEntryResult, type UserProfile, type UserProfileItem, ZAPIER_BASE_URL, ZAPIER_MAX_NETWORK_RETRIES, ZAPIER_MAX_NETWORK_RETRY_DELAY_MS, ZapierActionError, ZapierApiError, ZapierAppNotFoundError, ZapierAuthenticationError, ZapierBundleError, ZapierConfigurationError, ZapierError, type ZapierFetchInitOptions, ZapierNotFoundError, ZapierRateLimitError, ZapierRelayError, ZapierResourceNotFoundError, type ZapierSdk, type ZapierSdkApps, type ZapierSdkOptions, ZapierTimeoutError, ZapierUnknownError, ZapierValidationError, actionKeyResolver, actionTypeResolver, apiPlugin, appKeyResolver, appsPlugin, connectionIdGenericResolver as authenticationIdGenericResolver, connectionIdResolver as authenticationIdResolver, batch, buildApplicationLifecycleEvent, buildErrorEvent, buildErrorEventWithContext, buildMethodCalledEvent, clearTokenCache, clientCredentialsNameResolver, clientIdResolver, connectionIdGenericResolver, connectionIdResolver, createBaseEvent, createClientCredentialsPlugin, createFunction, createSdk, createZapierSdk, createZapierSdkWithoutRegistry, deleteClientCredentialsPlugin, fetchPlugin, findFirstConnectionPlugin, findManifestEntry, findUniqueConnectionPlugin, formatErrorMessage, generateEventId, getActionPlugin, getAppPlugin, getBaseUrlFromCredentials, getCiPlatform, getClientIdFromCredentials, getConnectionPlugin, getCpuTime, getCurrentTimestamp, getMemoryUsage, getOsInfo, getPlatformVersions, getPreferredManifestEntryKey, getProfilePlugin, getReleaseId, getTokenFromCliLogin, injectCliLogin, inputFieldKeyResolver, inputsAllOptionalResolver, inputsResolver, invalidateCachedToken, invalidateCredentialsToken, isCi, isCliLoginAvailable, isClientCredentials, isCredentialsFunction, isCredentialsObject, isPkceCredentials, isPositional, listActionsPlugin, listAppsPlugin, listClientCredentialsPlugin, listConnectionsPlugin, listInputFieldsPlugin, logDeprecation, manifestPlugin, readManifestFromFile, registryPlugin, requestPlugin, resetDeprecationWarnings, resolveAuthToken, resolveCredentials, resolveCredentialsFromEnv, runActionPlugin, runWithTelemetryContext, toSnakeCase, toTitleCase };
3567
+ export { type Action, type ActionEntry, type ActionExecutionOptions, type ActionExecutionResult, type ActionField, type ActionFieldChoice, type ActionItem$1 as ActionItem, type ActionKeyProperty, ActionKeyPropertySchema, type ActionTimeoutMsProperty, ActionTimeoutMsPropertySchema, 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 ArrayResolver, type AuthEvent, type AuthenticationIdProperty, AuthenticationIdPropertySchema, type BaseEvent, BaseSdkOptionsSchema, type BatchOptions, CONTEXT_CACHE_MAX_SIZE, CONTEXT_CACHE_TTL_MS, type Choice, type ClientCredentialsObject, ClientCredentialsObjectSchema, type Connection, type ConnectionIdProperty, ConnectionIdPropertySchema, type ConnectionItem, type ConnectionsResponse, type CreateClientCredentialsPluginProvides, type CreateTableFieldsPluginProvides, type CreateTablePluginProvides, type CreateTableRecordsPluginProvides, type Credentials, type CredentialsFunction, CredentialsFunctionSchema, type CredentialsObject, CredentialsObjectSchema, CredentialsSchema, DEFAULT_ACTION_TIMEOUT_MS, DEFAULT_CONFIG_PATH, DEFAULT_PAGE_SIZE, type DebugProperty, DebugPropertySchema, type DeleteClientCredentialsPluginProvides, type DeleteTableFieldsPluginProvides, type DeleteTablePluginProvides, type DeleteTableRecordsPluginProvides, type DynamicResolver, type EnhancedErrorEventData, type ErrorOptions, type EventCallback, type EventContext, type EventEmissionContext, type FetchPluginProvides, type Field, type FieldsResolver, type FieldsetItem, type FindFirstAuthenticationPluginProvides, type FindFirstConnectionPluginProvides, type FindUniqueAuthenticationPluginProvides, type FindUniqueConnectionPluginProvides, type FormatMetadata, type FormattedItem, type FunctionDeprecation, type FunctionOptions, type FunctionRegistryEntry, type GetActionPluginProvides, type GetAppPluginProvides, type GetAuthenticationPluginProvides, type GetConnectionPluginProvides, type GetContextType, type GetProfilePluginProvides, type GetSdkType, type GetTablePluginProvides, type GetTableRecordPluginProvides, type InfoFieldItem, type InputFieldItem, type InputsProperty, InputsPropertySchema, type LimitProperty, LimitPropertySchema, type ListActionsPluginProvides, type ListAppsPluginProvides, type ListAuthenticationsPluginProvides, type ListClientCredentialsPluginProvides, type ListConnectionsPluginProvides, type ListInputFieldsPluginProvides, type ListTableFieldsPluginProvides, type ListTableRecordsPluginProvides, type ListTablesPluginProvides, type LoadingEvent, MAX_PAGE_LIMIT, type Manifest, type ManifestEntry, type ManifestPluginOptions, type ManifestPluginProvides, type MethodCalledEvent, type MethodCalledEventData, type Need, type NeedsRequest, type NeedsResponse, type OffsetProperty, OffsetPropertySchema, type OutputFormatter, type OutputProperty, OutputPropertySchema, type PaginatedSdkFunction, type ParamsProperty, ParamsPropertySchema, type PkceCredentialsObject, PkceCredentialsObjectSchema, type Plugin, type PluginDependencies, type PluginOptions, type PluginProvides, type PositionalMetadata, type RateLimitInfo, RelayFetchSchema, RelayRequestSchema, type RequestPluginProvides, type ResolveAuthTokenOptions, type ResolveCredentialsOptions, type ResolvedCredentials, ResolvedCredentialsSchema, type Resolver, type ResolverMetadata, type RootFieldItem, type RunActionPluginProvides, type Sdk, type SdkEvent, type SdkPage, type StaticResolver, type UpdateManifestEntryOptions, type UpdateManifestEntryResult, type UpdateTableRecordsPluginProvides, type UserProfile, type UserProfileItem, ZAPIER_BASE_URL, ZAPIER_MAX_NETWORK_RETRIES, ZAPIER_MAX_NETWORK_RETRY_DELAY_MS, ZapierActionError, ZapierApiError, ZapierAppNotFoundError, ZapierAuthenticationError, ZapierBundleError, ZapierConfigurationError, ZapierError, type ZapierFetchInitOptions, ZapierNotFoundError, ZapierRateLimitError, ZapierRelayError, ZapierResourceNotFoundError, type ZapierSdk, type ZapierSdkApps, type ZapierSdkOptions, ZapierTimeoutError, ZapierUnknownError, ZapierValidationError, actionKeyResolver, actionTypeResolver, apiPlugin, appKeyResolver, appsPlugin, connectionIdGenericResolver as authenticationIdGenericResolver, connectionIdResolver as authenticationIdResolver, batch, buildApplicationLifecycleEvent, buildErrorEvent, buildErrorEventWithContext, buildMethodCalledEvent, clearTokenCache, clientCredentialsNameResolver, clientIdResolver, connectionIdGenericResolver, connectionIdResolver, createBaseEvent, createClientCredentialsPlugin, createFunction, createSdk, createTableFieldsPlugin, createTablePlugin, createTableRecordsPlugin, createZapierSdk, createZapierSdkWithoutRegistry, deleteClientCredentialsPlugin, deleteTableFieldsPlugin, deleteTablePlugin, deleteTableRecordsPlugin, fetchPlugin, findFirstConnectionPlugin, findManifestEntry, findUniqueConnectionPlugin, formatErrorMessage, generateEventId, getActionPlugin, getAppPlugin, getBaseUrlFromCredentials, getCiPlatform, getClientIdFromCredentials, getConnectionPlugin, getCpuTime, getCurrentTimestamp, getMemoryUsage, getOsInfo, getPlatformVersions, getPreferredManifestEntryKey, getProfilePlugin, getReleaseId, getTablePlugin, getTableRecordPlugin, getTokenFromCliLogin, injectCliLogin, inputFieldKeyResolver, inputsAllOptionalResolver, inputsResolver, invalidateCachedToken, invalidateCredentialsToken, isCi, isCliLoginAvailable, isClientCredentials, isCredentialsFunction, isCredentialsObject, isPkceCredentials, isPositional, listActionsPlugin, listAppsPlugin, listClientCredentialsPlugin, listConnectionsPlugin, listInputFieldsPlugin, listTableFieldsPlugin, listTableRecordsPlugin, listTablesPlugin, logDeprecation, manifestPlugin, readManifestFromFile, registryPlugin, requestPlugin, resetDeprecationWarnings, resolveAuthToken, resolveCredentials, resolveCredentialsFromEnv, runActionPlugin, runWithTelemetryContext, tableFieldIdsResolver, tableFieldsResolver, tableFiltersResolver, tableIdResolver, tableNameResolver, tableRecordIdResolver, tableRecordIdsResolver, tableRecordsResolver, tableSortResolver, tableUpdateRecordsResolver, toSnakeCase, toTitleCase, updateTableRecordsPlugin };