@dazl/api-client 1.0.1 → 1.0.3

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 +10 -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 +43 -1
  6. package/dist/internal/sdk.gen.d.ts.map +1 -1
  7. package/dist/internal/sdk.gen.js +101 -0
  8. package/dist/internal/sdk.gen.js.map +1 -1
  9. package/dist/internal/types.gen.d.ts +825 -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 +11 -0
  77. package/src/internal/index.ts +1 -1
  78. package/src/internal/sdk.gen.ts +114 -1
  79. package/src/internal/types.gen.ts +889 -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;
@@ -2458,6 +2479,133 @@ export type UpdateProjectResponses = {
2458
2479
 
2459
2480
  export type UpdateProjectResponse = UpdateProjectResponses[keyof UpdateProjectResponses];
2460
2481
 
2482
+ export type MarkProjectAsInitializedData = {
2483
+ body: {
2484
+ /**
2485
+ * The dazl ID of the requesting user, used for permission checks
2486
+ */
2487
+ ownerDazlId: string;
2488
+ };
2489
+ path: {
2490
+ projectId: string;
2491
+ };
2492
+ query?: never;
2493
+ url: '/project/{projectId}/project-init-data';
2494
+ };
2495
+
2496
+ export type MarkProjectAsInitializedErrors = {
2497
+ /**
2498
+ * Bad request - Invalid parameters or malformed JSON
2499
+ */
2500
+ 400: {
2501
+ message: string;
2502
+ issues?: string;
2503
+ };
2504
+ /**
2505
+ * Unauthorized
2506
+ */
2507
+ 401: ErrorResponse;
2508
+ /**
2509
+ * Forbidden
2510
+ */
2511
+ 403: ErrorResponse;
2512
+ /**
2513
+ * Not Found
2514
+ */
2515
+ 404: ErrorResponse;
2516
+ /**
2517
+ * Conflict
2518
+ */
2519
+ 409: ErrorResponse;
2520
+ /**
2521
+ * Internal server error
2522
+ */
2523
+ 500: ErrorResponse;
2524
+ /**
2525
+ * Service Unavailable
2526
+ */
2527
+ 503: ErrorResponse;
2528
+ };
2529
+
2530
+ export type MarkProjectAsInitializedError = MarkProjectAsInitializedErrors[keyof MarkProjectAsInitializedErrors];
2531
+
2532
+ export type MarkProjectAsInitializedResponses = {
2533
+ /**
2534
+ * Returns the project ID and confirmation that the project was marked as initialized
2535
+ */
2536
+ 200: {
2537
+ projectId: string;
2538
+ };
2539
+ };
2540
+
2541
+ export type MarkProjectAsInitializedResponse = MarkProjectAsInitializedResponses[keyof MarkProjectAsInitializedResponses];
2542
+
2543
+ export type GetProjectInitDataData = {
2544
+ body?: never;
2545
+ path: {
2546
+ projectId: string;
2547
+ };
2548
+ query: {
2549
+ /**
2550
+ * The dazl ID of the requesting user, used for permission checks
2551
+ */
2552
+ ownerDazlId: string;
2553
+ };
2554
+ url: '/project/{projectId}/project-init-data';
2555
+ };
2556
+
2557
+ export type GetProjectInitDataErrors = {
2558
+ /**
2559
+ * Bad request - Invalid parameters or malformed JSON
2560
+ */
2561
+ 400: {
2562
+ message: string;
2563
+ issues?: string;
2564
+ };
2565
+ /**
2566
+ * Unauthorized
2567
+ */
2568
+ 401: ErrorResponse;
2569
+ /**
2570
+ * Forbidden
2571
+ */
2572
+ 403: ErrorResponse;
2573
+ /**
2574
+ * Not Found
2575
+ */
2576
+ 404: ErrorResponse;
2577
+ /**
2578
+ * Conflict
2579
+ */
2580
+ 409: ErrorResponse;
2581
+ /**
2582
+ * Internal server error
2583
+ */
2584
+ 500: ErrorResponse;
2585
+ /**
2586
+ * Service Unavailable
2587
+ */
2588
+ 503: ErrorResponse;
2589
+ };
2590
+
2591
+ export type GetProjectInitDataError = GetProjectInitDataErrors[keyof GetProjectInitDataErrors];
2592
+
2593
+ export type GetProjectInitDataResponses = {
2594
+ /**
2595
+ * Returns the project initialization data
2596
+ */
2597
+ 200: {
2598
+ projectId: string;
2599
+ gitRepoURL: string;
2600
+ gitBranchToClone: string | null;
2601
+ gitBranchToCreate: string | null;
2602
+ createdAt: string;
2603
+ updatedAt: string;
2604
+ };
2605
+ };
2606
+
2607
+ export type GetProjectInitDataResponse = GetProjectInitDataResponses[keyof GetProjectInitDataResponses];
2608
+
2461
2609
  export type CreateProjectData = {
2462
2610
  body: {
2463
2611
  name: string;
@@ -2465,6 +2613,11 @@ export type CreateProjectData = {
2465
2613
  latestScreenshot?: string | null;
2466
2614
  originTemplateId?: string | null;
2467
2615
  createdAt?: string;
2616
+ projectInitData?: {
2617
+ gitRepoURL: string;
2618
+ gitBranchToClone?: string | null;
2619
+ gitBranchToCreate?: string | null;
2620
+ };
2468
2621
  };
2469
2622
  path?: never;
2470
2623
  query?: never;
@@ -6190,3 +6343,739 @@ export type GetUserActivePromotionsResponses = {
6190
6343
  };
6191
6344
 
6192
6345
  export type GetUserActivePromotionsResponse = GetUserActivePromotionsResponses[keyof GetUserActivePromotionsResponses];
6346
+
6347
+ export type DeleteCommentData = {
6348
+ body?: never;
6349
+ path: {
6350
+ hostType: 'project' | 'product';
6351
+ hostId: string;
6352
+ commentId: string;
6353
+ };
6354
+ query?: never;
6355
+ url: '/comments/{hostType}/{hostId}/{commentId}';
6356
+ };
6357
+
6358
+ export type DeleteCommentErrors = {
6359
+ /**
6360
+ * Bad request - Invalid parameters or malformed JSON
6361
+ */
6362
+ 400: {
6363
+ message: string;
6364
+ issues?: string;
6365
+ };
6366
+ /**
6367
+ * Unauthorized
6368
+ */
6369
+ 401: ErrorResponse;
6370
+ /**
6371
+ * Forbidden
6372
+ */
6373
+ 403: ErrorResponse;
6374
+ /**
6375
+ * Not Found
6376
+ */
6377
+ 404: ErrorResponse;
6378
+ /**
6379
+ * Conflict
6380
+ */
6381
+ 409: ErrorResponse;
6382
+ /**
6383
+ * Internal server error
6384
+ */
6385
+ 500: ErrorResponse;
6386
+ /**
6387
+ * Service Unavailable
6388
+ */
6389
+ 503: ErrorResponse;
6390
+ };
6391
+
6392
+ export type DeleteCommentError = DeleteCommentErrors[keyof DeleteCommentErrors];
6393
+
6394
+ export type DeleteCommentResponses = {
6395
+ /**
6396
+ * Acknowledges that the comment was deleted
6397
+ */
6398
+ 200: {
6399
+ success: true;
6400
+ };
6401
+ };
6402
+
6403
+ export type DeleteCommentResponse = DeleteCommentResponses[keyof DeleteCommentResponses];
6404
+
6405
+ export type GetCommentData = {
6406
+ body?: never;
6407
+ path: {
6408
+ hostType: 'project' | 'product';
6409
+ hostId: string;
6410
+ commentId: string;
6411
+ };
6412
+ query?: never;
6413
+ url: '/comments/{hostType}/{hostId}/{commentId}';
6414
+ };
6415
+
6416
+ export type GetCommentErrors = {
6417
+ /**
6418
+ * Bad request - Invalid parameters or malformed JSON
6419
+ */
6420
+ 400: {
6421
+ message: string;
6422
+ issues?: string;
6423
+ };
6424
+ /**
6425
+ * Unauthorized
6426
+ */
6427
+ 401: ErrorResponse;
6428
+ /**
6429
+ * Forbidden
6430
+ */
6431
+ 403: ErrorResponse;
6432
+ /**
6433
+ * Not Found
6434
+ */
6435
+ 404: ErrorResponse;
6436
+ /**
6437
+ * Conflict
6438
+ */
6439
+ 409: ErrorResponse;
6440
+ /**
6441
+ * Internal server error
6442
+ */
6443
+ 500: ErrorResponse;
6444
+ /**
6445
+ * Service Unavailable
6446
+ */
6447
+ 503: ErrorResponse;
6448
+ };
6449
+
6450
+ export type GetCommentError = GetCommentErrors[keyof GetCommentErrors];
6451
+
6452
+ export type GetCommentResponses = {
6453
+ /**
6454
+ * Returns comment by id for the host entity
6455
+ */
6456
+ 200: {
6457
+ comment: {
6458
+ commentId: string;
6459
+ author: {
6460
+ dazlUserId: string;
6461
+ };
6462
+ content: string;
6463
+ mentions: Array<UserMention>;
6464
+ createdAt: string;
6465
+ updatedAt: string;
6466
+ lastActivityAt: string;
6467
+ isEdited: boolean;
6468
+ replies: Array<{
6469
+ replyId: string;
6470
+ author: {
6471
+ dazlUserId: string;
6472
+ };
6473
+ content: string;
6474
+ mentions: Array<UserMention>;
6475
+ createdAt: string;
6476
+ updatedAt: string;
6477
+ }>;
6478
+ resolved?: CommentResolved;
6479
+ context?: CommentContext;
6480
+ };
6481
+ };
6482
+ };
6483
+
6484
+ export type GetCommentResponse = GetCommentResponses[keyof GetCommentResponses];
6485
+
6486
+ export type EditCommentData = {
6487
+ body: EditCommentInput;
6488
+ path: {
6489
+ hostType: 'project' | 'product';
6490
+ hostId: string;
6491
+ commentId: string;
6492
+ };
6493
+ query?: never;
6494
+ url: '/comments/{hostType}/{hostId}/{commentId}';
6495
+ };
6496
+
6497
+ export type EditCommentErrors = {
6498
+ /**
6499
+ * Bad request - Invalid parameters or malformed JSON
6500
+ */
6501
+ 400: {
6502
+ message: string;
6503
+ issues?: string;
6504
+ };
6505
+ /**
6506
+ * Unauthorized
6507
+ */
6508
+ 401: ErrorResponse;
6509
+ /**
6510
+ * Forbidden
6511
+ */
6512
+ 403: ErrorResponse;
6513
+ /**
6514
+ * Not Found
6515
+ */
6516
+ 404: ErrorResponse;
6517
+ /**
6518
+ * Conflict
6519
+ */
6520
+ 409: ErrorResponse;
6521
+ /**
6522
+ * Internal server error
6523
+ */
6524
+ 500: ErrorResponse;
6525
+ /**
6526
+ * Service Unavailable
6527
+ */
6528
+ 503: ErrorResponse;
6529
+ };
6530
+
6531
+ export type EditCommentError = EditCommentErrors[keyof EditCommentErrors];
6532
+
6533
+ export type EditCommentResponses = {
6534
+ /**
6535
+ * Returns the updated comment
6536
+ */
6537
+ 200: {
6538
+ comment: {
6539
+ commentId: string;
6540
+ author: {
6541
+ dazlUserId: string;
6542
+ };
6543
+ content: string;
6544
+ mentions: Array<UserMention>;
6545
+ createdAt: string;
6546
+ updatedAt: string;
6547
+ lastActivityAt: string;
6548
+ isEdited: boolean;
6549
+ replies: Array<{
6550
+ replyId: string;
6551
+ author: {
6552
+ dazlUserId: string;
6553
+ };
6554
+ content: string;
6555
+ mentions: Array<UserMention>;
6556
+ createdAt: string;
6557
+ updatedAt: string;
6558
+ }>;
6559
+ resolved?: CommentResolved;
6560
+ context?: CommentContext;
6561
+ };
6562
+ };
6563
+ };
6564
+
6565
+ export type EditCommentResponse = EditCommentResponses[keyof EditCommentResponses];
6566
+
6567
+ export type ListCommentsData = {
6568
+ body?: never;
6569
+ path: {
6570
+ hostType: 'project' | 'product';
6571
+ hostId: string;
6572
+ };
6573
+ query?: never;
6574
+ url: '/comments/{hostType}/{hostId}';
6575
+ };
6576
+
6577
+ export type ListCommentsErrors = {
6578
+ /**
6579
+ * Bad request - Invalid parameters or malformed JSON
6580
+ */
6581
+ 400: {
6582
+ message: string;
6583
+ issues?: string;
6584
+ };
6585
+ /**
6586
+ * Unauthorized
6587
+ */
6588
+ 401: ErrorResponse;
6589
+ /**
6590
+ * Forbidden
6591
+ */
6592
+ 403: ErrorResponse;
6593
+ /**
6594
+ * Not Found
6595
+ */
6596
+ 404: ErrorResponse;
6597
+ /**
6598
+ * Conflict
6599
+ */
6600
+ 409: ErrorResponse;
6601
+ /**
6602
+ * Internal server error
6603
+ */
6604
+ 500: ErrorResponse;
6605
+ /**
6606
+ * Service Unavailable
6607
+ */
6608
+ 503: ErrorResponse;
6609
+ };
6610
+
6611
+ export type ListCommentsError = ListCommentsErrors[keyof ListCommentsErrors];
6612
+
6613
+ export type ListCommentsResponses = {
6614
+ /**
6615
+ * Returns the list of comments for the host entity
6616
+ */
6617
+ 200: {
6618
+ comments: Array<{
6619
+ commentId: string;
6620
+ author: {
6621
+ dazlUserId: string;
6622
+ };
6623
+ content: string;
6624
+ mentions: Array<UserMention>;
6625
+ createdAt: string;
6626
+ updatedAt: string;
6627
+ lastActivityAt: string;
6628
+ isEdited: boolean;
6629
+ replies: Array<{
6630
+ replyId: string;
6631
+ author: {
6632
+ dazlUserId: string;
6633
+ };
6634
+ content: string;
6635
+ mentions: Array<UserMention>;
6636
+ createdAt: string;
6637
+ updatedAt: string;
6638
+ }>;
6639
+ resolved?: CommentResolved;
6640
+ context?: CommentContext;
6641
+ }>;
6642
+ };
6643
+ };
6644
+
6645
+ export type ListCommentsResponse = ListCommentsResponses[keyof ListCommentsResponses];
6646
+
6647
+ export type CreateCommentData = {
6648
+ body: CreateCommentInput;
6649
+ path: {
6650
+ hostType: 'project' | 'product';
6651
+ hostId: string;
6652
+ };
6653
+ query?: never;
6654
+ url: '/comments/{hostType}/{hostId}';
6655
+ };
6656
+
6657
+ export type CreateCommentErrors = {
6658
+ /**
6659
+ * Bad request - Invalid parameters or malformed JSON
6660
+ */
6661
+ 400: {
6662
+ message: string;
6663
+ issues?: string;
6664
+ };
6665
+ /**
6666
+ * Unauthorized
6667
+ */
6668
+ 401: ErrorResponse;
6669
+ /**
6670
+ * Forbidden
6671
+ */
6672
+ 403: ErrorResponse;
6673
+ /**
6674
+ * Not Found
6675
+ */
6676
+ 404: ErrorResponse;
6677
+ /**
6678
+ * Conflict
6679
+ */
6680
+ 409: ErrorResponse;
6681
+ /**
6682
+ * Internal server error
6683
+ */
6684
+ 500: ErrorResponse;
6685
+ /**
6686
+ * Service Unavailable
6687
+ */
6688
+ 503: ErrorResponse;
6689
+ };
6690
+
6691
+ export type CreateCommentError = CreateCommentErrors[keyof CreateCommentErrors];
6692
+
6693
+ export type CreateCommentResponses = {
6694
+ /**
6695
+ * Returns the created comment
6696
+ */
6697
+ 200: {
6698
+ comment: {
6699
+ commentId: string;
6700
+ author: {
6701
+ dazlUserId: string;
6702
+ };
6703
+ content: string;
6704
+ mentions: Array<UserMention>;
6705
+ createdAt: string;
6706
+ updatedAt: string;
6707
+ lastActivityAt: string;
6708
+ isEdited: boolean;
6709
+ replies: Array<{
6710
+ replyId: string;
6711
+ author: {
6712
+ dazlUserId: string;
6713
+ };
6714
+ content: string;
6715
+ mentions: Array<UserMention>;
6716
+ createdAt: string;
6717
+ updatedAt: string;
6718
+ }>;
6719
+ resolved?: CommentResolved;
6720
+ context?: CommentContext;
6721
+ };
6722
+ };
6723
+ };
6724
+
6725
+ export type CreateCommentResponse = CreateCommentResponses[keyof CreateCommentResponses];
6726
+
6727
+ export type ResolveCommentData = {
6728
+ body?: never;
6729
+ path: {
6730
+ hostType: 'project' | 'product';
6731
+ hostId: string;
6732
+ commentId: string;
6733
+ };
6734
+ query?: never;
6735
+ url: '/comments/{hostType}/{hostId}/{commentId}/resolve';
6736
+ };
6737
+
6738
+ export type ResolveCommentErrors = {
6739
+ /**
6740
+ * Bad request - Invalid parameters or malformed JSON
6741
+ */
6742
+ 400: {
6743
+ message: string;
6744
+ issues?: string;
6745
+ };
6746
+ /**
6747
+ * Unauthorized
6748
+ */
6749
+ 401: ErrorResponse;
6750
+ /**
6751
+ * Forbidden
6752
+ */
6753
+ 403: ErrorResponse;
6754
+ /**
6755
+ * Not Found
6756
+ */
6757
+ 404: ErrorResponse;
6758
+ /**
6759
+ * Conflict
6760
+ */
6761
+ 409: ErrorResponse;
6762
+ /**
6763
+ * Internal server error
6764
+ */
6765
+ 500: ErrorResponse;
6766
+ /**
6767
+ * Service Unavailable
6768
+ */
6769
+ 503: ErrorResponse;
6770
+ };
6771
+
6772
+ export type ResolveCommentError = ResolveCommentErrors[keyof ResolveCommentErrors];
6773
+
6774
+ export type ResolveCommentResponses = {
6775
+ /**
6776
+ * Returns the resolved comment
6777
+ */
6778
+ 200: {
6779
+ comment: {
6780
+ commentId: string;
6781
+ author: {
6782
+ dazlUserId: string;
6783
+ };
6784
+ content: string;
6785
+ mentions: Array<UserMention>;
6786
+ createdAt: string;
6787
+ updatedAt: string;
6788
+ lastActivityAt: string;
6789
+ isEdited: boolean;
6790
+ replies: Array<{
6791
+ replyId: string;
6792
+ author: {
6793
+ dazlUserId: string;
6794
+ };
6795
+ content: string;
6796
+ mentions: Array<UserMention>;
6797
+ createdAt: string;
6798
+ updatedAt: string;
6799
+ }>;
6800
+ resolved?: CommentResolved;
6801
+ context?: CommentContext;
6802
+ };
6803
+ };
6804
+ };
6805
+
6806
+ export type ResolveCommentResponse = ResolveCommentResponses[keyof ResolveCommentResponses];
6807
+
6808
+ export type ReopenCommentData = {
6809
+ body?: never;
6810
+ path: {
6811
+ hostType: 'project' | 'product';
6812
+ hostId: string;
6813
+ commentId: string;
6814
+ };
6815
+ query?: never;
6816
+ url: '/comments/{hostType}/{hostId}/{commentId}/reopen';
6817
+ };
6818
+
6819
+ export type ReopenCommentErrors = {
6820
+ /**
6821
+ * Bad request - Invalid parameters or malformed JSON
6822
+ */
6823
+ 400: {
6824
+ message: string;
6825
+ issues?: string;
6826
+ };
6827
+ /**
6828
+ * Unauthorized
6829
+ */
6830
+ 401: ErrorResponse;
6831
+ /**
6832
+ * Forbidden
6833
+ */
6834
+ 403: ErrorResponse;
6835
+ /**
6836
+ * Not Found
6837
+ */
6838
+ 404: ErrorResponse;
6839
+ /**
6840
+ * Conflict
6841
+ */
6842
+ 409: ErrorResponse;
6843
+ /**
6844
+ * Internal server error
6845
+ */
6846
+ 500: ErrorResponse;
6847
+ /**
6848
+ * Service Unavailable
6849
+ */
6850
+ 503: ErrorResponse;
6851
+ };
6852
+
6853
+ export type ReopenCommentError = ReopenCommentErrors[keyof ReopenCommentErrors];
6854
+
6855
+ export type ReopenCommentResponses = {
6856
+ /**
6857
+ * Returns the reopened comment
6858
+ */
6859
+ 200: {
6860
+ comment: {
6861
+ commentId: string;
6862
+ author: {
6863
+ dazlUserId: string;
6864
+ };
6865
+ content: string;
6866
+ mentions: Array<UserMention>;
6867
+ createdAt: string;
6868
+ updatedAt: string;
6869
+ lastActivityAt: string;
6870
+ isEdited: boolean;
6871
+ replies: Array<{
6872
+ replyId: string;
6873
+ author: {
6874
+ dazlUserId: string;
6875
+ };
6876
+ content: string;
6877
+ mentions: Array<UserMention>;
6878
+ createdAt: string;
6879
+ updatedAt: string;
6880
+ }>;
6881
+ resolved?: CommentResolved;
6882
+ context?: CommentContext;
6883
+ };
6884
+ };
6885
+ };
6886
+
6887
+ export type ReopenCommentResponse = ReopenCommentResponses[keyof ReopenCommentResponses];
6888
+
6889
+ export type CreateReplyData = {
6890
+ body: CreateReplyInput;
6891
+ path: {
6892
+ hostType: 'project' | 'product';
6893
+ hostId: string;
6894
+ commentId: string;
6895
+ };
6896
+ query?: never;
6897
+ url: '/comments/{hostType}/{hostId}/{commentId}/replies';
6898
+ };
6899
+
6900
+ export type CreateReplyErrors = {
6901
+ /**
6902
+ * Bad request - Invalid parameters or malformed JSON
6903
+ */
6904
+ 400: {
6905
+ message: string;
6906
+ issues?: string;
6907
+ };
6908
+ /**
6909
+ * Unauthorized
6910
+ */
6911
+ 401: ErrorResponse;
6912
+ /**
6913
+ * Forbidden
6914
+ */
6915
+ 403: ErrorResponse;
6916
+ /**
6917
+ * Not Found
6918
+ */
6919
+ 404: ErrorResponse;
6920
+ /**
6921
+ * Conflict
6922
+ */
6923
+ 409: ErrorResponse;
6924
+ /**
6925
+ * Internal server error
6926
+ */
6927
+ 500: ErrorResponse;
6928
+ /**
6929
+ * Service Unavailable
6930
+ */
6931
+ 503: ErrorResponse;
6932
+ };
6933
+
6934
+ export type CreateReplyError = CreateReplyErrors[keyof CreateReplyErrors];
6935
+
6936
+ export type CreateReplyResponses = {
6937
+ /**
6938
+ * Returns the created reply
6939
+ */
6940
+ 200: {
6941
+ reply: {
6942
+ replyId: string;
6943
+ author: {
6944
+ dazlUserId: string;
6945
+ };
6946
+ content: string;
6947
+ mentions: Array<UserMention>;
6948
+ createdAt: string;
6949
+ updatedAt: string;
6950
+ };
6951
+ };
6952
+ };
6953
+
6954
+ export type CreateReplyResponse = CreateReplyResponses[keyof CreateReplyResponses];
6955
+
6956
+ export type DeleteReplyData = {
6957
+ body?: never;
6958
+ path: {
6959
+ hostType: 'project' | 'product';
6960
+ hostId: string;
6961
+ commentId: string;
6962
+ replyId: string;
6963
+ };
6964
+ query?: never;
6965
+ url: '/comments/{hostType}/{hostId}/{commentId}/replies/{replyId}';
6966
+ };
6967
+
6968
+ export type DeleteReplyErrors = {
6969
+ /**
6970
+ * Bad request - Invalid parameters or malformed JSON
6971
+ */
6972
+ 400: {
6973
+ message: string;
6974
+ issues?: string;
6975
+ };
6976
+ /**
6977
+ * Unauthorized
6978
+ */
6979
+ 401: ErrorResponse;
6980
+ /**
6981
+ * Forbidden
6982
+ */
6983
+ 403: ErrorResponse;
6984
+ /**
6985
+ * Not Found
6986
+ */
6987
+ 404: ErrorResponse;
6988
+ /**
6989
+ * Conflict
6990
+ */
6991
+ 409: ErrorResponse;
6992
+ /**
6993
+ * Internal server error
6994
+ */
6995
+ 500: ErrorResponse;
6996
+ /**
6997
+ * Service Unavailable
6998
+ */
6999
+ 503: ErrorResponse;
7000
+ };
7001
+
7002
+ export type DeleteReplyError = DeleteReplyErrors[keyof DeleteReplyErrors];
7003
+
7004
+ export type DeleteReplyResponses = {
7005
+ /**
7006
+ * Acknowledges that the reply was deleted
7007
+ */
7008
+ 200: {
7009
+ success: true;
7010
+ };
7011
+ };
7012
+
7013
+ export type DeleteReplyResponse = DeleteReplyResponses[keyof DeleteReplyResponses];
7014
+
7015
+ export type EditReplyData = {
7016
+ body: EditReplyInput;
7017
+ path: {
7018
+ hostType: 'project' | 'product';
7019
+ hostId: string;
7020
+ commentId: string;
7021
+ replyId: string;
7022
+ };
7023
+ query?: never;
7024
+ url: '/comments/{hostType}/{hostId}/{commentId}/replies/{replyId}';
7025
+ };
7026
+
7027
+ export type EditReplyErrors = {
7028
+ /**
7029
+ * Bad request - Invalid parameters or malformed JSON
7030
+ */
7031
+ 400: {
7032
+ message: string;
7033
+ issues?: string;
7034
+ };
7035
+ /**
7036
+ * Unauthorized
7037
+ */
7038
+ 401: ErrorResponse;
7039
+ /**
7040
+ * Forbidden
7041
+ */
7042
+ 403: ErrorResponse;
7043
+ /**
7044
+ * Not Found
7045
+ */
7046
+ 404: ErrorResponse;
7047
+ /**
7048
+ * Conflict
7049
+ */
7050
+ 409: ErrorResponse;
7051
+ /**
7052
+ * Internal server error
7053
+ */
7054
+ 500: ErrorResponse;
7055
+ /**
7056
+ * Service Unavailable
7057
+ */
7058
+ 503: ErrorResponse;
7059
+ };
7060
+
7061
+ export type EditReplyError = EditReplyErrors[keyof EditReplyErrors];
7062
+
7063
+ export type EditReplyResponses = {
7064
+ /**
7065
+ * Returns the updated reply
7066
+ */
7067
+ 200: {
7068
+ reply: {
7069
+ replyId: string;
7070
+ author: {
7071
+ dazlUserId: string;
7072
+ };
7073
+ content: string;
7074
+ mentions: Array<UserMention>;
7075
+ createdAt: string;
7076
+ updatedAt: string;
7077
+ };
7078
+ };
7079
+ };
7080
+
7081
+ export type EditReplyResponse = EditReplyResponses[keyof EditReplyResponses];