featurebase-node 0.3.0 → 0.4.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 (288) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/README.md +31 -0
  3. package/client.d.mts +12 -6
  4. package/client.d.mts.map +1 -1
  5. package/client.d.ts +12 -6
  6. package/client.d.ts.map +1 -1
  7. package/client.js +10 -0
  8. package/client.js.map +1 -1
  9. package/client.mjs +10 -0
  10. package/client.mjs.map +1 -1
  11. package/core/pagination.d.mts +54 -0
  12. package/core/pagination.d.mts.map +1 -0
  13. package/core/pagination.d.ts +54 -0
  14. package/core/pagination.d.ts.map +1 -0
  15. package/core/pagination.js +101 -0
  16. package/core/pagination.js.map +1 -0
  17. package/core/pagination.mjs +95 -0
  18. package/core/pagination.mjs.map +1 -0
  19. package/index.d.mts +1 -0
  20. package/index.d.mts.map +1 -1
  21. package/index.d.ts +1 -0
  22. package/index.d.ts.map +1 -1
  23. package/index.js +3 -1
  24. package/index.js.map +1 -1
  25. package/index.mjs +1 -0
  26. package/index.mjs.map +1 -1
  27. package/package.json +11 -1
  28. package/pagination.d.mts +2 -0
  29. package/pagination.d.mts.map +1 -0
  30. package/pagination.d.ts +2 -0
  31. package/pagination.d.ts.map +1 -0
  32. package/pagination.js +6 -0
  33. package/pagination.js.map +1 -0
  34. package/pagination.mjs +2 -0
  35. package/pagination.mjs.map +1 -0
  36. package/resources/changelogs/changelogs.d.mts +9 -53
  37. package/resources/changelogs/changelogs.d.mts.map +1 -1
  38. package/resources/changelogs/changelogs.d.ts +9 -53
  39. package/resources/changelogs/changelogs.d.ts.map +1 -1
  40. package/resources/changelogs/changelogs.js +6 -2
  41. package/resources/changelogs/changelogs.js.map +1 -1
  42. package/resources/changelogs/changelogs.mjs +6 -2
  43. package/resources/changelogs/changelogs.mjs.map +1 -1
  44. package/resources/changelogs/index.d.mts +1 -1
  45. package/resources/changelogs/index.d.mts.map +1 -1
  46. package/resources/changelogs/index.d.ts +1 -1
  47. package/resources/changelogs/index.d.ts.map +1 -1
  48. package/resources/feedback/comments.d.mts +9 -53
  49. package/resources/feedback/comments.d.mts.map +1 -1
  50. package/resources/feedback/comments.d.ts +9 -53
  51. package/resources/feedback/comments.d.ts.map +1 -1
  52. package/resources/feedback/comments.js +6 -2
  53. package/resources/feedback/comments.js.map +1 -1
  54. package/resources/feedback/comments.mjs +6 -2
  55. package/resources/feedback/comments.mjs.map +1 -1
  56. package/resources/feedback/feedback.d.mts +4 -4
  57. package/resources/feedback/feedback.d.mts.map +1 -1
  58. package/resources/feedback/feedback.d.ts +4 -4
  59. package/resources/feedback/feedback.d.ts.map +1 -1
  60. package/resources/feedback/feedback.mjs.map +1 -1
  61. package/resources/feedback/index.d.mts +2 -2
  62. package/resources/feedback/index.d.mts.map +1 -1
  63. package/resources/feedback/index.d.ts +2 -2
  64. package/resources/feedback/index.d.ts.map +1 -1
  65. package/resources/feedback/posts/index.d.mts +2 -2
  66. package/resources/feedback/posts/index.d.mts.map +1 -1
  67. package/resources/feedback/posts/index.d.ts +2 -2
  68. package/resources/feedback/posts/index.d.ts.map +1 -1
  69. package/resources/feedback/posts/index.js.map +1 -1
  70. package/resources/feedback/posts/index.mjs.map +1 -1
  71. package/resources/feedback/posts/posts.d.mts +11 -56
  72. package/resources/feedback/posts/posts.d.mts.map +1 -1
  73. package/resources/feedback/posts/posts.d.ts +11 -56
  74. package/resources/feedback/posts/posts.d.ts.map +1 -1
  75. package/resources/feedback/posts/posts.js +6 -2
  76. package/resources/feedback/posts/posts.js.map +1 -1
  77. package/resources/feedback/posts/posts.mjs +6 -2
  78. package/resources/feedback/posts/posts.mjs.map +1 -1
  79. package/resources/feedback/posts/voters.d.mts +79 -124
  80. package/resources/feedback/posts/voters.d.mts.map +1 -1
  81. package/resources/feedback/posts/voters.d.ts +79 -124
  82. package/resources/feedback/posts/voters.d.ts.map +1 -1
  83. package/resources/feedback/posts/voters.js +7 -3
  84. package/resources/feedback/posts/voters.js.map +1 -1
  85. package/resources/feedback/posts/voters.mjs +7 -3
  86. package/resources/feedback/posts/voters.mjs.map +1 -1
  87. package/resources/help-center/articles.d.mts +9 -27
  88. package/resources/help-center/articles.d.mts.map +1 -1
  89. package/resources/help-center/articles.d.ts +9 -27
  90. package/resources/help-center/articles.d.ts.map +1 -1
  91. package/resources/help-center/articles.js +6 -2
  92. package/resources/help-center/articles.js.map +1 -1
  93. package/resources/help-center/articles.mjs +6 -2
  94. package/resources/help-center/articles.mjs.map +1 -1
  95. package/resources/help-center/collections.d.mts +9 -28
  96. package/resources/help-center/collections.d.mts.map +1 -1
  97. package/resources/help-center/collections.d.ts +9 -28
  98. package/resources/help-center/collections.d.ts.map +1 -1
  99. package/resources/help-center/collections.js +6 -3
  100. package/resources/help-center/collections.js.map +1 -1
  101. package/resources/help-center/collections.mjs +6 -3
  102. package/resources/help-center/collections.mjs.map +1 -1
  103. package/resources/help-center/help-center.d.mts +8 -8
  104. package/resources/help-center/help-center.d.mts.map +1 -1
  105. package/resources/help-center/help-center.d.ts +8 -8
  106. package/resources/help-center/help-center.d.ts.map +1 -1
  107. package/resources/help-center/help-center.mjs.map +1 -1
  108. package/resources/help-center/help-centers.d.mts +9 -28
  109. package/resources/help-center/help-centers.d.mts.map +1 -1
  110. package/resources/help-center/help-centers.d.ts +9 -28
  111. package/resources/help-center/help-centers.d.ts.map +1 -1
  112. package/resources/help-center/help-centers.js +6 -3
  113. package/resources/help-center/help-centers.js.map +1 -1
  114. package/resources/help-center/help-centers.mjs +6 -3
  115. package/resources/help-center/help-centers.mjs.map +1 -1
  116. package/resources/help-center/index.d.mts +4 -4
  117. package/resources/help-center/index.d.mts.map +1 -1
  118. package/resources/help-center/index.d.ts +4 -4
  119. package/resources/help-center/index.d.ts.map +1 -1
  120. package/resources/help-center/redirect-rules.d.mts +9 -28
  121. package/resources/help-center/redirect-rules.d.mts.map +1 -1
  122. package/resources/help-center/redirect-rules.d.ts +9 -28
  123. package/resources/help-center/redirect-rules.d.ts.map +1 -1
  124. package/resources/help-center/redirect-rules.js +6 -3
  125. package/resources/help-center/redirect-rules.js.map +1 -1
  126. package/resources/help-center/redirect-rules.mjs +6 -3
  127. package/resources/help-center/redirect-rules.mjs.map +1 -1
  128. package/resources/index.d.mts +3 -3
  129. package/resources/index.d.mts.map +1 -1
  130. package/resources/index.d.ts +3 -3
  131. package/resources/index.d.ts.map +1 -1
  132. package/resources/index.js.map +1 -1
  133. package/resources/index.mjs.map +1 -1
  134. package/resources/organization/brands.d.mts +5 -26
  135. package/resources/organization/brands.d.mts.map +1 -1
  136. package/resources/organization/brands.d.ts +5 -26
  137. package/resources/organization/brands.d.ts.map +1 -1
  138. package/resources/organization/brands.js +2 -1
  139. package/resources/organization/brands.js.map +1 -1
  140. package/resources/organization/brands.mjs +2 -1
  141. package/resources/organization/brands.mjs.map +1 -1
  142. package/resources/organization/index.d.mts +1 -1
  143. package/resources/organization/index.d.mts.map +1 -1
  144. package/resources/organization/index.d.ts +1 -1
  145. package/resources/organization/index.d.ts.map +1 -1
  146. package/resources/organization/organization.d.mts +2 -2
  147. package/resources/organization/organization.d.mts.map +1 -1
  148. package/resources/organization/organization.d.ts +2 -2
  149. package/resources/organization/organization.d.ts.map +1 -1
  150. package/resources/organization/organization.js.map +1 -1
  151. package/resources/organization/organization.mjs.map +1 -1
  152. package/resources/support/conversations/conversations.d.mts +9 -28
  153. package/resources/support/conversations/conversations.d.mts.map +1 -1
  154. package/resources/support/conversations/conversations.d.ts +9 -28
  155. package/resources/support/conversations/conversations.d.ts.map +1 -1
  156. package/resources/support/conversations/conversations.js +6 -3
  157. package/resources/support/conversations/conversations.js.map +1 -1
  158. package/resources/support/conversations/conversations.mjs +6 -3
  159. package/resources/support/conversations/conversations.mjs.map +1 -1
  160. package/resources/support/conversations/index.d.mts +1 -1
  161. package/resources/support/conversations/index.d.mts.map +1 -1
  162. package/resources/support/conversations/index.d.ts +1 -1
  163. package/resources/support/conversations/index.d.ts.map +1 -1
  164. package/resources/support/index.d.mts +2 -2
  165. package/resources/support/index.d.mts.map +1 -1
  166. package/resources/support/index.d.ts +2 -2
  167. package/resources/support/index.d.ts.map +1 -1
  168. package/resources/support/support.d.mts +4 -4
  169. package/resources/support/support.d.mts.map +1 -1
  170. package/resources/support/support.d.ts +4 -4
  171. package/resources/support/support.d.ts.map +1 -1
  172. package/resources/support/support.mjs.map +1 -1
  173. package/resources/support/tickets/index.d.mts +1 -1
  174. package/resources/support/tickets/index.d.mts.map +1 -1
  175. package/resources/support/tickets/index.d.ts +1 -1
  176. package/resources/support/tickets/index.d.ts.map +1 -1
  177. package/resources/support/tickets/tickets.d.mts +9 -27
  178. package/resources/support/tickets/tickets.d.mts.map +1 -1
  179. package/resources/support/tickets/tickets.d.ts +9 -27
  180. package/resources/support/tickets/tickets.d.ts.map +1 -1
  181. package/resources/support/tickets/tickets.js +6 -2
  182. package/resources/support/tickets/tickets.js.map +1 -1
  183. package/resources/support/tickets/tickets.mjs +6 -2
  184. package/resources/support/tickets/tickets.mjs.map +1 -1
  185. package/resources/surveys.d.mts +34 -79
  186. package/resources/surveys.d.mts.map +1 -1
  187. package/resources/surveys.d.ts +34 -79
  188. package/resources/surveys.d.ts.map +1 -1
  189. package/resources/surveys.js +4 -3
  190. package/resources/surveys.js.map +1 -1
  191. package/resources/surveys.mjs +4 -3
  192. package/resources/surveys.mjs.map +1 -1
  193. package/resources/users/companies/companies.d.mts +9 -28
  194. package/resources/users/companies/companies.d.mts.map +1 -1
  195. package/resources/users/companies/companies.d.ts +9 -28
  196. package/resources/users/companies/companies.d.ts.map +1 -1
  197. package/resources/users/companies/companies.js +6 -2
  198. package/resources/users/companies/companies.js.map +1 -1
  199. package/resources/users/companies/companies.mjs +6 -2
  200. package/resources/users/companies/companies.mjs.map +1 -1
  201. package/resources/users/companies/contacts.d.mts +11 -16
  202. package/resources/users/companies/contacts.d.mts.map +1 -1
  203. package/resources/users/companies/contacts.d.ts +11 -16
  204. package/resources/users/companies/contacts.d.ts.map +1 -1
  205. package/resources/users/companies/contacts.js +8 -5
  206. package/resources/users/companies/contacts.js.map +1 -1
  207. package/resources/users/companies/contacts.mjs +8 -5
  208. package/resources/users/companies/contacts.mjs.map +1 -1
  209. package/resources/users/companies/index.d.mts +1 -1
  210. package/resources/users/companies/index.d.mts.map +1 -1
  211. package/resources/users/companies/index.d.ts +1 -1
  212. package/resources/users/companies/index.d.ts.map +1 -1
  213. package/resources/users/contacts/contacts.d.mts +9 -13
  214. package/resources/users/contacts/contacts.d.mts.map +1 -1
  215. package/resources/users/contacts/contacts.d.ts +9 -13
  216. package/resources/users/contacts/contacts.d.ts.map +1 -1
  217. package/resources/users/contacts/contacts.js +6 -2
  218. package/resources/users/contacts/contacts.js.map +1 -1
  219. package/resources/users/contacts/contacts.mjs +6 -2
  220. package/resources/users/contacts/contacts.mjs.map +1 -1
  221. package/resources/users/contacts/index.d.mts +1 -1
  222. package/resources/users/contacts/index.d.mts.map +1 -1
  223. package/resources/users/contacts/index.d.ts +1 -1
  224. package/resources/users/contacts/index.d.ts.map +1 -1
  225. package/resources/users/contacts/index.js.map +1 -1
  226. package/resources/users/contacts/index.mjs.map +1 -1
  227. package/resources/users/index.d.mts +2 -2
  228. package/resources/users/index.d.mts.map +1 -1
  229. package/resources/users/index.d.ts +2 -2
  230. package/resources/users/index.d.ts.map +1 -1
  231. package/resources/users/index.js.map +1 -1
  232. package/resources/users/index.mjs.map +1 -1
  233. package/resources/users/users.d.mts +4 -4
  234. package/resources/users/users.d.mts.map +1 -1
  235. package/resources/users/users.d.ts +4 -4
  236. package/resources/users/users.d.ts.map +1 -1
  237. package/resources/users/users.js.map +1 -1
  238. package/resources/users/users.mjs.map +1 -1
  239. package/resources/webhooks.d.mts +9 -27
  240. package/resources/webhooks.d.mts.map +1 -1
  241. package/resources/webhooks.d.ts +9 -27
  242. package/resources/webhooks.d.ts.map +1 -1
  243. package/resources/webhooks.js +6 -2
  244. package/resources/webhooks.js.map +1 -1
  245. package/resources/webhooks.mjs +6 -2
  246. package/resources/webhooks.mjs.map +1 -1
  247. package/src/client.ts +41 -10
  248. package/src/core/pagination.ts +157 -0
  249. package/src/index.ts +1 -0
  250. package/src/pagination.ts +2 -0
  251. package/src/resources/changelogs/changelogs.ts +11 -64
  252. package/src/resources/changelogs/index.ts +1 -1
  253. package/src/resources/feedback/comments.ts +11 -64
  254. package/src/resources/feedback/feedback.ts +4 -4
  255. package/src/resources/feedback/index.ts +2 -2
  256. package/src/resources/feedback/posts/index.ts +2 -1
  257. package/src/resources/feedback/posts/posts.ts +13 -65
  258. package/src/resources/feedback/posts/voters.ts +87 -140
  259. package/src/resources/help-center/articles.ts +11 -33
  260. package/src/resources/help-center/collections.ts +11 -34
  261. package/src/resources/help-center/help-center.ts +8 -8
  262. package/src/resources/help-center/help-centers.ts +11 -34
  263. package/src/resources/help-center/index.ts +4 -4
  264. package/src/resources/help-center/redirect-rules.ts +11 -34
  265. package/src/resources/index.ts +6 -5
  266. package/src/resources/organization/brands.ts +7 -32
  267. package/src/resources/organization/index.ts +1 -1
  268. package/src/resources/organization/organization.ts +2 -2
  269. package/src/resources/support/conversations/conversations.ts +11 -34
  270. package/src/resources/support/conversations/index.ts +1 -1
  271. package/src/resources/support/index.ts +2 -2
  272. package/src/resources/support/support.ts +4 -4
  273. package/src/resources/support/tickets/index.ts +1 -1
  274. package/src/resources/support/tickets/tickets.ts +11 -33
  275. package/src/resources/surveys.ts +54 -102
  276. package/src/resources/users/companies/companies.ts +11 -34
  277. package/src/resources/users/companies/contacts.ts +24 -26
  278. package/src/resources/users/companies/index.ts +1 -1
  279. package/src/resources/users/contacts/contacts.ts +14 -15
  280. package/src/resources/users/contacts/index.ts +1 -0
  281. package/src/resources/users/index.ts +2 -1
  282. package/src/resources/users/users.ts +4 -2
  283. package/src/resources/webhooks.ts +11 -33
  284. package/src/version.ts +1 -1
  285. package/version.d.mts +1 -1
  286. package/version.d.ts +1 -1
  287. package/version.js +1 -1
  288. package/version.mjs +1 -1
@@ -1,6 +1,7 @@
1
1
  import { APIResource } from "../../../core/resource.mjs";
2
2
  import * as CompaniesAPI from "../../users/companies/companies.mjs";
3
3
  import { APIPromise } from "../../../core/api-promise.mjs";
4
+ import { CursorPage, type CursorPageParams, PagePromise } from "../../../core/pagination.mjs";
4
5
  import { RequestOptions } from "../../../internal/request-options.mjs";
5
6
  /**
6
7
  * User-submitted feedback and feature requests. Posts belong to boards and can be upvoted, commented on, and tracked through statuses.
@@ -45,12 +46,15 @@ export declare class Voters extends APIResource {
45
46
  *
46
47
  * @example
47
48
  * ```ts
48
- * const voters = await client.feedback.posts.voters.list(
49
+ * // Automatically fetches more pages as needed.
50
+ * for await (const voterListResponse of client.feedback.posts.voters.list(
49
51
  * '507f1f77bcf86cd799439011',
50
- * );
52
+ * )) {
53
+ * // ...
54
+ * }
51
55
  * ```
52
56
  */
53
- list(id: string, params?: VoterListParams | null | undefined, options?: RequestOptions): APIPromise<VoterListResponse>;
57
+ list(id: string, params?: VoterListParams | null | undefined, options?: RequestOptions): PagePromise<VoterListResponsesCursorPage, VoterListResponse>;
54
58
  /**
55
59
  * Adds a voter (upvote) to a post.
56
60
  *
@@ -134,126 +138,86 @@ export declare class Voters extends APIResource {
134
138
  */
135
139
  remove(id: string, params: VoterRemoveParams, options?: RequestOptions): APIPromise<VoterRemoveResponse>;
136
140
  }
141
+ export type VoterListResponsesCursorPage = CursorPage<VoterListResponse>;
137
142
  export interface VoterListResponse {
138
143
  /**
139
- * Array of users
144
+ * Unique identifier
140
145
  */
141
- data: Array<VoterListResponse.Data>;
146
+ id: string;
142
147
  /**
143
- * Cursor for fetching the next page (cursor-based pagination)
148
+ * User display name
144
149
  */
145
- nextCursor: string | null;
150
+ name: string;
146
151
  /**
147
152
  * Object type identifier
148
153
  */
149
- object: 'list';
154
+ object: 'contact';
150
155
  /**
151
- * Pagination metadata for page-based requests
156
+ * Type of user
152
157
  */
153
- pagination?: VoterListResponse.Pagination;
154
- }
155
- export declare namespace VoterListResponse {
156
- interface Data {
157
- /**
158
- * Unique identifier
159
- */
160
- id: string;
161
- /**
162
- * User display name
163
- */
164
- name: string;
165
- /**
166
- * Object type identifier
167
- */
168
- object: 'contact';
169
- /**
170
- * Type of user
171
- */
172
- type: 'admin' | 'customer' | 'guest' | 'integration' | 'bot' | 'lead';
173
- /**
174
- * Number of comments created
175
- */
176
- commentsCreated?: number;
177
- /**
178
- * Companies the user belongs to
179
- */
180
- companies?: Array<CompaniesAPI.Company>;
181
- /**
182
- * Custom field values on the user
183
- */
184
- customFields?: {
185
- [key: string]: unknown;
186
- };
187
- /**
188
- * User description/bio
189
- */
190
- description?: string;
191
- /**
192
- * User email
193
- */
194
- email?: string | null;
195
- /**
196
- * Last activity ISO timestamp
197
- */
198
- lastActivity?: string;
199
- /**
200
- * User locale
201
- */
202
- locale?: string;
203
- /**
204
- * Whether manually opted out from changelog
205
- */
206
- manuallyOptedOutFromChangelog?: boolean;
207
- /**
208
- * Organization ID the user belongs to
209
- */
210
- organizationId?: string;
211
- /**
212
- * Number of posts created
213
- */
214
- postsCreated?: number;
215
- /**
216
- * Profile picture URL
217
- */
218
- profilePicture?: string | null;
219
- /**
220
- * User roles
221
- */
222
- roles?: Array<string>;
223
- /**
224
- * Whether subscribed to changelog
225
- */
226
- subscribedToChangelog?: boolean;
227
- /**
228
- * External user ID from SSO
229
- */
230
- userId?: string;
231
- /**
232
- * Whether email is verified
233
- */
234
- verified?: boolean;
235
- }
236
- /**
237
- * Pagination metadata for page-based requests
238
- */
239
- interface Pagination {
240
- /**
241
- * Items per page
242
- */
243
- limit: number;
244
- /**
245
- * Current page number
246
- */
247
- page: number;
248
- /**
249
- * Total number of items
250
- */
251
- total: number;
252
- /**
253
- * Total number of pages
254
- */
255
- totalPages: number;
256
- }
158
+ type: 'admin' | 'customer' | 'guest' | 'integration' | 'bot' | 'lead';
159
+ /**
160
+ * Number of comments created
161
+ */
162
+ commentsCreated?: number;
163
+ /**
164
+ * Companies the user belongs to
165
+ */
166
+ companies?: Array<CompaniesAPI.Company>;
167
+ /**
168
+ * Custom field values on the user
169
+ */
170
+ customFields?: {
171
+ [key: string]: unknown;
172
+ };
173
+ /**
174
+ * User description/bio
175
+ */
176
+ description?: string;
177
+ /**
178
+ * User email
179
+ */
180
+ email?: string | null;
181
+ /**
182
+ * Last activity ISO timestamp
183
+ */
184
+ lastActivity?: string;
185
+ /**
186
+ * User locale
187
+ */
188
+ locale?: string;
189
+ /**
190
+ * Whether manually opted out from changelog
191
+ */
192
+ manuallyOptedOutFromChangelog?: boolean;
193
+ /**
194
+ * Organization ID the user belongs to
195
+ */
196
+ organizationId?: string;
197
+ /**
198
+ * Number of posts created
199
+ */
200
+ postsCreated?: number;
201
+ /**
202
+ * Profile picture URL
203
+ */
204
+ profilePicture?: string | null;
205
+ /**
206
+ * User roles
207
+ */
208
+ roles?: Array<string>;
209
+ /**
210
+ * Whether subscribed to changelog
211
+ */
212
+ subscribedToChangelog?: boolean;
213
+ /**
214
+ * External user ID from SSO
215
+ */
216
+ userId?: string;
217
+ /**
218
+ * Whether email is verified
219
+ */
220
+ verified?: boolean;
257
221
  }
258
222
  export interface VoterAddResponse {
259
223
  /**
@@ -291,16 +255,7 @@ export interface VoterRemoveResponse {
291
255
  */
292
256
  removed: true;
293
257
  }
294
- export interface VoterListParams {
295
- /**
296
- * Query param: An opaque cursor for pagination. Use the nextCursor value from a
297
- * previous response to fetch the next page of results.
298
- */
299
- cursor?: string;
300
- /**
301
- * Query param: A limit on the number of voters to be returned, between 1 and 100.
302
- */
303
- limit?: number;
258
+ export interface VoterListParams extends CursorPageParams {
304
259
  /**
305
260
  * Header param: API version for this request. Defaults to your organization's
306
261
  * configured API version if not specified.
@@ -354,6 +309,6 @@ export interface VoterRemoveParams {
354
309
  'Featurebase-Version'?: string;
355
310
  }
356
311
  export declare namespace Voters {
357
- export { type VoterListResponse as VoterListResponse, type VoterAddResponse as VoterAddResponse, type VoterRemoveResponse as VoterRemoveResponse, type VoterListParams as VoterListParams, type VoterAddParams as VoterAddParams, type VoterRemoveParams as VoterRemoveParams, };
312
+ export { type VoterListResponse as VoterListResponse, type VoterAddResponse as VoterAddResponse, type VoterRemoveResponse as VoterRemoveResponse, type VoterListResponsesCursorPage as VoterListResponsesCursorPage, type VoterListParams as VoterListParams, type VoterAddParams as VoterAddParams, type VoterRemoveParams as VoterRemoveParams, };
358
313
  }
359
314
  //# sourceMappingURL=voters.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"voters.d.mts","sourceRoot":"","sources":["../../../src/resources/feedback/posts/voters.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,YAAY;OACjB,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2CG;IACH,IAAI,CACF,EAAE,EAAE,MAAM,EACV,MAAM,GAAE,eAAe,GAAG,IAAI,GAAG,SAAc,EAC/C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,iBAAiB,CAAC;IAYhC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA4CG;IACH,GAAG,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,cAAc,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,gBAAgB,CAAC;IAY/F;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAkCG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,mBAAmB,CAAC;CAWzG;AAED,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,IAAI,EAAE,KAAK,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC;IAEpC;;OAEG;IACH,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAE1B;;OA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B,IAAI,4BAA4B,EACjE,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
@@ -1,6 +1,7 @@
1
1
  import { APIResource } from "../../../core/resource.js";
2
2
  import * as CompaniesAPI from "../../users/companies/companies.js";
3
3
  import { APIPromise } from "../../../core/api-promise.js";
4
+ import { CursorPage, type CursorPageParams, PagePromise } from "../../../core/pagination.js";
4
5
  import { RequestOptions } from "../../../internal/request-options.js";
5
6
  /**
6
7
  * User-submitted feedback and feature requests. Posts belong to boards and can be upvoted, commented on, and tracked through statuses.
@@ -45,12 +46,15 @@ export declare class Voters extends APIResource {
45
46
  *
46
47
  * @example
47
48
  * ```ts
48
- * const voters = await client.feedback.posts.voters.list(
49
+ * // Automatically fetches more pages as needed.
50
+ * for await (const voterListResponse of client.feedback.posts.voters.list(
49
51
  * '507f1f77bcf86cd799439011',
50
- * );
52
+ * )) {
53
+ * // ...
54
+ * }
51
55
  * ```
52
56
  */
53
- list(id: string, params?: VoterListParams | null | undefined, options?: RequestOptions): APIPromise<VoterListResponse>;
57
+ list(id: string, params?: VoterListParams | null | undefined, options?: RequestOptions): PagePromise<VoterListResponsesCursorPage, VoterListResponse>;
54
58
  /**
55
59
  * Adds a voter (upvote) to a post.
56
60
  *
@@ -134,126 +138,86 @@ export declare class Voters extends APIResource {
134
138
  */
135
139
  remove(id: string, params: VoterRemoveParams, options?: RequestOptions): APIPromise<VoterRemoveResponse>;
136
140
  }
141
+ export type VoterListResponsesCursorPage = CursorPage<VoterListResponse>;
137
142
  export interface VoterListResponse {
138
143
  /**
139
- * Array of users
144
+ * Unique identifier
140
145
  */
141
- data: Array<VoterListResponse.Data>;
146
+ id: string;
142
147
  /**
143
- * Cursor for fetching the next page (cursor-based pagination)
148
+ * User display name
144
149
  */
145
- nextCursor: string | null;
150
+ name: string;
146
151
  /**
147
152
  * Object type identifier
148
153
  */
149
- object: 'list';
154
+ object: 'contact';
150
155
  /**
151
- * Pagination metadata for page-based requests
156
+ * Type of user
152
157
  */
153
- pagination?: VoterListResponse.Pagination;
154
- }
155
- export declare namespace VoterListResponse {
156
- interface Data {
157
- /**
158
- * Unique identifier
159
- */
160
- id: string;
161
- /**
162
- * User display name
163
- */
164
- name: string;
165
- /**
166
- * Object type identifier
167
- */
168
- object: 'contact';
169
- /**
170
- * Type of user
171
- */
172
- type: 'admin' | 'customer' | 'guest' | 'integration' | 'bot' | 'lead';
173
- /**
174
- * Number of comments created
175
- */
176
- commentsCreated?: number;
177
- /**
178
- * Companies the user belongs to
179
- */
180
- companies?: Array<CompaniesAPI.Company>;
181
- /**
182
- * Custom field values on the user
183
- */
184
- customFields?: {
185
- [key: string]: unknown;
186
- };
187
- /**
188
- * User description/bio
189
- */
190
- description?: string;
191
- /**
192
- * User email
193
- */
194
- email?: string | null;
195
- /**
196
- * Last activity ISO timestamp
197
- */
198
- lastActivity?: string;
199
- /**
200
- * User locale
201
- */
202
- locale?: string;
203
- /**
204
- * Whether manually opted out from changelog
205
- */
206
- manuallyOptedOutFromChangelog?: boolean;
207
- /**
208
- * Organization ID the user belongs to
209
- */
210
- organizationId?: string;
211
- /**
212
- * Number of posts created
213
- */
214
- postsCreated?: number;
215
- /**
216
- * Profile picture URL
217
- */
218
- profilePicture?: string | null;
219
- /**
220
- * User roles
221
- */
222
- roles?: Array<string>;
223
- /**
224
- * Whether subscribed to changelog
225
- */
226
- subscribedToChangelog?: boolean;
227
- /**
228
- * External user ID from SSO
229
- */
230
- userId?: string;
231
- /**
232
- * Whether email is verified
233
- */
234
- verified?: boolean;
235
- }
236
- /**
237
- * Pagination metadata for page-based requests
238
- */
239
- interface Pagination {
240
- /**
241
- * Items per page
242
- */
243
- limit: number;
244
- /**
245
- * Current page number
246
- */
247
- page: number;
248
- /**
249
- * Total number of items
250
- */
251
- total: number;
252
- /**
253
- * Total number of pages
254
- */
255
- totalPages: number;
256
- }
158
+ type: 'admin' | 'customer' | 'guest' | 'integration' | 'bot' | 'lead';
159
+ /**
160
+ * Number of comments created
161
+ */
162
+ commentsCreated?: number;
163
+ /**
164
+ * Companies the user belongs to
165
+ */
166
+ companies?: Array<CompaniesAPI.Company>;
167
+ /**
168
+ * Custom field values on the user
169
+ */
170
+ customFields?: {
171
+ [key: string]: unknown;
172
+ };
173
+ /**
174
+ * User description/bio
175
+ */
176
+ description?: string;
177
+ /**
178
+ * User email
179
+ */
180
+ email?: string | null;
181
+ /**
182
+ * Last activity ISO timestamp
183
+ */
184
+ lastActivity?: string;
185
+ /**
186
+ * User locale
187
+ */
188
+ locale?: string;
189
+ /**
190
+ * Whether manually opted out from changelog
191
+ */
192
+ manuallyOptedOutFromChangelog?: boolean;
193
+ /**
194
+ * Organization ID the user belongs to
195
+ */
196
+ organizationId?: string;
197
+ /**
198
+ * Number of posts created
199
+ */
200
+ postsCreated?: number;
201
+ /**
202
+ * Profile picture URL
203
+ */
204
+ profilePicture?: string | null;
205
+ /**
206
+ * User roles
207
+ */
208
+ roles?: Array<string>;
209
+ /**
210
+ * Whether subscribed to changelog
211
+ */
212
+ subscribedToChangelog?: boolean;
213
+ /**
214
+ * External user ID from SSO
215
+ */
216
+ userId?: string;
217
+ /**
218
+ * Whether email is verified
219
+ */
220
+ verified?: boolean;
257
221
  }
258
222
  export interface VoterAddResponse {
259
223
  /**
@@ -291,16 +255,7 @@ export interface VoterRemoveResponse {
291
255
  */
292
256
  removed: true;
293
257
  }
294
- export interface VoterListParams {
295
- /**
296
- * Query param: An opaque cursor for pagination. Use the nextCursor value from a
297
- * previous response to fetch the next page of results.
298
- */
299
- cursor?: string;
300
- /**
301
- * Query param: A limit on the number of voters to be returned, between 1 and 100.
302
- */
303
- limit?: number;
258
+ export interface VoterListParams extends CursorPageParams {
304
259
  /**
305
260
  * Header param: API version for this request. Defaults to your organization's
306
261
  * configured API version if not specified.
@@ -354,6 +309,6 @@ export interface VoterRemoveParams {
354
309
  'Featurebase-Version'?: string;
355
310
  }
356
311
  export declare namespace Voters {
357
- export { type VoterListResponse as VoterListResponse, type VoterAddResponse as VoterAddResponse, type VoterRemoveResponse as VoterRemoveResponse, type VoterListParams as VoterListParams, type VoterAddParams as VoterAddParams, type VoterRemoveParams as VoterRemoveParams, };
312
+ export { type VoterListResponse as VoterListResponse, type VoterAddResponse as VoterAddResponse, type VoterRemoveResponse as VoterRemoveResponse, type VoterListResponsesCursorPage as VoterListResponsesCursorPage, type VoterListParams as VoterListParams, type VoterAddParams as VoterAddParams, type VoterRemoveParams as VoterRemoveParams, };
358
313
  }
359
314
  //# sourceMappingURL=voters.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"voters.d.ts","sourceRoot":"","sources":["../../../src/resources/feedback/posts/voters.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,YAAY;OACjB,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2CG;IACH,IAAI,CACF,EAAE,EAAE,MAAM,EACV,MAAM,GAAE,eAAe,GAAG,IAAI,GAAG,SAAc,EAC/C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,iBAAiB,CAAC;IAYhC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA4CG;IACH,GAAG,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,cAAc,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,gBAAgB,CAAC;IAY/F;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAkCG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,mBAAmB,CAAC;CAWzG;AAED,MAAM,WAAW,iBAAiB;IAChC;;OAEG;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AO,EACL,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
@@ -3,6 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.Voters = void 0;
5
5
  const resource_1 = require("../../../core/resource.js");
6
+ const pagination_1 = require("../../../core/pagination.js");
6
7
  const headers_1 = require("../../../internal/headers.js");
7
8
  const path_1 = require("../../../internal/utils/path.js");
8
9
  /**
@@ -48,14 +49,17 @@ class Voters extends resource_1.APIResource {
48
49
  *
49
50
  * @example
50
51
  * ```ts
51
- * const voters = await client.feedback.posts.voters.list(
52
+ * // Automatically fetches more pages as needed.
53
+ * for await (const voterListResponse of client.feedback.posts.voters.list(
52
54
  * '507f1f77bcf86cd799439011',
53
- * );
55
+ * )) {
56
+ * // ...
57
+ * }
54
58
  * ```
55
59
  */
56
60
  list(id, params = {}, options) {
57
61
  const { 'Featurebase-Version': featurebaseVersion, ...query } = params ?? {};
58
- return this._client.get((0, path_1.path) `/v2/posts/${id}/voters`, {
62
+ return this._client.getAPIList((0, path_1.path) `/v2/posts/${id}/voters`, (pagination_1.CursorPage), {
59
63
  query,
60
64
  ...options,
61
65
  headers: (0, headers_1.buildHeaders)([
@@ -1 +1 @@
1
- {"version":3,"file":"voters.js","sourceRoot":"","sources":["../../../src/resources/feedback/posts/voters.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAGrD,0DAAyD;AAEzD,0DAAoD;AAEpD;;GAEG;AACH,MAAa,MAAO,SAAQ,sBAAW;IACrC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2CG;IACH,IAAI,CACF,EAAU,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OA4CG;IACH,GAAG,CAAC,EAAU,EAAE,MAAsB,EAAE,OAAwB;QAC9D,MAAM,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACtE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,aAAa,EAAE,SAAS,EAAE;YACrD,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC;gBACpB,EAAE,GAAG,CAAC,kBAAkB,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,EAAE;gBAC/F,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAkCG;IACH,MAAM,CAAC,EAAU,EAAE,MAAyB,EAAE,OAAwB;QACpE,MAAM,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACtE,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,aAAa,EAAE,SAAS,EAAE;YACvD,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC;gBACpB,EAAE,GAAG,CAAC,kBAAkB,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,EAAE;gBAC/F,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;CACF;AAvKD,wBAuKC"}
@@ -1,5 +1,6 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
  import { APIResource } from "../../../core/resource.mjs";
3
+ import { CursorPage } from "../../../core/pagination.mjs";
3
4
  import { buildHeaders } from "../../../internal/headers.mjs";
4
5
  import { path } from "../../../internal/utils/path.mjs";
5
6
  /**
@@ -45,14 +46,17 @@ export class Voters extends APIResource {
45
46
  *
46
47
  * @example
47
48
  * ```ts
48
- * const voters = await client.feedback.posts.voters.list(
49
+ * // Automatically fetches more pages as needed.
50
+ * for await (const voterListResponse of client.feedback.posts.voters.list(
49
51
  * '507f1f77bcf86cd799439011',
50
- * );
52
+ * )) {
53
+ * // ...
54
+ * }
51
55
  * ```
52
56
  */
53
57
  list(id, params = {}, options) {
54
58
  const { 'Featurebase-Version': featurebaseVersion, ...query } = params ?? {};
55
- return this._client.get(path `/v2/posts/${id}/voters`, {
59
+ return this._client.getAPIList(path `/v2/posts/${id}/voters`, (CursorPage), {
56
60
  query,
57
61
  ...options,
58
62
  headers: buildHeaders([
@@ -1 +1 @@
1
- {"version":3,"file":"voters.mjs","sourceRoot":"","sources":["../../../src/resources/feedback/posts/voters.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf;;GAEG;AACH,MAAM,OAAO,MAAO,SAAQ,WAAW;IACrC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2CG;IACH,IAAI,CACF,EAAU,EACV,SAA6C,EAAE,EAC/C,OAAwB;QAExB,MAAM,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,GAAG,KAAK,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QAC7E,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,aAAa,EAAE,SAAS,EAAE;YACpD,KAAK;YACL,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC;gBACpB,EAAE,GAAG,CAAC,kBAAkB,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,EAAE;gBAC/F,OAAO,EAAE,OAAO;aAC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