@dazl/api-client 1.0.36 → 1.0.38

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.
@@ -589,6 +589,14 @@ export type WorkspaceRepo = {
589
589
  * Mirrors `Workspace.repoId`; exactly one registered repo is the primary
590
590
  */
591
591
  isPrimary: boolean;
592
+ /**
593
+ * Dazl manages this repo as the workspace's root repo (`dazl-workspace-<name>`): sessions publish their root to it
594
+ */
595
+ isWorkspaceRoot: boolean;
596
+ /**
597
+ * The root repo is attached but not created on GitHub yet; `repoFullName` is a bare name and `gitRepoURL` cannot be cloned
598
+ */
599
+ pendingCreation: boolean;
592
600
  };
593
601
 
594
602
  export type HostSettingsResponse = {
@@ -2072,6 +2080,8 @@ export type GetProjectInfoResponses = {
2072
2080
  projectId: string;
2073
2081
  branch: string;
2074
2082
  isPrimary: boolean;
2083
+ isWorkspaceRoot: boolean;
2084
+ pendingCreation: boolean;
2075
2085
  repoFullName: string;
2076
2086
  token: string | null;
2077
2087
  repoId: string;
@@ -2270,6 +2280,144 @@ export type CreateRepositoryResponses = {
2270
2280
 
2271
2281
  export type CreateRepositoryResponse = CreateRepositoryResponses[keyof CreateRepositoryResponses];
2272
2282
 
2283
+ export type CreateProjectRepoData = {
2284
+ body?: {
2285
+ dazlId: string;
2286
+ installationId: number;
2287
+ repoName: string;
2288
+ isPrivate?: boolean;
2289
+ description?: string;
2290
+ /**
2291
+ * Directory under the project root the repository will live in; null links it as the project's root (workspace) repository, of which a project has at most one
2292
+ */
2293
+ dirName: string | null;
2294
+ };
2295
+ path: {
2296
+ projectId: string;
2297
+ };
2298
+ query?: never;
2299
+ url: '/github/project/{projectId}/repos';
2300
+ };
2301
+
2302
+ export type CreateProjectRepoErrors = {
2303
+ /**
2304
+ * Bad request - Invalid parameters or malformed JSON
2305
+ */
2306
+ 400: {
2307
+ message: string;
2308
+ issues?: string;
2309
+ };
2310
+ /**
2311
+ * Unauthorized
2312
+ */
2313
+ 401: ErrorResponse;
2314
+ /**
2315
+ * Forbidden
2316
+ */
2317
+ 403: ErrorResponse;
2318
+ /**
2319
+ * Not Found
2320
+ */
2321
+ 404: ErrorResponse;
2322
+ /**
2323
+ * Conflict
2324
+ */
2325
+ 409: ErrorResponse;
2326
+ /**
2327
+ * Internal server error
2328
+ */
2329
+ 500: ErrorResponse;
2330
+ /**
2331
+ * Service Unavailable
2332
+ */
2333
+ 503: ErrorResponse;
2334
+ };
2335
+
2336
+ export type CreateProjectRepoError = CreateProjectRepoErrors[keyof CreateProjectRepoErrors];
2337
+
2338
+ export type CreateProjectRepoResponses = {
2339
+ /**
2340
+ * Repository created and linked to the project at dirName
2341
+ */
2342
+ 200: {
2343
+ repoId: string;
2344
+ repoFullName: string;
2345
+ repoUrl: string;
2346
+ branch: string;
2347
+ dirName: string | null;
2348
+ };
2349
+ };
2350
+
2351
+ export type CreateProjectRepoResponse = CreateProjectRepoResponses[keyof CreateProjectRepoResponses];
2352
+
2353
+ export type CreateWorkspaceRootRepoData = {
2354
+ body?: {
2355
+ dazlId: string;
2356
+ installationId: number;
2357
+ isPrivate?: boolean;
2358
+ description?: string;
2359
+ };
2360
+ path: {
2361
+ workspaceId: string;
2362
+ };
2363
+ query?: never;
2364
+ url: '/github/workspace/{workspaceId}/root-repo';
2365
+ };
2366
+
2367
+ export type CreateWorkspaceRootRepoErrors = {
2368
+ /**
2369
+ * Bad request - Invalid parameters or malformed JSON
2370
+ */
2371
+ 400: {
2372
+ message: string;
2373
+ issues?: string;
2374
+ };
2375
+ /**
2376
+ * Unauthorized
2377
+ */
2378
+ 401: ErrorResponse;
2379
+ /**
2380
+ * Forbidden
2381
+ */
2382
+ 403: ErrorResponse;
2383
+ /**
2384
+ * Not Found
2385
+ */
2386
+ 404: ErrorResponse;
2387
+ /**
2388
+ * Conflict
2389
+ */
2390
+ 409: ErrorResponse;
2391
+ /**
2392
+ * Internal server error
2393
+ */
2394
+ 500: ErrorResponse;
2395
+ /**
2396
+ * Service Unavailable
2397
+ */
2398
+ 503: ErrorResponse;
2399
+ };
2400
+
2401
+ export type CreateWorkspaceRootRepoError = CreateWorkspaceRootRepoErrors[keyof CreateWorkspaceRootRepoErrors];
2402
+
2403
+ export type CreateWorkspaceRootRepoResponses = {
2404
+ /**
2405
+ * The workspace root repository now exists on GitHub
2406
+ */
2407
+ 200: {
2408
+ repoId: string;
2409
+ repoFullName: string;
2410
+ repoUrl: string;
2411
+ branch: string;
2412
+ /**
2413
+ * Sessions of the workspace that now have it as their root repo
2414
+ */
2415
+ linkedProjects: number;
2416
+ };
2417
+ };
2418
+
2419
+ export type CreateWorkspaceRootRepoResponse = CreateWorkspaceRootRepoResponses[keyof CreateWorkspaceRootRepoResponses];
2420
+
2273
2421
  export type GetOAuthUrlData = {
2274
2422
  body?: never;
2275
2423
  path?: never;
@@ -3418,11 +3566,18 @@ export type GetProjectInitDataResponses = {
3418
3566
  gitRepoURL: string;
3419
3567
  gitBranchToClone: string | null;
3420
3568
  gitBranchToCreate: string | null;
3569
+ /**
3570
+ * Directory under the project root to clone into; '' is the project root itself (the workspace root repo)
3571
+ */
3421
3572
  dirName: string;
3422
3573
  attemptCount: number;
3423
3574
  position: number;
3424
3575
  createdAt: string;
3425
3576
  updatedAt: string;
3577
+ /**
3578
+ * The repo is the workspace's Dazl-managed root repository: the container clones it AS the session root and marks the root as engine-owned
3579
+ */
3580
+ isWorkspaceRoot?: boolean;
3426
3581
  }>;
3427
3582
  };
3428
3583
  };
@@ -3701,10 +3856,18 @@ export type ListProjectReposResponses = {
3701
3856
  repoFullName: string;
3702
3857
  host: string;
3703
3858
  /**
3704
- * Directory under the project root the repo was cloned into; null for legacy root-layout repos
3859
+ * Directory under the project root the repo was cloned into; null for the root repo (legacy root-layout repos, and the workspace root repo)
3705
3860
  */
3706
3861
  dirName: string | null;
3707
3862
  hasActiveInstallation: boolean;
3863
+ /**
3864
+ * Dazl-managed workspace root repository (`dazl-workspace-<name>`)
3865
+ */
3866
+ isWorkspaceRoot: boolean;
3867
+ /**
3868
+ * Attached but not created on GitHub yet; nothing can clone or push to it
3869
+ */
3870
+ pendingCreation: boolean;
3708
3871
  }>;
3709
3872
  /**
3710
3873
  * Repos awaiting their clone by the session container
@@ -3716,11 +3879,18 @@ export type ListProjectReposResponses = {
3716
3879
  gitRepoURL: string;
3717
3880
  gitBranchToClone: string | null;
3718
3881
  gitBranchToCreate: string | null;
3882
+ /**
3883
+ * Directory under the project root to clone into; '' is the project root itself (the workspace root repo)
3884
+ */
3719
3885
  dirName: string;
3720
3886
  attemptCount: number;
3721
3887
  position: number;
3722
3888
  createdAt: string;
3723
3889
  updatedAt: string;
3890
+ /**
3891
+ * The repo is the workspace's Dazl-managed root repository: the container clones it AS the session root and marks the root as engine-owned
3892
+ */
3893
+ isWorkspaceRoot?: boolean;
3724
3894
  }>;
3725
3895
  };
3726
3896
  };
@@ -3792,11 +3962,18 @@ export type AddProjectRepoResponses = {
3792
3962
  gitRepoURL: string;
3793
3963
  gitBranchToClone: string | null;
3794
3964
  gitBranchToCreate: string | null;
3965
+ /**
3966
+ * Directory under the project root to clone into; '' is the project root itself (the workspace root repo)
3967
+ */
3795
3968
  dirName: string;
3796
3969
  attemptCount: number;
3797
3970
  position: number;
3798
3971
  createdAt: string;
3799
3972
  updatedAt: string;
3973
+ /**
3974
+ * The repo is the workspace's Dazl-managed root repository: the container clones it AS the session root and marks the root as engine-owned
3975
+ */
3976
+ isWorkspaceRoot?: boolean;
3800
3977
  };
3801
3978
  };
3802
3979
  };
@@ -105,6 +105,14 @@ export type WorkspaceRepo = {
105
105
  * Mirrors `Workspace.repoId`; exactly one registered repo is the primary
106
106
  */
107
107
  isPrimary: boolean;
108
+ /**
109
+ * Dazl manages this repo as the workspace's root repo (`dazl-workspace-<name>`): sessions publish their root to it
110
+ */
111
+ isWorkspaceRoot: boolean;
112
+ /**
113
+ * The root repo is attached but not created on GitHub yet; `repoFullName` is a bare name and `gitRepoURL` cannot be cloned
114
+ */
115
+ pendingCreation: boolean;
108
116
  };
109
117
 
110
118
  export type HostSettingsResponse = {