@elasticpath/plasmic-backend-sdk 0.0.1
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/README.md +247 -0
- package/dist/client.d.ts +107 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/client.js +259 -0
- package/dist/client.js.map +1 -0
- package/dist/generated/index.d.ts +3 -0
- package/dist/generated/index.d.ts.map +1 -0
- package/dist/generated/index.js +4 -0
- package/dist/generated/index.js.map +1 -0
- package/dist/generated/sdk.gen.d.ts +203 -0
- package/dist/generated/sdk.gen.d.ts.map +1 -0
- package/dist/generated/sdk.gen.js +393 -0
- package/dist/generated/sdk.gen.js.map +1 -0
- package/dist/generated/types.gen.d.ts +798 -0
- package/dist/generated/types.gen.d.ts.map +1 -0
- package/dist/generated/types.gen.js +3 -0
- package/dist/generated/types.gen.js.map +1 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +10 -0
- package/dist/index.js.map +1 -0
- package/dist/src/client.d.ts +80 -0
- package/dist/src/client.d.ts.map +1 -0
- package/dist/src/client.js +176 -0
- package/dist/src/client.js.map +1 -0
- package/dist/src/index.d.ts +8 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/index.js +10 -0
- package/dist/src/index.js.map +1 -0
- package/package.json +59 -0
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
import { type OptionsLegacyParser } from '@hey-api/client-fetch';
|
|
2
|
+
import type { LoginData, ListProjectsData, CreateProjectData, GetProjectData, UpdateProjectData, DeleteProjectData, CloneProjectData, ClonePublishedTemplateData, UpdateHostUrlData, UpdateProjectDataData, CreateWorkspaceData, GetWorkspaceData, UpdateWorkspaceData, DeleteWorkspaceData, ListDatabasesData, CreateDatabaseData, GetDatabaseData, UpdateDatabaseData, DeleteDatabaseData, CloneDatabaseData, RevokePersonalApiTokenData, RevokePersonalApiTokenResponse, AddTrustedHostData, AddTrustedHostResponse, DeleteTrustedHostData, DeleteTrustedHostResponse, AdminListProjectsData, AdminCloneProjectData, AdminDeleteProjectData, AdminDeleteProjectResponse, AdminRestoreProjectData, AdminRestoreProjectResponse, AdminChangeProjectOwnerData, AdminChangeProjectOwnerResponse, AdminRevertRevisionData } from './types.gen';
|
|
3
|
+
export declare const client: import("@hey-api/client-fetch").Client<Request, Response, unknown, import("@hey-api/client-fetch").RequestOptions<boolean, string>>;
|
|
4
|
+
/**
|
|
5
|
+
* Get CSRF token
|
|
6
|
+
* Retrieve a CSRF token required for subsequent authenticated requests
|
|
7
|
+
*/
|
|
8
|
+
export declare const getCsrfToken: <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<unknown, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").CsrfResponse, unknown, ThrowOnError>;
|
|
9
|
+
/**
|
|
10
|
+
* Login
|
|
11
|
+
* Authenticate with email and password
|
|
12
|
+
*/
|
|
13
|
+
export declare const login: <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<LoginData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").LoginResponse, import("./types.gen").ApiError, ThrowOnError>;
|
|
14
|
+
/**
|
|
15
|
+
* Logout
|
|
16
|
+
* End the current session
|
|
17
|
+
*/
|
|
18
|
+
export declare const logout: <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<unknown, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<unknown, unknown, ThrowOnError>;
|
|
19
|
+
/**
|
|
20
|
+
* Get current user
|
|
21
|
+
* Get the authenticated user's information
|
|
22
|
+
*/
|
|
23
|
+
export declare const getCurrentUser: <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<unknown, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").SelfResponse, import("./types.gen").ApiError, ThrowOnError>;
|
|
24
|
+
/**
|
|
25
|
+
* Get app configuration
|
|
26
|
+
* Get application configuration including starter templates
|
|
27
|
+
*/
|
|
28
|
+
export declare const getAppConfig: <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<unknown, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").AppConfigResponse, unknown, ThrowOnError>;
|
|
29
|
+
/**
|
|
30
|
+
* List projects
|
|
31
|
+
* List projects accessible to the current user.
|
|
32
|
+
* Use query parameter to filter:
|
|
33
|
+
* - `query=all` - List all accessible projects
|
|
34
|
+
* - `query=byWorkspace&workspaceId=...` - List projects in a workspace
|
|
35
|
+
* - `query=byIds&projectIds=...` - List specific projects by ID
|
|
36
|
+
*
|
|
37
|
+
*/
|
|
38
|
+
export declare const listProjects: <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<ListProjectsData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").ListProjectsResponse, unknown, ThrowOnError>;
|
|
39
|
+
/**
|
|
40
|
+
* Create project
|
|
41
|
+
* Create a new project
|
|
42
|
+
*/
|
|
43
|
+
export declare const createProject: <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<CreateProjectData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").CreateProjectResponse, unknown, ThrowOnError>;
|
|
44
|
+
/**
|
|
45
|
+
* Get project
|
|
46
|
+
* Get a project with its latest revision
|
|
47
|
+
*/
|
|
48
|
+
export declare const getProject: <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetProjectData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").GetProjectResponse, import("./types.gen").ApiError, ThrowOnError>;
|
|
49
|
+
/**
|
|
50
|
+
* Update project
|
|
51
|
+
* Update project settings
|
|
52
|
+
*/
|
|
53
|
+
export declare const updateProject: <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<UpdateProjectData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").UpdateProjectResponse, unknown, ThrowOnError>;
|
|
54
|
+
/**
|
|
55
|
+
* Delete project
|
|
56
|
+
* Soft delete a project
|
|
57
|
+
*/
|
|
58
|
+
export declare const deleteProject: <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<DeleteProjectData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").DeleteResponse, unknown, ThrowOnError>;
|
|
59
|
+
/**
|
|
60
|
+
* Clone project
|
|
61
|
+
* Clone an existing project
|
|
62
|
+
*/
|
|
63
|
+
export declare const cloneProject: <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<CloneProjectData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").CloneProjectResponse, unknown, ThrowOnError>;
|
|
64
|
+
/**
|
|
65
|
+
* Clone published template
|
|
66
|
+
* Clone a published template project
|
|
67
|
+
*/
|
|
68
|
+
export declare const clonePublishedTemplate: <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<ClonePublishedTemplateData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").CloneProjectResponse, unknown, ThrowOnError>;
|
|
69
|
+
/**
|
|
70
|
+
* Update host URL
|
|
71
|
+
* Update the host URL for a project (for app hosting)
|
|
72
|
+
*/
|
|
73
|
+
export declare const updateHostUrl: <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<UpdateHostUrlData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").UpdateHostUrlResponse, unknown, ThrowOnError>;
|
|
74
|
+
/**
|
|
75
|
+
* Update project data
|
|
76
|
+
* Update project components and design tokens. Can be used to:
|
|
77
|
+
* - Create new components
|
|
78
|
+
* - Update existing components (including global context providers)
|
|
79
|
+
* - Update design tokens
|
|
80
|
+
*
|
|
81
|
+
*/
|
|
82
|
+
export declare const updateProjectData: <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<UpdateProjectDataData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").UpdateProjectDataResponse, unknown, ThrowOnError>;
|
|
83
|
+
/**
|
|
84
|
+
* List workspaces
|
|
85
|
+
* List all workspaces and teams for the current user
|
|
86
|
+
*/
|
|
87
|
+
export declare const listWorkspaces: <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<unknown, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").ListWorkspacesResponse, unknown, ThrowOnError>;
|
|
88
|
+
/**
|
|
89
|
+
* Create workspace
|
|
90
|
+
* Create a new workspace in a team
|
|
91
|
+
*/
|
|
92
|
+
export declare const createWorkspace: <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<CreateWorkspaceData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").CreateWorkspaceResponse, unknown, ThrowOnError>;
|
|
93
|
+
/**
|
|
94
|
+
* Get workspace
|
|
95
|
+
* Get a workspace by ID
|
|
96
|
+
*/
|
|
97
|
+
export declare const getWorkspace: <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetWorkspaceData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").GetWorkspaceResponse, unknown, ThrowOnError>;
|
|
98
|
+
/**
|
|
99
|
+
* Update workspace
|
|
100
|
+
* Update workspace settings
|
|
101
|
+
*/
|
|
102
|
+
export declare const updateWorkspace: <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<UpdateWorkspaceData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").CreateWorkspaceResponse, unknown, ThrowOnError>;
|
|
103
|
+
/**
|
|
104
|
+
* Delete workspace
|
|
105
|
+
* Delete a workspace (cascades to all projects, data sources, CMS databases)
|
|
106
|
+
*/
|
|
107
|
+
export declare const deleteWorkspace: <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<DeleteWorkspaceData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").DeleteResponse, unknown, ThrowOnError>;
|
|
108
|
+
/**
|
|
109
|
+
* Get personal workspace
|
|
110
|
+
* Get the current user's personal workspace
|
|
111
|
+
*/
|
|
112
|
+
export declare const getPersonalWorkspace: <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<unknown, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").GetWorkspaceResponse, unknown, ThrowOnError>;
|
|
113
|
+
/**
|
|
114
|
+
* List CMS databases
|
|
115
|
+
* List CMS databases for a workspace or team
|
|
116
|
+
*/
|
|
117
|
+
export declare const listDatabases: <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<ListDatabasesData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").ListDatabasesResponse, import("./types.gen").ApiError, ThrowOnError>;
|
|
118
|
+
/**
|
|
119
|
+
* Create CMS database
|
|
120
|
+
* Create a new CMS database in a workspace
|
|
121
|
+
*/
|
|
122
|
+
export declare const createDatabase: <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<CreateDatabaseData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").ApiCmsDatabase, unknown, ThrowOnError>;
|
|
123
|
+
/**
|
|
124
|
+
* Get CMS database
|
|
125
|
+
* Get a CMS database by ID with its tables
|
|
126
|
+
*/
|
|
127
|
+
export declare const getDatabase: <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<GetDatabaseData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").ApiCmsDatabase, import("./types.gen").ApiError, ThrowOnError>;
|
|
128
|
+
/**
|
|
129
|
+
* Update CMS database
|
|
130
|
+
* Update a CMS database
|
|
131
|
+
*/
|
|
132
|
+
export declare const updateDatabase: <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<UpdateDatabaseData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").ApiCmsDatabase, unknown, ThrowOnError>;
|
|
133
|
+
/**
|
|
134
|
+
* Delete CMS database
|
|
135
|
+
* Delete a CMS database
|
|
136
|
+
*/
|
|
137
|
+
export declare const deleteDatabase: <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<DeleteDatabaseData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").DeleteResponse, unknown, ThrowOnError>;
|
|
138
|
+
/**
|
|
139
|
+
* Clone CMS database
|
|
140
|
+
* Clone an existing CMS database
|
|
141
|
+
*/
|
|
142
|
+
export declare const cloneDatabase: <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<CloneDatabaseData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").ApiCmsDatabase, unknown, ThrowOnError>;
|
|
143
|
+
/**
|
|
144
|
+
* List personal API tokens
|
|
145
|
+
* List all personal API tokens for the current user
|
|
146
|
+
*/
|
|
147
|
+
export declare const listPersonalApiTokens: <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<unknown, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").ListPersonalApiTokensResponse, unknown, ThrowOnError>;
|
|
148
|
+
/**
|
|
149
|
+
* Create personal API token
|
|
150
|
+
* Create a new personal API token for programmatic API access
|
|
151
|
+
*/
|
|
152
|
+
export declare const createPersonalApiToken: <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<unknown, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").CreatePersonalApiTokenResponse, unknown, ThrowOnError>;
|
|
153
|
+
/**
|
|
154
|
+
* Revoke personal API token
|
|
155
|
+
* Revoke (soft-delete) a personal API token
|
|
156
|
+
*/
|
|
157
|
+
export declare const revokePersonalApiToken: <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<RevokePersonalApiTokenData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<RevokePersonalApiTokenResponse, import("./types.gen").ApiError, ThrowOnError>;
|
|
158
|
+
/**
|
|
159
|
+
* List trusted hosts
|
|
160
|
+
* List all trusted host apps for the current user
|
|
161
|
+
*/
|
|
162
|
+
export declare const listTrustedHosts: <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<unknown, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").TrustedHostsListResponse, unknown, ThrowOnError>;
|
|
163
|
+
/**
|
|
164
|
+
* Add trusted host
|
|
165
|
+
* Add a new trusted host URL for self-hosting Plasmic projects
|
|
166
|
+
*/
|
|
167
|
+
export declare const addTrustedHost: <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<AddTrustedHostData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<AddTrustedHostResponse, unknown, ThrowOnError>;
|
|
168
|
+
/**
|
|
169
|
+
* Delete trusted host
|
|
170
|
+
* Delete a trusted host
|
|
171
|
+
*/
|
|
172
|
+
export declare const deleteTrustedHost: <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<DeleteTrustedHostData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<DeleteTrustedHostResponse, import("./types.gen").ApiError, ThrowOnError>;
|
|
173
|
+
/**
|
|
174
|
+
* List all projects (admin)
|
|
175
|
+
* List all projects in the system, optionally filtered by owner
|
|
176
|
+
*/
|
|
177
|
+
export declare const adminListProjects: <ThrowOnError extends boolean = false>(options?: OptionsLegacyParser<AdminListProjectsData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").AdminListProjectsResponse, import("./types.gen").ApiError, ThrowOnError>;
|
|
178
|
+
/**
|
|
179
|
+
* Clone project (admin)
|
|
180
|
+
* Clone any project as admin (CSRF-exempt)
|
|
181
|
+
*/
|
|
182
|
+
export declare const adminCloneProject: <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<AdminCloneProjectData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").AdminCloneResponse, unknown, ThrowOnError>;
|
|
183
|
+
/**
|
|
184
|
+
* Delete project (admin)
|
|
185
|
+
* Soft delete any project as admin (CSRF-exempt)
|
|
186
|
+
*/
|
|
187
|
+
export declare const adminDeleteProject: <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<AdminDeleteProjectData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<AdminDeleteProjectResponse, unknown, ThrowOnError>;
|
|
188
|
+
/**
|
|
189
|
+
* Restore project (admin)
|
|
190
|
+
* Restore a soft-deleted project (CSRF-exempt)
|
|
191
|
+
*/
|
|
192
|
+
export declare const adminRestoreProject: <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<AdminRestoreProjectData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<AdminRestoreProjectResponse, unknown, ThrowOnError>;
|
|
193
|
+
/**
|
|
194
|
+
* Change project owner (admin)
|
|
195
|
+
* Transfer project ownership to another user
|
|
196
|
+
*/
|
|
197
|
+
export declare const adminChangeProjectOwner: <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<AdminChangeProjectOwnerData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<AdminChangeProjectOwnerResponse, unknown, ThrowOnError>;
|
|
198
|
+
/**
|
|
199
|
+
* Revert project revision (admin)
|
|
200
|
+
* Revert a project to a specific revision (CSRF-exempt)
|
|
201
|
+
*/
|
|
202
|
+
export declare const adminRevertRevision: <ThrowOnError extends boolean = false>(options: OptionsLegacyParser<AdminRevertRevisionData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").AdminCloneResponse, unknown, ThrowOnError>;
|
|
203
|
+
//# sourceMappingURL=sdk.gen.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sdk.gen.d.ts","sourceRoot":"","sources":["../../src/generated/sdk.gen.ts"],"names":[],"mappings":"AAEA,OAAO,EAGL,KAAK,mBAAmB,EACzB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAGV,SAAS,EAST,gBAAgB,EAGhB,iBAAiB,EAGjB,cAAc,EAGd,iBAAiB,EAGjB,iBAAiB,EAGjB,gBAAgB,EAGhB,0BAA0B,EAG1B,iBAAiB,EAGjB,qBAAqB,EAKrB,mBAAmB,EAGnB,gBAAgB,EAGhB,mBAAmB,EAGnB,mBAAmB,EAKnB,iBAAiB,EAGjB,kBAAkB,EAGlB,eAAe,EAGf,kBAAkB,EAGlB,kBAAkB,EAGlB,iBAAiB,EAOjB,0BAA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AUnE,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,iBAAiB,GAAI,YAAY,SAAS,OAAO,GAAG,KAAK,EACpE,SAAS,mBAAmB,CAAC,qBAAqB,EAAE,YAAY,CAAC,mHAUlE,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,kBAAkB,GAAI,YAAY,SAAS,OAAO,GAAG,KAAK,EACrE,SAAS,mBAAmB,CAAC,sBAAsB,EAAE,YAAY,CAAC,qGAUnE,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,mBAAmB,GAAI,YAAY,SAAS,OAAO,GAAG,KAAK,EACtE,SAAS,mBAAmB,CAAC,uBAAuB,EAAE,YAAY,CAAC,sGAUpE,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,uBAAuB,GAAI,YAAY,SAAS,OAAO,GAAG,KAAK,EAC1E,SAAS,mBAAmB,CAAC,2BAA2B,EAAE,YAAY,CAAC,0GAUxE,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,mBAAmB,GAAI,YAAY,SAAS,OAAO,GAAG,KAAK,EACtE,SAAS,mBAAmB,CAAC,uBAAuB,EAAE,YAAY,CAAC,mHAUpE,CAAC"}
|
|
@@ -0,0 +1,393 @@
|
|
|
1
|
+
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
|
+
import { createClient, createConfig, } from '@hey-api/client-fetch';
|
|
3
|
+
export const client = createClient(createConfig());
|
|
4
|
+
/**
|
|
5
|
+
* Get CSRF token
|
|
6
|
+
* Retrieve a CSRF token required for subsequent authenticated requests
|
|
7
|
+
*/
|
|
8
|
+
export const getCsrfToken = (options) => {
|
|
9
|
+
return (options?.client ?? client).get({
|
|
10
|
+
...options,
|
|
11
|
+
url: '/auth/csrf',
|
|
12
|
+
});
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* Login
|
|
16
|
+
* Authenticate with email and password
|
|
17
|
+
*/
|
|
18
|
+
export const login = (options) => {
|
|
19
|
+
return (options?.client ?? client).post({
|
|
20
|
+
...options,
|
|
21
|
+
url: '/auth/login',
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* Logout
|
|
26
|
+
* End the current session
|
|
27
|
+
*/
|
|
28
|
+
export const logout = (options) => {
|
|
29
|
+
return (options?.client ?? client).post({
|
|
30
|
+
...options,
|
|
31
|
+
url: '/auth/logout',
|
|
32
|
+
});
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* Get current user
|
|
36
|
+
* Get the authenticated user's information
|
|
37
|
+
*/
|
|
38
|
+
export const getCurrentUser = (options) => {
|
|
39
|
+
return (options?.client ?? client).get({
|
|
40
|
+
...options,
|
|
41
|
+
url: '/auth/self',
|
|
42
|
+
});
|
|
43
|
+
};
|
|
44
|
+
/**
|
|
45
|
+
* Get app configuration
|
|
46
|
+
* Get application configuration including starter templates
|
|
47
|
+
*/
|
|
48
|
+
export const getAppConfig = (options) => {
|
|
49
|
+
return (options?.client ?? client).get({
|
|
50
|
+
...options,
|
|
51
|
+
url: '/app-config',
|
|
52
|
+
});
|
|
53
|
+
};
|
|
54
|
+
/**
|
|
55
|
+
* List projects
|
|
56
|
+
* List projects accessible to the current user.
|
|
57
|
+
* Use query parameter to filter:
|
|
58
|
+
* - `query=all` - List all accessible projects
|
|
59
|
+
* - `query=byWorkspace&workspaceId=...` - List projects in a workspace
|
|
60
|
+
* - `query=byIds&projectIds=...` - List specific projects by ID
|
|
61
|
+
*
|
|
62
|
+
*/
|
|
63
|
+
export const listProjects = (options) => {
|
|
64
|
+
return (options?.client ?? client).get({
|
|
65
|
+
...options,
|
|
66
|
+
url: '/projects',
|
|
67
|
+
});
|
|
68
|
+
};
|
|
69
|
+
/**
|
|
70
|
+
* Create project
|
|
71
|
+
* Create a new project
|
|
72
|
+
*/
|
|
73
|
+
export const createProject = (options) => {
|
|
74
|
+
return (options?.client ?? client).post({
|
|
75
|
+
...options,
|
|
76
|
+
url: '/projects',
|
|
77
|
+
});
|
|
78
|
+
};
|
|
79
|
+
/**
|
|
80
|
+
* Get project
|
|
81
|
+
* Get a project with its latest revision
|
|
82
|
+
*/
|
|
83
|
+
export const getProject = (options) => {
|
|
84
|
+
return (options?.client ?? client).get({
|
|
85
|
+
...options,
|
|
86
|
+
url: '/projects/{projectId}',
|
|
87
|
+
});
|
|
88
|
+
};
|
|
89
|
+
/**
|
|
90
|
+
* Update project
|
|
91
|
+
* Update project settings
|
|
92
|
+
*/
|
|
93
|
+
export const updateProject = (options) => {
|
|
94
|
+
return (options?.client ?? client).put({
|
|
95
|
+
...options,
|
|
96
|
+
url: '/projects/{projectId}',
|
|
97
|
+
});
|
|
98
|
+
};
|
|
99
|
+
/**
|
|
100
|
+
* Delete project
|
|
101
|
+
* Soft delete a project
|
|
102
|
+
*/
|
|
103
|
+
export const deleteProject = (options) => {
|
|
104
|
+
return (options?.client ?? client).delete({
|
|
105
|
+
...options,
|
|
106
|
+
url: '/projects/{projectId}',
|
|
107
|
+
});
|
|
108
|
+
};
|
|
109
|
+
/**
|
|
110
|
+
* Clone project
|
|
111
|
+
* Clone an existing project
|
|
112
|
+
*/
|
|
113
|
+
export const cloneProject = (options) => {
|
|
114
|
+
return (options?.client ?? client).post({
|
|
115
|
+
...options,
|
|
116
|
+
url: '/projects/{projectId}/clone',
|
|
117
|
+
});
|
|
118
|
+
};
|
|
119
|
+
/**
|
|
120
|
+
* Clone published template
|
|
121
|
+
* Clone a published template project
|
|
122
|
+
*/
|
|
123
|
+
export const clonePublishedTemplate = (options) => {
|
|
124
|
+
return (options?.client ?? client).post({
|
|
125
|
+
...options,
|
|
126
|
+
url: '/templates/{projectId}/clone',
|
|
127
|
+
});
|
|
128
|
+
};
|
|
129
|
+
/**
|
|
130
|
+
* Update host URL
|
|
131
|
+
* Update the host URL for a project (for app hosting)
|
|
132
|
+
*/
|
|
133
|
+
export const updateHostUrl = (options) => {
|
|
134
|
+
return (options?.client ?? client).put({
|
|
135
|
+
...options,
|
|
136
|
+
url: '/projects/{projectId}/update-host',
|
|
137
|
+
});
|
|
138
|
+
};
|
|
139
|
+
/**
|
|
140
|
+
* Update project data
|
|
141
|
+
* Update project components and design tokens. Can be used to:
|
|
142
|
+
* - Create new components
|
|
143
|
+
* - Update existing components (including global context providers)
|
|
144
|
+
* - Update design tokens
|
|
145
|
+
*
|
|
146
|
+
*/
|
|
147
|
+
export const updateProjectData = (options) => {
|
|
148
|
+
return (options?.client ?? client).post({
|
|
149
|
+
...options,
|
|
150
|
+
url: '/projects/{projectId}/data',
|
|
151
|
+
});
|
|
152
|
+
};
|
|
153
|
+
/**
|
|
154
|
+
* List workspaces
|
|
155
|
+
* List all workspaces and teams for the current user
|
|
156
|
+
*/
|
|
157
|
+
export const listWorkspaces = (options) => {
|
|
158
|
+
return (options?.client ?? client).get({
|
|
159
|
+
...options,
|
|
160
|
+
url: '/workspaces',
|
|
161
|
+
});
|
|
162
|
+
};
|
|
163
|
+
/**
|
|
164
|
+
* Create workspace
|
|
165
|
+
* Create a new workspace in a team
|
|
166
|
+
*/
|
|
167
|
+
export const createWorkspace = (options) => {
|
|
168
|
+
return (options?.client ?? client).post({
|
|
169
|
+
...options,
|
|
170
|
+
url: '/workspaces',
|
|
171
|
+
});
|
|
172
|
+
};
|
|
173
|
+
/**
|
|
174
|
+
* Get workspace
|
|
175
|
+
* Get a workspace by ID
|
|
176
|
+
*/
|
|
177
|
+
export const getWorkspace = (options) => {
|
|
178
|
+
return (options?.client ?? client).get({
|
|
179
|
+
...options,
|
|
180
|
+
url: '/workspaces/{workspaceId}',
|
|
181
|
+
});
|
|
182
|
+
};
|
|
183
|
+
/**
|
|
184
|
+
* Update workspace
|
|
185
|
+
* Update workspace settings
|
|
186
|
+
*/
|
|
187
|
+
export const updateWorkspace = (options) => {
|
|
188
|
+
return (options?.client ?? client).put({
|
|
189
|
+
...options,
|
|
190
|
+
url: '/workspaces/{workspaceId}',
|
|
191
|
+
});
|
|
192
|
+
};
|
|
193
|
+
/**
|
|
194
|
+
* Delete workspace
|
|
195
|
+
* Delete a workspace (cascades to all projects, data sources, CMS databases)
|
|
196
|
+
*/
|
|
197
|
+
export const deleteWorkspace = (options) => {
|
|
198
|
+
return (options?.client ?? client).delete({
|
|
199
|
+
...options,
|
|
200
|
+
url: '/workspaces/{workspaceId}',
|
|
201
|
+
});
|
|
202
|
+
};
|
|
203
|
+
/**
|
|
204
|
+
* Get personal workspace
|
|
205
|
+
* Get the current user's personal workspace
|
|
206
|
+
*/
|
|
207
|
+
export const getPersonalWorkspace = (options) => {
|
|
208
|
+
return (options?.client ?? client).get({
|
|
209
|
+
...options,
|
|
210
|
+
url: '/personal-workspace',
|
|
211
|
+
});
|
|
212
|
+
};
|
|
213
|
+
/**
|
|
214
|
+
* List CMS databases
|
|
215
|
+
* List CMS databases for a workspace or team
|
|
216
|
+
*/
|
|
217
|
+
export const listDatabases = (options) => {
|
|
218
|
+
return (options?.client ?? client).get({
|
|
219
|
+
...options,
|
|
220
|
+
url: '/cmse/databases',
|
|
221
|
+
});
|
|
222
|
+
};
|
|
223
|
+
/**
|
|
224
|
+
* Create CMS database
|
|
225
|
+
* Create a new CMS database in a workspace
|
|
226
|
+
*/
|
|
227
|
+
export const createDatabase = (options) => {
|
|
228
|
+
return (options?.client ?? client).post({
|
|
229
|
+
...options,
|
|
230
|
+
url: '/cmse/databases',
|
|
231
|
+
});
|
|
232
|
+
};
|
|
233
|
+
/**
|
|
234
|
+
* Get CMS database
|
|
235
|
+
* Get a CMS database by ID with its tables
|
|
236
|
+
*/
|
|
237
|
+
export const getDatabase = (options) => {
|
|
238
|
+
return (options?.client ?? client).get({
|
|
239
|
+
...options,
|
|
240
|
+
url: '/cmse/databases/{databaseId}',
|
|
241
|
+
});
|
|
242
|
+
};
|
|
243
|
+
/**
|
|
244
|
+
* Update CMS database
|
|
245
|
+
* Update a CMS database
|
|
246
|
+
*/
|
|
247
|
+
export const updateDatabase = (options) => {
|
|
248
|
+
return (options?.client ?? client).put({
|
|
249
|
+
...options,
|
|
250
|
+
url: '/cmse/databases/{databaseId}',
|
|
251
|
+
});
|
|
252
|
+
};
|
|
253
|
+
/**
|
|
254
|
+
* Delete CMS database
|
|
255
|
+
* Delete a CMS database
|
|
256
|
+
*/
|
|
257
|
+
export const deleteDatabase = (options) => {
|
|
258
|
+
return (options?.client ?? client).delete({
|
|
259
|
+
...options,
|
|
260
|
+
url: '/cmse/databases/{databaseId}',
|
|
261
|
+
});
|
|
262
|
+
};
|
|
263
|
+
/**
|
|
264
|
+
* Clone CMS database
|
|
265
|
+
* Clone an existing CMS database
|
|
266
|
+
*/
|
|
267
|
+
export const cloneDatabase = (options) => {
|
|
268
|
+
return (options?.client ?? client).post({
|
|
269
|
+
...options,
|
|
270
|
+
url: '/cmse/databases/{databaseId}/clone',
|
|
271
|
+
});
|
|
272
|
+
};
|
|
273
|
+
/**
|
|
274
|
+
* List personal API tokens
|
|
275
|
+
* List all personal API tokens for the current user
|
|
276
|
+
*/
|
|
277
|
+
export const listPersonalApiTokens = (options) => {
|
|
278
|
+
return (options?.client ?? client).get({
|
|
279
|
+
...options,
|
|
280
|
+
url: '/settings/apitokens',
|
|
281
|
+
});
|
|
282
|
+
};
|
|
283
|
+
/**
|
|
284
|
+
* Create personal API token
|
|
285
|
+
* Create a new personal API token for programmatic API access
|
|
286
|
+
*/
|
|
287
|
+
export const createPersonalApiToken = (options) => {
|
|
288
|
+
return (options?.client ?? client).put({
|
|
289
|
+
...options,
|
|
290
|
+
url: '/settings/apitokens',
|
|
291
|
+
});
|
|
292
|
+
};
|
|
293
|
+
/**
|
|
294
|
+
* Revoke personal API token
|
|
295
|
+
* Revoke (soft-delete) a personal API token
|
|
296
|
+
*/
|
|
297
|
+
export const revokePersonalApiToken = (options) => {
|
|
298
|
+
return (options?.client ?? client).delete({
|
|
299
|
+
...options,
|
|
300
|
+
url: '/settings/apitokens/{token}',
|
|
301
|
+
});
|
|
302
|
+
};
|
|
303
|
+
/**
|
|
304
|
+
* List trusted hosts
|
|
305
|
+
* List all trusted host apps for the current user
|
|
306
|
+
*/
|
|
307
|
+
export const listTrustedHosts = (options) => {
|
|
308
|
+
return (options?.client ?? client).get({
|
|
309
|
+
...options,
|
|
310
|
+
url: '/hosts',
|
|
311
|
+
});
|
|
312
|
+
};
|
|
313
|
+
/**
|
|
314
|
+
* Add trusted host
|
|
315
|
+
* Add a new trusted host URL for self-hosting Plasmic projects
|
|
316
|
+
*/
|
|
317
|
+
export const addTrustedHost = (options) => {
|
|
318
|
+
return (options?.client ?? client).post({
|
|
319
|
+
...options,
|
|
320
|
+
url: '/hosts',
|
|
321
|
+
});
|
|
322
|
+
};
|
|
323
|
+
/**
|
|
324
|
+
* Delete trusted host
|
|
325
|
+
* Delete a trusted host
|
|
326
|
+
*/
|
|
327
|
+
export const deleteTrustedHost = (options) => {
|
|
328
|
+
return (options?.client ?? client).delete({
|
|
329
|
+
...options,
|
|
330
|
+
url: '/hosts/{trustedHostId}',
|
|
331
|
+
});
|
|
332
|
+
};
|
|
333
|
+
/**
|
|
334
|
+
* List all projects (admin)
|
|
335
|
+
* List all projects in the system, optionally filtered by owner
|
|
336
|
+
*/
|
|
337
|
+
export const adminListProjects = (options) => {
|
|
338
|
+
return (options?.client ?? client).post({
|
|
339
|
+
...options,
|
|
340
|
+
url: '/admin/projects',
|
|
341
|
+
});
|
|
342
|
+
};
|
|
343
|
+
/**
|
|
344
|
+
* Clone project (admin)
|
|
345
|
+
* Clone any project as admin (CSRF-exempt)
|
|
346
|
+
*/
|
|
347
|
+
export const adminCloneProject = (options) => {
|
|
348
|
+
return (options?.client ?? client).post({
|
|
349
|
+
...options,
|
|
350
|
+
url: '/admin/clone',
|
|
351
|
+
});
|
|
352
|
+
};
|
|
353
|
+
/**
|
|
354
|
+
* Delete project (admin)
|
|
355
|
+
* Soft delete any project as admin (CSRF-exempt)
|
|
356
|
+
*/
|
|
357
|
+
export const adminDeleteProject = (options) => {
|
|
358
|
+
return (options?.client ?? client).post({
|
|
359
|
+
...options,
|
|
360
|
+
url: '/admin/delete-project',
|
|
361
|
+
});
|
|
362
|
+
};
|
|
363
|
+
/**
|
|
364
|
+
* Restore project (admin)
|
|
365
|
+
* Restore a soft-deleted project (CSRF-exempt)
|
|
366
|
+
*/
|
|
367
|
+
export const adminRestoreProject = (options) => {
|
|
368
|
+
return (options?.client ?? client).post({
|
|
369
|
+
...options,
|
|
370
|
+
url: '/admin/restore-project',
|
|
371
|
+
});
|
|
372
|
+
};
|
|
373
|
+
/**
|
|
374
|
+
* Change project owner (admin)
|
|
375
|
+
* Transfer project ownership to another user
|
|
376
|
+
*/
|
|
377
|
+
export const adminChangeProjectOwner = (options) => {
|
|
378
|
+
return (options?.client ?? client).post({
|
|
379
|
+
...options,
|
|
380
|
+
url: '/admin/change-project-owner',
|
|
381
|
+
});
|
|
382
|
+
};
|
|
383
|
+
/**
|
|
384
|
+
* Revert project revision (admin)
|
|
385
|
+
* Revert a project to a specific revision (CSRF-exempt)
|
|
386
|
+
*/
|
|
387
|
+
export const adminRevertRevision = (options) => {
|
|
388
|
+
return (options?.client ?? client).post({
|
|
389
|
+
...options,
|
|
390
|
+
url: '/admin/revert-project-revision',
|
|
391
|
+
});
|
|
392
|
+
};
|
|
393
|
+
//# sourceMappingURL=sdk.gen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sdk.gen.js","sourceRoot":"","sources":["../../src/generated/sdk.gen.ts"],"names":[],"mappings":"AAAA,qDAAqD;AAErD,OAAO,EACL,YAAY,EACZ,YAAY,GAEb,MAAM,uBAAuB,CAAC;AA6G/B,MAAM,CAAC,MAAM,MAAM,GAAG,YAAY,CAAC,YAAY,EAAE,CAAC,CAAC;AAEnD;;;GAGG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,CAC1B,OAAoD,EACpD,EAAE;IACF,OAAO,CAAC,OAAO,EAAE,MAAM,IAAI,MAAM,CAAC,CAAC,GAAG,CAIpC;QACA,GAAG,OAAO;QACV,GAAG,EAAE,YAAY;KAClB,CAAC,CAAC;AACL,CA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