@stigg/typescript 0.1.0-alpha.1 → 0.1.0-alpha.10

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 (308) hide show
  1. package/CHANGELOG.md +148 -0
  2. package/README.md +40 -0
  3. package/client.d.mts +6 -8
  4. package/client.d.mts.map +1 -1
  5. package/client.d.ts +6 -8
  6. package/client.d.ts.map +1 -1
  7. package/client.js +23 -21
  8. package/client.js.map +1 -1
  9. package/client.mjs +24 -22
  10. package/client.mjs.map +1 -1
  11. package/core/pagination.d.mts +11 -5
  12. package/core/pagination.d.mts.map +1 -1
  13. package/core/pagination.d.ts +11 -5
  14. package/core/pagination.d.ts.map +1 -1
  15. package/core/pagination.js +9 -9
  16. package/core/pagination.js.map +1 -1
  17. package/core/pagination.mjs +9 -9
  18. package/core/pagination.mjs.map +1 -1
  19. package/internal/parse.d.mts.map +1 -1
  20. package/internal/parse.d.ts.map +1 -1
  21. package/internal/parse.js +5 -0
  22. package/internal/parse.js.map +1 -1
  23. package/internal/parse.mjs +5 -0
  24. package/internal/parse.mjs.map +1 -1
  25. package/internal/qs/formats.d.mts +7 -0
  26. package/internal/qs/formats.d.mts.map +1 -0
  27. package/internal/qs/formats.d.ts +7 -0
  28. package/internal/qs/formats.d.ts.map +1 -0
  29. package/internal/qs/formats.js +13 -0
  30. package/internal/qs/formats.js.map +1 -0
  31. package/internal/qs/formats.mjs +9 -0
  32. package/internal/qs/formats.mjs.map +1 -0
  33. package/internal/qs/index.d.mts +10 -0
  34. package/internal/qs/index.d.mts.map +1 -0
  35. package/internal/qs/index.d.ts +10 -0
  36. package/internal/qs/index.d.ts.map +1 -0
  37. package/internal/qs/index.js +14 -0
  38. package/internal/qs/index.js.map +1 -0
  39. package/internal/qs/index.mjs +10 -0
  40. package/internal/qs/index.mjs.map +1 -0
  41. package/internal/qs/stringify.d.mts +3 -0
  42. package/internal/qs/stringify.d.mts.map +1 -0
  43. package/internal/qs/stringify.d.ts +3 -0
  44. package/internal/qs/stringify.d.ts.map +1 -0
  45. package/internal/qs/stringify.js +277 -0
  46. package/internal/qs/stringify.js.map +1 -0
  47. package/internal/qs/stringify.mjs +274 -0
  48. package/internal/qs/stringify.mjs.map +1 -0
  49. package/internal/qs/types.d.mts +57 -0
  50. package/internal/qs/types.d.mts.map +1 -0
  51. package/internal/qs/types.d.ts +57 -0
  52. package/internal/qs/types.d.ts.map +1 -0
  53. package/internal/qs/types.js +3 -0
  54. package/internal/qs/types.js.map +1 -0
  55. package/internal/qs/types.mjs +2 -0
  56. package/internal/qs/types.mjs.map +1 -0
  57. package/internal/qs/utils.d.mts +15 -0
  58. package/internal/qs/utils.d.mts.map +1 -0
  59. package/internal/qs/utils.d.ts +15 -0
  60. package/internal/qs/utils.d.ts.map +1 -0
  61. package/internal/qs/utils.js +230 -0
  62. package/internal/qs/utils.js.map +1 -0
  63. package/internal/qs/utils.mjs +217 -0
  64. package/internal/qs/utils.mjs.map +1 -0
  65. package/package.json +1 -1
  66. package/resources/index.d.mts +1 -1
  67. package/resources/index.d.mts.map +1 -1
  68. package/resources/index.d.ts +1 -1
  69. package/resources/index.d.ts.map +1 -1
  70. package/resources/index.js.map +1 -1
  71. package/resources/index.mjs +1 -1
  72. package/resources/index.mjs.map +1 -1
  73. package/resources/v1/coupons.d.mts +154 -157
  74. package/resources/v1/coupons.d.mts.map +1 -1
  75. package/resources/v1/coupons.d.ts +154 -157
  76. package/resources/v1/coupons.d.ts.map +1 -1
  77. package/resources/v1/coupons.js +21 -4
  78. package/resources/v1/coupons.js.map +1 -1
  79. package/resources/v1/coupons.mjs +21 -4
  80. package/resources/v1/coupons.mjs.map +1 -1
  81. package/resources/v1/customers/customers.d.mts +247 -118
  82. package/resources/v1/customers/customers.d.mts.map +1 -1
  83. package/resources/v1/customers/customers.d.ts +247 -118
  84. package/resources/v1/customers/customers.d.ts.map +1 -1
  85. package/resources/v1/customers/customers.js +37 -16
  86. package/resources/v1/customers/customers.js.map +1 -1
  87. package/resources/v1/customers/customers.mjs +37 -16
  88. package/resources/v1/customers/customers.mjs.map +1 -1
  89. package/resources/v1/customers/index.d.mts +2 -2
  90. package/resources/v1/customers/index.d.mts.map +1 -1
  91. package/resources/v1/customers/index.d.ts +2 -2
  92. package/resources/v1/customers/index.d.ts.map +1 -1
  93. package/resources/v1/customers/index.js +3 -3
  94. package/resources/v1/customers/index.js.map +1 -1
  95. package/resources/v1/customers/index.mjs +1 -1
  96. package/resources/v1/customers/index.mjs.map +1 -1
  97. package/resources/v1/customers/payment-method.d.mts +7 -2
  98. package/resources/v1/customers/payment-method.d.mts.map +1 -1
  99. package/resources/v1/customers/payment-method.d.ts +7 -2
  100. package/resources/v1/customers/payment-method.d.ts.map +1 -1
  101. package/resources/v1/customers/payment-method.js +4 -2
  102. package/resources/v1/customers/payment-method.js.map +1 -1
  103. package/resources/v1/customers/payment-method.mjs +4 -2
  104. package/resources/v1/customers/payment-method.mjs.map +1 -1
  105. package/resources/v1/customers/promotional-entitlements.d.mts +498 -0
  106. package/resources/v1/customers/promotional-entitlements.d.mts.map +1 -0
  107. package/resources/v1/customers/promotional-entitlements.d.ts +498 -0
  108. package/resources/v1/customers/promotional-entitlements.d.ts.map +1 -0
  109. package/resources/v1/customers/promotional-entitlements.js +32 -0
  110. package/resources/v1/customers/promotional-entitlements.js.map +1 -0
  111. package/resources/v1/customers/promotional-entitlements.mjs +28 -0
  112. package/resources/v1/customers/promotional-entitlements.mjs.map +1 -0
  113. package/resources/v1/events/addons/addons.d.mts +605 -0
  114. package/resources/v1/events/addons/addons.d.mts.map +1 -0
  115. package/resources/v1/events/addons/addons.d.ts +605 -0
  116. package/resources/v1/events/addons/addons.d.ts.map +1 -0
  117. package/resources/v1/events/addons/addons.js +60 -0
  118. package/resources/v1/events/addons/addons.js.map +1 -0
  119. package/resources/v1/events/addons/addons.mjs +55 -0
  120. package/resources/v1/events/addons/addons.mjs.map +1 -0
  121. package/resources/v1/events/addons/draft.d.mts +121 -0
  122. package/resources/v1/events/addons/draft.d.mts.map +1 -0
  123. package/resources/v1/events/addons/draft.d.ts +121 -0
  124. package/resources/v1/events/addons/draft.d.ts.map +1 -0
  125. package/resources/v1/events/addons/draft.js +22 -0
  126. package/resources/v1/events/addons/draft.js.map +1 -0
  127. package/resources/v1/events/addons/draft.mjs +18 -0
  128. package/resources/v1/events/addons/draft.mjs.map +1 -0
  129. package/resources/v1/events/addons/index.d.mts +3 -0
  130. package/resources/v1/events/addons/index.d.mts.map +1 -0
  131. package/resources/v1/events/addons/index.d.ts +3 -0
  132. package/resources/v1/events/addons/index.d.ts.map +1 -0
  133. package/resources/v1/events/addons/index.js +9 -0
  134. package/resources/v1/events/addons/index.js.map +1 -0
  135. package/resources/v1/events/addons/index.mjs +4 -0
  136. package/resources/v1/events/addons/index.mjs.map +1 -0
  137. package/resources/v1/events/addons.d.mts +2 -0
  138. package/resources/v1/events/addons.d.mts.map +1 -0
  139. package/resources/v1/events/addons.d.ts +2 -0
  140. package/resources/v1/events/addons.d.ts.map +1 -0
  141. package/resources/v1/events/addons.js +6 -0
  142. package/resources/v1/events/addons.js.map +1 -0
  143. package/resources/v1/events/addons.mjs +3 -0
  144. package/resources/v1/events/addons.mjs.map +1 -0
  145. package/resources/v1/events/events.d.mts +75 -0
  146. package/resources/v1/events/events.d.mts.map +1 -0
  147. package/resources/v1/events/events.d.ts +75 -0
  148. package/resources/v1/events/events.d.ts.map +1 -0
  149. package/resources/v1/events/events.js +32 -0
  150. package/resources/v1/events/events.js.map +1 -0
  151. package/resources/v1/events/events.mjs +27 -0
  152. package/resources/v1/events/events.mjs.map +1 -0
  153. package/resources/v1/events/features.d.mts +856 -0
  154. package/resources/v1/events/features.d.mts.map +1 -0
  155. package/resources/v1/events/features.d.ts +856 -0
  156. package/resources/v1/events/features.d.ts.map +1 -0
  157. package/resources/v1/events/features.js +51 -0
  158. package/resources/v1/events/features.js.map +1 -0
  159. package/resources/v1/events/features.mjs +47 -0
  160. package/resources/v1/events/features.mjs.map +1 -0
  161. package/resources/v1/events/index.d.mts +5 -0
  162. package/resources/v1/events/index.d.mts.map +1 -0
  163. package/resources/v1/events/index.d.ts +5 -0
  164. package/resources/v1/events/index.d.ts.map +1 -0
  165. package/resources/v1/events/index.js +13 -0
  166. package/resources/v1/events/index.js.map +1 -0
  167. package/resources/v1/events/index.mjs +6 -0
  168. package/resources/v1/events/index.mjs.map +1 -0
  169. package/resources/v1/events/plans.d.mts +348 -0
  170. package/resources/v1/events/plans.d.mts.map +1 -0
  171. package/resources/v1/events/plans.d.ts +348 -0
  172. package/resources/v1/events/plans.d.ts.map +1 -0
  173. package/resources/v1/events/plans.js +30 -0
  174. package/resources/v1/events/plans.js.map +1 -0
  175. package/resources/v1/events/plans.mjs +26 -0
  176. package/resources/v1/events/plans.mjs.map +1 -0
  177. package/resources/v1/events.d.mts +2 -0
  178. package/resources/v1/events.d.mts.map +1 -0
  179. package/resources/v1/events.d.ts +2 -0
  180. package/resources/v1/events.d.ts.map +1 -0
  181. package/resources/v1/events.js +6 -0
  182. package/resources/v1/events.js.map +1 -0
  183. package/resources/v1/events.mjs +3 -0
  184. package/resources/v1/events.mjs.map +1 -0
  185. package/resources/v1/index.d.mts +7 -4
  186. package/resources/v1/index.d.mts.map +1 -1
  187. package/resources/v1/index.d.ts +7 -4
  188. package/resources/v1/index.d.ts.map +1 -1
  189. package/resources/v1/index.js +9 -3
  190. package/resources/v1/index.js.map +1 -1
  191. package/resources/v1/index.mjs +4 -1
  192. package/resources/v1/index.mjs.map +1 -1
  193. package/resources/v1/products.d.mts +676 -0
  194. package/resources/v1/products.d.mts.map +1 -0
  195. package/resources/v1/products.d.ts +676 -0
  196. package/resources/v1/products.d.ts.map +1 -0
  197. package/resources/v1/products.js +52 -0
  198. package/resources/v1/products.js.map +1 -0
  199. package/resources/v1/products.mjs +48 -0
  200. package/resources/v1/products.mjs.map +1 -0
  201. package/resources/v1/subscriptions/future-update.d.mts +12 -19
  202. package/resources/v1/subscriptions/future-update.d.mts.map +1 -1
  203. package/resources/v1/subscriptions/future-update.d.ts +12 -19
  204. package/resources/v1/subscriptions/future-update.d.ts.map +1 -1
  205. package/resources/v1/subscriptions/future-update.js +3 -2
  206. package/resources/v1/subscriptions/future-update.js.map +1 -1
  207. package/resources/v1/subscriptions/future-update.mjs +3 -2
  208. package/resources/v1/subscriptions/future-update.mjs.map +1 -1
  209. package/resources/v1/subscriptions/index.d.mts +4 -2
  210. package/resources/v1/subscriptions/index.d.mts.map +1 -1
  211. package/resources/v1/subscriptions/index.d.ts +4 -2
  212. package/resources/v1/subscriptions/index.d.ts.map +1 -1
  213. package/resources/v1/subscriptions/index.js +5 -1
  214. package/resources/v1/subscriptions/index.js.map +1 -1
  215. package/resources/v1/subscriptions/index.mjs +3 -1
  216. package/resources/v1/subscriptions/index.mjs.map +1 -1
  217. package/resources/v1/subscriptions/invoice.d.mts +34 -0
  218. package/resources/v1/subscriptions/invoice.d.mts.map +1 -0
  219. package/resources/v1/subscriptions/invoice.d.ts +34 -0
  220. package/resources/v1/subscriptions/invoice.d.ts.map +1 -0
  221. package/resources/v1/subscriptions/invoice.js +17 -0
  222. package/resources/v1/subscriptions/invoice.js.map +1 -0
  223. package/resources/v1/subscriptions/invoice.mjs +13 -0
  224. package/resources/v1/subscriptions/invoice.mjs.map +1 -0
  225. package/resources/v1/subscriptions/subscriptions.d.mts +1545 -518
  226. package/resources/v1/subscriptions/subscriptions.d.mts.map +1 -1
  227. package/resources/v1/subscriptions/subscriptions.d.ts +1545 -518
  228. package/resources/v1/subscriptions/subscriptions.d.ts.map +1 -1
  229. package/resources/v1/subscriptions/subscriptions.js +52 -12
  230. package/resources/v1/subscriptions/subscriptions.js.map +1 -1
  231. package/resources/v1/subscriptions/subscriptions.mjs +53 -13
  232. package/resources/v1/subscriptions/subscriptions.mjs.map +1 -1
  233. package/resources/v1/subscriptions/usage.d.mts +98 -0
  234. package/resources/v1/subscriptions/usage.d.mts.map +1 -0
  235. package/resources/v1/subscriptions/usage.d.ts +98 -0
  236. package/resources/v1/subscriptions/usage.d.ts.map +1 -0
  237. package/resources/v1/subscriptions/usage.js +24 -0
  238. package/resources/v1/subscriptions/usage.js.map +1 -0
  239. package/resources/v1/subscriptions/usage.mjs +20 -0
  240. package/resources/v1/subscriptions/usage.mjs.map +1 -0
  241. package/resources/v1/usage.d.mts +230 -0
  242. package/resources/v1/usage.d.mts.map +1 -0
  243. package/resources/v1/usage.d.ts +230 -0
  244. package/resources/v1/usage.d.ts.map +1 -0
  245. package/resources/v1/usage.js +24 -0
  246. package/resources/v1/usage.js.map +1 -0
  247. package/resources/v1/usage.mjs +20 -0
  248. package/resources/v1/usage.mjs.map +1 -0
  249. package/resources/v1/v1.d.mts +18 -149
  250. package/resources/v1/v1.d.mts.map +1 -1
  251. package/resources/v1/v1.d.ts +18 -149
  252. package/resources/v1/v1.d.ts.map +1 -1
  253. package/resources/v1/v1.js +12 -12
  254. package/resources/v1/v1.js.map +1 -1
  255. package/resources/v1/v1.mjs +12 -12
  256. package/resources/v1/v1.mjs.map +1 -1
  257. package/src/client.ts +33 -40
  258. package/src/core/pagination.ts +24 -18
  259. package/src/internal/parse.ts +6 -0
  260. package/src/internal/qs/LICENSE.md +13 -0
  261. package/src/internal/qs/README.md +3 -0
  262. package/src/internal/qs/formats.ts +10 -0
  263. package/src/internal/qs/index.ts +13 -0
  264. package/src/internal/qs/stringify.ts +385 -0
  265. package/src/internal/qs/types.ts +71 -0
  266. package/src/internal/qs/utils.ts +265 -0
  267. package/src/resources/index.ts +1 -7
  268. package/src/resources/v1/coupons.ts +311 -436
  269. package/src/resources/v1/customers/customers.ts +334 -153
  270. package/src/resources/v1/customers/index.ts +17 -2
  271. package/src/resources/v1/customers/payment-method.ts +7 -2
  272. package/src/resources/v1/customers/promotional-entitlements.ts +669 -0
  273. package/src/resources/v1/events/addons/addons.ts +761 -0
  274. package/src/resources/v1/events/addons/draft.ts +151 -0
  275. package/src/resources/v1/events/addons/index.ts +17 -0
  276. package/src/resources/v1/events/addons.ts +3 -0
  277. package/src/resources/v1/events/events.ts +160 -0
  278. package/src/resources/v1/events/features.ts +1066 -0
  279. package/src/resources/v1/events/index.ts +39 -0
  280. package/src/resources/v1/events/plans.ts +429 -0
  281. package/src/resources/v1/events.ts +3 -0
  282. package/src/resources/v1/index.ts +40 -15
  283. package/src/resources/v1/products.ts +834 -0
  284. package/src/resources/v1/subscriptions/future-update.ts +12 -27
  285. package/src/resources/v1/subscriptions/index.ts +16 -11
  286. package/src/resources/v1/subscriptions/invoice.ts +42 -0
  287. package/src/resources/v1/subscriptions/subscriptions.ts +3316 -832
  288. package/src/resources/v1/subscriptions/usage.ts +126 -0
  289. package/src/resources/v1/usage.ts +284 -0
  290. package/src/resources/v1/v1.ts +96 -197
  291. package/src/version.ts +1 -1
  292. package/version.d.mts +1 -1
  293. package/version.d.mts.map +1 -1
  294. package/version.d.ts +1 -1
  295. package/version.d.ts.map +1 -1
  296. package/version.js +1 -1
  297. package/version.js.map +1 -1
  298. package/version.mjs +1 -1
  299. package/version.mjs.map +1 -1
  300. package/resources/v1/customers/usage.d.mts +0 -98
  301. package/resources/v1/customers/usage.d.mts.map +0 -1
  302. package/resources/v1/customers/usage.d.ts +0 -98
  303. package/resources/v1/customers/usage.d.ts.map +0 -1
  304. package/resources/v1/customers/usage.js +0 -20
  305. package/resources/v1/customers/usage.js.map +0 -1
  306. package/resources/v1/customers/usage.mjs +0 -16
  307. package/resources/v1/customers/usage.mjs.map +0 -1
  308. package/src/resources/v1/customers/usage.ts +0 -132
@@ -0,0 +1,856 @@
1
+ import { APIResource } from "../../../core/resource.js";
2
+ import { APIPromise } from "../../../core/api-promise.js";
3
+ import { MyCursorIDPage, type MyCursorIDPageParams, PagePromise } from "../../../core/pagination.js";
4
+ import { RequestOptions } from "../../../internal/request-options.js";
5
+ export declare class Features extends APIResource {
6
+ /**
7
+ * Archives a feature, preventing it from being used in new entitlements.
8
+ */
9
+ archiveFeature(id: string, options?: RequestOptions): APIPromise<FeatureArchiveFeatureResponse>;
10
+ /**
11
+ * Creates a new feature with the specified type, metering, and configuration.
12
+ */
13
+ createFeature(body: FeatureCreateFeatureParams, options?: RequestOptions): APIPromise<FeatureCreateFeatureResponse>;
14
+ /**
15
+ * Retrieves a paginated list of features in the environment.
16
+ */
17
+ listFeatures(query?: FeatureListFeaturesParams | null | undefined, options?: RequestOptions): PagePromise<FeatureListFeaturesResponsesMyCursorIDPage, FeatureListFeaturesResponse>;
18
+ /**
19
+ * Retrieves a feature by its unique identifier.
20
+ */
21
+ retrieveFeature(id: string, options?: RequestOptions): APIPromise<FeatureRetrieveFeatureResponse>;
22
+ /**
23
+ * Restores an archived feature, allowing it to be used in entitlements again.
24
+ */
25
+ unarchiveFeature(id: string, options?: RequestOptions): APIPromise<FeatureUnarchiveFeatureResponse>;
26
+ /**
27
+ * Updates an existing feature's properties such as display name, description, and
28
+ * configuration.
29
+ */
30
+ updateFeature(id: string, body: FeatureUpdateFeatureParams, options?: RequestOptions): APIPromise<FeatureUpdateFeatureResponse>;
31
+ }
32
+ export type FeatureListFeaturesResponsesMyCursorIDPage = MyCursorIDPage<FeatureListFeaturesResponse>;
33
+ /**
34
+ * Response object
35
+ */
36
+ export interface FeatureArchiveFeatureResponse {
37
+ /**
38
+ * Feature configuration object
39
+ */
40
+ data: FeatureArchiveFeatureResponse.Data;
41
+ }
42
+ export declare namespace FeatureArchiveFeatureResponse {
43
+ /**
44
+ * Feature configuration object
45
+ */
46
+ interface Data {
47
+ /**
48
+ * The unique identifier for the feature
49
+ */
50
+ id: string;
51
+ /**
52
+ * Timestamp of when the record was created
53
+ */
54
+ createdAt: string;
55
+ /**
56
+ * The description for the feature
57
+ */
58
+ description: string | null;
59
+ /**
60
+ * The display name for the feature
61
+ */
62
+ displayName: string;
63
+ /**
64
+ * The configuration data for the feature
65
+ */
66
+ enumConfiguration: Array<Data.EnumConfiguration> | null;
67
+ /**
68
+ * The status of the feature
69
+ */
70
+ featureStatus: 'NEW' | 'SUSPENDED' | 'ACTIVE';
71
+ /**
72
+ * The type of the feature
73
+ */
74
+ featureType: 'BOOLEAN' | 'NUMBER' | 'ENUM';
75
+ /**
76
+ * The units for the feature
77
+ */
78
+ featureUnits: string | null;
79
+ /**
80
+ * The plural units for the feature
81
+ */
82
+ featureUnitsPlural: string | null;
83
+ /**
84
+ * The additional metadata for the feature
85
+ */
86
+ metadata: {
87
+ [key: string]: string;
88
+ };
89
+ /**
90
+ * The meter type for the feature
91
+ */
92
+ meterType: 'None' | 'FLUCTUATING' | 'INCREMENTAL';
93
+ /**
94
+ * Unit transformation to be applied to the reported usage
95
+ */
96
+ unitTransformation: Data.UnitTransformation | null;
97
+ /**
98
+ * Timestamp of when the record was last updated
99
+ */
100
+ updatedAt: string;
101
+ }
102
+ namespace Data {
103
+ interface EnumConfiguration {
104
+ /**
105
+ * The display name for the enum configuration entity
106
+ */
107
+ displayName: string;
108
+ /**
109
+ * The unique value identifier for the enum configuration entity
110
+ */
111
+ value: string;
112
+ }
113
+ /**
114
+ * Unit transformation to be applied to the reported usage
115
+ */
116
+ interface UnitTransformation {
117
+ /**
118
+ * Divide usage by this number
119
+ */
120
+ divide: number;
121
+ /**
122
+ * Singular feature units after the transformation
123
+ */
124
+ featureUnits: string | null;
125
+ /**
126
+ * Plural feature units after the transformation
127
+ */
128
+ featureUnitsPlural: string | null;
129
+ /**
130
+ * After division, either round the result up or down
131
+ */
132
+ round: 'UP' | 'DOWN';
133
+ }
134
+ }
135
+ }
136
+ /**
137
+ * Response object
138
+ */
139
+ export interface FeatureCreateFeatureResponse {
140
+ /**
141
+ * Feature configuration object
142
+ */
143
+ data: FeatureCreateFeatureResponse.Data;
144
+ }
145
+ export declare namespace FeatureCreateFeatureResponse {
146
+ /**
147
+ * Feature configuration object
148
+ */
149
+ interface Data {
150
+ /**
151
+ * The unique identifier for the feature
152
+ */
153
+ id: string;
154
+ /**
155
+ * Timestamp of when the record was created
156
+ */
157
+ createdAt: string;
158
+ /**
159
+ * The description for the feature
160
+ */
161
+ description: string | null;
162
+ /**
163
+ * The display name for the feature
164
+ */
165
+ displayName: string;
166
+ /**
167
+ * The configuration data for the feature
168
+ */
169
+ enumConfiguration: Array<Data.EnumConfiguration> | null;
170
+ /**
171
+ * The status of the feature
172
+ */
173
+ featureStatus: 'NEW' | 'SUSPENDED' | 'ACTIVE';
174
+ /**
175
+ * The type of the feature
176
+ */
177
+ featureType: 'BOOLEAN' | 'NUMBER' | 'ENUM';
178
+ /**
179
+ * The units for the feature
180
+ */
181
+ featureUnits: string | null;
182
+ /**
183
+ * The plural units for the feature
184
+ */
185
+ featureUnitsPlural: string | null;
186
+ /**
187
+ * The additional metadata for the feature
188
+ */
189
+ metadata: {
190
+ [key: string]: string;
191
+ };
192
+ /**
193
+ * The meter type for the feature
194
+ */
195
+ meterType: 'None' | 'FLUCTUATING' | 'INCREMENTAL';
196
+ /**
197
+ * Unit transformation to be applied to the reported usage
198
+ */
199
+ unitTransformation: Data.UnitTransformation | null;
200
+ /**
201
+ * Timestamp of when the record was last updated
202
+ */
203
+ updatedAt: string;
204
+ }
205
+ namespace Data {
206
+ interface EnumConfiguration {
207
+ /**
208
+ * The display name for the enum configuration entity
209
+ */
210
+ displayName: string;
211
+ /**
212
+ * The unique value identifier for the enum configuration entity
213
+ */
214
+ value: string;
215
+ }
216
+ /**
217
+ * Unit transformation to be applied to the reported usage
218
+ */
219
+ interface UnitTransformation {
220
+ /**
221
+ * Divide usage by this number
222
+ */
223
+ divide: number;
224
+ /**
225
+ * Singular feature units after the transformation
226
+ */
227
+ featureUnits: string | null;
228
+ /**
229
+ * Plural feature units after the transformation
230
+ */
231
+ featureUnitsPlural: string | null;
232
+ /**
233
+ * After division, either round the result up or down
234
+ */
235
+ round: 'UP' | 'DOWN';
236
+ }
237
+ }
238
+ }
239
+ /**
240
+ * Feature configuration object
241
+ */
242
+ export interface FeatureListFeaturesResponse {
243
+ /**
244
+ * The unique identifier for the feature
245
+ */
246
+ id: string;
247
+ /**
248
+ * Timestamp of when the record was created
249
+ */
250
+ createdAt: string;
251
+ /**
252
+ * The description for the feature
253
+ */
254
+ description: string | null;
255
+ /**
256
+ * The display name for the feature
257
+ */
258
+ displayName: string;
259
+ /**
260
+ * The configuration data for the feature
261
+ */
262
+ enumConfiguration: Array<FeatureListFeaturesResponse.EnumConfiguration> | null;
263
+ /**
264
+ * The status of the feature
265
+ */
266
+ featureStatus: 'NEW' | 'SUSPENDED' | 'ACTIVE';
267
+ /**
268
+ * The type of the feature
269
+ */
270
+ featureType: 'BOOLEAN' | 'NUMBER' | 'ENUM';
271
+ /**
272
+ * The units for the feature
273
+ */
274
+ featureUnits: string | null;
275
+ /**
276
+ * The plural units for the feature
277
+ */
278
+ featureUnitsPlural: string | null;
279
+ /**
280
+ * The additional metadata for the feature
281
+ */
282
+ metadata: {
283
+ [key: string]: string;
284
+ };
285
+ /**
286
+ * The meter type for the feature
287
+ */
288
+ meterType: 'None' | 'FLUCTUATING' | 'INCREMENTAL';
289
+ /**
290
+ * Unit transformation to be applied to the reported usage
291
+ */
292
+ unitTransformation: FeatureListFeaturesResponse.UnitTransformation | null;
293
+ /**
294
+ * Timestamp of when the record was last updated
295
+ */
296
+ updatedAt: string;
297
+ }
298
+ export declare namespace FeatureListFeaturesResponse {
299
+ interface EnumConfiguration {
300
+ /**
301
+ * The display name for the enum configuration entity
302
+ */
303
+ displayName: string;
304
+ /**
305
+ * The unique value identifier for the enum configuration entity
306
+ */
307
+ value: string;
308
+ }
309
+ /**
310
+ * Unit transformation to be applied to the reported usage
311
+ */
312
+ interface UnitTransformation {
313
+ /**
314
+ * Divide usage by this number
315
+ */
316
+ divide: number;
317
+ /**
318
+ * Singular feature units after the transformation
319
+ */
320
+ featureUnits: string | null;
321
+ /**
322
+ * Plural feature units after the transformation
323
+ */
324
+ featureUnitsPlural: string | null;
325
+ /**
326
+ * After division, either round the result up or down
327
+ */
328
+ round: 'UP' | 'DOWN';
329
+ }
330
+ }
331
+ /**
332
+ * Response object
333
+ */
334
+ export interface FeatureRetrieveFeatureResponse {
335
+ /**
336
+ * Feature configuration object
337
+ */
338
+ data: FeatureRetrieveFeatureResponse.Data;
339
+ }
340
+ export declare namespace FeatureRetrieveFeatureResponse {
341
+ /**
342
+ * Feature configuration object
343
+ */
344
+ interface Data {
345
+ /**
346
+ * The unique identifier for the feature
347
+ */
348
+ id: string;
349
+ /**
350
+ * Timestamp of when the record was created
351
+ */
352
+ createdAt: string;
353
+ /**
354
+ * The description for the feature
355
+ */
356
+ description: string | null;
357
+ /**
358
+ * The display name for the feature
359
+ */
360
+ displayName: string;
361
+ /**
362
+ * The configuration data for the feature
363
+ */
364
+ enumConfiguration: Array<Data.EnumConfiguration> | null;
365
+ /**
366
+ * The status of the feature
367
+ */
368
+ featureStatus: 'NEW' | 'SUSPENDED' | 'ACTIVE';
369
+ /**
370
+ * The type of the feature
371
+ */
372
+ featureType: 'BOOLEAN' | 'NUMBER' | 'ENUM';
373
+ /**
374
+ * The units for the feature
375
+ */
376
+ featureUnits: string | null;
377
+ /**
378
+ * The plural units for the feature
379
+ */
380
+ featureUnitsPlural: string | null;
381
+ /**
382
+ * The additional metadata for the feature
383
+ */
384
+ metadata: {
385
+ [key: string]: string;
386
+ };
387
+ /**
388
+ * The meter type for the feature
389
+ */
390
+ meterType: 'None' | 'FLUCTUATING' | 'INCREMENTAL';
391
+ /**
392
+ * Unit transformation to be applied to the reported usage
393
+ */
394
+ unitTransformation: Data.UnitTransformation | null;
395
+ /**
396
+ * Timestamp of when the record was last updated
397
+ */
398
+ updatedAt: string;
399
+ }
400
+ namespace Data {
401
+ interface EnumConfiguration {
402
+ /**
403
+ * The display name for the enum configuration entity
404
+ */
405
+ displayName: string;
406
+ /**
407
+ * The unique value identifier for the enum configuration entity
408
+ */
409
+ value: string;
410
+ }
411
+ /**
412
+ * Unit transformation to be applied to the reported usage
413
+ */
414
+ interface UnitTransformation {
415
+ /**
416
+ * Divide usage by this number
417
+ */
418
+ divide: number;
419
+ /**
420
+ * Singular feature units after the transformation
421
+ */
422
+ featureUnits: string | null;
423
+ /**
424
+ * Plural feature units after the transformation
425
+ */
426
+ featureUnitsPlural: string | null;
427
+ /**
428
+ * After division, either round the result up or down
429
+ */
430
+ round: 'UP' | 'DOWN';
431
+ }
432
+ }
433
+ }
434
+ /**
435
+ * Response object
436
+ */
437
+ export interface FeatureUnarchiveFeatureResponse {
438
+ /**
439
+ * Feature configuration object
440
+ */
441
+ data: FeatureUnarchiveFeatureResponse.Data;
442
+ }
443
+ export declare namespace FeatureUnarchiveFeatureResponse {
444
+ /**
445
+ * Feature configuration object
446
+ */
447
+ interface Data {
448
+ /**
449
+ * The unique identifier for the feature
450
+ */
451
+ id: string;
452
+ /**
453
+ * Timestamp of when the record was created
454
+ */
455
+ createdAt: string;
456
+ /**
457
+ * The description for the feature
458
+ */
459
+ description: string | null;
460
+ /**
461
+ * The display name for the feature
462
+ */
463
+ displayName: string;
464
+ /**
465
+ * The configuration data for the feature
466
+ */
467
+ enumConfiguration: Array<Data.EnumConfiguration> | null;
468
+ /**
469
+ * The status of the feature
470
+ */
471
+ featureStatus: 'NEW' | 'SUSPENDED' | 'ACTIVE';
472
+ /**
473
+ * The type of the feature
474
+ */
475
+ featureType: 'BOOLEAN' | 'NUMBER' | 'ENUM';
476
+ /**
477
+ * The units for the feature
478
+ */
479
+ featureUnits: string | null;
480
+ /**
481
+ * The plural units for the feature
482
+ */
483
+ featureUnitsPlural: string | null;
484
+ /**
485
+ * The additional metadata for the feature
486
+ */
487
+ metadata: {
488
+ [key: string]: string;
489
+ };
490
+ /**
491
+ * The meter type for the feature
492
+ */
493
+ meterType: 'None' | 'FLUCTUATING' | 'INCREMENTAL';
494
+ /**
495
+ * Unit transformation to be applied to the reported usage
496
+ */
497
+ unitTransformation: Data.UnitTransformation | null;
498
+ /**
499
+ * Timestamp of when the record was last updated
500
+ */
501
+ updatedAt: string;
502
+ }
503
+ namespace Data {
504
+ interface EnumConfiguration {
505
+ /**
506
+ * The display name for the enum configuration entity
507
+ */
508
+ displayName: string;
509
+ /**
510
+ * The unique value identifier for the enum configuration entity
511
+ */
512
+ value: string;
513
+ }
514
+ /**
515
+ * Unit transformation to be applied to the reported usage
516
+ */
517
+ interface UnitTransformation {
518
+ /**
519
+ * Divide usage by this number
520
+ */
521
+ divide: number;
522
+ /**
523
+ * Singular feature units after the transformation
524
+ */
525
+ featureUnits: string | null;
526
+ /**
527
+ * Plural feature units after the transformation
528
+ */
529
+ featureUnitsPlural: string | null;
530
+ /**
531
+ * After division, either round the result up or down
532
+ */
533
+ round: 'UP' | 'DOWN';
534
+ }
535
+ }
536
+ }
537
+ /**
538
+ * Response object
539
+ */
540
+ export interface FeatureUpdateFeatureResponse {
541
+ /**
542
+ * Feature configuration object
543
+ */
544
+ data: FeatureUpdateFeatureResponse.Data;
545
+ }
546
+ export declare namespace FeatureUpdateFeatureResponse {
547
+ /**
548
+ * Feature configuration object
549
+ */
550
+ interface Data {
551
+ /**
552
+ * The unique identifier for the feature
553
+ */
554
+ id: string;
555
+ /**
556
+ * Timestamp of when the record was created
557
+ */
558
+ createdAt: string;
559
+ /**
560
+ * The description for the feature
561
+ */
562
+ description: string | null;
563
+ /**
564
+ * The display name for the feature
565
+ */
566
+ displayName: string;
567
+ /**
568
+ * The configuration data for the feature
569
+ */
570
+ enumConfiguration: Array<Data.EnumConfiguration> | null;
571
+ /**
572
+ * The status of the feature
573
+ */
574
+ featureStatus: 'NEW' | 'SUSPENDED' | 'ACTIVE';
575
+ /**
576
+ * The type of the feature
577
+ */
578
+ featureType: 'BOOLEAN' | 'NUMBER' | 'ENUM';
579
+ /**
580
+ * The units for the feature
581
+ */
582
+ featureUnits: string | null;
583
+ /**
584
+ * The plural units for the feature
585
+ */
586
+ featureUnitsPlural: string | null;
587
+ /**
588
+ * The additional metadata for the feature
589
+ */
590
+ metadata: {
591
+ [key: string]: string;
592
+ };
593
+ /**
594
+ * The meter type for the feature
595
+ */
596
+ meterType: 'None' | 'FLUCTUATING' | 'INCREMENTAL';
597
+ /**
598
+ * Unit transformation to be applied to the reported usage
599
+ */
600
+ unitTransformation: Data.UnitTransformation | null;
601
+ /**
602
+ * Timestamp of when the record was last updated
603
+ */
604
+ updatedAt: string;
605
+ }
606
+ namespace Data {
607
+ interface EnumConfiguration {
608
+ /**
609
+ * The display name for the enum configuration entity
610
+ */
611
+ displayName: string;
612
+ /**
613
+ * The unique value identifier for the enum configuration entity
614
+ */
615
+ value: string;
616
+ }
617
+ /**
618
+ * Unit transformation to be applied to the reported usage
619
+ */
620
+ interface UnitTransformation {
621
+ /**
622
+ * Divide usage by this number
623
+ */
624
+ divide: number;
625
+ /**
626
+ * Singular feature units after the transformation
627
+ */
628
+ featureUnits: string | null;
629
+ /**
630
+ * Plural feature units after the transformation
631
+ */
632
+ featureUnitsPlural: string | null;
633
+ /**
634
+ * After division, either round the result up or down
635
+ */
636
+ round: 'UP' | 'DOWN';
637
+ }
638
+ }
639
+ }
640
+ export interface FeatureCreateFeatureParams {
641
+ /**
642
+ * The unique identifier for the feature
643
+ */
644
+ id: string;
645
+ /**
646
+ * The display name for the feature
647
+ */
648
+ displayName: string;
649
+ /**
650
+ * The type of the feature
651
+ */
652
+ featureType: 'BOOLEAN' | 'NUMBER' | 'ENUM';
653
+ /**
654
+ * The description for the feature
655
+ */
656
+ description?: string;
657
+ /**
658
+ * The configuration data for the feature
659
+ */
660
+ enumConfiguration?: Array<FeatureCreateFeatureParams.EnumConfiguration>;
661
+ /**
662
+ * The status of the feature
663
+ */
664
+ featureStatus?: 'NEW' | 'SUSPENDED' | 'ACTIVE';
665
+ /**
666
+ * The units for the feature
667
+ */
668
+ featureUnits?: string;
669
+ /**
670
+ * The plural units for the feature
671
+ */
672
+ featureUnitsPlural?: string;
673
+ /**
674
+ * The additional metadata for the feature
675
+ */
676
+ metadata?: {
677
+ [key: string]: string;
678
+ };
679
+ /**
680
+ * The meter type for the feature
681
+ */
682
+ meterType?: 'None' | 'FLUCTUATING' | 'INCREMENTAL';
683
+ /**
684
+ * Unit transformation to be applied to the reported usage
685
+ */
686
+ unitTransformation?: FeatureCreateFeatureParams.UnitTransformation | null;
687
+ }
688
+ export declare namespace FeatureCreateFeatureParams {
689
+ interface EnumConfiguration {
690
+ /**
691
+ * The display name for the enum configuration entity
692
+ */
693
+ displayName: string;
694
+ /**
695
+ * The unique value identifier for the enum configuration entity
696
+ */
697
+ value: string;
698
+ }
699
+ /**
700
+ * Unit transformation to be applied to the reported usage
701
+ */
702
+ interface UnitTransformation {
703
+ /**
704
+ * Divide usage by this number
705
+ */
706
+ divide: number;
707
+ /**
708
+ * Singular feature units after the transformation
709
+ */
710
+ featureUnits?: string;
711
+ /**
712
+ * Plural feature units after the transformation
713
+ */
714
+ featureUnitsPlural?: string;
715
+ /**
716
+ * After division, either round the result up or down
717
+ */
718
+ round?: 'UP' | 'DOWN';
719
+ }
720
+ }
721
+ export interface FeatureListFeaturesParams extends MyCursorIDPageParams {
722
+ /**
723
+ * Filter by entity ID
724
+ */
725
+ id?: string;
726
+ /**
727
+ * Filter by creation date using range operators: gt, gte, lt, lte
728
+ */
729
+ createdAt?: FeatureListFeaturesParams.CreatedAt;
730
+ /**
731
+ * Filter by feature type. Supports comma-separated values for multiple types
732
+ */
733
+ featureType?: string;
734
+ /**
735
+ * Filter by meter type. Supports comma-separated values for multiple types
736
+ */
737
+ meterType?: string;
738
+ /**
739
+ * Filter by feature status. Supports comma-separated values for multiple statuses
740
+ */
741
+ status?: string;
742
+ }
743
+ export declare namespace FeatureListFeaturesParams {
744
+ /**
745
+ * Filter by creation date using range operators: gt, gte, lt, lte
746
+ */
747
+ interface CreatedAt {
748
+ /**
749
+ * Greater than the specified createdAt value
750
+ */
751
+ gt?: string;
752
+ /**
753
+ * Greater than or equal to the specified createdAt value
754
+ */
755
+ gte?: string;
756
+ /**
757
+ * Less than the specified createdAt value
758
+ */
759
+ lt?: string;
760
+ /**
761
+ * Less than or equal to the specified createdAt value
762
+ */
763
+ lte?: string;
764
+ }
765
+ }
766
+ export interface FeatureUpdateFeatureParams {
767
+ /**
768
+ * The description for the feature
769
+ */
770
+ description?: string;
771
+ /**
772
+ * The display name for the feature
773
+ */
774
+ displayName?: string;
775
+ /**
776
+ * The configuration data for the feature
777
+ */
778
+ enumConfiguration?: Array<FeatureUpdateFeatureParams.EnumConfiguration>;
779
+ /**
780
+ * The units for the feature
781
+ */
782
+ featureUnits?: string;
783
+ /**
784
+ * The plural units for the feature
785
+ */
786
+ featureUnitsPlural?: string;
787
+ /**
788
+ * The additional metadata for the feature
789
+ */
790
+ metadata?: {
791
+ [key: string]: string;
792
+ };
793
+ meter?: FeatureUpdateFeatureParams.Meter;
794
+ /**
795
+ * Unit transformation to be applied to the reported usage
796
+ */
797
+ unitTransformation?: FeatureUpdateFeatureParams.UnitTransformation | null;
798
+ }
799
+ export declare namespace FeatureUpdateFeatureParams {
800
+ interface EnumConfiguration {
801
+ /**
802
+ * The display name for the enum configuration entity
803
+ */
804
+ displayName: string;
805
+ /**
806
+ * The unique value identifier for the enum configuration entity
807
+ */
808
+ value: string;
809
+ }
810
+ interface Meter {
811
+ aggregation: Meter.Aggregation;
812
+ filters: Array<Meter.Filter>;
813
+ }
814
+ namespace Meter {
815
+ interface Aggregation {
816
+ function: 'SUM' | 'MAX' | 'MIN' | 'AVG' | 'COUNT' | 'UNIQUE';
817
+ field?: string;
818
+ }
819
+ interface Filter {
820
+ conditions: Array<Filter.Condition>;
821
+ }
822
+ namespace Filter {
823
+ interface Condition {
824
+ field: string;
825
+ operation: 'EQUALS' | 'NOT_EQUALS' | 'GREATER_THAN' | 'GREATER_THAN_OR_EQUAL' | 'LESS_THAN' | 'LESS_THAN_OR_EQUAL' | 'IS_NULL' | 'IS_NOT_NULL' | 'CONTAINS' | 'STARTS_WITH' | 'ENDS_WITH' | 'IN';
826
+ value?: string;
827
+ values?: Array<string>;
828
+ }
829
+ }
830
+ }
831
+ /**
832
+ * Unit transformation to be applied to the reported usage
833
+ */
834
+ interface UnitTransformation {
835
+ /**
836
+ * Divide usage by this number
837
+ */
838
+ divide: number;
839
+ /**
840
+ * Singular feature units after the transformation
841
+ */
842
+ featureUnits?: string;
843
+ /**
844
+ * Plural feature units after the transformation
845
+ */
846
+ featureUnitsPlural?: string;
847
+ /**
848
+ * After division, either round the result up or down
849
+ */
850
+ round?: 'UP' | 'DOWN';
851
+ }
852
+ }
853
+ export declare namespace Features {
854
+ export { type FeatureArchiveFeatureResponse as FeatureArchiveFeatureResponse, type FeatureCreateFeatureResponse as FeatureCreateFeatureResponse, type FeatureListFeaturesResponse as FeatureListFeaturesResponse, type FeatureRetrieveFeatureResponse as FeatureRetrieveFeatureResponse, type FeatureUnarchiveFeatureResponse as FeatureUnarchiveFeatureResponse, type FeatureUpdateFeatureResponse as FeatureUpdateFeatureResponse, type FeatureListFeaturesResponsesMyCursorIDPage as FeatureListFeaturesResponsesMyCursorIDPage, type FeatureCreateFeatureParams as FeatureCreateFeatureParams, type FeatureListFeaturesParams as FeatureListFeaturesParams, type FeatureUpdateFeatureParams as FeatureUpdateFeatureParams, };
855
+ }
856
+ //# sourceMappingURL=features.d.ts.map