orb-billing 4.27.0 → 4.29.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 +16 -0
- package/package.json +1 -1
- package/resources/events/events.d.ts +5 -0
- package/resources/events/events.d.ts.map +1 -1
- package/resources/events/events.js +3 -0
- package/resources/events/events.js.map +1 -1
- package/resources/events/events.mjs +3 -0
- package/resources/events/events.mjs.map +1 -1
- package/resources/events/index.d.ts +1 -0
- package/resources/events/index.d.ts.map +1 -1
- package/resources/events/index.js +3 -1
- package/resources/events/index.js.map +1 -1
- package/resources/events/index.mjs +1 -0
- package/resources/events/index.mjs.map +1 -1
- package/resources/events/volume.d.ts +69 -0
- package/resources/events/volume.d.ts.map +1 -0
- package/resources/events/volume.js +18 -0
- package/resources/events/volume.js.map +1 -0
- package/resources/events/volume.mjs +14 -0
- package/resources/events/volume.mjs.map +1 -0
- package/src/resources/events/events.ts +5 -0
- package/src/resources/events/index.ts +1 -0
- package/src/resources/events/volume.ts +90 -0
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 4.29.0 (2024-10-15)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v4.28.0...v4.29.0](https://github.com/orbcorp/orb-node/compare/v4.28.0...v4.29.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** api update ([#365](https://github.com/orbcorp/orb-node/issues/365)) ([117b0a2](https://github.com/orbcorp/orb-node/commit/117b0a22d030d08878043a7bc03b2957b345519b))
|
|
10
|
+
|
|
11
|
+
## 4.28.0 (2024-10-11)
|
|
12
|
+
|
|
13
|
+
Full Changelog: [v4.27.0...v4.28.0](https://github.com/orbcorp/orb-node/compare/v4.27.0...v4.28.0)
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* **api:** api update ([#362](https://github.com/orbcorp/orb-node/issues/362)) ([deaaa1a](https://github.com/orbcorp/orb-node/commit/deaaa1a2ff2c7e3356151b4db434ca9540e7709b))
|
|
18
|
+
|
|
3
19
|
## 4.27.0 (2024-10-10)
|
|
4
20
|
|
|
5
21
|
Full Changelog: [v4.26.0...v4.27.0](https://github.com/orbcorp/orb-node/compare/v4.26.0...v4.27.0)
|
package/package.json
CHANGED
|
@@ -2,8 +2,10 @@ import { APIResource } from "../../resource.js";
|
|
|
2
2
|
import * as Core from "../../core.js";
|
|
3
3
|
import * as EventsAPI from "./events.js";
|
|
4
4
|
import * as BackfillsAPI from "./backfills.js";
|
|
5
|
+
import * as VolumeAPI from "./volume.js";
|
|
5
6
|
export declare class Events extends APIResource {
|
|
6
7
|
backfills: BackfillsAPI.Backfills;
|
|
8
|
+
volume: VolumeAPI.Volume;
|
|
7
9
|
/**
|
|
8
10
|
* This endpoint is used to amend a single usage event with a given `event_id`.
|
|
9
11
|
* `event_id` refers to the `idempotency_key` passed in during ingestion. The event
|
|
@@ -523,5 +525,8 @@ export declare namespace Events {
|
|
|
523
525
|
export import BackfillListResponsesPage = BackfillsAPI.BackfillListResponsesPage;
|
|
524
526
|
export import BackfillCreateParams = BackfillsAPI.BackfillCreateParams;
|
|
525
527
|
export import BackfillListParams = BackfillsAPI.BackfillListParams;
|
|
528
|
+
export import Volume = VolumeAPI.Volume;
|
|
529
|
+
export import EventVolumes = VolumeAPI.EventVolumes;
|
|
530
|
+
export import VolumeListParams = VolumeAPI.VolumeListParams;
|
|
526
531
|
}
|
|
527
532
|
//# sourceMappingURL=events.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/resources/events/events.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,IAAI,MAAM,YAA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exports.Events = void 0;
|
|
28
28
|
const resource_1 = require("../../resource.js");
|
|
29
29
|
const BackfillsAPI = __importStar(require("./backfills.js"));
|
|
30
|
+
const VolumeAPI = __importStar(require("./volume.js"));
|
|
30
31
|
class Events extends resource_1.APIResource {
|
|
31
32
|
constructor() {
|
|
32
33
|
super(...arguments);
|
|
33
34
|
this.backfills = new BackfillsAPI.Backfills(this._client);
|
|
35
|
+
this.volume = new VolumeAPI.Volume(this._client);
|
|
34
36
|
}
|
|
35
37
|
/**
|
|
36
38
|
* This endpoint is used to amend a single usage event with a given `event_id`.
|
|
@@ -360,5 +362,6 @@ exports.Events = Events;
|
|
|
360
362
|
(function (Events) {
|
|
361
363
|
Events.Backfills = BackfillsAPI.Backfills;
|
|
362
364
|
Events.BackfillListResponsesPage = BackfillsAPI.BackfillListResponsesPage;
|
|
365
|
+
Events.Volume = VolumeAPI.Volume;
|
|
363
366
|
})(Events = exports.Events || (exports.Events = {}));
|
|
364
367
|
//# sourceMappingURL=events.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.js","sourceRoot":"","sources":["../../src/resources/events/events.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEtF,gDAA6C;AAG7C,6DAA4C;
|
|
1
|
+
{"version":3,"file":"events.js","sourceRoot":"","sources":["../../src/resources/events/events.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEtF,gDAA6C;AAG7C,6DAA4C;AAC5C,uDAAsC;AAEtC,MAAa,MAAO,SAAQ,sBAAW;IAAvC;;QACE,cAAS,GAA2B,IAAI,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC7E,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IA4UhE,CAAC;IA1UC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AG,YAAY,CAAC,yBAAyB,CAAC;IAGnE,aAAM,GAAG,SAAS,CAAC,MAAM,CAAC;AAG1C,CAAC,EApBgB,MAAM,GAAN,cAAM,KAAN,cAAM,QAoBtB"}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
import { APIResource } from "../../resource.mjs";
|
|
3
3
|
import * as BackfillsAPI from "./backfills.mjs";
|
|
4
|
+
import * as VolumeAPI from "./volume.mjs";
|
|
4
5
|
export class Events extends APIResource {
|
|
5
6
|
constructor() {
|
|
6
7
|
super(...arguments);
|
|
7
8
|
this.backfills = new BackfillsAPI.Backfills(this._client);
|
|
9
|
+
this.volume = new VolumeAPI.Volume(this._client);
|
|
8
10
|
}
|
|
9
11
|
/**
|
|
10
12
|
* This endpoint is used to amend a single usage event with a given `event_id`.
|
|
@@ -333,5 +335,6 @@ export class Events extends APIResource {
|
|
|
333
335
|
(function (Events) {
|
|
334
336
|
Events.Backfills = BackfillsAPI.Backfills;
|
|
335
337
|
Events.BackfillListResponsesPage = BackfillsAPI.BackfillListResponsesPage;
|
|
338
|
+
Events.Volume = VolumeAPI.Volume;
|
|
336
339
|
})(Events || (Events = {}));
|
|
337
340
|
//# sourceMappingURL=events.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.mjs","sourceRoot":"","sources":["../../src/resources/events/events.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,KAAK,YAAY;
|
|
1
|
+
{"version":3,"file":"events.mjs","sourceRoot":"","sources":["../../src/resources/events/events.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,KAAK,YAAY;OACjB,KAAK,SAAS;AAErB,MAAM,OAAO,MAAO,SAAQ,WAAW;IAAvC;;QACE,cAAS,GAA2B,IAAI,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,OAA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EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnE,CAAC;CACF;AA8ND,WAAiB,MAAM;IAQP,gBAAS,GAAG,YAAY,CAAC,SAAS,CAAC;IAMnC,gCAAyB,GAAG,YAAY,CAAC,yBAAyB,CAAC;IAGnE,aAAM,GAAG,SAAS,CAAC,MAAM,CAAC;AAG1C,CAAC,EApBgB,MAAM,KAAN,MAAM,QAoBtB"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export { BackfillCreateResponse, BackfillListResponse, BackfillCloseResponse, BackfillFetchResponse, BackfillRevertResponse, BackfillCreateParams, BackfillListParams, BackfillListResponsesPage, Backfills, } from "./backfills.js";
|
|
2
2
|
export { EventUpdateResponse, EventDeprecateResponse, EventIngestResponse, EventSearchResponse, EventUpdateParams, EventIngestParams, EventSearchParams, Events, } from "./events.js";
|
|
3
|
+
export { EventVolumes, VolumeListParams, Volume } from "./volume.js";
|
|
3
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/events/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,sBAAsB,EACtB,oBAAoB,EACpB,qBAAqB,EACrB,qBAAqB,EACrB,sBAAsB,EACtB,oBAAoB,EACpB,kBAAkB,EAClB,yBAAyB,EACzB,SAAS,GACV,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,mBAAmB,EACnB,sBAAsB,EACtB,mBAAmB,EACnB,mBAAmB,EACnB,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,EACjB,MAAM,GACP,MAAM,UAAU,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/events/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,sBAAsB,EACtB,oBAAoB,EACpB,qBAAqB,EACrB,qBAAqB,EACrB,sBAAsB,EACtB,oBAAoB,EACpB,kBAAkB,EAClB,yBAAyB,EACzB,SAAS,GACV,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,mBAAmB,EACnB,sBAAsB,EACtB,mBAAmB,EACnB,mBAAmB,EACnB,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,EACjB,MAAM,GACP,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC"}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.Events = exports.Backfills = exports.BackfillListResponsesPage = void 0;
|
|
4
|
+
exports.Volume = exports.Events = exports.Backfills = exports.BackfillListResponsesPage = void 0;
|
|
5
5
|
var backfills_1 = require("./backfills.js");
|
|
6
6
|
Object.defineProperty(exports, "BackfillListResponsesPage", { enumerable: true, get: function () { return backfills_1.BackfillListResponsesPage; } });
|
|
7
7
|
Object.defineProperty(exports, "Backfills", { enumerable: true, get: function () { return backfills_1.Backfills; } });
|
|
8
8
|
var events_1 = require("./events.js");
|
|
9
9
|
Object.defineProperty(exports, "Events", { enumerable: true, get: function () { return events_1.Events; } });
|
|
10
|
+
var volume_1 = require("./volume.js");
|
|
11
|
+
Object.defineProperty(exports, "Volume", { enumerable: true, get: function () { return volume_1.Volume; } });
|
|
10
12
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/events/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,4CAUqB;AAFnB,sHAAA,yBAAyB,OAAA;AACzB,sGAAA,SAAS,OAAA;AAEX,sCASkB;AADhB,gGAAA,MAAM,OAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/events/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,4CAUqB;AAFnB,sHAAA,yBAAyB,OAAA;AACzB,sGAAA,SAAS,OAAA;AAEX,sCASkB;AADhB,gGAAA,MAAM,OAAA;AAER,sCAAkE;AAAzB,gGAAA,MAAM,OAAA"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
export { BackfillListResponsesPage, Backfills, } from "./backfills.mjs";
|
|
3
3
|
export { Events, } from "./events.mjs";
|
|
4
|
+
export { Volume } from "./volume.mjs";
|
|
4
5
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/events/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAQL,yBAAyB,EACzB,SAAS,GACV;OACM,EAQL,MAAM,GACP"}
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/events/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAQL,yBAAyB,EACzB,SAAS,GACV;OACM,EAQL,MAAM,GACP;OACM,EAAkC,MAAM,EAAE"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { APIResource } from "../../resource.js";
|
|
2
|
+
import * as Core from "../../core.js";
|
|
3
|
+
import * as VolumeAPI from "./volume.js";
|
|
4
|
+
export declare class Volume extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* This endpoint returns the event volume for an account in a
|
|
7
|
+
* [paginated list format](../reference/pagination).
|
|
8
|
+
*
|
|
9
|
+
* The event volume is aggregated by the hour and the
|
|
10
|
+
* [timestamp](../reference/ingest#determining-event-timestamp) field is used to
|
|
11
|
+
* determine which hour an event is associated with. Note, this means that
|
|
12
|
+
* late-arriving events increment the volume count for the hour window the
|
|
13
|
+
* timestamp is in, not the latest hour window.
|
|
14
|
+
*
|
|
15
|
+
* Each item in the response contains the count of events aggregated by the hour
|
|
16
|
+
* where the start and end time are hour-aligned and in UTC. When a specific
|
|
17
|
+
* timestamp is passed in for either start or end time, the response includes the
|
|
18
|
+
* hours the timestamp falls in.
|
|
19
|
+
*/
|
|
20
|
+
list(query?: VolumeListParams, options?: Core.RequestOptions): Core.APIPromise<EventVolumes>;
|
|
21
|
+
list(options?: Core.RequestOptions): Core.APIPromise<EventVolumes>;
|
|
22
|
+
}
|
|
23
|
+
export interface EventVolumes {
|
|
24
|
+
data: Array<EventVolumes.Data>;
|
|
25
|
+
}
|
|
26
|
+
export declare namespace EventVolumes {
|
|
27
|
+
/**
|
|
28
|
+
* An EventVolume contains the event volume ingested in an hourly window. The
|
|
29
|
+
* timestamp used for the aggregation is the `timestamp` datetime field on events.
|
|
30
|
+
*/
|
|
31
|
+
interface Data {
|
|
32
|
+
/**
|
|
33
|
+
* The number of events ingested with a timestamp between the timeframe
|
|
34
|
+
*/
|
|
35
|
+
count: number;
|
|
36
|
+
timeframe_end: string;
|
|
37
|
+
timeframe_start: string;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
export interface VolumeListParams {
|
|
41
|
+
/**
|
|
42
|
+
* Cursor for pagination. This can be populated by the `next_cursor` value returned
|
|
43
|
+
* from the initial request.
|
|
44
|
+
*/
|
|
45
|
+
cursor?: string | null;
|
|
46
|
+
/**
|
|
47
|
+
* The number of items to fetch. Defaults to 20.
|
|
48
|
+
*/
|
|
49
|
+
limit?: number;
|
|
50
|
+
/**
|
|
51
|
+
* The end of the timeframe, exclusive, in which to return event volume. If not
|
|
52
|
+
* specified, the current time is used. All datetime values are converted to UTC
|
|
53
|
+
* time.If the specified time isn't hour-aligned, the response includes the event
|
|
54
|
+
* volumecount for the hour the time falls in.
|
|
55
|
+
*/
|
|
56
|
+
timeframe_end?: string;
|
|
57
|
+
/**
|
|
58
|
+
* The start of the timeframe, inclusive, in which to return event volume. All
|
|
59
|
+
* datetime values are converted to UTC time. If the specified time isn't
|
|
60
|
+
* hour-aligned, the response includes the event volume count for the hour the time
|
|
61
|
+
* falls in.
|
|
62
|
+
*/
|
|
63
|
+
timeframe_start?: string;
|
|
64
|
+
}
|
|
65
|
+
export declare namespace Volume {
|
|
66
|
+
export import EventVolumes = VolumeAPI.EventVolumes;
|
|
67
|
+
export import VolumeListParams = VolumeAPI.VolumeListParams;
|
|
68
|
+
}
|
|
69
|
+
//# sourceMappingURL=volume.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"volume.d.ts","sourceRoot":"","sources":["../../src/resources/events/volume.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AACnC,OAAO,KAAK,SAAS,MAAM,UAAU,CAAC;AAEtC,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;;;;;;;;;;;;OAcG;IACH,IAAI,CAAC,KAAK,CAAC,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC;IAC5F,IAAI,CAAC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC;CAUnE;AAED,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,KAAK,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;CAChC;AAED,yBAAiB,YAAY,CAAC;IAC5B;;;OAGG;IACH,UAAiB,IAAI;QACnB;;WAEG;QACH,KAAK,EAAE,MAAM,CAAC;QAEd,aAAa,EAAE,MAAM,CAAC;QAEtB,eAAe,EAAE,MAAM,CAAC;KACzB;CACF;AAED,MAAM,WAAW,gBAAgB;IAC/B;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEvB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;;;OAKG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;;;;OAKG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,yBAAiB,MAAM,CAAC;IACtB,MAAM,QAAQ,YAAY,GAAG,SAAS,CAAC,YAAY,CAAC;IACpD,MAAM,QAAQ,gBAAgB,GAAG,SAAS,CAAC,gBAAgB,CAAC;CAC7D"}
|
|
@@ -0,0 +1,18 @@
|
|
|
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.Volume = void 0;
|
|
5
|
+
const resource_1 = require("../../resource.js");
|
|
6
|
+
const core_1 = require("../../core.js");
|
|
7
|
+
class Volume extends resource_1.APIResource {
|
|
8
|
+
list(query = {}, options) {
|
|
9
|
+
if ((0, core_1.isRequestOptions)(query)) {
|
|
10
|
+
return this.list({}, query);
|
|
11
|
+
}
|
|
12
|
+
return this._client.get('/events/volume', { query, ...options });
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
exports.Volume = Volume;
|
|
16
|
+
(function (Volume) {
|
|
17
|
+
})(Volume = exports.Volume || (exports.Volume = {}));
|
|
18
|
+
//# sourceMappingURL=volume.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"volume.js","sourceRoot":"","sources":["../../src/resources/events/volume.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAA6C;AAC7C,wCAA8C;AAI9C,MAAa,MAAO,SAAQ,sBAAW;IAkBrC,IAAI,CACF,QAAgD,EAAE,EAClD,OAA6B;QAE7B,IAAI,IAAA,uBAAgB,EAAC,KAAK,CAAC,EAAE;YAC3B,OAAO,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;SAC7B;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,gBAAgB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnE,CAAC;CACF;AA3BD,wBA2BC;AAoDD,WAAiB,MAAM;AAGvB,CAAC,EAHgB,MAAM,GAAN,cAAM,KAAN,cAAM,QAGtB"}
|
|
@@ -0,0 +1,14 @@
|
|
|
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 Volume extends APIResource {
|
|
5
|
+
list(query = {}, options) {
|
|
6
|
+
if (isRequestOptions(query)) {
|
|
7
|
+
return this.list({}, query);
|
|
8
|
+
}
|
|
9
|
+
return this._client.get('/events/volume', { query, ...options });
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
(function (Volume) {
|
|
13
|
+
})(Volume || (Volume = {}));
|
|
14
|
+
//# sourceMappingURL=volume.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"volume.mjs","sourceRoot":"","sources":["../../src/resources/events/volume.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,EAAE,gBAAgB,EAAE;AAI3B,MAAM,OAAO,MAAO,SAAQ,WAAW;IAkBrC,IAAI,CACF,QAAgD,EAAE,EAClD,OAA6B;QAE7B,IAAI,gBAAgB,CAAC,KAAK,CAAC,EAAE;YAC3B,OAAO,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;SAC7B;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,gBAAgB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnE,CAAC;CACF;AAoDD,WAAiB,MAAM;AAGvB,CAAC,EAHgB,MAAM,KAAN,MAAM,QAGtB"}
|
|
@@ -4,9 +4,11 @@ import { APIResource } from '../../resource';
|
|
|
4
4
|
import * as Core from '../../core';
|
|
5
5
|
import * as EventsAPI from './events';
|
|
6
6
|
import * as BackfillsAPI from './backfills';
|
|
7
|
+
import * as VolumeAPI from './volume';
|
|
7
8
|
|
|
8
9
|
export class Events extends APIResource {
|
|
9
10
|
backfills: BackfillsAPI.Backfills = new BackfillsAPI.Backfills(this._client);
|
|
11
|
+
volume: VolumeAPI.Volume = new VolumeAPI.Volume(this._client);
|
|
10
12
|
|
|
11
13
|
/**
|
|
12
14
|
* This endpoint is used to amend a single usage event with a given `event_id`.
|
|
@@ -577,4 +579,7 @@ export namespace Events {
|
|
|
577
579
|
export import BackfillListResponsesPage = BackfillsAPI.BackfillListResponsesPage;
|
|
578
580
|
export import BackfillCreateParams = BackfillsAPI.BackfillCreateParams;
|
|
579
581
|
export import BackfillListParams = BackfillsAPI.BackfillListParams;
|
|
582
|
+
export import Volume = VolumeAPI.Volume;
|
|
583
|
+
export import EventVolumes = VolumeAPI.EventVolumes;
|
|
584
|
+
export import VolumeListParams = VolumeAPI.VolumeListParams;
|
|
580
585
|
}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../resource';
|
|
4
|
+
import { isRequestOptions } from '../../core';
|
|
5
|
+
import * as Core from '../../core';
|
|
6
|
+
import * as VolumeAPI from './volume';
|
|
7
|
+
|
|
8
|
+
export class Volume extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* This endpoint returns the event volume for an account in a
|
|
11
|
+
* [paginated list format](../reference/pagination).
|
|
12
|
+
*
|
|
13
|
+
* The event volume is aggregated by the hour and the
|
|
14
|
+
* [timestamp](../reference/ingest#determining-event-timestamp) field is used to
|
|
15
|
+
* determine which hour an event is associated with. Note, this means that
|
|
16
|
+
* late-arriving events increment the volume count for the hour window the
|
|
17
|
+
* timestamp is in, not the latest hour window.
|
|
18
|
+
*
|
|
19
|
+
* Each item in the response contains the count of events aggregated by the hour
|
|
20
|
+
* where the start and end time are hour-aligned and in UTC. When a specific
|
|
21
|
+
* timestamp is passed in for either start or end time, the response includes the
|
|
22
|
+
* hours the timestamp falls in.
|
|
23
|
+
*/
|
|
24
|
+
list(query?: VolumeListParams, options?: Core.RequestOptions): Core.APIPromise<EventVolumes>;
|
|
25
|
+
list(options?: Core.RequestOptions): Core.APIPromise<EventVolumes>;
|
|
26
|
+
list(
|
|
27
|
+
query: VolumeListParams | Core.RequestOptions = {},
|
|
28
|
+
options?: Core.RequestOptions,
|
|
29
|
+
): Core.APIPromise<EventVolumes> {
|
|
30
|
+
if (isRequestOptions(query)) {
|
|
31
|
+
return this.list({}, query);
|
|
32
|
+
}
|
|
33
|
+
return this._client.get('/events/volume', { query, ...options });
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export interface EventVolumes {
|
|
38
|
+
data: Array<EventVolumes.Data>;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export namespace EventVolumes {
|
|
42
|
+
/**
|
|
43
|
+
* An EventVolume contains the event volume ingested in an hourly window. The
|
|
44
|
+
* timestamp used for the aggregation is the `timestamp` datetime field on events.
|
|
45
|
+
*/
|
|
46
|
+
export interface Data {
|
|
47
|
+
/**
|
|
48
|
+
* The number of events ingested with a timestamp between the timeframe
|
|
49
|
+
*/
|
|
50
|
+
count: number;
|
|
51
|
+
|
|
52
|
+
timeframe_end: string;
|
|
53
|
+
|
|
54
|
+
timeframe_start: string;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export interface VolumeListParams {
|
|
59
|
+
/**
|
|
60
|
+
* Cursor for pagination. This can be populated by the `next_cursor` value returned
|
|
61
|
+
* from the initial request.
|
|
62
|
+
*/
|
|
63
|
+
cursor?: string | null;
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* The number of items to fetch. Defaults to 20.
|
|
67
|
+
*/
|
|
68
|
+
limit?: number;
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* The end of the timeframe, exclusive, in which to return event volume. If not
|
|
72
|
+
* specified, the current time is used. All datetime values are converted to UTC
|
|
73
|
+
* time.If the specified time isn't hour-aligned, the response includes the event
|
|
74
|
+
* volumecount for the hour the time falls in.
|
|
75
|
+
*/
|
|
76
|
+
timeframe_end?: string;
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* The start of the timeframe, inclusive, in which to return event volume. All
|
|
80
|
+
* datetime values are converted to UTC time. If the specified time isn't
|
|
81
|
+
* hour-aligned, the response includes the event volume count for the hour the time
|
|
82
|
+
* falls in.
|
|
83
|
+
*/
|
|
84
|
+
timeframe_start?: string;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export namespace Volume {
|
|
88
|
+
export import EventVolumes = VolumeAPI.EventVolumes;
|
|
89
|
+
export import VolumeListParams = VolumeAPI.VolumeListParams;
|
|
90
|
+
}
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '4.
|
|
1
|
+
export const VERSION = '4.29.0'; // x-release-please-version
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "4.
|
|
1
|
+
export declare const VERSION = "4.29.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '4.
|
|
1
|
+
export const VERSION = '4.29.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|