@onkernel/sdk 0.90.0 → 0.92.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/client.d.mts +5 -2
- package/client.d.mts.map +1 -1
- package/client.d.ts +5 -2
- 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/browser-pools.d.mts +4 -0
- package/resources/browser-pools.d.mts.map +1 -1
- package/resources/browser-pools.d.ts +4 -0
- package/resources/browser-pools.d.ts.map +1 -1
- package/resources/browsers/browsers.d.mts +29 -1
- package/resources/browsers/browsers.d.mts.map +1 -1
- package/resources/browsers/browsers.d.ts +29 -1
- package/resources/browsers/browsers.d.ts.map +1 -1
- package/resources/browsers/browsers.js.map +1 -1
- package/resources/browsers/browsers.mjs.map +1 -1
- package/resources/browsers/index.d.mts +1 -1
- package/resources/browsers/index.d.mts.map +1 -1
- package/resources/browsers/index.d.ts +1 -1
- package/resources/browsers/index.d.ts.map +1 -1
- package/resources/browsers/index.js.map +1 -1
- package/resources/browsers/index.mjs.map +1 -1
- package/resources/browsers/telemetry.d.mts +1 -1
- package/resources/browsers/telemetry.d.ts +1 -1
- package/resources/browsers/telemetry.js +1 -1
- package/resources/browsers/telemetry.mjs +1 -1
- package/resources/credential-providers.d.mts +8 -4
- package/resources/credential-providers.d.mts.map +1 -1
- package/resources/credential-providers.d.ts +8 -4
- package/resources/credential-providers.d.ts.map +1 -1
- package/resources/index.d.mts +2 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +2 -1
- 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/invocations.d.mts +4 -0
- package/resources/invocations.d.mts.map +1 -1
- package/resources/invocations.d.ts +4 -0
- package/resources/invocations.d.ts.map +1 -1
- package/resources/organization/entitlements.d.mts +188 -0
- package/resources/organization/entitlements.d.mts.map +1 -0
- package/resources/organization/entitlements.d.ts +188 -0
- package/resources/organization/entitlements.d.ts.map +1 -0
- package/resources/organization/entitlements.js +20 -0
- package/resources/organization/entitlements.js.map +1 -0
- package/resources/organization/entitlements.mjs +16 -0
- package/resources/organization/entitlements.mjs.map +1 -0
- package/resources/organization/index.d.mts +1 -0
- package/resources/organization/index.d.mts.map +1 -1
- package/resources/organization/index.d.ts +1 -0
- package/resources/organization/index.d.ts.map +1 -1
- package/resources/organization/index.js +3 -1
- package/resources/organization/index.js.map +1 -1
- package/resources/organization/index.mjs +1 -0
- package/resources/organization/index.mjs.map +1 -1
- package/resources/organization/organization.d.mts +4 -0
- package/resources/organization/organization.d.mts.map +1 -1
- package/resources/organization/organization.d.ts +4 -0
- package/resources/organization/organization.d.ts.map +1 -1
- package/resources/organization/organization.js +4 -0
- package/resources/organization/organization.js.map +1 -1
- package/resources/organization/organization.mjs +4 -0
- package/resources/organization/organization.mjs.map +1 -1
- package/resources/telemetry/destinations.d.mts +138 -0
- package/resources/telemetry/destinations.d.mts.map +1 -0
- package/resources/telemetry/destinations.d.ts +138 -0
- package/resources/telemetry/destinations.d.ts.map +1 -0
- package/resources/telemetry/destinations.js +63 -0
- package/resources/telemetry/destinations.js.map +1 -0
- package/resources/telemetry/destinations.mjs +59 -0
- package/resources/telemetry/destinations.mjs.map +1 -0
- package/resources/telemetry/index.d.mts +3 -0
- package/resources/telemetry/index.d.mts.map +1 -0
- package/resources/telemetry/index.d.ts +3 -0
- package/resources/telemetry/index.d.ts.map +1 -0
- package/resources/telemetry/index.js +9 -0
- package/resources/telemetry/index.js.map +1 -0
- package/resources/telemetry/index.mjs +4 -0
- package/resources/telemetry/index.mjs.map +1 -0
- package/resources/telemetry/telemetry.d.mts +10 -0
- package/resources/telemetry/telemetry.d.mts.map +1 -0
- package/resources/telemetry/telemetry.d.ts +10 -0
- package/resources/telemetry/telemetry.d.ts.map +1 -0
- package/resources/telemetry/telemetry.js +17 -0
- package/resources/telemetry/telemetry.js.map +1 -0
- package/resources/telemetry/telemetry.mjs +12 -0
- package/resources/telemetry/telemetry.mjs.map +1 -0
- package/resources/telemetry.d.mts +2 -0
- package/resources/telemetry.d.mts.map +1 -0
- package/resources/telemetry.d.ts +2 -0
- package/resources/telemetry.d.ts.map +1 -0
- package/resources/telemetry.js +6 -0
- package/resources/telemetry.js.map +1 -0
- package/resources/telemetry.mjs +3 -0
- package/resources/telemetry.mjs.map +1 -0
- package/src/client.ts +9 -0
- package/src/resources/browser-pools.ts +5 -0
- package/src/resources/browsers/browsers.ts +37 -0
- package/src/resources/browsers/index.ts +2 -0
- package/src/resources/browsers/telemetry.ts +1 -1
- package/src/resources/credential-providers.ts +8 -4
- package/src/resources/index.ts +3 -0
- package/src/resources/invocations.ts +5 -0
- package/src/resources/organization/entitlements.ts +234 -0
- package/src/resources/organization/index.ts +1 -0
- package/src/resources/organization/organization.ts +6 -0
- package/src/resources/telemetry/destinations.ts +188 -0
- package/src/resources/telemetry/index.ts +11 -0
- package/src/resources/telemetry/telemetry.ts +29 -0
- package/src/resources/telemetry.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 @@
|
|
|
1
|
+
{"version":3,"file":"entitlements.d.ts","sourceRoot":"","sources":["../../src/resources/organization/entitlements.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAEhE;;GAEG;AACH,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;;OAIG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,eAAe,CAAC;CAGhE;AAED;;;;;GAKG;AACH,MAAM,WAAW,eAAe;IAC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;IACpC,OAAO,EAAE,KAAK,eAAe,IAAI,eAAe,EAAE,CAAC;CACpD"}
|
|
@@ -0,0 +1,20 @@
|
|
|
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.Entitlements = void 0;
|
|
5
|
+
const resource_1 = require("../../core/resource.js");
|
|
6
|
+
/**
|
|
7
|
+
* Read and manage organization-level limits.
|
|
8
|
+
*/
|
|
9
|
+
class Entitlements extends resource_1.APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* Get the authenticated organization's effective feature access and constraints
|
|
12
|
+
* after applying its plan, active trial treatment, plan status, and
|
|
13
|
+
* organization-specific overrides. Null constraint values mean unlimited.
|
|
14
|
+
*/
|
|
15
|
+
retrieve(options) {
|
|
16
|
+
return this._client.get('/org/entitlements', options);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
exports.Entitlements = Entitlements;
|
|
20
|
+
//# sourceMappingURL=entitlements.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entitlements.js","sourceRoot":"","sources":["../../src/resources/organization/entitlements.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAIlD;;GAEG;AACH,MAAa,YAAa,SAAQ,sBAAW;IAC3C;;;;OAIG;IACH,QAAQ,CAAC,OAAwB;QAC/B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,mBAAmB,EAAE,OAAO,CAAC,CAAC;IACxD,CAAC;CACF;AATD,oCASC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
+
/**
|
|
4
|
+
* Read and manage organization-level limits.
|
|
5
|
+
*/
|
|
6
|
+
export class Entitlements extends APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* Get the authenticated organization's effective feature access and constraints
|
|
9
|
+
* after applying its plan, active trial treatment, plan status, and
|
|
10
|
+
* organization-specific overrides. Null constraint values mean unlimited.
|
|
11
|
+
*/
|
|
12
|
+
retrieve(options) {
|
|
13
|
+
return this._client.get('/org/entitlements', options);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=entitlements.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entitlements.mjs","sourceRoot":"","sources":["../../src/resources/organization/entitlements.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAIlD;;GAEG;AACH,MAAM,OAAO,YAAa,SAAQ,WAAW;IAC3C;;;;OAIG;IACH,QAAQ,CAAC,OAAwB;QAC/B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,mBAAmB,EAAE,OAAO,CAAC,CAAC;IACxD,CAAC;CACF"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export { Entitlements, type OrgEntitlements } from "./entitlements.mjs";
|
|
1
2
|
export { Limits, type OrgLimits, type UpdateOrgLimitsRequest, type LimitUpdateParams } from "./limits.mjs";
|
|
2
3
|
export { Organization } from "./organization.mjs";
|
|
3
4
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/organization/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,KAAK,SAAS,EAAE,KAAK,sBAAsB,EAAE,KAAK,iBAAiB,EAAE,qBAAiB;AACvG,OAAO,EAAE,YAAY,EAAE,2BAAuB"}
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/organization/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,KAAK,eAAe,EAAE,2BAAuB;AACpE,OAAO,EAAE,MAAM,EAAE,KAAK,SAAS,EAAE,KAAK,sBAAsB,EAAE,KAAK,iBAAiB,EAAE,qBAAiB;AACvG,OAAO,EAAE,YAAY,EAAE,2BAAuB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/organization/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,KAAK,SAAS,EAAE,KAAK,sBAAsB,EAAE,KAAK,iBAAiB,EAAE,oBAAiB;AACvG,OAAO,EAAE,YAAY,EAAE,0BAAuB"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/organization/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,KAAK,eAAe,EAAE,0BAAuB;AACpE,OAAO,EAAE,MAAM,EAAE,KAAK,SAAS,EAAE,KAAK,sBAAsB,EAAE,KAAK,iBAAiB,EAAE,oBAAiB;AACvG,OAAO,EAAE,YAAY,EAAE,0BAAuB"}
|
|
@@ -1,7 +1,9 @@
|
|
|
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.Organization = exports.Limits = void 0;
|
|
4
|
+
exports.Organization = exports.Limits = exports.Entitlements = void 0;
|
|
5
|
+
var entitlements_1 = require("./entitlements.js");
|
|
6
|
+
Object.defineProperty(exports, "Entitlements", { enumerable: true, get: function () { return entitlements_1.Entitlements; } });
|
|
5
7
|
var limits_1 = require("./limits.js");
|
|
6
8
|
Object.defineProperty(exports, "Limits", { enumerable: true, get: function () { return limits_1.Limits; } });
|
|
7
9
|
var organization_1 = require("./organization.js");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/organization/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,sCAAuG;AAA9F,gGAAA,MAAM,OAAA;AACf,kDAA8C;AAArC,4GAAA,YAAY,OAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/organization/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAAoE;AAA3D,4GAAA,YAAY,OAAA;AACrB,sCAAuG;AAA9F,gGAAA,MAAM,OAAA;AACf,kDAA8C;AAArC,4GAAA,YAAY,OAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/organization/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,MAAM,EAAuE,qBAAiB;AACvG,OAAO,EAAE,YAAY,EAAE,2BAAuB"}
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/organization/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,YAAY,EAAwB,2BAAuB;AACpE,OAAO,EAAE,MAAM,EAAuE,qBAAiB;AACvG,OAAO,EAAE,YAAY,EAAE,2BAAuB"}
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
+
import * as EntitlementsAPI from "./entitlements.mjs";
|
|
3
|
+
import { Entitlements, OrgEntitlements } from "./entitlements.mjs";
|
|
2
4
|
import * as LimitsAPI from "./limits.mjs";
|
|
3
5
|
import { LimitUpdateParams, Limits, OrgLimits, UpdateOrgLimitsRequest } from "./limits.mjs";
|
|
4
6
|
export declare class Organization extends APIResource {
|
|
7
|
+
entitlements: EntitlementsAPI.Entitlements;
|
|
5
8
|
limits: LimitsAPI.Limits;
|
|
6
9
|
}
|
|
7
10
|
export declare namespace Organization {
|
|
11
|
+
export { Entitlements as Entitlements, type OrgEntitlements as OrgEntitlements };
|
|
8
12
|
export { Limits as Limits, type OrgLimits as OrgLimits, type UpdateOrgLimitsRequest as UpdateOrgLimitsRequest, type LimitUpdateParams as LimitUpdateParams, };
|
|
9
13
|
}
|
|
10
14
|
//# sourceMappingURL=organization.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organization.d.mts","sourceRoot":"","sources":["../../src/resources/organization/organization.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,SAAS,qBAAiB;AACtC,OAAO,EAAE,iBAAiB,EAAE,MAAM,EAAE,SAAS,EAAE,sBAAsB,EAAE,qBAAiB;AAExF,qBAAa,YAAa,SAAQ,WAAW;IAC3C,MAAM,EAAE,SAAS,CAAC,MAAM,CAAsC;CAC/D;
|
|
1
|
+
{"version":3,"file":"organization.d.mts","sourceRoot":"","sources":["../../src/resources/organization/organization.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,eAAe,2BAAuB;AAClD,OAAO,EAAE,YAAY,EAAE,eAAe,EAAE,2BAAuB;AAC/D,OAAO,KAAK,SAAS,qBAAiB;AACtC,OAAO,EAAE,iBAAiB,EAAE,MAAM,EAAE,SAAS,EAAE,sBAAsB,EAAE,qBAAiB;AAExF,qBAAa,YAAa,SAAQ,WAAW;IAC3C,YAAY,EAAE,eAAe,CAAC,YAAY,CAAkD;IAC5F,MAAM,EAAE,SAAS,CAAC,MAAM,CAAsC;CAC/D;AAKD,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EAAE,YAAY,IAAI,YAAY,EAAE,KAAK,eAAe,IAAI,eAAe,EAAE,CAAC;IAEjF,OAAO,EACL,MAAM,IAAI,MAAM,EAChB,KAAK,SAAS,IAAI,SAAS,EAC3B,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import { APIResource } from "../../core/resource.js";
|
|
2
|
+
import * as EntitlementsAPI from "./entitlements.js";
|
|
3
|
+
import { Entitlements, OrgEntitlements } from "./entitlements.js";
|
|
2
4
|
import * as LimitsAPI from "./limits.js";
|
|
3
5
|
import { LimitUpdateParams, Limits, OrgLimits, UpdateOrgLimitsRequest } from "./limits.js";
|
|
4
6
|
export declare class Organization extends APIResource {
|
|
7
|
+
entitlements: EntitlementsAPI.Entitlements;
|
|
5
8
|
limits: LimitsAPI.Limits;
|
|
6
9
|
}
|
|
7
10
|
export declare namespace Organization {
|
|
11
|
+
export { Entitlements as Entitlements, type OrgEntitlements as OrgEntitlements };
|
|
8
12
|
export { Limits as Limits, type OrgLimits as OrgLimits, type UpdateOrgLimitsRequest as UpdateOrgLimitsRequest, type LimitUpdateParams as LimitUpdateParams, };
|
|
9
13
|
}
|
|
10
14
|
//# sourceMappingURL=organization.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organization.d.ts","sourceRoot":"","sources":["../../src/resources/organization/organization.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,SAAS,oBAAiB;AACtC,OAAO,EAAE,iBAAiB,EAAE,MAAM,EAAE,SAAS,EAAE,sBAAsB,EAAE,oBAAiB;AAExF,qBAAa,YAAa,SAAQ,WAAW;IAC3C,MAAM,EAAE,SAAS,CAAC,MAAM,CAAsC;CAC/D;
|
|
1
|
+
{"version":3,"file":"organization.d.ts","sourceRoot":"","sources":["../../src/resources/organization/organization.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,eAAe,0BAAuB;AAClD,OAAO,EAAE,YAAY,EAAE,eAAe,EAAE,0BAAuB;AAC/D,OAAO,KAAK,SAAS,oBAAiB;AACtC,OAAO,EAAE,iBAAiB,EAAE,MAAM,EAAE,SAAS,EAAE,sBAAsB,EAAE,oBAAiB;AAExF,qBAAa,YAAa,SAAQ,WAAW;IAC3C,YAAY,EAAE,eAAe,CAAC,YAAY,CAAkD;IAC5F,MAAM,EAAE,SAAS,CAAC,MAAM,CAAsC;CAC/D;AAKD,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EAAE,YAAY,IAAI,YAAY,EAAE,KAAK,eAAe,IAAI,eAAe,EAAE,CAAC;IAEjF,OAAO,EACL,MAAM,IAAI,MAAM,EAChB,KAAK,SAAS,IAAI,SAAS,EAC3B,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
|
|
@@ -4,14 +4,18 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
4
4
|
exports.Organization = void 0;
|
|
5
5
|
const tslib_1 = require("../../internal/tslib.js");
|
|
6
6
|
const resource_1 = require("../../core/resource.js");
|
|
7
|
+
const EntitlementsAPI = tslib_1.__importStar(require("./entitlements.js"));
|
|
8
|
+
const entitlements_1 = require("./entitlements.js");
|
|
7
9
|
const LimitsAPI = tslib_1.__importStar(require("./limits.js"));
|
|
8
10
|
const limits_1 = require("./limits.js");
|
|
9
11
|
class Organization extends resource_1.APIResource {
|
|
10
12
|
constructor() {
|
|
11
13
|
super(...arguments);
|
|
14
|
+
this.entitlements = new EntitlementsAPI.Entitlements(this._client);
|
|
12
15
|
this.limits = new LimitsAPI.Limits(this._client);
|
|
13
16
|
}
|
|
14
17
|
}
|
|
15
18
|
exports.Organization = Organization;
|
|
19
|
+
Organization.Entitlements = entitlements_1.Entitlements;
|
|
16
20
|
Organization.Limits = limits_1.Limits;
|
|
17
21
|
//# sourceMappingURL=organization.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organization.js","sourceRoot":"","sources":["../../src/resources/organization/organization.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,+DAAsC;AACtC,wCAAwF;AAExF,MAAa,YAAa,SAAQ,sBAAW;IAA7C;;QACE,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAChE,CAAC;CAAA;
|
|
1
|
+
{"version":3,"file":"organization.js","sourceRoot":"","sources":["../../src/resources/organization/organization.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,2EAAkD;AAClD,oDAA+D;AAC/D,+DAAsC;AACtC,wCAAwF;AAExF,MAAa,YAAa,SAAQ,sBAAW;IAA7C;;QACE,iBAAY,GAAiC,IAAI,eAAe,CAAC,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC5F,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAChE,CAAC;CAAA;AAHD,oCAGC;AAED,YAAY,CAAC,YAAY,GAAG,2BAAY,CAAC;AACzC,YAAY,CAAC,MAAM,GAAG,eAAM,CAAC"}
|
|
@@ -1,12 +1,16 @@
|
|
|
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 EntitlementsAPI from "./entitlements.mjs";
|
|
4
|
+
import { Entitlements } from "./entitlements.mjs";
|
|
3
5
|
import * as LimitsAPI from "./limits.mjs";
|
|
4
6
|
import { Limits } from "./limits.mjs";
|
|
5
7
|
export class Organization extends APIResource {
|
|
6
8
|
constructor() {
|
|
7
9
|
super(...arguments);
|
|
10
|
+
this.entitlements = new EntitlementsAPI.Entitlements(this._client);
|
|
8
11
|
this.limits = new LimitsAPI.Limits(this._client);
|
|
9
12
|
}
|
|
10
13
|
}
|
|
14
|
+
Organization.Entitlements = Entitlements;
|
|
11
15
|
Organization.Limits = Limits;
|
|
12
16
|
//# sourceMappingURL=organization.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organization.mjs","sourceRoot":"","sources":["../../src/resources/organization/organization.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,SAAS,qBAAiB;AACtC,OAAO,EAAqB,MAAM,EAAqC,qBAAiB;AAExF,MAAM,OAAO,YAAa,SAAQ,WAAW;IAA7C;;QACE,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAChE,CAAC;CAAA;AAED,YAAY,CAAC,MAAM,GAAG,MAAM,CAAC"}
|
|
1
|
+
{"version":3,"file":"organization.mjs","sourceRoot":"","sources":["../../src/resources/organization/organization.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,eAAe,2BAAuB;AAClD,OAAO,EAAE,YAAY,EAAmB,2BAAuB;AAC/D,OAAO,KAAK,SAAS,qBAAiB;AACtC,OAAO,EAAqB,MAAM,EAAqC,qBAAiB;AAExF,MAAM,OAAO,YAAa,SAAQ,WAAW;IAA7C;;QACE,iBAAY,GAAiC,IAAI,eAAe,CAAC,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC5F,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAChE,CAAC;CAAA;AAED,YAAY,CAAC,YAAY,GAAG,YAAY,CAAC;AACzC,YAAY,CAAC,MAAM,GAAG,MAAM,CAAC"}
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
+
import { APIPromise } from "../../core/api-promise.mjs";
|
|
3
|
+
import { OffsetPagination, type OffsetPaginationParams, PagePromise } from "../../core/pagination.mjs";
|
|
4
|
+
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
5
|
+
/**
|
|
6
|
+
* Stream live telemetry events from a browser session, and manage the destinations sessions export them to.
|
|
7
|
+
*/
|
|
8
|
+
export declare class Destinations extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Create an OTLP export destination in the resolved project. Names must be unique
|
|
11
|
+
* within the project.
|
|
12
|
+
*/
|
|
13
|
+
create(body: DestinationCreateParams, options?: RequestOptions): APIPromise<OtlpDestination>;
|
|
14
|
+
/**
|
|
15
|
+
* Retrieve a single OTLP destination in the resolved project by its ID or name.
|
|
16
|
+
*/
|
|
17
|
+
retrieve(idOrName: string, options?: RequestOptions): APIPromise<OtlpDestination>;
|
|
18
|
+
/**
|
|
19
|
+
* Update an OTLP destination. Sessions already exporting to it pick up the new
|
|
20
|
+
* values without restarting, which makes this the way to rotate credentials
|
|
21
|
+
* without interrupting export.
|
|
22
|
+
*
|
|
23
|
+
* Names must be unique within the project. Renaming is refused with a 409 while a
|
|
24
|
+
* managed auth connection selects this destination by name, since that connection
|
|
25
|
+
* resolves the name on every login. Every other field, including `headers`, stays
|
|
26
|
+
* editable.
|
|
27
|
+
*/
|
|
28
|
+
update(idOrName: string, body: DestinationUpdateParams, options?: RequestOptions): APIPromise<OtlpDestination>;
|
|
29
|
+
/**
|
|
30
|
+
* List OTLP export destinations in the resolved project.
|
|
31
|
+
*/
|
|
32
|
+
list(query?: DestinationListParams | null | undefined, options?: RequestOptions): PagePromise<OtlpDestinationsOffsetPagination, OtlpDestination>;
|
|
33
|
+
/**
|
|
34
|
+
* Delete an OTLP destination. Sessions bound to it are still exporting, so the
|
|
35
|
+
* delete is refused with a 409 while any exist; either wait for those sessions to
|
|
36
|
+
* end or delete them first. It is refused the same way while a managed auth
|
|
37
|
+
* connection still selects it, because that connection re-resolves the destination
|
|
38
|
+
* on every login, and while a managed auth login using it is still in progress.
|
|
39
|
+
*/
|
|
40
|
+
delete(idOrName: string, options?: RequestOptions): APIPromise<void>;
|
|
41
|
+
}
|
|
42
|
+
export type OtlpDestinationsOffsetPagination = OffsetPagination<OtlpDestination>;
|
|
43
|
+
/**
|
|
44
|
+
* An OTLP endpoint to export browser session telemetry to. Reference one from
|
|
45
|
+
* `telemetry.export.otlp.destination` when creating a browser to export that
|
|
46
|
+
* session's captured telemetry to it.
|
|
47
|
+
*/
|
|
48
|
+
export interface OtlpDestination {
|
|
49
|
+
id: string;
|
|
50
|
+
created_at: string;
|
|
51
|
+
/**
|
|
52
|
+
* OTLP/HTTP endpoint telemetry is sent to.
|
|
53
|
+
*/
|
|
54
|
+
endpoint: string;
|
|
55
|
+
/**
|
|
56
|
+
* Headers sent with each export request. Names are returned in canonical form
|
|
57
|
+
* (`Authorization`, not `authorization`). Values are returned redacted as empty
|
|
58
|
+
* strings, so the keys are visible but the credentials are not.
|
|
59
|
+
*/
|
|
60
|
+
headers: {
|
|
61
|
+
[key: string]: string;
|
|
62
|
+
};
|
|
63
|
+
/**
|
|
64
|
+
* Unique within the project. Usable in place of the ID when selecting a
|
|
65
|
+
* destination, so it cannot be shaped like an ID.
|
|
66
|
+
*/
|
|
67
|
+
name: string;
|
|
68
|
+
updated_at: string;
|
|
69
|
+
description?: string;
|
|
70
|
+
}
|
|
71
|
+
export interface DestinationCreateParams {
|
|
72
|
+
/**
|
|
73
|
+
* Base endpoint of the OTLP/HTTP collector, without a signal path. Kernel appends
|
|
74
|
+
* the signal path itself, so pass `https://api.honeycomb.io` rather than
|
|
75
|
+
* `https://api.honeycomb.io/v1/logs`. If your provider's docs give you a
|
|
76
|
+
* signal-specific URL, drop the trailing `/v1/logs`, `/v1/traces`, or
|
|
77
|
+
* `/v1/metrics` — an endpoint that already carries one is rejected.
|
|
78
|
+
*
|
|
79
|
+
* Must be http or https, must resolve to a public address, and must carry no query
|
|
80
|
+
* string or fragment. Examples: `https://api.honeycomb.io`,
|
|
81
|
+
* `https://otlp-gateway-prod-us-east-0.grafana.net/otlp`,
|
|
82
|
+
* `https://otlp.datadoghq.com` (Datadog's OTLP intake for US1, not its logs
|
|
83
|
+
* intake).
|
|
84
|
+
*/
|
|
85
|
+
endpoint: string;
|
|
86
|
+
/**
|
|
87
|
+
* Unique within the project.
|
|
88
|
+
*/
|
|
89
|
+
name: string;
|
|
90
|
+
description?: string;
|
|
91
|
+
/**
|
|
92
|
+
* Headers sent with each export request, typically an ingestion key. Encrypted at
|
|
93
|
+
* rest and returned redacted. Names and values must be valid HTTP header tokens,
|
|
94
|
+
* and the names and values together cannot exceed 8192 bytes. Names are matched
|
|
95
|
+
* case-insensitively and stored canonicalized, so supplying two spellings of one
|
|
96
|
+
* header is rejected.
|
|
97
|
+
*/
|
|
98
|
+
headers?: {
|
|
99
|
+
[key: string]: string;
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
export interface DestinationUpdateParams {
|
|
103
|
+
description?: string;
|
|
104
|
+
/**
|
|
105
|
+
* Base endpoint of the OTLP/HTTP collector, without a signal path. Same rules as
|
|
106
|
+
* on create.
|
|
107
|
+
*/
|
|
108
|
+
endpoint?: string;
|
|
109
|
+
/**
|
|
110
|
+
* Edits stored headers key by key rather than replacing the map. A string value
|
|
111
|
+
* adds or replaces that header, `null` deletes it, and any key you omit is left as
|
|
112
|
+
* it is. Names are matched case-insensitively, so `authorization` replaces a
|
|
113
|
+
* stored `Authorization` rather than adding a second entry. This is the credential
|
|
114
|
+
* rotation path; sessions already exporting pick up the new values without
|
|
115
|
+
* restarting. Names and values must be valid HTTP header tokens, and the names and
|
|
116
|
+
* values together cannot exceed 8192 bytes.
|
|
117
|
+
*/
|
|
118
|
+
headers?: {
|
|
119
|
+
[key: string]: string | null;
|
|
120
|
+
};
|
|
121
|
+
name?: string;
|
|
122
|
+
}
|
|
123
|
+
export interface DestinationListParams extends OffsetPaginationParams {
|
|
124
|
+
/**
|
|
125
|
+
* Exact-match filter on destination name using the database collation. In
|
|
126
|
+
* production, matching is case- and accent-insensitive.
|
|
127
|
+
*/
|
|
128
|
+
name?: string;
|
|
129
|
+
/**
|
|
130
|
+
* Case-insensitive substring match against destination name or endpoint. IDs match
|
|
131
|
+
* by exact value.
|
|
132
|
+
*/
|
|
133
|
+
query?: string;
|
|
134
|
+
}
|
|
135
|
+
export declare namespace Destinations {
|
|
136
|
+
export { type OtlpDestination as OtlpDestination, type OtlpDestinationsOffsetPagination as OtlpDestinationsOffsetPagination, type DestinationCreateParams as DestinationCreateParams, type DestinationUpdateParams as DestinationUpdateParams, type DestinationListParams as DestinationListParams, };
|
|
137
|
+
}
|
|
138
|
+
//# sourceMappingURL=destinations.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"destinations.d.mts","sourceRoot":"","sources":["../../src/resources/telemetry/destinations.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,gBAAgB,EAAE,KAAK,sBAAsB,EAAE,WAAW,EAAE,kCAA8B;AAEnG,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE;;GAEG;AACH,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;OAGG;IACH,MAAM,CAAC,IAAI,EAAE,uBAAuB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,eAAe,CAAC;IAI5F;;OAEG;IACH,QAAQ,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,eAAe,CAAC;IAIjF;;;;;;;;;OASG;IACH,MAAM,CACJ,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,uBAAuB,EAC7B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,eAAe,CAAC;IAI9B;;OAEG;IACH,IAAI,CACF,KAAK,GAAE,qBAAqB,GAAG,IAAI,GAAG,SAAc,EACpD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,gCAAgC,EAAE,eAAe,CAAC;IAOjE;;;;;;OAMG;IACH,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;CAMrE;AAED,MAAM,MAAM,gCAAgC,GAAG,gBAAgB,CAAC,eAAe,CAAC,CAAC;AAEjF;;;;GAIG;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AI,qBAAqB,GACpD,CAAC;CACH"}
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../../core/api-promise.js";
|
|
3
|
+
import { OffsetPagination, type OffsetPaginationParams, PagePromise } from "../../core/pagination.js";
|
|
4
|
+
import { RequestOptions } from "../../internal/request-options.js";
|
|
5
|
+
/**
|
|
6
|
+
* Stream live telemetry events from a browser session, and manage the destinations sessions export them to.
|
|
7
|
+
*/
|
|
8
|
+
export declare class Destinations extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Create an OTLP export destination in the resolved project. Names must be unique
|
|
11
|
+
* within the project.
|
|
12
|
+
*/
|
|
13
|
+
create(body: DestinationCreateParams, options?: RequestOptions): APIPromise<OtlpDestination>;
|
|
14
|
+
/**
|
|
15
|
+
* Retrieve a single OTLP destination in the resolved project by its ID or name.
|
|
16
|
+
*/
|
|
17
|
+
retrieve(idOrName: string, options?: RequestOptions): APIPromise<OtlpDestination>;
|
|
18
|
+
/**
|
|
19
|
+
* Update an OTLP destination. Sessions already exporting to it pick up the new
|
|
20
|
+
* values without restarting, which makes this the way to rotate credentials
|
|
21
|
+
* without interrupting export.
|
|
22
|
+
*
|
|
23
|
+
* Names must be unique within the project. Renaming is refused with a 409 while a
|
|
24
|
+
* managed auth connection selects this destination by name, since that connection
|
|
25
|
+
* resolves the name on every login. Every other field, including `headers`, stays
|
|
26
|
+
* editable.
|
|
27
|
+
*/
|
|
28
|
+
update(idOrName: string, body: DestinationUpdateParams, options?: RequestOptions): APIPromise<OtlpDestination>;
|
|
29
|
+
/**
|
|
30
|
+
* List OTLP export destinations in the resolved project.
|
|
31
|
+
*/
|
|
32
|
+
list(query?: DestinationListParams | null | undefined, options?: RequestOptions): PagePromise<OtlpDestinationsOffsetPagination, OtlpDestination>;
|
|
33
|
+
/**
|
|
34
|
+
* Delete an OTLP destination. Sessions bound to it are still exporting, so the
|
|
35
|
+
* delete is refused with a 409 while any exist; either wait for those sessions to
|
|
36
|
+
* end or delete them first. It is refused the same way while a managed auth
|
|
37
|
+
* connection still selects it, because that connection re-resolves the destination
|
|
38
|
+
* on every login, and while a managed auth login using it is still in progress.
|
|
39
|
+
*/
|
|
40
|
+
delete(idOrName: string, options?: RequestOptions): APIPromise<void>;
|
|
41
|
+
}
|
|
42
|
+
export type OtlpDestinationsOffsetPagination = OffsetPagination<OtlpDestination>;
|
|
43
|
+
/**
|
|
44
|
+
* An OTLP endpoint to export browser session telemetry to. Reference one from
|
|
45
|
+
* `telemetry.export.otlp.destination` when creating a browser to export that
|
|
46
|
+
* session's captured telemetry to it.
|
|
47
|
+
*/
|
|
48
|
+
export interface OtlpDestination {
|
|
49
|
+
id: string;
|
|
50
|
+
created_at: string;
|
|
51
|
+
/**
|
|
52
|
+
* OTLP/HTTP endpoint telemetry is sent to.
|
|
53
|
+
*/
|
|
54
|
+
endpoint: string;
|
|
55
|
+
/**
|
|
56
|
+
* Headers sent with each export request. Names are returned in canonical form
|
|
57
|
+
* (`Authorization`, not `authorization`). Values are returned redacted as empty
|
|
58
|
+
* strings, so the keys are visible but the credentials are not.
|
|
59
|
+
*/
|
|
60
|
+
headers: {
|
|
61
|
+
[key: string]: string;
|
|
62
|
+
};
|
|
63
|
+
/**
|
|
64
|
+
* Unique within the project. Usable in place of the ID when selecting a
|
|
65
|
+
* destination, so it cannot be shaped like an ID.
|
|
66
|
+
*/
|
|
67
|
+
name: string;
|
|
68
|
+
updated_at: string;
|
|
69
|
+
description?: string;
|
|
70
|
+
}
|
|
71
|
+
export interface DestinationCreateParams {
|
|
72
|
+
/**
|
|
73
|
+
* Base endpoint of the OTLP/HTTP collector, without a signal path. Kernel appends
|
|
74
|
+
* the signal path itself, so pass `https://api.honeycomb.io` rather than
|
|
75
|
+
* `https://api.honeycomb.io/v1/logs`. If your provider's docs give you a
|
|
76
|
+
* signal-specific URL, drop the trailing `/v1/logs`, `/v1/traces`, or
|
|
77
|
+
* `/v1/metrics` — an endpoint that already carries one is rejected.
|
|
78
|
+
*
|
|
79
|
+
* Must be http or https, must resolve to a public address, and must carry no query
|
|
80
|
+
* string or fragment. Examples: `https://api.honeycomb.io`,
|
|
81
|
+
* `https://otlp-gateway-prod-us-east-0.grafana.net/otlp`,
|
|
82
|
+
* `https://otlp.datadoghq.com` (Datadog's OTLP intake for US1, not its logs
|
|
83
|
+
* intake).
|
|
84
|
+
*/
|
|
85
|
+
endpoint: string;
|
|
86
|
+
/**
|
|
87
|
+
* Unique within the project.
|
|
88
|
+
*/
|
|
89
|
+
name: string;
|
|
90
|
+
description?: string;
|
|
91
|
+
/**
|
|
92
|
+
* Headers sent with each export request, typically an ingestion key. Encrypted at
|
|
93
|
+
* rest and returned redacted. Names and values must be valid HTTP header tokens,
|
|
94
|
+
* and the names and values together cannot exceed 8192 bytes. Names are matched
|
|
95
|
+
* case-insensitively and stored canonicalized, so supplying two spellings of one
|
|
96
|
+
* header is rejected.
|
|
97
|
+
*/
|
|
98
|
+
headers?: {
|
|
99
|
+
[key: string]: string;
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
export interface DestinationUpdateParams {
|
|
103
|
+
description?: string;
|
|
104
|
+
/**
|
|
105
|
+
* Base endpoint of the OTLP/HTTP collector, without a signal path. Same rules as
|
|
106
|
+
* on create.
|
|
107
|
+
*/
|
|
108
|
+
endpoint?: string;
|
|
109
|
+
/**
|
|
110
|
+
* Edits stored headers key by key rather than replacing the map. A string value
|
|
111
|
+
* adds or replaces that header, `null` deletes it, and any key you omit is left as
|
|
112
|
+
* it is. Names are matched case-insensitively, so `authorization` replaces a
|
|
113
|
+
* stored `Authorization` rather than adding a second entry. This is the credential
|
|
114
|
+
* rotation path; sessions already exporting pick up the new values without
|
|
115
|
+
* restarting. Names and values must be valid HTTP header tokens, and the names and
|
|
116
|
+
* values together cannot exceed 8192 bytes.
|
|
117
|
+
*/
|
|
118
|
+
headers?: {
|
|
119
|
+
[key: string]: string | null;
|
|
120
|
+
};
|
|
121
|
+
name?: string;
|
|
122
|
+
}
|
|
123
|
+
export interface DestinationListParams extends OffsetPaginationParams {
|
|
124
|
+
/**
|
|
125
|
+
* Exact-match filter on destination name using the database collation. In
|
|
126
|
+
* production, matching is case- and accent-insensitive.
|
|
127
|
+
*/
|
|
128
|
+
name?: string;
|
|
129
|
+
/**
|
|
130
|
+
* Case-insensitive substring match against destination name or endpoint. IDs match
|
|
131
|
+
* by exact value.
|
|
132
|
+
*/
|
|
133
|
+
query?: string;
|
|
134
|
+
}
|
|
135
|
+
export declare namespace Destinations {
|
|
136
|
+
export { type OtlpDestination as OtlpDestination, type OtlpDestinationsOffsetPagination as OtlpDestinationsOffsetPagination, type DestinationCreateParams as DestinationCreateParams, type DestinationUpdateParams as DestinationUpdateParams, type DestinationListParams as DestinationListParams, };
|
|
137
|
+
}
|
|
138
|
+
//# sourceMappingURL=destinations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"destinations.d.ts","sourceRoot":"","sources":["../../src/resources/telemetry/destinations.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,gBAAgB,EAAE,KAAK,sBAAsB,EAAE,WAAW,EAAE,iCAA8B;AAEnG,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE;;GAEG;AACH,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;OAGG;IACH,MAAM,CAAC,IAAI,EAAE,uBAAuB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,eAAe,CAAC;IAI5F;;OAEG;IACH,QAAQ,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,eAAe,CAAC;IAIjF;;;;;;;;;OASG;IACH,MAAM,CACJ,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,uBAAuB,EAC7B,OAAO,CAAC,EAAE,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AAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,qBAAsB,SAAQ,sBAAsB;IACnE;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,gCAAgC,IAAI,gCAAgC,EACzE,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,qBAAqB,IAAI,qBAAqB,GACpD,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.Destinations = void 0;
|
|
5
|
+
const resource_1 = require("../../core/resource.js");
|
|
6
|
+
const pagination_1 = require("../../core/pagination.js");
|
|
7
|
+
const headers_1 = require("../../internal/headers.js");
|
|
8
|
+
const path_1 = require("../../internal/utils/path.js");
|
|
9
|
+
/**
|
|
10
|
+
* Stream live telemetry events from a browser session, and manage the destinations sessions export them to.
|
|
11
|
+
*/
|
|
12
|
+
class Destinations extends resource_1.APIResource {
|
|
13
|
+
/**
|
|
14
|
+
* Create an OTLP export destination in the resolved project. Names must be unique
|
|
15
|
+
* within the project.
|
|
16
|
+
*/
|
|
17
|
+
create(body, options) {
|
|
18
|
+
return this._client.post('/telemetry/destinations', { body, ...options });
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Retrieve a single OTLP destination in the resolved project by its ID or name.
|
|
22
|
+
*/
|
|
23
|
+
retrieve(idOrName, options) {
|
|
24
|
+
return this._client.get((0, path_1.path) `/telemetry/destinations/${idOrName}`, options);
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Update an OTLP destination. Sessions already exporting to it pick up the new
|
|
28
|
+
* values without restarting, which makes this the way to rotate credentials
|
|
29
|
+
* without interrupting export.
|
|
30
|
+
*
|
|
31
|
+
* Names must be unique within the project. Renaming is refused with a 409 while a
|
|
32
|
+
* managed auth connection selects this destination by name, since that connection
|
|
33
|
+
* resolves the name on every login. Every other field, including `headers`, stays
|
|
34
|
+
* editable.
|
|
35
|
+
*/
|
|
36
|
+
update(idOrName, body, options) {
|
|
37
|
+
return this._client.patch((0, path_1.path) `/telemetry/destinations/${idOrName}`, { body, ...options });
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* List OTLP export destinations in the resolved project.
|
|
41
|
+
*/
|
|
42
|
+
list(query = {}, options) {
|
|
43
|
+
return this._client.getAPIList('/telemetry/destinations', (pagination_1.OffsetPagination), {
|
|
44
|
+
query,
|
|
45
|
+
...options,
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Delete an OTLP destination. Sessions bound to it are still exporting, so the
|
|
50
|
+
* delete is refused with a 409 while any exist; either wait for those sessions to
|
|
51
|
+
* end or delete them first. It is refused the same way while a managed auth
|
|
52
|
+
* connection still selects it, because that connection re-resolves the destination
|
|
53
|
+
* on every login, and while a managed auth login using it is still in progress.
|
|
54
|
+
*/
|
|
55
|
+
delete(idOrName, options) {
|
|
56
|
+
return this._client.delete((0, path_1.path) `/telemetry/destinations/${idOrName}`, {
|
|
57
|
+
...options,
|
|
58
|
+
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
exports.Destinations = Destinations;
|
|
63
|
+
//# sourceMappingURL=destinations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"destinations.js","sourceRoot":"","sources":["../../src/resources/telemetry/destinations.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAElD,yDAAmG;AACnG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I spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
+
import { OffsetPagination } from "../../core/pagination.mjs";
|
|
4
|
+
import { buildHeaders } from "../../internal/headers.mjs";
|
|
5
|
+
import { path } from "../../internal/utils/path.mjs";
|
|
6
|
+
/**
|
|
7
|
+
* Stream live telemetry events from a browser session, and manage the destinations sessions export them to.
|
|
8
|
+
*/
|
|
9
|
+
export class Destinations extends APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* Create an OTLP export destination in the resolved project. Names must be unique
|
|
12
|
+
* within the project.
|
|
13
|
+
*/
|
|
14
|
+
create(body, options) {
|
|
15
|
+
return this._client.post('/telemetry/destinations', { body, ...options });
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Retrieve a single OTLP destination in the resolved project by its ID or name.
|
|
19
|
+
*/
|
|
20
|
+
retrieve(idOrName, options) {
|
|
21
|
+
return this._client.get(path `/telemetry/destinations/${idOrName}`, options);
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Update an OTLP destination. Sessions already exporting to it pick up the new
|
|
25
|
+
* values without restarting, which makes this the way to rotate credentials
|
|
26
|
+
* without interrupting export.
|
|
27
|
+
*
|
|
28
|
+
* Names must be unique within the project. Renaming is refused with a 409 while a
|
|
29
|
+
* managed auth connection selects this destination by name, since that connection
|
|
30
|
+
* resolves the name on every login. Every other field, including `headers`, stays
|
|
31
|
+
* editable.
|
|
32
|
+
*/
|
|
33
|
+
update(idOrName, body, options) {
|
|
34
|
+
return this._client.patch(path `/telemetry/destinations/${idOrName}`, { body, ...options });
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* List OTLP export destinations in the resolved project.
|
|
38
|
+
*/
|
|
39
|
+
list(query = {}, options) {
|
|
40
|
+
return this._client.getAPIList('/telemetry/destinations', (OffsetPagination), {
|
|
41
|
+
query,
|
|
42
|
+
...options,
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Delete an OTLP destination. Sessions bound to it are still exporting, so the
|
|
47
|
+
* delete is refused with a 409 while any exist; either wait for those sessions to
|
|
48
|
+
* end or delete them first. It is refused the same way while a managed auth
|
|
49
|
+
* connection still selects it, because that connection re-resolves the destination
|
|
50
|
+
* on every login, and while a managed auth login using it is still in progress.
|
|
51
|
+
*/
|
|
52
|
+
delete(idOrName, options) {
|
|
53
|
+
return this._client.delete(path `/telemetry/destinations/${idOrName}`, {
|
|
54
|
+
...options,
|
|
55
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
//# sourceMappingURL=destinations.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"destinations.mjs","sourceRoot":"","sources":["../../src/resources/telemetry/destinations.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAElD,OAAO,EAAE,gBAAgB,EAA4C,kCAA8B;AACnG,OAAO,EAAE,YAAY,EAAE,mCAA+B;AAEtD,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD;;GAEG;AACH,MAAM,OAAO,YAAa,SAAQ,WAAW;IAC3C;;;OAGG;IACH,MAAM,CAAC,IAA6B,EAAE,OAAwB;QAC5D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,yBAAyB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5E,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,QAAgB,EAAE,OAAwB;QACjD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,2BAA2B,QAAQ,EAAE,EAAE,OAAO,CAAC,CAAC;IAC9E,CAAC;IAED;;;;;;;;;OASG;IACH,MAAM,CACJ,QAAgB,EAChB,IAA6B,EAC7B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,2BAA2B,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7F,CAAC;IAED;;OAEG;IACH,IAAI,CACF,QAAkD,EAAE,EACpD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,yBAAyB,EAAE,CAAA,gBAAiC,CAAA,EAAE;YAC3F,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;OAMG;IACH,MAAM,CAAC,QAAgB,EAAE,OAAwB;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,2BAA2B,QAAQ,EAAE,EAAE;YACpE,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,3 @@
|
|
|
1
|
+
export { Destinations, type OtlpDestination, type DestinationCreateParams, type DestinationUpdateParams, type DestinationListParams, type OtlpDestinationsOffsetPagination, } from "./destinations.mjs";
|
|
2
|
+
export { Telemetry } from "./telemetry.mjs";
|
|
3
|
+
//# sourceMappingURL=index.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/telemetry/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,YAAY,EACZ,KAAK,eAAe,EACpB,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,gCAAgC,GACtC,2BAAuB;AACxB,OAAO,EAAE,SAAS,EAAE,wBAAoB"}
|