@dazl/api-client 1.0.1 → 1.0.3

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.
Files changed (95) hide show
  1. package/dist/db/generated-types.d.ts +10 -0
  2. package/dist/db/generated-types.d.ts.map +1 -1
  3. package/dist/internal/index.d.ts +1 -1
  4. package/dist/internal/index.d.ts.map +1 -1
  5. package/dist/internal/sdk.gen.d.ts +43 -1
  6. package/dist/internal/sdk.gen.d.ts.map +1 -1
  7. package/dist/internal/sdk.gen.js +101 -0
  8. package/dist/internal/sdk.gen.js.map +1 -1
  9. package/dist/internal/types.gen.d.ts +825 -0
  10. package/dist/internal/types.gen.d.ts.map +1 -1
  11. package/dist/public/client/client.gen.d.ts +3 -0
  12. package/dist/public/client/client.gen.d.ts.map +1 -0
  13. package/dist/public/client/client.gen.js +217 -0
  14. package/dist/public/client/client.gen.js.map +1 -0
  15. package/dist/public/client/index.d.ts +11 -0
  16. package/dist/public/client/index.d.ts.map +1 -0
  17. package/dist/public/client/index.js +7 -0
  18. package/dist/public/client/index.js.map +1 -0
  19. package/dist/public/client/types.gen.d.ts +121 -0
  20. package/dist/public/client/types.gen.d.ts.map +1 -0
  21. package/dist/public/client/types.gen.js +3 -0
  22. package/dist/public/client/types.gen.js.map +1 -0
  23. package/dist/public/client/utils.gen.d.ts +38 -0
  24. package/dist/public/client/utils.gen.d.ts.map +1 -0
  25. package/dist/public/client/utils.gen.js +229 -0
  26. package/dist/public/client/utils.gen.js.map +1 -0
  27. package/dist/public/client.gen.d.ts +13 -0
  28. package/dist/public/client.gen.d.ts.map +1 -0
  29. package/dist/public/client.gen.js +4 -0
  30. package/dist/public/client.gen.js.map +1 -0
  31. package/dist/public/core/auth.gen.d.ts +26 -0
  32. package/dist/public/core/auth.gen.d.ts.map +1 -0
  33. package/dist/public/core/auth.gen.js +15 -0
  34. package/dist/public/core/auth.gen.js.map +1 -0
  35. package/dist/public/core/bodySerializer.gen.d.ts +26 -0
  36. package/dist/public/core/bodySerializer.gen.d.ts.map +1 -0
  37. package/dist/public/core/bodySerializer.gen.js +58 -0
  38. package/dist/public/core/bodySerializer.gen.js.map +1 -0
  39. package/dist/public/core/params.gen.d.ts +44 -0
  40. package/dist/public/core/params.gen.d.ts.map +1 -0
  41. package/dist/public/core/params.gen.js +110 -0
  42. package/dist/public/core/params.gen.js.map +1 -0
  43. package/dist/public/core/pathSerializer.gen.d.ts +34 -0
  44. package/dist/public/core/pathSerializer.gen.d.ts.map +1 -0
  45. package/dist/public/core/pathSerializer.gen.js +107 -0
  46. package/dist/public/core/pathSerializer.gen.js.map +1 -0
  47. package/dist/public/core/queryKeySerializer.gen.d.ts +19 -0
  48. package/dist/public/core/queryKeySerializer.gen.d.ts.map +1 -0
  49. package/dist/public/core/queryKeySerializer.gen.js +93 -0
  50. package/dist/public/core/queryKeySerializer.gen.js.map +1 -0
  51. package/dist/public/core/serverSentEvents.gen.d.ts +72 -0
  52. package/dist/public/core/serverSentEvents.gen.d.ts.map +1 -0
  53. package/dist/public/core/serverSentEvents.gen.js +133 -0
  54. package/dist/public/core/serverSentEvents.gen.js.map +1 -0
  55. package/dist/public/core/types.gen.d.ts +84 -0
  56. package/dist/public/core/types.gen.d.ts.map +1 -0
  57. package/dist/public/core/types.gen.js +3 -0
  58. package/dist/public/core/types.gen.js.map +1 -0
  59. package/dist/public/core/utils.gen.d.ts +20 -0
  60. package/dist/public/core/utils.gen.d.ts.map +1 -0
  61. package/dist/public/core/utils.gen.js +88 -0
  62. package/dist/public/core/utils.gen.js.map +1 -0
  63. package/dist/public/index.d.ts +3 -0
  64. package/dist/public/index.d.ts.map +1 -0
  65. package/dist/public/index.js +3 -0
  66. package/dist/public/index.js.map +1 -0
  67. package/dist/public/sdk.gen.d.ts +22 -0
  68. package/dist/public/sdk.gen.d.ts.map +1 -0
  69. package/dist/public/sdk.gen.js +10 -0
  70. package/dist/public/sdk.gen.js.map +1 -0
  71. package/dist/public/types.gen.d.ts +56 -0
  72. package/dist/public/types.gen.d.ts.map +1 -0
  73. package/dist/public/types.gen.js +3 -0
  74. package/dist/public/types.gen.js.map +1 -0
  75. package/package.json +4 -1
  76. package/src/db/generated-types.ts +11 -0
  77. package/src/internal/index.ts +1 -1
  78. package/src/internal/sdk.gen.ts +114 -1
  79. package/src/internal/types.gen.ts +889 -0
  80. package/src/public/client/client.gen.ts +277 -0
  81. package/src/public/client/index.ts +27 -0
  82. package/src/public/client/types.gen.ts +218 -0
  83. package/src/public/client/utils.gen.ts +316 -0
  84. package/src/public/client.gen.ts +16 -0
  85. package/src/public/core/auth.gen.ts +48 -0
  86. package/src/public/core/bodySerializer.gen.ts +82 -0
  87. package/src/public/core/params.gen.ts +178 -0
  88. package/src/public/core/pathSerializer.gen.ts +171 -0
  89. package/src/public/core/queryKeySerializer.gen.ts +117 -0
  90. package/src/public/core/serverSentEvents.gen.ts +242 -0
  91. package/src/public/core/types.gen.ts +110 -0
  92. package/src/public/core/utils.gen.ts +140 -0
  93. package/src/public/index.ts +4 -0
  94. package/src/public/sdk.gen.ts +27 -0
  95. package/src/public/types.gen.ts +63 -0
@@ -437,6 +437,23 @@ export type PurgeUserAccountInput = {
437
437
  */
438
438
  dryRun?: boolean;
439
439
  };
440
+ export type CreateCommentInput = {
441
+ content: string;
442
+ mentions?: Array<UserMention>;
443
+ context?: CommentContext;
444
+ };
445
+ export type EditCommentInput = {
446
+ content: string;
447
+ mentions?: Array<UserMention>;
448
+ };
449
+ export type CreateReplyInput = {
450
+ content: string;
451
+ mentions?: Array<UserMention>;
452
+ };
453
+ export type EditReplyInput = {
454
+ content: string;
455
+ mentions?: Array<UserMention>;
456
+ };
440
457
  export type EnsureMyUserData = {
441
458
  body?: {
442
459
  name?: string;
@@ -2254,6 +2271,123 @@ export type UpdateProjectResponses = {
2254
2271
  };
2255
2272
  };
2256
2273
  export type UpdateProjectResponse = UpdateProjectResponses[keyof UpdateProjectResponses];
2274
+ export type MarkProjectAsInitializedData = {
2275
+ body: {
2276
+ /**
2277
+ * The dazl ID of the requesting user, used for permission checks
2278
+ */
2279
+ ownerDazlId: string;
2280
+ };
2281
+ path: {
2282
+ projectId: string;
2283
+ };
2284
+ query?: never;
2285
+ url: '/project/{projectId}/project-init-data';
2286
+ };
2287
+ export type MarkProjectAsInitializedErrors = {
2288
+ /**
2289
+ * Bad request - Invalid parameters or malformed JSON
2290
+ */
2291
+ 400: {
2292
+ message: string;
2293
+ issues?: string;
2294
+ };
2295
+ /**
2296
+ * Unauthorized
2297
+ */
2298
+ 401: ErrorResponse;
2299
+ /**
2300
+ * Forbidden
2301
+ */
2302
+ 403: ErrorResponse;
2303
+ /**
2304
+ * Not Found
2305
+ */
2306
+ 404: ErrorResponse;
2307
+ /**
2308
+ * Conflict
2309
+ */
2310
+ 409: ErrorResponse;
2311
+ /**
2312
+ * Internal server error
2313
+ */
2314
+ 500: ErrorResponse;
2315
+ /**
2316
+ * Service Unavailable
2317
+ */
2318
+ 503: ErrorResponse;
2319
+ };
2320
+ export type MarkProjectAsInitializedError = MarkProjectAsInitializedErrors[keyof MarkProjectAsInitializedErrors];
2321
+ export type MarkProjectAsInitializedResponses = {
2322
+ /**
2323
+ * Returns the project ID and confirmation that the project was marked as initialized
2324
+ */
2325
+ 200: {
2326
+ projectId: string;
2327
+ };
2328
+ };
2329
+ export type MarkProjectAsInitializedResponse = MarkProjectAsInitializedResponses[keyof MarkProjectAsInitializedResponses];
2330
+ export type GetProjectInitDataData = {
2331
+ body?: never;
2332
+ path: {
2333
+ projectId: string;
2334
+ };
2335
+ query: {
2336
+ /**
2337
+ * The dazl ID of the requesting user, used for permission checks
2338
+ */
2339
+ ownerDazlId: string;
2340
+ };
2341
+ url: '/project/{projectId}/project-init-data';
2342
+ };
2343
+ export type GetProjectInitDataErrors = {
2344
+ /**
2345
+ * Bad request - Invalid parameters or malformed JSON
2346
+ */
2347
+ 400: {
2348
+ message: string;
2349
+ issues?: string;
2350
+ };
2351
+ /**
2352
+ * Unauthorized
2353
+ */
2354
+ 401: ErrorResponse;
2355
+ /**
2356
+ * Forbidden
2357
+ */
2358
+ 403: ErrorResponse;
2359
+ /**
2360
+ * Not Found
2361
+ */
2362
+ 404: ErrorResponse;
2363
+ /**
2364
+ * Conflict
2365
+ */
2366
+ 409: ErrorResponse;
2367
+ /**
2368
+ * Internal server error
2369
+ */
2370
+ 500: ErrorResponse;
2371
+ /**
2372
+ * Service Unavailable
2373
+ */
2374
+ 503: ErrorResponse;
2375
+ };
2376
+ export type GetProjectInitDataError = GetProjectInitDataErrors[keyof GetProjectInitDataErrors];
2377
+ export type GetProjectInitDataResponses = {
2378
+ /**
2379
+ * Returns the project initialization data
2380
+ */
2381
+ 200: {
2382
+ projectId: string;
2383
+ gitRepoURL: string;
2384
+ gitBranchToClone: string | null;
2385
+ gitBranchToCreate: string | null;
2386
+ createdAt: string;
2387
+ updatedAt: string;
2388
+ };
2389
+ };
2390
+ export type GetProjectInitDataResponse = GetProjectInitDataResponses[keyof GetProjectInitDataResponses];
2257
2391
  export type CreateProjectData = {
2258
2392
  body: {
2259
2393
  name: string;
@@ -2261,6 +2395,11 @@ export type CreateProjectData = {
2261
2395
  latestScreenshot?: string | null;
2262
2396
  originTemplateId?: string | null;
2263
2397
  createdAt?: string;
2398
+ projectInitData?: {
2399
+ gitRepoURL: string;
2400
+ gitBranchToClone?: string | null;
2401
+ gitBranchToCreate?: string | null;
2402
+ };
2264
2403
  };
2265
2404
  path?: never;
2266
2405
  query?: never;
@@ -5714,4 +5853,690 @@ export type GetUserActivePromotionsResponses = {
5714
5853
  };
5715
5854
  };
5716
5855
  export type GetUserActivePromotionsResponse = GetUserActivePromotionsResponses[keyof GetUserActivePromotionsResponses];
5856
+ export type DeleteCommentData = {
5857
+ body?: never;
5858
+ path: {
5859
+ hostType: 'project' | 'product';
5860
+ hostId: string;
5861
+ commentId: string;
5862
+ };
5863
+ query?: never;
5864
+ url: '/comments/{hostType}/{hostId}/{commentId}';
5865
+ };
5866
+ export type DeleteCommentErrors = {
5867
+ /**
5868
+ * Bad request - Invalid parameters or malformed JSON
5869
+ */
5870
+ 400: {
5871
+ message: string;
5872
+ issues?: string;
5873
+ };
5874
+ /**
5875
+ * Unauthorized
5876
+ */
5877
+ 401: ErrorResponse;
5878
+ /**
5879
+ * Forbidden
5880
+ */
5881
+ 403: ErrorResponse;
5882
+ /**
5883
+ * Not Found
5884
+ */
5885
+ 404: ErrorResponse;
5886
+ /**
5887
+ * Conflict
5888
+ */
5889
+ 409: ErrorResponse;
5890
+ /**
5891
+ * Internal server error
5892
+ */
5893
+ 500: ErrorResponse;
5894
+ /**
5895
+ * Service Unavailable
5896
+ */
5897
+ 503: ErrorResponse;
5898
+ };
5899
+ export type DeleteCommentError = DeleteCommentErrors[keyof DeleteCommentErrors];
5900
+ export type DeleteCommentResponses = {
5901
+ /**
5902
+ * Acknowledges that the comment was deleted
5903
+ */
5904
+ 200: {
5905
+ success: true;
5906
+ };
5907
+ };
5908
+ export type DeleteCommentResponse = DeleteCommentResponses[keyof DeleteCommentResponses];
5909
+ export type GetCommentData = {
5910
+ body?: never;
5911
+ path: {
5912
+ hostType: 'project' | 'product';
5913
+ hostId: string;
5914
+ commentId: string;
5915
+ };
5916
+ query?: never;
5917
+ url: '/comments/{hostType}/{hostId}/{commentId}';
5918
+ };
5919
+ export type GetCommentErrors = {
5920
+ /**
5921
+ * Bad request - Invalid parameters or malformed JSON
5922
+ */
5923
+ 400: {
5924
+ message: string;
5925
+ issues?: string;
5926
+ };
5927
+ /**
5928
+ * Unauthorized
5929
+ */
5930
+ 401: ErrorResponse;
5931
+ /**
5932
+ * Forbidden
5933
+ */
5934
+ 403: ErrorResponse;
5935
+ /**
5936
+ * Not Found
5937
+ */
5938
+ 404: ErrorResponse;
5939
+ /**
5940
+ * Conflict
5941
+ */
5942
+ 409: ErrorResponse;
5943
+ /**
5944
+ * Internal server error
5945
+ */
5946
+ 500: ErrorResponse;
5947
+ /**
5948
+ * Service Unavailable
5949
+ */
5950
+ 503: ErrorResponse;
5951
+ };
5952
+ export type GetCommentError = GetCommentErrors[keyof GetCommentErrors];
5953
+ export type GetCommentResponses = {
5954
+ /**
5955
+ * Returns comment by id for the host entity
5956
+ */
5957
+ 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
+ }>;
5979
+ resolved?: CommentResolved;
5980
+ context?: CommentContext;
5981
+ };
5982
+ };
5983
+ };
5984
+ export type GetCommentResponse = GetCommentResponses[keyof GetCommentResponses];
5985
+ export type EditCommentData = {
5986
+ body: EditCommentInput;
5987
+ path: {
5988
+ hostType: 'project' | 'product';
5989
+ hostId: string;
5990
+ commentId: string;
5991
+ };
5992
+ query?: never;
5993
+ url: '/comments/{hostType}/{hostId}/{commentId}';
5994
+ };
5995
+ export type EditCommentErrors = {
5996
+ /**
5997
+ * Bad request - Invalid parameters or malformed JSON
5998
+ */
5999
+ 400: {
6000
+ message: string;
6001
+ issues?: string;
6002
+ };
6003
+ /**
6004
+ * Unauthorized
6005
+ */
6006
+ 401: ErrorResponse;
6007
+ /**
6008
+ * Forbidden
6009
+ */
6010
+ 403: ErrorResponse;
6011
+ /**
6012
+ * Not Found
6013
+ */
6014
+ 404: ErrorResponse;
6015
+ /**
6016
+ * Conflict
6017
+ */
6018
+ 409: ErrorResponse;
6019
+ /**
6020
+ * Internal server error
6021
+ */
6022
+ 500: ErrorResponse;
6023
+ /**
6024
+ * Service Unavailable
6025
+ */
6026
+ 503: ErrorResponse;
6027
+ };
6028
+ export type EditCommentError = EditCommentErrors[keyof EditCommentErrors];
6029
+ export type EditCommentResponses = {
6030
+ /**
6031
+ * Returns the updated comment
6032
+ */
6033
+ 200: {
6034
+ comment: {
6035
+ commentId: string;
6036
+ author: {
6037
+ dazlUserId: string;
6038
+ };
6039
+ content: string;
6040
+ mentions: Array<UserMention>;
6041
+ createdAt: string;
6042
+ updatedAt: string;
6043
+ lastActivityAt: string;
6044
+ isEdited: boolean;
6045
+ replies: Array<{
6046
+ replyId: string;
6047
+ author: {
6048
+ dazlUserId: string;
6049
+ };
6050
+ content: string;
6051
+ mentions: Array<UserMention>;
6052
+ createdAt: string;
6053
+ updatedAt: string;
6054
+ }>;
6055
+ resolved?: CommentResolved;
6056
+ context?: CommentContext;
6057
+ };
6058
+ };
6059
+ };
6060
+ export type EditCommentResponse = EditCommentResponses[keyof EditCommentResponses];
6061
+ export type ListCommentsData = {
6062
+ body?: never;
6063
+ path: {
6064
+ hostType: 'project' | 'product';
6065
+ hostId: string;
6066
+ };
6067
+ query?: never;
6068
+ url: '/comments/{hostType}/{hostId}';
6069
+ };
6070
+ export type ListCommentsErrors = {
6071
+ /**
6072
+ * Bad request - Invalid parameters or malformed JSON
6073
+ */
6074
+ 400: {
6075
+ message: string;
6076
+ issues?: string;
6077
+ };
6078
+ /**
6079
+ * Unauthorized
6080
+ */
6081
+ 401: ErrorResponse;
6082
+ /**
6083
+ * Forbidden
6084
+ */
6085
+ 403: ErrorResponse;
6086
+ /**
6087
+ * Not Found
6088
+ */
6089
+ 404: ErrorResponse;
6090
+ /**
6091
+ * Conflict
6092
+ */
6093
+ 409: ErrorResponse;
6094
+ /**
6095
+ * Internal server error
6096
+ */
6097
+ 500: ErrorResponse;
6098
+ /**
6099
+ * Service Unavailable
6100
+ */
6101
+ 503: ErrorResponse;
6102
+ };
6103
+ export type ListCommentsError = ListCommentsErrors[keyof ListCommentsErrors];
6104
+ export type ListCommentsResponses = {
6105
+ /**
6106
+ * Returns the list of comments for the host entity
6107
+ */
6108
+ 200: {
6109
+ comments: Array<{
6110
+ commentId: string;
6111
+ author: {
6112
+ dazlUserId: string;
6113
+ };
6114
+ content: string;
6115
+ mentions: Array<UserMention>;
6116
+ createdAt: string;
6117
+ updatedAt: string;
6118
+ lastActivityAt: string;
6119
+ isEdited: boolean;
6120
+ replies: Array<{
6121
+ replyId: string;
6122
+ author: {
6123
+ dazlUserId: string;
6124
+ };
6125
+ content: string;
6126
+ mentions: Array<UserMention>;
6127
+ createdAt: string;
6128
+ updatedAt: string;
6129
+ }>;
6130
+ resolved?: CommentResolved;
6131
+ context?: CommentContext;
6132
+ }>;
6133
+ };
6134
+ };
6135
+ export type ListCommentsResponse = ListCommentsResponses[keyof ListCommentsResponses];
6136
+ export type CreateCommentData = {
6137
+ body: CreateCommentInput;
6138
+ path: {
6139
+ hostType: 'project' | 'product';
6140
+ hostId: string;
6141
+ };
6142
+ query?: never;
6143
+ url: '/comments/{hostType}/{hostId}';
6144
+ };
6145
+ export type CreateCommentErrors = {
6146
+ /**
6147
+ * Bad request - Invalid parameters or malformed JSON
6148
+ */
6149
+ 400: {
6150
+ message: string;
6151
+ issues?: string;
6152
+ };
6153
+ /**
6154
+ * Unauthorized
6155
+ */
6156
+ 401: ErrorResponse;
6157
+ /**
6158
+ * Forbidden
6159
+ */
6160
+ 403: ErrorResponse;
6161
+ /**
6162
+ * Not Found
6163
+ */
6164
+ 404: ErrorResponse;
6165
+ /**
6166
+ * Conflict
6167
+ */
6168
+ 409: ErrorResponse;
6169
+ /**
6170
+ * Internal server error
6171
+ */
6172
+ 500: ErrorResponse;
6173
+ /**
6174
+ * Service Unavailable
6175
+ */
6176
+ 503: ErrorResponse;
6177
+ };
6178
+ export type CreateCommentError = CreateCommentErrors[keyof CreateCommentErrors];
6179
+ export type CreateCommentResponses = {
6180
+ /**
6181
+ * Returns the created comment
6182
+ */
6183
+ 200: {
6184
+ comment: {
6185
+ commentId: string;
6186
+ author: {
6187
+ dazlUserId: string;
6188
+ };
6189
+ content: string;
6190
+ mentions: Array<UserMention>;
6191
+ createdAt: string;
6192
+ updatedAt: string;
6193
+ lastActivityAt: string;
6194
+ isEdited: boolean;
6195
+ replies: Array<{
6196
+ replyId: string;
6197
+ author: {
6198
+ dazlUserId: string;
6199
+ };
6200
+ content: string;
6201
+ mentions: Array<UserMention>;
6202
+ createdAt: string;
6203
+ updatedAt: string;
6204
+ }>;
6205
+ resolved?: CommentResolved;
6206
+ context?: CommentContext;
6207
+ };
6208
+ };
6209
+ };
6210
+ export type CreateCommentResponse = CreateCommentResponses[keyof CreateCommentResponses];
6211
+ export type ResolveCommentData = {
6212
+ body?: never;
6213
+ path: {
6214
+ hostType: 'project' | 'product';
6215
+ hostId: string;
6216
+ commentId: string;
6217
+ };
6218
+ query?: never;
6219
+ url: '/comments/{hostType}/{hostId}/{commentId}/resolve';
6220
+ };
6221
+ export type ResolveCommentErrors = {
6222
+ /**
6223
+ * Bad request - Invalid parameters or malformed JSON
6224
+ */
6225
+ 400: {
6226
+ message: string;
6227
+ issues?: string;
6228
+ };
6229
+ /**
6230
+ * Unauthorized
6231
+ */
6232
+ 401: ErrorResponse;
6233
+ /**
6234
+ * Forbidden
6235
+ */
6236
+ 403: ErrorResponse;
6237
+ /**
6238
+ * Not Found
6239
+ */
6240
+ 404: ErrorResponse;
6241
+ /**
6242
+ * Conflict
6243
+ */
6244
+ 409: ErrorResponse;
6245
+ /**
6246
+ * Internal server error
6247
+ */
6248
+ 500: ErrorResponse;
6249
+ /**
6250
+ * Service Unavailable
6251
+ */
6252
+ 503: ErrorResponse;
6253
+ };
6254
+ export type ResolveCommentError = ResolveCommentErrors[keyof ResolveCommentErrors];
6255
+ export type ResolveCommentResponses = {
6256
+ /**
6257
+ * Returns the resolved comment
6258
+ */
6259
+ 200: {
6260
+ comment: {
6261
+ commentId: string;
6262
+ author: {
6263
+ dazlUserId: string;
6264
+ };
6265
+ content: string;
6266
+ mentions: Array<UserMention>;
6267
+ createdAt: string;
6268
+ updatedAt: string;
6269
+ lastActivityAt: string;
6270
+ isEdited: boolean;
6271
+ replies: Array<{
6272
+ replyId: string;
6273
+ author: {
6274
+ dazlUserId: string;
6275
+ };
6276
+ content: string;
6277
+ mentions: Array<UserMention>;
6278
+ createdAt: string;
6279
+ updatedAt: string;
6280
+ }>;
6281
+ resolved?: CommentResolved;
6282
+ context?: CommentContext;
6283
+ };
6284
+ };
6285
+ };
6286
+ export type ResolveCommentResponse = ResolveCommentResponses[keyof ResolveCommentResponses];
6287
+ export type ReopenCommentData = {
6288
+ body?: never;
6289
+ path: {
6290
+ hostType: 'project' | 'product';
6291
+ hostId: string;
6292
+ commentId: string;
6293
+ };
6294
+ query?: never;
6295
+ url: '/comments/{hostType}/{hostId}/{commentId}/reopen';
6296
+ };
6297
+ export type ReopenCommentErrors = {
6298
+ /**
6299
+ * Bad request - Invalid parameters or malformed JSON
6300
+ */
6301
+ 400: {
6302
+ message: string;
6303
+ issues?: string;
6304
+ };
6305
+ /**
6306
+ * Unauthorized
6307
+ */
6308
+ 401: ErrorResponse;
6309
+ /**
6310
+ * Forbidden
6311
+ */
6312
+ 403: ErrorResponse;
6313
+ /**
6314
+ * Not Found
6315
+ */
6316
+ 404: ErrorResponse;
6317
+ /**
6318
+ * Conflict
6319
+ */
6320
+ 409: ErrorResponse;
6321
+ /**
6322
+ * Internal server error
6323
+ */
6324
+ 500: ErrorResponse;
6325
+ /**
6326
+ * Service Unavailable
6327
+ */
6328
+ 503: ErrorResponse;
6329
+ };
6330
+ export type ReopenCommentError = ReopenCommentErrors[keyof ReopenCommentErrors];
6331
+ export type ReopenCommentResponses = {
6332
+ /**
6333
+ * Returns the reopened comment
6334
+ */
6335
+ 200: {
6336
+ comment: {
6337
+ commentId: string;
6338
+ author: {
6339
+ dazlUserId: string;
6340
+ };
6341
+ content: string;
6342
+ mentions: Array<UserMention>;
6343
+ createdAt: string;
6344
+ updatedAt: string;
6345
+ lastActivityAt: string;
6346
+ isEdited: boolean;
6347
+ replies: Array<{
6348
+ replyId: string;
6349
+ author: {
6350
+ dazlUserId: string;
6351
+ };
6352
+ content: string;
6353
+ mentions: Array<UserMention>;
6354
+ createdAt: string;
6355
+ updatedAt: string;
6356
+ }>;
6357
+ resolved?: CommentResolved;
6358
+ context?: CommentContext;
6359
+ };
6360
+ };
6361
+ };
6362
+ export type ReopenCommentResponse = ReopenCommentResponses[keyof ReopenCommentResponses];
6363
+ export type CreateReplyData = {
6364
+ body: CreateReplyInput;
6365
+ path: {
6366
+ hostType: 'project' | 'product';
6367
+ hostId: string;
6368
+ commentId: string;
6369
+ };
6370
+ query?: never;
6371
+ url: '/comments/{hostType}/{hostId}/{commentId}/replies';
6372
+ };
6373
+ export type CreateReplyErrors = {
6374
+ /**
6375
+ * Bad request - Invalid parameters or malformed JSON
6376
+ */
6377
+ 400: {
6378
+ message: string;
6379
+ issues?: string;
6380
+ };
6381
+ /**
6382
+ * Unauthorized
6383
+ */
6384
+ 401: ErrorResponse;
6385
+ /**
6386
+ * Forbidden
6387
+ */
6388
+ 403: ErrorResponse;
6389
+ /**
6390
+ * Not Found
6391
+ */
6392
+ 404: ErrorResponse;
6393
+ /**
6394
+ * Conflict
6395
+ */
6396
+ 409: ErrorResponse;
6397
+ /**
6398
+ * Internal server error
6399
+ */
6400
+ 500: ErrorResponse;
6401
+ /**
6402
+ * Service Unavailable
6403
+ */
6404
+ 503: ErrorResponse;
6405
+ };
6406
+ export type CreateReplyError = CreateReplyErrors[keyof CreateReplyErrors];
6407
+ export type CreateReplyResponses = {
6408
+ /**
6409
+ * Returns the created reply
6410
+ */
6411
+ 200: {
6412
+ reply: {
6413
+ replyId: string;
6414
+ author: {
6415
+ dazlUserId: string;
6416
+ };
6417
+ content: string;
6418
+ mentions: Array<UserMention>;
6419
+ createdAt: string;
6420
+ updatedAt: string;
6421
+ };
6422
+ };
6423
+ };
6424
+ export type CreateReplyResponse = CreateReplyResponses[keyof CreateReplyResponses];
6425
+ export type DeleteReplyData = {
6426
+ body?: never;
6427
+ path: {
6428
+ hostType: 'project' | 'product';
6429
+ hostId: string;
6430
+ commentId: string;
6431
+ replyId: string;
6432
+ };
6433
+ query?: never;
6434
+ url: '/comments/{hostType}/{hostId}/{commentId}/replies/{replyId}';
6435
+ };
6436
+ export type DeleteReplyErrors = {
6437
+ /**
6438
+ * Bad request - Invalid parameters or malformed JSON
6439
+ */
6440
+ 400: {
6441
+ message: string;
6442
+ issues?: string;
6443
+ };
6444
+ /**
6445
+ * Unauthorized
6446
+ */
6447
+ 401: ErrorResponse;
6448
+ /**
6449
+ * Forbidden
6450
+ */
6451
+ 403: ErrorResponse;
6452
+ /**
6453
+ * Not Found
6454
+ */
6455
+ 404: ErrorResponse;
6456
+ /**
6457
+ * Conflict
6458
+ */
6459
+ 409: ErrorResponse;
6460
+ /**
6461
+ * Internal server error
6462
+ */
6463
+ 500: ErrorResponse;
6464
+ /**
6465
+ * Service Unavailable
6466
+ */
6467
+ 503: ErrorResponse;
6468
+ };
6469
+ export type DeleteReplyError = DeleteReplyErrors[keyof DeleteReplyErrors];
6470
+ export type DeleteReplyResponses = {
6471
+ /**
6472
+ * Acknowledges that the reply was deleted
6473
+ */
6474
+ 200: {
6475
+ success: true;
6476
+ };
6477
+ };
6478
+ export type DeleteReplyResponse = DeleteReplyResponses[keyof DeleteReplyResponses];
6479
+ export type EditReplyData = {
6480
+ body: EditReplyInput;
6481
+ path: {
6482
+ hostType: 'project' | 'product';
6483
+ hostId: string;
6484
+ commentId: string;
6485
+ replyId: string;
6486
+ };
6487
+ query?: never;
6488
+ url: '/comments/{hostType}/{hostId}/{commentId}/replies/{replyId}';
6489
+ };
6490
+ export type EditReplyErrors = {
6491
+ /**
6492
+ * Bad request - Invalid parameters or malformed JSON
6493
+ */
6494
+ 400: {
6495
+ message: string;
6496
+ issues?: string;
6497
+ };
6498
+ /**
6499
+ * Unauthorized
6500
+ */
6501
+ 401: ErrorResponse;
6502
+ /**
6503
+ * Forbidden
6504
+ */
6505
+ 403: ErrorResponse;
6506
+ /**
6507
+ * Not Found
6508
+ */
6509
+ 404: ErrorResponse;
6510
+ /**
6511
+ * Conflict
6512
+ */
6513
+ 409: ErrorResponse;
6514
+ /**
6515
+ * Internal server error
6516
+ */
6517
+ 500: ErrorResponse;
6518
+ /**
6519
+ * Service Unavailable
6520
+ */
6521
+ 503: ErrorResponse;
6522
+ };
6523
+ export type EditReplyError = EditReplyErrors[keyof EditReplyErrors];
6524
+ export type EditReplyResponses = {
6525
+ /**
6526
+ * Returns the updated reply
6527
+ */
6528
+ 200: {
6529
+ reply: {
6530
+ replyId: string;
6531
+ author: {
6532
+ dazlUserId: string;
6533
+ };
6534
+ content: string;
6535
+ mentions: Array<UserMention>;
6536
+ createdAt: string;
6537
+ updatedAt: string;
6538
+ };
6539
+ };
6540
+ };
6541
+ export type EditReplyResponse = EditReplyResponses[keyof EditReplyResponses];
5717
6542
  //# sourceMappingURL=types.gen.d.ts.map