@dazl/api-client 1.0.15 → 1.0.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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;
@@ -2723,6 +2723,10 @@ export type GetUserProjectsData = {
2723
2723
  ownerDazlId: string;
2724
2724
  };
2725
2725
  query?: {
2726
+ /**
2727
+ * Filter projects by workspace ID
2728
+ */
2729
+ workspaceId?: string;
2726
2730
  /**
2727
2731
  * Include deployed projects info in the response
2728
2732
  */
@@ -2859,63 +2863,6 @@ export type InviteProjectMemberResponses = {
2859
2863
 
2860
2864
  export type InviteProjectMemberResponse = InviteProjectMemberResponses[keyof InviteProjectMemberResponses];
2861
2865
 
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
2866
  export type GetProjectCollaboratorsData = {
2920
2867
  body?: never;
2921
2868
  path: {
@@ -6345,18 +6292,16 @@ export type GetUserActivePromotionsResponses = {
6345
6292
 
6346
6293
  export type GetUserActivePromotionsResponse = GetUserActivePromotionsResponses[keyof GetUserActivePromotionsResponses];
6347
6294
 
6348
- export type DeleteCommentData = {
6295
+ export type GetFeatureTogglesData = {
6349
6296
  body?: never;
6350
- path: {
6351
- hostType: 'project' | 'workspace';
6352
- hostId: string;
6353
- commentId: string;
6297
+ path?: never;
6298
+ query?: {
6299
+ scope?: 'RemoteAndEditor' | 'SiteAndEditor';
6354
6300
  };
6355
- query?: never;
6356
- url: '/comments/{hostType}/{hostId}/{commentId}';
6301
+ url: '/env-config';
6357
6302
  };
6358
6303
 
6359
- export type DeleteCommentErrors = {
6304
+ export type GetFeatureTogglesErrors = {
6360
6305
  /**
6361
6306
  * Bad request - Invalid parameters or malformed JSON
6362
6307
  */
@@ -6390,31 +6335,27 @@ export type DeleteCommentErrors = {
6390
6335
  503: ErrorResponse;
6391
6336
  };
6392
6337
 
6393
- export type DeleteCommentError = DeleteCommentErrors[keyof DeleteCommentErrors];
6338
+ export type GetFeatureTogglesError = GetFeatureTogglesErrors[keyof GetFeatureTogglesErrors];
6394
6339
 
6395
- export type DeleteCommentResponses = {
6340
+ export type GetFeatureTogglesResponses = {
6396
6341
  /**
6397
- * Acknowledges that the comment was deleted
6342
+ * Returns feature toggles, optionally filtered by scope
6398
6343
  */
6399
6344
  200: {
6400
- success: true;
6345
+ toggles: Array<FeatureToggle>;
6401
6346
  };
6402
6347
  };
6403
6348
 
6404
- export type DeleteCommentResponse = DeleteCommentResponses[keyof DeleteCommentResponses];
6349
+ export type GetFeatureTogglesResponse = GetFeatureTogglesResponses[keyof GetFeatureTogglesResponses];
6405
6350
 
6406
- export type GetCommentData = {
6351
+ export type GetMyUserData = {
6407
6352
  body?: never;
6408
- path: {
6409
- hostType: 'project' | 'workspace';
6410
- hostId: string;
6411
- commentId: string;
6412
- };
6353
+ path?: never;
6413
6354
  query?: never;
6414
- url: '/comments/{hostType}/{hostId}/{commentId}';
6355
+ url: '/my-user/me';
6415
6356
  };
6416
6357
 
6417
- export type GetCommentErrors = {
6358
+ export type GetMyUserErrors = {
6418
6359
  /**
6419
6360
  * Bad request - Invalid parameters or malformed JSON
6420
6361
  */
@@ -6448,56 +6389,31 @@ export type GetCommentErrors = {
6448
6389
  503: ErrorResponse;
6449
6390
  };
6450
6391
 
6451
- export type GetCommentError = GetCommentErrors[keyof GetCommentErrors];
6392
+ export type GetMyUserError = GetMyUserErrors[keyof GetMyUserErrors];
6452
6393
 
6453
- export type GetCommentResponses = {
6394
+ export type GetMyUserResponses = {
6454
6395
  /**
6455
- * Returns comment by id for the host entity
6396
+ * Returns the requested user
6456
6397
  */
6457
6398
  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
- };
6399
+ user: UserRaw;
6484
6400
  };
6485
6401
  };
6486
6402
 
6487
- export type GetCommentResponse = GetCommentResponses[keyof GetCommentResponses];
6403
+ export type GetMyUserResponse = GetMyUserResponses[keyof GetMyUserResponses];
6488
6404
 
6489
- export type EditCommentData = {
6490
- body: EditCommentInput;
6491
- path: {
6492
- hostType: 'project' | 'workspace';
6493
- hostId: string;
6494
- commentId: string;
6405
+ export type UpdateMyUserData = {
6406
+ body: {
6407
+ picture?: string | null;
6408
+ name?: string;
6409
+ jobRole?: string | null;
6495
6410
  };
6411
+ path?: never;
6496
6412
  query?: never;
6497
- url: '/comments/{hostType}/{hostId}/{commentId}';
6413
+ url: '/my-user/me';
6498
6414
  };
6499
6415
 
6500
- export type EditCommentErrors = {
6416
+ export type UpdateMyUserErrors = {
6501
6417
  /**
6502
6418
  * Bad request - Invalid parameters or malformed JSON
6503
6419
  */
@@ -6531,55 +6447,29 @@ export type EditCommentErrors = {
6531
6447
  503: ErrorResponse;
6532
6448
  };
6533
6449
 
6534
- export type EditCommentError = EditCommentErrors[keyof EditCommentErrors];
6450
+ export type UpdateMyUserError = UpdateMyUserErrors[keyof UpdateMyUserErrors];
6535
6451
 
6536
- export type EditCommentResponses = {
6452
+ export type UpdateMyUserResponses = {
6537
6453
  /**
6538
- * Returns the updated comment
6454
+ * Updates user information
6539
6455
  */
6540
6456
  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
- };
6457
+ user: UserRaw;
6567
6458
  };
6568
6459
  };
6569
6460
 
6570
- export type EditCommentResponse = EditCommentResponses[keyof EditCommentResponses];
6461
+ export type UpdateMyUserResponse = UpdateMyUserResponses[keyof UpdateMyUserResponses];
6571
6462
 
6572
- export type ListCommentsData = {
6573
- body?: never;
6574
- path: {
6575
- hostType: 'project' | 'workspace';
6576
- hostId: string;
6463
+ export type CreateWorkspaceData = {
6464
+ body: {
6465
+ name: string;
6577
6466
  };
6467
+ path?: never;
6578
6468
  query?: never;
6579
- url: '/comments/{hostType}/{hostId}';
6469
+ url: '/workspace/create';
6580
6470
  };
6581
6471
 
6582
- export type ListCommentsErrors = {
6472
+ export type CreateWorkspaceErrors = {
6583
6473
  /**
6584
6474
  * Bad request - Invalid parameters or malformed JSON
6585
6475
  */
@@ -6613,55 +6503,29 @@ export type ListCommentsErrors = {
6613
6503
  503: ErrorResponse;
6614
6504
  };
6615
6505
 
6616
- export type ListCommentsError = ListCommentsErrors[keyof ListCommentsErrors];
6506
+ export type CreateWorkspaceError = CreateWorkspaceErrors[keyof CreateWorkspaceErrors];
6617
6507
 
6618
- export type ListCommentsResponses = {
6508
+ export type CreateWorkspaceResponses = {
6619
6509
  /**
6620
- * Returns the list of comments for the host entity
6510
+ * Returns the created workspace
6621
6511
  */
6622
6512
  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
- }>;
6513
+ workspace: Workspace;
6649
6514
  };
6650
6515
  };
6651
6516
 
6652
- export type ListCommentsResponse = ListCommentsResponses[keyof ListCommentsResponses];
6517
+ export type CreateWorkspaceResponse = CreateWorkspaceResponses[keyof CreateWorkspaceResponses];
6653
6518
 
6654
- export type CreateCommentData = {
6655
- body: CreateCommentInput;
6519
+ export type GetWorkspaceData = {
6520
+ body?: never;
6656
6521
  path: {
6657
- hostType: 'project' | 'workspace';
6658
- hostId: string;
6522
+ workspaceId: string;
6659
6523
  };
6660
6524
  query?: never;
6661
- url: '/comments/{hostType}/{hostId}';
6525
+ url: '/workspace/{workspaceId}';
6662
6526
  };
6663
6527
 
6664
- export type CreateCommentErrors = {
6528
+ export type GetWorkspaceErrors = {
6665
6529
  /**
6666
6530
  * Bad request - Invalid parameters or malformed JSON
6667
6531
  */
@@ -6695,56 +6559,32 @@ export type CreateCommentErrors = {
6695
6559
  503: ErrorResponse;
6696
6560
  };
6697
6561
 
6698
- export type CreateCommentError = CreateCommentErrors[keyof CreateCommentErrors];
6562
+ export type GetWorkspaceError = GetWorkspaceErrors[keyof GetWorkspaceErrors];
6699
6563
 
6700
- export type CreateCommentResponses = {
6564
+ export type GetWorkspaceResponses = {
6701
6565
  /**
6702
- * Returns the created comment
6566
+ * Returns the workspace with the given ID
6703
6567
  */
6704
6568
  200: {
6705
- comment: {
6706
- commentId: string;
6707
- author: {
6708
- dazlUserId: string;
6709
- };
6710
- content: string;
6711
- mentions: Array<UserMention>;
6712
- 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;
6726
- }>;
6727
- resolved?: CommentResolved;
6728
- context?: CommentContext;
6729
- gitInfo?: CommentGitInfo;
6730
- };
6569
+ workspace: Workspace;
6731
6570
  };
6732
6571
  };
6733
6572
 
6734
- export type CreateCommentResponse = CreateCommentResponses[keyof CreateCommentResponses];
6573
+ export type GetWorkspaceResponse = GetWorkspaceResponses[keyof GetWorkspaceResponses];
6735
6574
 
6736
- export type ResolveCommentData = {
6575
+ export type GetAllWorkspacesData = {
6737
6576
  body?: never;
6738
- path: {
6739
- hostType: 'project' | 'workspace';
6740
- hostId: string;
6741
- commentId: string;
6577
+ path?: never;
6578
+ query?: {
6579
+ /**
6580
+ * Whether to include the members of each workspace
6581
+ */
6582
+ withMembers?: boolean;
6742
6583
  };
6743
- query?: never;
6744
- url: '/comments/{hostType}/{hostId}/{commentId}/resolve';
6584
+ url: '/workspace/list-my';
6745
6585
  };
6746
6586
 
6747
- export type ResolveCommentErrors = {
6587
+ export type GetAllWorkspacesErrors = {
6748
6588
  /**
6749
6589
  * Bad request - Invalid parameters or malformed JSON
6750
6590
  */
@@ -6778,56 +6618,61 @@ export type ResolveCommentErrors = {
6778
6618
  503: ErrorResponse;
6779
6619
  };
6780
6620
 
6781
- export type ResolveCommentError = ResolveCommentErrors[keyof ResolveCommentErrors];
6621
+ export type GetAllWorkspacesError = GetAllWorkspacesErrors[keyof GetAllWorkspacesErrors];
6782
6622
 
6783
- export type ResolveCommentResponses = {
6623
+ export type GetAllWorkspacesResponses = {
6784
6624
  /**
6785
- * Returns the resolved comment
6625
+ * Returns the list of workspaces that the user is a member of
6786
6626
  */
6787
6627
  200: {
6788
- comment: {
6789
- commentId: string;
6790
- author: {
6791
- dazlUserId: string;
6792
- };
6793
- content: string;
6794
- mentions: Array<UserMention>;
6628
+ workspaces: Array<{
6629
+ id: string;
6630
+ name: string;
6631
+ /**
6632
+ * The user which created the workspace. Null if the user was deleted.
6633
+ */
6634
+ dazlUserId: string | null;
6795
6635
  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;
6636
+ isDefault: boolean;
6637
+ owner?: {
6638
+ /**
6639
+ * Dazl ID for the type = "user"
6640
+ */
6641
+ id: string;
6642
+ email: string;
6643
+ name?: string;
6644
+ picture?: string;
6645
+ role: 'workspace_member' | 'owner';
6646
+ } | null;
6647
+ members?: Array<{
6648
+ /**
6649
+ * Dazl ID for the type = "user"
6650
+ */
6651
+ id: string;
6652
+ email: string;
6653
+ name?: string;
6654
+ picture?: string;
6655
+ role: 'workspace_member' | 'owner';
6809
6656
  }>;
6810
- resolved?: CommentResolved;
6811
- context?: CommentContext;
6812
- gitInfo?: CommentGitInfo;
6813
- };
6657
+ }>;
6814
6658
  };
6815
6659
  };
6816
6660
 
6817
- export type ResolveCommentResponse = ResolveCommentResponses[keyof ResolveCommentResponses];
6661
+ export type GetAllWorkspacesResponse = GetAllWorkspacesResponses[keyof GetAllWorkspacesResponses];
6818
6662
 
6819
- export type ReopenCommentData = {
6820
- body?: never;
6663
+ export type InviteWorkspaceMemberData = {
6664
+ body: {
6665
+ email: string;
6666
+ role: 'workspace_member';
6667
+ };
6821
6668
  path: {
6822
- hostType: 'project' | 'workspace';
6823
- hostId: string;
6824
- commentId: string;
6669
+ workspaceId: string;
6825
6670
  };
6826
6671
  query?: never;
6827
- url: '/comments/{hostType}/{hostId}/{commentId}/reopen';
6672
+ url: '/workspace/{workspaceId}/members/invite';
6828
6673
  };
6829
6674
 
6830
- export type ReopenCommentErrors = {
6675
+ export type InviteWorkspaceMemberErrors = {
6831
6676
  /**
6832
6677
  * Bad request - Invalid parameters or malformed JSON
6833
6678
  */
@@ -6861,56 +6706,29 @@ export type ReopenCommentErrors = {
6861
6706
  503: ErrorResponse;
6862
6707
  };
6863
6708
 
6864
- export type ReopenCommentError = ReopenCommentErrors[keyof ReopenCommentErrors];
6709
+ export type InviteWorkspaceMemberError = InviteWorkspaceMemberErrors[keyof InviteWorkspaceMemberErrors];
6865
6710
 
6866
- export type ReopenCommentResponses = {
6711
+ export type InviteWorkspaceMemberResponses = {
6867
6712
  /**
6868
- * Returns the reopened comment
6713
+ * Returns the invitation token, or null if user was auto-added to workspace
6869
6714
  */
6870
6715
  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
- };
6716
+ token: string | null;
6897
6717
  };
6898
6718
  };
6899
6719
 
6900
- export type ReopenCommentResponse = ReopenCommentResponses[keyof ReopenCommentResponses];
6720
+ export type InviteWorkspaceMemberResponse = InviteWorkspaceMemberResponses[keyof InviteWorkspaceMemberResponses];
6901
6721
 
6902
- export type CreateReplyData = {
6903
- body: CreateReplyInput;
6722
+ export type GetWorkspaceMembersData = {
6723
+ body?: never;
6904
6724
  path: {
6905
- hostType: 'project' | 'workspace';
6906
- hostId: string;
6907
- commentId: string;
6725
+ workspaceId: string;
6908
6726
  };
6909
6727
  query?: never;
6910
- url: '/comments/{hostType}/{hostId}/{commentId}/replies';
6728
+ url: '/workspace/{workspaceId}/all-members';
6911
6729
  };
6912
6730
 
6913
- export type CreateReplyErrors = {
6731
+ export type GetWorkspaceMembersErrors = {
6914
6732
  /**
6915
6733
  * Bad request - Invalid parameters or malformed JSON
6916
6734
  */
@@ -6944,42 +6762,49 @@ export type CreateReplyErrors = {
6944
6762
  503: ErrorResponse;
6945
6763
  };
6946
6764
 
6947
- export type CreateReplyError = CreateReplyErrors[keyof CreateReplyErrors];
6765
+ export type GetWorkspaceMembersError = GetWorkspaceMembersErrors[keyof GetWorkspaceMembersErrors];
6948
6766
 
6949
- export type CreateReplyResponses = {
6767
+ export type GetWorkspaceMembersResponses = {
6950
6768
  /**
6951
- * Returns the created reply
6769
+ * Returns the list of workspace collaborators: members and owner
6952
6770
  */
6953
6771
  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
- };
6772
+ owner: {
6773
+ /**
6774
+ * Dazl ID for the type = "user"
6775
+ */
6776
+ id: string;
6777
+ email: string;
6778
+ name?: string;
6779
+ picture?: string;
6780
+ role: 'workspace_member' | 'owner';
6781
+ } | null;
6782
+ members: Array<{
6783
+ /**
6784
+ * Dazl ID for the type = "user"
6785
+ */
6786
+ id: string;
6787
+ email: string;
6788
+ name?: string;
6789
+ picture?: string;
6790
+ role: 'workspace_member' | 'owner';
6791
+ }>;
6965
6792
  };
6966
6793
  };
6967
6794
 
6968
- export type CreateReplyResponse = CreateReplyResponses[keyof CreateReplyResponses];
6795
+ export type GetWorkspaceMembersResponse = GetWorkspaceMembersResponses[keyof GetWorkspaceMembersResponses];
6969
6796
 
6970
- export type DeleteReplyData = {
6797
+ export type DeleteWorkspaceMemberData = {
6971
6798
  body?: never;
6972
6799
  path: {
6973
- hostType: 'project' | 'workspace';
6974
- hostId: string;
6975
- commentId: string;
6976
- replyId: string;
6800
+ workspaceId: string;
6801
+ memberId: string;
6977
6802
  };
6978
6803
  query?: never;
6979
- url: '/comments/{hostType}/{hostId}/{commentId}/replies/{replyId}';
6804
+ url: '/workspace/{workspaceId}/members/{memberId}';
6980
6805
  };
6981
6806
 
6982
- export type DeleteReplyErrors = {
6807
+ export type DeleteWorkspaceMemberErrors = {
6983
6808
  /**
6984
6809
  * Bad request - Invalid parameters or malformed JSON
6985
6810
  */
@@ -7013,32 +6838,30 @@ export type DeleteReplyErrors = {
7013
6838
  503: ErrorResponse;
7014
6839
  };
7015
6840
 
7016
- export type DeleteReplyError = DeleteReplyErrors[keyof DeleteReplyErrors];
6841
+ export type DeleteWorkspaceMemberError = DeleteWorkspaceMemberErrors[keyof DeleteWorkspaceMemberErrors];
7017
6842
 
7018
- export type DeleteReplyResponses = {
6843
+ export type DeleteWorkspaceMemberResponses = {
7019
6844
  /**
7020
- * Acknowledges that the reply was deleted
6845
+ * Acknowledges that the workspace member was deleted
7021
6846
  */
7022
6847
  200: {
7023
- success: true;
6848
+ status: 'deleted';
7024
6849
  };
7025
6850
  };
7026
6851
 
7027
- export type DeleteReplyResponse = DeleteReplyResponses[keyof DeleteReplyResponses];
6852
+ export type DeleteWorkspaceMemberResponse = DeleteWorkspaceMemberResponses[keyof DeleteWorkspaceMemberResponses];
7028
6853
 
7029
- export type EditReplyData = {
7030
- body: EditReplyInput;
6854
+ export type DeleteWorkspaceInvitationData = {
6855
+ body?: never;
7031
6856
  path: {
7032
- hostType: 'project' | 'workspace';
7033
- hostId: string;
7034
- commentId: string;
7035
- replyId: string;
6857
+ workspaceId: string;
6858
+ invitationId: string;
7036
6859
  };
7037
6860
  query?: never;
7038
- url: '/comments/{hostType}/{hostId}/{commentId}/replies/{replyId}';
6861
+ url: '/workspace/{workspaceId}/invitations/{invitationId}';
7039
6862
  };
7040
6863
 
7041
- export type EditReplyErrors = {
6864
+ export type DeleteWorkspaceInvitationErrors = {
7042
6865
  /**
7043
6866
  * Bad request - Invalid parameters or malformed JSON
7044
6867
  */
@@ -7072,39 +6895,32 @@ export type EditReplyErrors = {
7072
6895
  503: ErrorResponse;
7073
6896
  };
7074
6897
 
7075
- export type EditReplyError = EditReplyErrors[keyof EditReplyErrors];
6898
+ export type DeleteWorkspaceInvitationError = DeleteWorkspaceInvitationErrors[keyof DeleteWorkspaceInvitationErrors];
7076
6899
 
7077
- export type EditReplyResponses = {
6900
+ export type DeleteWorkspaceInvitationResponses = {
7078
6901
  /**
7079
- * Returns the updated reply
6902
+ * Acknowledges that the workspace invitation was deleted
7080
6903
  */
7081
6904
  200: {
7082
- reply: {
7083
- replyId: string;
7084
- author: {
7085
- dazlUserId: string;
7086
- };
7087
- content: string;
7088
- mentions: Array<UserMention>;
7089
- createdAt: string;
7090
- updatedAt: string;
7091
- gitInfo?: CommentGitInfo;
7092
- };
6905
+ status: 'deleted';
7093
6906
  };
7094
6907
  };
7095
6908
 
7096
- export type EditReplyResponse = EditReplyResponses[keyof EditReplyResponses];
6909
+ export type DeleteWorkspaceInvitationResponse = DeleteWorkspaceInvitationResponses[keyof DeleteWorkspaceInvitationResponses];
7097
6910
 
7098
- export type GetFeatureTogglesData = {
6911
+ export type GetMyValuesData = {
7099
6912
  body?: never;
7100
6913
  path?: never;
7101
6914
  query?: {
7102
- scope?: 'RemoteAndEditor' | 'SiteAndEditor';
6915
+ /**
6916
+ * Filter results to this category
6917
+ */
6918
+ categ?: string;
7103
6919
  };
7104
- url: '/env-config';
6920
+ url: '/my-user-key-value/values';
7105
6921
  };
7106
6922
 
7107
- export type GetFeatureTogglesErrors = {
6923
+ export type GetMyValuesErrors = {
7108
6924
  /**
7109
6925
  * Bad request - Invalid parameters or malformed JSON
7110
6926
  */
@@ -7138,27 +6954,43 @@ export type GetFeatureTogglesErrors = {
7138
6954
  503: ErrorResponse;
7139
6955
  };
7140
6956
 
7141
- export type GetFeatureTogglesError = GetFeatureTogglesErrors[keyof GetFeatureTogglesErrors];
6957
+ export type GetMyValuesError = GetMyValuesErrors[keyof GetMyValuesErrors];
7142
6958
 
7143
- export type GetFeatureTogglesResponses = {
6959
+ export type GetMyValuesResponses = {
7144
6960
  /**
7145
- * Returns feature toggles, optionally filtered by scope
6961
+ * Returns key values for the current user
7146
6962
  */
7147
6963
  200: {
7148
- toggles: Array<FeatureToggle>;
6964
+ values: Array<{
6965
+ id: string;
6966
+ dazlUserId: string;
6967
+ category: string;
6968
+ name: string;
6969
+ strVal: string | null;
6970
+ encryptedValId: string | null;
6971
+ createdAt: string;
6972
+ updatedAt: string;
6973
+ encryptedValue: string | null;
6974
+ }>;
7149
6975
  };
7150
6976
  };
7151
6977
 
7152
- export type GetFeatureTogglesResponse = GetFeatureTogglesResponses[keyof GetFeatureTogglesResponses];
6978
+ export type GetMyValuesResponse = GetMyValuesResponses[keyof GetMyValuesResponses];
7153
6979
 
7154
- export type GetMyUserData = {
7155
- body?: never;
7156
- path?: never;
6980
+ export type SetMyValueData = {
6981
+ body: {
6982
+ value: string;
6983
+ isSecret?: boolean;
6984
+ };
6985
+ path: {
6986
+ categ: string;
6987
+ name: string;
6988
+ };
7157
6989
  query?: never;
7158
- url: '/my-user/me';
6990
+ url: '/my-user-key-value/values/{categ}/{name}';
7159
6991
  };
7160
6992
 
7161
- export type GetMyUserErrors = {
6993
+ export type SetMyValueErrors = {
7162
6994
  /**
7163
6995
  * Bad request - Invalid parameters or malformed JSON
7164
6996
  */
@@ -7192,31 +7024,29 @@ export type GetMyUserErrors = {
7192
7024
  503: ErrorResponse;
7193
7025
  };
7194
7026
 
7195
- export type GetMyUserError = GetMyUserErrors[keyof GetMyUserErrors];
7027
+ export type SetMyValueError = SetMyValueErrors[keyof SetMyValueErrors];
7196
7028
 
7197
- export type GetMyUserResponses = {
7029
+ export type SetMyValueResponses = {
7198
7030
  /**
7199
- * Returns the requested user
7031
+ * Sets a single key value and returns its id
7200
7032
  */
7201
7033
  200: {
7202
- user: UserRaw;
7034
+ id: string;
7203
7035
  };
7204
7036
  };
7205
7037
 
7206
- export type GetMyUserResponse = GetMyUserResponses[keyof GetMyUserResponses];
7038
+ export type SetMyValueResponse = SetMyValueResponses[keyof SetMyValueResponses];
7207
7039
 
7208
- export type UpdateMyUserData = {
7209
- body: {
7210
- picture?: string | null;
7211
- name?: string;
7212
- jobRole?: string | null;
7040
+ export type DeleteMyCategValuesData = {
7041
+ body?: never;
7042
+ path: {
7043
+ categ: string;
7213
7044
  };
7214
- path?: never;
7215
7045
  query?: never;
7216
- url: '/my-user/me';
7046
+ url: '/my-user-key-value/values/{categ}';
7217
7047
  };
7218
7048
 
7219
- export type UpdateMyUserErrors = {
7049
+ export type DeleteMyCategValuesErrors = {
7220
7050
  /**
7221
7051
  * Bad request - Invalid parameters or malformed JSON
7222
7052
  */
@@ -7250,29 +7080,35 @@ export type UpdateMyUserErrors = {
7250
7080
  503: ErrorResponse;
7251
7081
  };
7252
7082
 
7253
- export type UpdateMyUserError = UpdateMyUserErrors[keyof UpdateMyUserErrors];
7083
+ export type DeleteMyCategValuesError = DeleteMyCategValuesErrors[keyof DeleteMyCategValuesErrors];
7254
7084
 
7255
- export type UpdateMyUserResponses = {
7085
+ export type DeleteMyCategValuesResponses = {
7256
7086
  /**
7257
- * Updates user information
7087
+ * Deletes all values for the category
7258
7088
  */
7259
7089
  200: {
7260
- user: UserRaw;
7090
+ categ: string;
7261
7091
  };
7262
7092
  };
7263
7093
 
7264
- export type UpdateMyUserResponse = UpdateMyUserResponses[keyof UpdateMyUserResponses];
7094
+ export type DeleteMyCategValuesResponse = DeleteMyCategValuesResponses[keyof DeleteMyCategValuesResponses];
7265
7095
 
7266
- export type CreateWorkspaceData = {
7096
+ export type ReplaceMyCategValuesData = {
7267
7097
  body: {
7268
- name: string;
7098
+ values: Array<{
7099
+ name: string;
7100
+ value: string;
7101
+ isSecret?: boolean;
7102
+ }>;
7103
+ };
7104
+ path: {
7105
+ categ: string;
7269
7106
  };
7270
- path?: never;
7271
7107
  query?: never;
7272
- url: '/workspace/create';
7108
+ url: '/my-user-key-value/values/{categ}';
7273
7109
  };
7274
7110
 
7275
- export type CreateWorkspaceErrors = {
7111
+ export type ReplaceMyCategValuesErrors = {
7276
7112
  /**
7277
7113
  * Bad request - Invalid parameters or malformed JSON
7278
7114
  */
@@ -7306,32 +7142,31 @@ export type CreateWorkspaceErrors = {
7306
7142
  503: ErrorResponse;
7307
7143
  };
7308
7144
 
7309
- export type CreateWorkspaceError = CreateWorkspaceErrors[keyof CreateWorkspaceErrors];
7145
+ export type ReplaceMyCategValuesError = ReplaceMyCategValuesErrors[keyof ReplaceMyCategValuesErrors];
7310
7146
 
7311
- export type CreateWorkspaceResponses = {
7147
+ export type ReplaceMyCategValuesResponses = {
7312
7148
  /**
7313
- * Returns the created workspace
7149
+ * Replaces all values for the category and returns the upserted rows
7314
7150
  */
7315
7151
  200: {
7316
- workspace: Workspace;
7152
+ values: Array<{
7153
+ id: string;
7154
+ name: string;
7155
+ }>;
7156
+ replaced: boolean;
7317
7157
  };
7318
7158
  };
7319
7159
 
7320
- export type CreateWorkspaceResponse = CreateWorkspaceResponses[keyof CreateWorkspaceResponses];
7160
+ export type ReplaceMyCategValuesResponse = ReplaceMyCategValuesResponses[keyof ReplaceMyCategValuesResponses];
7321
7161
 
7322
- export type GetAllWorkspacesData = {
7162
+ export type GetAllData = {
7323
7163
  body?: never;
7324
7164
  path?: never;
7325
- query?: {
7326
- /**
7327
- * Whether to include the members of each workspace
7328
- */
7329
- withMembers?: boolean;
7330
- };
7331
- url: '/workspace/list-my';
7165
+ query?: never;
7166
+ url: '/my-user-settings';
7332
7167
  };
7333
7168
 
7334
- export type GetAllWorkspacesErrors = {
7169
+ export type GetAllErrors = {
7335
7170
  /**
7336
7171
  * Bad request - Invalid parameters or malformed JSON
7337
7172
  */
@@ -7365,58 +7200,33 @@ export type GetAllWorkspacesErrors = {
7365
7200
  503: ErrorResponse;
7366
7201
  };
7367
7202
 
7368
- export type GetAllWorkspacesError = GetAllWorkspacesErrors[keyof GetAllWorkspacesErrors];
7203
+ export type GetAllError = GetAllErrors[keyof GetAllErrors];
7369
7204
 
7370
- export type GetAllWorkspacesResponses = {
7205
+ export type GetAllResponses = {
7371
7206
  /**
7372
- * Returns the list of workspaces for the current user
7207
+ * Returns user settings (empty object if none exist)
7373
7208
  */
7374
7209
  200: {
7375
- workspaces: Array<{
7376
- id: string;
7377
- name: string;
7378
- /**
7379
- * The user which created the workspace. Null if the user was deleted.
7380
- */
7381
- dazlUserId: string | null;
7382
- createdAt: string;
7383
- isDefault: boolean;
7384
- owner?: {
7385
- /**
7386
- * Dazl ID for the type = "user"
7387
- */
7388
- id: string;
7389
- email: string;
7390
- name?: string;
7391
- picture?: string;
7392
- role: 'workspace_member' | 'owner';
7393
- } | null;
7394
- members?: Array<{
7395
- /**
7396
- * Dazl ID for the type = "user"
7397
- */
7398
- id: string;
7399
- email: string;
7400
- name?: string;
7401
- picture?: string;
7402
- role: 'workspace_member' | 'owner';
7403
- }>;
7404
- }>;
7210
+ settings: {
7211
+ [key: string]: unknown;
7212
+ };
7405
7213
  };
7406
7214
  };
7407
7215
 
7408
- export type GetAllWorkspacesResponse = GetAllWorkspacesResponses[keyof GetAllWorkspacesResponses];
7216
+ export type GetAllResponse = GetAllResponses[keyof GetAllResponses];
7409
7217
 
7410
- export type GetWorkspaceMembersData = {
7411
- body?: never;
7412
- path: {
7413
- workspaceId: string;
7218
+ export type OverrideAllData = {
7219
+ body: {
7220
+ settings: {
7221
+ [key: string]: unknown;
7222
+ };
7414
7223
  };
7224
+ path?: never;
7415
7225
  query?: never;
7416
- url: '/workspace/{workspaceId}/all-members';
7226
+ url: '/my-user-settings';
7417
7227
  };
7418
7228
 
7419
- export type GetWorkspaceMembersErrors = {
7229
+ export type OverrideAllErrors = {
7420
7230
  /**
7421
7231
  * Bad request - Invalid parameters or malformed JSON
7422
7232
  */
@@ -7450,51 +7260,29 @@ export type GetWorkspaceMembersErrors = {
7450
7260
  503: ErrorResponse;
7451
7261
  };
7452
7262
 
7453
- export type GetWorkspaceMembersError = GetWorkspaceMembersErrors[keyof GetWorkspaceMembersErrors];
7263
+ export type OverrideAllError = OverrideAllErrors[keyof OverrideAllErrors];
7454
7264
 
7455
- export type GetWorkspaceMembersResponses = {
7265
+ export type OverrideAllResponses = {
7456
7266
  /**
7457
- * Returns the list of workspace collaborators: members and owner
7267
+ * Settings updated successfully
7458
7268
  */
7459
7269
  200: {
7460
- owner: {
7461
- /**
7462
- * Dazl ID for the type = "user"
7463
- */
7464
- id: string;
7465
- email: string;
7466
- name?: string;
7467
- picture?: string;
7468
- role: 'workspace_member' | 'owner';
7469
- } | null;
7470
- members: Array<{
7471
- /**
7472
- * Dazl ID for the type = "user"
7473
- */
7474
- id: string;
7475
- email: string;
7476
- name?: string;
7477
- picture?: string;
7478
- role: 'workspace_member' | 'owner';
7479
- }>;
7270
+ success: boolean;
7480
7271
  };
7481
7272
  };
7482
7273
 
7483
- export type GetWorkspaceMembersResponse = GetWorkspaceMembersResponses[keyof GetWorkspaceMembersResponses];
7274
+ export type OverrideAllResponse = OverrideAllResponses[keyof OverrideAllResponses];
7484
7275
 
7485
- export type GetMyValuesData = {
7486
- body?: never;
7487
- path?: never;
7488
- query?: {
7489
- /**
7490
- * Filter results to this category
7491
- */
7492
- categ?: string;
7276
+ export type CreateSessionData = {
7277
+ body: {
7278
+ integrationName: IntegrationName;
7493
7279
  };
7494
- url: '/my-user-key-value/values';
7280
+ path?: never;
7281
+ query?: never;
7282
+ url: '/mcp/create-session';
7495
7283
  };
7496
7284
 
7497
- export type GetMyValuesErrors = {
7285
+ export type CreateSessionErrors = {
7498
7286
  /**
7499
7287
  * Bad request - Invalid parameters or malformed JSON
7500
7288
  */
@@ -7528,43 +7316,35 @@ export type GetMyValuesErrors = {
7528
7316
  503: ErrorResponse;
7529
7317
  };
7530
7318
 
7531
- export type GetMyValuesError = GetMyValuesErrors[keyof GetMyValuesErrors];
7319
+ export type CreateSessionError = CreateSessionErrors[keyof CreateSessionErrors];
7532
7320
 
7533
- export type GetMyValuesResponses = {
7321
+ export type CreateSessionResponses = {
7534
7322
  /**
7535
- * Returns key values for the current user
7323
+ * An authorized MCP session (opaque access-token header) or an unauthorized marker
7536
7324
  */
7537
- 200: {
7538
- values: Array<{
7539
- id: string;
7540
- dazlUserId: string;
7541
- category: string;
7542
- name: string;
7543
- strVal: string | null;
7544
- encryptedValId: string | null;
7545
- createdAt: string;
7546
- updatedAt: string;
7547
- encryptedValue: string | null;
7548
- }>;
7549
- };
7325
+ 200: ({
7326
+ status: 'authorized';
7327
+ } & CreateSessionAuthorized) | ({
7328
+ status: 'unauthorized';
7329
+ } & CreateSessionUnauthorized);
7550
7330
  };
7551
7331
 
7552
- export type GetMyValuesResponse = GetMyValuesResponses[keyof GetMyValuesResponses];
7332
+ export type CreateSessionResponse = CreateSessionResponses[keyof CreateSessionResponses];
7553
7333
 
7554
- export type SetMyValueData = {
7334
+ export type InitiateConnectionData = {
7555
7335
  body: {
7556
- value: string;
7557
- isSecret?: boolean;
7558
- };
7559
- path: {
7560
- categ: string;
7561
- name: string;
7336
+ integrationName: IntegrationName;
7337
+ /**
7338
+ * Where the browser lands after OAuth; built by the caller
7339
+ */
7340
+ callbackUrl: string;
7562
7341
  };
7342
+ path?: never;
7563
7343
  query?: never;
7564
- url: '/my-user-key-value/values/{categ}/{name}';
7344
+ url: '/mcp/connections';
7565
7345
  };
7566
7346
 
7567
- export type SetMyValueErrors = {
7347
+ export type InitiateConnectionErrors = {
7568
7348
  /**
7569
7349
  * Bad request - Invalid parameters or malformed JSON
7570
7350
  */
@@ -7598,29 +7378,32 @@ export type SetMyValueErrors = {
7598
7378
  503: ErrorResponse;
7599
7379
  };
7600
7380
 
7601
- export type SetMyValueError = SetMyValueErrors[keyof SetMyValueErrors];
7381
+ export type InitiateConnectionError = InitiateConnectionErrors[keyof InitiateConnectionErrors];
7602
7382
 
7603
- export type SetMyValueResponses = {
7383
+ export type InitiateConnectionResponses = {
7604
7384
  /**
7605
- * Sets a single key value and returns its id
7385
+ * The OAuth connection request id and the redirect URL to send the user to
7606
7386
  */
7607
7387
  200: {
7608
- id: string;
7388
+ connectionRequestId: string;
7389
+ redirectUrl: string;
7609
7390
  };
7610
7391
  };
7611
7392
 
7612
- export type SetMyValueResponse = SetMyValueResponses[keyof SetMyValueResponses];
7393
+ export type InitiateConnectionResponse = InitiateConnectionResponses[keyof InitiateConnectionResponses];
7613
7394
 
7614
- export type DeleteMyCategValuesData = {
7615
- body?: never;
7395
+ export type FinalizeConnectionData = {
7396
+ body: {
7397
+ integrationName: IntegrationName;
7398
+ };
7616
7399
  path: {
7617
- categ: string;
7400
+ connectionRequestId: string;
7618
7401
  };
7619
7402
  query?: never;
7620
- url: '/my-user-key-value/values/{categ}';
7403
+ url: '/mcp/connections/{connectionRequestId}/finalize';
7621
7404
  };
7622
7405
 
7623
- export type DeleteMyCategValuesErrors = {
7406
+ export type FinalizeConnectionErrors = {
7624
7407
  /**
7625
7408
  * Bad request - Invalid parameters or malformed JSON
7626
7409
  */
@@ -7654,35 +7437,32 @@ export type DeleteMyCategValuesErrors = {
7654
7437
  503: ErrorResponse;
7655
7438
  };
7656
7439
 
7657
- export type DeleteMyCategValuesError = DeleteMyCategValuesErrors[keyof DeleteMyCategValuesErrors];
7440
+ export type FinalizeConnectionError = FinalizeConnectionErrors[keyof FinalizeConnectionErrors];
7658
7441
 
7659
- export type DeleteMyCategValuesResponses = {
7442
+ export type FinalizeConnectionResponses = {
7660
7443
  /**
7661
- * Deletes all values for the category
7444
+ * The persisted connected-account id (ca_...)
7662
7445
  */
7663
7446
  200: {
7664
- categ: string;
7447
+ connectionId: string;
7665
7448
  };
7666
7449
  };
7667
7450
 
7668
- export type DeleteMyCategValuesResponse = DeleteMyCategValuesResponses[keyof DeleteMyCategValuesResponses];
7451
+ export type FinalizeConnectionResponse = FinalizeConnectionResponses[keyof FinalizeConnectionResponses];
7669
7452
 
7670
- export type ReplaceMyCategValuesData = {
7671
- body: {
7672
- values: Array<{
7673
- name: string;
7674
- value: string;
7675
- isSecret?: boolean;
7676
- }>;
7677
- };
7678
- path: {
7679
- categ: string;
7453
+ export type GetConnectionStatusData = {
7454
+ body?: never;
7455
+ path?: never;
7456
+ query?: {
7457
+ /**
7458
+ * If omitted, returns status for all integrations
7459
+ */
7460
+ integrationName?: 'confluence' | 'figma' | 'google-docs' | 'google-sheets' | 'google-slides' | 'jira' | 'linear' | 'miro' | 'notion';
7680
7461
  };
7681
- query?: never;
7682
- url: '/my-user-key-value/values/{categ}';
7462
+ url: '/mcp/connections/status';
7683
7463
  };
7684
7464
 
7685
- export type ReplaceMyCategValuesErrors = {
7465
+ export type GetConnectionStatusErrors = {
7686
7466
  /**
7687
7467
  * Bad request - Invalid parameters or malformed JSON
7688
7468
  */
@@ -7716,31 +7496,29 @@ export type ReplaceMyCategValuesErrors = {
7716
7496
  503: ErrorResponse;
7717
7497
  };
7718
7498
 
7719
- export type ReplaceMyCategValuesError = ReplaceMyCategValuesErrors[keyof ReplaceMyCategValuesErrors];
7499
+ export type GetConnectionStatusError = GetConnectionStatusErrors[keyof GetConnectionStatusErrors];
7720
7500
 
7721
- export type ReplaceMyCategValuesResponses = {
7501
+ export type GetConnectionStatusResponses = {
7722
7502
  /**
7723
- * Replaces all values for the category and returns the upserted rows
7503
+ * Active-connection status for the requested integration(s)
7724
7504
  */
7725
- 200: {
7726
- values: Array<{
7727
- id: string;
7728
- name: string;
7729
- }>;
7730
- replaced: boolean;
7731
- };
7505
+ 200: Array<ConnectionStatus>;
7732
7506
  };
7733
7507
 
7734
- export type ReplaceMyCategValuesResponse = ReplaceMyCategValuesResponses[keyof ReplaceMyCategValuesResponses];
7508
+ export type GetConnectionStatusResponse = GetConnectionStatusResponses[keyof GetConnectionStatusResponses];
7735
7509
 
7736
- export type GetAllData = {
7510
+ export type DeleteCommentData = {
7737
7511
  body?: never;
7738
- path?: never;
7512
+ path: {
7513
+ hostType: 'project' | 'workspace';
7514
+ hostId: string;
7515
+ commentId: string;
7516
+ };
7739
7517
  query?: never;
7740
- url: '/my-user-settings';
7518
+ url: '/comments/{hostType}/{hostId}/{commentId}';
7741
7519
  };
7742
7520
 
7743
- export type GetAllErrors = {
7521
+ export type DeleteCommentErrors = {
7744
7522
  /**
7745
7523
  * Bad request - Invalid parameters or malformed JSON
7746
7524
  */
@@ -7774,33 +7552,31 @@ export type GetAllErrors = {
7774
7552
  503: ErrorResponse;
7775
7553
  };
7776
7554
 
7777
- export type GetAllError = GetAllErrors[keyof GetAllErrors];
7555
+ export type DeleteCommentError = DeleteCommentErrors[keyof DeleteCommentErrors];
7778
7556
 
7779
- export type GetAllResponses = {
7557
+ export type DeleteCommentResponses = {
7780
7558
  /**
7781
- * Returns user settings (empty object if none exist)
7559
+ * Acknowledges that the comment was deleted
7782
7560
  */
7783
7561
  200: {
7784
- settings: {
7785
- [key: string]: unknown;
7786
- };
7562
+ success: true;
7787
7563
  };
7788
7564
  };
7789
7565
 
7790
- export type GetAllResponse = GetAllResponses[keyof GetAllResponses];
7566
+ export type DeleteCommentResponse = DeleteCommentResponses[keyof DeleteCommentResponses];
7791
7567
 
7792
- export type OverrideAllData = {
7793
- body: {
7794
- settings: {
7795
- [key: string]: unknown;
7796
- };
7568
+ export type GetCommentData = {
7569
+ body?: never;
7570
+ path: {
7571
+ hostType: 'project' | 'workspace';
7572
+ hostId: string;
7573
+ commentId: string;
7797
7574
  };
7798
- path?: never;
7799
7575
  query?: never;
7800
- url: '/my-user-settings';
7576
+ url: '/comments/{hostType}/{hostId}/{commentId}';
7801
7577
  };
7802
7578
 
7803
- export type OverrideAllErrors = {
7579
+ export type GetCommentErrors = {
7804
7580
  /**
7805
7581
  * Bad request - Invalid parameters or malformed JSON
7806
7582
  */
@@ -7834,29 +7610,56 @@ export type OverrideAllErrors = {
7834
7610
  503: ErrorResponse;
7835
7611
  };
7836
7612
 
7837
- export type OverrideAllError = OverrideAllErrors[keyof OverrideAllErrors];
7613
+ export type GetCommentError = GetCommentErrors[keyof GetCommentErrors];
7838
7614
 
7839
- export type OverrideAllResponses = {
7615
+ export type GetCommentResponses = {
7840
7616
  /**
7841
- * Settings updated successfully
7617
+ * Returns comment by id for the host entity
7842
7618
  */
7843
7619
  200: {
7844
- success: boolean;
7620
+ comment: {
7621
+ commentId: string;
7622
+ author: {
7623
+ dazlUserId: string;
7624
+ };
7625
+ content: string;
7626
+ mentions: Array<UserMention>;
7627
+ createdAt: string;
7628
+ updatedAt: string;
7629
+ lastActivityAt: string;
7630
+ isEdited: boolean;
7631
+ replies: Array<{
7632
+ replyId: string;
7633
+ author: {
7634
+ dazlUserId: string;
7635
+ };
7636
+ content: string;
7637
+ mentions: Array<UserMention>;
7638
+ createdAt: string;
7639
+ updatedAt: string;
7640
+ gitInfo?: CommentGitInfo;
7641
+ }>;
7642
+ resolved?: CommentResolved;
7643
+ context?: CommentContext;
7644
+ gitInfo?: CommentGitInfo;
7645
+ };
7845
7646
  };
7846
7647
  };
7847
7648
 
7848
- export type OverrideAllResponse = OverrideAllResponses[keyof OverrideAllResponses];
7649
+ export type GetCommentResponse = GetCommentResponses[keyof GetCommentResponses];
7849
7650
 
7850
- export type CreateSessionData = {
7851
- body: {
7852
- integrationName: IntegrationName;
7651
+ export type EditCommentData = {
7652
+ body: EditCommentInput;
7653
+ path: {
7654
+ hostType: 'project' | 'workspace';
7655
+ hostId: string;
7656
+ commentId: string;
7853
7657
  };
7854
- path?: never;
7855
7658
  query?: never;
7856
- url: '/mcp/create-session';
7659
+ url: '/comments/{hostType}/{hostId}/{commentId}';
7857
7660
  };
7858
7661
 
7859
- export type CreateSessionErrors = {
7662
+ export type EditCommentErrors = {
7860
7663
  /**
7861
7664
  * Bad request - Invalid parameters or malformed JSON
7862
7665
  */
@@ -7890,35 +7693,55 @@ export type CreateSessionErrors = {
7890
7693
  503: ErrorResponse;
7891
7694
  };
7892
7695
 
7893
- export type CreateSessionError = CreateSessionErrors[keyof CreateSessionErrors];
7696
+ export type EditCommentError = EditCommentErrors[keyof EditCommentErrors];
7894
7697
 
7895
- export type CreateSessionResponses = {
7698
+ export type EditCommentResponses = {
7896
7699
  /**
7897
- * An authorized MCP session (opaque access-token header) or an unauthorized marker
7700
+ * Returns the updated comment
7898
7701
  */
7899
- 200: ({
7900
- status: 'authorized';
7901
- } & CreateSessionAuthorized) | ({
7902
- status: 'unauthorized';
7903
- } & CreateSessionUnauthorized);
7702
+ 200: {
7703
+ comment: {
7704
+ commentId: string;
7705
+ author: {
7706
+ dazlUserId: string;
7707
+ };
7708
+ content: string;
7709
+ mentions: Array<UserMention>;
7710
+ createdAt: string;
7711
+ updatedAt: string;
7712
+ lastActivityAt: string;
7713
+ isEdited: boolean;
7714
+ replies: Array<{
7715
+ replyId: string;
7716
+ author: {
7717
+ dazlUserId: string;
7718
+ };
7719
+ content: string;
7720
+ mentions: Array<UserMention>;
7721
+ createdAt: string;
7722
+ updatedAt: string;
7723
+ gitInfo?: CommentGitInfo;
7724
+ }>;
7725
+ resolved?: CommentResolved;
7726
+ context?: CommentContext;
7727
+ gitInfo?: CommentGitInfo;
7728
+ };
7729
+ };
7904
7730
  };
7905
7731
 
7906
- export type CreateSessionResponse = CreateSessionResponses[keyof CreateSessionResponses];
7732
+ export type EditCommentResponse = EditCommentResponses[keyof EditCommentResponses];
7907
7733
 
7908
- export type InitiateConnectionData = {
7909
- body: {
7910
- integrationName: IntegrationName;
7911
- /**
7912
- * Where the browser lands after OAuth; built by the caller
7913
- */
7914
- callbackUrl: string;
7734
+ export type ListCommentsData = {
7735
+ body?: never;
7736
+ path: {
7737
+ hostType: 'project' | 'workspace';
7738
+ hostId: string;
7915
7739
  };
7916
- path?: never;
7917
7740
  query?: never;
7918
- url: '/mcp/connections';
7741
+ url: '/comments/{hostType}/{hostId}';
7919
7742
  };
7920
7743
 
7921
- export type InitiateConnectionErrors = {
7744
+ export type ListCommentsErrors = {
7922
7745
  /**
7923
7746
  * Bad request - Invalid parameters or malformed JSON
7924
7747
  */
@@ -7952,32 +7775,55 @@ export type InitiateConnectionErrors = {
7952
7775
  503: ErrorResponse;
7953
7776
  };
7954
7777
 
7955
- export type InitiateConnectionError = InitiateConnectionErrors[keyof InitiateConnectionErrors];
7778
+ export type ListCommentsError = ListCommentsErrors[keyof ListCommentsErrors];
7956
7779
 
7957
- export type InitiateConnectionResponses = {
7780
+ export type ListCommentsResponses = {
7958
7781
  /**
7959
- * The OAuth connection request id and the redirect URL to send the user to
7782
+ * Returns the list of comments for the host entity
7960
7783
  */
7961
7784
  200: {
7962
- connectionRequestId: string;
7963
- redirectUrl: string;
7964
- };
7965
- };
7966
-
7967
- export type InitiateConnectionResponse = InitiateConnectionResponses[keyof InitiateConnectionResponses];
7968
-
7969
- export type FinalizeConnectionData = {
7970
- body: {
7971
- integrationName: IntegrationName;
7972
- };
7973
- path: {
7974
- connectionRequestId: string;
7785
+ comments: Array<{
7786
+ commentId: string;
7787
+ author: {
7788
+ dazlUserId: string;
7789
+ };
7790
+ content: string;
7791
+ mentions: Array<UserMention>;
7792
+ createdAt: string;
7793
+ updatedAt: string;
7794
+ lastActivityAt: string;
7795
+ isEdited: boolean;
7796
+ replies: Array<{
7797
+ replyId: string;
7798
+ author: {
7799
+ dazlUserId: string;
7800
+ };
7801
+ content: string;
7802
+ mentions: Array<UserMention>;
7803
+ createdAt: string;
7804
+ updatedAt: string;
7805
+ gitInfo?: CommentGitInfo;
7806
+ }>;
7807
+ resolved?: CommentResolved;
7808
+ context?: CommentContext;
7809
+ gitInfo?: CommentGitInfo;
7810
+ }>;
7811
+ };
7812
+ };
7813
+
7814
+ export type ListCommentsResponse = ListCommentsResponses[keyof ListCommentsResponses];
7815
+
7816
+ export type CreateCommentData = {
7817
+ body: CreateCommentInput;
7818
+ path: {
7819
+ hostType: 'project' | 'workspace';
7820
+ hostId: string;
7975
7821
  };
7976
7822
  query?: never;
7977
- url: '/mcp/connections/{connectionRequestId}/finalize';
7823
+ url: '/comments/{hostType}/{hostId}';
7978
7824
  };
7979
7825
 
7980
- export type FinalizeConnectionErrors = {
7826
+ export type CreateCommentErrors = {
7981
7827
  /**
7982
7828
  * Bad request - Invalid parameters or malformed JSON
7983
7829
  */
@@ -8011,32 +7857,56 @@ export type FinalizeConnectionErrors = {
8011
7857
  503: ErrorResponse;
8012
7858
  };
8013
7859
 
8014
- export type FinalizeConnectionError = FinalizeConnectionErrors[keyof FinalizeConnectionErrors];
7860
+ export type CreateCommentError = CreateCommentErrors[keyof CreateCommentErrors];
8015
7861
 
8016
- export type FinalizeConnectionResponses = {
7862
+ export type CreateCommentResponses = {
8017
7863
  /**
8018
- * The persisted connected-account id (ca_...)
7864
+ * Returns the created comment
8019
7865
  */
8020
7866
  200: {
8021
- connectionId: string;
7867
+ comment: {
7868
+ commentId: string;
7869
+ author: {
7870
+ dazlUserId: string;
7871
+ };
7872
+ content: string;
7873
+ mentions: Array<UserMention>;
7874
+ createdAt: string;
7875
+ updatedAt: string;
7876
+ lastActivityAt: string;
7877
+ isEdited: boolean;
7878
+ replies: Array<{
7879
+ replyId: string;
7880
+ author: {
7881
+ dazlUserId: string;
7882
+ };
7883
+ content: string;
7884
+ mentions: Array<UserMention>;
7885
+ createdAt: string;
7886
+ updatedAt: string;
7887
+ gitInfo?: CommentGitInfo;
7888
+ }>;
7889
+ resolved?: CommentResolved;
7890
+ context?: CommentContext;
7891
+ gitInfo?: CommentGitInfo;
7892
+ };
8022
7893
  };
8023
7894
  };
8024
7895
 
8025
- export type FinalizeConnectionResponse = FinalizeConnectionResponses[keyof FinalizeConnectionResponses];
7896
+ export type CreateCommentResponse = CreateCommentResponses[keyof CreateCommentResponses];
8026
7897
 
8027
- export type GetConnectionStatusData = {
7898
+ export type ResolveCommentData = {
8028
7899
  body?: never;
8029
- path?: never;
8030
- query?: {
8031
- /**
8032
- * If omitted, returns status for all integrations
8033
- */
8034
- integrationName?: 'confluence' | 'figma' | 'google-docs' | 'google-sheets' | 'google-slides' | 'jira' | 'linear' | 'miro' | 'notion';
7900
+ path: {
7901
+ hostType: 'project' | 'workspace';
7902
+ hostId: string;
7903
+ commentId: string;
8035
7904
  };
8036
- url: '/mcp/connections/status';
7905
+ query?: never;
7906
+ url: '/comments/{hostType}/{hostId}/{commentId}/resolve';
8037
7907
  };
8038
7908
 
8039
- export type GetConnectionStatusErrors = {
7909
+ export type ResolveCommentErrors = {
8040
7910
  /**
8041
7911
  * Bad request - Invalid parameters or malformed JSON
8042
7912
  */
@@ -8070,13 +7940,319 @@ export type GetConnectionStatusErrors = {
8070
7940
  503: ErrorResponse;
8071
7941
  };
8072
7942
 
8073
- export type GetConnectionStatusError = GetConnectionStatusErrors[keyof GetConnectionStatusErrors];
7943
+ export type ResolveCommentError = ResolveCommentErrors[keyof ResolveCommentErrors];
8074
7944
 
8075
- export type GetConnectionStatusResponses = {
7945
+ export type ResolveCommentResponses = {
8076
7946
  /**
8077
- * Active-connection status for the requested integration(s)
7947
+ * Returns the resolved comment
8078
7948
  */
8079
- 200: Array<ConnectionStatus>;
7949
+ 200: {
7950
+ comment: {
7951
+ commentId: string;
7952
+ author: {
7953
+ dazlUserId: string;
7954
+ };
7955
+ content: string;
7956
+ mentions: Array<UserMention>;
7957
+ createdAt: string;
7958
+ updatedAt: string;
7959
+ lastActivityAt: string;
7960
+ isEdited: boolean;
7961
+ replies: Array<{
7962
+ replyId: string;
7963
+ author: {
7964
+ dazlUserId: string;
7965
+ };
7966
+ content: string;
7967
+ mentions: Array<UserMention>;
7968
+ createdAt: string;
7969
+ updatedAt: string;
7970
+ gitInfo?: CommentGitInfo;
7971
+ }>;
7972
+ resolved?: CommentResolved;
7973
+ context?: CommentContext;
7974
+ gitInfo?: CommentGitInfo;
7975
+ };
7976
+ };
8080
7977
  };
8081
7978
 
8082
- export type GetConnectionStatusResponse = GetConnectionStatusResponses[keyof GetConnectionStatusResponses];
7979
+ export type ResolveCommentResponse = ResolveCommentResponses[keyof ResolveCommentResponses];
7980
+
7981
+ export type ReopenCommentData = {
7982
+ body?: never;
7983
+ path: {
7984
+ hostType: 'project' | 'workspace';
7985
+ hostId: string;
7986
+ commentId: string;
7987
+ };
7988
+ query?: never;
7989
+ url: '/comments/{hostType}/{hostId}/{commentId}/reopen';
7990
+ };
7991
+
7992
+ export type ReopenCommentErrors = {
7993
+ /**
7994
+ * Bad request - Invalid parameters or malformed JSON
7995
+ */
7996
+ 400: {
7997
+ message: string;
7998
+ issues?: string;
7999
+ };
8000
+ /**
8001
+ * Unauthorized
8002
+ */
8003
+ 401: ErrorResponse;
8004
+ /**
8005
+ * Forbidden
8006
+ */
8007
+ 403: ErrorResponse;
8008
+ /**
8009
+ * Not Found
8010
+ */
8011
+ 404: ErrorResponse;
8012
+ /**
8013
+ * Conflict
8014
+ */
8015
+ 409: ErrorResponse;
8016
+ /**
8017
+ * Internal server error
8018
+ */
8019
+ 500: ErrorResponse;
8020
+ /**
8021
+ * Service Unavailable
8022
+ */
8023
+ 503: ErrorResponse;
8024
+ };
8025
+
8026
+ export type ReopenCommentError = ReopenCommentErrors[keyof ReopenCommentErrors];
8027
+
8028
+ export type ReopenCommentResponses = {
8029
+ /**
8030
+ * Returns the reopened comment
8031
+ */
8032
+ 200: {
8033
+ comment: {
8034
+ commentId: string;
8035
+ author: {
8036
+ dazlUserId: string;
8037
+ };
8038
+ content: string;
8039
+ mentions: Array<UserMention>;
8040
+ createdAt: string;
8041
+ updatedAt: string;
8042
+ lastActivityAt: string;
8043
+ isEdited: boolean;
8044
+ replies: Array<{
8045
+ replyId: string;
8046
+ author: {
8047
+ dazlUserId: string;
8048
+ };
8049
+ content: string;
8050
+ mentions: Array<UserMention>;
8051
+ createdAt: string;
8052
+ updatedAt: string;
8053
+ gitInfo?: CommentGitInfo;
8054
+ }>;
8055
+ resolved?: CommentResolved;
8056
+ context?: CommentContext;
8057
+ gitInfo?: CommentGitInfo;
8058
+ };
8059
+ };
8060
+ };
8061
+
8062
+ export type ReopenCommentResponse = ReopenCommentResponses[keyof ReopenCommentResponses];
8063
+
8064
+ export type CreateReplyData = {
8065
+ body: CreateReplyInput;
8066
+ path: {
8067
+ hostType: 'project' | 'workspace';
8068
+ hostId: string;
8069
+ commentId: string;
8070
+ };
8071
+ query?: never;
8072
+ url: '/comments/{hostType}/{hostId}/{commentId}/replies';
8073
+ };
8074
+
8075
+ export type CreateReplyErrors = {
8076
+ /**
8077
+ * Bad request - Invalid parameters or malformed JSON
8078
+ */
8079
+ 400: {
8080
+ message: string;
8081
+ issues?: string;
8082
+ };
8083
+ /**
8084
+ * Unauthorized
8085
+ */
8086
+ 401: ErrorResponse;
8087
+ /**
8088
+ * Forbidden
8089
+ */
8090
+ 403: ErrorResponse;
8091
+ /**
8092
+ * Not Found
8093
+ */
8094
+ 404: ErrorResponse;
8095
+ /**
8096
+ * Conflict
8097
+ */
8098
+ 409: ErrorResponse;
8099
+ /**
8100
+ * Internal server error
8101
+ */
8102
+ 500: ErrorResponse;
8103
+ /**
8104
+ * Service Unavailable
8105
+ */
8106
+ 503: ErrorResponse;
8107
+ };
8108
+
8109
+ export type CreateReplyError = CreateReplyErrors[keyof CreateReplyErrors];
8110
+
8111
+ export type CreateReplyResponses = {
8112
+ /**
8113
+ * Returns the created reply
8114
+ */
8115
+ 200: {
8116
+ reply: {
8117
+ replyId: string;
8118
+ author: {
8119
+ dazlUserId: string;
8120
+ };
8121
+ content: string;
8122
+ mentions: Array<UserMention>;
8123
+ createdAt: string;
8124
+ updatedAt: string;
8125
+ gitInfo?: CommentGitInfo;
8126
+ };
8127
+ };
8128
+ };
8129
+
8130
+ export type CreateReplyResponse = CreateReplyResponses[keyof CreateReplyResponses];
8131
+
8132
+ export type DeleteReplyData = {
8133
+ body?: never;
8134
+ path: {
8135
+ hostType: 'project' | 'workspace';
8136
+ hostId: string;
8137
+ commentId: string;
8138
+ replyId: string;
8139
+ };
8140
+ query?: never;
8141
+ url: '/comments/{hostType}/{hostId}/{commentId}/replies/{replyId}';
8142
+ };
8143
+
8144
+ export type DeleteReplyErrors = {
8145
+ /**
8146
+ * Bad request - Invalid parameters or malformed JSON
8147
+ */
8148
+ 400: {
8149
+ message: string;
8150
+ issues?: string;
8151
+ };
8152
+ /**
8153
+ * Unauthorized
8154
+ */
8155
+ 401: ErrorResponse;
8156
+ /**
8157
+ * Forbidden
8158
+ */
8159
+ 403: ErrorResponse;
8160
+ /**
8161
+ * Not Found
8162
+ */
8163
+ 404: ErrorResponse;
8164
+ /**
8165
+ * Conflict
8166
+ */
8167
+ 409: ErrorResponse;
8168
+ /**
8169
+ * Internal server error
8170
+ */
8171
+ 500: ErrorResponse;
8172
+ /**
8173
+ * Service Unavailable
8174
+ */
8175
+ 503: ErrorResponse;
8176
+ };
8177
+
8178
+ export type DeleteReplyError = DeleteReplyErrors[keyof DeleteReplyErrors];
8179
+
8180
+ export type DeleteReplyResponses = {
8181
+ /**
8182
+ * Acknowledges that the reply was deleted
8183
+ */
8184
+ 200: {
8185
+ success: true;
8186
+ };
8187
+ };
8188
+
8189
+ export type DeleteReplyResponse = DeleteReplyResponses[keyof DeleteReplyResponses];
8190
+
8191
+ export type EditReplyData = {
8192
+ body: EditReplyInput;
8193
+ path: {
8194
+ hostType: 'project' | 'workspace';
8195
+ hostId: string;
8196
+ commentId: string;
8197
+ replyId: string;
8198
+ };
8199
+ query?: never;
8200
+ url: '/comments/{hostType}/{hostId}/{commentId}/replies/{replyId}';
8201
+ };
8202
+
8203
+ export type EditReplyErrors = {
8204
+ /**
8205
+ * Bad request - Invalid parameters or malformed JSON
8206
+ */
8207
+ 400: {
8208
+ message: string;
8209
+ issues?: string;
8210
+ };
8211
+ /**
8212
+ * Unauthorized
8213
+ */
8214
+ 401: ErrorResponse;
8215
+ /**
8216
+ * Forbidden
8217
+ */
8218
+ 403: ErrorResponse;
8219
+ /**
8220
+ * Not Found
8221
+ */
8222
+ 404: ErrorResponse;
8223
+ /**
8224
+ * Conflict
8225
+ */
8226
+ 409: ErrorResponse;
8227
+ /**
8228
+ * Internal server error
8229
+ */
8230
+ 500: ErrorResponse;
8231
+ /**
8232
+ * Service Unavailable
8233
+ */
8234
+ 503: ErrorResponse;
8235
+ };
8236
+
8237
+ export type EditReplyError = EditReplyErrors[keyof EditReplyErrors];
8238
+
8239
+ export type EditReplyResponses = {
8240
+ /**
8241
+ * Returns the updated reply
8242
+ */
8243
+ 200: {
8244
+ reply: {
8245
+ replyId: string;
8246
+ author: {
8247
+ dazlUserId: string;
8248
+ };
8249
+ content: string;
8250
+ mentions: Array<UserMention>;
8251
+ createdAt: string;
8252
+ updatedAt: string;
8253
+ gitInfo?: CommentGitInfo;
8254
+ };
8255
+ };
8256
+ };
8257
+
8258
+ export type EditReplyResponse = EditReplyResponses[keyof EditReplyResponses];