@dazl/api-client 1.0.31 → 1.0.32
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.
- package/dist/db/generated-types.d.ts +39 -2
- package/dist/db/generated-types.d.ts.map +1 -1
- package/dist/feature-toggles-config.d.ts +5 -0
- package/dist/feature-toggles-config.d.ts.map +1 -1
- package/dist/feature-toggles-config.js +5 -0
- package/dist/feature-toggles-config.js.map +1 -1
- package/dist/internal/index.d.ts +2 -2
- package/dist/internal/index.d.ts.map +1 -1
- package/dist/internal/index.js +1 -1
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/sdk.gen.d.ts +13 -1
- package/dist/internal/sdk.gen.d.ts.map +1 -1
- package/dist/internal/sdk.gen.js +74 -0
- package/dist/internal/sdk.gen.js.map +1 -1
- package/dist/internal/types.gen.d.ts +697 -6
- package/dist/internal/types.gen.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/db/generated-types.ts +42 -2
- package/src/feature-toggles-config.ts +5 -0
- package/src/internal/index.ts +2 -2
- package/src/internal/sdk.gen.ts +85 -1
- package/src/internal/types.gen.ts +1180 -439
|
@@ -1868,6 +1868,64 @@ export type GetRepoInfoResponses = {
|
|
|
1868
1868
|
};
|
|
1869
1869
|
};
|
|
1870
1870
|
export type GetRepoInfoResponse = GetRepoInfoResponses[keyof GetRepoInfoResponses];
|
|
1871
|
+
export type GetProjectRepoInfoData = {
|
|
1872
|
+
body?: never;
|
|
1873
|
+
path: {
|
|
1874
|
+
projectId: string;
|
|
1875
|
+
repoId: string;
|
|
1876
|
+
};
|
|
1877
|
+
query?: never;
|
|
1878
|
+
url: '/github/repo/project/{projectId}/{repoId}/info';
|
|
1879
|
+
};
|
|
1880
|
+
export type GetProjectRepoInfoErrors = {
|
|
1881
|
+
/**
|
|
1882
|
+
* Bad request - Invalid parameters or malformed JSON
|
|
1883
|
+
*/
|
|
1884
|
+
400: {
|
|
1885
|
+
message: string;
|
|
1886
|
+
issues?: string;
|
|
1887
|
+
};
|
|
1888
|
+
/**
|
|
1889
|
+
* Unauthorized
|
|
1890
|
+
*/
|
|
1891
|
+
401: ErrorResponse;
|
|
1892
|
+
/**
|
|
1893
|
+
* Forbidden
|
|
1894
|
+
*/
|
|
1895
|
+
403: ErrorResponse;
|
|
1896
|
+
/**
|
|
1897
|
+
* Not Found
|
|
1898
|
+
*/
|
|
1899
|
+
404: ErrorResponse;
|
|
1900
|
+
/**
|
|
1901
|
+
* Conflict
|
|
1902
|
+
*/
|
|
1903
|
+
409: ErrorResponse;
|
|
1904
|
+
/**
|
|
1905
|
+
* Internal server error
|
|
1906
|
+
*/
|
|
1907
|
+
500: ErrorResponse;
|
|
1908
|
+
/**
|
|
1909
|
+
* Service Unavailable
|
|
1910
|
+
*/
|
|
1911
|
+
503: ErrorResponse;
|
|
1912
|
+
};
|
|
1913
|
+
export type GetProjectRepoInfoError = GetProjectRepoInfoErrors[keyof GetProjectRepoInfoErrors];
|
|
1914
|
+
export type GetProjectRepoInfoResponses = {
|
|
1915
|
+
/**
|
|
1916
|
+
* Returns GitHub info for one of the project's linked repositories
|
|
1917
|
+
*/
|
|
1918
|
+
200: {
|
|
1919
|
+
repoFullName: string;
|
|
1920
|
+
token: string | null;
|
|
1921
|
+
id: string;
|
|
1922
|
+
installationId: number | null;
|
|
1923
|
+
createdAt: string;
|
|
1924
|
+
updatedAt: string;
|
|
1925
|
+
dirName: string | null;
|
|
1926
|
+
};
|
|
1927
|
+
};
|
|
1928
|
+
export type GetProjectRepoInfoResponse = GetProjectRepoInfoResponses[keyof GetProjectRepoInfoResponses];
|
|
1871
1929
|
export type CreateRepositoryData = {
|
|
1872
1930
|
body?: {
|
|
1873
1931
|
dazlId: string;
|
|
@@ -2970,14 +3028,157 @@ export type GetProjectInitDataResponses = {
|
|
|
2970
3028
|
*/
|
|
2971
3029
|
200: {
|
|
2972
3030
|
projectId: string;
|
|
2973
|
-
gitRepoURL: string;
|
|
3031
|
+
gitRepoURL: string | null;
|
|
2974
3032
|
gitBranchToClone: string | null;
|
|
2975
3033
|
gitBranchToCreate: string | null;
|
|
2976
|
-
createdAt: string;
|
|
2977
|
-
updatedAt: string;
|
|
3034
|
+
createdAt: string | null;
|
|
3035
|
+
updatedAt: string | null;
|
|
3036
|
+
repos: Array<{
|
|
3037
|
+
id: string;
|
|
3038
|
+
projectId: string;
|
|
3039
|
+
repoId: string | null;
|
|
3040
|
+
gitRepoURL: string;
|
|
3041
|
+
gitBranchToClone: string | null;
|
|
3042
|
+
gitBranchToCreate: string | null;
|
|
3043
|
+
dirName: string;
|
|
3044
|
+
attemptCount: number;
|
|
3045
|
+
position: number;
|
|
3046
|
+
createdAt: string;
|
|
3047
|
+
updatedAt: string;
|
|
3048
|
+
}>;
|
|
2978
3049
|
};
|
|
2979
3050
|
};
|
|
2980
3051
|
export type GetProjectInitDataResponse = GetProjectInitDataResponses[keyof GetProjectInitDataResponses];
|
|
3052
|
+
export type MarkRepoAsInitializedData = {
|
|
3053
|
+
body: {
|
|
3054
|
+
/**
|
|
3055
|
+
* The dazl ID of the requesting user, used for permission checks
|
|
3056
|
+
*/
|
|
3057
|
+
ownerDazlId: string;
|
|
3058
|
+
};
|
|
3059
|
+
path: {
|
|
3060
|
+
projectId: string;
|
|
3061
|
+
/**
|
|
3062
|
+
* The pending init repo entry that has been cloned
|
|
3063
|
+
*/
|
|
3064
|
+
initRepoId: string;
|
|
3065
|
+
};
|
|
3066
|
+
query?: never;
|
|
3067
|
+
url: '/project/{projectId}/project-init-data/{initRepoId}';
|
|
3068
|
+
};
|
|
3069
|
+
export type MarkRepoAsInitializedErrors = {
|
|
3070
|
+
/**
|
|
3071
|
+
* Bad request - Invalid parameters or malformed JSON
|
|
3072
|
+
*/
|
|
3073
|
+
400: {
|
|
3074
|
+
message: string;
|
|
3075
|
+
issues?: string;
|
|
3076
|
+
};
|
|
3077
|
+
/**
|
|
3078
|
+
* Unauthorized
|
|
3079
|
+
*/
|
|
3080
|
+
401: ErrorResponse;
|
|
3081
|
+
/**
|
|
3082
|
+
* Forbidden
|
|
3083
|
+
*/
|
|
3084
|
+
403: ErrorResponse;
|
|
3085
|
+
/**
|
|
3086
|
+
* Not Found
|
|
3087
|
+
*/
|
|
3088
|
+
404: ErrorResponse;
|
|
3089
|
+
/**
|
|
3090
|
+
* Conflict
|
|
3091
|
+
*/
|
|
3092
|
+
409: ErrorResponse;
|
|
3093
|
+
/**
|
|
3094
|
+
* Internal server error
|
|
3095
|
+
*/
|
|
3096
|
+
500: ErrorResponse;
|
|
3097
|
+
/**
|
|
3098
|
+
* Service Unavailable
|
|
3099
|
+
*/
|
|
3100
|
+
503: ErrorResponse;
|
|
3101
|
+
};
|
|
3102
|
+
export type MarkRepoAsInitializedError = MarkRepoAsInitializedErrors[keyof MarkRepoAsInitializedErrors];
|
|
3103
|
+
export type MarkRepoAsInitializedResponses = {
|
|
3104
|
+
/**
|
|
3105
|
+
* Confirms the repo was cloned: the pending entry is removed and its directory recorded on the repo link
|
|
3106
|
+
*/
|
|
3107
|
+
200: {
|
|
3108
|
+
projectId: string;
|
|
3109
|
+
initRepoId: string;
|
|
3110
|
+
dirName: string;
|
|
3111
|
+
};
|
|
3112
|
+
};
|
|
3113
|
+
export type MarkRepoAsInitializedResponse = MarkRepoAsInitializedResponses[keyof MarkRepoAsInitializedResponses];
|
|
3114
|
+
export type ReportRepoInitFailureData = {
|
|
3115
|
+
body: {
|
|
3116
|
+
/**
|
|
3117
|
+
* The dazl ID of the requesting user, used for permission checks
|
|
3118
|
+
*/
|
|
3119
|
+
ownerDazlId: string;
|
|
3120
|
+
};
|
|
3121
|
+
path: {
|
|
3122
|
+
projectId: string;
|
|
3123
|
+
/**
|
|
3124
|
+
* The pending init repo entry whose clone failed
|
|
3125
|
+
*/
|
|
3126
|
+
initRepoId: string;
|
|
3127
|
+
};
|
|
3128
|
+
query?: never;
|
|
3129
|
+
url: '/project/{projectId}/project-init-data/{initRepoId}/failure';
|
|
3130
|
+
};
|
|
3131
|
+
export type ReportRepoInitFailureErrors = {
|
|
3132
|
+
/**
|
|
3133
|
+
* Bad request - Invalid parameters or malformed JSON
|
|
3134
|
+
*/
|
|
3135
|
+
400: {
|
|
3136
|
+
message: string;
|
|
3137
|
+
issues?: string;
|
|
3138
|
+
};
|
|
3139
|
+
/**
|
|
3140
|
+
* Unauthorized
|
|
3141
|
+
*/
|
|
3142
|
+
401: ErrorResponse;
|
|
3143
|
+
/**
|
|
3144
|
+
* Forbidden
|
|
3145
|
+
*/
|
|
3146
|
+
403: ErrorResponse;
|
|
3147
|
+
/**
|
|
3148
|
+
* Not Found
|
|
3149
|
+
*/
|
|
3150
|
+
404: ErrorResponse;
|
|
3151
|
+
/**
|
|
3152
|
+
* Conflict
|
|
3153
|
+
*/
|
|
3154
|
+
409: ErrorResponse;
|
|
3155
|
+
/**
|
|
3156
|
+
* Internal server error
|
|
3157
|
+
*/
|
|
3158
|
+
500: ErrorResponse;
|
|
3159
|
+
/**
|
|
3160
|
+
* Service Unavailable
|
|
3161
|
+
*/
|
|
3162
|
+
503: ErrorResponse;
|
|
3163
|
+
};
|
|
3164
|
+
export type ReportRepoInitFailureError = ReportRepoInitFailureErrors[keyof ReportRepoInitFailureErrors];
|
|
3165
|
+
export type ReportRepoInitFailureResponses = {
|
|
3166
|
+
/**
|
|
3167
|
+
* Records a failed clone attempt; the entry is abandoned once the attempt cap is reached
|
|
3168
|
+
*/
|
|
3169
|
+
200: {
|
|
3170
|
+
projectId: string;
|
|
3171
|
+
initRepoId: string;
|
|
3172
|
+
dirName: string;
|
|
3173
|
+
attemptCount: number;
|
|
3174
|
+
maxAttempts: number;
|
|
3175
|
+
/**
|
|
3176
|
+
* True when the attempt cap was reached: the pending entry was removed and will not be retried
|
|
3177
|
+
*/
|
|
3178
|
+
abandoned: boolean;
|
|
3179
|
+
};
|
|
3180
|
+
};
|
|
3181
|
+
export type ReportRepoInitFailureResponse = ReportRepoInitFailureResponses[keyof ReportRepoInitFailureResponses];
|
|
2981
3182
|
export type CreateProjectData = {
|
|
2982
3183
|
body: {
|
|
2983
3184
|
name: string;
|
|
@@ -2992,6 +3193,11 @@ export type CreateProjectData = {
|
|
|
2992
3193
|
gitBranchToClone?: string | null;
|
|
2993
3194
|
gitBranchToCreate?: string | null;
|
|
2994
3195
|
};
|
|
3196
|
+
projectInitRepos?: Array<{
|
|
3197
|
+
gitRepoURL: string;
|
|
3198
|
+
gitBranchToClone?: string | null;
|
|
3199
|
+
gitBranchToCreate?: string | null;
|
|
3200
|
+
}>;
|
|
2995
3201
|
};
|
|
2996
3202
|
path?: never;
|
|
2997
3203
|
query?: never;
|
|
@@ -3033,13 +3239,165 @@ export type CreateProjectErrors = {
|
|
|
3033
3239
|
export type CreateProjectError = CreateProjectErrors[keyof CreateProjectErrors];
|
|
3034
3240
|
export type CreateProjectResponses = {
|
|
3035
3241
|
/**
|
|
3036
|
-
* Returns the created project
|
|
3242
|
+
* Returns the created project
|
|
3243
|
+
*/
|
|
3244
|
+
200: {
|
|
3245
|
+
project: ProjectRaw;
|
|
3246
|
+
};
|
|
3247
|
+
};
|
|
3248
|
+
export type CreateProjectResponse = CreateProjectResponses[keyof CreateProjectResponses];
|
|
3249
|
+
export type ListProjectReposData = {
|
|
3250
|
+
body?: never;
|
|
3251
|
+
path: {
|
|
3252
|
+
projectId: string;
|
|
3253
|
+
};
|
|
3254
|
+
query: {
|
|
3255
|
+
/**
|
|
3256
|
+
* The dazl ID of the requesting user, used for permission checks
|
|
3257
|
+
*/
|
|
3258
|
+
ownerDazlId: string;
|
|
3259
|
+
};
|
|
3260
|
+
url: '/project/{projectId}/repos';
|
|
3261
|
+
};
|
|
3262
|
+
export type ListProjectReposErrors = {
|
|
3263
|
+
/**
|
|
3264
|
+
* Bad request - Invalid parameters or malformed JSON
|
|
3265
|
+
*/
|
|
3266
|
+
400: {
|
|
3267
|
+
message: string;
|
|
3268
|
+
issues?: string;
|
|
3269
|
+
};
|
|
3270
|
+
/**
|
|
3271
|
+
* Unauthorized
|
|
3272
|
+
*/
|
|
3273
|
+
401: ErrorResponse;
|
|
3274
|
+
/**
|
|
3275
|
+
* Forbidden
|
|
3276
|
+
*/
|
|
3277
|
+
403: ErrorResponse;
|
|
3278
|
+
/**
|
|
3279
|
+
* Not Found
|
|
3280
|
+
*/
|
|
3281
|
+
404: ErrorResponse;
|
|
3282
|
+
/**
|
|
3283
|
+
* Conflict
|
|
3284
|
+
*/
|
|
3285
|
+
409: ErrorResponse;
|
|
3286
|
+
/**
|
|
3287
|
+
* Internal server error
|
|
3288
|
+
*/
|
|
3289
|
+
500: ErrorResponse;
|
|
3290
|
+
/**
|
|
3291
|
+
* Service Unavailable
|
|
3292
|
+
*/
|
|
3293
|
+
503: ErrorResponse;
|
|
3294
|
+
};
|
|
3295
|
+
export type ListProjectReposError = ListProjectReposErrors[keyof ListProjectReposErrors];
|
|
3296
|
+
export type ListProjectReposResponses = {
|
|
3297
|
+
/**
|
|
3298
|
+
* Returns the project's linked and pending git repositories
|
|
3299
|
+
*/
|
|
3300
|
+
200: {
|
|
3301
|
+
repos: Array<{
|
|
3302
|
+
repoId: string;
|
|
3303
|
+
repoFullName: string;
|
|
3304
|
+
host: string;
|
|
3305
|
+
/**
|
|
3306
|
+
* Directory under the project root the repo was cloned into; null for legacy root-layout repos
|
|
3307
|
+
*/
|
|
3308
|
+
dirName: string | null;
|
|
3309
|
+
hasActiveInstallation: boolean;
|
|
3310
|
+
}>;
|
|
3311
|
+
/**
|
|
3312
|
+
* Repos awaiting their clone by the session container
|
|
3313
|
+
*/
|
|
3314
|
+
pending: Array<{
|
|
3315
|
+
id: string;
|
|
3316
|
+
projectId: string;
|
|
3317
|
+
repoId: string | null;
|
|
3318
|
+
gitRepoURL: string;
|
|
3319
|
+
gitBranchToClone: string | null;
|
|
3320
|
+
gitBranchToCreate: string | null;
|
|
3321
|
+
dirName: string;
|
|
3322
|
+
attemptCount: number;
|
|
3323
|
+
position: number;
|
|
3324
|
+
createdAt: string;
|
|
3325
|
+
updatedAt: string;
|
|
3326
|
+
}>;
|
|
3327
|
+
};
|
|
3328
|
+
};
|
|
3329
|
+
export type ListProjectReposResponse = ListProjectReposResponses[keyof ListProjectReposResponses];
|
|
3330
|
+
export type AddProjectRepoData = {
|
|
3331
|
+
body: {
|
|
3332
|
+
/**
|
|
3333
|
+
* The dazl ID of the requesting user, used for permission checks
|
|
3334
|
+
*/
|
|
3335
|
+
ownerDazlId: string;
|
|
3336
|
+
gitRepoURL: string;
|
|
3337
|
+
gitBranchToClone?: string | null;
|
|
3338
|
+
gitBranchToCreate?: string | null;
|
|
3339
|
+
};
|
|
3340
|
+
path: {
|
|
3341
|
+
projectId: string;
|
|
3342
|
+
};
|
|
3343
|
+
query?: never;
|
|
3344
|
+
url: '/project/{projectId}/repos';
|
|
3345
|
+
};
|
|
3346
|
+
export type AddProjectRepoErrors = {
|
|
3347
|
+
/**
|
|
3348
|
+
* Bad request - Invalid parameters or malformed JSON
|
|
3349
|
+
*/
|
|
3350
|
+
400: {
|
|
3351
|
+
message: string;
|
|
3352
|
+
issues?: string;
|
|
3353
|
+
};
|
|
3354
|
+
/**
|
|
3355
|
+
* Unauthorized
|
|
3356
|
+
*/
|
|
3357
|
+
401: ErrorResponse;
|
|
3358
|
+
/**
|
|
3359
|
+
* Forbidden
|
|
3360
|
+
*/
|
|
3361
|
+
403: ErrorResponse;
|
|
3362
|
+
/**
|
|
3363
|
+
* Not Found
|
|
3364
|
+
*/
|
|
3365
|
+
404: ErrorResponse;
|
|
3366
|
+
/**
|
|
3367
|
+
* Conflict
|
|
3368
|
+
*/
|
|
3369
|
+
409: ErrorResponse;
|
|
3370
|
+
/**
|
|
3371
|
+
* Internal server error
|
|
3372
|
+
*/
|
|
3373
|
+
500: ErrorResponse;
|
|
3374
|
+
/**
|
|
3375
|
+
* Service Unavailable
|
|
3376
|
+
*/
|
|
3377
|
+
503: ErrorResponse;
|
|
3378
|
+
};
|
|
3379
|
+
export type AddProjectRepoError = AddProjectRepoErrors[keyof AddProjectRepoErrors];
|
|
3380
|
+
export type AddProjectRepoResponses = {
|
|
3381
|
+
/**
|
|
3382
|
+
* Attaches another git repository to the project; it is cloned into its dirName by the running session or on the next session start
|
|
3037
3383
|
*/
|
|
3038
3384
|
200: {
|
|
3039
|
-
|
|
3385
|
+
repo: {
|
|
3386
|
+
id: string;
|
|
3387
|
+
projectId: string;
|
|
3388
|
+
repoId: string | null;
|
|
3389
|
+
gitRepoURL: string;
|
|
3390
|
+
gitBranchToClone: string | null;
|
|
3391
|
+
gitBranchToCreate: string | null;
|
|
3392
|
+
dirName: string;
|
|
3393
|
+
attemptCount: number;
|
|
3394
|
+
position: number;
|
|
3395
|
+
createdAt: string;
|
|
3396
|
+
updatedAt: string;
|
|
3397
|
+
};
|
|
3040
3398
|
};
|
|
3041
3399
|
};
|
|
3042
|
-
export type
|
|
3400
|
+
export type AddProjectRepoResponse = AddProjectRepoResponses[keyof AddProjectRepoResponses];
|
|
3043
3401
|
export type GetUserProjectsData = {
|
|
3044
3402
|
body?: never;
|
|
3045
3403
|
path: {
|
|
@@ -4507,6 +4865,339 @@ export type RemoveTemplateSharedWithResponses = {
|
|
|
4507
4865
|
};
|
|
4508
4866
|
};
|
|
4509
4867
|
export type RemoveTemplateSharedWithResponse = RemoveTemplateSharedWithResponses[keyof RemoveTemplateSharedWithResponses];
|
|
4868
|
+
export type CreateChatData = {
|
|
4869
|
+
body: {
|
|
4870
|
+
projectId: string;
|
|
4871
|
+
ownerDazlId: string;
|
|
4872
|
+
type: string;
|
|
4873
|
+
createdByUserId: string;
|
|
4874
|
+
schemaVersion: number;
|
|
4875
|
+
};
|
|
4876
|
+
path?: never;
|
|
4877
|
+
query?: never;
|
|
4878
|
+
url: '/chat/create';
|
|
4879
|
+
};
|
|
4880
|
+
export type CreateChatErrors = {
|
|
4881
|
+
/**
|
|
4882
|
+
* Bad request - Invalid parameters or malformed JSON
|
|
4883
|
+
*/
|
|
4884
|
+
400: {
|
|
4885
|
+
message: string;
|
|
4886
|
+
issues?: string;
|
|
4887
|
+
};
|
|
4888
|
+
/**
|
|
4889
|
+
* Unauthorized
|
|
4890
|
+
*/
|
|
4891
|
+
401: ErrorResponse;
|
|
4892
|
+
/**
|
|
4893
|
+
* Forbidden
|
|
4894
|
+
*/
|
|
4895
|
+
403: ErrorResponse;
|
|
4896
|
+
/**
|
|
4897
|
+
* Not Found
|
|
4898
|
+
*/
|
|
4899
|
+
404: ErrorResponse;
|
|
4900
|
+
/**
|
|
4901
|
+
* Conflict
|
|
4902
|
+
*/
|
|
4903
|
+
409: ErrorResponse;
|
|
4904
|
+
/**
|
|
4905
|
+
* Internal server error
|
|
4906
|
+
*/
|
|
4907
|
+
500: ErrorResponse;
|
|
4908
|
+
/**
|
|
4909
|
+
* Service Unavailable
|
|
4910
|
+
*/
|
|
4911
|
+
503: ErrorResponse;
|
|
4912
|
+
};
|
|
4913
|
+
export type CreateChatError = CreateChatErrors[keyof CreateChatErrors];
|
|
4914
|
+
export type CreateChatResponses = {
|
|
4915
|
+
/**
|
|
4916
|
+
* Creates a new chat for the specified project.
|
|
4917
|
+
*/
|
|
4918
|
+
200: {
|
|
4919
|
+
chat: {
|
|
4920
|
+
id: string;
|
|
4921
|
+
projectId: string;
|
|
4922
|
+
type: string;
|
|
4923
|
+
title: string | null;
|
|
4924
|
+
archived: boolean;
|
|
4925
|
+
createdByUserId: string;
|
|
4926
|
+
schemaVersion: number;
|
|
4927
|
+
createdAt: string;
|
|
4928
|
+
updatedAt: string;
|
|
4929
|
+
pinnedContext?: unknown;
|
|
4930
|
+
agentSession?: unknown;
|
|
4931
|
+
messages: Array<unknown>;
|
|
4932
|
+
oldestSequence: number | null;
|
|
4933
|
+
hasMore: boolean;
|
|
4934
|
+
};
|
|
4935
|
+
};
|
|
4936
|
+
};
|
|
4937
|
+
export type CreateChatResponse = CreateChatResponses[keyof CreateChatResponses];
|
|
4938
|
+
export type ListProjectChatsData = {
|
|
4939
|
+
body?: never;
|
|
4940
|
+
path: {
|
|
4941
|
+
projectId: string;
|
|
4942
|
+
};
|
|
4943
|
+
query: {
|
|
4944
|
+
ownerDazlId: string;
|
|
4945
|
+
};
|
|
4946
|
+
url: '/chat/project/{projectId}';
|
|
4947
|
+
};
|
|
4948
|
+
export type ListProjectChatsErrors = {
|
|
4949
|
+
/**
|
|
4950
|
+
* Bad request - Invalid parameters or malformed JSON
|
|
4951
|
+
*/
|
|
4952
|
+
400: {
|
|
4953
|
+
message: string;
|
|
4954
|
+
issues?: string;
|
|
4955
|
+
};
|
|
4956
|
+
/**
|
|
4957
|
+
* Unauthorized
|
|
4958
|
+
*/
|
|
4959
|
+
401: ErrorResponse;
|
|
4960
|
+
/**
|
|
4961
|
+
* Forbidden
|
|
4962
|
+
*/
|
|
4963
|
+
403: ErrorResponse;
|
|
4964
|
+
/**
|
|
4965
|
+
* Not Found
|
|
4966
|
+
*/
|
|
4967
|
+
404: ErrorResponse;
|
|
4968
|
+
/**
|
|
4969
|
+
* Conflict
|
|
4970
|
+
*/
|
|
4971
|
+
409: ErrorResponse;
|
|
4972
|
+
/**
|
|
4973
|
+
* Internal server error
|
|
4974
|
+
*/
|
|
4975
|
+
500: ErrorResponse;
|
|
4976
|
+
/**
|
|
4977
|
+
* Service Unavailable
|
|
4978
|
+
*/
|
|
4979
|
+
503: ErrorResponse;
|
|
4980
|
+
};
|
|
4981
|
+
export type ListProjectChatsError = ListProjectChatsErrors[keyof ListProjectChatsErrors];
|
|
4982
|
+
export type ListProjectChatsResponses = {
|
|
4983
|
+
/**
|
|
4984
|
+
* Lists non-deleted chats for the project, ordered by updatedAt descending. Does not include messages.
|
|
4985
|
+
*/
|
|
4986
|
+
200: {
|
|
4987
|
+
chats: Array<{
|
|
4988
|
+
id: string;
|
|
4989
|
+
projectId: string;
|
|
4990
|
+
type: string;
|
|
4991
|
+
title: string | null;
|
|
4992
|
+
archived: boolean;
|
|
4993
|
+
createdByUserId: string;
|
|
4994
|
+
schemaVersion: number;
|
|
4995
|
+
createdAt: string;
|
|
4996
|
+
updatedAt: string;
|
|
4997
|
+
}>;
|
|
4998
|
+
};
|
|
4999
|
+
};
|
|
5000
|
+
export type ListProjectChatsResponse = ListProjectChatsResponses[keyof ListProjectChatsResponses];
|
|
5001
|
+
export type DeleteChatData = {
|
|
5002
|
+
body: {
|
|
5003
|
+
ownerDazlId: string;
|
|
5004
|
+
};
|
|
5005
|
+
path: {
|
|
5006
|
+
chatId: string;
|
|
5007
|
+
};
|
|
5008
|
+
query?: never;
|
|
5009
|
+
url: '/chat/{chatId}';
|
|
5010
|
+
};
|
|
5011
|
+
export type DeleteChatErrors = {
|
|
5012
|
+
/**
|
|
5013
|
+
* Bad request - Invalid parameters or malformed JSON
|
|
5014
|
+
*/
|
|
5015
|
+
400: {
|
|
5016
|
+
message: string;
|
|
5017
|
+
issues?: string;
|
|
5018
|
+
};
|
|
5019
|
+
/**
|
|
5020
|
+
* Unauthorized
|
|
5021
|
+
*/
|
|
5022
|
+
401: ErrorResponse;
|
|
5023
|
+
/**
|
|
5024
|
+
* Forbidden
|
|
5025
|
+
*/
|
|
5026
|
+
403: ErrorResponse;
|
|
5027
|
+
/**
|
|
5028
|
+
* Not Found
|
|
5029
|
+
*/
|
|
5030
|
+
404: ErrorResponse;
|
|
5031
|
+
/**
|
|
5032
|
+
* Conflict
|
|
5033
|
+
*/
|
|
5034
|
+
409: ErrorResponse;
|
|
5035
|
+
/**
|
|
5036
|
+
* Internal server error
|
|
5037
|
+
*/
|
|
5038
|
+
500: ErrorResponse;
|
|
5039
|
+
/**
|
|
5040
|
+
* Service Unavailable
|
|
5041
|
+
*/
|
|
5042
|
+
503: ErrorResponse;
|
|
5043
|
+
};
|
|
5044
|
+
export type DeleteChatError = DeleteChatErrors[keyof DeleteChatErrors];
|
|
5045
|
+
export type DeleteChatResponses = {
|
|
5046
|
+
/**
|
|
5047
|
+
* Soft-deletes the chat with the specified ID.
|
|
5048
|
+
*/
|
|
5049
|
+
200: {
|
|
5050
|
+
chatId: string;
|
|
5051
|
+
};
|
|
5052
|
+
};
|
|
5053
|
+
export type DeleteChatResponse = DeleteChatResponses[keyof DeleteChatResponses];
|
|
5054
|
+
export type GetChatData = {
|
|
5055
|
+
body?: never;
|
|
5056
|
+
path: {
|
|
5057
|
+
chatId: string;
|
|
5058
|
+
};
|
|
5059
|
+
query: {
|
|
5060
|
+
ownerDazlId: string;
|
|
5061
|
+
limit?: number;
|
|
5062
|
+
before?: number | null;
|
|
5063
|
+
};
|
|
5064
|
+
url: '/chat/{chatId}';
|
|
5065
|
+
};
|
|
5066
|
+
export type GetChatErrors = {
|
|
5067
|
+
/**
|
|
5068
|
+
* Bad request - Invalid parameters or malformed JSON
|
|
5069
|
+
*/
|
|
5070
|
+
400: {
|
|
5071
|
+
message: string;
|
|
5072
|
+
issues?: string;
|
|
5073
|
+
};
|
|
5074
|
+
/**
|
|
5075
|
+
* Unauthorized
|
|
5076
|
+
*/
|
|
5077
|
+
401: ErrorResponse;
|
|
5078
|
+
/**
|
|
5079
|
+
* Forbidden
|
|
5080
|
+
*/
|
|
5081
|
+
403: ErrorResponse;
|
|
5082
|
+
/**
|
|
5083
|
+
* Not Found
|
|
5084
|
+
*/
|
|
5085
|
+
404: ErrorResponse;
|
|
5086
|
+
/**
|
|
5087
|
+
* Conflict
|
|
5088
|
+
*/
|
|
5089
|
+
409: ErrorResponse;
|
|
5090
|
+
/**
|
|
5091
|
+
* Internal server error
|
|
5092
|
+
*/
|
|
5093
|
+
500: ErrorResponse;
|
|
5094
|
+
/**
|
|
5095
|
+
* Service Unavailable
|
|
5096
|
+
*/
|
|
5097
|
+
503: ErrorResponse;
|
|
5098
|
+
};
|
|
5099
|
+
export type GetChatError = GetChatErrors[keyof GetChatErrors];
|
|
5100
|
+
export type GetChatResponses = {
|
|
5101
|
+
/**
|
|
5102
|
+
* 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.
|
|
5103
|
+
*/
|
|
5104
|
+
200: {
|
|
5105
|
+
chat: {
|
|
5106
|
+
id: string;
|
|
5107
|
+
projectId: string;
|
|
5108
|
+
type: string;
|
|
5109
|
+
title: string | null;
|
|
5110
|
+
archived: boolean;
|
|
5111
|
+
createdByUserId: string;
|
|
5112
|
+
schemaVersion: number;
|
|
5113
|
+
createdAt: string;
|
|
5114
|
+
updatedAt: string;
|
|
5115
|
+
pinnedContext?: unknown;
|
|
5116
|
+
agentSession?: unknown;
|
|
5117
|
+
messages: Array<unknown>;
|
|
5118
|
+
oldestSequence: number | null;
|
|
5119
|
+
hasMore: boolean;
|
|
5120
|
+
};
|
|
5121
|
+
};
|
|
5122
|
+
};
|
|
5123
|
+
export type GetChatResponse = GetChatResponses[keyof GetChatResponses];
|
|
5124
|
+
export type UpdateChatData = {
|
|
5125
|
+
body: {
|
|
5126
|
+
ownerDazlId: string;
|
|
5127
|
+
title?: string;
|
|
5128
|
+
archived: boolean;
|
|
5129
|
+
pinnedContext?: unknown;
|
|
5130
|
+
agentSession?: unknown;
|
|
5131
|
+
schemaVersion: number;
|
|
5132
|
+
messages: Array<{
|
|
5133
|
+
id: string;
|
|
5134
|
+
[key: string]: unknown;
|
|
5135
|
+
}>;
|
|
5136
|
+
};
|
|
5137
|
+
path: {
|
|
5138
|
+
chatId: string;
|
|
5139
|
+
};
|
|
5140
|
+
query?: never;
|
|
5141
|
+
url: '/chat/{chatId}';
|
|
5142
|
+
};
|
|
5143
|
+
export type UpdateChatErrors = {
|
|
5144
|
+
/**
|
|
5145
|
+
* Bad request - Invalid parameters or malformed JSON
|
|
5146
|
+
*/
|
|
5147
|
+
400: {
|
|
5148
|
+
message: string;
|
|
5149
|
+
issues?: string;
|
|
5150
|
+
};
|
|
5151
|
+
/**
|
|
5152
|
+
* Unauthorized
|
|
5153
|
+
*/
|
|
5154
|
+
401: ErrorResponse;
|
|
5155
|
+
/**
|
|
5156
|
+
* Forbidden
|
|
5157
|
+
*/
|
|
5158
|
+
403: ErrorResponse;
|
|
5159
|
+
/**
|
|
5160
|
+
* Not Found
|
|
5161
|
+
*/
|
|
5162
|
+
404: ErrorResponse;
|
|
5163
|
+
/**
|
|
5164
|
+
* Conflict
|
|
5165
|
+
*/
|
|
5166
|
+
409: ErrorResponse;
|
|
5167
|
+
/**
|
|
5168
|
+
* Internal server error
|
|
5169
|
+
*/
|
|
5170
|
+
500: ErrorResponse;
|
|
5171
|
+
/**
|
|
5172
|
+
* Service Unavailable
|
|
5173
|
+
*/
|
|
5174
|
+
503: ErrorResponse;
|
|
5175
|
+
};
|
|
5176
|
+
export type UpdateChatError = UpdateChatErrors[keyof UpdateChatErrors];
|
|
5177
|
+
export type UpdateChatResponses = {
|
|
5178
|
+
/**
|
|
5179
|
+
* Replaces the chat's metadata and full message list (whole-document semantics, matching the caller's in-memory chat state).
|
|
5180
|
+
*/
|
|
5181
|
+
200: {
|
|
5182
|
+
chat: {
|
|
5183
|
+
id: string;
|
|
5184
|
+
projectId: string;
|
|
5185
|
+
type: string;
|
|
5186
|
+
title: string | null;
|
|
5187
|
+
archived: boolean;
|
|
5188
|
+
createdByUserId: string;
|
|
5189
|
+
schemaVersion: number;
|
|
5190
|
+
createdAt: string;
|
|
5191
|
+
updatedAt: string;
|
|
5192
|
+
pinnedContext?: unknown;
|
|
5193
|
+
agentSession?: unknown;
|
|
5194
|
+
messages: Array<unknown>;
|
|
5195
|
+
oldestSequence: number | null;
|
|
5196
|
+
hasMore: boolean;
|
|
5197
|
+
};
|
|
5198
|
+
};
|
|
5199
|
+
};
|
|
5200
|
+
export type UpdateChatResponse = UpdateChatResponses[keyof UpdateChatResponses];
|
|
4510
5201
|
export type GetUploadConfigurationData = {
|
|
4511
5202
|
body: {
|
|
4512
5203
|
/**
|