@roarkanalytics/sdk 4.11.0 → 4.12.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 +12 -0
- package/client.d.mts +6 -0
- package/client.d.mts.map +1 -1
- package/client.d.ts +6 -0
- package/client.d.ts.map +1 -1
- package/client.js +6 -0
- package/client.js.map +1 -1
- package/client.mjs +6 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/index.d.mts +2 -0
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +2 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +5 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -0
- package/resources/index.mjs.map +1 -1
- package/resources/me.d.mts +56 -0
- package/resources/me.d.mts.map +1 -0
- package/resources/me.d.ts +56 -0
- package/resources/me.d.ts.map +1 -0
- package/resources/me.js +23 -0
- package/resources/me.js.map +1 -0
- package/resources/me.mjs +19 -0
- package/resources/me.mjs.map +1 -0
- package/resources/project.d.mts +51 -0
- package/resources/project.d.mts.map +1 -0
- package/resources/project.d.ts +51 -0
- package/resources/project.d.ts.map +1 -0
- package/resources/project.js +24 -0
- package/resources/project.js.map +1 -0
- package/resources/project.mjs +20 -0
- package/resources/project.mjs.map +1 -0
- package/src/client.ts +10 -0
- package/src/resources/index.ts +2 -0
- package/src/resources/me.ts +76 -0
- package/src/resources/project.ts +65 -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
package/resources/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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.Webhook = exports.SimulationToolFixture = exports.SimulationTemplate = exports.SimulationRunPlanJob = exports.SimulationRunPlan = exports.SimulationPersona = exports.SimulationJobToolMock = exports.SimulationJob = exports.SimulationEnvironment = exports.Simulation = exports.MetricVariant = exports.MetricPolicy = exports.MetricCollectionJob = exports.Metric = exports.Health = exports.HTTPRequestDefinition = exports.CustomerFlowEdgeCase = exports.CustomerFlow = exports.Config = exports.Call = exports.Benchmark = exports.AutoimproveJob = exports.AgentPrompt = exports.AgentEndpoint = exports.AgentConfig = exports.Agent = void 0;
|
|
4
|
+
exports.Webhook = exports.SimulationToolFixture = exports.SimulationTemplate = exports.SimulationRunPlanJob = exports.SimulationRunPlan = exports.SimulationPersona = exports.SimulationJobToolMock = exports.SimulationJob = exports.SimulationEnvironment = exports.Simulation = exports.Project = exports.MetricVariant = exports.MetricPolicy = exports.MetricCollectionJob = exports.Metric = exports.Me = exports.Health = exports.HTTPRequestDefinition = exports.CustomerFlowEdgeCase = exports.CustomerFlow = exports.Config = exports.Call = exports.Benchmark = exports.AutoimproveJob = exports.AgentPrompt = exports.AgentEndpoint = exports.AgentConfig = exports.Agent = void 0;
|
|
5
5
|
var agent_1 = require("./agent.js");
|
|
6
6
|
Object.defineProperty(exports, "Agent", { enumerable: true, get: function () { return agent_1.Agent; } });
|
|
7
7
|
var agent_config_1 = require("./agent-config.js");
|
|
@@ -26,6 +26,8 @@ var http_request_definition_1 = require("./http-request-definition.js");
|
|
|
26
26
|
Object.defineProperty(exports, "HTTPRequestDefinition", { enumerable: true, get: function () { return http_request_definition_1.HTTPRequestDefinition; } });
|
|
27
27
|
var health_1 = require("./health.js");
|
|
28
28
|
Object.defineProperty(exports, "Health", { enumerable: true, get: function () { return health_1.Health; } });
|
|
29
|
+
var me_1 = require("./me.js");
|
|
30
|
+
Object.defineProperty(exports, "Me", { enumerable: true, get: function () { return me_1.Me; } });
|
|
29
31
|
var metric_1 = require("./metric.js");
|
|
30
32
|
Object.defineProperty(exports, "Metric", { enumerable: true, get: function () { return metric_1.Metric; } });
|
|
31
33
|
var metric_collection_job_1 = require("./metric-collection-job.js");
|
|
@@ -34,6 +36,8 @@ var metric_policy_1 = require("./metric-policy.js");
|
|
|
34
36
|
Object.defineProperty(exports, "MetricPolicy", { enumerable: true, get: function () { return metric_policy_1.MetricPolicy; } });
|
|
35
37
|
var metric_variant_1 = require("./metric-variant.js");
|
|
36
38
|
Object.defineProperty(exports, "MetricVariant", { enumerable: true, get: function () { return metric_variant_1.MetricVariant; } });
|
|
39
|
+
var project_1 = require("./project.js");
|
|
40
|
+
Object.defineProperty(exports, "Project", { enumerable: true, get: function () { return project_1.Project; } });
|
|
37
41
|
var simulation_1 = require("./simulation.js");
|
|
38
42
|
Object.defineProperty(exports, "Simulation", { enumerable: true, get: function () { return simulation_1.Simulation; } });
|
|
39
43
|
var simulation_environment_1 = require("./simulation-environment.js");
|
package/resources/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,oCAWiB;AAVf,8FAAA,KAAK,OAAA;AAWP,kDAWwB;AAVtB,2GAAA,WAAW,OAAA;AAWb,sDAS0B;AARxB,+GAAA,aAAa,OAAA;AASf,kDAOwB;AANtB,2GAAA,WAAW,OAAA;AAOb,wDAc2B;AAbzB,iHAAA,cAAc,OAAA;AAchB,4CAaqB;AAZnB,sGAAA,SAAS,OAAA;AAaX,kCAcgB;AAbd,4FAAA,IAAI,OAAA;AAcN,sCAQkB;AAPhB,gGAAA,MAAM,OAAA;AAQR,oDAiByB;AAhBvB,6GAAA,YAAY,OAAA;AAiBd,wEAUmC;AATjC,+HAAA,oBAAoB,OAAA;AAUtB,wEASmC;AARjC,gIAAA,qBAAqB,OAAA;AASvB,sCAA0D;AAAjD,gGAAA,MAAM,OAAA;AACf,sCAQkB;AAPhB,gGAAA,MAAM,OAAA;AAQR,oEAOiC;AAN/B,4HAAA,mBAAmB,OAAA;AAOrB,oDAUyB;AATvB,6GAAA,YAAY,OAAA;AAUd,sDAW0B;AAVxB,+GAAA,aAAa,OAAA;AAWf,8CAMsB;AALpB,wGAAA,UAAU,OAAA;AAMZ,sEAUkC;AAThC,+HAAA,qBAAqB,OAAA;AAUvB,sDAK0B;AAJxB,+GAAA,aAAa,OAAA;AAKf,0EAA2G;AAAlG,iIAAA,qBAAqB,OAAA;AAC9B,8DAS8B;AAR5B,uHAAA,iBAAiB,OAAA;AASnB,gEAU+B;AAT7B,wHAAA,iBAAiB,OAAA;AAUnB,wEAQmC;AAPjC,+HAAA,oBAAoB,OAAA;AAQtB,gEAAgG;AAAvF,yHAAA,kBAAkB,OAAA;AAC3B,wEASmC;AARjC,gIAAA,qBAAqB,OAAA;AASvB,wCAQmB;AAPjB,kGAAA,OAAO,OAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,oCAWiB;AAVf,8FAAA,KAAK,OAAA;AAWP,kDAWwB;AAVtB,2GAAA,WAAW,OAAA;AAWb,sDAS0B;AARxB,+GAAA,aAAa,OAAA;AASf,kDAOwB;AANtB,2GAAA,WAAW,OAAA;AAOb,wDAc2B;AAbzB,iHAAA,cAAc,OAAA;AAchB,4CAaqB;AAZnB,sGAAA,SAAS,OAAA;AAaX,kCAcgB;AAbd,4FAAA,IAAI,OAAA;AAcN,sCAQkB;AAPhB,gGAAA,MAAM,OAAA;AAQR,oDAiByB;AAhBvB,6GAAA,YAAY,OAAA;AAiBd,wEAUmC;AATjC,+HAAA,oBAAoB,OAAA;AAUtB,wEASmC;AARjC,gIAAA,qBAAqB,OAAA;AASvB,sCAA0D;AAAjD,gGAAA,MAAM,OAAA;AACf,8BAA8C;AAArC,wFAAA,EAAE,OAAA;AACX,sCAQkB;AAPhB,gGAAA,MAAM,OAAA;AAQR,oEAOiC;AAN/B,4HAAA,mBAAmB,OAAA;AAOrB,oDAUyB;AATvB,6GAAA,YAAY,OAAA;AAUd,sDAW0B;AAVxB,+GAAA,aAAa,OAAA;AAWf,wCAA8D;AAArD,kGAAA,OAAO,OAAA;AAChB,8CAMsB;AALpB,wGAAA,UAAU,OAAA;AAMZ,sEAUkC;AAThC,+HAAA,qBAAqB,OAAA;AAUvB,sDAK0B;AAJxB,+GAAA,aAAa,OAAA;AAKf,0EAA2G;AAAlG,iIAAA,qBAAqB,OAAA;AAC9B,8DAS8B;AAR5B,uHAAA,iBAAiB,OAAA;AASnB,gEAU+B;AAT7B,wHAAA,iBAAiB,OAAA;AAUnB,wEAQmC;AAPjC,+HAAA,oBAAoB,OAAA;AAQtB,gEAAgG;AAAvF,yHAAA,kBAAkB,OAAA;AAC3B,wEASmC;AARjC,gIAAA,qBAAqB,OAAA;AASvB,wCAQmB;AAPjB,kGAAA,OAAO,OAAA"}
|
package/resources/index.mjs
CHANGED
|
@@ -11,10 +11,12 @@ export { CustomerFlow, } from "./customer-flow.mjs";
|
|
|
11
11
|
export { CustomerFlowEdgeCase, } from "./customer-flow-edge-case.mjs";
|
|
12
12
|
export { HTTPRequestDefinition, } from "./http-request-definition.mjs";
|
|
13
13
|
export { Health } from "./health.mjs";
|
|
14
|
+
export { Me } from "./me.mjs";
|
|
14
15
|
export { Metric, } from "./metric.mjs";
|
|
15
16
|
export { MetricCollectionJob, } from "./metric-collection-job.mjs";
|
|
16
17
|
export { MetricPolicy, } from "./metric-policy.mjs";
|
|
17
18
|
export { MetricVariant, } from "./metric-variant.mjs";
|
|
19
|
+
export { Project } from "./project.mjs";
|
|
18
20
|
export { Simulation, } from "./simulation.mjs";
|
|
19
21
|
export { SimulationEnvironment, } from "./simulation-environment.mjs";
|
|
20
22
|
export { SimulationJob, } from "./simulation-job.mjs";
|
package/resources/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EACL,KAAK,GAUN,oBAAgB;AACjB,OAAO,EACL,WAAW,GAUZ,2BAAuB;AACxB,OAAO,EACL,aAAa,GAQd,6BAAyB;AAC1B,OAAO,EACL,WAAW,GAMZ,2BAAuB;AACxB,OAAO,EACL,cAAc,GAaf,8BAA0B;AAC3B,OAAO,EACL,SAAS,GAYV,wBAAoB;AACrB,OAAO,EACL,IAAI,GAaL,mBAAe;AAChB,OAAO,EACL,MAAM,GAOP,qBAAiB;AAClB,OAAO,EACL,YAAY,GAgBb,4BAAwB;AACzB,OAAO,EACL,oBAAoB,GASrB,sCAAkC;AACnC,OAAO,EACL,qBAAqB,GAQtB,sCAAkC;AACnC,OAAO,EAAE,MAAM,EAA0B,qBAAiB;AAC1D,OAAO,EACL,MAAM,GAOP,qBAAiB;AAClB,OAAO,EACL,mBAAmB,GAMpB,oCAAgC;AACjC,OAAO,EACL,YAAY,GASb,4BAAwB;AACzB,OAAO,EACL,aAAa,GAUd,6BAAyB;AAC1B,OAAO,EACL,UAAU,GAKX,yBAAqB;AACtB,OAAO,EACL,qBAAqB,GAStB,qCAAiC;AAClC,OAAO,EACL,aAAa,GAId,6BAAyB;AAC1B,OAAO,EAAE,qBAAqB,EAA0C,uCAAmC;AAC3G,OAAO,EACL,iBAAiB,GAQlB,iCAA6B;AAC9B,OAAO,EACL,iBAAiB,GASlB,kCAA8B;AAC/B,OAAO,EACL,oBAAoB,GAOrB,sCAAkC;AACnC,OAAO,EAAE,kBAAkB,EAAuC,kCAA8B;AAChG,OAAO,EACL,qBAAqB,GAQtB,sCAAkC;AACnC,OAAO,EACL,OAAO,GAOR,sBAAkB"}
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EACL,KAAK,GAUN,oBAAgB;AACjB,OAAO,EACL,WAAW,GAUZ,2BAAuB;AACxB,OAAO,EACL,aAAa,GAQd,6BAAyB;AAC1B,OAAO,EACL,WAAW,GAMZ,2BAAuB;AACxB,OAAO,EACL,cAAc,GAaf,8BAA0B;AAC3B,OAAO,EACL,SAAS,GAYV,wBAAoB;AACrB,OAAO,EACL,IAAI,GAaL,mBAAe;AAChB,OAAO,EACL,MAAM,GAOP,qBAAiB;AAClB,OAAO,EACL,YAAY,GAgBb,4BAAwB;AACzB,OAAO,EACL,oBAAoB,GASrB,sCAAkC;AACnC,OAAO,EACL,qBAAqB,GAQtB,sCAAkC;AACnC,OAAO,EAAE,MAAM,EAA0B,qBAAiB;AAC1D,OAAO,EAAE,EAAE,EAAsB,iBAAa;AAC9C,OAAO,EACL,MAAM,GAOP,qBAAiB;AAClB,OAAO,EACL,mBAAmB,GAMpB,oCAAgC;AACjC,OAAO,EACL,YAAY,GASb,4BAAwB;AACzB,OAAO,EACL,aAAa,GAUd,6BAAyB;AAC1B,OAAO,EAAE,OAAO,EAA4B,sBAAkB;AAC9D,OAAO,EACL,UAAU,GAKX,yBAAqB;AACtB,OAAO,EACL,qBAAqB,GAStB,qCAAiC;AAClC,OAAO,EACL,aAAa,GAId,6BAAyB;AAC1B,OAAO,EAAE,qBAAqB,EAA0C,uCAAmC;AAC3G,OAAO,EACL,iBAAiB,GAQlB,iCAA6B;AAC9B,OAAO,EACL,iBAAiB,GASlB,kCAA8B;AAC/B,OAAO,EACL,oBAAoB,GAOrB,sCAAkC;AACnC,OAAO,EAAE,kBAAkB,EAAuC,kCAA8B;AAChG,OAAO,EACL,qBAAqB,GAQtB,sCAAkC;AACnC,OAAO,EACL,OAAO,GAOR,sBAAkB"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.mjs";
|
|
2
|
+
import { APIPromise } from "../core/api-promise.mjs";
|
|
3
|
+
import { RequestOptions } from "../internal/request-options.mjs";
|
|
4
|
+
export declare class Me extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Returns the scope of the credential making the request, the organization it acts
|
|
7
|
+
* in, its default project (if any) and the permissions it was granted. Works for
|
|
8
|
+
* both project-scoped API keys and user-scoped credentials from the CLI or an MCP
|
|
9
|
+
* connector.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* const me = await client.me.get();
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
get(options?: RequestOptions): APIPromise<MeGetResponse>;
|
|
17
|
+
}
|
|
18
|
+
export interface MeGetResponse {
|
|
19
|
+
/**
|
|
20
|
+
* The credential making this request, and what it is bound to
|
|
21
|
+
*/
|
|
22
|
+
data: MeGetResponse.Data;
|
|
23
|
+
}
|
|
24
|
+
export declare namespace MeGetResponse {
|
|
25
|
+
/**
|
|
26
|
+
* The credential making this request, and what it is bound to
|
|
27
|
+
*/
|
|
28
|
+
interface Data {
|
|
29
|
+
defaultProject: Data.DefaultProject | null;
|
|
30
|
+
grantedPermissions: Array<string>;
|
|
31
|
+
organization: Data.Organization;
|
|
32
|
+
scopes: Array<string>;
|
|
33
|
+
tokenScope: 'PROJECT' | 'USER';
|
|
34
|
+
user: Data.User | null;
|
|
35
|
+
}
|
|
36
|
+
namespace Data {
|
|
37
|
+
interface DefaultProject {
|
|
38
|
+
id: string;
|
|
39
|
+
name: string;
|
|
40
|
+
slug: string;
|
|
41
|
+
}
|
|
42
|
+
interface Organization {
|
|
43
|
+
id: string;
|
|
44
|
+
name: string;
|
|
45
|
+
}
|
|
46
|
+
interface User {
|
|
47
|
+
id: string;
|
|
48
|
+
email: string;
|
|
49
|
+
name: string | null;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
export declare namespace Me {
|
|
54
|
+
export { type MeGetResponse as MeGetResponse };
|
|
55
|
+
}
|
|
56
|
+
//# sourceMappingURL=me.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"me.d.mts","sourceRoot":"","sources":["../src/resources/me.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,gCAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAE7D,qBAAa,EAAG,SAAQ,WAAW;IACjC;;;;;;;;;;OAUG;IACH,GAAG,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,aAAa,CAAC;CAGzD;AAED,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,IAAI,EAAE,aAAa,CAAC,IAAI,CAAC;CAC1B;AAED,yBAAiB,aAAa,CAAC;IAC7B;;OAEG;IACH,UAAiB,IAAI;QACnB,cAAc,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC;QAE3C,kBAAkB,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;QAElC,YAAY,EAAE,IAAI,CAAC,YAAY,CAAC;QAEhC,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;QAEtB,UAAU,EAAE,SAAS,GAAG,MAAM,CAAC;QAE/B,IAAI,EAAE,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;KACxB;IAED,UAAiB,IAAI,CAAC;QACpB,UAAiB,cAAc;YAC7B,EAAE,EAAE,MAAM,CAAC;YAEX,IAAI,EAAE,MAAM,CAAC;YAEb,IAAI,EAAE,MAAM,CAAC;SACd;QAED,UAAiB,YAAY;YAC3B,EAAE,EAAE,MAAM,CAAC;YAEX,IAAI,EAAE,MAAM,CAAC;SACd;QAED,UAAiB,IAAI;YACnB,EAAE,EAAE,MAAM,CAAC;YAEX,KAAK,EAAE,MAAM,CAAC;YAEd,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;SACrB;KACF;CACF;AAED,MAAM,CAAC,OAAO,WAAW,EAAE,CAAC;IAC1B,OAAO,EAAE,KAAK,aAAa,IAAI,aAAa,EAAE,CAAC;CAChD"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../core/api-promise.js";
|
|
3
|
+
import { RequestOptions } from "../internal/request-options.js";
|
|
4
|
+
export declare class Me extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Returns the scope of the credential making the request, the organization it acts
|
|
7
|
+
* in, its default project (if any) and the permissions it was granted. Works for
|
|
8
|
+
* both project-scoped API keys and user-scoped credentials from the CLI or an MCP
|
|
9
|
+
* connector.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* const me = await client.me.get();
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
get(options?: RequestOptions): APIPromise<MeGetResponse>;
|
|
17
|
+
}
|
|
18
|
+
export interface MeGetResponse {
|
|
19
|
+
/**
|
|
20
|
+
* The credential making this request, and what it is bound to
|
|
21
|
+
*/
|
|
22
|
+
data: MeGetResponse.Data;
|
|
23
|
+
}
|
|
24
|
+
export declare namespace MeGetResponse {
|
|
25
|
+
/**
|
|
26
|
+
* The credential making this request, and what it is bound to
|
|
27
|
+
*/
|
|
28
|
+
interface Data {
|
|
29
|
+
defaultProject: Data.DefaultProject | null;
|
|
30
|
+
grantedPermissions: Array<string>;
|
|
31
|
+
organization: Data.Organization;
|
|
32
|
+
scopes: Array<string>;
|
|
33
|
+
tokenScope: 'PROJECT' | 'USER';
|
|
34
|
+
user: Data.User | null;
|
|
35
|
+
}
|
|
36
|
+
namespace Data {
|
|
37
|
+
interface DefaultProject {
|
|
38
|
+
id: string;
|
|
39
|
+
name: string;
|
|
40
|
+
slug: string;
|
|
41
|
+
}
|
|
42
|
+
interface Organization {
|
|
43
|
+
id: string;
|
|
44
|
+
name: string;
|
|
45
|
+
}
|
|
46
|
+
interface User {
|
|
47
|
+
id: string;
|
|
48
|
+
email: string;
|
|
49
|
+
name: string | null;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
export declare namespace Me {
|
|
54
|
+
export { type MeGetResponse as MeGetResponse };
|
|
55
|
+
}
|
|
56
|
+
//# sourceMappingURL=me.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"me.d.ts","sourceRoot":"","sources":["../src/resources/me.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAE7D,qBAAa,EAAG,SAAQ,WAAW;IACjC;;;;;;;;;;OAUG;IACH,GAAG,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,aAAa,CAAC;CAGzD;AAED,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,IAAI,EAAE,aAAa,CAAC,IAAI,CAAC;CAC1B;AAED,yBAAiB,aAAa,CAAC;IAC7B;;OAEG;IACH,UAAiB,IAAI;QACnB,cAAc,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC;QAE3C,kBAAkB,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;QAElC,YAAY,EAAE,IAAI,CAAC,YAAY,CAAC;QAEhC,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;QAEtB,UAAU,EAAE,SAAS,GAAG,MAAM,CAAC;QAE/B,IAAI,EAAE,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;KACxB;IAED,UAAiB,IAAI,CAAC;QACpB,UAAiB,cAAc;YAC7B,EAAE,EAAE,MAAM,CAAC;YAEX,IAAI,EAAE,MAAM,CAAC;YAEb,IAAI,EAAE,MAAM,CAAC;SACd;QAED,UAAiB,YAAY;YAC3B,EAAE,EAAE,MAAM,CAAC;YAEX,IAAI,EAAE,MAAM,CAAC;SACd;QAED,UAAiB,IAAI;YACnB,EAAE,EAAE,MAAM,CAAC;YAEX,KAAK,EAAE,MAAM,CAAC;YAEd,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;SACrB;KACF;CACF;AAED,MAAM,CAAC,OAAO,WAAW,EAAE,CAAC;IAC1B,OAAO,EAAE,KAAK,aAAa,IAAI,aAAa,EAAE,CAAC;CAChD"}
|
package/resources/me.js
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
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.Me = void 0;
|
|
5
|
+
const resource_1 = require("../core/resource.js");
|
|
6
|
+
class Me extends resource_1.APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* Returns the scope of the credential making the request, the organization it acts
|
|
9
|
+
* in, its default project (if any) and the permissions it was granted. Works for
|
|
10
|
+
* both project-scoped API keys and user-scoped credentials from the CLI or an MCP
|
|
11
|
+
* connector.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```ts
|
|
15
|
+
* const me = await client.me.get();
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
get(options) {
|
|
19
|
+
return this._client.get('/v1/me', options);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
exports.Me = Me;
|
|
23
|
+
//# sourceMappingURL=me.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"me.js","sourceRoot":"","sources":["../src/resources/me.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,MAAa,EAAG,SAAQ,sBAAW;IACjC;;;;;;;;;;OAUG;IACH,GAAG,CAAC,OAAwB;QAC1B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;IAC7C,CAAC;CACF;AAfD,gBAeC"}
|
package/resources/me.mjs
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../core/resource.mjs";
|
|
3
|
+
export class Me extends APIResource {
|
|
4
|
+
/**
|
|
5
|
+
* Returns the scope of the credential making the request, the organization it acts
|
|
6
|
+
* in, its default project (if any) and the permissions it was granted. Works for
|
|
7
|
+
* both project-scoped API keys and user-scoped credentials from the CLI or an MCP
|
|
8
|
+
* connector.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```ts
|
|
12
|
+
* const me = await client.me.get();
|
|
13
|
+
* ```
|
|
14
|
+
*/
|
|
15
|
+
get(options) {
|
|
16
|
+
return this._client.get('/v1/me', options);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=me.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"me.mjs","sourceRoot":"","sources":["../src/resources/me.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAI/C,MAAM,OAAO,EAAG,SAAQ,WAAW;IACjC;;;;;;;;;;OAUG;IACH,GAAG,CAAC,OAAwB;QAC1B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;IAC7C,CAAC;CACF"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.mjs";
|
|
2
|
+
import { APIPromise } from "../core/api-promise.mjs";
|
|
3
|
+
import { RequestOptions } from "../internal/request-options.mjs";
|
|
4
|
+
export declare class Project extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Returns every project the calling credential may act on, with the permissions it
|
|
7
|
+
* holds in each. A project-scoped API key returns the single project it is bound
|
|
8
|
+
* to. A user-scoped credential returns the projects in its organization where the
|
|
9
|
+
* holder is an active member. Use the returned id in the X-Roark-Project-Id
|
|
10
|
+
* header.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* const projects = await client.project.list();
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
list(options?: RequestOptions): APIPromise<ProjectListResponse>;
|
|
18
|
+
}
|
|
19
|
+
export interface ProjectListResponse {
|
|
20
|
+
/**
|
|
21
|
+
* Projects this credential may act on
|
|
22
|
+
*/
|
|
23
|
+
data: ProjectListResponse.Data;
|
|
24
|
+
}
|
|
25
|
+
export declare namespace ProjectListResponse {
|
|
26
|
+
/**
|
|
27
|
+
* Projects this credential may act on
|
|
28
|
+
*/
|
|
29
|
+
interface Data {
|
|
30
|
+
projects: Array<Data.Project>;
|
|
31
|
+
}
|
|
32
|
+
namespace Data {
|
|
33
|
+
interface Project {
|
|
34
|
+
id: string;
|
|
35
|
+
grantedPermissions: Array<string>;
|
|
36
|
+
name: string;
|
|
37
|
+
organization: Project.Organization;
|
|
38
|
+
slug: string;
|
|
39
|
+
}
|
|
40
|
+
namespace Project {
|
|
41
|
+
interface Organization {
|
|
42
|
+
id: string;
|
|
43
|
+
name: string;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
export declare namespace Project {
|
|
49
|
+
export { type ProjectListResponse as ProjectListResponse };
|
|
50
|
+
}
|
|
51
|
+
//# sourceMappingURL=project.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"project.d.mts","sourceRoot":"","sources":["../src/resources/project.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,gCAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAE7D,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;;;OAWG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,mBAAmB,CAAC;CAGhE;AAED,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,IAAI,EAAE,mBAAmB,CAAC,IAAI,CAAC;CAChC;AAED,yBAAiB,mBAAmB,CAAC;IACnC;;OAEG;IACH,UAAiB,IAAI;QACnB,QAAQ,EAAE,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;KAC/B;IAED,UAAiB,IAAI,CAAC;QACpB,UAAiB,OAAO;YACtB,EAAE,EAAE,MAAM,CAAC;YAEX,kBAAkB,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;YAElC,IAAI,EAAE,MAAM,CAAC;YAEb,YAAY,EAAE,OAAO,CAAC,YAAY,CAAC;YAEnC,IAAI,EAAE,MAAM,CAAC;SACd;QAED,UAAiB,OAAO,CAAC;YACvB,UAAiB,YAAY;gBAC3B,EAAE,EAAE,MAAM,CAAC;gBAEX,IAAI,EAAE,MAAM,CAAC;aACd;SACF;KACF;CACF;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EAAE,KAAK,mBAAmB,IAAI,mBAAmB,EAAE,CAAC;CAC5D"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../core/api-promise.js";
|
|
3
|
+
import { RequestOptions } from "../internal/request-options.js";
|
|
4
|
+
export declare class Project extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Returns every project the calling credential may act on, with the permissions it
|
|
7
|
+
* holds in each. A project-scoped API key returns the single project it is bound
|
|
8
|
+
* to. A user-scoped credential returns the projects in its organization where the
|
|
9
|
+
* holder is an active member. Use the returned id in the X-Roark-Project-Id
|
|
10
|
+
* header.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* const projects = await client.project.list();
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
list(options?: RequestOptions): APIPromise<ProjectListResponse>;
|
|
18
|
+
}
|
|
19
|
+
export interface ProjectListResponse {
|
|
20
|
+
/**
|
|
21
|
+
* Projects this credential may act on
|
|
22
|
+
*/
|
|
23
|
+
data: ProjectListResponse.Data;
|
|
24
|
+
}
|
|
25
|
+
export declare namespace ProjectListResponse {
|
|
26
|
+
/**
|
|
27
|
+
* Projects this credential may act on
|
|
28
|
+
*/
|
|
29
|
+
interface Data {
|
|
30
|
+
projects: Array<Data.Project>;
|
|
31
|
+
}
|
|
32
|
+
namespace Data {
|
|
33
|
+
interface Project {
|
|
34
|
+
id: string;
|
|
35
|
+
grantedPermissions: Array<string>;
|
|
36
|
+
name: string;
|
|
37
|
+
organization: Project.Organization;
|
|
38
|
+
slug: string;
|
|
39
|
+
}
|
|
40
|
+
namespace Project {
|
|
41
|
+
interface Organization {
|
|
42
|
+
id: string;
|
|
43
|
+
name: string;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
export declare namespace Project {
|
|
49
|
+
export { type ProjectListResponse as ProjectListResponse };
|
|
50
|
+
}
|
|
51
|
+
//# sourceMappingURL=project.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"project.d.ts","sourceRoot":"","sources":["../src/resources/project.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAE7D,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;;;OAWG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,mBAAmB,CAAC;CAGhE;AAED,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,IAAI,EAAE,mBAAmB,CAAC,IAAI,CAAC;CAChC;AAED,yBAAiB,mBAAmB,CAAC;IACnC;;OAEG;IACH,UAAiB,IAAI;QACnB,QAAQ,EAAE,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;KAC/B;IAED,UAAiB,IAAI,CAAC;QACpB,UAAiB,OAAO;YACtB,EAAE,EAAE,MAAM,CAAC;YAEX,kBAAkB,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;YAElC,IAAI,EAAE,MAAM,CAAC;YAEb,YAAY,EAAE,OAAO,CAAC,YAAY,CAAC;YAEnC,IAAI,EAAE,MAAM,CAAC;SACd;QAED,UAAiB,OAAO,CAAC;YACvB,UAAiB,YAAY;gBAC3B,EAAE,EAAE,MAAM,CAAC;gBAEX,IAAI,EAAE,MAAM,CAAC;aACd;SACF;KACF;CACF;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EAAE,KAAK,mBAAmB,IAAI,mBAAmB,EAAE,CAAC;CAC5D"}
|
|
@@ -0,0 +1,24 @@
|
|
|
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.Project = void 0;
|
|
5
|
+
const resource_1 = require("../core/resource.js");
|
|
6
|
+
class Project extends resource_1.APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* Returns every project the calling credential may act on, with the permissions it
|
|
9
|
+
* holds in each. A project-scoped API key returns the single project it is bound
|
|
10
|
+
* to. A user-scoped credential returns the projects in its organization where the
|
|
11
|
+
* holder is an active member. Use the returned id in the X-Roark-Project-Id
|
|
12
|
+
* header.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```ts
|
|
16
|
+
* const projects = await client.project.list();
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
list(options) {
|
|
20
|
+
return this._client.get('/v1/projects', options);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
exports.Project = Project;
|
|
24
|
+
//# sourceMappingURL=project.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"project.js","sourceRoot":"","sources":["../src/resources/project.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,MAAa,OAAQ,SAAQ,sBAAW;IACtC;;;;;;;;;;;OAWG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,cAAc,EAAE,OAAO,CAAC,CAAC;IACnD,CAAC;CACF;AAhBD,0BAgBC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../core/resource.mjs";
|
|
3
|
+
export class Project extends APIResource {
|
|
4
|
+
/**
|
|
5
|
+
* Returns every project the calling credential may act on, with the permissions it
|
|
6
|
+
* holds in each. A project-scoped API key returns the single project it is bound
|
|
7
|
+
* to. A user-scoped credential returns the projects in its organization where the
|
|
8
|
+
* holder is an active member. Use the returned id in the X-Roark-Project-Id
|
|
9
|
+
* header.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* const projects = await client.project.list();
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
list(options) {
|
|
17
|
+
return this._client.get('/v1/projects', options);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=project.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"project.mjs","sourceRoot":"","sources":["../src/resources/project.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAI/C,MAAM,OAAO,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;;;OAWG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,cAAc,EAAE,OAAO,CAAC,CAAC;IACnD,CAAC;CACF"}
|
package/src/client.ts
CHANGED
|
@@ -152,6 +152,7 @@ import {
|
|
|
152
152
|
HTTPRequestDefinitionUpdateParams,
|
|
153
153
|
HTTPRequestDefinitionUpdateResponse,
|
|
154
154
|
} from './resources/http-request-definition';
|
|
155
|
+
import { Me, MeGetResponse } from './resources/me';
|
|
155
156
|
import {
|
|
156
157
|
Metric,
|
|
157
158
|
MetricCreateDefinitionParams,
|
|
@@ -192,6 +193,7 @@ import {
|
|
|
192
193
|
MetricVariantUpdateParams,
|
|
193
194
|
MetricVariantUpdateResponse,
|
|
194
195
|
} from './resources/metric-variant';
|
|
196
|
+
import { Project, ProjectListResponse } from './resources/project';
|
|
195
197
|
import {
|
|
196
198
|
Simulation,
|
|
197
199
|
SimulationMockToolParams,
|
|
@@ -988,6 +990,8 @@ export class Roark {
|
|
|
988
990
|
static toFile = Uploads.toFile;
|
|
989
991
|
|
|
990
992
|
health: API.Health = new API.Health(this);
|
|
993
|
+
me: API.Me = new API.Me(this);
|
|
994
|
+
project: API.Project = new API.Project(this);
|
|
991
995
|
call: API.Call = new API.Call(this);
|
|
992
996
|
metric: API.Metric = new API.Metric(this);
|
|
993
997
|
metricPolicy: API.MetricPolicy = new API.MetricPolicy(this);
|
|
@@ -1016,6 +1020,8 @@ export class Roark {
|
|
|
1016
1020
|
}
|
|
1017
1021
|
|
|
1018
1022
|
Roark.Health = Health;
|
|
1023
|
+
Roark.Me = Me;
|
|
1024
|
+
Roark.Project = Project;
|
|
1019
1025
|
Roark.Call = Call;
|
|
1020
1026
|
Roark.Metric = Metric;
|
|
1021
1027
|
Roark.MetricPolicy = MetricPolicy;
|
|
@@ -1047,6 +1053,10 @@ export declare namespace Roark {
|
|
|
1047
1053
|
|
|
1048
1054
|
export { Health as Health, type HealthGetResponse as HealthGetResponse };
|
|
1049
1055
|
|
|
1056
|
+
export { Me as Me, type MeGetResponse as MeGetResponse };
|
|
1057
|
+
|
|
1058
|
+
export { Project as Project, type ProjectListResponse as ProjectListResponse };
|
|
1059
|
+
|
|
1050
1060
|
export {
|
|
1051
1061
|
Call as Call,
|
|
1052
1062
|
type CallCreateResponse as CallCreateResponse,
|
package/src/resources/index.ts
CHANGED
|
@@ -135,6 +135,7 @@ export {
|
|
|
135
135
|
type HTTPRequestDefinitionListParams,
|
|
136
136
|
} from './http-request-definition';
|
|
137
137
|
export { Health, type HealthGetResponse } from './health';
|
|
138
|
+
export { Me, type MeGetResponse } from './me';
|
|
138
139
|
export {
|
|
139
140
|
Metric,
|
|
140
141
|
type MetricCreateDefinitionResponse,
|
|
@@ -175,6 +176,7 @@ export {
|
|
|
175
176
|
type MetricVariantDeleteParams,
|
|
176
177
|
type MetricVariantGetByIDParams,
|
|
177
178
|
} from './metric-variant';
|
|
179
|
+
export { Project, type ProjectListResponse } from './project';
|
|
178
180
|
export {
|
|
179
181
|
Simulation,
|
|
180
182
|
type SimulationMockToolResponse,
|
|
@@ -0,0 +1,76 @@
|
|
|
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 { RequestOptions } from '../internal/request-options';
|
|
6
|
+
|
|
7
|
+
export class Me extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Returns the scope of the credential making the request, the organization it acts
|
|
10
|
+
* in, its default project (if any) and the permissions it was granted. Works for
|
|
11
|
+
* both project-scoped API keys and user-scoped credentials from the CLI or an MCP
|
|
12
|
+
* connector.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```ts
|
|
16
|
+
* const me = await client.me.get();
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
get(options?: RequestOptions): APIPromise<MeGetResponse> {
|
|
20
|
+
return this._client.get('/v1/me', options);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export interface MeGetResponse {
|
|
25
|
+
/**
|
|
26
|
+
* The credential making this request, and what it is bound to
|
|
27
|
+
*/
|
|
28
|
+
data: MeGetResponse.Data;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export namespace MeGetResponse {
|
|
32
|
+
/**
|
|
33
|
+
* The credential making this request, and what it is bound to
|
|
34
|
+
*/
|
|
35
|
+
export interface Data {
|
|
36
|
+
defaultProject: Data.DefaultProject | null;
|
|
37
|
+
|
|
38
|
+
grantedPermissions: Array<string>;
|
|
39
|
+
|
|
40
|
+
organization: Data.Organization;
|
|
41
|
+
|
|
42
|
+
scopes: Array<string>;
|
|
43
|
+
|
|
44
|
+
tokenScope: 'PROJECT' | 'USER';
|
|
45
|
+
|
|
46
|
+
user: Data.User | null;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export namespace Data {
|
|
50
|
+
export interface DefaultProject {
|
|
51
|
+
id: string;
|
|
52
|
+
|
|
53
|
+
name: string;
|
|
54
|
+
|
|
55
|
+
slug: string;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export interface Organization {
|
|
59
|
+
id: string;
|
|
60
|
+
|
|
61
|
+
name: string;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export interface User {
|
|
65
|
+
id: string;
|
|
66
|
+
|
|
67
|
+
email: string;
|
|
68
|
+
|
|
69
|
+
name: string | null;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export declare namespace Me {
|
|
75
|
+
export { type MeGetResponse as MeGetResponse };
|
|
76
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
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 { RequestOptions } from '../internal/request-options';
|
|
6
|
+
|
|
7
|
+
export class Project extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Returns every project the calling credential may act on, with the permissions it
|
|
10
|
+
* holds in each. A project-scoped API key returns the single project it is bound
|
|
11
|
+
* to. A user-scoped credential returns the projects in its organization where the
|
|
12
|
+
* holder is an active member. Use the returned id in the X-Roark-Project-Id
|
|
13
|
+
* header.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```ts
|
|
17
|
+
* const projects = await client.project.list();
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
list(options?: RequestOptions): APIPromise<ProjectListResponse> {
|
|
21
|
+
return this._client.get('/v1/projects', options);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export interface ProjectListResponse {
|
|
26
|
+
/**
|
|
27
|
+
* Projects this credential may act on
|
|
28
|
+
*/
|
|
29
|
+
data: ProjectListResponse.Data;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export namespace ProjectListResponse {
|
|
33
|
+
/**
|
|
34
|
+
* Projects this credential may act on
|
|
35
|
+
*/
|
|
36
|
+
export interface Data {
|
|
37
|
+
projects: Array<Data.Project>;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export namespace Data {
|
|
41
|
+
export interface Project {
|
|
42
|
+
id: string;
|
|
43
|
+
|
|
44
|
+
grantedPermissions: Array<string>;
|
|
45
|
+
|
|
46
|
+
name: string;
|
|
47
|
+
|
|
48
|
+
organization: Project.Organization;
|
|
49
|
+
|
|
50
|
+
slug: string;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export namespace Project {
|
|
54
|
+
export interface Organization {
|
|
55
|
+
id: string;
|
|
56
|
+
|
|
57
|
+
name: string;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export declare namespace Project {
|
|
64
|
+
export { type ProjectListResponse as ProjectListResponse };
|
|
65
|
+
}
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '4.
|
|
1
|
+
export const VERSION = '4.12.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "4.
|
|
1
|
+
export declare const VERSION = "4.12.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "4.
|
|
1
|
+
export declare const VERSION = "4.12.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '4.
|
|
1
|
+
export const VERSION = '4.12.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|