@dazl/api-client 1.0.1 → 1.0.2

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.
Files changed (95) hide show
  1. package/dist/db/generated-types.d.ts +1 -0
  2. package/dist/db/generated-types.d.ts.map +1 -1
  3. package/dist/internal/index.d.ts +1 -1
  4. package/dist/internal/index.d.ts.map +1 -1
  5. package/dist/internal/sdk.gen.d.ts +41 -1
  6. package/dist/internal/sdk.gen.d.ts.map +1 -1
  7. package/dist/internal/sdk.gen.js +88 -0
  8. package/dist/internal/sdk.gen.js.map +1 -1
  9. package/dist/internal/types.gen.d.ts +703 -0
  10. package/dist/internal/types.gen.d.ts.map +1 -1
  11. package/dist/public/client/client.gen.d.ts +3 -0
  12. package/dist/public/client/client.gen.d.ts.map +1 -0
  13. package/dist/public/client/client.gen.js +217 -0
  14. package/dist/public/client/client.gen.js.map +1 -0
  15. package/dist/public/client/index.d.ts +11 -0
  16. package/dist/public/client/index.d.ts.map +1 -0
  17. package/dist/public/client/index.js +7 -0
  18. package/dist/public/client/index.js.map +1 -0
  19. package/dist/public/client/types.gen.d.ts +121 -0
  20. package/dist/public/client/types.gen.d.ts.map +1 -0
  21. package/dist/public/client/types.gen.js +3 -0
  22. package/dist/public/client/types.gen.js.map +1 -0
  23. package/dist/public/client/utils.gen.d.ts +38 -0
  24. package/dist/public/client/utils.gen.d.ts.map +1 -0
  25. package/dist/public/client/utils.gen.js +229 -0
  26. package/dist/public/client/utils.gen.js.map +1 -0
  27. package/dist/public/client.gen.d.ts +13 -0
  28. package/dist/public/client.gen.d.ts.map +1 -0
  29. package/dist/public/client.gen.js +4 -0
  30. package/dist/public/client.gen.js.map +1 -0
  31. package/dist/public/core/auth.gen.d.ts +26 -0
  32. package/dist/public/core/auth.gen.d.ts.map +1 -0
  33. package/dist/public/core/auth.gen.js +15 -0
  34. package/dist/public/core/auth.gen.js.map +1 -0
  35. package/dist/public/core/bodySerializer.gen.d.ts +26 -0
  36. package/dist/public/core/bodySerializer.gen.d.ts.map +1 -0
  37. package/dist/public/core/bodySerializer.gen.js +58 -0
  38. package/dist/public/core/bodySerializer.gen.js.map +1 -0
  39. package/dist/public/core/params.gen.d.ts +44 -0
  40. package/dist/public/core/params.gen.d.ts.map +1 -0
  41. package/dist/public/core/params.gen.js +110 -0
  42. package/dist/public/core/params.gen.js.map +1 -0
  43. package/dist/public/core/pathSerializer.gen.d.ts +34 -0
  44. package/dist/public/core/pathSerializer.gen.d.ts.map +1 -0
  45. package/dist/public/core/pathSerializer.gen.js +107 -0
  46. package/dist/public/core/pathSerializer.gen.js.map +1 -0
  47. package/dist/public/core/queryKeySerializer.gen.d.ts +19 -0
  48. package/dist/public/core/queryKeySerializer.gen.d.ts.map +1 -0
  49. package/dist/public/core/queryKeySerializer.gen.js +93 -0
  50. package/dist/public/core/queryKeySerializer.gen.js.map +1 -0
  51. package/dist/public/core/serverSentEvents.gen.d.ts +72 -0
  52. package/dist/public/core/serverSentEvents.gen.d.ts.map +1 -0
  53. package/dist/public/core/serverSentEvents.gen.js +133 -0
  54. package/dist/public/core/serverSentEvents.gen.js.map +1 -0
  55. package/dist/public/core/types.gen.d.ts +84 -0
  56. package/dist/public/core/types.gen.d.ts.map +1 -0
  57. package/dist/public/core/types.gen.js +3 -0
  58. package/dist/public/core/types.gen.js.map +1 -0
  59. package/dist/public/core/utils.gen.d.ts +20 -0
  60. package/dist/public/core/utils.gen.d.ts.map +1 -0
  61. package/dist/public/core/utils.gen.js +88 -0
  62. package/dist/public/core/utils.gen.js.map +1 -0
  63. package/dist/public/index.d.ts +3 -0
  64. package/dist/public/index.d.ts.map +1 -0
  65. package/dist/public/index.js +3 -0
  66. package/dist/public/index.js.map +1 -0
  67. package/dist/public/sdk.gen.d.ts +22 -0
  68. package/dist/public/sdk.gen.d.ts.map +1 -0
  69. package/dist/public/sdk.gen.js +10 -0
  70. package/dist/public/sdk.gen.js.map +1 -0
  71. package/dist/public/types.gen.d.ts +56 -0
  72. package/dist/public/types.gen.d.ts.map +1 -0
  73. package/dist/public/types.gen.js +3 -0
  74. package/dist/public/types.gen.js.map +1 -0
  75. package/package.json +4 -1
  76. package/src/db/generated-types.ts +1 -0
  77. package/src/internal/index.ts +1 -1
  78. package/src/internal/sdk.gen.ts +99 -1
  79. package/src/internal/types.gen.ts +757 -0
  80. package/src/public/client/client.gen.ts +277 -0
  81. package/src/public/client/index.ts +27 -0
  82. package/src/public/client/types.gen.ts +218 -0
  83. package/src/public/client/utils.gen.ts +316 -0
  84. package/src/public/client.gen.ts +16 -0
  85. package/src/public/core/auth.gen.ts +48 -0
  86. package/src/public/core/bodySerializer.gen.ts +82 -0
  87. package/src/public/core/params.gen.ts +178 -0
  88. package/src/public/core/pathSerializer.gen.ts +171 -0
  89. package/src/public/core/queryKeySerializer.gen.ts +117 -0
  90. package/src/public/core/serverSentEvents.gen.ts +242 -0
  91. package/src/public/core/types.gen.ts +110 -0
  92. package/src/public/core/utils.gen.ts +140 -0
  93. package/src/public/index.ts +4 -0
  94. package/src/public/sdk.gen.ts +27 -0
  95. package/src/public/types.gen.ts +63 -0
@@ -476,6 +476,27 @@ export type PurgeUserAccountInput = {
476
476
  dryRun?: boolean;
477
477
  };
478
478
 
479
+ export type CreateCommentInput = {
480
+ content: string;
481
+ mentions?: Array<UserMention>;
482
+ context?: CommentContext;
483
+ };
484
+
485
+ export type EditCommentInput = {
486
+ content: string;
487
+ mentions?: Array<UserMention>;
488
+ };
489
+
490
+ export type CreateReplyInput = {
491
+ content: string;
492
+ mentions?: Array<UserMention>;
493
+ };
494
+
495
+ export type EditReplyInput = {
496
+ content: string;
497
+ mentions?: Array<UserMention>;
498
+ };
499
+
479
500
  export type EnsureMyUserData = {
480
501
  body?: {
481
502
  name?: string;
@@ -6190,3 +6211,739 @@ export type GetUserActivePromotionsResponses = {
6190
6211
  };
6191
6212
 
6192
6213
  export type GetUserActivePromotionsResponse = GetUserActivePromotionsResponses[keyof GetUserActivePromotionsResponses];
6214
+
6215
+ export type DeleteCommentData = {
6216
+ body?: never;
6217
+ path: {
6218
+ hostType: 'project' | 'product';
6219
+ hostId: string;
6220
+ commentId: string;
6221
+ };
6222
+ query?: never;
6223
+ url: '/comments/{hostType}/{hostId}/{commentId}';
6224
+ };
6225
+
6226
+ export type DeleteCommentErrors = {
6227
+ /**
6228
+ * Bad request - Invalid parameters or malformed JSON
6229
+ */
6230
+ 400: {
6231
+ message: string;
6232
+ issues?: string;
6233
+ };
6234
+ /**
6235
+ * Unauthorized
6236
+ */
6237
+ 401: ErrorResponse;
6238
+ /**
6239
+ * Forbidden
6240
+ */
6241
+ 403: ErrorResponse;
6242
+ /**
6243
+ * Not Found
6244
+ */
6245
+ 404: ErrorResponse;
6246
+ /**
6247
+ * Conflict
6248
+ */
6249
+ 409: ErrorResponse;
6250
+ /**
6251
+ * Internal server error
6252
+ */
6253
+ 500: ErrorResponse;
6254
+ /**
6255
+ * Service Unavailable
6256
+ */
6257
+ 503: ErrorResponse;
6258
+ };
6259
+
6260
+ export type DeleteCommentError = DeleteCommentErrors[keyof DeleteCommentErrors];
6261
+
6262
+ export type DeleteCommentResponses = {
6263
+ /**
6264
+ * Acknowledges that the comment was deleted
6265
+ */
6266
+ 200: {
6267
+ success: true;
6268
+ };
6269
+ };
6270
+
6271
+ export type DeleteCommentResponse = DeleteCommentResponses[keyof DeleteCommentResponses];
6272
+
6273
+ export type GetCommentData = {
6274
+ body?: never;
6275
+ path: {
6276
+ hostType: 'project' | 'product';
6277
+ hostId: string;
6278
+ commentId: string;
6279
+ };
6280
+ query?: never;
6281
+ url: '/comments/{hostType}/{hostId}/{commentId}';
6282
+ };
6283
+
6284
+ export type GetCommentErrors = {
6285
+ /**
6286
+ * Bad request - Invalid parameters or malformed JSON
6287
+ */
6288
+ 400: {
6289
+ message: string;
6290
+ issues?: string;
6291
+ };
6292
+ /**
6293
+ * Unauthorized
6294
+ */
6295
+ 401: ErrorResponse;
6296
+ /**
6297
+ * Forbidden
6298
+ */
6299
+ 403: ErrorResponse;
6300
+ /**
6301
+ * Not Found
6302
+ */
6303
+ 404: ErrorResponse;
6304
+ /**
6305
+ * Conflict
6306
+ */
6307
+ 409: ErrorResponse;
6308
+ /**
6309
+ * Internal server error
6310
+ */
6311
+ 500: ErrorResponse;
6312
+ /**
6313
+ * Service Unavailable
6314
+ */
6315
+ 503: ErrorResponse;
6316
+ };
6317
+
6318
+ export type GetCommentError = GetCommentErrors[keyof GetCommentErrors];
6319
+
6320
+ export type GetCommentResponses = {
6321
+ /**
6322
+ * Returns comment by id for the host entity
6323
+ */
6324
+ 200: {
6325
+ comment: {
6326
+ commentId: string;
6327
+ author: {
6328
+ dazlUserId: string;
6329
+ };
6330
+ content: string;
6331
+ mentions: Array<UserMention>;
6332
+ createdAt: string;
6333
+ updatedAt: string;
6334
+ lastActivityAt: string;
6335
+ isEdited: boolean;
6336
+ replies: Array<{
6337
+ replyId: string;
6338
+ author: {
6339
+ dazlUserId: string;
6340
+ };
6341
+ content: string;
6342
+ mentions: Array<UserMention>;
6343
+ createdAt: string;
6344
+ updatedAt: string;
6345
+ }>;
6346
+ resolved?: CommentResolved;
6347
+ context?: CommentContext;
6348
+ };
6349
+ };
6350
+ };
6351
+
6352
+ export type GetCommentResponse = GetCommentResponses[keyof GetCommentResponses];
6353
+
6354
+ export type EditCommentData = {
6355
+ body: EditCommentInput;
6356
+ path: {
6357
+ hostType: 'project' | 'product';
6358
+ hostId: string;
6359
+ commentId: string;
6360
+ };
6361
+ query?: never;
6362
+ url: '/comments/{hostType}/{hostId}/{commentId}';
6363
+ };
6364
+
6365
+ export type EditCommentErrors = {
6366
+ /**
6367
+ * Bad request - Invalid parameters or malformed JSON
6368
+ */
6369
+ 400: {
6370
+ message: string;
6371
+ issues?: string;
6372
+ };
6373
+ /**
6374
+ * Unauthorized
6375
+ */
6376
+ 401: ErrorResponse;
6377
+ /**
6378
+ * Forbidden
6379
+ */
6380
+ 403: ErrorResponse;
6381
+ /**
6382
+ * Not Found
6383
+ */
6384
+ 404: ErrorResponse;
6385
+ /**
6386
+ * Conflict
6387
+ */
6388
+ 409: ErrorResponse;
6389
+ /**
6390
+ * Internal server error
6391
+ */
6392
+ 500: ErrorResponse;
6393
+ /**
6394
+ * Service Unavailable
6395
+ */
6396
+ 503: ErrorResponse;
6397
+ };
6398
+
6399
+ export type EditCommentError = EditCommentErrors[keyof EditCommentErrors];
6400
+
6401
+ export type EditCommentResponses = {
6402
+ /**
6403
+ * Returns the updated comment
6404
+ */
6405
+ 200: {
6406
+ comment: {
6407
+ commentId: string;
6408
+ author: {
6409
+ dazlUserId: string;
6410
+ };
6411
+ content: string;
6412
+ mentions: Array<UserMention>;
6413
+ createdAt: string;
6414
+ updatedAt: string;
6415
+ lastActivityAt: string;
6416
+ isEdited: boolean;
6417
+ replies: Array<{
6418
+ replyId: string;
6419
+ author: {
6420
+ dazlUserId: string;
6421
+ };
6422
+ content: string;
6423
+ mentions: Array<UserMention>;
6424
+ createdAt: string;
6425
+ updatedAt: string;
6426
+ }>;
6427
+ resolved?: CommentResolved;
6428
+ context?: CommentContext;
6429
+ };
6430
+ };
6431
+ };
6432
+
6433
+ export type EditCommentResponse = EditCommentResponses[keyof EditCommentResponses];
6434
+
6435
+ export type ListCommentsData = {
6436
+ body?: never;
6437
+ path: {
6438
+ hostType: 'project' | 'product';
6439
+ hostId: string;
6440
+ };
6441
+ query?: never;
6442
+ url: '/comments/{hostType}/{hostId}';
6443
+ };
6444
+
6445
+ export type ListCommentsErrors = {
6446
+ /**
6447
+ * Bad request - Invalid parameters or malformed JSON
6448
+ */
6449
+ 400: {
6450
+ message: string;
6451
+ issues?: string;
6452
+ };
6453
+ /**
6454
+ * Unauthorized
6455
+ */
6456
+ 401: ErrorResponse;
6457
+ /**
6458
+ * Forbidden
6459
+ */
6460
+ 403: ErrorResponse;
6461
+ /**
6462
+ * Not Found
6463
+ */
6464
+ 404: ErrorResponse;
6465
+ /**
6466
+ * Conflict
6467
+ */
6468
+ 409: ErrorResponse;
6469
+ /**
6470
+ * Internal server error
6471
+ */
6472
+ 500: ErrorResponse;
6473
+ /**
6474
+ * Service Unavailable
6475
+ */
6476
+ 503: ErrorResponse;
6477
+ };
6478
+
6479
+ export type ListCommentsError = ListCommentsErrors[keyof ListCommentsErrors];
6480
+
6481
+ export type ListCommentsResponses = {
6482
+ /**
6483
+ * Returns the list of comments for the host entity
6484
+ */
6485
+ 200: {
6486
+ comments: Array<{
6487
+ commentId: string;
6488
+ author: {
6489
+ dazlUserId: string;
6490
+ };
6491
+ content: string;
6492
+ mentions: Array<UserMention>;
6493
+ createdAt: string;
6494
+ updatedAt: string;
6495
+ lastActivityAt: string;
6496
+ isEdited: boolean;
6497
+ replies: Array<{
6498
+ replyId: string;
6499
+ author: {
6500
+ dazlUserId: string;
6501
+ };
6502
+ content: string;
6503
+ mentions: Array<UserMention>;
6504
+ createdAt: string;
6505
+ updatedAt: string;
6506
+ }>;
6507
+ resolved?: CommentResolved;
6508
+ context?: CommentContext;
6509
+ }>;
6510
+ };
6511
+ };
6512
+
6513
+ export type ListCommentsResponse = ListCommentsResponses[keyof ListCommentsResponses];
6514
+
6515
+ export type CreateCommentData = {
6516
+ body: CreateCommentInput;
6517
+ path: {
6518
+ hostType: 'project' | 'product';
6519
+ hostId: string;
6520
+ };
6521
+ query?: never;
6522
+ url: '/comments/{hostType}/{hostId}';
6523
+ };
6524
+
6525
+ export type CreateCommentErrors = {
6526
+ /**
6527
+ * Bad request - Invalid parameters or malformed JSON
6528
+ */
6529
+ 400: {
6530
+ message: string;
6531
+ issues?: string;
6532
+ };
6533
+ /**
6534
+ * Unauthorized
6535
+ */
6536
+ 401: ErrorResponse;
6537
+ /**
6538
+ * Forbidden
6539
+ */
6540
+ 403: ErrorResponse;
6541
+ /**
6542
+ * Not Found
6543
+ */
6544
+ 404: ErrorResponse;
6545
+ /**
6546
+ * Conflict
6547
+ */
6548
+ 409: ErrorResponse;
6549
+ /**
6550
+ * Internal server error
6551
+ */
6552
+ 500: ErrorResponse;
6553
+ /**
6554
+ * Service Unavailable
6555
+ */
6556
+ 503: ErrorResponse;
6557
+ };
6558
+
6559
+ export type CreateCommentError = CreateCommentErrors[keyof CreateCommentErrors];
6560
+
6561
+ export type CreateCommentResponses = {
6562
+ /**
6563
+ * Returns the created comment
6564
+ */
6565
+ 200: {
6566
+ comment: {
6567
+ commentId: string;
6568
+ author: {
6569
+ dazlUserId: string;
6570
+ };
6571
+ content: string;
6572
+ mentions: Array<UserMention>;
6573
+ createdAt: string;
6574
+ updatedAt: string;
6575
+ lastActivityAt: string;
6576
+ isEdited: boolean;
6577
+ replies: Array<{
6578
+ replyId: string;
6579
+ author: {
6580
+ dazlUserId: string;
6581
+ };
6582
+ content: string;
6583
+ mentions: Array<UserMention>;
6584
+ createdAt: string;
6585
+ updatedAt: string;
6586
+ }>;
6587
+ resolved?: CommentResolved;
6588
+ context?: CommentContext;
6589
+ };
6590
+ };
6591
+ };
6592
+
6593
+ export type CreateCommentResponse = CreateCommentResponses[keyof CreateCommentResponses];
6594
+
6595
+ export type ResolveCommentData = {
6596
+ body?: never;
6597
+ path: {
6598
+ hostType: 'project' | 'product';
6599
+ hostId: string;
6600
+ commentId: string;
6601
+ };
6602
+ query?: never;
6603
+ url: '/comments/{hostType}/{hostId}/{commentId}/resolve';
6604
+ };
6605
+
6606
+ export type ResolveCommentErrors = {
6607
+ /**
6608
+ * Bad request - Invalid parameters or malformed JSON
6609
+ */
6610
+ 400: {
6611
+ message: string;
6612
+ issues?: string;
6613
+ };
6614
+ /**
6615
+ * Unauthorized
6616
+ */
6617
+ 401: ErrorResponse;
6618
+ /**
6619
+ * Forbidden
6620
+ */
6621
+ 403: ErrorResponse;
6622
+ /**
6623
+ * Not Found
6624
+ */
6625
+ 404: ErrorResponse;
6626
+ /**
6627
+ * Conflict
6628
+ */
6629
+ 409: ErrorResponse;
6630
+ /**
6631
+ * Internal server error
6632
+ */
6633
+ 500: ErrorResponse;
6634
+ /**
6635
+ * Service Unavailable
6636
+ */
6637
+ 503: ErrorResponse;
6638
+ };
6639
+
6640
+ export type ResolveCommentError = ResolveCommentErrors[keyof ResolveCommentErrors];
6641
+
6642
+ export type ResolveCommentResponses = {
6643
+ /**
6644
+ * Returns the resolved comment
6645
+ */
6646
+ 200: {
6647
+ comment: {
6648
+ commentId: string;
6649
+ author: {
6650
+ dazlUserId: string;
6651
+ };
6652
+ content: string;
6653
+ mentions: Array<UserMention>;
6654
+ createdAt: string;
6655
+ updatedAt: string;
6656
+ lastActivityAt: string;
6657
+ isEdited: boolean;
6658
+ replies: Array<{
6659
+ replyId: string;
6660
+ author: {
6661
+ dazlUserId: string;
6662
+ };
6663
+ content: string;
6664
+ mentions: Array<UserMention>;
6665
+ createdAt: string;
6666
+ updatedAt: string;
6667
+ }>;
6668
+ resolved?: CommentResolved;
6669
+ context?: CommentContext;
6670
+ };
6671
+ };
6672
+ };
6673
+
6674
+ export type ResolveCommentResponse = ResolveCommentResponses[keyof ResolveCommentResponses];
6675
+
6676
+ export type ReopenCommentData = {
6677
+ body?: never;
6678
+ path: {
6679
+ hostType: 'project' | 'product';
6680
+ hostId: string;
6681
+ commentId: string;
6682
+ };
6683
+ query?: never;
6684
+ url: '/comments/{hostType}/{hostId}/{commentId}/reopen';
6685
+ };
6686
+
6687
+ export type ReopenCommentErrors = {
6688
+ /**
6689
+ * Bad request - Invalid parameters or malformed JSON
6690
+ */
6691
+ 400: {
6692
+ message: string;
6693
+ issues?: string;
6694
+ };
6695
+ /**
6696
+ * Unauthorized
6697
+ */
6698
+ 401: ErrorResponse;
6699
+ /**
6700
+ * Forbidden
6701
+ */
6702
+ 403: ErrorResponse;
6703
+ /**
6704
+ * Not Found
6705
+ */
6706
+ 404: ErrorResponse;
6707
+ /**
6708
+ * Conflict
6709
+ */
6710
+ 409: ErrorResponse;
6711
+ /**
6712
+ * Internal server error
6713
+ */
6714
+ 500: ErrorResponse;
6715
+ /**
6716
+ * Service Unavailable
6717
+ */
6718
+ 503: ErrorResponse;
6719
+ };
6720
+
6721
+ export type ReopenCommentError = ReopenCommentErrors[keyof ReopenCommentErrors];
6722
+
6723
+ export type ReopenCommentResponses = {
6724
+ /**
6725
+ * Returns the reopened comment
6726
+ */
6727
+ 200: {
6728
+ comment: {
6729
+ commentId: string;
6730
+ author: {
6731
+ dazlUserId: string;
6732
+ };
6733
+ content: string;
6734
+ mentions: Array<UserMention>;
6735
+ createdAt: string;
6736
+ updatedAt: string;
6737
+ lastActivityAt: string;
6738
+ isEdited: boolean;
6739
+ replies: Array<{
6740
+ replyId: string;
6741
+ author: {
6742
+ dazlUserId: string;
6743
+ };
6744
+ content: string;
6745
+ mentions: Array<UserMention>;
6746
+ createdAt: string;
6747
+ updatedAt: string;
6748
+ }>;
6749
+ resolved?: CommentResolved;
6750
+ context?: CommentContext;
6751
+ };
6752
+ };
6753
+ };
6754
+
6755
+ export type ReopenCommentResponse = ReopenCommentResponses[keyof ReopenCommentResponses];
6756
+
6757
+ export type CreateReplyData = {
6758
+ body: CreateReplyInput;
6759
+ path: {
6760
+ hostType: 'project' | 'product';
6761
+ hostId: string;
6762
+ commentId: string;
6763
+ };
6764
+ query?: never;
6765
+ url: '/comments/{hostType}/{hostId}/{commentId}/replies';
6766
+ };
6767
+
6768
+ export type CreateReplyErrors = {
6769
+ /**
6770
+ * Bad request - Invalid parameters or malformed JSON
6771
+ */
6772
+ 400: {
6773
+ message: string;
6774
+ issues?: string;
6775
+ };
6776
+ /**
6777
+ * Unauthorized
6778
+ */
6779
+ 401: ErrorResponse;
6780
+ /**
6781
+ * Forbidden
6782
+ */
6783
+ 403: ErrorResponse;
6784
+ /**
6785
+ * Not Found
6786
+ */
6787
+ 404: ErrorResponse;
6788
+ /**
6789
+ * Conflict
6790
+ */
6791
+ 409: ErrorResponse;
6792
+ /**
6793
+ * Internal server error
6794
+ */
6795
+ 500: ErrorResponse;
6796
+ /**
6797
+ * Service Unavailable
6798
+ */
6799
+ 503: ErrorResponse;
6800
+ };
6801
+
6802
+ export type CreateReplyError = CreateReplyErrors[keyof CreateReplyErrors];
6803
+
6804
+ export type CreateReplyResponses = {
6805
+ /**
6806
+ * Returns the created reply
6807
+ */
6808
+ 200: {
6809
+ reply: {
6810
+ replyId: string;
6811
+ author: {
6812
+ dazlUserId: string;
6813
+ };
6814
+ content: string;
6815
+ mentions: Array<UserMention>;
6816
+ createdAt: string;
6817
+ updatedAt: string;
6818
+ };
6819
+ };
6820
+ };
6821
+
6822
+ export type CreateReplyResponse = CreateReplyResponses[keyof CreateReplyResponses];
6823
+
6824
+ export type DeleteReplyData = {
6825
+ body?: never;
6826
+ path: {
6827
+ hostType: 'project' | 'product';
6828
+ hostId: string;
6829
+ commentId: string;
6830
+ replyId: string;
6831
+ };
6832
+ query?: never;
6833
+ url: '/comments/{hostType}/{hostId}/{commentId}/replies/{replyId}';
6834
+ };
6835
+
6836
+ export type DeleteReplyErrors = {
6837
+ /**
6838
+ * Bad request - Invalid parameters or malformed JSON
6839
+ */
6840
+ 400: {
6841
+ message: string;
6842
+ issues?: string;
6843
+ };
6844
+ /**
6845
+ * Unauthorized
6846
+ */
6847
+ 401: ErrorResponse;
6848
+ /**
6849
+ * Forbidden
6850
+ */
6851
+ 403: ErrorResponse;
6852
+ /**
6853
+ * Not Found
6854
+ */
6855
+ 404: ErrorResponse;
6856
+ /**
6857
+ * Conflict
6858
+ */
6859
+ 409: ErrorResponse;
6860
+ /**
6861
+ * Internal server error
6862
+ */
6863
+ 500: ErrorResponse;
6864
+ /**
6865
+ * Service Unavailable
6866
+ */
6867
+ 503: ErrorResponse;
6868
+ };
6869
+
6870
+ export type DeleteReplyError = DeleteReplyErrors[keyof DeleteReplyErrors];
6871
+
6872
+ export type DeleteReplyResponses = {
6873
+ /**
6874
+ * Acknowledges that the reply was deleted
6875
+ */
6876
+ 200: {
6877
+ success: true;
6878
+ };
6879
+ };
6880
+
6881
+ export type DeleteReplyResponse = DeleteReplyResponses[keyof DeleteReplyResponses];
6882
+
6883
+ export type EditReplyData = {
6884
+ body: EditReplyInput;
6885
+ path: {
6886
+ hostType: 'project' | 'product';
6887
+ hostId: string;
6888
+ commentId: string;
6889
+ replyId: string;
6890
+ };
6891
+ query?: never;
6892
+ url: '/comments/{hostType}/{hostId}/{commentId}/replies/{replyId}';
6893
+ };
6894
+
6895
+ export type EditReplyErrors = {
6896
+ /**
6897
+ * Bad request - Invalid parameters or malformed JSON
6898
+ */
6899
+ 400: {
6900
+ message: string;
6901
+ issues?: string;
6902
+ };
6903
+ /**
6904
+ * Unauthorized
6905
+ */
6906
+ 401: ErrorResponse;
6907
+ /**
6908
+ * Forbidden
6909
+ */
6910
+ 403: ErrorResponse;
6911
+ /**
6912
+ * Not Found
6913
+ */
6914
+ 404: ErrorResponse;
6915
+ /**
6916
+ * Conflict
6917
+ */
6918
+ 409: ErrorResponse;
6919
+ /**
6920
+ * Internal server error
6921
+ */
6922
+ 500: ErrorResponse;
6923
+ /**
6924
+ * Service Unavailable
6925
+ */
6926
+ 503: ErrorResponse;
6927
+ };
6928
+
6929
+ export type EditReplyError = EditReplyErrors[keyof EditReplyErrors];
6930
+
6931
+ export type EditReplyResponses = {
6932
+ /**
6933
+ * Returns the updated reply
6934
+ */
6935
+ 200: {
6936
+ reply: {
6937
+ replyId: string;
6938
+ author: {
6939
+ dazlUserId: string;
6940
+ };
6941
+ content: string;
6942
+ mentions: Array<UserMention>;
6943
+ createdAt: string;
6944
+ updatedAt: string;
6945
+ };
6946
+ };
6947
+ };
6948
+
6949
+ export type EditReplyResponse = EditReplyResponses[keyof EditReplyResponses];