@dazl/api-client 1.0.15 → 1.0.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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;
@@ -2494,6 +2494,10 @@ export type GetUserProjectsData = {
2494
2494
  ownerDazlId: string;
2495
2495
  };
2496
2496
  query?: {
2497
+ /**
2498
+ * Filter projects by workspace ID
2499
+ */
2500
+ workspaceId?: string;
2497
2501
  /**
2498
2502
  * Include deployed projects info in the response
2499
2503
  */
@@ -2620,58 +2624,6 @@ export type InviteProjectMemberResponses = {
2620
2624
  };
2621
2625
  };
2622
2626
  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
2627
  export type GetProjectCollaboratorsData = {
2676
2628
  body?: never;
2677
2629
  path: {
@@ -5853,17 +5805,15 @@ export type GetUserActivePromotionsResponses = {
5853
5805
  };
5854
5806
  };
5855
5807
  export type GetUserActivePromotionsResponse = GetUserActivePromotionsResponses[keyof GetUserActivePromotionsResponses];
5856
- export type DeleteCommentData = {
5808
+ export type GetFeatureTogglesData = {
5857
5809
  body?: never;
5858
- path: {
5859
- hostType: 'project' | 'workspace';
5860
- hostId: string;
5861
- commentId: string;
5810
+ path?: never;
5811
+ query?: {
5812
+ scope?: 'RemoteAndEditor' | 'SiteAndEditor';
5862
5813
  };
5863
- query?: never;
5864
- url: '/comments/{hostType}/{hostId}/{commentId}';
5814
+ url: '/env-config';
5865
5815
  };
5866
- export type DeleteCommentErrors = {
5816
+ export type GetFeatureTogglesErrors = {
5867
5817
  /**
5868
5818
  * Bad request - Invalid parameters or malformed JSON
5869
5819
  */
@@ -5896,27 +5846,23 @@ export type DeleteCommentErrors = {
5896
5846
  */
5897
5847
  503: ErrorResponse;
5898
5848
  };
5899
- export type DeleteCommentError = DeleteCommentErrors[keyof DeleteCommentErrors];
5900
- export type DeleteCommentResponses = {
5849
+ export type GetFeatureTogglesError = GetFeatureTogglesErrors[keyof GetFeatureTogglesErrors];
5850
+ export type GetFeatureTogglesResponses = {
5901
5851
  /**
5902
- * Acknowledges that the comment was deleted
5852
+ * Returns feature toggles, optionally filtered by scope
5903
5853
  */
5904
5854
  200: {
5905
- success: true;
5855
+ toggles: Array<FeatureToggle>;
5906
5856
  };
5907
5857
  };
5908
- export type DeleteCommentResponse = DeleteCommentResponses[keyof DeleteCommentResponses];
5909
- export type GetCommentData = {
5858
+ export type GetFeatureTogglesResponse = GetFeatureTogglesResponses[keyof GetFeatureTogglesResponses];
5859
+ export type GetMyUserData = {
5910
5860
  body?: never;
5911
- path: {
5912
- hostType: 'project' | 'workspace';
5913
- hostId: string;
5914
- commentId: string;
5915
- };
5861
+ path?: never;
5916
5862
  query?: never;
5917
- url: '/comments/{hostType}/{hostId}/{commentId}';
5863
+ url: '/my-user/me';
5918
5864
  };
5919
- export type GetCommentErrors = {
5865
+ export type GetMyUserErrors = {
5920
5866
  /**
5921
5867
  * Bad request - Invalid parameters or malformed JSON
5922
5868
  */
@@ -5949,52 +5895,27 @@ export type GetCommentErrors = {
5949
5895
  */
5950
5896
  503: ErrorResponse;
5951
5897
  };
5952
- export type GetCommentError = GetCommentErrors[keyof GetCommentErrors];
5953
- export type GetCommentResponses = {
5898
+ export type GetMyUserError = GetMyUserErrors[keyof GetMyUserErrors];
5899
+ export type GetMyUserResponses = {
5954
5900
  /**
5955
- * Returns comment by id for the host entity
5901
+ * Returns the requested user
5956
5902
  */
5957
5903
  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
- };
5904
+ user: UserRaw;
5984
5905
  };
5985
5906
  };
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;
5907
+ export type GetMyUserResponse = GetMyUserResponses[keyof GetMyUserResponses];
5908
+ export type UpdateMyUserData = {
5909
+ body: {
5910
+ picture?: string | null;
5911
+ name?: string;
5912
+ jobRole?: string | null;
5993
5913
  };
5914
+ path?: never;
5994
5915
  query?: never;
5995
- url: '/comments/{hostType}/{hostId}/{commentId}';
5916
+ url: '/my-user/me';
5996
5917
  };
5997
- export type EditCommentErrors = {
5918
+ export type UpdateMyUserErrors = {
5998
5919
  /**
5999
5920
  * Bad request - Invalid parameters or malformed JSON
6000
5921
  */
@@ -6027,51 +5948,25 @@ export type EditCommentErrors = {
6027
5948
  */
6028
5949
  503: ErrorResponse;
6029
5950
  };
6030
- export type EditCommentError = EditCommentErrors[keyof EditCommentErrors];
6031
- export type EditCommentResponses = {
5951
+ export type UpdateMyUserError = UpdateMyUserErrors[keyof UpdateMyUserErrors];
5952
+ export type UpdateMyUserResponses = {
6032
5953
  /**
6033
- * Returns the updated comment
5954
+ * Updates user information
6034
5955
  */
6035
5956
  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
- };
5957
+ user: UserRaw;
6062
5958
  };
6063
5959
  };
6064
- export type EditCommentResponse = EditCommentResponses[keyof EditCommentResponses];
6065
- export type ListCommentsData = {
6066
- body?: never;
6067
- path: {
6068
- hostType: 'project' | 'workspace';
6069
- hostId: string;
5960
+ export type UpdateMyUserResponse = UpdateMyUserResponses[keyof UpdateMyUserResponses];
5961
+ export type CreateWorkspaceData = {
5962
+ body: {
5963
+ name: string;
6070
5964
  };
5965
+ path?: never;
6071
5966
  query?: never;
6072
- url: '/comments/{hostType}/{hostId}';
5967
+ url: '/workspace/create';
6073
5968
  };
6074
- export type ListCommentsErrors = {
5969
+ export type CreateWorkspaceErrors = {
6075
5970
  /**
6076
5971
  * Bad request - Invalid parameters or malformed JSON
6077
5972
  */
@@ -6104,51 +5999,25 @@ export type ListCommentsErrors = {
6104
5999
  */
6105
6000
  503: ErrorResponse;
6106
6001
  };
6107
- export type ListCommentsError = ListCommentsErrors[keyof ListCommentsErrors];
6108
- export type ListCommentsResponses = {
6002
+ export type CreateWorkspaceError = CreateWorkspaceErrors[keyof CreateWorkspaceErrors];
6003
+ export type CreateWorkspaceResponses = {
6109
6004
  /**
6110
- * Returns the list of comments for the host entity
6005
+ * Returns the created workspace
6111
6006
  */
6112
6007
  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
- }>;
6008
+ workspace: Workspace;
6139
6009
  };
6140
6010
  };
6141
- export type ListCommentsResponse = ListCommentsResponses[keyof ListCommentsResponses];
6142
- export type CreateCommentData = {
6143
- body: CreateCommentInput;
6011
+ export type CreateWorkspaceResponse = CreateWorkspaceResponses[keyof CreateWorkspaceResponses];
6012
+ export type GetWorkspaceData = {
6013
+ body?: never;
6144
6014
  path: {
6145
- hostType: 'project' | 'workspace';
6146
- hostId: string;
6015
+ workspaceId: string;
6147
6016
  };
6148
6017
  query?: never;
6149
- url: '/comments/{hostType}/{hostId}';
6018
+ url: '/workspace/{workspaceId}';
6150
6019
  };
6151
- export type CreateCommentErrors = {
6020
+ export type GetWorkspaceErrors = {
6152
6021
  /**
6153
6022
  * Bad request - Invalid parameters or malformed JSON
6154
6023
  */
@@ -6181,52 +6050,28 @@ export type CreateCommentErrors = {
6181
6050
  */
6182
6051
  503: ErrorResponse;
6183
6052
  };
6184
- export type CreateCommentError = CreateCommentErrors[keyof CreateCommentErrors];
6185
- export type CreateCommentResponses = {
6053
+ export type GetWorkspaceError = GetWorkspaceErrors[keyof GetWorkspaceErrors];
6054
+ export type GetWorkspaceResponses = {
6186
6055
  /**
6187
- * Returns the created comment
6056
+ * Returns the workspace with the given ID
6188
6057
  */
6189
6058
  200: {
6190
- comment: {
6191
- commentId: string;
6192
- author: {
6193
- dazlUserId: string;
6194
- };
6195
- content: string;
6196
- mentions: Array<UserMention>;
6197
- 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;
6211
- }>;
6212
- resolved?: CommentResolved;
6213
- context?: CommentContext;
6214
- gitInfo?: CommentGitInfo;
6215
- };
6059
+ workspace: Workspace;
6216
6060
  };
6217
6061
  };
6218
- export type CreateCommentResponse = CreateCommentResponses[keyof CreateCommentResponses];
6219
- export type ResolveCommentData = {
6062
+ export type GetWorkspaceResponse = GetWorkspaceResponses[keyof GetWorkspaceResponses];
6063
+ export type GetAllWorkspacesData = {
6220
6064
  body?: never;
6221
- path: {
6222
- hostType: 'project' | 'workspace';
6223
- hostId: string;
6224
- commentId: string;
6065
+ path?: never;
6066
+ query?: {
6067
+ /**
6068
+ * Whether to include the members of each workspace
6069
+ */
6070
+ withMembers?: boolean;
6225
6071
  };
6226
- query?: never;
6227
- url: '/comments/{hostType}/{hostId}/{commentId}/resolve';
6072
+ url: '/workspace/list-my';
6228
6073
  };
6229
- export type ResolveCommentErrors = {
6074
+ export type GetAllWorkspacesErrors = {
6230
6075
  /**
6231
6076
  * Bad request - Invalid parameters or malformed JSON
6232
6077
  */
@@ -6259,52 +6104,57 @@ export type ResolveCommentErrors = {
6259
6104
  */
6260
6105
  503: ErrorResponse;
6261
6106
  };
6262
- export type ResolveCommentError = ResolveCommentErrors[keyof ResolveCommentErrors];
6263
- export type ResolveCommentResponses = {
6107
+ export type GetAllWorkspacesError = GetAllWorkspacesErrors[keyof GetAllWorkspacesErrors];
6108
+ export type GetAllWorkspacesResponses = {
6264
6109
  /**
6265
- * Returns the resolved comment
6110
+ * Returns the list of workspaces that the user is a member of
6266
6111
  */
6267
6112
  200: {
6268
- comment: {
6269
- commentId: string;
6270
- author: {
6271
- dazlUserId: string;
6272
- };
6273
- content: string;
6274
- mentions: Array<UserMention>;
6113
+ workspaces: Array<{
6114
+ id: string;
6115
+ name: string;
6116
+ /**
6117
+ * The user which created the workspace. Null if the user was deleted.
6118
+ */
6119
+ dazlUserId: string | null;
6275
6120
  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;
6121
+ isDefault: boolean;
6122
+ owner?: {
6123
+ /**
6124
+ * Dazl ID for the type = "user"
6125
+ */
6126
+ id: string;
6127
+ email: string;
6128
+ name?: string;
6129
+ picture?: string;
6130
+ role: 'workspace_member' | 'owner';
6131
+ } | null;
6132
+ members?: Array<{
6133
+ /**
6134
+ * Dazl ID for the type = "user"
6135
+ */
6136
+ id: string;
6137
+ email: string;
6138
+ name?: string;
6139
+ picture?: string;
6140
+ role: 'workspace_member' | 'owner';
6289
6141
  }>;
6290
- resolved?: CommentResolved;
6291
- context?: CommentContext;
6292
- gitInfo?: CommentGitInfo;
6293
- };
6142
+ }>;
6294
6143
  };
6295
6144
  };
6296
- export type ResolveCommentResponse = ResolveCommentResponses[keyof ResolveCommentResponses];
6297
- export type ReopenCommentData = {
6298
- body?: never;
6145
+ export type GetAllWorkspacesResponse = GetAllWorkspacesResponses[keyof GetAllWorkspacesResponses];
6146
+ export type InviteWorkspaceMemberData = {
6147
+ body: {
6148
+ email: string;
6149
+ role: 'workspace_member';
6150
+ };
6299
6151
  path: {
6300
- hostType: 'project' | 'workspace';
6301
- hostId: string;
6302
- commentId: string;
6152
+ workspaceId: string;
6303
6153
  };
6304
6154
  query?: never;
6305
- url: '/comments/{hostType}/{hostId}/{commentId}/reopen';
6155
+ url: '/workspace/{workspaceId}/members/invite';
6306
6156
  };
6307
- export type ReopenCommentErrors = {
6157
+ export type InviteWorkspaceMemberErrors = {
6308
6158
  /**
6309
6159
  * Bad request - Invalid parameters or malformed JSON
6310
6160
  */
@@ -6337,52 +6187,25 @@ export type ReopenCommentErrors = {
6337
6187
  */
6338
6188
  503: ErrorResponse;
6339
6189
  };
6340
- export type ReopenCommentError = ReopenCommentErrors[keyof ReopenCommentErrors];
6341
- export type ReopenCommentResponses = {
6190
+ export type InviteWorkspaceMemberError = InviteWorkspaceMemberErrors[keyof InviteWorkspaceMemberErrors];
6191
+ export type InviteWorkspaceMemberResponses = {
6342
6192
  /**
6343
- * Returns the reopened comment
6193
+ * Returns the invitation token, or null if user was auto-added to workspace
6344
6194
  */
6345
6195
  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
- };
6196
+ token: string | null;
6372
6197
  };
6373
6198
  };
6374
- export type ReopenCommentResponse = ReopenCommentResponses[keyof ReopenCommentResponses];
6375
- export type CreateReplyData = {
6376
- body: CreateReplyInput;
6199
+ export type InviteWorkspaceMemberResponse = InviteWorkspaceMemberResponses[keyof InviteWorkspaceMemberResponses];
6200
+ export type GetWorkspaceMembersData = {
6201
+ body?: never;
6377
6202
  path: {
6378
- hostType: 'project' | 'workspace';
6379
- hostId: string;
6380
- commentId: string;
6203
+ workspaceId: string;
6381
6204
  };
6382
6205
  query?: never;
6383
- url: '/comments/{hostType}/{hostId}/{commentId}/replies';
6206
+ url: '/workspace/{workspaceId}/all-members';
6384
6207
  };
6385
- export type CreateReplyErrors = {
6208
+ export type GetWorkspaceMembersErrors = {
6386
6209
  /**
6387
6210
  * Bad request - Invalid parameters or malformed JSON
6388
6211
  */
@@ -6415,38 +6238,45 @@ export type CreateReplyErrors = {
6415
6238
  */
6416
6239
  503: ErrorResponse;
6417
6240
  };
6418
- export type CreateReplyError = CreateReplyErrors[keyof CreateReplyErrors];
6419
- export type CreateReplyResponses = {
6241
+ export type GetWorkspaceMembersError = GetWorkspaceMembersErrors[keyof GetWorkspaceMembersErrors];
6242
+ export type GetWorkspaceMembersResponses = {
6420
6243
  /**
6421
- * Returns the created reply
6244
+ * Returns the list of workspace collaborators: members and owner
6422
6245
  */
6423
6246
  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
- };
6247
+ owner: {
6248
+ /**
6249
+ * Dazl ID for the type = "user"
6250
+ */
6251
+ id: string;
6252
+ email: string;
6253
+ name?: string;
6254
+ picture?: string;
6255
+ role: 'workspace_member' | 'owner';
6256
+ } | null;
6257
+ members: Array<{
6258
+ /**
6259
+ * Dazl ID for the type = "user"
6260
+ */
6261
+ id: string;
6262
+ email: string;
6263
+ name?: string;
6264
+ picture?: string;
6265
+ role: 'workspace_member' | 'owner';
6266
+ }>;
6435
6267
  };
6436
6268
  };
6437
- export type CreateReplyResponse = CreateReplyResponses[keyof CreateReplyResponses];
6438
- export type DeleteReplyData = {
6269
+ export type GetWorkspaceMembersResponse = GetWorkspaceMembersResponses[keyof GetWorkspaceMembersResponses];
6270
+ export type DeleteWorkspaceMemberData = {
6439
6271
  body?: never;
6440
6272
  path: {
6441
- hostType: 'project' | 'workspace';
6442
- hostId: string;
6443
- commentId: string;
6444
- replyId: string;
6273
+ workspaceId: string;
6274
+ memberId: string;
6445
6275
  };
6446
6276
  query?: never;
6447
- url: '/comments/{hostType}/{hostId}/{commentId}/replies/{replyId}';
6277
+ url: '/workspace/{workspaceId}/members/{memberId}';
6448
6278
  };
6449
- export type DeleteReplyErrors = {
6279
+ export type DeleteWorkspaceMemberErrors = {
6450
6280
  /**
6451
6281
  * Bad request - Invalid parameters or malformed JSON
6452
6282
  */
@@ -6479,28 +6309,26 @@ export type DeleteReplyErrors = {
6479
6309
  */
6480
6310
  503: ErrorResponse;
6481
6311
  };
6482
- export type DeleteReplyError = DeleteReplyErrors[keyof DeleteReplyErrors];
6483
- export type DeleteReplyResponses = {
6312
+ export type DeleteWorkspaceMemberError = DeleteWorkspaceMemberErrors[keyof DeleteWorkspaceMemberErrors];
6313
+ export type DeleteWorkspaceMemberResponses = {
6484
6314
  /**
6485
- * Acknowledges that the reply was deleted
6315
+ * Acknowledges that the workspace member was deleted
6486
6316
  */
6487
6317
  200: {
6488
- success: true;
6318
+ status: 'deleted';
6489
6319
  };
6490
6320
  };
6491
- export type DeleteReplyResponse = DeleteReplyResponses[keyof DeleteReplyResponses];
6492
- export type EditReplyData = {
6493
- body: EditReplyInput;
6321
+ export type DeleteWorkspaceMemberResponse = DeleteWorkspaceMemberResponses[keyof DeleteWorkspaceMemberResponses];
6322
+ export type DeleteWorkspaceInvitationData = {
6323
+ body?: never;
6494
6324
  path: {
6495
- hostType: 'project' | 'workspace';
6496
- hostId: string;
6497
- commentId: string;
6498
- replyId: string;
6325
+ workspaceId: string;
6326
+ invitationId: string;
6499
6327
  };
6500
6328
  query?: never;
6501
- url: '/comments/{hostType}/{hostId}/{commentId}/replies/{replyId}';
6329
+ url: '/workspace/{workspaceId}/invitations/{invitationId}';
6502
6330
  };
6503
- export type EditReplyErrors = {
6331
+ export type DeleteWorkspaceInvitationErrors = {
6504
6332
  /**
6505
6333
  * Bad request - Invalid parameters or malformed JSON
6506
6334
  */
@@ -6533,35 +6361,28 @@ export type EditReplyErrors = {
6533
6361
  */
6534
6362
  503: ErrorResponse;
6535
6363
  };
6536
- export type EditReplyError = EditReplyErrors[keyof EditReplyErrors];
6537
- export type EditReplyResponses = {
6364
+ export type DeleteWorkspaceInvitationError = DeleteWorkspaceInvitationErrors[keyof DeleteWorkspaceInvitationErrors];
6365
+ export type DeleteWorkspaceInvitationResponses = {
6538
6366
  /**
6539
- * Returns the updated reply
6367
+ * Acknowledges that the workspace invitation was deleted
6540
6368
  */
6541
6369
  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
- };
6370
+ status: 'deleted';
6553
6371
  };
6554
6372
  };
6555
- export type EditReplyResponse = EditReplyResponses[keyof EditReplyResponses];
6556
- export type GetFeatureTogglesData = {
6373
+ export type DeleteWorkspaceInvitationResponse = DeleteWorkspaceInvitationResponses[keyof DeleteWorkspaceInvitationResponses];
6374
+ export type GetMyValuesData = {
6557
6375
  body?: never;
6558
6376
  path?: never;
6559
6377
  query?: {
6560
- scope?: 'RemoteAndEditor' | 'SiteAndEditor';
6378
+ /**
6379
+ * Filter results to this category
6380
+ */
6381
+ categ?: string;
6561
6382
  };
6562
- url: '/env-config';
6383
+ url: '/my-user-key-value/values';
6563
6384
  };
6564
- export type GetFeatureTogglesErrors = {
6385
+ export type GetMyValuesErrors = {
6565
6386
  /**
6566
6387
  * Bad request - Invalid parameters or malformed JSON
6567
6388
  */
@@ -6594,23 +6415,39 @@ export type GetFeatureTogglesErrors = {
6594
6415
  */
6595
6416
  503: ErrorResponse;
6596
6417
  };
6597
- export type GetFeatureTogglesError = GetFeatureTogglesErrors[keyof GetFeatureTogglesErrors];
6598
- export type GetFeatureTogglesResponses = {
6418
+ export type GetMyValuesError = GetMyValuesErrors[keyof GetMyValuesErrors];
6419
+ export type GetMyValuesResponses = {
6599
6420
  /**
6600
- * Returns feature toggles, optionally filtered by scope
6421
+ * Returns key values for the current user
6601
6422
  */
6602
6423
  200: {
6603
- toggles: Array<FeatureToggle>;
6424
+ values: Array<{
6425
+ id: string;
6426
+ dazlUserId: string;
6427
+ category: string;
6428
+ name: string;
6429
+ strVal: string | null;
6430
+ encryptedValId: string | null;
6431
+ createdAt: string;
6432
+ updatedAt: string;
6433
+ encryptedValue: string | null;
6434
+ }>;
6604
6435
  };
6605
6436
  };
6606
- export type GetFeatureTogglesResponse = GetFeatureTogglesResponses[keyof GetFeatureTogglesResponses];
6607
- export type GetMyUserData = {
6608
- body?: never;
6609
- path?: never;
6437
+ export type GetMyValuesResponse = GetMyValuesResponses[keyof GetMyValuesResponses];
6438
+ export type SetMyValueData = {
6439
+ body: {
6440
+ value: string;
6441
+ isSecret?: boolean;
6442
+ };
6443
+ path: {
6444
+ categ: string;
6445
+ name: string;
6446
+ };
6610
6447
  query?: never;
6611
- url: '/my-user/me';
6448
+ url: '/my-user-key-value/values/{categ}/{name}';
6612
6449
  };
6613
- export type GetMyUserErrors = {
6450
+ export type SetMyValueErrors = {
6614
6451
  /**
6615
6452
  * Bad request - Invalid parameters or malformed JSON
6616
6453
  */
@@ -6643,27 +6480,25 @@ export type GetMyUserErrors = {
6643
6480
  */
6644
6481
  503: ErrorResponse;
6645
6482
  };
6646
- export type GetMyUserError = GetMyUserErrors[keyof GetMyUserErrors];
6647
- export type GetMyUserResponses = {
6483
+ export type SetMyValueError = SetMyValueErrors[keyof SetMyValueErrors];
6484
+ export type SetMyValueResponses = {
6648
6485
  /**
6649
- * Returns the requested user
6486
+ * Sets a single key value and returns its id
6650
6487
  */
6651
6488
  200: {
6652
- user: UserRaw;
6489
+ id: string;
6653
6490
  };
6654
6491
  };
6655
- export type GetMyUserResponse = GetMyUserResponses[keyof GetMyUserResponses];
6656
- export type UpdateMyUserData = {
6657
- body: {
6658
- picture?: string | null;
6659
- name?: string;
6660
- jobRole?: string | null;
6492
+ export type SetMyValueResponse = SetMyValueResponses[keyof SetMyValueResponses];
6493
+ export type DeleteMyCategValuesData = {
6494
+ body?: never;
6495
+ path: {
6496
+ categ: string;
6661
6497
  };
6662
- path?: never;
6663
6498
  query?: never;
6664
- url: '/my-user/me';
6499
+ url: '/my-user-key-value/values/{categ}';
6665
6500
  };
6666
- export type UpdateMyUserErrors = {
6501
+ export type DeleteMyCategValuesErrors = {
6667
6502
  /**
6668
6503
  * Bad request - Invalid parameters or malformed JSON
6669
6504
  */
@@ -6696,25 +6531,31 @@ export type UpdateMyUserErrors = {
6696
6531
  */
6697
6532
  503: ErrorResponse;
6698
6533
  };
6699
- export type UpdateMyUserError = UpdateMyUserErrors[keyof UpdateMyUserErrors];
6700
- export type UpdateMyUserResponses = {
6534
+ export type DeleteMyCategValuesError = DeleteMyCategValuesErrors[keyof DeleteMyCategValuesErrors];
6535
+ export type DeleteMyCategValuesResponses = {
6701
6536
  /**
6702
- * Updates user information
6537
+ * Deletes all values for the category
6703
6538
  */
6704
6539
  200: {
6705
- user: UserRaw;
6540
+ categ: string;
6706
6541
  };
6707
6542
  };
6708
- export type UpdateMyUserResponse = UpdateMyUserResponses[keyof UpdateMyUserResponses];
6709
- export type CreateWorkspaceData = {
6543
+ export type DeleteMyCategValuesResponse = DeleteMyCategValuesResponses[keyof DeleteMyCategValuesResponses];
6544
+ export type ReplaceMyCategValuesData = {
6710
6545
  body: {
6711
- name: string;
6546
+ values: Array<{
6547
+ name: string;
6548
+ value: string;
6549
+ isSecret?: boolean;
6550
+ }>;
6551
+ };
6552
+ path: {
6553
+ categ: string;
6712
6554
  };
6713
- path?: never;
6714
6555
  query?: never;
6715
- url: '/workspace/create';
6556
+ url: '/my-user-key-value/values/{categ}';
6716
6557
  };
6717
- export type CreateWorkspaceErrors = {
6558
+ export type ReplaceMyCategValuesErrors = {
6718
6559
  /**
6719
6560
  * Bad request - Invalid parameters or malformed JSON
6720
6561
  */
@@ -6747,28 +6588,27 @@ export type CreateWorkspaceErrors = {
6747
6588
  */
6748
6589
  503: ErrorResponse;
6749
6590
  };
6750
- export type CreateWorkspaceError = CreateWorkspaceErrors[keyof CreateWorkspaceErrors];
6751
- export type CreateWorkspaceResponses = {
6591
+ export type ReplaceMyCategValuesError = ReplaceMyCategValuesErrors[keyof ReplaceMyCategValuesErrors];
6592
+ export type ReplaceMyCategValuesResponses = {
6752
6593
  /**
6753
- * Returns the created workspace
6594
+ * Replaces all values for the category and returns the upserted rows
6754
6595
  */
6755
6596
  200: {
6756
- workspace: Workspace;
6597
+ values: Array<{
6598
+ id: string;
6599
+ name: string;
6600
+ }>;
6601
+ replaced: boolean;
6757
6602
  };
6758
6603
  };
6759
- export type CreateWorkspaceResponse = CreateWorkspaceResponses[keyof CreateWorkspaceResponses];
6760
- export type GetAllWorkspacesData = {
6604
+ export type ReplaceMyCategValuesResponse = ReplaceMyCategValuesResponses[keyof ReplaceMyCategValuesResponses];
6605
+ export type GetAllData = {
6761
6606
  body?: never;
6762
6607
  path?: never;
6763
- query?: {
6764
- /**
6765
- * Whether to include the members of each workspace
6766
- */
6767
- withMembers?: boolean;
6768
- };
6769
- url: '/workspace/list-my';
6608
+ query?: never;
6609
+ url: '/my-user-settings';
6770
6610
  };
6771
- export type GetAllWorkspacesErrors = {
6611
+ export type GetAllErrors = {
6772
6612
  /**
6773
6613
  * Bad request - Invalid parameters or malformed JSON
6774
6614
  */
@@ -6801,54 +6641,29 @@ 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 GetAllError = GetAllErrors[keyof GetAllErrors];
6645
+ export type GetAllResponses = {
6806
6646
  /**
6807
- * Returns the list of workspaces for the current user
6647
+ * Returns user settings (empty object if none exist)
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
+ settings: {
6651
+ [key: string]: unknown;
6652
+ };
6840
6653
  };
6841
6654
  };
6842
- export type GetAllWorkspacesResponse = GetAllWorkspacesResponses[keyof GetAllWorkspacesResponses];
6843
- export type GetWorkspaceMembersData = {
6844
- body?: never;
6845
- path: {
6846
- workspaceId: string;
6655
+ export type GetAllResponse = GetAllResponses[keyof GetAllResponses];
6656
+ export type OverrideAllData = {
6657
+ body: {
6658
+ settings: {
6659
+ [key: string]: unknown;
6660
+ };
6847
6661
  };
6662
+ path?: never;
6848
6663
  query?: never;
6849
- url: '/workspace/{workspaceId}/all-members';
6664
+ url: '/my-user-settings';
6850
6665
  };
6851
- export type GetWorkspaceMembersErrors = {
6666
+ export type OverrideAllErrors = {
6852
6667
  /**
6853
6668
  * Bad request - Invalid parameters or malformed JSON
6854
6669
  */
@@ -6881,47 +6696,25 @@ export type GetWorkspaceMembersErrors = {
6881
6696
  */
6882
6697
  503: ErrorResponse;
6883
6698
  };
6884
- export type GetWorkspaceMembersError = GetWorkspaceMembersErrors[keyof GetWorkspaceMembersErrors];
6885
- export type GetWorkspaceMembersResponses = {
6699
+ export type OverrideAllError = OverrideAllErrors[keyof OverrideAllErrors];
6700
+ export type OverrideAllResponses = {
6886
6701
  /**
6887
- * Returns the list of workspace collaborators: members and owner
6702
+ * Settings updated successfully
6888
6703
  */
6889
6704
  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
- }>;
6705
+ success: boolean;
6910
6706
  };
6911
6707
  };
6912
- export type GetWorkspaceMembersResponse = GetWorkspaceMembersResponses[keyof GetWorkspaceMembersResponses];
6913
- export type GetMyValuesData = {
6914
- body?: never;
6915
- path?: never;
6916
- query?: {
6917
- /**
6918
- * Filter results to this category
6919
- */
6920
- categ?: string;
6708
+ export type OverrideAllResponse = OverrideAllResponses[keyof OverrideAllResponses];
6709
+ export type CreateSessionData = {
6710
+ body: {
6711
+ integrationName: IntegrationName;
6921
6712
  };
6922
- url: '/my-user-key-value/values';
6713
+ path?: never;
6714
+ query?: never;
6715
+ url: '/mcp/create-session';
6923
6716
  };
6924
- export type GetMyValuesErrors = {
6717
+ export type CreateSessionErrors = {
6925
6718
  /**
6926
6719
  * Bad request - Invalid parameters or malformed JSON
6927
6720
  */
@@ -6954,39 +6747,31 @@ export type GetMyValuesErrors = {
6954
6747
  */
6955
6748
  503: ErrorResponse;
6956
6749
  };
6957
- export type GetMyValuesError = GetMyValuesErrors[keyof GetMyValuesErrors];
6958
- export type GetMyValuesResponses = {
6750
+ export type CreateSessionError = CreateSessionErrors[keyof CreateSessionErrors];
6751
+ export type CreateSessionResponses = {
6959
6752
  /**
6960
- * Returns key values for the current user
6753
+ * An authorized MCP session (opaque access-token header) or an unauthorized marker
6961
6754
  */
6962
- 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
- }>;
6974
- };
6755
+ 200: ({
6756
+ status: 'authorized';
6757
+ } & CreateSessionAuthorized) | ({
6758
+ status: 'unauthorized';
6759
+ } & CreateSessionUnauthorized);
6975
6760
  };
6976
- export type GetMyValuesResponse = GetMyValuesResponses[keyof GetMyValuesResponses];
6977
- export type SetMyValueData = {
6761
+ export type CreateSessionResponse = CreateSessionResponses[keyof CreateSessionResponses];
6762
+ export type InitiateConnectionData = {
6978
6763
  body: {
6979
- value: string;
6980
- isSecret?: boolean;
6981
- };
6982
- path: {
6983
- categ: string;
6984
- name: string;
6764
+ integrationName: IntegrationName;
6765
+ /**
6766
+ * Where the browser lands after OAuth; built by the caller
6767
+ */
6768
+ callbackUrl: string;
6985
6769
  };
6770
+ path?: never;
6986
6771
  query?: never;
6987
- url: '/my-user-key-value/values/{categ}/{name}';
6772
+ url: '/mcp/connections';
6988
6773
  };
6989
- export type SetMyValueErrors = {
6774
+ export type InitiateConnectionErrors = {
6990
6775
  /**
6991
6776
  * Bad request - Invalid parameters or malformed JSON
6992
6777
  */
@@ -7019,25 +6804,28 @@ export type SetMyValueErrors = {
7019
6804
  */
7020
6805
  503: ErrorResponse;
7021
6806
  };
7022
- export type SetMyValueError = SetMyValueErrors[keyof SetMyValueErrors];
7023
- export type SetMyValueResponses = {
6807
+ export type InitiateConnectionError = InitiateConnectionErrors[keyof InitiateConnectionErrors];
6808
+ export type InitiateConnectionResponses = {
7024
6809
  /**
7025
- * Sets a single key value and returns its id
6810
+ * The OAuth connection request id and the redirect URL to send the user to
7026
6811
  */
7027
6812
  200: {
7028
- id: string;
6813
+ connectionRequestId: string;
6814
+ redirectUrl: string;
7029
6815
  };
7030
6816
  };
7031
- export type SetMyValueResponse = SetMyValueResponses[keyof SetMyValueResponses];
7032
- export type DeleteMyCategValuesData = {
7033
- body?: never;
6817
+ export type InitiateConnectionResponse = InitiateConnectionResponses[keyof InitiateConnectionResponses];
6818
+ export type FinalizeConnectionData = {
6819
+ body: {
6820
+ integrationName: IntegrationName;
6821
+ };
7034
6822
  path: {
7035
- categ: string;
6823
+ connectionRequestId: string;
7036
6824
  };
7037
6825
  query?: never;
7038
- url: '/my-user-key-value/values/{categ}';
6826
+ url: '/mcp/connections/{connectionRequestId}/finalize';
7039
6827
  };
7040
- export type DeleteMyCategValuesErrors = {
6828
+ export type FinalizeConnectionErrors = {
7041
6829
  /**
7042
6830
  * Bad request - Invalid parameters or malformed JSON
7043
6831
  */
@@ -7070,31 +6858,28 @@ export type DeleteMyCategValuesErrors = {
7070
6858
  */
7071
6859
  503: ErrorResponse;
7072
6860
  };
7073
- export type DeleteMyCategValuesError = DeleteMyCategValuesErrors[keyof DeleteMyCategValuesErrors];
7074
- export type DeleteMyCategValuesResponses = {
6861
+ export type FinalizeConnectionError = FinalizeConnectionErrors[keyof FinalizeConnectionErrors];
6862
+ export type FinalizeConnectionResponses = {
7075
6863
  /**
7076
- * Deletes all values for the category
6864
+ * The persisted connected-account id (ca_...)
7077
6865
  */
7078
6866
  200: {
7079
- categ: string;
6867
+ connectionId: string;
7080
6868
  };
7081
6869
  };
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
- };
7091
- path: {
7092
- categ: string;
6870
+ export type FinalizeConnectionResponse = FinalizeConnectionResponses[keyof FinalizeConnectionResponses];
6871
+ export type GetConnectionStatusData = {
6872
+ body?: never;
6873
+ path?: never;
6874
+ query?: {
6875
+ /**
6876
+ * If omitted, returns status for all integrations
6877
+ */
6878
+ integrationName?: 'confluence' | 'figma' | 'google-docs' | 'google-sheets' | 'google-slides' | 'jira' | 'linear' | 'miro' | 'notion';
7093
6879
  };
7094
- query?: never;
7095
- url: '/my-user-key-value/values/{categ}';
6880
+ url: '/mcp/connections/status';
7096
6881
  };
7097
- export type ReplaceMyCategValuesErrors = {
6882
+ export type GetConnectionStatusErrors = {
7098
6883
  /**
7099
6884
  * Bad request - Invalid parameters or malformed JSON
7100
6885
  */
@@ -7127,27 +6912,25 @@ export type ReplaceMyCategValuesErrors = {
7127
6912
  */
7128
6913
  503: ErrorResponse;
7129
6914
  };
7130
- export type ReplaceMyCategValuesError = ReplaceMyCategValuesErrors[keyof ReplaceMyCategValuesErrors];
7131
- export type ReplaceMyCategValuesResponses = {
6915
+ export type GetConnectionStatusError = GetConnectionStatusErrors[keyof GetConnectionStatusErrors];
6916
+ export type GetConnectionStatusResponses = {
7132
6917
  /**
7133
- * Replaces all values for the category and returns the upserted rows
6918
+ * Active-connection status for the requested integration(s)
7134
6919
  */
7135
- 200: {
7136
- values: Array<{
7137
- id: string;
7138
- name: string;
7139
- }>;
7140
- replaced: boolean;
7141
- };
6920
+ 200: Array<ConnectionStatus>;
7142
6921
  };
7143
- export type ReplaceMyCategValuesResponse = ReplaceMyCategValuesResponses[keyof ReplaceMyCategValuesResponses];
7144
- export type GetAllData = {
6922
+ export type GetConnectionStatusResponse = GetConnectionStatusResponses[keyof GetConnectionStatusResponses];
6923
+ export type DeleteCommentData = {
7145
6924
  body?: never;
7146
- path?: never;
6925
+ path: {
6926
+ hostType: 'project' | 'workspace';
6927
+ hostId: string;
6928
+ commentId: string;
6929
+ };
7147
6930
  query?: never;
7148
- url: '/my-user-settings';
6931
+ url: '/comments/{hostType}/{hostId}/{commentId}';
7149
6932
  };
7150
- export type GetAllErrors = {
6933
+ export type DeleteCommentErrors = {
7151
6934
  /**
7152
6935
  * Bad request - Invalid parameters or malformed JSON
7153
6936
  */
@@ -7180,29 +6963,27 @@ export type GetAllErrors = {
7180
6963
  */
7181
6964
  503: ErrorResponse;
7182
6965
  };
7183
- export type GetAllError = GetAllErrors[keyof GetAllErrors];
7184
- export type GetAllResponses = {
6966
+ export type DeleteCommentError = DeleteCommentErrors[keyof DeleteCommentErrors];
6967
+ export type DeleteCommentResponses = {
7185
6968
  /**
7186
- * Returns user settings (empty object if none exist)
6969
+ * Acknowledges that the comment was deleted
7187
6970
  */
7188
6971
  200: {
7189
- settings: {
7190
- [key: string]: unknown;
7191
- };
6972
+ success: true;
7192
6973
  };
7193
6974
  };
7194
- export type GetAllResponse = GetAllResponses[keyof GetAllResponses];
7195
- export type OverrideAllData = {
7196
- body: {
7197
- settings: {
7198
- [key: string]: unknown;
7199
- };
6975
+ export type DeleteCommentResponse = DeleteCommentResponses[keyof DeleteCommentResponses];
6976
+ export type GetCommentData = {
6977
+ body?: never;
6978
+ path: {
6979
+ hostType: 'project' | 'workspace';
6980
+ hostId: string;
6981
+ commentId: string;
7200
6982
  };
7201
- path?: never;
7202
6983
  query?: never;
7203
- url: '/my-user-settings';
6984
+ url: '/comments/{hostType}/{hostId}/{commentId}';
7204
6985
  };
7205
- export type OverrideAllErrors = {
6986
+ export type GetCommentErrors = {
7206
6987
  /**
7207
6988
  * Bad request - Invalid parameters or malformed JSON
7208
6989
  */
@@ -7235,25 +7016,52 @@ export type OverrideAllErrors = {
7235
7016
  */
7236
7017
  503: ErrorResponse;
7237
7018
  };
7238
- export type OverrideAllError = OverrideAllErrors[keyof OverrideAllErrors];
7239
- export type OverrideAllResponses = {
7019
+ export type GetCommentError = GetCommentErrors[keyof GetCommentErrors];
7020
+ export type GetCommentResponses = {
7240
7021
  /**
7241
- * Settings updated successfully
7022
+ * Returns comment by id for the host entity
7242
7023
  */
7243
7024
  200: {
7244
- success: boolean;
7025
+ comment: {
7026
+ commentId: string;
7027
+ author: {
7028
+ dazlUserId: string;
7029
+ };
7030
+ content: string;
7031
+ mentions: Array<UserMention>;
7032
+ createdAt: string;
7033
+ updatedAt: string;
7034
+ lastActivityAt: string;
7035
+ isEdited: boolean;
7036
+ replies: Array<{
7037
+ replyId: string;
7038
+ author: {
7039
+ dazlUserId: string;
7040
+ };
7041
+ content: string;
7042
+ mentions: Array<UserMention>;
7043
+ createdAt: string;
7044
+ updatedAt: string;
7045
+ gitInfo?: CommentGitInfo;
7046
+ }>;
7047
+ resolved?: CommentResolved;
7048
+ context?: CommentContext;
7049
+ gitInfo?: CommentGitInfo;
7050
+ };
7245
7051
  };
7246
7052
  };
7247
- export type OverrideAllResponse = OverrideAllResponses[keyof OverrideAllResponses];
7248
- export type CreateSessionData = {
7249
- body: {
7250
- integrationName: IntegrationName;
7053
+ export type GetCommentResponse = GetCommentResponses[keyof GetCommentResponses];
7054
+ export type EditCommentData = {
7055
+ body: EditCommentInput;
7056
+ path: {
7057
+ hostType: 'project' | 'workspace';
7058
+ hostId: string;
7059
+ commentId: string;
7251
7060
  };
7252
- path?: never;
7253
7061
  query?: never;
7254
- url: '/mcp/create-session';
7062
+ url: '/comments/{hostType}/{hostId}/{commentId}';
7255
7063
  };
7256
- export type CreateSessionErrors = {
7064
+ export type EditCommentErrors = {
7257
7065
  /**
7258
7066
  * Bad request - Invalid parameters or malformed JSON
7259
7067
  */
@@ -7286,31 +7094,51 @@ export type CreateSessionErrors = {
7286
7094
  */
7287
7095
  503: ErrorResponse;
7288
7096
  };
7289
- export type CreateSessionError = CreateSessionErrors[keyof CreateSessionErrors];
7290
- export type CreateSessionResponses = {
7097
+ export type EditCommentError = EditCommentErrors[keyof EditCommentErrors];
7098
+ export type EditCommentResponses = {
7291
7099
  /**
7292
- * An authorized MCP session (opaque access-token header) or an unauthorized marker
7100
+ * Returns the updated comment
7293
7101
  */
7294
- 200: ({
7295
- status: 'authorized';
7296
- } & CreateSessionAuthorized) | ({
7297
- status: 'unauthorized';
7298
- } & CreateSessionUnauthorized);
7102
+ 200: {
7103
+ comment: {
7104
+ commentId: string;
7105
+ author: {
7106
+ dazlUserId: string;
7107
+ };
7108
+ content: string;
7109
+ mentions: Array<UserMention>;
7110
+ createdAt: string;
7111
+ updatedAt: string;
7112
+ lastActivityAt: string;
7113
+ isEdited: boolean;
7114
+ replies: Array<{
7115
+ replyId: string;
7116
+ author: {
7117
+ dazlUserId: string;
7118
+ };
7119
+ content: string;
7120
+ mentions: Array<UserMention>;
7121
+ createdAt: string;
7122
+ updatedAt: string;
7123
+ gitInfo?: CommentGitInfo;
7124
+ }>;
7125
+ resolved?: CommentResolved;
7126
+ context?: CommentContext;
7127
+ gitInfo?: CommentGitInfo;
7128
+ };
7129
+ };
7299
7130
  };
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;
7131
+ export type EditCommentResponse = EditCommentResponses[keyof EditCommentResponses];
7132
+ export type ListCommentsData = {
7133
+ body?: never;
7134
+ path: {
7135
+ hostType: 'project' | 'workspace';
7136
+ hostId: string;
7308
7137
  };
7309
- path?: never;
7310
7138
  query?: never;
7311
- url: '/mcp/connections';
7139
+ url: '/comments/{hostType}/{hostId}';
7312
7140
  };
7313
- export type InitiateConnectionErrors = {
7141
+ export type ListCommentsErrors = {
7314
7142
  /**
7315
7143
  * Bad request - Invalid parameters or malformed JSON
7316
7144
  */
@@ -7343,38 +7171,61 @@ export type InitiateConnectionErrors = {
7343
7171
  */
7344
7172
  503: ErrorResponse;
7345
7173
  };
7346
- export type InitiateConnectionError = InitiateConnectionErrors[keyof InitiateConnectionErrors];
7347
- export type InitiateConnectionResponses = {
7174
+ export type ListCommentsError = ListCommentsErrors[keyof ListCommentsErrors];
7175
+ export type ListCommentsResponses = {
7348
7176
  /**
7349
- * The OAuth connection request id and the redirect URL to send the user to
7177
+ * Returns the list of comments for the host entity
7350
7178
  */
7351
7179
  200: {
7352
- connectionRequestId: string;
7353
- redirectUrl: string;
7354
- };
7355
- };
7356
- export type InitiateConnectionResponse = InitiateConnectionResponses[keyof InitiateConnectionResponses];
7357
- export type FinalizeConnectionData = {
7358
- body: {
7359
- integrationName: IntegrationName;
7360
- };
7361
- path: {
7362
- connectionRequestId: string;
7363
- };
7364
- query?: never;
7365
- url: '/mcp/connections/{connectionRequestId}/finalize';
7366
- };
7367
- export type FinalizeConnectionErrors = {
7368
- /**
7369
- * Bad request - Invalid parameters or malformed JSON
7370
- */
7371
- 400: {
7372
- message: string;
7373
- issues?: string;
7374
- };
7375
- /**
7376
- * Unauthorized
7377
- */
7180
+ comments: Array<{
7181
+ commentId: string;
7182
+ author: {
7183
+ dazlUserId: string;
7184
+ };
7185
+ content: string;
7186
+ mentions: Array<UserMention>;
7187
+ createdAt: string;
7188
+ updatedAt: string;
7189
+ lastActivityAt: string;
7190
+ isEdited: boolean;
7191
+ replies: Array<{
7192
+ replyId: string;
7193
+ author: {
7194
+ dazlUserId: string;
7195
+ };
7196
+ content: string;
7197
+ mentions: Array<UserMention>;
7198
+ createdAt: string;
7199
+ updatedAt: string;
7200
+ gitInfo?: CommentGitInfo;
7201
+ }>;
7202
+ resolved?: CommentResolved;
7203
+ context?: CommentContext;
7204
+ gitInfo?: CommentGitInfo;
7205
+ }>;
7206
+ };
7207
+ };
7208
+ export type ListCommentsResponse = ListCommentsResponses[keyof ListCommentsResponses];
7209
+ export type CreateCommentData = {
7210
+ body: CreateCommentInput;
7211
+ path: {
7212
+ hostType: 'project' | 'workspace';
7213
+ hostId: string;
7214
+ };
7215
+ query?: never;
7216
+ url: '/comments/{hostType}/{hostId}';
7217
+ };
7218
+ export type CreateCommentErrors = {
7219
+ /**
7220
+ * Bad request - Invalid parameters or malformed JSON
7221
+ */
7222
+ 400: {
7223
+ message: string;
7224
+ issues?: string;
7225
+ };
7226
+ /**
7227
+ * Unauthorized
7228
+ */
7378
7229
  401: ErrorResponse;
7379
7230
  /**
7380
7231
  * Forbidden
@@ -7397,28 +7248,52 @@ export type FinalizeConnectionErrors = {
7397
7248
  */
7398
7249
  503: ErrorResponse;
7399
7250
  };
7400
- export type FinalizeConnectionError = FinalizeConnectionErrors[keyof FinalizeConnectionErrors];
7401
- export type FinalizeConnectionResponses = {
7251
+ export type CreateCommentError = CreateCommentErrors[keyof CreateCommentErrors];
7252
+ export type CreateCommentResponses = {
7402
7253
  /**
7403
- * The persisted connected-account id (ca_...)
7254
+ * Returns the created comment
7404
7255
  */
7405
7256
  200: {
7406
- connectionId: string;
7257
+ comment: {
7258
+ commentId: string;
7259
+ author: {
7260
+ dazlUserId: string;
7261
+ };
7262
+ content: string;
7263
+ mentions: Array<UserMention>;
7264
+ createdAt: string;
7265
+ updatedAt: string;
7266
+ lastActivityAt: string;
7267
+ isEdited: boolean;
7268
+ replies: Array<{
7269
+ replyId: string;
7270
+ author: {
7271
+ dazlUserId: string;
7272
+ };
7273
+ content: string;
7274
+ mentions: Array<UserMention>;
7275
+ createdAt: string;
7276
+ updatedAt: string;
7277
+ gitInfo?: CommentGitInfo;
7278
+ }>;
7279
+ resolved?: CommentResolved;
7280
+ context?: CommentContext;
7281
+ gitInfo?: CommentGitInfo;
7282
+ };
7407
7283
  };
7408
7284
  };
7409
- export type FinalizeConnectionResponse = FinalizeConnectionResponses[keyof FinalizeConnectionResponses];
7410
- export type GetConnectionStatusData = {
7285
+ export type CreateCommentResponse = CreateCommentResponses[keyof CreateCommentResponses];
7286
+ export type ResolveCommentData = {
7411
7287
  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';
7288
+ path: {
7289
+ hostType: 'project' | 'workspace';
7290
+ hostId: string;
7291
+ commentId: string;
7418
7292
  };
7419
- url: '/mcp/connections/status';
7293
+ query?: never;
7294
+ url: '/comments/{hostType}/{hostId}/{commentId}/resolve';
7420
7295
  };
7421
- export type GetConnectionStatusErrors = {
7296
+ export type ResolveCommentErrors = {
7422
7297
  /**
7423
7298
  * Bad request - Invalid parameters or malformed JSON
7424
7299
  */
@@ -7451,12 +7326,298 @@ export type GetConnectionStatusErrors = {
7451
7326
  */
7452
7327
  503: ErrorResponse;
7453
7328
  };
7454
- export type GetConnectionStatusError = GetConnectionStatusErrors[keyof GetConnectionStatusErrors];
7455
- export type GetConnectionStatusResponses = {
7329
+ export type ResolveCommentError = ResolveCommentErrors[keyof ResolveCommentErrors];
7330
+ export type ResolveCommentResponses = {
7456
7331
  /**
7457
- * Active-connection status for the requested integration(s)
7332
+ * Returns the resolved comment
7458
7333
  */
7459
- 200: Array<ConnectionStatus>;
7334
+ 200: {
7335
+ comment: {
7336
+ commentId: string;
7337
+ author: {
7338
+ dazlUserId: string;
7339
+ };
7340
+ content: string;
7341
+ mentions: Array<UserMention>;
7342
+ createdAt: string;
7343
+ updatedAt: string;
7344
+ lastActivityAt: string;
7345
+ isEdited: boolean;
7346
+ replies: Array<{
7347
+ replyId: string;
7348
+ author: {
7349
+ dazlUserId: string;
7350
+ };
7351
+ content: string;
7352
+ mentions: Array<UserMention>;
7353
+ createdAt: string;
7354
+ updatedAt: string;
7355
+ gitInfo?: CommentGitInfo;
7356
+ }>;
7357
+ resolved?: CommentResolved;
7358
+ context?: CommentContext;
7359
+ gitInfo?: CommentGitInfo;
7360
+ };
7361
+ };
7460
7362
  };
7461
- export type GetConnectionStatusResponse = GetConnectionStatusResponses[keyof GetConnectionStatusResponses];
7363
+ export type ResolveCommentResponse = ResolveCommentResponses[keyof ResolveCommentResponses];
7364
+ export type ReopenCommentData = {
7365
+ body?: never;
7366
+ path: {
7367
+ hostType: 'project' | 'workspace';
7368
+ hostId: string;
7369
+ commentId: string;
7370
+ };
7371
+ query?: never;
7372
+ url: '/comments/{hostType}/{hostId}/{commentId}/reopen';
7373
+ };
7374
+ export type ReopenCommentErrors = {
7375
+ /**
7376
+ * Bad request - Invalid parameters or malformed JSON
7377
+ */
7378
+ 400: {
7379
+ message: string;
7380
+ issues?: string;
7381
+ };
7382
+ /**
7383
+ * Unauthorized
7384
+ */
7385
+ 401: ErrorResponse;
7386
+ /**
7387
+ * Forbidden
7388
+ */
7389
+ 403: ErrorResponse;
7390
+ /**
7391
+ * Not Found
7392
+ */
7393
+ 404: ErrorResponse;
7394
+ /**
7395
+ * Conflict
7396
+ */
7397
+ 409: ErrorResponse;
7398
+ /**
7399
+ * Internal server error
7400
+ */
7401
+ 500: ErrorResponse;
7402
+ /**
7403
+ * Service Unavailable
7404
+ */
7405
+ 503: ErrorResponse;
7406
+ };
7407
+ export type ReopenCommentError = ReopenCommentErrors[keyof ReopenCommentErrors];
7408
+ export type ReopenCommentResponses = {
7409
+ /**
7410
+ * Returns the reopened comment
7411
+ */
7412
+ 200: {
7413
+ comment: {
7414
+ commentId: string;
7415
+ author: {
7416
+ dazlUserId: string;
7417
+ };
7418
+ content: string;
7419
+ mentions: Array<UserMention>;
7420
+ createdAt: string;
7421
+ updatedAt: string;
7422
+ lastActivityAt: string;
7423
+ isEdited: boolean;
7424
+ replies: Array<{
7425
+ replyId: string;
7426
+ author: {
7427
+ dazlUserId: string;
7428
+ };
7429
+ content: string;
7430
+ mentions: Array<UserMention>;
7431
+ createdAt: string;
7432
+ updatedAt: string;
7433
+ gitInfo?: CommentGitInfo;
7434
+ }>;
7435
+ resolved?: CommentResolved;
7436
+ context?: CommentContext;
7437
+ gitInfo?: CommentGitInfo;
7438
+ };
7439
+ };
7440
+ };
7441
+ export type ReopenCommentResponse = ReopenCommentResponses[keyof ReopenCommentResponses];
7442
+ export type CreateReplyData = {
7443
+ body: CreateReplyInput;
7444
+ path: {
7445
+ hostType: 'project' | 'workspace';
7446
+ hostId: string;
7447
+ commentId: string;
7448
+ };
7449
+ query?: never;
7450
+ url: '/comments/{hostType}/{hostId}/{commentId}/replies';
7451
+ };
7452
+ export type CreateReplyErrors = {
7453
+ /**
7454
+ * Bad request - Invalid parameters or malformed JSON
7455
+ */
7456
+ 400: {
7457
+ message: string;
7458
+ issues?: string;
7459
+ };
7460
+ /**
7461
+ * Unauthorized
7462
+ */
7463
+ 401: ErrorResponse;
7464
+ /**
7465
+ * Forbidden
7466
+ */
7467
+ 403: ErrorResponse;
7468
+ /**
7469
+ * Not Found
7470
+ */
7471
+ 404: ErrorResponse;
7472
+ /**
7473
+ * Conflict
7474
+ */
7475
+ 409: ErrorResponse;
7476
+ /**
7477
+ * Internal server error
7478
+ */
7479
+ 500: ErrorResponse;
7480
+ /**
7481
+ * Service Unavailable
7482
+ */
7483
+ 503: ErrorResponse;
7484
+ };
7485
+ export type CreateReplyError = CreateReplyErrors[keyof CreateReplyErrors];
7486
+ export type CreateReplyResponses = {
7487
+ /**
7488
+ * Returns the created reply
7489
+ */
7490
+ 200: {
7491
+ reply: {
7492
+ replyId: string;
7493
+ author: {
7494
+ dazlUserId: string;
7495
+ };
7496
+ content: string;
7497
+ mentions: Array<UserMention>;
7498
+ createdAt: string;
7499
+ updatedAt: string;
7500
+ gitInfo?: CommentGitInfo;
7501
+ };
7502
+ };
7503
+ };
7504
+ export type CreateReplyResponse = CreateReplyResponses[keyof CreateReplyResponses];
7505
+ export type DeleteReplyData = {
7506
+ body?: never;
7507
+ path: {
7508
+ hostType: 'project' | 'workspace';
7509
+ hostId: string;
7510
+ commentId: string;
7511
+ replyId: string;
7512
+ };
7513
+ query?: never;
7514
+ url: '/comments/{hostType}/{hostId}/{commentId}/replies/{replyId}';
7515
+ };
7516
+ export type DeleteReplyErrors = {
7517
+ /**
7518
+ * Bad request - Invalid parameters or malformed JSON
7519
+ */
7520
+ 400: {
7521
+ message: string;
7522
+ issues?: string;
7523
+ };
7524
+ /**
7525
+ * Unauthorized
7526
+ */
7527
+ 401: ErrorResponse;
7528
+ /**
7529
+ * Forbidden
7530
+ */
7531
+ 403: ErrorResponse;
7532
+ /**
7533
+ * Not Found
7534
+ */
7535
+ 404: ErrorResponse;
7536
+ /**
7537
+ * Conflict
7538
+ */
7539
+ 409: ErrorResponse;
7540
+ /**
7541
+ * Internal server error
7542
+ */
7543
+ 500: ErrorResponse;
7544
+ /**
7545
+ * Service Unavailable
7546
+ */
7547
+ 503: ErrorResponse;
7548
+ };
7549
+ export type DeleteReplyError = DeleteReplyErrors[keyof DeleteReplyErrors];
7550
+ export type DeleteReplyResponses = {
7551
+ /**
7552
+ * Acknowledges that the reply was deleted
7553
+ */
7554
+ 200: {
7555
+ success: true;
7556
+ };
7557
+ };
7558
+ export type DeleteReplyResponse = DeleteReplyResponses[keyof DeleteReplyResponses];
7559
+ export type EditReplyData = {
7560
+ body: EditReplyInput;
7561
+ path: {
7562
+ hostType: 'project' | 'workspace';
7563
+ hostId: string;
7564
+ commentId: string;
7565
+ replyId: string;
7566
+ };
7567
+ query?: never;
7568
+ url: '/comments/{hostType}/{hostId}/{commentId}/replies/{replyId}';
7569
+ };
7570
+ export type EditReplyErrors = {
7571
+ /**
7572
+ * Bad request - Invalid parameters or malformed JSON
7573
+ */
7574
+ 400: {
7575
+ message: string;
7576
+ issues?: string;
7577
+ };
7578
+ /**
7579
+ * Unauthorized
7580
+ */
7581
+ 401: ErrorResponse;
7582
+ /**
7583
+ * Forbidden
7584
+ */
7585
+ 403: ErrorResponse;
7586
+ /**
7587
+ * Not Found
7588
+ */
7589
+ 404: ErrorResponse;
7590
+ /**
7591
+ * Conflict
7592
+ */
7593
+ 409: ErrorResponse;
7594
+ /**
7595
+ * Internal server error
7596
+ */
7597
+ 500: ErrorResponse;
7598
+ /**
7599
+ * Service Unavailable
7600
+ */
7601
+ 503: ErrorResponse;
7602
+ };
7603
+ export type EditReplyError = EditReplyErrors[keyof EditReplyErrors];
7604
+ export type EditReplyResponses = {
7605
+ /**
7606
+ * Returns the updated reply
7607
+ */
7608
+ 200: {
7609
+ reply: {
7610
+ replyId: string;
7611
+ author: {
7612
+ dazlUserId: string;
7613
+ };
7614
+ content: string;
7615
+ mentions: Array<UserMention>;
7616
+ createdAt: string;
7617
+ updatedAt: string;
7618
+ gitInfo?: CommentGitInfo;
7619
+ };
7620
+ };
7621
+ };
7622
+ export type EditReplyResponse = EditReplyResponses[keyof EditReplyResponses];
7462
7623
  //# sourceMappingURL=types.gen.d.ts.map