@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
|
@@ -2043,6 +2043,69 @@ export type GetRepoInfoResponses = {
|
|
|
2043
2043
|
|
|
2044
2044
|
export type GetRepoInfoResponse = GetRepoInfoResponses[keyof GetRepoInfoResponses];
|
|
2045
2045
|
|
|
2046
|
+
export type GetProjectRepoInfoData = {
|
|
2047
|
+
body?: never;
|
|
2048
|
+
path: {
|
|
2049
|
+
projectId: string;
|
|
2050
|
+
repoId: string;
|
|
2051
|
+
};
|
|
2052
|
+
query?: never;
|
|
2053
|
+
url: '/github/repo/project/{projectId}/{repoId}/info';
|
|
2054
|
+
};
|
|
2055
|
+
|
|
2056
|
+
export type GetProjectRepoInfoErrors = {
|
|
2057
|
+
/**
|
|
2058
|
+
* Bad request - Invalid parameters or malformed JSON
|
|
2059
|
+
*/
|
|
2060
|
+
400: {
|
|
2061
|
+
message: string;
|
|
2062
|
+
issues?: string;
|
|
2063
|
+
};
|
|
2064
|
+
/**
|
|
2065
|
+
* Unauthorized
|
|
2066
|
+
*/
|
|
2067
|
+
401: ErrorResponse;
|
|
2068
|
+
/**
|
|
2069
|
+
* Forbidden
|
|
2070
|
+
*/
|
|
2071
|
+
403: ErrorResponse;
|
|
2072
|
+
/**
|
|
2073
|
+
* Not Found
|
|
2074
|
+
*/
|
|
2075
|
+
404: ErrorResponse;
|
|
2076
|
+
/**
|
|
2077
|
+
* Conflict
|
|
2078
|
+
*/
|
|
2079
|
+
409: ErrorResponse;
|
|
2080
|
+
/**
|
|
2081
|
+
* Internal server error
|
|
2082
|
+
*/
|
|
2083
|
+
500: ErrorResponse;
|
|
2084
|
+
/**
|
|
2085
|
+
* Service Unavailable
|
|
2086
|
+
*/
|
|
2087
|
+
503: ErrorResponse;
|
|
2088
|
+
};
|
|
2089
|
+
|
|
2090
|
+
export type GetProjectRepoInfoError = GetProjectRepoInfoErrors[keyof GetProjectRepoInfoErrors];
|
|
2091
|
+
|
|
2092
|
+
export type GetProjectRepoInfoResponses = {
|
|
2093
|
+
/**
|
|
2094
|
+
* Returns GitHub info for one of the project's linked repositories
|
|
2095
|
+
*/
|
|
2096
|
+
200: {
|
|
2097
|
+
repoFullName: string;
|
|
2098
|
+
token: string | null;
|
|
2099
|
+
id: string;
|
|
2100
|
+
installationId: number | null;
|
|
2101
|
+
createdAt: string;
|
|
2102
|
+
updatedAt: string;
|
|
2103
|
+
dirName: string | null;
|
|
2104
|
+
};
|
|
2105
|
+
};
|
|
2106
|
+
|
|
2107
|
+
export type GetProjectRepoInfoResponse = GetProjectRepoInfoResponses[keyof GetProjectRepoInfoResponses];
|
|
2108
|
+
|
|
2046
2109
|
export type CreateRepositoryData = {
|
|
2047
2110
|
body?: {
|
|
2048
2111
|
dazlId: string;
|
|
@@ -3243,37 +3306,48 @@ export type GetProjectInitDataResponses = {
|
|
|
3243
3306
|
*/
|
|
3244
3307
|
200: {
|
|
3245
3308
|
projectId: string;
|
|
3246
|
-
gitRepoURL: string;
|
|
3309
|
+
gitRepoURL: string | null;
|
|
3247
3310
|
gitBranchToClone: string | null;
|
|
3248
3311
|
gitBranchToCreate: string | null;
|
|
3249
|
-
createdAt: string;
|
|
3250
|
-
updatedAt: string;
|
|
3312
|
+
createdAt: string | null;
|
|
3313
|
+
updatedAt: string | null;
|
|
3314
|
+
repos: 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
|
+
}>;
|
|
3251
3327
|
};
|
|
3252
3328
|
};
|
|
3253
3329
|
|
|
3254
3330
|
export type GetProjectInitDataResponse = GetProjectInitDataResponses[keyof GetProjectInitDataResponses];
|
|
3255
3331
|
|
|
3256
|
-
export type
|
|
3332
|
+
export type MarkRepoAsInitializedData = {
|
|
3257
3333
|
body: {
|
|
3258
|
-
|
|
3259
|
-
|
|
3260
|
-
|
|
3261
|
-
|
|
3262
|
-
|
|
3263
|
-
|
|
3264
|
-
|
|
3265
|
-
|
|
3266
|
-
|
|
3267
|
-
|
|
3268
|
-
|
|
3269
|
-
};
|
|
3334
|
+
/**
|
|
3335
|
+
* The dazl ID of the requesting user, used for permission checks
|
|
3336
|
+
*/
|
|
3337
|
+
ownerDazlId: string;
|
|
3338
|
+
};
|
|
3339
|
+
path: {
|
|
3340
|
+
projectId: string;
|
|
3341
|
+
/**
|
|
3342
|
+
* The pending init repo entry that has been cloned
|
|
3343
|
+
*/
|
|
3344
|
+
initRepoId: string;
|
|
3270
3345
|
};
|
|
3271
|
-
path?: never;
|
|
3272
3346
|
query?: never;
|
|
3273
|
-
url: '/project';
|
|
3347
|
+
url: '/project/{projectId}/project-init-data/{initRepoId}';
|
|
3274
3348
|
};
|
|
3275
3349
|
|
|
3276
|
-
export type
|
|
3350
|
+
export type MarkRepoAsInitializedErrors = {
|
|
3277
3351
|
/**
|
|
3278
3352
|
* Bad request - Invalid parameters or malformed JSON
|
|
3279
3353
|
*/
|
|
@@ -3307,53 +3381,40 @@ export type CreateProjectErrors = {
|
|
|
3307
3381
|
503: ErrorResponse;
|
|
3308
3382
|
};
|
|
3309
3383
|
|
|
3310
|
-
export type
|
|
3384
|
+
export type MarkRepoAsInitializedError = MarkRepoAsInitializedErrors[keyof MarkRepoAsInitializedErrors];
|
|
3311
3385
|
|
|
3312
|
-
export type
|
|
3386
|
+
export type MarkRepoAsInitializedResponses = {
|
|
3313
3387
|
/**
|
|
3314
|
-
*
|
|
3388
|
+
* Confirms the repo was cloned: the pending entry is removed and its directory recorded on the repo link
|
|
3315
3389
|
*/
|
|
3316
3390
|
200: {
|
|
3317
|
-
|
|
3391
|
+
projectId: string;
|
|
3392
|
+
initRepoId: string;
|
|
3393
|
+
dirName: string;
|
|
3318
3394
|
};
|
|
3319
3395
|
};
|
|
3320
3396
|
|
|
3321
|
-
export type
|
|
3397
|
+
export type MarkRepoAsInitializedResponse = MarkRepoAsInitializedResponses[keyof MarkRepoAsInitializedResponses];
|
|
3322
3398
|
|
|
3323
|
-
export type
|
|
3324
|
-
body
|
|
3325
|
-
path: {
|
|
3399
|
+
export type ReportRepoInitFailureData = {
|
|
3400
|
+
body: {
|
|
3326
3401
|
/**
|
|
3327
3402
|
* The dazl ID of the requesting user, used for permission checks
|
|
3328
3403
|
*/
|
|
3329
3404
|
ownerDazlId: string;
|
|
3330
3405
|
};
|
|
3331
|
-
|
|
3332
|
-
|
|
3333
|
-
* Filter projects by workspace ID
|
|
3334
|
-
*/
|
|
3335
|
-
workspaceId?: string;
|
|
3336
|
-
/**
|
|
3337
|
-
* Include deployed projects info in the response
|
|
3338
|
-
*/
|
|
3339
|
-
withDeploy?: boolean | null;
|
|
3340
|
-
/**
|
|
3341
|
-
* Include project screenshots url in the response
|
|
3342
|
-
*/
|
|
3343
|
-
withScreenshot?: boolean | null;
|
|
3344
|
-
/**
|
|
3345
|
-
* filter by origin template when provided
|
|
3346
|
-
*/
|
|
3347
|
-
originTemplateId?: string;
|
|
3406
|
+
path: {
|
|
3407
|
+
projectId: string;
|
|
3348
3408
|
/**
|
|
3349
|
-
*
|
|
3409
|
+
* The pending init repo entry whose clone failed
|
|
3350
3410
|
*/
|
|
3351
|
-
|
|
3411
|
+
initRepoId: string;
|
|
3352
3412
|
};
|
|
3353
|
-
|
|
3413
|
+
query?: never;
|
|
3414
|
+
url: '/project/{projectId}/project-init-data/{initRepoId}/failure';
|
|
3354
3415
|
};
|
|
3355
3416
|
|
|
3356
|
-
export type
|
|
3417
|
+
export type ReportRepoInitFailureErrors = {
|
|
3357
3418
|
/**
|
|
3358
3419
|
* Bad request - Invalid parameters or malformed JSON
|
|
3359
3420
|
*/
|
|
@@ -3387,42 +3448,53 @@ export type GetUserProjectsErrors = {
|
|
|
3387
3448
|
503: ErrorResponse;
|
|
3388
3449
|
};
|
|
3389
3450
|
|
|
3390
|
-
export type
|
|
3451
|
+
export type ReportRepoInitFailureError = ReportRepoInitFailureErrors[keyof ReportRepoInitFailureErrors];
|
|
3391
3452
|
|
|
3392
|
-
export type
|
|
3453
|
+
export type ReportRepoInitFailureResponses = {
|
|
3393
3454
|
/**
|
|
3394
|
-
*
|
|
3455
|
+
* Records a failed clone attempt; the entry is abandoned once the attempt cap is reached
|
|
3395
3456
|
*/
|
|
3396
3457
|
200: {
|
|
3397
|
-
|
|
3398
|
-
|
|
3399
|
-
|
|
3400
|
-
|
|
3401
|
-
|
|
3402
|
-
|
|
3403
|
-
|
|
3404
|
-
|
|
3405
|
-
|
|
3406
|
-
users?: Array<UserDisplayInfoResponse>;
|
|
3458
|
+
projectId: string;
|
|
3459
|
+
initRepoId: string;
|
|
3460
|
+
dirName: string;
|
|
3461
|
+
attemptCount: number;
|
|
3462
|
+
maxAttempts: number;
|
|
3463
|
+
/**
|
|
3464
|
+
* True when the attempt cap was reached: the pending entry was removed and will not be retried
|
|
3465
|
+
*/
|
|
3466
|
+
abandoned: boolean;
|
|
3407
3467
|
};
|
|
3408
3468
|
};
|
|
3409
3469
|
|
|
3410
|
-
export type
|
|
3470
|
+
export type ReportRepoInitFailureResponse = ReportRepoInitFailureResponses[keyof ReportRepoInitFailureResponses];
|
|
3411
3471
|
|
|
3412
|
-
export type
|
|
3472
|
+
export type CreateProjectData = {
|
|
3413
3473
|
body: {
|
|
3414
|
-
|
|
3415
|
-
|
|
3416
|
-
|
|
3417
|
-
|
|
3418
|
-
|
|
3419
|
-
|
|
3474
|
+
name: string;
|
|
3475
|
+
userDazlId: string;
|
|
3476
|
+
latestScreenshot?: string | null;
|
|
3477
|
+
originTemplateId?: string | null;
|
|
3478
|
+
createdAt?: string;
|
|
3479
|
+
workspaceId?: string;
|
|
3480
|
+
remoteEnvConfigId?: string | null;
|
|
3481
|
+
projectInitData?: {
|
|
3482
|
+
gitRepoURL: string;
|
|
3483
|
+
gitBranchToClone?: string | null;
|
|
3484
|
+
gitBranchToCreate?: string | null;
|
|
3485
|
+
};
|
|
3486
|
+
projectInitRepos?: Array<{
|
|
3487
|
+
gitRepoURL: string;
|
|
3488
|
+
gitBranchToClone?: string | null;
|
|
3489
|
+
gitBranchToCreate?: string | null;
|
|
3490
|
+
}>;
|
|
3420
3491
|
};
|
|
3492
|
+
path?: never;
|
|
3421
3493
|
query?: never;
|
|
3422
|
-
url: '/project
|
|
3494
|
+
url: '/project';
|
|
3423
3495
|
};
|
|
3424
3496
|
|
|
3425
|
-
export type
|
|
3497
|
+
export type CreateProjectErrors = {
|
|
3426
3498
|
/**
|
|
3427
3499
|
* Bad request - Invalid parameters or malformed JSON
|
|
3428
3500
|
*/
|
|
@@ -3456,31 +3528,34 @@ export type InviteProjectMemberErrors = {
|
|
|
3456
3528
|
503: ErrorResponse;
|
|
3457
3529
|
};
|
|
3458
3530
|
|
|
3459
|
-
export type
|
|
3531
|
+
export type CreateProjectError = CreateProjectErrors[keyof CreateProjectErrors];
|
|
3460
3532
|
|
|
3461
|
-
export type
|
|
3533
|
+
export type CreateProjectResponses = {
|
|
3462
3534
|
/**
|
|
3463
|
-
* Returns the
|
|
3535
|
+
* Returns the created project
|
|
3464
3536
|
*/
|
|
3465
3537
|
200: {
|
|
3466
|
-
|
|
3538
|
+
project: ProjectRaw;
|
|
3467
3539
|
};
|
|
3468
3540
|
};
|
|
3469
3541
|
|
|
3470
|
-
export type
|
|
3542
|
+
export type CreateProjectResponse = CreateProjectResponses[keyof CreateProjectResponses];
|
|
3471
3543
|
|
|
3472
|
-
export type
|
|
3544
|
+
export type ListProjectReposData = {
|
|
3473
3545
|
body?: never;
|
|
3474
3546
|
path: {
|
|
3475
3547
|
projectId: string;
|
|
3476
3548
|
};
|
|
3477
3549
|
query: {
|
|
3478
|
-
|
|
3550
|
+
/**
|
|
3551
|
+
* The dazl ID of the requesting user, used for permission checks
|
|
3552
|
+
*/
|
|
3553
|
+
ownerDazlId: string;
|
|
3479
3554
|
};
|
|
3480
|
-
url: '/project/{projectId}/
|
|
3555
|
+
url: '/project/{projectId}/repos';
|
|
3481
3556
|
};
|
|
3482
3557
|
|
|
3483
|
-
export type
|
|
3558
|
+
export type ListProjectReposErrors = {
|
|
3484
3559
|
/**
|
|
3485
3560
|
* Bad request - Invalid parameters or malformed JSON
|
|
3486
3561
|
*/
|
|
@@ -3514,56 +3589,62 @@ export type GetProjectCollaboratorsErrors = {
|
|
|
3514
3589
|
503: ErrorResponse;
|
|
3515
3590
|
};
|
|
3516
3591
|
|
|
3517
|
-
export type
|
|
3592
|
+
export type ListProjectReposError = ListProjectReposErrors[keyof ListProjectReposErrors];
|
|
3518
3593
|
|
|
3519
|
-
export type
|
|
3594
|
+
export type ListProjectReposResponses = {
|
|
3520
3595
|
/**
|
|
3521
|
-
* Returns the
|
|
3596
|
+
* Returns the project's linked and pending git repositories
|
|
3522
3597
|
*/
|
|
3523
3598
|
200: {
|
|
3524
|
-
|
|
3599
|
+
repos: Array<{
|
|
3600
|
+
repoId: string;
|
|
3601
|
+
repoFullName: string;
|
|
3602
|
+
host: string;
|
|
3525
3603
|
/**
|
|
3526
|
-
*
|
|
3527
|
-
*/
|
|
3528
|
-
id: string;
|
|
3529
|
-
email: string;
|
|
3530
|
-
name?: string;
|
|
3531
|
-
picture?: string;
|
|
3532
|
-
role: 'admin' | 'contributor' | 'viewer' | 'owner';
|
|
3533
|
-
} | null;
|
|
3534
|
-
members: Array<{
|
|
3535
|
-
/**
|
|
3536
|
-
* Dazl ID for the type = "user"
|
|
3604
|
+
* Directory under the project root the repo was cloned into; null for legacy root-layout repos
|
|
3537
3605
|
*/
|
|
3538
|
-
|
|
3539
|
-
|
|
3540
|
-
name?: string;
|
|
3541
|
-
picture?: string;
|
|
3542
|
-
role: 'admin' | 'contributor' | 'viewer' | 'owner';
|
|
3606
|
+
dirName: string | null;
|
|
3607
|
+
hasActiveInstallation: boolean;
|
|
3543
3608
|
}>;
|
|
3544
|
-
|
|
3545
|
-
|
|
3546
|
-
|
|
3609
|
+
/**
|
|
3610
|
+
* Repos awaiting their clone by the session container
|
|
3611
|
+
*/
|
|
3612
|
+
pending: Array<{
|
|
3547
3613
|
id: string;
|
|
3614
|
+
projectId: string;
|
|
3615
|
+
repoId: string | null;
|
|
3616
|
+
gitRepoURL: string;
|
|
3617
|
+
gitBranchToClone: string | null;
|
|
3618
|
+
gitBranchToCreate: string | null;
|
|
3619
|
+
dirName: string;
|
|
3620
|
+
attemptCount: number;
|
|
3621
|
+
position: number;
|
|
3622
|
+
createdAt: string;
|
|
3623
|
+
updatedAt: string;
|
|
3548
3624
|
}>;
|
|
3549
3625
|
};
|
|
3550
3626
|
};
|
|
3551
3627
|
|
|
3552
|
-
export type
|
|
3628
|
+
export type ListProjectReposResponse = ListProjectReposResponses[keyof ListProjectReposResponses];
|
|
3553
3629
|
|
|
3554
|
-
export type
|
|
3555
|
-
body
|
|
3630
|
+
export type AddProjectRepoData = {
|
|
3631
|
+
body: {
|
|
3632
|
+
/**
|
|
3633
|
+
* The dazl ID of the requesting user, used for permission checks
|
|
3634
|
+
*/
|
|
3635
|
+
ownerDazlId: string;
|
|
3636
|
+
gitRepoURL: string;
|
|
3637
|
+
gitBranchToClone?: string | null;
|
|
3638
|
+
gitBranchToCreate?: string | null;
|
|
3639
|
+
};
|
|
3556
3640
|
path: {
|
|
3557
3641
|
projectId: string;
|
|
3558
|
-
memberId: string;
|
|
3559
|
-
};
|
|
3560
|
-
query: {
|
|
3561
|
-
userDazlId: string;
|
|
3562
3642
|
};
|
|
3563
|
-
|
|
3643
|
+
query?: never;
|
|
3644
|
+
url: '/project/{projectId}/repos';
|
|
3564
3645
|
};
|
|
3565
3646
|
|
|
3566
|
-
export type
|
|
3647
|
+
export type AddProjectRepoErrors = {
|
|
3567
3648
|
/**
|
|
3568
3649
|
* Bad request - Invalid parameters or malformed JSON
|
|
3569
3650
|
*/
|
|
@@ -3597,32 +3678,65 @@ export type DeleteProjectMemberErrors = {
|
|
|
3597
3678
|
503: ErrorResponse;
|
|
3598
3679
|
};
|
|
3599
3680
|
|
|
3600
|
-
export type
|
|
3681
|
+
export type AddProjectRepoError = AddProjectRepoErrors[keyof AddProjectRepoErrors];
|
|
3601
3682
|
|
|
3602
|
-
export type
|
|
3683
|
+
export type AddProjectRepoResponses = {
|
|
3603
3684
|
/**
|
|
3604
|
-
*
|
|
3685
|
+
* Attaches another git repository to the project; it is cloned into its dirName by the running session or on the next session start
|
|
3605
3686
|
*/
|
|
3606
3687
|
200: {
|
|
3607
|
-
|
|
3688
|
+
repo: {
|
|
3689
|
+
id: string;
|
|
3690
|
+
projectId: string;
|
|
3691
|
+
repoId: string | null;
|
|
3692
|
+
gitRepoURL: string;
|
|
3693
|
+
gitBranchToClone: string | null;
|
|
3694
|
+
gitBranchToCreate: string | null;
|
|
3695
|
+
dirName: string;
|
|
3696
|
+
attemptCount: number;
|
|
3697
|
+
position: number;
|
|
3698
|
+
createdAt: string;
|
|
3699
|
+
updatedAt: string;
|
|
3700
|
+
};
|
|
3608
3701
|
};
|
|
3609
3702
|
};
|
|
3610
3703
|
|
|
3611
|
-
export type
|
|
3704
|
+
export type AddProjectRepoResponse = AddProjectRepoResponses[keyof AddProjectRepoResponses];
|
|
3612
3705
|
|
|
3613
|
-
export type
|
|
3706
|
+
export type GetUserProjectsData = {
|
|
3614
3707
|
body?: never;
|
|
3615
3708
|
path: {
|
|
3616
|
-
|
|
3617
|
-
|
|
3709
|
+
/**
|
|
3710
|
+
* The dazl ID of the requesting user, used for permission checks
|
|
3711
|
+
*/
|
|
3712
|
+
ownerDazlId: string;
|
|
3618
3713
|
};
|
|
3619
|
-
query
|
|
3620
|
-
|
|
3714
|
+
query?: {
|
|
3715
|
+
/**
|
|
3716
|
+
* Filter projects by workspace ID
|
|
3717
|
+
*/
|
|
3718
|
+
workspaceId?: string;
|
|
3719
|
+
/**
|
|
3720
|
+
* Include deployed projects info in the response
|
|
3721
|
+
*/
|
|
3722
|
+
withDeploy?: boolean | null;
|
|
3723
|
+
/**
|
|
3724
|
+
* Include project screenshots url in the response
|
|
3725
|
+
*/
|
|
3726
|
+
withScreenshot?: boolean | null;
|
|
3727
|
+
/**
|
|
3728
|
+
* filter by origin template when provided
|
|
3729
|
+
*/
|
|
3730
|
+
originTemplateId?: string;
|
|
3731
|
+
/**
|
|
3732
|
+
* Include associated users metadata in the response
|
|
3733
|
+
*/
|
|
3734
|
+
withAssociatedUsers?: boolean | null;
|
|
3621
3735
|
};
|
|
3622
|
-
url: '/project/
|
|
3736
|
+
url: '/project/user/{ownerDazlId}';
|
|
3623
3737
|
};
|
|
3624
3738
|
|
|
3625
|
-
export type
|
|
3739
|
+
export type GetUserProjectsErrors = {
|
|
3626
3740
|
/**
|
|
3627
3741
|
* Bad request - Invalid parameters or malformed JSON
|
|
3628
3742
|
*/
|
|
@@ -3656,32 +3770,42 @@ export type DeleteProjectInvitationErrors = {
|
|
|
3656
3770
|
503: ErrorResponse;
|
|
3657
3771
|
};
|
|
3658
3772
|
|
|
3659
|
-
export type
|
|
3773
|
+
export type GetUserProjectsError = GetUserProjectsErrors[keyof GetUserProjectsErrors];
|
|
3660
3774
|
|
|
3661
|
-
export type
|
|
3775
|
+
export type GetUserProjectsResponses = {
|
|
3662
3776
|
/**
|
|
3663
|
-
*
|
|
3777
|
+
* Returns the list of projects for the specified user
|
|
3664
3778
|
*/
|
|
3665
3779
|
200: {
|
|
3666
|
-
|
|
3780
|
+
projects: Array<ProjectRaw & {
|
|
3781
|
+
deploy: {
|
|
3782
|
+
publishedAt: string;
|
|
3783
|
+
productionURL: string;
|
|
3784
|
+
netlifyDeployId: string;
|
|
3785
|
+
} | null;
|
|
3786
|
+
screenshotUrl: string | null;
|
|
3787
|
+
productName: string | null;
|
|
3788
|
+
}>;
|
|
3789
|
+
users?: Array<UserDisplayInfoResponse>;
|
|
3667
3790
|
};
|
|
3668
3791
|
};
|
|
3669
3792
|
|
|
3670
|
-
export type
|
|
3793
|
+
export type GetUserProjectsResponse = GetUserProjectsResponses[keyof GetUserProjectsResponses];
|
|
3671
3794
|
|
|
3672
|
-
export type
|
|
3673
|
-
body
|
|
3795
|
+
export type InviteProjectMemberData = {
|
|
3796
|
+
body: {
|
|
3797
|
+
email: string;
|
|
3798
|
+
invitedByDazlId: string;
|
|
3799
|
+
role: 'admin' | 'contributor' | 'viewer';
|
|
3800
|
+
};
|
|
3674
3801
|
path: {
|
|
3675
3802
|
projectId: string;
|
|
3676
|
-
commentId: string;
|
|
3677
|
-
};
|
|
3678
|
-
query?: {
|
|
3679
|
-
editorDazlUserId?: string;
|
|
3680
3803
|
};
|
|
3681
|
-
|
|
3804
|
+
query?: never;
|
|
3805
|
+
url: '/project/{projectId}/members/invite';
|
|
3682
3806
|
};
|
|
3683
3807
|
|
|
3684
|
-
export type
|
|
3808
|
+
export type InviteProjectMemberErrors = {
|
|
3685
3809
|
/**
|
|
3686
3810
|
* Bad request - Invalid parameters or malformed JSON
|
|
3687
3811
|
*/
|
|
@@ -3715,30 +3839,31 @@ export type InternalDeleteCommentErrors = {
|
|
|
3715
3839
|
503: ErrorResponse;
|
|
3716
3840
|
};
|
|
3717
3841
|
|
|
3718
|
-
export type
|
|
3842
|
+
export type InviteProjectMemberError = InviteProjectMemberErrors[keyof InviteProjectMemberErrors];
|
|
3719
3843
|
|
|
3720
|
-
export type
|
|
3844
|
+
export type InviteProjectMemberResponses = {
|
|
3721
3845
|
/**
|
|
3722
|
-
*
|
|
3846
|
+
* Returns the invitation token, or null if user was auto-added to project
|
|
3723
3847
|
*/
|
|
3724
3848
|
200: {
|
|
3725
|
-
|
|
3849
|
+
token: string | null;
|
|
3726
3850
|
};
|
|
3727
3851
|
};
|
|
3728
3852
|
|
|
3729
|
-
export type
|
|
3853
|
+
export type InviteProjectMemberResponse = InviteProjectMemberResponses[keyof InviteProjectMemberResponses];
|
|
3730
3854
|
|
|
3731
|
-
export type
|
|
3855
|
+
export type GetProjectCollaboratorsData = {
|
|
3732
3856
|
body?: never;
|
|
3733
3857
|
path: {
|
|
3734
3858
|
projectId: string;
|
|
3735
|
-
commentId: string;
|
|
3736
3859
|
};
|
|
3737
|
-
query
|
|
3738
|
-
|
|
3860
|
+
query: {
|
|
3861
|
+
userDazlId: string;
|
|
3862
|
+
};
|
|
3863
|
+
url: '/project/{projectId}/collaborators';
|
|
3739
3864
|
};
|
|
3740
3865
|
|
|
3741
|
-
export type
|
|
3866
|
+
export type GetProjectCollaboratorsErrors = {
|
|
3742
3867
|
/**
|
|
3743
3868
|
* Bad request - Invalid parameters or malformed JSON
|
|
3744
3869
|
*/
|
|
@@ -3772,55 +3897,56 @@ export type InternalGetProjectCommentErrors = {
|
|
|
3772
3897
|
503: ErrorResponse;
|
|
3773
3898
|
};
|
|
3774
3899
|
|
|
3775
|
-
export type
|
|
3900
|
+
export type GetProjectCollaboratorsError = GetProjectCollaboratorsErrors[keyof GetProjectCollaboratorsErrors];
|
|
3776
3901
|
|
|
3777
|
-
export type
|
|
3902
|
+
export type GetProjectCollaboratorsResponses = {
|
|
3778
3903
|
/**
|
|
3779
|
-
* Returns
|
|
3904
|
+
* Returns the list of project collaborators: both members and invitations
|
|
3780
3905
|
*/
|
|
3781
3906
|
200: {
|
|
3782
|
-
|
|
3783
|
-
|
|
3784
|
-
|
|
3785
|
-
|
|
3786
|
-
|
|
3787
|
-
|
|
3788
|
-
|
|
3789
|
-
|
|
3790
|
-
|
|
3791
|
-
|
|
3792
|
-
|
|
3793
|
-
|
|
3794
|
-
|
|
3795
|
-
|
|
3796
|
-
|
|
3797
|
-
|
|
3798
|
-
|
|
3799
|
-
|
|
3800
|
-
|
|
3801
|
-
|
|
3802
|
-
|
|
3803
|
-
|
|
3804
|
-
|
|
3805
|
-
|
|
3806
|
-
|
|
3807
|
-
};
|
|
3907
|
+
owner: {
|
|
3908
|
+
/**
|
|
3909
|
+
* Dazl ID for the type = "user"
|
|
3910
|
+
*/
|
|
3911
|
+
id: string;
|
|
3912
|
+
email: string;
|
|
3913
|
+
name?: string;
|
|
3914
|
+
picture?: string;
|
|
3915
|
+
role: 'admin' | 'contributor' | 'viewer' | 'owner';
|
|
3916
|
+
} | null;
|
|
3917
|
+
members: Array<{
|
|
3918
|
+
/**
|
|
3919
|
+
* Dazl ID for the type = "user"
|
|
3920
|
+
*/
|
|
3921
|
+
id: string;
|
|
3922
|
+
email: string;
|
|
3923
|
+
name?: string;
|
|
3924
|
+
picture?: string;
|
|
3925
|
+
role: 'admin' | 'contributor' | 'viewer' | 'owner';
|
|
3926
|
+
}>;
|
|
3927
|
+
invited: Array<{
|
|
3928
|
+
role: 'admin' | 'contributor' | 'viewer';
|
|
3929
|
+
email?: string;
|
|
3930
|
+
id: string;
|
|
3931
|
+
}>;
|
|
3808
3932
|
};
|
|
3809
3933
|
};
|
|
3810
3934
|
|
|
3811
|
-
export type
|
|
3935
|
+
export type GetProjectCollaboratorsResponse = GetProjectCollaboratorsResponses[keyof GetProjectCollaboratorsResponses];
|
|
3812
3936
|
|
|
3813
|
-
export type
|
|
3814
|
-
body
|
|
3937
|
+
export type DeleteProjectMemberData = {
|
|
3938
|
+
body?: never;
|
|
3815
3939
|
path: {
|
|
3816
3940
|
projectId: string;
|
|
3817
|
-
|
|
3941
|
+
memberId: string;
|
|
3818
3942
|
};
|
|
3819
|
-
query
|
|
3820
|
-
|
|
3943
|
+
query: {
|
|
3944
|
+
userDazlId: string;
|
|
3945
|
+
};
|
|
3946
|
+
url: '/project/{projectId}/members/{memberId}';
|
|
3821
3947
|
};
|
|
3822
3948
|
|
|
3823
|
-
export type
|
|
3949
|
+
export type DeleteProjectMemberErrors = {
|
|
3824
3950
|
/**
|
|
3825
3951
|
* Bad request - Invalid parameters or malformed JSON
|
|
3826
3952
|
*/
|
|
@@ -3854,54 +3980,32 @@ export type InternalEditCommentErrors = {
|
|
|
3854
3980
|
503: ErrorResponse;
|
|
3855
3981
|
};
|
|
3856
3982
|
|
|
3857
|
-
export type
|
|
3983
|
+
export type DeleteProjectMemberError = DeleteProjectMemberErrors[keyof DeleteProjectMemberErrors];
|
|
3858
3984
|
|
|
3859
|
-
export type
|
|
3985
|
+
export type DeleteProjectMemberResponses = {
|
|
3860
3986
|
/**
|
|
3861
|
-
*
|
|
3987
|
+
* Acknowledges that the project member was deleted
|
|
3862
3988
|
*/
|
|
3863
3989
|
200: {
|
|
3864
|
-
|
|
3865
|
-
commentId: string;
|
|
3866
|
-
author: {
|
|
3867
|
-
dazlUserId: string;
|
|
3868
|
-
};
|
|
3869
|
-
content: string;
|
|
3870
|
-
mentions: Array<UserMention>;
|
|
3871
|
-
createdAt: string;
|
|
3872
|
-
updatedAt: string;
|
|
3873
|
-
lastActivityAt: string;
|
|
3874
|
-
isEdited: boolean;
|
|
3875
|
-
replies: Array<{
|
|
3876
|
-
replyId: string;
|
|
3877
|
-
author: {
|
|
3878
|
-
dazlUserId: string;
|
|
3879
|
-
};
|
|
3880
|
-
content: string;
|
|
3881
|
-
mentions: Array<UserMention>;
|
|
3882
|
-
createdAt: string;
|
|
3883
|
-
updatedAt: string;
|
|
3884
|
-
gitInfo?: CommentGitInfo;
|
|
3885
|
-
}>;
|
|
3886
|
-
resolved?: CommentResolved;
|
|
3887
|
-
context?: CommentContext;
|
|
3888
|
-
gitInfo?: CommentGitInfo;
|
|
3889
|
-
};
|
|
3990
|
+
status: 'deleted';
|
|
3890
3991
|
};
|
|
3891
3992
|
};
|
|
3892
3993
|
|
|
3893
|
-
export type
|
|
3994
|
+
export type DeleteProjectMemberResponse = DeleteProjectMemberResponses[keyof DeleteProjectMemberResponses];
|
|
3894
3995
|
|
|
3895
|
-
export type
|
|
3996
|
+
export type DeleteProjectInvitationData = {
|
|
3896
3997
|
body?: never;
|
|
3897
3998
|
path: {
|
|
3898
3999
|
projectId: string;
|
|
4000
|
+
invitationId: string;
|
|
3899
4001
|
};
|
|
3900
|
-
query
|
|
3901
|
-
|
|
4002
|
+
query: {
|
|
4003
|
+
userDazlId: string;
|
|
4004
|
+
};
|
|
4005
|
+
url: '/project/{projectId}/invitations/{invitationId}';
|
|
3902
4006
|
};
|
|
3903
4007
|
|
|
3904
|
-
export type
|
|
4008
|
+
export type DeleteProjectInvitationErrors = {
|
|
3905
4009
|
/**
|
|
3906
4010
|
* Bad request - Invalid parameters or malformed JSON
|
|
3907
4011
|
*/
|
|
@@ -3935,54 +4039,32 @@ export type InternalListProjectCommentsErrors = {
|
|
|
3935
4039
|
503: ErrorResponse;
|
|
3936
4040
|
};
|
|
3937
4041
|
|
|
3938
|
-
export type
|
|
4042
|
+
export type DeleteProjectInvitationError = DeleteProjectInvitationErrors[keyof DeleteProjectInvitationErrors];
|
|
3939
4043
|
|
|
3940
|
-
export type
|
|
4044
|
+
export type DeleteProjectInvitationResponses = {
|
|
3941
4045
|
/**
|
|
3942
|
-
*
|
|
4046
|
+
* Acknowledges that the project invitation was deleted
|
|
3943
4047
|
*/
|
|
3944
4048
|
200: {
|
|
3945
|
-
|
|
3946
|
-
commentId: string;
|
|
3947
|
-
author: {
|
|
3948
|
-
dazlUserId: string;
|
|
3949
|
-
};
|
|
3950
|
-
content: string;
|
|
3951
|
-
mentions: Array<UserMention>;
|
|
3952
|
-
createdAt: string;
|
|
3953
|
-
updatedAt: string;
|
|
3954
|
-
lastActivityAt: string;
|
|
3955
|
-
isEdited: boolean;
|
|
3956
|
-
replies: Array<{
|
|
3957
|
-
replyId: string;
|
|
3958
|
-
author: {
|
|
3959
|
-
dazlUserId: string;
|
|
3960
|
-
};
|
|
3961
|
-
content: string;
|
|
3962
|
-
mentions: Array<UserMention>;
|
|
3963
|
-
createdAt: string;
|
|
3964
|
-
updatedAt: string;
|
|
3965
|
-
gitInfo?: CommentGitInfo;
|
|
3966
|
-
}>;
|
|
3967
|
-
resolved?: CommentResolved;
|
|
3968
|
-
context?: CommentContext;
|
|
3969
|
-
gitInfo?: CommentGitInfo;
|
|
3970
|
-
}>;
|
|
4049
|
+
status: 'deleted';
|
|
3971
4050
|
};
|
|
3972
4051
|
};
|
|
3973
4052
|
|
|
3974
|
-
export type
|
|
4053
|
+
export type DeleteProjectInvitationResponse = DeleteProjectInvitationResponses[keyof DeleteProjectInvitationResponses];
|
|
3975
4054
|
|
|
3976
|
-
export type
|
|
3977
|
-
body
|
|
4055
|
+
export type InternalDeleteCommentData = {
|
|
4056
|
+
body?: never;
|
|
3978
4057
|
path: {
|
|
3979
4058
|
projectId: string;
|
|
4059
|
+
commentId: string;
|
|
3980
4060
|
};
|
|
3981
|
-
query?:
|
|
3982
|
-
|
|
4061
|
+
query?: {
|
|
4062
|
+
editorDazlUserId?: string;
|
|
4063
|
+
};
|
|
4064
|
+
url: '/project/{projectId}/comments/{commentId}';
|
|
3983
4065
|
};
|
|
3984
4066
|
|
|
3985
|
-
export type
|
|
4067
|
+
export type InternalDeleteCommentErrors = {
|
|
3986
4068
|
/**
|
|
3987
4069
|
* Bad request - Invalid parameters or malformed JSON
|
|
3988
4070
|
*/
|
|
@@ -4016,11 +4098,68 @@ export type InternalCreateCommentErrors = {
|
|
|
4016
4098
|
503: ErrorResponse;
|
|
4017
4099
|
};
|
|
4018
4100
|
|
|
4019
|
-
export type
|
|
4101
|
+
export type InternalDeleteCommentError = InternalDeleteCommentErrors[keyof InternalDeleteCommentErrors];
|
|
4020
4102
|
|
|
4021
|
-
export type
|
|
4103
|
+
export type InternalDeleteCommentResponses = {
|
|
4022
4104
|
/**
|
|
4023
|
-
*
|
|
4105
|
+
* Acknowledges that the comment was deleted
|
|
4106
|
+
*/
|
|
4107
|
+
200: {
|
|
4108
|
+
success: true;
|
|
4109
|
+
};
|
|
4110
|
+
};
|
|
4111
|
+
|
|
4112
|
+
export type InternalDeleteCommentResponse = InternalDeleteCommentResponses[keyof InternalDeleteCommentResponses];
|
|
4113
|
+
|
|
4114
|
+
export type InternalGetProjectCommentData = {
|
|
4115
|
+
body?: never;
|
|
4116
|
+
path: {
|
|
4117
|
+
projectId: string;
|
|
4118
|
+
commentId: string;
|
|
4119
|
+
};
|
|
4120
|
+
query?: never;
|
|
4121
|
+
url: '/project/{projectId}/comments/{commentId}';
|
|
4122
|
+
};
|
|
4123
|
+
|
|
4124
|
+
export type InternalGetProjectCommentErrors = {
|
|
4125
|
+
/**
|
|
4126
|
+
* Bad request - Invalid parameters or malformed JSON
|
|
4127
|
+
*/
|
|
4128
|
+
400: {
|
|
4129
|
+
message: string;
|
|
4130
|
+
issues?: string;
|
|
4131
|
+
};
|
|
4132
|
+
/**
|
|
4133
|
+
* Unauthorized
|
|
4134
|
+
*/
|
|
4135
|
+
401: ErrorResponse;
|
|
4136
|
+
/**
|
|
4137
|
+
* Forbidden
|
|
4138
|
+
*/
|
|
4139
|
+
403: ErrorResponse;
|
|
4140
|
+
/**
|
|
4141
|
+
* Not Found
|
|
4142
|
+
*/
|
|
4143
|
+
404: ErrorResponse;
|
|
4144
|
+
/**
|
|
4145
|
+
* Conflict
|
|
4146
|
+
*/
|
|
4147
|
+
409: ErrorResponse;
|
|
4148
|
+
/**
|
|
4149
|
+
* Internal server error
|
|
4150
|
+
*/
|
|
4151
|
+
500: ErrorResponse;
|
|
4152
|
+
/**
|
|
4153
|
+
* Service Unavailable
|
|
4154
|
+
*/
|
|
4155
|
+
503: ErrorResponse;
|
|
4156
|
+
};
|
|
4157
|
+
|
|
4158
|
+
export type InternalGetProjectCommentError = InternalGetProjectCommentErrors[keyof InternalGetProjectCommentErrors];
|
|
4159
|
+
|
|
4160
|
+
export type InternalGetProjectCommentResponses = {
|
|
4161
|
+
/**
|
|
4162
|
+
* Returns comment by id for the project
|
|
4024
4163
|
*/
|
|
4025
4164
|
200: {
|
|
4026
4165
|
comment: {
|
|
@@ -4052,21 +4191,19 @@ export type InternalCreateCommentResponses = {
|
|
|
4052
4191
|
};
|
|
4053
4192
|
};
|
|
4054
4193
|
|
|
4055
|
-
export type
|
|
4194
|
+
export type InternalGetProjectCommentResponse = InternalGetProjectCommentResponses[keyof InternalGetProjectCommentResponses];
|
|
4056
4195
|
|
|
4057
|
-
export type
|
|
4058
|
-
body
|
|
4196
|
+
export type InternalEditCommentData = {
|
|
4197
|
+
body: InternalEditCommentInput;
|
|
4059
4198
|
path: {
|
|
4060
4199
|
projectId: string;
|
|
4061
4200
|
commentId: string;
|
|
4062
4201
|
};
|
|
4063
|
-
query
|
|
4064
|
-
|
|
4065
|
-
};
|
|
4066
|
-
url: '/project/{projectId}/comments/{commentId}/resolve';
|
|
4202
|
+
query?: never;
|
|
4203
|
+
url: '/project/{projectId}/comments/{commentId}';
|
|
4067
4204
|
};
|
|
4068
4205
|
|
|
4069
|
-
export type
|
|
4206
|
+
export type InternalEditCommentErrors = {
|
|
4070
4207
|
/**
|
|
4071
4208
|
* Bad request - Invalid parameters or malformed JSON
|
|
4072
4209
|
*/
|
|
@@ -4100,11 +4237,11 @@ export type InternalResolveCommentErrors = {
|
|
|
4100
4237
|
503: ErrorResponse;
|
|
4101
4238
|
};
|
|
4102
4239
|
|
|
4103
|
-
export type
|
|
4240
|
+
export type InternalEditCommentError = InternalEditCommentErrors[keyof InternalEditCommentErrors];
|
|
4104
4241
|
|
|
4105
|
-
export type
|
|
4242
|
+
export type InternalEditCommentResponses = {
|
|
4106
4243
|
/**
|
|
4107
|
-
* Returns the
|
|
4244
|
+
* Returns the updated comment
|
|
4108
4245
|
*/
|
|
4109
4246
|
200: {
|
|
4110
4247
|
comment: {
|
|
@@ -4136,19 +4273,18 @@ export type InternalResolveCommentResponses = {
|
|
|
4136
4273
|
};
|
|
4137
4274
|
};
|
|
4138
4275
|
|
|
4139
|
-
export type
|
|
4276
|
+
export type InternalEditCommentResponse = InternalEditCommentResponses[keyof InternalEditCommentResponses];
|
|
4140
4277
|
|
|
4141
|
-
export type
|
|
4278
|
+
export type InternalListProjectCommentsData = {
|
|
4142
4279
|
body?: never;
|
|
4143
4280
|
path: {
|
|
4144
4281
|
projectId: string;
|
|
4145
|
-
commentId: string;
|
|
4146
4282
|
};
|
|
4147
4283
|
query?: never;
|
|
4148
|
-
url: '/project/{projectId}/comments
|
|
4284
|
+
url: '/project/{projectId}/comments';
|
|
4149
4285
|
};
|
|
4150
4286
|
|
|
4151
|
-
export type
|
|
4287
|
+
export type InternalListProjectCommentsErrors = {
|
|
4152
4288
|
/**
|
|
4153
4289
|
* Bad request - Invalid parameters or malformed JSON
|
|
4154
4290
|
*/
|
|
@@ -4182,11 +4318,92 @@ export type InternalReopenCommentErrors = {
|
|
|
4182
4318
|
503: ErrorResponse;
|
|
4183
4319
|
};
|
|
4184
4320
|
|
|
4185
|
-
export type
|
|
4321
|
+
export type InternalListProjectCommentsError = InternalListProjectCommentsErrors[keyof InternalListProjectCommentsErrors];
|
|
4186
4322
|
|
|
4187
|
-
export type
|
|
4323
|
+
export type InternalListProjectCommentsResponses = {
|
|
4188
4324
|
/**
|
|
4189
|
-
* Returns the
|
|
4325
|
+
* Returns the list of comments for the project
|
|
4326
|
+
*/
|
|
4327
|
+
200: {
|
|
4328
|
+
comments: Array<{
|
|
4329
|
+
commentId: string;
|
|
4330
|
+
author: {
|
|
4331
|
+
dazlUserId: string;
|
|
4332
|
+
};
|
|
4333
|
+
content: string;
|
|
4334
|
+
mentions: Array<UserMention>;
|
|
4335
|
+
createdAt: string;
|
|
4336
|
+
updatedAt: string;
|
|
4337
|
+
lastActivityAt: string;
|
|
4338
|
+
isEdited: boolean;
|
|
4339
|
+
replies: Array<{
|
|
4340
|
+
replyId: string;
|
|
4341
|
+
author: {
|
|
4342
|
+
dazlUserId: string;
|
|
4343
|
+
};
|
|
4344
|
+
content: string;
|
|
4345
|
+
mentions: Array<UserMention>;
|
|
4346
|
+
createdAt: string;
|
|
4347
|
+
updatedAt: string;
|
|
4348
|
+
gitInfo?: CommentGitInfo;
|
|
4349
|
+
}>;
|
|
4350
|
+
resolved?: CommentResolved;
|
|
4351
|
+
context?: CommentContext;
|
|
4352
|
+
gitInfo?: CommentGitInfo;
|
|
4353
|
+
}>;
|
|
4354
|
+
};
|
|
4355
|
+
};
|
|
4356
|
+
|
|
4357
|
+
export type InternalListProjectCommentsResponse = InternalListProjectCommentsResponses[keyof InternalListProjectCommentsResponses];
|
|
4358
|
+
|
|
4359
|
+
export type InternalCreateCommentData = {
|
|
4360
|
+
body: InternalCreateCommentInput;
|
|
4361
|
+
path: {
|
|
4362
|
+
projectId: string;
|
|
4363
|
+
};
|
|
4364
|
+
query?: never;
|
|
4365
|
+
url: '/project/{projectId}/comments';
|
|
4366
|
+
};
|
|
4367
|
+
|
|
4368
|
+
export type InternalCreateCommentErrors = {
|
|
4369
|
+
/**
|
|
4370
|
+
* Bad request - Invalid parameters or malformed JSON
|
|
4371
|
+
*/
|
|
4372
|
+
400: {
|
|
4373
|
+
message: string;
|
|
4374
|
+
issues?: string;
|
|
4375
|
+
};
|
|
4376
|
+
/**
|
|
4377
|
+
* Unauthorized
|
|
4378
|
+
*/
|
|
4379
|
+
401: ErrorResponse;
|
|
4380
|
+
/**
|
|
4381
|
+
* Forbidden
|
|
4382
|
+
*/
|
|
4383
|
+
403: ErrorResponse;
|
|
4384
|
+
/**
|
|
4385
|
+
* Not Found
|
|
4386
|
+
*/
|
|
4387
|
+
404: ErrorResponse;
|
|
4388
|
+
/**
|
|
4389
|
+
* Conflict
|
|
4390
|
+
*/
|
|
4391
|
+
409: ErrorResponse;
|
|
4392
|
+
/**
|
|
4393
|
+
* Internal server error
|
|
4394
|
+
*/
|
|
4395
|
+
500: ErrorResponse;
|
|
4396
|
+
/**
|
|
4397
|
+
* Service Unavailable
|
|
4398
|
+
*/
|
|
4399
|
+
503: ErrorResponse;
|
|
4400
|
+
};
|
|
4401
|
+
|
|
4402
|
+
export type InternalCreateCommentError = InternalCreateCommentErrors[keyof InternalCreateCommentErrors];
|
|
4403
|
+
|
|
4404
|
+
export type InternalCreateCommentResponses = {
|
|
4405
|
+
/**
|
|
4406
|
+
* Returns the created comment
|
|
4190
4407
|
*/
|
|
4191
4408
|
200: {
|
|
4192
4409
|
comment: {
|
|
@@ -4218,19 +4435,21 @@ export type InternalReopenCommentResponses = {
|
|
|
4218
4435
|
};
|
|
4219
4436
|
};
|
|
4220
4437
|
|
|
4221
|
-
export type
|
|
4438
|
+
export type InternalCreateCommentResponse = InternalCreateCommentResponses[keyof InternalCreateCommentResponses];
|
|
4222
4439
|
|
|
4223
|
-
export type
|
|
4224
|
-
body
|
|
4440
|
+
export type InternalResolveCommentData = {
|
|
4441
|
+
body?: never;
|
|
4225
4442
|
path: {
|
|
4226
4443
|
projectId: string;
|
|
4227
4444
|
commentId: string;
|
|
4228
4445
|
};
|
|
4229
|
-
query
|
|
4230
|
-
|
|
4446
|
+
query: {
|
|
4447
|
+
resolvedByDazlUserId: string;
|
|
4448
|
+
};
|
|
4449
|
+
url: '/project/{projectId}/comments/{commentId}/resolve';
|
|
4231
4450
|
};
|
|
4232
4451
|
|
|
4233
|
-
export type
|
|
4452
|
+
export type InternalResolveCommentErrors = {
|
|
4234
4453
|
/**
|
|
4235
4454
|
* Bad request - Invalid parameters or malformed JSON
|
|
4236
4455
|
*/
|
|
@@ -4264,15 +4483,15 @@ export type InternalCreateReplyErrors = {
|
|
|
4264
4483
|
503: ErrorResponse;
|
|
4265
4484
|
};
|
|
4266
4485
|
|
|
4267
|
-
export type
|
|
4486
|
+
export type InternalResolveCommentError = InternalResolveCommentErrors[keyof InternalResolveCommentErrors];
|
|
4268
4487
|
|
|
4269
|
-
export type
|
|
4488
|
+
export type InternalResolveCommentResponses = {
|
|
4270
4489
|
/**
|
|
4271
|
-
* Returns the
|
|
4490
|
+
* Returns the resolved comment
|
|
4272
4491
|
*/
|
|
4273
4492
|
200: {
|
|
4274
|
-
|
|
4275
|
-
|
|
4493
|
+
comment: {
|
|
4494
|
+
commentId: string;
|
|
4276
4495
|
author: {
|
|
4277
4496
|
dazlUserId: string;
|
|
4278
4497
|
};
|
|
@@ -4280,27 +4499,501 @@ export type InternalCreateReplyResponses = {
|
|
|
4280
4499
|
mentions: Array<UserMention>;
|
|
4281
4500
|
createdAt: string;
|
|
4282
4501
|
updatedAt: string;
|
|
4502
|
+
lastActivityAt: string;
|
|
4503
|
+
isEdited: boolean;
|
|
4504
|
+
replies: Array<{
|
|
4505
|
+
replyId: string;
|
|
4506
|
+
author: {
|
|
4507
|
+
dazlUserId: string;
|
|
4508
|
+
};
|
|
4509
|
+
content: string;
|
|
4510
|
+
mentions: Array<UserMention>;
|
|
4511
|
+
createdAt: string;
|
|
4512
|
+
updatedAt: string;
|
|
4513
|
+
gitInfo?: CommentGitInfo;
|
|
4514
|
+
}>;
|
|
4515
|
+
resolved?: CommentResolved;
|
|
4516
|
+
context?: CommentContext;
|
|
4283
4517
|
gitInfo?: CommentGitInfo;
|
|
4284
4518
|
};
|
|
4285
4519
|
};
|
|
4286
4520
|
};
|
|
4287
4521
|
|
|
4288
|
-
export type
|
|
4522
|
+
export type InternalResolveCommentResponse = InternalResolveCommentResponses[keyof InternalResolveCommentResponses];
|
|
4289
4523
|
|
|
4290
|
-
export type
|
|
4524
|
+
export type InternalReopenCommentData = {
|
|
4291
4525
|
body?: never;
|
|
4292
4526
|
path: {
|
|
4293
4527
|
projectId: string;
|
|
4294
4528
|
commentId: string;
|
|
4295
|
-
replyId: string;
|
|
4296
4529
|
};
|
|
4297
|
-
query?:
|
|
4298
|
-
|
|
4530
|
+
query?: never;
|
|
4531
|
+
url: '/project/{projectId}/comments/{commentId}/reopen';
|
|
4532
|
+
};
|
|
4533
|
+
|
|
4534
|
+
export type InternalReopenCommentErrors = {
|
|
4535
|
+
/**
|
|
4536
|
+
* Bad request - Invalid parameters or malformed JSON
|
|
4537
|
+
*/
|
|
4538
|
+
400: {
|
|
4539
|
+
message: string;
|
|
4540
|
+
issues?: string;
|
|
4299
4541
|
};
|
|
4300
|
-
|
|
4542
|
+
/**
|
|
4543
|
+
* Unauthorized
|
|
4544
|
+
*/
|
|
4545
|
+
401: ErrorResponse;
|
|
4546
|
+
/**
|
|
4547
|
+
* Forbidden
|
|
4548
|
+
*/
|
|
4549
|
+
403: ErrorResponse;
|
|
4550
|
+
/**
|
|
4551
|
+
* Not Found
|
|
4552
|
+
*/
|
|
4553
|
+
404: ErrorResponse;
|
|
4554
|
+
/**
|
|
4555
|
+
* Conflict
|
|
4556
|
+
*/
|
|
4557
|
+
409: ErrorResponse;
|
|
4558
|
+
/**
|
|
4559
|
+
* Internal server error
|
|
4560
|
+
*/
|
|
4561
|
+
500: ErrorResponse;
|
|
4562
|
+
/**
|
|
4563
|
+
* Service Unavailable
|
|
4564
|
+
*/
|
|
4565
|
+
503: ErrorResponse;
|
|
4566
|
+
};
|
|
4567
|
+
|
|
4568
|
+
export type InternalReopenCommentError = InternalReopenCommentErrors[keyof InternalReopenCommentErrors];
|
|
4569
|
+
|
|
4570
|
+
export type InternalReopenCommentResponses = {
|
|
4571
|
+
/**
|
|
4572
|
+
* Returns the reopened comment
|
|
4573
|
+
*/
|
|
4574
|
+
200: {
|
|
4575
|
+
comment: {
|
|
4576
|
+
commentId: string;
|
|
4577
|
+
author: {
|
|
4578
|
+
dazlUserId: string;
|
|
4579
|
+
};
|
|
4580
|
+
content: string;
|
|
4581
|
+
mentions: Array<UserMention>;
|
|
4582
|
+
createdAt: string;
|
|
4583
|
+
updatedAt: string;
|
|
4584
|
+
lastActivityAt: string;
|
|
4585
|
+
isEdited: boolean;
|
|
4586
|
+
replies: Array<{
|
|
4587
|
+
replyId: string;
|
|
4588
|
+
author: {
|
|
4589
|
+
dazlUserId: string;
|
|
4590
|
+
};
|
|
4591
|
+
content: string;
|
|
4592
|
+
mentions: Array<UserMention>;
|
|
4593
|
+
createdAt: string;
|
|
4594
|
+
updatedAt: string;
|
|
4595
|
+
gitInfo?: CommentGitInfo;
|
|
4596
|
+
}>;
|
|
4597
|
+
resolved?: CommentResolved;
|
|
4598
|
+
context?: CommentContext;
|
|
4599
|
+
gitInfo?: CommentGitInfo;
|
|
4600
|
+
};
|
|
4601
|
+
};
|
|
4602
|
+
};
|
|
4603
|
+
|
|
4604
|
+
export type InternalReopenCommentResponse = InternalReopenCommentResponses[keyof InternalReopenCommentResponses];
|
|
4605
|
+
|
|
4606
|
+
export type InternalCreateReplyData = {
|
|
4607
|
+
body: InternalCreateReplyInput;
|
|
4608
|
+
path: {
|
|
4609
|
+
projectId: string;
|
|
4610
|
+
commentId: string;
|
|
4611
|
+
};
|
|
4612
|
+
query?: never;
|
|
4613
|
+
url: '/project/{projectId}/comments/{commentId}/replies';
|
|
4614
|
+
};
|
|
4615
|
+
|
|
4616
|
+
export type InternalCreateReplyErrors = {
|
|
4617
|
+
/**
|
|
4618
|
+
* Bad request - Invalid parameters or malformed JSON
|
|
4619
|
+
*/
|
|
4620
|
+
400: {
|
|
4621
|
+
message: string;
|
|
4622
|
+
issues?: string;
|
|
4623
|
+
};
|
|
4624
|
+
/**
|
|
4625
|
+
* Unauthorized
|
|
4626
|
+
*/
|
|
4627
|
+
401: ErrorResponse;
|
|
4628
|
+
/**
|
|
4629
|
+
* Forbidden
|
|
4630
|
+
*/
|
|
4631
|
+
403: ErrorResponse;
|
|
4632
|
+
/**
|
|
4633
|
+
* Not Found
|
|
4634
|
+
*/
|
|
4635
|
+
404: ErrorResponse;
|
|
4636
|
+
/**
|
|
4637
|
+
* Conflict
|
|
4638
|
+
*/
|
|
4639
|
+
409: ErrorResponse;
|
|
4640
|
+
/**
|
|
4641
|
+
* Internal server error
|
|
4642
|
+
*/
|
|
4643
|
+
500: ErrorResponse;
|
|
4644
|
+
/**
|
|
4645
|
+
* Service Unavailable
|
|
4646
|
+
*/
|
|
4647
|
+
503: ErrorResponse;
|
|
4648
|
+
};
|
|
4649
|
+
|
|
4650
|
+
export type InternalCreateReplyError = InternalCreateReplyErrors[keyof InternalCreateReplyErrors];
|
|
4651
|
+
|
|
4652
|
+
export type InternalCreateReplyResponses = {
|
|
4653
|
+
/**
|
|
4654
|
+
* Returns the created reply
|
|
4655
|
+
*/
|
|
4656
|
+
200: {
|
|
4657
|
+
reply: {
|
|
4658
|
+
replyId: string;
|
|
4659
|
+
author: {
|
|
4660
|
+
dazlUserId: string;
|
|
4661
|
+
};
|
|
4662
|
+
content: string;
|
|
4663
|
+
mentions: Array<UserMention>;
|
|
4664
|
+
createdAt: string;
|
|
4665
|
+
updatedAt: string;
|
|
4666
|
+
gitInfo?: CommentGitInfo;
|
|
4667
|
+
};
|
|
4668
|
+
};
|
|
4669
|
+
};
|
|
4670
|
+
|
|
4671
|
+
export type InternalCreateReplyResponse = InternalCreateReplyResponses[keyof InternalCreateReplyResponses];
|
|
4672
|
+
|
|
4673
|
+
export type InternalDeleteReplyData = {
|
|
4674
|
+
body?: never;
|
|
4675
|
+
path: {
|
|
4676
|
+
projectId: string;
|
|
4677
|
+
commentId: string;
|
|
4678
|
+
replyId: string;
|
|
4679
|
+
};
|
|
4680
|
+
query?: {
|
|
4681
|
+
editorDazlUserId?: string;
|
|
4682
|
+
};
|
|
4683
|
+
url: '/project/{projectId}/comments/{commentId}/replies/{replyId}';
|
|
4684
|
+
};
|
|
4685
|
+
|
|
4686
|
+
export type InternalDeleteReplyErrors = {
|
|
4687
|
+
/**
|
|
4688
|
+
* Bad request - Invalid parameters or malformed JSON
|
|
4689
|
+
*/
|
|
4690
|
+
400: {
|
|
4691
|
+
message: string;
|
|
4692
|
+
issues?: string;
|
|
4693
|
+
};
|
|
4694
|
+
/**
|
|
4695
|
+
* Unauthorized
|
|
4696
|
+
*/
|
|
4697
|
+
401: ErrorResponse;
|
|
4698
|
+
/**
|
|
4699
|
+
* Forbidden
|
|
4700
|
+
*/
|
|
4701
|
+
403: ErrorResponse;
|
|
4702
|
+
/**
|
|
4703
|
+
* Not Found
|
|
4704
|
+
*/
|
|
4705
|
+
404: ErrorResponse;
|
|
4706
|
+
/**
|
|
4707
|
+
* Conflict
|
|
4708
|
+
*/
|
|
4709
|
+
409: ErrorResponse;
|
|
4710
|
+
/**
|
|
4711
|
+
* Internal server error
|
|
4712
|
+
*/
|
|
4713
|
+
500: ErrorResponse;
|
|
4714
|
+
/**
|
|
4715
|
+
* Service Unavailable
|
|
4716
|
+
*/
|
|
4717
|
+
503: ErrorResponse;
|
|
4718
|
+
};
|
|
4719
|
+
|
|
4720
|
+
export type InternalDeleteReplyError = InternalDeleteReplyErrors[keyof InternalDeleteReplyErrors];
|
|
4721
|
+
|
|
4722
|
+
export type InternalDeleteReplyResponses = {
|
|
4723
|
+
/**
|
|
4724
|
+
* Acknowledges that the reply was deleted
|
|
4725
|
+
*/
|
|
4726
|
+
200: {
|
|
4727
|
+
success: true;
|
|
4728
|
+
};
|
|
4729
|
+
};
|
|
4730
|
+
|
|
4731
|
+
export type InternalDeleteReplyResponse = InternalDeleteReplyResponses[keyof InternalDeleteReplyResponses];
|
|
4732
|
+
|
|
4733
|
+
export type InternalEditReplyData = {
|
|
4734
|
+
body: InternalEditReplyInput;
|
|
4735
|
+
path: {
|
|
4736
|
+
projectId: string;
|
|
4737
|
+
commentId: string;
|
|
4738
|
+
replyId: string;
|
|
4739
|
+
};
|
|
4740
|
+
query?: never;
|
|
4741
|
+
url: '/project/{projectId}/comments/{commentId}/replies/{replyId}';
|
|
4742
|
+
};
|
|
4743
|
+
|
|
4744
|
+
export type InternalEditReplyErrors = {
|
|
4745
|
+
/**
|
|
4746
|
+
* Bad request - Invalid parameters or malformed JSON
|
|
4747
|
+
*/
|
|
4748
|
+
400: {
|
|
4749
|
+
message: string;
|
|
4750
|
+
issues?: string;
|
|
4751
|
+
};
|
|
4752
|
+
/**
|
|
4753
|
+
* Unauthorized
|
|
4754
|
+
*/
|
|
4755
|
+
401: ErrorResponse;
|
|
4756
|
+
/**
|
|
4757
|
+
* Forbidden
|
|
4758
|
+
*/
|
|
4759
|
+
403: ErrorResponse;
|
|
4760
|
+
/**
|
|
4761
|
+
* Not Found
|
|
4762
|
+
*/
|
|
4763
|
+
404: ErrorResponse;
|
|
4764
|
+
/**
|
|
4765
|
+
* Conflict
|
|
4766
|
+
*/
|
|
4767
|
+
409: ErrorResponse;
|
|
4768
|
+
/**
|
|
4769
|
+
* Internal server error
|
|
4770
|
+
*/
|
|
4771
|
+
500: ErrorResponse;
|
|
4772
|
+
/**
|
|
4773
|
+
* Service Unavailable
|
|
4774
|
+
*/
|
|
4775
|
+
503: ErrorResponse;
|
|
4776
|
+
};
|
|
4777
|
+
|
|
4778
|
+
export type InternalEditReplyError = InternalEditReplyErrors[keyof InternalEditReplyErrors];
|
|
4779
|
+
|
|
4780
|
+
export type InternalEditReplyResponses = {
|
|
4781
|
+
/**
|
|
4782
|
+
* Returns the updated reply
|
|
4783
|
+
*/
|
|
4784
|
+
200: {
|
|
4785
|
+
reply: {
|
|
4786
|
+
replyId: string;
|
|
4787
|
+
author: {
|
|
4788
|
+
dazlUserId: string;
|
|
4789
|
+
};
|
|
4790
|
+
content: string;
|
|
4791
|
+
mentions: Array<UserMention>;
|
|
4792
|
+
createdAt: string;
|
|
4793
|
+
updatedAt: string;
|
|
4794
|
+
gitInfo?: CommentGitInfo;
|
|
4795
|
+
};
|
|
4796
|
+
};
|
|
4797
|
+
};
|
|
4798
|
+
|
|
4799
|
+
export type InternalEditReplyResponse = InternalEditReplyResponses[keyof InternalEditReplyResponses];
|
|
4800
|
+
|
|
4801
|
+
export type GetPublicTemplatesData = {
|
|
4802
|
+
body?: never;
|
|
4803
|
+
path?: never;
|
|
4804
|
+
query?: {
|
|
4805
|
+
withScreenshot?: boolean | null;
|
|
4806
|
+
};
|
|
4807
|
+
url: '/template/public-templates';
|
|
4808
|
+
};
|
|
4809
|
+
|
|
4810
|
+
export type GetPublicTemplatesErrors = {
|
|
4811
|
+
/**
|
|
4812
|
+
* Bad request - Invalid parameters or malformed JSON
|
|
4813
|
+
*/
|
|
4814
|
+
400: {
|
|
4815
|
+
message: string;
|
|
4816
|
+
issues?: string;
|
|
4817
|
+
};
|
|
4818
|
+
/**
|
|
4819
|
+
* Unauthorized
|
|
4820
|
+
*/
|
|
4821
|
+
401: ErrorResponse;
|
|
4822
|
+
/**
|
|
4823
|
+
* Forbidden
|
|
4824
|
+
*/
|
|
4825
|
+
403: ErrorResponse;
|
|
4826
|
+
/**
|
|
4827
|
+
* Not Found
|
|
4828
|
+
*/
|
|
4829
|
+
404: ErrorResponse;
|
|
4830
|
+
/**
|
|
4831
|
+
* Conflict
|
|
4832
|
+
*/
|
|
4833
|
+
409: ErrorResponse;
|
|
4834
|
+
/**
|
|
4835
|
+
* Internal server error
|
|
4836
|
+
*/
|
|
4837
|
+
500: ErrorResponse;
|
|
4838
|
+
/**
|
|
4839
|
+
* Service Unavailable
|
|
4840
|
+
*/
|
|
4841
|
+
503: ErrorResponse;
|
|
4842
|
+
};
|
|
4843
|
+
|
|
4844
|
+
export type GetPublicTemplatesError = GetPublicTemplatesErrors[keyof GetPublicTemplatesErrors];
|
|
4845
|
+
|
|
4846
|
+
export type GetPublicTemplatesResponses = {
|
|
4847
|
+
/**
|
|
4848
|
+
* Returns all public templates. Optionally includes screenshots when `withScreenshot` is true. Templates are ordered by the greatest of createdAt and lastUsedAt in descending order.
|
|
4849
|
+
*/
|
|
4850
|
+
200: {
|
|
4851
|
+
templates: Array<{
|
|
4852
|
+
screenshotUrl: string | null;
|
|
4853
|
+
originProjectName: string | null;
|
|
4854
|
+
} & TemplateRaw>;
|
|
4855
|
+
};
|
|
4856
|
+
};
|
|
4857
|
+
|
|
4858
|
+
export type GetPublicTemplatesResponse = GetPublicTemplatesResponses[keyof GetPublicTemplatesResponses];
|
|
4859
|
+
|
|
4860
|
+
export type GetUserTemplatesData = {
|
|
4861
|
+
body?: never;
|
|
4862
|
+
path: {
|
|
4863
|
+
dazlId: string;
|
|
4864
|
+
};
|
|
4865
|
+
query?: {
|
|
4866
|
+
withScreenshot?: boolean | null;
|
|
4867
|
+
withOriginProject?: boolean | null;
|
|
4868
|
+
withAssociatedUsers?: boolean | null;
|
|
4869
|
+
};
|
|
4870
|
+
url: '/template/user/{dazlId}';
|
|
4871
|
+
};
|
|
4872
|
+
|
|
4873
|
+
export type GetUserTemplatesErrors = {
|
|
4874
|
+
/**
|
|
4875
|
+
* Bad request - Invalid parameters or malformed JSON
|
|
4876
|
+
*/
|
|
4877
|
+
400: {
|
|
4878
|
+
message: string;
|
|
4879
|
+
issues?: string;
|
|
4880
|
+
};
|
|
4881
|
+
/**
|
|
4882
|
+
* Unauthorized
|
|
4883
|
+
*/
|
|
4884
|
+
401: ErrorResponse;
|
|
4885
|
+
/**
|
|
4886
|
+
* Forbidden
|
|
4887
|
+
*/
|
|
4888
|
+
403: ErrorResponse;
|
|
4889
|
+
/**
|
|
4890
|
+
* Not Found
|
|
4891
|
+
*/
|
|
4892
|
+
404: ErrorResponse;
|
|
4893
|
+
/**
|
|
4894
|
+
* Conflict
|
|
4895
|
+
*/
|
|
4896
|
+
409: ErrorResponse;
|
|
4897
|
+
/**
|
|
4898
|
+
* Internal server error
|
|
4899
|
+
*/
|
|
4900
|
+
500: ErrorResponse;
|
|
4901
|
+
/**
|
|
4902
|
+
* Service Unavailable
|
|
4903
|
+
*/
|
|
4904
|
+
503: ErrorResponse;
|
|
4905
|
+
};
|
|
4906
|
+
|
|
4907
|
+
export type GetUserTemplatesError = GetUserTemplatesErrors[keyof GetUserTemplatesErrors];
|
|
4908
|
+
|
|
4909
|
+
export type GetUserTemplatesResponses = {
|
|
4910
|
+
/**
|
|
4911
|
+
* Returns all templates for the specified user. Templates are ordered by the greatest of createdAt and lastUsedAt in descending order.
|
|
4912
|
+
*/
|
|
4913
|
+
200: {
|
|
4914
|
+
templates: Array<{
|
|
4915
|
+
screenshotUrl: string | null;
|
|
4916
|
+
originProjectName: string | null;
|
|
4917
|
+
} & TemplateRaw>;
|
|
4918
|
+
users?: Array<UserDisplayInfoResponse>;
|
|
4919
|
+
};
|
|
4920
|
+
};
|
|
4921
|
+
|
|
4922
|
+
export type GetUserTemplatesResponse = GetUserTemplatesResponses[keyof GetUserTemplatesResponses];
|
|
4923
|
+
|
|
4924
|
+
export type DeleteTemplateData = {
|
|
4925
|
+
/**
|
|
4926
|
+
* Owner dazlId of the user attempting to delete the template
|
|
4927
|
+
*/
|
|
4928
|
+
body?: {
|
|
4929
|
+
ownerDazlId: string;
|
|
4930
|
+
};
|
|
4931
|
+
path: {
|
|
4932
|
+
templateId: string;
|
|
4933
|
+
};
|
|
4934
|
+
query?: never;
|
|
4935
|
+
url: '/template/{templateId}';
|
|
4936
|
+
};
|
|
4937
|
+
|
|
4938
|
+
export type DeleteTemplateErrors = {
|
|
4939
|
+
/**
|
|
4940
|
+
* Bad request - Invalid parameters or malformed JSON
|
|
4941
|
+
*/
|
|
4942
|
+
400: {
|
|
4943
|
+
message: string;
|
|
4944
|
+
issues?: string;
|
|
4945
|
+
};
|
|
4946
|
+
/**
|
|
4947
|
+
* Unauthorized
|
|
4948
|
+
*/
|
|
4949
|
+
401: ErrorResponse;
|
|
4950
|
+
/**
|
|
4951
|
+
* Forbidden
|
|
4952
|
+
*/
|
|
4953
|
+
403: ErrorResponse;
|
|
4954
|
+
/**
|
|
4955
|
+
* Not Found
|
|
4956
|
+
*/
|
|
4957
|
+
404: ErrorResponse;
|
|
4958
|
+
/**
|
|
4959
|
+
* Conflict
|
|
4960
|
+
*/
|
|
4961
|
+
409: ErrorResponse;
|
|
4962
|
+
/**
|
|
4963
|
+
* Internal server error
|
|
4964
|
+
*/
|
|
4965
|
+
500: ErrorResponse;
|
|
4966
|
+
/**
|
|
4967
|
+
* Service Unavailable
|
|
4968
|
+
*/
|
|
4969
|
+
503: ErrorResponse;
|
|
4970
|
+
};
|
|
4971
|
+
|
|
4972
|
+
export type DeleteTemplateError = DeleteTemplateErrors[keyof DeleteTemplateErrors];
|
|
4973
|
+
|
|
4974
|
+
export type DeleteTemplateResponses = {
|
|
4975
|
+
/**
|
|
4976
|
+
* Deletes the template with the specified ID.
|
|
4977
|
+
*/
|
|
4978
|
+
200: {
|
|
4979
|
+
templateId: string;
|
|
4980
|
+
};
|
|
4981
|
+
};
|
|
4982
|
+
|
|
4983
|
+
export type DeleteTemplateResponse = DeleteTemplateResponses[keyof DeleteTemplateResponses];
|
|
4984
|
+
|
|
4985
|
+
export type GetTemplateData = {
|
|
4986
|
+
body?: never;
|
|
4987
|
+
path: {
|
|
4988
|
+
templateId: string;
|
|
4989
|
+
};
|
|
4990
|
+
query?: {
|
|
4991
|
+
withScreenshot?: boolean | null;
|
|
4992
|
+
};
|
|
4993
|
+
url: '/template/{templateId}';
|
|
4301
4994
|
};
|
|
4302
4995
|
|
|
4303
|
-
export type
|
|
4996
|
+
export type GetTemplateErrors = {
|
|
4304
4997
|
/**
|
|
4305
4998
|
* Bad request - Invalid parameters or malformed JSON
|
|
4306
4999
|
*/
|
|
@@ -4334,31 +5027,37 @@ export type InternalDeleteReplyErrors = {
|
|
|
4334
5027
|
503: ErrorResponse;
|
|
4335
5028
|
};
|
|
4336
5029
|
|
|
4337
|
-
export type
|
|
5030
|
+
export type GetTemplateError = GetTemplateErrors[keyof GetTemplateErrors];
|
|
4338
5031
|
|
|
4339
|
-
export type
|
|
5032
|
+
export type GetTemplateResponses = {
|
|
4340
5033
|
/**
|
|
4341
|
-
*
|
|
5034
|
+
* Returns the template with the specified ID.
|
|
4342
5035
|
*/
|
|
4343
5036
|
200: {
|
|
4344
|
-
|
|
5037
|
+
template: TemplateRaw;
|
|
4345
5038
|
};
|
|
4346
5039
|
};
|
|
4347
5040
|
|
|
4348
|
-
export type
|
|
5041
|
+
export type GetTemplateResponse = GetTemplateResponses[keyof GetTemplateResponses];
|
|
4349
5042
|
|
|
4350
|
-
export type
|
|
4351
|
-
body:
|
|
5043
|
+
export type UpdateTemplateData = {
|
|
5044
|
+
body: {
|
|
5045
|
+
description?: string | null;
|
|
5046
|
+
lastUsedAt?: string | null;
|
|
5047
|
+
name?: string;
|
|
5048
|
+
usageCount?: number;
|
|
5049
|
+
isPublic?: boolean;
|
|
5050
|
+
remoteEnvConfigId?: string | null;
|
|
5051
|
+
ownerDazlId?: string;
|
|
5052
|
+
};
|
|
4352
5053
|
path: {
|
|
4353
|
-
|
|
4354
|
-
commentId: string;
|
|
4355
|
-
replyId: string;
|
|
5054
|
+
templateId: string;
|
|
4356
5055
|
};
|
|
4357
5056
|
query?: never;
|
|
4358
|
-
url: '/
|
|
5057
|
+
url: '/template/{templateId}';
|
|
4359
5058
|
};
|
|
4360
5059
|
|
|
4361
|
-
export type
|
|
5060
|
+
export type UpdateTemplateErrors = {
|
|
4362
5061
|
/**
|
|
4363
5062
|
* Bad request - Invalid parameters or malformed JSON
|
|
4364
5063
|
*/
|
|
@@ -4392,39 +5091,36 @@ export type InternalEditReplyErrors = {
|
|
|
4392
5091
|
503: ErrorResponse;
|
|
4393
5092
|
};
|
|
4394
5093
|
|
|
4395
|
-
export type
|
|
5094
|
+
export type UpdateTemplateError = UpdateTemplateErrors[keyof UpdateTemplateErrors];
|
|
4396
5095
|
|
|
4397
|
-
export type
|
|
5096
|
+
export type UpdateTemplateResponses = {
|
|
4398
5097
|
/**
|
|
4399
|
-
*
|
|
5098
|
+
* Updates the template with the specified ID.
|
|
4400
5099
|
*/
|
|
4401
5100
|
200: {
|
|
4402
|
-
|
|
4403
|
-
replyId: string;
|
|
4404
|
-
author: {
|
|
4405
|
-
dazlUserId: string;
|
|
4406
|
-
};
|
|
4407
|
-
content: string;
|
|
4408
|
-
mentions: Array<UserMention>;
|
|
4409
|
-
createdAt: string;
|
|
4410
|
-
updatedAt: string;
|
|
4411
|
-
gitInfo?: CommentGitInfo;
|
|
4412
|
-
};
|
|
5101
|
+
template: TemplateRaw;
|
|
4413
5102
|
};
|
|
4414
5103
|
};
|
|
4415
5104
|
|
|
4416
|
-
export type
|
|
5105
|
+
export type UpdateTemplateResponse = UpdateTemplateResponses[keyof UpdateTemplateResponses];
|
|
4417
5106
|
|
|
4418
|
-
export type
|
|
4419
|
-
body
|
|
4420
|
-
|
|
4421
|
-
|
|
4422
|
-
|
|
5107
|
+
export type CreateTemplateData = {
|
|
5108
|
+
body: {
|
|
5109
|
+
originProjectId: string;
|
|
5110
|
+
userDazlId: string;
|
|
5111
|
+
} & {
|
|
5112
|
+
preserveChatHistory: boolean;
|
|
5113
|
+
preserveEnvFile: boolean;
|
|
5114
|
+
name: string;
|
|
5115
|
+
description?: string;
|
|
5116
|
+
emails?: Array<string>;
|
|
4423
5117
|
};
|
|
4424
|
-
|
|
5118
|
+
path?: never;
|
|
5119
|
+
query?: never;
|
|
5120
|
+
url: '/template/create';
|
|
4425
5121
|
};
|
|
4426
5122
|
|
|
4427
|
-
export type
|
|
5123
|
+
export type CreateTemplateErrors = {
|
|
4428
5124
|
/**
|
|
4429
5125
|
* Bad request - Invalid parameters or malformed JSON
|
|
4430
5126
|
*/
|
|
@@ -4458,36 +5154,32 @@ export type GetPublicTemplatesErrors = {
|
|
|
4458
5154
|
503: ErrorResponse;
|
|
4459
5155
|
};
|
|
4460
5156
|
|
|
4461
|
-
export type
|
|
5157
|
+
export type CreateTemplateError = CreateTemplateErrors[keyof CreateTemplateErrors];
|
|
4462
5158
|
|
|
4463
|
-
export type
|
|
5159
|
+
export type CreateTemplateResponses = {
|
|
4464
5160
|
/**
|
|
4465
|
-
*
|
|
5161
|
+
* Creates a new template from the specified project for the specified user.
|
|
4466
5162
|
*/
|
|
4467
5163
|
200: {
|
|
4468
|
-
|
|
4469
|
-
screenshotUrl: string | null;
|
|
4470
|
-
originProjectName: string | null;
|
|
4471
|
-
} & TemplateRaw>;
|
|
5164
|
+
template: TemplateRaw;
|
|
4472
5165
|
};
|
|
4473
5166
|
};
|
|
4474
5167
|
|
|
4475
|
-
export type
|
|
5168
|
+
export type CreateTemplateResponse = CreateTemplateResponses[keyof CreateTemplateResponses];
|
|
4476
5169
|
|
|
4477
|
-
export type
|
|
4478
|
-
body
|
|
4479
|
-
|
|
4480
|
-
|
|
5170
|
+
export type AddTemplateSharedWithData = {
|
|
5171
|
+
body: {
|
|
5172
|
+
email: string;
|
|
5173
|
+
ownerDazlId: string;
|
|
4481
5174
|
};
|
|
4482
|
-
|
|
4483
|
-
|
|
4484
|
-
withOriginProject?: boolean | null;
|
|
4485
|
-
withAssociatedUsers?: boolean | null;
|
|
5175
|
+
path: {
|
|
5176
|
+
templateId: string;
|
|
4486
5177
|
};
|
|
4487
|
-
|
|
5178
|
+
query?: never;
|
|
5179
|
+
url: '/template/{templateId}/shared-with';
|
|
4488
5180
|
};
|
|
4489
5181
|
|
|
4490
|
-
export type
|
|
5182
|
+
export type AddTemplateSharedWithErrors = {
|
|
4491
5183
|
/**
|
|
4492
5184
|
* Bad request - Invalid parameters or malformed JSON
|
|
4493
5185
|
*/
|
|
@@ -4521,38 +5213,32 @@ export type GetUserTemplatesErrors = {
|
|
|
4521
5213
|
503: ErrorResponse;
|
|
4522
5214
|
};
|
|
4523
5215
|
|
|
4524
|
-
export type
|
|
5216
|
+
export type AddTemplateSharedWithError = AddTemplateSharedWithErrors[keyof AddTemplateSharedWithErrors];
|
|
4525
5217
|
|
|
4526
|
-
export type
|
|
5218
|
+
export type AddTemplateSharedWithResponses = {
|
|
4527
5219
|
/**
|
|
4528
|
-
*
|
|
5220
|
+
* Adds a shared-with email to the template.
|
|
4529
5221
|
*/
|
|
4530
5222
|
200: {
|
|
4531
|
-
|
|
4532
|
-
screenshotUrl: string | null;
|
|
4533
|
-
originProjectName: string | null;
|
|
4534
|
-
} & TemplateRaw>;
|
|
4535
|
-
users?: Array<UserDisplayInfoResponse>;
|
|
5223
|
+
template: TemplateRaw;
|
|
4536
5224
|
};
|
|
4537
5225
|
};
|
|
4538
5226
|
|
|
4539
|
-
export type
|
|
5227
|
+
export type AddTemplateSharedWithResponse = AddTemplateSharedWithResponses[keyof AddTemplateSharedWithResponses];
|
|
4540
5228
|
|
|
4541
|
-
export type
|
|
4542
|
-
|
|
4543
|
-
* Owner dazlId of the user attempting to delete the template
|
|
4544
|
-
*/
|
|
4545
|
-
body?: {
|
|
5229
|
+
export type RemoveTemplateSharedWithData = {
|
|
5230
|
+
body: {
|
|
4546
5231
|
ownerDazlId: string;
|
|
4547
5232
|
};
|
|
4548
5233
|
path: {
|
|
4549
5234
|
templateId: string;
|
|
5235
|
+
email: string;
|
|
4550
5236
|
};
|
|
4551
5237
|
query?: never;
|
|
4552
|
-
url: '/template/{templateId}';
|
|
5238
|
+
url: '/template/{templateId}/shared-with/{email}';
|
|
4553
5239
|
};
|
|
4554
5240
|
|
|
4555
|
-
export type
|
|
5241
|
+
export type RemoveTemplateSharedWithErrors = {
|
|
4556
5242
|
/**
|
|
4557
5243
|
* Bad request - Invalid parameters or malformed JSON
|
|
4558
5244
|
*/
|
|
@@ -4586,31 +5272,33 @@ export type DeleteTemplateErrors = {
|
|
|
4586
5272
|
503: ErrorResponse;
|
|
4587
5273
|
};
|
|
4588
5274
|
|
|
4589
|
-
export type
|
|
5275
|
+
export type RemoveTemplateSharedWithError = RemoveTemplateSharedWithErrors[keyof RemoveTemplateSharedWithErrors];
|
|
4590
5276
|
|
|
4591
|
-
export type
|
|
5277
|
+
export type RemoveTemplateSharedWithResponses = {
|
|
4592
5278
|
/**
|
|
4593
|
-
*
|
|
5279
|
+
* Removes a shared-with email from the template.
|
|
4594
5280
|
*/
|
|
4595
5281
|
200: {
|
|
4596
|
-
|
|
5282
|
+
template: TemplateRaw;
|
|
4597
5283
|
};
|
|
4598
5284
|
};
|
|
4599
5285
|
|
|
4600
|
-
export type
|
|
5286
|
+
export type RemoveTemplateSharedWithResponse = RemoveTemplateSharedWithResponses[keyof RemoveTemplateSharedWithResponses];
|
|
4601
5287
|
|
|
4602
|
-
export type
|
|
4603
|
-
body
|
|
4604
|
-
|
|
4605
|
-
|
|
4606
|
-
|
|
4607
|
-
|
|
4608
|
-
|
|
5288
|
+
export type CreateChatData = {
|
|
5289
|
+
body: {
|
|
5290
|
+
projectId: string;
|
|
5291
|
+
ownerDazlId: string;
|
|
5292
|
+
type: string;
|
|
5293
|
+
createdByUserId: string;
|
|
5294
|
+
schemaVersion: number;
|
|
4609
5295
|
};
|
|
4610
|
-
|
|
5296
|
+
path?: never;
|
|
5297
|
+
query?: never;
|
|
5298
|
+
url: '/chat/create';
|
|
4611
5299
|
};
|
|
4612
5300
|
|
|
4613
|
-
export type
|
|
5301
|
+
export type CreateChatErrors = {
|
|
4614
5302
|
/**
|
|
4615
5303
|
* Bad request - Invalid parameters or malformed JSON
|
|
4616
5304
|
*/
|
|
@@ -4644,37 +5332,46 @@ export type GetTemplateErrors = {
|
|
|
4644
5332
|
503: ErrorResponse;
|
|
4645
5333
|
};
|
|
4646
5334
|
|
|
4647
|
-
export type
|
|
5335
|
+
export type CreateChatError = CreateChatErrors[keyof CreateChatErrors];
|
|
4648
5336
|
|
|
4649
|
-
export type
|
|
5337
|
+
export type CreateChatResponses = {
|
|
4650
5338
|
/**
|
|
4651
|
-
*
|
|
5339
|
+
* Creates a new chat for the specified project.
|
|
4652
5340
|
*/
|
|
4653
5341
|
200: {
|
|
4654
|
-
|
|
5342
|
+
chat: {
|
|
5343
|
+
id: string;
|
|
5344
|
+
projectId: string;
|
|
5345
|
+
type: string;
|
|
5346
|
+
title: string | null;
|
|
5347
|
+
archived: boolean;
|
|
5348
|
+
createdByUserId: string;
|
|
5349
|
+
schemaVersion: number;
|
|
5350
|
+
createdAt: string;
|
|
5351
|
+
updatedAt: string;
|
|
5352
|
+
pinnedContext?: unknown;
|
|
5353
|
+
agentSession?: unknown;
|
|
5354
|
+
messages: Array<unknown>;
|
|
5355
|
+
oldestSequence: number | null;
|
|
5356
|
+
hasMore: boolean;
|
|
5357
|
+
};
|
|
4655
5358
|
};
|
|
4656
5359
|
};
|
|
4657
5360
|
|
|
4658
|
-
export type
|
|
5361
|
+
export type CreateChatResponse = CreateChatResponses[keyof CreateChatResponses];
|
|
4659
5362
|
|
|
4660
|
-
export type
|
|
4661
|
-
body
|
|
4662
|
-
description?: string | null;
|
|
4663
|
-
lastUsedAt?: string | null;
|
|
4664
|
-
name?: string;
|
|
4665
|
-
usageCount?: number;
|
|
4666
|
-
isPublic?: boolean;
|
|
4667
|
-
remoteEnvConfigId?: string | null;
|
|
4668
|
-
ownerDazlId?: string;
|
|
4669
|
-
};
|
|
5363
|
+
export type ListProjectChatsData = {
|
|
5364
|
+
body?: never;
|
|
4670
5365
|
path: {
|
|
4671
|
-
|
|
5366
|
+
projectId: string;
|
|
4672
5367
|
};
|
|
4673
|
-
query
|
|
4674
|
-
|
|
5368
|
+
query: {
|
|
5369
|
+
ownerDazlId: string;
|
|
5370
|
+
};
|
|
5371
|
+
url: '/chat/project/{projectId}';
|
|
4675
5372
|
};
|
|
4676
5373
|
|
|
4677
|
-
export type
|
|
5374
|
+
export type ListProjectChatsErrors = {
|
|
4678
5375
|
/**
|
|
4679
5376
|
* Bad request - Invalid parameters or malformed JSON
|
|
4680
5377
|
*/
|
|
@@ -4708,36 +5405,41 @@ export type UpdateTemplateErrors = {
|
|
|
4708
5405
|
503: ErrorResponse;
|
|
4709
5406
|
};
|
|
4710
5407
|
|
|
4711
|
-
export type
|
|
5408
|
+
export type ListProjectChatsError = ListProjectChatsErrors[keyof ListProjectChatsErrors];
|
|
4712
5409
|
|
|
4713
|
-
export type
|
|
5410
|
+
export type ListProjectChatsResponses = {
|
|
4714
5411
|
/**
|
|
4715
|
-
*
|
|
5412
|
+
* Lists non-deleted chats for the project, ordered by updatedAt descending. Does not include messages.
|
|
4716
5413
|
*/
|
|
4717
5414
|
200: {
|
|
4718
|
-
|
|
5415
|
+
chats: Array<{
|
|
5416
|
+
id: string;
|
|
5417
|
+
projectId: string;
|
|
5418
|
+
type: string;
|
|
5419
|
+
title: string | null;
|
|
5420
|
+
archived: boolean;
|
|
5421
|
+
createdByUserId: string;
|
|
5422
|
+
schemaVersion: number;
|
|
5423
|
+
createdAt: string;
|
|
5424
|
+
updatedAt: string;
|
|
5425
|
+
}>;
|
|
4719
5426
|
};
|
|
4720
5427
|
};
|
|
4721
5428
|
|
|
4722
|
-
export type
|
|
5429
|
+
export type ListProjectChatsResponse = ListProjectChatsResponses[keyof ListProjectChatsResponses];
|
|
4723
5430
|
|
|
4724
|
-
export type
|
|
5431
|
+
export type DeleteChatData = {
|
|
4725
5432
|
body: {
|
|
4726
|
-
|
|
4727
|
-
|
|
4728
|
-
|
|
4729
|
-
|
|
4730
|
-
preserveEnvFile: boolean;
|
|
4731
|
-
name: string;
|
|
4732
|
-
description?: string;
|
|
4733
|
-
emails?: Array<string>;
|
|
5433
|
+
ownerDazlId: string;
|
|
5434
|
+
};
|
|
5435
|
+
path: {
|
|
5436
|
+
chatId: string;
|
|
4734
5437
|
};
|
|
4735
|
-
path?: never;
|
|
4736
5438
|
query?: never;
|
|
4737
|
-
url: '/
|
|
5439
|
+
url: '/chat/{chatId}';
|
|
4738
5440
|
};
|
|
4739
5441
|
|
|
4740
|
-
export type
|
|
5442
|
+
export type DeleteChatErrors = {
|
|
4741
5443
|
/**
|
|
4742
5444
|
* Bad request - Invalid parameters or malformed JSON
|
|
4743
5445
|
*/
|
|
@@ -4771,32 +5473,33 @@ export type CreateTemplateErrors = {
|
|
|
4771
5473
|
503: ErrorResponse;
|
|
4772
5474
|
};
|
|
4773
5475
|
|
|
4774
|
-
export type
|
|
5476
|
+
export type DeleteChatError = DeleteChatErrors[keyof DeleteChatErrors];
|
|
4775
5477
|
|
|
4776
|
-
export type
|
|
5478
|
+
export type DeleteChatResponses = {
|
|
4777
5479
|
/**
|
|
4778
|
-
*
|
|
5480
|
+
* Soft-deletes the chat with the specified ID.
|
|
4779
5481
|
*/
|
|
4780
5482
|
200: {
|
|
4781
|
-
|
|
5483
|
+
chatId: string;
|
|
4782
5484
|
};
|
|
4783
5485
|
};
|
|
4784
5486
|
|
|
4785
|
-
export type
|
|
5487
|
+
export type DeleteChatResponse = DeleteChatResponses[keyof DeleteChatResponses];
|
|
4786
5488
|
|
|
4787
|
-
export type
|
|
4788
|
-
body
|
|
4789
|
-
email: string;
|
|
4790
|
-
ownerDazlId: string;
|
|
4791
|
-
};
|
|
5489
|
+
export type GetChatData = {
|
|
5490
|
+
body?: never;
|
|
4792
5491
|
path: {
|
|
4793
|
-
|
|
5492
|
+
chatId: string;
|
|
4794
5493
|
};
|
|
4795
|
-
query
|
|
4796
|
-
|
|
5494
|
+
query: {
|
|
5495
|
+
ownerDazlId: string;
|
|
5496
|
+
limit?: number;
|
|
5497
|
+
before?: number | null;
|
|
5498
|
+
};
|
|
5499
|
+
url: '/chat/{chatId}';
|
|
4797
5500
|
};
|
|
4798
5501
|
|
|
4799
|
-
export type
|
|
5502
|
+
export type GetChatErrors = {
|
|
4800
5503
|
/**
|
|
4801
5504
|
* Bad request - Invalid parameters or malformed JSON
|
|
4802
5505
|
*/
|
|
@@ -4830,32 +5533,55 @@ export type AddTemplateSharedWithErrors = {
|
|
|
4830
5533
|
503: ErrorResponse;
|
|
4831
5534
|
};
|
|
4832
5535
|
|
|
4833
|
-
export type
|
|
5536
|
+
export type GetChatError = GetChatErrors[keyof GetChatErrors];
|
|
4834
5537
|
|
|
4835
|
-
export type
|
|
5538
|
+
export type GetChatResponses = {
|
|
4836
5539
|
/**
|
|
4837
|
-
*
|
|
5540
|
+
* 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.
|
|
4838
5541
|
*/
|
|
4839
5542
|
200: {
|
|
4840
|
-
|
|
5543
|
+
chat: {
|
|
5544
|
+
id: string;
|
|
5545
|
+
projectId: string;
|
|
5546
|
+
type: string;
|
|
5547
|
+
title: string | null;
|
|
5548
|
+
archived: boolean;
|
|
5549
|
+
createdByUserId: string;
|
|
5550
|
+
schemaVersion: number;
|
|
5551
|
+
createdAt: string;
|
|
5552
|
+
updatedAt: string;
|
|
5553
|
+
pinnedContext?: unknown;
|
|
5554
|
+
agentSession?: unknown;
|
|
5555
|
+
messages: Array<unknown>;
|
|
5556
|
+
oldestSequence: number | null;
|
|
5557
|
+
hasMore: boolean;
|
|
5558
|
+
};
|
|
4841
5559
|
};
|
|
4842
5560
|
};
|
|
4843
5561
|
|
|
4844
|
-
export type
|
|
5562
|
+
export type GetChatResponse = GetChatResponses[keyof GetChatResponses];
|
|
4845
5563
|
|
|
4846
|
-
export type
|
|
5564
|
+
export type UpdateChatData = {
|
|
4847
5565
|
body: {
|
|
4848
5566
|
ownerDazlId: string;
|
|
5567
|
+
title?: string;
|
|
5568
|
+
archived: boolean;
|
|
5569
|
+
pinnedContext?: unknown;
|
|
5570
|
+
agentSession?: unknown;
|
|
5571
|
+
schemaVersion: number;
|
|
5572
|
+
messages: Array<{
|
|
5573
|
+
id: string;
|
|
5574
|
+
[key: string]: unknown;
|
|
5575
|
+
}>;
|
|
4849
5576
|
};
|
|
4850
5577
|
path: {
|
|
4851
|
-
|
|
4852
|
-
email: string;
|
|
5578
|
+
chatId: string;
|
|
4853
5579
|
};
|
|
4854
5580
|
query?: never;
|
|
4855
|
-
url: '/
|
|
5581
|
+
url: '/chat/{chatId}';
|
|
4856
5582
|
};
|
|
4857
5583
|
|
|
4858
|
-
export type
|
|
5584
|
+
export type UpdateChatErrors = {
|
|
4859
5585
|
/**
|
|
4860
5586
|
* Bad request - Invalid parameters or malformed JSON
|
|
4861
5587
|
*/
|
|
@@ -4889,18 +5615,33 @@ export type RemoveTemplateSharedWithErrors = {
|
|
|
4889
5615
|
503: ErrorResponse;
|
|
4890
5616
|
};
|
|
4891
5617
|
|
|
4892
|
-
export type
|
|
5618
|
+
export type UpdateChatError = UpdateChatErrors[keyof UpdateChatErrors];
|
|
4893
5619
|
|
|
4894
|
-
export type
|
|
5620
|
+
export type UpdateChatResponses = {
|
|
4895
5621
|
/**
|
|
4896
|
-
*
|
|
5622
|
+
* Replaces the chat's metadata and full message list (whole-document semantics, matching the caller's in-memory chat state).
|
|
4897
5623
|
*/
|
|
4898
5624
|
200: {
|
|
4899
|
-
|
|
5625
|
+
chat: {
|
|
5626
|
+
id: string;
|
|
5627
|
+
projectId: string;
|
|
5628
|
+
type: string;
|
|
5629
|
+
title: string | null;
|
|
5630
|
+
archived: boolean;
|
|
5631
|
+
createdByUserId: string;
|
|
5632
|
+
schemaVersion: number;
|
|
5633
|
+
createdAt: string;
|
|
5634
|
+
updatedAt: string;
|
|
5635
|
+
pinnedContext?: unknown;
|
|
5636
|
+
agentSession?: unknown;
|
|
5637
|
+
messages: Array<unknown>;
|
|
5638
|
+
oldestSequence: number | null;
|
|
5639
|
+
hasMore: boolean;
|
|
5640
|
+
};
|
|
4900
5641
|
};
|
|
4901
5642
|
};
|
|
4902
5643
|
|
|
4903
|
-
export type
|
|
5644
|
+
export type UpdateChatResponse = UpdateChatResponses[keyof UpdateChatResponses];
|
|
4904
5645
|
|
|
4905
5646
|
export type GetUploadConfigurationData = {
|
|
4906
5647
|
body: {
|