@dazl/api-client 1.0.15 → 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: {
@@ -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>;
6549
- createdAt: string;
6550
- updatedAt: string;
6551
- gitInfo?: CommentGitInfo;
6552
- };
6369
+ values: Array<{
6370
+ id: string;
6371
+ dazlUserId: string;
6372
+ category: string;
6373
+ name: string;
6374
+ strVal: string | null;
6375
+ encryptedValId: string | null;
6376
+ createdAt: string;
6377
+ updatedAt: string;
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,28 +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;
6762
- path?: never;
6763
- query?: {
6764
- /**
6765
- * Whether to include the members of each workspace
6766
- */
6767
- withMembers?: boolean;
6600
+ export type GetAllResponse = GetAllResponses[keyof GetAllResponses];
6601
+ export type OverrideAllData = {
6602
+ body: {
6603
+ settings: {
6604
+ [key: string]: unknown;
6605
+ };
6768
6606
  };
6769
- url: '/workspace/list-my';
6607
+ path?: never;
6608
+ query?: never;
6609
+ url: '/my-user-settings';
6770
6610
  };
6771
- export type GetAllWorkspacesErrors = {
6611
+ export type OverrideAllErrors = {
6772
6612
  /**
6773
6613
  * Bad request - Invalid parameters or malformed JSON
6774
6614
  */
@@ -6801,54 +6641,25 @@ export type GetAllWorkspacesErrors = {
6801
6641
  */
6802
6642
  503: ErrorResponse;
6803
6643
  };
6804
- export type GetAllWorkspacesError = GetAllWorkspacesErrors[keyof GetAllWorkspacesErrors];
6805
- export type GetAllWorkspacesResponses = {
6644
+ export type OverrideAllError = OverrideAllErrors[keyof OverrideAllErrors];
6645
+ export type OverrideAllResponses = {
6806
6646
  /**
6807
- * Returns the list of workspaces for the current user
6647
+ * Settings updated successfully
6808
6648
  */
6809
6649
  200: {
6810
- workspaces: Array<{
6811
- id: string;
6812
- name: string;
6813
- /**
6814
- * The user which created the workspace. Null if the user was deleted.
6815
- */
6816
- dazlUserId: string | null;
6817
- createdAt: string;
6818
- isDefault: boolean;
6819
- owner?: {
6820
- /**
6821
- * Dazl ID for the type = "user"
6822
- */
6823
- id: string;
6824
- email: string;
6825
- name?: string;
6826
- picture?: string;
6827
- role: 'workspace_member' | 'owner';
6828
- } | null;
6829
- members?: Array<{
6830
- /**
6831
- * Dazl ID for the type = "user"
6832
- */
6833
- id: string;
6834
- email: string;
6835
- name?: string;
6836
- picture?: string;
6837
- role: 'workspace_member' | 'owner';
6838
- }>;
6839
- }>;
6650
+ success: boolean;
6840
6651
  };
6841
6652
  };
6842
- export type GetAllWorkspacesResponse = GetAllWorkspacesResponses[keyof GetAllWorkspacesResponses];
6843
- export type GetWorkspaceMembersData = {
6844
- body?: never;
6845
- path: {
6846
- workspaceId: string;
6653
+ export type OverrideAllResponse = OverrideAllResponses[keyof OverrideAllResponses];
6654
+ export type CreateSessionData = {
6655
+ body: {
6656
+ integrationName: IntegrationName;
6847
6657
  };
6658
+ path?: never;
6848
6659
  query?: never;
6849
- url: '/workspace/{workspaceId}/all-members';
6660
+ url: '/mcp/create-session';
6850
6661
  };
6851
- export type GetWorkspaceMembersErrors = {
6662
+ export type CreateSessionErrors = {
6852
6663
  /**
6853
6664
  * Bad request - Invalid parameters or malformed JSON
6854
6665
  */
@@ -6881,47 +6692,31 @@ export type GetWorkspaceMembersErrors = {
6881
6692
  */
6882
6693
  503: ErrorResponse;
6883
6694
  };
6884
- export type GetWorkspaceMembersError = GetWorkspaceMembersErrors[keyof GetWorkspaceMembersErrors];
6885
- export type GetWorkspaceMembersResponses = {
6695
+ export type CreateSessionError = CreateSessionErrors[keyof CreateSessionErrors];
6696
+ export type CreateSessionResponses = {
6886
6697
  /**
6887
- * Returns the list of workspace collaborators: members and owner
6698
+ * An authorized MCP session (opaque access-token header) or an unauthorized marker
6888
6699
  */
6889
- 200: {
6890
- owner: {
6891
- /**
6892
- * Dazl ID for the type = "user"
6893
- */
6894
- id: string;
6895
- email: string;
6896
- name?: string;
6897
- picture?: string;
6898
- role: 'workspace_member' | 'owner';
6899
- } | null;
6900
- members: Array<{
6901
- /**
6902
- * Dazl ID for the type = "user"
6903
- */
6904
- id: string;
6905
- email: string;
6906
- name?: string;
6907
- picture?: string;
6908
- role: 'workspace_member' | 'owner';
6909
- }>;
6910
- };
6700
+ 200: ({
6701
+ status: 'authorized';
6702
+ } & CreateSessionAuthorized) | ({
6703
+ status: 'unauthorized';
6704
+ } & CreateSessionUnauthorized);
6911
6705
  };
6912
- export type GetWorkspaceMembersResponse = GetWorkspaceMembersResponses[keyof GetWorkspaceMembersResponses];
6913
- export type GetMyValuesData = {
6914
- body?: never;
6915
- path?: never;
6916
- query?: {
6706
+ export type CreateSessionResponse = CreateSessionResponses[keyof CreateSessionResponses];
6707
+ export type InitiateConnectionData = {
6708
+ body: {
6709
+ integrationName: IntegrationName;
6917
6710
  /**
6918
- * Filter results to this category
6711
+ * Where the browser lands after OAuth; built by the caller
6919
6712
  */
6920
- categ?: string;
6713
+ callbackUrl: string;
6921
6714
  };
6922
- url: '/my-user-key-value/values';
6715
+ path?: never;
6716
+ query?: never;
6717
+ url: '/mcp/connections';
6923
6718
  };
6924
- export type GetMyValuesErrors = {
6719
+ export type InitiateConnectionErrors = {
6925
6720
  /**
6926
6721
  * Bad request - Invalid parameters or malformed JSON
6927
6722
  */
@@ -6954,39 +6749,28 @@ export type GetMyValuesErrors = {
6954
6749
  */
6955
6750
  503: ErrorResponse;
6956
6751
  };
6957
- export type GetMyValuesError = GetMyValuesErrors[keyof GetMyValuesErrors];
6958
- export type GetMyValuesResponses = {
6752
+ export type InitiateConnectionError = InitiateConnectionErrors[keyof InitiateConnectionErrors];
6753
+ export type InitiateConnectionResponses = {
6959
6754
  /**
6960
- * Returns key values for the current user
6755
+ * The OAuth connection request id and the redirect URL to send the user to
6961
6756
  */
6962
6757
  200: {
6963
- values: Array<{
6964
- id: string;
6965
- dazlUserId: string;
6966
- category: string;
6967
- name: string;
6968
- strVal: string | null;
6969
- encryptedValId: string | null;
6970
- createdAt: string;
6971
- updatedAt: string;
6972
- encryptedValue: string | null;
6973
- }>;
6758
+ connectionRequestId: string;
6759
+ redirectUrl: string;
6974
6760
  };
6975
6761
  };
6976
- export type GetMyValuesResponse = GetMyValuesResponses[keyof GetMyValuesResponses];
6977
- export type SetMyValueData = {
6762
+ export type InitiateConnectionResponse = InitiateConnectionResponses[keyof InitiateConnectionResponses];
6763
+ export type FinalizeConnectionData = {
6978
6764
  body: {
6979
- value: string;
6980
- isSecret?: boolean;
6765
+ integrationName: IntegrationName;
6981
6766
  };
6982
6767
  path: {
6983
- categ: string;
6984
- name: string;
6768
+ connectionRequestId: string;
6985
6769
  };
6986
6770
  query?: never;
6987
- url: '/my-user-key-value/values/{categ}/{name}';
6771
+ url: '/mcp/connections/{connectionRequestId}/finalize';
6988
6772
  };
6989
- export type SetMyValueErrors = {
6773
+ export type FinalizeConnectionErrors = {
6990
6774
  /**
6991
6775
  * Bad request - Invalid parameters or malformed JSON
6992
6776
  */
@@ -7019,25 +6803,28 @@ export type SetMyValueErrors = {
7019
6803
  */
7020
6804
  503: ErrorResponse;
7021
6805
  };
7022
- export type SetMyValueError = SetMyValueErrors[keyof SetMyValueErrors];
7023
- export type SetMyValueResponses = {
6806
+ export type FinalizeConnectionError = FinalizeConnectionErrors[keyof FinalizeConnectionErrors];
6807
+ export type FinalizeConnectionResponses = {
7024
6808
  /**
7025
- * Sets a single key value and returns its id
6809
+ * The persisted connected-account id (ca_...)
7026
6810
  */
7027
6811
  200: {
7028
- id: string;
6812
+ connectionId: string;
7029
6813
  };
7030
6814
  };
7031
- export type SetMyValueResponse = SetMyValueResponses[keyof SetMyValueResponses];
7032
- export type DeleteMyCategValuesData = {
6815
+ export type FinalizeConnectionResponse = FinalizeConnectionResponses[keyof FinalizeConnectionResponses];
6816
+ export type GetConnectionStatusData = {
7033
6817
  body?: never;
7034
- path: {
7035
- categ: string;
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';
7036
6824
  };
7037
- query?: never;
7038
- url: '/my-user-key-value/values/{categ}';
6825
+ url: '/mcp/connections/status';
7039
6826
  };
7040
- export type DeleteMyCategValuesErrors = {
6827
+ export type GetConnectionStatusErrors = {
7041
6828
  /**
7042
6829
  * Bad request - Invalid parameters or malformed JSON
7043
6830
  */
@@ -7070,31 +6857,25 @@ export type DeleteMyCategValuesErrors = {
7070
6857
  */
7071
6858
  503: ErrorResponse;
7072
6859
  };
7073
- export type DeleteMyCategValuesError = DeleteMyCategValuesErrors[keyof DeleteMyCategValuesErrors];
7074
- export type DeleteMyCategValuesResponses = {
6860
+ export type GetConnectionStatusError = GetConnectionStatusErrors[keyof GetConnectionStatusErrors];
6861
+ export type GetConnectionStatusResponses = {
7075
6862
  /**
7076
- * Deletes all values for the category
6863
+ * Active-connection status for the requested integration(s)
7077
6864
  */
7078
- 200: {
7079
- categ: string;
7080
- };
6865
+ 200: Array<ConnectionStatus>;
7081
6866
  };
7082
- export type DeleteMyCategValuesResponse = DeleteMyCategValuesResponses[keyof DeleteMyCategValuesResponses];
7083
- export type ReplaceMyCategValuesData = {
7084
- body: {
7085
- values: Array<{
7086
- name: string;
7087
- value: string;
7088
- isSecret?: boolean;
7089
- }>;
7090
- };
6867
+ export type GetConnectionStatusResponse = GetConnectionStatusResponses[keyof GetConnectionStatusResponses];
6868
+ export type DeleteCommentData = {
6869
+ body?: never;
7091
6870
  path: {
7092
- categ: string;
6871
+ hostType: 'project' | 'workspace';
6872
+ hostId: string;
6873
+ commentId: string;
7093
6874
  };
7094
6875
  query?: never;
7095
- url: '/my-user-key-value/values/{categ}';
6876
+ url: '/comments/{hostType}/{hostId}/{commentId}';
7096
6877
  };
7097
- export type ReplaceMyCategValuesErrors = {
6878
+ export type DeleteCommentErrors = {
7098
6879
  /**
7099
6880
  * Bad request - Invalid parameters or malformed JSON
7100
6881
  */
@@ -7127,27 +6908,27 @@ export type ReplaceMyCategValuesErrors = {
7127
6908
  */
7128
6909
  503: ErrorResponse;
7129
6910
  };
7130
- export type ReplaceMyCategValuesError = ReplaceMyCategValuesErrors[keyof ReplaceMyCategValuesErrors];
7131
- export type ReplaceMyCategValuesResponses = {
6911
+ export type DeleteCommentError = DeleteCommentErrors[keyof DeleteCommentErrors];
6912
+ export type DeleteCommentResponses = {
7132
6913
  /**
7133
- * Replaces all values for the category and returns the upserted rows
6914
+ * Acknowledges that the comment was deleted
7134
6915
  */
7135
6916
  200: {
7136
- values: Array<{
7137
- id: string;
7138
- name: string;
7139
- }>;
7140
- replaced: boolean;
6917
+ success: true;
7141
6918
  };
7142
6919
  };
7143
- export type ReplaceMyCategValuesResponse = ReplaceMyCategValuesResponses[keyof ReplaceMyCategValuesResponses];
7144
- export type GetAllData = {
6920
+ export type DeleteCommentResponse = DeleteCommentResponses[keyof DeleteCommentResponses];
6921
+ export type GetCommentData = {
7145
6922
  body?: never;
7146
- path?: never;
6923
+ path: {
6924
+ hostType: 'project' | 'workspace';
6925
+ hostId: string;
6926
+ commentId: string;
6927
+ };
7147
6928
  query?: never;
7148
- url: '/my-user-settings';
6929
+ url: '/comments/{hostType}/{hostId}/{commentId}';
7149
6930
  };
7150
- export type GetAllErrors = {
6931
+ export type GetCommentErrors = {
7151
6932
  /**
7152
6933
  * Bad request - Invalid parameters or malformed JSON
7153
6934
  */
@@ -7180,29 +6961,52 @@ export type GetAllErrors = {
7180
6961
  */
7181
6962
  503: ErrorResponse;
7182
6963
  };
7183
- export type GetAllError = GetAllErrors[keyof GetAllErrors];
7184
- export type GetAllResponses = {
6964
+ export type GetCommentError = GetCommentErrors[keyof GetCommentErrors];
6965
+ export type GetCommentResponses = {
7185
6966
  /**
7186
- * Returns user settings (empty object if none exist)
6967
+ * Returns comment by id for the host entity
7187
6968
  */
7188
6969
  200: {
7189
- settings: {
7190
- [key: string]: unknown;
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;
7191
6995
  };
7192
6996
  };
7193
6997
  };
7194
- export type GetAllResponse = GetAllResponses[keyof GetAllResponses];
7195
- export type OverrideAllData = {
7196
- body: {
7197
- settings: {
7198
- [key: string]: unknown;
7199
- };
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;
7200
7005
  };
7201
- path?: never;
7202
7006
  query?: never;
7203
- url: '/my-user-settings';
7007
+ url: '/comments/{hostType}/{hostId}/{commentId}';
7204
7008
  };
7205
- export type OverrideAllErrors = {
7009
+ export type EditCommentErrors = {
7206
7010
  /**
7207
7011
  * Bad request - Invalid parameters or malformed JSON
7208
7012
  */
@@ -7235,25 +7039,51 @@ export type OverrideAllErrors = {
7235
7039
  */
7236
7040
  503: ErrorResponse;
7237
7041
  };
7238
- export type OverrideAllError = OverrideAllErrors[keyof OverrideAllErrors];
7239
- export type OverrideAllResponses = {
7042
+ export type EditCommentError = EditCommentErrors[keyof EditCommentErrors];
7043
+ export type EditCommentResponses = {
7240
7044
  /**
7241
- * Settings updated successfully
7045
+ * Returns the updated comment
7242
7046
  */
7243
7047
  200: {
7244
- success: boolean;
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
+ };
7245
7074
  };
7246
7075
  };
7247
- export type OverrideAllResponse = OverrideAllResponses[keyof OverrideAllResponses];
7248
- export type CreateSessionData = {
7249
- body: {
7250
- integrationName: IntegrationName;
7076
+ export type EditCommentResponse = EditCommentResponses[keyof EditCommentResponses];
7077
+ export type ListCommentsData = {
7078
+ body?: never;
7079
+ path: {
7080
+ hostType: 'project' | 'workspace';
7081
+ hostId: string;
7251
7082
  };
7252
- path?: never;
7253
7083
  query?: never;
7254
- url: '/mcp/create-session';
7084
+ url: '/comments/{hostType}/{hostId}';
7255
7085
  };
7256
- export type CreateSessionErrors = {
7086
+ export type ListCommentsErrors = {
7257
7087
  /**
7258
7088
  * Bad request - Invalid parameters or malformed JSON
7259
7089
  */
@@ -7286,31 +7116,51 @@ export type CreateSessionErrors = {
7286
7116
  */
7287
7117
  503: ErrorResponse;
7288
7118
  };
7289
- export type CreateSessionError = CreateSessionErrors[keyof CreateSessionErrors];
7290
- export type CreateSessionResponses = {
7119
+ export type ListCommentsError = ListCommentsErrors[keyof ListCommentsErrors];
7120
+ export type ListCommentsResponses = {
7291
7121
  /**
7292
- * An authorized MCP session (opaque access-token header) or an unauthorized marker
7122
+ * Returns the list of comments for the host entity
7293
7123
  */
7294
- 200: ({
7295
- status: 'authorized';
7296
- } & CreateSessionAuthorized) | ({
7297
- status: 'unauthorized';
7298
- } & CreateSessionUnauthorized);
7124
+ 200: {
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
+ }>;
7151
+ };
7299
7152
  };
7300
- export type CreateSessionResponse = CreateSessionResponses[keyof CreateSessionResponses];
7301
- export type InitiateConnectionData = {
7302
- body: {
7303
- integrationName: IntegrationName;
7304
- /**
7305
- * Where the browser lands after OAuth; built by the caller
7306
- */
7307
- callbackUrl: string;
7153
+ export type ListCommentsResponse = ListCommentsResponses[keyof ListCommentsResponses];
7154
+ export type CreateCommentData = {
7155
+ body: CreateCommentInput;
7156
+ path: {
7157
+ hostType: 'project' | 'workspace';
7158
+ hostId: string;
7308
7159
  };
7309
- path?: never;
7310
7160
  query?: never;
7311
- url: '/mcp/connections';
7161
+ url: '/comments/{hostType}/{hostId}';
7312
7162
  };
7313
- export type InitiateConnectionErrors = {
7163
+ export type CreateCommentErrors = {
7314
7164
  /**
7315
7165
  * Bad request - Invalid parameters or malformed JSON
7316
7166
  */
@@ -7343,28 +7193,130 @@ export type InitiateConnectionErrors = {
7343
7193
  */
7344
7194
  503: ErrorResponse;
7345
7195
  };
7346
- export type InitiateConnectionError = InitiateConnectionErrors[keyof InitiateConnectionErrors];
7347
- export type InitiateConnectionResponses = {
7196
+ export type CreateCommentError = CreateCommentErrors[keyof CreateCommentErrors];
7197
+ export type CreateCommentResponses = {
7348
7198
  /**
7349
- * The OAuth connection request id and the redirect URL to send the user to
7199
+ * Returns the created comment
7350
7200
  */
7351
7201
  200: {
7352
- connectionRequestId: string;
7353
- redirectUrl: 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
+ };
7354
7228
  };
7355
7229
  };
7356
- export type InitiateConnectionResponse = InitiateConnectionResponses[keyof InitiateConnectionResponses];
7357
- export type FinalizeConnectionData = {
7358
- body: {
7359
- integrationName: IntegrationName;
7230
+ export type CreateCommentResponse = CreateCommentResponses[keyof CreateCommentResponses];
7231
+ export type ResolveCommentData = {
7232
+ body?: never;
7233
+ path: {
7234
+ hostType: 'project' | 'workspace';
7235
+ hostId: string;
7236
+ commentId: string;
7237
+ };
7238
+ query?: never;
7239
+ url: '/comments/{hostType}/{hostId}/{commentId}/resolve';
7240
+ };
7241
+ export type ResolveCommentErrors = {
7242
+ /**
7243
+ * Bad request - Invalid parameters or malformed JSON
7244
+ */
7245
+ 400: {
7246
+ message: string;
7247
+ issues?: string;
7360
7248
  };
7249
+ /**
7250
+ * Unauthorized
7251
+ */
7252
+ 401: ErrorResponse;
7253
+ /**
7254
+ * Forbidden
7255
+ */
7256
+ 403: ErrorResponse;
7257
+ /**
7258
+ * Not Found
7259
+ */
7260
+ 404: ErrorResponse;
7261
+ /**
7262
+ * Conflict
7263
+ */
7264
+ 409: ErrorResponse;
7265
+ /**
7266
+ * Internal server error
7267
+ */
7268
+ 500: ErrorResponse;
7269
+ /**
7270
+ * Service Unavailable
7271
+ */
7272
+ 503: ErrorResponse;
7273
+ };
7274
+ export type ResolveCommentError = ResolveCommentErrors[keyof ResolveCommentErrors];
7275
+ export type ResolveCommentResponses = {
7276
+ /**
7277
+ * Returns the resolved comment
7278
+ */
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
+ };
7307
+ };
7308
+ export type ResolveCommentResponse = ResolveCommentResponses[keyof ResolveCommentResponses];
7309
+ export type ReopenCommentData = {
7310
+ body?: never;
7361
7311
  path: {
7362
- connectionRequestId: string;
7312
+ hostType: 'project' | 'workspace';
7313
+ hostId: string;
7314
+ commentId: string;
7363
7315
  };
7364
7316
  query?: never;
7365
- url: '/mcp/connections/{connectionRequestId}/finalize';
7317
+ url: '/comments/{hostType}/{hostId}/{commentId}/reopen';
7366
7318
  };
7367
- export type FinalizeConnectionErrors = {
7319
+ export type ReopenCommentErrors = {
7368
7320
  /**
7369
7321
  * Bad request - Invalid parameters or malformed JSON
7370
7322
  */
@@ -7397,28 +7349,116 @@ export type FinalizeConnectionErrors = {
7397
7349
  */
7398
7350
  503: ErrorResponse;
7399
7351
  };
7400
- export type FinalizeConnectionError = FinalizeConnectionErrors[keyof FinalizeConnectionErrors];
7401
- export type FinalizeConnectionResponses = {
7352
+ export type ReopenCommentError = ReopenCommentErrors[keyof ReopenCommentErrors];
7353
+ export type ReopenCommentResponses = {
7402
7354
  /**
7403
- * The persisted connected-account id (ca_...)
7355
+ * Returns the reopened comment
7404
7356
  */
7405
7357
  200: {
7406
- connectionId: string;
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
+ };
7407
7384
  };
7408
7385
  };
7409
- export type FinalizeConnectionResponse = FinalizeConnectionResponses[keyof FinalizeConnectionResponses];
7410
- export type GetConnectionStatusData = {
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 = {
7411
7451
  body?: never;
7412
- path?: never;
7413
- query?: {
7414
- /**
7415
- * If omitted, returns status for all integrations
7416
- */
7417
- integrationName?: 'confluence' | 'figma' | 'google-docs' | 'google-sheets' | 'google-slides' | 'jira' | 'linear' | 'miro' | 'notion';
7452
+ path: {
7453
+ hostType: 'project' | 'workspace';
7454
+ hostId: string;
7455
+ commentId: string;
7456
+ replyId: string;
7418
7457
  };
7419
- url: '/mcp/connections/status';
7458
+ query?: never;
7459
+ url: '/comments/{hostType}/{hostId}/{commentId}/replies/{replyId}';
7420
7460
  };
7421
- export type GetConnectionStatusErrors = {
7461
+ export type DeleteReplyErrors = {
7422
7462
  /**
7423
7463
  * Bad request - Invalid parameters or malformed JSON
7424
7464
  */
@@ -7451,12 +7491,78 @@ export type GetConnectionStatusErrors = {
7451
7491
  */
7452
7492
  503: ErrorResponse;
7453
7493
  };
7454
- export type GetConnectionStatusError = GetConnectionStatusErrors[keyof GetConnectionStatusErrors];
7455
- export type GetConnectionStatusResponses = {
7494
+ export type DeleteReplyError = DeleteReplyErrors[keyof DeleteReplyErrors];
7495
+ export type DeleteReplyResponses = {
7456
7496
  /**
7457
- * Active-connection status for the requested integration(s)
7497
+ * Acknowledges that the reply was deleted
7458
7498
  */
7459
- 200: Array<ConnectionStatus>;
7499
+ 200: {
7500
+ success: true;
7501
+ };
7460
7502
  };
7461
- export type GetConnectionStatusResponse = GetConnectionStatusResponses[keyof GetConnectionStatusResponses];
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];
7462
7568
  //# sourceMappingURL=types.gen.d.ts.map