@4ge/cli 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/LICENSE +21 -0
- package/README.md +228 -0
- package/bin/dev.js +3 -0
- package/bin/run.js +3 -0
- package/dist/base.js +398 -0
- package/dist/commands/auth/login.js +197 -0
- package/dist/commands/auth/logout.js +31 -0
- package/dist/commands/auth/profile/delete.js +34 -0
- package/dist/commands/auth/profile/list.js +32 -0
- package/dist/commands/auth/profile/use.js +30 -0
- package/dist/commands/auth/status.js +107 -0
- package/dist/commands/config/get.js +37 -0
- package/dist/commands/config/index.js +9 -0
- package/dist/commands/config/manage.js +165 -0
- package/dist/commands/config/set.js +42 -0
- package/dist/commands/config/show.js +46 -0
- package/dist/commands/epic/index.js +10 -0
- package/dist/commands/epic/list.js +91 -0
- package/dist/commands/epic/pull.js +137 -0
- package/dist/commands/epic/show.js +67 -0
- package/dist/commands/epic/update.js +104 -0
- package/dist/commands/feature/index.js +2 -0
- package/dist/commands/feature/list.js +93 -0
- package/dist/commands/feature/pull.js +122 -0
- package/dist/commands/feature/show.js +60 -0
- package/dist/commands/feature/update.js +103 -0
- package/dist/commands/idea/create.js +88 -0
- package/dist/commands/idea/graduate.js +89 -0
- package/dist/commands/idea/index.js +5 -0
- package/dist/commands/idea/list.js +83 -0
- package/dist/commands/idea/show.js +86 -0
- package/dist/commands/idea/update.js +108 -0
- package/dist/commands/init.js +354 -0
- package/dist/commands/login.js +5 -0
- package/dist/commands/plan/index.js +10 -0
- package/dist/commands/plan/pull.js +104 -0
- package/dist/commands/plan/versions.js +64 -0
- package/dist/commands/project/create.js +84 -0
- package/dist/commands/project/index.js +9 -0
- package/dist/commands/project/info.js +74 -0
- package/dist/commands/project/list.js +78 -0
- package/dist/commands/project/pull.js +127 -0
- package/dist/commands/project/update.js +104 -0
- package/dist/commands/root.js +13 -0
- package/dist/commands/skill/index.js +8 -0
- package/dist/commands/skill/install.js +71 -0
- package/dist/commands/story/index.js +10 -0
- package/dist/commands/story/list.js +81 -0
- package/dist/commands/story/pull.js +125 -0
- package/dist/commands/story/show.js +57 -0
- package/dist/commands/story/update.js +103 -0
- package/dist/commands/template/create.js +72 -0
- package/dist/commands/template/delete.js +62 -0
- package/dist/commands/template/feature/create.js +70 -0
- package/dist/commands/template/feature/delete.js +75 -0
- package/dist/commands/template/feature/list.js +69 -0
- package/dist/commands/template/feature/update.js +82 -0
- package/dist/commands/template/info.js +52 -0
- package/dist/commands/template/list.js +76 -0
- package/dist/commands/template/pull.js +99 -0
- package/dist/commands/template/update.js +71 -0
- package/dist/commands/whoami.js +5 -0
- package/dist/core/api/action-hints.js +17 -0
- package/dist/core/api/index.js +3 -0
- package/dist/core/api/retry.js +95 -0
- package/dist/core/api/validate-response.js +41 -0
- package/dist/core/auth/api-client.js +156 -0
- package/dist/core/auth/config.js +3 -0
- package/dist/core/auth/credentials.js +143 -0
- package/dist/core/auth/email-auth.js +30 -0
- package/dist/core/auth/errors.js +20 -0
- package/dist/core/auth/index.js +6 -0
- package/dist/core/auth/realtime.js +82 -0
- package/dist/core/auth/resolution.js +63 -0
- package/dist/core/auth/state.js +9 -0
- package/dist/core/auth/token-refresh.js +100 -0
- package/dist/core/config/defaults.js +31 -0
- package/dist/core/config/index.js +3 -0
- package/dist/core/config/parser.js +213 -0
- package/dist/core/config/schema.js +29 -0
- package/dist/core/project/markdown.js +37 -0
- package/dist/core/skill/installer.js +59 -0
- package/dist/core/skill/paths.js +52 -0
- package/dist/generated/api/client/client.gen.js +217 -0
- package/dist/generated/api/client/index.js +6 -0
- package/dist/generated/api/client/types.gen.js +2 -0
- package/dist/generated/api/client/utils.gen.js +231 -0
- package/dist/generated/api/client.gen.js +3 -0
- package/dist/generated/api/core/auth.gen.js +14 -0
- package/dist/generated/api/core/bodySerializer.gen.js +57 -0
- package/dist/generated/api/core/params.gen.js +103 -0
- package/dist/generated/api/core/pathSerializer.gen.js +114 -0
- package/dist/generated/api/core/queryKeySerializer.gen.js +99 -0
- package/dist/generated/api/core/serverSentEvents.gen.js +136 -0
- package/dist/generated/api/core/types.gen.js +2 -0
- package/dist/generated/api/core/utils.gen.js +87 -0
- package/dist/generated/api/index.js +2 -0
- package/dist/generated/api/sdk.gen.js +556 -0
- package/dist/generated/api/types.gen.js +2 -0
- package/dist/generated/api/zod.gen.js +1262 -0
- package/dist/ui/components/action-hints.js +33 -0
- package/dist/ui/components/cli-header.js +91 -0
- package/dist/ui/components/confirm-prompt.js +28 -0
- package/dist/ui/components/data-table.js +35 -0
- package/dist/ui/components/detail-view.js +5 -0
- package/dist/ui/components/error-display.js +5 -0
- package/dist/ui/components/prompt-layout.js +6 -0
- package/dist/ui/components/select-prompt.js +28 -0
- package/dist/ui/components/spinner.js +14 -0
- package/dist/ui/components/success-message.js +5 -0
- package/dist/ui/components/text-input.js +29 -0
- package/dist/ui/hooks/use-action-hints.js +21 -0
- package/dist/ui/hooks/use-status.js +22 -0
- package/dist/ui/index.js +15 -0
- package/dist/ui/prompt-helpers.js +55 -0
- package/dist/ui/render.js +9 -0
- package/package.json +89 -0
- package/skills/4ge-cli.md +113 -0
- package/usage.md +320 -0
|
@@ -0,0 +1,556 @@
|
|
|
1
|
+
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
|
+
import { client } from "./client.gen.js";
|
|
3
|
+
/**
|
|
4
|
+
* cli-auth-login
|
|
5
|
+
*
|
|
6
|
+
* Initiate CLI OAuth flow
|
|
7
|
+
*/
|
|
8
|
+
export const cliAuthLogin = (options) => (options?.client ?? client).get({ url: "/api/cli/v1/auth/login", ...options });
|
|
9
|
+
/**
|
|
10
|
+
* cli-auth-email-login
|
|
11
|
+
*
|
|
12
|
+
* Authenticate with email and password
|
|
13
|
+
*/
|
|
14
|
+
export const cliAuthEmailLogin = (options) => (options?.client ?? client).post({
|
|
15
|
+
url: "/api/cli/v1/auth/login/email",
|
|
16
|
+
...options,
|
|
17
|
+
headers: {
|
|
18
|
+
"Content-Type": "application/json",
|
|
19
|
+
...options?.headers,
|
|
20
|
+
},
|
|
21
|
+
});
|
|
22
|
+
/**
|
|
23
|
+
* cli-auth-callback
|
|
24
|
+
*
|
|
25
|
+
* OAuth callback endpoint (returns HTML)
|
|
26
|
+
*/
|
|
27
|
+
export const cliAuthCallback = (options) => (options.client ?? client).get({ url: "/api/cli/v1/auth/callback", ...options });
|
|
28
|
+
/**
|
|
29
|
+
* cli-auth-status
|
|
30
|
+
*
|
|
31
|
+
* Check current CLI authentication status
|
|
32
|
+
*/
|
|
33
|
+
export const cliAuthStatus = (options) => (options?.client ?? client).get({
|
|
34
|
+
security: [
|
|
35
|
+
{ scheme: "bearer", type: "http" },
|
|
36
|
+
{ name: "Authorization", type: "apiKey" },
|
|
37
|
+
],
|
|
38
|
+
url: "/api/cli/v1/auth/status",
|
|
39
|
+
...options,
|
|
40
|
+
});
|
|
41
|
+
/**
|
|
42
|
+
* cli-auth-refresh
|
|
43
|
+
*
|
|
44
|
+
* Refresh CLI authentication session
|
|
45
|
+
*/
|
|
46
|
+
export const cliAuthRefresh = (options) => (options?.client ?? client).post({
|
|
47
|
+
url: "/api/cli/v1/auth/token/refresh",
|
|
48
|
+
...options,
|
|
49
|
+
headers: {
|
|
50
|
+
"Content-Type": "application/json",
|
|
51
|
+
...options?.headers,
|
|
52
|
+
},
|
|
53
|
+
});
|
|
54
|
+
/**
|
|
55
|
+
* list-workspaces
|
|
56
|
+
*
|
|
57
|
+
* List all workspaces the user has access to
|
|
58
|
+
*/
|
|
59
|
+
export const listWorkspaces = (options) => (options?.client ?? client).get({
|
|
60
|
+
security: [
|
|
61
|
+
{ scheme: "bearer", type: "http" },
|
|
62
|
+
{ name: "Authorization", type: "apiKey" },
|
|
63
|
+
],
|
|
64
|
+
url: "/api/cli/v1/workspaces",
|
|
65
|
+
...options,
|
|
66
|
+
});
|
|
67
|
+
/**
|
|
68
|
+
* list-projects
|
|
69
|
+
*
|
|
70
|
+
* List all projects in the specified workspace.
|
|
71
|
+
*/
|
|
72
|
+
export const listProjects = (options) => (options?.client ?? client).get({
|
|
73
|
+
security: [
|
|
74
|
+
{ scheme: "bearer", type: "http" },
|
|
75
|
+
{ name: "Authorization", type: "apiKey" },
|
|
76
|
+
],
|
|
77
|
+
url: "/api/cli/v1/projects",
|
|
78
|
+
...options,
|
|
79
|
+
});
|
|
80
|
+
/**
|
|
81
|
+
* create-project
|
|
82
|
+
*
|
|
83
|
+
* Create a new project
|
|
84
|
+
*/
|
|
85
|
+
export const createProject = (options) => (options?.client ?? client).post({
|
|
86
|
+
security: [
|
|
87
|
+
{ scheme: "bearer", type: "http" },
|
|
88
|
+
{ name: "Authorization", type: "apiKey" },
|
|
89
|
+
],
|
|
90
|
+
url: "/api/cli/v1/projects",
|
|
91
|
+
...options,
|
|
92
|
+
headers: {
|
|
93
|
+
"Content-Type": "application/json",
|
|
94
|
+
...options?.headers,
|
|
95
|
+
},
|
|
96
|
+
});
|
|
97
|
+
/**
|
|
98
|
+
* get-project-detail
|
|
99
|
+
*
|
|
100
|
+
* Get project details including current status
|
|
101
|
+
*/
|
|
102
|
+
export const getProjectDetail = (options) => (options.client ?? client).get({
|
|
103
|
+
security: [
|
|
104
|
+
{ scheme: "bearer", type: "http" },
|
|
105
|
+
{ name: "Authorization", type: "apiKey" },
|
|
106
|
+
],
|
|
107
|
+
url: "/api/cli/v1/projects/{projectId}",
|
|
108
|
+
...options,
|
|
109
|
+
});
|
|
110
|
+
/**
|
|
111
|
+
* update-project
|
|
112
|
+
*
|
|
113
|
+
* Update an existing project
|
|
114
|
+
*/
|
|
115
|
+
export const updateProject = (options) => (options.client ?? client).patch({
|
|
116
|
+
security: [
|
|
117
|
+
{ scheme: "bearer", type: "http" },
|
|
118
|
+
{ name: "Authorization", type: "apiKey" },
|
|
119
|
+
],
|
|
120
|
+
url: "/api/cli/v1/projects/{projectId}",
|
|
121
|
+
...options,
|
|
122
|
+
headers: {
|
|
123
|
+
"Content-Type": "application/json",
|
|
124
|
+
...options.headers,
|
|
125
|
+
},
|
|
126
|
+
});
|
|
127
|
+
/**
|
|
128
|
+
* get-plan-metadata
|
|
129
|
+
*
|
|
130
|
+
* Get project plan metadata
|
|
131
|
+
*/
|
|
132
|
+
export const getPlanMetadata = (options) => (options.client ?? client).get({
|
|
133
|
+
security: [
|
|
134
|
+
{ scheme: "bearer", type: "http" },
|
|
135
|
+
{ name: "Authorization", type: "apiKey" },
|
|
136
|
+
],
|
|
137
|
+
url: "/api/cli/v1/projects/{projectId}/plan",
|
|
138
|
+
...options,
|
|
139
|
+
});
|
|
140
|
+
/**
|
|
141
|
+
* get-plan-tree
|
|
142
|
+
*
|
|
143
|
+
* Get project hierarchy as a tree
|
|
144
|
+
*/
|
|
145
|
+
export const getPlanTree = (options) => (options.client ?? client).get({
|
|
146
|
+
security: [
|
|
147
|
+
{ scheme: "bearer", type: "http" },
|
|
148
|
+
{ name: "Authorization", type: "apiKey" },
|
|
149
|
+
],
|
|
150
|
+
url: "/api/cli/v1/projects/{projectId}/plan/tree",
|
|
151
|
+
...options,
|
|
152
|
+
});
|
|
153
|
+
/**
|
|
154
|
+
* get-plan-versions
|
|
155
|
+
*
|
|
156
|
+
* List all plan versions for a project
|
|
157
|
+
*/
|
|
158
|
+
export const getPlanVersions = (options) => (options.client ?? client).get({
|
|
159
|
+
security: [
|
|
160
|
+
{ scheme: "bearer", type: "http" },
|
|
161
|
+
{ name: "Authorization", type: "apiKey" },
|
|
162
|
+
],
|
|
163
|
+
url: "/api/cli/v1/projects/{projectId}/plan/versions",
|
|
164
|
+
...options,
|
|
165
|
+
});
|
|
166
|
+
/**
|
|
167
|
+
* get-latest-plan-version
|
|
168
|
+
*
|
|
169
|
+
* Get the latest active plan version
|
|
170
|
+
*/
|
|
171
|
+
export const getLatestPlanVersion = (options) => (options.client ?? client).get({
|
|
172
|
+
security: [
|
|
173
|
+
{ scheme: "bearer", type: "http" },
|
|
174
|
+
{ name: "Authorization", type: "apiKey" },
|
|
175
|
+
],
|
|
176
|
+
url: "/api/cli/v1/projects/{projectId}/plan/versions/latest",
|
|
177
|
+
...options,
|
|
178
|
+
});
|
|
179
|
+
/**
|
|
180
|
+
* get-plan-version-detail
|
|
181
|
+
*
|
|
182
|
+
* Get details for a specific plan version
|
|
183
|
+
*/
|
|
184
|
+
export const getPlanVersionDetail = (options) => (options.client ?? client).get({
|
|
185
|
+
security: [
|
|
186
|
+
{ scheme: "bearer", type: "http" },
|
|
187
|
+
{ name: "Authorization", type: "apiKey" },
|
|
188
|
+
],
|
|
189
|
+
url: "/api/cli/v1/projects/{projectId}/plan/versions/{versionId}",
|
|
190
|
+
...options,
|
|
191
|
+
});
|
|
192
|
+
/**
|
|
193
|
+
* list-epics
|
|
194
|
+
*
|
|
195
|
+
* List all epics in a project
|
|
196
|
+
*/
|
|
197
|
+
export const listEpics = (options) => (options.client ?? client).get({
|
|
198
|
+
security: [
|
|
199
|
+
{ scheme: "bearer", type: "http" },
|
|
200
|
+
{ name: "Authorization", type: "apiKey" },
|
|
201
|
+
],
|
|
202
|
+
url: "/api/cli/v1/projects/{projectId}/epics",
|
|
203
|
+
...options,
|
|
204
|
+
});
|
|
205
|
+
/**
|
|
206
|
+
* get-epic-detail
|
|
207
|
+
*
|
|
208
|
+
* Get details for a specific epic
|
|
209
|
+
*/
|
|
210
|
+
export const getEpicDetail = (options) => (options.client ?? client).get({
|
|
211
|
+
security: [
|
|
212
|
+
{ scheme: "bearer", type: "http" },
|
|
213
|
+
{ name: "Authorization", type: "apiKey" },
|
|
214
|
+
],
|
|
215
|
+
url: "/api/cli/v1/projects/{projectId}/epics/{epicId}",
|
|
216
|
+
...options,
|
|
217
|
+
});
|
|
218
|
+
/**
|
|
219
|
+
* update-epic
|
|
220
|
+
*
|
|
221
|
+
* Update a specific epic
|
|
222
|
+
*/
|
|
223
|
+
export const updateEpic = (options) => (options.client ?? client).patch({
|
|
224
|
+
security: [
|
|
225
|
+
{ scheme: "bearer", type: "http" },
|
|
226
|
+
{ name: "Authorization", type: "apiKey" },
|
|
227
|
+
],
|
|
228
|
+
url: "/api/cli/v1/projects/{projectId}/epics/{epicId}",
|
|
229
|
+
...options,
|
|
230
|
+
headers: {
|
|
231
|
+
"Content-Type": "application/json",
|
|
232
|
+
...options.headers,
|
|
233
|
+
},
|
|
234
|
+
});
|
|
235
|
+
/**
|
|
236
|
+
* get-epic-tree
|
|
237
|
+
*
|
|
238
|
+
* Get epic hierarchy as a tree
|
|
239
|
+
*/
|
|
240
|
+
export const getEpicTree = (options) => (options.client ?? client).get({
|
|
241
|
+
security: [
|
|
242
|
+
{ scheme: "bearer", type: "http" },
|
|
243
|
+
{ name: "Authorization", type: "apiKey" },
|
|
244
|
+
],
|
|
245
|
+
url: "/api/cli/v1/projects/{projectId}/epics/{epicId}/tree",
|
|
246
|
+
...options,
|
|
247
|
+
});
|
|
248
|
+
/**
|
|
249
|
+
* list-features
|
|
250
|
+
*
|
|
251
|
+
* List all features in a project
|
|
252
|
+
*/
|
|
253
|
+
export const listFeatures = (options) => (options.client ?? client).get({
|
|
254
|
+
security: [
|
|
255
|
+
{ scheme: "bearer", type: "http" },
|
|
256
|
+
{ name: "Authorization", type: "apiKey" },
|
|
257
|
+
],
|
|
258
|
+
url: "/api/cli/v1/projects/{projectId}/features",
|
|
259
|
+
...options,
|
|
260
|
+
});
|
|
261
|
+
/**
|
|
262
|
+
* get-feature-detail
|
|
263
|
+
*
|
|
264
|
+
* Get details for a specific feature
|
|
265
|
+
*/
|
|
266
|
+
export const getFeatureDetail = (options) => (options.client ?? client).get({
|
|
267
|
+
security: [
|
|
268
|
+
{ scheme: "bearer", type: "http" },
|
|
269
|
+
{ name: "Authorization", type: "apiKey" },
|
|
270
|
+
],
|
|
271
|
+
url: "/api/cli/v1/projects/{projectId}/features/{featureId}",
|
|
272
|
+
...options,
|
|
273
|
+
});
|
|
274
|
+
/**
|
|
275
|
+
* update-feature
|
|
276
|
+
*
|
|
277
|
+
* Update a specific feature
|
|
278
|
+
*/
|
|
279
|
+
export const updateFeature = (options) => (options.client ?? client).patch({
|
|
280
|
+
security: [
|
|
281
|
+
{ scheme: "bearer", type: "http" },
|
|
282
|
+
{ name: "Authorization", type: "apiKey" },
|
|
283
|
+
],
|
|
284
|
+
url: "/api/cli/v1/projects/{projectId}/features/{featureId}",
|
|
285
|
+
...options,
|
|
286
|
+
headers: {
|
|
287
|
+
"Content-Type": "application/json",
|
|
288
|
+
...options.headers,
|
|
289
|
+
},
|
|
290
|
+
});
|
|
291
|
+
/**
|
|
292
|
+
* get-feature-tree
|
|
293
|
+
*
|
|
294
|
+
* Get feature hierarchy as a tree
|
|
295
|
+
*/
|
|
296
|
+
export const getFeatureTree = (options) => (options.client ?? client).get({
|
|
297
|
+
security: [
|
|
298
|
+
{ scheme: "bearer", type: "http" },
|
|
299
|
+
{ name: "Authorization", type: "apiKey" },
|
|
300
|
+
],
|
|
301
|
+
url: "/api/cli/v1/projects/{projectId}/features/{featureId}/tree",
|
|
302
|
+
...options,
|
|
303
|
+
});
|
|
304
|
+
/**
|
|
305
|
+
* list-stories
|
|
306
|
+
*
|
|
307
|
+
* List all user stories in a project
|
|
308
|
+
*/
|
|
309
|
+
export const listStories = (options) => (options.client ?? client).get({
|
|
310
|
+
security: [
|
|
311
|
+
{ scheme: "bearer", type: "http" },
|
|
312
|
+
{ name: "Authorization", type: "apiKey" },
|
|
313
|
+
],
|
|
314
|
+
url: "/api/cli/v1/projects/{projectId}/stories",
|
|
315
|
+
...options,
|
|
316
|
+
});
|
|
317
|
+
/**
|
|
318
|
+
* get-story-detail
|
|
319
|
+
*
|
|
320
|
+
* Get details for a specific user story
|
|
321
|
+
*/
|
|
322
|
+
export const getStoryDetail = (options) => (options.client ?? client).get({
|
|
323
|
+
security: [
|
|
324
|
+
{ scheme: "bearer", type: "http" },
|
|
325
|
+
{ name: "Authorization", type: "apiKey" },
|
|
326
|
+
],
|
|
327
|
+
url: "/api/cli/v1/projects/{projectId}/stories/{storyId}",
|
|
328
|
+
...options,
|
|
329
|
+
});
|
|
330
|
+
/**
|
|
331
|
+
* update-story
|
|
332
|
+
*
|
|
333
|
+
* Update a specific story
|
|
334
|
+
*/
|
|
335
|
+
export const updateStory = (options) => (options.client ?? client).patch({
|
|
336
|
+
security: [
|
|
337
|
+
{ scheme: "bearer", type: "http" },
|
|
338
|
+
{ name: "Authorization", type: "apiKey" },
|
|
339
|
+
],
|
|
340
|
+
url: "/api/cli/v1/projects/{projectId}/stories/{storyId}",
|
|
341
|
+
...options,
|
|
342
|
+
headers: {
|
|
343
|
+
"Content-Type": "application/json",
|
|
344
|
+
...options.headers,
|
|
345
|
+
},
|
|
346
|
+
});
|
|
347
|
+
/**
|
|
348
|
+
* get-story-tree
|
|
349
|
+
*
|
|
350
|
+
* Get story hierarchy as a tree
|
|
351
|
+
*/
|
|
352
|
+
export const getStoryTree = (options) => (options.client ?? client).get({
|
|
353
|
+
security: [
|
|
354
|
+
{ scheme: "bearer", type: "http" },
|
|
355
|
+
{ name: "Authorization", type: "apiKey" },
|
|
356
|
+
],
|
|
357
|
+
url: "/api/cli/v1/projects/{projectId}/stories/{storyId}/tree",
|
|
358
|
+
...options,
|
|
359
|
+
});
|
|
360
|
+
/**
|
|
361
|
+
* list-templates
|
|
362
|
+
*
|
|
363
|
+
* List all available project templates
|
|
364
|
+
*/
|
|
365
|
+
export const listTemplates = (options) => (options?.client ?? client).get({
|
|
366
|
+
security: [
|
|
367
|
+
{ scheme: "bearer", type: "http" },
|
|
368
|
+
{ name: "Authorization", type: "apiKey" },
|
|
369
|
+
],
|
|
370
|
+
url: "/api/cli/v1/templates",
|
|
371
|
+
...options,
|
|
372
|
+
});
|
|
373
|
+
/**
|
|
374
|
+
* create-template
|
|
375
|
+
*
|
|
376
|
+
* Create a new project template
|
|
377
|
+
*/
|
|
378
|
+
export const createTemplate = (options) => (options?.client ?? client).post({
|
|
379
|
+
security: [
|
|
380
|
+
{ scheme: "bearer", type: "http" },
|
|
381
|
+
{ name: "Authorization", type: "apiKey" },
|
|
382
|
+
],
|
|
383
|
+
url: "/api/cli/v1/templates",
|
|
384
|
+
...options,
|
|
385
|
+
headers: {
|
|
386
|
+
"Content-Type": "application/json",
|
|
387
|
+
...options?.headers,
|
|
388
|
+
},
|
|
389
|
+
});
|
|
390
|
+
/**
|
|
391
|
+
* delete-template
|
|
392
|
+
*
|
|
393
|
+
* Delete a template
|
|
394
|
+
*/
|
|
395
|
+
export const deleteTemplate = (options) => (options.client ?? client).delete({
|
|
396
|
+
security: [
|
|
397
|
+
{ scheme: "bearer", type: "http" },
|
|
398
|
+
{ name: "Authorization", type: "apiKey" },
|
|
399
|
+
],
|
|
400
|
+
url: "/api/cli/v1/templates/{templateId}",
|
|
401
|
+
...options,
|
|
402
|
+
});
|
|
403
|
+
/**
|
|
404
|
+
* get-template-detail
|
|
405
|
+
*
|
|
406
|
+
* Get details for a specific project template
|
|
407
|
+
*/
|
|
408
|
+
export const getTemplateDetail = (options) => (options.client ?? client).get({
|
|
409
|
+
security: [
|
|
410
|
+
{ scheme: "bearer", type: "http" },
|
|
411
|
+
{ name: "Authorization", type: "apiKey" },
|
|
412
|
+
],
|
|
413
|
+
url: "/api/cli/v1/templates/{templateId}",
|
|
414
|
+
...options,
|
|
415
|
+
});
|
|
416
|
+
/**
|
|
417
|
+
* update-template
|
|
418
|
+
*
|
|
419
|
+
* Update an existing template
|
|
420
|
+
*/
|
|
421
|
+
export const updateTemplate = (options) => (options.client ?? client).patch({
|
|
422
|
+
security: [
|
|
423
|
+
{ scheme: "bearer", type: "http" },
|
|
424
|
+
{ name: "Authorization", type: "apiKey" },
|
|
425
|
+
],
|
|
426
|
+
url: "/api/cli/v1/templates/{templateId}",
|
|
427
|
+
...options,
|
|
428
|
+
headers: {
|
|
429
|
+
"Content-Type": "application/json",
|
|
430
|
+
...options.headers,
|
|
431
|
+
},
|
|
432
|
+
});
|
|
433
|
+
/**
|
|
434
|
+
* list-template-features
|
|
435
|
+
*
|
|
436
|
+
* List features for a template
|
|
437
|
+
*/
|
|
438
|
+
export const listTemplateFeatures = (options) => (options.client ?? client).get({
|
|
439
|
+
security: [
|
|
440
|
+
{ scheme: "bearer", type: "http" },
|
|
441
|
+
{ name: "Authorization", type: "apiKey" },
|
|
442
|
+
],
|
|
443
|
+
url: "/api/cli/v1/templates/{templateId}/features",
|
|
444
|
+
...options,
|
|
445
|
+
});
|
|
446
|
+
/**
|
|
447
|
+
* create-template-feature
|
|
448
|
+
*
|
|
449
|
+
* Create a feature for a template
|
|
450
|
+
*/
|
|
451
|
+
export const createTemplateFeature = (options) => (options.client ?? client).post({
|
|
452
|
+
security: [
|
|
453
|
+
{ scheme: "bearer", type: "http" },
|
|
454
|
+
{ name: "Authorization", type: "apiKey" },
|
|
455
|
+
],
|
|
456
|
+
url: "/api/cli/v1/templates/{templateId}/features",
|
|
457
|
+
...options,
|
|
458
|
+
headers: {
|
|
459
|
+
"Content-Type": "application/json",
|
|
460
|
+
...options.headers,
|
|
461
|
+
},
|
|
462
|
+
});
|
|
463
|
+
/**
|
|
464
|
+
* delete-template-feature
|
|
465
|
+
*
|
|
466
|
+
* Delete a template feature
|
|
467
|
+
*/
|
|
468
|
+
export const deleteTemplateFeature = (options) => (options.client ?? client).delete({
|
|
469
|
+
security: [
|
|
470
|
+
{ scheme: "bearer", type: "http" },
|
|
471
|
+
{ name: "Authorization", type: "apiKey" },
|
|
472
|
+
],
|
|
473
|
+
url: "/api/cli/v1/templates/{templateId}/features/{featureId}",
|
|
474
|
+
...options,
|
|
475
|
+
});
|
|
476
|
+
/**
|
|
477
|
+
* update-template-feature
|
|
478
|
+
*
|
|
479
|
+
* Update a template feature
|
|
480
|
+
*/
|
|
481
|
+
export const updateTemplateFeature = (options) => (options.client ?? client).patch({
|
|
482
|
+
security: [
|
|
483
|
+
{ scheme: "bearer", type: "http" },
|
|
484
|
+
{ name: "Authorization", type: "apiKey" },
|
|
485
|
+
],
|
|
486
|
+
url: "/api/cli/v1/templates/{templateId}/features/{featureId}",
|
|
487
|
+
...options,
|
|
488
|
+
headers: {
|
|
489
|
+
"Content-Type": "application/json",
|
|
490
|
+
...options.headers,
|
|
491
|
+
},
|
|
492
|
+
});
|
|
493
|
+
/**
|
|
494
|
+
* list-ideas
|
|
495
|
+
*
|
|
496
|
+
* List all ideas in a workspace
|
|
497
|
+
*/
|
|
498
|
+
export const listIdeas = (options) => (options.client ?? client).get({
|
|
499
|
+
security: [
|
|
500
|
+
{ scheme: "bearer", type: "http" },
|
|
501
|
+
{ name: "Authorization", type: "apiKey" },
|
|
502
|
+
],
|
|
503
|
+
url: "/api/cli/v1/workspaces/{workspaceId}/ideas",
|
|
504
|
+
...options,
|
|
505
|
+
});
|
|
506
|
+
/**
|
|
507
|
+
* create-idea
|
|
508
|
+
*
|
|
509
|
+
* Create a new idea
|
|
510
|
+
*/
|
|
511
|
+
export const createIdea = (options) => (options.client ?? client).post({
|
|
512
|
+
security: [
|
|
513
|
+
{ scheme: "bearer", type: "http" },
|
|
514
|
+
{ name: "Authorization", type: "apiKey" },
|
|
515
|
+
],
|
|
516
|
+
url: "/api/cli/v1/workspaces/{workspaceId}/ideas",
|
|
517
|
+
...options,
|
|
518
|
+
headers: {
|
|
519
|
+
"Content-Type": "application/json",
|
|
520
|
+
...options.headers,
|
|
521
|
+
},
|
|
522
|
+
});
|
|
523
|
+
/**
|
|
524
|
+
* update-idea
|
|
525
|
+
*
|
|
526
|
+
* Update an existing idea
|
|
527
|
+
*/
|
|
528
|
+
export const updateIdea = (options) => (options.client ?? client).patch({
|
|
529
|
+
security: [
|
|
530
|
+
{ scheme: "bearer", type: "http" },
|
|
531
|
+
{ name: "Authorization", type: "apiKey" },
|
|
532
|
+
],
|
|
533
|
+
url: "/api/cli/v1/workspaces/{workspaceId}/ideas/{ideaId}",
|
|
534
|
+
...options,
|
|
535
|
+
headers: {
|
|
536
|
+
"Content-Type": "application/json",
|
|
537
|
+
...options.headers,
|
|
538
|
+
},
|
|
539
|
+
});
|
|
540
|
+
/**
|
|
541
|
+
* graduate-idea
|
|
542
|
+
*
|
|
543
|
+
* Graduate an idea into a full project
|
|
544
|
+
*/
|
|
545
|
+
export const graduateIdea = (options) => (options.client ?? client).post({
|
|
546
|
+
security: [
|
|
547
|
+
{ scheme: "bearer", type: "http" },
|
|
548
|
+
{ name: "Authorization", type: "apiKey" },
|
|
549
|
+
],
|
|
550
|
+
url: "/api/cli/v1/workspaces/{workspaceId}/ideas/{ideaId}/graduate",
|
|
551
|
+
...options,
|
|
552
|
+
headers: {
|
|
553
|
+
"Content-Type": "application/json",
|
|
554
|
+
...options.headers,
|
|
555
|
+
},
|
|
556
|
+
});
|