featurebase-node 0.2.0 → 0.3.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 (271) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/client.d.mts +17 -8
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +17 -8
  5. package/client.d.ts.map +1 -1
  6. package/client.js +17 -8
  7. package/client.js.map +1 -1
  8. package/client.mjs +17 -8
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/feedback/comments.d.mts +1 -1
  12. package/resources/feedback/comments.d.ts +1 -1
  13. package/resources/feedback/posts/posts.d.mts +1 -1
  14. package/resources/feedback/posts/posts.d.ts +1 -1
  15. package/resources/index.d.mts +3 -2
  16. package/resources/index.d.mts.map +1 -1
  17. package/resources/index.d.ts +3 -2
  18. package/resources/index.d.ts.map +1 -1
  19. package/resources/index.js +7 -5
  20. package/resources/index.js.map +1 -1
  21. package/resources/index.mjs +3 -2
  22. package/resources/index.mjs.map +1 -1
  23. package/resources/{products → support}/conversation-tags.d.mts +4 -4
  24. package/resources/{products/conversation-tags.d.ts.map → support/conversation-tags.d.mts.map} +1 -1
  25. package/resources/{products → support}/conversation-tags.d.ts +4 -4
  26. package/resources/support/conversation-tags.d.ts.map +1 -0
  27. package/resources/{products → support}/conversation-tags.js +4 -4
  28. package/resources/support/conversation-tags.js.map +1 -0
  29. package/resources/{products → support}/conversation-tags.mjs +4 -4
  30. package/resources/support/conversation-tags.mjs.map +1 -0
  31. package/resources/{products → support}/conversations/conversations.d.mts +7 -7
  32. package/resources/{products/conversations/conversations.d.ts.map → support/conversations/conversations.d.mts.map} +1 -1
  33. package/resources/{products → support}/conversations/conversations.d.ts +7 -7
  34. package/resources/support/conversations/conversations.d.ts.map +1 -0
  35. package/resources/{products → support}/conversations/conversations.js +7 -7
  36. package/resources/support/conversations/conversations.js.map +1 -0
  37. package/resources/{products → support}/conversations/conversations.mjs +7 -7
  38. package/resources/support/conversations/conversations.mjs.map +1 -0
  39. package/resources/{products/conversations/index.d.ts.map → support/conversations/index.d.mts.map} +1 -1
  40. package/resources/support/conversations/index.d.ts.map +1 -0
  41. package/resources/support/conversations/index.js.map +1 -0
  42. package/resources/support/conversations/index.mjs.map +1 -0
  43. package/resources/{products → support}/conversations/participants.d.mts +2 -2
  44. package/resources/{products/conversations/participants.d.ts.map → support/conversations/participants.d.mts.map} +1 -1
  45. package/resources/{products → support}/conversations/participants.d.ts +2 -2
  46. package/resources/support/conversations/participants.d.ts.map +1 -0
  47. package/resources/{products → support}/conversations/participants.js +2 -2
  48. package/resources/support/conversations/participants.js.map +1 -0
  49. package/resources/{products → support}/conversations/participants.mjs +2 -2
  50. package/resources/support/conversations/participants.mjs.map +1 -0
  51. package/resources/{products → support}/conversations/tags.d.mts +2 -2
  52. package/resources/{products/conversations/tags.d.ts.map → support/conversations/tags.d.mts.map} +1 -1
  53. package/resources/{products → support}/conversations/tags.d.ts +2 -2
  54. package/resources/support/conversations/tags.d.ts.map +1 -0
  55. package/resources/{products → support}/conversations/tags.js +2 -2
  56. package/resources/support/conversations/tags.js.map +1 -0
  57. package/resources/{products → support}/conversations/tags.mjs +2 -2
  58. package/resources/support/conversations/tags.mjs.map +1 -0
  59. package/resources/support/conversations.d.mts.map +1 -0
  60. package/resources/support/conversations.d.ts.map +1 -0
  61. package/resources/support/conversations.js.map +1 -0
  62. package/resources/support/conversations.mjs.map +1 -0
  63. package/resources/{products → support}/index.d.mts +1 -2
  64. package/resources/support/index.d.mts.map +1 -0
  65. package/resources/{products → support}/index.d.ts +1 -2
  66. package/resources/support/index.d.ts.map +1 -0
  67. package/resources/{products → support}/index.js +3 -5
  68. package/resources/support/index.js.map +1 -0
  69. package/resources/{products → support}/index.mjs +1 -2
  70. package/resources/support/index.mjs.map +1 -0
  71. package/resources/{products/products.d.mts → support/support.d.mts} +3 -7
  72. package/resources/support/support.d.mts.map +1 -0
  73. package/resources/{products/products.d.ts → support/support.d.ts} +3 -7
  74. package/resources/support/support.d.ts.map +1 -0
  75. package/resources/{products/products.js → support/support.js} +7 -11
  76. package/resources/support/support.js.map +1 -0
  77. package/resources/{products/products.mjs → support/support.mjs} +5 -9
  78. package/resources/support/support.mjs.map +1 -0
  79. package/resources/{products → support}/tickets/categories.d.mts +2 -2
  80. package/resources/{products/tickets/categories.d.ts.map → support/tickets/categories.d.mts.map} +1 -1
  81. package/resources/{products → support}/tickets/categories.d.ts +2 -2
  82. package/resources/support/tickets/categories.d.ts.map +1 -0
  83. package/resources/{products → support}/tickets/categories.js +2 -2
  84. package/resources/support/tickets/categories.js.map +1 -0
  85. package/resources/{products → support}/tickets/categories.mjs +2 -2
  86. package/resources/support/tickets/categories.mjs.map +1 -0
  87. package/resources/{products → support}/tickets/custom-fields.d.mts +2 -2
  88. package/resources/{products/tickets/custom-fields.d.ts.map → support/tickets/custom-fields.d.mts.map} +1 -1
  89. package/resources/{products → support}/tickets/custom-fields.d.ts +2 -2
  90. package/resources/support/tickets/custom-fields.d.ts.map +1 -0
  91. package/resources/{products → support}/tickets/custom-fields.js +2 -2
  92. package/resources/support/tickets/custom-fields.js.map +1 -0
  93. package/resources/{products → support}/tickets/custom-fields.mjs +2 -2
  94. package/resources/support/tickets/custom-fields.mjs.map +1 -0
  95. package/resources/{products/tickets/index.d.ts.map → support/tickets/index.d.mts.map} +1 -1
  96. package/resources/support/tickets/index.d.ts.map +1 -0
  97. package/resources/support/tickets/index.js.map +1 -0
  98. package/resources/support/tickets/index.mjs.map +1 -0
  99. package/resources/{products → support}/tickets/statuses.d.mts +2 -2
  100. package/resources/{products/tickets/statuses.d.ts.map → support/tickets/statuses.d.mts.map} +1 -1
  101. package/resources/{products → support}/tickets/statuses.d.ts +2 -2
  102. package/resources/support/tickets/statuses.d.ts.map +1 -0
  103. package/resources/{products → support}/tickets/statuses.js +2 -2
  104. package/resources/support/tickets/statuses.js.map +1 -0
  105. package/resources/{products → support}/tickets/statuses.mjs +2 -2
  106. package/resources/support/tickets/statuses.mjs.map +1 -0
  107. package/resources/{products → support}/tickets/tickets.d.mts +8 -7
  108. package/resources/{products/tickets/tickets.d.ts.map → support/tickets/tickets.d.mts.map} +1 -1
  109. package/resources/{products → support}/tickets/tickets.d.ts +8 -7
  110. package/resources/support/tickets/tickets.d.ts.map +1 -0
  111. package/resources/{products → support}/tickets/tickets.js +6 -6
  112. package/resources/support/tickets/tickets.js.map +1 -0
  113. package/resources/{products → support}/tickets/tickets.mjs +6 -6
  114. package/resources/support/tickets/tickets.mjs.map +1 -0
  115. package/resources/support/tickets.d.mts.map +1 -0
  116. package/resources/support/tickets.d.ts.map +1 -0
  117. package/resources/support/tickets.js.map +1 -0
  118. package/resources/support/tickets.mjs.map +1 -0
  119. package/resources/support.d.mts +2 -0
  120. package/resources/support.d.mts.map +1 -0
  121. package/resources/support.d.ts +2 -0
  122. package/resources/support.d.ts.map +1 -0
  123. package/resources/{products.js → support.js} +2 -2
  124. package/resources/support.js.map +1 -0
  125. package/{src/resources/integrations.ts → resources/support.mjs} +2 -2
  126. package/resources/support.mjs.map +1 -0
  127. package/resources/{products/surveys.d.mts → surveys.d.mts} +4 -24
  128. package/resources/surveys.d.mts.map +1 -0
  129. package/resources/{products/surveys.d.ts → surveys.d.ts} +4 -24
  130. package/resources/surveys.d.ts.map +1 -0
  131. package/resources/{products/surveys.js → surveys.js} +3 -23
  132. package/resources/surveys.js.map +1 -0
  133. package/resources/{products/surveys.mjs → surveys.mjs} +3 -23
  134. package/resources/surveys.mjs.map +1 -0
  135. package/resources/{integrations/webhooks.d.mts → webhooks.d.mts} +11 -12
  136. package/resources/webhooks.d.mts.map +1 -0
  137. package/resources/{integrations/webhooks.d.ts → webhooks.d.ts} +11 -12
  138. package/resources/webhooks.d.ts.map +1 -0
  139. package/resources/{integrations/webhooks.js → webhooks.js} +11 -12
  140. package/resources/webhooks.js.map +1 -0
  141. package/resources/{integrations/webhooks.mjs → webhooks.mjs} +11 -12
  142. package/resources/webhooks.mjs.map +1 -0
  143. package/src/client.ts +65 -12
  144. package/src/resources/feedback/comments.ts +1 -1
  145. package/src/resources/feedback/posts/posts.ts +1 -1
  146. package/src/resources/index.ts +24 -2
  147. package/src/resources/{products → support}/conversation-tags.ts +4 -4
  148. package/src/resources/{products → support}/conversations/conversations.ts +7 -7
  149. package/src/resources/{products → support}/conversations/participants.ts +2 -2
  150. package/src/resources/{products → support}/conversations/tags.ts +2 -2
  151. package/src/resources/{products → support}/index.ts +1 -11
  152. package/src/resources/{products/products.ts → support/support.ts} +5 -29
  153. package/src/resources/{products → support}/tickets/categories.ts +2 -2
  154. package/src/resources/{products → support}/tickets/custom-fields.ts +2 -2
  155. package/src/resources/{products → support}/tickets/statuses.ts +2 -2
  156. package/src/resources/{products → support}/tickets/tickets.ts +8 -7
  157. package/src/resources/{products.ts → support.ts} +1 -1
  158. package/src/resources/{products/surveys.ts → surveys.ts} +6 -26
  159. package/src/resources/{integrations/webhooks.ts → webhooks.ts} +13 -14
  160. package/src/version.ts +1 -1
  161. package/version.d.mts +1 -1
  162. package/version.d.ts +1 -1
  163. package/version.js +1 -1
  164. package/version.mjs +1 -1
  165. package/resources/integrations/index.d.mts +0 -3
  166. package/resources/integrations/index.d.mts.map +0 -1
  167. package/resources/integrations/index.d.ts +0 -3
  168. package/resources/integrations/index.d.ts.map +0 -1
  169. package/resources/integrations/index.js +0 -9
  170. package/resources/integrations/index.js.map +0 -1
  171. package/resources/integrations/index.mjs +0 -4
  172. package/resources/integrations/index.mjs.map +0 -1
  173. package/resources/integrations/integrations.d.mts +0 -10
  174. package/resources/integrations/integrations.d.mts.map +0 -1
  175. package/resources/integrations/integrations.d.ts +0 -10
  176. package/resources/integrations/integrations.d.ts.map +0 -1
  177. package/resources/integrations/integrations.js +0 -17
  178. package/resources/integrations/integrations.js.map +0 -1
  179. package/resources/integrations/integrations.mjs +0 -12
  180. package/resources/integrations/integrations.mjs.map +0 -1
  181. package/resources/integrations/webhooks.d.mts.map +0 -1
  182. package/resources/integrations/webhooks.d.ts.map +0 -1
  183. package/resources/integrations/webhooks.js.map +0 -1
  184. package/resources/integrations/webhooks.mjs.map +0 -1
  185. package/resources/integrations.d.mts +0 -2
  186. package/resources/integrations.d.mts.map +0 -1
  187. package/resources/integrations.d.ts +0 -2
  188. package/resources/integrations.d.ts.map +0 -1
  189. package/resources/integrations.js +0 -6
  190. package/resources/integrations.js.map +0 -1
  191. package/resources/integrations.mjs +0 -3
  192. package/resources/integrations.mjs.map +0 -1
  193. package/resources/products/conversation-tags.d.mts.map +0 -1
  194. package/resources/products/conversation-tags.js.map +0 -1
  195. package/resources/products/conversation-tags.mjs.map +0 -1
  196. package/resources/products/conversations/conversations.d.mts.map +0 -1
  197. package/resources/products/conversations/conversations.js.map +0 -1
  198. package/resources/products/conversations/conversations.mjs.map +0 -1
  199. package/resources/products/conversations/index.d.mts.map +0 -1
  200. package/resources/products/conversations/index.js.map +0 -1
  201. package/resources/products/conversations/index.mjs.map +0 -1
  202. package/resources/products/conversations/participants.d.mts.map +0 -1
  203. package/resources/products/conversations/participants.js.map +0 -1
  204. package/resources/products/conversations/participants.mjs.map +0 -1
  205. package/resources/products/conversations/tags.d.mts.map +0 -1
  206. package/resources/products/conversations/tags.js.map +0 -1
  207. package/resources/products/conversations/tags.mjs.map +0 -1
  208. package/resources/products/conversations.d.mts.map +0 -1
  209. package/resources/products/conversations.d.ts.map +0 -1
  210. package/resources/products/conversations.js.map +0 -1
  211. package/resources/products/conversations.mjs.map +0 -1
  212. package/resources/products/index.d.mts.map +0 -1
  213. package/resources/products/index.d.ts.map +0 -1
  214. package/resources/products/index.js.map +0 -1
  215. package/resources/products/index.mjs.map +0 -1
  216. package/resources/products/products.d.mts.map +0 -1
  217. package/resources/products/products.d.ts.map +0 -1
  218. package/resources/products/products.js.map +0 -1
  219. package/resources/products/products.mjs.map +0 -1
  220. package/resources/products/surveys.d.mts.map +0 -1
  221. package/resources/products/surveys.d.ts.map +0 -1
  222. package/resources/products/surveys.js.map +0 -1
  223. package/resources/products/surveys.mjs.map +0 -1
  224. package/resources/products/tickets/categories.d.mts.map +0 -1
  225. package/resources/products/tickets/categories.js.map +0 -1
  226. package/resources/products/tickets/categories.mjs.map +0 -1
  227. package/resources/products/tickets/custom-fields.d.mts.map +0 -1
  228. package/resources/products/tickets/custom-fields.js.map +0 -1
  229. package/resources/products/tickets/custom-fields.mjs.map +0 -1
  230. package/resources/products/tickets/index.d.mts.map +0 -1
  231. package/resources/products/tickets/index.js.map +0 -1
  232. package/resources/products/tickets/index.mjs.map +0 -1
  233. package/resources/products/tickets/statuses.d.mts.map +0 -1
  234. package/resources/products/tickets/statuses.js.map +0 -1
  235. package/resources/products/tickets/statuses.mjs.map +0 -1
  236. package/resources/products/tickets/tickets.d.mts.map +0 -1
  237. package/resources/products/tickets/tickets.js.map +0 -1
  238. package/resources/products/tickets/tickets.mjs.map +0 -1
  239. package/resources/products/tickets.d.mts.map +0 -1
  240. package/resources/products/tickets.d.ts.map +0 -1
  241. package/resources/products/tickets.js.map +0 -1
  242. package/resources/products/tickets.mjs.map +0 -1
  243. package/resources/products.d.mts +0 -2
  244. package/resources/products.d.mts.map +0 -1
  245. package/resources/products.d.ts +0 -2
  246. package/resources/products.d.ts.map +0 -1
  247. package/resources/products.js.map +0 -1
  248. package/resources/products.mjs +0 -3
  249. package/resources/products.mjs.map +0 -1
  250. package/src/resources/integrations/index.ts +0 -16
  251. package/src/resources/integrations/integrations.ts +0 -39
  252. /package/resources/{products → support}/conversations/index.d.mts +0 -0
  253. /package/resources/{products → support}/conversations/index.d.ts +0 -0
  254. /package/resources/{products → support}/conversations/index.js +0 -0
  255. /package/resources/{products → support}/conversations/index.mjs +0 -0
  256. /package/resources/{products → support}/conversations.d.mts +0 -0
  257. /package/resources/{products → support}/conversations.d.ts +0 -0
  258. /package/resources/{products → support}/conversations.js +0 -0
  259. /package/resources/{products → support}/conversations.mjs +0 -0
  260. /package/resources/{products → support}/tickets/index.d.mts +0 -0
  261. /package/resources/{products → support}/tickets/index.d.ts +0 -0
  262. /package/resources/{products → support}/tickets/index.js +0 -0
  263. /package/resources/{products → support}/tickets/index.mjs +0 -0
  264. /package/resources/{products → support}/tickets.d.mts +0 -0
  265. /package/resources/{products → support}/tickets.d.ts +0 -0
  266. /package/resources/{products → support}/tickets.js +0 -0
  267. /package/resources/{products → support}/tickets.mjs +0 -0
  268. /package/src/resources/{products → support}/conversations/index.ts +0 -0
  269. /package/src/resources/{products → support}/conversations.ts +0 -0
  270. /package/src/resources/{products → support}/tickets/index.ts +0 -0
  271. /package/src/resources/{products → support}/tickets.ts +0 -0
@@ -1,3 +1,3 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- export * from './integrations/index';
2
+ export * from "./support/index.mjs";
3
+ //# sourceMappingURL=support.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"support.mjs","sourceRoot":"","sources":["../src/resources/support.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
@@ -1,8 +1,8 @@
1
- import { APIResource } from "../../core/resource.mjs";
1
+ import { APIResource } from "../core/resource.mjs";
2
2
  import * as SurveysAPI from "./surveys.mjs";
3
- import * as ContactsAPI from "../users/contacts/contacts.mjs";
4
- import { APIPromise } from "../../core/api-promise.mjs";
5
- import { RequestOptions } from "../../internal/request-options.mjs";
3
+ import * as ContactsAPI from "./users/contacts/contacts.mjs";
4
+ import { APIPromise } from "../core/api-promise.mjs";
5
+ import { RequestOptions } from "../internal/request-options.mjs";
6
6
  /**
7
7
  * Surveys allow you to collect targeted feedback from your users within your product. Surveys can be targeted to specific user segments or pages and can contain multiple questions with conditional logic.
8
8
  */
@@ -39,13 +39,6 @@ export declare class Surveys extends APIResource {
39
39
  * ### Errors
40
40
  *
41
41
  * - `404` - Survey not found in your organization
42
- *
43
- * @example
44
- * ```ts
45
- * const survey = await client.products.surveys.retrieve(
46
- * '6743752ca81ae59d25cf834b',
47
- * );
48
- * ```
49
42
  */
50
43
  retrieve(id: string, params?: SurveyRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<Survey>;
51
44
  /**
@@ -79,11 +72,6 @@ export declare class Surveys extends APIResource {
79
72
  * - `pages` - Array of survey pages/questions
80
73
  * - `createdAt` - ISO 8601 timestamp when created
81
74
  * - `updatedAt` - ISO 8601 timestamp when last updated
82
- *
83
- * @example
84
- * ```ts
85
- * const surveys = await client.products.surveys.list();
86
- * ```
87
75
  */
88
76
  list(params?: SurveyListParams | null | undefined, options?: RequestOptions): APIPromise<SurveyListResponse>;
89
77
  /**
@@ -123,14 +111,6 @@ export declare class Surveys extends APIResource {
123
111
  * ### Errors
124
112
  *
125
113
  * - `404` - Survey not found in your organization
126
- *
127
- * @example
128
- * ```ts
129
- * const response =
130
- * await client.products.surveys.retrieveResponses(
131
- * '6743752ca81ae59d25cf834b',
132
- * );
133
- * ```
134
114
  */
135
115
  retrieveResponses(id: string, params?: SurveyRetrieveResponsesParams | null | undefined, options?: RequestOptions): APIPromise<SurveyRetrieveResponsesResponse>;
136
116
  }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"surveys.d.mts","sourceRoot":"","sources":["../src/resources/surveys.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,UAAU;OACf,KAAK,WAAW;OAChB,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAgCG;IACH,QAAQ,CACN,EAAE,EAAE,MAAM,EACV,MAAM,GAAE,oBAAoB,GAAG,IAAI,GAAG,SAAc,EACpD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,MAAM,CAAC;IAWrB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA+BG;IACH,IAAI,CACF,MAAM,GAAE,gBAAgB,GAAG,IAAI,GAAG,SAAc,EAChD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,kBAAkB,CA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vE,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,6BAA6B,IAAI,6BAA6B,GACpE,CAAC;CACH"}
@@ -1,8 +1,8 @@
1
- import { APIResource } from "../../core/resource.js";
1
+ import { APIResource } from "../core/resource.js";
2
2
  import * as SurveysAPI from "./surveys.js";
3
- import * as ContactsAPI from "../users/contacts/contacts.js";
4
- import { APIPromise } from "../../core/api-promise.js";
5
- import { RequestOptions } from "../../internal/request-options.js";
3
+ import * as ContactsAPI from "./users/contacts/contacts.js";
4
+ import { APIPromise } from "../core/api-promise.js";
5
+ import { RequestOptions } from "../internal/request-options.js";
6
6
  /**
7
7
  * Surveys allow you to collect targeted feedback from your users within your product. Surveys can be targeted to specific user segments or pages and can contain multiple questions with conditional logic.
8
8
  */
@@ -39,13 +39,6 @@ export declare class Surveys extends APIResource {
39
39
  * ### Errors
40
40
  *
41
41
  * - `404` - Survey not found in your organization
42
- *
43
- * @example
44
- * ```ts
45
- * const survey = await client.products.surveys.retrieve(
46
- * '6743752ca81ae59d25cf834b',
47
- * );
48
- * ```
49
42
  */
50
43
  retrieve(id: string, params?: SurveyRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<Survey>;
51
44
  /**
@@ -79,11 +72,6 @@ export declare class Surveys extends APIResource {
79
72
  * - `pages` - Array of survey pages/questions
80
73
  * - `createdAt` - ISO 8601 timestamp when created
81
74
  * - `updatedAt` - ISO 8601 timestamp when last updated
82
- *
83
- * @example
84
- * ```ts
85
- * const surveys = await client.products.surveys.list();
86
- * ```
87
75
  */
88
76
  list(params?: SurveyListParams | null | undefined, options?: RequestOptions): APIPromise<SurveyListResponse>;
89
77
  /**
@@ -123,14 +111,6 @@ export declare class Surveys extends APIResource {
123
111
  * ### Errors
124
112
  *
125
113
  * - `404` - Survey not found in your organization
126
- *
127
- * @example
128
- * ```ts
129
- * const response =
130
- * await client.products.surveys.retrieveResponses(
131
- * '6743752ca81ae59d25cf834b',
132
- * );
133
- * ```
134
114
  */
135
115
  retrieveResponses(id: string, params?: SurveyRetrieveResponsesParams | null | undefined, options?: RequestOptions): APIPromise<SurveyRetrieveResponsesResponse>;
136
116
  }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"surveys.d.ts","sourceRoot":"","sources":["../src/resources/surveys.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,UAAU;OACf,KAAK,WAAW;OAChB,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAgCG;IACH,QAAQ,CACN,EAAE,EAAE,MAAM,EACV,MAAM,GAAE,oBAAoB,GAAG,IAAI,GAAG,SAAc,EACpD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,MAAM,CAAC;IAWrB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA+BG;IACH,IAAI,CACF,MAAM,GAAE,gBAAgB,GAAG,IAAI,GAAG,SAAc,EAChD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,kBAAkB,CAAC;IAYjC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAqCG;IACH,iBAAiB,CACf,EAAE,EAAE,MAAM,EACV,MAAM,GAAE,6BAA6B,GAAG,IAAI,GAAG,SAAc,EAC7D,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,+BAA+B,CAAC;CAW/C;AAED,MAAM,WAAW,MAAM;IACrB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,QAAQ,EAAE,OAAO,CAAC;IAElB;;OAEG;IACH,MAAM,EAAE,QAAQ,CAAC;IAEjB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,KAAK,EAAE,KAAK,CAAC,MAA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AC/B;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAE1B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,QAAQ,GAAG,iBAAiB,CAAC;IAEtD;;;OAGG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC;AAED,MAAM,WAAW,6BAA6B;IAC5C;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;OAGG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,MAAM,IAAI,MAAM,EACrB,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,6BAA6B,IAAI,6BAA6B,GACpE,CAAC;CACH"}
@@ -2,9 +2,9 @@
2
2
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.Surveys = void 0;
5
- const resource_1 = require("../../core/resource.js");
6
- const headers_1 = require("../../internal/headers.js");
7
- const path_1 = require("../../internal/utils/path.js");
5
+ const resource_1 = require("../core/resource.js");
6
+ const headers_1 = require("../internal/headers.js");
7
+ const path_1 = require("../internal/utils/path.js");
8
8
  /**
9
9
  * Surveys allow you to collect targeted feedback from your users within your product. Surveys can be targeted to specific user segments or pages and can contain multiple questions with conditional logic.
10
10
  */
@@ -41,13 +41,6 @@ class Surveys extends resource_1.APIResource {
41
41
  * ### Errors
42
42
  *
43
43
  * - `404` - Survey not found in your organization
44
- *
45
- * @example
46
- * ```ts
47
- * const survey = await client.products.surveys.retrieve(
48
- * '6743752ca81ae59d25cf834b',
49
- * );
50
- * ```
51
44
  */
52
45
  retrieve(id, params = {}, options) {
53
46
  const { 'Featurebase-Version': featurebaseVersion } = params ?? {};
@@ -90,11 +83,6 @@ class Surveys extends resource_1.APIResource {
90
83
  * - `pages` - Array of survey pages/questions
91
84
  * - `createdAt` - ISO 8601 timestamp when created
92
85
  * - `updatedAt` - ISO 8601 timestamp when last updated
93
- *
94
- * @example
95
- * ```ts
96
- * const surveys = await client.products.surveys.list();
97
- * ```
98
86
  */
99
87
  list(params = {}, options) {
100
88
  const { 'Featurebase-Version': featurebaseVersion, ...query } = params ?? {};
@@ -144,14 +132,6 @@ class Surveys extends resource_1.APIResource {
144
132
  * ### Errors
145
133
  *
146
134
  * - `404` - Survey not found in your organization
147
- *
148
- * @example
149
- * ```ts
150
- * const response =
151
- * await client.products.surveys.retrieveResponses(
152
- * '6743752ca81ae59d25cf834b',
153
- * );
154
- * ```
155
135
  */
156
136
  retrieveResponses(id, params = {}, options) {
157
137
  const { 'Featurebase-Version': featurebaseVersion, ...query } = params ?? {};
@@ -0,0 +1 @@
1
+ {"version":3,"file":"surveys.js","sourceRoot":"","sources":["../src/resources/surveys.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,oDAAmD;AAEnD,oDAA8C;AAE9C;;GAEG;AACH,MAAa,OAAQ,SAAQ,sBAAW;IACtC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAgCG;IACH,QAAQ,CACN,EAAU,EACV,SAAkD,EAAE,EACpD,OAAwB;QAExB,MAAM,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QACnE,OAAO,IAAI,CAAC,OAAO,CAAC,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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;AArJD,0BAqJC"}
@@ -1,7 +1,7 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- import { APIResource } from "../../core/resource.mjs";
3
- import { buildHeaders } from "../../internal/headers.mjs";
4
- import { path } from "../../internal/utils/path.mjs";
2
+ import { APIResource } from "../core/resource.mjs";
3
+ import { buildHeaders } from "../internal/headers.mjs";
4
+ import { path } from "../internal/utils/path.mjs";
5
5
  /**
6
6
  * Surveys allow you to collect targeted feedback from your users within your product. Surveys can be targeted to specific user segments or pages and can contain multiple questions with conditional logic.
7
7
  */
@@ -38,13 +38,6 @@ export class Surveys extends APIResource {
38
38
  * ### Errors
39
39
  *
40
40
  * - `404` - Survey not found in your organization
41
- *
42
- * @example
43
- * ```ts
44
- * const survey = await client.products.surveys.retrieve(
45
- * '6743752ca81ae59d25cf834b',
46
- * );
47
- * ```
48
41
  */
49
42
  retrieve(id, params = {}, options) {
50
43
  const { 'Featurebase-Version': featurebaseVersion } = params ?? {};
@@ -87,11 +80,6 @@ export class Surveys extends APIResource {
87
80
  * - `pages` - Array of survey pages/questions
88
81
  * - `createdAt` - ISO 8601 timestamp when created
89
82
  * - `updatedAt` - ISO 8601 timestamp when last updated
90
- *
91
- * @example
92
- * ```ts
93
- * const surveys = await client.products.surveys.list();
94
- * ```
95
83
  */
96
84
  list(params = {}, options) {
97
85
  const { 'Featurebase-Version': featurebaseVersion, ...query } = params ?? {};
@@ -141,14 +129,6 @@ export class Surveys extends APIResource {
141
129
  * ### Errors
142
130
  *
143
131
  * - `404` - Survey not found in your organization
144
- *
145
- * @example
146
- * ```ts
147
- * const response =
148
- * await client.products.surveys.retrieveResponses(
149
- * '6743752ca81ae59d25cf834b',
150
- * );
151
- * ```
152
132
  */
153
133
  retrieveResponses(id, params = {}, options) {
154
134
  const { 'Featurebase-Version': featurebaseVersion, ...query } = params ?? {};
@@ -0,0 +1 @@
1
+ {"version":3,"file":"surveys.mjs","sourceRoot":"","sources":["../src/resources/surveys.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAIf,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf;;GAEG;AACH,MAAM,OAAO,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAgCG;IACH,QAAQ,CACN,EAAU,EACV,SAAkD,EAAE,EACpD,OAAwB;QAExB,MAAM,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QACnE,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,eAAe,EAAE,EAAE,EAAE;YAC/C,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;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA+BG;IACH,IAAI,CACF,SAA8C,EAAE,EAChD,OAAwB;QAExB,MAAM,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,GAAG,KAAK,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QAC7E,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,EAAE;YACrC,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;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAqCG;IACH,iBAAiB,CACf,EAAU,EACV,SAA2D,EAAE,EAC7D,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,eAAe,EAAE,YAAY,EAAE;YACzD,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;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -1,6 +1,6 @@
1
- import { APIResource } from "../../core/resource.mjs";
2
- import { APIPromise } from "../../core/api-promise.mjs";
3
- import { RequestOptions } from "../../internal/request-options.mjs";
1
+ import { APIResource } from "../core/resource.mjs";
2
+ import { APIPromise } from "../core/api-promise.mjs";
3
+ import { RequestOptions } from "../internal/request-options.mjs";
4
4
  /**
5
5
  * Webhooks allow you to receive real-time HTTP callbacks when events occur in your Featurebase organization. Configure webhook endpoints to subscribe to specific event types.
6
6
  */
@@ -80,7 +80,7 @@ export declare class Webhooks extends APIResource {
80
80
  *
81
81
  * @example
82
82
  * ```ts
83
- * const webhook = await client.integrations.webhooks.create({
83
+ * const webhook = await client.webhooks.create({
84
84
  * name: 'Production Webhook',
85
85
  * topics: ['post.created', 'post.updated'],
86
86
  * url: 'https://example.com/webhooks',
@@ -152,7 +152,7 @@ export declare class Webhooks extends APIResource {
152
152
  *
153
153
  * @example
154
154
  * ```ts
155
- * const webhook = await client.integrations.webhooks.retrieve(
155
+ * const webhook = await client.webhooks.retrieve(
156
156
  * '507f1f77bcf86cd799439011',
157
157
  * );
158
158
  * ```
@@ -228,7 +228,7 @@ export declare class Webhooks extends APIResource {
228
228
  *
229
229
  * @example
230
230
  * ```ts
231
- * const webhook = await client.integrations.webhooks.update(
231
+ * const webhook = await client.webhooks.update(
232
232
  * '507f1f77bcf86cd799439011',
233
233
  * );
234
234
  * ```
@@ -290,7 +290,7 @@ export declare class Webhooks extends APIResource {
290
290
  *
291
291
  * @example
292
292
  * ```ts
293
- * const webhooks = await client.integrations.webhooks.list();
293
+ * const webhooks = await client.webhooks.list();
294
294
  * ```
295
295
  */
296
296
  list(params?: WebhookListParams | null | undefined, options?: RequestOptions): APIPromise<WebhookListResponse>;
@@ -325,7 +325,7 @@ export declare class Webhooks extends APIResource {
325
325
  *
326
326
  * @example
327
327
  * ```ts
328
- * const webhook = await client.integrations.webhooks.delete(
328
+ * const webhook = await client.webhooks.delete(
329
329
  * '507f1f77bcf86cd799439011',
330
330
  * );
331
331
  * ```
@@ -370,10 +370,9 @@ export declare class Webhooks extends APIResource {
370
370
  *
371
371
  * @example
372
372
  * ```ts
373
- * const webhook =
374
- * await client.integrations.webhooks.refreshSecret(
375
- * '507f1f77bcf86cd799439011',
376
- * );
373
+ * const webhook = await client.webhooks.refreshSecret(
374
+ * '507f1f77bcf86cd799439011',
375
+ * );
377
376
  * ```
378
377
  */
379
378
  refreshSecret(id: string, params?: WebhookRefreshSecretParams | null | undefined, options?: RequestOptions): APIPromise<Webhook>;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"webhooks.d.mts","sourceRoot":"","sources":["../src/resources/webhooks.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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IAEF;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb;;;OAGG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC;AAED,MAAM,WAAW,iBAAiB;IAChC;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,MAAM,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,WAAW,CAAC;IAE3C;;;OAGG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC;AAED,MAAM,WAAW,mBAAmB;IAClC;;;OAGG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC;AAED,MAAM,WAAW,0BAA0B;IACzC;;;OAGG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,OAAO,IAAI,OAAO,EACvB,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
@@ -1,6 +1,6 @@
1
- import { APIResource } from "../../core/resource.js";
2
- import { APIPromise } from "../../core/api-promise.js";
3
- import { RequestOptions } from "../../internal/request-options.js";
1
+ import { APIResource } from "../core/resource.js";
2
+ import { APIPromise } from "../core/api-promise.js";
3
+ import { RequestOptions } from "../internal/request-options.js";
4
4
  /**
5
5
  * Webhooks allow you to receive real-time HTTP callbacks when events occur in your Featurebase organization. Configure webhook endpoints to subscribe to specific event types.
6
6
  */
@@ -80,7 +80,7 @@ export declare class Webhooks extends APIResource {
80
80
  *
81
81
  * @example
82
82
  * ```ts
83
- * const webhook = await client.integrations.webhooks.create({
83
+ * const webhook = await client.webhooks.create({
84
84
  * name: 'Production Webhook',
85
85
  * topics: ['post.created', 'post.updated'],
86
86
  * url: 'https://example.com/webhooks',
@@ -152,7 +152,7 @@ export declare class Webhooks extends APIResource {
152
152
  *
153
153
  * @example
154
154
  * ```ts
155
- * const webhook = await client.integrations.webhooks.retrieve(
155
+ * const webhook = await client.webhooks.retrieve(
156
156
  * '507f1f77bcf86cd799439011',
157
157
  * );
158
158
  * ```
@@ -228,7 +228,7 @@ export declare class Webhooks extends APIResource {
228
228
  *
229
229
  * @example
230
230
  * ```ts
231
- * const webhook = await client.integrations.webhooks.update(
231
+ * const webhook = await client.webhooks.update(
232
232
  * '507f1f77bcf86cd799439011',
233
233
  * );
234
234
  * ```
@@ -290,7 +290,7 @@ export declare class Webhooks extends APIResource {
290
290
  *
291
291
  * @example
292
292
  * ```ts
293
- * const webhooks = await client.integrations.webhooks.list();
293
+ * const webhooks = await client.webhooks.list();
294
294
  * ```
295
295
  */
296
296
  list(params?: WebhookListParams | null | undefined, options?: RequestOptions): APIPromise<WebhookListResponse>;
@@ -325,7 +325,7 @@ export declare class Webhooks extends APIResource {
325
325
  *
326
326
  * @example
327
327
  * ```ts
328
- * const webhook = await client.integrations.webhooks.delete(
328
+ * const webhook = await client.webhooks.delete(
329
329
  * '507f1f77bcf86cd799439011',
330
330
  * );
331
331
  * ```
@@ -370,10 +370,9 @@ export declare class Webhooks extends APIResource {
370
370
  *
371
371
  * @example
372
372
  * ```ts
373
- * const webhook =
374
- * await client.integrations.webhooks.refreshSecret(
375
- * '507f1f77bcf86cd799439011',
376
- * );
373
+ * const webhook = await client.webhooks.refreshSecret(
374
+ * '507f1f77bcf86cd799439011',
375
+ * );
377
376
  * ```
378
377
  */
379
378
  refreshSecret(id: string, params?: WebhookRefreshSecretParams | null | undefined, options?: RequestOptions): APIPromise<Webhook>;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"webhooks.d.ts","sourceRoot":"","sources":["../src/resources/webhooks.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAiFG;IACH,MAAM,CAAC,MAAM,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,OAAO,CAAC;IAYlF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAoEG;IACH,QAAQ,CACN,EAAE,EAAE,MAAM,EACV,MAAM,GAAE,qBAAqB,GAAG,IAAI,GAAG,SAAc,EACrD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,OAAO,CAAC;IAWtB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA0EG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,OAAO,CAAC;IAY9F;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA0DG;IACH,IAAI,CACF,MAAM,GAAE,iBAAiB,GAAG,IAAI,GAAG,SAAc,EACjD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,mBAAmB,CAAC;IAYlC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAmCG;IACH,MAAM,CACJ,EAAE,EAAE,MAAM,EACV,MAAM,GAAE,mBAAmB,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}
@@ -2,9 +2,9 @@
2
2
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.Webhooks = void 0;
5
- const resource_1 = require("../../core/resource.js");
6
- const headers_1 = require("../../internal/headers.js");
7
- const path_1 = require("../../internal/utils/path.js");
5
+ const resource_1 = require("../core/resource.js");
6
+ const headers_1 = require("../internal/headers.js");
7
+ const path_1 = require("../internal/utils/path.js");
8
8
  /**
9
9
  * Webhooks allow you to receive real-time HTTP callbacks when events occur in your Featurebase organization. Configure webhook endpoints to subscribe to specific event types.
10
10
  */
@@ -84,7 +84,7 @@ class Webhooks extends resource_1.APIResource {
84
84
  *
85
85
  * @example
86
86
  * ```ts
87
- * const webhook = await client.integrations.webhooks.create({
87
+ * const webhook = await client.webhooks.create({
88
88
  * name: 'Production Webhook',
89
89
  * topics: ['post.created', 'post.updated'],
90
90
  * url: 'https://example.com/webhooks',
@@ -166,7 +166,7 @@ class Webhooks extends resource_1.APIResource {
166
166
  *
167
167
  * @example
168
168
  * ```ts
169
- * const webhook = await client.integrations.webhooks.retrieve(
169
+ * const webhook = await client.webhooks.retrieve(
170
170
  * '507f1f77bcf86cd799439011',
171
171
  * );
172
172
  * ```
@@ -251,7 +251,7 @@ class Webhooks extends resource_1.APIResource {
251
251
  *
252
252
  * @example
253
253
  * ```ts
254
- * const webhook = await client.integrations.webhooks.update(
254
+ * const webhook = await client.webhooks.update(
255
255
  * '507f1f77bcf86cd799439011',
256
256
  * );
257
257
  * ```
@@ -323,7 +323,7 @@ class Webhooks extends resource_1.APIResource {
323
323
  *
324
324
  * @example
325
325
  * ```ts
326
- * const webhooks = await client.integrations.webhooks.list();
326
+ * const webhooks = await client.webhooks.list();
327
327
  * ```
328
328
  */
329
329
  list(params = {}, options) {
@@ -368,7 +368,7 @@ class Webhooks extends resource_1.APIResource {
368
368
  *
369
369
  * @example
370
370
  * ```ts
371
- * const webhook = await client.integrations.webhooks.delete(
371
+ * const webhook = await client.webhooks.delete(
372
372
  * '507f1f77bcf86cd799439011',
373
373
  * );
374
374
  * ```
@@ -422,10 +422,9 @@ class Webhooks extends resource_1.APIResource {
422
422
  *
423
423
  * @example
424
424
  * ```ts
425
- * const webhook =
426
- * await client.integrations.webhooks.refreshSecret(
427
- * '507f1f77bcf86cd799439011',
428
- * );
425
+ * const webhook = await client.webhooks.refreshSecret(
426
+ * '507f1f77bcf86cd799439011',
427
+ * );
429
428
  * ```
430
429
  */
431
430
  refreshSecret(id, params = {}, options) {
@@ -0,0 +1 @@
1
+ {"version":3,"file":"webhooks.js","sourceRoot":"","sources":["../src/resources/webhooks.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,oDAAmD;AAEnD,oDAA8C;AAE9C;;GAEG;AACH,MAAa,QAAS,SAAQ,sBAAW;IACvC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAiFG;IACH,MAAM,CAAC,MAA2B,EAAE,OAAwB;QAC1D,MAAM,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACtE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,cAAc,EAAE;YACvC,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAoEG;IACH,QAAQ,CACN,EAAU,EACV,SAAmD,EAAE,EACrD,O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,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;AAjcD,4BAicC"}
@@ -1,7 +1,7 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- import { APIResource } from "../../core/resource.mjs";
3
- import { buildHeaders } from "../../internal/headers.mjs";
4
- import { path } from "../../internal/utils/path.mjs";
2
+ import { APIResource } from "../core/resource.mjs";
3
+ import { buildHeaders } from "../internal/headers.mjs";
4
+ import { path } from "../internal/utils/path.mjs";
5
5
  /**
6
6
  * Webhooks allow you to receive real-time HTTP callbacks when events occur in your Featurebase organization. Configure webhook endpoints to subscribe to specific event types.
7
7
  */
@@ -81,7 +81,7 @@ export class Webhooks extends APIResource {
81
81
  *
82
82
  * @example
83
83
  * ```ts
84
- * const webhook = await client.integrations.webhooks.create({
84
+ * const webhook = await client.webhooks.create({
85
85
  * name: 'Production Webhook',
86
86
  * topics: ['post.created', 'post.updated'],
87
87
  * url: 'https://example.com/webhooks',
@@ -163,7 +163,7 @@ export class Webhooks extends APIResource {
163
163
  *
164
164
  * @example
165
165
  * ```ts
166
- * const webhook = await client.integrations.webhooks.retrieve(
166
+ * const webhook = await client.webhooks.retrieve(
167
167
  * '507f1f77bcf86cd799439011',
168
168
  * );
169
169
  * ```
@@ -248,7 +248,7 @@ export class Webhooks extends APIResource {
248
248
  *
249
249
  * @example
250
250
  * ```ts
251
- * const webhook = await client.integrations.webhooks.update(
251
+ * const webhook = await client.webhooks.update(
252
252
  * '507f1f77bcf86cd799439011',
253
253
  * );
254
254
  * ```
@@ -320,7 +320,7 @@ export class Webhooks extends APIResource {
320
320
  *
321
321
  * @example
322
322
  * ```ts
323
- * const webhooks = await client.integrations.webhooks.list();
323
+ * const webhooks = await client.webhooks.list();
324
324
  * ```
325
325
  */
326
326
  list(params = {}, options) {
@@ -365,7 +365,7 @@ export class Webhooks extends APIResource {
365
365
  *
366
366
  * @example
367
367
  * ```ts
368
- * const webhook = await client.integrations.webhooks.delete(
368
+ * const webhook = await client.webhooks.delete(
369
369
  * '507f1f77bcf86cd799439011',
370
370
  * );
371
371
  * ```
@@ -419,10 +419,9 @@ export class Webhooks extends APIResource {
419
419
  *
420
420
  * @example
421
421
  * ```ts
422
- * const webhook =
423
- * await client.integrations.webhooks.refreshSecret(
424
- * '507f1f77bcf86cd799439011',
425
- * );
422
+ * const webhook = await client.webhooks.refreshSecret(
423
+ * '507f1f77bcf86cd799439011',
424
+ * );
426
425
  * ```
427
426
  */
428
427
  refreshSecret(id, params = {}, options) {
@@ -0,0 +1 @@
1
+ {"version":3,"file":"webhooks.mjs","sourceRoot":"","sources":["../src/resources/webhooks.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf;;GAEG;AACH,MAAM,OAAO,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAiFG;IACH,MAAM,CAAC,MAA2B,EAAE,OAAwB;QAC1D,MAAM,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACtE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,cAAc,EAAE;YACvC,IAAI;YACJ,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;aACjB,CAAC;SACH,CAAC,CAAC;IACL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