@dazl/api-client 1.0.5 → 1.0.7

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.
@@ -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;
@@ -257,6 +264,116 @@ export type UpdateMyUserResponses = {
257
264
 
258
265
  export type UpdateMyUserResponse = UpdateMyUserResponses[keyof UpdateMyUserResponses];
259
266
 
267
+ export type CreateWorkspaceData = {
268
+ body: {
269
+ name: string;
270
+ };
271
+ path?: never;
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;
283
+ };
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;
308
+ };
309
+
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-my';
328
+ };
329
+
330
+ export type GetAllWorkspacesErrors = {
331
+ /**
332
+ * Bad request - Invalid parameters or malformed JSON
333
+ */
334
+ 400: {
335
+ message: string;
336
+ issues?: string;
337
+ };
338
+ /**
339
+ * Unauthorized
340
+ */
341
+ 401: ErrorResponse;
342
+ /**
343
+ * Forbidden
344
+ */
345
+ 403: ErrorResponse;
346
+ /**
347
+ * Not Found
348
+ */
349
+ 404: ErrorResponse;
350
+ /**
351
+ * Conflict
352
+ */
353
+ 409: ErrorResponse;
354
+ /**
355
+ * Internal server error
356
+ */
357
+ 500: ErrorResponse;
358
+ /**
359
+ * Service Unavailable
360
+ */
361
+ 503: ErrorResponse;
362
+ };
363
+
364
+ export type GetAllWorkspacesError = GetAllWorkspacesErrors[keyof GetAllWorkspacesErrors];
365
+
366
+ export type GetAllWorkspacesResponses = {
367
+ /**
368
+ * Returns the list of workspaces for the current user
369
+ */
370
+ 200: {
371
+ workspaces: Array<Workspace>;
372
+ };
373
+ };
374
+
375
+ export type GetAllWorkspacesResponse = GetAllWorkspacesResponses[keyof GetAllWorkspacesResponses];
376
+
260
377
  export type GetPingData = {
261
378
  body?: never;
262
379
  path?: never;