@zapier/zapier-sdk 0.18.3 → 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 (417) hide show
  1. package/CHANGELOG.md +41 -0
  2. package/README.md +44 -32
  3. package/dist/index.cjs +658 -693
  4. package/dist/index.d.mts +272 -138
  5. package/dist/index.d.ts +2541 -40
  6. package/dist/index.mjs +638 -692
  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.integration.test.d.ts +0 -5
  17. package/dist/api/client.integration.test.d.ts.map +0 -1
  18. package/dist/api/client.integration.test.js +0 -318
  19. package/dist/api/client.js +0 -374
  20. package/dist/api/client.methods.test.d.ts +0 -2
  21. package/dist/api/client.methods.test.d.ts.map +0 -1
  22. package/dist/api/client.methods.test.js +0 -158
  23. package/dist/api/client.test.d.ts +0 -2
  24. package/dist/api/client.test.d.ts.map +0 -1
  25. package/dist/api/client.test.js +0 -96
  26. package/dist/api/debug.d.ts +0 -14
  27. package/dist/api/debug.d.ts.map +0 -1
  28. package/dist/api/debug.js +0 -131
  29. package/dist/api/debug.test.d.ts +0 -2
  30. package/dist/api/debug.test.d.ts.map +0 -1
  31. package/dist/api/debug.test.js +0 -59
  32. package/dist/api/index.d.ts +0 -30
  33. package/dist/api/index.d.ts.map +0 -1
  34. package/dist/api/index.js +0 -43
  35. package/dist/api/polling.d.ts +0 -46
  36. package/dist/api/polling.d.ts.map +0 -1
  37. package/dist/api/polling.js +0 -139
  38. package/dist/api/polling.test.d.ts +0 -2
  39. package/dist/api/polling.test.d.ts.map +0 -1
  40. package/dist/api/polling.test.js +0 -318
  41. package/dist/api/router.d.ts +0 -16
  42. package/dist/api/router.d.ts.map +0 -1
  43. package/dist/api/router.js +0 -31
  44. package/dist/api/router.test.d.ts +0 -2
  45. package/dist/api/router.test.d.ts.map +0 -1
  46. package/dist/api/router.test.js +0 -103
  47. package/dist/api/schemas.d.ts +0 -531
  48. package/dist/api/schemas.d.ts.map +0 -1
  49. package/dist/api/schemas.js +0 -389
  50. package/dist/api/types.d.ts +0 -82
  51. package/dist/api/types.d.ts.map +0 -1
  52. package/dist/api/types.js +0 -1
  53. package/dist/auth.d.ts +0 -52
  54. package/dist/auth.d.ts.map +0 -1
  55. package/dist/auth.js +0 -72
  56. package/dist/auth.test.d.ts +0 -2
  57. package/dist/auth.test.d.ts.map +0 -1
  58. package/dist/auth.test.js +0 -102
  59. package/dist/constants.d.ts +0 -14
  60. package/dist/constants.d.ts.map +0 -1
  61. package/dist/constants.js +0 -13
  62. package/dist/index.d.ts.map +0 -1
  63. package/dist/index.js +0 -42
  64. package/dist/plugins/api/index.d.ts +0 -12
  65. package/dist/plugins/api/index.d.ts.map +0 -1
  66. package/dist/plugins/api/index.js +0 -24
  67. package/dist/plugins/apps/index.d.ts +0 -15
  68. package/dist/plugins/apps/index.d.ts.map +0 -1
  69. package/dist/plugins/apps/index.js +0 -112
  70. package/dist/plugins/apps/schemas.d.ts +0 -42
  71. package/dist/plugins/apps/schemas.d.ts.map +0 -1
  72. package/dist/plugins/apps/schemas.js +0 -14
  73. package/dist/plugins/eventEmission/builders.d.ts +0 -14
  74. package/dist/plugins/eventEmission/builders.d.ts.map +0 -1
  75. package/dist/plugins/eventEmission/builders.js +0 -109
  76. package/dist/plugins/eventEmission/index.d.ts +0 -38
  77. package/dist/plugins/eventEmission/index.d.ts.map +0 -1
  78. package/dist/plugins/eventEmission/index.js +0 -336
  79. package/dist/plugins/eventEmission/index.test.d.ts +0 -5
  80. package/dist/plugins/eventEmission/index.test.d.ts.map +0 -1
  81. package/dist/plugins/eventEmission/index.test.js +0 -581
  82. package/dist/plugins/eventEmission/transport.d.ts +0 -27
  83. package/dist/plugins/eventEmission/transport.d.ts.map +0 -1
  84. package/dist/plugins/eventEmission/transport.js +0 -104
  85. package/dist/plugins/eventEmission/transport.test.d.ts +0 -5
  86. package/dist/plugins/eventEmission/transport.test.d.ts.map +0 -1
  87. package/dist/plugins/eventEmission/transport.test.js +0 -164
  88. package/dist/plugins/eventEmission/types.d.ts +0 -63
  89. package/dist/plugins/eventEmission/types.d.ts.map +0 -1
  90. package/dist/plugins/eventEmission/types.js +0 -1
  91. package/dist/plugins/eventEmission/utils.d.ts +0 -45
  92. package/dist/plugins/eventEmission/utils.d.ts.map +0 -1
  93. package/dist/plugins/eventEmission/utils.js +0 -114
  94. package/dist/plugins/fetch/index.d.ts +0 -36
  95. package/dist/plugins/fetch/index.d.ts.map +0 -1
  96. package/dist/plugins/fetch/index.js +0 -62
  97. package/dist/plugins/fetch/schemas.d.ts +0 -19
  98. package/dist/plugins/fetch/schemas.d.ts.map +0 -1
  99. package/dist/plugins/fetch/schemas.js +0 -31
  100. package/dist/plugins/findFirstAuthentication/index.d.ts +0 -21
  101. package/dist/plugins/findFirstAuthentication/index.d.ts.map +0 -1
  102. package/dist/plugins/findFirstAuthentication/index.js +0 -36
  103. package/dist/plugins/findFirstAuthentication/index.test.d.ts +0 -2
  104. package/dist/plugins/findFirstAuthentication/index.test.d.ts.map +0 -1
  105. package/dist/plugins/findFirstAuthentication/index.test.js +0 -177
  106. package/dist/plugins/findFirstAuthentication/schemas.d.ts +0 -20
  107. package/dist/plugins/findFirstAuthentication/schemas.d.ts.map +0 -1
  108. package/dist/plugins/findFirstAuthentication/schemas.js +0 -18
  109. package/dist/plugins/findUniqueAuthentication/index.d.ts +0 -21
  110. package/dist/plugins/findUniqueAuthentication/index.d.ts.map +0 -1
  111. package/dist/plugins/findUniqueAuthentication/index.js +0 -39
  112. package/dist/plugins/findUniqueAuthentication/index.test.d.ts +0 -2
  113. package/dist/plugins/findUniqueAuthentication/index.test.d.ts.map +0 -1
  114. package/dist/plugins/findUniqueAuthentication/index.test.js +0 -159
  115. package/dist/plugins/findUniqueAuthentication/schemas.d.ts +0 -20
  116. package/dist/plugins/findUniqueAuthentication/schemas.d.ts.map +0 -1
  117. package/dist/plugins/findUniqueAuthentication/schemas.js +0 -18
  118. package/dist/plugins/getAction/index.d.ts +0 -25
  119. package/dist/plugins/getAction/index.d.ts.map +0 -1
  120. package/dist/plugins/getAction/index.js +0 -42
  121. package/dist/plugins/getAction/index.test.d.ts +0 -2
  122. package/dist/plugins/getAction/index.test.d.ts.map +0 -1
  123. package/dist/plugins/getAction/index.test.js +0 -211
  124. package/dist/plugins/getAction/schemas.d.ts +0 -30
  125. package/dist/plugins/getAction/schemas.d.ts.map +0 -1
  126. package/dist/plugins/getAction/schemas.js +0 -12
  127. package/dist/plugins/getApp/index.d.ts +0 -21
  128. package/dist/plugins/getApp/index.d.ts.map +0 -1
  129. package/dist/plugins/getApp/index.js +0 -44
  130. package/dist/plugins/getApp/index.test.d.ts +0 -2
  131. package/dist/plugins/getApp/index.test.d.ts.map +0 -1
  132. package/dist/plugins/getApp/index.test.js +0 -157
  133. package/dist/plugins/getApp/schemas.d.ts +0 -16
  134. package/dist/plugins/getApp/schemas.d.ts.map +0 -1
  135. package/dist/plugins/getApp/schemas.js +0 -8
  136. package/dist/plugins/getAuthentication/index.d.ts +0 -21
  137. package/dist/plugins/getAuthentication/index.d.ts.map +0 -1
  138. package/dist/plugins/getAuthentication/index.js +0 -29
  139. package/dist/plugins/getAuthentication/index.test.d.ts +0 -2
  140. package/dist/plugins/getAuthentication/index.test.d.ts.map +0 -1
  141. package/dist/plugins/getAuthentication/index.test.js +0 -106
  142. package/dist/plugins/getAuthentication/schemas.d.ts +0 -7
  143. package/dist/plugins/getAuthentication/schemas.d.ts.map +0 -1
  144. package/dist/plugins/getAuthentication/schemas.js +0 -1
  145. package/dist/plugins/getInputFieldsSchema/index.d.ts +0 -23
  146. package/dist/plugins/getInputFieldsSchema/index.d.ts.map +0 -1
  147. package/dist/plugins/getInputFieldsSchema/index.js +0 -53
  148. package/dist/plugins/getInputFieldsSchema/index.test.d.ts +0 -2
  149. package/dist/plugins/getInputFieldsSchema/index.test.d.ts.map +0 -1
  150. package/dist/plugins/getInputFieldsSchema/index.test.js +0 -291
  151. package/dist/plugins/getInputFieldsSchema/schemas.d.ts +0 -28
  152. package/dist/plugins/getInputFieldsSchema/schemas.d.ts.map +0 -1
  153. package/dist/plugins/getInputFieldsSchema/schemas.js +0 -13
  154. package/dist/plugins/getProfile/index.d.ts +0 -25
  155. package/dist/plugins/getProfile/index.d.ts.map +0 -1
  156. package/dist/plugins/getProfile/index.js +0 -39
  157. package/dist/plugins/getProfile/schemas.d.ts +0 -13
  158. package/dist/plugins/getProfile/schemas.d.ts.map +0 -1
  159. package/dist/plugins/getProfile/schemas.js +0 -6
  160. package/dist/plugins/listActions/index.d.ts +0 -30
  161. package/dist/plugins/listActions/index.d.ts.map +0 -1
  162. package/dist/plugins/listActions/index.js +0 -75
  163. package/dist/plugins/listActions/index.test.d.ts +0 -2
  164. package/dist/plugins/listActions/index.test.d.ts.map +0 -1
  165. package/dist/plugins/listActions/index.test.js +0 -453
  166. package/dist/plugins/listActions/schemas.d.ts +0 -35
  167. package/dist/plugins/listActions/schemas.d.ts.map +0 -1
  168. package/dist/plugins/listActions/schemas.js +0 -22
  169. package/dist/plugins/listApps/index.d.ts +0 -25
  170. package/dist/plugins/listApps/index.d.ts.map +0 -1
  171. package/dist/plugins/listApps/index.js +0 -69
  172. package/dist/plugins/listApps/index.test.d.ts +0 -2
  173. package/dist/plugins/listApps/index.test.d.ts.map +0 -1
  174. package/dist/plugins/listApps/index.test.js +0 -141
  175. package/dist/plugins/listApps/schemas.d.ts +0 -26
  176. package/dist/plugins/listApps/schemas.d.ts.map +0 -1
  177. package/dist/plugins/listApps/schemas.js +0 -19
  178. package/dist/plugins/listAuthentications/index.d.ts +0 -24
  179. package/dist/plugins/listAuthentications/index.d.ts.map +0 -1
  180. package/dist/plugins/listAuthentications/index.js +0 -77
  181. package/dist/plugins/listAuthentications/index.test.d.ts +0 -2
  182. package/dist/plugins/listAuthentications/index.test.d.ts.map +0 -1
  183. package/dist/plugins/listAuthentications/index.test.js +0 -832
  184. package/dist/plugins/listAuthentications/schemas.d.ts +0 -30
  185. package/dist/plugins/listAuthentications/schemas.d.ts.map +0 -1
  186. package/dist/plugins/listAuthentications/schemas.js +0 -32
  187. package/dist/plugins/listInputFieldChoices/index.d.ts +0 -33
  188. package/dist/plugins/listInputFieldChoices/index.d.ts.map +0 -1
  189. package/dist/plugins/listInputFieldChoices/index.js +0 -115
  190. package/dist/plugins/listInputFieldChoices/index.test.d.ts +0 -2
  191. package/dist/plugins/listInputFieldChoices/index.test.d.ts.map +0 -1
  192. package/dist/plugins/listInputFieldChoices/index.test.js +0 -717
  193. package/dist/plugins/listInputFieldChoices/schemas.d.ts +0 -43
  194. package/dist/plugins/listInputFieldChoices/schemas.d.ts.map +0 -1
  195. package/dist/plugins/listInputFieldChoices/schemas.js +0 -65
  196. package/dist/plugins/listInputFields/index.d.ts +0 -34
  197. package/dist/plugins/listInputFields/index.d.ts.map +0 -1
  198. package/dist/plugins/listInputFields/index.js +0 -204
  199. package/dist/plugins/listInputFields/index.test.d.ts +0 -2
  200. package/dist/plugins/listInputFields/index.test.d.ts.map +0 -1
  201. package/dist/plugins/listInputFields/index.test.js +0 -359
  202. package/dist/plugins/listInputFields/schemas.d.ts +0 -35
  203. package/dist/plugins/listInputFields/schemas.d.ts.map +0 -1
  204. package/dist/plugins/listInputFields/schemas.js +0 -23
  205. package/dist/plugins/manifest/index.d.ts +0 -85
  206. package/dist/plugins/manifest/index.d.ts.map +0 -1
  207. package/dist/plugins/manifest/index.js +0 -376
  208. package/dist/plugins/manifest/index.test.d.ts +0 -2
  209. package/dist/plugins/manifest/index.test.d.ts.map +0 -1
  210. package/dist/plugins/manifest/index.test.js +0 -1139
  211. package/dist/plugins/manifest/schemas.d.ts +0 -57
  212. package/dist/plugins/manifest/schemas.d.ts.map +0 -1
  213. package/dist/plugins/manifest/schemas.js +0 -50
  214. package/dist/plugins/registry/index.d.ts +0 -21
  215. package/dist/plugins/registry/index.d.ts.map +0 -1
  216. package/dist/plugins/registry/index.js +0 -117
  217. package/dist/plugins/request/index.d.ts +0 -21
  218. package/dist/plugins/request/index.d.ts.map +0 -1
  219. package/dist/plugins/request/index.js +0 -76
  220. package/dist/plugins/request/index.test.d.ts +0 -2
  221. package/dist/plugins/request/index.test.d.ts.map +0 -1
  222. package/dist/plugins/request/index.test.js +0 -337
  223. package/dist/plugins/request/schemas.d.ts +0 -54
  224. package/dist/plugins/request/schemas.d.ts.map +0 -1
  225. package/dist/plugins/request/schemas.js +0 -41
  226. package/dist/plugins/runAction/index.d.ts +0 -33
  227. package/dist/plugins/runAction/index.d.ts.map +0 -1
  228. package/dist/plugins/runAction/index.js +0 -108
  229. package/dist/plugins/runAction/index.test.d.ts +0 -2
  230. package/dist/plugins/runAction/index.test.d.ts.map +0 -1
  231. package/dist/plugins/runAction/index.test.js +0 -333
  232. package/dist/plugins/runAction/schemas.d.ts +0 -34
  233. package/dist/plugins/runAction/schemas.d.ts.map +0 -1
  234. package/dist/plugins/runAction/schemas.js +0 -23
  235. package/dist/resolvers/actionKey.d.ts +0 -15
  236. package/dist/resolvers/actionKey.d.ts.map +0 -1
  237. package/dist/resolvers/actionKey.js +0 -19
  238. package/dist/resolvers/actionType.d.ts +0 -10
  239. package/dist/resolvers/actionType.d.ts.map +0 -1
  240. package/dist/resolvers/actionType.js +0 -21
  241. package/dist/resolvers/appKey.d.ts +0 -3
  242. package/dist/resolvers/appKey.d.ts.map +0 -1
  243. package/dist/resolvers/appKey.js +0 -5
  244. package/dist/resolvers/authenticationId.d.ts +0 -9
  245. package/dist/resolvers/authenticationId.d.ts.map +0 -1
  246. package/dist/resolvers/authenticationId.js +0 -42
  247. package/dist/resolvers/index.d.ts +0 -8
  248. package/dist/resolvers/index.d.ts.map +0 -1
  249. package/dist/resolvers/index.js +0 -8
  250. package/dist/resolvers/inputFieldKey.d.ts +0 -11
  251. package/dist/resolvers/inputFieldKey.d.ts.map +0 -1
  252. package/dist/resolvers/inputFieldKey.js +0 -47
  253. package/dist/resolvers/inputs.d.ts +0 -17
  254. package/dist/resolvers/inputs.d.ts.map +0 -1
  255. package/dist/resolvers/inputs.js +0 -50
  256. package/dist/schemas/Action.d.ts +0 -24
  257. package/dist/schemas/Action.d.ts.map +0 -1
  258. package/dist/schemas/Action.js +0 -40
  259. package/dist/schemas/App.d.ts +0 -57
  260. package/dist/schemas/App.d.ts.map +0 -1
  261. package/dist/schemas/App.js +0 -31
  262. package/dist/schemas/Auth.d.ts +0 -55
  263. package/dist/schemas/Auth.d.ts.map +0 -1
  264. package/dist/schemas/Auth.js +0 -33
  265. package/dist/schemas/Field.d.ts +0 -61
  266. package/dist/schemas/Field.d.ts.map +0 -1
  267. package/dist/schemas/Field.js +0 -116
  268. package/dist/schemas/Run.d.ts +0 -3
  269. package/dist/schemas/Run.d.ts.map +0 -1
  270. package/dist/schemas/Run.js +0 -31
  271. package/dist/schemas/UserProfile.d.ts +0 -13
  272. package/dist/schemas/UserProfile.d.ts.map +0 -1
  273. package/dist/schemas/UserProfile.js +0 -32
  274. package/dist/sdk.d.ts +0 -146
  275. package/dist/sdk.d.ts.map +0 -1
  276. package/dist/sdk.js +0 -112
  277. package/dist/sdk.test.d.ts +0 -2
  278. package/dist/sdk.test.d.ts.map +0 -1
  279. package/dist/sdk.test.js +0 -255
  280. package/dist/services/implementations.d.ts +0 -63
  281. package/dist/services/implementations.d.ts.map +0 -1
  282. package/dist/services/implementations.js +0 -80
  283. package/dist/temporary-internal-core/handlers/listApps.d.ts +0 -67
  284. package/dist/temporary-internal-core/handlers/listApps.d.ts.map +0 -1
  285. package/dist/temporary-internal-core/handlers/listApps.js +0 -134
  286. package/dist/temporary-internal-core/handlers/listApps.test.d.ts +0 -2
  287. package/dist/temporary-internal-core/handlers/listApps.test.d.ts.map +0 -1
  288. package/dist/temporary-internal-core/handlers/listApps.test.js +0 -367
  289. package/dist/temporary-internal-core/index.d.ts +0 -18
  290. package/dist/temporary-internal-core/index.d.ts.map +0 -1
  291. package/dist/temporary-internal-core/index.js +0 -18
  292. package/dist/temporary-internal-core/schemas/apps/index.d.ts +0 -175
  293. package/dist/temporary-internal-core/schemas/apps/index.d.ts.map +0 -1
  294. package/dist/temporary-internal-core/schemas/apps/index.js +0 -97
  295. package/dist/temporary-internal-core/schemas/errors/index.d.ts +0 -139
  296. package/dist/temporary-internal-core/schemas/errors/index.d.ts.map +0 -1
  297. package/dist/temporary-internal-core/schemas/errors/index.js +0 -129
  298. package/dist/temporary-internal-core/schemas/implementations/index.d.ts +0 -127
  299. package/dist/temporary-internal-core/schemas/implementations/index.d.ts.map +0 -1
  300. package/dist/temporary-internal-core/schemas/implementations/index.js +0 -79
  301. package/dist/temporary-internal-core/types/handler.d.ts +0 -51
  302. package/dist/temporary-internal-core/types/handler.d.ts.map +0 -1
  303. package/dist/temporary-internal-core/types/handler.js +0 -8
  304. package/dist/temporary-internal-core/types/index.d.ts +0 -5
  305. package/dist/temporary-internal-core/types/index.d.ts.map +0 -1
  306. package/dist/temporary-internal-core/types/index.js +0 -4
  307. package/dist/temporary-internal-core/utils/app-locators.d.ts +0 -34
  308. package/dist/temporary-internal-core/utils/app-locators.d.ts.map +0 -1
  309. package/dist/temporary-internal-core/utils/app-locators.js +0 -39
  310. package/dist/temporary-internal-core/utils/string-utils.d.ts +0 -28
  311. package/dist/temporary-internal-core/utils/string-utils.d.ts.map +0 -1
  312. package/dist/temporary-internal-core/utils/string-utils.js +0 -52
  313. package/dist/temporary-internal-core/utils/transformations.d.ts +0 -18
  314. package/dist/temporary-internal-core/utils/transformations.d.ts.map +0 -1
  315. package/dist/temporary-internal-core/utils/transformations.js +0 -36
  316. package/dist/types/domain.d.ts +0 -52
  317. package/dist/types/domain.d.ts.map +0 -1
  318. package/dist/types/domain.js +0 -1
  319. package/dist/types/domain.test.d.ts +0 -2
  320. package/dist/types/domain.test.d.ts.map +0 -1
  321. package/dist/types/domain.test.js +0 -39
  322. package/dist/types/errors.d.ts +0 -143
  323. package/dist/types/errors.d.ts.map +0 -1
  324. package/dist/types/errors.js +0 -187
  325. package/dist/types/events.d.ts +0 -38
  326. package/dist/types/events.d.ts.map +0 -1
  327. package/dist/types/events.js +0 -7
  328. package/dist/types/functions.d.ts +0 -27
  329. package/dist/types/functions.d.ts.map +0 -1
  330. package/dist/types/functions.js +0 -1
  331. package/dist/types/plugin.d.ts +0 -75
  332. package/dist/types/plugin.d.ts.map +0 -1
  333. package/dist/types/plugin.js +0 -9
  334. package/dist/types/properties.d.ts +0 -33
  335. package/dist/types/properties.d.ts.map +0 -1
  336. package/dist/types/properties.js +0 -52
  337. package/dist/types/sdk.d.ts +0 -69
  338. package/dist/types/sdk.d.ts.map +0 -1
  339. package/dist/types/sdk.js +0 -4
  340. package/dist/types/telemetry-events.d.ts +0 -105
  341. package/dist/types/telemetry-events.d.ts.map +0 -1
  342. package/dist/types/telemetry-events.js +0 -8
  343. package/dist/utils/array-utils.d.ts +0 -31
  344. package/dist/utils/array-utils.d.ts.map +0 -1
  345. package/dist/utils/array-utils.js +0 -36
  346. package/dist/utils/array-utils.test.d.ts +0 -2
  347. package/dist/utils/array-utils.test.d.ts.map +0 -1
  348. package/dist/utils/array-utils.test.js +0 -107
  349. package/dist/utils/batch-utils.d.ts +0 -72
  350. package/dist/utils/batch-utils.d.ts.map +0 -1
  351. package/dist/utils/batch-utils.js +0 -162
  352. package/dist/utils/batch-utils.test.d.ts +0 -2
  353. package/dist/utils/batch-utils.test.d.ts.map +0 -1
  354. package/dist/utils/batch-utils.test.js +0 -476
  355. package/dist/utils/domain-utils.d.ts +0 -66
  356. package/dist/utils/domain-utils.d.ts.map +0 -1
  357. package/dist/utils/domain-utils.js +0 -164
  358. package/dist/utils/domain-utils.test.d.ts +0 -2
  359. package/dist/utils/domain-utils.test.d.ts.map +0 -1
  360. package/dist/utils/domain-utils.test.js +0 -346
  361. package/dist/utils/file-utils.d.ts +0 -4
  362. package/dist/utils/file-utils.d.ts.map +0 -1
  363. package/dist/utils/file-utils.js +0 -74
  364. package/dist/utils/file-utils.test.d.ts +0 -2
  365. package/dist/utils/file-utils.test.d.ts.map +0 -1
  366. package/dist/utils/file-utils.test.js +0 -51
  367. package/dist/utils/function-utils.d.ts +0 -73
  368. package/dist/utils/function-utils.d.ts.map +0 -1
  369. package/dist/utils/function-utils.js +0 -245
  370. package/dist/utils/function-utils.test.d.ts +0 -2
  371. package/dist/utils/function-utils.test.d.ts.map +0 -1
  372. package/dist/utils/function-utils.test.js +0 -110
  373. package/dist/utils/id-utils.d.ts +0 -13
  374. package/dist/utils/id-utils.d.ts.map +0 -1
  375. package/dist/utils/id-utils.js +0 -22
  376. package/dist/utils/id-utils.test.d.ts +0 -2
  377. package/dist/utils/id-utils.test.d.ts.map +0 -1
  378. package/dist/utils/id-utils.test.js +0 -22
  379. package/dist/utils/pagination-utils.d.ts +0 -37
  380. package/dist/utils/pagination-utils.d.ts.map +0 -1
  381. package/dist/utils/pagination-utils.js +0 -165
  382. package/dist/utils/pagination-utils.test.d.ts +0 -17
  383. package/dist/utils/pagination-utils.test.d.ts.map +0 -1
  384. package/dist/utils/pagination-utils.test.js +0 -461
  385. package/dist/utils/retry-utils.d.ts +0 -45
  386. package/dist/utils/retry-utils.d.ts.map +0 -1
  387. package/dist/utils/retry-utils.js +0 -51
  388. package/dist/utils/retry-utils.test.d.ts +0 -2
  389. package/dist/utils/retry-utils.test.d.ts.map +0 -1
  390. package/dist/utils/retry-utils.test.js +0 -90
  391. package/dist/utils/schema-utils.d.ts +0 -69
  392. package/dist/utils/schema-utils.d.ts.map +0 -1
  393. package/dist/utils/schema-utils.js +0 -72
  394. package/dist/utils/string-utils.d.ts +0 -40
  395. package/dist/utils/string-utils.d.ts.map +0 -1
  396. package/dist/utils/string-utils.js +0 -69
  397. package/dist/utils/string-utils.test.d.ts +0 -2
  398. package/dist/utils/string-utils.test.d.ts.map +0 -1
  399. package/dist/utils/string-utils.test.js +0 -59
  400. package/dist/utils/telemetry-utils.d.ts +0 -44
  401. package/dist/utils/telemetry-utils.d.ts.map +0 -1
  402. package/dist/utils/telemetry-utils.js +0 -55
  403. package/dist/utils/telemetry-utils.test.d.ts +0 -2
  404. package/dist/utils/telemetry-utils.test.d.ts.map +0 -1
  405. package/dist/utils/telemetry-utils.test.js +0 -94
  406. package/dist/utils/url-utils.d.ts +0 -19
  407. package/dist/utils/url-utils.d.ts.map +0 -1
  408. package/dist/utils/url-utils.js +0 -62
  409. package/dist/utils/url-utils.test.d.ts +0 -2
  410. package/dist/utils/url-utils.test.d.ts.map +0 -1
  411. package/dist/utils/url-utils.test.js +0 -103
  412. package/dist/utils/validation.d.ts +0 -4
  413. package/dist/utils/validation.d.ts.map +0 -1
  414. package/dist/utils/validation.js +0 -30
  415. package/dist/utils/validation.test.d.ts +0 -2
  416. package/dist/utils/validation.test.d.ts.map +0 -1
  417. package/dist/utils/validation.test.js +0 -44
@@ -1,79 +0,0 @@
1
- /**
2
- * Implementation schemas
3
- *
4
- * Covers:
5
- * - Implementation metadata
6
- * - Implementation listings
7
- * - Version information
8
- */
9
- import { z } from "zod";
10
- /**
11
- * Lightweight implementation metadata returned by /api/v4/implementations-meta/*
12
- */
13
- export const ImplementationMetaSchema = z.object({
14
- id: z.string(),
15
- name: z.string(),
16
- slug: z.string(),
17
- age_in_days: z.number().optional(),
18
- auth_type: z.string().optional(),
19
- banner: z.string().optional(),
20
- categories: z
21
- .array(z.object({
22
- id: z.number(),
23
- name: z.string(),
24
- slug: z.string(),
25
- }))
26
- .optional(),
27
- images: z
28
- .object({
29
- url_16x16: z.string().optional(),
30
- url_32x32: z.string().optional(),
31
- url_64x64: z.string().optional(),
32
- url_128x128: z.string().optional(),
33
- })
34
- .optional(),
35
- popularity: z.number().optional(),
36
- has_filters: z.boolean().optional(),
37
- has_reads: z.boolean().optional(),
38
- has_searches: z.boolean().optional(),
39
- has_searches_or_writes: z.boolean().optional(),
40
- has_upfront_fields: z.boolean().optional(),
41
- has_writes: z.boolean().optional(),
42
- is_beta: z.boolean().optional(),
43
- is_built_in: z.boolean().optional(),
44
- is_deprecated: z.boolean().optional(),
45
- is_featured: z.boolean().optional(),
46
- is_hidden: z.boolean().optional(),
47
- is_invite: z.boolean().optional(),
48
- is_premium: z.boolean().optional(),
49
- is_public: z.boolean().optional(),
50
- is_upcoming: z.boolean().optional(),
51
- version: z.string().optional(),
52
- visibility: z.string().optional(),
53
- actions: z
54
- .object({
55
- read: z.number().optional(),
56
- read_bulk: z.number().optional(),
57
- write: z.number().optional(),
58
- search: z.number().optional(),
59
- search_or_write: z.number().optional(),
60
- search_and_write: z.number().optional(),
61
- filter: z.number().optional(),
62
- })
63
- .optional(),
64
- description: z.string().optional(),
65
- primary_color: z.string().optional(),
66
- secondary_color: z.string().optional(),
67
- classification: z.string().optional(),
68
- api_docs_url: z.string().optional(),
69
- image: z.string().optional(),
70
- });
71
- /**
72
- * Paginated response from /api/v4/implementations-meta/lookup/ and search endpoints
73
- */
74
- export const ImplementationsMetaResponseSchema = z.object({
75
- count: z.number(),
76
- next: z.string().nullable().optional(),
77
- previous: z.string().nullable().optional(),
78
- results: z.array(ImplementationMetaSchema),
79
- });
@@ -1,51 +0,0 @@
1
- /**
2
- * Core handler types for temporary-internal-core
3
- *
4
- * These types define the contract that all handlers must follow.
5
- * This ensures consistency across extractions and makes it easier to
6
- * migrate handlers to the SDK API later.
7
- */
8
- import type { z } from "zod";
9
- /**
10
- * Base interface for handler dependencies
11
- *
12
- * All handlers receive dependencies via dependency injection.
13
- * This allows different implementations in different environments:
14
- * - SDK plugin injects: { httpClient: api } (SDK's ApiClient)
15
- * - SDK API injects: { httpClient: internalClient } (direct internal calls)
16
- * - Tests inject: { httpClient: mockClient } (mocked responses)
17
- *
18
- * Individual handlers define their own dependency interfaces extending this base.
19
- * The base interface is intentionally minimal - handlers specify their exact needs.
20
- */
21
- export interface HandlerDeps {
22
- }
23
- /**
24
- * Generic handler function type
25
- *
26
- * All handlers follow this signature:
27
- * - Take a validated request object
28
- * - Take injected dependencies
29
- * - Return a typed response
30
- *
31
- * @template TRequest - The request type (should match a Zod schema)
32
- * @template TResponse - The response type (should match a Zod schema)
33
- * @template TDeps - The dependencies type (extends HandlerDeps)
34
- */
35
- export interface Handler<TRequest, TResponse, TDeps extends HandlerDeps = HandlerDeps> {
36
- (params: {
37
- request: TRequest;
38
- deps: TDeps;
39
- }): Promise<TResponse>;
40
- }
41
- /**
42
- * Handler with schemas for runtime validation
43
- *
44
- * This extends the Handler interface with Zod schemas that can be used
45
- * for runtime validation of requests and responses.
46
- */
47
- export interface ValidatedHandler<TRequest, TResponse, TDeps extends HandlerDeps = HandlerDeps> extends Handler<TRequest, TResponse, TDeps> {
48
- requestSchema: z.ZodSchema<TRequest>;
49
- responseSchema: z.ZodSchema<TResponse>;
50
- }
51
- //# sourceMappingURL=handler.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"handler.d.ts","sourceRoot":"","sources":["../../../src/temporary-internal-core/types/handler.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAE7B;;;;;;;;;;;GAWG;AACH,MAAM,WAAW,WAAW;CAG3B;AAED;;;;;;;;;;;GAWG;AACH,MAAM,WAAW,OAAO,CACtB,QAAQ,EACR,SAAS,EACT,KAAK,SAAS,WAAW,GAAG,WAAW;IAEvC,CAAC,MAAM,EAAE;QAAE,OAAO,EAAE,QAAQ,CAAC;QAAC,IAAI,EAAE,KAAK,CAAA;KAAE,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC;CAClE;AAED;;;;;GAKG;AACH,MAAM,WAAW,gBAAgB,CAC/B,QAAQ,EACR,SAAS,EACT,KAAK,SAAS,WAAW,GAAG,WAAW,CACvC,SAAQ,OAAO,CAAC,QAAQ,EAAE,SAAS,EAAE,KAAK,CAAC;IAC3C,aAAa,EAAE,CAAC,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;IACrC,cAAc,EAAE,CAAC,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC;CACxC"}
@@ -1,8 +0,0 @@
1
- /**
2
- * Core handler types for temporary-internal-core
3
- *
4
- * These types define the contract that all handlers must follow.
5
- * This ensures consistency across extractions and makes it easier to
6
- * migrate handlers to the SDK API later.
7
- */
8
- export {};
@@ -1,5 +0,0 @@
1
- /**
2
- * Core types for temporary-internal-core
3
- */
4
- export type { HandlerDeps, Handler, ValidatedHandler } from "./handler";
5
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/temporary-internal-core/types/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,YAAY,EAAE,WAAW,EAAE,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC"}
@@ -1,4 +0,0 @@
1
- /**
2
- * Core types for temporary-internal-core
3
- */
4
- export {};
@@ -1,34 +0,0 @@
1
- /**
2
- * App locator utilities for resolving app keys to implementation IDs
3
- *
4
- * These utilities handle the mapping between user-friendly app identifiers
5
- * (slugs like "slack") and internal implementation IDs (like "SlackCLIAPI@1.0.0")
6
- */
7
- /**
8
- * Represents an app identifier that may need resolution
9
- */
10
- export interface AppLocator {
11
- lookupAppKey: string;
12
- slug?: string;
13
- implementationName?: string;
14
- version?: string;
15
- }
16
- /**
17
- * An app locator that has been resolved to an implementation name
18
- */
19
- export interface ResolvedAppLocator extends AppLocator {
20
- implementationName: string;
21
- }
22
- /**
23
- * Converts an app key to an app locator structure
24
- */
25
- export declare function toAppLocator(appKey: string): AppLocator;
26
- /**
27
- * Converts a resolved app locator to a full implementation ID
28
- */
29
- export declare function toImplementationId(appLocator: ResolvedAppLocator): string;
30
- /**
31
- * Type guard to check if an app locator has been resolved
32
- */
33
- export declare function isResolvedAppLocator(appLocator: AppLocator): appLocator is ResolvedAppLocator;
34
- //# sourceMappingURL=app-locators.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"app-locators.d.ts","sourceRoot":"","sources":["../../../src/temporary-internal-core/utils/app-locators.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAUH;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,YAAY,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,kBAAmB,SAAQ,UAAU;IACpD,kBAAkB,EAAE,MAAM,CAAC;CAC5B;AAED;;GAEG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE,MAAM,GAAG,UAAU,CAqBvD;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,UAAU,EAAE,kBAAkB,GAAG,MAAM,CAEzE;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAClC,UAAU,EAAE,UAAU,GACrB,UAAU,IAAI,kBAAkB,CAElC"}
@@ -1,39 +0,0 @@
1
- /**
2
- * App locator utilities for resolving app keys to implementation IDs
3
- *
4
- * These utilities handle the mapping between user-friendly app identifiers
5
- * (slugs like "slack") and internal implementation IDs (like "SlackCLIAPI@1.0.0")
6
- */
7
- import { dashifySnakeCasedSlug, isSlug, isSnakeCasedSlug, isUuid, splitVersionedKey, } from "./string-utils";
8
- /**
9
- * Converts an app key to an app locator structure
10
- */
11
- export function toAppLocator(appKey) {
12
- const [appKeyWithoutVersion, version] = splitVersionedKey(appKey);
13
- if (isUuid(appKeyWithoutVersion)) {
14
- throw new Error(`UUID app keys are not supported. Use app slug or implementation ID instead of: ${appKey}`);
15
- }
16
- const slug = isSlug(appKeyWithoutVersion)
17
- ? appKeyWithoutVersion
18
- : isSnakeCasedSlug(appKeyWithoutVersion)
19
- ? dashifySnakeCasedSlug(appKeyWithoutVersion)
20
- : undefined;
21
- return {
22
- lookupAppKey: appKeyWithoutVersion,
23
- slug,
24
- implementationName: slug ? undefined : appKeyWithoutVersion,
25
- version,
26
- };
27
- }
28
- /**
29
- * Converts a resolved app locator to a full implementation ID
30
- */
31
- export function toImplementationId(appLocator) {
32
- return `${appLocator.implementationName}@${appLocator.version || "latest"}`;
33
- }
34
- /**
35
- * Type guard to check if an app locator has been resolved
36
- */
37
- export function isResolvedAppLocator(appLocator) {
38
- return !!appLocator.implementationName;
39
- }
@@ -1,28 +0,0 @@
1
- /**
2
- * Splits a versioned key to extract the base key and version
3
- *
4
- * @param versionedKey - Versioned key in format "KeyName@version" (e.g., "SlackCLIAPI@1.21.1")
5
- * @returns Tuple of [baseKey, version] or [versionedKey, undefined] if no @ symbol
6
- *
7
- * @example
8
- * splitVersionedKey("SlackCLIAPI@1.21.1") // ["SlackCLIAPI", "1.21.1"]
9
- * splitVersionedKey("SomeAPI") // ["SomeAPI", undefined]
10
- */
11
- export declare function splitVersionedKey(versionedKey: string): [string, string | undefined];
12
- /**
13
- * Checks if a string is a valid slug (kebab-case)
14
- */
15
- export declare function isSlug(slug: string): boolean;
16
- /**
17
- * Checks if a string is a valid snake_case slug
18
- */
19
- export declare function isSnakeCasedSlug(slug: string): boolean;
20
- /**
21
- * Converts snake_case to kebab-case
22
- */
23
- export declare function dashifySnakeCasedSlug(slug: string): string;
24
- /**
25
- * Checks if a string is a UUID
26
- */
27
- export declare function isUuid(appKey: string): boolean;
28
- //# sourceMappingURL=string-utils.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"string-utils.d.ts","sourceRoot":"","sources":["../../../src/temporary-internal-core/utils/string-utils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,wBAAgB,iBAAiB,CAC/B,YAAY,EAAE,MAAM,GACnB,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAQ9B;AAED;;GAEG;AACH,wBAAgB,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAE5C;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAKtD;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAU1D;AAED;;GAEG;AACH,wBAAgB,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAI9C"}
@@ -1,52 +0,0 @@
1
- /**
2
- * Splits a versioned key to extract the base key and version
3
- *
4
- * @param versionedKey - Versioned key in format "KeyName@version" (e.g., "SlackCLIAPI@1.21.1")
5
- * @returns Tuple of [baseKey, version] or [versionedKey, undefined] if no @ symbol
6
- *
7
- * @example
8
- * splitVersionedKey("SlackCLIAPI@1.21.1") // ["SlackCLIAPI", "1.21.1"]
9
- * splitVersionedKey("SomeAPI") // ["SomeAPI", undefined]
10
- */
11
- export function splitVersionedKey(versionedKey) {
12
- const parts = versionedKey.split("@");
13
- if (parts.length >= 2) {
14
- const baseKey = parts[0];
15
- const version = parts.slice(1).join("@"); // Handle edge case of multiple @ symbols
16
- return [baseKey, version];
17
- }
18
- return [versionedKey, undefined];
19
- }
20
- /**
21
- * Checks if a string is a valid slug (kebab-case)
22
- */
23
- export function isSlug(slug) {
24
- return !!slug.match(/^[a-z0-9]+(?:-[a-z0-9]+)*$/);
25
- }
26
- /**
27
- * Checks if a string is a valid snake_case slug
28
- */
29
- export function isSnakeCasedSlug(slug) {
30
- if (slug.match(/^_[0-9]/)) {
31
- slug = slug.slice(1);
32
- }
33
- return !!slug.match(/^[a-z0-9]+(?:_[a-z0-9]+)*$/);
34
- }
35
- /**
36
- * Converts snake_case to kebab-case
37
- */
38
- export function dashifySnakeCasedSlug(slug) {
39
- if (!isSnakeCasedSlug(slug)) {
40
- return slug;
41
- }
42
- if (slug.startsWith("_")) {
43
- slug = slug.slice(1);
44
- }
45
- return slug.replace(/_/g, "-");
46
- }
47
- /**
48
- * Checks if a string is a UUID
49
- */
50
- export function isUuid(appKey) {
51
- return /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(appKey);
52
- }
@@ -1,18 +0,0 @@
1
- /**
2
- * Transformation utilities for converting API responses to SDK types
3
- *
4
- * These will move to SDK API server as part of the response transformation layer
5
- */
6
- import type { ImplementationMeta } from "../schemas/implementations";
7
- import type { AppItem } from "../schemas/apps";
8
- /**
9
- * Transforms ImplementationMeta from internal API to AppItem for SDK responses
10
- */
11
- export declare function transformImplementationMetaToAppItem(implementationMeta: ImplementationMeta): AppItem;
12
- /**
13
- * Extracts pagination cursor from API response
14
- */
15
- export declare function extractPaginationCursor(response: {
16
- next?: string | null;
17
- }): string | undefined;
18
- //# sourceMappingURL=transformations.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"transformations.d.ts","sourceRoot":"","sources":["../../../src/temporary-internal-core/utils/transformations.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AACrE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAG/C;;GAEG;AACH,wBAAgB,oCAAoC,CAClD,kBAAkB,EAAE,kBAAkB,GACrC,OAAO,CAYT;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,QAAQ,EAAE;IAChD,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACtB,GAAG,MAAM,GAAG,SAAS,CAYrB"}
@@ -1,36 +0,0 @@
1
- /**
2
- * Transformation utilities for converting API responses to SDK types
3
- *
4
- * These will move to SDK API server as part of the response transformation layer
5
- */
6
- import { splitVersionedKey } from "./string-utils";
7
- /**
8
- * Transforms ImplementationMeta from internal API to AppItem for SDK responses
9
- */
10
- export function transformImplementationMetaToAppItem(implementationMeta) {
11
- const [selectedApi, appVersion] = splitVersionedKey(implementationMeta.id);
12
- const { id, name, ...restOfImplementationMeta } = implementationMeta;
13
- return {
14
- ...restOfImplementationMeta,
15
- title: name,
16
- key: selectedApi,
17
- implementation_id: id,
18
- version: appVersion,
19
- };
20
- }
21
- /**
22
- * Extracts pagination cursor from API response
23
- */
24
- export function extractPaginationCursor(response) {
25
- if (!response.next) {
26
- return undefined;
27
- }
28
- try {
29
- const url = new URL(response.next);
30
- const offset = url.searchParams.get("offset");
31
- return offset || undefined;
32
- }
33
- catch {
34
- return undefined;
35
- }
36
- }
@@ -1,52 +0,0 @@
1
- import type { z } from "zod";
2
- /**
3
- * Domain model types - representing business entities returned by SDK functions
4
- * These types are inferred from Item schemas and represent transformed/formatted data.
5
- */
6
- import type { AppItemSchema } from "../schemas/App";
7
- import type { AuthenticationItemSchema } from "../schemas/Auth";
8
- import type { ActionItemSchema } from "../schemas/Action";
9
- import type { InputFieldItemSchema, InfoFieldItemSchema, RootFieldItemSchema } from "../schemas/Field";
10
- import type { UserProfileItemSchema } from "../schemas/UserProfile";
11
- import type { FieldsetItem } from "../schemas/Field";
12
- /**
13
- * Represents an app item returned by getApp and listApps functions
14
- * Inferred from AppItemSchema which extends the base App API schema
15
- */
16
- export type AppItem = z.infer<typeof AppItemSchema>;
17
- /**
18
- * Represents an authentication item returned by listAuthentications functions
19
- * Inferred from AuthenticationItemSchema which extends the base Authentication API schema
20
- */
21
- export type AuthenticationItem = z.infer<typeof AuthenticationItemSchema>;
22
- /**
23
- * Represents an action item returned by listActions functions
24
- * Inferred from ActionItemSchema which extends the base Action API schema
25
- */
26
- export type ActionItem = z.infer<typeof ActionItemSchema>;
27
- /**
28
- * Represents an input field item returned by listInputFields functions
29
- * Inferred from InputFieldItemSchema which extends the base Need API schema
30
- */
31
- export type InputFieldItem = z.infer<typeof InputFieldItemSchema>;
32
- /**
33
- * Represents an info field item (help text/copy) returned by listInputFields functions
34
- * Inferred from InfoFieldItemSchema
35
- */
36
- export type InfoFieldItem = z.infer<typeof InfoFieldItemSchema>;
37
- /**
38
- * Represents a fieldset (group of fields) returned by listInputFields functions
39
- * This is defined as an interface rather than inferred due to recursive nature
40
- */
41
- export type { FieldsetItem };
42
- /**
43
- * Represents a root field item (any field/fieldset type) returned by listInputFields
44
- * Inferred from RootFieldItemSchema - use as RootFieldItem[]
45
- */
46
- export type RootFieldItem = z.infer<typeof RootFieldItemSchema>;
47
- /**
48
- * Represents a user profile item returned by getProfile function
49
- * Inferred from UserProfileItemSchema which extends the base UserProfile API schema
50
- */
51
- export type UserProfileItem = z.infer<typeof UserProfileItemSchema>;
52
- //# sourceMappingURL=domain.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"domain.d.ts","sourceRoot":"","sources":["../../src/types/domain.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAE7B;;;GAGG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AACpD,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,iBAAiB,CAAC;AAChE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAC1D,OAAO,KAAK,EACV,oBAAoB,EACpB,mBAAmB,EACnB,mBAAmB,EACpB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AACpE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAErD;;;GAGG;AACH,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAEpD;;;GAGG;AACH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE1E;;;GAGG;AACH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE1D;;;GAGG;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAElE;;;GAGG;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEhE;;;GAGG;AACH,YAAY,EAAE,YAAY,EAAE,CAAC;AAE7B;;;GAGG;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEhE;;;GAGG;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
@@ -1 +0,0 @@
1
- export {};
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=domain.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"domain.test.d.ts","sourceRoot":"","sources":["../../src/types/domain.test.ts"],"names":[],"mappings":""}
@@ -1,39 +0,0 @@
1
- import { describe, it, expect } from "vitest";
2
- import { splitVersionedKey } from "../utils/domain-utils";
3
- describe("splitVersionedKey", () => {
4
- it("should split versioned key with version", () => {
5
- const [baseKey, version] = splitVersionedKey("SlackCLIAPI@1.21.1");
6
- expect(baseKey).toBe("SlackCLIAPI");
7
- expect(version).toBe("1.21.1");
8
- });
9
- it("should split versioned key with complex version", () => {
10
- const [baseKey, version] = splitVersionedKey("GoogleSheetsAPI@2.5.0-beta.1");
11
- expect(baseKey).toBe("GoogleSheetsAPI");
12
- expect(version).toBe("2.5.0-beta.1");
13
- });
14
- it("should handle versioned key without version", () => {
15
- const [baseKey, version] = splitVersionedKey("SomeAPI");
16
- expect(baseKey).toBe("SomeAPI");
17
- expect(version).toBeUndefined();
18
- });
19
- it("should handle versioned key with multiple @ symbols", () => {
20
- const [baseKey, version] = splitVersionedKey("ComplexAPI@1.0.0@beta");
21
- expect(baseKey).toBe("ComplexAPI");
22
- expect(version).toBe("1.0.0@beta");
23
- });
24
- it("should handle edge case with many @ symbols", () => {
25
- const [baseKey, version] = splitVersionedKey("API@with@multiple@at@symbols@1.2.3");
26
- expect(baseKey).toBe("API");
27
- expect(version).toBe("with@multiple@at@symbols@1.2.3");
28
- });
29
- it("should handle empty string", () => {
30
- const [baseKey, version] = splitVersionedKey("");
31
- expect(baseKey).toBe("");
32
- expect(version).toBeUndefined();
33
- });
34
- it("should handle string that starts with @", () => {
35
- const [baseKey, version] = splitVersionedKey("@version");
36
- expect(baseKey).toBe("");
37
- expect(version).toBe("version");
38
- });
39
- });
@@ -1,143 +0,0 @@
1
- /**
2
- * Standard error format returned by the Zapier API
3
- */
4
- export interface ApiError {
5
- status: number;
6
- code: string;
7
- title: string;
8
- detail: string;
9
- source?: unknown;
10
- meta?: unknown;
11
- }
12
- /**
13
- * Base options for all error constructors
14
- */
15
- export interface ErrorOptions {
16
- statusCode?: number;
17
- errors?: ApiError[];
18
- cause?: unknown;
19
- response?: unknown;
20
- }
21
- /**
22
- * Base class for all Zapier SDK errors
23
- * Use instanceof ZapierError to check if an error is from the SDK
24
- */
25
- export declare abstract class ZapierError extends Error {
26
- abstract readonly name: string;
27
- statusCode?: number;
28
- errors?: ApiError[];
29
- cause?: unknown;
30
- response?: unknown;
31
- constructor(message: string, options?: ErrorOptions);
32
- }
33
- /**
34
- * Error thrown when API requests fail
35
- */
36
- export declare class ZapierApiError extends ZapierError {
37
- readonly name = "ZapierApiError";
38
- constructor(message: string, options?: ErrorOptions);
39
- }
40
- /**
41
- * Error thrown when an app is not found
42
- */
43
- export declare class ZapierAppNotFoundError extends ZapierError {
44
- readonly name = "ZapierAppNotFoundError";
45
- appKey?: string;
46
- constructor(message: string, options?: ErrorOptions & {
47
- appKey?: string;
48
- });
49
- }
50
- /**
51
- * Error thrown when validation fails (e.g., invalid parameters)
52
- */
53
- export declare class ZapierValidationError extends ZapierError {
54
- readonly name = "ZapierValidationError";
55
- details?: unknown;
56
- constructor(message: string, options?: ErrorOptions & {
57
- details?: unknown;
58
- });
59
- }
60
- /**
61
- * Error for unrecognized/unknown errors that get wrapped by safe functions
62
- */
63
- export declare class ZapierUnknownError extends ZapierError {
64
- readonly name = "ZapierUnknownError";
65
- constructor(message: string, options?: ErrorOptions);
66
- }
67
- /**
68
- * Error thrown for authentication and authorization failures (401/403)
69
- */
70
- export declare class ZapierAuthenticationError extends ZapierError {
71
- readonly name = "ZapierAuthenticationError";
72
- constructor(message: string, options?: ErrorOptions);
73
- }
74
- /**
75
- * Error thrown when a requested resource is not found
76
- */
77
- export declare class ZapierResourceNotFoundError extends ZapierError {
78
- readonly name = "ZapierResourceNotFoundError";
79
- resourceType?: string;
80
- resourceId?: string;
81
- constructor(message: string, options?: ErrorOptions & {
82
- resourceType?: string;
83
- resourceId?: string;
84
- });
85
- }
86
- /**
87
- * Error thrown when required app or implementation configuration is missing
88
- */
89
- export declare class ZapierConfigurationError extends ZapierError {
90
- readonly name = "ZapierConfigurationError";
91
- configType?: string;
92
- constructor(message: string, options?: ErrorOptions & {
93
- configType?: string;
94
- });
95
- }
96
- /**
97
- * Error thrown when code bundling or compilation fails
98
- */
99
- export declare class ZapierBundleError extends ZapierError {
100
- readonly name = "ZapierBundleError";
101
- buildErrors?: string[];
102
- constructor(message: string, options?: ErrorOptions & {
103
- buildErrors?: string[];
104
- });
105
- }
106
- /**
107
- * Error thrown when operations timeout or exceed retry limits
108
- */
109
- export declare class ZapierTimeoutError extends ZapierError {
110
- readonly name = "ZapierTimeoutError";
111
- attempts?: number;
112
- maxAttempts?: number;
113
- constructor(message: string, options?: ErrorOptions & {
114
- attempts?: number;
115
- maxAttempts?: number;
116
- });
117
- }
118
- /**
119
- * Error thrown when action execution fails due to errors returned from the third-party service
120
- * This happens when the Actions API returns a 200 status but includes errors in the response
121
- */
122
- export declare class ZapierActionError extends ZapierError {
123
- readonly name = "ZapierActionError";
124
- appKey?: string;
125
- actionKey?: string;
126
- constructor(message: string, options?: ErrorOptions & {
127
- appKey?: string;
128
- actionKey?: string;
129
- });
130
- get actionErrors(): ApiError[] | undefined;
131
- }
132
- /**
133
- * Error thrown when a resource is not found (404)
134
- */
135
- export declare class ZapierNotFoundError extends ZapierError {
136
- readonly name = "ZapierNotFoundError";
137
- constructor(message: string, options?: ErrorOptions);
138
- }
139
- /**
140
- * Utility function to format error messages for display
141
- */
142
- export declare function formatErrorMessage(error: ZapierError): string;
143
- //# sourceMappingURL=errors.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/types/errors.ts"],"names":[],"mappings":"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"}