@dazl/api-client 1.0.31 → 1.0.33

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.
@@ -1696,6 +1696,58 @@ export type GetUserInfoResponses = {
1696
1696
  };
1697
1697
  };
1698
1698
  export type GetUserInfoResponse = GetUserInfoResponses[keyof GetUserInfoResponses];
1699
+ export type GetUserAccessTokenData = {
1700
+ body?: never;
1701
+ path: {
1702
+ dazlId: string;
1703
+ };
1704
+ query?: never;
1705
+ url: '/github/user/{dazlId}/access-token';
1706
+ };
1707
+ export type GetUserAccessTokenErrors = {
1708
+ /**
1709
+ * Bad request - Invalid parameters or malformed JSON
1710
+ */
1711
+ 400: {
1712
+ message: string;
1713
+ issues?: string;
1714
+ };
1715
+ /**
1716
+ * Unauthorized
1717
+ */
1718
+ 401: ErrorResponse;
1719
+ /**
1720
+ * Forbidden
1721
+ */
1722
+ 403: ErrorResponse;
1723
+ /**
1724
+ * Not Found
1725
+ */
1726
+ 404: ErrorResponse;
1727
+ /**
1728
+ * Conflict
1729
+ */
1730
+ 409: ErrorResponse;
1731
+ /**
1732
+ * Internal server error
1733
+ */
1734
+ 500: ErrorResponse;
1735
+ /**
1736
+ * Service Unavailable
1737
+ */
1738
+ 503: ErrorResponse;
1739
+ };
1740
+ export type GetUserAccessTokenError = GetUserAccessTokenErrors[keyof GetUserAccessTokenErrors];
1741
+ export type GetUserAccessTokenResponses = {
1742
+ /**
1743
+ * Returns the user's GitHub access token
1744
+ */
1745
+ 200: {
1746
+ accessToken: string;
1747
+ login: string;
1748
+ };
1749
+ };
1750
+ export type GetUserAccessTokenResponse = GetUserAccessTokenResponses[keyof GetUserAccessTokenResponses];
1699
1751
  export type GetInstallationsData = {
1700
1752
  body?: never;
1701
1753
  path: {
@@ -1868,6 +1920,64 @@ export type GetRepoInfoResponses = {
1868
1920
  };
1869
1921
  };
1870
1922
  export type GetRepoInfoResponse = GetRepoInfoResponses[keyof GetRepoInfoResponses];
1923
+ export type GetProjectRepoInfoData = {
1924
+ body?: never;
1925
+ path: {
1926
+ projectId: string;
1927
+ repoId: string;
1928
+ };
1929
+ query?: never;
1930
+ url: '/github/repo/project/{projectId}/{repoId}/info';
1931
+ };
1932
+ export type GetProjectRepoInfoErrors = {
1933
+ /**
1934
+ * Bad request - Invalid parameters or malformed JSON
1935
+ */
1936
+ 400: {
1937
+ message: string;
1938
+ issues?: string;
1939
+ };
1940
+ /**
1941
+ * Unauthorized
1942
+ */
1943
+ 401: ErrorResponse;
1944
+ /**
1945
+ * Forbidden
1946
+ */
1947
+ 403: ErrorResponse;
1948
+ /**
1949
+ * Not Found
1950
+ */
1951
+ 404: ErrorResponse;
1952
+ /**
1953
+ * Conflict
1954
+ */
1955
+ 409: ErrorResponse;
1956
+ /**
1957
+ * Internal server error
1958
+ */
1959
+ 500: ErrorResponse;
1960
+ /**
1961
+ * Service Unavailable
1962
+ */
1963
+ 503: ErrorResponse;
1964
+ };
1965
+ export type GetProjectRepoInfoError = GetProjectRepoInfoErrors[keyof GetProjectRepoInfoErrors];
1966
+ export type GetProjectRepoInfoResponses = {
1967
+ /**
1968
+ * Returns GitHub info for one of the project's linked repositories
1969
+ */
1970
+ 200: {
1971
+ repoFullName: string;
1972
+ token: string | null;
1973
+ id: string;
1974
+ installationId: number | null;
1975
+ createdAt: string;
1976
+ updatedAt: string;
1977
+ dirName: string | null;
1978
+ };
1979
+ };
1980
+ export type GetProjectRepoInfoResponse = GetProjectRepoInfoResponses[keyof GetProjectRepoInfoResponses];
1871
1981
  export type CreateRepositoryData = {
1872
1982
  body?: {
1873
1983
  dazlId: string;
@@ -2970,14 +3080,157 @@ export type GetProjectInitDataResponses = {
2970
3080
  */
2971
3081
  200: {
2972
3082
  projectId: string;
2973
- gitRepoURL: string;
3083
+ gitRepoURL: string | null;
2974
3084
  gitBranchToClone: string | null;
2975
3085
  gitBranchToCreate: string | null;
2976
- createdAt: string;
2977
- updatedAt: string;
3086
+ createdAt: string | null;
3087
+ updatedAt: string | null;
3088
+ repos: Array<{
3089
+ id: string;
3090
+ projectId: string;
3091
+ repoId: string | null;
3092
+ gitRepoURL: string;
3093
+ gitBranchToClone: string | null;
3094
+ gitBranchToCreate: string | null;
3095
+ dirName: string;
3096
+ attemptCount: number;
3097
+ position: number;
3098
+ createdAt: string;
3099
+ updatedAt: string;
3100
+ }>;
2978
3101
  };
2979
3102
  };
2980
3103
  export type GetProjectInitDataResponse = GetProjectInitDataResponses[keyof GetProjectInitDataResponses];
3104
+ export type MarkRepoAsInitializedData = {
3105
+ body: {
3106
+ /**
3107
+ * The dazl ID of the requesting user, used for permission checks
3108
+ */
3109
+ ownerDazlId: string;
3110
+ };
3111
+ path: {
3112
+ projectId: string;
3113
+ /**
3114
+ * The pending init repo entry that has been cloned
3115
+ */
3116
+ initRepoId: string;
3117
+ };
3118
+ query?: never;
3119
+ url: '/project/{projectId}/project-init-data/{initRepoId}';
3120
+ };
3121
+ export type MarkRepoAsInitializedErrors = {
3122
+ /**
3123
+ * Bad request - Invalid parameters or malformed JSON
3124
+ */
3125
+ 400: {
3126
+ message: string;
3127
+ issues?: string;
3128
+ };
3129
+ /**
3130
+ * Unauthorized
3131
+ */
3132
+ 401: ErrorResponse;
3133
+ /**
3134
+ * Forbidden
3135
+ */
3136
+ 403: ErrorResponse;
3137
+ /**
3138
+ * Not Found
3139
+ */
3140
+ 404: ErrorResponse;
3141
+ /**
3142
+ * Conflict
3143
+ */
3144
+ 409: ErrorResponse;
3145
+ /**
3146
+ * Internal server error
3147
+ */
3148
+ 500: ErrorResponse;
3149
+ /**
3150
+ * Service Unavailable
3151
+ */
3152
+ 503: ErrorResponse;
3153
+ };
3154
+ export type MarkRepoAsInitializedError = MarkRepoAsInitializedErrors[keyof MarkRepoAsInitializedErrors];
3155
+ export type MarkRepoAsInitializedResponses = {
3156
+ /**
3157
+ * Confirms the repo was cloned: the pending entry is removed and its directory recorded on the repo link
3158
+ */
3159
+ 200: {
3160
+ projectId: string;
3161
+ initRepoId: string;
3162
+ dirName: string;
3163
+ };
3164
+ };
3165
+ export type MarkRepoAsInitializedResponse = MarkRepoAsInitializedResponses[keyof MarkRepoAsInitializedResponses];
3166
+ export type ReportRepoInitFailureData = {
3167
+ body: {
3168
+ /**
3169
+ * The dazl ID of the requesting user, used for permission checks
3170
+ */
3171
+ ownerDazlId: string;
3172
+ };
3173
+ path: {
3174
+ projectId: string;
3175
+ /**
3176
+ * The pending init repo entry whose clone failed
3177
+ */
3178
+ initRepoId: string;
3179
+ };
3180
+ query?: never;
3181
+ url: '/project/{projectId}/project-init-data/{initRepoId}/failure';
3182
+ };
3183
+ export type ReportRepoInitFailureErrors = {
3184
+ /**
3185
+ * Bad request - Invalid parameters or malformed JSON
3186
+ */
3187
+ 400: {
3188
+ message: string;
3189
+ issues?: string;
3190
+ };
3191
+ /**
3192
+ * Unauthorized
3193
+ */
3194
+ 401: ErrorResponse;
3195
+ /**
3196
+ * Forbidden
3197
+ */
3198
+ 403: ErrorResponse;
3199
+ /**
3200
+ * Not Found
3201
+ */
3202
+ 404: ErrorResponse;
3203
+ /**
3204
+ * Conflict
3205
+ */
3206
+ 409: ErrorResponse;
3207
+ /**
3208
+ * Internal server error
3209
+ */
3210
+ 500: ErrorResponse;
3211
+ /**
3212
+ * Service Unavailable
3213
+ */
3214
+ 503: ErrorResponse;
3215
+ };
3216
+ export type ReportRepoInitFailureError = ReportRepoInitFailureErrors[keyof ReportRepoInitFailureErrors];
3217
+ export type ReportRepoInitFailureResponses = {
3218
+ /**
3219
+ * Records a failed clone attempt; the entry is abandoned once the attempt cap is reached
3220
+ */
3221
+ 200: {
3222
+ projectId: string;
3223
+ initRepoId: string;
3224
+ dirName: string;
3225
+ attemptCount: number;
3226
+ maxAttempts: number;
3227
+ /**
3228
+ * True when the attempt cap was reached: the pending entry was removed and will not be retried
3229
+ */
3230
+ abandoned: boolean;
3231
+ };
3232
+ };
3233
+ export type ReportRepoInitFailureResponse = ReportRepoInitFailureResponses[keyof ReportRepoInitFailureResponses];
2981
3234
  export type CreateProjectData = {
2982
3235
  body: {
2983
3236
  name: string;
@@ -2992,6 +3245,11 @@ export type CreateProjectData = {
2992
3245
  gitBranchToClone?: string | null;
2993
3246
  gitBranchToCreate?: string | null;
2994
3247
  };
3248
+ projectInitRepos?: Array<{
3249
+ gitRepoURL: string;
3250
+ gitBranchToClone?: string | null;
3251
+ gitBranchToCreate?: string | null;
3252
+ }>;
2995
3253
  };
2996
3254
  path?: never;
2997
3255
  query?: never;
@@ -3033,13 +3291,165 @@ export type CreateProjectErrors = {
3033
3291
  export type CreateProjectError = CreateProjectErrors[keyof CreateProjectErrors];
3034
3292
  export type CreateProjectResponses = {
3035
3293
  /**
3036
- * Returns the created project
3294
+ * Returns the created project
3295
+ */
3296
+ 200: {
3297
+ project: ProjectRaw;
3298
+ };
3299
+ };
3300
+ export type CreateProjectResponse = CreateProjectResponses[keyof CreateProjectResponses];
3301
+ export type ListProjectReposData = {
3302
+ body?: never;
3303
+ path: {
3304
+ projectId: string;
3305
+ };
3306
+ query: {
3307
+ /**
3308
+ * The dazl ID of the requesting user, used for permission checks
3309
+ */
3310
+ ownerDazlId: string;
3311
+ };
3312
+ url: '/project/{projectId}/repos';
3313
+ };
3314
+ export type ListProjectReposErrors = {
3315
+ /**
3316
+ * Bad request - Invalid parameters or malformed JSON
3317
+ */
3318
+ 400: {
3319
+ message: string;
3320
+ issues?: string;
3321
+ };
3322
+ /**
3323
+ * Unauthorized
3324
+ */
3325
+ 401: ErrorResponse;
3326
+ /**
3327
+ * Forbidden
3328
+ */
3329
+ 403: ErrorResponse;
3330
+ /**
3331
+ * Not Found
3332
+ */
3333
+ 404: ErrorResponse;
3334
+ /**
3335
+ * Conflict
3336
+ */
3337
+ 409: ErrorResponse;
3338
+ /**
3339
+ * Internal server error
3340
+ */
3341
+ 500: ErrorResponse;
3342
+ /**
3343
+ * Service Unavailable
3344
+ */
3345
+ 503: ErrorResponse;
3346
+ };
3347
+ export type ListProjectReposError = ListProjectReposErrors[keyof ListProjectReposErrors];
3348
+ export type ListProjectReposResponses = {
3349
+ /**
3350
+ * Returns the project's linked and pending git repositories
3351
+ */
3352
+ 200: {
3353
+ repos: Array<{
3354
+ repoId: string;
3355
+ repoFullName: string;
3356
+ host: string;
3357
+ /**
3358
+ * Directory under the project root the repo was cloned into; null for legacy root-layout repos
3359
+ */
3360
+ dirName: string | null;
3361
+ hasActiveInstallation: boolean;
3362
+ }>;
3363
+ /**
3364
+ * Repos awaiting their clone by the session container
3365
+ */
3366
+ pending: Array<{
3367
+ id: string;
3368
+ projectId: string;
3369
+ repoId: string | null;
3370
+ gitRepoURL: string;
3371
+ gitBranchToClone: string | null;
3372
+ gitBranchToCreate: string | null;
3373
+ dirName: string;
3374
+ attemptCount: number;
3375
+ position: number;
3376
+ createdAt: string;
3377
+ updatedAt: string;
3378
+ }>;
3379
+ };
3380
+ };
3381
+ export type ListProjectReposResponse = ListProjectReposResponses[keyof ListProjectReposResponses];
3382
+ export type AddProjectRepoData = {
3383
+ body: {
3384
+ /**
3385
+ * The dazl ID of the requesting user, used for permission checks
3386
+ */
3387
+ ownerDazlId: string;
3388
+ gitRepoURL: string;
3389
+ gitBranchToClone?: string | null;
3390
+ gitBranchToCreate?: string | null;
3391
+ };
3392
+ path: {
3393
+ projectId: string;
3394
+ };
3395
+ query?: never;
3396
+ url: '/project/{projectId}/repos';
3397
+ };
3398
+ export type AddProjectRepoErrors = {
3399
+ /**
3400
+ * Bad request - Invalid parameters or malformed JSON
3401
+ */
3402
+ 400: {
3403
+ message: string;
3404
+ issues?: string;
3405
+ };
3406
+ /**
3407
+ * Unauthorized
3408
+ */
3409
+ 401: ErrorResponse;
3410
+ /**
3411
+ * Forbidden
3412
+ */
3413
+ 403: ErrorResponse;
3414
+ /**
3415
+ * Not Found
3416
+ */
3417
+ 404: ErrorResponse;
3418
+ /**
3419
+ * Conflict
3420
+ */
3421
+ 409: ErrorResponse;
3422
+ /**
3423
+ * Internal server error
3424
+ */
3425
+ 500: ErrorResponse;
3426
+ /**
3427
+ * Service Unavailable
3428
+ */
3429
+ 503: ErrorResponse;
3430
+ };
3431
+ export type AddProjectRepoError = AddProjectRepoErrors[keyof AddProjectRepoErrors];
3432
+ export type AddProjectRepoResponses = {
3433
+ /**
3434
+ * Attaches another git repository to the project; it is cloned into its dirName by the running session or on the next session start
3037
3435
  */
3038
3436
  200: {
3039
- project: ProjectRaw;
3437
+ repo: {
3438
+ id: string;
3439
+ projectId: string;
3440
+ repoId: string | null;
3441
+ gitRepoURL: string;
3442
+ gitBranchToClone: string | null;
3443
+ gitBranchToCreate: string | null;
3444
+ dirName: string;
3445
+ attemptCount: number;
3446
+ position: number;
3447
+ createdAt: string;
3448
+ updatedAt: string;
3449
+ };
3040
3450
  };
3041
3451
  };
3042
- export type CreateProjectResponse = CreateProjectResponses[keyof CreateProjectResponses];
3452
+ export type AddProjectRepoResponse = AddProjectRepoResponses[keyof AddProjectRepoResponses];
3043
3453
  export type GetUserProjectsData = {
3044
3454
  body?: never;
3045
3455
  path: {
@@ -4507,6 +4917,339 @@ export type RemoveTemplateSharedWithResponses = {
4507
4917
  };
4508
4918
  };
4509
4919
  export type RemoveTemplateSharedWithResponse = RemoveTemplateSharedWithResponses[keyof RemoveTemplateSharedWithResponses];
4920
+ export type CreateChatData = {
4921
+ body: {
4922
+ projectId: string;
4923
+ ownerDazlId: string;
4924
+ type: string;
4925
+ createdByUserId: string;
4926
+ schemaVersion: number;
4927
+ };
4928
+ path?: never;
4929
+ query?: never;
4930
+ url: '/chat/create';
4931
+ };
4932
+ export type CreateChatErrors = {
4933
+ /**
4934
+ * Bad request - Invalid parameters or malformed JSON
4935
+ */
4936
+ 400: {
4937
+ message: string;
4938
+ issues?: string;
4939
+ };
4940
+ /**
4941
+ * Unauthorized
4942
+ */
4943
+ 401: ErrorResponse;
4944
+ /**
4945
+ * Forbidden
4946
+ */
4947
+ 403: ErrorResponse;
4948
+ /**
4949
+ * Not Found
4950
+ */
4951
+ 404: ErrorResponse;
4952
+ /**
4953
+ * Conflict
4954
+ */
4955
+ 409: ErrorResponse;
4956
+ /**
4957
+ * Internal server error
4958
+ */
4959
+ 500: ErrorResponse;
4960
+ /**
4961
+ * Service Unavailable
4962
+ */
4963
+ 503: ErrorResponse;
4964
+ };
4965
+ export type CreateChatError = CreateChatErrors[keyof CreateChatErrors];
4966
+ export type CreateChatResponses = {
4967
+ /**
4968
+ * Creates a new chat for the specified project.
4969
+ */
4970
+ 200: {
4971
+ chat: {
4972
+ id: string;
4973
+ projectId: string;
4974
+ type: string;
4975
+ title: string | null;
4976
+ archived: boolean;
4977
+ createdByUserId: string;
4978
+ schemaVersion: number;
4979
+ createdAt: string;
4980
+ updatedAt: string;
4981
+ pinnedContext?: unknown;
4982
+ agentSession?: unknown;
4983
+ messages: Array<unknown>;
4984
+ oldestSequence: number | null;
4985
+ hasMore: boolean;
4986
+ };
4987
+ };
4988
+ };
4989
+ export type CreateChatResponse = CreateChatResponses[keyof CreateChatResponses];
4990
+ export type ListProjectChatsData = {
4991
+ body?: never;
4992
+ path: {
4993
+ projectId: string;
4994
+ };
4995
+ query: {
4996
+ ownerDazlId: string;
4997
+ };
4998
+ url: '/chat/project/{projectId}';
4999
+ };
5000
+ export type ListProjectChatsErrors = {
5001
+ /**
5002
+ * Bad request - Invalid parameters or malformed JSON
5003
+ */
5004
+ 400: {
5005
+ message: string;
5006
+ issues?: string;
5007
+ };
5008
+ /**
5009
+ * Unauthorized
5010
+ */
5011
+ 401: ErrorResponse;
5012
+ /**
5013
+ * Forbidden
5014
+ */
5015
+ 403: ErrorResponse;
5016
+ /**
5017
+ * Not Found
5018
+ */
5019
+ 404: ErrorResponse;
5020
+ /**
5021
+ * Conflict
5022
+ */
5023
+ 409: ErrorResponse;
5024
+ /**
5025
+ * Internal server error
5026
+ */
5027
+ 500: ErrorResponse;
5028
+ /**
5029
+ * Service Unavailable
5030
+ */
5031
+ 503: ErrorResponse;
5032
+ };
5033
+ export type ListProjectChatsError = ListProjectChatsErrors[keyof ListProjectChatsErrors];
5034
+ export type ListProjectChatsResponses = {
5035
+ /**
5036
+ * Lists non-deleted chats for the project, ordered by updatedAt descending. Does not include messages.
5037
+ */
5038
+ 200: {
5039
+ chats: Array<{
5040
+ id: string;
5041
+ projectId: string;
5042
+ type: string;
5043
+ title: string | null;
5044
+ archived: boolean;
5045
+ createdByUserId: string;
5046
+ schemaVersion: number;
5047
+ createdAt: string;
5048
+ updatedAt: string;
5049
+ }>;
5050
+ };
5051
+ };
5052
+ export type ListProjectChatsResponse = ListProjectChatsResponses[keyof ListProjectChatsResponses];
5053
+ export type DeleteChatData = {
5054
+ body: {
5055
+ ownerDazlId: string;
5056
+ };
5057
+ path: {
5058
+ chatId: string;
5059
+ };
5060
+ query?: never;
5061
+ url: '/chat/{chatId}';
5062
+ };
5063
+ export type DeleteChatErrors = {
5064
+ /**
5065
+ * Bad request - Invalid parameters or malformed JSON
5066
+ */
5067
+ 400: {
5068
+ message: string;
5069
+ issues?: string;
5070
+ };
5071
+ /**
5072
+ * Unauthorized
5073
+ */
5074
+ 401: ErrorResponse;
5075
+ /**
5076
+ * Forbidden
5077
+ */
5078
+ 403: ErrorResponse;
5079
+ /**
5080
+ * Not Found
5081
+ */
5082
+ 404: ErrorResponse;
5083
+ /**
5084
+ * Conflict
5085
+ */
5086
+ 409: ErrorResponse;
5087
+ /**
5088
+ * Internal server error
5089
+ */
5090
+ 500: ErrorResponse;
5091
+ /**
5092
+ * Service Unavailable
5093
+ */
5094
+ 503: ErrorResponse;
5095
+ };
5096
+ export type DeleteChatError = DeleteChatErrors[keyof DeleteChatErrors];
5097
+ export type DeleteChatResponses = {
5098
+ /**
5099
+ * Soft-deletes the chat with the specified ID.
5100
+ */
5101
+ 200: {
5102
+ chatId: string;
5103
+ };
5104
+ };
5105
+ export type DeleteChatResponse = DeleteChatResponses[keyof DeleteChatResponses];
5106
+ export type GetChatData = {
5107
+ body?: never;
5108
+ path: {
5109
+ chatId: string;
5110
+ };
5111
+ query: {
5112
+ ownerDazlId: string;
5113
+ limit?: number;
5114
+ before?: number | null;
5115
+ };
5116
+ url: '/chat/{chatId}';
5117
+ };
5118
+ export type GetChatErrors = {
5119
+ /**
5120
+ * Bad request - Invalid parameters or malformed JSON
5121
+ */
5122
+ 400: {
5123
+ message: string;
5124
+ issues?: string;
5125
+ };
5126
+ /**
5127
+ * Unauthorized
5128
+ */
5129
+ 401: ErrorResponse;
5130
+ /**
5131
+ * Forbidden
5132
+ */
5133
+ 403: ErrorResponse;
5134
+ /**
5135
+ * Not Found
5136
+ */
5137
+ 404: ErrorResponse;
5138
+ /**
5139
+ * Conflict
5140
+ */
5141
+ 409: ErrorResponse;
5142
+ /**
5143
+ * Internal server error
5144
+ */
5145
+ 500: ErrorResponse;
5146
+ /**
5147
+ * Service Unavailable
5148
+ */
5149
+ 503: ErrorResponse;
5150
+ };
5151
+ export type GetChatError = GetChatErrors[keyof GetChatErrors];
5152
+ export type GetChatResponses = {
5153
+ /**
5154
+ * Returns the chat with a page of its messages. Without `limit`, returns every message. With `limit`, returns the `hasMore` flag and `oldestSequence` cursor — pass `oldestSequence` back as `before` to fetch the previous (older) page.
5155
+ */
5156
+ 200: {
5157
+ chat: {
5158
+ id: string;
5159
+ projectId: string;
5160
+ type: string;
5161
+ title: string | null;
5162
+ archived: boolean;
5163
+ createdByUserId: string;
5164
+ schemaVersion: number;
5165
+ createdAt: string;
5166
+ updatedAt: string;
5167
+ pinnedContext?: unknown;
5168
+ agentSession?: unknown;
5169
+ messages: Array<unknown>;
5170
+ oldestSequence: number | null;
5171
+ hasMore: boolean;
5172
+ };
5173
+ };
5174
+ };
5175
+ export type GetChatResponse = GetChatResponses[keyof GetChatResponses];
5176
+ export type UpdateChatData = {
5177
+ body: {
5178
+ ownerDazlId: string;
5179
+ title?: string;
5180
+ archived: boolean;
5181
+ pinnedContext?: unknown;
5182
+ agentSession?: unknown;
5183
+ schemaVersion: number;
5184
+ messages: Array<{
5185
+ id: string;
5186
+ [key: string]: unknown;
5187
+ }>;
5188
+ };
5189
+ path: {
5190
+ chatId: string;
5191
+ };
5192
+ query?: never;
5193
+ url: '/chat/{chatId}';
5194
+ };
5195
+ export type UpdateChatErrors = {
5196
+ /**
5197
+ * Bad request - Invalid parameters or malformed JSON
5198
+ */
5199
+ 400: {
5200
+ message: string;
5201
+ issues?: string;
5202
+ };
5203
+ /**
5204
+ * Unauthorized
5205
+ */
5206
+ 401: ErrorResponse;
5207
+ /**
5208
+ * Forbidden
5209
+ */
5210
+ 403: ErrorResponse;
5211
+ /**
5212
+ * Not Found
5213
+ */
5214
+ 404: ErrorResponse;
5215
+ /**
5216
+ * Conflict
5217
+ */
5218
+ 409: ErrorResponse;
5219
+ /**
5220
+ * Internal server error
5221
+ */
5222
+ 500: ErrorResponse;
5223
+ /**
5224
+ * Service Unavailable
5225
+ */
5226
+ 503: ErrorResponse;
5227
+ };
5228
+ export type UpdateChatError = UpdateChatErrors[keyof UpdateChatErrors];
5229
+ export type UpdateChatResponses = {
5230
+ /**
5231
+ * Replaces the chat's metadata and full message list (whole-document semantics, matching the caller's in-memory chat state).
5232
+ */
5233
+ 200: {
5234
+ chat: {
5235
+ id: string;
5236
+ projectId: string;
5237
+ type: string;
5238
+ title: string | null;
5239
+ archived: boolean;
5240
+ createdByUserId: string;
5241
+ schemaVersion: number;
5242
+ createdAt: string;
5243
+ updatedAt: string;
5244
+ pinnedContext?: unknown;
5245
+ agentSession?: unknown;
5246
+ messages: Array<unknown>;
5247
+ oldestSequence: number | null;
5248
+ hasMore: boolean;
5249
+ };
5250
+ };
5251
+ };
5252
+ export type UpdateChatResponse = UpdateChatResponses[keyof UpdateChatResponses];
4510
5253
  export type GetUploadConfigurationData = {
4511
5254
  body: {
4512
5255
  /**