@zapier/zapier-sdk 0.18.4 → 0.19.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 (372) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/README.md +43 -31
  3. package/dist/index.cjs +365 -64
  4. package/dist/index.d.mts +220 -33
  5. package/dist/index.d.ts +2541 -40
  6. package/dist/index.mjs +345 -63
  7. package/package.json +14 -13
  8. package/dist/api/auth.d.ts +0 -19
  9. package/dist/api/auth.d.ts.map +0 -1
  10. package/dist/api/auth.js +0 -70
  11. package/dist/api/auth.test.d.ts +0 -2
  12. package/dist/api/auth.test.d.ts.map +0 -1
  13. package/dist/api/auth.test.js +0 -220
  14. package/dist/api/client.d.ts +0 -9
  15. package/dist/api/client.d.ts.map +0 -1
  16. package/dist/api/client.js +0 -356
  17. package/dist/api/client.test.d.ts +0 -2
  18. package/dist/api/client.test.d.ts.map +0 -1
  19. package/dist/api/client.test.js +0 -96
  20. package/dist/api/debug.d.ts +0 -14
  21. package/dist/api/debug.d.ts.map +0 -1
  22. package/dist/api/debug.js +0 -131
  23. package/dist/api/debug.test.d.ts +0 -2
  24. package/dist/api/debug.test.d.ts.map +0 -1
  25. package/dist/api/debug.test.js +0 -59
  26. package/dist/api/index.d.ts +0 -30
  27. package/dist/api/index.d.ts.map +0 -1
  28. package/dist/api/index.js +0 -43
  29. package/dist/api/polling.d.ts +0 -46
  30. package/dist/api/polling.d.ts.map +0 -1
  31. package/dist/api/polling.js +0 -139
  32. package/dist/api/polling.test.d.ts +0 -2
  33. package/dist/api/polling.test.d.ts.map +0 -1
  34. package/dist/api/polling.test.js +0 -318
  35. package/dist/api/schemas.d.ts +0 -422
  36. package/dist/api/schemas.d.ts.map +0 -1
  37. package/dist/api/schemas.js +0 -322
  38. package/dist/api/types.d.ts +0 -83
  39. package/dist/api/types.d.ts.map +0 -1
  40. package/dist/api/types.js +0 -1
  41. package/dist/auth.d.ts +0 -52
  42. package/dist/auth.d.ts.map +0 -1
  43. package/dist/auth.js +0 -72
  44. package/dist/auth.test.d.ts +0 -2
  45. package/dist/auth.test.d.ts.map +0 -1
  46. package/dist/auth.test.js +0 -102
  47. package/dist/constants.d.ts +0 -14
  48. package/dist/constants.d.ts.map +0 -1
  49. package/dist/constants.js +0 -13
  50. package/dist/index.d.ts.map +0 -1
  51. package/dist/index.js +0 -42
  52. package/dist/plugins/api/index.d.ts +0 -12
  53. package/dist/plugins/api/index.d.ts.map +0 -1
  54. package/dist/plugins/api/index.js +0 -24
  55. package/dist/plugins/apps/index.d.ts +0 -15
  56. package/dist/plugins/apps/index.d.ts.map +0 -1
  57. package/dist/plugins/apps/index.js +0 -112
  58. package/dist/plugins/apps/schemas.d.ts +0 -42
  59. package/dist/plugins/apps/schemas.d.ts.map +0 -1
  60. package/dist/plugins/apps/schemas.js +0 -14
  61. package/dist/plugins/eventEmission/builders.d.ts +0 -14
  62. package/dist/plugins/eventEmission/builders.d.ts.map +0 -1
  63. package/dist/plugins/eventEmission/builders.js +0 -109
  64. package/dist/plugins/eventEmission/index.d.ts +0 -38
  65. package/dist/plugins/eventEmission/index.d.ts.map +0 -1
  66. package/dist/plugins/eventEmission/index.js +0 -336
  67. package/dist/plugins/eventEmission/index.test.d.ts +0 -5
  68. package/dist/plugins/eventEmission/index.test.d.ts.map +0 -1
  69. package/dist/plugins/eventEmission/index.test.js +0 -581
  70. package/dist/plugins/eventEmission/transport.d.ts +0 -27
  71. package/dist/plugins/eventEmission/transport.d.ts.map +0 -1
  72. package/dist/plugins/eventEmission/transport.js +0 -104
  73. package/dist/plugins/eventEmission/transport.test.d.ts +0 -5
  74. package/dist/plugins/eventEmission/transport.test.d.ts.map +0 -1
  75. package/dist/plugins/eventEmission/transport.test.js +0 -164
  76. package/dist/plugins/eventEmission/types.d.ts +0 -63
  77. package/dist/plugins/eventEmission/types.d.ts.map +0 -1
  78. package/dist/plugins/eventEmission/types.js +0 -1
  79. package/dist/plugins/eventEmission/utils.d.ts +0 -45
  80. package/dist/plugins/eventEmission/utils.d.ts.map +0 -1
  81. package/dist/plugins/eventEmission/utils.js +0 -114
  82. package/dist/plugins/fetch/index.d.ts +0 -36
  83. package/dist/plugins/fetch/index.d.ts.map +0 -1
  84. package/dist/plugins/fetch/index.js +0 -62
  85. package/dist/plugins/fetch/schemas.d.ts +0 -19
  86. package/dist/plugins/fetch/schemas.d.ts.map +0 -1
  87. package/dist/plugins/fetch/schemas.js +0 -31
  88. package/dist/plugins/findFirstAuthentication/index.d.ts +0 -21
  89. package/dist/plugins/findFirstAuthentication/index.d.ts.map +0 -1
  90. package/dist/plugins/findFirstAuthentication/index.js +0 -36
  91. package/dist/plugins/findFirstAuthentication/index.test.d.ts +0 -2
  92. package/dist/plugins/findFirstAuthentication/index.test.d.ts.map +0 -1
  93. package/dist/plugins/findFirstAuthentication/index.test.js +0 -177
  94. package/dist/plugins/findFirstAuthentication/schemas.d.ts +0 -20
  95. package/dist/plugins/findFirstAuthentication/schemas.d.ts.map +0 -1
  96. package/dist/plugins/findFirstAuthentication/schemas.js +0 -18
  97. package/dist/plugins/findUniqueAuthentication/index.d.ts +0 -21
  98. package/dist/plugins/findUniqueAuthentication/index.d.ts.map +0 -1
  99. package/dist/plugins/findUniqueAuthentication/index.js +0 -39
  100. package/dist/plugins/findUniqueAuthentication/index.test.d.ts +0 -2
  101. package/dist/plugins/findUniqueAuthentication/index.test.d.ts.map +0 -1
  102. package/dist/plugins/findUniqueAuthentication/index.test.js +0 -159
  103. package/dist/plugins/findUniqueAuthentication/schemas.d.ts +0 -20
  104. package/dist/plugins/findUniqueAuthentication/schemas.d.ts.map +0 -1
  105. package/dist/plugins/findUniqueAuthentication/schemas.js +0 -18
  106. package/dist/plugins/getAction/index.d.ts +0 -25
  107. package/dist/plugins/getAction/index.d.ts.map +0 -1
  108. package/dist/plugins/getAction/index.js +0 -42
  109. package/dist/plugins/getAction/index.test.d.ts +0 -2
  110. package/dist/plugins/getAction/index.test.d.ts.map +0 -1
  111. package/dist/plugins/getAction/index.test.js +0 -211
  112. package/dist/plugins/getAction/schemas.d.ts +0 -30
  113. package/dist/plugins/getAction/schemas.d.ts.map +0 -1
  114. package/dist/plugins/getAction/schemas.js +0 -12
  115. package/dist/plugins/getApp/index.d.ts +0 -21
  116. package/dist/plugins/getApp/index.d.ts.map +0 -1
  117. package/dist/plugins/getApp/index.js +0 -44
  118. package/dist/plugins/getApp/index.test.d.ts +0 -2
  119. package/dist/plugins/getApp/index.test.d.ts.map +0 -1
  120. package/dist/plugins/getApp/index.test.js +0 -157
  121. package/dist/plugins/getApp/schemas.d.ts +0 -16
  122. package/dist/plugins/getApp/schemas.d.ts.map +0 -1
  123. package/dist/plugins/getApp/schemas.js +0 -8
  124. package/dist/plugins/getAuthentication/index.d.ts +0 -21
  125. package/dist/plugins/getAuthentication/index.d.ts.map +0 -1
  126. package/dist/plugins/getAuthentication/index.js +0 -29
  127. package/dist/plugins/getAuthentication/index.test.d.ts +0 -2
  128. package/dist/plugins/getAuthentication/index.test.d.ts.map +0 -1
  129. package/dist/plugins/getAuthentication/index.test.js +0 -106
  130. package/dist/plugins/getAuthentication/schemas.d.ts +0 -7
  131. package/dist/plugins/getAuthentication/schemas.d.ts.map +0 -1
  132. package/dist/plugins/getAuthentication/schemas.js +0 -1
  133. package/dist/plugins/getInputFieldsSchema/index.d.ts +0 -23
  134. package/dist/plugins/getInputFieldsSchema/index.d.ts.map +0 -1
  135. package/dist/plugins/getInputFieldsSchema/index.js +0 -53
  136. package/dist/plugins/getInputFieldsSchema/index.test.d.ts +0 -2
  137. package/dist/plugins/getInputFieldsSchema/index.test.d.ts.map +0 -1
  138. package/dist/plugins/getInputFieldsSchema/index.test.js +0 -291
  139. package/dist/plugins/getInputFieldsSchema/schemas.d.ts +0 -28
  140. package/dist/plugins/getInputFieldsSchema/schemas.d.ts.map +0 -1
  141. package/dist/plugins/getInputFieldsSchema/schemas.js +0 -13
  142. package/dist/plugins/getProfile/index.d.ts +0 -25
  143. package/dist/plugins/getProfile/index.d.ts.map +0 -1
  144. package/dist/plugins/getProfile/index.js +0 -39
  145. package/dist/plugins/getProfile/schemas.d.ts +0 -13
  146. package/dist/plugins/getProfile/schemas.d.ts.map +0 -1
  147. package/dist/plugins/getProfile/schemas.js +0 -6
  148. package/dist/plugins/listActions/index.d.ts +0 -30
  149. package/dist/plugins/listActions/index.d.ts.map +0 -1
  150. package/dist/plugins/listActions/index.js +0 -75
  151. package/dist/plugins/listActions/index.test.d.ts +0 -2
  152. package/dist/plugins/listActions/index.test.d.ts.map +0 -1
  153. package/dist/plugins/listActions/index.test.js +0 -453
  154. package/dist/plugins/listActions/schemas.d.ts +0 -35
  155. package/dist/plugins/listActions/schemas.d.ts.map +0 -1
  156. package/dist/plugins/listActions/schemas.js +0 -22
  157. package/dist/plugins/listApps/index.d.ts +0 -19
  158. package/dist/plugins/listApps/index.d.ts.map +0 -1
  159. package/dist/plugins/listApps/index.js +0 -67
  160. package/dist/plugins/listApps/index.test.d.ts +0 -2
  161. package/dist/plugins/listApps/index.test.d.ts.map +0 -1
  162. package/dist/plugins/listApps/index.test.js +0 -121
  163. package/dist/plugins/listApps/schemas.d.ts +0 -47
  164. package/dist/plugins/listApps/schemas.d.ts.map +0 -1
  165. package/dist/plugins/listApps/schemas.js +0 -49
  166. package/dist/plugins/listAuthentications/index.d.ts +0 -24
  167. package/dist/plugins/listAuthentications/index.d.ts.map +0 -1
  168. package/dist/plugins/listAuthentications/index.js +0 -77
  169. package/dist/plugins/listAuthentications/index.test.d.ts +0 -2
  170. package/dist/plugins/listAuthentications/index.test.d.ts.map +0 -1
  171. package/dist/plugins/listAuthentications/index.test.js +0 -848
  172. package/dist/plugins/listAuthentications/schemas.d.ts +0 -30
  173. package/dist/plugins/listAuthentications/schemas.d.ts.map +0 -1
  174. package/dist/plugins/listAuthentications/schemas.js +0 -32
  175. package/dist/plugins/listInputFieldChoices/index.d.ts +0 -33
  176. package/dist/plugins/listInputFieldChoices/index.d.ts.map +0 -1
  177. package/dist/plugins/listInputFieldChoices/index.js +0 -115
  178. package/dist/plugins/listInputFieldChoices/index.test.d.ts +0 -2
  179. package/dist/plugins/listInputFieldChoices/index.test.d.ts.map +0 -1
  180. package/dist/plugins/listInputFieldChoices/index.test.js +0 -717
  181. package/dist/plugins/listInputFieldChoices/schemas.d.ts +0 -43
  182. package/dist/plugins/listInputFieldChoices/schemas.d.ts.map +0 -1
  183. package/dist/plugins/listInputFieldChoices/schemas.js +0 -65
  184. package/dist/plugins/listInputFields/index.d.ts +0 -34
  185. package/dist/plugins/listInputFields/index.d.ts.map +0 -1
  186. package/dist/plugins/listInputFields/index.js +0 -204
  187. package/dist/plugins/listInputFields/index.test.d.ts +0 -2
  188. package/dist/plugins/listInputFields/index.test.d.ts.map +0 -1
  189. package/dist/plugins/listInputFields/index.test.js +0 -359
  190. package/dist/plugins/listInputFields/schemas.d.ts +0 -35
  191. package/dist/plugins/listInputFields/schemas.d.ts.map +0 -1
  192. package/dist/plugins/listInputFields/schemas.js +0 -23
  193. package/dist/plugins/manifest/index.d.ts +0 -85
  194. package/dist/plugins/manifest/index.d.ts.map +0 -1
  195. package/dist/plugins/manifest/index.js +0 -376
  196. package/dist/plugins/manifest/index.test.d.ts +0 -2
  197. package/dist/plugins/manifest/index.test.d.ts.map +0 -1
  198. package/dist/plugins/manifest/index.test.js +0 -1139
  199. package/dist/plugins/manifest/schemas.d.ts +0 -57
  200. package/dist/plugins/manifest/schemas.d.ts.map +0 -1
  201. package/dist/plugins/manifest/schemas.js +0 -50
  202. package/dist/plugins/registry/index.d.ts +0 -21
  203. package/dist/plugins/registry/index.d.ts.map +0 -1
  204. package/dist/plugins/registry/index.js +0 -117
  205. package/dist/plugins/request/index.d.ts +0 -21
  206. package/dist/plugins/request/index.d.ts.map +0 -1
  207. package/dist/plugins/request/index.js +0 -76
  208. package/dist/plugins/request/index.test.d.ts +0 -2
  209. package/dist/plugins/request/index.test.d.ts.map +0 -1
  210. package/dist/plugins/request/index.test.js +0 -337
  211. package/dist/plugins/request/schemas.d.ts +0 -54
  212. package/dist/plugins/request/schemas.d.ts.map +0 -1
  213. package/dist/plugins/request/schemas.js +0 -41
  214. package/dist/plugins/runAction/index.d.ts +0 -33
  215. package/dist/plugins/runAction/index.d.ts.map +0 -1
  216. package/dist/plugins/runAction/index.js +0 -108
  217. package/dist/plugins/runAction/index.test.d.ts +0 -2
  218. package/dist/plugins/runAction/index.test.d.ts.map +0 -1
  219. package/dist/plugins/runAction/index.test.js +0 -333
  220. package/dist/plugins/runAction/schemas.d.ts +0 -34
  221. package/dist/plugins/runAction/schemas.d.ts.map +0 -1
  222. package/dist/plugins/runAction/schemas.js +0 -23
  223. package/dist/resolvers/actionKey.d.ts +0 -15
  224. package/dist/resolvers/actionKey.d.ts.map +0 -1
  225. package/dist/resolvers/actionKey.js +0 -19
  226. package/dist/resolvers/actionType.d.ts +0 -10
  227. package/dist/resolvers/actionType.d.ts.map +0 -1
  228. package/dist/resolvers/actionType.js +0 -21
  229. package/dist/resolvers/appKey.d.ts +0 -3
  230. package/dist/resolvers/appKey.d.ts.map +0 -1
  231. package/dist/resolvers/appKey.js +0 -5
  232. package/dist/resolvers/authenticationId.d.ts +0 -9
  233. package/dist/resolvers/authenticationId.d.ts.map +0 -1
  234. package/dist/resolvers/authenticationId.js +0 -42
  235. package/dist/resolvers/index.d.ts +0 -8
  236. package/dist/resolvers/index.d.ts.map +0 -1
  237. package/dist/resolvers/index.js +0 -8
  238. package/dist/resolvers/inputFieldKey.d.ts +0 -11
  239. package/dist/resolvers/inputFieldKey.d.ts.map +0 -1
  240. package/dist/resolvers/inputFieldKey.js +0 -47
  241. package/dist/resolvers/inputs.d.ts +0 -17
  242. package/dist/resolvers/inputs.d.ts.map +0 -1
  243. package/dist/resolvers/inputs.js +0 -50
  244. package/dist/schemas/Action.d.ts +0 -24
  245. package/dist/schemas/Action.d.ts.map +0 -1
  246. package/dist/schemas/Action.js +0 -40
  247. package/dist/schemas/App.d.ts +0 -57
  248. package/dist/schemas/App.d.ts.map +0 -1
  249. package/dist/schemas/App.js +0 -26
  250. package/dist/schemas/Auth.d.ts +0 -55
  251. package/dist/schemas/Auth.d.ts.map +0 -1
  252. package/dist/schemas/Auth.js +0 -33
  253. package/dist/schemas/Field.d.ts +0 -61
  254. package/dist/schemas/Field.d.ts.map +0 -1
  255. package/dist/schemas/Field.js +0 -116
  256. package/dist/schemas/Run.d.ts +0 -3
  257. package/dist/schemas/Run.d.ts.map +0 -1
  258. package/dist/schemas/Run.js +0 -31
  259. package/dist/schemas/UserProfile.d.ts +0 -13
  260. package/dist/schemas/UserProfile.d.ts.map +0 -1
  261. package/dist/schemas/UserProfile.js +0 -32
  262. package/dist/sdk.d.ts +0 -146
  263. package/dist/sdk.d.ts.map +0 -1
  264. package/dist/sdk.js +0 -112
  265. package/dist/sdk.test.d.ts +0 -2
  266. package/dist/sdk.test.d.ts.map +0 -1
  267. package/dist/sdk.test.js +0 -258
  268. package/dist/services/implementations.d.ts +0 -63
  269. package/dist/services/implementations.d.ts.map +0 -1
  270. package/dist/services/implementations.js +0 -80
  271. package/dist/types/domain.d.ts +0 -52
  272. package/dist/types/domain.d.ts.map +0 -1
  273. package/dist/types/domain.js +0 -1
  274. package/dist/types/domain.test.d.ts +0 -2
  275. package/dist/types/domain.test.d.ts.map +0 -1
  276. package/dist/types/domain.test.js +0 -39
  277. package/dist/types/errors.d.ts +0 -143
  278. package/dist/types/errors.d.ts.map +0 -1
  279. package/dist/types/errors.js +0 -187
  280. package/dist/types/events.d.ts +0 -38
  281. package/dist/types/events.d.ts.map +0 -1
  282. package/dist/types/events.js +0 -7
  283. package/dist/types/functions.d.ts +0 -27
  284. package/dist/types/functions.d.ts.map +0 -1
  285. package/dist/types/functions.js +0 -1
  286. package/dist/types/plugin.d.ts +0 -75
  287. package/dist/types/plugin.d.ts.map +0 -1
  288. package/dist/types/plugin.js +0 -9
  289. package/dist/types/properties.d.ts +0 -33
  290. package/dist/types/properties.d.ts.map +0 -1
  291. package/dist/types/properties.js +0 -52
  292. package/dist/types/sdk.d.ts +0 -69
  293. package/dist/types/sdk.d.ts.map +0 -1
  294. package/dist/types/sdk.js +0 -4
  295. package/dist/types/telemetry-events.d.ts +0 -105
  296. package/dist/types/telemetry-events.d.ts.map +0 -1
  297. package/dist/types/telemetry-events.js +0 -8
  298. package/dist/utils/array-utils.d.ts +0 -31
  299. package/dist/utils/array-utils.d.ts.map +0 -1
  300. package/dist/utils/array-utils.js +0 -36
  301. package/dist/utils/array-utils.test.d.ts +0 -2
  302. package/dist/utils/array-utils.test.d.ts.map +0 -1
  303. package/dist/utils/array-utils.test.js +0 -107
  304. package/dist/utils/batch-utils.d.ts +0 -72
  305. package/dist/utils/batch-utils.d.ts.map +0 -1
  306. package/dist/utils/batch-utils.js +0 -162
  307. package/dist/utils/batch-utils.test.d.ts +0 -2
  308. package/dist/utils/batch-utils.test.d.ts.map +0 -1
  309. package/dist/utils/batch-utils.test.js +0 -476
  310. package/dist/utils/domain-utils.d.ts +0 -66
  311. package/dist/utils/domain-utils.d.ts.map +0 -1
  312. package/dist/utils/domain-utils.js +0 -164
  313. package/dist/utils/domain-utils.test.d.ts +0 -2
  314. package/dist/utils/domain-utils.test.d.ts.map +0 -1
  315. package/dist/utils/domain-utils.test.js +0 -346
  316. package/dist/utils/file-utils.d.ts +0 -4
  317. package/dist/utils/file-utils.d.ts.map +0 -1
  318. package/dist/utils/file-utils.js +0 -74
  319. package/dist/utils/file-utils.test.d.ts +0 -2
  320. package/dist/utils/file-utils.test.d.ts.map +0 -1
  321. package/dist/utils/file-utils.test.js +0 -51
  322. package/dist/utils/function-utils.d.ts +0 -73
  323. package/dist/utils/function-utils.d.ts.map +0 -1
  324. package/dist/utils/function-utils.js +0 -245
  325. package/dist/utils/function-utils.test.d.ts +0 -2
  326. package/dist/utils/function-utils.test.d.ts.map +0 -1
  327. package/dist/utils/function-utils.test.js +0 -110
  328. package/dist/utils/id-utils.d.ts +0 -13
  329. package/dist/utils/id-utils.d.ts.map +0 -1
  330. package/dist/utils/id-utils.js +0 -22
  331. package/dist/utils/id-utils.test.d.ts +0 -2
  332. package/dist/utils/id-utils.test.d.ts.map +0 -1
  333. package/dist/utils/id-utils.test.js +0 -22
  334. package/dist/utils/pagination-utils.d.ts +0 -37
  335. package/dist/utils/pagination-utils.d.ts.map +0 -1
  336. package/dist/utils/pagination-utils.js +0 -165
  337. package/dist/utils/pagination-utils.test.d.ts +0 -17
  338. package/dist/utils/pagination-utils.test.d.ts.map +0 -1
  339. package/dist/utils/pagination-utils.test.js +0 -461
  340. package/dist/utils/retry-utils.d.ts +0 -45
  341. package/dist/utils/retry-utils.d.ts.map +0 -1
  342. package/dist/utils/retry-utils.js +0 -51
  343. package/dist/utils/retry-utils.test.d.ts +0 -2
  344. package/dist/utils/retry-utils.test.d.ts.map +0 -1
  345. package/dist/utils/retry-utils.test.js +0 -90
  346. package/dist/utils/schema-utils.d.ts +0 -69
  347. package/dist/utils/schema-utils.d.ts.map +0 -1
  348. package/dist/utils/schema-utils.js +0 -72
  349. package/dist/utils/string-utils.d.ts +0 -40
  350. package/dist/utils/string-utils.d.ts.map +0 -1
  351. package/dist/utils/string-utils.js +0 -69
  352. package/dist/utils/string-utils.test.d.ts +0 -2
  353. package/dist/utils/string-utils.test.d.ts.map +0 -1
  354. package/dist/utils/string-utils.test.js +0 -59
  355. package/dist/utils/telemetry-utils.d.ts +0 -44
  356. package/dist/utils/telemetry-utils.d.ts.map +0 -1
  357. package/dist/utils/telemetry-utils.js +0 -55
  358. package/dist/utils/telemetry-utils.test.d.ts +0 -2
  359. package/dist/utils/telemetry-utils.test.d.ts.map +0 -1
  360. package/dist/utils/telemetry-utils.test.js +0 -94
  361. package/dist/utils/url-utils.d.ts +0 -19
  362. package/dist/utils/url-utils.d.ts.map +0 -1
  363. package/dist/utils/url-utils.js +0 -62
  364. package/dist/utils/url-utils.test.d.ts +0 -2
  365. package/dist/utils/url-utils.test.d.ts.map +0 -1
  366. package/dist/utils/url-utils.test.js +0 -103
  367. package/dist/utils/validation.d.ts +0 -4
  368. package/dist/utils/validation.d.ts.map +0 -1
  369. package/dist/utils/validation.js +0 -30
  370. package/dist/utils/validation.test.d.ts +0 -2
  371. package/dist/utils/validation.test.d.ts.map +0 -1
  372. package/dist/utils/validation.test.js +0 -44
package/dist/index.cjs CHANGED
@@ -58,6 +58,14 @@ function isPositional(schema) {
58
58
  // src/constants.ts
59
59
  var ZAPIER_BASE_URL = process.env.ZAPIER_BASE_URL || "https://zapier.com";
60
60
  var MAX_PAGE_LIMIT = 1e4;
61
+ var ZAPIER_CREDENTIALS = process.env.ZAPIER_CREDENTIALS;
62
+ var ZAPIER_CREDENTIALS_CLIENT_ID = process.env.ZAPIER_CREDENTIALS_CLIENT_ID;
63
+ var ZAPIER_CREDENTIALS_CLIENT_SECRET = process.env.ZAPIER_CREDENTIALS_CLIENT_SECRET;
64
+ var ZAPIER_CREDENTIALS_BASE_URL = process.env.ZAPIER_CREDENTIALS_BASE_URL;
65
+ var ZAPIER_CREDENTIALS_SCOPE = process.env.ZAPIER_CREDENTIALS_SCOPE;
66
+ var ZAPIER_TOKEN = process.env.ZAPIER_TOKEN;
67
+ var ZAPIER_AUTH_BASE_URL = process.env.ZAPIER_AUTH_BASE_URL;
68
+ var ZAPIER_AUTH_CLIENT_ID = process.env.ZAPIER_AUTH_CLIENT_ID;
61
69
 
62
70
  // src/types/properties.ts
63
71
  var AppKeyPropertySchema = withPositional(
@@ -2109,6 +2117,9 @@ var listAuthenticationsPlugin = ({ context }) => {
2109
2117
  if (options.owner) {
2110
2118
  searchParams.owner = options.owner;
2111
2119
  }
2120
+ if (options.isExpired !== void 0) {
2121
+ searchParams.isExpired = options.isExpired.toString();
2122
+ }
2112
2123
  if (options.cursor) {
2113
2124
  searchParams.offset = options.cursor;
2114
2125
  }
@@ -2290,14 +2301,14 @@ var getAuthenticationPlugin = ({ context }) => {
2290
2301
  }
2291
2302
  };
2292
2303
  };
2293
- var FindFirstAuthenticationSchema = zod.z.object({
2294
- appKey: AppKeyPropertySchema.optional().describe(
2295
- "App key of authentication to find (e.g., 'SlackCLIAPI' or slug like 'github')"
2296
- ),
2297
- search: zod.z.string().optional().describe("Search term to filter authentications by title"),
2298
- title: zod.z.string().optional().describe("Filter authentications by exact title match"),
2299
- accountId: zod.z.string().optional().describe("Filter by account ID"),
2300
- owner: zod.z.string().optional().describe("Filter by owner")
2304
+
2305
+ // src/plugins/findFirstAuthentication/schemas.ts
2306
+ var FindFirstAuthenticationSchema = ListAuthenticationsQuerySchema.omit({
2307
+ authenticationIds: true,
2308
+ pageSize: true,
2309
+ maxItems: true,
2310
+ cursor: true,
2311
+ _telemetry: true
2301
2312
  }).describe("Find the first authentication matching the criteria");
2302
2313
 
2303
2314
  // src/plugins/findFirstAuthentication/index.ts
@@ -2341,14 +2352,14 @@ var findFirstAuthenticationPlugin = ({ sdk, context }) => {
2341
2352
  }
2342
2353
  };
2343
2354
  };
2344
- var FindUniqueAuthenticationSchema = zod.z.object({
2345
- appKey: AppKeyPropertySchema.optional().describe(
2346
- "App key of authentication to find (e.g., 'SlackCLIAPI' or slug like 'github')"
2347
- ),
2348
- search: zod.z.string().optional().describe("Search term to filter authentications by title"),
2349
- title: zod.z.string().optional().describe("Filter authentications by exact title match"),
2350
- accountId: zod.z.string().optional().describe("Filter by account ID"),
2351
- owner: zod.z.string().optional().describe("Filter by owner")
2355
+
2356
+ // src/plugins/findUniqueAuthentication/schemas.ts
2357
+ var FindUniqueAuthenticationSchema = ListAuthenticationsQuerySchema.omit({
2358
+ authenticationIds: true,
2359
+ pageSize: true,
2360
+ maxItems: true,
2361
+ cursor: true,
2362
+ _telemetry: true
2352
2363
  }).describe("Find a unique authentication matching the criteria");
2353
2364
 
2354
2365
  // src/plugins/findUniqueAuthentication/index.ts
@@ -2751,8 +2762,11 @@ async function readManifestFromFile(filePath) {
2751
2762
  const resolvedPath = await resolve(filePath);
2752
2763
  const content = await readFile(resolvedPath);
2753
2764
  return parseManifestContent(content, resolvedPath);
2754
- } catch {
2755
- console.warn(`\u26A0\uFE0F Failed to read manifest from ${filePath}`);
2765
+ } catch (error) {
2766
+ const isFileNotFound = error && typeof error === "object" && "code" in error && error.code === "ENOENT" || error instanceof Error && error.message.includes("File not found");
2767
+ if (!isFileNotFound) {
2768
+ console.warn(`\u26A0\uFE0F Failed to read manifest from ${filePath}`);
2769
+ }
2756
2770
  return null;
2757
2771
  }
2758
2772
  }
@@ -3465,36 +3479,29 @@ async function pollUntilComplete(options) {
3465
3479
  }
3466
3480
  }
3467
3481
 
3468
- // src/auth.ts
3469
- function getTokenFromEnv() {
3470
- return process.env.ZAPIER_TOKEN;
3482
+ // src/types/credentials.ts
3483
+ function isClientCredentials(credentials) {
3484
+ return typeof credentials === "object" && credentials !== null && "clientId" in credentials && "clientSecret" in credentials;
3471
3485
  }
3472
- async function getTokenFromCliLogin(options = {}) {
3473
- try {
3474
- const { getToken } = await import('@zapier/zapier-sdk-cli-login');
3475
- return await getToken(options);
3476
- } catch {
3477
- return void 0;
3478
- }
3486
+ function isPkceCredentials(credentials) {
3487
+ return typeof credentials === "object" && credentials !== null && "clientId" in credentials && !("clientSecret" in credentials);
3479
3488
  }
3480
- async function getTokenFromEnvOrConfig(options = {}) {
3481
- const envToken = getTokenFromEnv();
3482
- if (envToken) {
3483
- return envToken;
3484
- }
3485
- return getTokenFromCliLogin(options);
3489
+ function isCredentialsObject(credentials) {
3490
+ return typeof credentials === "object" && credentials !== null && "clientId" in credentials;
3486
3491
  }
3487
- async function resolveAuthToken(options = {}) {
3488
- if (options.token) {
3489
- return options.token;
3490
- }
3491
- if (options.getToken) {
3492
- const token = await options.getToken();
3493
- if (token) {
3494
- return token;
3495
- }
3496
- }
3497
- return getTokenFromEnvOrConfig(options);
3492
+ function isCredentialsFunction(credentials) {
3493
+ return typeof credentials === "function";
3494
+ }
3495
+
3496
+ // src/utils/logging.ts
3497
+ var loggedDeprecations = /* @__PURE__ */ new Set();
3498
+ function logDeprecation(message) {
3499
+ if (loggedDeprecations.has(message)) return;
3500
+ loggedDeprecations.add(message);
3501
+ console.warn(`[zapier-sdk] Deprecation: ${message}`);
3502
+ }
3503
+ function resetDeprecationWarnings() {
3504
+ loggedDeprecations.clear();
3498
3505
  }
3499
3506
 
3500
3507
  // src/utils/url-utils.ts
@@ -3543,6 +3550,278 @@ function getTrackingBaseUrl({
3543
3550
  return ZAPIER_BASE_URL;
3544
3551
  }
3545
3552
 
3553
+ // src/credentials.ts
3554
+ function deriveAuthBaseUrl(sdkBaseUrl) {
3555
+ if (!sdkBaseUrl) return void 0;
3556
+ return getZapierBaseUrl(sdkBaseUrl);
3557
+ }
3558
+ function normalizeCredentialsObject(obj, sdkBaseUrl) {
3559
+ const resolvedBaseUrl = obj.baseUrl || deriveAuthBaseUrl(sdkBaseUrl);
3560
+ if (obj.type === "client_credentials" || "clientSecret" in obj && obj.clientSecret) {
3561
+ return {
3562
+ type: "client_credentials",
3563
+ clientId: obj.clientId,
3564
+ clientSecret: obj.clientSecret,
3565
+ baseUrl: resolvedBaseUrl,
3566
+ scope: obj.scope
3567
+ };
3568
+ }
3569
+ return {
3570
+ type: "pkce",
3571
+ clientId: obj.clientId,
3572
+ baseUrl: resolvedBaseUrl,
3573
+ scope: obj.scope
3574
+ };
3575
+ }
3576
+ function resolveCredentialsFromEnv(sdkBaseUrl) {
3577
+ if (ZAPIER_CREDENTIALS) {
3578
+ return ZAPIER_CREDENTIALS;
3579
+ }
3580
+ if (ZAPIER_CREDENTIALS_CLIENT_ID) {
3581
+ const resolvedBaseUrl = ZAPIER_CREDENTIALS_BASE_URL || deriveAuthBaseUrl(sdkBaseUrl);
3582
+ if (ZAPIER_CREDENTIALS_CLIENT_SECRET) {
3583
+ return {
3584
+ type: "client_credentials",
3585
+ clientId: ZAPIER_CREDENTIALS_CLIENT_ID,
3586
+ clientSecret: ZAPIER_CREDENTIALS_CLIENT_SECRET,
3587
+ baseUrl: resolvedBaseUrl,
3588
+ scope: ZAPIER_CREDENTIALS_SCOPE
3589
+ };
3590
+ } else {
3591
+ return {
3592
+ type: "pkce",
3593
+ clientId: ZAPIER_CREDENTIALS_CLIENT_ID,
3594
+ baseUrl: resolvedBaseUrl,
3595
+ scope: ZAPIER_CREDENTIALS_SCOPE
3596
+ };
3597
+ }
3598
+ }
3599
+ if (ZAPIER_TOKEN) {
3600
+ logDeprecation(
3601
+ "ZAPIER_TOKEN is deprecated. Use ZAPIER_CREDENTIALS instead."
3602
+ );
3603
+ return ZAPIER_TOKEN;
3604
+ }
3605
+ if (ZAPIER_AUTH_CLIENT_ID) {
3606
+ logDeprecation(
3607
+ "ZAPIER_AUTH_CLIENT_ID is deprecated. Use ZAPIER_CREDENTIALS_CLIENT_ID instead."
3608
+ );
3609
+ if (ZAPIER_AUTH_BASE_URL) {
3610
+ logDeprecation(
3611
+ "ZAPIER_AUTH_BASE_URL is deprecated. Use ZAPIER_CREDENTIALS_BASE_URL instead."
3612
+ );
3613
+ }
3614
+ const resolvedBaseUrl = ZAPIER_AUTH_BASE_URL || deriveAuthBaseUrl(sdkBaseUrl);
3615
+ return {
3616
+ type: "pkce",
3617
+ clientId: ZAPIER_AUTH_CLIENT_ID,
3618
+ baseUrl: resolvedBaseUrl
3619
+ };
3620
+ }
3621
+ return void 0;
3622
+ }
3623
+ async function resolveCredentials(options = {}) {
3624
+ const { baseUrl } = options;
3625
+ if (options.credentials !== void 0) {
3626
+ if (isCredentialsFunction(options.credentials)) {
3627
+ const resolved = await options.credentials();
3628
+ if (typeof resolved === "function") {
3629
+ throw new Error(
3630
+ "Credentials function returned another function. Credentials functions must return a string or credentials object."
3631
+ );
3632
+ }
3633
+ if (isCredentialsObject(resolved)) {
3634
+ return normalizeCredentialsObject(resolved, baseUrl);
3635
+ }
3636
+ return resolved;
3637
+ }
3638
+ if (isCredentialsObject(options.credentials)) {
3639
+ return normalizeCredentialsObject(options.credentials, baseUrl);
3640
+ }
3641
+ return options.credentials;
3642
+ }
3643
+ if (options.token !== void 0) {
3644
+ logDeprecation(
3645
+ "The `token` option is deprecated. Use `credentials` instead."
3646
+ );
3647
+ return options.token;
3648
+ }
3649
+ const envCredentials = resolveCredentialsFromEnv(baseUrl);
3650
+ if (envCredentials !== void 0) {
3651
+ return envCredentials;
3652
+ }
3653
+ return void 0;
3654
+ }
3655
+ function getBaseUrlFromCredentials(credentials) {
3656
+ if (credentials && isCredentialsObject(credentials)) {
3657
+ return credentials.baseUrl;
3658
+ }
3659
+ return void 0;
3660
+ }
3661
+ function getClientIdFromCredentials(credentials) {
3662
+ if (credentials && isCredentialsObject(credentials)) {
3663
+ return credentials.clientId;
3664
+ }
3665
+ return void 0;
3666
+ }
3667
+
3668
+ // src/auth.ts
3669
+ var tokenCache = /* @__PURE__ */ new Map();
3670
+ var pendingExchanges = /* @__PURE__ */ new Map();
3671
+ function clearTokenCache() {
3672
+ tokenCache.clear();
3673
+ pendingExchanges.clear();
3674
+ }
3675
+ var TOKEN_EXPIRATION_BUFFER = 5 * 60 * 1e3;
3676
+ function getCachedToken(clientId) {
3677
+ const cached = tokenCache.get(clientId);
3678
+ if (!cached) return void 0;
3679
+ if (cached.expiresAt > Date.now() + TOKEN_EXPIRATION_BUFFER) {
3680
+ return cached.accessToken;
3681
+ }
3682
+ tokenCache.delete(clientId);
3683
+ return void 0;
3684
+ }
3685
+ function cacheToken(clientId, accessToken, expiresIn) {
3686
+ tokenCache.set(clientId, {
3687
+ accessToken,
3688
+ expiresAt: Date.now() + expiresIn * 1e3
3689
+ });
3690
+ }
3691
+ function invalidateCachedToken(clientId) {
3692
+ tokenCache.delete(clientId);
3693
+ }
3694
+ function getTokenEndpointUrl(baseUrl) {
3695
+ const base = baseUrl || ZAPIER_BASE_URL;
3696
+ return `${base}/oauth/token/`;
3697
+ }
3698
+ async function exchangeClientCredentials(options) {
3699
+ const { clientId, clientSecret, baseUrl, scope, onEvent } = options;
3700
+ const fetchFn = options.fetch || globalThis.fetch;
3701
+ const tokenUrl = getTokenEndpointUrl(baseUrl);
3702
+ onEvent?.({
3703
+ type: "auth_exchanging",
3704
+ payload: {
3705
+ message: "Exchanging client credentials for token...",
3706
+ operation: "client_credentials"
3707
+ },
3708
+ timestamp: Date.now()
3709
+ });
3710
+ const response = await fetchFn(tokenUrl, {
3711
+ method: "POST",
3712
+ headers: {
3713
+ "Content-Type": "application/x-www-form-urlencoded"
3714
+ },
3715
+ body: new URLSearchParams({
3716
+ grant_type: "client_credentials",
3717
+ client_id: clientId,
3718
+ client_secret: clientSecret,
3719
+ scope: scope || "external",
3720
+ audience: "zapier.com"
3721
+ })
3722
+ });
3723
+ if (!response.ok) {
3724
+ const errorText = await response.text();
3725
+ onEvent?.({
3726
+ type: "auth_error",
3727
+ payload: {
3728
+ message: `Client credentials exchange failed: ${response.status}`,
3729
+ error: errorText,
3730
+ operation: "client_credentials"
3731
+ },
3732
+ timestamp: Date.now()
3733
+ });
3734
+ throw new Error(
3735
+ `Client credentials exchange failed: ${response.status} ${response.statusText}`
3736
+ );
3737
+ }
3738
+ const data = await response.json();
3739
+ if (!data.access_token) {
3740
+ throw new Error("Client credentials response missing access_token");
3741
+ }
3742
+ const expiresIn = data.expires_in || 3600;
3743
+ cacheToken(clientId, data.access_token, expiresIn);
3744
+ onEvent?.({
3745
+ type: "auth_success",
3746
+ payload: {
3747
+ message: "Client credentials exchange successful",
3748
+ operation: "client_credentials"
3749
+ },
3750
+ timestamp: Date.now()
3751
+ });
3752
+ return data.access_token;
3753
+ }
3754
+ async function getTokenFromCliLogin(options) {
3755
+ try {
3756
+ const cliLogin = await import('@zapier/zapier-sdk-cli-login');
3757
+ return await cliLogin.getToken(options);
3758
+ } catch {
3759
+ return void 0;
3760
+ }
3761
+ }
3762
+ async function resolveAuthToken(options = {}) {
3763
+ const credentials = await resolveCredentials({
3764
+ credentials: options.credentials,
3765
+ token: options.token
3766
+ });
3767
+ if (credentials !== void 0) {
3768
+ return resolveAuthTokenFromCredentials(credentials, options);
3769
+ }
3770
+ return getTokenFromCliLogin({
3771
+ onEvent: options.onEvent,
3772
+ fetch: options.fetch
3773
+ });
3774
+ }
3775
+ async function resolveAuthTokenFromCredentials(credentials, options) {
3776
+ if (typeof credentials === "string") {
3777
+ return credentials;
3778
+ }
3779
+ if (isClientCredentials(credentials)) {
3780
+ const { clientId } = credentials;
3781
+ const cached = getCachedToken(clientId);
3782
+ if (cached) {
3783
+ return cached;
3784
+ }
3785
+ const pending = pendingExchanges.get(clientId);
3786
+ if (pending) {
3787
+ return pending;
3788
+ }
3789
+ const exchangePromise = exchangeClientCredentials({
3790
+ clientId: credentials.clientId,
3791
+ clientSecret: credentials.clientSecret,
3792
+ baseUrl: credentials.baseUrl || options.baseUrl,
3793
+ scope: credentials.scope,
3794
+ fetch: options.fetch,
3795
+ onEvent: options.onEvent
3796
+ }).finally(() => {
3797
+ pendingExchanges.delete(clientId);
3798
+ });
3799
+ pendingExchanges.set(clientId, exchangePromise);
3800
+ return exchangePromise;
3801
+ }
3802
+ if (isPkceCredentials(credentials)) {
3803
+ const storedToken = await getTokenFromCliLogin({
3804
+ onEvent: options.onEvent,
3805
+ fetch: options.fetch,
3806
+ credentials
3807
+ });
3808
+ if (storedToken) {
3809
+ return storedToken;
3810
+ }
3811
+ throw new Error(
3812
+ "PKCE credentials require interactive login. Please run the 'login' command with the CLI first, or use client_credentials flow."
3813
+ );
3814
+ }
3815
+ throw new Error("Unknown credentials type");
3816
+ }
3817
+ async function invalidateCredentialsToken(options) {
3818
+ const resolved = await resolveCredentials(options);
3819
+ const clientId = getClientIdFromCredentials(resolved);
3820
+ if (clientId) {
3821
+ invalidateCachedToken(clientId);
3822
+ }
3823
+ }
3824
+
3546
3825
  // src/api/client.ts
3547
3826
  var pathConfig = {
3548
3827
  // e.g. /relay -> https://sdkapi.zapier.com/api/v0/sdk/relay/...
@@ -3600,13 +3879,11 @@ var ZapierApiClient = class {
3600
3879
  // Helper to get a token from the different places it could be gotten
3601
3880
  async getAuthToken() {
3602
3881
  return resolveAuthToken({
3882
+ credentials: this.options.credentials,
3603
3883
  token: this.options.token,
3604
- getToken: this.options.getToken,
3605
3884
  onEvent: this.options.onEvent,
3606
3885
  fetch: this.options.fetch,
3607
- baseUrl: this.options.baseUrl,
3608
- authBaseUrl: this.options.authBaseUrl,
3609
- authClientId: this.options.authClientId
3886
+ baseUrl: this.options.baseUrl
3610
3887
  });
3611
3888
  }
3612
3889
  // Helper to handle responses
@@ -3644,10 +3921,16 @@ var ZapierApiClient = class {
3644
3921
  if (response.status === 401 || response.status === 403) {
3645
3922
  if (wasMissingAuthToken) {
3646
3923
  throw new ZapierAuthenticationError(
3647
- `Authentication required (HTTP ${response.status}). Please provide a token in options or set ZAPIER_TOKEN environment variable.`,
3924
+ `Authentication required (HTTP ${response.status}). Please provide credentials in options or set ZAPIER_CREDENTIALS environment variable.`,
3648
3925
  errorOptions
3649
3926
  );
3650
3927
  }
3928
+ if (response.status === 401) {
3929
+ await invalidateCredentialsToken({
3930
+ credentials: this.options.credentials,
3931
+ token: this.options.token
3932
+ });
3933
+ }
3651
3934
  throw new ZapierAuthenticationError(message, errorOptions);
3652
3935
  }
3653
3936
  if (response.status === 400) {
@@ -3783,7 +4066,7 @@ var ZapierApiClient = class {
3783
4066
  if (options.authRequired) {
3784
4067
  if (headers.get("Authorization") == null && authToken == null) {
3785
4068
  throw new ZapierAuthenticationError(
3786
- `Authentication required but no token available. Please set ZAPIER_TOKEN, or run the 'login' command with the CLI.`
4069
+ `Authentication required but no credentials available. Please set ZAPIER_CREDENTIALS, or run the 'login' command with the CLI.`
3787
4070
  );
3788
4071
  }
3789
4072
  }
@@ -3859,27 +4142,28 @@ var apiPlugin = (params) => {
3859
4142
  const {
3860
4143
  fetch: customFetch = globalThis.fetch,
3861
4144
  baseUrl = ZAPIER_BASE_URL,
3862
- authBaseUrl,
3863
- authClientId,
4145
+ credentials,
3864
4146
  token,
3865
- getToken,
3866
4147
  onEvent,
3867
4148
  debug = false
3868
4149
  } = params.context.options;
3869
4150
  const api = createZapierApi({
3870
4151
  baseUrl,
3871
- authBaseUrl,
3872
- authClientId,
4152
+ credentials,
3873
4153
  token,
3874
- getToken,
3875
4154
  debug,
3876
4155
  fetch: customFetch,
3877
4156
  onEvent
3878
4157
  });
3879
4158
  return {
3880
4159
  context: {
3881
- api
4160
+ api,
3882
4161
  // Provide API client in context for other plugins to use
4162
+ resolveCredentials: () => resolveCredentials({
4163
+ credentials,
4164
+ token,
4165
+ baseUrl
4166
+ })
3883
4167
  }
3884
4168
  };
3885
4169
  };
@@ -4473,7 +4757,7 @@ function getCpuTime() {
4473
4757
 
4474
4758
  // package.json
4475
4759
  var package_default = {
4476
- version: "0.18.4"};
4760
+ version: "0.19.0"};
4477
4761
 
4478
4762
  // src/plugins/eventEmission/builders.ts
4479
4763
  function createBaseEvent(context = {}) {
@@ -4646,11 +4930,9 @@ var eventEmissionPlugin = ({ context }) => {
4646
4930
  const getUserContext = (async () => {
4647
4931
  try {
4648
4932
  const token = await resolveAuthToken({
4933
+ credentials: context.options.credentials,
4649
4934
  token: context.options.token,
4650
- getToken: context.options.getToken,
4651
4935
  baseUrl: context.options.baseUrl,
4652
- authBaseUrl: context.options.authBaseUrl,
4653
- authClientId: context.options.authClientId,
4654
4936
  onEvent: context.options.onEvent,
4655
4937
  fetch: context.options.fetch
4656
4938
  });
@@ -4929,7 +5211,15 @@ exports.OutputPropertySchema = OutputPropertySchema;
4929
5211
  exports.ParamsPropertySchema = ParamsPropertySchema;
4930
5212
  exports.RelayFetchSchema = RelayFetchSchema;
4931
5213
  exports.RelayRequestSchema = RelayRequestSchema;
5214
+ exports.ZAPIER_AUTH_BASE_URL = ZAPIER_AUTH_BASE_URL;
5215
+ exports.ZAPIER_AUTH_CLIENT_ID = ZAPIER_AUTH_CLIENT_ID;
4932
5216
  exports.ZAPIER_BASE_URL = ZAPIER_BASE_URL;
5217
+ exports.ZAPIER_CREDENTIALS = ZAPIER_CREDENTIALS;
5218
+ exports.ZAPIER_CREDENTIALS_BASE_URL = ZAPIER_CREDENTIALS_BASE_URL;
5219
+ exports.ZAPIER_CREDENTIALS_CLIENT_ID = ZAPIER_CREDENTIALS_CLIENT_ID;
5220
+ exports.ZAPIER_CREDENTIALS_CLIENT_SECRET = ZAPIER_CREDENTIALS_CLIENT_SECRET;
5221
+ exports.ZAPIER_CREDENTIALS_SCOPE = ZAPIER_CREDENTIALS_SCOPE;
5222
+ exports.ZAPIER_TOKEN = ZAPIER_TOKEN;
4933
5223
  exports.ZapierActionError = ZapierActionError;
4934
5224
  exports.ZapierApiError = ZapierApiError;
4935
5225
  exports.ZapierAppNotFoundError = ZapierAppNotFoundError;
@@ -4954,6 +5244,7 @@ exports.buildApplicationLifecycleEvent = buildApplicationLifecycleEvent;
4954
5244
  exports.buildErrorEvent = buildErrorEvent;
4955
5245
  exports.buildErrorEventWithContext = buildErrorEventWithContext;
4956
5246
  exports.buildMethodCalledEvent = buildMethodCalledEvent;
5247
+ exports.clearTokenCache = clearTokenCache;
4957
5248
  exports.createBaseEvent = createBaseEvent;
4958
5249
  exports.createFunction = createFunction;
4959
5250
  exports.createSdk = createSdk;
@@ -4968,7 +5259,9 @@ exports.generateEventId = generateEventId;
4968
5259
  exports.getActionPlugin = getActionPlugin;
4969
5260
  exports.getAppPlugin = getAppPlugin;
4970
5261
  exports.getAuthenticationPlugin = getAuthenticationPlugin;
5262
+ exports.getBaseUrlFromCredentials = getBaseUrlFromCredentials;
4971
5263
  exports.getCiPlatform = getCiPlatform;
5264
+ exports.getClientIdFromCredentials = getClientIdFromCredentials;
4972
5265
  exports.getCpuTime = getCpuTime;
4973
5266
  exports.getCurrentTimestamp = getCurrentTimestamp;
4974
5267
  exports.getMemoryUsage = getMemoryUsage;
@@ -4978,22 +5271,30 @@ exports.getPreferredManifestEntryKey = getPreferredManifestEntryKey;
4978
5271
  exports.getProfilePlugin = getProfilePlugin;
4979
5272
  exports.getReleaseId = getReleaseId;
4980
5273
  exports.getTokenFromCliLogin = getTokenFromCliLogin;
4981
- exports.getTokenFromEnv = getTokenFromEnv;
4982
- exports.getTokenFromEnvOrConfig = getTokenFromEnvOrConfig;
4983
5274
  exports.inputFieldKeyResolver = inputFieldKeyResolver;
4984
5275
  exports.inputsAllOptionalResolver = inputsAllOptionalResolver;
4985
5276
  exports.inputsResolver = inputsResolver;
5277
+ exports.invalidateCachedToken = invalidateCachedToken;
5278
+ exports.invalidateCredentialsToken = invalidateCredentialsToken;
4986
5279
  exports.isCi = isCi;
5280
+ exports.isClientCredentials = isClientCredentials;
5281
+ exports.isCredentialsFunction = isCredentialsFunction;
5282
+ exports.isCredentialsObject = isCredentialsObject;
5283
+ exports.isPkceCredentials = isPkceCredentials;
4987
5284
  exports.isPositional = isPositional;
4988
5285
  exports.listActionsPlugin = listActionsPlugin;
4989
5286
  exports.listAppsPlugin = listAppsPlugin;
4990
5287
  exports.listAuthenticationsPlugin = listAuthenticationsPlugin;
4991
5288
  exports.listInputFieldsPlugin = listInputFieldsPlugin;
5289
+ exports.logDeprecation = logDeprecation;
4992
5290
  exports.manifestPlugin = manifestPlugin;
4993
5291
  exports.readManifestFromFile = readManifestFromFile;
4994
5292
  exports.registryPlugin = registryPlugin;
4995
5293
  exports.requestPlugin = requestPlugin;
5294
+ exports.resetDeprecationWarnings = resetDeprecationWarnings;
4996
5295
  exports.resolveAuthToken = resolveAuthToken;
5296
+ exports.resolveCredentials = resolveCredentials;
5297
+ exports.resolveCredentialsFromEnv = resolveCredentialsFromEnv;
4997
5298
  exports.runActionPlugin = runActionPlugin;
4998
5299
  exports.toSnakeCase = toSnakeCase;
4999
5300
  exports.toTitleCase = toTitleCase;