@dazl/api-client 1.0.31 → 1.0.33

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1856,6 +1856,63 @@ export type GetUserInfoResponses = {
1856
1856
 
1857
1857
  export type GetUserInfoResponse = GetUserInfoResponses[keyof GetUserInfoResponses];
1858
1858
 
1859
+ export type GetUserAccessTokenData = {
1860
+ body?: never;
1861
+ path: {
1862
+ dazlId: string;
1863
+ };
1864
+ query?: never;
1865
+ url: '/github/user/{dazlId}/access-token';
1866
+ };
1867
+
1868
+ export type GetUserAccessTokenErrors = {
1869
+ /**
1870
+ * Bad request - Invalid parameters or malformed JSON
1871
+ */
1872
+ 400: {
1873
+ message: string;
1874
+ issues?: string;
1875
+ };
1876
+ /**
1877
+ * Unauthorized
1878
+ */
1879
+ 401: ErrorResponse;
1880
+ /**
1881
+ * Forbidden
1882
+ */
1883
+ 403: ErrorResponse;
1884
+ /**
1885
+ * Not Found
1886
+ */
1887
+ 404: ErrorResponse;
1888
+ /**
1889
+ * Conflict
1890
+ */
1891
+ 409: ErrorResponse;
1892
+ /**
1893
+ * Internal server error
1894
+ */
1895
+ 500: ErrorResponse;
1896
+ /**
1897
+ * Service Unavailable
1898
+ */
1899
+ 503: ErrorResponse;
1900
+ };
1901
+
1902
+ export type GetUserAccessTokenError = GetUserAccessTokenErrors[keyof GetUserAccessTokenErrors];
1903
+
1904
+ export type GetUserAccessTokenResponses = {
1905
+ /**
1906
+ * Returns the user's GitHub access token
1907
+ */
1908
+ 200: {
1909
+ accessToken: string;
1910
+ login: string;
1911
+ };
1912
+ };
1913
+
1914
+ export type GetUserAccessTokenResponse = GetUserAccessTokenResponses[keyof GetUserAccessTokenResponses];
1915
+
1859
1916
  export type GetInstallationsData = {
1860
1917
  body?: never;
1861
1918
  path: {
@@ -2043,6 +2100,69 @@ export type GetRepoInfoResponses = {
2043
2100
 
2044
2101
  export type GetRepoInfoResponse = GetRepoInfoResponses[keyof GetRepoInfoResponses];
2045
2102
 
2103
+ export type GetProjectRepoInfoData = {
2104
+ body?: never;
2105
+ path: {
2106
+ projectId: string;
2107
+ repoId: string;
2108
+ };
2109
+ query?: never;
2110
+ url: '/github/repo/project/{projectId}/{repoId}/info';
2111
+ };
2112
+
2113
+ export type GetProjectRepoInfoErrors = {
2114
+ /**
2115
+ * Bad request - Invalid parameters or malformed JSON
2116
+ */
2117
+ 400: {
2118
+ message: string;
2119
+ issues?: string;
2120
+ };
2121
+ /**
2122
+ * Unauthorized
2123
+ */
2124
+ 401: ErrorResponse;
2125
+ /**
2126
+ * Forbidden
2127
+ */
2128
+ 403: ErrorResponse;
2129
+ /**
2130
+ * Not Found
2131
+ */
2132
+ 404: ErrorResponse;
2133
+ /**
2134
+ * Conflict
2135
+ */
2136
+ 409: ErrorResponse;
2137
+ /**
2138
+ * Internal server error
2139
+ */
2140
+ 500: ErrorResponse;
2141
+ /**
2142
+ * Service Unavailable
2143
+ */
2144
+ 503: ErrorResponse;
2145
+ };
2146
+
2147
+ export type GetProjectRepoInfoError = GetProjectRepoInfoErrors[keyof GetProjectRepoInfoErrors];
2148
+
2149
+ export type GetProjectRepoInfoResponses = {
2150
+ /**
2151
+ * Returns GitHub info for one of the project's linked repositories
2152
+ */
2153
+ 200: {
2154
+ repoFullName: string;
2155
+ token: string | null;
2156
+ id: string;
2157
+ installationId: number | null;
2158
+ createdAt: string;
2159
+ updatedAt: string;
2160
+ dirName: string | null;
2161
+ };
2162
+ };
2163
+
2164
+ export type GetProjectRepoInfoResponse = GetProjectRepoInfoResponses[keyof GetProjectRepoInfoResponses];
2165
+
2046
2166
  export type CreateRepositoryData = {
2047
2167
  body?: {
2048
2168
  dazlId: string;
@@ -3243,37 +3363,48 @@ export type GetProjectInitDataResponses = {
3243
3363
  */
3244
3364
  200: {
3245
3365
  projectId: string;
3246
- gitRepoURL: string;
3366
+ gitRepoURL: string | null;
3247
3367
  gitBranchToClone: string | null;
3248
3368
  gitBranchToCreate: string | null;
3249
- createdAt: string;
3250
- updatedAt: string;
3369
+ createdAt: string | null;
3370
+ updatedAt: string | null;
3371
+ repos: Array<{
3372
+ id: string;
3373
+ projectId: string;
3374
+ repoId: string | null;
3375
+ gitRepoURL: string;
3376
+ gitBranchToClone: string | null;
3377
+ gitBranchToCreate: string | null;
3378
+ dirName: string;
3379
+ attemptCount: number;
3380
+ position: number;
3381
+ createdAt: string;
3382
+ updatedAt: string;
3383
+ }>;
3251
3384
  };
3252
3385
  };
3253
3386
 
3254
3387
  export type GetProjectInitDataResponse = GetProjectInitDataResponses[keyof GetProjectInitDataResponses];
3255
3388
 
3256
- export type CreateProjectData = {
3389
+ export type MarkRepoAsInitializedData = {
3257
3390
  body: {
3258
- name: string;
3259
- userDazlId: string;
3260
- latestScreenshot?: string | null;
3261
- originTemplateId?: string | null;
3262
- createdAt?: string;
3263
- workspaceId?: string;
3264
- remoteEnvConfigId?: string | null;
3265
- projectInitData?: {
3266
- gitRepoURL: string;
3267
- gitBranchToClone?: string | null;
3268
- gitBranchToCreate?: string | null;
3269
- };
3391
+ /**
3392
+ * The dazl ID of the requesting user, used for permission checks
3393
+ */
3394
+ ownerDazlId: string;
3395
+ };
3396
+ path: {
3397
+ projectId: string;
3398
+ /**
3399
+ * The pending init repo entry that has been cloned
3400
+ */
3401
+ initRepoId: string;
3270
3402
  };
3271
- path?: never;
3272
3403
  query?: never;
3273
- url: '/project';
3404
+ url: '/project/{projectId}/project-init-data/{initRepoId}';
3274
3405
  };
3275
3406
 
3276
- export type CreateProjectErrors = {
3407
+ export type MarkRepoAsInitializedErrors = {
3277
3408
  /**
3278
3409
  * Bad request - Invalid parameters or malformed JSON
3279
3410
  */
@@ -3307,53 +3438,40 @@ export type CreateProjectErrors = {
3307
3438
  503: ErrorResponse;
3308
3439
  };
3309
3440
 
3310
- export type CreateProjectError = CreateProjectErrors[keyof CreateProjectErrors];
3441
+ export type MarkRepoAsInitializedError = MarkRepoAsInitializedErrors[keyof MarkRepoAsInitializedErrors];
3311
3442
 
3312
- export type CreateProjectResponses = {
3443
+ export type MarkRepoAsInitializedResponses = {
3313
3444
  /**
3314
- * Returns the created project
3445
+ * Confirms the repo was cloned: the pending entry is removed and its directory recorded on the repo link
3315
3446
  */
3316
3447
  200: {
3317
- project: ProjectRaw;
3448
+ projectId: string;
3449
+ initRepoId: string;
3450
+ dirName: string;
3318
3451
  };
3319
3452
  };
3320
3453
 
3321
- export type CreateProjectResponse = CreateProjectResponses[keyof CreateProjectResponses];
3454
+ export type MarkRepoAsInitializedResponse = MarkRepoAsInitializedResponses[keyof MarkRepoAsInitializedResponses];
3322
3455
 
3323
- export type GetUserProjectsData = {
3324
- body?: never;
3325
- path: {
3456
+ export type ReportRepoInitFailureData = {
3457
+ body: {
3326
3458
  /**
3327
3459
  * The dazl ID of the requesting user, used for permission checks
3328
3460
  */
3329
3461
  ownerDazlId: string;
3330
3462
  };
3331
- query?: {
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;
3463
+ path: {
3464
+ projectId: string;
3348
3465
  /**
3349
- * Include associated users metadata in the response
3466
+ * The pending init repo entry whose clone failed
3350
3467
  */
3351
- withAssociatedUsers?: boolean | null;
3468
+ initRepoId: string;
3352
3469
  };
3353
- url: '/project/user/{ownerDazlId}';
3470
+ query?: never;
3471
+ url: '/project/{projectId}/project-init-data/{initRepoId}/failure';
3354
3472
  };
3355
3473
 
3356
- export type GetUserProjectsErrors = {
3474
+ export type ReportRepoInitFailureErrors = {
3357
3475
  /**
3358
3476
  * Bad request - Invalid parameters or malformed JSON
3359
3477
  */
@@ -3387,42 +3505,53 @@ export type GetUserProjectsErrors = {
3387
3505
  503: ErrorResponse;
3388
3506
  };
3389
3507
 
3390
- export type GetUserProjectsError = GetUserProjectsErrors[keyof GetUserProjectsErrors];
3508
+ export type ReportRepoInitFailureError = ReportRepoInitFailureErrors[keyof ReportRepoInitFailureErrors];
3391
3509
 
3392
- export type GetUserProjectsResponses = {
3510
+ export type ReportRepoInitFailureResponses = {
3393
3511
  /**
3394
- * Returns the list of projects for the specified user
3512
+ * Records a failed clone attempt; the entry is abandoned once the attempt cap is reached
3395
3513
  */
3396
3514
  200: {
3397
- projects: Array<ProjectRaw & {
3398
- deploy: {
3399
- publishedAt: string;
3400
- productionURL: string;
3401
- netlifyDeployId: string;
3402
- } | null;
3403
- screenshotUrl: string | null;
3404
- productName: string | null;
3405
- }>;
3406
- users?: Array<UserDisplayInfoResponse>;
3515
+ projectId: string;
3516
+ initRepoId: string;
3517
+ dirName: string;
3518
+ attemptCount: number;
3519
+ maxAttempts: number;
3520
+ /**
3521
+ * True when the attempt cap was reached: the pending entry was removed and will not be retried
3522
+ */
3523
+ abandoned: boolean;
3407
3524
  };
3408
3525
  };
3409
3526
 
3410
- export type GetUserProjectsResponse = GetUserProjectsResponses[keyof GetUserProjectsResponses];
3527
+ export type ReportRepoInitFailureResponse = ReportRepoInitFailureResponses[keyof ReportRepoInitFailureResponses];
3411
3528
 
3412
- export type InviteProjectMemberData = {
3529
+ export type CreateProjectData = {
3413
3530
  body: {
3414
- email: string;
3415
- invitedByDazlId: string;
3416
- role: 'admin' | 'contributor' | 'viewer';
3417
- };
3418
- path: {
3419
- projectId: string;
3531
+ name: string;
3532
+ userDazlId: string;
3533
+ latestScreenshot?: string | null;
3534
+ originTemplateId?: string | null;
3535
+ createdAt?: string;
3536
+ workspaceId?: string;
3537
+ remoteEnvConfigId?: string | null;
3538
+ projectInitData?: {
3539
+ gitRepoURL: string;
3540
+ gitBranchToClone?: string | null;
3541
+ gitBranchToCreate?: string | null;
3542
+ };
3543
+ projectInitRepos?: Array<{
3544
+ gitRepoURL: string;
3545
+ gitBranchToClone?: string | null;
3546
+ gitBranchToCreate?: string | null;
3547
+ }>;
3420
3548
  };
3549
+ path?: never;
3421
3550
  query?: never;
3422
- url: '/project/{projectId}/members/invite';
3551
+ url: '/project';
3423
3552
  };
3424
3553
 
3425
- export type InviteProjectMemberErrors = {
3554
+ export type CreateProjectErrors = {
3426
3555
  /**
3427
3556
  * Bad request - Invalid parameters or malformed JSON
3428
3557
  */
@@ -3456,31 +3585,34 @@ export type InviteProjectMemberErrors = {
3456
3585
  503: ErrorResponse;
3457
3586
  };
3458
3587
 
3459
- export type InviteProjectMemberError = InviteProjectMemberErrors[keyof InviteProjectMemberErrors];
3588
+ export type CreateProjectError = CreateProjectErrors[keyof CreateProjectErrors];
3460
3589
 
3461
- export type InviteProjectMemberResponses = {
3590
+ export type CreateProjectResponses = {
3462
3591
  /**
3463
- * Returns the invitation token, or null if user was auto-added to project
3592
+ * Returns the created project
3464
3593
  */
3465
3594
  200: {
3466
- token: string | null;
3595
+ project: ProjectRaw;
3467
3596
  };
3468
3597
  };
3469
3598
 
3470
- export type InviteProjectMemberResponse = InviteProjectMemberResponses[keyof InviteProjectMemberResponses];
3599
+ export type CreateProjectResponse = CreateProjectResponses[keyof CreateProjectResponses];
3471
3600
 
3472
- export type GetProjectCollaboratorsData = {
3601
+ export type ListProjectReposData = {
3473
3602
  body?: never;
3474
3603
  path: {
3475
3604
  projectId: string;
3476
3605
  };
3477
3606
  query: {
3478
- userDazlId: string;
3607
+ /**
3608
+ * The dazl ID of the requesting user, used for permission checks
3609
+ */
3610
+ ownerDazlId: string;
3479
3611
  };
3480
- url: '/project/{projectId}/collaborators';
3612
+ url: '/project/{projectId}/repos';
3481
3613
  };
3482
3614
 
3483
- export type GetProjectCollaboratorsErrors = {
3615
+ export type ListProjectReposErrors = {
3484
3616
  /**
3485
3617
  * Bad request - Invalid parameters or malformed JSON
3486
3618
  */
@@ -3514,56 +3646,62 @@ export type GetProjectCollaboratorsErrors = {
3514
3646
  503: ErrorResponse;
3515
3647
  };
3516
3648
 
3517
- export type GetProjectCollaboratorsError = GetProjectCollaboratorsErrors[keyof GetProjectCollaboratorsErrors];
3649
+ export type ListProjectReposError = ListProjectReposErrors[keyof ListProjectReposErrors];
3518
3650
 
3519
- export type GetProjectCollaboratorsResponses = {
3651
+ export type ListProjectReposResponses = {
3520
3652
  /**
3521
- * Returns the list of project collaborators: both members and invitations
3653
+ * Returns the project's linked and pending git repositories
3522
3654
  */
3523
3655
  200: {
3524
- owner: {
3656
+ repos: Array<{
3657
+ repoId: string;
3658
+ repoFullName: string;
3659
+ host: string;
3525
3660
  /**
3526
- * Dazl ID for the type = "user"
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"
3661
+ * Directory under the project root the repo was cloned into; null for legacy root-layout repos
3537
3662
  */
3538
- id: string;
3539
- email: string;
3540
- name?: string;
3541
- picture?: string;
3542
- role: 'admin' | 'contributor' | 'viewer' | 'owner';
3663
+ dirName: string | null;
3664
+ hasActiveInstallation: boolean;
3543
3665
  }>;
3544
- invited: Array<{
3545
- role: 'admin' | 'contributor' | 'viewer';
3546
- email?: string;
3666
+ /**
3667
+ * Repos awaiting their clone by the session container
3668
+ */
3669
+ pending: Array<{
3547
3670
  id: string;
3671
+ projectId: string;
3672
+ repoId: string | null;
3673
+ gitRepoURL: string;
3674
+ gitBranchToClone: string | null;
3675
+ gitBranchToCreate: string | null;
3676
+ dirName: string;
3677
+ attemptCount: number;
3678
+ position: number;
3679
+ createdAt: string;
3680
+ updatedAt: string;
3548
3681
  }>;
3549
3682
  };
3550
3683
  };
3551
3684
 
3552
- export type GetProjectCollaboratorsResponse = GetProjectCollaboratorsResponses[keyof GetProjectCollaboratorsResponses];
3685
+ export type ListProjectReposResponse = ListProjectReposResponses[keyof ListProjectReposResponses];
3553
3686
 
3554
- export type DeleteProjectMemberData = {
3555
- body?: never;
3687
+ export type AddProjectRepoData = {
3688
+ body: {
3689
+ /**
3690
+ * The dazl ID of the requesting user, used for permission checks
3691
+ */
3692
+ ownerDazlId: string;
3693
+ gitRepoURL: string;
3694
+ gitBranchToClone?: string | null;
3695
+ gitBranchToCreate?: string | null;
3696
+ };
3556
3697
  path: {
3557
3698
  projectId: string;
3558
- memberId: string;
3559
- };
3560
- query: {
3561
- userDazlId: string;
3562
3699
  };
3563
- url: '/project/{projectId}/members/{memberId}';
3700
+ query?: never;
3701
+ url: '/project/{projectId}/repos';
3564
3702
  };
3565
3703
 
3566
- export type DeleteProjectMemberErrors = {
3704
+ export type AddProjectRepoErrors = {
3567
3705
  /**
3568
3706
  * Bad request - Invalid parameters or malformed JSON
3569
3707
  */
@@ -3597,32 +3735,65 @@ export type DeleteProjectMemberErrors = {
3597
3735
  503: ErrorResponse;
3598
3736
  };
3599
3737
 
3600
- export type DeleteProjectMemberError = DeleteProjectMemberErrors[keyof DeleteProjectMemberErrors];
3738
+ export type AddProjectRepoError = AddProjectRepoErrors[keyof AddProjectRepoErrors];
3601
3739
 
3602
- export type DeleteProjectMemberResponses = {
3740
+ export type AddProjectRepoResponses = {
3603
3741
  /**
3604
- * Acknowledges that the project member was deleted
3742
+ * Attaches another git repository to the project; it is cloned into its dirName by the running session or on the next session start
3605
3743
  */
3606
3744
  200: {
3607
- status: 'deleted';
3745
+ repo: {
3746
+ id: string;
3747
+ projectId: string;
3748
+ repoId: string | null;
3749
+ gitRepoURL: string;
3750
+ gitBranchToClone: string | null;
3751
+ gitBranchToCreate: string | null;
3752
+ dirName: string;
3753
+ attemptCount: number;
3754
+ position: number;
3755
+ createdAt: string;
3756
+ updatedAt: string;
3757
+ };
3608
3758
  };
3609
3759
  };
3610
3760
 
3611
- export type DeleteProjectMemberResponse = DeleteProjectMemberResponses[keyof DeleteProjectMemberResponses];
3761
+ export type AddProjectRepoResponse = AddProjectRepoResponses[keyof AddProjectRepoResponses];
3612
3762
 
3613
- export type DeleteProjectInvitationData = {
3763
+ export type GetUserProjectsData = {
3614
3764
  body?: never;
3615
3765
  path: {
3616
- projectId: string;
3617
- invitationId: string;
3766
+ /**
3767
+ * The dazl ID of the requesting user, used for permission checks
3768
+ */
3769
+ ownerDazlId: string;
3618
3770
  };
3619
- query: {
3620
- userDazlId: string;
3771
+ query?: {
3772
+ /**
3773
+ * Filter projects by workspace ID
3774
+ */
3775
+ workspaceId?: string;
3776
+ /**
3777
+ * Include deployed projects info in the response
3778
+ */
3779
+ withDeploy?: boolean | null;
3780
+ /**
3781
+ * Include project screenshots url in the response
3782
+ */
3783
+ withScreenshot?: boolean | null;
3784
+ /**
3785
+ * filter by origin template when provided
3786
+ */
3787
+ originTemplateId?: string;
3788
+ /**
3789
+ * Include associated users metadata in the response
3790
+ */
3791
+ withAssociatedUsers?: boolean | null;
3621
3792
  };
3622
- url: '/project/{projectId}/invitations/{invitationId}';
3793
+ url: '/project/user/{ownerDazlId}';
3623
3794
  };
3624
3795
 
3625
- export type DeleteProjectInvitationErrors = {
3796
+ export type GetUserProjectsErrors = {
3626
3797
  /**
3627
3798
  * Bad request - Invalid parameters or malformed JSON
3628
3799
  */
@@ -3656,32 +3827,42 @@ export type DeleteProjectInvitationErrors = {
3656
3827
  503: ErrorResponse;
3657
3828
  };
3658
3829
 
3659
- export type DeleteProjectInvitationError = DeleteProjectInvitationErrors[keyof DeleteProjectInvitationErrors];
3830
+ export type GetUserProjectsError = GetUserProjectsErrors[keyof GetUserProjectsErrors];
3660
3831
 
3661
- export type DeleteProjectInvitationResponses = {
3832
+ export type GetUserProjectsResponses = {
3662
3833
  /**
3663
- * Acknowledges that the project invitation was deleted
3834
+ * Returns the list of projects for the specified user
3664
3835
  */
3665
3836
  200: {
3666
- status: 'deleted';
3837
+ projects: Array<ProjectRaw & {
3838
+ deploy: {
3839
+ publishedAt: string;
3840
+ productionURL: string;
3841
+ netlifyDeployId: string;
3842
+ } | null;
3843
+ screenshotUrl: string | null;
3844
+ productName: string | null;
3845
+ }>;
3846
+ users?: Array<UserDisplayInfoResponse>;
3667
3847
  };
3668
3848
  };
3669
3849
 
3670
- export type DeleteProjectInvitationResponse = DeleteProjectInvitationResponses[keyof DeleteProjectInvitationResponses];
3850
+ export type GetUserProjectsResponse = GetUserProjectsResponses[keyof GetUserProjectsResponses];
3671
3851
 
3672
- export type InternalDeleteCommentData = {
3673
- body?: never;
3852
+ export type InviteProjectMemberData = {
3853
+ body: {
3854
+ email: string;
3855
+ invitedByDazlId: string;
3856
+ role: 'admin' | 'contributor' | 'viewer';
3857
+ };
3674
3858
  path: {
3675
3859
  projectId: string;
3676
- commentId: string;
3677
- };
3678
- query?: {
3679
- editorDazlUserId?: string;
3680
3860
  };
3681
- url: '/project/{projectId}/comments/{commentId}';
3861
+ query?: never;
3862
+ url: '/project/{projectId}/members/invite';
3682
3863
  };
3683
3864
 
3684
- export type InternalDeleteCommentErrors = {
3865
+ export type InviteProjectMemberErrors = {
3685
3866
  /**
3686
3867
  * Bad request - Invalid parameters or malformed JSON
3687
3868
  */
@@ -3715,30 +3896,31 @@ export type InternalDeleteCommentErrors = {
3715
3896
  503: ErrorResponse;
3716
3897
  };
3717
3898
 
3718
- export type InternalDeleteCommentError = InternalDeleteCommentErrors[keyof InternalDeleteCommentErrors];
3899
+ export type InviteProjectMemberError = InviteProjectMemberErrors[keyof InviteProjectMemberErrors];
3719
3900
 
3720
- export type InternalDeleteCommentResponses = {
3901
+ export type InviteProjectMemberResponses = {
3721
3902
  /**
3722
- * Acknowledges that the comment was deleted
3903
+ * Returns the invitation token, or null if user was auto-added to project
3723
3904
  */
3724
3905
  200: {
3725
- success: true;
3906
+ token: string | null;
3726
3907
  };
3727
3908
  };
3728
3909
 
3729
- export type InternalDeleteCommentResponse = InternalDeleteCommentResponses[keyof InternalDeleteCommentResponses];
3910
+ export type InviteProjectMemberResponse = InviteProjectMemberResponses[keyof InviteProjectMemberResponses];
3730
3911
 
3731
- export type InternalGetProjectCommentData = {
3912
+ export type GetProjectCollaboratorsData = {
3732
3913
  body?: never;
3733
3914
  path: {
3734
3915
  projectId: string;
3735
- commentId: string;
3736
3916
  };
3737
- query?: never;
3738
- url: '/project/{projectId}/comments/{commentId}';
3917
+ query: {
3918
+ userDazlId: string;
3919
+ };
3920
+ url: '/project/{projectId}/collaborators';
3739
3921
  };
3740
3922
 
3741
- export type InternalGetProjectCommentErrors = {
3923
+ export type GetProjectCollaboratorsErrors = {
3742
3924
  /**
3743
3925
  * Bad request - Invalid parameters or malformed JSON
3744
3926
  */
@@ -3772,55 +3954,56 @@ export type InternalGetProjectCommentErrors = {
3772
3954
  503: ErrorResponse;
3773
3955
  };
3774
3956
 
3775
- export type InternalGetProjectCommentError = InternalGetProjectCommentErrors[keyof InternalGetProjectCommentErrors];
3957
+ export type GetProjectCollaboratorsError = GetProjectCollaboratorsErrors[keyof GetProjectCollaboratorsErrors];
3776
3958
 
3777
- export type InternalGetProjectCommentResponses = {
3959
+ export type GetProjectCollaboratorsResponses = {
3778
3960
  /**
3779
- * Returns comment by id for the project
3961
+ * Returns the list of project collaborators: both members and invitations
3780
3962
  */
3781
3963
  200: {
3782
- comment: {
3783
- commentId: string;
3784
- author: {
3785
- dazlUserId: string;
3786
- };
3787
- content: string;
3788
- mentions: Array<UserMention>;
3789
- createdAt: string;
3790
- updatedAt: string;
3791
- lastActivityAt: string;
3792
- isEdited: boolean;
3793
- replies: Array<{
3794
- replyId: string;
3795
- author: {
3796
- dazlUserId: string;
3797
- };
3798
- content: string;
3799
- mentions: Array<UserMention>;
3800
- createdAt: string;
3801
- updatedAt: string;
3802
- gitInfo?: CommentGitInfo;
3803
- }>;
3804
- resolved?: CommentResolved;
3805
- context?: CommentContext;
3806
- gitInfo?: CommentGitInfo;
3807
- };
3964
+ owner: {
3965
+ /**
3966
+ * Dazl ID for the type = "user"
3967
+ */
3968
+ id: string;
3969
+ email: string;
3970
+ name?: string;
3971
+ picture?: string;
3972
+ role: 'admin' | 'contributor' | 'viewer' | 'owner';
3973
+ } | null;
3974
+ members: Array<{
3975
+ /**
3976
+ * Dazl ID for the type = "user"
3977
+ */
3978
+ id: string;
3979
+ email: string;
3980
+ name?: string;
3981
+ picture?: string;
3982
+ role: 'admin' | 'contributor' | 'viewer' | 'owner';
3983
+ }>;
3984
+ invited: Array<{
3985
+ role: 'admin' | 'contributor' | 'viewer';
3986
+ email?: string;
3987
+ id: string;
3988
+ }>;
3808
3989
  };
3809
3990
  };
3810
3991
 
3811
- export type InternalGetProjectCommentResponse = InternalGetProjectCommentResponses[keyof InternalGetProjectCommentResponses];
3992
+ export type GetProjectCollaboratorsResponse = GetProjectCollaboratorsResponses[keyof GetProjectCollaboratorsResponses];
3812
3993
 
3813
- export type InternalEditCommentData = {
3814
- body: InternalEditCommentInput;
3994
+ export type DeleteProjectMemberData = {
3995
+ body?: never;
3815
3996
  path: {
3816
3997
  projectId: string;
3817
- commentId: string;
3998
+ memberId: string;
3818
3999
  };
3819
- query?: never;
3820
- url: '/project/{projectId}/comments/{commentId}';
4000
+ query: {
4001
+ userDazlId: string;
4002
+ };
4003
+ url: '/project/{projectId}/members/{memberId}';
3821
4004
  };
3822
4005
 
3823
- export type InternalEditCommentErrors = {
4006
+ export type DeleteProjectMemberErrors = {
3824
4007
  /**
3825
4008
  * Bad request - Invalid parameters or malformed JSON
3826
4009
  */
@@ -3854,54 +4037,32 @@ export type InternalEditCommentErrors = {
3854
4037
  503: ErrorResponse;
3855
4038
  };
3856
4039
 
3857
- export type InternalEditCommentError = InternalEditCommentErrors[keyof InternalEditCommentErrors];
4040
+ export type DeleteProjectMemberError = DeleteProjectMemberErrors[keyof DeleteProjectMemberErrors];
3858
4041
 
3859
- export type InternalEditCommentResponses = {
4042
+ export type DeleteProjectMemberResponses = {
3860
4043
  /**
3861
- * Returns the updated comment
4044
+ * Acknowledges that the project member was deleted
3862
4045
  */
3863
4046
  200: {
3864
- comment: {
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
- };
4047
+ status: 'deleted';
3890
4048
  };
3891
4049
  };
3892
4050
 
3893
- export type InternalEditCommentResponse = InternalEditCommentResponses[keyof InternalEditCommentResponses];
4051
+ export type DeleteProjectMemberResponse = DeleteProjectMemberResponses[keyof DeleteProjectMemberResponses];
3894
4052
 
3895
- export type InternalListProjectCommentsData = {
4053
+ export type DeleteProjectInvitationData = {
3896
4054
  body?: never;
3897
4055
  path: {
3898
4056
  projectId: string;
4057
+ invitationId: string;
3899
4058
  };
3900
- query?: never;
3901
- url: '/project/{projectId}/comments';
4059
+ query: {
4060
+ userDazlId: string;
4061
+ };
4062
+ url: '/project/{projectId}/invitations/{invitationId}';
3902
4063
  };
3903
4064
 
3904
- export type InternalListProjectCommentsErrors = {
4065
+ export type DeleteProjectInvitationErrors = {
3905
4066
  /**
3906
4067
  * Bad request - Invalid parameters or malformed JSON
3907
4068
  */
@@ -3935,14 +4096,130 @@ export type InternalListProjectCommentsErrors = {
3935
4096
  503: ErrorResponse;
3936
4097
  };
3937
4098
 
3938
- export type InternalListProjectCommentsError = InternalListProjectCommentsErrors[keyof InternalListProjectCommentsErrors];
4099
+ export type DeleteProjectInvitationError = DeleteProjectInvitationErrors[keyof DeleteProjectInvitationErrors];
3939
4100
 
3940
- export type InternalListProjectCommentsResponses = {
4101
+ export type DeleteProjectInvitationResponses = {
3941
4102
  /**
3942
- * Returns the list of comments for the project
4103
+ * Acknowledges that the project invitation was deleted
3943
4104
  */
3944
4105
  200: {
3945
- comments: Array<{
4106
+ status: 'deleted';
4107
+ };
4108
+ };
4109
+
4110
+ export type DeleteProjectInvitationResponse = DeleteProjectInvitationResponses[keyof DeleteProjectInvitationResponses];
4111
+
4112
+ export type InternalDeleteCommentData = {
4113
+ body?: never;
4114
+ path: {
4115
+ projectId: string;
4116
+ commentId: string;
4117
+ };
4118
+ query?: {
4119
+ editorDazlUserId?: string;
4120
+ };
4121
+ url: '/project/{projectId}/comments/{commentId}';
4122
+ };
4123
+
4124
+ export type InternalDeleteCommentErrors = {
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 InternalDeleteCommentError = InternalDeleteCommentErrors[keyof InternalDeleteCommentErrors];
4159
+
4160
+ export type InternalDeleteCommentResponses = {
4161
+ /**
4162
+ * Acknowledges that the comment was deleted
4163
+ */
4164
+ 200: {
4165
+ success: true;
4166
+ };
4167
+ };
4168
+
4169
+ export type InternalDeleteCommentResponse = InternalDeleteCommentResponses[keyof InternalDeleteCommentResponses];
4170
+
4171
+ export type InternalGetProjectCommentData = {
4172
+ body?: never;
4173
+ path: {
4174
+ projectId: string;
4175
+ commentId: string;
4176
+ };
4177
+ query?: never;
4178
+ url: '/project/{projectId}/comments/{commentId}';
4179
+ };
4180
+
4181
+ export type InternalGetProjectCommentErrors = {
4182
+ /**
4183
+ * Bad request - Invalid parameters or malformed JSON
4184
+ */
4185
+ 400: {
4186
+ message: string;
4187
+ issues?: string;
4188
+ };
4189
+ /**
4190
+ * Unauthorized
4191
+ */
4192
+ 401: ErrorResponse;
4193
+ /**
4194
+ * Forbidden
4195
+ */
4196
+ 403: ErrorResponse;
4197
+ /**
4198
+ * Not Found
4199
+ */
4200
+ 404: ErrorResponse;
4201
+ /**
4202
+ * Conflict
4203
+ */
4204
+ 409: ErrorResponse;
4205
+ /**
4206
+ * Internal server error
4207
+ */
4208
+ 500: ErrorResponse;
4209
+ /**
4210
+ * Service Unavailable
4211
+ */
4212
+ 503: ErrorResponse;
4213
+ };
4214
+
4215
+ export type InternalGetProjectCommentError = InternalGetProjectCommentErrors[keyof InternalGetProjectCommentErrors];
4216
+
4217
+ export type InternalGetProjectCommentResponses = {
4218
+ /**
4219
+ * Returns comment by id for the project
4220
+ */
4221
+ 200: {
4222
+ comment: {
3946
4223
  commentId: string;
3947
4224
  author: {
3948
4225
  dazlUserId: string;
@@ -3967,22 +4244,23 @@ export type InternalListProjectCommentsResponses = {
3967
4244
  resolved?: CommentResolved;
3968
4245
  context?: CommentContext;
3969
4246
  gitInfo?: CommentGitInfo;
3970
- }>;
4247
+ };
3971
4248
  };
3972
4249
  };
3973
4250
 
3974
- export type InternalListProjectCommentsResponse = InternalListProjectCommentsResponses[keyof InternalListProjectCommentsResponses];
4251
+ export type InternalGetProjectCommentResponse = InternalGetProjectCommentResponses[keyof InternalGetProjectCommentResponses];
3975
4252
 
3976
- export type InternalCreateCommentData = {
3977
- body: InternalCreateCommentInput;
4253
+ export type InternalEditCommentData = {
4254
+ body: InternalEditCommentInput;
3978
4255
  path: {
3979
4256
  projectId: string;
4257
+ commentId: string;
3980
4258
  };
3981
4259
  query?: never;
3982
- url: '/project/{projectId}/comments';
4260
+ url: '/project/{projectId}/comments/{commentId}';
3983
4261
  };
3984
4262
 
3985
- export type InternalCreateCommentErrors = {
4263
+ export type InternalEditCommentErrors = {
3986
4264
  /**
3987
4265
  * Bad request - Invalid parameters or malformed JSON
3988
4266
  */
@@ -4016,11 +4294,11 @@ export type InternalCreateCommentErrors = {
4016
4294
  503: ErrorResponse;
4017
4295
  };
4018
4296
 
4019
- export type InternalCreateCommentError = InternalCreateCommentErrors[keyof InternalCreateCommentErrors];
4297
+ export type InternalEditCommentError = InternalEditCommentErrors[keyof InternalEditCommentErrors];
4020
4298
 
4021
- export type InternalCreateCommentResponses = {
4299
+ export type InternalEditCommentResponses = {
4022
4300
  /**
4023
- * Returns the created comment
4301
+ * Returns the updated comment
4024
4302
  */
4025
4303
  200: {
4026
4304
  comment: {
@@ -4052,21 +4330,18 @@ export type InternalCreateCommentResponses = {
4052
4330
  };
4053
4331
  };
4054
4332
 
4055
- export type InternalCreateCommentResponse = InternalCreateCommentResponses[keyof InternalCreateCommentResponses];
4333
+ export type InternalEditCommentResponse = InternalEditCommentResponses[keyof InternalEditCommentResponses];
4056
4334
 
4057
- export type InternalResolveCommentData = {
4335
+ export type InternalListProjectCommentsData = {
4058
4336
  body?: never;
4059
4337
  path: {
4060
4338
  projectId: string;
4061
- commentId: string;
4062
- };
4063
- query: {
4064
- resolvedByDazlUserId: string;
4065
4339
  };
4066
- url: '/project/{projectId}/comments/{commentId}/resolve';
4340
+ query?: never;
4341
+ url: '/project/{projectId}/comments';
4067
4342
  };
4068
4343
 
4069
- export type InternalResolveCommentErrors = {
4344
+ export type InternalListProjectCommentsErrors = {
4070
4345
  /**
4071
4346
  * Bad request - Invalid parameters or malformed JSON
4072
4347
  */
@@ -4100,14 +4375,14 @@ export type InternalResolveCommentErrors = {
4100
4375
  503: ErrorResponse;
4101
4376
  };
4102
4377
 
4103
- export type InternalResolveCommentError = InternalResolveCommentErrors[keyof InternalResolveCommentErrors];
4378
+ export type InternalListProjectCommentsError = InternalListProjectCommentsErrors[keyof InternalListProjectCommentsErrors];
4104
4379
 
4105
- export type InternalResolveCommentResponses = {
4380
+ export type InternalListProjectCommentsResponses = {
4106
4381
  /**
4107
- * Returns the resolved comment
4382
+ * Returns the list of comments for the project
4108
4383
  */
4109
4384
  200: {
4110
- comment: {
4385
+ comments: Array<{
4111
4386
  commentId: string;
4112
4387
  author: {
4113
4388
  dazlUserId: string;
@@ -4132,23 +4407,22 @@ export type InternalResolveCommentResponses = {
4132
4407
  resolved?: CommentResolved;
4133
4408
  context?: CommentContext;
4134
4409
  gitInfo?: CommentGitInfo;
4135
- };
4410
+ }>;
4136
4411
  };
4137
4412
  };
4138
4413
 
4139
- export type InternalResolveCommentResponse = InternalResolveCommentResponses[keyof InternalResolveCommentResponses];
4414
+ export type InternalListProjectCommentsResponse = InternalListProjectCommentsResponses[keyof InternalListProjectCommentsResponses];
4140
4415
 
4141
- export type InternalReopenCommentData = {
4142
- body?: never;
4416
+ export type InternalCreateCommentData = {
4417
+ body: InternalCreateCommentInput;
4143
4418
  path: {
4144
4419
  projectId: string;
4145
- commentId: string;
4146
4420
  };
4147
4421
  query?: never;
4148
- url: '/project/{projectId}/comments/{commentId}/reopen';
4422
+ url: '/project/{projectId}/comments';
4149
4423
  };
4150
4424
 
4151
- export type InternalReopenCommentErrors = {
4425
+ export type InternalCreateCommentErrors = {
4152
4426
  /**
4153
4427
  * Bad request - Invalid parameters or malformed JSON
4154
4428
  */
@@ -4182,11 +4456,11 @@ export type InternalReopenCommentErrors = {
4182
4456
  503: ErrorResponse;
4183
4457
  };
4184
4458
 
4185
- export type InternalReopenCommentError = InternalReopenCommentErrors[keyof InternalReopenCommentErrors];
4459
+ export type InternalCreateCommentError = InternalCreateCommentErrors[keyof InternalCreateCommentErrors];
4186
4460
 
4187
- export type InternalReopenCommentResponses = {
4461
+ export type InternalCreateCommentResponses = {
4188
4462
  /**
4189
- * Returns the reopened comment
4463
+ * Returns the created comment
4190
4464
  */
4191
4465
  200: {
4192
4466
  comment: {
@@ -4218,19 +4492,21 @@ export type InternalReopenCommentResponses = {
4218
4492
  };
4219
4493
  };
4220
4494
 
4221
- export type InternalReopenCommentResponse = InternalReopenCommentResponses[keyof InternalReopenCommentResponses];
4495
+ export type InternalCreateCommentResponse = InternalCreateCommentResponses[keyof InternalCreateCommentResponses];
4222
4496
 
4223
- export type InternalCreateReplyData = {
4224
- body: InternalCreateReplyInput;
4497
+ export type InternalResolveCommentData = {
4498
+ body?: never;
4225
4499
  path: {
4226
4500
  projectId: string;
4227
4501
  commentId: string;
4228
4502
  };
4229
- query?: never;
4230
- url: '/project/{projectId}/comments/{commentId}/replies';
4503
+ query: {
4504
+ resolvedByDazlUserId: string;
4505
+ };
4506
+ url: '/project/{projectId}/comments/{commentId}/resolve';
4231
4507
  };
4232
4508
 
4233
- export type InternalCreateReplyErrors = {
4509
+ export type InternalResolveCommentErrors = {
4234
4510
  /**
4235
4511
  * Bad request - Invalid parameters or malformed JSON
4236
4512
  */
@@ -4264,15 +4540,15 @@ export type InternalCreateReplyErrors = {
4264
4540
  503: ErrorResponse;
4265
4541
  };
4266
4542
 
4267
- export type InternalCreateReplyError = InternalCreateReplyErrors[keyof InternalCreateReplyErrors];
4543
+ export type InternalResolveCommentError = InternalResolveCommentErrors[keyof InternalResolveCommentErrors];
4268
4544
 
4269
- export type InternalCreateReplyResponses = {
4545
+ export type InternalResolveCommentResponses = {
4270
4546
  /**
4271
- * Returns the created reply
4547
+ * Returns the resolved comment
4272
4548
  */
4273
4549
  200: {
4274
- reply: {
4275
- replyId: string;
4550
+ comment: {
4551
+ commentId: string;
4276
4552
  author: {
4277
4553
  dazlUserId: string;
4278
4554
  };
@@ -4280,27 +4556,501 @@ export type InternalCreateReplyResponses = {
4280
4556
  mentions: Array<UserMention>;
4281
4557
  createdAt: string;
4282
4558
  updatedAt: string;
4559
+ lastActivityAt: string;
4560
+ isEdited: boolean;
4561
+ replies: Array<{
4562
+ replyId: string;
4563
+ author: {
4564
+ dazlUserId: string;
4565
+ };
4566
+ content: string;
4567
+ mentions: Array<UserMention>;
4568
+ createdAt: string;
4569
+ updatedAt: string;
4570
+ gitInfo?: CommentGitInfo;
4571
+ }>;
4572
+ resolved?: CommentResolved;
4573
+ context?: CommentContext;
4283
4574
  gitInfo?: CommentGitInfo;
4284
4575
  };
4285
4576
  };
4286
4577
  };
4287
4578
 
4288
- export type InternalCreateReplyResponse = InternalCreateReplyResponses[keyof InternalCreateReplyResponses];
4579
+ export type InternalResolveCommentResponse = InternalResolveCommentResponses[keyof InternalResolveCommentResponses];
4289
4580
 
4290
- export type InternalDeleteReplyData = {
4581
+ export type InternalReopenCommentData = {
4291
4582
  body?: never;
4292
4583
  path: {
4293
4584
  projectId: string;
4294
4585
  commentId: string;
4295
- replyId: string;
4296
4586
  };
4297
- query?: {
4298
- editorDazlUserId?: string;
4587
+ query?: never;
4588
+ url: '/project/{projectId}/comments/{commentId}/reopen';
4589
+ };
4590
+
4591
+ export type InternalReopenCommentErrors = {
4592
+ /**
4593
+ * Bad request - Invalid parameters or malformed JSON
4594
+ */
4595
+ 400: {
4596
+ message: string;
4597
+ issues?: string;
4299
4598
  };
4300
- url: '/project/{projectId}/comments/{commentId}/replies/{replyId}';
4599
+ /**
4600
+ * Unauthorized
4601
+ */
4602
+ 401: ErrorResponse;
4603
+ /**
4604
+ * Forbidden
4605
+ */
4606
+ 403: ErrorResponse;
4607
+ /**
4608
+ * Not Found
4609
+ */
4610
+ 404: ErrorResponse;
4611
+ /**
4612
+ * Conflict
4613
+ */
4614
+ 409: ErrorResponse;
4615
+ /**
4616
+ * Internal server error
4617
+ */
4618
+ 500: ErrorResponse;
4619
+ /**
4620
+ * Service Unavailable
4621
+ */
4622
+ 503: ErrorResponse;
4623
+ };
4624
+
4625
+ export type InternalReopenCommentError = InternalReopenCommentErrors[keyof InternalReopenCommentErrors];
4626
+
4627
+ export type InternalReopenCommentResponses = {
4628
+ /**
4629
+ * Returns the reopened comment
4630
+ */
4631
+ 200: {
4632
+ comment: {
4633
+ commentId: string;
4634
+ author: {
4635
+ dazlUserId: string;
4636
+ };
4637
+ content: string;
4638
+ mentions: Array<UserMention>;
4639
+ createdAt: string;
4640
+ updatedAt: string;
4641
+ lastActivityAt: string;
4642
+ isEdited: boolean;
4643
+ replies: Array<{
4644
+ replyId: string;
4645
+ author: {
4646
+ dazlUserId: string;
4647
+ };
4648
+ content: string;
4649
+ mentions: Array<UserMention>;
4650
+ createdAt: string;
4651
+ updatedAt: string;
4652
+ gitInfo?: CommentGitInfo;
4653
+ }>;
4654
+ resolved?: CommentResolved;
4655
+ context?: CommentContext;
4656
+ gitInfo?: CommentGitInfo;
4657
+ };
4658
+ };
4659
+ };
4660
+
4661
+ export type InternalReopenCommentResponse = InternalReopenCommentResponses[keyof InternalReopenCommentResponses];
4662
+
4663
+ export type InternalCreateReplyData = {
4664
+ body: InternalCreateReplyInput;
4665
+ path: {
4666
+ projectId: string;
4667
+ commentId: string;
4668
+ };
4669
+ query?: never;
4670
+ url: '/project/{projectId}/comments/{commentId}/replies';
4671
+ };
4672
+
4673
+ export type InternalCreateReplyErrors = {
4674
+ /**
4675
+ * Bad request - Invalid parameters or malformed JSON
4676
+ */
4677
+ 400: {
4678
+ message: string;
4679
+ issues?: string;
4680
+ };
4681
+ /**
4682
+ * Unauthorized
4683
+ */
4684
+ 401: ErrorResponse;
4685
+ /**
4686
+ * Forbidden
4687
+ */
4688
+ 403: ErrorResponse;
4689
+ /**
4690
+ * Not Found
4691
+ */
4692
+ 404: ErrorResponse;
4693
+ /**
4694
+ * Conflict
4695
+ */
4696
+ 409: ErrorResponse;
4697
+ /**
4698
+ * Internal server error
4699
+ */
4700
+ 500: ErrorResponse;
4701
+ /**
4702
+ * Service Unavailable
4703
+ */
4704
+ 503: ErrorResponse;
4705
+ };
4706
+
4707
+ export type InternalCreateReplyError = InternalCreateReplyErrors[keyof InternalCreateReplyErrors];
4708
+
4709
+ export type InternalCreateReplyResponses = {
4710
+ /**
4711
+ * Returns the created reply
4712
+ */
4713
+ 200: {
4714
+ reply: {
4715
+ replyId: string;
4716
+ author: {
4717
+ dazlUserId: string;
4718
+ };
4719
+ content: string;
4720
+ mentions: Array<UserMention>;
4721
+ createdAt: string;
4722
+ updatedAt: string;
4723
+ gitInfo?: CommentGitInfo;
4724
+ };
4725
+ };
4726
+ };
4727
+
4728
+ export type InternalCreateReplyResponse = InternalCreateReplyResponses[keyof InternalCreateReplyResponses];
4729
+
4730
+ export type InternalDeleteReplyData = {
4731
+ body?: never;
4732
+ path: {
4733
+ projectId: string;
4734
+ commentId: string;
4735
+ replyId: string;
4736
+ };
4737
+ query?: {
4738
+ editorDazlUserId?: string;
4739
+ };
4740
+ url: '/project/{projectId}/comments/{commentId}/replies/{replyId}';
4741
+ };
4742
+
4743
+ export type InternalDeleteReplyErrors = {
4744
+ /**
4745
+ * Bad request - Invalid parameters or malformed JSON
4746
+ */
4747
+ 400: {
4748
+ message: string;
4749
+ issues?: string;
4750
+ };
4751
+ /**
4752
+ * Unauthorized
4753
+ */
4754
+ 401: ErrorResponse;
4755
+ /**
4756
+ * Forbidden
4757
+ */
4758
+ 403: ErrorResponse;
4759
+ /**
4760
+ * Not Found
4761
+ */
4762
+ 404: ErrorResponse;
4763
+ /**
4764
+ * Conflict
4765
+ */
4766
+ 409: ErrorResponse;
4767
+ /**
4768
+ * Internal server error
4769
+ */
4770
+ 500: ErrorResponse;
4771
+ /**
4772
+ * Service Unavailable
4773
+ */
4774
+ 503: ErrorResponse;
4775
+ };
4776
+
4777
+ export type InternalDeleteReplyError = InternalDeleteReplyErrors[keyof InternalDeleteReplyErrors];
4778
+
4779
+ export type InternalDeleteReplyResponses = {
4780
+ /**
4781
+ * Acknowledges that the reply was deleted
4782
+ */
4783
+ 200: {
4784
+ success: true;
4785
+ };
4786
+ };
4787
+
4788
+ export type InternalDeleteReplyResponse = InternalDeleteReplyResponses[keyof InternalDeleteReplyResponses];
4789
+
4790
+ export type InternalEditReplyData = {
4791
+ body: InternalEditReplyInput;
4792
+ path: {
4793
+ projectId: string;
4794
+ commentId: string;
4795
+ replyId: string;
4796
+ };
4797
+ query?: never;
4798
+ url: '/project/{projectId}/comments/{commentId}/replies/{replyId}';
4799
+ };
4800
+
4801
+ export type InternalEditReplyErrors = {
4802
+ /**
4803
+ * Bad request - Invalid parameters or malformed JSON
4804
+ */
4805
+ 400: {
4806
+ message: string;
4807
+ issues?: string;
4808
+ };
4809
+ /**
4810
+ * Unauthorized
4811
+ */
4812
+ 401: ErrorResponse;
4813
+ /**
4814
+ * Forbidden
4815
+ */
4816
+ 403: ErrorResponse;
4817
+ /**
4818
+ * Not Found
4819
+ */
4820
+ 404: ErrorResponse;
4821
+ /**
4822
+ * Conflict
4823
+ */
4824
+ 409: ErrorResponse;
4825
+ /**
4826
+ * Internal server error
4827
+ */
4828
+ 500: ErrorResponse;
4829
+ /**
4830
+ * Service Unavailable
4831
+ */
4832
+ 503: ErrorResponse;
4833
+ };
4834
+
4835
+ export type InternalEditReplyError = InternalEditReplyErrors[keyof InternalEditReplyErrors];
4836
+
4837
+ export type InternalEditReplyResponses = {
4838
+ /**
4839
+ * Returns the updated reply
4840
+ */
4841
+ 200: {
4842
+ reply: {
4843
+ replyId: string;
4844
+ author: {
4845
+ dazlUserId: string;
4846
+ };
4847
+ content: string;
4848
+ mentions: Array<UserMention>;
4849
+ createdAt: string;
4850
+ updatedAt: string;
4851
+ gitInfo?: CommentGitInfo;
4852
+ };
4853
+ };
4854
+ };
4855
+
4856
+ export type InternalEditReplyResponse = InternalEditReplyResponses[keyof InternalEditReplyResponses];
4857
+
4858
+ export type GetPublicTemplatesData = {
4859
+ body?: never;
4860
+ path?: never;
4861
+ query?: {
4862
+ withScreenshot?: boolean | null;
4863
+ };
4864
+ url: '/template/public-templates';
4865
+ };
4866
+
4867
+ export type GetPublicTemplatesErrors = {
4868
+ /**
4869
+ * Bad request - Invalid parameters or malformed JSON
4870
+ */
4871
+ 400: {
4872
+ message: string;
4873
+ issues?: string;
4874
+ };
4875
+ /**
4876
+ * Unauthorized
4877
+ */
4878
+ 401: ErrorResponse;
4879
+ /**
4880
+ * Forbidden
4881
+ */
4882
+ 403: ErrorResponse;
4883
+ /**
4884
+ * Not Found
4885
+ */
4886
+ 404: ErrorResponse;
4887
+ /**
4888
+ * Conflict
4889
+ */
4890
+ 409: ErrorResponse;
4891
+ /**
4892
+ * Internal server error
4893
+ */
4894
+ 500: ErrorResponse;
4895
+ /**
4896
+ * Service Unavailable
4897
+ */
4898
+ 503: ErrorResponse;
4899
+ };
4900
+
4901
+ export type GetPublicTemplatesError = GetPublicTemplatesErrors[keyof GetPublicTemplatesErrors];
4902
+
4903
+ export type GetPublicTemplatesResponses = {
4904
+ /**
4905
+ * Returns all public templates. Optionally includes screenshots when `withScreenshot` is true. Templates are ordered by the greatest of createdAt and lastUsedAt in descending order.
4906
+ */
4907
+ 200: {
4908
+ templates: Array<{
4909
+ screenshotUrl: string | null;
4910
+ originProjectName: string | null;
4911
+ } & TemplateRaw>;
4912
+ };
4913
+ };
4914
+
4915
+ export type GetPublicTemplatesResponse = GetPublicTemplatesResponses[keyof GetPublicTemplatesResponses];
4916
+
4917
+ export type GetUserTemplatesData = {
4918
+ body?: never;
4919
+ path: {
4920
+ dazlId: string;
4921
+ };
4922
+ query?: {
4923
+ withScreenshot?: boolean | null;
4924
+ withOriginProject?: boolean | null;
4925
+ withAssociatedUsers?: boolean | null;
4926
+ };
4927
+ url: '/template/user/{dazlId}';
4928
+ };
4929
+
4930
+ export type GetUserTemplatesErrors = {
4931
+ /**
4932
+ * Bad request - Invalid parameters or malformed JSON
4933
+ */
4934
+ 400: {
4935
+ message: string;
4936
+ issues?: string;
4937
+ };
4938
+ /**
4939
+ * Unauthorized
4940
+ */
4941
+ 401: ErrorResponse;
4942
+ /**
4943
+ * Forbidden
4944
+ */
4945
+ 403: ErrorResponse;
4946
+ /**
4947
+ * Not Found
4948
+ */
4949
+ 404: ErrorResponse;
4950
+ /**
4951
+ * Conflict
4952
+ */
4953
+ 409: ErrorResponse;
4954
+ /**
4955
+ * Internal server error
4956
+ */
4957
+ 500: ErrorResponse;
4958
+ /**
4959
+ * Service Unavailable
4960
+ */
4961
+ 503: ErrorResponse;
4962
+ };
4963
+
4964
+ export type GetUserTemplatesError = GetUserTemplatesErrors[keyof GetUserTemplatesErrors];
4965
+
4966
+ export type GetUserTemplatesResponses = {
4967
+ /**
4968
+ * Returns all templates for the specified user. Templates are ordered by the greatest of createdAt and lastUsedAt in descending order.
4969
+ */
4970
+ 200: {
4971
+ templates: Array<{
4972
+ screenshotUrl: string | null;
4973
+ originProjectName: string | null;
4974
+ } & TemplateRaw>;
4975
+ users?: Array<UserDisplayInfoResponse>;
4976
+ };
4977
+ };
4978
+
4979
+ export type GetUserTemplatesResponse = GetUserTemplatesResponses[keyof GetUserTemplatesResponses];
4980
+
4981
+ export type DeleteTemplateData = {
4982
+ /**
4983
+ * Owner dazlId of the user attempting to delete the template
4984
+ */
4985
+ body?: {
4986
+ ownerDazlId: string;
4987
+ };
4988
+ path: {
4989
+ templateId: string;
4990
+ };
4991
+ query?: never;
4992
+ url: '/template/{templateId}';
4993
+ };
4994
+
4995
+ export type DeleteTemplateErrors = {
4996
+ /**
4997
+ * Bad request - Invalid parameters or malformed JSON
4998
+ */
4999
+ 400: {
5000
+ message: string;
5001
+ issues?: string;
5002
+ };
5003
+ /**
5004
+ * Unauthorized
5005
+ */
5006
+ 401: ErrorResponse;
5007
+ /**
5008
+ * Forbidden
5009
+ */
5010
+ 403: ErrorResponse;
5011
+ /**
5012
+ * Not Found
5013
+ */
5014
+ 404: ErrorResponse;
5015
+ /**
5016
+ * Conflict
5017
+ */
5018
+ 409: ErrorResponse;
5019
+ /**
5020
+ * Internal server error
5021
+ */
5022
+ 500: ErrorResponse;
5023
+ /**
5024
+ * Service Unavailable
5025
+ */
5026
+ 503: ErrorResponse;
5027
+ };
5028
+
5029
+ export type DeleteTemplateError = DeleteTemplateErrors[keyof DeleteTemplateErrors];
5030
+
5031
+ export type DeleteTemplateResponses = {
5032
+ /**
5033
+ * Deletes the template with the specified ID.
5034
+ */
5035
+ 200: {
5036
+ templateId: string;
5037
+ };
5038
+ };
5039
+
5040
+ export type DeleteTemplateResponse = DeleteTemplateResponses[keyof DeleteTemplateResponses];
5041
+
5042
+ export type GetTemplateData = {
5043
+ body?: never;
5044
+ path: {
5045
+ templateId: string;
5046
+ };
5047
+ query?: {
5048
+ withScreenshot?: boolean | null;
5049
+ };
5050
+ url: '/template/{templateId}';
4301
5051
  };
4302
5052
 
4303
- export type InternalDeleteReplyErrors = {
5053
+ export type GetTemplateErrors = {
4304
5054
  /**
4305
5055
  * Bad request - Invalid parameters or malformed JSON
4306
5056
  */
@@ -4334,31 +5084,37 @@ export type InternalDeleteReplyErrors = {
4334
5084
  503: ErrorResponse;
4335
5085
  };
4336
5086
 
4337
- export type InternalDeleteReplyError = InternalDeleteReplyErrors[keyof InternalDeleteReplyErrors];
5087
+ export type GetTemplateError = GetTemplateErrors[keyof GetTemplateErrors];
4338
5088
 
4339
- export type InternalDeleteReplyResponses = {
5089
+ export type GetTemplateResponses = {
4340
5090
  /**
4341
- * Acknowledges that the reply was deleted
5091
+ * Returns the template with the specified ID.
4342
5092
  */
4343
5093
  200: {
4344
- success: true;
5094
+ template: TemplateRaw;
4345
5095
  };
4346
5096
  };
4347
5097
 
4348
- export type InternalDeleteReplyResponse = InternalDeleteReplyResponses[keyof InternalDeleteReplyResponses];
5098
+ export type GetTemplateResponse = GetTemplateResponses[keyof GetTemplateResponses];
4349
5099
 
4350
- export type InternalEditReplyData = {
4351
- body: InternalEditReplyInput;
5100
+ export type UpdateTemplateData = {
5101
+ body: {
5102
+ description?: string | null;
5103
+ lastUsedAt?: string | null;
5104
+ name?: string;
5105
+ usageCount?: number;
5106
+ isPublic?: boolean;
5107
+ remoteEnvConfigId?: string | null;
5108
+ ownerDazlId?: string;
5109
+ };
4352
5110
  path: {
4353
- projectId: string;
4354
- commentId: string;
4355
- replyId: string;
5111
+ templateId: string;
4356
5112
  };
4357
5113
  query?: never;
4358
- url: '/project/{projectId}/comments/{commentId}/replies/{replyId}';
5114
+ url: '/template/{templateId}';
4359
5115
  };
4360
5116
 
4361
- export type InternalEditReplyErrors = {
5117
+ export type UpdateTemplateErrors = {
4362
5118
  /**
4363
5119
  * Bad request - Invalid parameters or malformed JSON
4364
5120
  */
@@ -4392,39 +5148,36 @@ export type InternalEditReplyErrors = {
4392
5148
  503: ErrorResponse;
4393
5149
  };
4394
5150
 
4395
- export type InternalEditReplyError = InternalEditReplyErrors[keyof InternalEditReplyErrors];
5151
+ export type UpdateTemplateError = UpdateTemplateErrors[keyof UpdateTemplateErrors];
4396
5152
 
4397
- export type InternalEditReplyResponses = {
5153
+ export type UpdateTemplateResponses = {
4398
5154
  /**
4399
- * Returns the updated reply
5155
+ * Updates the template with the specified ID.
4400
5156
  */
4401
5157
  200: {
4402
- reply: {
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
- };
5158
+ template: TemplateRaw;
4413
5159
  };
4414
5160
  };
4415
5161
 
4416
- export type InternalEditReplyResponse = InternalEditReplyResponses[keyof InternalEditReplyResponses];
5162
+ export type UpdateTemplateResponse = UpdateTemplateResponses[keyof UpdateTemplateResponses];
4417
5163
 
4418
- export type GetPublicTemplatesData = {
4419
- body?: never;
4420
- path?: never;
4421
- query?: {
4422
- withScreenshot?: boolean | null;
5164
+ export type CreateTemplateData = {
5165
+ body: {
5166
+ originProjectId: string;
5167
+ userDazlId: string;
5168
+ } & {
5169
+ preserveChatHistory: boolean;
5170
+ preserveEnvFile: boolean;
5171
+ name: string;
5172
+ description?: string;
5173
+ emails?: Array<string>;
4423
5174
  };
4424
- url: '/template/public-templates';
5175
+ path?: never;
5176
+ query?: never;
5177
+ url: '/template/create';
4425
5178
  };
4426
5179
 
4427
- export type GetPublicTemplatesErrors = {
5180
+ export type CreateTemplateErrors = {
4428
5181
  /**
4429
5182
  * Bad request - Invalid parameters or malformed JSON
4430
5183
  */
@@ -4458,36 +5211,32 @@ export type GetPublicTemplatesErrors = {
4458
5211
  503: ErrorResponse;
4459
5212
  };
4460
5213
 
4461
- export type GetPublicTemplatesError = GetPublicTemplatesErrors[keyof GetPublicTemplatesErrors];
5214
+ export type CreateTemplateError = CreateTemplateErrors[keyof CreateTemplateErrors];
4462
5215
 
4463
- export type GetPublicTemplatesResponses = {
5216
+ export type CreateTemplateResponses = {
4464
5217
  /**
4465
- * Returns all public templates. Optionally includes screenshots when `withScreenshot` is true. Templates are ordered by the greatest of createdAt and lastUsedAt in descending order.
5218
+ * Creates a new template from the specified project for the specified user.
4466
5219
  */
4467
5220
  200: {
4468
- templates: Array<{
4469
- screenshotUrl: string | null;
4470
- originProjectName: string | null;
4471
- } & TemplateRaw>;
5221
+ template: TemplateRaw;
4472
5222
  };
4473
5223
  };
4474
5224
 
4475
- export type GetPublicTemplatesResponse = GetPublicTemplatesResponses[keyof GetPublicTemplatesResponses];
5225
+ export type CreateTemplateResponse = CreateTemplateResponses[keyof CreateTemplateResponses];
4476
5226
 
4477
- export type GetUserTemplatesData = {
4478
- body?: never;
4479
- path: {
4480
- dazlId: string;
5227
+ export type AddTemplateSharedWithData = {
5228
+ body: {
5229
+ email: string;
5230
+ ownerDazlId: string;
4481
5231
  };
4482
- query?: {
4483
- withScreenshot?: boolean | null;
4484
- withOriginProject?: boolean | null;
4485
- withAssociatedUsers?: boolean | null;
5232
+ path: {
5233
+ templateId: string;
4486
5234
  };
4487
- url: '/template/user/{dazlId}';
5235
+ query?: never;
5236
+ url: '/template/{templateId}/shared-with';
4488
5237
  };
4489
5238
 
4490
- export type GetUserTemplatesErrors = {
5239
+ export type AddTemplateSharedWithErrors = {
4491
5240
  /**
4492
5241
  * Bad request - Invalid parameters or malformed JSON
4493
5242
  */
@@ -4521,38 +5270,32 @@ export type GetUserTemplatesErrors = {
4521
5270
  503: ErrorResponse;
4522
5271
  };
4523
5272
 
4524
- export type GetUserTemplatesError = GetUserTemplatesErrors[keyof GetUserTemplatesErrors];
5273
+ export type AddTemplateSharedWithError = AddTemplateSharedWithErrors[keyof AddTemplateSharedWithErrors];
4525
5274
 
4526
- export type GetUserTemplatesResponses = {
5275
+ export type AddTemplateSharedWithResponses = {
4527
5276
  /**
4528
- * Returns all templates for the specified user. Templates are ordered by the greatest of createdAt and lastUsedAt in descending order.
5277
+ * Adds a shared-with email to the template.
4529
5278
  */
4530
5279
  200: {
4531
- templates: Array<{
4532
- screenshotUrl: string | null;
4533
- originProjectName: string | null;
4534
- } & TemplateRaw>;
4535
- users?: Array<UserDisplayInfoResponse>;
5280
+ template: TemplateRaw;
4536
5281
  };
4537
5282
  };
4538
5283
 
4539
- export type GetUserTemplatesResponse = GetUserTemplatesResponses[keyof GetUserTemplatesResponses];
5284
+ export type AddTemplateSharedWithResponse = AddTemplateSharedWithResponses[keyof AddTemplateSharedWithResponses];
4540
5285
 
4541
- export type DeleteTemplateData = {
4542
- /**
4543
- * Owner dazlId of the user attempting to delete the template
4544
- */
4545
- body?: {
5286
+ export type RemoveTemplateSharedWithData = {
5287
+ body: {
4546
5288
  ownerDazlId: string;
4547
5289
  };
4548
5290
  path: {
4549
5291
  templateId: string;
5292
+ email: string;
4550
5293
  };
4551
5294
  query?: never;
4552
- url: '/template/{templateId}';
5295
+ url: '/template/{templateId}/shared-with/{email}';
4553
5296
  };
4554
5297
 
4555
- export type DeleteTemplateErrors = {
5298
+ export type RemoveTemplateSharedWithErrors = {
4556
5299
  /**
4557
5300
  * Bad request - Invalid parameters or malformed JSON
4558
5301
  */
@@ -4586,31 +5329,33 @@ export type DeleteTemplateErrors = {
4586
5329
  503: ErrorResponse;
4587
5330
  };
4588
5331
 
4589
- export type DeleteTemplateError = DeleteTemplateErrors[keyof DeleteTemplateErrors];
5332
+ export type RemoveTemplateSharedWithError = RemoveTemplateSharedWithErrors[keyof RemoveTemplateSharedWithErrors];
4590
5333
 
4591
- export type DeleteTemplateResponses = {
5334
+ export type RemoveTemplateSharedWithResponses = {
4592
5335
  /**
4593
- * Deletes the template with the specified ID.
5336
+ * Removes a shared-with email from the template.
4594
5337
  */
4595
5338
  200: {
4596
- templateId: string;
5339
+ template: TemplateRaw;
4597
5340
  };
4598
5341
  };
4599
5342
 
4600
- export type DeleteTemplateResponse = DeleteTemplateResponses[keyof DeleteTemplateResponses];
5343
+ export type RemoveTemplateSharedWithResponse = RemoveTemplateSharedWithResponses[keyof RemoveTemplateSharedWithResponses];
4601
5344
 
4602
- export type GetTemplateData = {
4603
- body?: never;
4604
- path: {
4605
- templateId: string;
4606
- };
4607
- query?: {
4608
- withScreenshot?: boolean | null;
5345
+ export type CreateChatData = {
5346
+ body: {
5347
+ projectId: string;
5348
+ ownerDazlId: string;
5349
+ type: string;
5350
+ createdByUserId: string;
5351
+ schemaVersion: number;
4609
5352
  };
4610
- url: '/template/{templateId}';
5353
+ path?: never;
5354
+ query?: never;
5355
+ url: '/chat/create';
4611
5356
  };
4612
5357
 
4613
- export type GetTemplateErrors = {
5358
+ export type CreateChatErrors = {
4614
5359
  /**
4615
5360
  * Bad request - Invalid parameters or malformed JSON
4616
5361
  */
@@ -4644,37 +5389,46 @@ export type GetTemplateErrors = {
4644
5389
  503: ErrorResponse;
4645
5390
  };
4646
5391
 
4647
- export type GetTemplateError = GetTemplateErrors[keyof GetTemplateErrors];
5392
+ export type CreateChatError = CreateChatErrors[keyof CreateChatErrors];
4648
5393
 
4649
- export type GetTemplateResponses = {
5394
+ export type CreateChatResponses = {
4650
5395
  /**
4651
- * Returns the template with the specified ID.
5396
+ * Creates a new chat for the specified project.
4652
5397
  */
4653
5398
  200: {
4654
- template: TemplateRaw;
5399
+ chat: {
5400
+ id: string;
5401
+ projectId: string;
5402
+ type: string;
5403
+ title: string | null;
5404
+ archived: boolean;
5405
+ createdByUserId: string;
5406
+ schemaVersion: number;
5407
+ createdAt: string;
5408
+ updatedAt: string;
5409
+ pinnedContext?: unknown;
5410
+ agentSession?: unknown;
5411
+ messages: Array<unknown>;
5412
+ oldestSequence: number | null;
5413
+ hasMore: boolean;
5414
+ };
4655
5415
  };
4656
5416
  };
4657
5417
 
4658
- export type GetTemplateResponse = GetTemplateResponses[keyof GetTemplateResponses];
5418
+ export type CreateChatResponse = CreateChatResponses[keyof CreateChatResponses];
4659
5419
 
4660
- export type UpdateTemplateData = {
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
- };
5420
+ export type ListProjectChatsData = {
5421
+ body?: never;
4670
5422
  path: {
4671
- templateId: string;
5423
+ projectId: string;
4672
5424
  };
4673
- query?: never;
4674
- url: '/template/{templateId}';
5425
+ query: {
5426
+ ownerDazlId: string;
5427
+ };
5428
+ url: '/chat/project/{projectId}';
4675
5429
  };
4676
5430
 
4677
- export type UpdateTemplateErrors = {
5431
+ export type ListProjectChatsErrors = {
4678
5432
  /**
4679
5433
  * Bad request - Invalid parameters or malformed JSON
4680
5434
  */
@@ -4708,36 +5462,41 @@ export type UpdateTemplateErrors = {
4708
5462
  503: ErrorResponse;
4709
5463
  };
4710
5464
 
4711
- export type UpdateTemplateError = UpdateTemplateErrors[keyof UpdateTemplateErrors];
5465
+ export type ListProjectChatsError = ListProjectChatsErrors[keyof ListProjectChatsErrors];
4712
5466
 
4713
- export type UpdateTemplateResponses = {
5467
+ export type ListProjectChatsResponses = {
4714
5468
  /**
4715
- * Updates the template with the specified ID.
5469
+ * Lists non-deleted chats for the project, ordered by updatedAt descending. Does not include messages.
4716
5470
  */
4717
5471
  200: {
4718
- template: TemplateRaw;
5472
+ chats: Array<{
5473
+ id: string;
5474
+ projectId: string;
5475
+ type: string;
5476
+ title: string | null;
5477
+ archived: boolean;
5478
+ createdByUserId: string;
5479
+ schemaVersion: number;
5480
+ createdAt: string;
5481
+ updatedAt: string;
5482
+ }>;
4719
5483
  };
4720
5484
  };
4721
5485
 
4722
- export type UpdateTemplateResponse = UpdateTemplateResponses[keyof UpdateTemplateResponses];
5486
+ export type ListProjectChatsResponse = ListProjectChatsResponses[keyof ListProjectChatsResponses];
4723
5487
 
4724
- export type CreateTemplateData = {
5488
+ export type DeleteChatData = {
4725
5489
  body: {
4726
- originProjectId: string;
4727
- userDazlId: string;
4728
- } & {
4729
- preserveChatHistory: boolean;
4730
- preserveEnvFile: boolean;
4731
- name: string;
4732
- description?: string;
4733
- emails?: Array<string>;
5490
+ ownerDazlId: string;
5491
+ };
5492
+ path: {
5493
+ chatId: string;
4734
5494
  };
4735
- path?: never;
4736
5495
  query?: never;
4737
- url: '/template/create';
5496
+ url: '/chat/{chatId}';
4738
5497
  };
4739
5498
 
4740
- export type CreateTemplateErrors = {
5499
+ export type DeleteChatErrors = {
4741
5500
  /**
4742
5501
  * Bad request - Invalid parameters or malformed JSON
4743
5502
  */
@@ -4771,32 +5530,33 @@ export type CreateTemplateErrors = {
4771
5530
  503: ErrorResponse;
4772
5531
  };
4773
5532
 
4774
- export type CreateTemplateError = CreateTemplateErrors[keyof CreateTemplateErrors];
5533
+ export type DeleteChatError = DeleteChatErrors[keyof DeleteChatErrors];
4775
5534
 
4776
- export type CreateTemplateResponses = {
5535
+ export type DeleteChatResponses = {
4777
5536
  /**
4778
- * Creates a new template from the specified project for the specified user.
5537
+ * Soft-deletes the chat with the specified ID.
4779
5538
  */
4780
5539
  200: {
4781
- template: TemplateRaw;
5540
+ chatId: string;
4782
5541
  };
4783
5542
  };
4784
5543
 
4785
- export type CreateTemplateResponse = CreateTemplateResponses[keyof CreateTemplateResponses];
5544
+ export type DeleteChatResponse = DeleteChatResponses[keyof DeleteChatResponses];
4786
5545
 
4787
- export type AddTemplateSharedWithData = {
4788
- body: {
4789
- email: string;
4790
- ownerDazlId: string;
4791
- };
5546
+ export type GetChatData = {
5547
+ body?: never;
4792
5548
  path: {
4793
- templateId: string;
5549
+ chatId: string;
4794
5550
  };
4795
- query?: never;
4796
- url: '/template/{templateId}/shared-with';
5551
+ query: {
5552
+ ownerDazlId: string;
5553
+ limit?: number;
5554
+ before?: number | null;
5555
+ };
5556
+ url: '/chat/{chatId}';
4797
5557
  };
4798
5558
 
4799
- export type AddTemplateSharedWithErrors = {
5559
+ export type GetChatErrors = {
4800
5560
  /**
4801
5561
  * Bad request - Invalid parameters or malformed JSON
4802
5562
  */
@@ -4830,32 +5590,55 @@ export type AddTemplateSharedWithErrors = {
4830
5590
  503: ErrorResponse;
4831
5591
  };
4832
5592
 
4833
- export type AddTemplateSharedWithError = AddTemplateSharedWithErrors[keyof AddTemplateSharedWithErrors];
5593
+ export type GetChatError = GetChatErrors[keyof GetChatErrors];
4834
5594
 
4835
- export type AddTemplateSharedWithResponses = {
5595
+ export type GetChatResponses = {
4836
5596
  /**
4837
- * Adds a shared-with email to the template.
5597
+ * 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
5598
  */
4839
5599
  200: {
4840
- template: TemplateRaw;
5600
+ chat: {
5601
+ id: string;
5602
+ projectId: string;
5603
+ type: string;
5604
+ title: string | null;
5605
+ archived: boolean;
5606
+ createdByUserId: string;
5607
+ schemaVersion: number;
5608
+ createdAt: string;
5609
+ updatedAt: string;
5610
+ pinnedContext?: unknown;
5611
+ agentSession?: unknown;
5612
+ messages: Array<unknown>;
5613
+ oldestSequence: number | null;
5614
+ hasMore: boolean;
5615
+ };
4841
5616
  };
4842
5617
  };
4843
5618
 
4844
- export type AddTemplateSharedWithResponse = AddTemplateSharedWithResponses[keyof AddTemplateSharedWithResponses];
5619
+ export type GetChatResponse = GetChatResponses[keyof GetChatResponses];
4845
5620
 
4846
- export type RemoveTemplateSharedWithData = {
5621
+ export type UpdateChatData = {
4847
5622
  body: {
4848
5623
  ownerDazlId: string;
5624
+ title?: string;
5625
+ archived: boolean;
5626
+ pinnedContext?: unknown;
5627
+ agentSession?: unknown;
5628
+ schemaVersion: number;
5629
+ messages: Array<{
5630
+ id: string;
5631
+ [key: string]: unknown;
5632
+ }>;
4849
5633
  };
4850
5634
  path: {
4851
- templateId: string;
4852
- email: string;
5635
+ chatId: string;
4853
5636
  };
4854
5637
  query?: never;
4855
- url: '/template/{templateId}/shared-with/{email}';
5638
+ url: '/chat/{chatId}';
4856
5639
  };
4857
5640
 
4858
- export type RemoveTemplateSharedWithErrors = {
5641
+ export type UpdateChatErrors = {
4859
5642
  /**
4860
5643
  * Bad request - Invalid parameters or malformed JSON
4861
5644
  */
@@ -4889,18 +5672,33 @@ export type RemoveTemplateSharedWithErrors = {
4889
5672
  503: ErrorResponse;
4890
5673
  };
4891
5674
 
4892
- export type RemoveTemplateSharedWithError = RemoveTemplateSharedWithErrors[keyof RemoveTemplateSharedWithErrors];
5675
+ export type UpdateChatError = UpdateChatErrors[keyof UpdateChatErrors];
4893
5676
 
4894
- export type RemoveTemplateSharedWithResponses = {
5677
+ export type UpdateChatResponses = {
4895
5678
  /**
4896
- * Removes a shared-with email from the template.
5679
+ * Replaces the chat's metadata and full message list (whole-document semantics, matching the caller's in-memory chat state).
4897
5680
  */
4898
5681
  200: {
4899
- template: TemplateRaw;
5682
+ chat: {
5683
+ id: string;
5684
+ projectId: string;
5685
+ type: string;
5686
+ title: string | null;
5687
+ archived: boolean;
5688
+ createdByUserId: string;
5689
+ schemaVersion: number;
5690
+ createdAt: string;
5691
+ updatedAt: string;
5692
+ pinnedContext?: unknown;
5693
+ agentSession?: unknown;
5694
+ messages: Array<unknown>;
5695
+ oldestSequence: number | null;
5696
+ hasMore: boolean;
5697
+ };
4900
5698
  };
4901
5699
  };
4902
5700
 
4903
- export type RemoveTemplateSharedWithResponse = RemoveTemplateSharedWithResponses[keyof RemoveTemplateSharedWithResponses];
5701
+ export type UpdateChatResponse = UpdateChatResponses[keyof UpdateChatResponses];
4904
5702
 
4905
5703
  export type GetUploadConfigurationData = {
4906
5704
  body: {