@dazl/api-client 1.0.39 → 1.0.41

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.
@@ -161,6 +161,7 @@ export type ProjectRaw = {
161
161
  latestScreenshot: string | null;
162
162
  originTemplateId: string | null;
163
163
  archivedAt: string | null;
164
+ archived: boolean;
164
165
  members: Array<{
165
166
  type: 'user';
166
167
  /**
@@ -184,6 +185,18 @@ export type OwnerDazlId = {
184
185
  ownerDazlId: string;
185
186
  };
186
187
 
188
+ export type ClaimedPendingGeneration = PendingGeneration & {
189
+ claimToken: string;
190
+ leaseExpiresAt: string;
191
+ };
192
+
193
+ export type PendingGeneration = {
194
+ chatId: string;
195
+ messageId: string;
196
+ model?: string;
197
+ enabledIntegrationNames?: Array<string>;
198
+ };
199
+
187
200
  export type UserDisplayInfoResponse = {
188
201
  dazlId: string;
189
202
  name: string;
@@ -2406,6 +2419,81 @@ export type CreateProjectRepoResponses = {
2406
2419
 
2407
2420
  export type CreateProjectRepoResponse = CreateProjectRepoResponses[keyof CreateProjectRepoResponses];
2408
2421
 
2422
+ export type GetPullRequestsStatusData = {
2423
+ body?: {
2424
+ /**
2425
+ * Pull requests to check, addressed by repo full name (owner/repo) and PR number
2426
+ */
2427
+ pullRequests: Array<{
2428
+ repoFullName: string;
2429
+ number: number;
2430
+ }>;
2431
+ /**
2432
+ * Falls back to this user's own GitHub connection when the project's installation cannot mint a token
2433
+ */
2434
+ actingUserDazlId?: string;
2435
+ };
2436
+ path: {
2437
+ projectId: string;
2438
+ };
2439
+ query?: never;
2440
+ url: '/github/project/{projectId}/pull-requests/status';
2441
+ };
2442
+
2443
+ export type GetPullRequestsStatusErrors = {
2444
+ /**
2445
+ * Bad request - Invalid parameters or malformed JSON
2446
+ */
2447
+ 400: {
2448
+ message: string;
2449
+ issues?: string;
2450
+ };
2451
+ /**
2452
+ * Unauthorized
2453
+ */
2454
+ 401: ErrorResponse;
2455
+ /**
2456
+ * Forbidden
2457
+ */
2458
+ 403: ErrorResponse;
2459
+ /**
2460
+ * Not Found
2461
+ */
2462
+ 404: ErrorResponse;
2463
+ /**
2464
+ * Conflict
2465
+ */
2466
+ 409: ErrorResponse;
2467
+ /**
2468
+ * Internal server error
2469
+ */
2470
+ 500: ErrorResponse;
2471
+ /**
2472
+ * Service Unavailable
2473
+ */
2474
+ 503: ErrorResponse;
2475
+ };
2476
+
2477
+ export type GetPullRequestsStatusError = GetPullRequestsStatusErrors[keyof GetPullRequestsStatusErrors];
2478
+
2479
+ export type GetPullRequestsStatusResponses = {
2480
+ /**
2481
+ * State and CI check state for each requested pull request, best-effort per entry
2482
+ */
2483
+ 200: {
2484
+ statuses: Array<{
2485
+ repoFullName: string;
2486
+ number: number;
2487
+ ok: boolean;
2488
+ state?: 'OPEN' | 'CLOSED' | 'MERGED';
2489
+ isDraft?: boolean;
2490
+ checkState?: 'SUCCESS' | 'FAILURE' | 'PENDING' | null;
2491
+ }>;
2492
+ };
2493
+ };
2494
+
2495
+ export type GetPullRequestsStatusResponse = GetPullRequestsStatusResponses[keyof GetPullRequestsStatusResponses];
2496
+
2409
2497
  export type CreateWorkspaceRootRepoData = {
2410
2498
  body?: {
2411
2499
  dazlId: string;
@@ -3377,6 +3465,7 @@ export type UpdateProjectData = {
3377
3465
  lastOpenedAt?: string | string | null;
3378
3466
  latestScreenshot?: string | null;
3379
3467
  archivedAt?: string | string | null;
3468
+ archived?: boolean;
3380
3469
  remoteEnvConfigId?: string | null;
3381
3470
  workspaceId?: string;
3382
3471
  /**
@@ -3785,7 +3874,7 @@ export type ReportRepoInitFailureResponses = {
3785
3874
  export type ReportRepoInitFailureResponse = ReportRepoInitFailureResponses[keyof ReportRepoInitFailureResponses];
3786
3875
 
3787
3876
  export type CreateProjectData = {
3788
- body: {
3877
+ body?: {
3789
3878
  name: string;
3790
3879
  userDazlId: string;
3791
3880
  latestScreenshot?: string | null;
@@ -3856,6 +3945,125 @@ export type CreateProjectResponses = {
3856
3945
 
3857
3946
  export type CreateProjectResponse = CreateProjectResponses[keyof CreateProjectResponses];
3858
3947
 
3948
+ export type ClaimPendingGenerationData = {
3949
+ body: OwnerDazlId;
3950
+ path: {
3951
+ projectId: string;
3952
+ };
3953
+ query?: never;
3954
+ url: '/project/{projectId}/pending-generation/claim';
3955
+ };
3956
+
3957
+ export type ClaimPendingGenerationErrors = {
3958
+ /**
3959
+ * Bad request - Invalid parameters or malformed JSON
3960
+ */
3961
+ 400: {
3962
+ message: string;
3963
+ issues?: string;
3964
+ };
3965
+ /**
3966
+ * Unauthorized
3967
+ */
3968
+ 401: ErrorResponse;
3969
+ /**
3970
+ * Forbidden
3971
+ */
3972
+ 403: ErrorResponse;
3973
+ /**
3974
+ * Not Found
3975
+ */
3976
+ 404: ErrorResponse;
3977
+ /**
3978
+ * Conflict
3979
+ */
3980
+ 409: ErrorResponse;
3981
+ /**
3982
+ * Internal server error
3983
+ */
3984
+ 500: ErrorResponse;
3985
+ /**
3986
+ * Service Unavailable
3987
+ */
3988
+ 503: ErrorResponse;
3989
+ };
3990
+
3991
+ export type ClaimPendingGenerationError = ClaimPendingGenerationErrors[keyof ClaimPendingGenerationErrors];
3992
+
3993
+ export type ClaimPendingGenerationResponses = {
3994
+ /**
3995
+ * Leases the run; retry after retryAfterMs when another caller holds it, or stop when both fields are absent/null
3996
+ */
3997
+ 200: {
3998
+ pendingGeneration: ClaimedPendingGeneration | null;
3999
+ retryAfterMs?: number;
4000
+ };
4001
+ };
4002
+
4003
+ export type ClaimPendingGenerationResponse = ClaimPendingGenerationResponses[keyof ClaimPendingGenerationResponses];
4004
+
4005
+ export type AcknowledgePendingGenerationData = {
4006
+ body: {
4007
+ /**
4008
+ * The dazl ID of the requesting user, used for permission checks
4009
+ */
4010
+ ownerDazlId: string;
4011
+ claimToken: string;
4012
+ };
4013
+ path: {
4014
+ projectId: string;
4015
+ };
4016
+ query?: never;
4017
+ url: '/project/{projectId}/pending-generation/acknowledge';
4018
+ };
4019
+
4020
+ export type AcknowledgePendingGenerationErrors = {
4021
+ /**
4022
+ * Bad request - Invalid parameters or malformed JSON
4023
+ */
4024
+ 400: {
4025
+ message: string;
4026
+ issues?: string;
4027
+ };
4028
+ /**
4029
+ * Unauthorized
4030
+ */
4031
+ 401: ErrorResponse;
4032
+ /**
4033
+ * Forbidden
4034
+ */
4035
+ 403: ErrorResponse;
4036
+ /**
4037
+ * Not Found
4038
+ */
4039
+ 404: ErrorResponse;
4040
+ /**
4041
+ * Conflict
4042
+ */
4043
+ 409: ErrorResponse;
4044
+ /**
4045
+ * Internal server error
4046
+ */
4047
+ 500: ErrorResponse;
4048
+ /**
4049
+ * Service Unavailable
4050
+ */
4051
+ 503: ErrorResponse;
4052
+ };
4053
+
4054
+ export type AcknowledgePendingGenerationError = AcknowledgePendingGenerationErrors[keyof AcknowledgePendingGenerationErrors];
4055
+
4056
+ export type AcknowledgePendingGenerationResponses = {
4057
+ /**
4058
+ * Clears the claim after the generation run starts
4059
+ */
4060
+ 200: {
4061
+ acknowledged: boolean;
4062
+ };
4063
+ };
4064
+
4065
+ export type AcknowledgePendingGenerationResponse = AcknowledgePendingGenerationResponses[keyof AcknowledgePendingGenerationResponses];
4066
+
3859
4067
  export type ListProjectReposData = {
3860
4068
  body?: never;
3861
4069
  path: {
@@ -4052,7 +4260,11 @@ export type GetUserProjectsData = {
4052
4260
  /**
4053
4261
  * Filter projects by workspace ID
4054
4262
  */
4055
- workspaceId?: string;
4263
+ workspaceId?: string | 'my-drafts';
4264
+ /**
4265
+ * Include inactive/archived projects in the response
4266
+ */
4267
+ includeInactive?: string;
4056
4268
  /**
4057
4269
  * Include deployed projects info in the response
4058
4270
  */
@@ -5995,6 +6207,68 @@ export type UpdateChatResponses = {
5995
6207
 
5996
6208
  export type UpdateChatResponse = UpdateChatResponses[keyof UpdateChatResponses];
5997
6209
 
6210
+ export type AppendMessagesData = {
6211
+ body: {
6212
+ ownerDazlId: string;
6213
+ messages: Array<{
6214
+ id: string;
6215
+ [key: string]: unknown;
6216
+ }>;
6217
+ };
6218
+ path: {
6219
+ chatId: string;
6220
+ };
6221
+ query?: never;
6222
+ url: '/chat/{chatId}/messages/append';
6223
+ };
6224
+
6225
+ export type AppendMessagesErrors = {
6226
+ /**
6227
+ * Bad request - Invalid parameters or malformed JSON
6228
+ */
6229
+ 400: {
6230
+ message: string;
6231
+ issues?: string;
6232
+ };
6233
+ /**
6234
+ * Unauthorized
6235
+ */
6236
+ 401: ErrorResponse;
6237
+ /**
6238
+ * Forbidden
6239
+ */
6240
+ 403: ErrorResponse;
6241
+ /**
6242
+ * Not Found
6243
+ */
6244
+ 404: ErrorResponse;
6245
+ /**
6246
+ * Conflict
6247
+ */
6248
+ 409: ErrorResponse;
6249
+ /**
6250
+ * Internal server error
6251
+ */
6252
+ 500: ErrorResponse;
6253
+ /**
6254
+ * Service Unavailable
6255
+ */
6256
+ 503: ErrorResponse;
6257
+ };
6258
+
6259
+ export type AppendMessagesError = AppendMessagesErrors[keyof AppendMessagesErrors];
6260
+
6261
+ export type AppendMessagesResponses = {
6262
+ /**
6263
+ * Appends messages to the chat without replacing existing ones.
6264
+ */
6265
+ 200: {
6266
+ success: boolean;
6267
+ };
6268
+ };
6269
+
6270
+ export type AppendMessagesResponse = AppendMessagesResponses[keyof AppendMessagesResponses];
6271
+
5998
6272
  export type GetUploadConfigurationData = {
5999
6273
  body: {
6000
6274
  /**
@@ -8333,7 +8607,7 @@ export type UpdateWorkspaceResponse = UpdateWorkspaceResponses[keyof UpdateWorks
8333
8607
  export type GetWorkspaceData = {
8334
8608
  body?: never;
8335
8609
  path: {
8336
- workspaceId: string;
8610
+ workspaceId: string | 'my-drafts';
8337
8611
  };
8338
8612
  query?: {
8339
8613
  /**
@@ -999,7 +999,7 @@ export type UpdateWorkspaceResponse = UpdateWorkspaceResponses[keyof UpdateWorks
999
999
  export type GetWorkspaceData = {
1000
1000
  body?: never;
1001
1001
  path: {
1002
- workspaceId: string;
1002
+ workspaceId: string | 'my-drafts';
1003
1003
  };
1004
1004
  query?: {
1005
1005
  /**