@dazl/api-client 1.0.15 → 1.0.17

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.
@@ -60,6 +60,96 @@ export type ConnectionStatus = {
60
60
  isConnected: boolean;
61
61
  };
62
62
 
63
+ export type UserMention = {
64
+ dazlUserId: string;
65
+ };
66
+
67
+ export type CommentGitInfo = {
68
+ repoFullName?: string;
69
+ branch?: string;
70
+ /**
71
+ * Git commit SHA
72
+ */
73
+ commit?: string | string;
74
+ };
75
+
76
+ export type CommentResolved = {
77
+ dazlUserId: string;
78
+ resolvedAt: string;
79
+ };
80
+
81
+ export type CommentContext = ({
82
+ type: 'page';
83
+ } & PageCommentContext) | ({
84
+ type: 'stage';
85
+ } & StageCommentContext) | ({
86
+ type: 'plan';
87
+ } & PlanCommentContext) | ({
88
+ type: 'file';
89
+ } & FileCommentContext);
90
+
91
+ export type PageCommentContext = {
92
+ type: 'page';
93
+ pagePath: string;
94
+ };
95
+
96
+ export type StageCommentContext = {
97
+ type: 'stage';
98
+ pagePath: string;
99
+ anchor: {
100
+ targetSelectors?: Array<{
101
+ tagName?: string;
102
+ classes?: Array<string>;
103
+ attributes?: {
104
+ [key: string]: string;
105
+ };
106
+ nthChild?: number;
107
+ }>;
108
+ ancestors?: Array<{
109
+ tagName?: string;
110
+ classes?: Array<string>;
111
+ attributes?: {
112
+ [key: string]: string;
113
+ };
114
+ nthChild?: number;
115
+ }>;
116
+ text?: string;
117
+ };
118
+ };
119
+
120
+ export type PlanCommentContext = {
121
+ type: 'plan';
122
+ };
123
+
124
+ export type FileCommentContext = {
125
+ type: 'file';
126
+ filePath: string;
127
+ anchor?: string;
128
+ };
129
+
130
+ export type CreateCommentInput = {
131
+ content: string;
132
+ mentions?: Array<UserMention>;
133
+ context?: CommentContext;
134
+ gitInfo?: CommentGitInfo;
135
+ };
136
+
137
+ export type EditCommentInput = {
138
+ content: string;
139
+ mentions?: Array<UserMention>;
140
+ };
141
+
142
+ export type CreateReplyInput = {
143
+ content: string;
144
+ mentions?: Array<UserMention>;
145
+ gitInfo?: CommentGitInfo;
146
+ };
147
+
148
+ export type EditReplyInput = {
149
+ content: string;
150
+ mentions?: Array<UserMention>;
151
+ };
152
+
63
153
  export type EnsureMyUserData = {
64
154
  body?: {
65
155
  name?: string;
@@ -343,6 +433,62 @@ export type CreateWorkspaceResponses = {
343
433
 
344
434
  export type CreateWorkspaceResponse = CreateWorkspaceResponses[keyof CreateWorkspaceResponses];
345
435
 
436
+ export type GetWorkspaceData = {
437
+ body?: never;
438
+ path: {
439
+ workspaceId: string;
440
+ };
441
+ query?: never;
442
+ url: '/workspace/{workspaceId}';
443
+ };
444
+
445
+ export type GetWorkspaceErrors = {
446
+ /**
447
+ * Bad request - Invalid parameters or malformed JSON
448
+ */
449
+ 400: {
450
+ message: string;
451
+ issues?: string;
452
+ };
453
+ /**
454
+ * Unauthorized
455
+ */
456
+ 401: ErrorResponse;
457
+ /**
458
+ * Forbidden
459
+ */
460
+ 403: ErrorResponse;
461
+ /**
462
+ * Not Found
463
+ */
464
+ 404: ErrorResponse;
465
+ /**
466
+ * Conflict
467
+ */
468
+ 409: ErrorResponse;
469
+ /**
470
+ * Internal server error
471
+ */
472
+ 500: ErrorResponse;
473
+ /**
474
+ * Service Unavailable
475
+ */
476
+ 503: ErrorResponse;
477
+ };
478
+
479
+ export type GetWorkspaceError = GetWorkspaceErrors[keyof GetWorkspaceErrors];
480
+
481
+ export type GetWorkspaceResponses = {
482
+ /**
483
+ * Returns the workspace with the given ID
484
+ */
485
+ 200: {
486
+ workspace: Workspace;
487
+ };
488
+ };
489
+
490
+ export type GetWorkspaceResponse = GetWorkspaceResponses[keyof GetWorkspaceResponses];
491
+
346
492
  export type GetAllWorkspacesData = {
347
493
  body?: never;
348
494
  path?: never;
@@ -393,7 +539,7 @@ export type GetAllWorkspacesError = GetAllWorkspacesErrors[keyof GetAllWorkspace
393
539
 
394
540
  export type GetAllWorkspacesResponses = {
395
541
  /**
396
- * Returns the list of workspaces for the current user
542
+ * Returns the list of workspaces that the user is a member of
397
543
  */
398
544
  200: {
399
545
  workspaces: Array<{
@@ -431,6 +577,65 @@ export type GetAllWorkspacesResponses = {
431
577
 
432
578
  export type GetAllWorkspacesResponse = GetAllWorkspacesResponses[keyof GetAllWorkspacesResponses];
433
579
 
580
+ export type InviteWorkspaceMemberData = {
581
+ body: {
582
+ email: string;
583
+ role: 'workspace_member';
584
+ };
585
+ path: {
586
+ workspaceId: string;
587
+ };
588
+ query?: never;
589
+ url: '/workspace/{workspaceId}/members/invite';
590
+ };
591
+
592
+ export type InviteWorkspaceMemberErrors = {
593
+ /**
594
+ * Bad request - Invalid parameters or malformed JSON
595
+ */
596
+ 400: {
597
+ message: string;
598
+ issues?: string;
599
+ };
600
+ /**
601
+ * Unauthorized
602
+ */
603
+ 401: ErrorResponse;
604
+ /**
605
+ * Forbidden
606
+ */
607
+ 403: ErrorResponse;
608
+ /**
609
+ * Not Found
610
+ */
611
+ 404: ErrorResponse;
612
+ /**
613
+ * Conflict
614
+ */
615
+ 409: ErrorResponse;
616
+ /**
617
+ * Internal server error
618
+ */
619
+ 500: ErrorResponse;
620
+ /**
621
+ * Service Unavailable
622
+ */
623
+ 503: ErrorResponse;
624
+ };
625
+
626
+ export type InviteWorkspaceMemberError = InviteWorkspaceMemberErrors[keyof InviteWorkspaceMemberErrors];
627
+
628
+ export type InviteWorkspaceMemberResponses = {
629
+ /**
630
+ * Returns the invitation token, or null if user was auto-added to workspace
631
+ */
632
+ 200: {
633
+ token: string | null;
634
+ };
635
+ };
636
+
637
+ export type InviteWorkspaceMemberResponse = InviteWorkspaceMemberResponses[keyof InviteWorkspaceMemberResponses];
638
+
434
639
  export type GetWorkspaceMembersData = {
435
640
  body?: never;
436
641
  path: {
@@ -506,6 +711,120 @@ export type GetWorkspaceMembersResponses = {
506
711
 
507
712
  export type GetWorkspaceMembersResponse = GetWorkspaceMembersResponses[keyof GetWorkspaceMembersResponses];
508
713
 
714
+ export type DeleteWorkspaceMemberData = {
715
+ body?: never;
716
+ path: {
717
+ workspaceId: string;
718
+ memberId: string;
719
+ };
720
+ query?: never;
721
+ url: '/workspace/{workspaceId}/members/{memberId}';
722
+ };
723
+
724
+ export type DeleteWorkspaceMemberErrors = {
725
+ /**
726
+ * Bad request - Invalid parameters or malformed JSON
727
+ */
728
+ 400: {
729
+ message: string;
730
+ issues?: string;
731
+ };
732
+ /**
733
+ * Unauthorized
734
+ */
735
+ 401: ErrorResponse;
736
+ /**
737
+ * Forbidden
738
+ */
739
+ 403: ErrorResponse;
740
+ /**
741
+ * Not Found
742
+ */
743
+ 404: ErrorResponse;
744
+ /**
745
+ * Conflict
746
+ */
747
+ 409: ErrorResponse;
748
+ /**
749
+ * Internal server error
750
+ */
751
+ 500: ErrorResponse;
752
+ /**
753
+ * Service Unavailable
754
+ */
755
+ 503: ErrorResponse;
756
+ };
757
+
758
+ export type DeleteWorkspaceMemberError = DeleteWorkspaceMemberErrors[keyof DeleteWorkspaceMemberErrors];
759
+
760
+ export type DeleteWorkspaceMemberResponses = {
761
+ /**
762
+ * Acknowledges that the workspace member was deleted
763
+ */
764
+ 200: {
765
+ status: 'deleted';
766
+ };
767
+ };
768
+
769
+ export type DeleteWorkspaceMemberResponse = DeleteWorkspaceMemberResponses[keyof DeleteWorkspaceMemberResponses];
770
+
771
+ export type DeleteWorkspaceInvitationData = {
772
+ body?: never;
773
+ path: {
774
+ workspaceId: string;
775
+ invitationId: string;
776
+ };
777
+ query?: never;
778
+ url: '/workspace/{workspaceId}/invitations/{invitationId}';
779
+ };
780
+
781
+ export type DeleteWorkspaceInvitationErrors = {
782
+ /**
783
+ * Bad request - Invalid parameters or malformed JSON
784
+ */
785
+ 400: {
786
+ message: string;
787
+ issues?: string;
788
+ };
789
+ /**
790
+ * Unauthorized
791
+ */
792
+ 401: ErrorResponse;
793
+ /**
794
+ * Forbidden
795
+ */
796
+ 403: ErrorResponse;
797
+ /**
798
+ * Not Found
799
+ */
800
+ 404: ErrorResponse;
801
+ /**
802
+ * Conflict
803
+ */
804
+ 409: ErrorResponse;
805
+ /**
806
+ * Internal server error
807
+ */
808
+ 500: ErrorResponse;
809
+ /**
810
+ * Service Unavailable
811
+ */
812
+ 503: ErrorResponse;
813
+ };
814
+
815
+ export type DeleteWorkspaceInvitationError = DeleteWorkspaceInvitationErrors[keyof DeleteWorkspaceInvitationErrors];
816
+
817
+ export type DeleteWorkspaceInvitationResponses = {
818
+ /**
819
+ * Acknowledges that the workspace invitation was deleted
820
+ */
821
+ 200: {
822
+ status: 'deleted';
823
+ };
824
+ };
825
+
826
+ export type DeleteWorkspaceInvitationResponse = DeleteWorkspaceInvitationResponses[keyof DeleteWorkspaceInvitationResponses];
827
+
509
828
  export type GetMyValuesData = {
510
829
  body?: never;
511
830
  path?: never;
@@ -1105,6 +1424,756 @@ export type GetConnectionStatusResponses = {
1105
1424
 
1106
1425
  export type GetConnectionStatusResponse = GetConnectionStatusResponses[keyof GetConnectionStatusResponses];
1107
1426
 
1427
+ export type DeleteCommentData = {
1428
+ body?: never;
1429
+ path: {
1430
+ hostType: 'project' | 'workspace';
1431
+ hostId: string;
1432
+ commentId: string;
1433
+ };
1434
+ query?: never;
1435
+ url: '/comments/{hostType}/{hostId}/{commentId}';
1436
+ };
1437
+
1438
+ export type DeleteCommentErrors = {
1439
+ /**
1440
+ * Bad request - Invalid parameters or malformed JSON
1441
+ */
1442
+ 400: {
1443
+ message: string;
1444
+ issues?: string;
1445
+ };
1446
+ /**
1447
+ * Unauthorized
1448
+ */
1449
+ 401: ErrorResponse;
1450
+ /**
1451
+ * Forbidden
1452
+ */
1453
+ 403: ErrorResponse;
1454
+ /**
1455
+ * Not Found
1456
+ */
1457
+ 404: ErrorResponse;
1458
+ /**
1459
+ * Conflict
1460
+ */
1461
+ 409: ErrorResponse;
1462
+ /**
1463
+ * Internal server error
1464
+ */
1465
+ 500: ErrorResponse;
1466
+ /**
1467
+ * Service Unavailable
1468
+ */
1469
+ 503: ErrorResponse;
1470
+ };
1471
+
1472
+ export type DeleteCommentError = DeleteCommentErrors[keyof DeleteCommentErrors];
1473
+
1474
+ export type DeleteCommentResponses = {
1475
+ /**
1476
+ * Acknowledges that the comment was deleted
1477
+ */
1478
+ 200: {
1479
+ success: true;
1480
+ };
1481
+ };
1482
+
1483
+ export type DeleteCommentResponse = DeleteCommentResponses[keyof DeleteCommentResponses];
1484
+
1485
+ export type GetCommentData = {
1486
+ body?: never;
1487
+ path: {
1488
+ hostType: 'project' | 'workspace';
1489
+ hostId: string;
1490
+ commentId: string;
1491
+ };
1492
+ query?: never;
1493
+ url: '/comments/{hostType}/{hostId}/{commentId}';
1494
+ };
1495
+
1496
+ export type GetCommentErrors = {
1497
+ /**
1498
+ * Bad request - Invalid parameters or malformed JSON
1499
+ */
1500
+ 400: {
1501
+ message: string;
1502
+ issues?: string;
1503
+ };
1504
+ /**
1505
+ * Unauthorized
1506
+ */
1507
+ 401: ErrorResponse;
1508
+ /**
1509
+ * Forbidden
1510
+ */
1511
+ 403: ErrorResponse;
1512
+ /**
1513
+ * Not Found
1514
+ */
1515
+ 404: ErrorResponse;
1516
+ /**
1517
+ * Conflict
1518
+ */
1519
+ 409: ErrorResponse;
1520
+ /**
1521
+ * Internal server error
1522
+ */
1523
+ 500: ErrorResponse;
1524
+ /**
1525
+ * Service Unavailable
1526
+ */
1527
+ 503: ErrorResponse;
1528
+ };
1529
+
1530
+ export type GetCommentError = GetCommentErrors[keyof GetCommentErrors];
1531
+
1532
+ export type GetCommentResponses = {
1533
+ /**
1534
+ * Returns comment by id for the host entity
1535
+ */
1536
+ 200: {
1537
+ comment: {
1538
+ commentId: string;
1539
+ author: {
1540
+ dazlUserId: string;
1541
+ };
1542
+ content: string;
1543
+ mentions: Array<UserMention>;
1544
+ createdAt: string;
1545
+ updatedAt: string;
1546
+ lastActivityAt: string;
1547
+ isEdited: boolean;
1548
+ replies: Array<{
1549
+ replyId: string;
1550
+ author: {
1551
+ dazlUserId: string;
1552
+ };
1553
+ content: string;
1554
+ mentions: Array<UserMention>;
1555
+ createdAt: string;
1556
+ updatedAt: string;
1557
+ gitInfo?: CommentGitInfo;
1558
+ }>;
1559
+ resolved?: CommentResolved;
1560
+ context?: CommentContext;
1561
+ gitInfo?: CommentGitInfo;
1562
+ };
1563
+ };
1564
+ };
1565
+
1566
+ export type GetCommentResponse = GetCommentResponses[keyof GetCommentResponses];
1567
+
1568
+ export type EditCommentData = {
1569
+ body: EditCommentInput;
1570
+ path: {
1571
+ hostType: 'project' | 'workspace';
1572
+ hostId: string;
1573
+ commentId: string;
1574
+ };
1575
+ query?: never;
1576
+ url: '/comments/{hostType}/{hostId}/{commentId}';
1577
+ };
1578
+
1579
+ export type EditCommentErrors = {
1580
+ /**
1581
+ * Bad request - Invalid parameters or malformed JSON
1582
+ */
1583
+ 400: {
1584
+ message: string;
1585
+ issues?: string;
1586
+ };
1587
+ /**
1588
+ * Unauthorized
1589
+ */
1590
+ 401: ErrorResponse;
1591
+ /**
1592
+ * Forbidden
1593
+ */
1594
+ 403: ErrorResponse;
1595
+ /**
1596
+ * Not Found
1597
+ */
1598
+ 404: ErrorResponse;
1599
+ /**
1600
+ * Conflict
1601
+ */
1602
+ 409: ErrorResponse;
1603
+ /**
1604
+ * Internal server error
1605
+ */
1606
+ 500: ErrorResponse;
1607
+ /**
1608
+ * Service Unavailable
1609
+ */
1610
+ 503: ErrorResponse;
1611
+ };
1612
+
1613
+ export type EditCommentError = EditCommentErrors[keyof EditCommentErrors];
1614
+
1615
+ export type EditCommentResponses = {
1616
+ /**
1617
+ * Returns the updated comment
1618
+ */
1619
+ 200: {
1620
+ comment: {
1621
+ commentId: string;
1622
+ author: {
1623
+ dazlUserId: string;
1624
+ };
1625
+ content: string;
1626
+ mentions: Array<UserMention>;
1627
+ createdAt: string;
1628
+ updatedAt: string;
1629
+ lastActivityAt: string;
1630
+ isEdited: boolean;
1631
+ replies: Array<{
1632
+ replyId: string;
1633
+ author: {
1634
+ dazlUserId: string;
1635
+ };
1636
+ content: string;
1637
+ mentions: Array<UserMention>;
1638
+ createdAt: string;
1639
+ updatedAt: string;
1640
+ gitInfo?: CommentGitInfo;
1641
+ }>;
1642
+ resolved?: CommentResolved;
1643
+ context?: CommentContext;
1644
+ gitInfo?: CommentGitInfo;
1645
+ };
1646
+ };
1647
+ };
1648
+
1649
+ export type EditCommentResponse = EditCommentResponses[keyof EditCommentResponses];
1650
+
1651
+ export type ListCommentsData = {
1652
+ body?: never;
1653
+ path: {
1654
+ hostType: 'project' | 'workspace';
1655
+ hostId: string;
1656
+ };
1657
+ query?: never;
1658
+ url: '/comments/{hostType}/{hostId}';
1659
+ };
1660
+
1661
+ export type ListCommentsErrors = {
1662
+ /**
1663
+ * Bad request - Invalid parameters or malformed JSON
1664
+ */
1665
+ 400: {
1666
+ message: string;
1667
+ issues?: string;
1668
+ };
1669
+ /**
1670
+ * Unauthorized
1671
+ */
1672
+ 401: ErrorResponse;
1673
+ /**
1674
+ * Forbidden
1675
+ */
1676
+ 403: ErrorResponse;
1677
+ /**
1678
+ * Not Found
1679
+ */
1680
+ 404: ErrorResponse;
1681
+ /**
1682
+ * Conflict
1683
+ */
1684
+ 409: ErrorResponse;
1685
+ /**
1686
+ * Internal server error
1687
+ */
1688
+ 500: ErrorResponse;
1689
+ /**
1690
+ * Service Unavailable
1691
+ */
1692
+ 503: ErrorResponse;
1693
+ };
1694
+
1695
+ export type ListCommentsError = ListCommentsErrors[keyof ListCommentsErrors];
1696
+
1697
+ export type ListCommentsResponses = {
1698
+ /**
1699
+ * Returns the list of comments for the host entity
1700
+ */
1701
+ 200: {
1702
+ comments: Array<{
1703
+ commentId: string;
1704
+ author: {
1705
+ dazlUserId: string;
1706
+ };
1707
+ content: string;
1708
+ mentions: Array<UserMention>;
1709
+ createdAt: string;
1710
+ updatedAt: string;
1711
+ lastActivityAt: string;
1712
+ isEdited: boolean;
1713
+ replies: Array<{
1714
+ replyId: string;
1715
+ author: {
1716
+ dazlUserId: string;
1717
+ };
1718
+ content: string;
1719
+ mentions: Array<UserMention>;
1720
+ createdAt: string;
1721
+ updatedAt: string;
1722
+ gitInfo?: CommentGitInfo;
1723
+ }>;
1724
+ resolved?: CommentResolved;
1725
+ context?: CommentContext;
1726
+ gitInfo?: CommentGitInfo;
1727
+ }>;
1728
+ };
1729
+ };
1730
+
1731
+ export type ListCommentsResponse = ListCommentsResponses[keyof ListCommentsResponses];
1732
+
1733
+ export type CreateCommentData = {
1734
+ body: CreateCommentInput;
1735
+ path: {
1736
+ hostType: 'project' | 'workspace';
1737
+ hostId: string;
1738
+ };
1739
+ query?: never;
1740
+ url: '/comments/{hostType}/{hostId}';
1741
+ };
1742
+
1743
+ export type CreateCommentErrors = {
1744
+ /**
1745
+ * Bad request - Invalid parameters or malformed JSON
1746
+ */
1747
+ 400: {
1748
+ message: string;
1749
+ issues?: string;
1750
+ };
1751
+ /**
1752
+ * Unauthorized
1753
+ */
1754
+ 401: ErrorResponse;
1755
+ /**
1756
+ * Forbidden
1757
+ */
1758
+ 403: ErrorResponse;
1759
+ /**
1760
+ * Not Found
1761
+ */
1762
+ 404: ErrorResponse;
1763
+ /**
1764
+ * Conflict
1765
+ */
1766
+ 409: ErrorResponse;
1767
+ /**
1768
+ * Internal server error
1769
+ */
1770
+ 500: ErrorResponse;
1771
+ /**
1772
+ * Service Unavailable
1773
+ */
1774
+ 503: ErrorResponse;
1775
+ };
1776
+
1777
+ export type CreateCommentError = CreateCommentErrors[keyof CreateCommentErrors];
1778
+
1779
+ export type CreateCommentResponses = {
1780
+ /**
1781
+ * Returns the created comment
1782
+ */
1783
+ 200: {
1784
+ comment: {
1785
+ commentId: string;
1786
+ author: {
1787
+ dazlUserId: string;
1788
+ };
1789
+ content: string;
1790
+ mentions: Array<UserMention>;
1791
+ createdAt: string;
1792
+ updatedAt: string;
1793
+ lastActivityAt: string;
1794
+ isEdited: boolean;
1795
+ replies: Array<{
1796
+ replyId: string;
1797
+ author: {
1798
+ dazlUserId: string;
1799
+ };
1800
+ content: string;
1801
+ mentions: Array<UserMention>;
1802
+ createdAt: string;
1803
+ updatedAt: string;
1804
+ gitInfo?: CommentGitInfo;
1805
+ }>;
1806
+ resolved?: CommentResolved;
1807
+ context?: CommentContext;
1808
+ gitInfo?: CommentGitInfo;
1809
+ };
1810
+ };
1811
+ };
1812
+
1813
+ export type CreateCommentResponse = CreateCommentResponses[keyof CreateCommentResponses];
1814
+
1815
+ export type ResolveCommentData = {
1816
+ body?: never;
1817
+ path: {
1818
+ hostType: 'project' | 'workspace';
1819
+ hostId: string;
1820
+ commentId: string;
1821
+ };
1822
+ query?: never;
1823
+ url: '/comments/{hostType}/{hostId}/{commentId}/resolve';
1824
+ };
1825
+
1826
+ export type ResolveCommentErrors = {
1827
+ /**
1828
+ * Bad request - Invalid parameters or malformed JSON
1829
+ */
1830
+ 400: {
1831
+ message: string;
1832
+ issues?: string;
1833
+ };
1834
+ /**
1835
+ * Unauthorized
1836
+ */
1837
+ 401: ErrorResponse;
1838
+ /**
1839
+ * Forbidden
1840
+ */
1841
+ 403: ErrorResponse;
1842
+ /**
1843
+ * Not Found
1844
+ */
1845
+ 404: ErrorResponse;
1846
+ /**
1847
+ * Conflict
1848
+ */
1849
+ 409: ErrorResponse;
1850
+ /**
1851
+ * Internal server error
1852
+ */
1853
+ 500: ErrorResponse;
1854
+ /**
1855
+ * Service Unavailable
1856
+ */
1857
+ 503: ErrorResponse;
1858
+ };
1859
+
1860
+ export type ResolveCommentError = ResolveCommentErrors[keyof ResolveCommentErrors];
1861
+
1862
+ export type ResolveCommentResponses = {
1863
+ /**
1864
+ * Returns the resolved comment
1865
+ */
1866
+ 200: {
1867
+ comment: {
1868
+ commentId: string;
1869
+ author: {
1870
+ dazlUserId: string;
1871
+ };
1872
+ content: string;
1873
+ mentions: Array<UserMention>;
1874
+ createdAt: string;
1875
+ updatedAt: string;
1876
+ lastActivityAt: string;
1877
+ isEdited: boolean;
1878
+ replies: Array<{
1879
+ replyId: string;
1880
+ author: {
1881
+ dazlUserId: string;
1882
+ };
1883
+ content: string;
1884
+ mentions: Array<UserMention>;
1885
+ createdAt: string;
1886
+ updatedAt: string;
1887
+ gitInfo?: CommentGitInfo;
1888
+ }>;
1889
+ resolved?: CommentResolved;
1890
+ context?: CommentContext;
1891
+ gitInfo?: CommentGitInfo;
1892
+ };
1893
+ };
1894
+ };
1895
+
1896
+ export type ResolveCommentResponse = ResolveCommentResponses[keyof ResolveCommentResponses];
1897
+
1898
+ export type ReopenCommentData = {
1899
+ body?: never;
1900
+ path: {
1901
+ hostType: 'project' | 'workspace';
1902
+ hostId: string;
1903
+ commentId: string;
1904
+ };
1905
+ query?: never;
1906
+ url: '/comments/{hostType}/{hostId}/{commentId}/reopen';
1907
+ };
1908
+
1909
+ export type ReopenCommentErrors = {
1910
+ /**
1911
+ * Bad request - Invalid parameters or malformed JSON
1912
+ */
1913
+ 400: {
1914
+ message: string;
1915
+ issues?: string;
1916
+ };
1917
+ /**
1918
+ * Unauthorized
1919
+ */
1920
+ 401: ErrorResponse;
1921
+ /**
1922
+ * Forbidden
1923
+ */
1924
+ 403: ErrorResponse;
1925
+ /**
1926
+ * Not Found
1927
+ */
1928
+ 404: ErrorResponse;
1929
+ /**
1930
+ * Conflict
1931
+ */
1932
+ 409: ErrorResponse;
1933
+ /**
1934
+ * Internal server error
1935
+ */
1936
+ 500: ErrorResponse;
1937
+ /**
1938
+ * Service Unavailable
1939
+ */
1940
+ 503: ErrorResponse;
1941
+ };
1942
+
1943
+ export type ReopenCommentError = ReopenCommentErrors[keyof ReopenCommentErrors];
1944
+
1945
+ export type ReopenCommentResponses = {
1946
+ /**
1947
+ * Returns the reopened comment
1948
+ */
1949
+ 200: {
1950
+ comment: {
1951
+ commentId: string;
1952
+ author: {
1953
+ dazlUserId: string;
1954
+ };
1955
+ content: string;
1956
+ mentions: Array<UserMention>;
1957
+ createdAt: string;
1958
+ updatedAt: string;
1959
+ lastActivityAt: string;
1960
+ isEdited: boolean;
1961
+ replies: Array<{
1962
+ replyId: string;
1963
+ author: {
1964
+ dazlUserId: string;
1965
+ };
1966
+ content: string;
1967
+ mentions: Array<UserMention>;
1968
+ createdAt: string;
1969
+ updatedAt: string;
1970
+ gitInfo?: CommentGitInfo;
1971
+ }>;
1972
+ resolved?: CommentResolved;
1973
+ context?: CommentContext;
1974
+ gitInfo?: CommentGitInfo;
1975
+ };
1976
+ };
1977
+ };
1978
+
1979
+ export type ReopenCommentResponse = ReopenCommentResponses[keyof ReopenCommentResponses];
1980
+
1981
+ export type CreateReplyData = {
1982
+ body: CreateReplyInput;
1983
+ path: {
1984
+ hostType: 'project' | 'workspace';
1985
+ hostId: string;
1986
+ commentId: string;
1987
+ };
1988
+ query?: never;
1989
+ url: '/comments/{hostType}/{hostId}/{commentId}/replies';
1990
+ };
1991
+
1992
+ export type CreateReplyErrors = {
1993
+ /**
1994
+ * Bad request - Invalid parameters or malformed JSON
1995
+ */
1996
+ 400: {
1997
+ message: string;
1998
+ issues?: string;
1999
+ };
2000
+ /**
2001
+ * Unauthorized
2002
+ */
2003
+ 401: ErrorResponse;
2004
+ /**
2005
+ * Forbidden
2006
+ */
2007
+ 403: ErrorResponse;
2008
+ /**
2009
+ * Not Found
2010
+ */
2011
+ 404: ErrorResponse;
2012
+ /**
2013
+ * Conflict
2014
+ */
2015
+ 409: ErrorResponse;
2016
+ /**
2017
+ * Internal server error
2018
+ */
2019
+ 500: ErrorResponse;
2020
+ /**
2021
+ * Service Unavailable
2022
+ */
2023
+ 503: ErrorResponse;
2024
+ };
2025
+
2026
+ export type CreateReplyError = CreateReplyErrors[keyof CreateReplyErrors];
2027
+
2028
+ export type CreateReplyResponses = {
2029
+ /**
2030
+ * Returns the created reply
2031
+ */
2032
+ 200: {
2033
+ reply: {
2034
+ replyId: string;
2035
+ author: {
2036
+ dazlUserId: string;
2037
+ };
2038
+ content: string;
2039
+ mentions: Array<UserMention>;
2040
+ createdAt: string;
2041
+ updatedAt: string;
2042
+ gitInfo?: CommentGitInfo;
2043
+ };
2044
+ };
2045
+ };
2046
+
2047
+ export type CreateReplyResponse = CreateReplyResponses[keyof CreateReplyResponses];
2048
+
2049
+ export type DeleteReplyData = {
2050
+ body?: never;
2051
+ path: {
2052
+ hostType: 'project' | 'workspace';
2053
+ hostId: string;
2054
+ commentId: string;
2055
+ replyId: string;
2056
+ };
2057
+ query?: never;
2058
+ url: '/comments/{hostType}/{hostId}/{commentId}/replies/{replyId}';
2059
+ };
2060
+
2061
+ export type DeleteReplyErrors = {
2062
+ /**
2063
+ * Bad request - Invalid parameters or malformed JSON
2064
+ */
2065
+ 400: {
2066
+ message: string;
2067
+ issues?: string;
2068
+ };
2069
+ /**
2070
+ * Unauthorized
2071
+ */
2072
+ 401: ErrorResponse;
2073
+ /**
2074
+ * Forbidden
2075
+ */
2076
+ 403: ErrorResponse;
2077
+ /**
2078
+ * Not Found
2079
+ */
2080
+ 404: ErrorResponse;
2081
+ /**
2082
+ * Conflict
2083
+ */
2084
+ 409: ErrorResponse;
2085
+ /**
2086
+ * Internal server error
2087
+ */
2088
+ 500: ErrorResponse;
2089
+ /**
2090
+ * Service Unavailable
2091
+ */
2092
+ 503: ErrorResponse;
2093
+ };
2094
+
2095
+ export type DeleteReplyError = DeleteReplyErrors[keyof DeleteReplyErrors];
2096
+
2097
+ export type DeleteReplyResponses = {
2098
+ /**
2099
+ * Acknowledges that the reply was deleted
2100
+ */
2101
+ 200: {
2102
+ success: true;
2103
+ };
2104
+ };
2105
+
2106
+ export type DeleteReplyResponse = DeleteReplyResponses[keyof DeleteReplyResponses];
2107
+
2108
+ export type EditReplyData = {
2109
+ body: EditReplyInput;
2110
+ path: {
2111
+ hostType: 'project' | 'workspace';
2112
+ hostId: string;
2113
+ commentId: string;
2114
+ replyId: string;
2115
+ };
2116
+ query?: never;
2117
+ url: '/comments/{hostType}/{hostId}/{commentId}/replies/{replyId}';
2118
+ };
2119
+
2120
+ export type EditReplyErrors = {
2121
+ /**
2122
+ * Bad request - Invalid parameters or malformed JSON
2123
+ */
2124
+ 400: {
2125
+ message: string;
2126
+ issues?: string;
2127
+ };
2128
+ /**
2129
+ * Unauthorized
2130
+ */
2131
+ 401: ErrorResponse;
2132
+ /**
2133
+ * Forbidden
2134
+ */
2135
+ 403: ErrorResponse;
2136
+ /**
2137
+ * Not Found
2138
+ */
2139
+ 404: ErrorResponse;
2140
+ /**
2141
+ * Conflict
2142
+ */
2143
+ 409: ErrorResponse;
2144
+ /**
2145
+ * Internal server error
2146
+ */
2147
+ 500: ErrorResponse;
2148
+ /**
2149
+ * Service Unavailable
2150
+ */
2151
+ 503: ErrorResponse;
2152
+ };
2153
+
2154
+ export type EditReplyError = EditReplyErrors[keyof EditReplyErrors];
2155
+
2156
+ export type EditReplyResponses = {
2157
+ /**
2158
+ * Returns the updated reply
2159
+ */
2160
+ 200: {
2161
+ reply: {
2162
+ replyId: string;
2163
+ author: {
2164
+ dazlUserId: string;
2165
+ };
2166
+ content: string;
2167
+ mentions: Array<UserMention>;
2168
+ createdAt: string;
2169
+ updatedAt: string;
2170
+ gitInfo?: CommentGitInfo;
2171
+ };
2172
+ };
2173
+ };
2174
+
2175
+ export type EditReplyResponse = EditReplyResponses[keyof EditReplyResponses];
2176
+
1108
2177
  export type GetPingData = {
1109
2178
  body?: never;
1110
2179
  path?: never;