@dazl/api-client 1.0.14 → 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.
@@ -480,29 +480,6 @@ export type PurgeUserAccountInput = {
480
480
  dryRun?: boolean;
481
481
  };
482
482
 
483
- export type CreateCommentInput = {
484
- content: string;
485
- mentions?: Array<UserMention>;
486
- context?: CommentContext;
487
- gitInfo?: CommentGitInfo;
488
- };
489
-
490
- export type EditCommentInput = {
491
- content: string;
492
- mentions?: Array<UserMention>;
493
- };
494
-
495
- export type CreateReplyInput = {
496
- content: string;
497
- mentions?: Array<UserMention>;
498
- gitInfo?: CommentGitInfo;
499
- };
500
-
501
- export type EditReplyInput = {
502
- content: string;
503
- mentions?: Array<UserMention>;
504
- };
505
-
506
483
  export type FeatureToggle = {
507
484
  name: string;
508
485
  scope: 'RemoteAndEditor' | 'SiteAndEditor';
@@ -539,6 +516,29 @@ export type ConnectionStatus = {
539
516
  isConnected: boolean;
540
517
  };
541
518
 
519
+ export type CreateCommentInput = {
520
+ content: string;
521
+ mentions?: Array<UserMention>;
522
+ context?: CommentContext;
523
+ gitInfo?: CommentGitInfo;
524
+ };
525
+
526
+ export type EditCommentInput = {
527
+ content: string;
528
+ mentions?: Array<UserMention>;
529
+ };
530
+
531
+ export type CreateReplyInput = {
532
+ content: string;
533
+ mentions?: Array<UserMention>;
534
+ gitInfo?: CommentGitInfo;
535
+ };
536
+
537
+ export type EditReplyInput = {
538
+ content: string;
539
+ mentions?: Array<UserMention>;
540
+ };
541
+
542
542
  export type EnsureMyUserData = {
543
543
  body?: {
544
544
  name?: string;
@@ -2859,63 +2859,6 @@ export type InviteProjectMemberResponses = {
2859
2859
 
2860
2860
  export type InviteProjectMemberResponse = InviteProjectMemberResponses[keyof InviteProjectMemberResponses];
2861
2861
 
2862
- export type AcceptProjectInvitationData = {
2863
- body: {
2864
- token: string;
2865
- userDazlId: string;
2866
- };
2867
- path?: never;
2868
- query?: never;
2869
- url: '/project/members/accept-invitation';
2870
- };
2871
-
2872
- export type AcceptProjectInvitationErrors = {
2873
- /**
2874
- * Bad request - Invalid parameters or malformed JSON
2875
- */
2876
- 400: {
2877
- message: string;
2878
- issues?: string;
2879
- };
2880
- /**
2881
- * Unauthorized
2882
- */
2883
- 401: ErrorResponse;
2884
- /**
2885
- * Forbidden
2886
- */
2887
- 403: ErrorResponse;
2888
- /**
2889
- * Not Found
2890
- */
2891
- 404: ErrorResponse;
2892
- /**
2893
- * Conflict
2894
- */
2895
- 409: ErrorResponse;
2896
- /**
2897
- * Internal server error
2898
- */
2899
- 500: ErrorResponse;
2900
- /**
2901
- * Service Unavailable
2902
- */
2903
- 503: ErrorResponse;
2904
- };
2905
-
2906
- export type AcceptProjectInvitationError = AcceptProjectInvitationErrors[keyof AcceptProjectInvitationErrors];
2907
-
2908
- export type AcceptProjectInvitationResponses = {
2909
- /**
2910
- * Acknowledges that the invitation was accepted
2911
- */
2912
- 200: {
2913
- status: 'accepted';
2914
- };
2915
- };
2916
-
2917
- export type AcceptProjectInvitationResponse = AcceptProjectInvitationResponses[keyof AcceptProjectInvitationResponses];
2918
-
2919
2862
  export type GetProjectCollaboratorsData = {
2920
2863
  body?: never;
2921
2864
  path: {
@@ -2973,20 +2916,20 @@ export type GetProjectCollaboratorsResponses = {
2973
2916
  * Dazl ID for the type = "user"
2974
2917
  */
2975
2918
  id: string;
2976
- role: 'admin' | 'contributor' | 'viewer' | 'workspace_member' | 'owner';
2977
2919
  email: string;
2978
2920
  name?: string;
2979
2921
  picture?: string;
2922
+ role: 'admin' | 'contributor' | 'viewer' | 'owner';
2980
2923
  } | null;
2981
2924
  members: Array<{
2982
2925
  /**
2983
2926
  * Dazl ID for the type = "user"
2984
2927
  */
2985
2928
  id: string;
2986
- role: 'admin' | 'contributor' | 'viewer' | 'workspace_member' | 'owner';
2987
2929
  email: string;
2988
2930
  name?: string;
2989
2931
  picture?: string;
2932
+ role: 'admin' | 'contributor' | 'viewer' | 'owner';
2990
2933
  }>;
2991
2934
  invited: Array<{
2992
2935
  role: 'admin' | 'contributor' | 'viewer';
@@ -6345,18 +6288,16 @@ export type GetUserActivePromotionsResponses = {
6345
6288
 
6346
6289
  export type GetUserActivePromotionsResponse = GetUserActivePromotionsResponses[keyof GetUserActivePromotionsResponses];
6347
6290
 
6348
- export type DeleteCommentData = {
6291
+ export type GetFeatureTogglesData = {
6349
6292
  body?: never;
6350
- path: {
6351
- hostType: 'project' | 'workspace';
6352
- hostId: string;
6353
- commentId: string;
6293
+ path?: never;
6294
+ query?: {
6295
+ scope?: 'RemoteAndEditor' | 'SiteAndEditor';
6354
6296
  };
6355
- query?: never;
6356
- url: '/comments/{hostType}/{hostId}/{commentId}';
6297
+ url: '/env-config';
6357
6298
  };
6358
6299
 
6359
- export type DeleteCommentErrors = {
6300
+ export type GetFeatureTogglesErrors = {
6360
6301
  /**
6361
6302
  * Bad request - Invalid parameters or malformed JSON
6362
6303
  */
@@ -6390,31 +6331,27 @@ export type DeleteCommentErrors = {
6390
6331
  503: ErrorResponse;
6391
6332
  };
6392
6333
 
6393
- export type DeleteCommentError = DeleteCommentErrors[keyof DeleteCommentErrors];
6334
+ export type GetFeatureTogglesError = GetFeatureTogglesErrors[keyof GetFeatureTogglesErrors];
6394
6335
 
6395
- export type DeleteCommentResponses = {
6336
+ export type GetFeatureTogglesResponses = {
6396
6337
  /**
6397
- * Acknowledges that the comment was deleted
6338
+ * Returns feature toggles, optionally filtered by scope
6398
6339
  */
6399
6340
  200: {
6400
- success: true;
6341
+ toggles: Array<FeatureToggle>;
6401
6342
  };
6402
6343
  };
6403
6344
 
6404
- export type DeleteCommentResponse = DeleteCommentResponses[keyof DeleteCommentResponses];
6345
+ export type GetFeatureTogglesResponse = GetFeatureTogglesResponses[keyof GetFeatureTogglesResponses];
6405
6346
 
6406
- export type GetCommentData = {
6347
+ export type GetMyUserData = {
6407
6348
  body?: never;
6408
- path: {
6409
- hostType: 'project' | 'workspace';
6410
- hostId: string;
6411
- commentId: string;
6412
- };
6349
+ path?: never;
6413
6350
  query?: never;
6414
- url: '/comments/{hostType}/{hostId}/{commentId}';
6351
+ url: '/my-user/me';
6415
6352
  };
6416
6353
 
6417
- export type GetCommentErrors = {
6354
+ export type GetMyUserErrors = {
6418
6355
  /**
6419
6356
  * Bad request - Invalid parameters or malformed JSON
6420
6357
  */
@@ -6448,56 +6385,31 @@ export type GetCommentErrors = {
6448
6385
  503: ErrorResponse;
6449
6386
  };
6450
6387
 
6451
- export type GetCommentError = GetCommentErrors[keyof GetCommentErrors];
6388
+ export type GetMyUserError = GetMyUserErrors[keyof GetMyUserErrors];
6452
6389
 
6453
- export type GetCommentResponses = {
6390
+ export type GetMyUserResponses = {
6454
6391
  /**
6455
- * Returns comment by id for the host entity
6392
+ * Returns the requested user
6456
6393
  */
6457
6394
  200: {
6458
- comment: {
6459
- commentId: string;
6460
- author: {
6461
- dazlUserId: string;
6462
- };
6463
- content: string;
6464
- mentions: Array<UserMention>;
6465
- createdAt: string;
6466
- updatedAt: string;
6467
- lastActivityAt: string;
6468
- isEdited: boolean;
6469
- replies: Array<{
6470
- replyId: string;
6471
- author: {
6472
- dazlUserId: string;
6473
- };
6474
- content: string;
6475
- mentions: Array<UserMention>;
6476
- createdAt: string;
6477
- updatedAt: string;
6478
- gitInfo?: CommentGitInfo;
6479
- }>;
6480
- resolved?: CommentResolved;
6481
- context?: CommentContext;
6482
- gitInfo?: CommentGitInfo;
6483
- };
6395
+ user: UserRaw;
6484
6396
  };
6485
6397
  };
6486
6398
 
6487
- export type GetCommentResponse = GetCommentResponses[keyof GetCommentResponses];
6399
+ export type GetMyUserResponse = GetMyUserResponses[keyof GetMyUserResponses];
6488
6400
 
6489
- export type EditCommentData = {
6490
- body: EditCommentInput;
6491
- path: {
6492
- hostType: 'project' | 'workspace';
6493
- hostId: string;
6494
- commentId: string;
6401
+ export type UpdateMyUserData = {
6402
+ body: {
6403
+ picture?: string | null;
6404
+ name?: string;
6405
+ jobRole?: string | null;
6495
6406
  };
6407
+ path?: never;
6496
6408
  query?: never;
6497
- url: '/comments/{hostType}/{hostId}/{commentId}';
6409
+ url: '/my-user/me';
6498
6410
  };
6499
6411
 
6500
- export type EditCommentErrors = {
6412
+ export type UpdateMyUserErrors = {
6501
6413
  /**
6502
6414
  * Bad request - Invalid parameters or malformed JSON
6503
6415
  */
@@ -6531,55 +6443,29 @@ export type EditCommentErrors = {
6531
6443
  503: ErrorResponse;
6532
6444
  };
6533
6445
 
6534
- export type EditCommentError = EditCommentErrors[keyof EditCommentErrors];
6446
+ export type UpdateMyUserError = UpdateMyUserErrors[keyof UpdateMyUserErrors];
6535
6447
 
6536
- export type EditCommentResponses = {
6448
+ export type UpdateMyUserResponses = {
6537
6449
  /**
6538
- * Returns the updated comment
6450
+ * Updates user information
6539
6451
  */
6540
6452
  200: {
6541
- comment: {
6542
- commentId: string;
6543
- author: {
6544
- dazlUserId: string;
6545
- };
6546
- content: string;
6547
- mentions: Array<UserMention>;
6548
- createdAt: string;
6549
- updatedAt: string;
6550
- lastActivityAt: string;
6551
- isEdited: boolean;
6552
- replies: Array<{
6553
- replyId: string;
6554
- author: {
6555
- dazlUserId: string;
6556
- };
6557
- content: string;
6558
- mentions: Array<UserMention>;
6559
- createdAt: string;
6560
- updatedAt: string;
6561
- gitInfo?: CommentGitInfo;
6562
- }>;
6563
- resolved?: CommentResolved;
6564
- context?: CommentContext;
6565
- gitInfo?: CommentGitInfo;
6566
- };
6453
+ user: UserRaw;
6567
6454
  };
6568
6455
  };
6569
6456
 
6570
- export type EditCommentResponse = EditCommentResponses[keyof EditCommentResponses];
6457
+ export type UpdateMyUserResponse = UpdateMyUserResponses[keyof UpdateMyUserResponses];
6571
6458
 
6572
- export type ListCommentsData = {
6573
- body?: never;
6574
- path: {
6575
- hostType: 'project' | 'workspace';
6576
- hostId: string;
6459
+ export type CreateWorkspaceData = {
6460
+ body: {
6461
+ name: string;
6577
6462
  };
6463
+ path?: never;
6578
6464
  query?: never;
6579
- url: '/comments/{hostType}/{hostId}';
6465
+ url: '/workspace/create';
6580
6466
  };
6581
6467
 
6582
- export type ListCommentsErrors = {
6468
+ export type CreateWorkspaceErrors = {
6583
6469
  /**
6584
6470
  * Bad request - Invalid parameters or malformed JSON
6585
6471
  */
@@ -6613,55 +6499,32 @@ export type ListCommentsErrors = {
6613
6499
  503: ErrorResponse;
6614
6500
  };
6615
6501
 
6616
- export type ListCommentsError = ListCommentsErrors[keyof ListCommentsErrors];
6502
+ export type CreateWorkspaceError = CreateWorkspaceErrors[keyof CreateWorkspaceErrors];
6617
6503
 
6618
- export type ListCommentsResponses = {
6504
+ export type CreateWorkspaceResponses = {
6619
6505
  /**
6620
- * Returns the list of comments for the host entity
6506
+ * Returns the created workspace
6621
6507
  */
6622
6508
  200: {
6623
- comments: Array<{
6624
- commentId: string;
6625
- author: {
6626
- dazlUserId: string;
6627
- };
6628
- content: string;
6629
- mentions: Array<UserMention>;
6630
- createdAt: string;
6631
- updatedAt: string;
6632
- lastActivityAt: string;
6633
- isEdited: boolean;
6634
- replies: Array<{
6635
- replyId: string;
6636
- author: {
6637
- dazlUserId: string;
6638
- };
6639
- content: string;
6640
- mentions: Array<UserMention>;
6641
- createdAt: string;
6642
- updatedAt: string;
6643
- gitInfo?: CommentGitInfo;
6644
- }>;
6645
- resolved?: CommentResolved;
6646
- context?: CommentContext;
6647
- gitInfo?: CommentGitInfo;
6648
- }>;
6509
+ workspace: Workspace;
6649
6510
  };
6650
6511
  };
6651
6512
 
6652
- export type ListCommentsResponse = ListCommentsResponses[keyof ListCommentsResponses];
6513
+ export type CreateWorkspaceResponse = CreateWorkspaceResponses[keyof CreateWorkspaceResponses];
6653
6514
 
6654
- export type CreateCommentData = {
6655
- body: CreateCommentInput;
6656
- path: {
6657
- hostType: 'project' | 'workspace';
6658
- hostId: string;
6515
+ export type GetAllWorkspacesData = {
6516
+ body?: never;
6517
+ path?: never;
6518
+ query?: {
6519
+ /**
6520
+ * Whether to include the members of each workspace
6521
+ */
6522
+ withMembers?: boolean;
6659
6523
  };
6660
- query?: never;
6661
- url: '/comments/{hostType}/{hostId}';
6524
+ url: '/workspace/list-my';
6662
6525
  };
6663
6526
 
6664
- export type CreateCommentErrors = {
6527
+ export type GetAllWorkspacesErrors = {
6665
6528
  /**
6666
6529
  * Bad request - Invalid parameters or malformed JSON
6667
6530
  */
@@ -6695,56 +6558,61 @@ export type CreateCommentErrors = {
6695
6558
  503: ErrorResponse;
6696
6559
  };
6697
6560
 
6698
- export type CreateCommentError = CreateCommentErrors[keyof CreateCommentErrors];
6561
+ export type GetAllWorkspacesError = GetAllWorkspacesErrors[keyof GetAllWorkspacesErrors];
6699
6562
 
6700
- export type CreateCommentResponses = {
6563
+ export type GetAllWorkspacesResponses = {
6701
6564
  /**
6702
- * Returns the created comment
6565
+ * Returns the list of workspaces that the user is a member of
6703
6566
  */
6704
6567
  200: {
6705
- comment: {
6706
- commentId: string;
6707
- author: {
6708
- dazlUserId: string;
6709
- };
6710
- content: string;
6711
- mentions: Array<UserMention>;
6568
+ workspaces: Array<{
6569
+ id: string;
6570
+ name: string;
6571
+ /**
6572
+ * The user which created the workspace. Null if the user was deleted.
6573
+ */
6574
+ dazlUserId: string | null;
6712
6575
  createdAt: string;
6713
- updatedAt: string;
6714
- lastActivityAt: string;
6715
- isEdited: boolean;
6716
- replies: Array<{
6717
- replyId: string;
6718
- author: {
6719
- dazlUserId: string;
6720
- };
6721
- content: string;
6722
- mentions: Array<UserMention>;
6723
- createdAt: string;
6724
- updatedAt: string;
6725
- gitInfo?: CommentGitInfo;
6576
+ isDefault: boolean;
6577
+ owner?: {
6578
+ /**
6579
+ * Dazl ID for the type = "user"
6580
+ */
6581
+ id: string;
6582
+ email: string;
6583
+ name?: string;
6584
+ picture?: string;
6585
+ role: 'workspace_member' | 'owner';
6586
+ } | null;
6587
+ members?: Array<{
6588
+ /**
6589
+ * Dazl ID for the type = "user"
6590
+ */
6591
+ id: string;
6592
+ email: string;
6593
+ name?: string;
6594
+ picture?: string;
6595
+ role: 'workspace_member' | 'owner';
6726
6596
  }>;
6727
- resolved?: CommentResolved;
6728
- context?: CommentContext;
6729
- gitInfo?: CommentGitInfo;
6730
- };
6597
+ }>;
6731
6598
  };
6732
6599
  };
6733
6600
 
6734
- export type CreateCommentResponse = CreateCommentResponses[keyof CreateCommentResponses];
6601
+ export type GetAllWorkspacesResponse = GetAllWorkspacesResponses[keyof GetAllWorkspacesResponses];
6735
6602
 
6736
- export type ResolveCommentData = {
6737
- body?: never;
6603
+ export type InviteWorkspaceMemberData = {
6604
+ body: {
6605
+ email: string;
6606
+ role: 'workspace_member';
6607
+ };
6738
6608
  path: {
6739
- hostType: 'project' | 'workspace';
6740
- hostId: string;
6741
- commentId: string;
6609
+ workspaceId: string;
6742
6610
  };
6743
6611
  query?: never;
6744
- url: '/comments/{hostType}/{hostId}/{commentId}/resolve';
6612
+ url: '/workspace/{workspaceId}/members/invite';
6745
6613
  };
6746
6614
 
6747
- export type ResolveCommentErrors = {
6615
+ export type InviteWorkspaceMemberErrors = {
6748
6616
  /**
6749
6617
  * Bad request - Invalid parameters or malformed JSON
6750
6618
  */
@@ -6778,56 +6646,29 @@ export type ResolveCommentErrors = {
6778
6646
  503: ErrorResponse;
6779
6647
  };
6780
6648
 
6781
- export type ResolveCommentError = ResolveCommentErrors[keyof ResolveCommentErrors];
6649
+ export type InviteWorkspaceMemberError = InviteWorkspaceMemberErrors[keyof InviteWorkspaceMemberErrors];
6782
6650
 
6783
- export type ResolveCommentResponses = {
6651
+ export type InviteWorkspaceMemberResponses = {
6784
6652
  /**
6785
- * Returns the resolved comment
6653
+ * Returns the invitation token, or null if user was auto-added to workspace
6786
6654
  */
6787
6655
  200: {
6788
- comment: {
6789
- commentId: string;
6790
- author: {
6791
- dazlUserId: string;
6792
- };
6793
- content: string;
6794
- mentions: Array<UserMention>;
6795
- createdAt: string;
6796
- updatedAt: string;
6797
- lastActivityAt: string;
6798
- isEdited: boolean;
6799
- replies: Array<{
6800
- replyId: string;
6801
- author: {
6802
- dazlUserId: string;
6803
- };
6804
- content: string;
6805
- mentions: Array<UserMention>;
6806
- createdAt: string;
6807
- updatedAt: string;
6808
- gitInfo?: CommentGitInfo;
6809
- }>;
6810
- resolved?: CommentResolved;
6811
- context?: CommentContext;
6812
- gitInfo?: CommentGitInfo;
6813
- };
6656
+ token: string | null;
6814
6657
  };
6815
6658
  };
6816
6659
 
6817
- export type ResolveCommentResponse = ResolveCommentResponses[keyof ResolveCommentResponses];
6660
+ export type InviteWorkspaceMemberResponse = InviteWorkspaceMemberResponses[keyof InviteWorkspaceMemberResponses];
6818
6661
 
6819
- export type ReopenCommentData = {
6662
+ export type GetWorkspaceMembersData = {
6820
6663
  body?: never;
6821
6664
  path: {
6822
- hostType: 'project' | 'workspace';
6823
- hostId: string;
6824
- commentId: string;
6665
+ workspaceId: string;
6825
6666
  };
6826
6667
  query?: never;
6827
- url: '/comments/{hostType}/{hostId}/{commentId}/reopen';
6668
+ url: '/workspace/{workspaceId}/all-members';
6828
6669
  };
6829
6670
 
6830
- export type ReopenCommentErrors = {
6671
+ export type GetWorkspaceMembersErrors = {
6831
6672
  /**
6832
6673
  * Bad request - Invalid parameters or malformed JSON
6833
6674
  */
@@ -6861,56 +6702,49 @@ export type ReopenCommentErrors = {
6861
6702
  503: ErrorResponse;
6862
6703
  };
6863
6704
 
6864
- export type ReopenCommentError = ReopenCommentErrors[keyof ReopenCommentErrors];
6705
+ export type GetWorkspaceMembersError = GetWorkspaceMembersErrors[keyof GetWorkspaceMembersErrors];
6865
6706
 
6866
- export type ReopenCommentResponses = {
6707
+ export type GetWorkspaceMembersResponses = {
6867
6708
  /**
6868
- * Returns the reopened comment
6709
+ * Returns the list of workspace collaborators: members and owner
6869
6710
  */
6870
6711
  200: {
6871
- comment: {
6872
- commentId: string;
6873
- author: {
6874
- dazlUserId: string;
6875
- };
6876
- content: string;
6877
- mentions: Array<UserMention>;
6878
- createdAt: string;
6879
- updatedAt: string;
6880
- lastActivityAt: string;
6881
- isEdited: boolean;
6882
- replies: Array<{
6883
- replyId: string;
6884
- author: {
6885
- dazlUserId: string;
6886
- };
6887
- content: string;
6888
- mentions: Array<UserMention>;
6889
- createdAt: string;
6890
- updatedAt: string;
6891
- gitInfo?: CommentGitInfo;
6892
- }>;
6893
- resolved?: CommentResolved;
6894
- context?: CommentContext;
6895
- gitInfo?: CommentGitInfo;
6896
- };
6712
+ owner: {
6713
+ /**
6714
+ * Dazl ID for the type = "user"
6715
+ */
6716
+ id: string;
6717
+ email: string;
6718
+ name?: string;
6719
+ picture?: string;
6720
+ role: 'workspace_member' | 'owner';
6721
+ } | null;
6722
+ members: Array<{
6723
+ /**
6724
+ * Dazl ID for the type = "user"
6725
+ */
6726
+ id: string;
6727
+ email: string;
6728
+ name?: string;
6729
+ picture?: string;
6730
+ role: 'workspace_member' | 'owner';
6731
+ }>;
6897
6732
  };
6898
6733
  };
6899
6734
 
6900
- export type ReopenCommentResponse = ReopenCommentResponses[keyof ReopenCommentResponses];
6735
+ export type GetWorkspaceMembersResponse = GetWorkspaceMembersResponses[keyof GetWorkspaceMembersResponses];
6901
6736
 
6902
- export type CreateReplyData = {
6903
- body: CreateReplyInput;
6737
+ export type DeleteWorkspaceMemberData = {
6738
+ body?: never;
6904
6739
  path: {
6905
- hostType: 'project' | 'workspace';
6906
- hostId: string;
6907
- commentId: string;
6740
+ workspaceId: string;
6741
+ memberId: string;
6908
6742
  };
6909
6743
  query?: never;
6910
- url: '/comments/{hostType}/{hostId}/{commentId}/replies';
6744
+ url: '/workspace/{workspaceId}/members/{memberId}';
6911
6745
  };
6912
6746
 
6913
- export type CreateReplyErrors = {
6747
+ export type DeleteWorkspaceMemberErrors = {
6914
6748
  /**
6915
6749
  * Bad request - Invalid parameters or malformed JSON
6916
6750
  */
@@ -6944,42 +6778,30 @@ export type CreateReplyErrors = {
6944
6778
  503: ErrorResponse;
6945
6779
  };
6946
6780
 
6947
- export type CreateReplyError = CreateReplyErrors[keyof CreateReplyErrors];
6781
+ export type DeleteWorkspaceMemberError = DeleteWorkspaceMemberErrors[keyof DeleteWorkspaceMemberErrors];
6948
6782
 
6949
- export type CreateReplyResponses = {
6783
+ export type DeleteWorkspaceMemberResponses = {
6950
6784
  /**
6951
- * Returns the created reply
6785
+ * Acknowledges that the workspace member was deleted
6952
6786
  */
6953
6787
  200: {
6954
- reply: {
6955
- replyId: string;
6956
- author: {
6957
- dazlUserId: string;
6958
- };
6959
- content: string;
6960
- mentions: Array<UserMention>;
6961
- createdAt: string;
6962
- updatedAt: string;
6963
- gitInfo?: CommentGitInfo;
6964
- };
6788
+ status: 'deleted';
6965
6789
  };
6966
6790
  };
6967
6791
 
6968
- export type CreateReplyResponse = CreateReplyResponses[keyof CreateReplyResponses];
6792
+ export type DeleteWorkspaceMemberResponse = DeleteWorkspaceMemberResponses[keyof DeleteWorkspaceMemberResponses];
6969
6793
 
6970
- export type DeleteReplyData = {
6794
+ export type DeleteWorkspaceInvitationData = {
6971
6795
  body?: never;
6972
6796
  path: {
6973
- hostType: 'project' | 'workspace';
6974
- hostId: string;
6975
- commentId: string;
6976
- replyId: string;
6797
+ workspaceId: string;
6798
+ invitationId: string;
6977
6799
  };
6978
6800
  query?: never;
6979
- url: '/comments/{hostType}/{hostId}/{commentId}/replies/{replyId}';
6801
+ url: '/workspace/{workspaceId}/invitations/{invitationId}';
6980
6802
  };
6981
6803
 
6982
- export type DeleteReplyErrors = {
6804
+ export type DeleteWorkspaceInvitationErrors = {
6983
6805
  /**
6984
6806
  * Bad request - Invalid parameters or malformed JSON
6985
6807
  */
@@ -7013,32 +6835,32 @@ export type DeleteReplyErrors = {
7013
6835
  503: ErrorResponse;
7014
6836
  };
7015
6837
 
7016
- export type DeleteReplyError = DeleteReplyErrors[keyof DeleteReplyErrors];
6838
+ export type DeleteWorkspaceInvitationError = DeleteWorkspaceInvitationErrors[keyof DeleteWorkspaceInvitationErrors];
7017
6839
 
7018
- export type DeleteReplyResponses = {
6840
+ export type DeleteWorkspaceInvitationResponses = {
7019
6841
  /**
7020
- * Acknowledges that the reply was deleted
6842
+ * Acknowledges that the workspace invitation was deleted
7021
6843
  */
7022
6844
  200: {
7023
- success: true;
6845
+ status: 'deleted';
7024
6846
  };
7025
6847
  };
7026
6848
 
7027
- export type DeleteReplyResponse = DeleteReplyResponses[keyof DeleteReplyResponses];
6849
+ export type DeleteWorkspaceInvitationResponse = DeleteWorkspaceInvitationResponses[keyof DeleteWorkspaceInvitationResponses];
7028
6850
 
7029
- export type EditReplyData = {
7030
- body: EditReplyInput;
7031
- path: {
7032
- hostType: 'project' | 'workspace';
7033
- hostId: string;
7034
- commentId: string;
7035
- replyId: string;
6851
+ export type GetMyValuesData = {
6852
+ body?: never;
6853
+ path?: never;
6854
+ query?: {
6855
+ /**
6856
+ * Filter results to this category
6857
+ */
6858
+ categ?: string;
7036
6859
  };
7037
- query?: never;
7038
- url: '/comments/{hostType}/{hostId}/{commentId}/replies/{replyId}';
6860
+ url: '/my-user-key-value/values';
7039
6861
  };
7040
6862
 
7041
- export type EditReplyErrors = {
6863
+ export type GetMyValuesErrors = {
7042
6864
  /**
7043
6865
  * Bad request - Invalid parameters or malformed JSON
7044
6866
  */
@@ -7072,40 +6894,44 @@ export type EditReplyErrors = {
7072
6894
  503: ErrorResponse;
7073
6895
  };
7074
6896
 
7075
- export type EditReplyError = EditReplyErrors[keyof EditReplyErrors];
6897
+ export type GetMyValuesError = GetMyValuesErrors[keyof GetMyValuesErrors];
7076
6898
 
7077
- export type EditReplyResponses = {
6899
+ export type GetMyValuesResponses = {
7078
6900
  /**
7079
- * Returns the updated reply
6901
+ * Returns key values for the current user
7080
6902
  */
7081
6903
  200: {
7082
- reply: {
7083
- replyId: string;
7084
- author: {
7085
- dazlUserId: string;
7086
- };
7087
- content: string;
7088
- mentions: Array<UserMention>;
6904
+ values: Array<{
6905
+ id: string;
6906
+ dazlUserId: string;
6907
+ category: string;
6908
+ name: string;
6909
+ strVal: string | null;
6910
+ encryptedValId: string | null;
7089
6911
  createdAt: string;
7090
6912
  updatedAt: string;
7091
- gitInfo?: CommentGitInfo;
7092
- };
6913
+ encryptedValue: string | null;
6914
+ }>;
7093
6915
  };
7094
6916
  };
7095
6917
 
7096
- export type EditReplyResponse = EditReplyResponses[keyof EditReplyResponses];
6918
+ export type GetMyValuesResponse = GetMyValuesResponses[keyof GetMyValuesResponses];
7097
6919
 
7098
- export type GetFeatureTogglesData = {
7099
- body?: never;
7100
- path?: never;
7101
- query?: {
7102
- scope?: 'RemoteAndEditor' | 'SiteAndEditor';
6920
+ export type SetMyValueData = {
6921
+ body: {
6922
+ value: string;
6923
+ isSecret?: boolean;
7103
6924
  };
7104
- url: '/env-config';
7105
- };
7106
-
7107
- export type GetFeatureTogglesErrors = {
7108
- /**
6925
+ path: {
6926
+ categ: string;
6927
+ name: string;
6928
+ };
6929
+ query?: never;
6930
+ url: '/my-user-key-value/values/{categ}/{name}';
6931
+ };
6932
+
6933
+ export type SetMyValueErrors = {
6934
+ /**
7109
6935
  * Bad request - Invalid parameters or malformed JSON
7110
6936
  */
7111
6937
  400: {
@@ -7138,27 +6964,29 @@ export type GetFeatureTogglesErrors = {
7138
6964
  503: ErrorResponse;
7139
6965
  };
7140
6966
 
7141
- export type GetFeatureTogglesError = GetFeatureTogglesErrors[keyof GetFeatureTogglesErrors];
6967
+ export type SetMyValueError = SetMyValueErrors[keyof SetMyValueErrors];
7142
6968
 
7143
- export type GetFeatureTogglesResponses = {
6969
+ export type SetMyValueResponses = {
7144
6970
  /**
7145
- * Returns feature toggles, optionally filtered by scope
6971
+ * Sets a single key value and returns its id
7146
6972
  */
7147
6973
  200: {
7148
- toggles: Array<FeatureToggle>;
6974
+ id: string;
7149
6975
  };
7150
6976
  };
7151
6977
 
7152
- export type GetFeatureTogglesResponse = GetFeatureTogglesResponses[keyof GetFeatureTogglesResponses];
6978
+ export type SetMyValueResponse = SetMyValueResponses[keyof SetMyValueResponses];
7153
6979
 
7154
- export type GetMyUserData = {
6980
+ export type DeleteMyCategValuesData = {
7155
6981
  body?: never;
7156
- path?: never;
6982
+ path: {
6983
+ categ: string;
6984
+ };
7157
6985
  query?: never;
7158
- url: '/my-user/me';
6986
+ url: '/my-user-key-value/values/{categ}';
7159
6987
  };
7160
6988
 
7161
- export type GetMyUserErrors = {
6989
+ export type DeleteMyCategValuesErrors = {
7162
6990
  /**
7163
6991
  * Bad request - Invalid parameters or malformed JSON
7164
6992
  */
@@ -7192,31 +7020,35 @@ export type GetMyUserErrors = {
7192
7020
  503: ErrorResponse;
7193
7021
  };
7194
7022
 
7195
- export type GetMyUserError = GetMyUserErrors[keyof GetMyUserErrors];
7023
+ export type DeleteMyCategValuesError = DeleteMyCategValuesErrors[keyof DeleteMyCategValuesErrors];
7196
7024
 
7197
- export type GetMyUserResponses = {
7025
+ export type DeleteMyCategValuesResponses = {
7198
7026
  /**
7199
- * Returns the requested user
7027
+ * Deletes all values for the category
7200
7028
  */
7201
7029
  200: {
7202
- user: UserRaw;
7030
+ categ: string;
7203
7031
  };
7204
7032
  };
7205
7033
 
7206
- export type GetMyUserResponse = GetMyUserResponses[keyof GetMyUserResponses];
7034
+ export type DeleteMyCategValuesResponse = DeleteMyCategValuesResponses[keyof DeleteMyCategValuesResponses];
7207
7035
 
7208
- export type UpdateMyUserData = {
7036
+ export type ReplaceMyCategValuesData = {
7209
7037
  body: {
7210
- picture?: string | null;
7211
- name?: string;
7212
- jobRole?: string | null;
7038
+ values: Array<{
7039
+ name: string;
7040
+ value: string;
7041
+ isSecret?: boolean;
7042
+ }>;
7043
+ };
7044
+ path: {
7045
+ categ: string;
7213
7046
  };
7214
- path?: never;
7215
7047
  query?: never;
7216
- url: '/my-user/me';
7048
+ url: '/my-user-key-value/values/{categ}';
7217
7049
  };
7218
7050
 
7219
- export type UpdateMyUserErrors = {
7051
+ export type ReplaceMyCategValuesErrors = {
7220
7052
  /**
7221
7053
  * Bad request - Invalid parameters or malformed JSON
7222
7054
  */
@@ -7250,29 +7082,31 @@ export type UpdateMyUserErrors = {
7250
7082
  503: ErrorResponse;
7251
7083
  };
7252
7084
 
7253
- export type UpdateMyUserError = UpdateMyUserErrors[keyof UpdateMyUserErrors];
7085
+ export type ReplaceMyCategValuesError = ReplaceMyCategValuesErrors[keyof ReplaceMyCategValuesErrors];
7254
7086
 
7255
- export type UpdateMyUserResponses = {
7087
+ export type ReplaceMyCategValuesResponses = {
7256
7088
  /**
7257
- * Updates user information
7089
+ * Replaces all values for the category and returns the upserted rows
7258
7090
  */
7259
7091
  200: {
7260
- user: UserRaw;
7092
+ values: Array<{
7093
+ id: string;
7094
+ name: string;
7095
+ }>;
7096
+ replaced: boolean;
7261
7097
  };
7262
7098
  };
7263
7099
 
7264
- export type UpdateMyUserResponse = UpdateMyUserResponses[keyof UpdateMyUserResponses];
7100
+ export type ReplaceMyCategValuesResponse = ReplaceMyCategValuesResponses[keyof ReplaceMyCategValuesResponses];
7265
7101
 
7266
- export type CreateWorkspaceData = {
7267
- body: {
7268
- name: string;
7269
- };
7102
+ export type GetAllData = {
7103
+ body?: never;
7270
7104
  path?: never;
7271
7105
  query?: never;
7272
- url: '/workspace/create';
7106
+ url: '/my-user-settings';
7273
7107
  };
7274
7108
 
7275
- export type CreateWorkspaceErrors = {
7109
+ export type GetAllErrors = {
7276
7110
  /**
7277
7111
  * Bad request - Invalid parameters or malformed JSON
7278
7112
  */
@@ -7306,27 +7140,33 @@ export type CreateWorkspaceErrors = {
7306
7140
  503: ErrorResponse;
7307
7141
  };
7308
7142
 
7309
- export type CreateWorkspaceError = CreateWorkspaceErrors[keyof CreateWorkspaceErrors];
7143
+ export type GetAllError = GetAllErrors[keyof GetAllErrors];
7310
7144
 
7311
- export type CreateWorkspaceResponses = {
7145
+ export type GetAllResponses = {
7312
7146
  /**
7313
- * Returns the created workspace
7147
+ * Returns user settings (empty object if none exist)
7314
7148
  */
7315
7149
  200: {
7316
- workspace: Workspace;
7150
+ settings: {
7151
+ [key: string]: unknown;
7152
+ };
7317
7153
  };
7318
7154
  };
7319
7155
 
7320
- export type CreateWorkspaceResponse = CreateWorkspaceResponses[keyof CreateWorkspaceResponses];
7156
+ export type GetAllResponse = GetAllResponses[keyof GetAllResponses];
7321
7157
 
7322
- export type GetAllWorkspacesData = {
7323
- body?: never;
7158
+ export type OverrideAllData = {
7159
+ body: {
7160
+ settings: {
7161
+ [key: string]: unknown;
7162
+ };
7163
+ };
7324
7164
  path?: never;
7325
7165
  query?: never;
7326
- url: '/workspace/list-my';
7166
+ url: '/my-user-settings';
7327
7167
  };
7328
7168
 
7329
- export type GetAllWorkspacesErrors = {
7169
+ export type OverrideAllErrors = {
7330
7170
  /**
7331
7171
  * Bad request - Invalid parameters or malformed JSON
7332
7172
  */
@@ -7360,32 +7200,29 @@ export type GetAllWorkspacesErrors = {
7360
7200
  503: ErrorResponse;
7361
7201
  };
7362
7202
 
7363
- export type GetAllWorkspacesError = GetAllWorkspacesErrors[keyof GetAllWorkspacesErrors];
7203
+ export type OverrideAllError = OverrideAllErrors[keyof OverrideAllErrors];
7364
7204
 
7365
- export type GetAllWorkspacesResponses = {
7205
+ export type OverrideAllResponses = {
7366
7206
  /**
7367
- * Returns the list of workspaces for the current user
7207
+ * Settings updated successfully
7368
7208
  */
7369
7209
  200: {
7370
- workspaces: Array<Workspace>;
7210
+ success: boolean;
7371
7211
  };
7372
7212
  };
7373
7213
 
7374
- export type GetAllWorkspacesResponse = GetAllWorkspacesResponses[keyof GetAllWorkspacesResponses];
7214
+ export type OverrideAllResponse = OverrideAllResponses[keyof OverrideAllResponses];
7375
7215
 
7376
- export type GetMyValuesData = {
7377
- body?: never;
7378
- path?: never;
7379
- query?: {
7380
- /**
7381
- * Filter results to this category
7382
- */
7383
- categ?: string;
7216
+ export type CreateSessionData = {
7217
+ body: {
7218
+ integrationName: IntegrationName;
7384
7219
  };
7385
- url: '/my-user-key-value/values';
7220
+ path?: never;
7221
+ query?: never;
7222
+ url: '/mcp/create-session';
7386
7223
  };
7387
7224
 
7388
- export type GetMyValuesErrors = {
7225
+ export type CreateSessionErrors = {
7389
7226
  /**
7390
7227
  * Bad request - Invalid parameters or malformed JSON
7391
7228
  */
@@ -7419,43 +7256,35 @@ export type GetMyValuesErrors = {
7419
7256
  503: ErrorResponse;
7420
7257
  };
7421
7258
 
7422
- export type GetMyValuesError = GetMyValuesErrors[keyof GetMyValuesErrors];
7259
+ export type CreateSessionError = CreateSessionErrors[keyof CreateSessionErrors];
7423
7260
 
7424
- export type GetMyValuesResponses = {
7261
+ export type CreateSessionResponses = {
7425
7262
  /**
7426
- * Returns key values for the current user
7263
+ * An authorized MCP session (opaque access-token header) or an unauthorized marker
7427
7264
  */
7428
- 200: {
7429
- values: Array<{
7430
- id: string;
7431
- dazlUserId: string;
7432
- category: string;
7433
- name: string;
7434
- strVal: string | null;
7435
- encryptedValId: string | null;
7436
- createdAt: string;
7437
- updatedAt: string;
7438
- encryptedValue: string | null;
7439
- }>;
7440
- };
7265
+ 200: ({
7266
+ status: 'authorized';
7267
+ } & CreateSessionAuthorized) | ({
7268
+ status: 'unauthorized';
7269
+ } & CreateSessionUnauthorized);
7441
7270
  };
7442
7271
 
7443
- export type GetMyValuesResponse = GetMyValuesResponses[keyof GetMyValuesResponses];
7272
+ export type CreateSessionResponse = CreateSessionResponses[keyof CreateSessionResponses];
7444
7273
 
7445
- export type SetMyValueData = {
7274
+ export type InitiateConnectionData = {
7446
7275
  body: {
7447
- value: string;
7448
- isSecret?: boolean;
7449
- };
7450
- path: {
7451
- categ: string;
7452
- name: string;
7276
+ integrationName: IntegrationName;
7277
+ /**
7278
+ * Where the browser lands after OAuth; built by the caller
7279
+ */
7280
+ callbackUrl: string;
7453
7281
  };
7282
+ path?: never;
7454
7283
  query?: never;
7455
- url: '/my-user-key-value/values/{categ}/{name}';
7284
+ url: '/mcp/connections';
7456
7285
  };
7457
7286
 
7458
- export type SetMyValueErrors = {
7287
+ export type InitiateConnectionErrors = {
7459
7288
  /**
7460
7289
  * Bad request - Invalid parameters or malformed JSON
7461
7290
  */
@@ -7489,29 +7318,32 @@ export type SetMyValueErrors = {
7489
7318
  503: ErrorResponse;
7490
7319
  };
7491
7320
 
7492
- export type SetMyValueError = SetMyValueErrors[keyof SetMyValueErrors];
7321
+ export type InitiateConnectionError = InitiateConnectionErrors[keyof InitiateConnectionErrors];
7493
7322
 
7494
- export type SetMyValueResponses = {
7323
+ export type InitiateConnectionResponses = {
7495
7324
  /**
7496
- * Sets a single key value and returns its id
7325
+ * The OAuth connection request id and the redirect URL to send the user to
7497
7326
  */
7498
7327
  200: {
7499
- id: string;
7328
+ connectionRequestId: string;
7329
+ redirectUrl: string;
7500
7330
  };
7501
7331
  };
7502
7332
 
7503
- export type SetMyValueResponse = SetMyValueResponses[keyof SetMyValueResponses];
7333
+ export type InitiateConnectionResponse = InitiateConnectionResponses[keyof InitiateConnectionResponses];
7504
7334
 
7505
- export type DeleteMyCategValuesData = {
7506
- body?: never;
7335
+ export type FinalizeConnectionData = {
7336
+ body: {
7337
+ integrationName: IntegrationName;
7338
+ };
7507
7339
  path: {
7508
- categ: string;
7340
+ connectionRequestId: string;
7509
7341
  };
7510
7342
  query?: never;
7511
- url: '/my-user-key-value/values/{categ}';
7343
+ url: '/mcp/connections/{connectionRequestId}/finalize';
7512
7344
  };
7513
7345
 
7514
- export type DeleteMyCategValuesErrors = {
7346
+ export type FinalizeConnectionErrors = {
7515
7347
  /**
7516
7348
  * Bad request - Invalid parameters or malformed JSON
7517
7349
  */
@@ -7545,35 +7377,32 @@ export type DeleteMyCategValuesErrors = {
7545
7377
  503: ErrorResponse;
7546
7378
  };
7547
7379
 
7548
- export type DeleteMyCategValuesError = DeleteMyCategValuesErrors[keyof DeleteMyCategValuesErrors];
7380
+ export type FinalizeConnectionError = FinalizeConnectionErrors[keyof FinalizeConnectionErrors];
7549
7381
 
7550
- export type DeleteMyCategValuesResponses = {
7382
+ export type FinalizeConnectionResponses = {
7551
7383
  /**
7552
- * Deletes all values for the category
7384
+ * The persisted connected-account id (ca_...)
7553
7385
  */
7554
7386
  200: {
7555
- categ: string;
7387
+ connectionId: string;
7556
7388
  };
7557
7389
  };
7558
7390
 
7559
- export type DeleteMyCategValuesResponse = DeleteMyCategValuesResponses[keyof DeleteMyCategValuesResponses];
7391
+ export type FinalizeConnectionResponse = FinalizeConnectionResponses[keyof FinalizeConnectionResponses];
7560
7392
 
7561
- export type ReplaceMyCategValuesData = {
7562
- body: {
7563
- values: Array<{
7564
- name: string;
7565
- value: string;
7566
- isSecret?: boolean;
7567
- }>;
7568
- };
7569
- path: {
7570
- categ: string;
7393
+ export type GetConnectionStatusData = {
7394
+ body?: never;
7395
+ path?: never;
7396
+ query?: {
7397
+ /**
7398
+ * If omitted, returns status for all integrations
7399
+ */
7400
+ integrationName?: 'confluence' | 'figma' | 'google-docs' | 'google-sheets' | 'google-slides' | 'jira' | 'linear' | 'miro' | 'notion';
7571
7401
  };
7572
- query?: never;
7573
- url: '/my-user-key-value/values/{categ}';
7402
+ url: '/mcp/connections/status';
7574
7403
  };
7575
7404
 
7576
- export type ReplaceMyCategValuesErrors = {
7405
+ export type GetConnectionStatusErrors = {
7577
7406
  /**
7578
7407
  * Bad request - Invalid parameters or malformed JSON
7579
7408
  */
@@ -7607,31 +7436,334 @@ export type ReplaceMyCategValuesErrors = {
7607
7436
  503: ErrorResponse;
7608
7437
  };
7609
7438
 
7610
- export type ReplaceMyCategValuesError = ReplaceMyCategValuesErrors[keyof ReplaceMyCategValuesErrors];
7439
+ export type GetConnectionStatusError = GetConnectionStatusErrors[keyof GetConnectionStatusErrors];
7611
7440
 
7612
- export type ReplaceMyCategValuesResponses = {
7441
+ export type GetConnectionStatusResponses = {
7613
7442
  /**
7614
- * Replaces all values for the category and returns the upserted rows
7443
+ * Active-connection status for the requested integration(s)
7615
7444
  */
7616
- 200: {
7617
- values: Array<{
7618
- id: string;
7619
- name: string;
7620
- }>;
7621
- replaced: boolean;
7622
- };
7445
+ 200: Array<ConnectionStatus>;
7623
7446
  };
7624
7447
 
7625
- export type ReplaceMyCategValuesResponse = ReplaceMyCategValuesResponses[keyof ReplaceMyCategValuesResponses];
7448
+ export type GetConnectionStatusResponse = GetConnectionStatusResponses[keyof GetConnectionStatusResponses];
7626
7449
 
7627
- export type GetAllData = {
7450
+ export type DeleteCommentData = {
7628
7451
  body?: never;
7629
- path?: never;
7452
+ path: {
7453
+ hostType: 'project' | 'workspace';
7454
+ hostId: string;
7455
+ commentId: string;
7456
+ };
7630
7457
  query?: never;
7631
- url: '/my-user-settings';
7458
+ url: '/comments/{hostType}/{hostId}/{commentId}';
7459
+ };
7460
+
7461
+ export type DeleteCommentErrors = {
7462
+ /**
7463
+ * Bad request - Invalid parameters or malformed JSON
7464
+ */
7465
+ 400: {
7466
+ message: string;
7467
+ issues?: string;
7468
+ };
7469
+ /**
7470
+ * Unauthorized
7471
+ */
7472
+ 401: ErrorResponse;
7473
+ /**
7474
+ * Forbidden
7475
+ */
7476
+ 403: ErrorResponse;
7477
+ /**
7478
+ * Not Found
7479
+ */
7480
+ 404: ErrorResponse;
7481
+ /**
7482
+ * Conflict
7483
+ */
7484
+ 409: ErrorResponse;
7485
+ /**
7486
+ * Internal server error
7487
+ */
7488
+ 500: ErrorResponse;
7489
+ /**
7490
+ * Service Unavailable
7491
+ */
7492
+ 503: ErrorResponse;
7493
+ };
7494
+
7495
+ export type DeleteCommentError = DeleteCommentErrors[keyof DeleteCommentErrors];
7496
+
7497
+ export type DeleteCommentResponses = {
7498
+ /**
7499
+ * Acknowledges that the comment was deleted
7500
+ */
7501
+ 200: {
7502
+ success: true;
7503
+ };
7504
+ };
7505
+
7506
+ export type DeleteCommentResponse = DeleteCommentResponses[keyof DeleteCommentResponses];
7507
+
7508
+ export type GetCommentData = {
7509
+ body?: never;
7510
+ path: {
7511
+ hostType: 'project' | 'workspace';
7512
+ hostId: string;
7513
+ commentId: string;
7514
+ };
7515
+ query?: never;
7516
+ url: '/comments/{hostType}/{hostId}/{commentId}';
7517
+ };
7518
+
7519
+ export type GetCommentErrors = {
7520
+ /**
7521
+ * Bad request - Invalid parameters or malformed JSON
7522
+ */
7523
+ 400: {
7524
+ message: string;
7525
+ issues?: string;
7526
+ };
7527
+ /**
7528
+ * Unauthorized
7529
+ */
7530
+ 401: ErrorResponse;
7531
+ /**
7532
+ * Forbidden
7533
+ */
7534
+ 403: ErrorResponse;
7535
+ /**
7536
+ * Not Found
7537
+ */
7538
+ 404: ErrorResponse;
7539
+ /**
7540
+ * Conflict
7541
+ */
7542
+ 409: ErrorResponse;
7543
+ /**
7544
+ * Internal server error
7545
+ */
7546
+ 500: ErrorResponse;
7547
+ /**
7548
+ * Service Unavailable
7549
+ */
7550
+ 503: ErrorResponse;
7551
+ };
7552
+
7553
+ export type GetCommentError = GetCommentErrors[keyof GetCommentErrors];
7554
+
7555
+ export type GetCommentResponses = {
7556
+ /**
7557
+ * Returns comment by id for the host entity
7558
+ */
7559
+ 200: {
7560
+ comment: {
7561
+ commentId: string;
7562
+ author: {
7563
+ dazlUserId: string;
7564
+ };
7565
+ content: string;
7566
+ mentions: Array<UserMention>;
7567
+ createdAt: string;
7568
+ updatedAt: string;
7569
+ lastActivityAt: string;
7570
+ isEdited: boolean;
7571
+ replies: Array<{
7572
+ replyId: string;
7573
+ author: {
7574
+ dazlUserId: string;
7575
+ };
7576
+ content: string;
7577
+ mentions: Array<UserMention>;
7578
+ createdAt: string;
7579
+ updatedAt: string;
7580
+ gitInfo?: CommentGitInfo;
7581
+ }>;
7582
+ resolved?: CommentResolved;
7583
+ context?: CommentContext;
7584
+ gitInfo?: CommentGitInfo;
7585
+ };
7586
+ };
7587
+ };
7588
+
7589
+ export type GetCommentResponse = GetCommentResponses[keyof GetCommentResponses];
7590
+
7591
+ export type EditCommentData = {
7592
+ body: EditCommentInput;
7593
+ path: {
7594
+ hostType: 'project' | 'workspace';
7595
+ hostId: string;
7596
+ commentId: string;
7597
+ };
7598
+ query?: never;
7599
+ url: '/comments/{hostType}/{hostId}/{commentId}';
7600
+ };
7601
+
7602
+ export type EditCommentErrors = {
7603
+ /**
7604
+ * Bad request - Invalid parameters or malformed JSON
7605
+ */
7606
+ 400: {
7607
+ message: string;
7608
+ issues?: string;
7609
+ };
7610
+ /**
7611
+ * Unauthorized
7612
+ */
7613
+ 401: ErrorResponse;
7614
+ /**
7615
+ * Forbidden
7616
+ */
7617
+ 403: ErrorResponse;
7618
+ /**
7619
+ * Not Found
7620
+ */
7621
+ 404: ErrorResponse;
7622
+ /**
7623
+ * Conflict
7624
+ */
7625
+ 409: ErrorResponse;
7626
+ /**
7627
+ * Internal server error
7628
+ */
7629
+ 500: ErrorResponse;
7630
+ /**
7631
+ * Service Unavailable
7632
+ */
7633
+ 503: ErrorResponse;
7634
+ };
7635
+
7636
+ export type EditCommentError = EditCommentErrors[keyof EditCommentErrors];
7637
+
7638
+ export type EditCommentResponses = {
7639
+ /**
7640
+ * Returns the updated comment
7641
+ */
7642
+ 200: {
7643
+ comment: {
7644
+ commentId: string;
7645
+ author: {
7646
+ dazlUserId: string;
7647
+ };
7648
+ content: string;
7649
+ mentions: Array<UserMention>;
7650
+ createdAt: string;
7651
+ updatedAt: string;
7652
+ lastActivityAt: string;
7653
+ isEdited: boolean;
7654
+ replies: Array<{
7655
+ replyId: string;
7656
+ author: {
7657
+ dazlUserId: string;
7658
+ };
7659
+ content: string;
7660
+ mentions: Array<UserMention>;
7661
+ createdAt: string;
7662
+ updatedAt: string;
7663
+ gitInfo?: CommentGitInfo;
7664
+ }>;
7665
+ resolved?: CommentResolved;
7666
+ context?: CommentContext;
7667
+ gitInfo?: CommentGitInfo;
7668
+ };
7669
+ };
7670
+ };
7671
+
7672
+ export type EditCommentResponse = EditCommentResponses[keyof EditCommentResponses];
7673
+
7674
+ export type ListCommentsData = {
7675
+ body?: never;
7676
+ path: {
7677
+ hostType: 'project' | 'workspace';
7678
+ hostId: string;
7679
+ };
7680
+ query?: never;
7681
+ url: '/comments/{hostType}/{hostId}';
7682
+ };
7683
+
7684
+ export type ListCommentsErrors = {
7685
+ /**
7686
+ * Bad request - Invalid parameters or malformed JSON
7687
+ */
7688
+ 400: {
7689
+ message: string;
7690
+ issues?: string;
7691
+ };
7692
+ /**
7693
+ * Unauthorized
7694
+ */
7695
+ 401: ErrorResponse;
7696
+ /**
7697
+ * Forbidden
7698
+ */
7699
+ 403: ErrorResponse;
7700
+ /**
7701
+ * Not Found
7702
+ */
7703
+ 404: ErrorResponse;
7704
+ /**
7705
+ * Conflict
7706
+ */
7707
+ 409: ErrorResponse;
7708
+ /**
7709
+ * Internal server error
7710
+ */
7711
+ 500: ErrorResponse;
7712
+ /**
7713
+ * Service Unavailable
7714
+ */
7715
+ 503: ErrorResponse;
7716
+ };
7717
+
7718
+ export type ListCommentsError = ListCommentsErrors[keyof ListCommentsErrors];
7719
+
7720
+ export type ListCommentsResponses = {
7721
+ /**
7722
+ * Returns the list of comments for the host entity
7723
+ */
7724
+ 200: {
7725
+ comments: Array<{
7726
+ commentId: string;
7727
+ author: {
7728
+ dazlUserId: string;
7729
+ };
7730
+ content: string;
7731
+ mentions: Array<UserMention>;
7732
+ createdAt: string;
7733
+ updatedAt: string;
7734
+ lastActivityAt: string;
7735
+ isEdited: boolean;
7736
+ replies: Array<{
7737
+ replyId: string;
7738
+ author: {
7739
+ dazlUserId: string;
7740
+ };
7741
+ content: string;
7742
+ mentions: Array<UserMention>;
7743
+ createdAt: string;
7744
+ updatedAt: string;
7745
+ gitInfo?: CommentGitInfo;
7746
+ }>;
7747
+ resolved?: CommentResolved;
7748
+ context?: CommentContext;
7749
+ gitInfo?: CommentGitInfo;
7750
+ }>;
7751
+ };
7752
+ };
7753
+
7754
+ export type ListCommentsResponse = ListCommentsResponses[keyof ListCommentsResponses];
7755
+
7756
+ export type CreateCommentData = {
7757
+ body: CreateCommentInput;
7758
+ path: {
7759
+ hostType: 'project' | 'workspace';
7760
+ hostId: string;
7761
+ };
7762
+ query?: never;
7763
+ url: '/comments/{hostType}/{hostId}';
7632
7764
  };
7633
7765
 
7634
- export type GetAllErrors = {
7766
+ export type CreateCommentErrors = {
7635
7767
  /**
7636
7768
  * Bad request - Invalid parameters or malformed JSON
7637
7769
  */
@@ -7665,33 +7797,56 @@ export type GetAllErrors = {
7665
7797
  503: ErrorResponse;
7666
7798
  };
7667
7799
 
7668
- export type GetAllError = GetAllErrors[keyof GetAllErrors];
7800
+ export type CreateCommentError = CreateCommentErrors[keyof CreateCommentErrors];
7669
7801
 
7670
- export type GetAllResponses = {
7802
+ export type CreateCommentResponses = {
7671
7803
  /**
7672
- * Returns user settings (empty object if none exist)
7804
+ * Returns the created comment
7673
7805
  */
7674
7806
  200: {
7675
- settings: {
7676
- [key: string]: unknown;
7807
+ comment: {
7808
+ commentId: string;
7809
+ author: {
7810
+ dazlUserId: string;
7811
+ };
7812
+ content: string;
7813
+ mentions: Array<UserMention>;
7814
+ createdAt: string;
7815
+ updatedAt: string;
7816
+ lastActivityAt: string;
7817
+ isEdited: boolean;
7818
+ replies: Array<{
7819
+ replyId: string;
7820
+ author: {
7821
+ dazlUserId: string;
7822
+ };
7823
+ content: string;
7824
+ mentions: Array<UserMention>;
7825
+ createdAt: string;
7826
+ updatedAt: string;
7827
+ gitInfo?: CommentGitInfo;
7828
+ }>;
7829
+ resolved?: CommentResolved;
7830
+ context?: CommentContext;
7831
+ gitInfo?: CommentGitInfo;
7677
7832
  };
7678
7833
  };
7679
7834
  };
7680
7835
 
7681
- export type GetAllResponse = GetAllResponses[keyof GetAllResponses];
7836
+ export type CreateCommentResponse = CreateCommentResponses[keyof CreateCommentResponses];
7682
7837
 
7683
- export type OverrideAllData = {
7684
- body: {
7685
- settings: {
7686
- [key: string]: unknown;
7687
- };
7838
+ export type ResolveCommentData = {
7839
+ body?: never;
7840
+ path: {
7841
+ hostType: 'project' | 'workspace';
7842
+ hostId: string;
7843
+ commentId: string;
7688
7844
  };
7689
- path?: never;
7690
7845
  query?: never;
7691
- url: '/my-user-settings';
7846
+ url: '/comments/{hostType}/{hostId}/{commentId}/resolve';
7692
7847
  };
7693
7848
 
7694
- export type OverrideAllErrors = {
7849
+ export type ResolveCommentErrors = {
7695
7850
  /**
7696
7851
  * Bad request - Invalid parameters or malformed JSON
7697
7852
  */
@@ -7725,29 +7880,56 @@ export type OverrideAllErrors = {
7725
7880
  503: ErrorResponse;
7726
7881
  };
7727
7882
 
7728
- export type OverrideAllError = OverrideAllErrors[keyof OverrideAllErrors];
7883
+ export type ResolveCommentError = ResolveCommentErrors[keyof ResolveCommentErrors];
7729
7884
 
7730
- export type OverrideAllResponses = {
7885
+ export type ResolveCommentResponses = {
7731
7886
  /**
7732
- * Settings updated successfully
7887
+ * Returns the resolved comment
7733
7888
  */
7734
7889
  200: {
7735
- success: boolean;
7890
+ comment: {
7891
+ commentId: string;
7892
+ author: {
7893
+ dazlUserId: string;
7894
+ };
7895
+ content: string;
7896
+ mentions: Array<UserMention>;
7897
+ createdAt: string;
7898
+ updatedAt: string;
7899
+ lastActivityAt: string;
7900
+ isEdited: boolean;
7901
+ replies: Array<{
7902
+ replyId: string;
7903
+ author: {
7904
+ dazlUserId: string;
7905
+ };
7906
+ content: string;
7907
+ mentions: Array<UserMention>;
7908
+ createdAt: string;
7909
+ updatedAt: string;
7910
+ gitInfo?: CommentGitInfo;
7911
+ }>;
7912
+ resolved?: CommentResolved;
7913
+ context?: CommentContext;
7914
+ gitInfo?: CommentGitInfo;
7915
+ };
7736
7916
  };
7737
7917
  };
7738
7918
 
7739
- export type OverrideAllResponse = OverrideAllResponses[keyof OverrideAllResponses];
7919
+ export type ResolveCommentResponse = ResolveCommentResponses[keyof ResolveCommentResponses];
7740
7920
 
7741
- export type CreateSessionData = {
7742
- body: {
7743
- integrationName: IntegrationName;
7921
+ export type ReopenCommentData = {
7922
+ body?: never;
7923
+ path: {
7924
+ hostType: 'project' | 'workspace';
7925
+ hostId: string;
7926
+ commentId: string;
7744
7927
  };
7745
- path?: never;
7746
7928
  query?: never;
7747
- url: '/mcp/create-session';
7929
+ url: '/comments/{hostType}/{hostId}/{commentId}/reopen';
7748
7930
  };
7749
7931
 
7750
- export type CreateSessionErrors = {
7932
+ export type ReopenCommentErrors = {
7751
7933
  /**
7752
7934
  * Bad request - Invalid parameters or malformed JSON
7753
7935
  */
@@ -7781,35 +7963,56 @@ export type CreateSessionErrors = {
7781
7963
  503: ErrorResponse;
7782
7964
  };
7783
7965
 
7784
- export type CreateSessionError = CreateSessionErrors[keyof CreateSessionErrors];
7966
+ export type ReopenCommentError = ReopenCommentErrors[keyof ReopenCommentErrors];
7785
7967
 
7786
- export type CreateSessionResponses = {
7968
+ export type ReopenCommentResponses = {
7787
7969
  /**
7788
- * An authorized MCP session (opaque access-token header) or an unauthorized marker
7970
+ * Returns the reopened comment
7789
7971
  */
7790
- 200: ({
7791
- status: 'authorized';
7792
- } & CreateSessionAuthorized) | ({
7793
- status: 'unauthorized';
7794
- } & CreateSessionUnauthorized);
7972
+ 200: {
7973
+ comment: {
7974
+ commentId: string;
7975
+ author: {
7976
+ dazlUserId: string;
7977
+ };
7978
+ content: string;
7979
+ mentions: Array<UserMention>;
7980
+ createdAt: string;
7981
+ updatedAt: string;
7982
+ lastActivityAt: string;
7983
+ isEdited: boolean;
7984
+ replies: Array<{
7985
+ replyId: string;
7986
+ author: {
7987
+ dazlUserId: string;
7988
+ };
7989
+ content: string;
7990
+ mentions: Array<UserMention>;
7991
+ createdAt: string;
7992
+ updatedAt: string;
7993
+ gitInfo?: CommentGitInfo;
7994
+ }>;
7995
+ resolved?: CommentResolved;
7996
+ context?: CommentContext;
7997
+ gitInfo?: CommentGitInfo;
7998
+ };
7999
+ };
7795
8000
  };
7796
8001
 
7797
- export type CreateSessionResponse = CreateSessionResponses[keyof CreateSessionResponses];
8002
+ export type ReopenCommentResponse = ReopenCommentResponses[keyof ReopenCommentResponses];
7798
8003
 
7799
- export type InitiateConnectionData = {
7800
- body: {
7801
- integrationName: IntegrationName;
7802
- /**
7803
- * Where the browser lands after OAuth; built by the caller
7804
- */
7805
- callbackUrl: string;
8004
+ export type CreateReplyData = {
8005
+ body: CreateReplyInput;
8006
+ path: {
8007
+ hostType: 'project' | 'workspace';
8008
+ hostId: string;
8009
+ commentId: string;
7806
8010
  };
7807
- path?: never;
7808
8011
  query?: never;
7809
- url: '/mcp/connections';
8012
+ url: '/comments/{hostType}/{hostId}/{commentId}/replies';
7810
8013
  };
7811
8014
 
7812
- export type InitiateConnectionErrors = {
8015
+ export type CreateReplyErrors = {
7813
8016
  /**
7814
8017
  * Bad request - Invalid parameters or malformed JSON
7815
8018
  */
@@ -7843,32 +8046,42 @@ export type InitiateConnectionErrors = {
7843
8046
  503: ErrorResponse;
7844
8047
  };
7845
8048
 
7846
- export type InitiateConnectionError = InitiateConnectionErrors[keyof InitiateConnectionErrors];
8049
+ export type CreateReplyError = CreateReplyErrors[keyof CreateReplyErrors];
7847
8050
 
7848
- export type InitiateConnectionResponses = {
8051
+ export type CreateReplyResponses = {
7849
8052
  /**
7850
- * The OAuth connection request id and the redirect URL to send the user to
8053
+ * Returns the created reply
7851
8054
  */
7852
8055
  200: {
7853
- connectionRequestId: string;
7854
- redirectUrl: string;
8056
+ reply: {
8057
+ replyId: string;
8058
+ author: {
8059
+ dazlUserId: string;
8060
+ };
8061
+ content: string;
8062
+ mentions: Array<UserMention>;
8063
+ createdAt: string;
8064
+ updatedAt: string;
8065
+ gitInfo?: CommentGitInfo;
8066
+ };
7855
8067
  };
7856
8068
  };
7857
8069
 
7858
- export type InitiateConnectionResponse = InitiateConnectionResponses[keyof InitiateConnectionResponses];
8070
+ export type CreateReplyResponse = CreateReplyResponses[keyof CreateReplyResponses];
7859
8071
 
7860
- export type FinalizeConnectionData = {
7861
- body: {
7862
- integrationName: IntegrationName;
7863
- };
8072
+ export type DeleteReplyData = {
8073
+ body?: never;
7864
8074
  path: {
7865
- connectionRequestId: string;
8075
+ hostType: 'project' | 'workspace';
8076
+ hostId: string;
8077
+ commentId: string;
8078
+ replyId: string;
7866
8079
  };
7867
8080
  query?: never;
7868
- url: '/mcp/connections/{connectionRequestId}/finalize';
8081
+ url: '/comments/{hostType}/{hostId}/{commentId}/replies/{replyId}';
7869
8082
  };
7870
8083
 
7871
- export type FinalizeConnectionErrors = {
8084
+ export type DeleteReplyErrors = {
7872
8085
  /**
7873
8086
  * Bad request - Invalid parameters or malformed JSON
7874
8087
  */
@@ -7902,32 +8115,32 @@ export type FinalizeConnectionErrors = {
7902
8115
  503: ErrorResponse;
7903
8116
  };
7904
8117
 
7905
- export type FinalizeConnectionError = FinalizeConnectionErrors[keyof FinalizeConnectionErrors];
8118
+ export type DeleteReplyError = DeleteReplyErrors[keyof DeleteReplyErrors];
7906
8119
 
7907
- export type FinalizeConnectionResponses = {
8120
+ export type DeleteReplyResponses = {
7908
8121
  /**
7909
- * The persisted connected-account id (ca_...)
8122
+ * Acknowledges that the reply was deleted
7910
8123
  */
7911
8124
  200: {
7912
- connectionId: string;
8125
+ success: true;
7913
8126
  };
7914
8127
  };
7915
8128
 
7916
- export type FinalizeConnectionResponse = FinalizeConnectionResponses[keyof FinalizeConnectionResponses];
8129
+ export type DeleteReplyResponse = DeleteReplyResponses[keyof DeleteReplyResponses];
7917
8130
 
7918
- export type GetConnectionStatusData = {
7919
- body?: never;
7920
- path?: never;
7921
- query?: {
7922
- /**
7923
- * If omitted, returns status for all integrations
7924
- */
7925
- integrationName?: 'confluence' | 'figma' | 'google-docs' | 'google-sheets' | 'google-slides' | 'jira' | 'linear' | 'miro' | 'notion';
8131
+ export type EditReplyData = {
8132
+ body: EditReplyInput;
8133
+ path: {
8134
+ hostType: 'project' | 'workspace';
8135
+ hostId: string;
8136
+ commentId: string;
8137
+ replyId: string;
7926
8138
  };
7927
- url: '/mcp/connections/status';
8139
+ query?: never;
8140
+ url: '/comments/{hostType}/{hostId}/{commentId}/replies/{replyId}';
7928
8141
  };
7929
8142
 
7930
- export type GetConnectionStatusErrors = {
8143
+ export type EditReplyErrors = {
7931
8144
  /**
7932
8145
  * Bad request - Invalid parameters or malformed JSON
7933
8146
  */
@@ -7961,13 +8174,25 @@ export type GetConnectionStatusErrors = {
7961
8174
  503: ErrorResponse;
7962
8175
  };
7963
8176
 
7964
- export type GetConnectionStatusError = GetConnectionStatusErrors[keyof GetConnectionStatusErrors];
8177
+ export type EditReplyError = EditReplyErrors[keyof EditReplyErrors];
7965
8178
 
7966
- export type GetConnectionStatusResponses = {
8179
+ export type EditReplyResponses = {
7967
8180
  /**
7968
- * Active-connection status for the requested integration(s)
8181
+ * Returns the updated reply
7969
8182
  */
7970
- 200: Array<ConnectionStatus>;
8183
+ 200: {
8184
+ reply: {
8185
+ replyId: string;
8186
+ author: {
8187
+ dazlUserId: string;
8188
+ };
8189
+ content: string;
8190
+ mentions: Array<UserMention>;
8191
+ createdAt: string;
8192
+ updatedAt: string;
8193
+ gitInfo?: CommentGitInfo;
8194
+ };
8195
+ };
7971
8196
  };
7972
8197
 
7973
- export type GetConnectionStatusResponse = GetConnectionStatusResponses[keyof GetConnectionStatusResponses];
8198
+ export type EditReplyResponse = EditReplyResponses[keyof EditReplyResponses];