@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.
- package/dist/internal/index.d.ts +1 -1
- package/dist/internal/index.d.ts.map +1 -1
- package/dist/internal/sdk.gen.d.ts +5 -2
- package/dist/internal/sdk.gen.d.ts.map +1 -1
- package/dist/internal/sdk.gen.js +19 -10
- package/dist/internal/sdk.gen.js.map +1 -1
- package/dist/internal/types.gen.d.ts +811 -650
- 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 +17 -1
- package/dist/public/sdk.gen.d.ts.map +1 -1
- package/dist/public/sdk.gen.js +79 -0
- package/dist/public/sdk.gen.js.map +1 -1
- package/dist/public/types.gen.d.ts +988 -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 +24 -12
- package/src/internal/types.gen.ts +824 -648
- package/src/public/index.ts +2 -2
- package/src/public/sdk.gen.ts +94 -1
- package/src/public/types.gen.ts +1070 -1
|
@@ -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;
|
|
@@ -307,6 +385,57 @@ export type CreateWorkspaceResponses = {
|
|
|
307
385
|
};
|
|
308
386
|
};
|
|
309
387
|
export type CreateWorkspaceResponse = CreateWorkspaceResponses[keyof CreateWorkspaceResponses];
|
|
388
|
+
export type GetWorkspaceData = {
|
|
389
|
+
body?: never;
|
|
390
|
+
path: {
|
|
391
|
+
workspaceId: string;
|
|
392
|
+
};
|
|
393
|
+
query?: never;
|
|
394
|
+
url: '/workspace/{workspaceId}';
|
|
395
|
+
};
|
|
396
|
+
export type GetWorkspaceErrors = {
|
|
397
|
+
/**
|
|
398
|
+
* Bad request - Invalid parameters or malformed JSON
|
|
399
|
+
*/
|
|
400
|
+
400: {
|
|
401
|
+
message: string;
|
|
402
|
+
issues?: string;
|
|
403
|
+
};
|
|
404
|
+
/**
|
|
405
|
+
* Unauthorized
|
|
406
|
+
*/
|
|
407
|
+
401: ErrorResponse;
|
|
408
|
+
/**
|
|
409
|
+
* Forbidden
|
|
410
|
+
*/
|
|
411
|
+
403: ErrorResponse;
|
|
412
|
+
/**
|
|
413
|
+
* Not Found
|
|
414
|
+
*/
|
|
415
|
+
404: ErrorResponse;
|
|
416
|
+
/**
|
|
417
|
+
* Conflict
|
|
418
|
+
*/
|
|
419
|
+
409: ErrorResponse;
|
|
420
|
+
/**
|
|
421
|
+
* Internal server error
|
|
422
|
+
*/
|
|
423
|
+
500: ErrorResponse;
|
|
424
|
+
/**
|
|
425
|
+
* Service Unavailable
|
|
426
|
+
*/
|
|
427
|
+
503: ErrorResponse;
|
|
428
|
+
};
|
|
429
|
+
export type GetWorkspaceError = GetWorkspaceErrors[keyof GetWorkspaceErrors];
|
|
430
|
+
export type GetWorkspaceResponses = {
|
|
431
|
+
/**
|
|
432
|
+
* Returns the workspace with the given ID
|
|
433
|
+
*/
|
|
434
|
+
200: {
|
|
435
|
+
workspace: Workspace;
|
|
436
|
+
};
|
|
437
|
+
};
|
|
438
|
+
export type GetWorkspaceResponse = GetWorkspaceResponses[keyof GetWorkspaceResponses];
|
|
310
439
|
export type GetAllWorkspacesData = {
|
|
311
440
|
body?: never;
|
|
312
441
|
path?: never;
|
|
@@ -354,7 +483,7 @@ export type GetAllWorkspacesErrors = {
|
|
|
354
483
|
export type GetAllWorkspacesError = GetAllWorkspacesErrors[keyof GetAllWorkspacesErrors];
|
|
355
484
|
export type GetAllWorkspacesResponses = {
|
|
356
485
|
/**
|
|
357
|
-
* Returns the list of workspaces
|
|
486
|
+
* Returns the list of workspaces that the user is a member of
|
|
358
487
|
*/
|
|
359
488
|
200: {
|
|
360
489
|
workspaces: Array<{
|
|
@@ -390,6 +519,60 @@ export type GetAllWorkspacesResponses = {
|
|
|
390
519
|
};
|
|
391
520
|
};
|
|
392
521
|
export type GetAllWorkspacesResponse = GetAllWorkspacesResponses[keyof GetAllWorkspacesResponses];
|
|
522
|
+
export type InviteWorkspaceMemberData = {
|
|
523
|
+
body: {
|
|
524
|
+
email: string;
|
|
525
|
+
role: 'workspace_member';
|
|
526
|
+
};
|
|
527
|
+
path: {
|
|
528
|
+
workspaceId: string;
|
|
529
|
+
};
|
|
530
|
+
query?: never;
|
|
531
|
+
url: '/workspace/{workspaceId}/members/invite';
|
|
532
|
+
};
|
|
533
|
+
export type InviteWorkspaceMemberErrors = {
|
|
534
|
+
/**
|
|
535
|
+
* Bad request - Invalid parameters or malformed JSON
|
|
536
|
+
*/
|
|
537
|
+
400: {
|
|
538
|
+
message: string;
|
|
539
|
+
issues?: string;
|
|
540
|
+
};
|
|
541
|
+
/**
|
|
542
|
+
* Unauthorized
|
|
543
|
+
*/
|
|
544
|
+
401: ErrorResponse;
|
|
545
|
+
/**
|
|
546
|
+
* Forbidden
|
|
547
|
+
*/
|
|
548
|
+
403: ErrorResponse;
|
|
549
|
+
/**
|
|
550
|
+
* Not Found
|
|
551
|
+
*/
|
|
552
|
+
404: ErrorResponse;
|
|
553
|
+
/**
|
|
554
|
+
* Conflict
|
|
555
|
+
*/
|
|
556
|
+
409: ErrorResponse;
|
|
557
|
+
/**
|
|
558
|
+
* Internal server error
|
|
559
|
+
*/
|
|
560
|
+
500: ErrorResponse;
|
|
561
|
+
/**
|
|
562
|
+
* Service Unavailable
|
|
563
|
+
*/
|
|
564
|
+
503: ErrorResponse;
|
|
565
|
+
};
|
|
566
|
+
export type InviteWorkspaceMemberError = InviteWorkspaceMemberErrors[keyof InviteWorkspaceMemberErrors];
|
|
567
|
+
export type InviteWorkspaceMemberResponses = {
|
|
568
|
+
/**
|
|
569
|
+
* Returns the invitation token, or null if user was auto-added to workspace
|
|
570
|
+
*/
|
|
571
|
+
200: {
|
|
572
|
+
token: string | null;
|
|
573
|
+
};
|
|
574
|
+
};
|
|
575
|
+
export type InviteWorkspaceMemberResponse = InviteWorkspaceMemberResponses[keyof InviteWorkspaceMemberResponses];
|
|
393
576
|
export type GetWorkspaceMembersData = {
|
|
394
577
|
body?: never;
|
|
395
578
|
path: {
|
|
@@ -460,6 +643,110 @@ export type GetWorkspaceMembersResponses = {
|
|
|
460
643
|
};
|
|
461
644
|
};
|
|
462
645
|
export type GetWorkspaceMembersResponse = GetWorkspaceMembersResponses[keyof GetWorkspaceMembersResponses];
|
|
646
|
+
export type DeleteWorkspaceMemberData = {
|
|
647
|
+
body?: never;
|
|
648
|
+
path: {
|
|
649
|
+
workspaceId: string;
|
|
650
|
+
memberId: string;
|
|
651
|
+
};
|
|
652
|
+
query?: never;
|
|
653
|
+
url: '/workspace/{workspaceId}/members/{memberId}';
|
|
654
|
+
};
|
|
655
|
+
export type DeleteWorkspaceMemberErrors = {
|
|
656
|
+
/**
|
|
657
|
+
* Bad request - Invalid parameters or malformed JSON
|
|
658
|
+
*/
|
|
659
|
+
400: {
|
|
660
|
+
message: string;
|
|
661
|
+
issues?: string;
|
|
662
|
+
};
|
|
663
|
+
/**
|
|
664
|
+
* Unauthorized
|
|
665
|
+
*/
|
|
666
|
+
401: ErrorResponse;
|
|
667
|
+
/**
|
|
668
|
+
* Forbidden
|
|
669
|
+
*/
|
|
670
|
+
403: ErrorResponse;
|
|
671
|
+
/**
|
|
672
|
+
* Not Found
|
|
673
|
+
*/
|
|
674
|
+
404: ErrorResponse;
|
|
675
|
+
/**
|
|
676
|
+
* Conflict
|
|
677
|
+
*/
|
|
678
|
+
409: ErrorResponse;
|
|
679
|
+
/**
|
|
680
|
+
* Internal server error
|
|
681
|
+
*/
|
|
682
|
+
500: ErrorResponse;
|
|
683
|
+
/**
|
|
684
|
+
* Service Unavailable
|
|
685
|
+
*/
|
|
686
|
+
503: ErrorResponse;
|
|
687
|
+
};
|
|
688
|
+
export type DeleteWorkspaceMemberError = DeleteWorkspaceMemberErrors[keyof DeleteWorkspaceMemberErrors];
|
|
689
|
+
export type DeleteWorkspaceMemberResponses = {
|
|
690
|
+
/**
|
|
691
|
+
* Acknowledges that the workspace member was deleted
|
|
692
|
+
*/
|
|
693
|
+
200: {
|
|
694
|
+
status: 'deleted';
|
|
695
|
+
};
|
|
696
|
+
};
|
|
697
|
+
export type DeleteWorkspaceMemberResponse = DeleteWorkspaceMemberResponses[keyof DeleteWorkspaceMemberResponses];
|
|
698
|
+
export type DeleteWorkspaceInvitationData = {
|
|
699
|
+
body?: never;
|
|
700
|
+
path: {
|
|
701
|
+
workspaceId: string;
|
|
702
|
+
invitationId: string;
|
|
703
|
+
};
|
|
704
|
+
query?: never;
|
|
705
|
+
url: '/workspace/{workspaceId}/invitations/{invitationId}';
|
|
706
|
+
};
|
|
707
|
+
export type DeleteWorkspaceInvitationErrors = {
|
|
708
|
+
/**
|
|
709
|
+
* Bad request - Invalid parameters or malformed JSON
|
|
710
|
+
*/
|
|
711
|
+
400: {
|
|
712
|
+
message: string;
|
|
713
|
+
issues?: string;
|
|
714
|
+
};
|
|
715
|
+
/**
|
|
716
|
+
* Unauthorized
|
|
717
|
+
*/
|
|
718
|
+
401: ErrorResponse;
|
|
719
|
+
/**
|
|
720
|
+
* Forbidden
|
|
721
|
+
*/
|
|
722
|
+
403: ErrorResponse;
|
|
723
|
+
/**
|
|
724
|
+
* Not Found
|
|
725
|
+
*/
|
|
726
|
+
404: ErrorResponse;
|
|
727
|
+
/**
|
|
728
|
+
* Conflict
|
|
729
|
+
*/
|
|
730
|
+
409: ErrorResponse;
|
|
731
|
+
/**
|
|
732
|
+
* Internal server error
|
|
733
|
+
*/
|
|
734
|
+
500: ErrorResponse;
|
|
735
|
+
/**
|
|
736
|
+
* Service Unavailable
|
|
737
|
+
*/
|
|
738
|
+
503: ErrorResponse;
|
|
739
|
+
};
|
|
740
|
+
export type DeleteWorkspaceInvitationError = DeleteWorkspaceInvitationErrors[keyof DeleteWorkspaceInvitationErrors];
|
|
741
|
+
export type DeleteWorkspaceInvitationResponses = {
|
|
742
|
+
/**
|
|
743
|
+
* Acknowledges that the workspace invitation was deleted
|
|
744
|
+
*/
|
|
745
|
+
200: {
|
|
746
|
+
status: 'deleted';
|
|
747
|
+
};
|
|
748
|
+
};
|
|
749
|
+
export type DeleteWorkspaceInvitationResponse = DeleteWorkspaceInvitationResponses[keyof DeleteWorkspaceInvitationResponses];
|
|
463
750
|
export type GetMyValuesData = {
|
|
464
751
|
body?: never;
|
|
465
752
|
path?: never;
|
|
@@ -1009,6 +1296,706 @@ export type GetConnectionStatusResponses = {
|
|
|
1009
1296
|
200: Array<ConnectionStatus>;
|
|
1010
1297
|
};
|
|
1011
1298
|
export type GetConnectionStatusResponse = GetConnectionStatusResponses[keyof GetConnectionStatusResponses];
|
|
1299
|
+
export type DeleteCommentData = {
|
|
1300
|
+
body?: never;
|
|
1301
|
+
path: {
|
|
1302
|
+
hostType: 'project' | 'workspace';
|
|
1303
|
+
hostId: string;
|
|
1304
|
+
commentId: string;
|
|
1305
|
+
};
|
|
1306
|
+
query?: never;
|
|
1307
|
+
url: '/comments/{hostType}/{hostId}/{commentId}';
|
|
1308
|
+
};
|
|
1309
|
+
export type DeleteCommentErrors = {
|
|
1310
|
+
/**
|
|
1311
|
+
* Bad request - Invalid parameters or malformed JSON
|
|
1312
|
+
*/
|
|
1313
|
+
400: {
|
|
1314
|
+
message: string;
|
|
1315
|
+
issues?: string;
|
|
1316
|
+
};
|
|
1317
|
+
/**
|
|
1318
|
+
* Unauthorized
|
|
1319
|
+
*/
|
|
1320
|
+
401: ErrorResponse;
|
|
1321
|
+
/**
|
|
1322
|
+
* Forbidden
|
|
1323
|
+
*/
|
|
1324
|
+
403: ErrorResponse;
|
|
1325
|
+
/**
|
|
1326
|
+
* Not Found
|
|
1327
|
+
*/
|
|
1328
|
+
404: ErrorResponse;
|
|
1329
|
+
/**
|
|
1330
|
+
* Conflict
|
|
1331
|
+
*/
|
|
1332
|
+
409: ErrorResponse;
|
|
1333
|
+
/**
|
|
1334
|
+
* Internal server error
|
|
1335
|
+
*/
|
|
1336
|
+
500: ErrorResponse;
|
|
1337
|
+
/**
|
|
1338
|
+
* Service Unavailable
|
|
1339
|
+
*/
|
|
1340
|
+
503: ErrorResponse;
|
|
1341
|
+
};
|
|
1342
|
+
export type DeleteCommentError = DeleteCommentErrors[keyof DeleteCommentErrors];
|
|
1343
|
+
export type DeleteCommentResponses = {
|
|
1344
|
+
/**
|
|
1345
|
+
* Acknowledges that the comment was deleted
|
|
1346
|
+
*/
|
|
1347
|
+
200: {
|
|
1348
|
+
success: true;
|
|
1349
|
+
};
|
|
1350
|
+
};
|
|
1351
|
+
export type DeleteCommentResponse = DeleteCommentResponses[keyof DeleteCommentResponses];
|
|
1352
|
+
export type GetCommentData = {
|
|
1353
|
+
body?: never;
|
|
1354
|
+
path: {
|
|
1355
|
+
hostType: 'project' | 'workspace';
|
|
1356
|
+
hostId: string;
|
|
1357
|
+
commentId: string;
|
|
1358
|
+
};
|
|
1359
|
+
query?: never;
|
|
1360
|
+
url: '/comments/{hostType}/{hostId}/{commentId}';
|
|
1361
|
+
};
|
|
1362
|
+
export type GetCommentErrors = {
|
|
1363
|
+
/**
|
|
1364
|
+
* Bad request - Invalid parameters or malformed JSON
|
|
1365
|
+
*/
|
|
1366
|
+
400: {
|
|
1367
|
+
message: string;
|
|
1368
|
+
issues?: string;
|
|
1369
|
+
};
|
|
1370
|
+
/**
|
|
1371
|
+
* Unauthorized
|
|
1372
|
+
*/
|
|
1373
|
+
401: ErrorResponse;
|
|
1374
|
+
/**
|
|
1375
|
+
* Forbidden
|
|
1376
|
+
*/
|
|
1377
|
+
403: ErrorResponse;
|
|
1378
|
+
/**
|
|
1379
|
+
* Not Found
|
|
1380
|
+
*/
|
|
1381
|
+
404: ErrorResponse;
|
|
1382
|
+
/**
|
|
1383
|
+
* Conflict
|
|
1384
|
+
*/
|
|
1385
|
+
409: ErrorResponse;
|
|
1386
|
+
/**
|
|
1387
|
+
* Internal server error
|
|
1388
|
+
*/
|
|
1389
|
+
500: ErrorResponse;
|
|
1390
|
+
/**
|
|
1391
|
+
* Service Unavailable
|
|
1392
|
+
*/
|
|
1393
|
+
503: ErrorResponse;
|
|
1394
|
+
};
|
|
1395
|
+
export type GetCommentError = GetCommentErrors[keyof GetCommentErrors];
|
|
1396
|
+
export type GetCommentResponses = {
|
|
1397
|
+
/**
|
|
1398
|
+
* Returns comment by id for the host entity
|
|
1399
|
+
*/
|
|
1400
|
+
200: {
|
|
1401
|
+
comment: {
|
|
1402
|
+
commentId: string;
|
|
1403
|
+
author: {
|
|
1404
|
+
dazlUserId: string;
|
|
1405
|
+
};
|
|
1406
|
+
content: string;
|
|
1407
|
+
mentions: Array<UserMention>;
|
|
1408
|
+
createdAt: string;
|
|
1409
|
+
updatedAt: string;
|
|
1410
|
+
lastActivityAt: string;
|
|
1411
|
+
isEdited: boolean;
|
|
1412
|
+
replies: Array<{
|
|
1413
|
+
replyId: string;
|
|
1414
|
+
author: {
|
|
1415
|
+
dazlUserId: string;
|
|
1416
|
+
};
|
|
1417
|
+
content: string;
|
|
1418
|
+
mentions: Array<UserMention>;
|
|
1419
|
+
createdAt: string;
|
|
1420
|
+
updatedAt: string;
|
|
1421
|
+
gitInfo?: CommentGitInfo;
|
|
1422
|
+
}>;
|
|
1423
|
+
resolved?: CommentResolved;
|
|
1424
|
+
context?: CommentContext;
|
|
1425
|
+
gitInfo?: CommentGitInfo;
|
|
1426
|
+
};
|
|
1427
|
+
};
|
|
1428
|
+
};
|
|
1429
|
+
export type GetCommentResponse = GetCommentResponses[keyof GetCommentResponses];
|
|
1430
|
+
export type EditCommentData = {
|
|
1431
|
+
body: EditCommentInput;
|
|
1432
|
+
path: {
|
|
1433
|
+
hostType: 'project' | 'workspace';
|
|
1434
|
+
hostId: string;
|
|
1435
|
+
commentId: string;
|
|
1436
|
+
};
|
|
1437
|
+
query?: never;
|
|
1438
|
+
url: '/comments/{hostType}/{hostId}/{commentId}';
|
|
1439
|
+
};
|
|
1440
|
+
export type EditCommentErrors = {
|
|
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
|
+
export type EditCommentError = EditCommentErrors[keyof EditCommentErrors];
|
|
1474
|
+
export type EditCommentResponses = {
|
|
1475
|
+
/**
|
|
1476
|
+
* Returns the updated comment
|
|
1477
|
+
*/
|
|
1478
|
+
200: {
|
|
1479
|
+
comment: {
|
|
1480
|
+
commentId: string;
|
|
1481
|
+
author: {
|
|
1482
|
+
dazlUserId: string;
|
|
1483
|
+
};
|
|
1484
|
+
content: string;
|
|
1485
|
+
mentions: Array<UserMention>;
|
|
1486
|
+
createdAt: string;
|
|
1487
|
+
updatedAt: string;
|
|
1488
|
+
lastActivityAt: string;
|
|
1489
|
+
isEdited: boolean;
|
|
1490
|
+
replies: Array<{
|
|
1491
|
+
replyId: string;
|
|
1492
|
+
author: {
|
|
1493
|
+
dazlUserId: string;
|
|
1494
|
+
};
|
|
1495
|
+
content: string;
|
|
1496
|
+
mentions: Array<UserMention>;
|
|
1497
|
+
createdAt: string;
|
|
1498
|
+
updatedAt: string;
|
|
1499
|
+
gitInfo?: CommentGitInfo;
|
|
1500
|
+
}>;
|
|
1501
|
+
resolved?: CommentResolved;
|
|
1502
|
+
context?: CommentContext;
|
|
1503
|
+
gitInfo?: CommentGitInfo;
|
|
1504
|
+
};
|
|
1505
|
+
};
|
|
1506
|
+
};
|
|
1507
|
+
export type EditCommentResponse = EditCommentResponses[keyof EditCommentResponses];
|
|
1508
|
+
export type ListCommentsData = {
|
|
1509
|
+
body?: never;
|
|
1510
|
+
path: {
|
|
1511
|
+
hostType: 'project' | 'workspace';
|
|
1512
|
+
hostId: string;
|
|
1513
|
+
};
|
|
1514
|
+
query?: never;
|
|
1515
|
+
url: '/comments/{hostType}/{hostId}';
|
|
1516
|
+
};
|
|
1517
|
+
export type ListCommentsErrors = {
|
|
1518
|
+
/**
|
|
1519
|
+
* Bad request - Invalid parameters or malformed JSON
|
|
1520
|
+
*/
|
|
1521
|
+
400: {
|
|
1522
|
+
message: string;
|
|
1523
|
+
issues?: string;
|
|
1524
|
+
};
|
|
1525
|
+
/**
|
|
1526
|
+
* Unauthorized
|
|
1527
|
+
*/
|
|
1528
|
+
401: ErrorResponse;
|
|
1529
|
+
/**
|
|
1530
|
+
* Forbidden
|
|
1531
|
+
*/
|
|
1532
|
+
403: ErrorResponse;
|
|
1533
|
+
/**
|
|
1534
|
+
* Not Found
|
|
1535
|
+
*/
|
|
1536
|
+
404: ErrorResponse;
|
|
1537
|
+
/**
|
|
1538
|
+
* Conflict
|
|
1539
|
+
*/
|
|
1540
|
+
409: ErrorResponse;
|
|
1541
|
+
/**
|
|
1542
|
+
* Internal server error
|
|
1543
|
+
*/
|
|
1544
|
+
500: ErrorResponse;
|
|
1545
|
+
/**
|
|
1546
|
+
* Service Unavailable
|
|
1547
|
+
*/
|
|
1548
|
+
503: ErrorResponse;
|
|
1549
|
+
};
|
|
1550
|
+
export type ListCommentsError = ListCommentsErrors[keyof ListCommentsErrors];
|
|
1551
|
+
export type ListCommentsResponses = {
|
|
1552
|
+
/**
|
|
1553
|
+
* Returns the list of comments for the host entity
|
|
1554
|
+
*/
|
|
1555
|
+
200: {
|
|
1556
|
+
comments: Array<{
|
|
1557
|
+
commentId: string;
|
|
1558
|
+
author: {
|
|
1559
|
+
dazlUserId: string;
|
|
1560
|
+
};
|
|
1561
|
+
content: string;
|
|
1562
|
+
mentions: Array<UserMention>;
|
|
1563
|
+
createdAt: string;
|
|
1564
|
+
updatedAt: string;
|
|
1565
|
+
lastActivityAt: string;
|
|
1566
|
+
isEdited: boolean;
|
|
1567
|
+
replies: Array<{
|
|
1568
|
+
replyId: string;
|
|
1569
|
+
author: {
|
|
1570
|
+
dazlUserId: string;
|
|
1571
|
+
};
|
|
1572
|
+
content: string;
|
|
1573
|
+
mentions: Array<UserMention>;
|
|
1574
|
+
createdAt: string;
|
|
1575
|
+
updatedAt: string;
|
|
1576
|
+
gitInfo?: CommentGitInfo;
|
|
1577
|
+
}>;
|
|
1578
|
+
resolved?: CommentResolved;
|
|
1579
|
+
context?: CommentContext;
|
|
1580
|
+
gitInfo?: CommentGitInfo;
|
|
1581
|
+
}>;
|
|
1582
|
+
};
|
|
1583
|
+
};
|
|
1584
|
+
export type ListCommentsResponse = ListCommentsResponses[keyof ListCommentsResponses];
|
|
1585
|
+
export type CreateCommentData = {
|
|
1586
|
+
body: CreateCommentInput;
|
|
1587
|
+
path: {
|
|
1588
|
+
hostType: 'project' | 'workspace';
|
|
1589
|
+
hostId: string;
|
|
1590
|
+
};
|
|
1591
|
+
query?: never;
|
|
1592
|
+
url: '/comments/{hostType}/{hostId}';
|
|
1593
|
+
};
|
|
1594
|
+
export type CreateCommentErrors = {
|
|
1595
|
+
/**
|
|
1596
|
+
* Bad request - Invalid parameters or malformed JSON
|
|
1597
|
+
*/
|
|
1598
|
+
400: {
|
|
1599
|
+
message: string;
|
|
1600
|
+
issues?: string;
|
|
1601
|
+
};
|
|
1602
|
+
/**
|
|
1603
|
+
* Unauthorized
|
|
1604
|
+
*/
|
|
1605
|
+
401: ErrorResponse;
|
|
1606
|
+
/**
|
|
1607
|
+
* Forbidden
|
|
1608
|
+
*/
|
|
1609
|
+
403: ErrorResponse;
|
|
1610
|
+
/**
|
|
1611
|
+
* Not Found
|
|
1612
|
+
*/
|
|
1613
|
+
404: ErrorResponse;
|
|
1614
|
+
/**
|
|
1615
|
+
* Conflict
|
|
1616
|
+
*/
|
|
1617
|
+
409: ErrorResponse;
|
|
1618
|
+
/**
|
|
1619
|
+
* Internal server error
|
|
1620
|
+
*/
|
|
1621
|
+
500: ErrorResponse;
|
|
1622
|
+
/**
|
|
1623
|
+
* Service Unavailable
|
|
1624
|
+
*/
|
|
1625
|
+
503: ErrorResponse;
|
|
1626
|
+
};
|
|
1627
|
+
export type CreateCommentError = CreateCommentErrors[keyof CreateCommentErrors];
|
|
1628
|
+
export type CreateCommentResponses = {
|
|
1629
|
+
/**
|
|
1630
|
+
* Returns the created comment
|
|
1631
|
+
*/
|
|
1632
|
+
200: {
|
|
1633
|
+
comment: {
|
|
1634
|
+
commentId: string;
|
|
1635
|
+
author: {
|
|
1636
|
+
dazlUserId: string;
|
|
1637
|
+
};
|
|
1638
|
+
content: string;
|
|
1639
|
+
mentions: Array<UserMention>;
|
|
1640
|
+
createdAt: string;
|
|
1641
|
+
updatedAt: string;
|
|
1642
|
+
lastActivityAt: string;
|
|
1643
|
+
isEdited: boolean;
|
|
1644
|
+
replies: Array<{
|
|
1645
|
+
replyId: string;
|
|
1646
|
+
author: {
|
|
1647
|
+
dazlUserId: string;
|
|
1648
|
+
};
|
|
1649
|
+
content: string;
|
|
1650
|
+
mentions: Array<UserMention>;
|
|
1651
|
+
createdAt: string;
|
|
1652
|
+
updatedAt: string;
|
|
1653
|
+
gitInfo?: CommentGitInfo;
|
|
1654
|
+
}>;
|
|
1655
|
+
resolved?: CommentResolved;
|
|
1656
|
+
context?: CommentContext;
|
|
1657
|
+
gitInfo?: CommentGitInfo;
|
|
1658
|
+
};
|
|
1659
|
+
};
|
|
1660
|
+
};
|
|
1661
|
+
export type CreateCommentResponse = CreateCommentResponses[keyof CreateCommentResponses];
|
|
1662
|
+
export type ResolveCommentData = {
|
|
1663
|
+
body?: never;
|
|
1664
|
+
path: {
|
|
1665
|
+
hostType: 'project' | 'workspace';
|
|
1666
|
+
hostId: string;
|
|
1667
|
+
commentId: string;
|
|
1668
|
+
};
|
|
1669
|
+
query?: never;
|
|
1670
|
+
url: '/comments/{hostType}/{hostId}/{commentId}/resolve';
|
|
1671
|
+
};
|
|
1672
|
+
export type ResolveCommentErrors = {
|
|
1673
|
+
/**
|
|
1674
|
+
* Bad request - Invalid parameters or malformed JSON
|
|
1675
|
+
*/
|
|
1676
|
+
400: {
|
|
1677
|
+
message: string;
|
|
1678
|
+
issues?: string;
|
|
1679
|
+
};
|
|
1680
|
+
/**
|
|
1681
|
+
* Unauthorized
|
|
1682
|
+
*/
|
|
1683
|
+
401: ErrorResponse;
|
|
1684
|
+
/**
|
|
1685
|
+
* Forbidden
|
|
1686
|
+
*/
|
|
1687
|
+
403: ErrorResponse;
|
|
1688
|
+
/**
|
|
1689
|
+
* Not Found
|
|
1690
|
+
*/
|
|
1691
|
+
404: ErrorResponse;
|
|
1692
|
+
/**
|
|
1693
|
+
* Conflict
|
|
1694
|
+
*/
|
|
1695
|
+
409: ErrorResponse;
|
|
1696
|
+
/**
|
|
1697
|
+
* Internal server error
|
|
1698
|
+
*/
|
|
1699
|
+
500: ErrorResponse;
|
|
1700
|
+
/**
|
|
1701
|
+
* Service Unavailable
|
|
1702
|
+
*/
|
|
1703
|
+
503: ErrorResponse;
|
|
1704
|
+
};
|
|
1705
|
+
export type ResolveCommentError = ResolveCommentErrors[keyof ResolveCommentErrors];
|
|
1706
|
+
export type ResolveCommentResponses = {
|
|
1707
|
+
/**
|
|
1708
|
+
* Returns the resolved comment
|
|
1709
|
+
*/
|
|
1710
|
+
200: {
|
|
1711
|
+
comment: {
|
|
1712
|
+
commentId: string;
|
|
1713
|
+
author: {
|
|
1714
|
+
dazlUserId: string;
|
|
1715
|
+
};
|
|
1716
|
+
content: string;
|
|
1717
|
+
mentions: Array<UserMention>;
|
|
1718
|
+
createdAt: string;
|
|
1719
|
+
updatedAt: string;
|
|
1720
|
+
lastActivityAt: string;
|
|
1721
|
+
isEdited: boolean;
|
|
1722
|
+
replies: Array<{
|
|
1723
|
+
replyId: string;
|
|
1724
|
+
author: {
|
|
1725
|
+
dazlUserId: string;
|
|
1726
|
+
};
|
|
1727
|
+
content: string;
|
|
1728
|
+
mentions: Array<UserMention>;
|
|
1729
|
+
createdAt: string;
|
|
1730
|
+
updatedAt: string;
|
|
1731
|
+
gitInfo?: CommentGitInfo;
|
|
1732
|
+
}>;
|
|
1733
|
+
resolved?: CommentResolved;
|
|
1734
|
+
context?: CommentContext;
|
|
1735
|
+
gitInfo?: CommentGitInfo;
|
|
1736
|
+
};
|
|
1737
|
+
};
|
|
1738
|
+
};
|
|
1739
|
+
export type ResolveCommentResponse = ResolveCommentResponses[keyof ResolveCommentResponses];
|
|
1740
|
+
export type ReopenCommentData = {
|
|
1741
|
+
body?: never;
|
|
1742
|
+
path: {
|
|
1743
|
+
hostType: 'project' | 'workspace';
|
|
1744
|
+
hostId: string;
|
|
1745
|
+
commentId: string;
|
|
1746
|
+
};
|
|
1747
|
+
query?: never;
|
|
1748
|
+
url: '/comments/{hostType}/{hostId}/{commentId}/reopen';
|
|
1749
|
+
};
|
|
1750
|
+
export type ReopenCommentErrors = {
|
|
1751
|
+
/**
|
|
1752
|
+
* Bad request - Invalid parameters or malformed JSON
|
|
1753
|
+
*/
|
|
1754
|
+
400: {
|
|
1755
|
+
message: string;
|
|
1756
|
+
issues?: string;
|
|
1757
|
+
};
|
|
1758
|
+
/**
|
|
1759
|
+
* Unauthorized
|
|
1760
|
+
*/
|
|
1761
|
+
401: ErrorResponse;
|
|
1762
|
+
/**
|
|
1763
|
+
* Forbidden
|
|
1764
|
+
*/
|
|
1765
|
+
403: ErrorResponse;
|
|
1766
|
+
/**
|
|
1767
|
+
* Not Found
|
|
1768
|
+
*/
|
|
1769
|
+
404: ErrorResponse;
|
|
1770
|
+
/**
|
|
1771
|
+
* Conflict
|
|
1772
|
+
*/
|
|
1773
|
+
409: ErrorResponse;
|
|
1774
|
+
/**
|
|
1775
|
+
* Internal server error
|
|
1776
|
+
*/
|
|
1777
|
+
500: ErrorResponse;
|
|
1778
|
+
/**
|
|
1779
|
+
* Service Unavailable
|
|
1780
|
+
*/
|
|
1781
|
+
503: ErrorResponse;
|
|
1782
|
+
};
|
|
1783
|
+
export type ReopenCommentError = ReopenCommentErrors[keyof ReopenCommentErrors];
|
|
1784
|
+
export type ReopenCommentResponses = {
|
|
1785
|
+
/**
|
|
1786
|
+
* Returns the reopened comment
|
|
1787
|
+
*/
|
|
1788
|
+
200: {
|
|
1789
|
+
comment: {
|
|
1790
|
+
commentId: string;
|
|
1791
|
+
author: {
|
|
1792
|
+
dazlUserId: string;
|
|
1793
|
+
};
|
|
1794
|
+
content: string;
|
|
1795
|
+
mentions: Array<UserMention>;
|
|
1796
|
+
createdAt: string;
|
|
1797
|
+
updatedAt: string;
|
|
1798
|
+
lastActivityAt: string;
|
|
1799
|
+
isEdited: boolean;
|
|
1800
|
+
replies: Array<{
|
|
1801
|
+
replyId: string;
|
|
1802
|
+
author: {
|
|
1803
|
+
dazlUserId: string;
|
|
1804
|
+
};
|
|
1805
|
+
content: string;
|
|
1806
|
+
mentions: Array<UserMention>;
|
|
1807
|
+
createdAt: string;
|
|
1808
|
+
updatedAt: string;
|
|
1809
|
+
gitInfo?: CommentGitInfo;
|
|
1810
|
+
}>;
|
|
1811
|
+
resolved?: CommentResolved;
|
|
1812
|
+
context?: CommentContext;
|
|
1813
|
+
gitInfo?: CommentGitInfo;
|
|
1814
|
+
};
|
|
1815
|
+
};
|
|
1816
|
+
};
|
|
1817
|
+
export type ReopenCommentResponse = ReopenCommentResponses[keyof ReopenCommentResponses];
|
|
1818
|
+
export type CreateReplyData = {
|
|
1819
|
+
body: CreateReplyInput;
|
|
1820
|
+
path: {
|
|
1821
|
+
hostType: 'project' | 'workspace';
|
|
1822
|
+
hostId: string;
|
|
1823
|
+
commentId: string;
|
|
1824
|
+
};
|
|
1825
|
+
query?: never;
|
|
1826
|
+
url: '/comments/{hostType}/{hostId}/{commentId}/replies';
|
|
1827
|
+
};
|
|
1828
|
+
export type CreateReplyErrors = {
|
|
1829
|
+
/**
|
|
1830
|
+
* Bad request - Invalid parameters or malformed JSON
|
|
1831
|
+
*/
|
|
1832
|
+
400: {
|
|
1833
|
+
message: string;
|
|
1834
|
+
issues?: string;
|
|
1835
|
+
};
|
|
1836
|
+
/**
|
|
1837
|
+
* Unauthorized
|
|
1838
|
+
*/
|
|
1839
|
+
401: ErrorResponse;
|
|
1840
|
+
/**
|
|
1841
|
+
* Forbidden
|
|
1842
|
+
*/
|
|
1843
|
+
403: ErrorResponse;
|
|
1844
|
+
/**
|
|
1845
|
+
* Not Found
|
|
1846
|
+
*/
|
|
1847
|
+
404: ErrorResponse;
|
|
1848
|
+
/**
|
|
1849
|
+
* Conflict
|
|
1850
|
+
*/
|
|
1851
|
+
409: ErrorResponse;
|
|
1852
|
+
/**
|
|
1853
|
+
* Internal server error
|
|
1854
|
+
*/
|
|
1855
|
+
500: ErrorResponse;
|
|
1856
|
+
/**
|
|
1857
|
+
* Service Unavailable
|
|
1858
|
+
*/
|
|
1859
|
+
503: ErrorResponse;
|
|
1860
|
+
};
|
|
1861
|
+
export type CreateReplyError = CreateReplyErrors[keyof CreateReplyErrors];
|
|
1862
|
+
export type CreateReplyResponses = {
|
|
1863
|
+
/**
|
|
1864
|
+
* Returns the created reply
|
|
1865
|
+
*/
|
|
1866
|
+
200: {
|
|
1867
|
+
reply: {
|
|
1868
|
+
replyId: string;
|
|
1869
|
+
author: {
|
|
1870
|
+
dazlUserId: string;
|
|
1871
|
+
};
|
|
1872
|
+
content: string;
|
|
1873
|
+
mentions: Array<UserMention>;
|
|
1874
|
+
createdAt: string;
|
|
1875
|
+
updatedAt: string;
|
|
1876
|
+
gitInfo?: CommentGitInfo;
|
|
1877
|
+
};
|
|
1878
|
+
};
|
|
1879
|
+
};
|
|
1880
|
+
export type CreateReplyResponse = CreateReplyResponses[keyof CreateReplyResponses];
|
|
1881
|
+
export type DeleteReplyData = {
|
|
1882
|
+
body?: never;
|
|
1883
|
+
path: {
|
|
1884
|
+
hostType: 'project' | 'workspace';
|
|
1885
|
+
hostId: string;
|
|
1886
|
+
commentId: string;
|
|
1887
|
+
replyId: string;
|
|
1888
|
+
};
|
|
1889
|
+
query?: never;
|
|
1890
|
+
url: '/comments/{hostType}/{hostId}/{commentId}/replies/{replyId}';
|
|
1891
|
+
};
|
|
1892
|
+
export type DeleteReplyErrors = {
|
|
1893
|
+
/**
|
|
1894
|
+
* Bad request - Invalid parameters or malformed JSON
|
|
1895
|
+
*/
|
|
1896
|
+
400: {
|
|
1897
|
+
message: string;
|
|
1898
|
+
issues?: string;
|
|
1899
|
+
};
|
|
1900
|
+
/**
|
|
1901
|
+
* Unauthorized
|
|
1902
|
+
*/
|
|
1903
|
+
401: ErrorResponse;
|
|
1904
|
+
/**
|
|
1905
|
+
* Forbidden
|
|
1906
|
+
*/
|
|
1907
|
+
403: ErrorResponse;
|
|
1908
|
+
/**
|
|
1909
|
+
* Not Found
|
|
1910
|
+
*/
|
|
1911
|
+
404: ErrorResponse;
|
|
1912
|
+
/**
|
|
1913
|
+
* Conflict
|
|
1914
|
+
*/
|
|
1915
|
+
409: ErrorResponse;
|
|
1916
|
+
/**
|
|
1917
|
+
* Internal server error
|
|
1918
|
+
*/
|
|
1919
|
+
500: ErrorResponse;
|
|
1920
|
+
/**
|
|
1921
|
+
* Service Unavailable
|
|
1922
|
+
*/
|
|
1923
|
+
503: ErrorResponse;
|
|
1924
|
+
};
|
|
1925
|
+
export type DeleteReplyError = DeleteReplyErrors[keyof DeleteReplyErrors];
|
|
1926
|
+
export type DeleteReplyResponses = {
|
|
1927
|
+
/**
|
|
1928
|
+
* Acknowledges that the reply was deleted
|
|
1929
|
+
*/
|
|
1930
|
+
200: {
|
|
1931
|
+
success: true;
|
|
1932
|
+
};
|
|
1933
|
+
};
|
|
1934
|
+
export type DeleteReplyResponse = DeleteReplyResponses[keyof DeleteReplyResponses];
|
|
1935
|
+
export type EditReplyData = {
|
|
1936
|
+
body: EditReplyInput;
|
|
1937
|
+
path: {
|
|
1938
|
+
hostType: 'project' | 'workspace';
|
|
1939
|
+
hostId: string;
|
|
1940
|
+
commentId: string;
|
|
1941
|
+
replyId: string;
|
|
1942
|
+
};
|
|
1943
|
+
query?: never;
|
|
1944
|
+
url: '/comments/{hostType}/{hostId}/{commentId}/replies/{replyId}';
|
|
1945
|
+
};
|
|
1946
|
+
export type EditReplyErrors = {
|
|
1947
|
+
/**
|
|
1948
|
+
* Bad request - Invalid parameters or malformed JSON
|
|
1949
|
+
*/
|
|
1950
|
+
400: {
|
|
1951
|
+
message: string;
|
|
1952
|
+
issues?: string;
|
|
1953
|
+
};
|
|
1954
|
+
/**
|
|
1955
|
+
* Unauthorized
|
|
1956
|
+
*/
|
|
1957
|
+
401: ErrorResponse;
|
|
1958
|
+
/**
|
|
1959
|
+
* Forbidden
|
|
1960
|
+
*/
|
|
1961
|
+
403: ErrorResponse;
|
|
1962
|
+
/**
|
|
1963
|
+
* Not Found
|
|
1964
|
+
*/
|
|
1965
|
+
404: ErrorResponse;
|
|
1966
|
+
/**
|
|
1967
|
+
* Conflict
|
|
1968
|
+
*/
|
|
1969
|
+
409: ErrorResponse;
|
|
1970
|
+
/**
|
|
1971
|
+
* Internal server error
|
|
1972
|
+
*/
|
|
1973
|
+
500: ErrorResponse;
|
|
1974
|
+
/**
|
|
1975
|
+
* Service Unavailable
|
|
1976
|
+
*/
|
|
1977
|
+
503: ErrorResponse;
|
|
1978
|
+
};
|
|
1979
|
+
export type EditReplyError = EditReplyErrors[keyof EditReplyErrors];
|
|
1980
|
+
export type EditReplyResponses = {
|
|
1981
|
+
/**
|
|
1982
|
+
* Returns the updated reply
|
|
1983
|
+
*/
|
|
1984
|
+
200: {
|
|
1985
|
+
reply: {
|
|
1986
|
+
replyId: string;
|
|
1987
|
+
author: {
|
|
1988
|
+
dazlUserId: string;
|
|
1989
|
+
};
|
|
1990
|
+
content: string;
|
|
1991
|
+
mentions: Array<UserMention>;
|
|
1992
|
+
createdAt: string;
|
|
1993
|
+
updatedAt: string;
|
|
1994
|
+
gitInfo?: CommentGitInfo;
|
|
1995
|
+
};
|
|
1996
|
+
};
|
|
1997
|
+
};
|
|
1998
|
+
export type EditReplyResponse = EditReplyResponses[keyof EditReplyResponses];
|
|
1012
1999
|
export type GetPingData = {
|
|
1013
2000
|
body?: never;
|
|
1014
2001
|
path?: never;
|