@dazl/api-client 1.0.4 → 1.0.6
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/db/generated-types.d.ts +11 -1
- package/dist/db/generated-types.d.ts.map +1 -1
- package/dist/internal/index.d.ts +2 -2
- package/dist/internal/index.d.ts.map +1 -1
- package/dist/internal/index.js +1 -1
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/sdk.gen.d.ts +5 -1
- package/dist/internal/sdk.gen.d.ts.map +1 -1
- package/dist/internal/sdk.gen.js +17 -2
- package/dist/internal/sdk.gen.js.map +1 -1
- package/dist/internal/types.gen.d.ts +119 -13
- package/dist/internal/types.gen.d.ts.map +1 -1
- package/dist/public/index.d.ts +2 -2
- package/dist/public/index.d.ts.map +1 -1
- package/dist/public/index.js +1 -1
- package/dist/public/index.js.map +1 -1
- package/dist/public/sdk.gen.d.ts +5 -1
- package/dist/public/sdk.gen.d.ts.map +1 -1
- package/dist/public/sdk.gen.js +17 -2
- package/dist/public/sdk.gen.js.map +1 -1
- package/dist/public/types.gen.d.ts +119 -13
- package/dist/public/types.gen.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/db/generated-types.ts +12 -1
- package/src/internal/index.ts +2 -2
- package/src/internal/sdk.gen.ts +20 -3
- package/src/internal/types.gen.ts +130 -13
- package/src/public/index.ts +2 -2
- package/src/public/sdk.gen.ts +20 -3
- package/src/public/types.gen.ts +130 -13
package/src/public/types.gen.ts
CHANGED
|
@@ -30,6 +30,13 @@ export type FeatureToggle = {
|
|
|
30
30
|
updatedAt: string;
|
|
31
31
|
};
|
|
32
32
|
|
|
33
|
+
export type Workspace = {
|
|
34
|
+
id: string;
|
|
35
|
+
name: string;
|
|
36
|
+
dazlUserId: string;
|
|
37
|
+
createdAt: string;
|
|
38
|
+
};
|
|
39
|
+
|
|
33
40
|
export type EnsureMyUserData = {
|
|
34
41
|
body?: {
|
|
35
42
|
name?: string;
|
|
@@ -89,11 +96,67 @@ export type EnsureMyUserResponses = {
|
|
|
89
96
|
|
|
90
97
|
export type EnsureMyUserResponse = EnsureMyUserResponses[keyof EnsureMyUserResponses];
|
|
91
98
|
|
|
99
|
+
export type GetFeatureTogglesData = {
|
|
100
|
+
body?: never;
|
|
101
|
+
path?: never;
|
|
102
|
+
query?: {
|
|
103
|
+
scope?: 'RemoteAndEditor' | 'SiteAndEditor';
|
|
104
|
+
};
|
|
105
|
+
url: '/env-config';
|
|
106
|
+
};
|
|
107
|
+
|
|
108
|
+
export type GetFeatureTogglesErrors = {
|
|
109
|
+
/**
|
|
110
|
+
* Bad request - Invalid parameters or malformed JSON
|
|
111
|
+
*/
|
|
112
|
+
400: {
|
|
113
|
+
message: string;
|
|
114
|
+
issues?: string;
|
|
115
|
+
};
|
|
116
|
+
/**
|
|
117
|
+
* Unauthorized
|
|
118
|
+
*/
|
|
119
|
+
401: ErrorResponse;
|
|
120
|
+
/**
|
|
121
|
+
* Forbidden
|
|
122
|
+
*/
|
|
123
|
+
403: ErrorResponse;
|
|
124
|
+
/**
|
|
125
|
+
* Not Found
|
|
126
|
+
*/
|
|
127
|
+
404: ErrorResponse;
|
|
128
|
+
/**
|
|
129
|
+
* Conflict
|
|
130
|
+
*/
|
|
131
|
+
409: ErrorResponse;
|
|
132
|
+
/**
|
|
133
|
+
* Internal server error
|
|
134
|
+
*/
|
|
135
|
+
500: ErrorResponse;
|
|
136
|
+
/**
|
|
137
|
+
* Service Unavailable
|
|
138
|
+
*/
|
|
139
|
+
503: ErrorResponse;
|
|
140
|
+
};
|
|
141
|
+
|
|
142
|
+
export type GetFeatureTogglesError = GetFeatureTogglesErrors[keyof GetFeatureTogglesErrors];
|
|
143
|
+
|
|
144
|
+
export type GetFeatureTogglesResponses = {
|
|
145
|
+
/**
|
|
146
|
+
* Returns feature toggles, optionally filtered by scope
|
|
147
|
+
*/
|
|
148
|
+
200: {
|
|
149
|
+
toggles: Array<FeatureToggle>;
|
|
150
|
+
};
|
|
151
|
+
};
|
|
152
|
+
|
|
153
|
+
export type GetFeatureTogglesResponse = GetFeatureTogglesResponses[keyof GetFeatureTogglesResponses];
|
|
154
|
+
|
|
92
155
|
export type GetMyUserData = {
|
|
93
156
|
body?: never;
|
|
94
157
|
path?: never;
|
|
95
158
|
query?: never;
|
|
96
|
-
url: '/user/me';
|
|
159
|
+
url: '/my-user/me';
|
|
97
160
|
};
|
|
98
161
|
|
|
99
162
|
export type GetMyUserErrors = {
|
|
@@ -151,7 +214,7 @@ export type UpdateMyUserData = {
|
|
|
151
214
|
};
|
|
152
215
|
path?: never;
|
|
153
216
|
query?: never;
|
|
154
|
-
url: '/user/me';
|
|
217
|
+
url: '/my-user/me';
|
|
155
218
|
};
|
|
156
219
|
|
|
157
220
|
export type UpdateMyUserErrors = {
|
|
@@ -201,16 +264,70 @@ export type UpdateMyUserResponses = {
|
|
|
201
264
|
|
|
202
265
|
export type UpdateMyUserResponse = UpdateMyUserResponses[keyof UpdateMyUserResponses];
|
|
203
266
|
|
|
204
|
-
export type
|
|
205
|
-
body
|
|
267
|
+
export type CreateWorkspaceData = {
|
|
268
|
+
body: {
|
|
269
|
+
name: string;
|
|
270
|
+
};
|
|
206
271
|
path?: never;
|
|
207
|
-
query?:
|
|
208
|
-
|
|
272
|
+
query?: never;
|
|
273
|
+
url: '/workspace/create';
|
|
274
|
+
};
|
|
275
|
+
|
|
276
|
+
export type CreateWorkspaceErrors = {
|
|
277
|
+
/**
|
|
278
|
+
* Bad request - Invalid parameters or malformed JSON
|
|
279
|
+
*/
|
|
280
|
+
400: {
|
|
281
|
+
message: string;
|
|
282
|
+
issues?: string;
|
|
209
283
|
};
|
|
210
|
-
|
|
284
|
+
/**
|
|
285
|
+
* Unauthorized
|
|
286
|
+
*/
|
|
287
|
+
401: ErrorResponse;
|
|
288
|
+
/**
|
|
289
|
+
* Forbidden
|
|
290
|
+
*/
|
|
291
|
+
403: ErrorResponse;
|
|
292
|
+
/**
|
|
293
|
+
* Not Found
|
|
294
|
+
*/
|
|
295
|
+
404: ErrorResponse;
|
|
296
|
+
/**
|
|
297
|
+
* Conflict
|
|
298
|
+
*/
|
|
299
|
+
409: ErrorResponse;
|
|
300
|
+
/**
|
|
301
|
+
* Internal server error
|
|
302
|
+
*/
|
|
303
|
+
500: ErrorResponse;
|
|
304
|
+
/**
|
|
305
|
+
* Service Unavailable
|
|
306
|
+
*/
|
|
307
|
+
503: ErrorResponse;
|
|
211
308
|
};
|
|
212
309
|
|
|
213
|
-
export type
|
|
310
|
+
export type CreateWorkspaceError = CreateWorkspaceErrors[keyof CreateWorkspaceErrors];
|
|
311
|
+
|
|
312
|
+
export type CreateWorkspaceResponses = {
|
|
313
|
+
/**
|
|
314
|
+
* Returns the created workspace
|
|
315
|
+
*/
|
|
316
|
+
200: {
|
|
317
|
+
workspace: Workspace;
|
|
318
|
+
};
|
|
319
|
+
};
|
|
320
|
+
|
|
321
|
+
export type CreateWorkspaceResponse = CreateWorkspaceResponses[keyof CreateWorkspaceResponses];
|
|
322
|
+
|
|
323
|
+
export type GetAllWorkspacesData = {
|
|
324
|
+
body?: never;
|
|
325
|
+
path?: never;
|
|
326
|
+
query?: never;
|
|
327
|
+
url: '/workspace/list';
|
|
328
|
+
};
|
|
329
|
+
|
|
330
|
+
export type GetAllWorkspacesErrors = {
|
|
214
331
|
/**
|
|
215
332
|
* Bad request - Invalid parameters or malformed JSON
|
|
216
333
|
*/
|
|
@@ -244,18 +361,18 @@ export type GetFeatureTogglesErrors = {
|
|
|
244
361
|
503: ErrorResponse;
|
|
245
362
|
};
|
|
246
363
|
|
|
247
|
-
export type
|
|
364
|
+
export type GetAllWorkspacesError = GetAllWorkspacesErrors[keyof GetAllWorkspacesErrors];
|
|
248
365
|
|
|
249
|
-
export type
|
|
366
|
+
export type GetAllWorkspacesResponses = {
|
|
250
367
|
/**
|
|
251
|
-
* Returns
|
|
368
|
+
* Returns the list of workspaces for the current user
|
|
252
369
|
*/
|
|
253
370
|
200: {
|
|
254
|
-
|
|
371
|
+
workspaces: Array<Workspace>;
|
|
255
372
|
};
|
|
256
373
|
};
|
|
257
374
|
|
|
258
|
-
export type
|
|
375
|
+
export type GetAllWorkspacesResponse = GetAllWorkspacesResponses[keyof GetAllWorkspacesResponses];
|
|
259
376
|
|
|
260
377
|
export type GetPingData = {
|
|
261
378
|
body?: never;
|