@stigg/typescript 0.1.0-beta.24 → 0.1.0-beta.26
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/v1/events/beta/beta.d.mts +10 -0
- package/resources/v1/events/beta/beta.d.mts.map +1 -0
- package/resources/v1/events/beta/beta.d.ts +10 -0
- package/resources/v1/events/beta/beta.d.ts.map +1 -0
- package/resources/v1/events/beta/beta.js +17 -0
- package/resources/v1/events/beta/beta.js.map +1 -0
- package/resources/v1/events/beta/beta.mjs +12 -0
- package/resources/v1/events/beta/beta.mjs.map +1 -0
- package/resources/v1/events/beta/customers.d.mts +159 -0
- package/resources/v1/events/beta/customers.d.mts.map +1 -0
- package/resources/v1/events/beta/customers.d.ts +159 -0
- package/resources/v1/events/beta/customers.d.ts.map +1 -0
- package/resources/v1/events/beta/customers.js +32 -0
- package/resources/v1/events/beta/customers.js.map +1 -0
- package/resources/v1/events/beta/customers.mjs +28 -0
- package/resources/v1/events/beta/customers.mjs.map +1 -0
- package/resources/v1/events/beta/index.d.mts +3 -0
- package/resources/v1/events/beta/index.d.mts.map +1 -0
- package/resources/v1/events/beta/index.d.ts +3 -0
- package/resources/v1/events/beta/index.d.ts.map +1 -0
- package/resources/v1/events/beta/index.js +9 -0
- package/resources/v1/events/beta/index.js.map +1 -0
- package/resources/v1/events/beta/index.mjs +4 -0
- package/resources/v1/events/beta/index.mjs.map +1 -0
- package/resources/v1/events/beta.d.mts +2 -0
- package/resources/v1/events/beta.d.mts.map +1 -0
- package/resources/v1/events/beta.d.ts +2 -0
- package/resources/v1/events/beta.d.ts.map +1 -0
- package/resources/v1/events/beta.js +6 -0
- package/resources/v1/events/beta.js.map +1 -0
- package/resources/v1/events/beta.mjs +3 -0
- package/resources/v1/events/beta.mjs.map +1 -0
- package/resources/v1/events/events.d.mts +4 -0
- package/resources/v1/events/events.d.mts.map +1 -1
- package/resources/v1/events/events.d.ts +4 -0
- package/resources/v1/events/events.d.ts.map +1 -1
- package/resources/v1/events/events.js +4 -0
- package/resources/v1/events/events.js.map +1 -1
- package/resources/v1/events/events.mjs +4 -0
- package/resources/v1/events/events.mjs.map +1 -1
- package/resources/v1/events/index.d.mts +1 -0
- package/resources/v1/events/index.d.mts.map +1 -1
- package/resources/v1/events/index.d.ts +1 -0
- package/resources/v1/events/index.d.ts.map +1 -1
- package/resources/v1/events/index.js +5 -3
- package/resources/v1/events/index.js.map +1 -1
- package/resources/v1/events/index.mjs +1 -0
- package/resources/v1/events/index.mjs.map +1 -1
- package/resources/v1-beta/customers/assignments.d.mts +3 -3
- package/resources/v1-beta/customers/assignments.d.mts.map +1 -1
- package/resources/v1-beta/customers/assignments.d.ts +3 -3
- package/resources/v1-beta/customers/assignments.d.ts.map +1 -1
- package/src/resources/v1/events/beta/beta.ts +19 -0
- package/src/resources/v1/events/beta/customers.ts +211 -0
- package/src/resources/v1/events/beta/index.ts +8 -0
- package/src/resources/v1/events/beta.ts +3 -0
- package/src/resources/v1/events/events.ts +6 -0
- package/src/resources/v1/events/index.ts +1 -0
- package/src/resources/v1-beta/customers/assignments.ts +3 -3
- 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
|
@@ -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,aAAa,qCAAkC;AAC3D,OAAO,EACL,UAAU,EACV,+BAA+B,EAC/B,iCAAiC,EACjC,2BAA2B,EAC3B,6BAA6B,EAC9B,qCAAkC;AACnC,OAAO,EAAE,UAAU,EAAE,qCAAkC;AAEvD,OAAO,EAAE,cAAc,EAAE,6CAA0C;AAEnE;;GAEG;AACH,qBAAa,MAAO,SAAQ,WAAW;IACrC,UAAU,EAAE,a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,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,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;IAEF,OAAO,EAAE,IAAI,IAAI,IAAI,EAAE,CAAC;CACzB"}
|
|
@@ -4,6 +4,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
4
4
|
exports.Events = void 0;
|
|
5
5
|
const tslib_1 = require("../../../internal/tslib.js");
|
|
6
6
|
const resource_1 = require("../../../core/resource.js");
|
|
7
|
+
const BetaAPI = tslib_1.__importStar(require("./beta/beta.js"));
|
|
8
|
+
const beta_1 = require("./beta/beta.js");
|
|
7
9
|
const DataExportAPI = tslib_1.__importStar(require("./data-export/data-export.js"));
|
|
8
10
|
const data_export_1 = require("./data-export/data-export.js");
|
|
9
11
|
const headers_1 = require("../../../internal/headers.js");
|
|
@@ -14,6 +16,7 @@ class Events extends resource_1.APIResource {
|
|
|
14
16
|
constructor() {
|
|
15
17
|
super(...arguments);
|
|
16
18
|
this.dataExport = new DataExportAPI.DataExport(this._client);
|
|
19
|
+
this.beta = new BetaAPI.Beta(this._client);
|
|
17
20
|
}
|
|
18
21
|
/**
|
|
19
22
|
* Reports raw usage events for event-based metering. Events are ingested
|
|
@@ -36,4 +39,5 @@ class Events extends resource_1.APIResource {
|
|
|
36
39
|
}
|
|
37
40
|
exports.Events = Events;
|
|
38
41
|
Events.DataExport = data_export_1.DataExport;
|
|
42
|
+
Events.Beta = beta_1.Beta;
|
|
39
43
|
//# 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,oFAA2D;AAC3D,8DAMmC;AAEnC,0DAAyD;AAGzD;;GAEG;AACH,MAAa,MAAO,SAAQ,sBAAW;IAAvC;;QACE,eAAU,GAA6B,IAAI,aAAa,CAAC,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,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;AAEnC,0DAAyD;AAGzD;;GAEG;AACH,MAAa,MAAO,SAAQ,sBAAW;IAAvC;;QACE,eAAU,GAA6B,IAAI,aAAa,CAAC,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAClF,SAAI,GAAiB,IAAI,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAoBtD,CAAC;IAlBC;;;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,gBAAgB,EAAE;YACzC,IAAI;YACJ,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;CACF;AAtBD,wBAsBC;AAsED,MAAM,CAAC,UAAU,GAAG,wBAAU,CAAC;AAC/B,MAAM,CAAC,IAAI,GAAG,WAAI,CAAC"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
import { APIResource } from "../../../core/resource.mjs";
|
|
3
|
+
import * as BetaAPI from "./beta/beta.mjs";
|
|
4
|
+
import { Beta } from "./beta/beta.mjs";
|
|
3
5
|
import * as DataExportAPI from "./data-export/data-export.mjs";
|
|
4
6
|
import { DataExport, } from "./data-export/data-export.mjs";
|
|
5
7
|
import { buildHeaders } from "../../../internal/headers.mjs";
|
|
@@ -10,6 +12,7 @@ export class Events extends APIResource {
|
|
|
10
12
|
constructor() {
|
|
11
13
|
super(...arguments);
|
|
12
14
|
this.dataExport = new DataExportAPI.DataExport(this._client);
|
|
15
|
+
this.beta = new BetaAPI.Beta(this._client);
|
|
13
16
|
}
|
|
14
17
|
/**
|
|
15
18
|
* Reports raw usage events for event-based metering. Events are ingested
|
|
@@ -31,4 +34,5 @@ export class Events extends APIResource {
|
|
|
31
34
|
}
|
|
32
35
|
}
|
|
33
36
|
Events.DataExport = DataExport;
|
|
37
|
+
Events.Beta = Beta;
|
|
34
38
|
//# 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,aAAa,sCAAk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kBAAkB,EAAE,cAAc,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;iBACjF;gBACD,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;CACF;AAsED,MAAM,CAAC,UAAU,GAAG,UAAU,CAAC;AAC/B,MAAM,CAAC,IAAI,GAAG,IAAI,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export { Beta } from "./beta/index.mjs";
|
|
1
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,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
|
+
{"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
|
+
export { Beta } from "./beta/index.js";
|
|
1
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,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
|
+
{"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.DataExport = void 0;
|
|
5
|
-
var index_1 = require("./
|
|
6
|
-
Object.defineProperty(exports, "
|
|
4
|
+
exports.Events = exports.DataExport = exports.Beta = void 0;
|
|
5
|
+
var index_1 = require("./beta/index.js");
|
|
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,gDAM6B;AAL3B,mGAAA,UAAU,OAAA;AAMZ,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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/v1/events/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EACL,UAAU,GAKX,gCAA4B;AAC7B,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"}
|
|
@@ -91,7 +91,7 @@ export interface AssignmentListResponse {
|
|
|
91
91
|
/**
|
|
92
92
|
* Maximum usage allowed within one cadence window
|
|
93
93
|
*/
|
|
94
|
-
usageLimit: number;
|
|
94
|
+
usageLimit: number | null;
|
|
95
95
|
/**
|
|
96
96
|
* Currency refId this assignment grants (present for credit capabilities).
|
|
97
97
|
*/
|
|
@@ -148,7 +148,7 @@ export declare namespace AssignmentUpsertResponse {
|
|
|
148
148
|
/**
|
|
149
149
|
* Maximum usage allowed within one cadence window
|
|
150
150
|
*/
|
|
151
|
-
usageLimit: number;
|
|
151
|
+
usageLimit: number | null;
|
|
152
152
|
/**
|
|
153
153
|
* Currency refId this assignment grants (present for credit capabilities).
|
|
154
154
|
*/
|
|
@@ -233,7 +233,7 @@ export declare namespace AssignmentUpsertParams {
|
|
|
233
233
|
/**
|
|
234
234
|
* Maximum usage allowed within one cadence window (required on create)
|
|
235
235
|
*/
|
|
236
|
-
usageLimit?: number;
|
|
236
|
+
usageLimit?: number | null;
|
|
237
237
|
}
|
|
238
238
|
}
|
|
239
239
|
export declare namespace Assignments {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assignments.d.mts","sourceRoot":"","sources":["../../../src/resources/v1-beta/customers/assignments.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,mCAA+B;AACrD,OAAO,EAAE,UAAU,EAAE,sCAAkC;AACvD,OAAO,EAAE,cAAc,EAAE,KAAK,oBAAoB,EAAE,WAAW,EAAE,qCAAiC;AAElG,OAAO,EAAE,cAAc,EAAE,8CAA0C;AAGnE,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;;;;;;;;;;;;;OAcG;IACH,IAAI,CACF,EAAE,EAAE,MAAM,EACV,MAAM,GAAE,oBAAoB,GAAG,IAAI,GAAG,SAAc,EACpD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,qCAAqC,EAAE,sBAAsB,CAAC;IAmB7E;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA4BG;IACH,MAAM,CACJ,EAAE,EAAE,MAAM,EACV,MAAM,EAAE,sBAAsB,EAC9B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,wBAAwB,CAAC;CAcxC;AAED,MAAM,MAAM,qCAAqC,GAAG,cAAc,CAAC,sBAAsB,CAAC,CAAC;AAE3F;;;;GAIG;AACH,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;IAEjB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IAExB;;;;;OAKG;IACH,cAAc,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAE9B;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"assignments.d.mts","sourceRoot":"","sources":["../../../src/resources/v1-beta/customers/assignments.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,mCAA+B;AACrD,OAAO,EAAE,UAAU,EAAE,sCAAkC;AACvD,OAAO,EAAE,cAAc,EAAE,KAAK,oBAAoB,EAAE,WAAW,EAAE,qCAAiC;AAElG,OAAO,EAAE,cAAc,EAAE,8CAA0C;AAGnE,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;;;;;;;;;;;;;OAcG;IACH,IAAI,CACF,EAAE,EAAE,MAAM,EACV,MAAM,GAAE,oBAAoB,GAAG,IAAI,GAAG,SAAc,EACpD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,qCAAqC,EAAE,sBAAsB,CAAC;IAmB7E;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA4BG;IACH,MAAM,CACJ,EAAE,EAAE,MAAM,EACV,MAAM,EAAE,sBAAsB,EAC9B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,wBAAwB,CAAC;CAcxC;AAED,MAAM,MAAM,qCAAqC,GAAG,cAAc,CAAC,sBAAsB,CAAC,CAAC;AAE3F;;;;GAIG;AACH,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,OA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AAC;IAElB;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,WAAW,EAAE,KAAK,CAAC,sBAAsB,CAAC,UAAU,CAAC,CAAC;IAEtD;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,yBAAiB,sBAAsB,CAAC;IACtC;;;;;;OAMG;IACH,UAAiB,UAAU;QACzB;;WAEG;QACH,QAAQ,EAAE,MAAM,CAAC;QAEjB;;WAEG;QACH,OAAO,CAAC,EAAE,OAAO,CAAC;QAElB;;;WAGG;QACH,UAAU,CAAC,EAAE,MAAM,CAAC;QAEpB;;WAEG;QACH,SAAS,CAAC,EAAE,MAAM,CAAC;QAEnB;;;;WAIG;QACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QAEzB,cAAc,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;QAE/B;;WAEG;QACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;KAC5B;CACF;AAED,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,qCAAqC,IAAI,qCAAqC,EACnF,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
|
|
@@ -91,7 +91,7 @@ export interface AssignmentListResponse {
|
|
|
91
91
|
/**
|
|
92
92
|
* Maximum usage allowed within one cadence window
|
|
93
93
|
*/
|
|
94
|
-
usageLimit: number;
|
|
94
|
+
usageLimit: number | null;
|
|
95
95
|
/**
|
|
96
96
|
* Currency refId this assignment grants (present for credit capabilities).
|
|
97
97
|
*/
|
|
@@ -148,7 +148,7 @@ export declare namespace AssignmentUpsertResponse {
|
|
|
148
148
|
/**
|
|
149
149
|
* Maximum usage allowed within one cadence window
|
|
150
150
|
*/
|
|
151
|
-
usageLimit: number;
|
|
151
|
+
usageLimit: number | null;
|
|
152
152
|
/**
|
|
153
153
|
* Currency refId this assignment grants (present for credit capabilities).
|
|
154
154
|
*/
|
|
@@ -233,7 +233,7 @@ export declare namespace AssignmentUpsertParams {
|
|
|
233
233
|
/**
|
|
234
234
|
* Maximum usage allowed within one cadence window (required on create)
|
|
235
235
|
*/
|
|
236
|
-
usageLimit?: number;
|
|
236
|
+
usageLimit?: number | null;
|
|
237
237
|
}
|
|
238
238
|
}
|
|
239
239
|
export declare namespace Assignments {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assignments.d.ts","sourceRoot":"","sources":["../../../src/resources/v1-beta/customers/assignments.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,kCAA+B;AACrD,OAAO,EAAE,UAAU,EAAE,qCAAkC;AACvD,OAAO,EAAE,cAAc,EAAE,KAAK,oBAAoB,EAAE,WAAW,EAAE,oCAAiC;AAElG,OAAO,EAAE,cAAc,EAAE,6CAA0C;AAGnE,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;;;;;;;;;;;;;OAcG;IACH,IAAI,CACF,EAAE,EAAE,MAAM,EACV,MAAM,GAAE,oBAAoB,GAAG,IAAI,GAAG,SAAc,EACpD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,qCAAqC,EAAE,sBAAsB,CAAC;IAmB7E;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA4BG;IACH,MAAM,CACJ,EAAE,EAAE,MAAM,EACV,MAAM,EAAE,sBAAsB,EAC9B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,wBAAwB,CAAC;CAcxC;AAED,MAAM,MAAM,qCAAqC,GAAG,cAAc,CAAC,sBAAsB,CAAC,CAAC;AAE3F;;;;GAIG;AACH,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;IAEjB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IAExB;;;;;OAKG;IACH,cAAc,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAE9B;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"assignments.d.ts","sourceRoot":"","sources":["../../../src/resources/v1-beta/customers/assignments.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,kCAA+B;AACrD,OAAO,EAAE,UAAU,EAAE,qCAAkC;AACvD,OAAO,EAAE,cAAc,EAAE,KAAK,oBAAoB,EAAE,WAAW,EAAE,oCAAiC;AAElG,OAAO,EAAE,cAAc,EAAE,6CAA0C;AAGnE,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;;;;;;;;;;;;;OAcG;IACH,IAAI,CACF,EAAE,EAAE,MAAM,EACV,MAAM,GAAE,oBAAoB,GAAG,IAAI,GAAG,SAAc,EACpD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,qCAAqC,EAAE,sBAAsB,CAAC;IAmB7E;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA4BG;IACH,MAAM,CACJ,EAAE,EAAE,MAAM,EACV,MAAM,EAAE,sBAAsB,EAC9B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,wBAAwB,CAAC;CAcxC;AAED,MAAM,MAAM,qCAAqC,GAAG,cAAc,CAAC,sBAAsB,CAAC,CAAC;AAE3F;;;;GAIG;AACH,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH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IAEtB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,WAAW,EAAE,KAAK,CAAC,sBAAsB,CAAC,UAAU,CAAC,CAAC;IAEtD;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,yBAAiB,sBAAsB,CAAC;IACtC;;;;;;OAMG;IACH,UAAiB,UAAU;QACzB;;WAEG;QACH,QAAQ,EAAE,MAAM,CAAC;QAEjB;;WAEG;QACH,OAAO,CAAC,EAAE,OAAO,CAAC;QAElB;;;WAGG;QACH,UAAU,CAAC,EAAE,MAAM,CAAC;QAEpB;;WAEG;QACH,SAAS,CAAC,EAAE,MAAM,CAAC;QAEnB;;;;WAIG;QACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QAEzB,cAAc,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;QAE/B;;WAEG;QACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;KAC5B;CACF;AAED,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,qCAAqC,IAAI,qCAAqC,EACnF,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../../../core/resource';
|
|
4
|
+
import * as CustomersAPI from './customers';
|
|
5
|
+
import { CustomerRetrieveGovernanceParams, CustomerRetrieveGovernanceResponse, Customers } from './customers';
|
|
6
|
+
|
|
7
|
+
export class Beta extends APIResource {
|
|
8
|
+
customers: CustomersAPI.Customers = new CustomersAPI.Customers(this._client);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
Beta.Customers = Customers;
|
|
12
|
+
|
|
13
|
+
export declare namespace Beta {
|
|
14
|
+
export {
|
|
15
|
+
Customers as Customers,
|
|
16
|
+
type CustomerRetrieveGovernanceResponse as CustomerRetrieveGovernanceResponse,
|
|
17
|
+
type CustomerRetrieveGovernanceParams as CustomerRetrieveGovernanceParams,
|
|
18
|
+
};
|
|
19
|
+
}
|
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../../../core/resource';
|
|
4
|
+
import { APIPromise } from '../../../../core/api-promise';
|
|
5
|
+
import { buildHeaders } from '../../../../internal/headers';
|
|
6
|
+
import { RequestOptions } from '../../../../internal/request-options';
|
|
7
|
+
import { path } from '../../../../internal/utils/path';
|
|
8
|
+
|
|
9
|
+
export class Customers extends APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* Queries the customer's governance hierarchy tree, returning a cursor-paginated
|
|
12
|
+
* list of nodes with their usage configuration (limit, cadence, scope) and current
|
|
13
|
+
* usage, sortable and filterable by usage. Each node carries `parentId` so the
|
|
14
|
+
* tree can be rebuilt client-side. Usage is read from a periodically-refreshed
|
|
15
|
+
* read model and never gates access.
|
|
16
|
+
*/
|
|
17
|
+
retrieveGovernance(
|
|
18
|
+
id: string,
|
|
19
|
+
params: CustomerRetrieveGovernanceParams | null | undefined = {},
|
|
20
|
+
options?: RequestOptions,
|
|
21
|
+
): APIPromise<CustomerRetrieveGovernanceResponse> {
|
|
22
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...query } = params ?? {};
|
|
23
|
+
return this._client.get(path`/api/v1-beta/customers/${id}/governance`, {
|
|
24
|
+
query,
|
|
25
|
+
...options,
|
|
26
|
+
headers: buildHeaders([
|
|
27
|
+
{
|
|
28
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
29
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
30
|
+
},
|
|
31
|
+
options?.headers,
|
|
32
|
+
]),
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Paginated list of governance tree nodes, each with its usage configuration and
|
|
39
|
+
* current usage.
|
|
40
|
+
*/
|
|
41
|
+
export interface CustomerRetrieveGovernanceResponse {
|
|
42
|
+
data: Array<CustomerRetrieveGovernanceResponse.Data>;
|
|
43
|
+
|
|
44
|
+
pagination: CustomerRetrieveGovernanceResponse.Pagination;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export namespace CustomerRetrieveGovernanceResponse {
|
|
48
|
+
/**
|
|
49
|
+
* A node of the governance hierarchy tree with its usage configuration (limit,
|
|
50
|
+
* cadence, scope) and current usage. Usage is read from a periodically-refreshed
|
|
51
|
+
* read model and may lag the live counter by a short interval; it never gates
|
|
52
|
+
* access.
|
|
53
|
+
*/
|
|
54
|
+
export interface Data {
|
|
55
|
+
/**
|
|
56
|
+
* Usage-reset cadence. Currently only `MONTH` is supported.
|
|
57
|
+
*/
|
|
58
|
+
cadence: 'MONTH' | null;
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Usage consumed in the current cadence period (may lag the live counter by a
|
|
62
|
+
* short interval).
|
|
63
|
+
*/
|
|
64
|
+
currentUsage: number | null;
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* External id of the entity at this node.
|
|
68
|
+
*/
|
|
69
|
+
entityId: string;
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* External id of the entity type (e.g. `team`, `user`).
|
|
73
|
+
*/
|
|
74
|
+
entityType: string;
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* External id of the parent entity in the tree; `null` for a root. Use it to
|
|
78
|
+
* rebuild the tree.
|
|
79
|
+
*/
|
|
80
|
+
parentId: string | null;
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* The configuration scope (entity ids). Empty is the node-wide configuration; a
|
|
84
|
+
* non-empty set is a dimension-scoped sub-configuration.
|
|
85
|
+
*/
|
|
86
|
+
scopeEntityIds: Array<string>;
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* Hard usage limit for this node per cadence period.
|
|
90
|
+
*/
|
|
91
|
+
usageLimit: number | null;
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* Exclusive end of the cadence period — when usage resets; `null` once the period
|
|
95
|
+
* has rolled over.
|
|
96
|
+
*/
|
|
97
|
+
usagePeriodEnd: string | null;
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* Start of the cadence period the usage snapshot belongs to; `null` once the
|
|
101
|
+
* period has rolled over.
|
|
102
|
+
*/
|
|
103
|
+
usagePeriodStart: string | null;
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* `currentUsage / usageLimit` (1 when usageLimit is 0 — always at limit). The
|
|
107
|
+
* cross-capability-safe sort key.
|
|
108
|
+
*/
|
|
109
|
+
utilization: number | null;
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* The metered currency refId (present when the configured capability is a credit
|
|
113
|
+
* currency).
|
|
114
|
+
*/
|
|
115
|
+
currencyId?: string;
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* The metered feature refId (present when the configured capability is a feature).
|
|
119
|
+
*/
|
|
120
|
+
featureId?: string;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
export interface Pagination {
|
|
124
|
+
/**
|
|
125
|
+
* Cursor for fetching the next page of results, or null if no additional pages
|
|
126
|
+
* exist
|
|
127
|
+
*/
|
|
128
|
+
next: string | null;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
export interface CustomerRetrieveGovernanceParams {
|
|
133
|
+
/**
|
|
134
|
+
* Query param: Return items that come after this cursor
|
|
135
|
+
*/
|
|
136
|
+
after?: string;
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* Query param: Currency ids to include, repeated per value (e.g.
|
|
140
|
+
* `?currencyIds=credits`). Omit both featureIds and currencyIds for tree mode.
|
|
141
|
+
*/
|
|
142
|
+
currencyIds?: Array<string>;
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* Query param: Case-insensitive substring match on the entity id (`%`/`_` matched
|
|
146
|
+
* literally).
|
|
147
|
+
*/
|
|
148
|
+
entityIdSearch?: string;
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* Query param: Filter to one or more entity types, repeated per value (e.g.
|
|
152
|
+
* `?entityTypeIds=team&entityTypeIds=user`).
|
|
153
|
+
*/
|
|
154
|
+
entityTypeIds?: Array<string>;
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* Query param: Feature ids to include, repeated per value (e.g.
|
|
158
|
+
* `?featureIds=ai-tokens&featureIds=seats`). Omit both featureIds and currencyIds
|
|
159
|
+
* for tree mode — every node in the hierarchy with no usage configuration
|
|
160
|
+
* attached.
|
|
161
|
+
*/
|
|
162
|
+
featureIds?: Array<string>;
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* Query param: Maximum number of items to return
|
|
166
|
+
*/
|
|
167
|
+
limit?: number;
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* Query param: Only nodes with utilization ≥ this value (e.g. 0.8 for ≥80%, 1 for
|
|
171
|
+
* at/over limit).
|
|
172
|
+
*/
|
|
173
|
+
minUtilization?: number;
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* Query param: Sort direction: `asc` or `desc` (default `desc`).
|
|
177
|
+
*/
|
|
178
|
+
order?: 'asc' | 'desc';
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* Query param: Filter by configuration scope: `all` (default), `nodeWide` (`[]`
|
|
182
|
+
* only), or `scoped` (non-empty only).
|
|
183
|
+
*/
|
|
184
|
+
scope?: 'all' | 'nodeWide' | 'scoped';
|
|
185
|
+
|
|
186
|
+
/**
|
|
187
|
+
* Query param: Sort key: `utilization` (default, cross-capability-safe),
|
|
188
|
+
* `currentUsage`, `usageLimit`, `scopeSize`, `id`, or `createdAt`.
|
|
189
|
+
*/
|
|
190
|
+
sortBy?: 'utilization' | 'currentUsage' | 'usageLimit' | 'scopeSize' | 'id' | 'createdAt';
|
|
191
|
+
|
|
192
|
+
/**
|
|
193
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
194
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
195
|
+
*/
|
|
196
|
+
'X-ACCOUNT-ID'?: string;
|
|
197
|
+
|
|
198
|
+
/**
|
|
199
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
200
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
201
|
+
* intrinsic to the key).
|
|
202
|
+
*/
|
|
203
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
export declare namespace Customers {
|
|
207
|
+
export {
|
|
208
|
+
type CustomerRetrieveGovernanceResponse as CustomerRetrieveGovernanceResponse,
|
|
209
|
+
type CustomerRetrieveGovernanceParams as CustomerRetrieveGovernanceParams,
|
|
210
|
+
};
|
|
211
|
+
}
|
|
@@ -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 BetaAPI from './beta/beta';
|
|
5
|
+
import { Beta } from './beta/beta';
|
|
4
6
|
import * as DataExportAPI from './data-export/data-export';
|
|
5
7
|
import {
|
|
6
8
|
DataExport,
|
|
@@ -18,6 +20,7 @@ import { RequestOptions } from '../../../internal/request-options';
|
|
|
18
20
|
*/
|
|
19
21
|
export class Events extends APIResource {
|
|
20
22
|
dataExport: DataExportAPI.DataExport = new DataExportAPI.DataExport(this._client);
|
|
23
|
+
beta: BetaAPI.Beta = new BetaAPI.Beta(this._client);
|
|
21
24
|
|
|
22
25
|
/**
|
|
23
26
|
* Reports raw usage events for event-based metering. Events are ingested
|
|
@@ -108,6 +111,7 @@ export namespace EventReportParams {
|
|
|
108
111
|
}
|
|
109
112
|
|
|
110
113
|
Events.DataExport = DataExport;
|
|
114
|
+
Events.Beta = Beta;
|
|
111
115
|
|
|
112
116
|
export declare namespace Events {
|
|
113
117
|
export { type EventReportResponse as EventReportResponse, type EventReportParams as EventReportParams };
|
|
@@ -119,4 +123,6 @@ export declare namespace Events {
|
|
|
119
123
|
type DataExportMintScopedTokenParams as DataExportMintScopedTokenParams,
|
|
120
124
|
type DataExportTriggerSyncParams as DataExportTriggerSyncParams,
|
|
121
125
|
};
|
|
126
|
+
|
|
127
|
+
export { Beta as Beta };
|
|
122
128
|
}
|
|
@@ -144,7 +144,7 @@ export interface AssignmentListResponse {
|
|
|
144
144
|
/**
|
|
145
145
|
* Maximum usage allowed within one cadence window
|
|
146
146
|
*/
|
|
147
|
-
usageLimit: number;
|
|
147
|
+
usageLimit: number | null;
|
|
148
148
|
|
|
149
149
|
/**
|
|
150
150
|
* Currency refId this assignment grants (present for credit capabilities).
|
|
@@ -212,7 +212,7 @@ export namespace AssignmentUpsertResponse {
|
|
|
212
212
|
/**
|
|
213
213
|
* Maximum usage allowed within one cadence window
|
|
214
214
|
*/
|
|
215
|
-
usageLimit: number;
|
|
215
|
+
usageLimit: number | null;
|
|
216
216
|
|
|
217
217
|
/**
|
|
218
218
|
* Currency refId this assignment grants (present for credit capabilities).
|
|
@@ -313,7 +313,7 @@ export namespace AssignmentUpsertParams {
|
|
|
313
313
|
/**
|
|
314
314
|
* Maximum usage allowed within one cadence window (required on create)
|
|
315
315
|
*/
|
|
316
|
-
usageLimit?: number;
|
|
316
|
+
usageLimit?: number | null;
|
|
317
317
|
}
|
|
318
318
|
}
|
|
319
319
|
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.1.0-beta.
|
|
1
|
+
export const VERSION = '0.1.0-beta.26'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.1.0-beta.
|
|
1
|
+
export declare const VERSION = "0.1.0-beta.26";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.1.0-beta.
|
|
1
|
+
export declare const VERSION = "0.1.0-beta.26";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.VERSION = void 0;
|
|
4
|
-
exports.VERSION = '0.1.0-beta.
|
|
4
|
+
exports.VERSION = '0.1.0-beta.26'; // x-release-please-version
|
|
5
5
|
//# sourceMappingURL=version.js.map
|
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.1.0-beta.
|
|
1
|
+
export const VERSION = '0.1.0-beta.26'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|