@dazl/api-client 1.0.15 → 1.0.16

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.
@@ -49,6 +49,84 @@ export type ConnectionStatus = {
49
49
  integrationName: IntegrationName;
50
50
  isConnected: boolean;
51
51
  };
52
+ export type UserMention = {
53
+ dazlUserId: string;
54
+ };
55
+ export type CommentGitInfo = {
56
+ repoFullName?: string;
57
+ branch?: string;
58
+ /**
59
+ * Git commit SHA
60
+ */
61
+ commit?: string | string;
62
+ };
63
+ export type CommentResolved = {
64
+ dazlUserId: string;
65
+ resolvedAt: string;
66
+ };
67
+ export type CommentContext = ({
68
+ type: 'page';
69
+ } & PageCommentContext) | ({
70
+ type: 'stage';
71
+ } & StageCommentContext) | ({
72
+ type: 'plan';
73
+ } & PlanCommentContext) | ({
74
+ type: 'file';
75
+ } & FileCommentContext);
76
+ export type PageCommentContext = {
77
+ type: 'page';
78
+ pagePath: string;
79
+ };
80
+ export type StageCommentContext = {
81
+ type: 'stage';
82
+ pagePath: string;
83
+ anchor: {
84
+ targetSelectors?: Array<{
85
+ tagName?: string;
86
+ classes?: Array<string>;
87
+ attributes?: {
88
+ [key: string]: string;
89
+ };
90
+ nthChild?: number;
91
+ }>;
92
+ ancestors?: Array<{
93
+ tagName?: string;
94
+ classes?: Array<string>;
95
+ attributes?: {
96
+ [key: string]: string;
97
+ };
98
+ nthChild?: number;
99
+ }>;
100
+ text?: string;
101
+ };
102
+ };
103
+ export type PlanCommentContext = {
104
+ type: 'plan';
105
+ };
106
+ export type FileCommentContext = {
107
+ type: 'file';
108
+ filePath: string;
109
+ anchor?: string;
110
+ };
111
+ export type CreateCommentInput = {
112
+ content: string;
113
+ mentions?: Array<UserMention>;
114
+ context?: CommentContext;
115
+ gitInfo?: CommentGitInfo;
116
+ };
117
+ export type EditCommentInput = {
118
+ content: string;
119
+ mentions?: Array<UserMention>;
120
+ };
121
+ export type CreateReplyInput = {
122
+ content: string;
123
+ mentions?: Array<UserMention>;
124
+ gitInfo?: CommentGitInfo;
125
+ };
126
+ export type EditReplyInput = {
127
+ content: string;
128
+ mentions?: Array<UserMention>;
129
+ };
52
130
  export type EnsureMyUserData = {
53
131
  body?: {
54
132
  name?: string;
@@ -354,7 +432,7 @@ export type GetAllWorkspacesErrors = {
354
432
  export type GetAllWorkspacesError = GetAllWorkspacesErrors[keyof GetAllWorkspacesErrors];
355
433
  export type GetAllWorkspacesResponses = {
356
434
  /**
357
- * Returns the list of workspaces for the current user
435
+ * Returns the list of workspaces that the user is a member of
358
436
  */
359
437
  200: {
360
438
  workspaces: Array<{
@@ -390,6 +468,60 @@ export type GetAllWorkspacesResponses = {
390
468
  };
391
469
  };
392
470
  export type GetAllWorkspacesResponse = GetAllWorkspacesResponses[keyof GetAllWorkspacesResponses];
471
+ export type InviteWorkspaceMemberData = {
472
+ body: {
473
+ email: string;
474
+ role: 'workspace_member';
475
+ };
476
+ path: {
477
+ workspaceId: string;
478
+ };
479
+ query?: never;
480
+ url: '/workspace/{workspaceId}/members/invite';
481
+ };
482
+ export type InviteWorkspaceMemberErrors = {
483
+ /**
484
+ * Bad request - Invalid parameters or malformed JSON
485
+ */
486
+ 400: {
487
+ message: string;
488
+ issues?: string;
489
+ };
490
+ /**
491
+ * Unauthorized
492
+ */
493
+ 401: ErrorResponse;
494
+ /**
495
+ * Forbidden
496
+ */
497
+ 403: ErrorResponse;
498
+ /**
499
+ * Not Found
500
+ */
501
+ 404: ErrorResponse;
502
+ /**
503
+ * Conflict
504
+ */
505
+ 409: ErrorResponse;
506
+ /**
507
+ * Internal server error
508
+ */
509
+ 500: ErrorResponse;
510
+ /**
511
+ * Service Unavailable
512
+ */
513
+ 503: ErrorResponse;
514
+ };
515
+ export type InviteWorkspaceMemberError = InviteWorkspaceMemberErrors[keyof InviteWorkspaceMemberErrors];
516
+ export type InviteWorkspaceMemberResponses = {
517
+ /**
518
+ * Returns the invitation token, or null if user was auto-added to workspace
519
+ */
520
+ 200: {
521
+ token: string | null;
522
+ };
523
+ };
524
+ export type InviteWorkspaceMemberResponse = InviteWorkspaceMemberResponses[keyof InviteWorkspaceMemberResponses];
393
525
  export type GetWorkspaceMembersData = {
394
526
  body?: never;
395
527
  path: {
@@ -460,6 +592,110 @@ export type GetWorkspaceMembersResponses = {
460
592
  };
461
593
  };
462
594
  export type GetWorkspaceMembersResponse = GetWorkspaceMembersResponses[keyof GetWorkspaceMembersResponses];
595
+ export type DeleteWorkspaceMemberData = {
596
+ body?: never;
597
+ path: {
598
+ workspaceId: string;
599
+ memberId: string;
600
+ };
601
+ query?: never;
602
+ url: '/workspace/{workspaceId}/members/{memberId}';
603
+ };
604
+ export type DeleteWorkspaceMemberErrors = {
605
+ /**
606
+ * Bad request - Invalid parameters or malformed JSON
607
+ */
608
+ 400: {
609
+ message: string;
610
+ issues?: string;
611
+ };
612
+ /**
613
+ * Unauthorized
614
+ */
615
+ 401: ErrorResponse;
616
+ /**
617
+ * Forbidden
618
+ */
619
+ 403: ErrorResponse;
620
+ /**
621
+ * Not Found
622
+ */
623
+ 404: ErrorResponse;
624
+ /**
625
+ * Conflict
626
+ */
627
+ 409: ErrorResponse;
628
+ /**
629
+ * Internal server error
630
+ */
631
+ 500: ErrorResponse;
632
+ /**
633
+ * Service Unavailable
634
+ */
635
+ 503: ErrorResponse;
636
+ };
637
+ export type DeleteWorkspaceMemberError = DeleteWorkspaceMemberErrors[keyof DeleteWorkspaceMemberErrors];
638
+ export type DeleteWorkspaceMemberResponses = {
639
+ /**
640
+ * Acknowledges that the workspace member was deleted
641
+ */
642
+ 200: {
643
+ status: 'deleted';
644
+ };
645
+ };
646
+ export type DeleteWorkspaceMemberResponse = DeleteWorkspaceMemberResponses[keyof DeleteWorkspaceMemberResponses];
647
+ export type DeleteWorkspaceInvitationData = {
648
+ body?: never;
649
+ path: {
650
+ workspaceId: string;
651
+ invitationId: string;
652
+ };
653
+ query?: never;
654
+ url: '/workspace/{workspaceId}/invitations/{invitationId}';
655
+ };
656
+ export type DeleteWorkspaceInvitationErrors = {
657
+ /**
658
+ * Bad request - Invalid parameters or malformed JSON
659
+ */
660
+ 400: {
661
+ message: string;
662
+ issues?: string;
663
+ };
664
+ /**
665
+ * Unauthorized
666
+ */
667
+ 401: ErrorResponse;
668
+ /**
669
+ * Forbidden
670
+ */
671
+ 403: ErrorResponse;
672
+ /**
673
+ * Not Found
674
+ */
675
+ 404: ErrorResponse;
676
+ /**
677
+ * Conflict
678
+ */
679
+ 409: ErrorResponse;
680
+ /**
681
+ * Internal server error
682
+ */
683
+ 500: ErrorResponse;
684
+ /**
685
+ * Service Unavailable
686
+ */
687
+ 503: ErrorResponse;
688
+ };
689
+ export type DeleteWorkspaceInvitationError = DeleteWorkspaceInvitationErrors[keyof DeleteWorkspaceInvitationErrors];
690
+ export type DeleteWorkspaceInvitationResponses = {
691
+ /**
692
+ * Acknowledges that the workspace invitation was deleted
693
+ */
694
+ 200: {
695
+ status: 'deleted';
696
+ };
697
+ };
698
+ export type DeleteWorkspaceInvitationResponse = DeleteWorkspaceInvitationResponses[keyof DeleteWorkspaceInvitationResponses];
463
699
  export type GetMyValuesData = {
464
700
  body?: never;
465
701
  path?: never;
@@ -1009,6 +1245,706 @@ export type GetConnectionStatusResponses = {
1009
1245
  200: Array<ConnectionStatus>;
1010
1246
  };
1011
1247
  export type GetConnectionStatusResponse = GetConnectionStatusResponses[keyof GetConnectionStatusResponses];
1248
+ export type DeleteCommentData = {
1249
+ body?: never;
1250
+ path: {
1251
+ hostType: 'project' | 'workspace';
1252
+ hostId: string;
1253
+ commentId: string;
1254
+ };
1255
+ query?: never;
1256
+ url: '/comments/{hostType}/{hostId}/{commentId}';
1257
+ };
1258
+ export type DeleteCommentErrors = {
1259
+ /**
1260
+ * Bad request - Invalid parameters or malformed JSON
1261
+ */
1262
+ 400: {
1263
+ message: string;
1264
+ issues?: string;
1265
+ };
1266
+ /**
1267
+ * Unauthorized
1268
+ */
1269
+ 401: ErrorResponse;
1270
+ /**
1271
+ * Forbidden
1272
+ */
1273
+ 403: ErrorResponse;
1274
+ /**
1275
+ * Not Found
1276
+ */
1277
+ 404: ErrorResponse;
1278
+ /**
1279
+ * Conflict
1280
+ */
1281
+ 409: ErrorResponse;
1282
+ /**
1283
+ * Internal server error
1284
+ */
1285
+ 500: ErrorResponse;
1286
+ /**
1287
+ * Service Unavailable
1288
+ */
1289
+ 503: ErrorResponse;
1290
+ };
1291
+ export type DeleteCommentError = DeleteCommentErrors[keyof DeleteCommentErrors];
1292
+ export type DeleteCommentResponses = {
1293
+ /**
1294
+ * Acknowledges that the comment was deleted
1295
+ */
1296
+ 200: {
1297
+ success: true;
1298
+ };
1299
+ };
1300
+ export type DeleteCommentResponse = DeleteCommentResponses[keyof DeleteCommentResponses];
1301
+ export type GetCommentData = {
1302
+ body?: never;
1303
+ path: {
1304
+ hostType: 'project' | 'workspace';
1305
+ hostId: string;
1306
+ commentId: string;
1307
+ };
1308
+ query?: never;
1309
+ url: '/comments/{hostType}/{hostId}/{commentId}';
1310
+ };
1311
+ export type GetCommentErrors = {
1312
+ /**
1313
+ * Bad request - Invalid parameters or malformed JSON
1314
+ */
1315
+ 400: {
1316
+ message: string;
1317
+ issues?: string;
1318
+ };
1319
+ /**
1320
+ * Unauthorized
1321
+ */
1322
+ 401: ErrorResponse;
1323
+ /**
1324
+ * Forbidden
1325
+ */
1326
+ 403: ErrorResponse;
1327
+ /**
1328
+ * Not Found
1329
+ */
1330
+ 404: ErrorResponse;
1331
+ /**
1332
+ * Conflict
1333
+ */
1334
+ 409: ErrorResponse;
1335
+ /**
1336
+ * Internal server error
1337
+ */
1338
+ 500: ErrorResponse;
1339
+ /**
1340
+ * Service Unavailable
1341
+ */
1342
+ 503: ErrorResponse;
1343
+ };
1344
+ export type GetCommentError = GetCommentErrors[keyof GetCommentErrors];
1345
+ export type GetCommentResponses = {
1346
+ /**
1347
+ * Returns comment by id for the host entity
1348
+ */
1349
+ 200: {
1350
+ comment: {
1351
+ commentId: string;
1352
+ author: {
1353
+ dazlUserId: string;
1354
+ };
1355
+ content: string;
1356
+ mentions: Array<UserMention>;
1357
+ createdAt: string;
1358
+ updatedAt: string;
1359
+ lastActivityAt: string;
1360
+ isEdited: boolean;
1361
+ replies: Array<{
1362
+ replyId: string;
1363
+ author: {
1364
+ dazlUserId: string;
1365
+ };
1366
+ content: string;
1367
+ mentions: Array<UserMention>;
1368
+ createdAt: string;
1369
+ updatedAt: string;
1370
+ gitInfo?: CommentGitInfo;
1371
+ }>;
1372
+ resolved?: CommentResolved;
1373
+ context?: CommentContext;
1374
+ gitInfo?: CommentGitInfo;
1375
+ };
1376
+ };
1377
+ };
1378
+ export type GetCommentResponse = GetCommentResponses[keyof GetCommentResponses];
1379
+ export type EditCommentData = {
1380
+ body: EditCommentInput;
1381
+ path: {
1382
+ hostType: 'project' | 'workspace';
1383
+ hostId: string;
1384
+ commentId: string;
1385
+ };
1386
+ query?: never;
1387
+ url: '/comments/{hostType}/{hostId}/{commentId}';
1388
+ };
1389
+ export type EditCommentErrors = {
1390
+ /**
1391
+ * Bad request - Invalid parameters or malformed JSON
1392
+ */
1393
+ 400: {
1394
+ message: string;
1395
+ issues?: string;
1396
+ };
1397
+ /**
1398
+ * Unauthorized
1399
+ */
1400
+ 401: ErrorResponse;
1401
+ /**
1402
+ * Forbidden
1403
+ */
1404
+ 403: ErrorResponse;
1405
+ /**
1406
+ * Not Found
1407
+ */
1408
+ 404: ErrorResponse;
1409
+ /**
1410
+ * Conflict
1411
+ */
1412
+ 409: ErrorResponse;
1413
+ /**
1414
+ * Internal server error
1415
+ */
1416
+ 500: ErrorResponse;
1417
+ /**
1418
+ * Service Unavailable
1419
+ */
1420
+ 503: ErrorResponse;
1421
+ };
1422
+ export type EditCommentError = EditCommentErrors[keyof EditCommentErrors];
1423
+ export type EditCommentResponses = {
1424
+ /**
1425
+ * Returns the updated comment
1426
+ */
1427
+ 200: {
1428
+ comment: {
1429
+ commentId: string;
1430
+ author: {
1431
+ dazlUserId: string;
1432
+ };
1433
+ content: string;
1434
+ mentions: Array<UserMention>;
1435
+ createdAt: string;
1436
+ updatedAt: string;
1437
+ lastActivityAt: string;
1438
+ isEdited: boolean;
1439
+ replies: Array<{
1440
+ replyId: string;
1441
+ author: {
1442
+ dazlUserId: string;
1443
+ };
1444
+ content: string;
1445
+ mentions: Array<UserMention>;
1446
+ createdAt: string;
1447
+ updatedAt: string;
1448
+ gitInfo?: CommentGitInfo;
1449
+ }>;
1450
+ resolved?: CommentResolved;
1451
+ context?: CommentContext;
1452
+ gitInfo?: CommentGitInfo;
1453
+ };
1454
+ };
1455
+ };
1456
+ export type EditCommentResponse = EditCommentResponses[keyof EditCommentResponses];
1457
+ export type ListCommentsData = {
1458
+ body?: never;
1459
+ path: {
1460
+ hostType: 'project' | 'workspace';
1461
+ hostId: string;
1462
+ };
1463
+ query?: never;
1464
+ url: '/comments/{hostType}/{hostId}';
1465
+ };
1466
+ export type ListCommentsErrors = {
1467
+ /**
1468
+ * Bad request - Invalid parameters or malformed JSON
1469
+ */
1470
+ 400: {
1471
+ message: string;
1472
+ issues?: string;
1473
+ };
1474
+ /**
1475
+ * Unauthorized
1476
+ */
1477
+ 401: ErrorResponse;
1478
+ /**
1479
+ * Forbidden
1480
+ */
1481
+ 403: ErrorResponse;
1482
+ /**
1483
+ * Not Found
1484
+ */
1485
+ 404: ErrorResponse;
1486
+ /**
1487
+ * Conflict
1488
+ */
1489
+ 409: ErrorResponse;
1490
+ /**
1491
+ * Internal server error
1492
+ */
1493
+ 500: ErrorResponse;
1494
+ /**
1495
+ * Service Unavailable
1496
+ */
1497
+ 503: ErrorResponse;
1498
+ };
1499
+ export type ListCommentsError = ListCommentsErrors[keyof ListCommentsErrors];
1500
+ export type ListCommentsResponses = {
1501
+ /**
1502
+ * Returns the list of comments for the host entity
1503
+ */
1504
+ 200: {
1505
+ comments: Array<{
1506
+ commentId: string;
1507
+ author: {
1508
+ dazlUserId: string;
1509
+ };
1510
+ content: string;
1511
+ mentions: Array<UserMention>;
1512
+ createdAt: string;
1513
+ updatedAt: string;
1514
+ lastActivityAt: string;
1515
+ isEdited: boolean;
1516
+ replies: Array<{
1517
+ replyId: string;
1518
+ author: {
1519
+ dazlUserId: string;
1520
+ };
1521
+ content: string;
1522
+ mentions: Array<UserMention>;
1523
+ createdAt: string;
1524
+ updatedAt: string;
1525
+ gitInfo?: CommentGitInfo;
1526
+ }>;
1527
+ resolved?: CommentResolved;
1528
+ context?: CommentContext;
1529
+ gitInfo?: CommentGitInfo;
1530
+ }>;
1531
+ };
1532
+ };
1533
+ export type ListCommentsResponse = ListCommentsResponses[keyof ListCommentsResponses];
1534
+ export type CreateCommentData = {
1535
+ body: CreateCommentInput;
1536
+ path: {
1537
+ hostType: 'project' | 'workspace';
1538
+ hostId: string;
1539
+ };
1540
+ query?: never;
1541
+ url: '/comments/{hostType}/{hostId}';
1542
+ };
1543
+ export type CreateCommentErrors = {
1544
+ /**
1545
+ * Bad request - Invalid parameters or malformed JSON
1546
+ */
1547
+ 400: {
1548
+ message: string;
1549
+ issues?: string;
1550
+ };
1551
+ /**
1552
+ * Unauthorized
1553
+ */
1554
+ 401: ErrorResponse;
1555
+ /**
1556
+ * Forbidden
1557
+ */
1558
+ 403: ErrorResponse;
1559
+ /**
1560
+ * Not Found
1561
+ */
1562
+ 404: ErrorResponse;
1563
+ /**
1564
+ * Conflict
1565
+ */
1566
+ 409: ErrorResponse;
1567
+ /**
1568
+ * Internal server error
1569
+ */
1570
+ 500: ErrorResponse;
1571
+ /**
1572
+ * Service Unavailable
1573
+ */
1574
+ 503: ErrorResponse;
1575
+ };
1576
+ export type CreateCommentError = CreateCommentErrors[keyof CreateCommentErrors];
1577
+ export type CreateCommentResponses = {
1578
+ /**
1579
+ * Returns the created comment
1580
+ */
1581
+ 200: {
1582
+ comment: {
1583
+ commentId: string;
1584
+ author: {
1585
+ dazlUserId: string;
1586
+ };
1587
+ content: string;
1588
+ mentions: Array<UserMention>;
1589
+ createdAt: string;
1590
+ updatedAt: string;
1591
+ lastActivityAt: string;
1592
+ isEdited: boolean;
1593
+ replies: Array<{
1594
+ replyId: string;
1595
+ author: {
1596
+ dazlUserId: string;
1597
+ };
1598
+ content: string;
1599
+ mentions: Array<UserMention>;
1600
+ createdAt: string;
1601
+ updatedAt: string;
1602
+ gitInfo?: CommentGitInfo;
1603
+ }>;
1604
+ resolved?: CommentResolved;
1605
+ context?: CommentContext;
1606
+ gitInfo?: CommentGitInfo;
1607
+ };
1608
+ };
1609
+ };
1610
+ export type CreateCommentResponse = CreateCommentResponses[keyof CreateCommentResponses];
1611
+ export type ResolveCommentData = {
1612
+ body?: never;
1613
+ path: {
1614
+ hostType: 'project' | 'workspace';
1615
+ hostId: string;
1616
+ commentId: string;
1617
+ };
1618
+ query?: never;
1619
+ url: '/comments/{hostType}/{hostId}/{commentId}/resolve';
1620
+ };
1621
+ export type ResolveCommentErrors = {
1622
+ /**
1623
+ * Bad request - Invalid parameters or malformed JSON
1624
+ */
1625
+ 400: {
1626
+ message: string;
1627
+ issues?: string;
1628
+ };
1629
+ /**
1630
+ * Unauthorized
1631
+ */
1632
+ 401: ErrorResponse;
1633
+ /**
1634
+ * Forbidden
1635
+ */
1636
+ 403: ErrorResponse;
1637
+ /**
1638
+ * Not Found
1639
+ */
1640
+ 404: ErrorResponse;
1641
+ /**
1642
+ * Conflict
1643
+ */
1644
+ 409: ErrorResponse;
1645
+ /**
1646
+ * Internal server error
1647
+ */
1648
+ 500: ErrorResponse;
1649
+ /**
1650
+ * Service Unavailable
1651
+ */
1652
+ 503: ErrorResponse;
1653
+ };
1654
+ export type ResolveCommentError = ResolveCommentErrors[keyof ResolveCommentErrors];
1655
+ export type ResolveCommentResponses = {
1656
+ /**
1657
+ * Returns the resolved comment
1658
+ */
1659
+ 200: {
1660
+ comment: {
1661
+ commentId: string;
1662
+ author: {
1663
+ dazlUserId: string;
1664
+ };
1665
+ content: string;
1666
+ mentions: Array<UserMention>;
1667
+ createdAt: string;
1668
+ updatedAt: string;
1669
+ lastActivityAt: string;
1670
+ isEdited: boolean;
1671
+ replies: Array<{
1672
+ replyId: string;
1673
+ author: {
1674
+ dazlUserId: string;
1675
+ };
1676
+ content: string;
1677
+ mentions: Array<UserMention>;
1678
+ createdAt: string;
1679
+ updatedAt: string;
1680
+ gitInfo?: CommentGitInfo;
1681
+ }>;
1682
+ resolved?: CommentResolved;
1683
+ context?: CommentContext;
1684
+ gitInfo?: CommentGitInfo;
1685
+ };
1686
+ };
1687
+ };
1688
+ export type ResolveCommentResponse = ResolveCommentResponses[keyof ResolveCommentResponses];
1689
+ export type ReopenCommentData = {
1690
+ body?: never;
1691
+ path: {
1692
+ hostType: 'project' | 'workspace';
1693
+ hostId: string;
1694
+ commentId: string;
1695
+ };
1696
+ query?: never;
1697
+ url: '/comments/{hostType}/{hostId}/{commentId}/reopen';
1698
+ };
1699
+ export type ReopenCommentErrors = {
1700
+ /**
1701
+ * Bad request - Invalid parameters or malformed JSON
1702
+ */
1703
+ 400: {
1704
+ message: string;
1705
+ issues?: string;
1706
+ };
1707
+ /**
1708
+ * Unauthorized
1709
+ */
1710
+ 401: ErrorResponse;
1711
+ /**
1712
+ * Forbidden
1713
+ */
1714
+ 403: ErrorResponse;
1715
+ /**
1716
+ * Not Found
1717
+ */
1718
+ 404: ErrorResponse;
1719
+ /**
1720
+ * Conflict
1721
+ */
1722
+ 409: ErrorResponse;
1723
+ /**
1724
+ * Internal server error
1725
+ */
1726
+ 500: ErrorResponse;
1727
+ /**
1728
+ * Service Unavailable
1729
+ */
1730
+ 503: ErrorResponse;
1731
+ };
1732
+ export type ReopenCommentError = ReopenCommentErrors[keyof ReopenCommentErrors];
1733
+ export type ReopenCommentResponses = {
1734
+ /**
1735
+ * Returns the reopened comment
1736
+ */
1737
+ 200: {
1738
+ comment: {
1739
+ commentId: string;
1740
+ author: {
1741
+ dazlUserId: string;
1742
+ };
1743
+ content: string;
1744
+ mentions: Array<UserMention>;
1745
+ createdAt: string;
1746
+ updatedAt: string;
1747
+ lastActivityAt: string;
1748
+ isEdited: boolean;
1749
+ replies: Array<{
1750
+ replyId: string;
1751
+ author: {
1752
+ dazlUserId: string;
1753
+ };
1754
+ content: string;
1755
+ mentions: Array<UserMention>;
1756
+ createdAt: string;
1757
+ updatedAt: string;
1758
+ gitInfo?: CommentGitInfo;
1759
+ }>;
1760
+ resolved?: CommentResolved;
1761
+ context?: CommentContext;
1762
+ gitInfo?: CommentGitInfo;
1763
+ };
1764
+ };
1765
+ };
1766
+ export type ReopenCommentResponse = ReopenCommentResponses[keyof ReopenCommentResponses];
1767
+ export type CreateReplyData = {
1768
+ body: CreateReplyInput;
1769
+ path: {
1770
+ hostType: 'project' | 'workspace';
1771
+ hostId: string;
1772
+ commentId: string;
1773
+ };
1774
+ query?: never;
1775
+ url: '/comments/{hostType}/{hostId}/{commentId}/replies';
1776
+ };
1777
+ export type CreateReplyErrors = {
1778
+ /**
1779
+ * Bad request - Invalid parameters or malformed JSON
1780
+ */
1781
+ 400: {
1782
+ message: string;
1783
+ issues?: string;
1784
+ };
1785
+ /**
1786
+ * Unauthorized
1787
+ */
1788
+ 401: ErrorResponse;
1789
+ /**
1790
+ * Forbidden
1791
+ */
1792
+ 403: ErrorResponse;
1793
+ /**
1794
+ * Not Found
1795
+ */
1796
+ 404: ErrorResponse;
1797
+ /**
1798
+ * Conflict
1799
+ */
1800
+ 409: ErrorResponse;
1801
+ /**
1802
+ * Internal server error
1803
+ */
1804
+ 500: ErrorResponse;
1805
+ /**
1806
+ * Service Unavailable
1807
+ */
1808
+ 503: ErrorResponse;
1809
+ };
1810
+ export type CreateReplyError = CreateReplyErrors[keyof CreateReplyErrors];
1811
+ export type CreateReplyResponses = {
1812
+ /**
1813
+ * Returns the created reply
1814
+ */
1815
+ 200: {
1816
+ reply: {
1817
+ replyId: string;
1818
+ author: {
1819
+ dazlUserId: string;
1820
+ };
1821
+ content: string;
1822
+ mentions: Array<UserMention>;
1823
+ createdAt: string;
1824
+ updatedAt: string;
1825
+ gitInfo?: CommentGitInfo;
1826
+ };
1827
+ };
1828
+ };
1829
+ export type CreateReplyResponse = CreateReplyResponses[keyof CreateReplyResponses];
1830
+ export type DeleteReplyData = {
1831
+ body?: never;
1832
+ path: {
1833
+ hostType: 'project' | 'workspace';
1834
+ hostId: string;
1835
+ commentId: string;
1836
+ replyId: string;
1837
+ };
1838
+ query?: never;
1839
+ url: '/comments/{hostType}/{hostId}/{commentId}/replies/{replyId}';
1840
+ };
1841
+ export type DeleteReplyErrors = {
1842
+ /**
1843
+ * Bad request - Invalid parameters or malformed JSON
1844
+ */
1845
+ 400: {
1846
+ message: string;
1847
+ issues?: string;
1848
+ };
1849
+ /**
1850
+ * Unauthorized
1851
+ */
1852
+ 401: ErrorResponse;
1853
+ /**
1854
+ * Forbidden
1855
+ */
1856
+ 403: ErrorResponse;
1857
+ /**
1858
+ * Not Found
1859
+ */
1860
+ 404: ErrorResponse;
1861
+ /**
1862
+ * Conflict
1863
+ */
1864
+ 409: ErrorResponse;
1865
+ /**
1866
+ * Internal server error
1867
+ */
1868
+ 500: ErrorResponse;
1869
+ /**
1870
+ * Service Unavailable
1871
+ */
1872
+ 503: ErrorResponse;
1873
+ };
1874
+ export type DeleteReplyError = DeleteReplyErrors[keyof DeleteReplyErrors];
1875
+ export type DeleteReplyResponses = {
1876
+ /**
1877
+ * Acknowledges that the reply was deleted
1878
+ */
1879
+ 200: {
1880
+ success: true;
1881
+ };
1882
+ };
1883
+ export type DeleteReplyResponse = DeleteReplyResponses[keyof DeleteReplyResponses];
1884
+ export type EditReplyData = {
1885
+ body: EditReplyInput;
1886
+ path: {
1887
+ hostType: 'project' | 'workspace';
1888
+ hostId: string;
1889
+ commentId: string;
1890
+ replyId: string;
1891
+ };
1892
+ query?: never;
1893
+ url: '/comments/{hostType}/{hostId}/{commentId}/replies/{replyId}';
1894
+ };
1895
+ export type EditReplyErrors = {
1896
+ /**
1897
+ * Bad request - Invalid parameters or malformed JSON
1898
+ */
1899
+ 400: {
1900
+ message: string;
1901
+ issues?: string;
1902
+ };
1903
+ /**
1904
+ * Unauthorized
1905
+ */
1906
+ 401: ErrorResponse;
1907
+ /**
1908
+ * Forbidden
1909
+ */
1910
+ 403: ErrorResponse;
1911
+ /**
1912
+ * Not Found
1913
+ */
1914
+ 404: ErrorResponse;
1915
+ /**
1916
+ * Conflict
1917
+ */
1918
+ 409: ErrorResponse;
1919
+ /**
1920
+ * Internal server error
1921
+ */
1922
+ 500: ErrorResponse;
1923
+ /**
1924
+ * Service Unavailable
1925
+ */
1926
+ 503: ErrorResponse;
1927
+ };
1928
+ export type EditReplyError = EditReplyErrors[keyof EditReplyErrors];
1929
+ export type EditReplyResponses = {
1930
+ /**
1931
+ * Returns the updated reply
1932
+ */
1933
+ 200: {
1934
+ reply: {
1935
+ replyId: string;
1936
+ author: {
1937
+ dazlUserId: string;
1938
+ };
1939
+ content: string;
1940
+ mentions: Array<UserMention>;
1941
+ createdAt: string;
1942
+ updatedAt: string;
1943
+ gitInfo?: CommentGitInfo;
1944
+ };
1945
+ };
1946
+ };
1947
+ export type EditReplyResponse = EditReplyResponses[keyof EditReplyResponses];
1012
1948
  export type GetPingData = {
1013
1949
  body?: never;
1014
1950
  path?: never;