zorihq 0.0.3 → 0.1.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 +9 -0
- package/package.json +1 -1
- package/resources/v1/index.d.mts +1 -0
- package/resources/v1/index.d.mts.map +1 -1
- package/resources/v1/index.d.ts +1 -0
- package/resources/v1/index.d.ts.map +1 -1
- package/resources/v1/index.js +3 -1
- package/resources/v1/index.js.map +1 -1
- package/resources/v1/index.mjs +1 -0
- package/resources/v1/index.mjs.map +1 -1
- package/resources/v1/projects.d.mts +106 -0
- package/resources/v1/projects.d.mts.map +1 -0
- package/resources/v1/projects.d.ts +106 -0
- package/resources/v1/projects.d.ts.map +1 -0
- package/resources/v1/projects.js +71 -0
- package/resources/v1/projects.js.map +1 -0
- package/resources/v1/projects.mjs +67 -0
- package/resources/v1/projects.mjs.map +1 -0
- package/resources/v1/v1.d.mts +4 -0
- package/resources/v1/v1.d.mts.map +1 -1
- package/resources/v1/v1.d.ts +4 -0
- package/resources/v1/v1.d.ts.map +1 -1
- package/resources/v1/v1.js +4 -0
- package/resources/v1/v1.js.map +1 -1
- package/resources/v1/v1.mjs +4 -0
- package/resources/v1/v1.mjs.map +1 -1
- package/src/resources/v1/index.ts +11 -0
- package/src/resources/v1/projects.ts +160 -0
- package/src/resources/v1/v1.ts +26 -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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.1.0 (2025-10-05)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.0.3...v0.1.0](https://github.com/ZoriHQ/typescript-api-sdk/compare/v0.0.3...v0.1.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** manual updates ([fcc1a69](https://github.com/ZoriHQ/typescript-api-sdk/commit/fcc1a69a2bc024813bedb2df99bf2d8ba0d56ff0))
|
|
10
|
+
* **api:** manual updates ([e787d68](https://github.com/ZoriHQ/typescript-api-sdk/commit/e787d6880e376cb5e574a27709fa9ad0d79f40d8))
|
|
11
|
+
|
|
3
12
|
## 0.0.3 (2025-10-05)
|
|
4
13
|
|
|
5
14
|
Full Changelog: [v0.0.2...v0.0.3](https://github.com/ZoriHQ/typescript-api-sdk/compare/v0.0.2...v0.0.3)
|
package/package.json
CHANGED
package/resources/v1/index.d.mts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export { Auth, type Account, type AuthResponse, type MessageResponse, type Organization, type AuthConfirmPasswordRecoveryParams, type AuthLoginParams, type AuthLogoutParams, type AuthRefreshAccessTokenParams, type AuthRegisterAccountParams, type AuthRequestPasswordRecoveryParams, } from "./auth.mjs";
|
|
2
|
+
export { Projects, type CreateProjectRequest, type ListProjectsResponse, type Project, type ProjectResponse, type UpdateProjectRequest, type ProjectDeleteResponse, type ProjectCreateParams, type ProjectUpdateParams, } from "./projects.mjs";
|
|
2
3
|
export { V1 } from "./v1.mjs";
|
|
3
4
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/v1/index.ts"],"names":[],"mappings":"OAEO,EACL,IAAI,EACJ,KAAK,OAAO,EACZ,KAAK,YAAY,EACjB,KAAK,eAAe,EACpB,KAAK,YAAY,EACjB,KAAK,iCAAiC,EACtC,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACrB,KAAK,4BAA4B,EACjC,KAAK,yBAAyB,EAC9B,KAAK,iCAAiC,GACvC;OACM,EAAE,EAAE,EAAE"}
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/v1/index.ts"],"names":[],"mappings":"OAEO,EACL,IAAI,EACJ,KAAK,OAAO,EACZ,KAAK,YAAY,EACjB,KAAK,eAAe,EACpB,KAAK,YAAY,EACjB,KAAK,iCAAiC,EACtC,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACrB,KAAK,4BAA4B,EACjC,KAAK,yBAAyB,EAC9B,KAAK,iCAAiC,GACvC;OACM,EACL,QAAQ,EACR,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,OAAO,EACZ,KAAK,eAAe,EACpB,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,GACzB;OACM,EAAE,EAAE,EAAE"}
|
package/resources/v1/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export { Auth, type Account, type AuthResponse, type MessageResponse, type Organization, type AuthConfirmPasswordRecoveryParams, type AuthLoginParams, type AuthLogoutParams, type AuthRefreshAccessTokenParams, type AuthRegisterAccountParams, type AuthRequestPasswordRecoveryParams, } from "./auth.js";
|
|
2
|
+
export { Projects, type CreateProjectRequest, type ListProjectsResponse, type Project, type ProjectResponse, type UpdateProjectRequest, type ProjectDeleteResponse, type ProjectCreateParams, type ProjectUpdateParams, } from "./projects.js";
|
|
2
3
|
export { V1 } from "./v1.js";
|
|
3
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/v1/index.ts"],"names":[],"mappings":"OAEO,EACL,IAAI,EACJ,KAAK,OAAO,EACZ,KAAK,YAAY,EACjB,KAAK,eAAe,EACpB,KAAK,YAAY,EACjB,KAAK,iCAAiC,EACtC,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACrB,KAAK,4BAA4B,EACjC,KAAK,yBAAyB,EAC9B,KAAK,iCAAiC,GACvC;OACM,EAAE,EAAE,EAAE"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/v1/index.ts"],"names":[],"mappings":"OAEO,EACL,IAAI,EACJ,KAAK,OAAO,EACZ,KAAK,YAAY,EACjB,KAAK,eAAe,EACpB,KAAK,YAAY,EACjB,KAAK,iCAAiC,EACtC,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACrB,KAAK,4BAA4B,EACjC,KAAK,yBAAyB,EAC9B,KAAK,iCAAiC,GACvC;OACM,EACL,QAAQ,EACR,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,OAAO,EACZ,KAAK,eAAe,EACpB,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,GACzB;OACM,EAAE,EAAE,EAAE"}
|
package/resources/v1/index.js
CHANGED
|
@@ -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.V1 = exports.Auth = void 0;
|
|
4
|
+
exports.V1 = exports.Projects = exports.Auth = void 0;
|
|
5
5
|
var auth_1 = require("./auth.js");
|
|
6
6
|
Object.defineProperty(exports, "Auth", { enumerable: true, get: function () { return auth_1.Auth; } });
|
|
7
|
+
var projects_1 = require("./projects.js");
|
|
8
|
+
Object.defineProperty(exports, "Projects", { enumerable: true, get: function () { return projects_1.Projects; } });
|
|
7
9
|
var v1_1 = require("./v1.js");
|
|
8
10
|
Object.defineProperty(exports, "V1", { enumerable: true, get: function () { return v1_1.V1; } });
|
|
9
11
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/v1/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kCAYgB;AAXd,4FAAA,IAAI,OAAA;AAYN,8BAA0B;AAAjB,wFAAA,EAAE,OAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/v1/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kCAYgB;AAXd,4FAAA,IAAI,OAAA;AAYN,0CAUoB;AATlB,oGAAA,QAAQ,OAAA;AAUV,8BAA0B;AAAjB,wFAAA,EAAE,OAAA"}
|
package/resources/v1/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/v1/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,IAAI,GAWL;OACM,EAAE,EAAE,EAAE"}
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/v1/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,IAAI,GAWL;OACM,EACL,QAAQ,GAST;OACM,EAAE,EAAE,EAAE"}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
+
import * as AuthAPI from "./auth.mjs";
|
|
3
|
+
import { APIPromise } from "../../core/api-promise.mjs";
|
|
4
|
+
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
5
|
+
export declare class Projects extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Create a new project for the authenticated user's organization
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```ts
|
|
11
|
+
* const projectResponse = await client.v1.projects.create({
|
|
12
|
+
* name: 'My Awesome Project',
|
|
13
|
+
* website_url: 'https://example.com',
|
|
14
|
+
* });
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
create(body: ProjectCreateParams, options?: RequestOptions): APIPromise<ProjectResponse>;
|
|
18
|
+
/**
|
|
19
|
+
* Update an existing project's details
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* ```ts
|
|
23
|
+
* const projectResponse = await client.v1.projects.update(
|
|
24
|
+
* 'id',
|
|
25
|
+
* );
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
update(id: string, body: ProjectUpdateParams, options?: RequestOptions): APIPromise<ProjectResponse>;
|
|
29
|
+
/**
|
|
30
|
+
* Get a list of all projects belonging to the authenticated user's organization
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* ```ts
|
|
34
|
+
* const listProjectsResponse =
|
|
35
|
+
* await client.v1.projects.list();
|
|
36
|
+
* ```
|
|
37
|
+
*/
|
|
38
|
+
list(options?: RequestOptions): APIPromise<ListProjectsResponse>;
|
|
39
|
+
/**
|
|
40
|
+
* Delete a project and all its associated data
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* ```ts
|
|
44
|
+
* const project = await client.v1.projects.delete('id');
|
|
45
|
+
* ```
|
|
46
|
+
*/
|
|
47
|
+
delete(id: string, options?: RequestOptions): APIPromise<ProjectDeleteResponse>;
|
|
48
|
+
/**
|
|
49
|
+
* Get a single project by its ID
|
|
50
|
+
*
|
|
51
|
+
* @example
|
|
52
|
+
* ```ts
|
|
53
|
+
* const projectResponse = await client.v1.projects.get('id');
|
|
54
|
+
* ```
|
|
55
|
+
*/
|
|
56
|
+
get(id: string, options?: RequestOptions): APIPromise<ProjectResponse>;
|
|
57
|
+
}
|
|
58
|
+
export interface CreateProjectRequest {
|
|
59
|
+
name: string;
|
|
60
|
+
website_url: string;
|
|
61
|
+
allow_localhost?: boolean;
|
|
62
|
+
}
|
|
63
|
+
export interface ListProjectsResponse {
|
|
64
|
+
projects?: Array<Project>;
|
|
65
|
+
total?: number;
|
|
66
|
+
}
|
|
67
|
+
export interface Project {
|
|
68
|
+
id?: string;
|
|
69
|
+
allow_local_host?: boolean;
|
|
70
|
+
domain?: string;
|
|
71
|
+
first_event_received_at?: string;
|
|
72
|
+
name?: string;
|
|
73
|
+
organization?: AuthAPI.Organization;
|
|
74
|
+
organization_id?: string;
|
|
75
|
+
}
|
|
76
|
+
export interface ProjectResponse {
|
|
77
|
+
id?: string;
|
|
78
|
+
allow_local_host?: boolean;
|
|
79
|
+
domain?: string;
|
|
80
|
+
first_event_received_at?: string;
|
|
81
|
+
name?: string;
|
|
82
|
+
organization?: AuthAPI.Organization;
|
|
83
|
+
organization_id?: string;
|
|
84
|
+
}
|
|
85
|
+
export interface UpdateProjectRequest {
|
|
86
|
+
allow_localhost?: boolean;
|
|
87
|
+
name?: string;
|
|
88
|
+
website_url?: string;
|
|
89
|
+
}
|
|
90
|
+
export type ProjectDeleteResponse = {
|
|
91
|
+
[key: string]: string;
|
|
92
|
+
};
|
|
93
|
+
export interface ProjectCreateParams {
|
|
94
|
+
name: string;
|
|
95
|
+
website_url: string;
|
|
96
|
+
allow_localhost?: boolean;
|
|
97
|
+
}
|
|
98
|
+
export interface ProjectUpdateParams {
|
|
99
|
+
allow_localhost?: boolean;
|
|
100
|
+
name?: string;
|
|
101
|
+
website_url?: string;
|
|
102
|
+
}
|
|
103
|
+
export declare namespace Projects {
|
|
104
|
+
export { type CreateProjectRequest as CreateProjectRequest, type ListProjectsResponse as ListProjectsResponse, type Project as Project, type ProjectResponse as ProjectResponse, type UpdateProjectRequest as UpdateProjectRequest, type ProjectDeleteResponse as ProjectDeleteResponse, type ProjectCreateParams as ProjectCreateParams, type ProjectUpdateParams as ProjectUpdateParams, };
|
|
105
|
+
}
|
|
106
|
+
//# sourceMappingURL=projects.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"projects.d.mts","sourceRoot":"","sources":["../../src/resources/v1/projects.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,OAAO;OACZ,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;OAUG;IACH,MAAM,CAAC,IAAI,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,eAAe,CAAC;IAIxF;;;;;;;;;OASG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,mBAAmB,EAAE,OAAO,CAA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,CAAC;CAC1B;AAED,MAAM,WAAW,oBAAoB;IACnC,eAAe,CAAC,EAAE,OAAO,CAAC;IAE1B,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,MAAM,qBAAqB,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;CAAE,CAAC;AAE9D,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,MAAM,CAAC;IAEb,WAAW,EAAE,MAAM,CAAC;IAEpB,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;AAED,MAAM,WAAW,mBAAmB;IAClC,eAAe,CAAC,EAAE,OAAO,CAAC;IAE1B,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,OAAO,IAAI,OAAO,EACvB,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.js";
|
|
2
|
+
import * as AuthAPI from "./auth.js";
|
|
3
|
+
import { APIPromise } from "../../core/api-promise.js";
|
|
4
|
+
import { RequestOptions } from "../../internal/request-options.js";
|
|
5
|
+
export declare class Projects extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Create a new project for the authenticated user's organization
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```ts
|
|
11
|
+
* const projectResponse = await client.v1.projects.create({
|
|
12
|
+
* name: 'My Awesome Project',
|
|
13
|
+
* website_url: 'https://example.com',
|
|
14
|
+
* });
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
create(body: ProjectCreateParams, options?: RequestOptions): APIPromise<ProjectResponse>;
|
|
18
|
+
/**
|
|
19
|
+
* Update an existing project's details
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* ```ts
|
|
23
|
+
* const projectResponse = await client.v1.projects.update(
|
|
24
|
+
* 'id',
|
|
25
|
+
* );
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
update(id: string, body: ProjectUpdateParams, options?: RequestOptions): APIPromise<ProjectResponse>;
|
|
29
|
+
/**
|
|
30
|
+
* Get a list of all projects belonging to the authenticated user's organization
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* ```ts
|
|
34
|
+
* const listProjectsResponse =
|
|
35
|
+
* await client.v1.projects.list();
|
|
36
|
+
* ```
|
|
37
|
+
*/
|
|
38
|
+
list(options?: RequestOptions): APIPromise<ListProjectsResponse>;
|
|
39
|
+
/**
|
|
40
|
+
* Delete a project and all its associated data
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* ```ts
|
|
44
|
+
* const project = await client.v1.projects.delete('id');
|
|
45
|
+
* ```
|
|
46
|
+
*/
|
|
47
|
+
delete(id: string, options?: RequestOptions): APIPromise<ProjectDeleteResponse>;
|
|
48
|
+
/**
|
|
49
|
+
* Get a single project by its ID
|
|
50
|
+
*
|
|
51
|
+
* @example
|
|
52
|
+
* ```ts
|
|
53
|
+
* const projectResponse = await client.v1.projects.get('id');
|
|
54
|
+
* ```
|
|
55
|
+
*/
|
|
56
|
+
get(id: string, options?: RequestOptions): APIPromise<ProjectResponse>;
|
|
57
|
+
}
|
|
58
|
+
export interface CreateProjectRequest {
|
|
59
|
+
name: string;
|
|
60
|
+
website_url: string;
|
|
61
|
+
allow_localhost?: boolean;
|
|
62
|
+
}
|
|
63
|
+
export interface ListProjectsResponse {
|
|
64
|
+
projects?: Array<Project>;
|
|
65
|
+
total?: number;
|
|
66
|
+
}
|
|
67
|
+
export interface Project {
|
|
68
|
+
id?: string;
|
|
69
|
+
allow_local_host?: boolean;
|
|
70
|
+
domain?: string;
|
|
71
|
+
first_event_received_at?: string;
|
|
72
|
+
name?: string;
|
|
73
|
+
organization?: AuthAPI.Organization;
|
|
74
|
+
organization_id?: string;
|
|
75
|
+
}
|
|
76
|
+
export interface ProjectResponse {
|
|
77
|
+
id?: string;
|
|
78
|
+
allow_local_host?: boolean;
|
|
79
|
+
domain?: string;
|
|
80
|
+
first_event_received_at?: string;
|
|
81
|
+
name?: string;
|
|
82
|
+
organization?: AuthAPI.Organization;
|
|
83
|
+
organization_id?: string;
|
|
84
|
+
}
|
|
85
|
+
export interface UpdateProjectRequest {
|
|
86
|
+
allow_localhost?: boolean;
|
|
87
|
+
name?: string;
|
|
88
|
+
website_url?: string;
|
|
89
|
+
}
|
|
90
|
+
export type ProjectDeleteResponse = {
|
|
91
|
+
[key: string]: string;
|
|
92
|
+
};
|
|
93
|
+
export interface ProjectCreateParams {
|
|
94
|
+
name: string;
|
|
95
|
+
website_url: string;
|
|
96
|
+
allow_localhost?: boolean;
|
|
97
|
+
}
|
|
98
|
+
export interface ProjectUpdateParams {
|
|
99
|
+
allow_localhost?: boolean;
|
|
100
|
+
name?: string;
|
|
101
|
+
website_url?: string;
|
|
102
|
+
}
|
|
103
|
+
export declare namespace Projects {
|
|
104
|
+
export { type CreateProjectRequest as CreateProjectRequest, type ListProjectsResponse as ListProjectsResponse, type Project as Project, type ProjectResponse as ProjectResponse, type UpdateProjectRequest as UpdateProjectRequest, type ProjectDeleteResponse as ProjectDeleteResponse, type ProjectCreateParams as ProjectCreateParams, type ProjectUpdateParams as ProjectUpdateParams, };
|
|
105
|
+
}
|
|
106
|
+
//# sourceMappingURL=projects.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"projects.d.ts","sourceRoot":"","sources":["../../src/resources/v1/proj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-0,0 +1,71 @@
|
|
|
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.Projects = void 0;
|
|
5
|
+
const resource_1 = require("../../core/resource.js");
|
|
6
|
+
const path_1 = require("../../internal/utils/path.js");
|
|
7
|
+
class Projects extends resource_1.APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Create a new project for the authenticated user's organization
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* const projectResponse = await client.v1.projects.create({
|
|
14
|
+
* name: 'My Awesome Project',
|
|
15
|
+
* website_url: 'https://example.com',
|
|
16
|
+
* });
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
create(body, options) {
|
|
20
|
+
return this._client.post('/api/v1/projects', { body, ...options });
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Update an existing project's details
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* ```ts
|
|
27
|
+
* const projectResponse = await client.v1.projects.update(
|
|
28
|
+
* 'id',
|
|
29
|
+
* );
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
32
|
+
update(id, body, options) {
|
|
33
|
+
return this._client.put((0, path_1.path) `/api/v1/projects/${id}`, { body, ...options });
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Get a list of all projects belonging to the authenticated user's organization
|
|
37
|
+
*
|
|
38
|
+
* @example
|
|
39
|
+
* ```ts
|
|
40
|
+
* const listProjectsResponse =
|
|
41
|
+
* await client.v1.projects.list();
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
list(options) {
|
|
45
|
+
return this._client.get('/api/v1/projects/list', options);
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Delete a project and all its associated data
|
|
49
|
+
*
|
|
50
|
+
* @example
|
|
51
|
+
* ```ts
|
|
52
|
+
* const project = await client.v1.projects.delete('id');
|
|
53
|
+
* ```
|
|
54
|
+
*/
|
|
55
|
+
delete(id, options) {
|
|
56
|
+
return this._client.delete((0, path_1.path) `/api/v1/projects/${id}`, options);
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Get a single project by its ID
|
|
60
|
+
*
|
|
61
|
+
* @example
|
|
62
|
+
* ```ts
|
|
63
|
+
* const projectResponse = await client.v1.projects.get('id');
|
|
64
|
+
* ```
|
|
65
|
+
*/
|
|
66
|
+
get(id, options) {
|
|
67
|
+
return this._client.get((0, path_1.path) `/api/v1/projects/${id}`, options);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
exports.Projects = Projects;
|
|
71
|
+
//# sourceMappingURL=projects.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"projects.js","sourceRoot":"","sources":["../../src/resources/v1/projects.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAIlD,uDAAiD;AAEjD,MAAa,QAAS,SAAQ,sBAAW;IACvC;;;;;;;;;;OAUG;IACH,MAAM,CAAC,IAAyB,EAAE,OAAwB;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,kBAAkB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrE,CAAC;IAED;;;;;;;;;OASG;IACH,MAAM,CAAC,EAAU,EAAE,IAAyB,EAAE,OAAwB;QACpE,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,oBAAoB,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9E,CAAC;IAED;;;;;;;;OAQG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,uBAAuB,EAAE,OAAO,CAAC,CAAC;IAC5D,CAAC;IAED;;;;;;;OAOG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,oBAAoB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACpE,CAAC;IAED;;;;;;;OAOG;IACH,GAAG,CAAC,EAAU,EAAE,OAAwB;QACtC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,oBAAoB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACjE,CAAC;CACF;AAlED,4BAkEC"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
+
import { path } from "../../internal/utils/path.mjs";
|
|
4
|
+
export class Projects extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Create a new project for the authenticated user's organization
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* const projectResponse = await client.v1.projects.create({
|
|
11
|
+
* name: 'My Awesome Project',
|
|
12
|
+
* website_url: 'https://example.com',
|
|
13
|
+
* });
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
create(body, options) {
|
|
17
|
+
return this._client.post('/api/v1/projects', { body, ...options });
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Update an existing project's details
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* ```ts
|
|
24
|
+
* const projectResponse = await client.v1.projects.update(
|
|
25
|
+
* 'id',
|
|
26
|
+
* );
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
update(id, body, options) {
|
|
30
|
+
return this._client.put(path `/api/v1/projects/${id}`, { body, ...options });
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Get a list of all projects belonging to the authenticated user's organization
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* ```ts
|
|
37
|
+
* const listProjectsResponse =
|
|
38
|
+
* await client.v1.projects.list();
|
|
39
|
+
* ```
|
|
40
|
+
*/
|
|
41
|
+
list(options) {
|
|
42
|
+
return this._client.get('/api/v1/projects/list', options);
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Delete a project and all its associated data
|
|
46
|
+
*
|
|
47
|
+
* @example
|
|
48
|
+
* ```ts
|
|
49
|
+
* const project = await client.v1.projects.delete('id');
|
|
50
|
+
* ```
|
|
51
|
+
*/
|
|
52
|
+
delete(id, options) {
|
|
53
|
+
return this._client.delete(path `/api/v1/projects/${id}`, options);
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Get a single project by its ID
|
|
57
|
+
*
|
|
58
|
+
* @example
|
|
59
|
+
* ```ts
|
|
60
|
+
* const projectResponse = await client.v1.projects.get('id');
|
|
61
|
+
* ```
|
|
62
|
+
*/
|
|
63
|
+
get(id, options) {
|
|
64
|
+
return this._client.get(path `/api/v1/projects/${id}`, options);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
//# sourceMappingURL=projects.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"projects.mjs","sourceRoot":"","sources":["../../src/resources/v1/projects.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAIf,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;OAUG;IACH,MAAM,CAAC,IAAyB,EAAE,OAAwB;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,kBAAkB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrE,CAAC;IAED;;;;;;;;;OASG;IACH,MAAM,CAAC,EAAU,EAAE,IAAyB,EAAE,OAAwB;QACpE,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,oBAAoB,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9E,CAAC;IAED;;;;;;;;OAQG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,uBAAuB,EAAE,OAAO,CAAC,CAAC;IAC5D,CAAC;IAED;;;;;;;OAOG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,oBAAoB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACpE,CAAC;IAED;;;;;;;OAOG;IACH,GAAG,CAAC,EAAU,EAAE,OAAwB;QACtC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,oBAAoB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACjE,CAAC;CACF"}
|
package/resources/v1/v1.d.mts
CHANGED
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import { APIResource } from "../../core/resource.mjs";
|
|
2
2
|
import * as AuthAPI from "./auth.mjs";
|
|
3
3
|
import { Account, Auth, AuthConfirmPasswordRecoveryParams, AuthLoginParams, AuthLogoutParams, AuthRefreshAccessTokenParams, AuthRegisterAccountParams, AuthRequestPasswordRecoveryParams, AuthResponse, MessageResponse, Organization } from "./auth.mjs";
|
|
4
|
+
import * as ProjectsAPI from "./projects.mjs";
|
|
5
|
+
import { CreateProjectRequest, ListProjectsResponse, Project, ProjectCreateParams, ProjectDeleteResponse, ProjectResponse, ProjectUpdateParams, Projects, UpdateProjectRequest } from "./projects.mjs";
|
|
4
6
|
export declare class V1 extends APIResource {
|
|
7
|
+
projects: ProjectsAPI.Projects;
|
|
5
8
|
auth: AuthAPI.Auth;
|
|
6
9
|
}
|
|
7
10
|
export declare namespace V1 {
|
|
11
|
+
export { Projects as Projects, type CreateProjectRequest as CreateProjectRequest, type ListProjectsResponse as ListProjectsResponse, type Project as Project, type ProjectResponse as ProjectResponse, type UpdateProjectRequest as UpdateProjectRequest, type ProjectDeleteResponse as ProjectDeleteResponse, type ProjectCreateParams as ProjectCreateParams, type ProjectUpdateParams as ProjectUpdateParams, };
|
|
8
12
|
export { Auth as Auth, type Account as Account, type AuthResponse as AuthResponse, type MessageResponse as MessageResponse, type Organization as Organization, type AuthConfirmPasswordRecoveryParams as AuthConfirmPasswordRecoveryParams, type AuthLoginParams as AuthLoginParams, type AuthLogoutParams as AuthLogoutParams, type AuthRefreshAccessTokenParams as AuthRefreshAccessTokenParams, type AuthRegisterAccountParams as AuthRegisterAccountParams, type AuthRequestPasswordRecoveryParams as AuthRequestPasswordRecoveryParams, };
|
|
9
13
|
}
|
|
10
14
|
//# sourceMappingURL=v1.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v1.d.mts","sourceRoot":"","sources":["../../src/resources/v1/v1.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,OAAO;OACZ,EACL,OAAO,EACP,IAAI,EACJ,iCAAiC,EACjC,eAAe,EACf,gBAAgB,EAChB,4BAA4B,EAC5B,yBAAyB,EACzB,iCAAiC,EACjC,YAAY,EACZ,eAAe,EACf,YAAY,EACb;AAED,qBAAa,EAAG,SAAQ,WAAW;IACjC,IAAI,EAAE,OAAO,CAAC,IAAI,CAAkC;CACrD;
|
|
1
|
+
{"version":3,"file":"v1.d.mts","sourceRoot":"","sources":["../../src/resources/v1/v1.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,OAAO;OACZ,EACL,OAAO,EACP,IAAI,EACJ,iCAAiC,EACjC,eAAe,EACf,gBAAgB,EAChB,4BAA4B,EAC5B,yBAAyB,EACzB,iCAAiC,EACjC,YAAY,EACZ,eAAe,EACf,YAAY,EACb;OACM,KAAK,WAAW;OAChB,EACL,oBAAoB,EACpB,oBAAoB,EACpB,OAAO,EACP,mBAAmB,EACnB,qBAAqB,EACrB,eAAe,EACf,mBAAmB,EACnB,QAAQ,EACR,oBAAoB,EACrB;AAED,qBAAa,EAAG,SAAQ,WAAW;IACjC,QAAQ,EAAE,WAAW,CAAC,QAAQ,CAA0C;IACxE,IAAI,EAAE,OAAO,CAAC,IAAI,CAAkC;CACrD;AAKD,MAAM,CAAC,OAAO,WAAW,EAAE,CAAC;IAC1B,OAAO,EACL,QAAQ,IAAI,QAAQ,EACpB,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,OAAO,IAAI,OAAO,EACvB,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;IAEF,OAAO,EACL,IAAI,IAAI,IAAI,EACZ,KAAK,OAAO,IAAI,OAAO,EACvB,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,iCAAiC,IAAI,iCAAiC,EAC3E,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,iCAAiC,IAAI,iCAAiC,GAC5E,CAAC;CACH"}
|
package/resources/v1/v1.d.ts
CHANGED
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import { APIResource } from "../../core/resource.js";
|
|
2
2
|
import * as AuthAPI from "./auth.js";
|
|
3
3
|
import { Account, Auth, AuthConfirmPasswordRecoveryParams, AuthLoginParams, AuthLogoutParams, AuthRefreshAccessTokenParams, AuthRegisterAccountParams, AuthRequestPasswordRecoveryParams, AuthResponse, MessageResponse, Organization } from "./auth.js";
|
|
4
|
+
import * as ProjectsAPI from "./projects.js";
|
|
5
|
+
import { CreateProjectRequest, ListProjectsResponse, Project, ProjectCreateParams, ProjectDeleteResponse, ProjectResponse, ProjectUpdateParams, Projects, UpdateProjectRequest } from "./projects.js";
|
|
4
6
|
export declare class V1 extends APIResource {
|
|
7
|
+
projects: ProjectsAPI.Projects;
|
|
5
8
|
auth: AuthAPI.Auth;
|
|
6
9
|
}
|
|
7
10
|
export declare namespace V1 {
|
|
11
|
+
export { Projects as Projects, type CreateProjectRequest as CreateProjectRequest, type ListProjectsResponse as ListProjectsResponse, type Project as Project, type ProjectResponse as ProjectResponse, type UpdateProjectRequest as UpdateProjectRequest, type ProjectDeleteResponse as ProjectDeleteResponse, type ProjectCreateParams as ProjectCreateParams, type ProjectUpdateParams as ProjectUpdateParams, };
|
|
8
12
|
export { Auth as Auth, type Account as Account, type AuthResponse as AuthResponse, type MessageResponse as MessageResponse, type Organization as Organization, type AuthConfirmPasswordRecoveryParams as AuthConfirmPasswordRecoveryParams, type AuthLoginParams as AuthLoginParams, type AuthLogoutParams as AuthLogoutParams, type AuthRefreshAccessTokenParams as AuthRefreshAccessTokenParams, type AuthRegisterAccountParams as AuthRegisterAccountParams, type AuthRequestPasswordRecoveryParams as AuthRequestPasswordRecoveryParams, };
|
|
9
13
|
}
|
|
10
14
|
//# sourceMappingURL=v1.d.ts.map
|
package/resources/v1/v1.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v1.d.ts","sourceRoot":"","sources":["../../src/resources/v1/v1.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,OAAO;OACZ,EACL,OAAO,EACP,IAAI,EACJ,iCAAiC,EACjC,eAAe,EACf,gBAAgB,EAChB,4BAA4B,EAC5B,yBAAyB,EACzB,iCAAiC,EACjC,YAAY,EACZ,eAAe,EACf,YAAY,EACb;AAED,qBAAa,EAAG,SAAQ,WAAW;IACjC,IAAI,EAAE,OAAO,CAAC,IAAI,CAAkC;CACrD;
|
|
1
|
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C3D,KAAK,iCAAiC,IAAI,iCAAiC,GAC5E,CAAC;CACH"}
|
package/resources/v1/v1.js
CHANGED
|
@@ -6,12 +6,16 @@ const tslib_1 = require("../../internal/tslib.js");
|
|
|
6
6
|
const resource_1 = require("../../core/resource.js");
|
|
7
7
|
const AuthAPI = tslib_1.__importStar(require("./auth.js"));
|
|
8
8
|
const auth_1 = require("./auth.js");
|
|
9
|
+
const ProjectsAPI = tslib_1.__importStar(require("./projects.js"));
|
|
10
|
+
const projects_1 = require("./projects.js");
|
|
9
11
|
class V1 extends resource_1.APIResource {
|
|
10
12
|
constructor() {
|
|
11
13
|
super(...arguments);
|
|
14
|
+
this.projects = new ProjectsAPI.Projects(this._client);
|
|
12
15
|
this.auth = new AuthAPI.Auth(this._client);
|
|
13
16
|
}
|
|
14
17
|
}
|
|
15
18
|
exports.V1 = V1;
|
|
19
|
+
V1.Projects = projects_1.Projects;
|
|
16
20
|
V1.Auth = auth_1.Auth;
|
|
17
21
|
//# sourceMappingURL=v1.js.map
|
package/resources/v1/v1.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v1.js","sourceRoot":"","sources":["../../src/resources/v1/v1.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,2DAAkC;AAClC,oCAYgB;
|
|
1
|
+
{"version":3,"file":"v1.js","sourceRoot":"","sources":["../../src/resources/v1/v1.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,2DAAkC;AAClC,oCAYgB;AAChB,mEAA0C;AAC1C,4CAUoB;AAEpB,MAAa,EAAG,SAAQ,sBAAW;IAAnC;;QACE,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxE,SAAI,GAAiB,IAAI,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACtD,CAAC;CAAA;AAHD,gBAGC;AAED,EAAE,CAAC,QAAQ,GAAG,mBAAQ,CAAC;AACvB,EAAE,CAAC,IAAI,GAAG,WAAI,CAAC"}
|
package/resources/v1/v1.mjs
CHANGED
|
@@ -2,11 +2,15 @@
|
|
|
2
2
|
import { APIResource } from "../../core/resource.mjs";
|
|
3
3
|
import * as AuthAPI from "./auth.mjs";
|
|
4
4
|
import { Auth, } from "./auth.mjs";
|
|
5
|
+
import * as ProjectsAPI from "./projects.mjs";
|
|
6
|
+
import { Projects, } from "./projects.mjs";
|
|
5
7
|
export class V1 extends APIResource {
|
|
6
8
|
constructor() {
|
|
7
9
|
super(...arguments);
|
|
10
|
+
this.projects = new ProjectsAPI.Projects(this._client);
|
|
8
11
|
this.auth = new AuthAPI.Auth(this._client);
|
|
9
12
|
}
|
|
10
13
|
}
|
|
14
|
+
V1.Projects = Projects;
|
|
11
15
|
V1.Auth = Auth;
|
|
12
16
|
//# sourceMappingURL=v1.mjs.map
|
package/resources/v1/v1.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v1.mjs","sourceRoot":"","sources":["../../src/resources/v1/v1.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,OAAO;OACZ,EAEL,IAAI,GAUL;AAED,MAAM,OAAO,EAAG,SAAQ,WAAW;IAAnC;;QACE,SAAI,GAAiB,IAAI,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACtD,CAAC;CAAA;AAED,EAAE,CAAC,IAAI,GAAG,IAAI,CAAC"}
|
|
1
|
+
{"version":3,"file":"v1.mjs","sourceRoot":"","sources":["../../src/resources/v1/v1.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,OAAO;OACZ,EAEL,IAAI,GAUL;OACM,KAAK,WAAW;OAChB,EAQL,QAAQ,GAET;AAED,MAAM,OAAO,EAAG,SAAQ,WAAW;IAAnC;;QACE,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxE,SAAI,GAAiB,IAAI,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACtD,CAAC;CAAA;AAED,EAAE,CAAC,QAAQ,GAAG,QAAQ,CAAC;AACvB,EAAE,CAAC,IAAI,GAAG,IAAI,CAAC"}
|
|
@@ -13,4 +13,15 @@ export {
|
|
|
13
13
|
type AuthRegisterAccountParams,
|
|
14
14
|
type AuthRequestPasswordRecoveryParams,
|
|
15
15
|
} from './auth';
|
|
16
|
+
export {
|
|
17
|
+
Projects,
|
|
18
|
+
type CreateProjectRequest,
|
|
19
|
+
type ListProjectsResponse,
|
|
20
|
+
type Project,
|
|
21
|
+
type ProjectResponse,
|
|
22
|
+
type UpdateProjectRequest,
|
|
23
|
+
type ProjectDeleteResponse,
|
|
24
|
+
type ProjectCreateParams,
|
|
25
|
+
type ProjectUpdateParams,
|
|
26
|
+
} from './projects';
|
|
16
27
|
export { V1 } from './v1';
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../core/resource';
|
|
4
|
+
import * as AuthAPI from './auth';
|
|
5
|
+
import { APIPromise } from '../../core/api-promise';
|
|
6
|
+
import { RequestOptions } from '../../internal/request-options';
|
|
7
|
+
import { path } from '../../internal/utils/path';
|
|
8
|
+
|
|
9
|
+
export class Projects extends APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* Create a new project for the authenticated user's organization
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```ts
|
|
15
|
+
* const projectResponse = await client.v1.projects.create({
|
|
16
|
+
* name: 'My Awesome Project',
|
|
17
|
+
* website_url: 'https://example.com',
|
|
18
|
+
* });
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
create(body: ProjectCreateParams, options?: RequestOptions): APIPromise<ProjectResponse> {
|
|
22
|
+
return this._client.post('/api/v1/projects', { body, ...options });
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Update an existing project's details
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* ```ts
|
|
30
|
+
* const projectResponse = await client.v1.projects.update(
|
|
31
|
+
* 'id',
|
|
32
|
+
* );
|
|
33
|
+
* ```
|
|
34
|
+
*/
|
|
35
|
+
update(id: string, body: ProjectUpdateParams, options?: RequestOptions): APIPromise<ProjectResponse> {
|
|
36
|
+
return this._client.put(path`/api/v1/projects/${id}`, { body, ...options });
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Get a list of all projects belonging to the authenticated user's organization
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* ```ts
|
|
44
|
+
* const listProjectsResponse =
|
|
45
|
+
* await client.v1.projects.list();
|
|
46
|
+
* ```
|
|
47
|
+
*/
|
|
48
|
+
list(options?: RequestOptions): APIPromise<ListProjectsResponse> {
|
|
49
|
+
return this._client.get('/api/v1/projects/list', options);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Delete a project and all its associated data
|
|
54
|
+
*
|
|
55
|
+
* @example
|
|
56
|
+
* ```ts
|
|
57
|
+
* const project = await client.v1.projects.delete('id');
|
|
58
|
+
* ```
|
|
59
|
+
*/
|
|
60
|
+
delete(id: string, options?: RequestOptions): APIPromise<ProjectDeleteResponse> {
|
|
61
|
+
return this._client.delete(path`/api/v1/projects/${id}`, options);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Get a single project by its ID
|
|
66
|
+
*
|
|
67
|
+
* @example
|
|
68
|
+
* ```ts
|
|
69
|
+
* const projectResponse = await client.v1.projects.get('id');
|
|
70
|
+
* ```
|
|
71
|
+
*/
|
|
72
|
+
get(id: string, options?: RequestOptions): APIPromise<ProjectResponse> {
|
|
73
|
+
return this._client.get(path`/api/v1/projects/${id}`, options);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export interface CreateProjectRequest {
|
|
78
|
+
name: string;
|
|
79
|
+
|
|
80
|
+
website_url: string;
|
|
81
|
+
|
|
82
|
+
allow_localhost?: boolean;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export interface ListProjectsResponse {
|
|
86
|
+
projects?: Array<Project>;
|
|
87
|
+
|
|
88
|
+
total?: number;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export interface Project {
|
|
92
|
+
id?: string;
|
|
93
|
+
|
|
94
|
+
allow_local_host?: boolean;
|
|
95
|
+
|
|
96
|
+
domain?: string;
|
|
97
|
+
|
|
98
|
+
first_event_received_at?: string;
|
|
99
|
+
|
|
100
|
+
name?: string;
|
|
101
|
+
|
|
102
|
+
organization?: AuthAPI.Organization;
|
|
103
|
+
|
|
104
|
+
organization_id?: string;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
export interface ProjectResponse {
|
|
108
|
+
id?: string;
|
|
109
|
+
|
|
110
|
+
allow_local_host?: boolean;
|
|
111
|
+
|
|
112
|
+
domain?: string;
|
|
113
|
+
|
|
114
|
+
first_event_received_at?: string;
|
|
115
|
+
|
|
116
|
+
name?: string;
|
|
117
|
+
|
|
118
|
+
organization?: AuthAPI.Organization;
|
|
119
|
+
|
|
120
|
+
organization_id?: string;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
export interface UpdateProjectRequest {
|
|
124
|
+
allow_localhost?: boolean;
|
|
125
|
+
|
|
126
|
+
name?: string;
|
|
127
|
+
|
|
128
|
+
website_url?: string;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
export type ProjectDeleteResponse = { [key: string]: string };
|
|
132
|
+
|
|
133
|
+
export interface ProjectCreateParams {
|
|
134
|
+
name: string;
|
|
135
|
+
|
|
136
|
+
website_url: string;
|
|
137
|
+
|
|
138
|
+
allow_localhost?: boolean;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
export interface ProjectUpdateParams {
|
|
142
|
+
allow_localhost?: boolean;
|
|
143
|
+
|
|
144
|
+
name?: string;
|
|
145
|
+
|
|
146
|
+
website_url?: string;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
export declare namespace Projects {
|
|
150
|
+
export {
|
|
151
|
+
type CreateProjectRequest as CreateProjectRequest,
|
|
152
|
+
type ListProjectsResponse as ListProjectsResponse,
|
|
153
|
+
type Project as Project,
|
|
154
|
+
type ProjectResponse as ProjectResponse,
|
|
155
|
+
type UpdateProjectRequest as UpdateProjectRequest,
|
|
156
|
+
type ProjectDeleteResponse as ProjectDeleteResponse,
|
|
157
|
+
type ProjectCreateParams as ProjectCreateParams,
|
|
158
|
+
type ProjectUpdateParams as ProjectUpdateParams,
|
|
159
|
+
};
|
|
160
|
+
}
|
package/src/resources/v1/v1.ts
CHANGED
|
@@ -15,14 +15,40 @@ import {
|
|
|
15
15
|
MessageResponse,
|
|
16
16
|
Organization,
|
|
17
17
|
} from './auth';
|
|
18
|
+
import * as ProjectsAPI from './projects';
|
|
19
|
+
import {
|
|
20
|
+
CreateProjectRequest,
|
|
21
|
+
ListProjectsResponse,
|
|
22
|
+
Project,
|
|
23
|
+
ProjectCreateParams,
|
|
24
|
+
ProjectDeleteResponse,
|
|
25
|
+
ProjectResponse,
|
|
26
|
+
ProjectUpdateParams,
|
|
27
|
+
Projects,
|
|
28
|
+
UpdateProjectRequest,
|
|
29
|
+
} from './projects';
|
|
18
30
|
|
|
19
31
|
export class V1 extends APIResource {
|
|
32
|
+
projects: ProjectsAPI.Projects = new ProjectsAPI.Projects(this._client);
|
|
20
33
|
auth: AuthAPI.Auth = new AuthAPI.Auth(this._client);
|
|
21
34
|
}
|
|
22
35
|
|
|
36
|
+
V1.Projects = Projects;
|
|
23
37
|
V1.Auth = Auth;
|
|
24
38
|
|
|
25
39
|
export declare namespace V1 {
|
|
40
|
+
export {
|
|
41
|
+
Projects as Projects,
|
|
42
|
+
type CreateProjectRequest as CreateProjectRequest,
|
|
43
|
+
type ListProjectsResponse as ListProjectsResponse,
|
|
44
|
+
type Project as Project,
|
|
45
|
+
type ProjectResponse as ProjectResponse,
|
|
46
|
+
type UpdateProjectRequest as UpdateProjectRequest,
|
|
47
|
+
type ProjectDeleteResponse as ProjectDeleteResponse,
|
|
48
|
+
type ProjectCreateParams as ProjectCreateParams,
|
|
49
|
+
type ProjectUpdateParams as ProjectUpdateParams,
|
|
50
|
+
};
|
|
51
|
+
|
|
26
52
|
export {
|
|
27
53
|
Auth as Auth,
|
|
28
54
|
type Account as Account,
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.0
|
|
1
|
+
export const VERSION = '0.1.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.0
|
|
1
|
+
export declare const VERSION = "0.1.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.0
|
|
1
|
+
export declare const VERSION = "0.1.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.0
|
|
1
|
+
export const VERSION = '0.1.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|