@stigg/typescript 0.1.0-beta.17 → 0.1.0-beta.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/package.json +1 -1
  3. package/resources/v1/events/data-export/data-export.d.mts +126 -0
  4. package/resources/v1/events/data-export/data-export.d.mts.map +1 -0
  5. package/resources/v1/events/data-export/data-export.d.ts +126 -0
  6. package/resources/v1/events/data-export/data-export.d.ts.map +1 -0
  7. package/resources/v1/events/data-export/data-export.js +45 -0
  8. package/resources/v1/events/data-export/data-export.js.map +1 -0
  9. package/resources/v1/events/data-export/data-export.mjs +40 -0
  10. package/resources/v1/events/data-export/data-export.mjs.map +1 -0
  11. package/resources/v1/events/data-export/destinations.d.mts +124 -0
  12. package/resources/v1/events/data-export/destinations.d.mts.map +1 -0
  13. package/resources/v1/events/data-export/destinations.d.ts +124 -0
  14. package/resources/v1/events/data-export/destinations.d.ts.map +1 -0
  15. package/resources/v1/events/data-export/destinations.js +41 -0
  16. package/resources/v1/events/data-export/destinations.js.map +1 -0
  17. package/resources/v1/events/data-export/destinations.mjs +37 -0
  18. package/resources/v1/events/data-export/destinations.mjs.map +1 -0
  19. package/resources/v1/events/data-export/index.d.mts +3 -0
  20. package/resources/v1/events/data-export/index.d.mts.map +1 -0
  21. package/resources/v1/events/data-export/index.d.ts +3 -0
  22. package/resources/v1/events/data-export/index.d.ts.map +1 -0
  23. package/resources/v1/events/data-export/index.js +9 -0
  24. package/resources/v1/events/data-export/index.js.map +1 -0
  25. package/resources/v1/events/data-export/index.mjs +4 -0
  26. package/resources/v1/events/data-export/index.mjs.map +1 -0
  27. package/resources/v1/events/data-export.d.mts +2 -0
  28. package/resources/v1/events/data-export.d.mts.map +1 -0
  29. package/resources/v1/events/data-export.d.ts +2 -0
  30. package/resources/v1/events/data-export.d.ts.map +1 -0
  31. package/resources/v1/events/data-export.js +6 -0
  32. package/resources/v1/events/data-export.js.map +1 -0
  33. package/resources/v1/events/data-export.mjs +3 -0
  34. package/resources/v1/events/data-export.mjs.map +1 -0
  35. package/resources/v1/events/events.d.mts +4 -0
  36. package/resources/v1/events/events.d.mts.map +1 -1
  37. package/resources/v1/events/events.d.ts +4 -0
  38. package/resources/v1/events/events.d.ts.map +1 -1
  39. package/resources/v1/events/events.js +4 -0
  40. package/resources/v1/events/events.js.map +1 -1
  41. package/resources/v1/events/events.mjs +4 -0
  42. package/resources/v1/events/events.mjs.map +1 -1
  43. package/resources/v1/events/index.d.mts +1 -0
  44. package/resources/v1/events/index.d.mts.map +1 -1
  45. package/resources/v1/events/index.d.ts +1 -0
  46. package/resources/v1/events/index.d.ts.map +1 -1
  47. package/resources/v1/events/index.js +3 -1
  48. package/resources/v1/events/index.js.map +1 -1
  49. package/resources/v1/events/index.mjs +1 -0
  50. package/resources/v1/events/index.mjs.map +1 -1
  51. package/resources/v1/subscriptions/subscriptions.d.mts +8 -0
  52. package/resources/v1/subscriptions/subscriptions.d.mts.map +1 -1
  53. package/resources/v1/subscriptions/subscriptions.d.ts +8 -0
  54. package/resources/v1/subscriptions/subscriptions.d.ts.map +1 -1
  55. package/resources/v1/subscriptions/subscriptions.js.map +1 -1
  56. package/resources/v1/subscriptions/subscriptions.mjs.map +1 -1
  57. package/src/resources/v1/events/data-export/data-export.ts +170 -0
  58. package/src/resources/v1/events/data-export/destinations.ts +149 -0
  59. package/src/resources/v1/events/data-export/index.ts +15 -0
  60. package/src/resources/v1/events/data-export.ts +3 -0
  61. package/src/resources/v1/events/events.ts +18 -0
  62. package/src/resources/v1/events/index.ts +7 -0
  63. package/src/resources/v1/subscriptions/subscriptions.ts +10 -0
  64. package/src/version.ts +1 -1
  65. package/version.d.mts +1 -1
  66. package/version.d.ts +1 -1
  67. package/version.js +1 -1
  68. package/version.mjs +1 -1
@@ -0,0 +1,41 @@
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.Destinations = void 0;
5
+ const resource_1 = require("../../../../core/resource.js");
6
+ const path_1 = require("../../../../internal/utils/path.js");
7
+ class Destinations extends resource_1.APIResource {
8
+ /**
9
+ * Register a destination on the environment's DATA_EXPORT integration.
10
+ * Lazy-creates the integration row + provider recipient on first call. Idempotent
11
+ * on destinationId.
12
+ *
13
+ * @example
14
+ * ```ts
15
+ * const destination =
16
+ * await client.v1.events.dataExport.destinations.create({
17
+ * destinationId: 'x',
18
+ * destinationType: 'x',
19
+ * });
20
+ * ```
21
+ */
22
+ create(body, options) {
23
+ return this._client.post('/api/v1/data-export/destinations', { body, ...options });
24
+ }
25
+ /**
26
+ * Remove a destination from the DATA_EXPORT integration metadata. Idempotent.
27
+ *
28
+ * @example
29
+ * ```ts
30
+ * const destination =
31
+ * await client.v1.events.dataExport.destinations.delete(
32
+ * 'x',
33
+ * );
34
+ * ```
35
+ */
36
+ delete(destinationID, options) {
37
+ return this._client.delete((0, path_1.path) `/api/v1/data-export/destinations/${destinationID}`, options);
38
+ }
39
+ }
40
+ exports.Destinations = Destinations;
41
+ //# sourceMappingURL=destinations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"destinations.js","sourceRoot":"","sources":["../../../../src/resources/v1/events/data-export/destinations.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,2DAAwD;AAGxD,6DAAuD;AAEvD,MAAa,YAAa,SAAQ,sBAAW;IAC3C;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,IAA6B,EAAE,OAAwB;QAC5D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,kCAAkC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrF,CAAC;IAED;;;;;;;;;;OAUG;IACH,MAAM,CAAC,aAAqB,EAAE,OAAwB;QACpD,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,oCAAoC,aAAa,EAAE,EAAE,OAAO,CAAC,CAAC;IAC/F,CAAC;CACF;AAjCD,oCAiCC"}
@@ -0,0 +1,37 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../../../../core/resource.mjs";
3
+ import { path } from "../../../../internal/utils/path.mjs";
4
+ export class Destinations extends APIResource {
5
+ /**
6
+ * Register a destination on the environment's DATA_EXPORT integration.
7
+ * Lazy-creates the integration row + provider recipient on first call. Idempotent
8
+ * on destinationId.
9
+ *
10
+ * @example
11
+ * ```ts
12
+ * const destination =
13
+ * await client.v1.events.dataExport.destinations.create({
14
+ * destinationId: 'x',
15
+ * destinationType: 'x',
16
+ * });
17
+ * ```
18
+ */
19
+ create(body, options) {
20
+ return this._client.post('/api/v1/data-export/destinations', { body, ...options });
21
+ }
22
+ /**
23
+ * Remove a destination from the DATA_EXPORT integration metadata. Idempotent.
24
+ *
25
+ * @example
26
+ * ```ts
27
+ * const destination =
28
+ * await client.v1.events.dataExport.destinations.delete(
29
+ * 'x',
30
+ * );
31
+ * ```
32
+ */
33
+ delete(destinationID, options) {
34
+ return this._client.delete(path `/api/v1/data-export/destinations/${destinationID}`, options);
35
+ }
36
+ }
37
+ //# sourceMappingURL=destinations.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"destinations.mjs","sourceRoot":"","sources":["../../../../src/resources/v1/events/data-export/destinations.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,sCAAkC;AAGxD,OAAO,EAAE,IAAI,EAAE,4CAAwC;AAEvD,MAAM,OAAO,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,IAA6B,EAAE,OAAwB;QAC5D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,kCAAkC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrF,CAAC;IAED;;;;;;;;;;OAUG;IACH,MAAM,CAAC,aAAqB,EAAE,OAAwB;QACpD,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,oCAAoC,aAAa,EAAE,EAAE,OAAO,CAAC,CAAC;IAC/F,CAAC;CACF"}
@@ -0,0 +1,3 @@
1
+ export { DataExport, type DataExportMintScopedTokenResponse, type DataExportTriggerSyncResponse, type DataExportMintScopedTokenParams, type DataExportTriggerSyncParams, } from "./data-export.mjs";
2
+ export { Destinations, type DestinationCreateResponse, type DestinationDeleteResponse, type DestinationCreateParams, } from "./destinations.mjs";
3
+ //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../../src/resources/v1/events/data-export/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,UAAU,EACV,KAAK,iCAAiC,EACtC,KAAK,6BAA6B,EAClC,KAAK,+BAA+B,EACpC,KAAK,2BAA2B,GACjC,0BAAsB;AACvB,OAAO,EACL,YAAY,EACZ,KAAK,yBAAyB,EAC9B,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,GAC7B,2BAAuB"}
@@ -0,0 +1,3 @@
1
+ export { DataExport, type DataExportMintScopedTokenResponse, type DataExportTriggerSyncResponse, type DataExportMintScopedTokenParams, type DataExportTriggerSyncParams, } from "./data-export.js";
2
+ export { Destinations, type DestinationCreateResponse, type DestinationDeleteResponse, type DestinationCreateParams, } from "./destinations.js";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/resources/v1/events/data-export/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,UAAU,EACV,KAAK,iCAAiC,EACtC,KAAK,6BAA6B,EAClC,KAAK,+BAA+B,EACpC,KAAK,2BAA2B,GACjC,yBAAsB;AACvB,OAAO,EACL,YAAY,EACZ,KAAK,yBAAyB,EAC9B,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,GAC7B,0BAAuB"}
@@ -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.Destinations = exports.DataExport = void 0;
5
+ var data_export_1 = require("./data-export.js");
6
+ Object.defineProperty(exports, "DataExport", { enumerable: true, get: function () { return data_export_1.DataExport; } });
7
+ var destinations_1 = require("./destinations.js");
8
+ Object.defineProperty(exports, "Destinations", { enumerable: true, get: function () { return destinations_1.Destinations; } });
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/resources/v1/events/data-export/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAMuB;AALrB,yGAAA,UAAU,OAAA;AAMZ,kDAKwB;AAJtB,4GAAA,YAAY,OAAA"}
@@ -0,0 +1,4 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ export { DataExport, } from "./data-export.mjs";
3
+ export { Destinations, } from "./destinations.mjs";
4
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../../src/resources/v1/events/data-export/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EACL,UAAU,GAKX,0BAAsB;AACvB,OAAO,EACL,YAAY,GAIb,2BAAuB"}
@@ -0,0 +1,2 @@
1
+ export * from "./data-export/index.mjs";
2
+ //# sourceMappingURL=data-export.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data-export.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/events/data-export.ts"],"names":[],"mappings":"AAEA,wCAAoC"}
@@ -0,0 +1,2 @@
1
+ export * from "./data-export/index.js";
2
+ //# sourceMappingURL=data-export.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data-export.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/events/data-export.ts"],"names":[],"mappings":"AAEA,uCAAoC"}
@@ -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("./data-export/index.js"), exports);
6
+ //# sourceMappingURL=data-export.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data-export.js","sourceRoot":"","sources":["../../../src/resources/v1/events/data-export.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,iEAAoC"}
@@ -0,0 +1,3 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ export * from "./data-export/index.mjs";
3
+ //# sourceMappingURL=data-export.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data-export.mjs","sourceRoot":"","sources":["../../../src/resources/v1/events/data-export.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,wCAAoC"}
@@ -1,6 +1,8 @@
1
1
  import { APIResource } from "../../../core/resource.mjs";
2
2
  import * as BetaAPI from "./beta/beta.mjs";
3
3
  import { Beta } from "./beta/beta.mjs";
4
+ import * as DataExportAPI from "./data-export/data-export.mjs";
5
+ import { DataExport, DataExportMintScopedTokenParams, DataExportMintScopedTokenResponse, DataExportTriggerSyncParams, DataExportTriggerSyncResponse } from "./data-export/data-export.mjs";
4
6
  import { APIPromise } from "../../../core/api-promise.mjs";
5
7
  import { RequestOptions } from "../../../internal/request-options.mjs";
6
8
  /**
@@ -8,6 +10,7 @@ import { RequestOptions } from "../../../internal/request-options.mjs";
8
10
  */
9
11
  export declare class Events extends APIResource {
10
12
  beta: BetaAPI.Beta;
13
+ dataExport: DataExportAPI.DataExport;
11
14
  /**
12
15
  * Reports raw usage events for event-based metering. Events are ingested
13
16
  * asynchronously and aggregated into usage totals.
@@ -79,5 +82,6 @@ export declare namespace EventReportParams {
79
82
  export declare namespace Events {
80
83
  export { type EventReportResponse as EventReportResponse, type EventReportParams as EventReportParams };
81
84
  export { Beta as Beta };
85
+ export { DataExport as DataExport, type DataExportMintScopedTokenResponse as DataExportMintScopedTokenResponse, type DataExportTriggerSyncResponse as DataExportTriggerSyncResponse, type DataExportMintScopedTokenParams as DataExportMintScopedTokenParams, type DataExportTriggerSyncParams as DataExportTriggerSyncParams, };
82
86
  }
83
87
  //# sourceMappingURL=events.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"events.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/events/events.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,mCAA+B;AACrD,OAAO,KAAK,OAAO,wBAAoB;AACvC,OAAO,EAAE,IAAI,EAAE,wBAAoB;AACnC,OAAO,EAAE,UAAU,EAAE,sCAAkC;AACvD,OAAO,EAAE,cAAc,EAAE,8CAA0C;AAEnE;;GAEG;AACH,qBAAa,MAAO,SAAQ,WAAW;IACrC,IAAI,EAAE,OAAO,CAAC,IAAI,CAAkC;IAEpD;;;;;;;;;;;;;;;;OAgBG;IACH,MAAM,CAAC,IAAI,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,mBAAmB,CAAC;CAG3F;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC;;;OAGG;IACH,IAAI,EAAE,OAAO,CAAC;CACf;AAED,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,MAAM,EAAE,KAAK,CAAC,iBAAiB,CAAC,KAAK,CAAC,CAAC;CACxC;AAED,yBAAiB,iBAAiB,CAAC;IACjC;;OAEG;IACH,UAAiB,KAAK;QACpB;;WAEG;QACH,UAAU,EAAE,MAAM,CAAC;QAEnB;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;QAElB;;WAEG;QACH,cAAc,EAAE,MAAM,CAAC;QAEvB;;WAEG;QACH,UAAU,CAAC,EAAE;YAAE,CAAC,GAAG,EAAE,MAA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yBAAiB,iBAAiB,CAAC;IACjC;;OAEG;IACH,UAAiB,KAAK;QACpB;;WAEG;QACH,UAAU,EAAE,MAAM,CAAC;QAEnB;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;QAElB;;WAEG;QACH,cAAc,EAAE,MAAM,CAAC;QAEvB;;WAEG;QACH,UAAU,CAAC,EAAE;YAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAA;SAAE,CAAC;QAE1D;;WAEG;QACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QAE3B;;WAEG;QACH,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB;CACF;AAKD,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EAAE,KAAK,mBAAmB,IAAI,mBAAmB,EAAE,KAAK,iBAAiB,IAAI,iBAAiB,EAAE,CAAC;IAExG,OAAO,EAAE,IAAI,IAAI,IAAI,EAAE,CAAC;IAExB,OAAO,EACL,UAAU,IAAI,UAAU,EACxB,KAAK,iCAAiC,IAAI,iCAAiC,EAC3E,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,2BAA2B,IAAI,2BAA2B,GAChE,CAAC;CACH"}
@@ -1,6 +1,8 @@
1
1
  import { APIResource } from "../../../core/resource.js";
2
2
  import * as BetaAPI from "./beta/beta.js";
3
3
  import { Beta } from "./beta/beta.js";
4
+ import * as DataExportAPI from "./data-export/data-export.js";
5
+ import { DataExport, DataExportMintScopedTokenParams, DataExportMintScopedTokenResponse, DataExportTriggerSyncParams, DataExportTriggerSyncResponse } from "./data-export/data-export.js";
4
6
  import { APIPromise } from "../../../core/api-promise.js";
5
7
  import { RequestOptions } from "../../../internal/request-options.js";
6
8
  /**
@@ -8,6 +10,7 @@ import { RequestOptions } from "../../../internal/request-options.js";
8
10
  */
9
11
  export declare class Events extends APIResource {
10
12
  beta: BetaAPI.Beta;
13
+ dataExport: DataExportAPI.DataExport;
11
14
  /**
12
15
  * Reports raw usage events for event-based metering. Events are ingested
13
16
  * asynchronously and aggregated into usage totals.
@@ -79,5 +82,6 @@ export declare namespace EventReportParams {
79
82
  export declare namespace Events {
80
83
  export { type EventReportResponse as EventReportResponse, type EventReportParams as EventReportParams };
81
84
  export { Beta as Beta };
85
+ export { DataExport as DataExport, type DataExportMintScopedTokenResponse as DataExportMintScopedTokenResponse, type DataExportTriggerSyncResponse as DataExportTriggerSyncResponse, type DataExportMintScopedTokenParams as DataExportMintScopedTokenParams, type DataExportTriggerSyncParams as DataExportTriggerSyncParams, };
82
86
  }
83
87
  //# sourceMappingURL=events.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/events/events.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,kCAA+B;AACrD,OAAO,KAAK,OAAO,uBAAoB;AACvC,OAAO,EAAE,IAAI,EAAE,uBAAoB;AACnC,OAAO,EAAE,UAAU,EAAE,qCAAkC;AACvD,OAAO,EAAE,cAAc,EAAE,6CAA0C;AAEnE;;GAEG;AACH,qBAAa,MAAO,SAAQ,WAAW;IACrC,IAAI,EAAE,OAAO,CAAC,IAAI,CAAkC;IAEpD;;;;;;;;;;;;;;;;OAgBG;IACH,MAAM,CAAC,IAAI,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,mBAAmB,CAAC;CAG3F;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC;;;OAGG;IACH,IAAI,EAAE,OAAO,CAAC;CACf;AAED,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,MAAM,EAAE,KAAK,CAAC,iBAAiB,CAAC,KAAK,CAAC,CAAC;CACxC;AAED,yBAAiB,iBAAiB,CAAC;IACjC;;OAEG;IACH,UAAiB,KAAK;QACpB;;WAEG;QACH,UAAU,EAAE,MAAM,CAAC;QAEnB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IACH,IAAI,EAAE,OAAO,CAAC;CACf;AAED,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,MAAM,EAAE,KAAK,CAAC,iBAAiB,CAAC,KAAK,CAAC,CAAC;CACxC;AAED,yBAAiB,iBAAiB,CAAC;IACjC;;OAEG;IACH,UAAiB,KAAK;QACpB;;WAEG;QACH,UAAU,EAAE,MAAM,CAAC;QAEnB;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;QAElB;;WAEG;QACH,cAAc,EAAE,MAAM,CAAC;QAEvB;;WAEG;QACH,UAAU,CAAC,EAAE;YAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAA;SAAE,CAAC;QAE1D;;WAEG;QACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QAE3B;;WAEG;QACH,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB;CACF;AAKD,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EAAE,KAAK,mBAAmB,IAAI,mBAAmB,EAAE,KAAK,iBAAiB,IAAI,iBAAiB,EAAE,CAAC;IAExG,OAAO,EAAE,IAAI,IAAI,IAAI,EAAE,CAAC;IAExB,OAAO,EACL,UAAU,IAAI,UAAU,EACxB,KAAK,iCAAiC,IAAI,iCAAiC,EAC3E,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,2BAA2B,IAAI,2BAA2B,GAChE,CAAC;CACH"}
@@ -6,6 +6,8 @@ const tslib_1 = require("../../../internal/tslib.js");
6
6
  const resource_1 = require("../../../core/resource.js");
7
7
  const BetaAPI = tslib_1.__importStar(require("./beta/beta.js"));
8
8
  const beta_1 = require("./beta/beta.js");
9
+ const DataExportAPI = tslib_1.__importStar(require("./data-export/data-export.js"));
10
+ const data_export_1 = require("./data-export/data-export.js");
9
11
  /**
10
12
  * Operations related to usage & metering
11
13
  */
@@ -13,6 +15,7 @@ class Events extends resource_1.APIResource {
13
15
  constructor() {
14
16
  super(...arguments);
15
17
  this.beta = new BetaAPI.Beta(this._client);
18
+ this.dataExport = new DataExportAPI.DataExport(this._client);
16
19
  }
17
20
  /**
18
21
  * Reports raw usage events for event-based metering. Events are ingested
@@ -37,4 +40,5 @@ class Events extends resource_1.APIResource {
37
40
  }
38
41
  exports.Events = Events;
39
42
  Events.Beta = beta_1.Beta;
43
+ Events.DataExport = data_export_1.DataExport;
40
44
  //# sourceMappingURL=events.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"events.js","sourceRoot":"","sources":["../../../src/resources/v1/events/events.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AACrD,gEAAuC;AACvC,yCAAmC;AAInC;;GAEG;AACH,MAAa,MAAO,SAAQ,sBAAW;IAAvC;;QACE,SAAI,GAAiB,IAAI,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAsBtD,CAAC;IApBC;;;;;;;;;;;;;;;;OAgBG;IACH,MAAM,CAAC,IAAuB,EAAE,OAAwB;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,gBAAgB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnE,CAAC;CACF;AAvBD,wBAuBC;AAyDD,MAAM,CAAC,IAAI,GAAG,WAAI,CAAC"}
1
+ {"version":3,"file":"events.js","sourceRoot":"","sources":["../../../src/resources/v1/events/events.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AACrD,gEAAuC;AACvC,yCAAmC;AACnC,oFAA2D;AAC3D,8DAMmC;AAInC;;GAEG;AACH,MAAa,MAAO,SAAQ,sBAAW;IAAvC;;QACE,SAAI,GAAiB,IAAI,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACpD,eAAU,GAA6B,IAAI,aAAa,CAAC,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAsBpF,CAAC;IApBC;;;;;;;;;;;;;;;;OAgBG;IACH,MAAM,CAAC,IAAuB,EAAE,OAAwB;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,gBAAgB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnE,CAAC;CACF;AAxBD,wBAwBC;AAyDD,MAAM,CAAC,IAAI,GAAG,WAAI,CAAC;AACnB,MAAM,CAAC,UAAU,GAAG,wBAAU,CAAC"}
@@ -2,6 +2,8 @@
2
2
  import { APIResource } from "../../../core/resource.mjs";
3
3
  import * as BetaAPI from "./beta/beta.mjs";
4
4
  import { Beta } from "./beta/beta.mjs";
5
+ import * as DataExportAPI from "./data-export/data-export.mjs";
6
+ import { DataExport, } from "./data-export/data-export.mjs";
5
7
  /**
6
8
  * Operations related to usage & metering
7
9
  */
@@ -9,6 +11,7 @@ export class Events extends APIResource {
9
11
  constructor() {
10
12
  super(...arguments);
11
13
  this.beta = new BetaAPI.Beta(this._client);
14
+ this.dataExport = new DataExportAPI.DataExport(this._client);
12
15
  }
13
16
  /**
14
17
  * Reports raw usage events for event-based metering. Events are ingested
@@ -32,4 +35,5 @@ export class Events extends APIResource {
32
35
  }
33
36
  }
34
37
  Events.Beta = Beta;
38
+ Events.DataExport = DataExport;
35
39
  //# sourceMappingURL=events.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"events.mjs","sourceRoot":"","sources":["../../../src/resources/v1/events/events.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,mCAA+B;AACrD,OAAO,KAAK,OAAO,wBAAoB;AACvC,OAAO,EAAE,IAAI,EAAE,wBAAoB;AAInC;;GAEG;AACH,MAAM,OAAO,MAAO,SAAQ,WAAW;IAAvC;;QACE,SAAI,GAAiB,IAAI,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAsBtD,CAAC;IApBC;;;;;;;;;;;;;;;;OAgBG;IACH,MAAM,CAAC,IAAuB,EAAE,OAAwB;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,gBAAgB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnE,CAAC;CACF;AAyDD,MAAM,CAAC,IAAI,GAAG,IAAI,CAAC"}
1
+ {"version":3,"file":"events.mjs","sourceRoot":"","sources":["../../../src/resources/v1/events/events.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,mCAA+B;AACrD,OAAO,KAAK,OAAO,wBAAoB;AACvC,OAAO,EAAE,IAAI,EAAE,wBAAoB;AACnC,OAAO,KAAK,aAAa,sCAAkC;AAC3D,OAAO,EACL,UAAU,GAKX,sCAAkC;AAInC;;GAEG;AACH,MAAM,OAAO,MAAO,SAAQ,WAAW;IAAvC;;QACE,SAAI,GAAiB,IAAI,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACpD,eAAU,GAA6B,IAAI,aAAa,CAAC,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAsBpF,CAAC;IApBC;;;;;;;;;;;;;;;;OAgBG;IACH,MAAM,CAAC,IAAuB,EAAE,OAAwB;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,gBAAgB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnE,CAAC;CACF;AAyDD,MAAM,CAAC,IAAI,GAAG,IAAI,CAAC;AACnB,MAAM,CAAC,UAAU,GAAG,UAAU,CAAC"}
@@ -1,3 +1,4 @@
1
1
  export { Beta } from "./beta/index.mjs";
2
+ export { DataExport, type DataExportMintScopedTokenResponse, type DataExportTriggerSyncResponse, type DataExportMintScopedTokenParams, type DataExportTriggerSyncParams, } from "./data-export/index.mjs";
2
3
  export { Events, type EventReportResponse, type EventReportParams } from "./events.mjs";
3
4
  //# sourceMappingURL=index.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/events/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,yBAAqB;AACpC,OAAO,EAAE,MAAM,EAAE,KAAK,mBAAmB,EAAE,KAAK,iBAAiB,EAAE,qBAAiB"}
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/events/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,yBAAqB;AACpC,OAAO,EACL,UAAU,EACV,KAAK,iCAAiC,EACtC,KAAK,6BAA6B,EAClC,KAAK,+BAA+B,EACpC,KAAK,2BAA2B,GACjC,gCAA4B;AAC7B,OAAO,EAAE,MAAM,EAAE,KAAK,mBAAmB,EAAE,KAAK,iBAAiB,EAAE,qBAAiB"}
@@ -1,3 +1,4 @@
1
1
  export { Beta } from "./beta/index.js";
2
+ export { DataExport, type DataExportMintScopedTokenResponse, type DataExportTriggerSyncResponse, type DataExportMintScopedTokenParams, type DataExportTriggerSyncParams, } from "./data-export/index.js";
2
3
  export { Events, type EventReportResponse, type EventReportParams } from "./events.js";
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/events/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,wBAAqB;AACpC,OAAO,EAAE,MAAM,EAAE,KAAK,mBAAmB,EAAE,KAAK,iBAAiB,EAAE,oBAAiB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/events/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,wBAAqB;AACpC,OAAO,EACL,UAAU,EACV,KAAK,iCAAiC,EACtC,KAAK,6BAA6B,EAClC,KAAK,+BAA+B,EACpC,KAAK,2BAA2B,GACjC,+BAA4B;AAC7B,OAAO,EAAE,MAAM,EAAE,KAAK,mBAAmB,EAAE,KAAK,iBAAiB,EAAE,oBAAiB"}
@@ -1,9 +1,11 @@
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.Beta = void 0;
4
+ exports.Events = exports.DataExport = exports.Beta = void 0;
5
5
  var index_1 = require("./beta/index.js");
6
6
  Object.defineProperty(exports, "Beta", { enumerable: true, get: function () { return index_1.Beta; } });
7
+ var index_2 = require("./data-export/index.js");
8
+ Object.defineProperty(exports, "DataExport", { enumerable: true, get: function () { return index_2.DataExport; } });
7
9
  var events_1 = require("./events.js");
8
10
  Object.defineProperty(exports, "Events", { enumerable: true, get: function () { return events_1.Events; } });
9
11
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/v1/events/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,yCAAoC;AAA3B,6FAAA,IAAI,OAAA;AACb,sCAAoF;AAA3E,gGAAA,MAAM,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/v1/events/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,yCAAoC;AAA3B,6FAAA,IAAI,OAAA;AACb,gDAM6B;AAL3B,mGAAA,UAAU,OAAA;AAMZ,sCAAoF;AAA3E,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 { Beta } from "./beta/index.mjs";
3
+ export { DataExport, } from "./data-export/index.mjs";
3
4
  export { Events } from "./events.mjs";
4
5
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/v1/events/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,IAAI,EAAE,yBAAqB;AACpC,OAAO,EAAE,MAAM,EAAoD,qBAAiB"}
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/v1/events/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,IAAI,EAAE,yBAAqB;AACpC,OAAO,EACL,UAAU,GAKX,gCAA4B;AAC7B,OAAO,EAAE,MAAM,EAAoD,qBAAiB"}
@@ -1751,6 +1751,10 @@ export interface SubscriptionUpdateParams {
1751
1751
  billingInformation?: SubscriptionUpdateParams.BillingInformation;
1752
1752
  billingPeriod?: 'MONTHLY' | 'ANNUALLY';
1753
1753
  budget?: SubscriptionUpdateParams.Budget | null;
1754
+ /**
1755
+ * Subscription cancellation date
1756
+ */
1757
+ cancellationDate?: string | null;
1754
1758
  charges?: Array<SubscriptionUpdateParams.Charge>;
1755
1759
  entitlements?: Array<SubscriptionUpdateParams.Feature | SubscriptionUpdateParams.Credit>;
1756
1760
  /**
@@ -2522,6 +2526,10 @@ export interface SubscriptionProvisionParams {
2522
2526
  */
2523
2527
  billingPeriod?: 'MONTHLY' | 'ANNUALLY';
2524
2528
  budget?: SubscriptionProvisionParams.Budget | null;
2529
+ /**
2530
+ * Subscription cancellation date
2531
+ */
2532
+ cancellationDate?: string;
2525
2533
  charges?: Array<SubscriptionProvisionParams.Charge>;
2526
2534
  /**
2527
2535
  * Checkout page configuration for payment collection