@kittycad/lib 4.5.24 → 4.5.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.cjs +1 -1
- package/dist/mjs/index.js +1 -1
- package/dist/types/src/api/factory/create_org_factory_job_version.d.ts +25 -0
- package/dist/types/src/api/factory/create_org_factory_job_version.d.ts.map +1 -0
- package/dist/types/src/api/factory/create_user_factory_job_version.d.ts +25 -0
- package/dist/types/src/api/factory/create_user_factory_job_version.d.ts.map +1 -0
- package/dist/types/src/api/factory/get_org_factory_job_file.d.ts +22 -0
- package/dist/types/src/api/factory/get_org_factory_job_file.d.ts.map +1 -0
- package/dist/types/src/api/factory/get_user_factory_job_file.d.ts +22 -0
- package/dist/types/src/api/factory/get_user_factory_job_file.d.ts.map +1 -0
- package/dist/types/src/api/factory/list_org_factory_job_versions.d.ts +30 -0
- package/dist/types/src/api/factory/list_org_factory_job_versions.d.ts.map +1 -0
- package/dist/types/src/api/factory/list_user_factory_job_versions.d.ts +30 -0
- package/dist/types/src/api/factory/list_user_factory_job_versions.d.ts.map +1 -0
- package/dist/types/src/api/projects/create_project.d.ts +9 -1
- package/dist/types/src/api/projects/create_project.d.ts.map +1 -1
- package/dist/types/src/api/projects/create_project_library.d.ts +16 -0
- package/dist/types/src/api/projects/create_project_library.d.ts.map +1 -1
- package/dist/types/src/api/projects/delete_project_library.d.ts +4 -0
- package/dist/types/src/api/projects/delete_project_library.d.ts.map +1 -1
- package/dist/types/src/api/projects/delete_project_organization.d.ts +3 -1
- package/dist/types/src/api/projects/delete_project_organization.d.ts.map +1 -1
- package/dist/types/src/api/projects/download_project.d.ts +11 -5
- package/dist/types/src/api/projects/download_project.d.ts.map +1 -1
- package/dist/types/src/api/projects/download_project_version.d.ts +11 -5
- package/dist/types/src/api/projects/download_project_version.d.ts.map +1 -1
- package/dist/types/src/api/projects/download_public_project.d.ts +9 -5
- package/dist/types/src/api/projects/download_public_project.d.ts.map +1 -1
- package/dist/types/src/api/projects/list_library_projects.d.ts +8 -0
- package/dist/types/src/api/projects/list_library_projects.d.ts.map +1 -1
- package/dist/types/src/api/projects/list_project_libraries.d.ts +8 -0
- package/dist/types/src/api/projects/list_project_libraries.d.ts.map +1 -1
- package/dist/types/src/api/projects/list_projects.d.ts +4 -0
- package/dist/types/src/api/projects/list_projects.d.ts.map +1 -1
- package/dist/types/src/api/projects/rename_project_library.d.ts +6 -0
- package/dist/types/src/api/projects/rename_project_library.d.ts.map +1 -1
- package/dist/types/src/api/projects/update_project.d.ts +2 -0
- package/dist/types/src/api/projects/update_project.d.ts.map +1 -1
- package/dist/types/src/api/projects/update_project_library.d.ts +16 -0
- package/dist/types/src/api/projects/update_project_library.d.ts.map +1 -1
- package/dist/types/src/api/projects/update_project_organization.d.ts +3 -1
- package/dist/types/src/api/projects/update_project_organization.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +17 -1
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/models.d.ts +120 -8
- package/dist/types/src/models.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { File } from '../../models.js';
|
|
2
|
+
import { Client } from '../../client.js';
|
|
3
|
+
import { FactoryJobResponse, Uuid } from '../../models.js';
|
|
4
|
+
interface CreateOrgFactoryJobVersionInput {
|
|
5
|
+
client?: Client;
|
|
6
|
+
files: File[];
|
|
7
|
+
job_id: Uuid;
|
|
8
|
+
}
|
|
9
|
+
type CreateOrgFactoryJobVersionReturn = FactoryJobResponse;
|
|
10
|
+
/**
|
|
11
|
+
* Submit a complete new revision as a current human member of the owning organization.
|
|
12
|
+
*
|
|
13
|
+
* Tags: factory
|
|
14
|
+
*
|
|
15
|
+
* @param params Function parameters.
|
|
16
|
+
* @property {Client} [client] Optional client with auth token.
|
|
17
|
+
* @property {Uuid} job_id The requested job's identifier. (path)
|
|
18
|
+
* @property {File[]} files Files attached as multipart/form-data.
|
|
19
|
+
* @returns {Promise<CreateOrgFactoryJobVersionReturn>} successful creation
|
|
20
|
+
*
|
|
21
|
+
* Possible return types: FactoryJobResponse
|
|
22
|
+
*/
|
|
23
|
+
export default function create_org_factory_job_version({ client, files, job_id, }: CreateOrgFactoryJobVersionInput): Promise<CreateOrgFactoryJobVersionReturn>;
|
|
24
|
+
export {};
|
|
25
|
+
//# sourceMappingURL=create_org_factory_job_version.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create_org_factory_job_version.d.ts","sourceRoot":"","sources":["../../../../../src/api/factory/create_org_factory_job_version.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAA;AACtC,OAAO,EAAE,MAAM,EAAc,MAAM,iBAAiB,CAAA;AAGpD,OAAO,EAAE,kBAAkB,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAA;AAE1D,UAAU,+BAA+B;IACvC,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,KAAK,EAAE,IAAI,EAAE,CAAA;IACb,MAAM,EAAE,IAAI,CAAA;CACb;AAED,KAAK,gCAAgC,GAAG,kBAAkB,CAAA;AAE1D;;;;;;;;;;;;GAYG;AACH,wBAA8B,8BAA8B,CAAC,EAC3D,MAAM,EACN,KAAK,EACL,MAAM,GACP,EAAE,+BAA+B,GAAG,OAAO,CAAC,gCAAgC,CAAC,CAgC7E"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { File } from '../../models.js';
|
|
2
|
+
import { Client } from '../../client.js';
|
|
3
|
+
import { FactoryJobResponse, Uuid } from '../../models.js';
|
|
4
|
+
interface CreateUserFactoryJobVersionInput {
|
|
5
|
+
client?: Client;
|
|
6
|
+
files: File[];
|
|
7
|
+
job_id: Uuid;
|
|
8
|
+
}
|
|
9
|
+
type CreateUserFactoryJobVersionReturn = FactoryJobResponse;
|
|
10
|
+
/**
|
|
11
|
+
* Submit a complete new revision of a personal Factory job.
|
|
12
|
+
*
|
|
13
|
+
* Tags: factory
|
|
14
|
+
*
|
|
15
|
+
* @param params Function parameters.
|
|
16
|
+
* @property {Client} [client] Optional client with auth token.
|
|
17
|
+
* @property {Uuid} job_id The requested job's identifier. (path)
|
|
18
|
+
* @property {File[]} files Files attached as multipart/form-data.
|
|
19
|
+
* @returns {Promise<CreateUserFactoryJobVersionReturn>} successful creation
|
|
20
|
+
*
|
|
21
|
+
* Possible return types: FactoryJobResponse
|
|
22
|
+
*/
|
|
23
|
+
export default function create_user_factory_job_version({ client, files, job_id, }: CreateUserFactoryJobVersionInput): Promise<CreateUserFactoryJobVersionReturn>;
|
|
24
|
+
export {};
|
|
25
|
+
//# sourceMappingURL=create_user_factory_job_version.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create_user_factory_job_version.d.ts","sourceRoot":"","sources":["../../../../../src/api/factory/create_user_factory_job_version.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAA;AACtC,OAAO,EAAE,MAAM,EAAc,MAAM,iBAAiB,CAAA;AAGpD,OAAO,EAAE,kBAAkB,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAA;AAE1D,UAAU,gCAAgC;IACxC,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,KAAK,EAAE,IAAI,EAAE,CAAA;IACb,MAAM,EAAE,IAAI,CAAA;CACb;AAED,KAAK,iCAAiC,GAAG,kBAAkB,CAAA;AAE3D;;;;;;;;;;;;GAYG;AACH,wBAA8B,+BAA+B,CAAC,EAC5D,MAAM,EACN,KAAK,EACL,MAAM,GACP,EAAE,gCAAgC,GAAG,OAAO,CAAC,iCAAiC,CAAC,CAgC/E"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Client } from '../../client.js';
|
|
2
|
+
import { Uuid } from '../../models.js';
|
|
3
|
+
interface GetOrgFactoryJobFileInput {
|
|
4
|
+
client?: Client;
|
|
5
|
+
job_id: Uuid;
|
|
6
|
+
file_id: Uuid;
|
|
7
|
+
}
|
|
8
|
+
type GetOrgFactoryJobFileReturn = unknown;
|
|
9
|
+
/**
|
|
10
|
+
* Download an exact submitted manufacturing input for a current organization member.
|
|
11
|
+
*
|
|
12
|
+
* Tags: factory
|
|
13
|
+
*
|
|
14
|
+
* @param params Function parameters.
|
|
15
|
+
* @property {Client} [client] Optional client with auth token.
|
|
16
|
+
* @property {Uuid} job_id Stable job identifier. (path)
|
|
17
|
+
* @property {Uuid} file_id Submitted file identifier. (path)
|
|
18
|
+
* @returns {Promise<GetOrgFactoryJobFileReturn>} Response payload.
|
|
19
|
+
*/
|
|
20
|
+
export default function get_org_factory_job_file({ client, job_id, file_id, }: GetOrgFactoryJobFileInput): Promise<GetOrgFactoryJobFileReturn>;
|
|
21
|
+
export {};
|
|
22
|
+
//# sourceMappingURL=get_org_factory_job_file.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get_org_factory_job_file.d.ts","sourceRoot":"","sources":["../../../../../src/api/factory/get_org_factory_job_file.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAc,MAAM,iBAAiB,CAAA;AAGpD,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAA;AAEtC,UAAU,yBAAyB;IACjC,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,MAAM,EAAE,IAAI,CAAA;IACZ,OAAO,EAAE,IAAI,CAAA;CACd;AAED,KAAK,0BAA0B,GAAG,OAAO,CAAA;AAEzC;;;;;;;;;;GAUG;AACH,wBAA8B,wBAAwB,CAAC,EACrD,MAAM,EACN,MAAM,EACN,OAAO,GACR,EAAE,yBAAyB,GAAG,OAAO,CAAC,0BAA0B,CAAC,CAqBjE"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Client } from '../../client.js';
|
|
2
|
+
import { Uuid } from '../../models.js';
|
|
3
|
+
interface GetUserFactoryJobFileInput {
|
|
4
|
+
client?: Client;
|
|
5
|
+
job_id: Uuid;
|
|
6
|
+
file_id: Uuid;
|
|
7
|
+
}
|
|
8
|
+
type GetUserFactoryJobFileReturn = unknown;
|
|
9
|
+
/**
|
|
10
|
+
* Download an exact submitted manufacturing input of a personal Factory job.
|
|
11
|
+
*
|
|
12
|
+
* Tags: factory
|
|
13
|
+
*
|
|
14
|
+
* @param params Function parameters.
|
|
15
|
+
* @property {Client} [client] Optional client with auth token.
|
|
16
|
+
* @property {Uuid} job_id Stable job identifier. (path)
|
|
17
|
+
* @property {Uuid} file_id Submitted file identifier. (path)
|
|
18
|
+
* @returns {Promise<GetUserFactoryJobFileReturn>} Response payload.
|
|
19
|
+
*/
|
|
20
|
+
export default function get_user_factory_job_file({ client, job_id, file_id, }: GetUserFactoryJobFileInput): Promise<GetUserFactoryJobFileReturn>;
|
|
21
|
+
export {};
|
|
22
|
+
//# sourceMappingURL=get_user_factory_job_file.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get_user_factory_job_file.d.ts","sourceRoot":"","sources":["../../../../../src/api/factory/get_user_factory_job_file.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAc,MAAM,iBAAiB,CAAA;AAGpD,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAA;AAEtC,UAAU,0BAA0B;IAClC,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,MAAM,EAAE,IAAI,CAAA;IACZ,OAAO,EAAE,IAAI,CAAA;CACd;AAED,KAAK,2BAA2B,GAAG,OAAO,CAAA;AAE1C;;;;;;;;;;GAUG;AACH,wBAA8B,yBAAyB,CAAC,EACtD,MAAM,EACN,MAAM,EACN,OAAO,GACR,EAAE,0BAA0B,GAAG,OAAO,CAAC,2BAA2B,CAAC,CAqBnE"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Client } from '../../client.js';
|
|
2
|
+
import { Pager } from '../../pagination.js';
|
|
3
|
+
import { FactoryCustomerJobVersionResultsPage, Uuid, CreatedAtSortMode, FactoryCustomerJobVersion } from '../../models.js';
|
|
4
|
+
interface ListOrgFactoryJobVersionsInput {
|
|
5
|
+
client?: Client;
|
|
6
|
+
job_id: Uuid;
|
|
7
|
+
limit?: number;
|
|
8
|
+
page_token?: string;
|
|
9
|
+
sort_by?: CreatedAtSortMode;
|
|
10
|
+
}
|
|
11
|
+
type ListOrgFactoryJobVersionsReturn = FactoryCustomerJobVersionResultsPage;
|
|
12
|
+
/**
|
|
13
|
+
* List an organization's submitted revision history for a current member.
|
|
14
|
+
*
|
|
15
|
+
* Tags: factory
|
|
16
|
+
*
|
|
17
|
+
* @param params Function parameters.
|
|
18
|
+
* @property {Client} [client] Optional client with auth token.
|
|
19
|
+
* @property {Uuid} job_id The requested job's identifier. (path)
|
|
20
|
+
* @property {number} limit Maximum number of items returned by a single call (query)
|
|
21
|
+
* @property {string} page_token Token returned by previous call to retrieve the subsequent page (query)
|
|
22
|
+
* @property {CreatedAtSortMode} sort_by (query)
|
|
23
|
+
* @returns {Promise<ListOrgFactoryJobVersionsReturn>} successful operation
|
|
24
|
+
*
|
|
25
|
+
* Possible return types: FactoryCustomerJobVersionResultsPage
|
|
26
|
+
*/
|
|
27
|
+
export default function list_org_factory_job_versions({ client, job_id, limit, page_token, sort_by, }: ListOrgFactoryJobVersionsInput): Promise<ListOrgFactoryJobVersionsReturn>;
|
|
28
|
+
export declare function list_org_factory_job_versions_pager(params: ListOrgFactoryJobVersionsInput): Pager<ListOrgFactoryJobVersionsInput, ListOrgFactoryJobVersionsReturn, FactoryCustomerJobVersion>;
|
|
29
|
+
export {};
|
|
30
|
+
//# sourceMappingURL=list_org_factory_job_versions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list_org_factory_job_versions.d.ts","sourceRoot":"","sources":["../../../../../src/api/factory/list_org_factory_job_versions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAc,MAAM,iBAAiB,CAAA;AAEpD,OAAO,EAAE,KAAK,EAAe,MAAM,qBAAqB,CAAA;AAExD,OAAO,EACL,oCAAoC,EACpC,IAAI,EACJ,iBAAiB,EACjB,yBAAyB,EAC1B,MAAM,iBAAiB,CAAA;AAExB,UAAU,8BAA8B;IACtC,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,MAAM,EAAE,IAAI,CAAA;IACZ,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,OAAO,CAAC,EAAE,iBAAiB,CAAA;CAC5B;AAED,KAAK,+BAA+B,GAAG,oCAAoC,CAAA;AAE3E;;;;;;;;;;;;;;GAcG;AACH,wBAA8B,6BAA6B,CAAC,EAC1D,MAAM,EACN,MAAM,EACN,KAAK,EACL,UAAU,EACV,OAAO,GACR,EAAE,8BAA8B,GAAG,OAAO,CAAC,+BAA+B,CAAC,CAyB3E;AAED,wBAAgB,mCAAmC,CACjD,MAAM,EAAE,8BAA8B,GACrC,KAAK,CACN,8BAA8B,EAC9B,+BAA+B,EAC/B,yBAAyB,CAC1B,CAMA"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Client } from '../../client.js';
|
|
2
|
+
import { Pager } from '../../pagination.js';
|
|
3
|
+
import { FactoryCustomerJobVersionResultsPage, Uuid, CreatedAtSortMode, FactoryCustomerJobVersion } from '../../models.js';
|
|
4
|
+
interface ListUserFactoryJobVersionsInput {
|
|
5
|
+
client?: Client;
|
|
6
|
+
job_id: Uuid;
|
|
7
|
+
limit?: number;
|
|
8
|
+
page_token?: string;
|
|
9
|
+
sort_by?: CreatedAtSortMode;
|
|
10
|
+
}
|
|
11
|
+
type ListUserFactoryJobVersionsReturn = FactoryCustomerJobVersionResultsPage;
|
|
12
|
+
/**
|
|
13
|
+
* List a personal Factory job's submitted revision history, newest first by default.
|
|
14
|
+
*
|
|
15
|
+
* Tags: factory
|
|
16
|
+
*
|
|
17
|
+
* @param params Function parameters.
|
|
18
|
+
* @property {Client} [client] Optional client with auth token.
|
|
19
|
+
* @property {Uuid} job_id The requested job's identifier. (path)
|
|
20
|
+
* @property {number} limit Maximum number of items returned by a single call (query)
|
|
21
|
+
* @property {string} page_token Token returned by previous call to retrieve the subsequent page (query)
|
|
22
|
+
* @property {CreatedAtSortMode} sort_by (query)
|
|
23
|
+
* @returns {Promise<ListUserFactoryJobVersionsReturn>} successful operation
|
|
24
|
+
*
|
|
25
|
+
* Possible return types: FactoryCustomerJobVersionResultsPage
|
|
26
|
+
*/
|
|
27
|
+
export default function list_user_factory_job_versions({ client, job_id, limit, page_token, sort_by, }: ListUserFactoryJobVersionsInput): Promise<ListUserFactoryJobVersionsReturn>;
|
|
28
|
+
export declare function list_user_factory_job_versions_pager(params: ListUserFactoryJobVersionsInput): Pager<ListUserFactoryJobVersionsInput, ListUserFactoryJobVersionsReturn, FactoryCustomerJobVersion>;
|
|
29
|
+
export {};
|
|
30
|
+
//# sourceMappingURL=list_user_factory_job_versions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list_user_factory_job_versions.d.ts","sourceRoot":"","sources":["../../../../../src/api/factory/list_user_factory_job_versions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAc,MAAM,iBAAiB,CAAA;AAEpD,OAAO,EAAE,KAAK,EAAe,MAAM,qBAAqB,CAAA;AAExD,OAAO,EACL,oCAAoC,EACpC,IAAI,EACJ,iBAAiB,EACjB,yBAAyB,EAC1B,MAAM,iBAAiB,CAAA;AAExB,UAAU,+BAA+B;IACvC,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,MAAM,EAAE,IAAI,CAAA;IACZ,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,OAAO,CAAC,EAAE,iBAAiB,CAAA;CAC5B;AAED,KAAK,gCAAgC,GAAG,oCAAoC,CAAA;AAE5E;;;;;;;;;;;;;;GAcG;AACH,wBAA8B,8BAA8B,CAAC,EAC3D,MAAM,EACN,MAAM,EACN,KAAK,EACL,UAAU,EACV,OAAO,GACR,EAAE,+BAA+B,GAAG,OAAO,CAAC,gCAAgC,CAAC,CAyB7E;AAED,wBAAgB,oCAAoC,CAClD,MAAM,EAAE,+BAA+B,GACtC,KAAK,CACN,+BAA+B,EAC/B,gCAAgC,EAChC,yBAAyB,CAC1B,CAMA"}
|
|
@@ -7,7 +7,15 @@ interface CreateProjectInput {
|
|
|
7
7
|
}
|
|
8
8
|
type CreateProjectReturn = ProjectResponse;
|
|
9
9
|
/**
|
|
10
|
-
* Create a
|
|
10
|
+
* Create a project for the authenticated user.
|
|
11
|
+
*
|
|
12
|
+
* Send multipart data with a JSON `body` part and file parts whose filenames are relative project paths. Include an optional `library_id` in the JSON to create the project in a named library:
|
|
13
|
+
*
|
|
14
|
+
* ```json { "title": "Bracket", "entrypoint_path": "main.kcl", "library_id": "<LIBRARY_ID>" } ```
|
|
15
|
+
*
|
|
16
|
+
* A personal library creates a personal project. An accessible library belonging to the active organization creates an organization project with the caller as its creator; creating the project does not require library-management rights. Omitting `library_id` or passing null creates an unassigned personal project, even when the request has an active organization.
|
|
17
|
+
*
|
|
18
|
+
* The HTTP 201 response includes `id`, `library_id`, content `revision`, and `metadata_revision`. Later saves preserve membership, even if they include a library field. Use `PUT /user/projects/{id}/library` to move or unassign an existing project instead of uploading its files again.
|
|
11
19
|
*
|
|
12
20
|
* Tags: projects
|
|
13
21
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create_project.d.ts","sourceRoot":"","sources":["../../../../../src/api/projects/create_project.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAA;AACtC,OAAO,EAAE,MAAM,EAAc,MAAM,iBAAiB,CAAA;AAGpD,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAA;AAEjD,UAAU,kBAAkB;IAC1B,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,KAAK,EAAE,IAAI,EAAE,CAAA;CACd;AAED,KAAK,mBAAmB,GAAG,eAAe,CAAA;AAE1C
|
|
1
|
+
{"version":3,"file":"create_project.d.ts","sourceRoot":"","sources":["../../../../../src/api/projects/create_project.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAA;AACtC,OAAO,EAAE,MAAM,EAAc,MAAM,iBAAiB,CAAA;AAGpD,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAA;AAEjD,UAAU,kBAAkB;IAC1B,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,KAAK,EAAE,IAAI,EAAE,CAAA;CACd;AAED,KAAK,mBAAmB,GAAG,eAAe,CAAA;AAE1C;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAA8B,cAAc,CAAC,EAC3C,MAAM,EACN,KAAK,GACN,EAAE,kBAAkB,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAgCnD"}
|
|
@@ -8,6 +8,22 @@ type CreateProjectLibraryReturn = ProjectLibraryResponse;
|
|
|
8
8
|
/**
|
|
9
9
|
* Create a personal library or a library owned by the active organization.
|
|
10
10
|
*
|
|
11
|
+
* Send JSON with a name and explicit ownership scope:
|
|
12
|
+
*
|
|
13
|
+
* ```json { "name": "Designs", "scope": "personal" } ```
|
|
14
|
+
*
|
|
15
|
+
* Use `scope: "organization"` to create a library for the request's active organization; this requires organization-admin access. There is no organization ID in this body. Personal scope always uses the authenticated user.
|
|
16
|
+
*
|
|
17
|
+
* Names are trimmed, must contain 1–255 characters, and are unique ignoring case within each user or organization. Display capitalization is preserved. Duplicate names return HTTP 409. The HTTP 201 response contains the library ID, ownership, revision, and `can_manage`. Creating a library does not move existing projects; select its ID when creating a project, or move an existing project with `PUT /user/projects/{id}/library`.
|
|
18
|
+
*
|
|
19
|
+
* Include `source` to identify the application that created the library:
|
|
20
|
+
*
|
|
21
|
+
* ```json { "name": "Factory designs", "scope": "personal", "source": "factory_portal" } ```
|
|
22
|
+
*
|
|
23
|
+
* Accepted sources are `zds`, `factory_portal`, and `org_dataset`. Omitting source defaults to `zds`. Null and unsupported values return HTTP 400.
|
|
24
|
+
*
|
|
25
|
+
* Source is returned in library responses and cannot be changed after creation. Clients use it to decide how to display libraries; it does not change API permissions. No API source filter is provided at the moment.
|
|
26
|
+
*
|
|
11
27
|
* Tags: projects
|
|
12
28
|
*
|
|
13
29
|
* @param params Function parameters.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create_project_library.d.ts","sourceRoot":"","sources":["../../../../../src/api/projects/create_project_library.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAc,MAAM,iBAAiB,CAAA;AAGpD,OAAO,EACL,sBAAsB,EACtB,2BAA2B,EAC5B,MAAM,iBAAiB,CAAA;AAExB,UAAU,yBAAyB;IACjC,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,IAAI,EAAE,2BAA2B,CAAA;CAClC;AAED,KAAK,0BAA0B,GAAG,sBAAsB,CAAA;AAExD
|
|
1
|
+
{"version":3,"file":"create_project_library.d.ts","sourceRoot":"","sources":["../../../../../src/api/projects/create_project_library.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAc,MAAM,iBAAiB,CAAA;AAGpD,OAAO,EACL,sBAAsB,EACtB,2BAA2B,EAC5B,MAAM,iBAAiB,CAAA;AAExB,UAAU,yBAAyB;IACjC,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,IAAI,EAAE,2BAA2B,CAAA;CAClC;AAED,KAAK,0BAA0B,GAAG,sBAAsB,CAAA;AAExD;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,wBAA8B,sBAAsB,CAAC,EACnD,MAAM,EACN,IAAI,GACL,EAAE,yBAAyB,GAAG,OAAO,CAAC,0BAA0B,CAAC,CAuBjE"}
|
|
@@ -9,6 +9,10 @@ type DeleteProjectLibraryReturn = void;
|
|
|
9
9
|
/**
|
|
10
10
|
* Delete an empty cloud project library.
|
|
11
11
|
*
|
|
12
|
+
* Supply the library's last-read `revision` as the required `expected_revision` query parameter. URL-encode this value. Only the personal owner or an admin of the active organization can delete the library. Libraries managed by an organization dataset cannot be deleted independently; those requests return HTTP 409.
|
|
13
|
+
*
|
|
14
|
+
* Move or unassign all projects first. A nonempty library or stale revision returns HTTP 409. Success returns HTTP 204 without deleting projects or history. Library revisions are separate from project `revision` and `metadata_revision`.
|
|
15
|
+
*
|
|
12
16
|
* Tags: projects
|
|
13
17
|
*
|
|
14
18
|
* @param params Function parameters.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete_project_library.d.ts","sourceRoot":"","sources":["../../../../../src/api/projects/delete_project_library.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAc,MAAM,iBAAiB,CAAA;AAGpD,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAA;AAEtC,UAAU,yBAAyB;IACjC,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,EAAE,EAAE,IAAI,CAAA;IACR,iBAAiB,EAAE,MAAM,CAAA;CAC1B;AAED,KAAK,0BAA0B,GAAG,IAAI,CAAA;AAEtC
|
|
1
|
+
{"version":3,"file":"delete_project_library.d.ts","sourceRoot":"","sources":["../../../../../src/api/projects/delete_project_library.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAc,MAAM,iBAAiB,CAAA;AAGpD,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAA;AAEtC,UAAU,yBAAyB;IACjC,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,EAAE,EAAE,IAAI,CAAA;IACR,iBAAiB,EAAE,MAAM,CAAA;CAC1B;AAED,KAAK,0BAA0B,GAAG,IAAI,CAAA;AAEtC;;;;;;;;;;;;;;GAcG;AACH,wBAA8B,sBAAsB,CAAC,EACnD,MAAM,EACN,EAAE,EACF,iBAAiB,GAClB,EAAE,yBAAyB,GAAG,OAAO,CAAC,0BAA0B,CAAC,CAoBjE"}
|
|
@@ -6,10 +6,12 @@ interface DeleteProjectOrganizationInput {
|
|
|
6
6
|
}
|
|
7
7
|
type DeleteProjectOrganizationReturn = void;
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Transfer an organization project back to its creator's personal ownership.
|
|
10
10
|
*
|
|
11
11
|
* Organization administrators may perform this move to revoke organization access. The project ID, current revision, files, and version history remain unchanged.
|
|
12
12
|
*
|
|
13
|
+
* The ownership change clears `library_id` and changes `metadata_revision`, leaving the project unassigned under its creator. Success returns HTTP 204. Fetch the project again before assigning it to a personal named library.
|
|
14
|
+
*
|
|
13
15
|
* Tags: projects
|
|
14
16
|
*
|
|
15
17
|
* @param params Function parameters.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete_project_organization.d.ts","sourceRoot":"","sources":["../../../../../src/api/projects/delete_project_organization.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAc,MAAM,iBAAiB,CAAA;AAGpD,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAA;AAEtC,UAAU,8BAA8B;IACtC,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,EAAE,EAAE,IAAI,CAAA;CACT;AAED,KAAK,+BAA+B,GAAG,IAAI,CAAA;AAE3C
|
|
1
|
+
{"version":3,"file":"delete_project_organization.d.ts","sourceRoot":"","sources":["../../../../../src/api/projects/delete_project_organization.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAc,MAAM,iBAAiB,CAAA;AAGpD,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAA;AAEtC,UAAU,8BAA8B;IACtC,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,EAAE,EAAE,IAAI,CAAA;CACT;AAED,KAAK,+BAA+B,GAAG,IAAI,CAAA;AAE3C;;;;;;;;;;;;;GAaG;AACH,wBAA8B,2BAA2B,CAAC,EACxD,MAAM,EACN,EAAE,GACH,EAAE,8BAA8B,GAAG,OAAO,CAAC,+BAA+B,CAAC,CAoB3E"}
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
import { Client } from '../../client.js';
|
|
2
|
-
import { Uuid, ProjectArchiveFormat } from '../../models.js';
|
|
2
|
+
import { ProjectDownloadErrorResponse, Uuid, ProjectArchiveFormat } from '../../models.js';
|
|
3
3
|
interface DownloadProjectInput {
|
|
4
4
|
client?: Client;
|
|
5
5
|
id: Uuid;
|
|
6
6
|
format?: ProjectArchiveFormat;
|
|
7
|
+
file_ids?: unknown;
|
|
7
8
|
}
|
|
8
|
-
type DownloadProjectReturn =
|
|
9
|
+
type DownloadProjectReturn = ProjectDownloadErrorResponse;
|
|
9
10
|
/**
|
|
10
|
-
* Download
|
|
11
|
+
* Download all or selected files from the current version of a project.
|
|
12
|
+
*
|
|
13
|
+
* Use `file_ids=<UUID>,<UUID>` to select files from the current version. This endpoint resolves the project's current version at request time, so file IDs from before a save may no longer belong to it. To download those files, use `/user/projects/{id}/versions/{version_id}/download` with `version_id` set to the `summary.revision` returned alongside that file list. A single selected file still uses the requested tar or zip archive format.
|
|
11
14
|
*
|
|
12
15
|
* Tags: projects
|
|
13
16
|
*
|
|
@@ -15,8 +18,11 @@ type DownloadProjectReturn = unknown;
|
|
|
15
18
|
* @property {Client} [client] Optional client with auth token.
|
|
16
19
|
* @property {Uuid} id The identifier. (path)
|
|
17
20
|
* @property {ProjectArchiveFormat} format Archive format to return. Defaults to `tar`. (query)
|
|
18
|
-
* @
|
|
21
|
+
* @property {unknown} file_ids Optional comma-separated file IDs from this download's version. Omit to download every file. An empty or malformed list returns HTTP 400 with `error_code: InvalidProjectFileIds`. Any ID outside this version returns HTTP 400 with `error_code: InvalidProjectFileSelection` and a `missing_file_ids` array listing the requested IDs absent from this version. The entire selection fails: requesting ten IDs with one missing returns HTTP 400 without an archive. Missing projects or versions still return HTTP 404. Repeated IDs are included once. Selecting one file still returns the requested archive format. (query)
|
|
22
|
+
* @returns {Promise<DownloadProjectReturn>} Invalid download parameters. InvalidProjectFileSelection includes missing_file_ids.
|
|
23
|
+
*
|
|
24
|
+
* Possible return types: ProjectDownloadErrorResponse
|
|
19
25
|
*/
|
|
20
|
-
export default function download_project({ client, id, format, }: DownloadProjectInput): Promise<DownloadProjectReturn>;
|
|
26
|
+
export default function download_project({ client, id, format, file_ids, }: DownloadProjectInput): Promise<DownloadProjectReturn>;
|
|
21
27
|
export {};
|
|
22
28
|
//# sourceMappingURL=download_project.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"download_project.d.ts","sourceRoot":"","sources":["../../../../../src/api/projects/download_project.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAc,MAAM,iBAAiB,CAAA;AAGpD,OAAO,
|
|
1
|
+
{"version":3,"file":"download_project.d.ts","sourceRoot":"","sources":["../../../../../src/api/projects/download_project.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAc,MAAM,iBAAiB,CAAA;AAGpD,OAAO,EACL,4BAA4B,EAC5B,IAAI,EACJ,oBAAoB,EACrB,MAAM,iBAAiB,CAAA;AAExB,UAAU,oBAAoB;IAC5B,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,EAAE,EAAE,IAAI,CAAA;IACR,MAAM,CAAC,EAAE,oBAAoB,CAAA;IAC7B,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;AAED,KAAK,qBAAqB,GAAG,4BAA4B,CAAA;AAEzD;;;;;;;;;;;;;;;GAeG;AACH,wBAA8B,gBAAgB,CAAC,EAC7C,MAAM,EACN,EAAE,EACF,MAAM,EACN,QAAQ,GACT,EAAE,oBAAoB,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAqBvD"}
|
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
import { Client } from '../../client.js';
|
|
2
|
-
import { Uuid, ProjectArchiveFormat } from '../../models.js';
|
|
2
|
+
import { ProjectDownloadErrorResponse, Uuid, ProjectArchiveFormat } from '../../models.js';
|
|
3
3
|
interface DownloadProjectVersionInput {
|
|
4
4
|
client?: Client;
|
|
5
5
|
id: Uuid;
|
|
6
6
|
version_id: Uuid;
|
|
7
7
|
format?: ProjectArchiveFormat;
|
|
8
|
+
file_ids?: unknown;
|
|
8
9
|
}
|
|
9
|
-
type DownloadProjectVersionReturn =
|
|
10
|
+
type DownloadProjectVersionReturn = ProjectDownloadErrorResponse;
|
|
10
11
|
/**
|
|
11
|
-
* Download
|
|
12
|
+
* Download all or selected files saved in one project version.
|
|
13
|
+
*
|
|
14
|
+
* Select files with `file_ids=<UUID>,<UUID>`. IDs must belong to this version; omitted files are excluded, including the manifest unless explicitly selected. The response is a tar or zip archive even when selecting one file.
|
|
12
15
|
*
|
|
13
16
|
* Tags: projects
|
|
14
17
|
*
|
|
@@ -17,8 +20,11 @@ type DownloadProjectVersionReturn = unknown;
|
|
|
17
20
|
* @property {Uuid} id Project identifier. (path)
|
|
18
21
|
* @property {Uuid} version_id Requested version identifier. (path)
|
|
19
22
|
* @property {ProjectArchiveFormat} format Archive format to return. Defaults to `tar`. (query)
|
|
20
|
-
* @
|
|
23
|
+
* @property {unknown} file_ids Optional comma-separated file IDs from this download's version. Omit to download every file. An empty or malformed list returns HTTP 400 with `error_code: InvalidProjectFileIds`. Any ID outside this version returns HTTP 400 with `error_code: InvalidProjectFileSelection` and a `missing_file_ids` array listing the requested IDs absent from this version. The entire selection fails: requesting ten IDs with one missing returns HTTP 400 without an archive. Missing projects or versions still return HTTP 404. Repeated IDs are included once. Selecting one file still returns the requested archive format. (query)
|
|
24
|
+
* @returns {Promise<DownloadProjectVersionReturn>} Invalid download parameters. InvalidProjectFileSelection includes missing_file_ids.
|
|
25
|
+
*
|
|
26
|
+
* Possible return types: ProjectDownloadErrorResponse
|
|
21
27
|
*/
|
|
22
|
-
export default function download_project_version({ client, id, version_id, format, }: DownloadProjectVersionInput): Promise<DownloadProjectVersionReturn>;
|
|
28
|
+
export default function download_project_version({ client, id, version_id, format, file_ids, }: DownloadProjectVersionInput): Promise<DownloadProjectVersionReturn>;
|
|
23
29
|
export {};
|
|
24
30
|
//# sourceMappingURL=download_project_version.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"download_project_version.d.ts","sourceRoot":"","sources":["../../../../../src/api/projects/download_project_version.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAc,MAAM,iBAAiB,CAAA;AAGpD,OAAO,
|
|
1
|
+
{"version":3,"file":"download_project_version.d.ts","sourceRoot":"","sources":["../../../../../src/api/projects/download_project_version.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAc,MAAM,iBAAiB,CAAA;AAGpD,OAAO,EACL,4BAA4B,EAC5B,IAAI,EACJ,oBAAoB,EACrB,MAAM,iBAAiB,CAAA;AAExB,UAAU,2BAA2B;IACnC,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,EAAE,EAAE,IAAI,CAAA;IACR,UAAU,EAAE,IAAI,CAAA;IAChB,MAAM,CAAC,EAAE,oBAAoB,CAAA;IAC7B,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;AAED,KAAK,4BAA4B,GAAG,4BAA4B,CAAA;AAEhE;;;;;;;;;;;;;;;;GAgBG;AACH,wBAA8B,wBAAwB,CAAC,EACrD,MAAM,EACN,EAAE,EACF,UAAU,EACV,MAAM,EACN,QAAQ,GACT,EAAE,2BAA2B,GAAG,OAAO,CAAC,4BAA4B,CAAC,CAqBrE"}
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { Client } from '../../client.js';
|
|
2
|
-
import { Uuid, ProjectArchiveFormat } from '../../models.js';
|
|
2
|
+
import { ProjectDownloadErrorResponse, Uuid, ProjectArchiveFormat } from '../../models.js';
|
|
3
3
|
interface DownloadPublicProjectInput {
|
|
4
4
|
client?: Client;
|
|
5
5
|
id: Uuid;
|
|
6
6
|
format?: ProjectArchiveFormat;
|
|
7
|
+
file_ids?: unknown;
|
|
7
8
|
}
|
|
8
|
-
type DownloadPublicProjectReturn =
|
|
9
|
+
type DownloadPublicProjectReturn = ProjectDownloadErrorResponse;
|
|
9
10
|
/**
|
|
10
|
-
* Download
|
|
11
|
+
* Download all or selected files from a published public project.
|
|
11
12
|
*
|
|
12
13
|
* Tags: projects
|
|
13
14
|
*
|
|
@@ -15,8 +16,11 @@ type DownloadPublicProjectReturn = unknown;
|
|
|
15
16
|
* @property {Client} [client] Optional client with auth token.
|
|
16
17
|
* @property {Uuid} id The identifier. (path)
|
|
17
18
|
* @property {ProjectArchiveFormat} format Archive format to return. Defaults to `tar`. (query)
|
|
18
|
-
* @
|
|
19
|
+
* @property {unknown} file_ids Optional comma-separated file IDs from this download's version. Omit to download every file. An empty or malformed list returns HTTP 400 with `error_code: InvalidProjectFileIds`. Any ID outside this version returns HTTP 400 with `error_code: InvalidProjectFileSelection` and a `missing_file_ids` array listing the requested IDs absent from this version. The entire selection fails: requesting ten IDs with one missing returns HTTP 400 without an archive. Missing projects or versions still return HTTP 404. Repeated IDs are included once. Selecting one file still returns the requested archive format. (query)
|
|
20
|
+
* @returns {Promise<DownloadPublicProjectReturn>} Invalid download parameters. InvalidProjectFileSelection includes missing_file_ids.
|
|
21
|
+
*
|
|
22
|
+
* Possible return types: ProjectDownloadErrorResponse
|
|
19
23
|
*/
|
|
20
|
-
export default function download_public_project({ client, id, format, }: DownloadPublicProjectInput): Promise<DownloadPublicProjectReturn>;
|
|
24
|
+
export default function download_public_project({ client, id, format, file_ids, }: DownloadPublicProjectInput): Promise<DownloadPublicProjectReturn>;
|
|
21
25
|
export {};
|
|
22
26
|
//# sourceMappingURL=download_public_project.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"download_public_project.d.ts","sourceRoot":"","sources":["../../../../../src/api/projects/download_public_project.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAc,MAAM,iBAAiB,CAAA;AAGpD,OAAO,
|
|
1
|
+
{"version":3,"file":"download_public_project.d.ts","sourceRoot":"","sources":["../../../../../src/api/projects/download_public_project.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAc,MAAM,iBAAiB,CAAA;AAGpD,OAAO,EACL,4BAA4B,EAC5B,IAAI,EACJ,oBAAoB,EACrB,MAAM,iBAAiB,CAAA;AAExB,UAAU,0BAA0B;IAClC,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,EAAE,EAAE,IAAI,CAAA;IACR,MAAM,CAAC,EAAE,oBAAoB,CAAA;IAC7B,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;AAED,KAAK,2BAA2B,GAAG,4BAA4B,CAAA;AAE/D;;;;;;;;;;;;;GAaG;AACH,wBAA8B,uBAAuB,CAAC,EACpD,MAAM,EACN,EAAE,EACF,MAAM,EACN,QAAQ,GACT,EAAE,0BAA0B,GAAG,OAAO,CAAC,2BAA2B,CAAC,CAqBnE"}
|
|
@@ -11,6 +11,14 @@ type ListLibraryProjectsReturn = ProjectSummaryResponseResultsPage;
|
|
|
11
11
|
/**
|
|
12
12
|
* List projects in a cloud library, newest first.
|
|
13
13
|
*
|
|
14
|
+
* Returns project summaries in `items`, with `next_page` for continuation. Pass `?page_token=<next_page>` on the same library endpoint until `next_page` is null. Keep the same authenticated user and active organization for every page. Results are ordered by creation time descending, then project ID ascending.
|
|
15
|
+
*
|
|
16
|
+
* Each summary includes `library_id`, content `revision`, `metadata_revision`, and the caller's project `access` capabilities. Access to a library does not grant additional project permissions.
|
|
17
|
+
*
|
|
18
|
+
* Projects can move or disappear while pages load. Even an empty page can have a continuation token; stop only when `next_page` is null.
|
|
19
|
+
*
|
|
20
|
+
* When loading several libraries, a project may appear in library A's results, then move to library B before B is loaded. Combining those results can show the same project twice. Use the project ID to show it once, and fetch its latest details to confirm which library it belongs to. A missing list entry may also mean the project moved; fetch its details before treating it as deleted, and preserve unsynced local edits.
|
|
21
|
+
*
|
|
14
22
|
* Tags: projects
|
|
15
23
|
*
|
|
16
24
|
* @param params Function parameters.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list_library_projects.d.ts","sourceRoot":"","sources":["../../../../../src/api/projects/list_library_projects.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAc,MAAM,iBAAiB,CAAA;AAEpD,OAAO,EAAE,KAAK,EAAe,MAAM,qBAAqB,CAAA;AAExD,OAAO,EACL,iCAAiC,EACjC,IAAI,EACJ,sBAAsB,EACvB,MAAM,iBAAiB,CAAA;AAExB,UAAU,wBAAwB;IAChC,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,EAAE,EAAE,IAAI,CAAA;IACR,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB;AAED,KAAK,yBAAyB,GAAG,iCAAiC,CAAA;AAElE
|
|
1
|
+
{"version":3,"file":"list_library_projects.d.ts","sourceRoot":"","sources":["../../../../../src/api/projects/list_library_projects.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAc,MAAM,iBAAiB,CAAA;AAEpD,OAAO,EAAE,KAAK,EAAe,MAAM,qBAAqB,CAAA;AAExD,OAAO,EACL,iCAAiC,EACjC,IAAI,EACJ,sBAAsB,EACvB,MAAM,iBAAiB,CAAA;AAExB,UAAU,wBAAwB;IAChC,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,EAAE,EAAE,IAAI,CAAA;IACR,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB;AAED,KAAK,yBAAyB,GAAG,iCAAiC,CAAA;AAElE;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAA8B,qBAAqB,CAAC,EAClD,MAAM,EACN,EAAE,EACF,KAAK,EACL,UAAU,GACX,EAAE,wBAAwB,GAAG,OAAO,CAAC,yBAAyB,CAAC,CAqB/D;AAED,wBAAgB,2BAA2B,CACzC,MAAM,EAAE,wBAAwB,GAC/B,KAAK,CACN,wBAAwB,EACxB,yBAAyB,EACzB,sBAAsB,CACvB,CAMA"}
|
|
@@ -10,6 +10,14 @@ type ListProjectLibrariesReturn = ProjectLibraryResponseResultsPage;
|
|
|
10
10
|
/**
|
|
11
11
|
* List personal libraries and libraries belonging to the active organization.
|
|
12
12
|
*
|
|
13
|
+
* Returns an object with `items` and `next_page`, ordered by library ID. Request the next page with `?page_token=<next_page>` until `next_page` is null. Keep the same authenticated user and active organization for every page; changing that context requires starting a new list request.
|
|
14
|
+
*
|
|
15
|
+
* Each library has a stable `id`, a display `name`, either `user_id` or `org_id`, an opaque `revision`, and `can_manage`. Use the ID to track a library across renames. `can_manage` allows renaming/deleting the library, not editing all of its projects. Organization members can discover libraries; only organization admins can manage them. Project permissions remain unchanged.
|
|
16
|
+
*
|
|
17
|
+
* Projects with `library_id: null` have no named library. They do not appear as a library record here. Use `GET /user/projects?scope=personal&unassigned=true` for the default personal group, or `scope=organization&unassigned=true` for the active organization's unassigned projects.
|
|
18
|
+
*
|
|
19
|
+
* Each library includes its creation source: `zds`, `factory_portal`, or `org_dataset`. Libraries created before source tracking are returned as `zds`. Clients can filter the results by source; API permissions remain unchanged.
|
|
20
|
+
*
|
|
13
21
|
* Tags: projects
|
|
14
22
|
*
|
|
15
23
|
* @param params Function parameters.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list_project_libraries.d.ts","sourceRoot":"","sources":["../../../../../src/api/projects/list_project_libraries.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAc,MAAM,iBAAiB,CAAA;AAEpD,OAAO,EAAE,KAAK,EAAe,MAAM,qBAAqB,CAAA;AAExD,OAAO,EACL,iCAAiC,EACjC,sBAAsB,EACvB,MAAM,iBAAiB,CAAA;AAExB,UAAU,yBAAyB;IACjC,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB;AAED,KAAK,0BAA0B,GAAG,iCAAiC,CAAA;AAEnE
|
|
1
|
+
{"version":3,"file":"list_project_libraries.d.ts","sourceRoot":"","sources":["../../../../../src/api/projects/list_project_libraries.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAc,MAAM,iBAAiB,CAAA;AAEpD,OAAO,EAAE,KAAK,EAAe,MAAM,qBAAqB,CAAA;AAExD,OAAO,EACL,iCAAiC,EACjC,sBAAsB,EACvB,MAAM,iBAAiB,CAAA;AAExB,UAAU,yBAAyB;IACjC,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB;AAED,KAAK,0BAA0B,GAAG,iCAAiC,CAAA;AAEnE;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAA8B,sBAAsB,CAAC,EACnD,MAAM,EACN,KAAK,EACL,UAAU,GACX,EAAE,yBAAyB,GAAG,OAAO,CAAC,0BAA0B,CAAC,CAqBjE;AAED,wBAAgB,4BAA4B,CAC1C,MAAM,EAAE,yBAAyB,GAChC,KAAK,CACN,yBAAyB,EACzB,0BAA0B,EAC1B,sBAAsB,CACvB,CAMA"}
|
|
@@ -9,6 +9,10 @@ type ListProjectsReturn = ProjectSummaryResponse[];
|
|
|
9
9
|
/**
|
|
10
10
|
* List the authenticated user's projects.
|
|
11
11
|
*
|
|
12
|
+
* Returns an array, including personal projects and projects accessible through the request's active organization. Optional `scope=personal` or `scope=organization` narrows ownership; `unassigned=true` includes only projects whose `library_id` is null. Combine them, for example: `GET /user/projects?scope=personal&unassigned=true`. Omitting both filters keeps returning all accessible projects, including projects in named libraries.
|
|
13
|
+
*
|
|
14
|
+
* Unassigned is a grouping within the existing ownership scope, not a stored default library. Use `GET /user/project-libraries/{id}/projects` for a named library's paginated project list. Filters do not grant additional access.
|
|
15
|
+
*
|
|
12
16
|
* Tags: projects
|
|
13
17
|
*
|
|
14
18
|
* @param params Function parameters.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list_projects.d.ts","sourceRoot":"","sources":["../../../../../src/api/projects/list_projects.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAc,MAAM,iBAAiB,CAAA;AAGpD,OAAO,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AAE5E,UAAU,iBAAiB;IACzB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,KAAK,CAAC,EAAE,kBAAkB,CAAA;IAC1B,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB;AAED,KAAK,kBAAkB,GAAG,sBAAsB,EAAE,CAAA;AAElD
|
|
1
|
+
{"version":3,"file":"list_projects.d.ts","sourceRoot":"","sources":["../../../../../src/api/projects/list_projects.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAc,MAAM,iBAAiB,CAAA;AAGpD,OAAO,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AAE5E,UAAU,iBAAiB;IACzB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,KAAK,CAAC,EAAE,kBAAkB,CAAA;IAC1B,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB;AAED,KAAK,kBAAkB,GAAG,sBAAsB,EAAE,CAAA;AAElD;;;;;;;;;;;;;;;;GAgBG;AACH,wBAA8B,aAAa,CAAC,EAC1C,MAAM,EACN,KAAK,EACL,UAAU,GACX,EAAE,iBAAiB,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAqBjD"}
|
|
@@ -9,6 +9,12 @@ type RenameProjectLibraryReturn = ProjectLibraryResponse;
|
|
|
9
9
|
/**
|
|
10
10
|
* Rename a library owned by the user or their active organization.
|
|
11
11
|
*
|
|
12
|
+
* Send JSON containing `name` and `expected_revision`, using the library's `revision` from the last library list response. The personal owner or an admin of the active organization can rename the library. Names follow the same validation and uniqueness rules as library creation.
|
|
13
|
+
*
|
|
14
|
+
* HTTP 200 returns the updated library and revision. A stale revision or duplicate name returns HTTP 409; refresh the library list before deciding whether to retry. Renaming keeps the library ID, ownership, and project assignments unchanged.
|
|
15
|
+
*
|
|
16
|
+
* Renaming doesn't change the library's source.
|
|
17
|
+
*
|
|
12
18
|
* Tags: projects
|
|
13
19
|
*
|
|
14
20
|
* @param params Function parameters.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rename_project_library.d.ts","sourceRoot":"","sources":["../../../../../src/api/projects/rename_project_library.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAc,MAAM,iBAAiB,CAAA;AAGpD,OAAO,EACL,sBAAsB,EACtB,IAAI,EACJ,2BAA2B,EAC5B,MAAM,iBAAiB,CAAA;AAExB,UAAU,yBAAyB;IACjC,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,EAAE,EAAE,IAAI,CAAA;IACR,IAAI,EAAE,2BAA2B,CAAA;CAClC;AAED,KAAK,0BAA0B,GAAG,sBAAsB,CAAA;AAExD
|
|
1
|
+
{"version":3,"file":"rename_project_library.d.ts","sourceRoot":"","sources":["../../../../../src/api/projects/rename_project_library.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAc,MAAM,iBAAiB,CAAA;AAGpD,OAAO,EACL,sBAAsB,EACtB,IAAI,EACJ,2BAA2B,EAC5B,MAAM,iBAAiB,CAAA;AAExB,UAAU,yBAAyB;IACjC,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,EAAE,EAAE,IAAI,CAAA;IACR,IAAI,EAAE,2BAA2B,CAAA;CAClC;AAED,KAAK,0BAA0B,GAAG,sBAAsB,CAAA;AAExD;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAA8B,sBAAsB,CAAC,EACnD,MAAM,EACN,EAAE,EACF,IAAI,GACL,EAAE,yBAAyB,GAAG,OAAO,CAAC,0BAA0B,CAAC,CAuBjE"}
|
|
@@ -10,6 +10,8 @@ type UpdateProjectReturn = ProjectResponse;
|
|
|
10
10
|
/**
|
|
11
11
|
* Replace one of the authenticated user's projects.
|
|
12
12
|
*
|
|
13
|
+
* Content saves use the project's content `revision` as `expected_revision` and preserve its current library assignment. Omitting `library_id`, setting it to null, or supplying another library ID here does not move the project. Use `PUT /user/projects/{id}/library` with `metadata_revision` for library changes.
|
|
14
|
+
*
|
|
13
15
|
* Tags: projects
|
|
14
16
|
*
|
|
15
17
|
* @param params Function parameters.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update_project.d.ts","sourceRoot":"","sources":["../../../../../src/api/projects/update_project.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAA;AACtC,OAAO,EAAE,MAAM,EAAc,MAAM,iBAAiB,CAAA;AAGpD,OAAO,EAAE,eAAe,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAA;AAEvD,UAAU,kBAAkB;IAC1B,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,KAAK,EAAE,IAAI,EAAE,CAAA;IACb,EAAE,EAAE,IAAI,CAAA;CACT;AAED,KAAK,mBAAmB,GAAG,eAAe,CAAA;AAE1C
|
|
1
|
+
{"version":3,"file":"update_project.d.ts","sourceRoot":"","sources":["../../../../../src/api/projects/update_project.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAA;AACtC,OAAO,EAAE,MAAM,EAAc,MAAM,iBAAiB,CAAA;AAGpD,OAAO,EAAE,eAAe,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAA;AAEvD,UAAU,kBAAkB;IAC1B,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,KAAK,EAAE,IAAI,EAAE,CAAA;IACb,EAAE,EAAE,IAAI,CAAA;CACT;AAED,KAAK,mBAAmB,GAAG,eAAe,CAAA;AAE1C;;;;;;;;;;;;;;GAcG;AACH,wBAA8B,cAAc,CAAC,EAC3C,MAAM,EACN,KAAK,EACL,EAAE,GACH,EAAE,kBAAkB,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAgCnD"}
|
|
@@ -9,6 +9,22 @@ type UpdateProjectLibraryReturn = ProjectResponse;
|
|
|
9
9
|
/**
|
|
10
10
|
* Move a project to a named library or leave it unassigned.
|
|
11
11
|
*
|
|
12
|
+
* Read the project first, then send JSON using its `metadata_revision` as the required `expected_revision`. Do not use its content `revision` or a library's revision for this operation.
|
|
13
|
+
*
|
|
14
|
+
* ```json { "library_id": "<DESTINATION_LIBRARY_ID>", "expected_revision": "<METADATA_REVISION>" } ```
|
|
15
|
+
*
|
|
16
|
+
* Save the JSON as `move-project.json`, with values from actual responses:
|
|
17
|
+
*
|
|
18
|
+
* ```sh curl --fail-with-body \ --request PUT "${API_BASE_URL}/user/projects/${PROJECT_ID}/library" \ --header "Authorization: Bearer ${API_TOKEN}" \ --header 'Content-Type: application/json' \ --data-binary @move-project.json ```
|
|
19
|
+
*
|
|
20
|
+
* Use `library_id: null` to unassign the project. The destination must match the project's current ownership: the same user for a personal project, or the same organization for an organization project. Existing project write permission is required; managing the destination library does not grant it. To change ownership first, use `/user/projects/{id}/organization`.
|
|
21
|
+
*
|
|
22
|
+
* HTTP 200 returns the project with its library assignment and a new `metadata_revision`. A move preserves its ID, files, current content `revision`, version history, publication, and share links; it creates no content version. Ordinary saves preserve membership and cannot be used to move a project.
|
|
23
|
+
*
|
|
24
|
+
* A stale revision or a destination with different ownership returns HTTP 409. If another save, move, or ownership change conflicts with the move, fetch the latest project before deciding whether to retry. Missing or inaccessible projects/libraries fail their normal existence and permission checks.
|
|
25
|
+
*
|
|
26
|
+
* If the connection drops or the request times out, the API may have completed the move even though the client did not receive a response. Fetch the project to check its current library. If library_id matches the requested destination, no further move is needed. Otherwise review its latest state before retrying with its new `metadata_revision`. No idempotency key is used for this operation.
|
|
27
|
+
*
|
|
12
28
|
* Tags: projects
|
|
13
29
|
*
|
|
14
30
|
* @param params Function parameters.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update_project_library.d.ts","sourceRoot":"","sources":["../../../../../src/api/projects/update_project_library.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAc,MAAM,iBAAiB,CAAA;AAGpD,OAAO,EACL,eAAe,EACf,IAAI,EACJ,2BAA2B,EAC5B,MAAM,iBAAiB,CAAA;AAExB,UAAU,yBAAyB;IACjC,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,EAAE,EAAE,IAAI,CAAA;IACR,IAAI,EAAE,2BAA2B,CAAA;CAClC;AAED,KAAK,0BAA0B,GAAG,eAAe,CAAA;AAEjD
|
|
1
|
+
{"version":3,"file":"update_project_library.d.ts","sourceRoot":"","sources":["../../../../../src/api/projects/update_project_library.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAc,MAAM,iBAAiB,CAAA;AAGpD,OAAO,EACL,eAAe,EACf,IAAI,EACJ,2BAA2B,EAC5B,MAAM,iBAAiB,CAAA;AAExB,UAAU,yBAAyB;IACjC,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,EAAE,EAAE,IAAI,CAAA;IACR,IAAI,EAAE,2BAA2B,CAAA;CAClC;AAED,KAAK,0BAA0B,GAAG,eAAe,CAAA;AAEjD;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,wBAA8B,sBAAsB,CAAC,EACnD,MAAM,EACN,EAAE,EACF,IAAI,GACL,EAAE,yBAAyB,GAAG,OAAO,CAAC,0BAA0B,CAAC,CAuBjE"}
|
|
@@ -6,10 +6,12 @@ interface UpdateProjectOrganizationInput {
|
|
|
6
6
|
}
|
|
7
7
|
type UpdateProjectOrganizationReturn = ProjectResponse;
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Transfer one of the authenticated user's projects to their active organization.
|
|
10
10
|
*
|
|
11
11
|
* This changes only the project's ownership scope. The project ID, current revision, files, and version history remain unchanged so cloud bindings stay valid across the move.
|
|
12
12
|
*
|
|
13
|
+
* An actual ownership change clears `library_id` and changes `metadata_revision`. The project becomes unassigned in the organization. To place it in a named organization library, use `PUT /user/projects/{id}/library` afterwards with the returned metadata revision. An already organization-owned project in the same organization is unchanged by this request.
|
|
14
|
+
*
|
|
13
15
|
* Tags: projects
|
|
14
16
|
*
|
|
15
17
|
* @param params Function parameters.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update_project_organization.d.ts","sourceRoot":"","sources":["../../../../../src/api/projects/update_project_organization.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAc,MAAM,iBAAiB,CAAA;AAGpD,OAAO,EAAE,eAAe,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAA;AAEvD,UAAU,8BAA8B;IACtC,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,EAAE,EAAE,IAAI,CAAA;CACT;AAED,KAAK,+BAA+B,GAAG,eAAe,CAAA;AAEtD
|
|
1
|
+
{"version":3,"file":"update_project_organization.d.ts","sourceRoot":"","sources":["../../../../../src/api/projects/update_project_organization.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAc,MAAM,iBAAiB,CAAA;AAGpD,OAAO,EAAE,eAAe,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAA;AAEvD,UAAU,8BAA8B;IACtC,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,EAAE,EAAE,IAAI,CAAA;CACT;AAED,KAAK,+BAA+B,GAAG,eAAe,CAAA;AAEtD;;;;;;;;;;;;;;;GAeG;AACH,wBAA8B,2BAA2B,CAAC,EACxD,MAAM,EACN,EAAE,GACH,EAAE,8BAA8B,GAAG,OAAO,CAAC,+BAA+B,CAAC,CAqB3E"}
|