@dazl/api-client 1.0.32 → 1.0.34

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.
@@ -82,6 +82,31 @@ export type WorkspaceWithRepoAndMembers = {
82
82
  projectCount?: number;
83
83
  };
84
84
 
85
+ export type WorkspaceRepo = {
86
+ repoId: string;
87
+ /**
88
+ * e.g. `acme/site`
89
+ */
90
+ repoFullName: string;
91
+ /**
92
+ * e.g. `github.com`
93
+ */
94
+ host: string;
95
+ /**
96
+ * Canonical https clone URL, passed verbatim when creating a session
97
+ */
98
+ gitRepoURL: string;
99
+ addedAt: string;
100
+ /**
101
+ * False when no GitHub App installation backs the repo, so a clone would fail
102
+ */
103
+ hasActiveInstallation: boolean;
104
+ /**
105
+ * Mirrors `Workspace.repoId`; exactly one registered repo is the primary
106
+ */
107
+ isPrimary: boolean;
108
+ };
109
+
85
110
  export type CreateSessionAuthorized = {
86
111
  status: 'authorized';
87
112
  /**
@@ -1351,6 +1376,180 @@ export type DeleteWorkspaceInvitationResponses = {
1351
1376
 
1352
1377
  export type DeleteWorkspaceInvitationResponse = DeleteWorkspaceInvitationResponses[keyof DeleteWorkspaceInvitationResponses];
1353
1378
 
1379
+ export type ListWorkspaceReposData = {
1380
+ body?: never;
1381
+ path: {
1382
+ workspaceId: string;
1383
+ };
1384
+ query?: never;
1385
+ url: '/workspace/{workspaceId}/repos';
1386
+ };
1387
+
1388
+ export type ListWorkspaceReposErrors = {
1389
+ /**
1390
+ * Bad request - Invalid parameters or malformed JSON
1391
+ */
1392
+ 400: {
1393
+ message: string;
1394
+ issues?: string;
1395
+ };
1396
+ /**
1397
+ * Unauthorized
1398
+ */
1399
+ 401: ErrorResponse;
1400
+ /**
1401
+ * Forbidden
1402
+ */
1403
+ 403: ErrorResponse;
1404
+ /**
1405
+ * Not Found
1406
+ */
1407
+ 404: ErrorResponse;
1408
+ /**
1409
+ * Conflict
1410
+ */
1411
+ 409: ErrorResponse;
1412
+ /**
1413
+ * Internal server error
1414
+ */
1415
+ 500: ErrorResponse;
1416
+ /**
1417
+ * Service Unavailable
1418
+ */
1419
+ 503: ErrorResponse;
1420
+ };
1421
+
1422
+ export type ListWorkspaceReposError = ListWorkspaceReposErrors[keyof ListWorkspaceReposErrors];
1423
+
1424
+ export type ListWorkspaceReposResponses = {
1425
+ /**
1426
+ * Returns the repositories registered on the workspace, primary first
1427
+ */
1428
+ 200: {
1429
+ repos: Array<WorkspaceRepo>;
1430
+ };
1431
+ };
1432
+
1433
+ export type ListWorkspaceReposResponse = ListWorkspaceReposResponses[keyof ListWorkspaceReposResponses];
1434
+
1435
+ export type AddWorkspaceRepoData = {
1436
+ body: {
1437
+ /**
1438
+ * Clone URL or ssh shorthand; normalized server-side
1439
+ */
1440
+ gitRepoURL: string;
1441
+ };
1442
+ path: {
1443
+ workspaceId: string;
1444
+ };
1445
+ query?: never;
1446
+ url: '/workspace/{workspaceId}/repos';
1447
+ };
1448
+
1449
+ export type AddWorkspaceRepoErrors = {
1450
+ /**
1451
+ * Bad request - Invalid parameters or malformed JSON
1452
+ */
1453
+ 400: {
1454
+ message: string;
1455
+ issues?: string;
1456
+ };
1457
+ /**
1458
+ * Unauthorized
1459
+ */
1460
+ 401: ErrorResponse;
1461
+ /**
1462
+ * Forbidden
1463
+ */
1464
+ 403: ErrorResponse;
1465
+ /**
1466
+ * Not Found
1467
+ */
1468
+ 404: ErrorResponse;
1469
+ /**
1470
+ * Conflict
1471
+ */
1472
+ 409: ErrorResponse;
1473
+ /**
1474
+ * Internal server error
1475
+ */
1476
+ 500: ErrorResponse;
1477
+ /**
1478
+ * Service Unavailable
1479
+ */
1480
+ 503: ErrorResponse;
1481
+ };
1482
+
1483
+ export type AddWorkspaceRepoError = AddWorkspaceRepoErrors[keyof AddWorkspaceRepoErrors];
1484
+
1485
+ export type AddWorkspaceRepoResponses = {
1486
+ /**
1487
+ * Returns the registered repository
1488
+ */
1489
+ 200: {
1490
+ repo: WorkspaceRepo;
1491
+ };
1492
+ };
1493
+
1494
+ export type AddWorkspaceRepoResponse = AddWorkspaceRepoResponses[keyof AddWorkspaceRepoResponses];
1495
+
1496
+ export type RemoveWorkspaceRepoData = {
1497
+ body?: never;
1498
+ path: {
1499
+ workspaceId: string;
1500
+ repoId: string;
1501
+ };
1502
+ query?: never;
1503
+ url: '/workspace/{workspaceId}/repos/{repoId}';
1504
+ };
1505
+
1506
+ export type RemoveWorkspaceRepoErrors = {
1507
+ /**
1508
+ * Bad request - Invalid parameters or malformed JSON
1509
+ */
1510
+ 400: {
1511
+ message: string;
1512
+ issues?: string;
1513
+ };
1514
+ /**
1515
+ * Unauthorized
1516
+ */
1517
+ 401: ErrorResponse;
1518
+ /**
1519
+ * Forbidden
1520
+ */
1521
+ 403: ErrorResponse;
1522
+ /**
1523
+ * Not Found
1524
+ */
1525
+ 404: ErrorResponse;
1526
+ /**
1527
+ * Conflict
1528
+ */
1529
+ 409: ErrorResponse;
1530
+ /**
1531
+ * Internal server error
1532
+ */
1533
+ 500: ErrorResponse;
1534
+ /**
1535
+ * Service Unavailable
1536
+ */
1537
+ 503: ErrorResponse;
1538
+ };
1539
+
1540
+ export type RemoveWorkspaceRepoError = RemoveWorkspaceRepoErrors[keyof RemoveWorkspaceRepoErrors];
1541
+
1542
+ export type RemoveWorkspaceRepoResponses = {
1543
+ /**
1544
+ * The repository is no longer registered
1545
+ */
1546
+ 200: {
1547
+ success: true;
1548
+ };
1549
+ };
1550
+
1551
+ export type RemoveWorkspaceRepoResponse = RemoveWorkspaceRepoResponses[keyof RemoveWorkspaceRepoResponses];
1552
+
1354
1553
  export type GetMyValuesData = {
1355
1554
  body?: never;
1356
1555
  path?: never;