@stigg/typescript 0.1.0-beta.40 → 0.1.0-beta.42
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.
- package/CHANGELOG.md +22 -0
- package/package.json +1 -1
- package/resources/v1/credits/consumption.d.mts +4 -1
- package/resources/v1/credits/consumption.d.mts.map +1 -1
- package/resources/v1/credits/consumption.d.ts +4 -1
- package/resources/v1/credits/consumption.d.ts.map +1 -1
- package/resources/v1/customers/customers.d.mts +9 -2
- package/resources/v1/customers/customers.d.mts.map +1 -1
- package/resources/v1/customers/customers.d.ts +9 -2
- package/resources/v1/customers/customers.d.ts.map +1 -1
- package/resources/v1/customers/customers.js +9 -2
- package/resources/v1/customers/customers.js.map +1 -1
- package/resources/v1/customers/customers.mjs +9 -2
- package/resources/v1/customers/customers.mjs.map +1 -1
- package/resources/v1/customers/events.d.mts +4 -0
- package/resources/v1/customers/events.d.mts.map +1 -0
- package/resources/v1/customers/events.d.ts +4 -0
- package/resources/v1/customers/events.d.ts.map +1 -0
- package/resources/v1/customers/events.js +9 -0
- package/resources/v1/customers/events.js.map +1 -0
- package/resources/v1/customers/events.mjs +5 -0
- package/resources/v1/customers/events.mjs.map +1 -0
- package/resources/v1/customers/index.d.mts +2 -0
- package/resources/v1/customers/index.d.mts.map +1 -1
- package/resources/v1/customers/index.d.ts +2 -0
- package/resources/v1/customers/index.d.ts.map +1 -1
- package/resources/v1/customers/index.js +5 -1
- package/resources/v1/customers/index.js.map +1 -1
- package/resources/v1/customers/index.mjs +2 -0
- package/resources/v1/customers/index.mjs.map +1 -1
- package/resources/v1/customers/usage.d.mts +4 -0
- package/resources/v1/customers/usage.d.mts.map +1 -0
- package/resources/v1/customers/usage.d.ts +4 -0
- package/resources/v1/customers/usage.d.ts.map +1 -0
- package/resources/v1/customers/usage.js +9 -0
- package/resources/v1/customers/usage.js.map +1 -0
- package/resources/v1/customers/usage.mjs +5 -0
- package/resources/v1/customers/usage.mjs.map +1 -0
- package/resources/v1/events/data-export/destinations.d.mts +3 -1
- package/resources/v1/events/data-export/destinations.d.mts.map +1 -1
- package/resources/v1/events/data-export/destinations.d.ts +3 -1
- package/resources/v1/events/data-export/destinations.d.ts.map +1 -1
- package/resources/v1/events/data-export/destinations.js +3 -1
- package/resources/v1/events/data-export/destinations.js.map +1 -1
- package/resources/v1/events/data-export/destinations.mjs +3 -1
- package/resources/v1/events/data-export/destinations.mjs.map +1 -1
- package/resources/v1/events/events.d.mts +106 -1
- package/resources/v1/events/events.d.mts.map +1 -1
- package/resources/v1/events/events.d.ts +106 -1
- package/resources/v1/events/events.d.ts.map +1 -1
- package/resources/v1/events/events.js +19 -0
- package/resources/v1/events/events.js.map +1 -1
- package/resources/v1/events/events.mjs +19 -0
- package/resources/v1/events/events.mjs.map +1 -1
- package/resources/v1/events/index.d.mts +1 -1
- package/resources/v1/events/index.d.mts.map +1 -1
- package/resources/v1/events/index.d.ts +1 -1
- package/resources/v1/events/index.d.ts.map +1 -1
- package/resources/v1/events/index.js.map +1 -1
- package/resources/v1/events/index.mjs +1 -1
- package/resources/v1/events/index.mjs.map +1 -1
- package/resources/v1/index.d.mts +2 -2
- package/resources/v1/index.d.mts.map +1 -1
- package/resources/v1/index.d.ts +2 -2
- package/resources/v1/index.d.ts.map +1 -1
- package/resources/v1/index.js.map +1 -1
- package/resources/v1/index.mjs +1 -1
- package/resources/v1/index.mjs.map +1 -1
- package/resources/v1/usage.d.mts +125 -2
- package/resources/v1/usage.d.mts.map +1 -1
- package/resources/v1/usage.d.ts +125 -2
- package/resources/v1/usage.d.ts.map +1 -1
- package/resources/v1/usage.js +19 -0
- package/resources/v1/usage.js.map +1 -1
- package/resources/v1/usage.mjs +19 -0
- package/resources/v1/usage.mjs.map +1 -1
- package/resources/v1/v1.d.mts +4 -4
- package/resources/v1/v1.d.mts.map +1 -1
- package/resources/v1/v1.d.ts +4 -4
- package/resources/v1/v1.d.ts.map +1 -1
- package/resources/v1/v1.js.map +1 -1
- package/resources/v1/v1.mjs +1 -1
- package/resources/v1/v1.mjs.map +1 -1
- package/src/resources/v1/credits/consumption.ts +4 -1
- package/src/resources/v1/customers/customers.ts +13 -2
- package/src/resources/v1/customers/events.ts +5 -0
- package/src/resources/v1/customers/index.ts +2 -0
- package/src/resources/v1/customers/usage.ts +5 -0
- package/src/resources/v1/events/data-export/destinations.ts +3 -1
- package/src/resources/v1/events/events.ts +144 -1
- package/src/resources/v1/events/index.ts +7 -1
- package/src/resources/v1/index.ts +9 -1
- package/src/resources/v1/usage.ts +162 -1
- package/src/resources/v1/v1.ts +13 -1
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/resources/v1/usage.d.ts
CHANGED
|
@@ -5,6 +5,12 @@ import { RequestOptions } from "../../internal/request-options.js";
|
|
|
5
5
|
* Operations related to usage & metering
|
|
6
6
|
*/
|
|
7
7
|
export declare class Usage extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Estimates the credit cost of a usage report without recording it. Returns the
|
|
10
|
+
* estimated cost per credit currency, the current balance, and the balance after
|
|
11
|
+
* the estimated consumption.
|
|
12
|
+
*/
|
|
13
|
+
estimateCost(params: UsageEstimateCostParams, options?: RequestOptions): APIPromise<UsageEstimateCostResponse>;
|
|
8
14
|
/**
|
|
9
15
|
* Retrieves historical usage data for a customer's metered feature over time.
|
|
10
16
|
*/
|
|
@@ -15,6 +21,74 @@ export declare class Usage extends APIResource {
|
|
|
15
21
|
*/
|
|
16
22
|
report(params: UsageReportParams, options?: RequestOptions): APIPromise<UsageReportResponse>;
|
|
17
23
|
}
|
|
24
|
+
/**
|
|
25
|
+
* Response object
|
|
26
|
+
*/
|
|
27
|
+
export interface UsageEstimateCostResponse {
|
|
28
|
+
/**
|
|
29
|
+
* Estimated credit cost, current balance and balance after
|
|
30
|
+
*/
|
|
31
|
+
data: UsageEstimateCostResponse.Data;
|
|
32
|
+
}
|
|
33
|
+
export declare namespace UsageEstimateCostResponse {
|
|
34
|
+
/**
|
|
35
|
+
* Estimated credit cost, current balance and balance after
|
|
36
|
+
*/
|
|
37
|
+
interface Data {
|
|
38
|
+
/**
|
|
39
|
+
* Per-currency cost estimates
|
|
40
|
+
*/
|
|
41
|
+
estimates: Array<Data.Estimate>;
|
|
42
|
+
/**
|
|
43
|
+
* Request-level warnings about the estimation context
|
|
44
|
+
*/
|
|
45
|
+
warnings: Array<'RESOURCE_SCOPED_SUBSCRIPTION_EXISTS' | 'FEATURE_NOT_FOUND' | 'FEATURE_NOT_CREDIT_BASED'>;
|
|
46
|
+
}
|
|
47
|
+
namespace Data {
|
|
48
|
+
interface Estimate {
|
|
49
|
+
/**
|
|
50
|
+
* The credit balance after subtracting the estimated cost
|
|
51
|
+
*/
|
|
52
|
+
balanceAfterEstimate: number;
|
|
53
|
+
/**
|
|
54
|
+
* Estimated cost contribution per feature
|
|
55
|
+
*/
|
|
56
|
+
breakdown: Array<Estimate.Breakdown>;
|
|
57
|
+
/**
|
|
58
|
+
* The credit currency identifier
|
|
59
|
+
*/
|
|
60
|
+
currencyId: string;
|
|
61
|
+
/**
|
|
62
|
+
* The current credit balance, including not-yet-reconciled consumption
|
|
63
|
+
*/
|
|
64
|
+
currentBalance: number;
|
|
65
|
+
/**
|
|
66
|
+
* The estimated credit cost of the reported event or usage
|
|
67
|
+
*/
|
|
68
|
+
estimatedCost: number;
|
|
69
|
+
/**
|
|
70
|
+
* Whether the estimated consumption would bring the balance below zero
|
|
71
|
+
*/
|
|
72
|
+
wouldOverdraft: boolean;
|
|
73
|
+
}
|
|
74
|
+
namespace Estimate {
|
|
75
|
+
interface Breakdown {
|
|
76
|
+
/**
|
|
77
|
+
* The estimated credit cost contributed by this feature
|
|
78
|
+
*/
|
|
79
|
+
cost: number;
|
|
80
|
+
/**
|
|
81
|
+
* The feature whose meter contributed this cost
|
|
82
|
+
*/
|
|
83
|
+
featureId: string;
|
|
84
|
+
/**
|
|
85
|
+
* Warning explaining why this cost may be inaccurate, if any
|
|
86
|
+
*/
|
|
87
|
+
warningCode: 'UNSUPPORTED_AGGREGATION' | null;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
18
92
|
/**
|
|
19
93
|
* Response object
|
|
20
94
|
*/
|
|
@@ -170,12 +244,22 @@ export declare namespace UsageReportResponse {
|
|
|
170
244
|
* Optimistic credit balance for a credit-backed feature
|
|
171
245
|
*/
|
|
172
246
|
interface Credit {
|
|
247
|
+
/**
|
|
248
|
+
* The credits this single reportUsage call deducted, in credit units — scoped to
|
|
249
|
+
* this one measurement (0 for idempotency duplicates). Contrast `currentUsage`,
|
|
250
|
+
* which is the wallet-wide running total shared across all features on this
|
|
251
|
+
* currency. Use it to reconcile expected per-call deductions.
|
|
252
|
+
*/
|
|
253
|
+
consumed: number;
|
|
173
254
|
/**
|
|
174
255
|
* The credit currency identifier
|
|
175
256
|
*/
|
|
176
257
|
currencyId: string;
|
|
177
258
|
/**
|
|
178
|
-
* The
|
|
259
|
+
* The wallet's total consumed credits for this currency (optimistic — includes
|
|
260
|
+
* not-yet-reconciled usage), shared across every feature that draws on the
|
|
261
|
+
* currency. This is the running balance, not this call's deduction — see
|
|
262
|
+
* `consumed` for that.
|
|
179
263
|
*/
|
|
180
264
|
currentUsage: number;
|
|
181
265
|
/**
|
|
@@ -195,6 +279,45 @@ export declare namespace UsageReportResponse {
|
|
|
195
279
|
}
|
|
196
280
|
}
|
|
197
281
|
}
|
|
282
|
+
export interface UsageEstimateCostParams {
|
|
283
|
+
/**
|
|
284
|
+
* Body param: Customer id
|
|
285
|
+
*/
|
|
286
|
+
customerId: string;
|
|
287
|
+
/**
|
|
288
|
+
* Body param: Feature id
|
|
289
|
+
*/
|
|
290
|
+
featureId: string;
|
|
291
|
+
/**
|
|
292
|
+
* Body param: The value to report for usage
|
|
293
|
+
*/
|
|
294
|
+
value: number;
|
|
295
|
+
/**
|
|
296
|
+
* Body param: Additional dimensions for the usage report
|
|
297
|
+
*/
|
|
298
|
+
dimensions?: {
|
|
299
|
+
[key: string]: string | number | boolean;
|
|
300
|
+
};
|
|
301
|
+
/**
|
|
302
|
+
* Body param: Resource id
|
|
303
|
+
*/
|
|
304
|
+
resourceId?: string | null;
|
|
305
|
+
/**
|
|
306
|
+
* Body param: The method by which the usage value should be updated
|
|
307
|
+
*/
|
|
308
|
+
updateBehavior?: 'DELTA' | 'SET';
|
|
309
|
+
/**
|
|
310
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
311
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
312
|
+
*/
|
|
313
|
+
'X-ACCOUNT-ID'?: string;
|
|
314
|
+
/**
|
|
315
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
316
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
317
|
+
* intrinsic to the key).
|
|
318
|
+
*/
|
|
319
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
320
|
+
}
|
|
198
321
|
export interface UsageHistoryParams {
|
|
199
322
|
/**
|
|
200
323
|
* Path param: Customer id
|
|
@@ -287,6 +410,6 @@ export declare namespace UsageReportParams {
|
|
|
287
410
|
}
|
|
288
411
|
}
|
|
289
412
|
export declare namespace Usage {
|
|
290
|
-
export { type UsageHistoryResponse as UsageHistoryResponse, type UsageReportResponse as UsageReportResponse, type UsageHistoryParams as UsageHistoryParams, type UsageReportParams as UsageReportParams, };
|
|
413
|
+
export { type UsageEstimateCostResponse as UsageEstimateCostResponse, type UsageHistoryResponse as UsageHistoryResponse, type UsageReportResponse as UsageReportResponse, type UsageEstimateCostParams as UsageEstimateCostParams, type UsageHistoryParams as UsageHistoryParams, type UsageReportParams as UsageReportParams, };
|
|
291
414
|
}
|
|
292
415
|
//# sourceMappingURL=usage.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usage.d.ts","sourceRoot":"","sources":["../../src/resources/v1/usage.ts"],"names":[],"mappings":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C,EAAE;YAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAA;SAAE,CAAC;QAE1D;;WAEG;QACH,cAAc,CAAC,EAAE,MAAM,CAAC;QAExB;;WAEG;QACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QAE3B;;WAEG;QACH,cAAc,CAAC,EAAE,OAAO,GAAG,KAAK,CAAC;KAClC;CACF;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
|
package/resources/v1/usage.js
CHANGED
|
@@ -9,6 +9,25 @@ const path_1 = require("../../internal/utils/path.js");
|
|
|
9
9
|
* Operations related to usage & metering
|
|
10
10
|
*/
|
|
11
11
|
class Usage extends resource_1.APIResource {
|
|
12
|
+
/**
|
|
13
|
+
* Estimates the credit cost of a usage report without recording it. Returns the
|
|
14
|
+
* estimated cost per credit currency, the current balance, and the balance after
|
|
15
|
+
* the estimated consumption.
|
|
16
|
+
*/
|
|
17
|
+
estimateCost(params, options) {
|
|
18
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
|
|
19
|
+
return this._client.post('/api/v1/usage/estimate', {
|
|
20
|
+
body,
|
|
21
|
+
...options,
|
|
22
|
+
headers: (0, headers_1.buildHeaders)([
|
|
23
|
+
{
|
|
24
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
25
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
26
|
+
},
|
|
27
|
+
options?.headers,
|
|
28
|
+
]),
|
|
29
|
+
});
|
|
30
|
+
}
|
|
12
31
|
/**
|
|
13
32
|
* Retrieves historical usage data for a customer's metered feature over time.
|
|
14
33
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usage.js","sourceRoot":"","sources":["../../src/resources/v1/usage.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAElD,uDAAsD;AAEtD,uDAAiD;AAEjD;;GAEG;AACH,MAAa,KAAM,SAAQ,sBAAW;IACpC;;OAEG;IACH,OAAO,CACL,SAAiB,EACjB,MAA0B,EAC1B,OAAwB;QAExB,MAAM,EAAE,UAAU,EAAE,cAAc,EAAE,UAAU,EAAE,kBAAkB,EAAE,cAAc,EAAE,GAAG,KAAK,EAAE,GAAG,MAAM,CAAC;QACxG,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,iBAAiB,UAAU,YAAY,SAAS,EAAE,EAAE;YAC9E,KAAK;YACL,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC;gBACpB;oBACE,GAAG,CAAC,UAAU,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,cAAc,EAAE,UAAU,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;oBACpE,GAAG,CAAC,cAAc,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,kBAAkB,EAAE,cAAc,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;iBACjF;gBACD,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;IAED;;;OAGG;IACH,MAAM,CAAC,MAAyB,EAAE,OAAwB;QACxD,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,kBAAkB,EAAE,cAAc,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QAC3F,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,eAAe,EAAE;YACxC,IAAI;YACJ,GAA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,25 @@ import { path } from "../../internal/utils/path.mjs";
|
|
|
6
6
|
* Operations related to usage & metering
|
|
7
7
|
*/
|
|
8
8
|
export class Usage extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Estimates the credit cost of a usage report without recording it. Returns the
|
|
11
|
+
* estimated cost per credit currency, the current balance, and the balance after
|
|
12
|
+
* the estimated consumption.
|
|
13
|
+
*/
|
|
14
|
+
estimateCost(params, options) {
|
|
15
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
|
|
16
|
+
return this._client.post('/api/v1/usage/estimate', {
|
|
17
|
+
body,
|
|
18
|
+
...options,
|
|
19
|
+
headers: buildHeaders([
|
|
20
|
+
{
|
|
21
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
22
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
23
|
+
},
|
|
24
|
+
options?.headers,
|
|
25
|
+
]),
|
|
26
|
+
});
|
|
27
|
+
}
|
|
9
28
|
/**
|
|
10
29
|
* Retrieves historical usage data for a customer's metered feature over time.
|
|
11
30
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usage.mjs","sourceRoot":"","sources":["../../src/resources/v1/usage.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAElD,OAAO,EAAE,YAAY,EAAE,mCAA+B;AAEtD,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD;;GAEG;AACH,MAAM,OAAO,KAAM,SAAQ,WAAW;IACpC;;OAEG;IACH,OAAO,CACL,SAAiB,EACjB,MAA0B,EAC1B,OAAwB;QAExB,MAAM,EAAE,UAAU,EAAE,cAAc,EAAE,UAAU,EAAE,kBAAkB,EAAE,cAAc,EAAE,GAAG,KAAK,EAAE,GAAG,MAAM,CAAC;QACxG,OAAO,IAAI,CAAC,OA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C;iBACjF;gBACD,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;IAED;;;OAGG;IACH,MAAM,CAAC,MAAyB,EAAE,OAAwB;QACxD,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,kBAAkB,EAAE,cAAc,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QAC3F,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,eAAe,EAAE;YACxC,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC;gBACpB;oBACE,GAAG,CAAC,UAAU,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,cAAc,EAAE,UAAU,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;oBACpE,GAAG,CAAC,cAAc,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,kBAAkB,EAAE,cAAc,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;iBACjF;gBACD,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;CACF"}
|
package/resources/v1/v1.d.mts
CHANGED
|
@@ -6,7 +6,7 @@ import { Feature, FeatureArchiveFeatureParams, FeatureCreateFeatureParams, Featu
|
|
|
6
6
|
import * as ProductsAPI from "./products.mjs";
|
|
7
7
|
import { Product, ProductArchiveProductParams, ProductCreateProductParams, ProductDuplicateProductParams, ProductListProductsParams, ProductListProductsResponse, ProductListProductsResponsesMyCursorIDPage, ProductUnarchiveProductParams, ProductUpdateProductParams, Products } from "./products.mjs";
|
|
8
8
|
import * as UsageAPI from "./usage.mjs";
|
|
9
|
-
import { Usage, UsageHistoryParams, UsageHistoryResponse, UsageReportParams, UsageReportResponse } from "./usage.mjs";
|
|
9
|
+
import { Usage, UsageEstimateCostParams, UsageEstimateCostResponse, UsageHistoryParams, UsageHistoryResponse, UsageReportParams, UsageReportResponse } from "./usage.mjs";
|
|
10
10
|
import * as AddonsAPI from "./addons/addons.mjs";
|
|
11
11
|
import { Addon, AddonArchiveParams, AddonCreateDraftParams, AddonCreateParams, AddonListChargesParams, AddonListChargesResponse, AddonListChargesResponsesMyCursorIDPage, AddonListParams, AddonListResponse, AddonListResponsesMyCursorIDPage, AddonPublishParams, AddonPublishResponse, AddonRemoveDraftParams, AddonRemoveDraftResponse, AddonRetrieveParams, AddonUpdateParams, Addons } from "./addons/addons.mjs";
|
|
12
12
|
import * as CreditsAPI from "./credits/credits.mjs";
|
|
@@ -14,7 +14,7 @@ import { CreditGetAutoRechargeParams, CreditGetAutoRechargeResponse, CreditGetUs
|
|
|
14
14
|
import * as CustomersAPI from "./customers/customers.mjs";
|
|
15
15
|
import { CustomerArchiveParams, CustomerCheckEntitlementParams, CustomerCheckEntitlementResponse, CustomerImportParams, CustomerImportResponse, CustomerIntegrationResponse, CustomerListParams, CustomerListResourcesParams, CustomerListResourcesResponse, CustomerListResourcesResponsesMyCursorIDPage, CustomerListResponse, CustomerListResponsesMyCursorIDPage, CustomerProvisionParams, CustomerResponse, CustomerRetrieveEntitlementsParams, CustomerRetrieveEntitlementsResponse, CustomerRetrieveParams, CustomerUnarchiveParams, CustomerUpdateParams, Customers } from "./customers/customers.mjs";
|
|
16
16
|
import * as EventsAPI from "./events/events.mjs";
|
|
17
|
-
import { EventReportParams, EventReportResponse, Events } from "./events/events.mjs";
|
|
17
|
+
import { EventEstimateCostParams, EventEstimateCostResponse, EventReportParams, EventReportResponse, Events } from "./events/events.mjs";
|
|
18
18
|
import * as PlansAPI from "./plans/plans.mjs";
|
|
19
19
|
import { Plan, PlanArchiveParams, PlanCreateDraftParams, PlanCreateParams, PlanListChargesParams, PlanListChargesResponse, PlanListChargesResponsesMyCursorIDPage, PlanListOverageChargesParams, PlanListOverageChargesResponse, PlanListOverageChargesResponsesMyCursorIDPage, PlanListParams, PlanListResponse, PlanListResponsesMyCursorIDPage, PlanPublishParams, PlanPublishResponse, PlanRemoveDraftParams, PlanRemoveDraftResponse, PlanRetrieveParams, PlanUpdateParams, Plans } from "./plans/plans.mjs";
|
|
20
20
|
import * as SubscriptionsAPI from "./subscriptions/subscriptions.mjs";
|
|
@@ -35,12 +35,12 @@ export declare namespace V1 {
|
|
|
35
35
|
export { Customers as Customers, type CustomerIntegrationResponse as CustomerIntegrationResponse, type CustomerResponse as CustomerResponse, type CustomerListResponse as CustomerListResponse, type CustomerCheckEntitlementResponse as CustomerCheckEntitlementResponse, type CustomerImportResponse as CustomerImportResponse, type CustomerListResourcesResponse as CustomerListResourcesResponse, type CustomerRetrieveEntitlementsResponse as CustomerRetrieveEntitlementsResponse, type CustomerListResponsesMyCursorIDPage as CustomerListResponsesMyCursorIDPage, type CustomerListResourcesResponsesMyCursorIDPage as CustomerListResourcesResponsesMyCursorIDPage, type CustomerRetrieveParams as CustomerRetrieveParams, type CustomerUpdateParams as CustomerUpdateParams, type CustomerListParams as CustomerListParams, type CustomerArchiveParams as CustomerArchiveParams, type CustomerCheckEntitlementParams as CustomerCheckEntitlementParams, type CustomerImportParams as CustomerImportParams, type CustomerListResourcesParams as CustomerListResourcesParams, type CustomerProvisionParams as CustomerProvisionParams, type CustomerRetrieveEntitlementsParams as CustomerRetrieveEntitlementsParams, type CustomerUnarchiveParams as CustomerUnarchiveParams, };
|
|
36
36
|
export { Subscriptions as Subscriptions, type Subscription as Subscription, type SubscriptionListResponse as SubscriptionListResponse, type SubscriptionImportResponse as SubscriptionImportResponse, type SubscriptionPreviewResponse as SubscriptionPreviewResponse, type SubscriptionProvisionResponse as SubscriptionProvisionResponse, type SubscriptionListResponsesMyCursorIDPage as SubscriptionListResponsesMyCursorIDPage, type SubscriptionRetrieveParams as SubscriptionRetrieveParams, type SubscriptionUpdateParams as SubscriptionUpdateParams, type SubscriptionListParams as SubscriptionListParams, type SubscriptionCancelParams as SubscriptionCancelParams, type SubscriptionDelegateParams as SubscriptionDelegateParams, type SubscriptionImportParams as SubscriptionImportParams, type SubscriptionMigrateParams as SubscriptionMigrateParams, type SubscriptionPreviewParams as SubscriptionPreviewParams, type SubscriptionProvisionParams as SubscriptionProvisionParams, type SubscriptionTransferParams as SubscriptionTransferParams, };
|
|
37
37
|
export { Coupons as Coupons, type Coupon as Coupon, type CouponListResponse as CouponListResponse, type CouponListResponsesMyCursorIDPage as CouponListResponsesMyCursorIDPage, type CouponCreateParams as CouponCreateParams, type CouponRetrieveParams as CouponRetrieveParams, type CouponListParams as CouponListParams, type CouponArchiveCouponParams as CouponArchiveCouponParams, type CouponUpdateCouponParams as CouponUpdateCouponParams, };
|
|
38
|
-
export { Events as Events, type EventReportResponse as EventReportResponse, type EventReportParams as EventReportParams, };
|
|
38
|
+
export { Events as Events, type EventEstimateCostResponse as EventEstimateCostResponse, type EventReportResponse as EventReportResponse, type EventEstimateCostParams as EventEstimateCostParams, type EventReportParams as EventReportParams, };
|
|
39
39
|
export { Credits as Credits, type CreditGetAutoRechargeResponse as CreditGetAutoRechargeResponse, type CreditGetUsageResponse as CreditGetUsageResponse, type CreditListLedgerResponse as CreditListLedgerResponse, type CreditListLedgerResponsesMyCursorIDPage as CreditListLedgerResponsesMyCursorIDPage, type CreditGetAutoRechargeParams as CreditGetAutoRechargeParams, type CreditGetUsageParams as CreditGetUsageParams, type CreditListLedgerParams as CreditListLedgerParams, };
|
|
40
40
|
export { Features as Features, type Feature as Feature, type FeatureListFeaturesResponse as FeatureListFeaturesResponse, type FeatureListFeaturesResponsesMyCursorIDPage as FeatureListFeaturesResponsesMyCursorIDPage, type FeatureArchiveFeatureParams as FeatureArchiveFeatureParams, type FeatureCreateFeatureParams as FeatureCreateFeatureParams, type FeatureListFeaturesParams as FeatureListFeaturesParams, type FeatureRetrieveFeatureParams as FeatureRetrieveFeatureParams, type FeatureUnarchiveFeatureParams as FeatureUnarchiveFeatureParams, type FeatureUpdateFeatureParams as FeatureUpdateFeatureParams, };
|
|
41
41
|
export { Addons as Addons, type Addon as Addon, type AddonListResponse as AddonListResponse, type AddonListChargesResponse as AddonListChargesResponse, type AddonPublishResponse as AddonPublishResponse, type AddonRemoveDraftResponse as AddonRemoveDraftResponse, type AddonListResponsesMyCursorIDPage as AddonListResponsesMyCursorIDPage, type AddonListChargesResponsesMyCursorIDPage as AddonListChargesResponsesMyCursorIDPage, type AddonCreateParams as AddonCreateParams, type AddonRetrieveParams as AddonRetrieveParams, type AddonUpdateParams as AddonUpdateParams, type AddonListParams as AddonListParams, type AddonArchiveParams as AddonArchiveParams, type AddonCreateDraftParams as AddonCreateDraftParams, type AddonListChargesParams as AddonListChargesParams, type AddonPublishParams as AddonPublishParams, type AddonRemoveDraftParams as AddonRemoveDraftParams, };
|
|
42
42
|
export { Plans as Plans, type Plan as Plan, type PlanListResponse as PlanListResponse, type PlanListChargesResponse as PlanListChargesResponse, type PlanListOverageChargesResponse as PlanListOverageChargesResponse, type PlanPublishResponse as PlanPublishResponse, type PlanRemoveDraftResponse as PlanRemoveDraftResponse, type PlanListResponsesMyCursorIDPage as PlanListResponsesMyCursorIDPage, type PlanListChargesResponsesMyCursorIDPage as PlanListChargesResponsesMyCursorIDPage, type PlanListOverageChargesResponsesMyCursorIDPage as PlanListOverageChargesResponsesMyCursorIDPage, type PlanCreateParams as PlanCreateParams, type PlanRetrieveParams as PlanRetrieveParams, type PlanUpdateParams as PlanUpdateParams, type PlanListParams as PlanListParams, type PlanArchiveParams as PlanArchiveParams, type PlanCreateDraftParams as PlanCreateDraftParams, type PlanListChargesParams as PlanListChargesParams, type PlanListOverageChargesParams as PlanListOverageChargesParams, type PlanPublishParams as PlanPublishParams, type PlanRemoveDraftParams as PlanRemoveDraftParams, };
|
|
43
|
-
export { Usage as Usage, type UsageHistoryResponse as UsageHistoryResponse, type UsageReportResponse as UsageReportResponse, type UsageHistoryParams as UsageHistoryParams, type UsageReportParams as UsageReportParams, };
|
|
43
|
+
export { Usage as Usage, type UsageEstimateCostResponse as UsageEstimateCostResponse, type UsageHistoryResponse as UsageHistoryResponse, type UsageReportResponse as UsageReportResponse, type UsageEstimateCostParams as UsageEstimateCostParams, type UsageHistoryParams as UsageHistoryParams, type UsageReportParams as UsageReportParams, };
|
|
44
44
|
export { Products as Products, type Product as Product, type ProductListProductsResponse as ProductListProductsResponse, type ProductListProductsResponsesMyCursorIDPage as ProductListProductsResponsesMyCursorIDPage, type ProductArchiveProductParams as ProductArchiveProductParams, type ProductCreateProductParams as ProductCreateProductParams, type ProductDuplicateProductParams as ProductDuplicateProductParams, type ProductListProductsParams as ProductListProductsParams, type ProductUnarchiveProductParams as ProductUnarchiveProductParams, type ProductUpdateProductParams as ProductUpdateProductParams, };
|
|
45
45
|
}
|
|
46
46
|
//# sourceMappingURL=v1.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v1.d.mts","sourceRoot":"","sources":["../../src/resources/v1/v1.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,UAAU,sBAAkB;AACxC,OAAO,EACL,MAAM,EACN,yBAAyB,EACzB,kBAAkB,EAClB,gBAAgB,EAChB,kBAAkB,EAClB,iCAAiC,EACjC,oBAAoB,EACpB,wBAAwB,EACxB,OAAO,EACR,sBAAkB;AACnB,OAAO,KAAK,WAAW,uBAAmB;AAC1C,OAAO,EACL,OAAO,EACP,2BAA2B,EAC3B,0BAA0B,EAC1B,yBAAyB,EACzB,2BAA2B,EAC3B,0CAA0C,EAC1C,4BAA4B,EAC5B,6BAA6B,EAC7B,0BAA0B,EAC1B,QAAQ,EACT,uBAAmB;AACpB,OAAO,KAAK,WAAW,uBAAmB;AAC1C,OAAO,EACL,OAAO,EACP,2BAA2B,EAC3B,0BAA0B,EAC1B,6BAA6B,EAC7B,yBAAyB,EACzB,2BAA2B,EAC3B,0CAA0C,EAC1C,6BAA6B,EAC7B,0BAA0B,EAC1B,QAAQ,EACT,uBAAmB;AACpB,OAAO,KAAK,QAAQ,oBAAgB;AACpC,OAAO,EACL,KAAK,EACL,kBAAkB,EAClB,oBAAoB,EACpB,iBAAiB,EACjB,mBAAmB,EACpB,oBAAgB;AACjB,OAAO,KAAK,SAAS,4BAAwB;AAC7C,OAAO,EACL,KAAK,EACL,kBAAkB,EAClB,sBAAsB,EACtB,iBAAiB,EACjB,sBAAsB,EACtB,wBAAwB,EACxB,uCAAuC,EACvC,eAAe,EACf,iBAAiB,EACjB,gCAAgC,EAChC,kBAAkB,EAClB,oBAAoB,EACpB,sBAAsB,EACtB,wBAAwB,EACxB,mBAAmB,EACnB,iBAAiB,EACjB,MAAM,EACP,4BAAwB;AACzB,OAAO,KAAK,UAAU,8BAA0B;AAChD,OAAO,EACL,2BAA2B,EAC3B,6BAA6B,EAC7B,oBAAoB,EACpB,sBAAsB,EACtB,sBAAsB,EACtB,wBAAwB,EACxB,uCAAuC,EACvC,OAAO,EACR,8BAA0B;AAC3B,OAAO,KAAK,YAAY,kCAA8B;AACtD,OAAO,EACL,qBAAqB,EACrB,8BAA8B,EAC9B,gCAAgC,EAChC,oBAAoB,EACpB,sBAAsB,EACtB,2BAA2B,EAC3B,kBAAkB,EAClB,2BAA2B,EAC3B,6BAA6B,EAC7B,4CAA4C,EAC5C,oBAAoB,EACpB,mCAAmC,EACnC,uBAAuB,EACvB,gBAAgB,EAChB,kCAAkC,EAClC,oCAAoC,EACpC,sBAAsB,EACtB,uBAAuB,EACvB,oBAAoB,EACpB,SAAS,EACV,kCAA8B;AAC/B,OAAO,KAAK,SAAS,4BAAwB;AAC7C,OAAO,
|
|
1
|
+
{"version":3,"file":"v1.d.mts","sourceRoot":"","sources":["../../src/resources/v1/v1.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,UAAU,sBAAkB;AACxC,OAAO,EACL,MAAM,EACN,yBAAyB,EACzB,kBAAkB,EAClB,gBAAgB,EAChB,kBAAkB,EAClB,iCAAiC,EACjC,oBAAoB,EACpB,wBAAwB,EACxB,OAAO,EACR,sBAAkB;AACnB,OAAO,KAAK,WAAW,uBAAmB;AAC1C,OAAO,EACL,OAAO,EACP,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AAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,qBAAqB,IAAI,qBAAqB,GACpD,CAAC;IAEF,OAAO,EACL,KAAK,IAAI,KAAK,EACd,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;IAEF,OAAO,EACL,QAAQ,IAAI,QAAQ,EACpB,KAAK,OAAO,IAAI,OAAO,EACvB,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,0CAA0C,IAAI,0CAA0C,EAC7F,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
|
package/resources/v1/v1.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { Feature, FeatureArchiveFeatureParams, FeatureCreateFeatureParams, Featu
|
|
|
6
6
|
import * as ProductsAPI from "./products.js";
|
|
7
7
|
import { Product, ProductArchiveProductParams, ProductCreateProductParams, ProductDuplicateProductParams, ProductListProductsParams, ProductListProductsResponse, ProductListProductsResponsesMyCursorIDPage, ProductUnarchiveProductParams, ProductUpdateProductParams, Products } from "./products.js";
|
|
8
8
|
import * as UsageAPI from "./usage.js";
|
|
9
|
-
import { Usage, UsageHistoryParams, UsageHistoryResponse, UsageReportParams, UsageReportResponse } from "./usage.js";
|
|
9
|
+
import { Usage, UsageEstimateCostParams, UsageEstimateCostResponse, UsageHistoryParams, UsageHistoryResponse, UsageReportParams, UsageReportResponse } from "./usage.js";
|
|
10
10
|
import * as AddonsAPI from "./addons/addons.js";
|
|
11
11
|
import { Addon, AddonArchiveParams, AddonCreateDraftParams, AddonCreateParams, AddonListChargesParams, AddonListChargesResponse, AddonListChargesResponsesMyCursorIDPage, AddonListParams, AddonListResponse, AddonListResponsesMyCursorIDPage, AddonPublishParams, AddonPublishResponse, AddonRemoveDraftParams, AddonRemoveDraftResponse, AddonRetrieveParams, AddonUpdateParams, Addons } from "./addons/addons.js";
|
|
12
12
|
import * as CreditsAPI from "./credits/credits.js";
|
|
@@ -14,7 +14,7 @@ import { CreditGetAutoRechargeParams, CreditGetAutoRechargeResponse, CreditGetUs
|
|
|
14
14
|
import * as CustomersAPI from "./customers/customers.js";
|
|
15
15
|
import { CustomerArchiveParams, CustomerCheckEntitlementParams, CustomerCheckEntitlementResponse, CustomerImportParams, CustomerImportResponse, CustomerIntegrationResponse, CustomerListParams, CustomerListResourcesParams, CustomerListResourcesResponse, CustomerListResourcesResponsesMyCursorIDPage, CustomerListResponse, CustomerListResponsesMyCursorIDPage, CustomerProvisionParams, CustomerResponse, CustomerRetrieveEntitlementsParams, CustomerRetrieveEntitlementsResponse, CustomerRetrieveParams, CustomerUnarchiveParams, CustomerUpdateParams, Customers } from "./customers/customers.js";
|
|
16
16
|
import * as EventsAPI from "./events/events.js";
|
|
17
|
-
import { EventReportParams, EventReportResponse, Events } from "./events/events.js";
|
|
17
|
+
import { EventEstimateCostParams, EventEstimateCostResponse, EventReportParams, EventReportResponse, Events } from "./events/events.js";
|
|
18
18
|
import * as PlansAPI from "./plans/plans.js";
|
|
19
19
|
import { Plan, PlanArchiveParams, PlanCreateDraftParams, PlanCreateParams, PlanListChargesParams, PlanListChargesResponse, PlanListChargesResponsesMyCursorIDPage, PlanListOverageChargesParams, PlanListOverageChargesResponse, PlanListOverageChargesResponsesMyCursorIDPage, PlanListParams, PlanListResponse, PlanListResponsesMyCursorIDPage, PlanPublishParams, PlanPublishResponse, PlanRemoveDraftParams, PlanRemoveDraftResponse, PlanRetrieveParams, PlanUpdateParams, Plans } from "./plans/plans.js";
|
|
20
20
|
import * as SubscriptionsAPI from "./subscriptions/subscriptions.js";
|
|
@@ -35,12 +35,12 @@ export declare namespace V1 {
|
|
|
35
35
|
export { Customers as Customers, type CustomerIntegrationResponse as CustomerIntegrationResponse, type CustomerResponse as CustomerResponse, type CustomerListResponse as CustomerListResponse, type CustomerCheckEntitlementResponse as CustomerCheckEntitlementResponse, type CustomerImportResponse as CustomerImportResponse, type CustomerListResourcesResponse as CustomerListResourcesResponse, type CustomerRetrieveEntitlementsResponse as CustomerRetrieveEntitlementsResponse, type CustomerListResponsesMyCursorIDPage as CustomerListResponsesMyCursorIDPage, type CustomerListResourcesResponsesMyCursorIDPage as CustomerListResourcesResponsesMyCursorIDPage, type CustomerRetrieveParams as CustomerRetrieveParams, type CustomerUpdateParams as CustomerUpdateParams, type CustomerListParams as CustomerListParams, type CustomerArchiveParams as CustomerArchiveParams, type CustomerCheckEntitlementParams as CustomerCheckEntitlementParams, type CustomerImportParams as CustomerImportParams, type CustomerListResourcesParams as CustomerListResourcesParams, type CustomerProvisionParams as CustomerProvisionParams, type CustomerRetrieveEntitlementsParams as CustomerRetrieveEntitlementsParams, type CustomerUnarchiveParams as CustomerUnarchiveParams, };
|
|
36
36
|
export { Subscriptions as Subscriptions, type Subscription as Subscription, type SubscriptionListResponse as SubscriptionListResponse, type SubscriptionImportResponse as SubscriptionImportResponse, type SubscriptionPreviewResponse as SubscriptionPreviewResponse, type SubscriptionProvisionResponse as SubscriptionProvisionResponse, type SubscriptionListResponsesMyCursorIDPage as SubscriptionListResponsesMyCursorIDPage, type SubscriptionRetrieveParams as SubscriptionRetrieveParams, type SubscriptionUpdateParams as SubscriptionUpdateParams, type SubscriptionListParams as SubscriptionListParams, type SubscriptionCancelParams as SubscriptionCancelParams, type SubscriptionDelegateParams as SubscriptionDelegateParams, type SubscriptionImportParams as SubscriptionImportParams, type SubscriptionMigrateParams as SubscriptionMigrateParams, type SubscriptionPreviewParams as SubscriptionPreviewParams, type SubscriptionProvisionParams as SubscriptionProvisionParams, type SubscriptionTransferParams as SubscriptionTransferParams, };
|
|
37
37
|
export { Coupons as Coupons, type Coupon as Coupon, type CouponListResponse as CouponListResponse, type CouponListResponsesMyCursorIDPage as CouponListResponsesMyCursorIDPage, type CouponCreateParams as CouponCreateParams, type CouponRetrieveParams as CouponRetrieveParams, type CouponListParams as CouponListParams, type CouponArchiveCouponParams as CouponArchiveCouponParams, type CouponUpdateCouponParams as CouponUpdateCouponParams, };
|
|
38
|
-
export { Events as Events, type EventReportResponse as EventReportResponse, type EventReportParams as EventReportParams, };
|
|
38
|
+
export { Events as Events, type EventEstimateCostResponse as EventEstimateCostResponse, type EventReportResponse as EventReportResponse, type EventEstimateCostParams as EventEstimateCostParams, type EventReportParams as EventReportParams, };
|
|
39
39
|
export { Credits as Credits, type CreditGetAutoRechargeResponse as CreditGetAutoRechargeResponse, type CreditGetUsageResponse as CreditGetUsageResponse, type CreditListLedgerResponse as CreditListLedgerResponse, type CreditListLedgerResponsesMyCursorIDPage as CreditListLedgerResponsesMyCursorIDPage, type CreditGetAutoRechargeParams as CreditGetAutoRechargeParams, type CreditGetUsageParams as CreditGetUsageParams, type CreditListLedgerParams as CreditListLedgerParams, };
|
|
40
40
|
export { Features as Features, type Feature as Feature, type FeatureListFeaturesResponse as FeatureListFeaturesResponse, type FeatureListFeaturesResponsesMyCursorIDPage as FeatureListFeaturesResponsesMyCursorIDPage, type FeatureArchiveFeatureParams as FeatureArchiveFeatureParams, type FeatureCreateFeatureParams as FeatureCreateFeatureParams, type FeatureListFeaturesParams as FeatureListFeaturesParams, type FeatureRetrieveFeatureParams as FeatureRetrieveFeatureParams, type FeatureUnarchiveFeatureParams as FeatureUnarchiveFeatureParams, type FeatureUpdateFeatureParams as FeatureUpdateFeatureParams, };
|
|
41
41
|
export { Addons as Addons, type Addon as Addon, type AddonListResponse as AddonListResponse, type AddonListChargesResponse as AddonListChargesResponse, type AddonPublishResponse as AddonPublishResponse, type AddonRemoveDraftResponse as AddonRemoveDraftResponse, type AddonListResponsesMyCursorIDPage as AddonListResponsesMyCursorIDPage, type AddonListChargesResponsesMyCursorIDPage as AddonListChargesResponsesMyCursorIDPage, type AddonCreateParams as AddonCreateParams, type AddonRetrieveParams as AddonRetrieveParams, type AddonUpdateParams as AddonUpdateParams, type AddonListParams as AddonListParams, type AddonArchiveParams as AddonArchiveParams, type AddonCreateDraftParams as AddonCreateDraftParams, type AddonListChargesParams as AddonListChargesParams, type AddonPublishParams as AddonPublishParams, type AddonRemoveDraftParams as AddonRemoveDraftParams, };
|
|
42
42
|
export { Plans as Plans, type Plan as Plan, type PlanListResponse as PlanListResponse, type PlanListChargesResponse as PlanListChargesResponse, type PlanListOverageChargesResponse as PlanListOverageChargesResponse, type PlanPublishResponse as PlanPublishResponse, type PlanRemoveDraftResponse as PlanRemoveDraftResponse, type PlanListResponsesMyCursorIDPage as PlanListResponsesMyCursorIDPage, type PlanListChargesResponsesMyCursorIDPage as PlanListChargesResponsesMyCursorIDPage, type PlanListOverageChargesResponsesMyCursorIDPage as PlanListOverageChargesResponsesMyCursorIDPage, type PlanCreateParams as PlanCreateParams, type PlanRetrieveParams as PlanRetrieveParams, type PlanUpdateParams as PlanUpdateParams, type PlanListParams as PlanListParams, type PlanArchiveParams as PlanArchiveParams, type PlanCreateDraftParams as PlanCreateDraftParams, type PlanListChargesParams as PlanListChargesParams, type PlanListOverageChargesParams as PlanListOverageChargesParams, type PlanPublishParams as PlanPublishParams, type PlanRemoveDraftParams as PlanRemoveDraftParams, };
|
|
43
|
-
export { Usage as Usage, type UsageHistoryResponse as UsageHistoryResponse, type UsageReportResponse as UsageReportResponse, type UsageHistoryParams as UsageHistoryParams, type UsageReportParams as UsageReportParams, };
|
|
43
|
+
export { Usage as Usage, type UsageEstimateCostResponse as UsageEstimateCostResponse, type UsageHistoryResponse as UsageHistoryResponse, type UsageReportResponse as UsageReportResponse, type UsageEstimateCostParams as UsageEstimateCostParams, type UsageHistoryParams as UsageHistoryParams, type UsageReportParams as UsageReportParams, };
|
|
44
44
|
export { Products as Products, type Product as Product, type ProductListProductsResponse as ProductListProductsResponse, type ProductListProductsResponsesMyCursorIDPage as ProductListProductsResponsesMyCursorIDPage, type ProductArchiveProductParams as ProductArchiveProductParams, type ProductCreateProductParams as ProductCreateProductParams, type ProductDuplicateProductParams as ProductDuplicateProductParams, type ProductListProductsParams as ProductListProductsParams, type ProductUnarchiveProductParams as ProductUnarchiveProductParams, type ProductUpdateProductParams as ProductUpdateProductParams, };
|
|
45
45
|
}
|
|
46
46
|
//# sourceMappingURL=v1.d.ts.map
|
package/resources/v1/v1.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v1.d.ts","sourceRoot":"","sources":["../../src/resources/v1/v1.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,UAAU,qBAAkB;AACxC,OAAO,EACL,MAAM,EACN,yBAAyB,EACzB,kBAAkB,EAClB,gBAAgB,EAChB,kBAAkB,EAClB,iCAAiC,EACjC,oBAAoB,EACpB,wBAAwB,EACxB,OAAO,EACR,qBAAkB;AACnB,OAAO,KAAK,WAAW,sBAAmB;AAC1C,OAAO,EACL,OAAO,EACP,2BAA2B,EAC3B,0BAA0B,EAC1B,yBAAyB,EACzB,2BAA2B,EAC3B,0CAA0C,EAC1C,4BAA4B,EAC5B,6BAA6B,EAC7B,0BAA0B,EAC1B,QAAQ,EACT,sBAAmB;AACpB,OAAO,KAAK,WAAW,sBAAmB;AAC1C,OAAO,EACL,OAAO,EACP,2BAA2B,EAC3B,0BAA0B,EAC1B,6BAA6B,EAC7B,yBAAyB,EACzB,2BAA2B,EAC3B,0CAA0C,EAC1C,6BAA6B,EAC7B,0BAA0B,EAC1B,QAAQ,EACT,sBAAmB;AACpB,OAAO,KAAK,QAAQ,mBAAgB;AACpC,OAAO,EACL,KAAK,EACL,kBAAkB,EAClB,oBAAoB,EACpB,iBAAiB,EACjB,mBAAmB,EACpB,mBAAgB;AACjB,OAAO,KAAK,SAAS,2BAAwB;AAC7C,OAAO,EACL,KAAK,EACL,kBAAkB,EAClB,sBAAsB,EACtB,iBAAiB,EACjB,sBAAsB,EACtB,wBAAwB,EACxB,uCAAuC,EACvC,eAAe,EACf,iBAAiB,EACjB,gCAAgC,EAChC,kBAAkB,EAClB,oBAAoB,EACpB,sBAAsB,EACtB,wBAAwB,EACxB,mBAAmB,EACnB,iBAAiB,EACjB,MAAM,EACP,2BAAwB;AACzB,OAAO,KAAK,UAAU,6BAA0B;AAChD,OAAO,EACL,2BAA2B,EAC3B,6BAA6B,EAC7B,oBAAoB,EACpB,sBAAsB,EACtB,sBAAsB,EACtB,wBAAwB,EACxB,uCAAuC,EACvC,OAAO,EACR,6BAA0B;AAC3B,OAAO,KAAK,YAAY,iCAA8B;AACtD,OAAO,EACL,qBAAqB,EACrB,8BAA8B,EAC9B,gCAAgC,EAChC,oBAAoB,EACpB,sBAAsB,EACtB,2BAA2B,EAC3B,kBAAkB,EAClB,2BAA2B,EAC3B,6BAA6B,EAC7B,4CAA4C,EAC5C,oBAAoB,EACpB,mCAAmC,EACnC,uBAAuB,EACvB,gBAAgB,EAChB,kCAAkC,EAClC,oCAAoC,EACpC,sBAAsB,EACtB,uBAAuB,EACvB,oBAAoB,EACpB,SAAS,EACV,iCAA8B;AAC/B,OAAO,KAAK,SAAS,2BAAwB;AAC7C,OAAO,
|
|
1
|
+
{"version":3,"file":"v1.d.ts","sourceRoot":"","sources":["../../src/resources/v1/v1.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AACl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ceRoot":"","sources":["../../src/resources/v1/v1.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,iEAAwC;AACxC,0CAUmB;AACnB,mEAA0C;AAC1C,4CAWoB;AACpB,mEAA0C;AAC1C,4CAWoB;AACpB,6DAAoC;AACpC,
|
|
1
|
+
{"version":3,"file":"v1.js","sourceRoot":"","sources":["../../src/resources/v1/v1.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,iEAAwC;AACxC,0CAUmB;AACnB,mEAA0C;AAC1C,4CAWoB;AACpB,mEAA0C;AAC1C,4CAWoB;AACpB,6DAAoC;AACpC,sCAQiB;AACjB,sEAA6C;AAC7C,+CAkByB;AACzB,yEAAgD;AAChD,kDAS2B;AAC3B,+EAAsD;AACtD,wDAqB+B;AAC/B,sEAA6C;AAC7C,+CAMyB;AACzB,mEAA0C;AAC1C,4CAqBuB;AACvB,2FAAkE;AAClE,oEAkBuC;AAEvC,MAAa,EAAG,SAAQ,sBAAW;IAAnC;;QACE,cAAS,GAA2B,IAAI,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC7E,kBAAa,GAAmC,IAAI,gBAAgB,CAAC,aAAa,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACjG,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACnE,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC9D,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACnE,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxE,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC9D,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACzD,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACzD,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC1E,CAAC;CAAA;AAXD,gBAWC;AAED,EAAE,CAAC,SAAS,GAAG,qBAAS,CAAC;AACzB,EAAE,CAAC,aAAa,GAAG,6BAAa,CAAC;AACjC,EAAE,CAAC,OAAO,GAAG,iBAAO,CAAC;AACrB,EAAE,CAAC,MAAM,GAAG,eAAM,CAAC;AACnB,EAAE,CAAC,OAAO,GAAG,iBAAO,CAAC;AACrB,EAAE,CAAC,QAAQ,GAAG,mBAAQ,CAAC;AACvB,EAAE,CAAC,MAAM,GAAG,eAAM,CAAC;AACnB,EAAE,CAAC,KAAK,GAAG,aAAK,CAAC;AACjB,EAAE,CAAC,KAAK,GAAG,aAAK,CAAC;AACjB,EAAE,CAAC,QAAQ,GAAG,mBAAQ,CAAC"}
|
package/resources/v1/v1.mjs
CHANGED
|
@@ -15,7 +15,7 @@ import { Credits, } from "./credits/credits.mjs";
|
|
|
15
15
|
import * as CustomersAPI from "./customers/customers.mjs";
|
|
16
16
|
import { Customers, } from "./customers/customers.mjs";
|
|
17
17
|
import * as EventsAPI from "./events/events.mjs";
|
|
18
|
-
import { Events } from "./events/events.mjs";
|
|
18
|
+
import { Events, } from "./events/events.mjs";
|
|
19
19
|
import * as PlansAPI from "./plans/plans.mjs";
|
|
20
20
|
import { Plans, } from "./plans/plans.mjs";
|
|
21
21
|
import * as SubscriptionsAPI from "./subscriptions/subscriptions.mjs";
|
package/resources/v1/v1.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v1.mjs","sourceRoot":"","sources":["../../src/resources/v1/v1.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OA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,7 +110,10 @@ export namespace ConsumptionConsumeResponse {
|
|
|
110
110
|
currencyId: string;
|
|
111
111
|
|
|
112
112
|
/**
|
|
113
|
-
* The
|
|
113
|
+
* The wallet's total consumed credits for this currency (optimistic — includes
|
|
114
|
+
* not-yet-reconciled usage), shared across every feature that draws on the
|
|
115
|
+
* currency. This is the running balance, not this call's deduction — see
|
|
116
|
+
* `consumed` for that.
|
|
114
117
|
*/
|
|
115
118
|
currentUsage: number;
|
|
116
119
|
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../../core/resource';
|
|
4
|
+
import * as EventsAPI from './events';
|
|
5
|
+
import { Events } from './events';
|
|
4
6
|
import * as IntegrationsAPI from './integrations';
|
|
5
7
|
import {
|
|
6
8
|
IntegrationLinkParams,
|
|
@@ -25,6 +27,8 @@ import {
|
|
|
25
27
|
PromotionalEntitlementRevokeResponse,
|
|
26
28
|
PromotionalEntitlements,
|
|
27
29
|
} from './promotional-entitlements';
|
|
30
|
+
import * as UsageAPI from './usage';
|
|
31
|
+
import { Usage } from './usage';
|
|
28
32
|
import { APIPromise } from '../../../core/api-promise';
|
|
29
33
|
import { MyCursorIDPage, type MyCursorIDPageParams, PagePromise } from '../../../core/pagination';
|
|
30
34
|
import { buildHeaders } from '../../../internal/headers';
|
|
@@ -36,6 +40,8 @@ export class Customers extends APIResource {
|
|
|
36
40
|
promotionalEntitlements: PromotionalEntitlementsAPI.PromotionalEntitlements =
|
|
37
41
|
new PromotionalEntitlementsAPI.PromotionalEntitlements(this._client);
|
|
38
42
|
integrations: IntegrationsAPI.Integrations = new IntegrationsAPI.Integrations(this._client);
|
|
43
|
+
events: EventsAPI.Events = new EventsAPI.Events(this._client);
|
|
44
|
+
usage: UsageAPI.Usage = new UsageAPI.Usage(this._client);
|
|
39
45
|
|
|
40
46
|
/**
|
|
41
47
|
* Retrieves a customer by their unique identifier, including billing information
|
|
@@ -196,8 +202,7 @@ export class Customers extends APIResource {
|
|
|
196
202
|
}
|
|
197
203
|
|
|
198
204
|
/**
|
|
199
|
-
* Creates a new customer
|
|
200
|
-
* single operation.
|
|
205
|
+
* Creates a new customer.
|
|
201
206
|
*/
|
|
202
207
|
provision(params: CustomerProvisionParams, options?: RequestOptions): APIPromise<CustomerResponse> {
|
|
203
208
|
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
|
|
@@ -3349,6 +3354,8 @@ export interface CustomerUnarchiveParams {
|
|
|
3349
3354
|
Customers.PaymentMethod = PaymentMethod;
|
|
3350
3355
|
Customers.PromotionalEntitlements = PromotionalEntitlements;
|
|
3351
3356
|
Customers.Integrations = Integrations;
|
|
3357
|
+
Customers.Events = Events;
|
|
3358
|
+
Customers.Usage = Usage;
|
|
3352
3359
|
|
|
3353
3360
|
export declare namespace Customers {
|
|
3354
3361
|
export {
|
|
@@ -3400,4 +3407,8 @@ export declare namespace Customers {
|
|
|
3400
3407
|
type IntegrationLinkParams as IntegrationLinkParams,
|
|
3401
3408
|
type IntegrationUnlinkParams as IntegrationUnlinkParams,
|
|
3402
3409
|
};
|
|
3410
|
+
|
|
3411
|
+
export { Events as Events };
|
|
3412
|
+
|
|
3413
|
+
export { Usage as Usage };
|
|
3403
3414
|
}
|
|
@@ -22,6 +22,7 @@ export {
|
|
|
22
22
|
type CustomerListResponsesMyCursorIDPage,
|
|
23
23
|
type CustomerListResourcesResponsesMyCursorIDPage,
|
|
24
24
|
} from './customers';
|
|
25
|
+
export { Events } from './events';
|
|
25
26
|
export {
|
|
26
27
|
Integrations,
|
|
27
28
|
type IntegrationListResponse,
|
|
@@ -47,3 +48,4 @@ export {
|
|
|
47
48
|
type PromotionalEntitlementRevokeParams,
|
|
48
49
|
type PromotionalEntitlementListResponsesMyCursorIDPage,
|
|
49
50
|
} from './promotional-entitlements';
|
|
51
|
+
export { Usage } from './usage';
|
|
@@ -52,7 +52,9 @@ export class Destinations extends APIResource {
|
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
/**
|
|
55
|
-
*
|
|
55
|
+
* Disconnect a destination: stops the provider sync (deletes the provider
|
|
56
|
+
* destination) and removes it from the DATA_EXPORT integration. Non-destructive —
|
|
57
|
+
* the warehouse table is left intact. Idempotent.
|
|
56
58
|
*/
|
|
57
59
|
delete(
|
|
58
60
|
destinationID: string,
|