featurebase-node 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (795) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/LICENSE +201 -0
  3. package/README.md +356 -0
  4. package/api-promise.d.mts +2 -0
  5. package/api-promise.d.mts.map +1 -0
  6. package/api-promise.d.ts +2 -0
  7. package/api-promise.d.ts.map +1 -0
  8. package/api-promise.js +6 -0
  9. package/api-promise.js.map +1 -0
  10. package/api-promise.mjs +2 -0
  11. package/api-promise.mjs.map +1 -0
  12. package/client.d.mts +274 -0
  13. package/client.d.mts.map +1 -0
  14. package/client.d.ts +274 -0
  15. package/client.d.ts.map +1 -0
  16. package/client.js +569 -0
  17. package/client.js.map +1 -0
  18. package/client.mjs +565 -0
  19. package/client.mjs.map +1 -0
  20. package/core/api-promise.d.mts +46 -0
  21. package/core/api-promise.d.mts.map +1 -0
  22. package/core/api-promise.d.ts +46 -0
  23. package/core/api-promise.d.ts.map +1 -0
  24. package/core/api-promise.js +74 -0
  25. package/core/api-promise.js.map +1 -0
  26. package/core/api-promise.mjs +70 -0
  27. package/core/api-promise.mjs.map +1 -0
  28. package/core/error.d.mts +46 -0
  29. package/core/error.d.mts.map +1 -0
  30. package/core/error.d.ts +46 -0
  31. package/core/error.d.ts.map +1 -0
  32. package/core/error.js +113 -0
  33. package/core/error.js.map +1 -0
  34. package/core/error.mjs +97 -0
  35. package/core/error.mjs.map +1 -0
  36. package/core/resource.d.mts +6 -0
  37. package/core/resource.d.mts.map +1 -0
  38. package/core/resource.d.ts +6 -0
  39. package/core/resource.d.ts.map +1 -0
  40. package/core/resource.js +11 -0
  41. package/core/resource.js.map +1 -0
  42. package/core/resource.mjs +7 -0
  43. package/core/resource.mjs.map +1 -0
  44. package/core/uploads.d.mts +3 -0
  45. package/core/uploads.d.mts.map +1 -0
  46. package/core/uploads.d.ts +3 -0
  47. package/core/uploads.d.ts.map +1 -0
  48. package/core/uploads.js +6 -0
  49. package/core/uploads.js.map +1 -0
  50. package/core/uploads.mjs +2 -0
  51. package/core/uploads.mjs.map +1 -0
  52. package/error.d.mts +2 -0
  53. package/error.d.mts.map +1 -0
  54. package/error.d.ts +2 -0
  55. package/error.d.ts.map +1 -0
  56. package/error.js +6 -0
  57. package/error.js.map +1 -0
  58. package/error.mjs +2 -0
  59. package/error.mjs.map +1 -0
  60. package/index.d.mts +6 -0
  61. package/index.d.mts.map +1 -0
  62. package/index.d.ts +6 -0
  63. package/index.d.ts.map +1 -0
  64. package/index.js +30 -0
  65. package/index.js.map +1 -0
  66. package/index.mjs +7 -0
  67. package/index.mjs.map +1 -0
  68. package/internal/builtin-types.d.mts +73 -0
  69. package/internal/builtin-types.d.mts.map +1 -0
  70. package/internal/builtin-types.d.ts +73 -0
  71. package/internal/builtin-types.d.ts.map +1 -0
  72. package/internal/builtin-types.js +4 -0
  73. package/internal/builtin-types.js.map +1 -0
  74. package/internal/builtin-types.mjs +3 -0
  75. package/internal/builtin-types.mjs.map +1 -0
  76. package/internal/detect-platform.d.mts +15 -0
  77. package/internal/detect-platform.d.mts.map +1 -0
  78. package/internal/detect-platform.d.ts +15 -0
  79. package/internal/detect-platform.d.ts.map +1 -0
  80. package/internal/detect-platform.js +162 -0
  81. package/internal/detect-platform.js.map +1 -0
  82. package/internal/detect-platform.mjs +157 -0
  83. package/internal/detect-platform.mjs.map +1 -0
  84. package/internal/errors.d.mts +3 -0
  85. package/internal/errors.d.mts.map +1 -0
  86. package/internal/errors.d.ts +3 -0
  87. package/internal/errors.d.ts.map +1 -0
  88. package/internal/errors.js +41 -0
  89. package/internal/errors.js.map +1 -0
  90. package/internal/errors.mjs +36 -0
  91. package/internal/errors.mjs.map +1 -0
  92. package/internal/headers.d.mts +20 -0
  93. package/internal/headers.d.mts.map +1 -0
  94. package/internal/headers.d.ts +20 -0
  95. package/internal/headers.d.ts.map +1 -0
  96. package/internal/headers.js +79 -0
  97. package/internal/headers.js.map +1 -0
  98. package/internal/headers.mjs +74 -0
  99. package/internal/headers.mjs.map +1 -0
  100. package/internal/parse.d.mts +12 -0
  101. package/internal/parse.d.mts.map +1 -0
  102. package/internal/parse.d.ts +12 -0
  103. package/internal/parse.d.ts.map +1 -0
  104. package/internal/parse.js +40 -0
  105. package/internal/parse.js.map +1 -0
  106. package/internal/parse.mjs +37 -0
  107. package/internal/parse.mjs.map +1 -0
  108. package/internal/qs/formats.d.mts +7 -0
  109. package/internal/qs/formats.d.mts.map +1 -0
  110. package/internal/qs/formats.d.ts +7 -0
  111. package/internal/qs/formats.d.ts.map +1 -0
  112. package/internal/qs/formats.js +13 -0
  113. package/internal/qs/formats.js.map +1 -0
  114. package/internal/qs/formats.mjs +9 -0
  115. package/internal/qs/formats.mjs.map +1 -0
  116. package/internal/qs/index.d.mts +10 -0
  117. package/internal/qs/index.d.mts.map +1 -0
  118. package/internal/qs/index.d.ts +10 -0
  119. package/internal/qs/index.d.ts.map +1 -0
  120. package/internal/qs/index.js +14 -0
  121. package/internal/qs/index.js.map +1 -0
  122. package/internal/qs/index.mjs +10 -0
  123. package/internal/qs/index.mjs.map +1 -0
  124. package/internal/qs/stringify.d.mts +3 -0
  125. package/internal/qs/stringify.d.mts.map +1 -0
  126. package/internal/qs/stringify.d.ts +3 -0
  127. package/internal/qs/stringify.d.ts.map +1 -0
  128. package/internal/qs/stringify.js +277 -0
  129. package/internal/qs/stringify.js.map +1 -0
  130. package/internal/qs/stringify.mjs +274 -0
  131. package/internal/qs/stringify.mjs.map +1 -0
  132. package/internal/qs/types.d.mts +57 -0
  133. package/internal/qs/types.d.mts.map +1 -0
  134. package/internal/qs/types.d.ts +57 -0
  135. package/internal/qs/types.d.ts.map +1 -0
  136. package/internal/qs/types.js +3 -0
  137. package/internal/qs/types.js.map +1 -0
  138. package/internal/qs/types.mjs +2 -0
  139. package/internal/qs/types.mjs.map +1 -0
  140. package/internal/qs/utils.d.mts +15 -0
  141. package/internal/qs/utils.d.mts.map +1 -0
  142. package/internal/qs/utils.d.ts +15 -0
  143. package/internal/qs/utils.d.ts.map +1 -0
  144. package/internal/qs/utils.js +230 -0
  145. package/internal/qs/utils.js.map +1 -0
  146. package/internal/qs/utils.mjs +217 -0
  147. package/internal/qs/utils.mjs.map +1 -0
  148. package/internal/request-options.d.mts +75 -0
  149. package/internal/request-options.d.mts.map +1 -0
  150. package/internal/request-options.d.ts +75 -0
  151. package/internal/request-options.d.ts.map +1 -0
  152. package/internal/request-options.js +14 -0
  153. package/internal/request-options.js.map +1 -0
  154. package/internal/request-options.mjs +10 -0
  155. package/internal/request-options.mjs.map +1 -0
  156. package/internal/shim-types.d.mts +17 -0
  157. package/internal/shim-types.d.mts.map +1 -0
  158. package/internal/shim-types.d.ts +17 -0
  159. package/internal/shim-types.d.ts.map +1 -0
  160. package/internal/shim-types.js +4 -0
  161. package/internal/shim-types.js.map +1 -0
  162. package/internal/shim-types.mjs +3 -0
  163. package/internal/shim-types.mjs.map +1 -0
  164. package/internal/shims.d.mts +20 -0
  165. package/internal/shims.d.mts.map +1 -0
  166. package/internal/shims.d.ts +20 -0
  167. package/internal/shims.d.ts.map +1 -0
  168. package/internal/shims.js +92 -0
  169. package/internal/shims.js.map +1 -0
  170. package/internal/shims.mjs +85 -0
  171. package/internal/shims.mjs.map +1 -0
  172. package/internal/to-file.d.mts +45 -0
  173. package/internal/to-file.d.mts.map +1 -0
  174. package/internal/to-file.d.ts +45 -0
  175. package/internal/to-file.d.ts.map +1 -0
  176. package/internal/to-file.js +91 -0
  177. package/internal/to-file.js.map +1 -0
  178. package/internal/to-file.mjs +88 -0
  179. package/internal/to-file.mjs.map +1 -0
  180. package/internal/tslib.js +81 -0
  181. package/internal/tslib.mjs +17 -0
  182. package/internal/types.d.mts +69 -0
  183. package/internal/types.d.mts.map +1 -0
  184. package/internal/types.d.ts +69 -0
  185. package/internal/types.d.ts.map +1 -0
  186. package/internal/types.js +4 -0
  187. package/internal/types.js.map +1 -0
  188. package/internal/types.mjs +3 -0
  189. package/internal/types.mjs.map +1 -0
  190. package/internal/uploads.d.mts +42 -0
  191. package/internal/uploads.d.mts.map +1 -0
  192. package/internal/uploads.d.ts +42 -0
  193. package/internal/uploads.d.ts.map +1 -0
  194. package/internal/uploads.js +141 -0
  195. package/internal/uploads.js.map +1 -0
  196. package/internal/uploads.mjs +131 -0
  197. package/internal/uploads.mjs.map +1 -0
  198. package/internal/utils/base64.d.mts +3 -0
  199. package/internal/utils/base64.d.mts.map +1 -0
  200. package/internal/utils/base64.d.ts +3 -0
  201. package/internal/utils/base64.d.ts.map +1 -0
  202. package/internal/utils/base64.js +38 -0
  203. package/internal/utils/base64.js.map +1 -0
  204. package/internal/utils/base64.mjs +33 -0
  205. package/internal/utils/base64.mjs.map +1 -0
  206. package/internal/utils/bytes.d.mts +4 -0
  207. package/internal/utils/bytes.d.mts.map +1 -0
  208. package/internal/utils/bytes.d.ts +4 -0
  209. package/internal/utils/bytes.d.ts.map +1 -0
  210. package/internal/utils/bytes.js +31 -0
  211. package/internal/utils/bytes.js.map +1 -0
  212. package/internal/utils/bytes.mjs +26 -0
  213. package/internal/utils/bytes.mjs.map +1 -0
  214. package/internal/utils/env.d.mts +9 -0
  215. package/internal/utils/env.d.mts.map +1 -0
  216. package/internal/utils/env.d.ts +9 -0
  217. package/internal/utils/env.d.ts.map +1 -0
  218. package/internal/utils/env.js +22 -0
  219. package/internal/utils/env.js.map +1 -0
  220. package/internal/utils/env.mjs +18 -0
  221. package/internal/utils/env.mjs.map +1 -0
  222. package/internal/utils/log.d.mts +37 -0
  223. package/internal/utils/log.d.mts.map +1 -0
  224. package/internal/utils/log.d.ts +37 -0
  225. package/internal/utils/log.d.ts.map +1 -0
  226. package/internal/utils/log.js +85 -0
  227. package/internal/utils/log.js.map +1 -0
  228. package/internal/utils/log.mjs +79 -0
  229. package/internal/utils/log.mjs.map +1 -0
  230. package/internal/utils/path.d.mts +15 -0
  231. package/internal/utils/path.d.mts.map +1 -0
  232. package/internal/utils/path.d.ts +15 -0
  233. package/internal/utils/path.d.ts.map +1 -0
  234. package/internal/utils/path.js +79 -0
  235. package/internal/utils/path.js.map +1 -0
  236. package/internal/utils/path.mjs +74 -0
  237. package/internal/utils/path.mjs.map +1 -0
  238. package/internal/utils/query.d.mts +2 -0
  239. package/internal/utils/query.d.mts.map +1 -0
  240. package/internal/utils/query.d.ts +2 -0
  241. package/internal/utils/query.d.ts.map +1 -0
  242. package/internal/utils/query.js +10 -0
  243. package/internal/utils/query.js.map +1 -0
  244. package/internal/utils/query.mjs +6 -0
  245. package/internal/utils/query.mjs.map +1 -0
  246. package/internal/utils/sleep.d.mts +2 -0
  247. package/internal/utils/sleep.d.mts.map +1 -0
  248. package/internal/utils/sleep.d.ts +2 -0
  249. package/internal/utils/sleep.d.ts.map +1 -0
  250. package/internal/utils/sleep.js +7 -0
  251. package/internal/utils/sleep.js.map +1 -0
  252. package/internal/utils/sleep.mjs +3 -0
  253. package/internal/utils/sleep.mjs.map +1 -0
  254. package/internal/utils/uuid.d.mts +5 -0
  255. package/internal/utils/uuid.d.mts.map +1 -0
  256. package/internal/utils/uuid.d.ts +5 -0
  257. package/internal/utils/uuid.d.ts.map +1 -0
  258. package/internal/utils/uuid.js +19 -0
  259. package/internal/utils/uuid.js.map +1 -0
  260. package/internal/utils/uuid.mjs +15 -0
  261. package/internal/utils/uuid.mjs.map +1 -0
  262. package/internal/utils/values.d.mts +18 -0
  263. package/internal/utils/values.d.mts.map +1 -0
  264. package/internal/utils/values.d.ts +18 -0
  265. package/internal/utils/values.d.ts.map +1 -0
  266. package/internal/utils/values.js +112 -0
  267. package/internal/utils/values.js.map +1 -0
  268. package/internal/utils/values.mjs +94 -0
  269. package/internal/utils/values.mjs.map +1 -0
  270. package/internal/utils.d.mts +8 -0
  271. package/internal/utils.d.mts.map +1 -0
  272. package/internal/utils.d.ts +8 -0
  273. package/internal/utils.d.ts.map +1 -0
  274. package/internal/utils.js +12 -0
  275. package/internal/utils.js.map +1 -0
  276. package/internal/utils.mjs +9 -0
  277. package/internal/utils.mjs.map +1 -0
  278. package/package.json +143 -0
  279. package/resource.d.mts +2 -0
  280. package/resource.d.mts.map +1 -0
  281. package/resource.d.ts +2 -0
  282. package/resource.d.ts.map +1 -0
  283. package/resource.js +6 -0
  284. package/resource.js.map +1 -0
  285. package/resource.mjs +2 -0
  286. package/resource.mjs.map +1 -0
  287. package/resources/admins.d.mts +437 -0
  288. package/resources/admins.d.mts.map +1 -0
  289. package/resources/admins.d.ts +437 -0
  290. package/resources/admins.d.ts.map +1 -0
  291. package/resources/admins.js +157 -0
  292. package/resources/admins.js.map +1 -0
  293. package/resources/admins.mjs +153 -0
  294. package/resources/admins.mjs.map +1 -0
  295. package/resources/boards.d.mts +202 -0
  296. package/resources/boards.d.mts.map +1 -0
  297. package/resources/boards.d.ts +202 -0
  298. package/resources/boards.d.ts.map +1 -0
  299. package/resources/boards.js +52 -0
  300. package/resources/boards.js.map +1 -0
  301. package/resources/boards.mjs +48 -0
  302. package/resources/boards.mjs.map +1 -0
  303. package/resources/brands.d.mts +180 -0
  304. package/resources/brands.d.mts.map +1 -0
  305. package/resources/brands.d.ts +180 -0
  306. package/resources/brands.d.ts.map +1 -0
  307. package/resources/brands.js +130 -0
  308. package/resources/brands.js.map +1 -0
  309. package/resources/brands.mjs +126 -0
  310. package/resources/brands.mjs.map +1 -0
  311. package/resources/changelogs/changelogs.d.mts +723 -0
  312. package/resources/changelogs/changelogs.d.mts.map +1 -0
  313. package/resources/changelogs/changelogs.d.ts +723 -0
  314. package/resources/changelogs/changelogs.d.ts.map +1 -0
  315. package/resources/changelogs/changelogs.js +406 -0
  316. package/resources/changelogs/changelogs.js.map +1 -0
  317. package/resources/changelogs/changelogs.mjs +401 -0
  318. package/resources/changelogs/changelogs.mjs.map +1 -0
  319. package/resources/changelogs/index.d.mts +3 -0
  320. package/resources/changelogs/index.d.mts.map +1 -0
  321. package/resources/changelogs/index.d.ts +3 -0
  322. package/resources/changelogs/index.d.ts.map +1 -0
  323. package/resources/changelogs/index.js +9 -0
  324. package/resources/changelogs/index.js.map +1 -0
  325. package/resources/changelogs/index.mjs +4 -0
  326. package/resources/changelogs/index.mjs.map +1 -0
  327. package/resources/changelogs/subscribers.d.mts +145 -0
  328. package/resources/changelogs/subscribers.d.mts.map +1 -0
  329. package/resources/changelogs/subscribers.d.ts +145 -0
  330. package/resources/changelogs/subscribers.d.ts.map +1 -0
  331. package/resources/changelogs/subscribers.js +119 -0
  332. package/resources/changelogs/subscribers.js.map +1 -0
  333. package/resources/changelogs/subscribers.mjs +115 -0
  334. package/resources/changelogs/subscribers.mjs.map +1 -0
  335. package/resources/changelogs.d.mts +2 -0
  336. package/resources/changelogs.d.mts.map +1 -0
  337. package/resources/changelogs.d.ts +2 -0
  338. package/resources/changelogs.d.ts.map +1 -0
  339. package/resources/changelogs.js +6 -0
  340. package/resources/changelogs.js.map +1 -0
  341. package/resources/changelogs.mjs +3 -0
  342. package/resources/changelogs.mjs.map +1 -0
  343. package/resources/comments.d.mts +632 -0
  344. package/resources/comments.d.mts.map +1 -0
  345. package/resources/comments.d.ts +632 -0
  346. package/resources/comments.d.ts.map +1 -0
  347. package/resources/comments.js +397 -0
  348. package/resources/comments.js.map +1 -0
  349. package/resources/comments.mjs +393 -0
  350. package/resources/comments.mjs.map +1 -0
  351. package/resources/companies/companies.d.mts +497 -0
  352. package/resources/companies/companies.d.mts.map +1 -0
  353. package/resources/companies/companies.d.ts +497 -0
  354. package/resources/companies/companies.d.ts.map +1 -0
  355. package/resources/companies/companies.js +368 -0
  356. package/resources/companies/companies.js.map +1 -0
  357. package/resources/companies/companies.mjs +363 -0
  358. package/resources/companies/companies.mjs.map +1 -0
  359. package/resources/companies/contacts.d.mts +236 -0
  360. package/resources/companies/contacts.d.mts.map +1 -0
  361. package/resources/companies/contacts.d.ts +236 -0
  362. package/resources/companies/contacts.d.ts.map +1 -0
  363. package/resources/companies/contacts.js +218 -0
  364. package/resources/companies/contacts.js.map +1 -0
  365. package/resources/companies/contacts.mjs +214 -0
  366. package/resources/companies/contacts.mjs.map +1 -0
  367. package/resources/companies/index.d.mts +3 -0
  368. package/resources/companies/index.d.mts.map +1 -0
  369. package/resources/companies/index.d.ts +3 -0
  370. package/resources/companies/index.d.ts.map +1 -0
  371. package/resources/companies/index.js +9 -0
  372. package/resources/companies/index.js.map +1 -0
  373. package/resources/companies/index.mjs +4 -0
  374. package/resources/companies/index.mjs.map +1 -0
  375. package/resources/companies.d.mts +2 -0
  376. package/resources/companies.d.mts.map +1 -0
  377. package/resources/companies.d.ts +2 -0
  378. package/resources/companies.d.ts.map +1 -0
  379. package/resources/companies.js +6 -0
  380. package/resources/companies.js.map +1 -0
  381. package/resources/companies.mjs +3 -0
  382. package/resources/companies.mjs.map +1 -0
  383. package/resources/contacts/by-user-id/by-user-id.d.mts +147 -0
  384. package/resources/contacts/by-user-id/by-user-id.d.mts.map +1 -0
  385. package/resources/contacts/by-user-id/by-user-id.d.ts +147 -0
  386. package/resources/contacts/by-user-id/by-user-id.d.ts.map +1 -0
  387. package/resources/contacts/by-user-id/by-user-id.js +152 -0
  388. package/resources/contacts/by-user-id/by-user-id.js.map +1 -0
  389. package/resources/contacts/by-user-id/by-user-id.mjs +147 -0
  390. package/resources/contacts/by-user-id/by-user-id.mjs.map +1 -0
  391. package/resources/contacts/by-user-id/email-preferences.d.mts +199 -0
  392. package/resources/contacts/by-user-id/email-preferences.d.mts.map +1 -0
  393. package/resources/contacts/by-user-id/email-preferences.d.ts +199 -0
  394. package/resources/contacts/by-user-id/email-preferences.d.ts.map +1 -0
  395. package/resources/contacts/by-user-id/email-preferences.js +176 -0
  396. package/resources/contacts/by-user-id/email-preferences.js.map +1 -0
  397. package/resources/contacts/by-user-id/email-preferences.mjs +172 -0
  398. package/resources/contacts/by-user-id/email-preferences.mjs.map +1 -0
  399. package/resources/contacts/by-user-id/index.d.mts +3 -0
  400. package/resources/contacts/by-user-id/index.d.mts.map +1 -0
  401. package/resources/contacts/by-user-id/index.d.ts +3 -0
  402. package/resources/contacts/by-user-id/index.d.ts.map +1 -0
  403. package/resources/contacts/by-user-id/index.js +9 -0
  404. package/resources/contacts/by-user-id/index.js.map +1 -0
  405. package/resources/contacts/by-user-id/index.mjs +4 -0
  406. package/resources/contacts/by-user-id/index.mjs.map +1 -0
  407. package/resources/contacts/by-user-id.d.mts +2 -0
  408. package/resources/contacts/by-user-id.d.mts.map +1 -0
  409. package/resources/contacts/by-user-id.d.ts +2 -0
  410. package/resources/contacts/by-user-id.d.ts.map +1 -0
  411. package/resources/contacts/by-user-id.js +6 -0
  412. package/resources/contacts/by-user-id.js.map +1 -0
  413. package/resources/contacts/by-user-id.mjs +3 -0
  414. package/resources/contacts/by-user-id.mjs.map +1 -0
  415. package/resources/contacts/contacts.d.mts +708 -0
  416. package/resources/contacts/contacts.d.mts.map +1 -0
  417. package/resources/contacts/contacts.d.ts +708 -0
  418. package/resources/contacts/contacts.d.ts.map +1 -0
  419. package/resources/contacts/contacts.js +444 -0
  420. package/resources/contacts/contacts.js.map +1 -0
  421. package/resources/contacts/contacts.mjs +439 -0
  422. package/resources/contacts/contacts.mjs.map +1 -0
  423. package/resources/contacts/email-preferences.d.mts +334 -0
  424. package/resources/contacts/email-preferences.d.mts.map +1 -0
  425. package/resources/contacts/email-preferences.d.ts +334 -0
  426. package/resources/contacts/email-preferences.d.ts.map +1 -0
  427. package/resources/contacts/email-preferences.js +219 -0
  428. package/resources/contacts/email-preferences.js.map +1 -0
  429. package/resources/contacts/email-preferences.mjs +215 -0
  430. package/resources/contacts/email-preferences.mjs.map +1 -0
  431. package/resources/contacts/index.d.mts +4 -0
  432. package/resources/contacts/index.d.mts.map +1 -0
  433. package/resources/contacts/index.d.ts +4 -0
  434. package/resources/contacts/index.d.ts.map +1 -0
  435. package/resources/contacts/index.js +11 -0
  436. package/resources/contacts/index.js.map +1 -0
  437. package/resources/contacts/index.mjs +5 -0
  438. package/resources/contacts/index.mjs.map +1 -0
  439. package/resources/contacts.d.mts +2 -0
  440. package/resources/contacts.d.mts.map +1 -0
  441. package/resources/contacts.d.ts +2 -0
  442. package/resources/contacts.d.ts.map +1 -0
  443. package/resources/contacts.js +6 -0
  444. package/resources/contacts.js.map +1 -0
  445. package/resources/contacts.mjs +3 -0
  446. package/resources/contacts.mjs.map +1 -0
  447. package/resources/conversations/conversations.d.mts +2235 -0
  448. package/resources/conversations/conversations.d.mts.map +1 -0
  449. package/resources/conversations/conversations.d.ts +2235 -0
  450. package/resources/conversations/conversations.d.ts.map +1 -0
  451. package/resources/conversations/conversations.js +753 -0
  452. package/resources/conversations/conversations.js.map +1 -0
  453. package/resources/conversations/conversations.mjs +748 -0
  454. package/resources/conversations/conversations.mjs.map +1 -0
  455. package/resources/conversations/index.d.mts +4 -0
  456. package/resources/conversations/index.d.mts.map +1 -0
  457. package/resources/conversations/index.d.ts +4 -0
  458. package/resources/conversations/index.d.ts.map +1 -0
  459. package/resources/conversations/index.js +11 -0
  460. package/resources/conversations/index.js.map +1 -0
  461. package/resources/conversations/index.mjs +5 -0
  462. package/resources/conversations/index.mjs.map +1 -0
  463. package/resources/conversations/participants.d.mts +217 -0
  464. package/resources/conversations/participants.d.mts.map +1 -0
  465. package/resources/conversations/participants.d.ts +217 -0
  466. package/resources/conversations/participants.d.ts.map +1 -0
  467. package/resources/conversations/participants.js +185 -0
  468. package/resources/conversations/participants.js.map +1 -0
  469. package/resources/conversations/participants.mjs +181 -0
  470. package/resources/conversations/participants.mjs.map +1 -0
  471. package/resources/conversations/tags.d.mts +200 -0
  472. package/resources/conversations/tags.d.mts.map +1 -0
  473. package/resources/conversations/tags.d.ts +200 -0
  474. package/resources/conversations/tags.d.ts.map +1 -0
  475. package/resources/conversations/tags.js +138 -0
  476. package/resources/conversations/tags.js.map +1 -0
  477. package/resources/conversations/tags.mjs +134 -0
  478. package/resources/conversations/tags.mjs.map +1 -0
  479. package/resources/conversations.d.mts +2 -0
  480. package/resources/conversations.d.mts.map +1 -0
  481. package/resources/conversations.d.ts +2 -0
  482. package/resources/conversations.d.ts.map +1 -0
  483. package/resources/conversations.js +6 -0
  484. package/resources/conversations.js.map +1 -0
  485. package/resources/conversations.mjs +3 -0
  486. package/resources/conversations.mjs.map +1 -0
  487. package/resources/custom-fields.d.mts +189 -0
  488. package/resources/custom-fields.d.mts.map +1 -0
  489. package/resources/custom-fields.d.ts +189 -0
  490. package/resources/custom-fields.d.ts.map +1 -0
  491. package/resources/custom-fields.js +92 -0
  492. package/resources/custom-fields.js.map +1 -0
  493. package/resources/custom-fields.mjs +88 -0
  494. package/resources/custom-fields.mjs.map +1 -0
  495. package/resources/help-center/articles.d.mts +770 -0
  496. package/resources/help-center/articles.d.mts.map +1 -0
  497. package/resources/help-center/articles.d.ts +770 -0
  498. package/resources/help-center/articles.d.ts.map +1 -0
  499. package/resources/help-center/articles.js +296 -0
  500. package/resources/help-center/articles.js.map +1 -0
  501. package/resources/help-center/articles.mjs +292 -0
  502. package/resources/help-center/articles.mjs.map +1 -0
  503. package/resources/help-center/collections.d.mts +669 -0
  504. package/resources/help-center/collections.d.mts.map +1 -0
  505. package/resources/help-center/collections.d.ts +669 -0
  506. package/resources/help-center/collections.d.ts.map +1 -0
  507. package/resources/help-center/collections.js +278 -0
  508. package/resources/help-center/collections.js.map +1 -0
  509. package/resources/help-center/collections.mjs +274 -0
  510. package/resources/help-center/collections.mjs.map +1 -0
  511. package/resources/help-center/help-center.d.mts +22 -0
  512. package/resources/help-center/help-center.d.mts.map +1 -0
  513. package/resources/help-center/help-center.d.ts +22 -0
  514. package/resources/help-center/help-center.d.ts.map +1 -0
  515. package/resources/help-center/help-center.js +29 -0
  516. package/resources/help-center/help-center.js.map +1 -0
  517. package/resources/help-center/help-center.mjs +24 -0
  518. package/resources/help-center/help-center.mjs.map +1 -0
  519. package/resources/help-center/help-centers.d.mts +312 -0
  520. package/resources/help-center/help-centers.d.mts.map +1 -0
  521. package/resources/help-center/help-centers.d.ts +312 -0
  522. package/resources/help-center/help-centers.d.ts.map +1 -0
  523. package/resources/help-center/help-centers.js +111 -0
  524. package/resources/help-center/help-centers.js.map +1 -0
  525. package/resources/help-center/help-centers.mjs +107 -0
  526. package/resources/help-center/help-centers.mjs.map +1 -0
  527. package/resources/help-center/index.d.mts +6 -0
  528. package/resources/help-center/index.d.mts.map +1 -0
  529. package/resources/help-center/index.d.ts +6 -0
  530. package/resources/help-center/index.d.ts.map +1 -0
  531. package/resources/help-center/index.js +15 -0
  532. package/resources/help-center/index.js.map +1 -0
  533. package/resources/help-center/index.mjs +7 -0
  534. package/resources/help-center/index.mjs.map +1 -0
  535. package/resources/help-center/redirect-rules.d.mts +417 -0
  536. package/resources/help-center/redirect-rules.d.mts.map +1 -0
  537. package/resources/help-center/redirect-rules.d.ts +417 -0
  538. package/resources/help-center/redirect-rules.d.ts.map +1 -0
  539. package/resources/help-center/redirect-rules.js +297 -0
  540. package/resources/help-center/redirect-rules.js.map +1 -0
  541. package/resources/help-center/redirect-rules.mjs +293 -0
  542. package/resources/help-center/redirect-rules.mjs.map +1 -0
  543. package/resources/help-center.d.mts +2 -0
  544. package/resources/help-center.d.mts.map +1 -0
  545. package/resources/help-center.d.ts +2 -0
  546. package/resources/help-center.d.ts.map +1 -0
  547. package/resources/help-center.js +6 -0
  548. package/resources/help-center.js.map +1 -0
  549. package/resources/help-center.mjs +3 -0
  550. package/resources/help-center.mjs.map +1 -0
  551. package/resources/index.d.mts +18 -0
  552. package/resources/index.d.mts.map +1 -0
  553. package/resources/index.d.ts +18 -0
  554. package/resources/index.d.ts.map +1 -0
  555. package/resources/index.js +39 -0
  556. package/resources/index.js.map +1 -0
  557. package/resources/index.mjs +19 -0
  558. package/resources/index.mjs.map +1 -0
  559. package/resources/post-statuses.d.mts +74 -0
  560. package/resources/post-statuses.d.mts.map +1 -0
  561. package/resources/post-statuses.d.ts +74 -0
  562. package/resources/post-statuses.d.ts.map +1 -0
  563. package/resources/post-statuses.js +53 -0
  564. package/resources/post-statuses.js.map +1 -0
  565. package/resources/post-statuses.mjs +49 -0
  566. package/resources/post-statuses.mjs.map +1 -0
  567. package/resources/posts/index.d.mts +3 -0
  568. package/resources/posts/index.d.mts.map +1 -0
  569. package/resources/posts/index.d.ts +3 -0
  570. package/resources/posts/index.d.ts.map +1 -0
  571. package/resources/posts/index.js +9 -0
  572. package/resources/posts/index.js.map +1 -0
  573. package/resources/posts/index.mjs +4 -0
  574. package/resources/posts/index.mjs.map +1 -0
  575. package/resources/posts/posts.d.mts +799 -0
  576. package/resources/posts/posts.d.mts.map +1 -0
  577. package/resources/posts/posts.d.ts +799 -0
  578. package/resources/posts/posts.d.ts.map +1 -0
  579. package/resources/posts/posts.js +271 -0
  580. package/resources/posts/posts.js.map +1 -0
  581. package/resources/posts/posts.mjs +266 -0
  582. package/resources/posts/posts.mjs.map +1 -0
  583. package/resources/posts/voters.d.mts +359 -0
  584. package/resources/posts/voters.d.mts.map +1 -0
  585. package/resources/posts/voters.d.ts +359 -0
  586. package/resources/posts/voters.d.ts.map +1 -0
  587. package/resources/posts/voters.js +171 -0
  588. package/resources/posts/voters.js.map +1 -0
  589. package/resources/posts/voters.mjs +167 -0
  590. package/resources/posts/voters.mjs.map +1 -0
  591. package/resources/posts.d.mts +2 -0
  592. package/resources/posts.d.mts.map +1 -0
  593. package/resources/posts.d.ts +2 -0
  594. package/resources/posts.d.ts.map +1 -0
  595. package/resources/posts.js +6 -0
  596. package/resources/posts.js.map +1 -0
  597. package/resources/posts.mjs +3 -0
  598. package/resources/posts.mjs.map +1 -0
  599. package/resources/surveys.d.mts +451 -0
  600. package/resources/surveys.d.mts.map +1 -0
  601. package/resources/surveys.d.ts +451 -0
  602. package/resources/surveys.d.ts.map +1 -0
  603. package/resources/surveys.js +149 -0
  604. package/resources/surveys.js.map +1 -0
  605. package/resources/surveys.mjs +145 -0
  606. package/resources/surveys.mjs.map +1 -0
  607. package/resources/tags.d.mts +147 -0
  608. package/resources/tags.d.mts.map +1 -0
  609. package/resources/tags.d.ts +147 -0
  610. package/resources/tags.d.ts.map +1 -0
  611. package/resources/tags.js +100 -0
  612. package/resources/tags.js.map +1 -0
  613. package/resources/tags.mjs +96 -0
  614. package/resources/tags.mjs.map +1 -0
  615. package/resources/teams.d.mts +165 -0
  616. package/resources/teams.d.mts.map +1 -0
  617. package/resources/teams.d.ts +165 -0
  618. package/resources/teams.d.ts.map +1 -0
  619. package/resources/teams.js +120 -0
  620. package/resources/teams.js.map +1 -0
  621. package/resources/teams.mjs +116 -0
  622. package/resources/teams.mjs.map +1 -0
  623. package/resources/tickets/categories.d.mts +63 -0
  624. package/resources/tickets/categories.d.mts.map +1 -0
  625. package/resources/tickets/categories.d.ts +63 -0
  626. package/resources/tickets/categories.d.ts.map +1 -0
  627. package/resources/tickets/categories.js +67 -0
  628. package/resources/tickets/categories.js.map +1 -0
  629. package/resources/tickets/categories.mjs +63 -0
  630. package/resources/tickets/categories.mjs.map +1 -0
  631. package/resources/tickets/custom-fields.d.mts +80 -0
  632. package/resources/tickets/custom-fields.d.mts.map +1 -0
  633. package/resources/tickets/custom-fields.d.ts +80 -0
  634. package/resources/tickets/custom-fields.d.ts.map +1 -0
  635. package/resources/tickets/custom-fields.js +85 -0
  636. package/resources/tickets/custom-fields.js.map +1 -0
  637. package/resources/tickets/custom-fields.mjs +81 -0
  638. package/resources/tickets/custom-fields.mjs.map +1 -0
  639. package/resources/tickets/index.d.mts +5 -0
  640. package/resources/tickets/index.d.mts.map +1 -0
  641. package/resources/tickets/index.d.ts +5 -0
  642. package/resources/tickets/index.d.ts.map +1 -0
  643. package/resources/tickets/index.js +13 -0
  644. package/resources/tickets/index.js.map +1 -0
  645. package/resources/tickets/index.mjs +6 -0
  646. package/resources/tickets/index.mjs.map +1 -0
  647. package/resources/tickets/statuses.d.mts +59 -0
  648. package/resources/tickets/statuses.d.mts.map +1 -0
  649. package/resources/tickets/statuses.d.ts +59 -0
  650. package/resources/tickets/statuses.d.ts.map +1 -0
  651. package/resources/tickets/statuses.js +63 -0
  652. package/resources/tickets/statuses.js.map +1 -0
  653. package/resources/tickets/statuses.mjs +59 -0
  654. package/resources/tickets/statuses.mjs.map +1 -0
  655. package/resources/tickets/tickets.d.mts +794 -0
  656. package/resources/tickets/tickets.d.mts.map +1 -0
  657. package/resources/tickets/tickets.d.ts +794 -0
  658. package/resources/tickets/tickets.d.ts.map +1 -0
  659. package/resources/tickets/tickets.js +327 -0
  660. package/resources/tickets/tickets.js.map +1 -0
  661. package/resources/tickets/tickets.mjs +322 -0
  662. package/resources/tickets/tickets.mjs.map +1 -0
  663. package/resources/tickets.d.mts +2 -0
  664. package/resources/tickets.d.mts.map +1 -0
  665. package/resources/tickets.d.ts +2 -0
  666. package/resources/tickets.d.ts.map +1 -0
  667. package/resources/tickets.js +6 -0
  668. package/resources/tickets.js.map +1 -0
  669. package/resources/tickets.mjs +3 -0
  670. package/resources/tickets.mjs.map +1 -0
  671. package/resources/webhooks.d.mts +626 -0
  672. package/resources/webhooks.d.mts.map +1 -0
  673. package/resources/webhooks.d.ts +626 -0
  674. package/resources/webhooks.d.ts.map +1 -0
  675. package/resources/webhooks.js +442 -0
  676. package/resources/webhooks.js.map +1 -0
  677. package/resources/webhooks.mjs +438 -0
  678. package/resources/webhooks.mjs.map +1 -0
  679. package/resources.d.mts +2 -0
  680. package/resources.d.mts.map +1 -0
  681. package/resources.d.ts +2 -0
  682. package/resources.d.ts.map +1 -0
  683. package/resources.js +5 -0
  684. package/resources.js.map +1 -0
  685. package/resources.mjs +2 -0
  686. package/resources.mjs.map +1 -0
  687. package/src/api-promise.ts +2 -0
  688. package/src/client.ts +1169 -0
  689. package/src/core/README.md +3 -0
  690. package/src/core/api-promise.ts +92 -0
  691. package/src/core/error.ts +130 -0
  692. package/src/core/resource.ts +11 -0
  693. package/src/core/uploads.ts +2 -0
  694. package/src/error.ts +2 -0
  695. package/src/index.ts +22 -0
  696. package/src/internal/README.md +3 -0
  697. package/src/internal/builtin-types.ts +93 -0
  698. package/src/internal/detect-platform.ts +196 -0
  699. package/src/internal/errors.ts +33 -0
  700. package/src/internal/headers.ts +97 -0
  701. package/src/internal/parse.ts +56 -0
  702. package/src/internal/qs/LICENSE.md +13 -0
  703. package/src/internal/qs/README.md +3 -0
  704. package/src/internal/qs/formats.ts +10 -0
  705. package/src/internal/qs/index.ts +13 -0
  706. package/src/internal/qs/stringify.ts +385 -0
  707. package/src/internal/qs/types.ts +71 -0
  708. package/src/internal/qs/utils.ts +265 -0
  709. package/src/internal/request-options.ts +91 -0
  710. package/src/internal/shim-types.ts +26 -0
  711. package/src/internal/shims.ts +107 -0
  712. package/src/internal/to-file.ts +154 -0
  713. package/src/internal/types.ts +95 -0
  714. package/src/internal/uploads.ts +187 -0
  715. package/src/internal/utils/base64.ts +40 -0
  716. package/src/internal/utils/bytes.ts +32 -0
  717. package/src/internal/utils/env.ts +18 -0
  718. package/src/internal/utils/log.ts +126 -0
  719. package/src/internal/utils/path.ts +88 -0
  720. package/src/internal/utils/query.ts +7 -0
  721. package/src/internal/utils/sleep.ts +3 -0
  722. package/src/internal/utils/uuid.ts +17 -0
  723. package/src/internal/utils/values.ts +105 -0
  724. package/src/internal/utils.ts +9 -0
  725. package/src/lib/.keep +4 -0
  726. package/src/resource.ts +2 -0
  727. package/src/resources/admins.ts +557 -0
  728. package/src/resources/boards.ts +259 -0
  729. package/src/resources/brands.ts +232 -0
  730. package/src/resources/changelogs/changelogs.ts +1139 -0
  731. package/src/resources/changelogs/index.ts +23 -0
  732. package/src/resources/changelogs/subscribers.ts +226 -0
  733. package/src/resources/changelogs.ts +3 -0
  734. package/src/resources/comments.ts +786 -0
  735. package/src/resources/companies/companies.ts +632 -0
  736. package/src/resources/companies/contacts.ts +299 -0
  737. package/src/resources/companies/index.ts +21 -0
  738. package/src/resources/companies.ts +3 -0
  739. package/src/resources/contacts/by-user-id/by-user-id.ts +200 -0
  740. package/src/resources/contacts/by-user-id/email-preferences.ts +243 -0
  741. package/src/resources/contacts/by-user-id/index.ts +13 -0
  742. package/src/resources/contacts/by-user-id.ts +3 -0
  743. package/src/resources/contacts/contacts.ts +908 -0
  744. package/src/resources/contacts/email-preferences.ts +399 -0
  745. package/src/resources/contacts/index.ts +32 -0
  746. package/src/resources/contacts.ts +3 -0
  747. package/src/resources/conversations/conversations.ts +2721 -0
  748. package/src/resources/conversations/index.ts +31 -0
  749. package/src/resources/conversations/participants.ts +263 -0
  750. package/src/resources/conversations/tags.ts +252 -0
  751. package/src/resources/conversations.ts +3 -0
  752. package/src/resources/custom-fields.ts +249 -0
  753. package/src/resources/help-center/articles.ts +1231 -0
  754. package/src/resources/help-center/collections.ts +1065 -0
  755. package/src/resources/help-center/help-center.ts +125 -0
  756. package/src/resources/help-center/help-centers.ts +558 -0
  757. package/src/resources/help-center/index.ts +52 -0
  758. package/src/resources/help-center/redirect-rules.ts +711 -0
  759. package/src/resources/help-center.ts +3 -0
  760. package/src/resources/index.ts +179 -0
  761. package/src/resources/post-statuses.ts +119 -0
  762. package/src/resources/posts/index.ts +22 -0
  763. package/src/resources/posts/posts.ts +1019 -0
  764. package/src/resources/posts/voters.ts +453 -0
  765. package/src/resources/posts.ts +3 -0
  766. package/src/resources/surveys.ts +576 -0
  767. package/src/resources/tags.ts +226 -0
  768. package/src/resources/teams.ts +213 -0
  769. package/src/resources/tickets/categories.ts +101 -0
  770. package/src/resources/tickets/custom-fields.ts +116 -0
  771. package/src/resources/tickets/index.ts +28 -0
  772. package/src/resources/tickets/statuses.ts +97 -0
  773. package/src/resources/tickets/tickets.ts +1019 -0
  774. package/src/resources/tickets.ts +3 -0
  775. package/src/resources/webhooks.ts +850 -0
  776. package/src/resources.ts +1 -0
  777. package/src/tsconfig.json +11 -0
  778. package/src/uploads.ts +2 -0
  779. package/src/version.ts +1 -0
  780. package/uploads.d.mts +2 -0
  781. package/uploads.d.mts.map +1 -0
  782. package/uploads.d.ts +2 -0
  783. package/uploads.d.ts.map +1 -0
  784. package/uploads.js +6 -0
  785. package/uploads.js.map +1 -0
  786. package/uploads.mjs +2 -0
  787. package/uploads.mjs.map +1 -0
  788. package/version.d.mts +2 -0
  789. package/version.d.mts.map +1 -0
  790. package/version.d.ts +2 -0
  791. package/version.d.ts.map +1 -0
  792. package/version.js +5 -0
  793. package/version.js.map +1 -0
  794. package/version.mjs +2 -0
  795. package/version.mjs.map +1 -0
@@ -0,0 +1,1139 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../../core/resource';
4
+ import * as SubscribersAPI from './subscribers';
5
+ import {
6
+ SubscriberAddParams,
7
+ SubscriberAddResponse,
8
+ SubscriberRemoveParams,
9
+ SubscriberRemoveResponse,
10
+ Subscribers,
11
+ } from './subscribers';
12
+ import { APIPromise } from '../../core/api-promise';
13
+ import { buildHeaders } from '../../internal/headers';
14
+ import { RequestOptions } from '../../internal/request-options';
15
+ import { path } from '../../internal/utils/path';
16
+
17
+ /**
18
+ * Release notes and updates published by the organization. Changelogs keep users informed about new features, improvements, and fixes.
19
+ */
20
+ export class Changelogs extends APIResource {
21
+ subscribers: SubscribersAPI.Subscribers = new SubscribersAPI.Subscribers(this._client);
22
+
23
+ /**
24
+ * Creates a new changelog for the authenticated organization.
25
+ *
26
+ * ### Required Fields
27
+ *
28
+ * - `title` - The title of the changelog
29
+ *
30
+ * ### Content
31
+ *
32
+ * Provide content in one of two formats (at least one is required):
33
+ *
34
+ * - `htmlContent` - HTML content of the changelog
35
+ * - `markdownContent` - Markdown content of the changelog
36
+ *
37
+ * **Note:** For images in content, you can use:
38
+ *
39
+ * - External URLs in img src attributes (automatically uploaded to our storage)
40
+ * - Base64 encoded data URIs (data:image/...) which are processed and stored
41
+ *
42
+ * ### Optional Fields
43
+ *
44
+ * - `categories` - Array of category names (e.g., ["New", "Fixed", "Improved"])
45
+ * - `featuredImage` - URL of the featured image (external URLs are uploaded to our
46
+ * storage)
47
+ * - `allowedSegmentIds` - Array of segment IDs that are allowed to view the
48
+ * changelog
49
+ * - `locale` - The locale of the changelog (defaults to organization default)
50
+ * - `date` - The date of the changelog
51
+ * - `state` - The state of the changelog: `draft` (default) or `live`
52
+ *
53
+ * ### Response
54
+ *
55
+ * Returns the created changelog object.
56
+ *
57
+ * @example
58
+ * ```ts
59
+ * const changelog = await client.changelogs.create({
60
+ * title: 'New Features Update',
61
+ * });
62
+ * ```
63
+ */
64
+ create(params: ChangelogCreateParams, options?: RequestOptions): APIPromise<Changelog> {
65
+ const { 'Featurebase-Version': featurebaseVersion, ...body } = params;
66
+ return this._client.post('/v2/changelogs', {
67
+ body,
68
+ ...options,
69
+ headers: buildHeaders([
70
+ { ...(featurebaseVersion != null ? { 'Featurebase-Version': featurebaseVersion } : undefined) },
71
+ options?.headers,
72
+ ]),
73
+ });
74
+ }
75
+
76
+ /**
77
+ * Retrieves a single changelog by its unique identifier or slug.
78
+ *
79
+ * Returns the full changelog object including:
80
+ *
81
+ * - Title and content (in HTML and markdown formats)
82
+ * - Featured image
83
+ * - Publication date
84
+ * - Categories
85
+ * - Comment count
86
+ * - Email notification status
87
+ *
88
+ * ### Localization
89
+ *
90
+ * The changelog content is returned in the organization's default locale. If the
91
+ * changelog doesn't exist in the default locale, the first available locale is
92
+ * used.
93
+ *
94
+ * ### State
95
+ *
96
+ * Both published (`live`) and draft changelogs can be retrieved. The `state` field
97
+ * indicates the current publication status.
98
+ *
99
+ * @example
100
+ * ```ts
101
+ * const changelog = await client.changelogs.retrieve(
102
+ * '507f1f77bcf86cd799439011',
103
+ * );
104
+ * ```
105
+ */
106
+ retrieve(
107
+ id: string,
108
+ params: ChangelogRetrieveParams | null | undefined = {},
109
+ options?: RequestOptions,
110
+ ): APIPromise<Changelog> {
111
+ const { 'Featurebase-Version': featurebaseVersion } = params ?? {};
112
+ return this._client.get(path`/v2/changelogs/${id}`, {
113
+ ...options,
114
+ headers: buildHeaders([
115
+ { ...(featurebaseVersion != null ? { 'Featurebase-Version': featurebaseVersion } : undefined) },
116
+ options?.headers,
117
+ ]),
118
+ });
119
+ }
120
+
121
+ /**
122
+ * Updates an existing changelog by its unique identifier.
123
+ *
124
+ * You can update:
125
+ *
126
+ * - **title** - The changelog title
127
+ * - **htmlContent** - HTML content (one of htmlContent or markdownContent)
128
+ * - **markdownContent** - Markdown content (one of htmlContent or markdownContent)
129
+ * - **categories** - Array of category names
130
+ * - **featuredImage** - Featured image URL
131
+ * - **allowedSegmentIds** - Segment IDs for access control
132
+ * - **date** - The date of the changelog
133
+ *
134
+ * ### Content Format
135
+ *
136
+ * Provide content in one of two formats:
137
+ *
138
+ * - `htmlContent` - HTML content of the changelog
139
+ * - `markdownContent` - Markdown content of the changelog
140
+ *
141
+ * **Note:** For images in content, you can use:
142
+ *
143
+ * - External URLs in img src attributes (automatically uploaded to our storage)
144
+ * - Base64 encoded data URIs (data:image/...) which are processed and stored
145
+ *
146
+ * ### Categories
147
+ *
148
+ * Provide category names as an array. The categories must already exist in your
149
+ * organization.
150
+ *
151
+ * **Example:** `["New", "Fixed", "Improved"]`
152
+ *
153
+ * ### Response
154
+ *
155
+ * Returns the updated changelog object with all fields populated.
156
+ *
157
+ * ### Errors
158
+ *
159
+ * - `400` - Invalid changelog ID format or invalid input
160
+ * - `404` - Changelog not found or doesn't belong to your organization
161
+ *
162
+ * @example
163
+ * ```ts
164
+ * const changelog = await client.changelogs.update(
165
+ * '507f1f77bcf86cd799439011',
166
+ * );
167
+ * ```
168
+ */
169
+ update(id: string, params: ChangelogUpdateParams, options?: RequestOptions): APIPromise<Changelog> {
170
+ const { 'Featurebase-Version': featurebaseVersion, ...body } = params;
171
+ return this._client.patch(path`/v2/changelogs/${id}`, {
172
+ body,
173
+ ...options,
174
+ headers: buildHeaders([
175
+ { ...(featurebaseVersion != null ? { 'Featurebase-Version': featurebaseVersion } : undefined) },
176
+ options?.headers,
177
+ ]),
178
+ });
179
+ }
180
+
181
+ /**
182
+ * Returns all changelogs for the authenticated organization.
183
+ *
184
+ * Changelogs are release notes and updates that keep users informed about new
185
+ * features, improvements, and bug fixes. Each changelog can have:
186
+ *
187
+ * - Multiple translations (locales)
188
+ * - Categories for organization
189
+ * - Featured images
190
+ * - Scheduled publishing
191
+ *
192
+ * ### Pagination
193
+ *
194
+ * This endpoint uses **cursor-based pagination**:
195
+ *
196
+ * - `limit` - Number of changelogs to return (1-100, default 10)
197
+ * - `cursor` - Opaque cursor from a previous response's `nextCursor` field
198
+ *
199
+ * **Example:** To paginate through results:
200
+ *
201
+ * 1. First request: `GET /v2/changelogs?limit=10`
202
+ * 2. If `nextCursor` is not null, use it for the next page
203
+ * 3. Next request: `GET /v2/changelogs?limit=10&cursor={nextCursor}`
204
+ *
205
+ * ### Response Format
206
+ *
207
+ * Returns a list object with:
208
+ *
209
+ * - `object` - Always "list"
210
+ * - `data` - Array of changelog objects
211
+ * - `nextCursor` - Cursor for the next page (null if no more results)
212
+ *
213
+ * ### Filtering
214
+ *
215
+ * Filter changelogs using query parameters:
216
+ *
217
+ * - `id` - Find a specific changelog by ID or slug
218
+ * - `q` - Search query for title/content
219
+ * - `categories` - Filter by category names
220
+ * - `locale` - Get changelogs in a specific locale (defaults to org default)
221
+ * - `state` - Filter by state: `live`, `draft`, or `all`
222
+ * - `startDate` - Include changelogs dated on or after this date
223
+ * - `endDate` - Include changelogs dated on or before this date
224
+ *
225
+ * ### Sorting
226
+ *
227
+ * Results are sorted by date (descending by default):
228
+ *
229
+ * - `sortBy` - Field to sort by (currently only `date`)
230
+ * - `sortOrder` - Sort direction: `asc` or `desc` (default: `desc`)
231
+ *
232
+ * @example
233
+ * ```ts
234
+ * const changelogs = await client.changelogs.list();
235
+ * ```
236
+ */
237
+ list(
238
+ params: ChangelogListParams | null | undefined = {},
239
+ options?: RequestOptions,
240
+ ): APIPromise<ChangelogListResponse> {
241
+ const { 'Featurebase-Version': featurebaseVersion, ...query } = params ?? {};
242
+ return this._client.get('/v2/changelogs', {
243
+ query,
244
+ ...options,
245
+ headers: buildHeaders([
246
+ { ...(featurebaseVersion != null ? { 'Featurebase-Version': featurebaseVersion } : undefined) },
247
+ options?.headers,
248
+ ]),
249
+ });
250
+ }
251
+
252
+ /**
253
+ * Deletes a changelog by its unique identifier.
254
+ *
255
+ * ### Deletion Behavior
256
+ *
257
+ * The changelog and all associated comments are permanently deleted. This action
258
+ * cannot be undone.
259
+ *
260
+ * ### Permissions
261
+ *
262
+ * Only organization admins can delete changelogs.
263
+ *
264
+ * ### Response
265
+ *
266
+ * Returns a deletion confirmation:
267
+ *
268
+ * ```json
269
+ * {
270
+ * "id": "6457e3ff70afca5d8c27dccc",
271
+ * "object": "changelog",
272
+ * "deleted": true
273
+ * }
274
+ * ```
275
+ *
276
+ * ### Errors
277
+ *
278
+ * - `400` - Invalid changelog ID format
279
+ * - `404` - Changelog not found or doesn't belong to your organization
280
+ *
281
+ * @example
282
+ * ```ts
283
+ * const changelog = await client.changelogs.delete(
284
+ * '507f1f77bcf86cd799439011',
285
+ * );
286
+ * ```
287
+ */
288
+ delete(
289
+ id: string,
290
+ params: ChangelogDeleteParams | null | undefined = {},
291
+ options?: RequestOptions,
292
+ ): APIPromise<ChangelogDeleteResponse> {
293
+ const { 'Featurebase-Version': featurebaseVersion } = params ?? {};
294
+ return this._client.delete(path`/v2/changelogs/${id}`, {
295
+ ...options,
296
+ headers: buildHeaders([
297
+ { ...(featurebaseVersion != null ? { 'Featurebase-Version': featurebaseVersion } : undefined) },
298
+ options?.headers,
299
+ ]),
300
+ });
301
+ }
302
+
303
+ /**
304
+ * Publishes a changelog and optionally sends an email notification to subscribers.
305
+ *
306
+ * ### Optional Fields
307
+ *
308
+ * - `sendEmail` - Whether to send an email notification to subscribers (default:
309
+ * false)
310
+ * - `locales` - Array of locales to publish. An empty array publishes to all
311
+ * available locales
312
+ * - `scheduledDate` - A future date/time when the changelog should be published
313
+ *
314
+ * ### Scheduling
315
+ *
316
+ * If `scheduledDate` is provided:
317
+ *
318
+ * - Must be a future date
319
+ * - The changelog will be scheduled for publishing at that time
320
+ * - Any existing scheduled publish for the same locales will be cancelled and
321
+ * replaced
322
+ *
323
+ * ### Email Notifications
324
+ *
325
+ * If `sendEmail` is true:
326
+ *
327
+ * - Email notifications are sent to all subscribers in the published locales
328
+ * - Emails are only sent once per locale (won't resend on republish)
329
+ *
330
+ * ### Response
331
+ *
332
+ * Returns a success confirmation:
333
+ *
334
+ * ```json
335
+ * {
336
+ * "success": true,
337
+ * "state": "published"
338
+ * }
339
+ * ```
340
+ *
341
+ * Or for scheduled publishes:
342
+ *
343
+ * ```json
344
+ * {
345
+ * "success": true,
346
+ * "state": "scheduled"
347
+ * }
348
+ * ```
349
+ *
350
+ * ### Errors
351
+ *
352
+ * - `400` - Invalid changelog ID or scheduled date is not in the future
353
+ * - `404` - Changelog not found or doesn't belong to your organization
354
+ *
355
+ * @example
356
+ * ```ts
357
+ * const publishUnpublishSuccess =
358
+ * await client.changelogs.publish(
359
+ * '507f1f77bcf86cd799439011',
360
+ * );
361
+ * ```
362
+ */
363
+ publish(
364
+ id: string,
365
+ params: ChangelogPublishParams,
366
+ options?: RequestOptions,
367
+ ): APIPromise<PublishUnpublishSuccess> {
368
+ const { 'Featurebase-Version': featurebaseVersion, ...body } = params;
369
+ return this._client.post(path`/v2/changelogs/${id}/publish`, {
370
+ body,
371
+ ...options,
372
+ headers: buildHeaders([
373
+ { ...(featurebaseVersion != null ? { 'Featurebase-Version': featurebaseVersion } : undefined) },
374
+ options?.headers,
375
+ ]),
376
+ });
377
+ }
378
+
379
+ /**
380
+ * Unpublishes a changelog, removing it from public view.
381
+ *
382
+ * ### Optional Fields
383
+ *
384
+ * - `locales` - Array of locales to unpublish from. An empty array unpublishes
385
+ * from all locales
386
+ *
387
+ * ### Behavior
388
+ *
389
+ * - The changelog content is preserved (reverts to draft state)
390
+ * - Any scheduled publishes for the specified locales are cancelled
391
+ * - The changelog can be re-published later
392
+ *
393
+ * ### Response
394
+ *
395
+ * Returns a success confirmation:
396
+ *
397
+ * ```json
398
+ * {
399
+ * "success": true,
400
+ * "state": "unpublished"
401
+ * }
402
+ * ```
403
+ *
404
+ * ### Errors
405
+ *
406
+ * - `400` - Invalid changelog ID format
407
+ * - `404` - Changelog not found or doesn't belong to your organization
408
+ *
409
+ * @example
410
+ * ```ts
411
+ * const publishUnpublishSuccess =
412
+ * await client.changelogs.unpublish(
413
+ * '507f1f77bcf86cd799439011',
414
+ * );
415
+ * ```
416
+ */
417
+ unpublish(
418
+ id: string,
419
+ params: ChangelogUnpublishParams,
420
+ options?: RequestOptions,
421
+ ): APIPromise<PublishUnpublishSuccess> {
422
+ const { 'Featurebase-Version': featurebaseVersion, ...body } = params;
423
+ return this._client.post(path`/v2/changelogs/${id}/unpublish`, {
424
+ body,
425
+ ...options,
426
+ headers: buildHeaders([
427
+ { ...(featurebaseVersion != null ? { 'Featurebase-Version': featurebaseVersion } : undefined) },
428
+ options?.headers,
429
+ ]),
430
+ });
431
+ }
432
+ }
433
+
434
+ export interface Changelog {
435
+ /**
436
+ * Unique identifier
437
+ */
438
+ id: string;
439
+
440
+ /**
441
+ * Segment IDs that are allowed to view this changelog
442
+ */
443
+ allowedSegmentIds: Array<string>;
444
+
445
+ /**
446
+ * Array of locale codes where the changelog has content
447
+ */
448
+ availableLocales: Array<string>;
449
+
450
+ /**
451
+ * Categories the changelog belongs to
452
+ */
453
+ categories: Array<Changelog.Category>;
454
+
455
+ /**
456
+ * Number of comments
457
+ */
458
+ commentCount: number;
459
+
460
+ /**
461
+ * Content in HTML format
462
+ */
463
+ content: string;
464
+
465
+ /**
466
+ * ISO 8601 timestamp when created
467
+ */
468
+ createdAt: string;
469
+
470
+ /**
471
+ * Publication date as ISO 8601 timestamp
472
+ */
473
+ date: string;
474
+
475
+ /**
476
+ * Whether email notification was sent to subscribers
477
+ */
478
+ emailSentToSubscribers: boolean;
479
+
480
+ /**
481
+ * Featured image URL
482
+ */
483
+ featuredImage: string | null;
484
+
485
+ /**
486
+ * Whether the draft content differs from the published live content
487
+ */
488
+ isDraftDiffersFromLive: boolean;
489
+
490
+ /**
491
+ * Whether the changelog is published (has a live version) in this locale
492
+ */
493
+ isPublished: boolean;
494
+
495
+ /**
496
+ * Locale of the changelog
497
+ */
498
+ locale:
499
+ | 'bn'
500
+ | 'bs'
501
+ | 'pt-BR'
502
+ | 'bg'
503
+ | 'ca'
504
+ | 'hr'
505
+ | 'cs'
506
+ | 'da'
507
+ | 'nl'
508
+ | 'en'
509
+ | 'et'
510
+ | 'fi'
511
+ | 'fr'
512
+ | 'de'
513
+ | 'el'
514
+ | 'hi'
515
+ | 'hu'
516
+ | 'id'
517
+ | 'it'
518
+ | 'ja'
519
+ | 'ko'
520
+ | 'lv'
521
+ | 'lt'
522
+ | 'ms'
523
+ | 'mn'
524
+ | 'nb'
525
+ | 'pl'
526
+ | 'pt'
527
+ | 'ro'
528
+ | 'ru'
529
+ | 'sr'
530
+ | 'zh-CN'
531
+ | 'sk'
532
+ | 'sl'
533
+ | 'es'
534
+ | 'sw'
535
+ | 'sv'
536
+ | 'th'
537
+ | 'zh-TW'
538
+ | 'tr'
539
+ | 'uk'
540
+ | 'vi';
541
+
542
+ /**
543
+ * Content in markdown format
544
+ */
545
+ markdownContent: string | null;
546
+
547
+ /**
548
+ * Notification settings for each locale
549
+ */
550
+ notifications: { [key: string]: Changelog.Notifications };
551
+
552
+ /**
553
+ * Object type identifier
554
+ */
555
+ object: 'changelog';
556
+
557
+ /**
558
+ * Organization identifier
559
+ */
560
+ organization: string;
561
+
562
+ /**
563
+ * Array of locale codes where the changelog is published
564
+ */
565
+ publishedLocales: Array<string>;
566
+
567
+ /**
568
+ * URL-friendly slug
569
+ */
570
+ slug: string;
571
+
572
+ /**
573
+ * URL-friendly slugs for each locale
574
+ */
575
+ slugs: { [key: string]: string };
576
+
577
+ /**
578
+ * State of the changelog
579
+ */
580
+ state: 'live' | 'draft';
581
+
582
+ /**
583
+ * Changelog title
584
+ */
585
+ title: string;
586
+
587
+ /**
588
+ * ISO 8601 timestamp when updated
589
+ */
590
+ updatedAt: string;
591
+
592
+ /**
593
+ * Public URL to view the changelog
594
+ */
595
+ url: string;
596
+ }
597
+
598
+ export namespace Changelog {
599
+ export interface Category {
600
+ /**
601
+ * Category unique identifier
602
+ */
603
+ id: string;
604
+
605
+ /**
606
+ * Category name
607
+ */
608
+ name: string;
609
+
610
+ /**
611
+ * Roles allowed to view this category
612
+ */
613
+ roles?: Array<string>;
614
+ }
615
+
616
+ export interface Notifications {
617
+ /**
618
+ * Scheduled publication date as ISO 8601 timestamp
619
+ */
620
+ scheduledDate: string | null;
621
+
622
+ /**
623
+ * Whether the email notification has been sent
624
+ */
625
+ emailSent?: boolean;
626
+
627
+ /**
628
+ * Whether the changelog is hidden from the board and widgets
629
+ */
630
+ hideFromBoardAndWidgets?: boolean;
631
+
632
+ /**
633
+ * Whether email notification should be sent for this locale
634
+ */
635
+ sendEmailNotification?: boolean;
636
+ }
637
+ }
638
+
639
+ export interface PublishUnpublishSuccess {
640
+ /**
641
+ * Indicates the operation was successful
642
+ */
643
+ success: true;
644
+
645
+ /**
646
+ * The state of the changelog after the operation
647
+ */
648
+ state?: 'published' | 'scheduled' | 'unpublished';
649
+ }
650
+
651
+ export interface ChangelogListResponse {
652
+ /**
653
+ * Array of changelogs
654
+ */
655
+ data: Array<Changelog>;
656
+
657
+ /**
658
+ * Cursor for fetching the next page (cursor-based pagination)
659
+ */
660
+ nextCursor: string | null;
661
+
662
+ /**
663
+ * Object type identifier
664
+ */
665
+ object: 'list';
666
+
667
+ /**
668
+ * Pagination metadata for page-based requests
669
+ */
670
+ pagination?: ChangelogListResponse.Pagination;
671
+ }
672
+
673
+ export namespace ChangelogListResponse {
674
+ /**
675
+ * Pagination metadata for page-based requests
676
+ */
677
+ export interface Pagination {
678
+ /**
679
+ * Items per page
680
+ */
681
+ limit: number;
682
+
683
+ /**
684
+ * Current page number
685
+ */
686
+ page: number;
687
+
688
+ /**
689
+ * Total number of items
690
+ */
691
+ total: number;
692
+
693
+ /**
694
+ * Total number of pages
695
+ */
696
+ totalPages: number;
697
+ }
698
+ }
699
+
700
+ export interface ChangelogDeleteResponse {
701
+ /**
702
+ * Unique identifier of the deleted changelog
703
+ */
704
+ id: string;
705
+
706
+ /**
707
+ * Indicates the resource was deleted
708
+ */
709
+ deleted: true;
710
+
711
+ /**
712
+ * Object type identifier
713
+ */
714
+ object: 'changelog';
715
+ }
716
+
717
+ export interface ChangelogCreateParams {
718
+ /**
719
+ * Body param: The title of the changelog
720
+ */
721
+ title: string;
722
+
723
+ /**
724
+ * Body param: An array of segment IDs that are allowed to view the changelog
725
+ */
726
+ allowedSegmentIds?: Array<string>;
727
+
728
+ /**
729
+ * Body param: An array of category names to which the changelog belongs
730
+ */
731
+ categories?: Array<string>;
732
+
733
+ /**
734
+ * Body param: The date of the changelog
735
+ */
736
+ date?: string | null;
737
+
738
+ /**
739
+ * Body param: The URL of the featured image for the changelog. External URLs will
740
+ * be uploaded to our storage.
741
+ */
742
+ featuredImage?: string;
743
+
744
+ /**
745
+ * Body param: The HTML content of the changelog. Provide either htmlContent or
746
+ * markdownContent. For images, external URLs and base64 data URIs are
747
+ * automatically processed and stored.
748
+ */
749
+ htmlContent?: string;
750
+
751
+ /**
752
+ * Body param: The locale of the changelog, defaulting to the organization default
753
+ * locale
754
+ */
755
+ locale?:
756
+ | 'bn'
757
+ | 'bs'
758
+ | 'pt-BR'
759
+ | 'bg'
760
+ | 'ca'
761
+ | 'hr'
762
+ | 'cs'
763
+ | 'da'
764
+ | 'nl'
765
+ | 'en'
766
+ | 'et'
767
+ | 'fi'
768
+ | 'fr'
769
+ | 'de'
770
+ | 'el'
771
+ | 'hi'
772
+ | 'hu'
773
+ | 'id'
774
+ | 'it'
775
+ | 'ja'
776
+ | 'ko'
777
+ | 'lv'
778
+ | 'lt'
779
+ | 'ms'
780
+ | 'mn'
781
+ | 'nb'
782
+ | 'pl'
783
+ | 'pt'
784
+ | 'ro'
785
+ | 'ru'
786
+ | 'sr'
787
+ | 'zh-CN'
788
+ | 'sk'
789
+ | 'sl'
790
+ | 'es'
791
+ | 'sw'
792
+ | 'sv'
793
+ | 'th'
794
+ | 'zh-TW'
795
+ | 'tr'
796
+ | 'uk'
797
+ | 'vi';
798
+
799
+ /**
800
+ * Body param: The markdown content of the changelog. Provide either htmlContent or
801
+ * markdownContent. For images, external URLs and base64 data URIs are
802
+ * automatically processed and stored.
803
+ */
804
+ markdownContent?: string;
805
+
806
+ /**
807
+ * Body param: The state of the changelog (draft or live)
808
+ */
809
+ state?: 'draft' | 'live';
810
+
811
+ /**
812
+ * Header param: API version for this request. Defaults to your organization's
813
+ * configured API version if not specified.
814
+ */
815
+ 'Featurebase-Version'?: string;
816
+ }
817
+
818
+ export interface ChangelogRetrieveParams {
819
+ /**
820
+ * API version for this request. Defaults to your organization's configured API
821
+ * version if not specified.
822
+ */
823
+ 'Featurebase-Version'?: string;
824
+ }
825
+
826
+ export interface ChangelogUpdateParams {
827
+ /**
828
+ * Body param: An array of segment IDs that are allowed to view the changelog
829
+ */
830
+ allowedSegmentIds?: Array<string>;
831
+
832
+ /**
833
+ * Body param: An array of category names to which the changelog belongs
834
+ */
835
+ categories?: Array<string>;
836
+
837
+ /**
838
+ * Body param: The date of the changelog
839
+ */
840
+ date?: string | null;
841
+
842
+ /**
843
+ * Body param: The URL of the featured image for the changelog. External URLs will
844
+ * be uploaded to our storage.
845
+ */
846
+ featuredImage?: string;
847
+
848
+ /**
849
+ * Body param: The HTML content of the changelog. Provide either htmlContent or
850
+ * markdownContent. For images, external URLs and base64 data URIs are
851
+ * automatically processed and stored.
852
+ */
853
+ htmlContent?: string;
854
+
855
+ /**
856
+ * Body param: The markdown content of the changelog. Provide either htmlContent or
857
+ * markdownContent. For images, external URLs and base64 data URIs are
858
+ * automatically processed and stored.
859
+ */
860
+ markdownContent?: string;
861
+
862
+ /**
863
+ * Body param: The title of the changelog
864
+ */
865
+ title?: string;
866
+
867
+ /**
868
+ * Header param: API version for this request. Defaults to your organization's
869
+ * configured API version if not specified.
870
+ */
871
+ 'Featurebase-Version'?: string;
872
+ }
873
+
874
+ export interface ChangelogListParams {
875
+ /**
876
+ * Query param: Find changelog by its id (also accepts slug)
877
+ */
878
+ id?: string;
879
+
880
+ /**
881
+ * Query param: Filter changelogs by category names (single value or array)
882
+ */
883
+ categories?: string | Array<string>;
884
+
885
+ /**
886
+ * Query param: Cursor for pagination. Use nextCursor from previous response.
887
+ */
888
+ cursor?: string;
889
+
890
+ /**
891
+ * Query param: Include Changelogs dated on or before the specified end date
892
+ */
893
+ endDate?: string | null;
894
+
895
+ /**
896
+ * Query param: Maximum number of changelogs to return
897
+ */
898
+ limit?: number;
899
+
900
+ /**
901
+ * Query param: The locale of the changelogs. Defaults to the organization default
902
+ * locale.
903
+ */
904
+ locale?:
905
+ | 'bn'
906
+ | 'bs'
907
+ | 'pt-BR'
908
+ | 'bg'
909
+ | 'ca'
910
+ | 'hr'
911
+ | 'cs'
912
+ | 'da'
913
+ | 'nl'
914
+ | 'en'
915
+ | 'et'
916
+ | 'fi'
917
+ | 'fr'
918
+ | 'de'
919
+ | 'el'
920
+ | 'hi'
921
+ | 'hu'
922
+ | 'id'
923
+ | 'it'
924
+ | 'ja'
925
+ | 'ko'
926
+ | 'lv'
927
+ | 'lt'
928
+ | 'ms'
929
+ | 'mn'
930
+ | 'nb'
931
+ | 'pl'
932
+ | 'pt'
933
+ | 'ro'
934
+ | 'ru'
935
+ | 'sr'
936
+ | 'zh-CN'
937
+ | 'sk'
938
+ | 'sl'
939
+ | 'es'
940
+ | 'sw'
941
+ | 'sv'
942
+ | 'th'
943
+ | 'zh-TW'
944
+ | 'tr'
945
+ | 'uk'
946
+ | 'vi';
947
+
948
+ /**
949
+ * Query param: Search for changelogs by title or content
950
+ */
951
+ q?: string;
952
+
953
+ /**
954
+ * Query param: Field to sort by
955
+ */
956
+ sortBy?: 'date';
957
+
958
+ /**
959
+ * Query param: Sort direction
960
+ */
961
+ sortOrder?: 'asc' | 'desc';
962
+
963
+ /**
964
+ * Query param: Include Changelogs dated on or after the specified start date
965
+ */
966
+ startDate?: string | null;
967
+
968
+ /**
969
+ * Query param: The state of the changelog. Use "all" to get both draft and live
970
+ * changelogs.
971
+ */
972
+ state?: 'draft' | 'live' | 'all';
973
+
974
+ /**
975
+ * Header param: API version for this request. Defaults to your organization's
976
+ * configured API version if not specified.
977
+ */
978
+ 'Featurebase-Version'?: string;
979
+ }
980
+
981
+ export interface ChangelogDeleteParams {
982
+ /**
983
+ * API version for this request. Defaults to your organization's configured API
984
+ * version if not specified.
985
+ */
986
+ 'Featurebase-Version'?: string;
987
+ }
988
+
989
+ export interface ChangelogPublishParams {
990
+ /**
991
+ * Body param: An array of locales to publish the changelog to. An empty array
992
+ * publishes to all locales.
993
+ */
994
+ locales?: Array<
995
+ | 'bn'
996
+ | 'bs'
997
+ | 'pt-BR'
998
+ | 'bg'
999
+ | 'ca'
1000
+ | 'hr'
1001
+ | 'cs'
1002
+ | 'da'
1003
+ | 'nl'
1004
+ | 'en'
1005
+ | 'et'
1006
+ | 'fi'
1007
+ | 'fr'
1008
+ | 'de'
1009
+ | 'el'
1010
+ | 'hi'
1011
+ | 'hu'
1012
+ | 'id'
1013
+ | 'it'
1014
+ | 'ja'
1015
+ | 'ko'
1016
+ | 'lv'
1017
+ | 'lt'
1018
+ | 'ms'
1019
+ | 'mn'
1020
+ | 'nb'
1021
+ | 'pl'
1022
+ | 'pt'
1023
+ | 'ro'
1024
+ | 'ru'
1025
+ | 'sr'
1026
+ | 'zh-CN'
1027
+ | 'sk'
1028
+ | 'sl'
1029
+ | 'es'
1030
+ | 'sw'
1031
+ | 'sv'
1032
+ | 'th'
1033
+ | 'zh-TW'
1034
+ | 'tr'
1035
+ | 'uk'
1036
+ | 'vi'
1037
+ >;
1038
+
1039
+ /**
1040
+ * Body param: The date when the changelog should be published. Must be a future
1041
+ * date. Pass null or omit to publish immediately.
1042
+ */
1043
+ scheduledDate?: string | null;
1044
+
1045
+ /**
1046
+ * Body param: A flag indicating whether to send an email notification to
1047
+ * subscribers.
1048
+ */
1049
+ sendEmail?: boolean | null;
1050
+
1051
+ /**
1052
+ * Header param: API version for this request. Defaults to your organization's
1053
+ * configured API version if not specified.
1054
+ */
1055
+ 'Featurebase-Version'?: string;
1056
+ }
1057
+
1058
+ export interface ChangelogUnpublishParams {
1059
+ /**
1060
+ * Body param: An array of locales to unpublish the changelog from. An empty array
1061
+ * unpublishes from all locales.
1062
+ */
1063
+ locales?: Array<
1064
+ | 'bn'
1065
+ | 'bs'
1066
+ | 'pt-BR'
1067
+ | 'bg'
1068
+ | 'ca'
1069
+ | 'hr'
1070
+ | 'cs'
1071
+ | 'da'
1072
+ | 'nl'
1073
+ | 'en'
1074
+ | 'et'
1075
+ | 'fi'
1076
+ | 'fr'
1077
+ | 'de'
1078
+ | 'el'
1079
+ | 'hi'
1080
+ | 'hu'
1081
+ | 'id'
1082
+ | 'it'
1083
+ | 'ja'
1084
+ | 'ko'
1085
+ | 'lv'
1086
+ | 'lt'
1087
+ | 'ms'
1088
+ | 'mn'
1089
+ | 'nb'
1090
+ | 'pl'
1091
+ | 'pt'
1092
+ | 'ro'
1093
+ | 'ru'
1094
+ | 'sr'
1095
+ | 'zh-CN'
1096
+ | 'sk'
1097
+ | 'sl'
1098
+ | 'es'
1099
+ | 'sw'
1100
+ | 'sv'
1101
+ | 'th'
1102
+ | 'zh-TW'
1103
+ | 'tr'
1104
+ | 'uk'
1105
+ | 'vi'
1106
+ >;
1107
+
1108
+ /**
1109
+ * Header param: API version for this request. Defaults to your organization's
1110
+ * configured API version if not specified.
1111
+ */
1112
+ 'Featurebase-Version'?: string;
1113
+ }
1114
+
1115
+ Changelogs.Subscribers = Subscribers;
1116
+
1117
+ export declare namespace Changelogs {
1118
+ export {
1119
+ type Changelog as Changelog,
1120
+ type PublishUnpublishSuccess as PublishUnpublishSuccess,
1121
+ type ChangelogListResponse as ChangelogListResponse,
1122
+ type ChangelogDeleteResponse as ChangelogDeleteResponse,
1123
+ type ChangelogCreateParams as ChangelogCreateParams,
1124
+ type ChangelogRetrieveParams as ChangelogRetrieveParams,
1125
+ type ChangelogUpdateParams as ChangelogUpdateParams,
1126
+ type ChangelogListParams as ChangelogListParams,
1127
+ type ChangelogDeleteParams as ChangelogDeleteParams,
1128
+ type ChangelogPublishParams as ChangelogPublishParams,
1129
+ type ChangelogUnpublishParams as ChangelogUnpublishParams,
1130
+ };
1131
+
1132
+ export {
1133
+ Subscribers as Subscribers,
1134
+ type SubscriberAddResponse as SubscriberAddResponse,
1135
+ type SubscriberRemoveResponse as SubscriberRemoveResponse,
1136
+ type SubscriberAddParams as SubscriberAddParams,
1137
+ type SubscriberRemoveParams as SubscriberRemoveParams,
1138
+ };
1139
+ }