@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.
- package/dist/internal/index.d.ts +1 -1
- package/dist/internal/index.d.ts.map +1 -1
- package/dist/internal/sdk.gen.d.ts +4 -2
- package/dist/internal/sdk.gen.d.ts.map +1 -1
- package/dist/internal/sdk.gen.js +16 -10
- package/dist/internal/sdk.gen.js.map +1 -1
- package/dist/internal/types.gen.d.ts +738 -632
- package/dist/internal/types.gen.d.ts.map +1 -1
- package/dist/public/index.d.ts +2 -2
- package/dist/public/index.d.ts.map +1 -1
- package/dist/public/index.js +1 -1
- package/dist/public/index.js.map +1 -1
- package/dist/public/sdk.gen.d.ts +16 -1
- package/dist/public/sdk.gen.d.ts.map +1 -1
- package/dist/public/sdk.gen.js +76 -0
- package/dist/public/sdk.gen.js.map +1 -1
- package/dist/public/types.gen.d.ts +937 -1
- package/dist/public/types.gen.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/internal/index.ts +1 -1
- package/src/internal/sdk.gen.ts +20 -12
- package/src/internal/types.gen.ts +755 -639
- package/src/public/index.ts +2 -2
- package/src/public/sdk.gen.ts +90 -1
- package/src/public/types.gen.ts +1014 -1
package/src/public/types.gen.ts
CHANGED
|
@@ -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;
|
|
@@ -393,7 +483,7 @@ export type GetAllWorkspacesError = GetAllWorkspacesErrors[keyof GetAllWorkspace
|
|
|
393
483
|
|
|
394
484
|
export type GetAllWorkspacesResponses = {
|
|
395
485
|
/**
|
|
396
|
-
* Returns the list of workspaces
|
|
486
|
+
* Returns the list of workspaces that the user is a member of
|
|
397
487
|
*/
|
|
398
488
|
200: {
|
|
399
489
|
workspaces: Array<{
|
|
@@ -431,6 +521,65 @@ export type GetAllWorkspacesResponses = {
|
|
|
431
521
|
|
|
432
522
|
export type GetAllWorkspacesResponse = GetAllWorkspacesResponses[keyof GetAllWorkspacesResponses];
|
|
433
523
|
|
|
524
|
+
export type InviteWorkspaceMemberData = {
|
|
525
|
+
body: {
|
|
526
|
+
email: string;
|
|
527
|
+
role: 'workspace_member';
|
|
528
|
+
};
|
|
529
|
+
path: {
|
|
530
|
+
workspaceId: string;
|
|
531
|
+
};
|
|
532
|
+
query?: never;
|
|
533
|
+
url: '/workspace/{workspaceId}/members/invite';
|
|
534
|
+
};
|
|
535
|
+
|
|
536
|
+
export type InviteWorkspaceMemberErrors = {
|
|
537
|
+
/**
|
|
538
|
+
* Bad request - Invalid parameters or malformed JSON
|
|
539
|
+
*/
|
|
540
|
+
400: {
|
|
541
|
+
message: string;
|
|
542
|
+
issues?: string;
|
|
543
|
+
};
|
|
544
|
+
/**
|
|
545
|
+
* Unauthorized
|
|
546
|
+
*/
|
|
547
|
+
401: ErrorResponse;
|
|
548
|
+
/**
|
|
549
|
+
* Forbidden
|
|
550
|
+
*/
|
|
551
|
+
403: ErrorResponse;
|
|
552
|
+
/**
|
|
553
|
+
* Not Found
|
|
554
|
+
*/
|
|
555
|
+
404: ErrorResponse;
|
|
556
|
+
/**
|
|
557
|
+
* Conflict
|
|
558
|
+
*/
|
|
559
|
+
409: ErrorResponse;
|
|
560
|
+
/**
|
|
561
|
+
* Internal server error
|
|
562
|
+
*/
|
|
563
|
+
500: ErrorResponse;
|
|
564
|
+
/**
|
|
565
|
+
* Service Unavailable
|
|
566
|
+
*/
|
|
567
|
+
503: ErrorResponse;
|
|
568
|
+
};
|
|
569
|
+
|
|
570
|
+
export type InviteWorkspaceMemberError = InviteWorkspaceMemberErrors[keyof InviteWorkspaceMemberErrors];
|
|
571
|
+
|
|
572
|
+
export type InviteWorkspaceMemberResponses = {
|
|
573
|
+
/**
|
|
574
|
+
* Returns the invitation token, or null if user was auto-added to workspace
|
|
575
|
+
*/
|
|
576
|
+
200: {
|
|
577
|
+
token: string | null;
|
|
578
|
+
};
|
|
579
|
+
};
|
|
580
|
+
|
|
581
|
+
export type InviteWorkspaceMemberResponse = InviteWorkspaceMemberResponses[keyof InviteWorkspaceMemberResponses];
|
|
582
|
+
|
|
434
583
|
export type GetWorkspaceMembersData = {
|
|
435
584
|
body?: never;
|
|
436
585
|
path: {
|
|
@@ -506,6 +655,120 @@ export type GetWorkspaceMembersResponses = {
|
|
|
506
655
|
|
|
507
656
|
export type GetWorkspaceMembersResponse = GetWorkspaceMembersResponses[keyof GetWorkspaceMembersResponses];
|
|
508
657
|
|
|
658
|
+
export type DeleteWorkspaceMemberData = {
|
|
659
|
+
body?: never;
|
|
660
|
+
path: {
|
|
661
|
+
workspaceId: string;
|
|
662
|
+
memberId: string;
|
|
663
|
+
};
|
|
664
|
+
query?: never;
|
|
665
|
+
url: '/workspace/{workspaceId}/members/{memberId}';
|
|
666
|
+
};
|
|
667
|
+
|
|
668
|
+
export type DeleteWorkspaceMemberErrors = {
|
|
669
|
+
/**
|
|
670
|
+
* Bad request - Invalid parameters or malformed JSON
|
|
671
|
+
*/
|
|
672
|
+
400: {
|
|
673
|
+
message: string;
|
|
674
|
+
issues?: string;
|
|
675
|
+
};
|
|
676
|
+
/**
|
|
677
|
+
* Unauthorized
|
|
678
|
+
*/
|
|
679
|
+
401: ErrorResponse;
|
|
680
|
+
/**
|
|
681
|
+
* Forbidden
|
|
682
|
+
*/
|
|
683
|
+
403: ErrorResponse;
|
|
684
|
+
/**
|
|
685
|
+
* Not Found
|
|
686
|
+
*/
|
|
687
|
+
404: ErrorResponse;
|
|
688
|
+
/**
|
|
689
|
+
* Conflict
|
|
690
|
+
*/
|
|
691
|
+
409: ErrorResponse;
|
|
692
|
+
/**
|
|
693
|
+
* Internal server error
|
|
694
|
+
*/
|
|
695
|
+
500: ErrorResponse;
|
|
696
|
+
/**
|
|
697
|
+
* Service Unavailable
|
|
698
|
+
*/
|
|
699
|
+
503: ErrorResponse;
|
|
700
|
+
};
|
|
701
|
+
|
|
702
|
+
export type DeleteWorkspaceMemberError = DeleteWorkspaceMemberErrors[keyof DeleteWorkspaceMemberErrors];
|
|
703
|
+
|
|
704
|
+
export type DeleteWorkspaceMemberResponses = {
|
|
705
|
+
/**
|
|
706
|
+
* Acknowledges that the workspace member was deleted
|
|
707
|
+
*/
|
|
708
|
+
200: {
|
|
709
|
+
status: 'deleted';
|
|
710
|
+
};
|
|
711
|
+
};
|
|
712
|
+
|
|
713
|
+
export type DeleteWorkspaceMemberResponse = DeleteWorkspaceMemberResponses[keyof DeleteWorkspaceMemberResponses];
|
|
714
|
+
|
|
715
|
+
export type DeleteWorkspaceInvitationData = {
|
|
716
|
+
body?: never;
|
|
717
|
+
path: {
|
|
718
|
+
workspaceId: string;
|
|
719
|
+
invitationId: string;
|
|
720
|
+
};
|
|
721
|
+
query?: never;
|
|
722
|
+
url: '/workspace/{workspaceId}/invitations/{invitationId}';
|
|
723
|
+
};
|
|
724
|
+
|
|
725
|
+
export type DeleteWorkspaceInvitationErrors = {
|
|
726
|
+
/**
|
|
727
|
+
* Bad request - Invalid parameters or malformed JSON
|
|
728
|
+
*/
|
|
729
|
+
400: {
|
|
730
|
+
message: string;
|
|
731
|
+
issues?: string;
|
|
732
|
+
};
|
|
733
|
+
/**
|
|
734
|
+
* Unauthorized
|
|
735
|
+
*/
|
|
736
|
+
401: ErrorResponse;
|
|
737
|
+
/**
|
|
738
|
+
* Forbidden
|
|
739
|
+
*/
|
|
740
|
+
403: ErrorResponse;
|
|
741
|
+
/**
|
|
742
|
+
* Not Found
|
|
743
|
+
*/
|
|
744
|
+
404: ErrorResponse;
|
|
745
|
+
/**
|
|
746
|
+
* Conflict
|
|
747
|
+
*/
|
|
748
|
+
409: ErrorResponse;
|
|
749
|
+
/**
|
|
750
|
+
* Internal server error
|
|
751
|
+
*/
|
|
752
|
+
500: ErrorResponse;
|
|
753
|
+
/**
|
|
754
|
+
* Service Unavailable
|
|
755
|
+
*/
|
|
756
|
+
503: ErrorResponse;
|
|
757
|
+
};
|
|
758
|
+
|
|
759
|
+
export type DeleteWorkspaceInvitationError = DeleteWorkspaceInvitationErrors[keyof DeleteWorkspaceInvitationErrors];
|
|
760
|
+
|
|
761
|
+
export type DeleteWorkspaceInvitationResponses = {
|
|
762
|
+
/**
|
|
763
|
+
* Acknowledges that the workspace invitation was deleted
|
|
764
|
+
*/
|
|
765
|
+
200: {
|
|
766
|
+
status: 'deleted';
|
|
767
|
+
};
|
|
768
|
+
};
|
|
769
|
+
|
|
770
|
+
export type DeleteWorkspaceInvitationResponse = DeleteWorkspaceInvitationResponses[keyof DeleteWorkspaceInvitationResponses];
|
|
771
|
+
|
|
509
772
|
export type GetMyValuesData = {
|
|
510
773
|
body?: never;
|
|
511
774
|
path?: never;
|
|
@@ -1105,6 +1368,756 @@ export type GetConnectionStatusResponses = {
|
|
|
1105
1368
|
|
|
1106
1369
|
export type GetConnectionStatusResponse = GetConnectionStatusResponses[keyof GetConnectionStatusResponses];
|
|
1107
1370
|
|
|
1371
|
+
export type DeleteCommentData = {
|
|
1372
|
+
body?: never;
|
|
1373
|
+
path: {
|
|
1374
|
+
hostType: 'project' | 'workspace';
|
|
1375
|
+
hostId: string;
|
|
1376
|
+
commentId: string;
|
|
1377
|
+
};
|
|
1378
|
+
query?: never;
|
|
1379
|
+
url: '/comments/{hostType}/{hostId}/{commentId}';
|
|
1380
|
+
};
|
|
1381
|
+
|
|
1382
|
+
export type DeleteCommentErrors = {
|
|
1383
|
+
/**
|
|
1384
|
+
* Bad request - Invalid parameters or malformed JSON
|
|
1385
|
+
*/
|
|
1386
|
+
400: {
|
|
1387
|
+
message: string;
|
|
1388
|
+
issues?: string;
|
|
1389
|
+
};
|
|
1390
|
+
/**
|
|
1391
|
+
* Unauthorized
|
|
1392
|
+
*/
|
|
1393
|
+
401: ErrorResponse;
|
|
1394
|
+
/**
|
|
1395
|
+
* Forbidden
|
|
1396
|
+
*/
|
|
1397
|
+
403: ErrorResponse;
|
|
1398
|
+
/**
|
|
1399
|
+
* Not Found
|
|
1400
|
+
*/
|
|
1401
|
+
404: ErrorResponse;
|
|
1402
|
+
/**
|
|
1403
|
+
* Conflict
|
|
1404
|
+
*/
|
|
1405
|
+
409: ErrorResponse;
|
|
1406
|
+
/**
|
|
1407
|
+
* Internal server error
|
|
1408
|
+
*/
|
|
1409
|
+
500: ErrorResponse;
|
|
1410
|
+
/**
|
|
1411
|
+
* Service Unavailable
|
|
1412
|
+
*/
|
|
1413
|
+
503: ErrorResponse;
|
|
1414
|
+
};
|
|
1415
|
+
|
|
1416
|
+
export type DeleteCommentError = DeleteCommentErrors[keyof DeleteCommentErrors];
|
|
1417
|
+
|
|
1418
|
+
export type DeleteCommentResponses = {
|
|
1419
|
+
/**
|
|
1420
|
+
* Acknowledges that the comment was deleted
|
|
1421
|
+
*/
|
|
1422
|
+
200: {
|
|
1423
|
+
success: true;
|
|
1424
|
+
};
|
|
1425
|
+
};
|
|
1426
|
+
|
|
1427
|
+
export type DeleteCommentResponse = DeleteCommentResponses[keyof DeleteCommentResponses];
|
|
1428
|
+
|
|
1429
|
+
export type GetCommentData = {
|
|
1430
|
+
body?: never;
|
|
1431
|
+
path: {
|
|
1432
|
+
hostType: 'project' | 'workspace';
|
|
1433
|
+
hostId: string;
|
|
1434
|
+
commentId: string;
|
|
1435
|
+
};
|
|
1436
|
+
query?: never;
|
|
1437
|
+
url: '/comments/{hostType}/{hostId}/{commentId}';
|
|
1438
|
+
};
|
|
1439
|
+
|
|
1440
|
+
export type GetCommentErrors = {
|
|
1441
|
+
/**
|
|
1442
|
+
* Bad request - Invalid parameters or malformed JSON
|
|
1443
|
+
*/
|
|
1444
|
+
400: {
|
|
1445
|
+
message: string;
|
|
1446
|
+
issues?: string;
|
|
1447
|
+
};
|
|
1448
|
+
/**
|
|
1449
|
+
* Unauthorized
|
|
1450
|
+
*/
|
|
1451
|
+
401: ErrorResponse;
|
|
1452
|
+
/**
|
|
1453
|
+
* Forbidden
|
|
1454
|
+
*/
|
|
1455
|
+
403: ErrorResponse;
|
|
1456
|
+
/**
|
|
1457
|
+
* Not Found
|
|
1458
|
+
*/
|
|
1459
|
+
404: ErrorResponse;
|
|
1460
|
+
/**
|
|
1461
|
+
* Conflict
|
|
1462
|
+
*/
|
|
1463
|
+
409: ErrorResponse;
|
|
1464
|
+
/**
|
|
1465
|
+
* Internal server error
|
|
1466
|
+
*/
|
|
1467
|
+
500: ErrorResponse;
|
|
1468
|
+
/**
|
|
1469
|
+
* Service Unavailable
|
|
1470
|
+
*/
|
|
1471
|
+
503: ErrorResponse;
|
|
1472
|
+
};
|
|
1473
|
+
|
|
1474
|
+
export type GetCommentError = GetCommentErrors[keyof GetCommentErrors];
|
|
1475
|
+
|
|
1476
|
+
export type GetCommentResponses = {
|
|
1477
|
+
/**
|
|
1478
|
+
* Returns comment by id for the host entity
|
|
1479
|
+
*/
|
|
1480
|
+
200: {
|
|
1481
|
+
comment: {
|
|
1482
|
+
commentId: string;
|
|
1483
|
+
author: {
|
|
1484
|
+
dazlUserId: string;
|
|
1485
|
+
};
|
|
1486
|
+
content: string;
|
|
1487
|
+
mentions: Array<UserMention>;
|
|
1488
|
+
createdAt: string;
|
|
1489
|
+
updatedAt: string;
|
|
1490
|
+
lastActivityAt: string;
|
|
1491
|
+
isEdited: boolean;
|
|
1492
|
+
replies: Array<{
|
|
1493
|
+
replyId: string;
|
|
1494
|
+
author: {
|
|
1495
|
+
dazlUserId: string;
|
|
1496
|
+
};
|
|
1497
|
+
content: string;
|
|
1498
|
+
mentions: Array<UserMention>;
|
|
1499
|
+
createdAt: string;
|
|
1500
|
+
updatedAt: string;
|
|
1501
|
+
gitInfo?: CommentGitInfo;
|
|
1502
|
+
}>;
|
|
1503
|
+
resolved?: CommentResolved;
|
|
1504
|
+
context?: CommentContext;
|
|
1505
|
+
gitInfo?: CommentGitInfo;
|
|
1506
|
+
};
|
|
1507
|
+
};
|
|
1508
|
+
};
|
|
1509
|
+
|
|
1510
|
+
export type GetCommentResponse = GetCommentResponses[keyof GetCommentResponses];
|
|
1511
|
+
|
|
1512
|
+
export type EditCommentData = {
|
|
1513
|
+
body: EditCommentInput;
|
|
1514
|
+
path: {
|
|
1515
|
+
hostType: 'project' | 'workspace';
|
|
1516
|
+
hostId: string;
|
|
1517
|
+
commentId: string;
|
|
1518
|
+
};
|
|
1519
|
+
query?: never;
|
|
1520
|
+
url: '/comments/{hostType}/{hostId}/{commentId}';
|
|
1521
|
+
};
|
|
1522
|
+
|
|
1523
|
+
export type EditCommentErrors = {
|
|
1524
|
+
/**
|
|
1525
|
+
* Bad request - Invalid parameters or malformed JSON
|
|
1526
|
+
*/
|
|
1527
|
+
400: {
|
|
1528
|
+
message: string;
|
|
1529
|
+
issues?: string;
|
|
1530
|
+
};
|
|
1531
|
+
/**
|
|
1532
|
+
* Unauthorized
|
|
1533
|
+
*/
|
|
1534
|
+
401: ErrorResponse;
|
|
1535
|
+
/**
|
|
1536
|
+
* Forbidden
|
|
1537
|
+
*/
|
|
1538
|
+
403: ErrorResponse;
|
|
1539
|
+
/**
|
|
1540
|
+
* Not Found
|
|
1541
|
+
*/
|
|
1542
|
+
404: ErrorResponse;
|
|
1543
|
+
/**
|
|
1544
|
+
* Conflict
|
|
1545
|
+
*/
|
|
1546
|
+
409: ErrorResponse;
|
|
1547
|
+
/**
|
|
1548
|
+
* Internal server error
|
|
1549
|
+
*/
|
|
1550
|
+
500: ErrorResponse;
|
|
1551
|
+
/**
|
|
1552
|
+
* Service Unavailable
|
|
1553
|
+
*/
|
|
1554
|
+
503: ErrorResponse;
|
|
1555
|
+
};
|
|
1556
|
+
|
|
1557
|
+
export type EditCommentError = EditCommentErrors[keyof EditCommentErrors];
|
|
1558
|
+
|
|
1559
|
+
export type EditCommentResponses = {
|
|
1560
|
+
/**
|
|
1561
|
+
* Returns the updated comment
|
|
1562
|
+
*/
|
|
1563
|
+
200: {
|
|
1564
|
+
comment: {
|
|
1565
|
+
commentId: string;
|
|
1566
|
+
author: {
|
|
1567
|
+
dazlUserId: string;
|
|
1568
|
+
};
|
|
1569
|
+
content: string;
|
|
1570
|
+
mentions: Array<UserMention>;
|
|
1571
|
+
createdAt: string;
|
|
1572
|
+
updatedAt: string;
|
|
1573
|
+
lastActivityAt: string;
|
|
1574
|
+
isEdited: boolean;
|
|
1575
|
+
replies: Array<{
|
|
1576
|
+
replyId: string;
|
|
1577
|
+
author: {
|
|
1578
|
+
dazlUserId: string;
|
|
1579
|
+
};
|
|
1580
|
+
content: string;
|
|
1581
|
+
mentions: Array<UserMention>;
|
|
1582
|
+
createdAt: string;
|
|
1583
|
+
updatedAt: string;
|
|
1584
|
+
gitInfo?: CommentGitInfo;
|
|
1585
|
+
}>;
|
|
1586
|
+
resolved?: CommentResolved;
|
|
1587
|
+
context?: CommentContext;
|
|
1588
|
+
gitInfo?: CommentGitInfo;
|
|
1589
|
+
};
|
|
1590
|
+
};
|
|
1591
|
+
};
|
|
1592
|
+
|
|
1593
|
+
export type EditCommentResponse = EditCommentResponses[keyof EditCommentResponses];
|
|
1594
|
+
|
|
1595
|
+
export type ListCommentsData = {
|
|
1596
|
+
body?: never;
|
|
1597
|
+
path: {
|
|
1598
|
+
hostType: 'project' | 'workspace';
|
|
1599
|
+
hostId: string;
|
|
1600
|
+
};
|
|
1601
|
+
query?: never;
|
|
1602
|
+
url: '/comments/{hostType}/{hostId}';
|
|
1603
|
+
};
|
|
1604
|
+
|
|
1605
|
+
export type ListCommentsErrors = {
|
|
1606
|
+
/**
|
|
1607
|
+
* Bad request - Invalid parameters or malformed JSON
|
|
1608
|
+
*/
|
|
1609
|
+
400: {
|
|
1610
|
+
message: string;
|
|
1611
|
+
issues?: string;
|
|
1612
|
+
};
|
|
1613
|
+
/**
|
|
1614
|
+
* Unauthorized
|
|
1615
|
+
*/
|
|
1616
|
+
401: ErrorResponse;
|
|
1617
|
+
/**
|
|
1618
|
+
* Forbidden
|
|
1619
|
+
*/
|
|
1620
|
+
403: ErrorResponse;
|
|
1621
|
+
/**
|
|
1622
|
+
* Not Found
|
|
1623
|
+
*/
|
|
1624
|
+
404: ErrorResponse;
|
|
1625
|
+
/**
|
|
1626
|
+
* Conflict
|
|
1627
|
+
*/
|
|
1628
|
+
409: ErrorResponse;
|
|
1629
|
+
/**
|
|
1630
|
+
* Internal server error
|
|
1631
|
+
*/
|
|
1632
|
+
500: ErrorResponse;
|
|
1633
|
+
/**
|
|
1634
|
+
* Service Unavailable
|
|
1635
|
+
*/
|
|
1636
|
+
503: ErrorResponse;
|
|
1637
|
+
};
|
|
1638
|
+
|
|
1639
|
+
export type ListCommentsError = ListCommentsErrors[keyof ListCommentsErrors];
|
|
1640
|
+
|
|
1641
|
+
export type ListCommentsResponses = {
|
|
1642
|
+
/**
|
|
1643
|
+
* Returns the list of comments for the host entity
|
|
1644
|
+
*/
|
|
1645
|
+
200: {
|
|
1646
|
+
comments: Array<{
|
|
1647
|
+
commentId: string;
|
|
1648
|
+
author: {
|
|
1649
|
+
dazlUserId: string;
|
|
1650
|
+
};
|
|
1651
|
+
content: string;
|
|
1652
|
+
mentions: Array<UserMention>;
|
|
1653
|
+
createdAt: string;
|
|
1654
|
+
updatedAt: string;
|
|
1655
|
+
lastActivityAt: string;
|
|
1656
|
+
isEdited: boolean;
|
|
1657
|
+
replies: Array<{
|
|
1658
|
+
replyId: string;
|
|
1659
|
+
author: {
|
|
1660
|
+
dazlUserId: string;
|
|
1661
|
+
};
|
|
1662
|
+
content: string;
|
|
1663
|
+
mentions: Array<UserMention>;
|
|
1664
|
+
createdAt: string;
|
|
1665
|
+
updatedAt: string;
|
|
1666
|
+
gitInfo?: CommentGitInfo;
|
|
1667
|
+
}>;
|
|
1668
|
+
resolved?: CommentResolved;
|
|
1669
|
+
context?: CommentContext;
|
|
1670
|
+
gitInfo?: CommentGitInfo;
|
|
1671
|
+
}>;
|
|
1672
|
+
};
|
|
1673
|
+
};
|
|
1674
|
+
|
|
1675
|
+
export type ListCommentsResponse = ListCommentsResponses[keyof ListCommentsResponses];
|
|
1676
|
+
|
|
1677
|
+
export type CreateCommentData = {
|
|
1678
|
+
body: CreateCommentInput;
|
|
1679
|
+
path: {
|
|
1680
|
+
hostType: 'project' | 'workspace';
|
|
1681
|
+
hostId: string;
|
|
1682
|
+
};
|
|
1683
|
+
query?: never;
|
|
1684
|
+
url: '/comments/{hostType}/{hostId}';
|
|
1685
|
+
};
|
|
1686
|
+
|
|
1687
|
+
export type CreateCommentErrors = {
|
|
1688
|
+
/**
|
|
1689
|
+
* Bad request - Invalid parameters or malformed JSON
|
|
1690
|
+
*/
|
|
1691
|
+
400: {
|
|
1692
|
+
message: string;
|
|
1693
|
+
issues?: string;
|
|
1694
|
+
};
|
|
1695
|
+
/**
|
|
1696
|
+
* Unauthorized
|
|
1697
|
+
*/
|
|
1698
|
+
401: ErrorResponse;
|
|
1699
|
+
/**
|
|
1700
|
+
* Forbidden
|
|
1701
|
+
*/
|
|
1702
|
+
403: ErrorResponse;
|
|
1703
|
+
/**
|
|
1704
|
+
* Not Found
|
|
1705
|
+
*/
|
|
1706
|
+
404: ErrorResponse;
|
|
1707
|
+
/**
|
|
1708
|
+
* Conflict
|
|
1709
|
+
*/
|
|
1710
|
+
409: ErrorResponse;
|
|
1711
|
+
/**
|
|
1712
|
+
* Internal server error
|
|
1713
|
+
*/
|
|
1714
|
+
500: ErrorResponse;
|
|
1715
|
+
/**
|
|
1716
|
+
* Service Unavailable
|
|
1717
|
+
*/
|
|
1718
|
+
503: ErrorResponse;
|
|
1719
|
+
};
|
|
1720
|
+
|
|
1721
|
+
export type CreateCommentError = CreateCommentErrors[keyof CreateCommentErrors];
|
|
1722
|
+
|
|
1723
|
+
export type CreateCommentResponses = {
|
|
1724
|
+
/**
|
|
1725
|
+
* Returns the created comment
|
|
1726
|
+
*/
|
|
1727
|
+
200: {
|
|
1728
|
+
comment: {
|
|
1729
|
+
commentId: string;
|
|
1730
|
+
author: {
|
|
1731
|
+
dazlUserId: string;
|
|
1732
|
+
};
|
|
1733
|
+
content: string;
|
|
1734
|
+
mentions: Array<UserMention>;
|
|
1735
|
+
createdAt: string;
|
|
1736
|
+
updatedAt: string;
|
|
1737
|
+
lastActivityAt: string;
|
|
1738
|
+
isEdited: boolean;
|
|
1739
|
+
replies: Array<{
|
|
1740
|
+
replyId: string;
|
|
1741
|
+
author: {
|
|
1742
|
+
dazlUserId: string;
|
|
1743
|
+
};
|
|
1744
|
+
content: string;
|
|
1745
|
+
mentions: Array<UserMention>;
|
|
1746
|
+
createdAt: string;
|
|
1747
|
+
updatedAt: string;
|
|
1748
|
+
gitInfo?: CommentGitInfo;
|
|
1749
|
+
}>;
|
|
1750
|
+
resolved?: CommentResolved;
|
|
1751
|
+
context?: CommentContext;
|
|
1752
|
+
gitInfo?: CommentGitInfo;
|
|
1753
|
+
};
|
|
1754
|
+
};
|
|
1755
|
+
};
|
|
1756
|
+
|
|
1757
|
+
export type CreateCommentResponse = CreateCommentResponses[keyof CreateCommentResponses];
|
|
1758
|
+
|
|
1759
|
+
export type ResolveCommentData = {
|
|
1760
|
+
body?: never;
|
|
1761
|
+
path: {
|
|
1762
|
+
hostType: 'project' | 'workspace';
|
|
1763
|
+
hostId: string;
|
|
1764
|
+
commentId: string;
|
|
1765
|
+
};
|
|
1766
|
+
query?: never;
|
|
1767
|
+
url: '/comments/{hostType}/{hostId}/{commentId}/resolve';
|
|
1768
|
+
};
|
|
1769
|
+
|
|
1770
|
+
export type ResolveCommentErrors = {
|
|
1771
|
+
/**
|
|
1772
|
+
* Bad request - Invalid parameters or malformed JSON
|
|
1773
|
+
*/
|
|
1774
|
+
400: {
|
|
1775
|
+
message: string;
|
|
1776
|
+
issues?: string;
|
|
1777
|
+
};
|
|
1778
|
+
/**
|
|
1779
|
+
* Unauthorized
|
|
1780
|
+
*/
|
|
1781
|
+
401: ErrorResponse;
|
|
1782
|
+
/**
|
|
1783
|
+
* Forbidden
|
|
1784
|
+
*/
|
|
1785
|
+
403: ErrorResponse;
|
|
1786
|
+
/**
|
|
1787
|
+
* Not Found
|
|
1788
|
+
*/
|
|
1789
|
+
404: ErrorResponse;
|
|
1790
|
+
/**
|
|
1791
|
+
* Conflict
|
|
1792
|
+
*/
|
|
1793
|
+
409: ErrorResponse;
|
|
1794
|
+
/**
|
|
1795
|
+
* Internal server error
|
|
1796
|
+
*/
|
|
1797
|
+
500: ErrorResponse;
|
|
1798
|
+
/**
|
|
1799
|
+
* Service Unavailable
|
|
1800
|
+
*/
|
|
1801
|
+
503: ErrorResponse;
|
|
1802
|
+
};
|
|
1803
|
+
|
|
1804
|
+
export type ResolveCommentError = ResolveCommentErrors[keyof ResolveCommentErrors];
|
|
1805
|
+
|
|
1806
|
+
export type ResolveCommentResponses = {
|
|
1807
|
+
/**
|
|
1808
|
+
* Returns the resolved comment
|
|
1809
|
+
*/
|
|
1810
|
+
200: {
|
|
1811
|
+
comment: {
|
|
1812
|
+
commentId: string;
|
|
1813
|
+
author: {
|
|
1814
|
+
dazlUserId: string;
|
|
1815
|
+
};
|
|
1816
|
+
content: string;
|
|
1817
|
+
mentions: Array<UserMention>;
|
|
1818
|
+
createdAt: string;
|
|
1819
|
+
updatedAt: string;
|
|
1820
|
+
lastActivityAt: string;
|
|
1821
|
+
isEdited: boolean;
|
|
1822
|
+
replies: Array<{
|
|
1823
|
+
replyId: string;
|
|
1824
|
+
author: {
|
|
1825
|
+
dazlUserId: string;
|
|
1826
|
+
};
|
|
1827
|
+
content: string;
|
|
1828
|
+
mentions: Array<UserMention>;
|
|
1829
|
+
createdAt: string;
|
|
1830
|
+
updatedAt: string;
|
|
1831
|
+
gitInfo?: CommentGitInfo;
|
|
1832
|
+
}>;
|
|
1833
|
+
resolved?: CommentResolved;
|
|
1834
|
+
context?: CommentContext;
|
|
1835
|
+
gitInfo?: CommentGitInfo;
|
|
1836
|
+
};
|
|
1837
|
+
};
|
|
1838
|
+
};
|
|
1839
|
+
|
|
1840
|
+
export type ResolveCommentResponse = ResolveCommentResponses[keyof ResolveCommentResponses];
|
|
1841
|
+
|
|
1842
|
+
export type ReopenCommentData = {
|
|
1843
|
+
body?: never;
|
|
1844
|
+
path: {
|
|
1845
|
+
hostType: 'project' | 'workspace';
|
|
1846
|
+
hostId: string;
|
|
1847
|
+
commentId: string;
|
|
1848
|
+
};
|
|
1849
|
+
query?: never;
|
|
1850
|
+
url: '/comments/{hostType}/{hostId}/{commentId}/reopen';
|
|
1851
|
+
};
|
|
1852
|
+
|
|
1853
|
+
export type ReopenCommentErrors = {
|
|
1854
|
+
/**
|
|
1855
|
+
* Bad request - Invalid parameters or malformed JSON
|
|
1856
|
+
*/
|
|
1857
|
+
400: {
|
|
1858
|
+
message: string;
|
|
1859
|
+
issues?: string;
|
|
1860
|
+
};
|
|
1861
|
+
/**
|
|
1862
|
+
* Unauthorized
|
|
1863
|
+
*/
|
|
1864
|
+
401: ErrorResponse;
|
|
1865
|
+
/**
|
|
1866
|
+
* Forbidden
|
|
1867
|
+
*/
|
|
1868
|
+
403: ErrorResponse;
|
|
1869
|
+
/**
|
|
1870
|
+
* Not Found
|
|
1871
|
+
*/
|
|
1872
|
+
404: ErrorResponse;
|
|
1873
|
+
/**
|
|
1874
|
+
* Conflict
|
|
1875
|
+
*/
|
|
1876
|
+
409: ErrorResponse;
|
|
1877
|
+
/**
|
|
1878
|
+
* Internal server error
|
|
1879
|
+
*/
|
|
1880
|
+
500: ErrorResponse;
|
|
1881
|
+
/**
|
|
1882
|
+
* Service Unavailable
|
|
1883
|
+
*/
|
|
1884
|
+
503: ErrorResponse;
|
|
1885
|
+
};
|
|
1886
|
+
|
|
1887
|
+
export type ReopenCommentError = ReopenCommentErrors[keyof ReopenCommentErrors];
|
|
1888
|
+
|
|
1889
|
+
export type ReopenCommentResponses = {
|
|
1890
|
+
/**
|
|
1891
|
+
* Returns the reopened comment
|
|
1892
|
+
*/
|
|
1893
|
+
200: {
|
|
1894
|
+
comment: {
|
|
1895
|
+
commentId: string;
|
|
1896
|
+
author: {
|
|
1897
|
+
dazlUserId: string;
|
|
1898
|
+
};
|
|
1899
|
+
content: string;
|
|
1900
|
+
mentions: Array<UserMention>;
|
|
1901
|
+
createdAt: string;
|
|
1902
|
+
updatedAt: string;
|
|
1903
|
+
lastActivityAt: string;
|
|
1904
|
+
isEdited: boolean;
|
|
1905
|
+
replies: Array<{
|
|
1906
|
+
replyId: string;
|
|
1907
|
+
author: {
|
|
1908
|
+
dazlUserId: string;
|
|
1909
|
+
};
|
|
1910
|
+
content: string;
|
|
1911
|
+
mentions: Array<UserMention>;
|
|
1912
|
+
createdAt: string;
|
|
1913
|
+
updatedAt: string;
|
|
1914
|
+
gitInfo?: CommentGitInfo;
|
|
1915
|
+
}>;
|
|
1916
|
+
resolved?: CommentResolved;
|
|
1917
|
+
context?: CommentContext;
|
|
1918
|
+
gitInfo?: CommentGitInfo;
|
|
1919
|
+
};
|
|
1920
|
+
};
|
|
1921
|
+
};
|
|
1922
|
+
|
|
1923
|
+
export type ReopenCommentResponse = ReopenCommentResponses[keyof ReopenCommentResponses];
|
|
1924
|
+
|
|
1925
|
+
export type CreateReplyData = {
|
|
1926
|
+
body: CreateReplyInput;
|
|
1927
|
+
path: {
|
|
1928
|
+
hostType: 'project' | 'workspace';
|
|
1929
|
+
hostId: string;
|
|
1930
|
+
commentId: string;
|
|
1931
|
+
};
|
|
1932
|
+
query?: never;
|
|
1933
|
+
url: '/comments/{hostType}/{hostId}/{commentId}/replies';
|
|
1934
|
+
};
|
|
1935
|
+
|
|
1936
|
+
export type CreateReplyErrors = {
|
|
1937
|
+
/**
|
|
1938
|
+
* Bad request - Invalid parameters or malformed JSON
|
|
1939
|
+
*/
|
|
1940
|
+
400: {
|
|
1941
|
+
message: string;
|
|
1942
|
+
issues?: string;
|
|
1943
|
+
};
|
|
1944
|
+
/**
|
|
1945
|
+
* Unauthorized
|
|
1946
|
+
*/
|
|
1947
|
+
401: ErrorResponse;
|
|
1948
|
+
/**
|
|
1949
|
+
* Forbidden
|
|
1950
|
+
*/
|
|
1951
|
+
403: ErrorResponse;
|
|
1952
|
+
/**
|
|
1953
|
+
* Not Found
|
|
1954
|
+
*/
|
|
1955
|
+
404: ErrorResponse;
|
|
1956
|
+
/**
|
|
1957
|
+
* Conflict
|
|
1958
|
+
*/
|
|
1959
|
+
409: ErrorResponse;
|
|
1960
|
+
/**
|
|
1961
|
+
* Internal server error
|
|
1962
|
+
*/
|
|
1963
|
+
500: ErrorResponse;
|
|
1964
|
+
/**
|
|
1965
|
+
* Service Unavailable
|
|
1966
|
+
*/
|
|
1967
|
+
503: ErrorResponse;
|
|
1968
|
+
};
|
|
1969
|
+
|
|
1970
|
+
export type CreateReplyError = CreateReplyErrors[keyof CreateReplyErrors];
|
|
1971
|
+
|
|
1972
|
+
export type CreateReplyResponses = {
|
|
1973
|
+
/**
|
|
1974
|
+
* Returns the created reply
|
|
1975
|
+
*/
|
|
1976
|
+
200: {
|
|
1977
|
+
reply: {
|
|
1978
|
+
replyId: string;
|
|
1979
|
+
author: {
|
|
1980
|
+
dazlUserId: string;
|
|
1981
|
+
};
|
|
1982
|
+
content: string;
|
|
1983
|
+
mentions: Array<UserMention>;
|
|
1984
|
+
createdAt: string;
|
|
1985
|
+
updatedAt: string;
|
|
1986
|
+
gitInfo?: CommentGitInfo;
|
|
1987
|
+
};
|
|
1988
|
+
};
|
|
1989
|
+
};
|
|
1990
|
+
|
|
1991
|
+
export type CreateReplyResponse = CreateReplyResponses[keyof CreateReplyResponses];
|
|
1992
|
+
|
|
1993
|
+
export type DeleteReplyData = {
|
|
1994
|
+
body?: never;
|
|
1995
|
+
path: {
|
|
1996
|
+
hostType: 'project' | 'workspace';
|
|
1997
|
+
hostId: string;
|
|
1998
|
+
commentId: string;
|
|
1999
|
+
replyId: string;
|
|
2000
|
+
};
|
|
2001
|
+
query?: never;
|
|
2002
|
+
url: '/comments/{hostType}/{hostId}/{commentId}/replies/{replyId}';
|
|
2003
|
+
};
|
|
2004
|
+
|
|
2005
|
+
export type DeleteReplyErrors = {
|
|
2006
|
+
/**
|
|
2007
|
+
* Bad request - Invalid parameters or malformed JSON
|
|
2008
|
+
*/
|
|
2009
|
+
400: {
|
|
2010
|
+
message: string;
|
|
2011
|
+
issues?: string;
|
|
2012
|
+
};
|
|
2013
|
+
/**
|
|
2014
|
+
* Unauthorized
|
|
2015
|
+
*/
|
|
2016
|
+
401: ErrorResponse;
|
|
2017
|
+
/**
|
|
2018
|
+
* Forbidden
|
|
2019
|
+
*/
|
|
2020
|
+
403: ErrorResponse;
|
|
2021
|
+
/**
|
|
2022
|
+
* Not Found
|
|
2023
|
+
*/
|
|
2024
|
+
404: ErrorResponse;
|
|
2025
|
+
/**
|
|
2026
|
+
* Conflict
|
|
2027
|
+
*/
|
|
2028
|
+
409: ErrorResponse;
|
|
2029
|
+
/**
|
|
2030
|
+
* Internal server error
|
|
2031
|
+
*/
|
|
2032
|
+
500: ErrorResponse;
|
|
2033
|
+
/**
|
|
2034
|
+
* Service Unavailable
|
|
2035
|
+
*/
|
|
2036
|
+
503: ErrorResponse;
|
|
2037
|
+
};
|
|
2038
|
+
|
|
2039
|
+
export type DeleteReplyError = DeleteReplyErrors[keyof DeleteReplyErrors];
|
|
2040
|
+
|
|
2041
|
+
export type DeleteReplyResponses = {
|
|
2042
|
+
/**
|
|
2043
|
+
* Acknowledges that the reply was deleted
|
|
2044
|
+
*/
|
|
2045
|
+
200: {
|
|
2046
|
+
success: true;
|
|
2047
|
+
};
|
|
2048
|
+
};
|
|
2049
|
+
|
|
2050
|
+
export type DeleteReplyResponse = DeleteReplyResponses[keyof DeleteReplyResponses];
|
|
2051
|
+
|
|
2052
|
+
export type EditReplyData = {
|
|
2053
|
+
body: EditReplyInput;
|
|
2054
|
+
path: {
|
|
2055
|
+
hostType: 'project' | 'workspace';
|
|
2056
|
+
hostId: string;
|
|
2057
|
+
commentId: string;
|
|
2058
|
+
replyId: string;
|
|
2059
|
+
};
|
|
2060
|
+
query?: never;
|
|
2061
|
+
url: '/comments/{hostType}/{hostId}/{commentId}/replies/{replyId}';
|
|
2062
|
+
};
|
|
2063
|
+
|
|
2064
|
+
export type EditReplyErrors = {
|
|
2065
|
+
/**
|
|
2066
|
+
* Bad request - Invalid parameters or malformed JSON
|
|
2067
|
+
*/
|
|
2068
|
+
400: {
|
|
2069
|
+
message: string;
|
|
2070
|
+
issues?: string;
|
|
2071
|
+
};
|
|
2072
|
+
/**
|
|
2073
|
+
* Unauthorized
|
|
2074
|
+
*/
|
|
2075
|
+
401: ErrorResponse;
|
|
2076
|
+
/**
|
|
2077
|
+
* Forbidden
|
|
2078
|
+
*/
|
|
2079
|
+
403: ErrorResponse;
|
|
2080
|
+
/**
|
|
2081
|
+
* Not Found
|
|
2082
|
+
*/
|
|
2083
|
+
404: ErrorResponse;
|
|
2084
|
+
/**
|
|
2085
|
+
* Conflict
|
|
2086
|
+
*/
|
|
2087
|
+
409: ErrorResponse;
|
|
2088
|
+
/**
|
|
2089
|
+
* Internal server error
|
|
2090
|
+
*/
|
|
2091
|
+
500: ErrorResponse;
|
|
2092
|
+
/**
|
|
2093
|
+
* Service Unavailable
|
|
2094
|
+
*/
|
|
2095
|
+
503: ErrorResponse;
|
|
2096
|
+
};
|
|
2097
|
+
|
|
2098
|
+
export type EditReplyError = EditReplyErrors[keyof EditReplyErrors];
|
|
2099
|
+
|
|
2100
|
+
export type EditReplyResponses = {
|
|
2101
|
+
/**
|
|
2102
|
+
* Returns the updated reply
|
|
2103
|
+
*/
|
|
2104
|
+
200: {
|
|
2105
|
+
reply: {
|
|
2106
|
+
replyId: string;
|
|
2107
|
+
author: {
|
|
2108
|
+
dazlUserId: string;
|
|
2109
|
+
};
|
|
2110
|
+
content: string;
|
|
2111
|
+
mentions: Array<UserMention>;
|
|
2112
|
+
createdAt: string;
|
|
2113
|
+
updatedAt: string;
|
|
2114
|
+
gitInfo?: CommentGitInfo;
|
|
2115
|
+
};
|
|
2116
|
+
};
|
|
2117
|
+
};
|
|
2118
|
+
|
|
2119
|
+
export type EditReplyResponse = EditReplyResponses[keyof EditReplyResponses];
|
|
2120
|
+
|
|
1108
2121
|
export type GetPingData = {
|
|
1109
2122
|
body?: never;
|
|
1110
2123
|
path?: never;
|