@dazl/api-client 1.0.33 → 1.0.35

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
  /**
@@ -831,6 +856,62 @@ export type CreateWorkspaceResponses = {
831
856
 
832
857
  export type CreateWorkspaceResponse = CreateWorkspaceResponses[keyof CreateWorkspaceResponses];
833
858
 
859
+ export type DeleteWorkspaceData = {
860
+ body?: never;
861
+ path: {
862
+ workspaceId: string;
863
+ };
864
+ query?: never;
865
+ url: '/workspace/{workspaceId}';
866
+ };
867
+
868
+ export type DeleteWorkspaceErrors = {
869
+ /**
870
+ * Bad request - Invalid parameters or malformed JSON
871
+ */
872
+ 400: {
873
+ message: string;
874
+ issues?: string;
875
+ };
876
+ /**
877
+ * Unauthorized
878
+ */
879
+ 401: ErrorResponse;
880
+ /**
881
+ * Forbidden
882
+ */
883
+ 403: ErrorResponse;
884
+ /**
885
+ * Not Found
886
+ */
887
+ 404: ErrorResponse;
888
+ /**
889
+ * Conflict
890
+ */
891
+ 409: ErrorResponse;
892
+ /**
893
+ * Internal server error
894
+ */
895
+ 500: ErrorResponse;
896
+ /**
897
+ * Service Unavailable
898
+ */
899
+ 503: ErrorResponse;
900
+ };
901
+
902
+ export type DeleteWorkspaceError = DeleteWorkspaceErrors[keyof DeleteWorkspaceErrors];
903
+
904
+ export type DeleteWorkspaceResponses = {
905
+ /**
906
+ * Acknowledges that the workspace was deleted
907
+ */
908
+ 200: {
909
+ status: 'deleted';
910
+ };
911
+ };
912
+
913
+ export type DeleteWorkspaceResponse = DeleteWorkspaceResponses[keyof DeleteWorkspaceResponses];
914
+
834
915
  export type UpdateWorkspaceData = {
835
916
  body: {
836
917
  name: string;
@@ -1351,6 +1432,238 @@ export type DeleteWorkspaceInvitationResponses = {
1351
1432
 
1352
1433
  export type DeleteWorkspaceInvitationResponse = DeleteWorkspaceInvitationResponses[keyof DeleteWorkspaceInvitationResponses];
1353
1434
 
1435
+ export type ListWorkspaceReposData = {
1436
+ body?: never;
1437
+ path: {
1438
+ workspaceId: string;
1439
+ };
1440
+ query?: never;
1441
+ url: '/workspace/{workspaceId}/repos';
1442
+ };
1443
+
1444
+ export type ListWorkspaceReposErrors = {
1445
+ /**
1446
+ * Bad request - Invalid parameters or malformed JSON
1447
+ */
1448
+ 400: {
1449
+ message: string;
1450
+ issues?: string;
1451
+ };
1452
+ /**
1453
+ * Unauthorized
1454
+ */
1455
+ 401: ErrorResponse;
1456
+ /**
1457
+ * Forbidden
1458
+ */
1459
+ 403: ErrorResponse;
1460
+ /**
1461
+ * Not Found
1462
+ */
1463
+ 404: ErrorResponse;
1464
+ /**
1465
+ * Conflict
1466
+ */
1467
+ 409: ErrorResponse;
1468
+ /**
1469
+ * Internal server error
1470
+ */
1471
+ 500: ErrorResponse;
1472
+ /**
1473
+ * Service Unavailable
1474
+ */
1475
+ 503: ErrorResponse;
1476
+ };
1477
+
1478
+ export type ListWorkspaceReposError = ListWorkspaceReposErrors[keyof ListWorkspaceReposErrors];
1479
+
1480
+ export type ListWorkspaceReposResponses = {
1481
+ /**
1482
+ * Returns the repositories registered on the workspace, primary first
1483
+ */
1484
+ 200: {
1485
+ repos: Array<WorkspaceRepo>;
1486
+ };
1487
+ };
1488
+
1489
+ export type ListWorkspaceReposResponse = ListWorkspaceReposResponses[keyof ListWorkspaceReposResponses];
1490
+
1491
+ export type AddWorkspaceRepoData = {
1492
+ body: {
1493
+ /**
1494
+ * Clone URL or ssh shorthand; normalized server-side
1495
+ */
1496
+ gitRepoURL: string;
1497
+ };
1498
+ path: {
1499
+ workspaceId: string;
1500
+ };
1501
+ query?: never;
1502
+ url: '/workspace/{workspaceId}/repos';
1503
+ };
1504
+
1505
+ export type AddWorkspaceRepoErrors = {
1506
+ /**
1507
+ * Bad request - Invalid parameters or malformed JSON
1508
+ */
1509
+ 400: {
1510
+ message: string;
1511
+ issues?: string;
1512
+ };
1513
+ /**
1514
+ * Unauthorized
1515
+ */
1516
+ 401: ErrorResponse;
1517
+ /**
1518
+ * Forbidden
1519
+ */
1520
+ 403: ErrorResponse;
1521
+ /**
1522
+ * Not Found
1523
+ */
1524
+ 404: ErrorResponse;
1525
+ /**
1526
+ * Conflict
1527
+ */
1528
+ 409: ErrorResponse;
1529
+ /**
1530
+ * Internal server error
1531
+ */
1532
+ 500: ErrorResponse;
1533
+ /**
1534
+ * Service Unavailable
1535
+ */
1536
+ 503: ErrorResponse;
1537
+ };
1538
+
1539
+ export type AddWorkspaceRepoError = AddWorkspaceRepoErrors[keyof AddWorkspaceRepoErrors];
1540
+
1541
+ export type AddWorkspaceRepoResponses = {
1542
+ /**
1543
+ * Returns the registered repository
1544
+ */
1545
+ 200: {
1546
+ repo: WorkspaceRepo;
1547
+ };
1548
+ };
1549
+
1550
+ export type AddWorkspaceRepoResponse = AddWorkspaceRepoResponses[keyof AddWorkspaceRepoResponses];
1551
+
1552
+ export type RemoveWorkspaceRepoData = {
1553
+ body?: never;
1554
+ path: {
1555
+ workspaceId: string;
1556
+ repoId: string;
1557
+ };
1558
+ query?: never;
1559
+ url: '/workspace/{workspaceId}/repos/{repoId}';
1560
+ };
1561
+
1562
+ export type RemoveWorkspaceRepoErrors = {
1563
+ /**
1564
+ * Bad request - Invalid parameters or malformed JSON
1565
+ */
1566
+ 400: {
1567
+ message: string;
1568
+ issues?: string;
1569
+ };
1570
+ /**
1571
+ * Unauthorized
1572
+ */
1573
+ 401: ErrorResponse;
1574
+ /**
1575
+ * Forbidden
1576
+ */
1577
+ 403: ErrorResponse;
1578
+ /**
1579
+ * Not Found
1580
+ */
1581
+ 404: ErrorResponse;
1582
+ /**
1583
+ * Conflict
1584
+ */
1585
+ 409: ErrorResponse;
1586
+ /**
1587
+ * Internal server error
1588
+ */
1589
+ 500: ErrorResponse;
1590
+ /**
1591
+ * Service Unavailable
1592
+ */
1593
+ 503: ErrorResponse;
1594
+ };
1595
+
1596
+ export type RemoveWorkspaceRepoError = RemoveWorkspaceRepoErrors[keyof RemoveWorkspaceRepoErrors];
1597
+
1598
+ export type RemoveWorkspaceRepoResponses = {
1599
+ /**
1600
+ * The repository is no longer registered
1601
+ */
1602
+ 200: {
1603
+ success: true;
1604
+ };
1605
+ };
1606
+
1607
+ export type RemoveWorkspaceRepoResponse = RemoveWorkspaceRepoResponses[keyof RemoveWorkspaceRepoResponses];
1608
+
1609
+ export type DuplicateWorkspaceData = {
1610
+ body: {
1611
+ name: string;
1612
+ };
1613
+ path: {
1614
+ workspaceId: string;
1615
+ };
1616
+ query?: never;
1617
+ url: '/workspace/{workspaceId}/duplicate';
1618
+ };
1619
+
1620
+ export type DuplicateWorkspaceErrors = {
1621
+ /**
1622
+ * Bad request - Invalid parameters or malformed JSON
1623
+ */
1624
+ 400: {
1625
+ message: string;
1626
+ issues?: string;
1627
+ };
1628
+ /**
1629
+ * Unauthorized
1630
+ */
1631
+ 401: ErrorResponse;
1632
+ /**
1633
+ * Forbidden
1634
+ */
1635
+ 403: ErrorResponse;
1636
+ /**
1637
+ * Not Found
1638
+ */
1639
+ 404: ErrorResponse;
1640
+ /**
1641
+ * Conflict
1642
+ */
1643
+ 409: ErrorResponse;
1644
+ /**
1645
+ * Internal server error
1646
+ */
1647
+ 500: ErrorResponse;
1648
+ /**
1649
+ * Service Unavailable
1650
+ */
1651
+ 503: ErrorResponse;
1652
+ };
1653
+
1654
+ export type DuplicateWorkspaceError = DuplicateWorkspaceErrors[keyof DuplicateWorkspaceErrors];
1655
+
1656
+ export type DuplicateWorkspaceResponses = {
1657
+ /**
1658
+ * Returns the duplicated workspace
1659
+ */
1660
+ 200: {
1661
+ workspace: WorkspaceBase;
1662
+ };
1663
+ };
1664
+
1665
+ export type DuplicateWorkspaceResponse = DuplicateWorkspaceResponses[keyof DuplicateWorkspaceResponses];
1666
+
1354
1667
  export type GetMyValuesData = {
1355
1668
  body?: never;
1356
1669
  path?: never;