casedev 0.41.0 → 0.42.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.
- package/CHANGELOG.md +8 -0
- package/client.d.mts +3 -0
- package/client.d.mts.map +1 -1
- package/client.d.ts +3 -0
- package/client.d.ts.map +1 -1
- package/client.js +3 -0
- package/client.js.map +1 -1
- package/client.mjs +3 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/index.d.mts +1 -0
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/usage/index.d.mts +3 -0
- package/resources/usage/index.d.mts.map +1 -0
- package/resources/usage/index.d.ts +3 -0
- package/resources/usage/index.d.ts.map +1 -0
- package/resources/usage/index.js +9 -0
- package/resources/usage/index.js.map +1 -0
- package/resources/usage/index.mjs +4 -0
- package/resources/usage/index.mjs.map +1 -0
- package/resources/usage/usage.d.mts +10 -0
- package/resources/usage/usage.d.mts.map +1 -0
- package/resources/usage/usage.d.ts +10 -0
- package/resources/usage/usage.d.ts.map +1 -0
- package/resources/usage/usage.js +17 -0
- package/resources/usage/usage.js.map +1 -0
- package/resources/usage/usage.mjs +12 -0
- package/resources/usage/usage.mjs.map +1 -0
- package/resources/usage/v1/index.d.mts +3 -0
- package/resources/usage/v1/index.d.mts.map +1 -0
- package/resources/usage/v1/index.d.ts +3 -0
- package/resources/usage/v1/index.d.ts.map +1 -0
- package/resources/usage/v1/index.js +9 -0
- package/resources/usage/v1/index.js.map +1 -0
- package/resources/usage/v1/index.mjs +4 -0
- package/resources/usage/v1/index.mjs.map +1 -0
- package/resources/usage/v1/subscriptions.d.mts +51 -0
- package/resources/usage/v1/subscriptions.d.mts.map +1 -0
- package/resources/usage/v1/subscriptions.d.ts +51 -0
- package/resources/usage/v1/subscriptions.d.ts.map +1 -0
- package/resources/usage/v1/subscriptions.js +63 -0
- package/resources/usage/v1/subscriptions.js.map +1 -0
- package/resources/usage/v1/subscriptions.mjs +59 -0
- package/resources/usage/v1/subscriptions.mjs.map +1 -0
- package/resources/usage/v1/v1.d.mts +37 -0
- package/resources/usage/v1/v1.d.mts.map +1 -0
- package/resources/usage/v1/v1.d.ts +37 -0
- package/resources/usage/v1/v1.d.ts.map +1 -0
- package/resources/usage/v1/v1.js +34 -0
- package/resources/usage/v1/v1.js.map +1 -0
- package/resources/usage/v1/v1.mjs +29 -0
- package/resources/usage/v1/v1.mjs.map +1 -0
- package/resources/usage/v1.d.mts +2 -0
- package/resources/usage/v1.d.mts.map +1 -0
- package/resources/usage/v1.d.ts +2 -0
- package/resources/usage/v1.d.ts.map +1 -0
- package/resources/usage/v1.js +6 -0
- package/resources/usage/v1.js.map +1 -0
- package/resources/usage/v1.mjs +3 -0
- package/resources/usage/v1.mjs.map +1 -0
- package/resources/usage.d.mts +2 -0
- package/resources/usage.d.mts.map +1 -0
- package/resources/usage.d.ts +2 -0
- package/resources/usage.d.ts.map +1 -0
- package/resources/usage.js +6 -0
- package/resources/usage.js.map +1 -0
- package/resources/usage.mjs +3 -0
- package/resources/usage.mjs.map +1 -0
- package/src/client.ts +5 -0
- package/src/resources/index.ts +1 -0
- package/src/resources/usage/index.ts +4 -0
- package/src/resources/usage/usage.ts +15 -0
- package/src/resources/usage/v1/index.ts +9 -0
- package/src/resources/usage/v1/subscriptions.ts +108 -0
- package/src/resources/usage/v1/v1.ts +64 -0
- package/src/resources/usage/v1.ts +3 -0
- package/src/resources/usage.ts +3 -0
- 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
|
@@ -0,0 +1,9 @@
|
|
|
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.V1 = exports.Subscriptions = void 0;
|
|
5
|
+
var subscriptions_1 = require("./subscriptions.js");
|
|
6
|
+
Object.defineProperty(exports, "Subscriptions", { enumerable: true, get: function () { return subscriptions_1.Subscriptions; } });
|
|
7
|
+
var v1_1 = require("./v1.js");
|
|
8
|
+
Object.defineProperty(exports, "V1", { enumerable: true, get: function () { return v1_1.V1; } });
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/usage/v1/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,oDAKyB;AAJvB,8GAAA,aAAa,OAAA;AAKf,8BAAiD;AAAxC,wFAAA,EAAE,OAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/usage/v1/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,aAAa,GAId;OACM,EAAE,EAAE,EAAyB"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { APIResource } from "../../../core/resource.mjs";
|
|
2
|
+
import { APIPromise } from "../../../core/api-promise.mjs";
|
|
3
|
+
import { RequestOptions } from "../../../internal/request-options.mjs";
|
|
4
|
+
/**
|
|
5
|
+
* Usage reporting and webhook subscriptions
|
|
6
|
+
*/
|
|
7
|
+
export declare class Subscriptions extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Creates a webhook subscription for usage, balance, and billing events.
|
|
10
|
+
*/
|
|
11
|
+
create(body: SubscriptionCreateParams, options?: RequestOptions): APIPromise<void>;
|
|
12
|
+
/**
|
|
13
|
+
* Updates callback URL, event filters, active state, or signing secret.
|
|
14
|
+
*/
|
|
15
|
+
update(subscriptionID: string, body?: SubscriptionUpdateParams | null | undefined, options?: RequestOptions): APIPromise<void>;
|
|
16
|
+
/**
|
|
17
|
+
* Lists webhook subscriptions configured for usage and billing events.
|
|
18
|
+
*/
|
|
19
|
+
list(options?: RequestOptions): APIPromise<void>;
|
|
20
|
+
/**
|
|
21
|
+
* Deactivates a usage webhook subscription.
|
|
22
|
+
*/
|
|
23
|
+
delete(subscriptionID: string, options?: RequestOptions): APIPromise<void>;
|
|
24
|
+
/**
|
|
25
|
+
* Delivers a test event to a single usage webhook subscription using the same
|
|
26
|
+
* payload shape and signing behavior as production delivery.
|
|
27
|
+
*/
|
|
28
|
+
test(subscriptionID: string, body?: SubscriptionTestParams | null | undefined, options?: RequestOptions): APIPromise<void>;
|
|
29
|
+
}
|
|
30
|
+
export interface SubscriptionCreateParams {
|
|
31
|
+
callbackUrl: string;
|
|
32
|
+
eventTypes?: Array<string>;
|
|
33
|
+
signingSecret?: string;
|
|
34
|
+
}
|
|
35
|
+
export interface SubscriptionUpdateParams {
|
|
36
|
+
callbackUrl?: string;
|
|
37
|
+
clearSigningSecret?: boolean;
|
|
38
|
+
eventTypes?: Array<string>;
|
|
39
|
+
isActive?: boolean;
|
|
40
|
+
signingSecret?: string;
|
|
41
|
+
}
|
|
42
|
+
export interface SubscriptionTestParams {
|
|
43
|
+
eventType?: string;
|
|
44
|
+
payload?: {
|
|
45
|
+
[key: string]: unknown;
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
export declare namespace Subscriptions {
|
|
49
|
+
export { type SubscriptionCreateParams as SubscriptionCreateParams, type SubscriptionUpdateParams as SubscriptionUpdateParams, type SubscriptionTestParams as SubscriptionTestParams, };
|
|
50
|
+
}
|
|
51
|
+
//# sourceMappingURL=subscriptions.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subscriptions.d.mts","sourceRoot":"","sources":["../../../src/resources/usage/v1/subscriptions.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,aAAc,SAAQ,WAAW;IAC5C;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,wBAAwB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAQlF;;OAEG;IACH,MAAM,CACJ,cAAc,EAAE,MAAM,EACtB,IAAI,GAAE,wBAAwB,GAAG,IAAI,GAAG,SAAc,EACtD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,IAAI,CAAC;IAQnB;;OAEG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAOhD;;OAEG;IACH,MAAM,CAAC,cAAc,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAO1E;;;OAGG;IACH,IAAI,CACF,cAAc,EAAE,MAAM,EACtB,IAAI,GAAE,sBAAsB,GAAG,IAAI,GAAG,SAAc,EACpD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,IAAI,CAAC;CAOpB;AAED,MAAM,WAAW,wBAAwB;IACvC,WAAW,EAAE,MAAM,CAAC;IAEpB,UAAU,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAE3B,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,wBAAwB;IACvC,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAE7B,UAAU,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAE3B,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,sBAAsB;IACrC,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,OAAO,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAC;CACtC;AAED,MAAM,CAAC,OAAO,WAAW,aAAa,CAAC;IACrC,OAAO,EACL,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { APIResource } from "../../../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../../../core/api-promise.js";
|
|
3
|
+
import { RequestOptions } from "../../../internal/request-options.js";
|
|
4
|
+
/**
|
|
5
|
+
* Usage reporting and webhook subscriptions
|
|
6
|
+
*/
|
|
7
|
+
export declare class Subscriptions extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Creates a webhook subscription for usage, balance, and billing events.
|
|
10
|
+
*/
|
|
11
|
+
create(body: SubscriptionCreateParams, options?: RequestOptions): APIPromise<void>;
|
|
12
|
+
/**
|
|
13
|
+
* Updates callback URL, event filters, active state, or signing secret.
|
|
14
|
+
*/
|
|
15
|
+
update(subscriptionID: string, body?: SubscriptionUpdateParams | null | undefined, options?: RequestOptions): APIPromise<void>;
|
|
16
|
+
/**
|
|
17
|
+
* Lists webhook subscriptions configured for usage and billing events.
|
|
18
|
+
*/
|
|
19
|
+
list(options?: RequestOptions): APIPromise<void>;
|
|
20
|
+
/**
|
|
21
|
+
* Deactivates a usage webhook subscription.
|
|
22
|
+
*/
|
|
23
|
+
delete(subscriptionID: string, options?: RequestOptions): APIPromise<void>;
|
|
24
|
+
/**
|
|
25
|
+
* Delivers a test event to a single usage webhook subscription using the same
|
|
26
|
+
* payload shape and signing behavior as production delivery.
|
|
27
|
+
*/
|
|
28
|
+
test(subscriptionID: string, body?: SubscriptionTestParams | null | undefined, options?: RequestOptions): APIPromise<void>;
|
|
29
|
+
}
|
|
30
|
+
export interface SubscriptionCreateParams {
|
|
31
|
+
callbackUrl: string;
|
|
32
|
+
eventTypes?: Array<string>;
|
|
33
|
+
signingSecret?: string;
|
|
34
|
+
}
|
|
35
|
+
export interface SubscriptionUpdateParams {
|
|
36
|
+
callbackUrl?: string;
|
|
37
|
+
clearSigningSecret?: boolean;
|
|
38
|
+
eventTypes?: Array<string>;
|
|
39
|
+
isActive?: boolean;
|
|
40
|
+
signingSecret?: string;
|
|
41
|
+
}
|
|
42
|
+
export interface SubscriptionTestParams {
|
|
43
|
+
eventType?: string;
|
|
44
|
+
payload?: {
|
|
45
|
+
[key: string]: unknown;
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
export declare namespace Subscriptions {
|
|
49
|
+
export { type SubscriptionCreateParams as SubscriptionCreateParams, type SubscriptionUpdateParams as SubscriptionUpdateParams, type SubscriptionTestParams as SubscriptionTestParams, };
|
|
50
|
+
}
|
|
51
|
+
//# sourceMappingURL=subscriptions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subscriptions.d.ts","sourceRoot":"","sources":["../../../src/resources/usage/v1/subscriptions.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,aAAc,SAAQ,WAAW;IAC5C;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,wBAAwB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAQlF;;OAEG;IACH,MAAM,CACJ,cAAc,EAAE,MAAM,EACtB,IAAI,GAAE,wBAAwB,GAAG,IAAI,GAAG,SAAc,EACtD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,IAAI,CAAC;IAQnB;;OAEG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAOhD;;OAEG;IACH,MAAM,CAAC,cAAc,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAO1E;;;OAGG;IACH,IAAI,CACF,cAAc,EAAE,MAAM,EACtB,IAAI,GAAE,sBAAsB,GAAG,IAAI,GAAG,SAAc,EACpD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,IAAI,CAAC;CAOpB;AAED,MAAM,WAAW,wBAAwB;IACvC,WAAW,EAAE,MAAM,CAAC;IAEpB,UAAU,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAE3B,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,wBAAwB;IACvC,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAE7B,UAAU,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAE3B,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,sBAAsB;IACrC,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,OAAO,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAC;CACtC;AAED,MAAM,CAAC,OAAO,WAAW,aAAa,CAAC;IACrC,OAAO,EACL,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
|
|
@@ -0,0 +1,63 @@
|
|
|
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.Subscriptions = void 0;
|
|
5
|
+
const resource_1 = require("../../../core/resource.js");
|
|
6
|
+
const headers_1 = require("../../../internal/headers.js");
|
|
7
|
+
const path_1 = require("../../../internal/utils/path.js");
|
|
8
|
+
/**
|
|
9
|
+
* Usage reporting and webhook subscriptions
|
|
10
|
+
*/
|
|
11
|
+
class Subscriptions extends resource_1.APIResource {
|
|
12
|
+
/**
|
|
13
|
+
* Creates a webhook subscription for usage, balance, and billing events.
|
|
14
|
+
*/
|
|
15
|
+
create(body, options) {
|
|
16
|
+
return this._client.post('/usage/v1/subscriptions', {
|
|
17
|
+
body,
|
|
18
|
+
...options,
|
|
19
|
+
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Updates callback URL, event filters, active state, or signing secret.
|
|
24
|
+
*/
|
|
25
|
+
update(subscriptionID, body = {}, options) {
|
|
26
|
+
return this._client.patch((0, path_1.path) `/usage/v1/subscriptions/${subscriptionID}`, {
|
|
27
|
+
body,
|
|
28
|
+
...options,
|
|
29
|
+
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Lists webhook subscriptions configured for usage and billing events.
|
|
34
|
+
*/
|
|
35
|
+
list(options) {
|
|
36
|
+
return this._client.get('/usage/v1/subscriptions', {
|
|
37
|
+
...options,
|
|
38
|
+
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Deactivates a usage webhook subscription.
|
|
43
|
+
*/
|
|
44
|
+
delete(subscriptionID, options) {
|
|
45
|
+
return this._client.delete((0, path_1.path) `/usage/v1/subscriptions/${subscriptionID}`, {
|
|
46
|
+
...options,
|
|
47
|
+
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Delivers a test event to a single usage webhook subscription using the same
|
|
52
|
+
* payload shape and signing behavior as production delivery.
|
|
53
|
+
*/
|
|
54
|
+
test(subscriptionID, body = {}, options) {
|
|
55
|
+
return this._client.post((0, path_1.path) `/usage/v1/subscriptions/${subscriptionID}/test`, {
|
|
56
|
+
body,
|
|
57
|
+
...options,
|
|
58
|
+
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
exports.Subscriptions = Subscriptions;
|
|
63
|
+
//# sourceMappingURL=subscriptions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subscriptions.js","sourceRoot":"","sources":["../../../src/resources/usage/v1/subscriptions.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAErD,0DAAyD;AAEzD,0DAAoD;AAEpD;;GAEG;AACH,MAAa,aAAc,SAAQ,sBAAW;IAC5C;;OAEG;IACH,MAAM,CAAC,IAA8B,EAAE,OAAwB;QAC7D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,yBAAyB,EAAE;YAClD,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,cAAsB,EACtB,OAAoD,EAAE,EACtD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,2BAA2B,cAAc,EAAE,EAAE;YACzE,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,yBAAyB,EAAE;YACjD,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,cAAsB,EAAE,OAAwB;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,2BAA2B,cAAc,EAAE,EAAE;YAC1E,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;;OAGG;IACH,IAAI,CACF,cAAsB,EACtB,OAAkD,EAAE,EACpD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,2BAA2B,cAAc,OAAO,EAAE;YAC7E,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF;AA9DD,sCA8DC"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../../core/resource.mjs";
|
|
3
|
+
import { buildHeaders } from "../../../internal/headers.mjs";
|
|
4
|
+
import { path } from "../../../internal/utils/path.mjs";
|
|
5
|
+
/**
|
|
6
|
+
* Usage reporting and webhook subscriptions
|
|
7
|
+
*/
|
|
8
|
+
export class Subscriptions extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Creates a webhook subscription for usage, balance, and billing events.
|
|
11
|
+
*/
|
|
12
|
+
create(body, options) {
|
|
13
|
+
return this._client.post('/usage/v1/subscriptions', {
|
|
14
|
+
body,
|
|
15
|
+
...options,
|
|
16
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Updates callback URL, event filters, active state, or signing secret.
|
|
21
|
+
*/
|
|
22
|
+
update(subscriptionID, body = {}, options) {
|
|
23
|
+
return this._client.patch(path `/usage/v1/subscriptions/${subscriptionID}`, {
|
|
24
|
+
body,
|
|
25
|
+
...options,
|
|
26
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Lists webhook subscriptions configured for usage and billing events.
|
|
31
|
+
*/
|
|
32
|
+
list(options) {
|
|
33
|
+
return this._client.get('/usage/v1/subscriptions', {
|
|
34
|
+
...options,
|
|
35
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Deactivates a usage webhook subscription.
|
|
40
|
+
*/
|
|
41
|
+
delete(subscriptionID, options) {
|
|
42
|
+
return this._client.delete(path `/usage/v1/subscriptions/${subscriptionID}`, {
|
|
43
|
+
...options,
|
|
44
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Delivers a test event to a single usage webhook subscription using the same
|
|
49
|
+
* payload shape and signing behavior as production delivery.
|
|
50
|
+
*/
|
|
51
|
+
test(subscriptionID, body = {}, options) {
|
|
52
|
+
return this._client.post(path `/usage/v1/subscriptions/${subscriptionID}/test`, {
|
|
53
|
+
body,
|
|
54
|
+
...options,
|
|
55
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
//# sourceMappingURL=subscriptions.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subscriptions.mjs","sourceRoot":"","sources":["../../../src/resources/usage/v1/subscriptions.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf;;GAEG;AACH,MAAM,OAAO,aAAc,SAAQ,WAAW;IAC5C;;OAEG;IACH,MAAM,CAAC,IAA8B,EAAE,OAAwB;QAC7D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,yBAAyB,EAAE;YAClD,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,cAAsB,EACtB,OAAoD,EAAE,EACtD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,2BAA2B,cAAc,EAAE,EAAE;YACzE,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,yBAAyB,EAAE;YACjD,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,cAAsB,EAAE,OAAwB;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,2BAA2B,cAAc,EAAE,EAAE;YAC1E,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;;OAGG;IACH,IAAI,CACF,cAAsB,EACtB,OAAkD,EAAE,EACpD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,2BAA2B,cAAc,OAAO,EAAE;YAC7E,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { APIResource } from "../../../core/resource.mjs";
|
|
2
|
+
import * as SubscriptionsAPI from "./subscriptions.mjs";
|
|
3
|
+
import { SubscriptionCreateParams, SubscriptionTestParams, SubscriptionUpdateParams, Subscriptions } from "./subscriptions.mjs";
|
|
4
|
+
import { APIPromise } from "../../../core/api-promise.mjs";
|
|
5
|
+
import { RequestOptions } from "../../../internal/request-options.mjs";
|
|
6
|
+
/**
|
|
7
|
+
* Usage reporting and webhook subscriptions
|
|
8
|
+
*/
|
|
9
|
+
export declare class V1 extends APIResource {
|
|
10
|
+
subscriptions: SubscriptionsAPI.Subscriptions;
|
|
11
|
+
/**
|
|
12
|
+
* Returns customer-facing usage metrics and costs for the requested period.
|
|
13
|
+
* Supports summary totals and daily buckets for timestamped usage sources. Vault
|
|
14
|
+
* storage is intentionally omitted from totals because it is not yet periodized
|
|
15
|
+
* for arbitrary windows.
|
|
16
|
+
*/
|
|
17
|
+
retrieve(query?: V1RetrieveParams | null | undefined, options?: RequestOptions): APIPromise<void>;
|
|
18
|
+
}
|
|
19
|
+
export interface V1RetrieveParams {
|
|
20
|
+
/**
|
|
21
|
+
* Whether to return period totals only or include daily buckets.
|
|
22
|
+
*/
|
|
23
|
+
granularity?: 'summary' | 'daily';
|
|
24
|
+
/**
|
|
25
|
+
* Period end date. Defaults to now.
|
|
26
|
+
*/
|
|
27
|
+
periodEnd?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Period start date. Defaults to the start of the current calendar month.
|
|
30
|
+
*/
|
|
31
|
+
periodStart?: string;
|
|
32
|
+
}
|
|
33
|
+
export declare namespace V1 {
|
|
34
|
+
export { type V1RetrieveParams as V1RetrieveParams };
|
|
35
|
+
export { Subscriptions as Subscriptions, type SubscriptionCreateParams as SubscriptionCreateParams, type SubscriptionUpdateParams as SubscriptionUpdateParams, type SubscriptionTestParams as SubscriptionTestParams, };
|
|
36
|
+
}
|
|
37
|
+
//# sourceMappingURL=v1.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"v1.d.mts","sourceRoot":"","sources":["../../../src/resources/usage/v1/v1.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,gBAAgB;OACrB,EACL,wBAAwB,EACxB,sBAAsB,EACtB,wBAAwB,EACxB,aAAa,EACd;OACM,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAEzB;;GAEG;AACH,qBAAa,EAAG,SAAQ,WAAW;IACjC,aAAa,EAAE,gBAAgB,CAAC,aAAa,CAAoD;IAEjG;;;;;OAKG;IACH,QAAQ,CAAC,KAAK,GAAE,gBAAgB,GAAG,IAAI,GAAG,SAAc,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;CAOtG;AAED,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,WAAW,CAAC,EAAE,SAAS,GAAG,OAAO,CAAC;IAElC;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAID,MAAM,CAAC,OAAO,WAAW,EAAE,CAAC;IAC1B,OAAO,EAAE,KAAK,gBAAgB,IAAI,gBAAgB,EAAE,CAAC;IAErD,OAAO,EACL,aAAa,IAAI,aAAa,EAC9B,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { APIResource } from "../../../core/resource.js";
|
|
2
|
+
import * as SubscriptionsAPI from "./subscriptions.js";
|
|
3
|
+
import { SubscriptionCreateParams, SubscriptionTestParams, SubscriptionUpdateParams, Subscriptions } from "./subscriptions.js";
|
|
4
|
+
import { APIPromise } from "../../../core/api-promise.js";
|
|
5
|
+
import { RequestOptions } from "../../../internal/request-options.js";
|
|
6
|
+
/**
|
|
7
|
+
* Usage reporting and webhook subscriptions
|
|
8
|
+
*/
|
|
9
|
+
export declare class V1 extends APIResource {
|
|
10
|
+
subscriptions: SubscriptionsAPI.Subscriptions;
|
|
11
|
+
/**
|
|
12
|
+
* Returns customer-facing usage metrics and costs for the requested period.
|
|
13
|
+
* Supports summary totals and daily buckets for timestamped usage sources. Vault
|
|
14
|
+
* storage is intentionally omitted from totals because it is not yet periodized
|
|
15
|
+
* for arbitrary windows.
|
|
16
|
+
*/
|
|
17
|
+
retrieve(query?: V1RetrieveParams | null | undefined, options?: RequestOptions): APIPromise<void>;
|
|
18
|
+
}
|
|
19
|
+
export interface V1RetrieveParams {
|
|
20
|
+
/**
|
|
21
|
+
* Whether to return period totals only or include daily buckets.
|
|
22
|
+
*/
|
|
23
|
+
granularity?: 'summary' | 'daily';
|
|
24
|
+
/**
|
|
25
|
+
* Period end date. Defaults to now.
|
|
26
|
+
*/
|
|
27
|
+
periodEnd?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Period start date. Defaults to the start of the current calendar month.
|
|
30
|
+
*/
|
|
31
|
+
periodStart?: string;
|
|
32
|
+
}
|
|
33
|
+
export declare namespace V1 {
|
|
34
|
+
export { type V1RetrieveParams as V1RetrieveParams };
|
|
35
|
+
export { Subscriptions as Subscriptions, type SubscriptionCreateParams as SubscriptionCreateParams, type SubscriptionUpdateParams as SubscriptionUpdateParams, type SubscriptionTestParams as SubscriptionTestParams, };
|
|
36
|
+
}
|
|
37
|
+
//# sourceMappingURL=v1.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"v1.d.ts","sourceRoot":"","sources":["../../../src/resources/usage/v1/v1.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,gBAAgB;OACrB,EACL,wBAAwB,EACxB,sBAAsB,EACtB,wBAAwB,EACxB,aAAa,EACd;OACM,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAEzB;;GAEG;AACH,qBAAa,EAAG,SAAQ,WAAW;IACjC,aAAa,EAAE,gBAAgB,CAAC,aAAa,CAAoD;IAEjG;;;;;OAKG;IACH,QAAQ,CAAC,KAAK,GAAE,gBAAgB,GAAG,IAAI,GAAG,SAAc,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;CAOtG;AAED,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,WAAW,CAAC,EAAE,SAAS,GAAG,OAAO,CAAC;IAElC;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAID,MAAM,CAAC,OAAO,WAAW,EAAE,CAAC;IAC1B,OAAO,EAAE,KAAK,gBAAgB,IAAI,gBAAgB,EAAE,CAAC;IAErD,OAAO,EACL,aAAa,IAAI,aAAa,EAC9B,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
|
|
@@ -0,0 +1,34 @@
|
|
|
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.V1 = void 0;
|
|
5
|
+
const tslib_1 = require("../../../internal/tslib.js");
|
|
6
|
+
const resource_1 = require("../../../core/resource.js");
|
|
7
|
+
const SubscriptionsAPI = tslib_1.__importStar(require("./subscriptions.js"));
|
|
8
|
+
const subscriptions_1 = require("./subscriptions.js");
|
|
9
|
+
const headers_1 = require("../../../internal/headers.js");
|
|
10
|
+
/**
|
|
11
|
+
* Usage reporting and webhook subscriptions
|
|
12
|
+
*/
|
|
13
|
+
class V1 extends resource_1.APIResource {
|
|
14
|
+
constructor() {
|
|
15
|
+
super(...arguments);
|
|
16
|
+
this.subscriptions = new SubscriptionsAPI.Subscriptions(this._client);
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Returns customer-facing usage metrics and costs for the requested period.
|
|
20
|
+
* Supports summary totals and daily buckets for timestamped usage sources. Vault
|
|
21
|
+
* storage is intentionally omitted from totals because it is not yet periodized
|
|
22
|
+
* for arbitrary windows.
|
|
23
|
+
*/
|
|
24
|
+
retrieve(query = {}, options) {
|
|
25
|
+
return this._client.get('/usage/v1', {
|
|
26
|
+
query,
|
|
27
|
+
...options,
|
|
28
|
+
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
exports.V1 = V1;
|
|
33
|
+
V1.Subscriptions = subscriptions_1.Subscriptions;
|
|
34
|
+
//# sourceMappingURL=v1.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"v1.js","sourceRoot":"","sources":["../../../src/resources/usage/v1/v1.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AACrD,6EAAoD;AACpD,sDAKyB;AAEzB,0DAAyD;AAGzD;;GAEG;AACH,MAAa,EAAG,SAAQ,sBAAW;IAAnC;;QACE,kBAAa,GAAmC,IAAI,gBAAgB,CAAC,aAAa,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAenG,CAAC;IAbC;;;;;OAKG;IACH,QAAQ,CAAC,QAA6C,EAAE,EAAE,OAAwB;QAChF,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,WAAW,EAAE;YACnC,KAAK;YACL,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF;AAhBD,gBAgBC;AAmBD,EAAE,CAAC,aAAa,GAAG,6BAAa,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../../core/resource.mjs";
|
|
3
|
+
import * as SubscriptionsAPI from "./subscriptions.mjs";
|
|
4
|
+
import { Subscriptions, } from "./subscriptions.mjs";
|
|
5
|
+
import { buildHeaders } from "../../../internal/headers.mjs";
|
|
6
|
+
/**
|
|
7
|
+
* Usage reporting and webhook subscriptions
|
|
8
|
+
*/
|
|
9
|
+
export class V1 extends APIResource {
|
|
10
|
+
constructor() {
|
|
11
|
+
super(...arguments);
|
|
12
|
+
this.subscriptions = new SubscriptionsAPI.Subscriptions(this._client);
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Returns customer-facing usage metrics and costs for the requested period.
|
|
16
|
+
* Supports summary totals and daily buckets for timestamped usage sources. Vault
|
|
17
|
+
* storage is intentionally omitted from totals because it is not yet periodized
|
|
18
|
+
* for arbitrary windows.
|
|
19
|
+
*/
|
|
20
|
+
retrieve(query = {}, options) {
|
|
21
|
+
return this._client.get('/usage/v1', {
|
|
22
|
+
query,
|
|
23
|
+
...options,
|
|
24
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
V1.Subscriptions = Subscriptions;
|
|
29
|
+
//# sourceMappingURL=v1.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"v1.mjs","sourceRoot":"","sources":["../../../src/resources/usage/v1/v1.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,gBAAgB;OACrB,EAIL,aAAa,GACd;OAEM,EAAE,YAAY,EAAE;AAGvB;;GAEG;AACH,MAAM,OAAO,EAAG,SAAQ,WAAW;IAAnC;;QACE,kBAAa,GAAmC,IAAI,gBAAgB,CAAC,aAAa,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAenG,CAAC;IAbC;;;;;OAKG;IACH,QAAQ,CAAC,QAA6C,EAAE,EAAE,OAAwB;QAChF,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,WAAW,EAAE;YACnC,KAAK;YACL,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF;AAmBD,EAAE,CAAC,aAAa,GAAG,aAAa,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"v1.d.mts","sourceRoot":"","sources":["../../src/resources/usage/v1.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"v1.d.ts","sourceRoot":"","sources":["../../src/resources/usage/v1.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,6 @@
|
|
|
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
|
+
const tslib_1 = require("../../internal/tslib.js");
|
|
5
|
+
tslib_1.__exportStar(require("./v1/index.js"), exports);
|
|
6
|
+
//# sourceMappingURL=v1.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"v1.js","sourceRoot":"","sources":["../../src/resources/usage/v1.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAA2B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"v1.mjs","sourceRoot":"","sources":["../../src/resources/usage/v1.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"usage.d.mts","sourceRoot":"","sources":["../src/resources/usage.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"usage.d.ts","sourceRoot":"","sources":["../src/resources/usage.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,6 @@
|
|
|
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
|
+
const tslib_1 = require("../internal/tslib.js");
|
|
5
|
+
tslib_1.__exportStar(require("./usage/index.js"), exports);
|
|
6
|
+
//# sourceMappingURL=usage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"usage.js","sourceRoot":"","sources":["../src/resources/usage.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,2DAA8B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"usage.mjs","sourceRoot":"","sources":["../src/resources/usage.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
|
package/src/client.ts
CHANGED
|
@@ -44,6 +44,7 @@ import {
|
|
|
44
44
|
} from './resources/skills/skills';
|
|
45
45
|
import { Superdoc } from './resources/superdoc/superdoc';
|
|
46
46
|
import { Translate } from './resources/translate/translate';
|
|
47
|
+
import { Usage } from './resources/usage/usage';
|
|
47
48
|
import {
|
|
48
49
|
Vault,
|
|
49
50
|
VaultConfirmUploadParams,
|
|
@@ -811,6 +812,7 @@ export class Casedev {
|
|
|
811
812
|
search: API.Search = new API.Search(this);
|
|
812
813
|
superdoc: API.Superdoc = new API.Superdoc(this);
|
|
813
814
|
translate: API.Translate = new API.Translate(this);
|
|
815
|
+
usage: API.Usage = new API.Usage(this);
|
|
814
816
|
/**
|
|
815
817
|
* Secure document storage with semantic search and GraphRAG
|
|
816
818
|
*/
|
|
@@ -835,6 +837,7 @@ Casedev.Skills = Skills;
|
|
|
835
837
|
Casedev.Search = Search;
|
|
836
838
|
Casedev.Superdoc = Superdoc;
|
|
837
839
|
Casedev.Translate = Translate;
|
|
840
|
+
Casedev.Usage = Usage;
|
|
838
841
|
Casedev.Vault = Vault;
|
|
839
842
|
Casedev.Voice = Voice;
|
|
840
843
|
|
|
@@ -885,6 +888,8 @@ export declare namespace Casedev {
|
|
|
885
888
|
|
|
886
889
|
export { Translate as Translate };
|
|
887
890
|
|
|
891
|
+
export { Usage as Usage };
|
|
892
|
+
|
|
888
893
|
export {
|
|
889
894
|
Vault as Vault,
|
|
890
895
|
type VaultCreateResponse as VaultCreateResponse,
|
package/src/resources/index.ts
CHANGED
|
@@ -27,6 +27,7 @@ export {
|
|
|
27
27
|
export { Superdoc } from './superdoc/superdoc';
|
|
28
28
|
export { System, type SystemListServicesResponse } from './system';
|
|
29
29
|
export { Translate } from './translate/translate';
|
|
30
|
+
export { Usage } from './usage/usage';
|
|
30
31
|
export {
|
|
31
32
|
Vault,
|
|
32
33
|
type VaultCreateResponse,
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../core/resource';
|
|
4
|
+
import * as V1API from './v1/v1';
|
|
5
|
+
import { V1, V1RetrieveParams } from './v1/v1';
|
|
6
|
+
|
|
7
|
+
export class Usage extends APIResource {
|
|
8
|
+
v1: V1API.V1 = new V1API.V1(this._client);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
Usage.V1 = V1;
|
|
12
|
+
|
|
13
|
+
export declare namespace Usage {
|
|
14
|
+
export { V1 as V1, type V1RetrieveParams as V1RetrieveParams };
|
|
15
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
export {
|
|
4
|
+
Subscriptions,
|
|
5
|
+
type SubscriptionCreateParams,
|
|
6
|
+
type SubscriptionUpdateParams,
|
|
7
|
+
type SubscriptionTestParams,
|
|
8
|
+
} from './subscriptions';
|
|
9
|
+
export { V1, type V1RetrieveParams } from './v1';
|