orb-billing 5.44.0 → 5.45.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 (265) hide show
  1. package/CHANGELOG.md +39 -0
  2. package/core.d.ts +1 -1
  3. package/core.d.ts.map +1 -1
  4. package/core.js +8 -17
  5. package/core.js.map +1 -1
  6. package/core.mjs +8 -17
  7. package/core.mjs.map +1 -1
  8. package/index.d.mts +91 -5
  9. package/index.d.ts +91 -5
  10. package/index.d.ts.map +1 -1
  11. package/index.js +90 -2
  12. package/index.js.map +1 -1
  13. package/index.mjs +91 -3
  14. package/index.mjs.map +1 -1
  15. package/internal/utils/query.d.ts +2 -0
  16. package/internal/utils/query.d.ts.map +1 -0
  17. package/internal/utils/query.js +33 -0
  18. package/internal/utils/query.js.map +1 -0
  19. package/internal/utils/query.mjs +6 -0
  20. package/internal/utils/query.mjs.map +1 -0
  21. package/package.json +1 -1
  22. package/resources/alerts.d.ts +21 -0
  23. package/resources/alerts.d.ts.map +1 -1
  24. package/resources/alerts.js +6 -0
  25. package/resources/alerts.js.map +1 -1
  26. package/resources/alerts.mjs +6 -0
  27. package/resources/alerts.mjs.map +1 -1
  28. package/resources/beta/beta.d.ts +8293 -140
  29. package/resources/beta/beta.d.ts.map +1 -1
  30. package/resources/beta/beta.js +5 -0
  31. package/resources/beta/beta.js.map +1 -1
  32. package/resources/beta/beta.mjs +5 -0
  33. package/resources/beta/beta.mjs.map +1 -1
  34. package/resources/beta/external-plan-id.d.ts +8293 -140
  35. package/resources/beta/external-plan-id.d.ts.map +1 -1
  36. package/resources/beta/external-plan-id.js +5 -0
  37. package/resources/beta/external-plan-id.js.map +1 -1
  38. package/resources/beta/external-plan-id.mjs +5 -0
  39. package/resources/beta/external-plan-id.mjs.map +1 -1
  40. package/resources/coupons/coupons.d.ts +3 -0
  41. package/resources/coupons/coupons.d.ts.map +1 -1
  42. package/resources/coupons/coupons.js +3 -0
  43. package/resources/coupons/coupons.js.map +1 -1
  44. package/resources/coupons/coupons.mjs +3 -0
  45. package/resources/coupons/coupons.mjs.map +1 -1
  46. package/resources/coupons/subscriptions.d.ts +3 -0
  47. package/resources/coupons/subscriptions.d.ts.map +1 -1
  48. package/resources/coupons/subscriptions.js +3 -0
  49. package/resources/coupons/subscriptions.js.map +1 -1
  50. package/resources/coupons/subscriptions.mjs +3 -0
  51. package/resources/coupons/subscriptions.mjs.map +1 -1
  52. package/resources/credit-blocks.d.ts +85 -1
  53. package/resources/credit-blocks.d.ts.map +1 -1
  54. package/resources/credit-blocks.js +22 -0
  55. package/resources/credit-blocks.js.map +1 -1
  56. package/resources/credit-blocks.mjs +22 -0
  57. package/resources/credit-blocks.mjs.map +1 -1
  58. package/resources/credit-notes.d.ts +4 -0
  59. package/resources/credit-notes.d.ts.map +1 -1
  60. package/resources/credit-notes.js +4 -0
  61. package/resources/credit-notes.js.map +1 -1
  62. package/resources/credit-notes.mjs +4 -0
  63. package/resources/credit-notes.mjs.map +1 -1
  64. package/resources/customers/balance-transactions.d.ts +16 -0
  65. package/resources/customers/balance-transactions.d.ts.map +1 -1
  66. package/resources/customers/balance-transactions.js +16 -0
  67. package/resources/customers/balance-transactions.js.map +1 -1
  68. package/resources/customers/balance-transactions.mjs +16 -0
  69. package/resources/customers/balance-transactions.mjs.map +1 -1
  70. package/resources/customers/costs.d.ts +16 -0
  71. package/resources/customers/costs.d.ts.map +1 -1
  72. package/resources/customers/costs.js +16 -0
  73. package/resources/customers/costs.js.map +1 -1
  74. package/resources/customers/costs.mjs +16 -0
  75. package/resources/customers/costs.mjs.map +1 -1
  76. package/resources/customers/credits/credits.d.ts +39 -0
  77. package/resources/customers/credits/credits.d.ts.map +1 -1
  78. package/resources/customers/credits/credits.js +3 -0
  79. package/resources/customers/credits/credits.js.map +1 -1
  80. package/resources/customers/credits/credits.mjs +3 -0
  81. package/resources/customers/credits/credits.mjs.map +1 -1
  82. package/resources/customers/credits/ledger.d.ts +31 -4
  83. package/resources/customers/credits/ledger.d.ts.map +1 -1
  84. package/resources/customers/credits/ledger.js +19 -2
  85. package/resources/customers/credits/ledger.js.map +1 -1
  86. package/resources/customers/credits/ledger.mjs +19 -2
  87. package/resources/customers/credits/ledger.mjs.map +1 -1
  88. package/resources/customers/credits/top-ups.d.ts +3 -0
  89. package/resources/customers/credits/top-ups.d.ts.map +1 -1
  90. package/resources/customers/credits/top-ups.js +3 -0
  91. package/resources/customers/credits/top-ups.js.map +1 -1
  92. package/resources/customers/credits/top-ups.mjs +3 -0
  93. package/resources/customers/credits/top-ups.mjs.map +1 -1
  94. package/resources/customers/customers.d.ts +33 -12
  95. package/resources/customers/customers.d.ts.map +1 -1
  96. package/resources/customers/customers.js +20 -3
  97. package/resources/customers/customers.js.map +1 -1
  98. package/resources/customers/customers.mjs +20 -3
  99. package/resources/customers/customers.mjs.map +1 -1
  100. package/resources/dimensional-price-groups/external-dimensional-price-group-id.d.ts +1 -1
  101. package/resources/dimensional-price-groups/external-dimensional-price-group-id.d.ts.map +1 -1
  102. package/resources/events/backfills.d.ts +5 -0
  103. package/resources/events/backfills.d.ts.map +1 -1
  104. package/resources/events/backfills.js +5 -0
  105. package/resources/events/backfills.js.map +1 -1
  106. package/resources/events/backfills.mjs +5 -0
  107. package/resources/events/backfills.mjs.map +1 -1
  108. package/resources/events/events.d.ts +5 -0
  109. package/resources/events/events.d.ts.map +1 -1
  110. package/resources/events/events.js +5 -0
  111. package/resources/events/events.js.map +1 -1
  112. package/resources/events/events.mjs +5 -0
  113. package/resources/events/events.mjs.map +1 -1
  114. package/resources/events/volume.d.ts +5 -0
  115. package/resources/events/volume.d.ts.map +1 -1
  116. package/resources/events/volume.js +5 -0
  117. package/resources/events/volume.js.map +1 -1
  118. package/resources/events/volume.mjs +5 -0
  119. package/resources/events/volume.mjs.map +1 -1
  120. package/resources/index.d.ts +4 -2
  121. package/resources/index.d.ts.map +1 -1
  122. package/resources/index.js +7 -1
  123. package/resources/index.js.map +1 -1
  124. package/resources/index.mjs +3 -1
  125. package/resources/index.mjs.map +1 -1
  126. package/resources/invoice-line-items.d.ts +6 -0
  127. package/resources/invoice-line-items.d.ts.map +1 -1
  128. package/resources/invoice-line-items.js +6 -0
  129. package/resources/invoice-line-items.js.map +1 -1
  130. package/resources/invoice-line-items.mjs +6 -0
  131. package/resources/invoice-line-items.mjs.map +1 -1
  132. package/resources/invoices.d.ts +432 -7
  133. package/resources/invoices.d.ts.map +1 -1
  134. package/resources/invoices.js +18 -5
  135. package/resources/invoices.js.map +1 -1
  136. package/resources/invoices.mjs +18 -5
  137. package/resources/invoices.mjs.map +1 -1
  138. package/resources/items.d.ts +6 -2
  139. package/resources/items.d.ts.map +1 -1
  140. package/resources/items.js +4 -0
  141. package/resources/items.js.map +1 -1
  142. package/resources/items.mjs +4 -0
  143. package/resources/items.mjs.map +1 -1
  144. package/resources/license-types.d.ts +113 -0
  145. package/resources/license-types.d.ts.map +1 -0
  146. package/resources/license-types.js +44 -0
  147. package/resources/license-types.js.map +1 -0
  148. package/resources/license-types.mjs +39 -0
  149. package/resources/license-types.mjs.map +1 -0
  150. package/resources/licenses/external-licenses.d.ts +114 -0
  151. package/resources/licenses/external-licenses.d.ts.map +1 -0
  152. package/resources/licenses/external-licenses.js +18 -0
  153. package/resources/licenses/external-licenses.js.map +1 -0
  154. package/resources/licenses/external-licenses.mjs +14 -0
  155. package/resources/licenses/external-licenses.mjs.map +1 -0
  156. package/resources/licenses/index.d.ts +4 -0
  157. package/resources/licenses/index.d.ts.map +1 -0
  158. package/resources/licenses/index.js +12 -0
  159. package/resources/licenses/index.js.map +1 -0
  160. package/resources/licenses/index.mjs +5 -0
  161. package/resources/licenses/index.mjs.map +1 -0
  162. package/resources/licenses/licenses.d.ts +133 -0
  163. package/resources/licenses/licenses.d.ts.map +1 -0
  164. package/resources/licenses/licenses.js +86 -0
  165. package/resources/licenses/licenses.js.map +1 -0
  166. package/resources/licenses/licenses.mjs +58 -0
  167. package/resources/licenses/licenses.mjs.map +1 -0
  168. package/resources/licenses/usage.d.ts +211 -0
  169. package/resources/licenses/usage.d.ts.map +1 -0
  170. package/resources/licenses/usage.js +25 -0
  171. package/resources/licenses/usage.js.map +1 -0
  172. package/resources/licenses/usage.mjs +21 -0
  173. package/resources/licenses/usage.mjs.map +1 -0
  174. package/resources/licenses.d.ts +2 -0
  175. package/resources/licenses.d.ts.map +1 -0
  176. package/resources/licenses.js +19 -0
  177. package/resources/licenses.js.map +1 -0
  178. package/resources/licenses.mjs +3 -0
  179. package/resources/licenses.mjs.map +1 -0
  180. package/resources/metrics.d.ts +7 -0
  181. package/resources/metrics.d.ts.map +1 -1
  182. package/resources/metrics.js +4 -0
  183. package/resources/metrics.js.map +1 -1
  184. package/resources/metrics.mjs +4 -0
  185. package/resources/metrics.mjs.map +1 -1
  186. package/resources/plans/external-plan-id.d.ts +5 -0
  187. package/resources/plans/external-plan-id.d.ts.map +1 -1
  188. package/resources/plans/external-plan-id.js +5 -0
  189. package/resources/plans/external-plan-id.js.map +1 -1
  190. package/resources/plans/external-plan-id.mjs +5 -0
  191. package/resources/plans/external-plan-id.mjs.map +1 -1
  192. package/resources/plans/migrations.d.ts +5 -0
  193. package/resources/plans/migrations.d.ts.map +1 -1
  194. package/resources/plans/migrations.js +5 -0
  195. package/resources/plans/migrations.js.map +1 -1
  196. package/resources/plans/migrations.mjs +5 -0
  197. package/resources/plans/migrations.mjs.map +1 -1
  198. package/resources/plans/plans.d.ts +4200 -121
  199. package/resources/plans/plans.d.ts.map +1 -1
  200. package/resources/plans/plans.js +5 -0
  201. package/resources/plans/plans.js.map +1 -1
  202. package/resources/plans/plans.mjs +5 -0
  203. package/resources/plans/plans.mjs.map +1 -1
  204. package/resources/prices/external-price-id.d.ts +9 -0
  205. package/resources/prices/external-price-id.d.ts.map +1 -1
  206. package/resources/prices/external-price-id.js +9 -0
  207. package/resources/prices/external-price-id.js.map +1 -1
  208. package/resources/prices/external-price-id.mjs +9 -0
  209. package/resources/prices/external-price-id.mjs.map +1 -1
  210. package/resources/prices/prices.d.ts +198 -0
  211. package/resources/prices/prices.d.ts.map +1 -1
  212. package/resources/prices/prices.js +9 -0
  213. package/resources/prices/prices.js.map +1 -1
  214. package/resources/prices/prices.mjs +9 -0
  215. package/resources/prices/prices.mjs.map +1 -1
  216. package/resources/shared.d.ts +1040 -6
  217. package/resources/shared.d.ts.map +1 -1
  218. package/resources/shared.js.map +1 -1
  219. package/resources/shared.mjs.map +1 -1
  220. package/resources/subscriptions.d.ts +262 -0
  221. package/resources/subscriptions.d.ts.map +1 -1
  222. package/resources/subscriptions.js.map +1 -1
  223. package/resources/subscriptions.mjs.map +1 -1
  224. package/src/core.ts +10 -21
  225. package/src/index.ts +149 -5
  226. package/src/internal/utils/query.ts +7 -0
  227. package/src/resources/alerts.ts +24 -0
  228. package/src/resources/beta/beta.ts +9945 -194
  229. package/src/resources/beta/external-plan-id.ts +9945 -194
  230. package/src/resources/coupons/coupons.ts +3 -0
  231. package/src/resources/coupons/subscriptions.ts +3 -0
  232. package/src/resources/credit-blocks.ts +110 -1
  233. package/src/resources/credit-notes.ts +4 -0
  234. package/src/resources/customers/balance-transactions.ts +16 -0
  235. package/src/resources/customers/costs.ts +16 -0
  236. package/src/resources/customers/credits/credits.ts +45 -0
  237. package/src/resources/customers/credits/ledger.ts +33 -4
  238. package/src/resources/customers/credits/top-ups.ts +3 -0
  239. package/src/resources/customers/customers.ts +61 -12
  240. package/src/resources/dimensional-price-groups/external-dimensional-price-group-id.ts +1 -1
  241. package/src/resources/events/backfills.ts +5 -0
  242. package/src/resources/events/events.ts +5 -0
  243. package/src/resources/events/volume.ts +5 -0
  244. package/src/resources/index.ts +29 -1
  245. package/src/resources/invoice-line-items.ts +6 -0
  246. package/src/resources/invoices.ts +523 -6
  247. package/src/resources/items.ts +8 -2
  248. package/src/resources/license-types.ts +163 -0
  249. package/src/resources/licenses/external-licenses.ts +147 -0
  250. package/src/resources/licenses/index.ts +27 -0
  251. package/src/resources/licenses/licenses.ts +248 -0
  252. package/src/resources/licenses/usage.ts +280 -0
  253. package/src/resources/licenses.ts +3 -0
  254. package/src/resources/metrics.ts +6 -0
  255. package/src/resources/plans/external-plan-id.ts +5 -0
  256. package/src/resources/plans/migrations.ts +5 -0
  257. package/src/resources/plans/plans.ts +5004 -126
  258. package/src/resources/prices/external-price-id.ts +9 -0
  259. package/src/resources/prices/prices.ts +237 -0
  260. package/src/resources/shared.ts +1213 -0
  261. package/src/resources/subscriptions.ts +311 -0
  262. package/src/version.ts +1 -1
  263. package/version.d.ts +1 -1
  264. package/version.js +1 -1
  265. package/version.mjs +1 -1
@@ -0,0 +1,133 @@
1
+ import { APIResource } from "../../resource.js";
2
+ import * as Core from "../../core.js";
3
+ import * as ExternalLicensesAPI from "./external-licenses.js";
4
+ import { ExternalLicenseGetUsageParams, ExternalLicenseGetUsageResponse, ExternalLicenses } from "./external-licenses.js";
5
+ import * as UsageAPI from "./usage.js";
6
+ import { Usage, UsageGetAllUsageParams, UsageGetAllUsageResponse, UsageGetUsageParams, UsageGetUsageResponse } from "./usage.js";
7
+ import { Page, type PageParams } from "../../pagination.js";
8
+ export declare class Licenses extends APIResource {
9
+ externalLicenses: ExternalLicensesAPI.ExternalLicenses;
10
+ usage: UsageAPI.Usage;
11
+ /**
12
+ * This endpoint is used to create a new license for a user.
13
+ *
14
+ * If a start date is provided, the license will be activated at the **start** of
15
+ * the specified date in the customer's timezone. Otherwise, the activation time
16
+ * will default to the **start** of the current day in the customer's timezone.
17
+ */
18
+ create(body: LicenseCreateParams, options?: Core.RequestOptions): Core.APIPromise<LicenseCreateResponse>;
19
+ /**
20
+ * This endpoint is used to fetch a license given an identifier.
21
+ */
22
+ retrieve(licenseId: string, options?: Core.RequestOptions): Core.APIPromise<LicenseRetrieveResponse>;
23
+ /**
24
+ * This endpoint returns a list of all licenses for a subscription.
25
+ */
26
+ list(query: LicenseListParams, options?: Core.RequestOptions): Core.PagePromise<LicenseListResponsesPage, LicenseListResponse>;
27
+ /**
28
+ * This endpoint is used to deactivate an existing license.
29
+ *
30
+ * If an end date is provided, the license will be deactivated at the **start** of
31
+ * the specified date in the customer's timezone. Otherwise, the deactivation time
32
+ * will default to the **end** of the current day in the customer's timezone.
33
+ */
34
+ deactivate(licenseId: string, body: LicenseDeactivateParams, options?: Core.RequestOptions): Core.APIPromise<LicenseDeactivateResponse>;
35
+ /**
36
+ * This endpoint is used to fetch a license given an external license identifier.
37
+ */
38
+ retrieveByExternalId(externalLicenseId: string, query: LicenseRetrieveByExternalIDParams, options?: Core.RequestOptions): Core.APIPromise<LicenseRetrieveByExternalIDResponse>;
39
+ }
40
+ export declare class LicenseListResponsesPage extends Page<LicenseListResponse> {
41
+ }
42
+ export interface LicenseCreateResponse {
43
+ id: string;
44
+ end_date: string | null;
45
+ external_license_id: string;
46
+ license_type_id: string;
47
+ start_date: string;
48
+ status: 'active' | 'inactive';
49
+ subscription_id: string;
50
+ }
51
+ export interface LicenseRetrieveResponse {
52
+ id: string;
53
+ end_date: string | null;
54
+ external_license_id: string;
55
+ license_type_id: string;
56
+ start_date: string;
57
+ status: 'active' | 'inactive';
58
+ subscription_id: string;
59
+ }
60
+ export interface LicenseListResponse {
61
+ id: string;
62
+ end_date: string | null;
63
+ external_license_id: string;
64
+ license_type_id: string;
65
+ start_date: string;
66
+ status: 'active' | 'inactive';
67
+ subscription_id: string;
68
+ }
69
+ export interface LicenseDeactivateResponse {
70
+ id: string;
71
+ end_date: string | null;
72
+ external_license_id: string;
73
+ license_type_id: string;
74
+ start_date: string;
75
+ status: 'active' | 'inactive';
76
+ subscription_id: string;
77
+ }
78
+ export interface LicenseRetrieveByExternalIDResponse {
79
+ id: string;
80
+ end_date: string | null;
81
+ external_license_id: string;
82
+ license_type_id: string;
83
+ start_date: string;
84
+ status: 'active' | 'inactive';
85
+ subscription_id: string;
86
+ }
87
+ export interface LicenseCreateParams {
88
+ /**
89
+ * The external identifier for the license.
90
+ */
91
+ external_license_id: string;
92
+ license_type_id: string;
93
+ subscription_id: string;
94
+ /**
95
+ * The end date of the license. If not provided, the license will remain active
96
+ * until deactivated.
97
+ */
98
+ end_date?: string | null;
99
+ /**
100
+ * The start date of the license. If not provided, defaults to start of day today
101
+ * in the customer's timezone.
102
+ */
103
+ start_date?: string | null;
104
+ }
105
+ export interface LicenseListParams extends PageParams {
106
+ subscription_id: string;
107
+ external_license_id?: string | null;
108
+ license_type_id?: string | null;
109
+ status?: 'active' | 'inactive' | null;
110
+ }
111
+ export interface LicenseDeactivateParams {
112
+ /**
113
+ * The date to deactivate the license. If not provided, defaults to end of day
114
+ * today in the customer's timezone.
115
+ */
116
+ end_date?: string | null;
117
+ }
118
+ export interface LicenseRetrieveByExternalIDParams {
119
+ /**
120
+ * The ID of the license type to fetch the license for.
121
+ */
122
+ license_type_id: string;
123
+ /**
124
+ * The ID of the subscription to fetch the license for.
125
+ */
126
+ subscription_id: string;
127
+ }
128
+ export declare namespace Licenses {
129
+ export { type LicenseCreateResponse as LicenseCreateResponse, type LicenseRetrieveResponse as LicenseRetrieveResponse, type LicenseListResponse as LicenseListResponse, type LicenseDeactivateResponse as LicenseDeactivateResponse, type LicenseRetrieveByExternalIDResponse as LicenseRetrieveByExternalIDResponse, LicenseListResponsesPage as LicenseListResponsesPage, type LicenseCreateParams as LicenseCreateParams, type LicenseListParams as LicenseListParams, type LicenseDeactivateParams as LicenseDeactivateParams, type LicenseRetrieveByExternalIDParams as LicenseRetrieveByExternalIDParams, };
130
+ export { ExternalLicenses as ExternalLicenses, type ExternalLicenseGetUsageResponse as ExternalLicenseGetUsageResponse, type ExternalLicenseGetUsageParams as ExternalLicenseGetUsageParams, };
131
+ export { Usage as Usage, type UsageGetAllUsageResponse as UsageGetAllUsageResponse, type UsageGetUsageResponse as UsageGetUsageResponse, type UsageGetAllUsageParams as UsageGetAllUsageParams, type UsageGetUsageParams as UsageGetUsageParams, };
132
+ }
133
+ //# sourceMappingURL=licenses.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"licenses.d.ts","sourceRoot":"","sources":["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AK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,mCAAmC,IAAI,mCAAmC,EAC/E,wBAAwB,IAAI,wBAAwB,EACpD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,iCAAiC,IAAI,iCAAiC,GAC5E,CAAC;IAEF,OAAO,EACL,gBAAgB,IAAI,gBAAgB,EACpC,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,6BAA6B,IAAI,6BAA6B,GACpE,CAAC;IAEF,OAAO,EACL,KAAK,IAAI,KAAK,EACd,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
@@ -0,0 +1,86 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || function (mod) {
20
+ if (mod && mod.__esModule) return mod;
21
+ var result = {};
22
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
23
+ __setModuleDefault(result, mod);
24
+ return result;
25
+ };
26
+ Object.defineProperty(exports, "__esModule", { value: true });
27
+ exports.LicenseListResponsesPage = exports.Licenses = void 0;
28
+ const resource_1 = require("../../resource.js");
29
+ const ExternalLicensesAPI = __importStar(require("./external-licenses.js"));
30
+ const external_licenses_1 = require("./external-licenses.js");
31
+ const UsageAPI = __importStar(require("./usage.js"));
32
+ const usage_1 = require("./usage.js");
33
+ const pagination_1 = require("../../pagination.js");
34
+ class Licenses extends resource_1.APIResource {
35
+ constructor() {
36
+ super(...arguments);
37
+ this.externalLicenses = new ExternalLicensesAPI.ExternalLicenses(this._client);
38
+ this.usage = new UsageAPI.Usage(this._client);
39
+ }
40
+ /**
41
+ * This endpoint is used to create a new license for a user.
42
+ *
43
+ * If a start date is provided, the license will be activated at the **start** of
44
+ * the specified date in the customer's timezone. Otherwise, the activation time
45
+ * will default to the **start** of the current day in the customer's timezone.
46
+ */
47
+ create(body, options) {
48
+ return this._client.post('/licenses', { body, ...options });
49
+ }
50
+ /**
51
+ * This endpoint is used to fetch a license given an identifier.
52
+ */
53
+ retrieve(licenseId, options) {
54
+ return this._client.get(`/licenses/${licenseId}`, options);
55
+ }
56
+ /**
57
+ * This endpoint returns a list of all licenses for a subscription.
58
+ */
59
+ list(query, options) {
60
+ return this._client.getAPIList('/licenses', LicenseListResponsesPage, { query, ...options });
61
+ }
62
+ /**
63
+ * This endpoint is used to deactivate an existing license.
64
+ *
65
+ * If an end date is provided, the license will be deactivated at the **start** of
66
+ * the specified date in the customer's timezone. Otherwise, the deactivation time
67
+ * will default to the **end** of the current day in the customer's timezone.
68
+ */
69
+ deactivate(licenseId, body, options) {
70
+ return this._client.post(`/licenses/${licenseId}/deactivate`, { body, ...options });
71
+ }
72
+ /**
73
+ * This endpoint is used to fetch a license given an external license identifier.
74
+ */
75
+ retrieveByExternalId(externalLicenseId, query, options) {
76
+ return this._client.get(`/licenses/external_license_id/${externalLicenseId}`, { query, ...options });
77
+ }
78
+ }
79
+ exports.Licenses = Licenses;
80
+ class LicenseListResponsesPage extends pagination_1.Page {
81
+ }
82
+ exports.LicenseListResponsesPage = LicenseListResponsesPage;
83
+ Licenses.LicenseListResponsesPage = LicenseListResponsesPage;
84
+ Licenses.ExternalLicenses = external_licenses_1.ExternalLicenses;
85
+ Licenses.Usage = usage_1.Usage;
86
+ //# sourceMappingURL=licenses.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"licenses.js","sourceRoot":"","sources":["../../src/resources/licenses/licenses.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEtF,gDAA6C;AAE7C,4EAA2D;AAC3D,8DAI6B;AAC7B,qDAAoC;AACpC,sCAMiB;AACjB,oDAAyD;AAEzD,MAAa,QAAS,SAAQ,sBAAW;IAAzC;;QACE,qBAAgB,GAAyC,IAAI,mBAAmB,CAAC,gBAAgB,CAC/F,IAAI,CAAC,OAAO,CACb,CAAC;QACF,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAuD3D,CAAC;IArDC;;;;;;OAMG;IACH,MAAM,CAAC,IAAyB,EAAE,OAA6B;QAC7D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9D,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,SAAiB,EAAE,OAA6B;QACvD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,SAAS,EAAE,EAAE,OAAO,CAAC,CAAC;IAC7D,CAAC;IAED;;OAEG;IACH,IAAI,CACF,KAAwB,EACxB,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,WAAW,EAAE,wBAAwB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/F,CAAC;IAED;;;;;;OAMG;IACH,UAAU,CACR,SAAiB,EACjB,IAA6B,EAC7B,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,aAAa,SAAS,aAAa,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtF,CAAC;IAED;;OAEG;IACH,oBAAoB,CAClB,iBAAyB,EACzB,KAAwC,EACxC,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,iCAAiC,iBAAiB,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvG,CAAC;CACF;AA3DD,4BA2DC;AAED,MAAa,wBAAyB,SAAQ,iBAAyB;CAAG;AAA1E,4DAA0E;AAuI1E,QAAQ,CAAC,wBAAwB,GAAG,wBAAwB,CAAC;AAC7D,QAAQ,CAAC,gBAAgB,GAAG,oCAAgB,CAAC;AAC7C,QAAQ,CAAC,KAAK,GAAG,aAAK,CAAC"}
@@ -0,0 +1,58 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../../resource.mjs";
3
+ import * as ExternalLicensesAPI from "./external-licenses.mjs";
4
+ import { ExternalLicenses, } from "./external-licenses.mjs";
5
+ import * as UsageAPI from "./usage.mjs";
6
+ import { Usage, } from "./usage.mjs";
7
+ import { Page } from "../../pagination.mjs";
8
+ export class Licenses extends APIResource {
9
+ constructor() {
10
+ super(...arguments);
11
+ this.externalLicenses = new ExternalLicensesAPI.ExternalLicenses(this._client);
12
+ this.usage = new UsageAPI.Usage(this._client);
13
+ }
14
+ /**
15
+ * This endpoint is used to create a new license for a user.
16
+ *
17
+ * If a start date is provided, the license will be activated at the **start** of
18
+ * the specified date in the customer's timezone. Otherwise, the activation time
19
+ * will default to the **start** of the current day in the customer's timezone.
20
+ */
21
+ create(body, options) {
22
+ return this._client.post('/licenses', { body, ...options });
23
+ }
24
+ /**
25
+ * This endpoint is used to fetch a license given an identifier.
26
+ */
27
+ retrieve(licenseId, options) {
28
+ return this._client.get(`/licenses/${licenseId}`, options);
29
+ }
30
+ /**
31
+ * This endpoint returns a list of all licenses for a subscription.
32
+ */
33
+ list(query, options) {
34
+ return this._client.getAPIList('/licenses', LicenseListResponsesPage, { query, ...options });
35
+ }
36
+ /**
37
+ * This endpoint is used to deactivate an existing license.
38
+ *
39
+ * If an end date is provided, the license will be deactivated at the **start** of
40
+ * the specified date in the customer's timezone. Otherwise, the deactivation time
41
+ * will default to the **end** of the current day in the customer's timezone.
42
+ */
43
+ deactivate(licenseId, body, options) {
44
+ return this._client.post(`/licenses/${licenseId}/deactivate`, { body, ...options });
45
+ }
46
+ /**
47
+ * This endpoint is used to fetch a license given an external license identifier.
48
+ */
49
+ retrieveByExternalId(externalLicenseId, query, options) {
50
+ return this._client.get(`/licenses/external_license_id/${externalLicenseId}`, { query, ...options });
51
+ }
52
+ }
53
+ export class LicenseListResponsesPage extends Page {
54
+ }
55
+ Licenses.LicenseListResponsesPage = LicenseListResponsesPage;
56
+ Licenses.ExternalLicenses = ExternalLicenses;
57
+ Licenses.Usage = Usage;
58
+ //# sourceMappingURL=licenses.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"licenses.mjs","sourceRoot":"","sources":["../../src/resources/licenses/licenses.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,KAAK,mBAAmB;OACxB,EAGL,gBAAgB,GACjB;OACM,KAAK,QAAQ;OACb,EACL,KAAK,GAKN;OACM,EAAE,IAAI,EAAmB;AAEhC,MAAM,OAAO,QAAS,SAAQ,WAAW;IAAzC;;QACE,qBAAgB,GAAyC,IAAI,mBAAmB,CAAC,gBAAgB,CAC/F,IAAI,CAAC,OAAO,CACb,CAAC;QACF,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAuD3D,CAAC;IArDC;;;;;;OAMG;IACH,MAAM,CAAC,IAAyB,EAAE,OAA6B;QAC7D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9D,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,SAAiB,EAAE,OAA6B;QACvD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,SAAS,EAAE,EAAE,OAAO,CAAC,CAAC;IAC7D,CAAC;IAED;;OAEG;IACH,IAAI,CACF,KAAwB,EACxB,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,WAAW,EAAE,wBAAwB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/F,CAAC;IAED;;;;;;OAMG;IACH,UAAU,CACR,SAAiB,EACjB,IAA6B,EAC7B,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,aAAa,SAAS,aAAa,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtF,CAAC;IAED;;OAEG;IACH,oBAAoB,CAClB,iBAAyB,EACzB,KAAwC,EACxC,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,iCAAiC,iBAAiB,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvG,CAAC;CACF;AAED,MAAM,OAAO,wBAAyB,SAAQ,IAAyB;CAAG;AAuI1E,QAAQ,CAAC,wBAAwB,GAAG,wBAAwB,CAAC;AAC7D,QAAQ,CAAC,gBAAgB,GAAG,gBAAgB,CAAC;AAC7C,QAAQ,CAAC,KAAK,GAAG,KAAK,CAAC"}
@@ -0,0 +1,211 @@
1
+ import { APIResource } from "../../resource.js";
2
+ import * as Core from "../../core.js";
3
+ import * as Shared from "../shared.js";
4
+ export declare class Usage extends APIResource {
5
+ /**
6
+ * Returns usage and remaining credits for all licenses of a given type on a
7
+ * subscription.
8
+ *
9
+ * Date range defaults to the current billing period if not specified.
10
+ */
11
+ getAllUsage(query: UsageGetAllUsageParams, options?: Core.RequestOptions): Core.APIPromise<UsageGetAllUsageResponse>;
12
+ /**
13
+ * Returns usage and remaining credits for a specific license over a date range.
14
+ *
15
+ * Date range defaults to the current billing period if not specified.
16
+ */
17
+ getUsage(licenseId: string, query?: UsageGetUsageParams, options?: Core.RequestOptions): Core.APIPromise<UsageGetUsageResponse>;
18
+ getUsage(licenseId: string, options?: Core.RequestOptions): Core.APIPromise<UsageGetUsageResponse>;
19
+ }
20
+ export interface UsageGetAllUsageResponse {
21
+ data: Array<UsageGetAllUsageResponse.Data>;
22
+ pagination_metadata: Shared.PaginationMetadata;
23
+ }
24
+ export declare namespace UsageGetAllUsageResponse {
25
+ /**
26
+ * The LicenseUsage resource represents usage and remaining credits for a license
27
+ * over a date range.
28
+ *
29
+ * When grouped by 'day' only, license_id and external_license_id will be null as
30
+ * the data is aggregated across all licenses.
31
+ */
32
+ interface Data {
33
+ /**
34
+ * The total credits allocated to this license for the period.
35
+ */
36
+ allocated_credits: number;
37
+ /**
38
+ * The credits consumed by this license for the period.
39
+ */
40
+ consumed_credits: number;
41
+ /**
42
+ * The end date of the usage period.
43
+ */
44
+ end_date: string;
45
+ /**
46
+ * The unique identifier for the license type.
47
+ */
48
+ license_type_id: string;
49
+ /**
50
+ * The pricing unit for the credits (e.g., 'credits').
51
+ */
52
+ pricing_unit: string;
53
+ /**
54
+ * The remaining credits available for this license (allocated - consumed).
55
+ */
56
+ remaining_credits: number;
57
+ /**
58
+ * The start date of the usage period.
59
+ */
60
+ start_date: string;
61
+ /**
62
+ * The unique identifier for the subscription.
63
+ */
64
+ subscription_id: string;
65
+ /**
66
+ * Credits consumed while the license was active (eligible for individual
67
+ * allocation deduction).
68
+ */
69
+ allocation_eligible_credits?: number | null;
70
+ /**
71
+ * The external identifier for the license. Null when grouped by day only.
72
+ */
73
+ external_license_id?: string | null;
74
+ /**
75
+ * The unique identifier for the license. Null when grouped by day only.
76
+ */
77
+ license_id?: string | null;
78
+ /**
79
+ * Credits consumed while the license was inactive (draws from shared pool, not
80
+ * individual allocation).
81
+ */
82
+ shared_pool_credits?: number | null;
83
+ }
84
+ }
85
+ export interface UsageGetUsageResponse {
86
+ data: Array<UsageGetUsageResponse.Data>;
87
+ pagination_metadata: Shared.PaginationMetadata;
88
+ }
89
+ export declare namespace UsageGetUsageResponse {
90
+ /**
91
+ * The LicenseUsage resource represents usage and remaining credits for a license
92
+ * over a date range.
93
+ *
94
+ * When grouped by 'day' only, license_id and external_license_id will be null as
95
+ * the data is aggregated across all licenses.
96
+ */
97
+ interface Data {
98
+ /**
99
+ * The total credits allocated to this license for the period.
100
+ */
101
+ allocated_credits: number;
102
+ /**
103
+ * The credits consumed by this license for the period.
104
+ */
105
+ consumed_credits: number;
106
+ /**
107
+ * The end date of the usage period.
108
+ */
109
+ end_date: string;
110
+ /**
111
+ * The unique identifier for the license type.
112
+ */
113
+ license_type_id: string;
114
+ /**
115
+ * The pricing unit for the credits (e.g., 'credits').
116
+ */
117
+ pricing_unit: string;
118
+ /**
119
+ * The remaining credits available for this license (allocated - consumed).
120
+ */
121
+ remaining_credits: number;
122
+ /**
123
+ * The start date of the usage period.
124
+ */
125
+ start_date: string;
126
+ /**
127
+ * The unique identifier for the subscription.
128
+ */
129
+ subscription_id: string;
130
+ /**
131
+ * Credits consumed while the license was active (eligible for individual
132
+ * allocation deduction).
133
+ */
134
+ allocation_eligible_credits?: number | null;
135
+ /**
136
+ * The external identifier for the license. Null when grouped by day only.
137
+ */
138
+ external_license_id?: string | null;
139
+ /**
140
+ * The unique identifier for the license. Null when grouped by day only.
141
+ */
142
+ license_id?: string | null;
143
+ /**
144
+ * Credits consumed while the license was inactive (draws from shared pool, not
145
+ * individual allocation).
146
+ */
147
+ shared_pool_credits?: number | null;
148
+ }
149
+ }
150
+ export interface UsageGetAllUsageParams {
151
+ /**
152
+ * The license type ID to filter licenses by.
153
+ */
154
+ license_type_id: string;
155
+ /**
156
+ * The subscription ID to get license usage for.
157
+ */
158
+ subscription_id: string;
159
+ /**
160
+ * Pagination cursor from a previous request.
161
+ */
162
+ cursor?: string | null;
163
+ /**
164
+ * End date for the usage period (YYYY-MM-DD). Defaults to end of current billing
165
+ * period.
166
+ */
167
+ end_date?: string | null;
168
+ /**
169
+ * How to group the results. Valid values: 'license', 'day'. Can be combined (e.g.,
170
+ * 'license,day').
171
+ */
172
+ group_by?: Array<string> | null;
173
+ /**
174
+ * Maximum number of rows in the response data (default 20, max 100).
175
+ */
176
+ limit?: number;
177
+ /**
178
+ * Start date for the usage period (YYYY-MM-DD). Defaults to start of current
179
+ * billing period.
180
+ */
181
+ start_date?: string | null;
182
+ }
183
+ export interface UsageGetUsageParams {
184
+ /**
185
+ * Pagination cursor from a previous request.
186
+ */
187
+ cursor?: string | null;
188
+ /**
189
+ * End date for the usage period (YYYY-MM-DD). Defaults to end of current billing
190
+ * period.
191
+ */
192
+ end_date?: string | null;
193
+ /**
194
+ * How to group the results. Valid values: 'license', 'day'. Can be combined (e.g.,
195
+ * 'license,day').
196
+ */
197
+ group_by?: Array<string> | null;
198
+ /**
199
+ * Maximum number of rows in the response data (default 20, max 100).
200
+ */
201
+ limit?: number;
202
+ /**
203
+ * Start date for the usage period (YYYY-MM-DD). Defaults to start of current
204
+ * billing period.
205
+ */
206
+ start_date?: string | null;
207
+ }
208
+ export declare namespace Usage {
209
+ export { type UsageGetAllUsageResponse as UsageGetAllUsageResponse, type UsageGetUsageResponse as UsageGetUsageResponse, type UsageGetAllUsageParams as UsageGetAllUsageParams, type UsageGetUsageParams as UsageGetUsageParams, };
210
+ }
211
+ //# sourceMappingURL=usage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"usage.d.ts","sourceRoot":"","sources":["../../src/resources/licenses/usage.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,OAAO,K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E,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;IAEhC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5B;AAED,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEvB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEzB;;;OAGG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;IAEhC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5B;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.Usage = void 0;
5
+ const resource_1 = require("../../resource.js");
6
+ const core_1 = require("../../core.js");
7
+ class Usage extends resource_1.APIResource {
8
+ /**
9
+ * Returns usage and remaining credits for all licenses of a given type on a
10
+ * subscription.
11
+ *
12
+ * Date range defaults to the current billing period if not specified.
13
+ */
14
+ getAllUsage(query, options) {
15
+ return this._client.get('/licenses/usage', { query, ...options });
16
+ }
17
+ getUsage(licenseId, query = {}, options) {
18
+ if ((0, core_1.isRequestOptions)(query)) {
19
+ return this.getUsage(licenseId, {}, query);
20
+ }
21
+ return this._client.get(`/licenses/${licenseId}/usage`, { query, ...options });
22
+ }
23
+ }
24
+ exports.Usage = Usage;
25
+ //# sourceMappingURL=usage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"usage.js","sourceRoot":"","sources":["../../src/resources/licenses/usage.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAA6C;AAC7C,wCAA8C;AAI9C,MAAa,KAAM,SAAQ,sBAAW;IACpC;;;;;OAKG;IACH,WAAW,CACT,KAA6B,EAC7B,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,iBAAiB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpE,CAAC;IAaD,QAAQ,CACN,SAAiB,EACjB,QAAmD,EAAE,EACrD,OAA6B;QAE7B,IAAI,IAAA,uBAAgB,EAAC,KAAK,CAAC,EAAE;YAC3B,OAAO,IAAI,CAAC,QAAQ,CAAC,SAAS,EAAE,EAAE,EAAE,KAAK,CAAC,CAAC;SAC5C;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,SAAS,QAAQ,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjF,CAAC;CACF;AAnCD,sBAmCC"}
@@ -0,0 +1,21 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../../resource.mjs";
3
+ import { isRequestOptions } from "../../core.mjs";
4
+ export class Usage extends APIResource {
5
+ /**
6
+ * Returns usage and remaining credits for all licenses of a given type on a
7
+ * subscription.
8
+ *
9
+ * Date range defaults to the current billing period if not specified.
10
+ */
11
+ getAllUsage(query, options) {
12
+ return this._client.get('/licenses/usage', { query, ...options });
13
+ }
14
+ getUsage(licenseId, query = {}, options) {
15
+ if (isRequestOptions(query)) {
16
+ return this.getUsage(licenseId, {}, query);
17
+ }
18
+ return this._client.get(`/licenses/${licenseId}/usage`, { query, ...options });
19
+ }
20
+ }
21
+ //# sourceMappingURL=usage.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"usage.mjs","sourceRoot":"","sources":["../../src/resources/licenses/usage.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,EAAE,gBAAgB,EAAE;AAI3B,MAAM,OAAO,KAAM,SAAQ,WAAW;IACpC;;;;;OAKG;IACH,WAAW,CACT,KAA6B,EAC7B,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,iBAAiB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpE,CAAC;IAaD,QAAQ,CACN,SAAiB,EACjB,QAAmD,EAAE,EACrD,OAA6B;QAE7B,IAAI,gBAAgB,CAAC,KAAK,CAAC,EAAE;YAC3B,OAAO,IAAI,CAAC,QAAQ,CAAC,SAAS,EAAE,EAAE,EAAE,KAAK,CAAC,CAAC;SAC5C;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,SAAS,QAAQ,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjF,CAAC;CACF"}
@@ -0,0 +1,2 @@
1
+ export * from "./licenses/index.js";
2
+ //# sourceMappingURL=licenses.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"licenses.d.ts","sourceRoot":"","sources":["../src/resources/licenses.ts"],"names":[],"mappings":"AAEA,cAAc,kBAAkB,CAAC"}
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
16
+ };
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ __exportStar(require("./licenses/index.js"), exports);
19
+ //# sourceMappingURL=licenses.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"licenses.js","sourceRoot":"","sources":["../src/resources/licenses.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;AAEtF,sDAAiC"}
@@ -0,0 +1,3 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ export * from "./licenses/index.mjs";
3
+ //# sourceMappingURL=licenses.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"licenses.mjs","sourceRoot":"","sources":["../src/resources/licenses.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
@@ -2,6 +2,10 @@ import { APIResource } from "../resource.js";
2
2
  import * as Core from "../core.js";
3
3
  import * as ItemsAPI from "./items.js";
4
4
  import { Page, type PageParams } from "../pagination.js";
5
+ /**
6
+ * The Metric resource represents a calculation of a quantity based on events.
7
+ * Metrics are defined by the query that transforms raw usage events into meaningful values for your customers.
8
+ */
5
9
  export declare class Metrics extends APIResource {
6
10
  /**
7
11
  * This endpoint is used to create a [metric](/core-concepts###metric) using a SQL
@@ -55,6 +59,9 @@ export interface BillableMetric {
55
59
  };
56
60
  name: string;
57
61
  status: 'active' | 'draft' | 'archived';
62
+ parameter_definitions?: Array<{
63
+ [key: string]: unknown;
64
+ }> | null;
58
65
  }
59
66
  export interface MetricCreateParams {
60
67
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"metrics.d.ts","sourceRoot":"","sources":["../src/resources/metrics.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE1C,OA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