@dazl/api-client 1.0.23 → 1.0.25

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.
@@ -452,19 +452,29 @@ export type FeatureToggle = {
452
452
  scope: 'RemoteAndEditor' | 'SiteAndEditor';
453
453
  updatedAt: string;
454
454
  };
455
- export type Workspace = {
455
+ export type WorkspaceBase = {
456
456
  id: string;
457
457
  name: string;
458
- /**
459
- * The user which created the workspace. Null if the user was deleted.
460
- */
461
458
  dazlUserId: string | null;
462
459
  createdAt: string;
463
460
  isDefault: boolean;
461
+ repoId: string | null;
462
+ };
463
+ export type WorkspaceWithRepo = {
464
+ id: string;
465
+ name: string;
466
+ dazlUserId: string | null;
467
+ createdAt: string;
468
+ isDefault: boolean;
469
+ repoId: string | null;
464
470
  /**
465
- * The ID of the repo associated with this workspace, if any.
471
+ * The full name of the repo associated with this workspace, if any.
466
472
  */
467
- repoId: string | null;
473
+ repoFullName: string | null;
474
+ /**
475
+ * The host of the repo associated with this workspace, if any.
476
+ */
477
+ repoHost: string | null;
468
478
  };
469
479
  export type CreateSessionAuthorized = {
470
480
  status: 'authorized';
@@ -1427,6 +1437,7 @@ export type GetProjectInfoResponses = {
1427
1437
  repoFullName: string;
1428
1438
  token: string | null;
1429
1439
  repoId: string;
1440
+ host: string;
1430
1441
  };
1431
1442
  };
1432
1443
  export type GetProjectInfoResponse = GetProjectInfoResponses[keyof GetProjectInfoResponses];
@@ -6124,7 +6135,7 @@ export type CreateWorkspaceResponses = {
6124
6135
  * Returns the created workspace
6125
6136
  */
6126
6137
  200: {
6127
- workspace: Workspace;
6138
+ workspace: WorkspaceBase;
6128
6139
  };
6129
6140
  };
6130
6141
  export type CreateWorkspaceResponse = CreateWorkspaceResponses[keyof CreateWorkspaceResponses];
@@ -6177,7 +6188,7 @@ export type UpdateWorkspaceResponses = {
6177
6188
  * Returns the updated workspace
6178
6189
  */
6179
6190
  200: {
6180
- workspace: Workspace;
6191
+ workspace: WorkspaceBase;
6181
6192
  };
6182
6193
  };
6183
6194
  export type UpdateWorkspaceResponse = UpdateWorkspaceResponses[keyof UpdateWorkspaceResponses];
@@ -6233,7 +6244,7 @@ export type GetWorkspaceResponses = {
6233
6244
  * Returns the workspace with the given ID
6234
6245
  */
6235
6246
  200: {
6236
- workspace: Workspace;
6247
+ workspace: WorkspaceWithRepo;
6237
6248
  };
6238
6249
  };
6239
6250
  export type GetWorkspaceResponse = GetWorkspaceResponses[keyof GetWorkspaceResponses];
@@ -6290,15 +6301,9 @@ export type GetAllWorkspacesResponses = {
6290
6301
  workspaces: Array<{
6291
6302
  id: string;
6292
6303
  name: string;
6293
- /**
6294
- * The user which created the workspace. Null if the user was deleted.
6295
- */
6296
6304
  dazlUserId: string | null;
6297
6305
  createdAt: string;
6298
6306
  isDefault: boolean;
6299
- /**
6300
- * The ID of the repo associated with this workspace, if any.
6301
- */
6302
6307
  repoId: string | null;
6303
6308
  owner?: {
6304
6309
  /**
@@ -6324,6 +6329,103 @@ export type GetAllWorkspacesResponses = {
6324
6329
  };
6325
6330
  };
6326
6331
  export type GetAllWorkspacesResponse = GetAllWorkspacesResponses[keyof GetAllWorkspacesResponses];
6332
+ export type GetAllWorkspacesWithCreateData = {
6333
+ body: {
6334
+ /**
6335
+ * Whether to include the members of each workspace
6336
+ */
6337
+ withMembers?: boolean;
6338
+ /**
6339
+ * Filter workspaces by repository URLs
6340
+ */
6341
+ repoUrls?: Array<string>;
6342
+ /**
6343
+ * Whether to ensure a workspace exists for each repository URL provided
6344
+ */
6345
+ withEnsureWorkspacePerRepo?: boolean;
6346
+ };
6347
+ path?: never;
6348
+ query?: never;
6349
+ url: '/workspace/list-my';
6350
+ };
6351
+ export type GetAllWorkspacesWithCreateErrors = {
6352
+ /**
6353
+ * Bad request - Invalid parameters or malformed JSON
6354
+ */
6355
+ 400: {
6356
+ message: string;
6357
+ issues?: string;
6358
+ };
6359
+ /**
6360
+ * Unauthorized
6361
+ */
6362
+ 401: ErrorResponse;
6363
+ /**
6364
+ * Forbidden
6365
+ */
6366
+ 403: ErrorResponse;
6367
+ /**
6368
+ * Not Found
6369
+ */
6370
+ 404: ErrorResponse;
6371
+ /**
6372
+ * Conflict
6373
+ */
6374
+ 409: ErrorResponse;
6375
+ /**
6376
+ * Internal server error
6377
+ */
6378
+ 500: ErrorResponse;
6379
+ /**
6380
+ * Service Unavailable
6381
+ */
6382
+ 503: ErrorResponse;
6383
+ };
6384
+ export type GetAllWorkspacesWithCreateError = GetAllWorkspacesWithCreateErrors[keyof GetAllWorkspacesWithCreateErrors];
6385
+ export type GetAllWorkspacesWithCreateResponses = {
6386
+ /**
6387
+ * Returns the list of workspaces for the current user
6388
+ */
6389
+ 200: {
6390
+ workspaces: Array<{
6391
+ id: string;
6392
+ name: string;
6393
+ dazlUserId: string | null;
6394
+ createdAt: string;
6395
+ isDefault: boolean;
6396
+ repoId: string | null;
6397
+ /**
6398
+ * The full name of the repo associated with this workspace, if any.
6399
+ */
6400
+ repoFullName: string | null;
6401
+ /**
6402
+ * The host of the repo associated with this workspace, if any.
6403
+ */
6404
+ repoHost: string | null;
6405
+ owner?: {
6406
+ /**
6407
+ * Dazl ID for the type = "user"
6408
+ */
6409
+ id: string;
6410
+ email: string;
6411
+ name?: string;
6412
+ picture?: string;
6413
+ role: 'workspace_member' | 'owner';
6414
+ } | null;
6415
+ members?: Array<{
6416
+ /**
6417
+ * Dazl ID for the type = "user"
6418
+ */
6419
+ id: string;
6420
+ email: string;
6421
+ name?: string;
6422
+ picture?: string;
6423
+ role: 'workspace_member' | 'owner';
6424
+ }>;
6425
+ }>;
6426
+ };
6427
+ };
6428
+ export type GetAllWorkspacesWithCreateResponse = GetAllWorkspacesWithCreateResponses[keyof GetAllWorkspacesWithCreateResponses];
6327
6429
  export type InviteWorkspaceMemberData = {
6328
6430
  body: {
6329
6431
  email: string;