@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.
@@ -441,25 +441,6 @@ export type PurgeUserAccountInput = {
441
441
  */
442
442
  dryRun?: boolean;
443
443
  };
444
- export type CreateCommentInput = {
445
- content: string;
446
- mentions?: Array<UserMention>;
447
- context?: CommentContext;
448
- gitInfo?: CommentGitInfo;
449
- };
450
- export type EditCommentInput = {
451
- content: string;
452
- mentions?: Array<UserMention>;
453
- };
454
- export type CreateReplyInput = {
455
- content: string;
456
- mentions?: Array<UserMention>;
457
- gitInfo?: CommentGitInfo;
458
- };
459
- export type EditReplyInput = {
460
- content: string;
461
- mentions?: Array<UserMention>;
462
- };
463
444
  export type FeatureToggle = {
464
445
  name: string;
465
446
  scope: 'RemoteAndEditor' | 'SiteAndEditor';
@@ -490,6 +471,25 @@ export type ConnectionStatus = {
490
471
  integrationName: IntegrationName;
491
472
  isConnected: boolean;
492
473
  };
474
+ export type CreateCommentInput = {
475
+ content: string;
476
+ mentions?: Array<UserMention>;
477
+ context?: CommentContext;
478
+ gitInfo?: CommentGitInfo;
479
+ };
480
+ export type EditCommentInput = {
481
+ content: string;
482
+ mentions?: Array<UserMention>;
483
+ };
484
+ export type CreateReplyInput = {
485
+ content: string;
486
+ mentions?: Array<UserMention>;
487
+ gitInfo?: CommentGitInfo;
488
+ };
489
+ export type EditReplyInput = {
490
+ content: string;
491
+ mentions?: Array<UserMention>;
492
+ };
493
493
  export type EnsureMyUserData = {
494
494
  body?: {
495
495
  name?: string;
@@ -2620,58 +2620,6 @@ export type InviteProjectMemberResponses = {
2620
2620
  };
2621
2621
  };
2622
2622
  export type InviteProjectMemberResponse = InviteProjectMemberResponses[keyof InviteProjectMemberResponses];
2623
- export type AcceptProjectInvitationData = {
2624
- body: {
2625
- token: string;
2626
- userDazlId: string;
2627
- };
2628
- path?: never;
2629
- query?: never;
2630
- url: '/project/members/accept-invitation';
2631
- };
2632
- export type AcceptProjectInvitationErrors = {
2633
- /**
2634
- * Bad request - Invalid parameters or malformed JSON
2635
- */
2636
- 400: {
2637
- message: string;
2638
- issues?: string;
2639
- };
2640
- /**
2641
- * Unauthorized
2642
- */
2643
- 401: ErrorResponse;
2644
- /**
2645
- * Forbidden
2646
- */
2647
- 403: ErrorResponse;
2648
- /**
2649
- * Not Found
2650
- */
2651
- 404: ErrorResponse;
2652
- /**
2653
- * Conflict
2654
- */
2655
- 409: ErrorResponse;
2656
- /**
2657
- * Internal server error
2658
- */
2659
- 500: ErrorResponse;
2660
- /**
2661
- * Service Unavailable
2662
- */
2663
- 503: ErrorResponse;
2664
- };
2665
- export type AcceptProjectInvitationError = AcceptProjectInvitationErrors[keyof AcceptProjectInvitationErrors];
2666
- export type AcceptProjectInvitationResponses = {
2667
- /**
2668
- * Acknowledges that the invitation was accepted
2669
- */
2670
- 200: {
2671
- status: 'accepted';
2672
- };
2673
- };
2674
- export type AcceptProjectInvitationResponse = AcceptProjectInvitationResponses[keyof AcceptProjectInvitationResponses];
2675
2623
  export type GetProjectCollaboratorsData = {
2676
2624
  body?: never;
2677
2625
  path: {
@@ -2726,20 +2674,20 @@ export type GetProjectCollaboratorsResponses = {
2726
2674
  * Dazl ID for the type = "user"
2727
2675
  */
2728
2676
  id: string;
2729
- role: 'admin' | 'contributor' | 'viewer' | 'workspace_member' | 'owner';
2730
2677
  email: string;
2731
2678
  name?: string;
2732
2679
  picture?: string;
2680
+ role: 'admin' | 'contributor' | 'viewer' | 'owner';
2733
2681
  } | null;
2734
2682
  members: Array<{
2735
2683
  /**
2736
2684
  * Dazl ID for the type = "user"
2737
2685
  */
2738
2686
  id: string;
2739
- role: 'admin' | 'contributor' | 'viewer' | 'workspace_member' | 'owner';
2740
2687
  email: string;
2741
2688
  name?: string;
2742
2689
  picture?: string;
2690
+ role: 'admin' | 'contributor' | 'viewer' | 'owner';
2743
2691
  }>;
2744
2692
  invited: Array<{
2745
2693
  role: 'admin' | 'contributor' | 'viewer';
@@ -5853,17 +5801,15 @@ export type GetUserActivePromotionsResponses = {
5853
5801
  };
5854
5802
  };
5855
5803
  export type GetUserActivePromotionsResponse = GetUserActivePromotionsResponses[keyof GetUserActivePromotionsResponses];
5856
- export type DeleteCommentData = {
5804
+ export type GetFeatureTogglesData = {
5857
5805
  body?: never;
5858
- path: {
5859
- hostType: 'project' | 'workspace';
5860
- hostId: string;
5861
- commentId: string;
5806
+ path?: never;
5807
+ query?: {
5808
+ scope?: 'RemoteAndEditor' | 'SiteAndEditor';
5862
5809
  };
5863
- query?: never;
5864
- url: '/comments/{hostType}/{hostId}/{commentId}';
5810
+ url: '/env-config';
5865
5811
  };
5866
- export type DeleteCommentErrors = {
5812
+ export type GetFeatureTogglesErrors = {
5867
5813
  /**
5868
5814
  * Bad request - Invalid parameters or malformed JSON
5869
5815
  */
@@ -5896,27 +5842,23 @@ export type DeleteCommentErrors = {
5896
5842
  */
5897
5843
  503: ErrorResponse;
5898
5844
  };
5899
- export type DeleteCommentError = DeleteCommentErrors[keyof DeleteCommentErrors];
5900
- export type DeleteCommentResponses = {
5845
+ export type GetFeatureTogglesError = GetFeatureTogglesErrors[keyof GetFeatureTogglesErrors];
5846
+ export type GetFeatureTogglesResponses = {
5901
5847
  /**
5902
- * Acknowledges that the comment was deleted
5848
+ * Returns feature toggles, optionally filtered by scope
5903
5849
  */
5904
5850
  200: {
5905
- success: true;
5851
+ toggles: Array<FeatureToggle>;
5906
5852
  };
5907
5853
  };
5908
- export type DeleteCommentResponse = DeleteCommentResponses[keyof DeleteCommentResponses];
5909
- export type GetCommentData = {
5854
+ export type GetFeatureTogglesResponse = GetFeatureTogglesResponses[keyof GetFeatureTogglesResponses];
5855
+ export type GetMyUserData = {
5910
5856
  body?: never;
5911
- path: {
5912
- hostType: 'project' | 'workspace';
5913
- hostId: string;
5914
- commentId: string;
5915
- };
5857
+ path?: never;
5916
5858
  query?: never;
5917
- url: '/comments/{hostType}/{hostId}/{commentId}';
5859
+ url: '/my-user/me';
5918
5860
  };
5919
- export type GetCommentErrors = {
5861
+ export type GetMyUserErrors = {
5920
5862
  /**
5921
5863
  * Bad request - Invalid parameters or malformed JSON
5922
5864
  */
@@ -5949,52 +5891,27 @@ export type GetCommentErrors = {
5949
5891
  */
5950
5892
  503: ErrorResponse;
5951
5893
  };
5952
- export type GetCommentError = GetCommentErrors[keyof GetCommentErrors];
5953
- export type GetCommentResponses = {
5894
+ export type GetMyUserError = GetMyUserErrors[keyof GetMyUserErrors];
5895
+ export type GetMyUserResponses = {
5954
5896
  /**
5955
- * Returns comment by id for the host entity
5897
+ * Returns the requested user
5956
5898
  */
5957
5899
  200: {
5958
- comment: {
5959
- commentId: string;
5960
- author: {
5961
- dazlUserId: string;
5962
- };
5963
- content: string;
5964
- mentions: Array<UserMention>;
5965
- createdAt: string;
5966
- updatedAt: string;
5967
- lastActivityAt: string;
5968
- isEdited: boolean;
5969
- replies: Array<{
5970
- replyId: string;
5971
- author: {
5972
- dazlUserId: string;
5973
- };
5974
- content: string;
5975
- mentions: Array<UserMention>;
5976
- createdAt: string;
5977
- updatedAt: string;
5978
- gitInfo?: CommentGitInfo;
5979
- }>;
5980
- resolved?: CommentResolved;
5981
- context?: CommentContext;
5982
- gitInfo?: CommentGitInfo;
5983
- };
5900
+ user: UserRaw;
5984
5901
  };
5985
5902
  };
5986
- export type GetCommentResponse = GetCommentResponses[keyof GetCommentResponses];
5987
- export type EditCommentData = {
5988
- body: EditCommentInput;
5989
- path: {
5990
- hostType: 'project' | 'workspace';
5991
- hostId: string;
5992
- commentId: string;
5903
+ export type GetMyUserResponse = GetMyUserResponses[keyof GetMyUserResponses];
5904
+ export type UpdateMyUserData = {
5905
+ body: {
5906
+ picture?: string | null;
5907
+ name?: string;
5908
+ jobRole?: string | null;
5993
5909
  };
5910
+ path?: never;
5994
5911
  query?: never;
5995
- url: '/comments/{hostType}/{hostId}/{commentId}';
5912
+ url: '/my-user/me';
5996
5913
  };
5997
- export type EditCommentErrors = {
5914
+ export type UpdateMyUserErrors = {
5998
5915
  /**
5999
5916
  * Bad request - Invalid parameters or malformed JSON
6000
5917
  */
@@ -6027,51 +5944,25 @@ export type EditCommentErrors = {
6027
5944
  */
6028
5945
  503: ErrorResponse;
6029
5946
  };
6030
- export type EditCommentError = EditCommentErrors[keyof EditCommentErrors];
6031
- export type EditCommentResponses = {
5947
+ export type UpdateMyUserError = UpdateMyUserErrors[keyof UpdateMyUserErrors];
5948
+ export type UpdateMyUserResponses = {
6032
5949
  /**
6033
- * Returns the updated comment
5950
+ * Updates user information
6034
5951
  */
6035
5952
  200: {
6036
- comment: {
6037
- commentId: string;
6038
- author: {
6039
- dazlUserId: string;
6040
- };
6041
- content: string;
6042
- mentions: Array<UserMention>;
6043
- createdAt: string;
6044
- updatedAt: string;
6045
- lastActivityAt: string;
6046
- isEdited: boolean;
6047
- replies: Array<{
6048
- replyId: string;
6049
- author: {
6050
- dazlUserId: string;
6051
- };
6052
- content: string;
6053
- mentions: Array<UserMention>;
6054
- createdAt: string;
6055
- updatedAt: string;
6056
- gitInfo?: CommentGitInfo;
6057
- }>;
6058
- resolved?: CommentResolved;
6059
- context?: CommentContext;
6060
- gitInfo?: CommentGitInfo;
6061
- };
5953
+ user: UserRaw;
6062
5954
  };
6063
5955
  };
6064
- export type EditCommentResponse = EditCommentResponses[keyof EditCommentResponses];
6065
- export type ListCommentsData = {
6066
- body?: never;
6067
- path: {
6068
- hostType: 'project' | 'workspace';
6069
- hostId: string;
5956
+ export type UpdateMyUserResponse = UpdateMyUserResponses[keyof UpdateMyUserResponses];
5957
+ export type CreateWorkspaceData = {
5958
+ body: {
5959
+ name: string;
6070
5960
  };
5961
+ path?: never;
6071
5962
  query?: never;
6072
- url: '/comments/{hostType}/{hostId}';
5963
+ url: '/workspace/create';
6073
5964
  };
6074
- export type ListCommentsErrors = {
5965
+ export type CreateWorkspaceErrors = {
6075
5966
  /**
6076
5967
  * Bad request - Invalid parameters or malformed JSON
6077
5968
  */
@@ -6104,51 +5995,28 @@ export type ListCommentsErrors = {
6104
5995
  */
6105
5996
  503: ErrorResponse;
6106
5997
  };
6107
- export type ListCommentsError = ListCommentsErrors[keyof ListCommentsErrors];
6108
- export type ListCommentsResponses = {
5998
+ export type CreateWorkspaceError = CreateWorkspaceErrors[keyof CreateWorkspaceErrors];
5999
+ export type CreateWorkspaceResponses = {
6109
6000
  /**
6110
- * Returns the list of comments for the host entity
6001
+ * Returns the created workspace
6111
6002
  */
6112
6003
  200: {
6113
- comments: Array<{
6114
- commentId: string;
6115
- author: {
6116
- dazlUserId: string;
6117
- };
6118
- content: string;
6119
- mentions: Array<UserMention>;
6120
- createdAt: string;
6121
- updatedAt: string;
6122
- lastActivityAt: string;
6123
- isEdited: boolean;
6124
- replies: Array<{
6125
- replyId: string;
6126
- author: {
6127
- dazlUserId: string;
6128
- };
6129
- content: string;
6130
- mentions: Array<UserMention>;
6131
- createdAt: string;
6132
- updatedAt: string;
6133
- gitInfo?: CommentGitInfo;
6134
- }>;
6135
- resolved?: CommentResolved;
6136
- context?: CommentContext;
6137
- gitInfo?: CommentGitInfo;
6138
- }>;
6004
+ workspace: Workspace;
6139
6005
  };
6140
6006
  };
6141
- export type ListCommentsResponse = ListCommentsResponses[keyof ListCommentsResponses];
6142
- export type CreateCommentData = {
6143
- body: CreateCommentInput;
6144
- path: {
6145
- hostType: 'project' | 'workspace';
6146
- hostId: string;
6007
+ export type CreateWorkspaceResponse = CreateWorkspaceResponses[keyof CreateWorkspaceResponses];
6008
+ export type GetAllWorkspacesData = {
6009
+ body?: never;
6010
+ path?: never;
6011
+ query?: {
6012
+ /**
6013
+ * Whether to include the members of each workspace
6014
+ */
6015
+ withMembers?: boolean;
6147
6016
  };
6148
- query?: never;
6149
- url: '/comments/{hostType}/{hostId}';
6017
+ url: '/workspace/list-my';
6150
6018
  };
6151
- export type CreateCommentErrors = {
6019
+ export type GetAllWorkspacesErrors = {
6152
6020
  /**
6153
6021
  * Bad request - Invalid parameters or malformed JSON
6154
6022
  */
@@ -6181,52 +6049,57 @@ export type CreateCommentErrors = {
6181
6049
  */
6182
6050
  503: ErrorResponse;
6183
6051
  };
6184
- export type CreateCommentError = CreateCommentErrors[keyof CreateCommentErrors];
6185
- export type CreateCommentResponses = {
6052
+ export type GetAllWorkspacesError = GetAllWorkspacesErrors[keyof GetAllWorkspacesErrors];
6053
+ export type GetAllWorkspacesResponses = {
6186
6054
  /**
6187
- * Returns the created comment
6055
+ * Returns the list of workspaces that the user is a member of
6188
6056
  */
6189
6057
  200: {
6190
- comment: {
6191
- commentId: string;
6192
- author: {
6193
- dazlUserId: string;
6194
- };
6195
- content: string;
6196
- mentions: Array<UserMention>;
6058
+ workspaces: Array<{
6059
+ id: string;
6060
+ name: string;
6061
+ /**
6062
+ * The user which created the workspace. Null if the user was deleted.
6063
+ */
6064
+ dazlUserId: string | null;
6197
6065
  createdAt: string;
6198
- updatedAt: string;
6199
- lastActivityAt: string;
6200
- isEdited: boolean;
6201
- replies: Array<{
6202
- replyId: string;
6203
- author: {
6204
- dazlUserId: string;
6205
- };
6206
- content: string;
6207
- mentions: Array<UserMention>;
6208
- createdAt: string;
6209
- updatedAt: string;
6210
- gitInfo?: CommentGitInfo;
6066
+ isDefault: boolean;
6067
+ owner?: {
6068
+ /**
6069
+ * Dazl ID for the type = "user"
6070
+ */
6071
+ id: string;
6072
+ email: string;
6073
+ name?: string;
6074
+ picture?: string;
6075
+ role: 'workspace_member' | 'owner';
6076
+ } | null;
6077
+ members?: Array<{
6078
+ /**
6079
+ * Dazl ID for the type = "user"
6080
+ */
6081
+ id: string;
6082
+ email: string;
6083
+ name?: string;
6084
+ picture?: string;
6085
+ role: 'workspace_member' | 'owner';
6211
6086
  }>;
6212
- resolved?: CommentResolved;
6213
- context?: CommentContext;
6214
- gitInfo?: CommentGitInfo;
6215
- };
6087
+ }>;
6216
6088
  };
6217
6089
  };
6218
- export type CreateCommentResponse = CreateCommentResponses[keyof CreateCommentResponses];
6219
- export type ResolveCommentData = {
6220
- body?: never;
6090
+ export type GetAllWorkspacesResponse = GetAllWorkspacesResponses[keyof GetAllWorkspacesResponses];
6091
+ export type InviteWorkspaceMemberData = {
6092
+ body: {
6093
+ email: string;
6094
+ role: 'workspace_member';
6095
+ };
6221
6096
  path: {
6222
- hostType: 'project' | 'workspace';
6223
- hostId: string;
6224
- commentId: string;
6097
+ workspaceId: string;
6225
6098
  };
6226
6099
  query?: never;
6227
- url: '/comments/{hostType}/{hostId}/{commentId}/resolve';
6100
+ url: '/workspace/{workspaceId}/members/invite';
6228
6101
  };
6229
- export type ResolveCommentErrors = {
6102
+ export type InviteWorkspaceMemberErrors = {
6230
6103
  /**
6231
6104
  * Bad request - Invalid parameters or malformed JSON
6232
6105
  */
@@ -6259,52 +6132,25 @@ export type ResolveCommentErrors = {
6259
6132
  */
6260
6133
  503: ErrorResponse;
6261
6134
  };
6262
- export type ResolveCommentError = ResolveCommentErrors[keyof ResolveCommentErrors];
6263
- export type ResolveCommentResponses = {
6135
+ export type InviteWorkspaceMemberError = InviteWorkspaceMemberErrors[keyof InviteWorkspaceMemberErrors];
6136
+ export type InviteWorkspaceMemberResponses = {
6264
6137
  /**
6265
- * Returns the resolved comment
6138
+ * Returns the invitation token, or null if user was auto-added to workspace
6266
6139
  */
6267
6140
  200: {
6268
- comment: {
6269
- commentId: string;
6270
- author: {
6271
- dazlUserId: string;
6272
- };
6273
- content: string;
6274
- mentions: Array<UserMention>;
6275
- createdAt: string;
6276
- updatedAt: string;
6277
- lastActivityAt: string;
6278
- isEdited: boolean;
6279
- replies: Array<{
6280
- replyId: string;
6281
- author: {
6282
- dazlUserId: string;
6283
- };
6284
- content: string;
6285
- mentions: Array<UserMention>;
6286
- createdAt: string;
6287
- updatedAt: string;
6288
- gitInfo?: CommentGitInfo;
6289
- }>;
6290
- resolved?: CommentResolved;
6291
- context?: CommentContext;
6292
- gitInfo?: CommentGitInfo;
6293
- };
6141
+ token: string | null;
6294
6142
  };
6295
6143
  };
6296
- export type ResolveCommentResponse = ResolveCommentResponses[keyof ResolveCommentResponses];
6297
- export type ReopenCommentData = {
6144
+ export type InviteWorkspaceMemberResponse = InviteWorkspaceMemberResponses[keyof InviteWorkspaceMemberResponses];
6145
+ export type GetWorkspaceMembersData = {
6298
6146
  body?: never;
6299
6147
  path: {
6300
- hostType: 'project' | 'workspace';
6301
- hostId: string;
6302
- commentId: string;
6148
+ workspaceId: string;
6303
6149
  };
6304
6150
  query?: never;
6305
- url: '/comments/{hostType}/{hostId}/{commentId}/reopen';
6151
+ url: '/workspace/{workspaceId}/all-members';
6306
6152
  };
6307
- export type ReopenCommentErrors = {
6153
+ export type GetWorkspaceMembersErrors = {
6308
6154
  /**
6309
6155
  * Bad request - Invalid parameters or malformed JSON
6310
6156
  */
@@ -6337,52 +6183,45 @@ export type ReopenCommentErrors = {
6337
6183
  */
6338
6184
  503: ErrorResponse;
6339
6185
  };
6340
- export type ReopenCommentError = ReopenCommentErrors[keyof ReopenCommentErrors];
6341
- export type ReopenCommentResponses = {
6186
+ export type GetWorkspaceMembersError = GetWorkspaceMembersErrors[keyof GetWorkspaceMembersErrors];
6187
+ export type GetWorkspaceMembersResponses = {
6342
6188
  /**
6343
- * Returns the reopened comment
6189
+ * Returns the list of workspace collaborators: members and owner
6344
6190
  */
6345
6191
  200: {
6346
- comment: {
6347
- commentId: string;
6348
- author: {
6349
- dazlUserId: string;
6350
- };
6351
- content: string;
6352
- mentions: Array<UserMention>;
6353
- createdAt: string;
6354
- updatedAt: string;
6355
- lastActivityAt: string;
6356
- isEdited: boolean;
6357
- replies: Array<{
6358
- replyId: string;
6359
- author: {
6360
- dazlUserId: string;
6361
- };
6362
- content: string;
6363
- mentions: Array<UserMention>;
6364
- createdAt: string;
6365
- updatedAt: string;
6366
- gitInfo?: CommentGitInfo;
6367
- }>;
6368
- resolved?: CommentResolved;
6369
- context?: CommentContext;
6370
- gitInfo?: CommentGitInfo;
6371
- };
6192
+ owner: {
6193
+ /**
6194
+ * Dazl ID for the type = "user"
6195
+ */
6196
+ id: string;
6197
+ email: string;
6198
+ name?: string;
6199
+ picture?: string;
6200
+ role: 'workspace_member' | 'owner';
6201
+ } | null;
6202
+ members: Array<{
6203
+ /**
6204
+ * Dazl ID for the type = "user"
6205
+ */
6206
+ id: string;
6207
+ email: string;
6208
+ name?: string;
6209
+ picture?: string;
6210
+ role: 'workspace_member' | 'owner';
6211
+ }>;
6372
6212
  };
6373
6213
  };
6374
- export type ReopenCommentResponse = ReopenCommentResponses[keyof ReopenCommentResponses];
6375
- export type CreateReplyData = {
6376
- body: CreateReplyInput;
6214
+ export type GetWorkspaceMembersResponse = GetWorkspaceMembersResponses[keyof GetWorkspaceMembersResponses];
6215
+ export type DeleteWorkspaceMemberData = {
6216
+ body?: never;
6377
6217
  path: {
6378
- hostType: 'project' | 'workspace';
6379
- hostId: string;
6380
- commentId: string;
6218
+ workspaceId: string;
6219
+ memberId: string;
6381
6220
  };
6382
6221
  query?: never;
6383
- url: '/comments/{hostType}/{hostId}/{commentId}/replies';
6222
+ url: '/workspace/{workspaceId}/members/{memberId}';
6384
6223
  };
6385
- export type CreateReplyErrors = {
6224
+ export type DeleteWorkspaceMemberErrors = {
6386
6225
  /**
6387
6226
  * Bad request - Invalid parameters or malformed JSON
6388
6227
  */
@@ -6415,38 +6254,26 @@ export type CreateReplyErrors = {
6415
6254
  */
6416
6255
  503: ErrorResponse;
6417
6256
  };
6418
- export type CreateReplyError = CreateReplyErrors[keyof CreateReplyErrors];
6419
- export type CreateReplyResponses = {
6257
+ export type DeleteWorkspaceMemberError = DeleteWorkspaceMemberErrors[keyof DeleteWorkspaceMemberErrors];
6258
+ export type DeleteWorkspaceMemberResponses = {
6420
6259
  /**
6421
- * Returns the created reply
6260
+ * Acknowledges that the workspace member was deleted
6422
6261
  */
6423
6262
  200: {
6424
- reply: {
6425
- replyId: string;
6426
- author: {
6427
- dazlUserId: string;
6428
- };
6429
- content: string;
6430
- mentions: Array<UserMention>;
6431
- createdAt: string;
6432
- updatedAt: string;
6433
- gitInfo?: CommentGitInfo;
6434
- };
6263
+ status: 'deleted';
6435
6264
  };
6436
6265
  };
6437
- export type CreateReplyResponse = CreateReplyResponses[keyof CreateReplyResponses];
6438
- export type DeleteReplyData = {
6266
+ export type DeleteWorkspaceMemberResponse = DeleteWorkspaceMemberResponses[keyof DeleteWorkspaceMemberResponses];
6267
+ export type DeleteWorkspaceInvitationData = {
6439
6268
  body?: never;
6440
6269
  path: {
6441
- hostType: 'project' | 'workspace';
6442
- hostId: string;
6443
- commentId: string;
6444
- replyId: string;
6270
+ workspaceId: string;
6271
+ invitationId: string;
6445
6272
  };
6446
6273
  query?: never;
6447
- url: '/comments/{hostType}/{hostId}/{commentId}/replies/{replyId}';
6274
+ url: '/workspace/{workspaceId}/invitations/{invitationId}';
6448
6275
  };
6449
- export type DeleteReplyErrors = {
6276
+ export type DeleteWorkspaceInvitationErrors = {
6450
6277
  /**
6451
6278
  * Bad request - Invalid parameters or malformed JSON
6452
6279
  */
@@ -6479,28 +6306,28 @@ export type DeleteReplyErrors = {
6479
6306
  */
6480
6307
  503: ErrorResponse;
6481
6308
  };
6482
- export type DeleteReplyError = DeleteReplyErrors[keyof DeleteReplyErrors];
6483
- export type DeleteReplyResponses = {
6309
+ export type DeleteWorkspaceInvitationError = DeleteWorkspaceInvitationErrors[keyof DeleteWorkspaceInvitationErrors];
6310
+ export type DeleteWorkspaceInvitationResponses = {
6484
6311
  /**
6485
- * Acknowledges that the reply was deleted
6312
+ * Acknowledges that the workspace invitation was deleted
6486
6313
  */
6487
6314
  200: {
6488
- success: true;
6315
+ status: 'deleted';
6489
6316
  };
6490
6317
  };
6491
- export type DeleteReplyResponse = DeleteReplyResponses[keyof DeleteReplyResponses];
6492
- export type EditReplyData = {
6493
- body: EditReplyInput;
6494
- path: {
6495
- hostType: 'project' | 'workspace';
6496
- hostId: string;
6497
- commentId: string;
6498
- replyId: string;
6318
+ export type DeleteWorkspaceInvitationResponse = DeleteWorkspaceInvitationResponses[keyof DeleteWorkspaceInvitationResponses];
6319
+ export type GetMyValuesData = {
6320
+ body?: never;
6321
+ path?: never;
6322
+ query?: {
6323
+ /**
6324
+ * Filter results to this category
6325
+ */
6326
+ categ?: string;
6499
6327
  };
6500
- query?: never;
6501
- url: '/comments/{hostType}/{hostId}/{commentId}/replies/{replyId}';
6328
+ url: '/my-user-key-value/values';
6502
6329
  };
6503
- export type EditReplyErrors = {
6330
+ export type GetMyValuesErrors = {
6504
6331
  /**
6505
6332
  * Bad request - Invalid parameters or malformed JSON
6506
6333
  */
@@ -6533,35 +6360,39 @@ export type EditReplyErrors = {
6533
6360
  */
6534
6361
  503: ErrorResponse;
6535
6362
  };
6536
- export type EditReplyError = EditReplyErrors[keyof EditReplyErrors];
6537
- export type EditReplyResponses = {
6363
+ export type GetMyValuesError = GetMyValuesErrors[keyof GetMyValuesErrors];
6364
+ export type GetMyValuesResponses = {
6538
6365
  /**
6539
- * Returns the updated reply
6366
+ * Returns key values for the current user
6540
6367
  */
6541
6368
  200: {
6542
- reply: {
6543
- replyId: string;
6544
- author: {
6545
- dazlUserId: string;
6546
- };
6547
- content: string;
6548
- mentions: Array<UserMention>;
6369
+ values: Array<{
6370
+ id: string;
6371
+ dazlUserId: string;
6372
+ category: string;
6373
+ name: string;
6374
+ strVal: string | null;
6375
+ encryptedValId: string | null;
6549
6376
  createdAt: string;
6550
6377
  updatedAt: string;
6551
- gitInfo?: CommentGitInfo;
6552
- };
6378
+ encryptedValue: string | null;
6379
+ }>;
6553
6380
  };
6554
6381
  };
6555
- export type EditReplyResponse = EditReplyResponses[keyof EditReplyResponses];
6556
- export type GetFeatureTogglesData = {
6557
- body?: never;
6558
- path?: never;
6559
- query?: {
6560
- scope?: 'RemoteAndEditor' | 'SiteAndEditor';
6382
+ export type GetMyValuesResponse = GetMyValuesResponses[keyof GetMyValuesResponses];
6383
+ export type SetMyValueData = {
6384
+ body: {
6385
+ value: string;
6386
+ isSecret?: boolean;
6561
6387
  };
6562
- url: '/env-config';
6388
+ path: {
6389
+ categ: string;
6390
+ name: string;
6391
+ };
6392
+ query?: never;
6393
+ url: '/my-user-key-value/values/{categ}/{name}';
6563
6394
  };
6564
- export type GetFeatureTogglesErrors = {
6395
+ export type SetMyValueErrors = {
6565
6396
  /**
6566
6397
  * Bad request - Invalid parameters or malformed JSON
6567
6398
  */
@@ -6594,23 +6425,25 @@ export type GetFeatureTogglesErrors = {
6594
6425
  */
6595
6426
  503: ErrorResponse;
6596
6427
  };
6597
- export type GetFeatureTogglesError = GetFeatureTogglesErrors[keyof GetFeatureTogglesErrors];
6598
- export type GetFeatureTogglesResponses = {
6428
+ export type SetMyValueError = SetMyValueErrors[keyof SetMyValueErrors];
6429
+ export type SetMyValueResponses = {
6599
6430
  /**
6600
- * Returns feature toggles, optionally filtered by scope
6431
+ * Sets a single key value and returns its id
6601
6432
  */
6602
6433
  200: {
6603
- toggles: Array<FeatureToggle>;
6434
+ id: string;
6604
6435
  };
6605
6436
  };
6606
- export type GetFeatureTogglesResponse = GetFeatureTogglesResponses[keyof GetFeatureTogglesResponses];
6607
- export type GetMyUserData = {
6437
+ export type SetMyValueResponse = SetMyValueResponses[keyof SetMyValueResponses];
6438
+ export type DeleteMyCategValuesData = {
6608
6439
  body?: never;
6609
- path?: never;
6440
+ path: {
6441
+ categ: string;
6442
+ };
6610
6443
  query?: never;
6611
- url: '/my-user/me';
6444
+ url: '/my-user-key-value/values/{categ}';
6612
6445
  };
6613
- export type GetMyUserErrors = {
6446
+ export type DeleteMyCategValuesErrors = {
6614
6447
  /**
6615
6448
  * Bad request - Invalid parameters or malformed JSON
6616
6449
  */
@@ -6643,27 +6476,31 @@ export type GetMyUserErrors = {
6643
6476
  */
6644
6477
  503: ErrorResponse;
6645
6478
  };
6646
- export type GetMyUserError = GetMyUserErrors[keyof GetMyUserErrors];
6647
- export type GetMyUserResponses = {
6479
+ export type DeleteMyCategValuesError = DeleteMyCategValuesErrors[keyof DeleteMyCategValuesErrors];
6480
+ export type DeleteMyCategValuesResponses = {
6648
6481
  /**
6649
- * Returns the requested user
6482
+ * Deletes all values for the category
6650
6483
  */
6651
6484
  200: {
6652
- user: UserRaw;
6485
+ categ: string;
6653
6486
  };
6654
6487
  };
6655
- export type GetMyUserResponse = GetMyUserResponses[keyof GetMyUserResponses];
6656
- export type UpdateMyUserData = {
6488
+ export type DeleteMyCategValuesResponse = DeleteMyCategValuesResponses[keyof DeleteMyCategValuesResponses];
6489
+ export type ReplaceMyCategValuesData = {
6657
6490
  body: {
6658
- picture?: string | null;
6659
- name?: string;
6660
- jobRole?: string | null;
6491
+ values: Array<{
6492
+ name: string;
6493
+ value: string;
6494
+ isSecret?: boolean;
6495
+ }>;
6496
+ };
6497
+ path: {
6498
+ categ: string;
6661
6499
  };
6662
- path?: never;
6663
6500
  query?: never;
6664
- url: '/my-user/me';
6501
+ url: '/my-user-key-value/values/{categ}';
6665
6502
  };
6666
- export type UpdateMyUserErrors = {
6503
+ export type ReplaceMyCategValuesErrors = {
6667
6504
  /**
6668
6505
  * Bad request - Invalid parameters or malformed JSON
6669
6506
  */
@@ -6696,25 +6533,27 @@ export type UpdateMyUserErrors = {
6696
6533
  */
6697
6534
  503: ErrorResponse;
6698
6535
  };
6699
- export type UpdateMyUserError = UpdateMyUserErrors[keyof UpdateMyUserErrors];
6700
- export type UpdateMyUserResponses = {
6536
+ export type ReplaceMyCategValuesError = ReplaceMyCategValuesErrors[keyof ReplaceMyCategValuesErrors];
6537
+ export type ReplaceMyCategValuesResponses = {
6701
6538
  /**
6702
- * Updates user information
6539
+ * Replaces all values for the category and returns the upserted rows
6703
6540
  */
6704
6541
  200: {
6705
- user: UserRaw;
6542
+ values: Array<{
6543
+ id: string;
6544
+ name: string;
6545
+ }>;
6546
+ replaced: boolean;
6706
6547
  };
6707
6548
  };
6708
- export type UpdateMyUserResponse = UpdateMyUserResponses[keyof UpdateMyUserResponses];
6709
- export type CreateWorkspaceData = {
6710
- body: {
6711
- name: string;
6712
- };
6549
+ export type ReplaceMyCategValuesResponse = ReplaceMyCategValuesResponses[keyof ReplaceMyCategValuesResponses];
6550
+ export type GetAllData = {
6551
+ body?: never;
6713
6552
  path?: never;
6714
6553
  query?: never;
6715
- url: '/workspace/create';
6554
+ url: '/my-user-settings';
6716
6555
  };
6717
- export type CreateWorkspaceErrors = {
6556
+ export type GetAllErrors = {
6718
6557
  /**
6719
6558
  * Bad request - Invalid parameters or malformed JSON
6720
6559
  */
@@ -6747,23 +6586,29 @@ export type CreateWorkspaceErrors = {
6747
6586
  */
6748
6587
  503: ErrorResponse;
6749
6588
  };
6750
- export type CreateWorkspaceError = CreateWorkspaceErrors[keyof CreateWorkspaceErrors];
6751
- export type CreateWorkspaceResponses = {
6589
+ export type GetAllError = GetAllErrors[keyof GetAllErrors];
6590
+ export type GetAllResponses = {
6752
6591
  /**
6753
- * Returns the created workspace
6592
+ * Returns user settings (empty object if none exist)
6754
6593
  */
6755
6594
  200: {
6756
- workspace: Workspace;
6595
+ settings: {
6596
+ [key: string]: unknown;
6597
+ };
6757
6598
  };
6758
6599
  };
6759
- export type CreateWorkspaceResponse = CreateWorkspaceResponses[keyof CreateWorkspaceResponses];
6760
- export type GetAllWorkspacesData = {
6761
- body?: never;
6600
+ export type GetAllResponse = GetAllResponses[keyof GetAllResponses];
6601
+ export type OverrideAllData = {
6602
+ body: {
6603
+ settings: {
6604
+ [key: string]: unknown;
6605
+ };
6606
+ };
6762
6607
  path?: never;
6763
6608
  query?: never;
6764
- url: '/workspace/list-my';
6609
+ url: '/my-user-settings';
6765
6610
  };
6766
- export type GetAllWorkspacesErrors = {
6611
+ export type OverrideAllErrors = {
6767
6612
  /**
6768
6613
  * Bad request - Invalid parameters or malformed JSON
6769
6614
  */
@@ -6796,28 +6641,25 @@ export type GetAllWorkspacesErrors = {
6796
6641
  */
6797
6642
  503: ErrorResponse;
6798
6643
  };
6799
- export type GetAllWorkspacesError = GetAllWorkspacesErrors[keyof GetAllWorkspacesErrors];
6800
- export type GetAllWorkspacesResponses = {
6644
+ export type OverrideAllError = OverrideAllErrors[keyof OverrideAllErrors];
6645
+ export type OverrideAllResponses = {
6801
6646
  /**
6802
- * Returns the list of workspaces for the current user
6647
+ * Settings updated successfully
6803
6648
  */
6804
6649
  200: {
6805
- workspaces: Array<Workspace>;
6650
+ success: boolean;
6806
6651
  };
6807
6652
  };
6808
- export type GetAllWorkspacesResponse = GetAllWorkspacesResponses[keyof GetAllWorkspacesResponses];
6809
- export type GetMyValuesData = {
6810
- body?: never;
6811
- path?: never;
6812
- query?: {
6813
- /**
6814
- * Filter results to this category
6815
- */
6816
- categ?: string;
6653
+ export type OverrideAllResponse = OverrideAllResponses[keyof OverrideAllResponses];
6654
+ export type CreateSessionData = {
6655
+ body: {
6656
+ integrationName: IntegrationName;
6817
6657
  };
6818
- url: '/my-user-key-value/values';
6658
+ path?: never;
6659
+ query?: never;
6660
+ url: '/mcp/create-session';
6819
6661
  };
6820
- export type GetMyValuesErrors = {
6662
+ export type CreateSessionErrors = {
6821
6663
  /**
6822
6664
  * Bad request - Invalid parameters or malformed JSON
6823
6665
  */
@@ -6850,39 +6692,31 @@ export type GetMyValuesErrors = {
6850
6692
  */
6851
6693
  503: ErrorResponse;
6852
6694
  };
6853
- export type GetMyValuesError = GetMyValuesErrors[keyof GetMyValuesErrors];
6854
- export type GetMyValuesResponses = {
6695
+ export type CreateSessionError = CreateSessionErrors[keyof CreateSessionErrors];
6696
+ export type CreateSessionResponses = {
6855
6697
  /**
6856
- * Returns key values for the current user
6698
+ * An authorized MCP session (opaque access-token header) or an unauthorized marker
6857
6699
  */
6858
- 200: {
6859
- values: Array<{
6860
- id: string;
6861
- dazlUserId: string;
6862
- category: string;
6863
- name: string;
6864
- strVal: string | null;
6865
- encryptedValId: string | null;
6866
- createdAt: string;
6867
- updatedAt: string;
6868
- encryptedValue: string | null;
6869
- }>;
6870
- };
6700
+ 200: ({
6701
+ status: 'authorized';
6702
+ } & CreateSessionAuthorized) | ({
6703
+ status: 'unauthorized';
6704
+ } & CreateSessionUnauthorized);
6871
6705
  };
6872
- export type GetMyValuesResponse = GetMyValuesResponses[keyof GetMyValuesResponses];
6873
- export type SetMyValueData = {
6706
+ export type CreateSessionResponse = CreateSessionResponses[keyof CreateSessionResponses];
6707
+ export type InitiateConnectionData = {
6874
6708
  body: {
6875
- value: string;
6876
- isSecret?: boolean;
6877
- };
6878
- path: {
6879
- categ: string;
6880
- name: string;
6709
+ integrationName: IntegrationName;
6710
+ /**
6711
+ * Where the browser lands after OAuth; built by the caller
6712
+ */
6713
+ callbackUrl: string;
6881
6714
  };
6715
+ path?: never;
6882
6716
  query?: never;
6883
- url: '/my-user-key-value/values/{categ}/{name}';
6717
+ url: '/mcp/connections';
6884
6718
  };
6885
- export type SetMyValueErrors = {
6719
+ export type InitiateConnectionErrors = {
6886
6720
  /**
6887
6721
  * Bad request - Invalid parameters or malformed JSON
6888
6722
  */
@@ -6915,25 +6749,28 @@ export type SetMyValueErrors = {
6915
6749
  */
6916
6750
  503: ErrorResponse;
6917
6751
  };
6918
- export type SetMyValueError = SetMyValueErrors[keyof SetMyValueErrors];
6919
- export type SetMyValueResponses = {
6752
+ export type InitiateConnectionError = InitiateConnectionErrors[keyof InitiateConnectionErrors];
6753
+ export type InitiateConnectionResponses = {
6920
6754
  /**
6921
- * Sets a single key value and returns its id
6755
+ * The OAuth connection request id and the redirect URL to send the user to
6922
6756
  */
6923
6757
  200: {
6924
- id: string;
6758
+ connectionRequestId: string;
6759
+ redirectUrl: string;
6925
6760
  };
6926
6761
  };
6927
- export type SetMyValueResponse = SetMyValueResponses[keyof SetMyValueResponses];
6928
- export type DeleteMyCategValuesData = {
6929
- body?: never;
6762
+ export type InitiateConnectionResponse = InitiateConnectionResponses[keyof InitiateConnectionResponses];
6763
+ export type FinalizeConnectionData = {
6764
+ body: {
6765
+ integrationName: IntegrationName;
6766
+ };
6930
6767
  path: {
6931
- categ: string;
6768
+ connectionRequestId: string;
6932
6769
  };
6933
6770
  query?: never;
6934
- url: '/my-user-key-value/values/{categ}';
6771
+ url: '/mcp/connections/{connectionRequestId}/finalize';
6935
6772
  };
6936
- export type DeleteMyCategValuesErrors = {
6773
+ export type FinalizeConnectionErrors = {
6937
6774
  /**
6938
6775
  * Bad request - Invalid parameters or malformed JSON
6939
6776
  */
@@ -6966,31 +6803,28 @@ export type DeleteMyCategValuesErrors = {
6966
6803
  */
6967
6804
  503: ErrorResponse;
6968
6805
  };
6969
- export type DeleteMyCategValuesError = DeleteMyCategValuesErrors[keyof DeleteMyCategValuesErrors];
6970
- export type DeleteMyCategValuesResponses = {
6806
+ export type FinalizeConnectionError = FinalizeConnectionErrors[keyof FinalizeConnectionErrors];
6807
+ export type FinalizeConnectionResponses = {
6971
6808
  /**
6972
- * Deletes all values for the category
6809
+ * The persisted connected-account id (ca_...)
6973
6810
  */
6974
6811
  200: {
6975
- categ: string;
6812
+ connectionId: string;
6976
6813
  };
6977
6814
  };
6978
- export type DeleteMyCategValuesResponse = DeleteMyCategValuesResponses[keyof DeleteMyCategValuesResponses];
6979
- export type ReplaceMyCategValuesData = {
6980
- body: {
6981
- values: Array<{
6982
- name: string;
6983
- value: string;
6984
- isSecret?: boolean;
6985
- }>;
6986
- };
6987
- path: {
6988
- categ: string;
6815
+ export type FinalizeConnectionResponse = FinalizeConnectionResponses[keyof FinalizeConnectionResponses];
6816
+ export type GetConnectionStatusData = {
6817
+ body?: never;
6818
+ path?: never;
6819
+ query?: {
6820
+ /**
6821
+ * If omitted, returns status for all integrations
6822
+ */
6823
+ integrationName?: 'confluence' | 'figma' | 'google-docs' | 'google-sheets' | 'google-slides' | 'jira' | 'linear' | 'miro' | 'notion';
6989
6824
  };
6990
- query?: never;
6991
- url: '/my-user-key-value/values/{categ}';
6825
+ url: '/mcp/connections/status';
6992
6826
  };
6993
- export type ReplaceMyCategValuesErrors = {
6827
+ export type GetConnectionStatusErrors = {
6994
6828
  /**
6995
6829
  * Bad request - Invalid parameters or malformed JSON
6996
6830
  */
@@ -7023,27 +6857,25 @@ export type ReplaceMyCategValuesErrors = {
7023
6857
  */
7024
6858
  503: ErrorResponse;
7025
6859
  };
7026
- export type ReplaceMyCategValuesError = ReplaceMyCategValuesErrors[keyof ReplaceMyCategValuesErrors];
7027
- export type ReplaceMyCategValuesResponses = {
6860
+ export type GetConnectionStatusError = GetConnectionStatusErrors[keyof GetConnectionStatusErrors];
6861
+ export type GetConnectionStatusResponses = {
7028
6862
  /**
7029
- * Replaces all values for the category and returns the upserted rows
6863
+ * Active-connection status for the requested integration(s)
7030
6864
  */
7031
- 200: {
7032
- values: Array<{
7033
- id: string;
7034
- name: string;
7035
- }>;
7036
- replaced: boolean;
7037
- };
6865
+ 200: Array<ConnectionStatus>;
7038
6866
  };
7039
- export type ReplaceMyCategValuesResponse = ReplaceMyCategValuesResponses[keyof ReplaceMyCategValuesResponses];
7040
- export type GetAllData = {
6867
+ export type GetConnectionStatusResponse = GetConnectionStatusResponses[keyof GetConnectionStatusResponses];
6868
+ export type DeleteCommentData = {
7041
6869
  body?: never;
7042
- path?: never;
6870
+ path: {
6871
+ hostType: 'project' | 'workspace';
6872
+ hostId: string;
6873
+ commentId: string;
6874
+ };
7043
6875
  query?: never;
7044
- url: '/my-user-settings';
6876
+ url: '/comments/{hostType}/{hostId}/{commentId}';
7045
6877
  };
7046
- export type GetAllErrors = {
6878
+ export type DeleteCommentErrors = {
7047
6879
  /**
7048
6880
  * Bad request - Invalid parameters or malformed JSON
7049
6881
  */
@@ -7076,29 +6908,27 @@ export type GetAllErrors = {
7076
6908
  */
7077
6909
  503: ErrorResponse;
7078
6910
  };
7079
- export type GetAllError = GetAllErrors[keyof GetAllErrors];
7080
- export type GetAllResponses = {
6911
+ export type DeleteCommentError = DeleteCommentErrors[keyof DeleteCommentErrors];
6912
+ export type DeleteCommentResponses = {
7081
6913
  /**
7082
- * Returns user settings (empty object if none exist)
6914
+ * Acknowledges that the comment was deleted
7083
6915
  */
7084
6916
  200: {
7085
- settings: {
7086
- [key: string]: unknown;
7087
- };
6917
+ success: true;
7088
6918
  };
7089
6919
  };
7090
- export type GetAllResponse = GetAllResponses[keyof GetAllResponses];
7091
- export type OverrideAllData = {
7092
- body: {
7093
- settings: {
7094
- [key: string]: unknown;
7095
- };
6920
+ export type DeleteCommentResponse = DeleteCommentResponses[keyof DeleteCommentResponses];
6921
+ export type GetCommentData = {
6922
+ body?: never;
6923
+ path: {
6924
+ hostType: 'project' | 'workspace';
6925
+ hostId: string;
6926
+ commentId: string;
7096
6927
  };
7097
- path?: never;
7098
6928
  query?: never;
7099
- url: '/my-user-settings';
6929
+ url: '/comments/{hostType}/{hostId}/{commentId}';
7100
6930
  };
7101
- export type OverrideAllErrors = {
6931
+ export type GetCommentErrors = {
7102
6932
  /**
7103
6933
  * Bad request - Invalid parameters or malformed JSON
7104
6934
  */
@@ -7131,25 +6961,52 @@ export type OverrideAllErrors = {
7131
6961
  */
7132
6962
  503: ErrorResponse;
7133
6963
  };
7134
- export type OverrideAllError = OverrideAllErrors[keyof OverrideAllErrors];
7135
- export type OverrideAllResponses = {
6964
+ export type GetCommentError = GetCommentErrors[keyof GetCommentErrors];
6965
+ export type GetCommentResponses = {
7136
6966
  /**
7137
- * Settings updated successfully
6967
+ * Returns comment by id for the host entity
7138
6968
  */
7139
6969
  200: {
7140
- success: boolean;
6970
+ comment: {
6971
+ commentId: string;
6972
+ author: {
6973
+ dazlUserId: string;
6974
+ };
6975
+ content: string;
6976
+ mentions: Array<UserMention>;
6977
+ createdAt: string;
6978
+ updatedAt: string;
6979
+ lastActivityAt: string;
6980
+ isEdited: boolean;
6981
+ replies: Array<{
6982
+ replyId: string;
6983
+ author: {
6984
+ dazlUserId: string;
6985
+ };
6986
+ content: string;
6987
+ mentions: Array<UserMention>;
6988
+ createdAt: string;
6989
+ updatedAt: string;
6990
+ gitInfo?: CommentGitInfo;
6991
+ }>;
6992
+ resolved?: CommentResolved;
6993
+ context?: CommentContext;
6994
+ gitInfo?: CommentGitInfo;
6995
+ };
7141
6996
  };
7142
6997
  };
7143
- export type OverrideAllResponse = OverrideAllResponses[keyof OverrideAllResponses];
7144
- export type CreateSessionData = {
7145
- body: {
7146
- integrationName: IntegrationName;
6998
+ export type GetCommentResponse = GetCommentResponses[keyof GetCommentResponses];
6999
+ export type EditCommentData = {
7000
+ body: EditCommentInput;
7001
+ path: {
7002
+ hostType: 'project' | 'workspace';
7003
+ hostId: string;
7004
+ commentId: string;
7147
7005
  };
7148
- path?: never;
7149
7006
  query?: never;
7150
- url: '/mcp/create-session';
7007
+ url: '/comments/{hostType}/{hostId}/{commentId}';
7151
7008
  };
7152
- export type CreateSessionErrors = {
7009
+ export type EditCommentErrors = {
7153
7010
  /**
7154
7011
  * Bad request - Invalid parameters or malformed JSON
7155
7012
  */
@@ -7182,31 +7039,51 @@ export type CreateSessionErrors = {
7182
7039
  */
7183
7040
  503: ErrorResponse;
7184
7041
  };
7185
- export type CreateSessionError = CreateSessionErrors[keyof CreateSessionErrors];
7186
- export type CreateSessionResponses = {
7042
+ export type EditCommentError = EditCommentErrors[keyof EditCommentErrors];
7043
+ export type EditCommentResponses = {
7187
7044
  /**
7188
- * An authorized MCP session (opaque access-token header) or an unauthorized marker
7045
+ * Returns the updated comment
7189
7046
  */
7190
- 200: ({
7191
- status: 'authorized';
7192
- } & CreateSessionAuthorized) | ({
7193
- status: 'unauthorized';
7194
- } & CreateSessionUnauthorized);
7047
+ 200: {
7048
+ comment: {
7049
+ commentId: string;
7050
+ author: {
7051
+ dazlUserId: string;
7052
+ };
7053
+ content: string;
7054
+ mentions: Array<UserMention>;
7055
+ createdAt: string;
7056
+ updatedAt: string;
7057
+ lastActivityAt: string;
7058
+ isEdited: boolean;
7059
+ replies: Array<{
7060
+ replyId: string;
7061
+ author: {
7062
+ dazlUserId: string;
7063
+ };
7064
+ content: string;
7065
+ mentions: Array<UserMention>;
7066
+ createdAt: string;
7067
+ updatedAt: string;
7068
+ gitInfo?: CommentGitInfo;
7069
+ }>;
7070
+ resolved?: CommentResolved;
7071
+ context?: CommentContext;
7072
+ gitInfo?: CommentGitInfo;
7073
+ };
7074
+ };
7195
7075
  };
7196
- export type CreateSessionResponse = CreateSessionResponses[keyof CreateSessionResponses];
7197
- export type InitiateConnectionData = {
7198
- body: {
7199
- integrationName: IntegrationName;
7200
- /**
7201
- * Where the browser lands after OAuth; built by the caller
7202
- */
7203
- callbackUrl: string;
7076
+ export type EditCommentResponse = EditCommentResponses[keyof EditCommentResponses];
7077
+ export type ListCommentsData = {
7078
+ body?: never;
7079
+ path: {
7080
+ hostType: 'project' | 'workspace';
7081
+ hostId: string;
7204
7082
  };
7205
- path?: never;
7206
7083
  query?: never;
7207
- url: '/mcp/connections';
7084
+ url: '/comments/{hostType}/{hostId}';
7208
7085
  };
7209
- export type InitiateConnectionErrors = {
7086
+ export type ListCommentsErrors = {
7210
7087
  /**
7211
7088
  * Bad request - Invalid parameters or malformed JSON
7212
7089
  */
@@ -7239,28 +7116,51 @@ export type InitiateConnectionErrors = {
7239
7116
  */
7240
7117
  503: ErrorResponse;
7241
7118
  };
7242
- export type InitiateConnectionError = InitiateConnectionErrors[keyof InitiateConnectionErrors];
7243
- export type InitiateConnectionResponses = {
7119
+ export type ListCommentsError = ListCommentsErrors[keyof ListCommentsErrors];
7120
+ export type ListCommentsResponses = {
7244
7121
  /**
7245
- * The OAuth connection request id and the redirect URL to send the user to
7122
+ * Returns the list of comments for the host entity
7246
7123
  */
7247
7124
  200: {
7248
- connectionRequestId: string;
7249
- redirectUrl: string;
7125
+ comments: Array<{
7126
+ commentId: string;
7127
+ author: {
7128
+ dazlUserId: string;
7129
+ };
7130
+ content: string;
7131
+ mentions: Array<UserMention>;
7132
+ createdAt: string;
7133
+ updatedAt: string;
7134
+ lastActivityAt: string;
7135
+ isEdited: boolean;
7136
+ replies: Array<{
7137
+ replyId: string;
7138
+ author: {
7139
+ dazlUserId: string;
7140
+ };
7141
+ content: string;
7142
+ mentions: Array<UserMention>;
7143
+ createdAt: string;
7144
+ updatedAt: string;
7145
+ gitInfo?: CommentGitInfo;
7146
+ }>;
7147
+ resolved?: CommentResolved;
7148
+ context?: CommentContext;
7149
+ gitInfo?: CommentGitInfo;
7150
+ }>;
7250
7151
  };
7251
7152
  };
7252
- export type InitiateConnectionResponse = InitiateConnectionResponses[keyof InitiateConnectionResponses];
7253
- export type FinalizeConnectionData = {
7254
- body: {
7255
- integrationName: IntegrationName;
7256
- };
7153
+ export type ListCommentsResponse = ListCommentsResponses[keyof ListCommentsResponses];
7154
+ export type CreateCommentData = {
7155
+ body: CreateCommentInput;
7257
7156
  path: {
7258
- connectionRequestId: string;
7157
+ hostType: 'project' | 'workspace';
7158
+ hostId: string;
7259
7159
  };
7260
7160
  query?: never;
7261
- url: '/mcp/connections/{connectionRequestId}/finalize';
7161
+ url: '/comments/{hostType}/{hostId}';
7262
7162
  };
7263
- export type FinalizeConnectionErrors = {
7163
+ export type CreateCommentErrors = {
7264
7164
  /**
7265
7165
  * Bad request - Invalid parameters or malformed JSON
7266
7166
  */
@@ -7293,28 +7193,52 @@ export type FinalizeConnectionErrors = {
7293
7193
  */
7294
7194
  503: ErrorResponse;
7295
7195
  };
7296
- export type FinalizeConnectionError = FinalizeConnectionErrors[keyof FinalizeConnectionErrors];
7297
- export type FinalizeConnectionResponses = {
7196
+ export type CreateCommentError = CreateCommentErrors[keyof CreateCommentErrors];
7197
+ export type CreateCommentResponses = {
7298
7198
  /**
7299
- * The persisted connected-account id (ca_...)
7199
+ * Returns the created comment
7300
7200
  */
7301
7201
  200: {
7302
- connectionId: string;
7202
+ comment: {
7203
+ commentId: string;
7204
+ author: {
7205
+ dazlUserId: string;
7206
+ };
7207
+ content: string;
7208
+ mentions: Array<UserMention>;
7209
+ createdAt: string;
7210
+ updatedAt: string;
7211
+ lastActivityAt: string;
7212
+ isEdited: boolean;
7213
+ replies: Array<{
7214
+ replyId: string;
7215
+ author: {
7216
+ dazlUserId: string;
7217
+ };
7218
+ content: string;
7219
+ mentions: Array<UserMention>;
7220
+ createdAt: string;
7221
+ updatedAt: string;
7222
+ gitInfo?: CommentGitInfo;
7223
+ }>;
7224
+ resolved?: CommentResolved;
7225
+ context?: CommentContext;
7226
+ gitInfo?: CommentGitInfo;
7227
+ };
7303
7228
  };
7304
7229
  };
7305
- export type FinalizeConnectionResponse = FinalizeConnectionResponses[keyof FinalizeConnectionResponses];
7306
- export type GetConnectionStatusData = {
7230
+ export type CreateCommentResponse = CreateCommentResponses[keyof CreateCommentResponses];
7231
+ export type ResolveCommentData = {
7307
7232
  body?: never;
7308
- path?: never;
7309
- query?: {
7310
- /**
7311
- * If omitted, returns status for all integrations
7312
- */
7313
- integrationName?: 'confluence' | 'figma' | 'google-docs' | 'google-sheets' | 'google-slides' | 'jira' | 'linear' | 'miro' | 'notion';
7233
+ path: {
7234
+ hostType: 'project' | 'workspace';
7235
+ hostId: string;
7236
+ commentId: string;
7314
7237
  };
7315
- url: '/mcp/connections/status';
7238
+ query?: never;
7239
+ url: '/comments/{hostType}/{hostId}/{commentId}/resolve';
7316
7240
  };
7317
- export type GetConnectionStatusErrors = {
7241
+ export type ResolveCommentErrors = {
7318
7242
  /**
7319
7243
  * Bad request - Invalid parameters or malformed JSON
7320
7244
  */
@@ -7347,12 +7271,298 @@ export type GetConnectionStatusErrors = {
7347
7271
  */
7348
7272
  503: ErrorResponse;
7349
7273
  };
7350
- export type GetConnectionStatusError = GetConnectionStatusErrors[keyof GetConnectionStatusErrors];
7351
- export type GetConnectionStatusResponses = {
7274
+ export type ResolveCommentError = ResolveCommentErrors[keyof ResolveCommentErrors];
7275
+ export type ResolveCommentResponses = {
7352
7276
  /**
7353
- * Active-connection status for the requested integration(s)
7277
+ * Returns the resolved comment
7354
7278
  */
7355
- 200: Array<ConnectionStatus>;
7279
+ 200: {
7280
+ comment: {
7281
+ commentId: string;
7282
+ author: {
7283
+ dazlUserId: string;
7284
+ };
7285
+ content: string;
7286
+ mentions: Array<UserMention>;
7287
+ createdAt: string;
7288
+ updatedAt: string;
7289
+ lastActivityAt: string;
7290
+ isEdited: boolean;
7291
+ replies: Array<{
7292
+ replyId: string;
7293
+ author: {
7294
+ dazlUserId: string;
7295
+ };
7296
+ content: string;
7297
+ mentions: Array<UserMention>;
7298
+ createdAt: string;
7299
+ updatedAt: string;
7300
+ gitInfo?: CommentGitInfo;
7301
+ }>;
7302
+ resolved?: CommentResolved;
7303
+ context?: CommentContext;
7304
+ gitInfo?: CommentGitInfo;
7305
+ };
7306
+ };
7356
7307
  };
7357
- export type GetConnectionStatusResponse = GetConnectionStatusResponses[keyof GetConnectionStatusResponses];
7308
+ export type ResolveCommentResponse = ResolveCommentResponses[keyof ResolveCommentResponses];
7309
+ export type ReopenCommentData = {
7310
+ body?: never;
7311
+ path: {
7312
+ hostType: 'project' | 'workspace';
7313
+ hostId: string;
7314
+ commentId: string;
7315
+ };
7316
+ query?: never;
7317
+ url: '/comments/{hostType}/{hostId}/{commentId}/reopen';
7318
+ };
7319
+ export type ReopenCommentErrors = {
7320
+ /**
7321
+ * Bad request - Invalid parameters or malformed JSON
7322
+ */
7323
+ 400: {
7324
+ message: string;
7325
+ issues?: string;
7326
+ };
7327
+ /**
7328
+ * Unauthorized
7329
+ */
7330
+ 401: ErrorResponse;
7331
+ /**
7332
+ * Forbidden
7333
+ */
7334
+ 403: ErrorResponse;
7335
+ /**
7336
+ * Not Found
7337
+ */
7338
+ 404: ErrorResponse;
7339
+ /**
7340
+ * Conflict
7341
+ */
7342
+ 409: ErrorResponse;
7343
+ /**
7344
+ * Internal server error
7345
+ */
7346
+ 500: ErrorResponse;
7347
+ /**
7348
+ * Service Unavailable
7349
+ */
7350
+ 503: ErrorResponse;
7351
+ };
7352
+ export type ReopenCommentError = ReopenCommentErrors[keyof ReopenCommentErrors];
7353
+ export type ReopenCommentResponses = {
7354
+ /**
7355
+ * Returns the reopened comment
7356
+ */
7357
+ 200: {
7358
+ comment: {
7359
+ commentId: string;
7360
+ author: {
7361
+ dazlUserId: string;
7362
+ };
7363
+ content: string;
7364
+ mentions: Array<UserMention>;
7365
+ createdAt: string;
7366
+ updatedAt: string;
7367
+ lastActivityAt: string;
7368
+ isEdited: boolean;
7369
+ replies: Array<{
7370
+ replyId: string;
7371
+ author: {
7372
+ dazlUserId: string;
7373
+ };
7374
+ content: string;
7375
+ mentions: Array<UserMention>;
7376
+ createdAt: string;
7377
+ updatedAt: string;
7378
+ gitInfo?: CommentGitInfo;
7379
+ }>;
7380
+ resolved?: CommentResolved;
7381
+ context?: CommentContext;
7382
+ gitInfo?: CommentGitInfo;
7383
+ };
7384
+ };
7385
+ };
7386
+ export type ReopenCommentResponse = ReopenCommentResponses[keyof ReopenCommentResponses];
7387
+ export type CreateReplyData = {
7388
+ body: CreateReplyInput;
7389
+ path: {
7390
+ hostType: 'project' | 'workspace';
7391
+ hostId: string;
7392
+ commentId: string;
7393
+ };
7394
+ query?: never;
7395
+ url: '/comments/{hostType}/{hostId}/{commentId}/replies';
7396
+ };
7397
+ export type CreateReplyErrors = {
7398
+ /**
7399
+ * Bad request - Invalid parameters or malformed JSON
7400
+ */
7401
+ 400: {
7402
+ message: string;
7403
+ issues?: string;
7404
+ };
7405
+ /**
7406
+ * Unauthorized
7407
+ */
7408
+ 401: ErrorResponse;
7409
+ /**
7410
+ * Forbidden
7411
+ */
7412
+ 403: ErrorResponse;
7413
+ /**
7414
+ * Not Found
7415
+ */
7416
+ 404: ErrorResponse;
7417
+ /**
7418
+ * Conflict
7419
+ */
7420
+ 409: ErrorResponse;
7421
+ /**
7422
+ * Internal server error
7423
+ */
7424
+ 500: ErrorResponse;
7425
+ /**
7426
+ * Service Unavailable
7427
+ */
7428
+ 503: ErrorResponse;
7429
+ };
7430
+ export type CreateReplyError = CreateReplyErrors[keyof CreateReplyErrors];
7431
+ export type CreateReplyResponses = {
7432
+ /**
7433
+ * Returns the created reply
7434
+ */
7435
+ 200: {
7436
+ reply: {
7437
+ replyId: string;
7438
+ author: {
7439
+ dazlUserId: string;
7440
+ };
7441
+ content: string;
7442
+ mentions: Array<UserMention>;
7443
+ createdAt: string;
7444
+ updatedAt: string;
7445
+ gitInfo?: CommentGitInfo;
7446
+ };
7447
+ };
7448
+ };
7449
+ export type CreateReplyResponse = CreateReplyResponses[keyof CreateReplyResponses];
7450
+ export type DeleteReplyData = {
7451
+ body?: never;
7452
+ path: {
7453
+ hostType: 'project' | 'workspace';
7454
+ hostId: string;
7455
+ commentId: string;
7456
+ replyId: string;
7457
+ };
7458
+ query?: never;
7459
+ url: '/comments/{hostType}/{hostId}/{commentId}/replies/{replyId}';
7460
+ };
7461
+ export type DeleteReplyErrors = {
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
+ export type DeleteReplyError = DeleteReplyErrors[keyof DeleteReplyErrors];
7495
+ export type DeleteReplyResponses = {
7496
+ /**
7497
+ * Acknowledges that the reply was deleted
7498
+ */
7499
+ 200: {
7500
+ success: true;
7501
+ };
7502
+ };
7503
+ export type DeleteReplyResponse = DeleteReplyResponses[keyof DeleteReplyResponses];
7504
+ export type EditReplyData = {
7505
+ body: EditReplyInput;
7506
+ path: {
7507
+ hostType: 'project' | 'workspace';
7508
+ hostId: string;
7509
+ commentId: string;
7510
+ replyId: string;
7511
+ };
7512
+ query?: never;
7513
+ url: '/comments/{hostType}/{hostId}/{commentId}/replies/{replyId}';
7514
+ };
7515
+ export type EditReplyErrors = {
7516
+ /**
7517
+ * Bad request - Invalid parameters or malformed JSON
7518
+ */
7519
+ 400: {
7520
+ message: string;
7521
+ issues?: string;
7522
+ };
7523
+ /**
7524
+ * Unauthorized
7525
+ */
7526
+ 401: ErrorResponse;
7527
+ /**
7528
+ * Forbidden
7529
+ */
7530
+ 403: ErrorResponse;
7531
+ /**
7532
+ * Not Found
7533
+ */
7534
+ 404: ErrorResponse;
7535
+ /**
7536
+ * Conflict
7537
+ */
7538
+ 409: ErrorResponse;
7539
+ /**
7540
+ * Internal server error
7541
+ */
7542
+ 500: ErrorResponse;
7543
+ /**
7544
+ * Service Unavailable
7545
+ */
7546
+ 503: ErrorResponse;
7547
+ };
7548
+ export type EditReplyError = EditReplyErrors[keyof EditReplyErrors];
7549
+ export type EditReplyResponses = {
7550
+ /**
7551
+ * Returns the updated reply
7552
+ */
7553
+ 200: {
7554
+ reply: {
7555
+ replyId: string;
7556
+ author: {
7557
+ dazlUserId: string;
7558
+ };
7559
+ content: string;
7560
+ mentions: Array<UserMention>;
7561
+ createdAt: string;
7562
+ updatedAt: string;
7563
+ gitInfo?: CommentGitInfo;
7564
+ };
7565
+ };
7566
+ };
7567
+ export type EditReplyResponse = EditReplyResponses[keyof EditReplyResponses];
7358
7568
  //# sourceMappingURL=types.gen.d.ts.map