@dazl/api-client 1.0.38 → 1.0.40

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.
@@ -166,6 +166,16 @@ export type OwnerDazlId = {
166
166
  */
167
167
  ownerDazlId: string;
168
168
  };
169
+ export type ClaimedPendingGeneration = PendingGeneration & {
170
+ claimToken: string;
171
+ leaseExpiresAt: string;
172
+ };
173
+ export type PendingGeneration = {
174
+ chatId: string;
175
+ messageId: string;
176
+ model?: string;
177
+ enabledIntegrationNames?: Array<string>;
178
+ };
169
179
  export type UserDisplayInfoResponse = {
170
180
  dazlId: string;
171
181
  name: string;
@@ -928,6 +938,47 @@ export type EditReplyInput = {
928
938
  */
929
939
  mentions?: Array<UserMention>;
930
940
  };
941
+ export type WorkspaceSecretsResponse = {
942
+ workspaceId: string | null;
943
+ /**
944
+ * One entry per repository that holds a readable copy
945
+ */
946
+ secrets: Array<RepoSecretsEntry>;
947
+ /**
948
+ * Repositories whose stored copy cannot be served
949
+ */
950
+ unreadable: Array<string>;
951
+ };
952
+ export type RepoSecretsEntry = {
953
+ repo: string;
954
+ secrets: string;
955
+ };
956
+ export type SetWorkspaceSecretsResponse = {
957
+ stored: boolean;
958
+ workspaceId: string | null;
959
+ reason: 'stored' | 'too-many-repos' | 'no-workspace';
960
+ };
961
+ export type SetWorkspaceSecretsRequest = {
962
+ repo: string;
963
+ secrets: string;
964
+ };
965
+ export type WorkspaceSecretsByWorkspaceResponse = {
966
+ /**
967
+ * One entry per repository that holds a readable copy
968
+ */
969
+ secrets: Array<RepoSecretsEntry>;
970
+ /**
971
+ * Repositories whose stored copy cannot be served
972
+ */
973
+ unreadable: Array<string>;
974
+ };
975
+ export type SetWorkspaceSecretsByWorkspaceResponse = {
976
+ stored: boolean;
977
+ reason: 'stored' | 'too-many-repos';
978
+ };
979
+ export type DeleteWorkspaceSecretsResponse = {
980
+ removed: boolean;
981
+ };
931
982
  export type EnsureMyUserData = {
932
983
  body?: {
933
984
  name?: string;
@@ -2084,6 +2135,10 @@ export type CreateRepositoryResponses = {
2084
2135
  repoFullName: string;
2085
2136
  repoUrl: string;
2086
2137
  branch: string;
2138
+ /**
2139
+ * Set when the repository exists but could not be added to the App installation, so pushes to it will fail until it is
2140
+ */
2141
+ installationWarning?: string;
2087
2142
  };
2088
2143
  };
2089
2144
  export type CreateRepositoryResponse = CreateRepositoryResponses[keyof CreateRepositoryResponses];
@@ -2149,9 +2204,83 @@ export type CreateProjectRepoResponses = {
2149
2204
  repoUrl: string;
2150
2205
  branch: string;
2151
2206
  dirName: string | null;
2207
+ /**
2208
+ * Set when the repository exists but could not be added to the App installation, so pushes to it will fail until it is
2209
+ */
2210
+ installationWarning?: string;
2152
2211
  };
2153
2212
  };
2154
2213
  export type CreateProjectRepoResponse = CreateProjectRepoResponses[keyof CreateProjectRepoResponses];
2214
+ export type GetPullRequestsStatusData = {
2215
+ body?: {
2216
+ /**
2217
+ * Pull requests to check, addressed by repo full name (owner/repo) and PR number
2218
+ */
2219
+ pullRequests: Array<{
2220
+ repoFullName: string;
2221
+ number: number;
2222
+ }>;
2223
+ /**
2224
+ * Falls back to this user's own GitHub connection when the project's installation cannot mint a token
2225
+ */
2226
+ actingUserDazlId?: string;
2227
+ };
2228
+ path: {
2229
+ projectId: string;
2230
+ };
2231
+ query?: never;
2232
+ url: '/github/project/{projectId}/pull-requests/status';
2233
+ };
2234
+ export type GetPullRequestsStatusErrors = {
2235
+ /**
2236
+ * Bad request - Invalid parameters or malformed JSON
2237
+ */
2238
+ 400: {
2239
+ message: string;
2240
+ issues?: string;
2241
+ };
2242
+ /**
2243
+ * Unauthorized
2244
+ */
2245
+ 401: ErrorResponse;
2246
+ /**
2247
+ * Forbidden
2248
+ */
2249
+ 403: ErrorResponse;
2250
+ /**
2251
+ * Not Found
2252
+ */
2253
+ 404: ErrorResponse;
2254
+ /**
2255
+ * Conflict
2256
+ */
2257
+ 409: ErrorResponse;
2258
+ /**
2259
+ * Internal server error
2260
+ */
2261
+ 500: ErrorResponse;
2262
+ /**
2263
+ * Service Unavailable
2264
+ */
2265
+ 503: ErrorResponse;
2266
+ };
2267
+ export type GetPullRequestsStatusError = GetPullRequestsStatusErrors[keyof GetPullRequestsStatusErrors];
2268
+ export type GetPullRequestsStatusResponses = {
2269
+ /**
2270
+ * State and CI check state for each requested pull request, best-effort per entry
2271
+ */
2272
+ 200: {
2273
+ statuses: Array<{
2274
+ repoFullName: string;
2275
+ number: number;
2276
+ ok: boolean;
2277
+ state?: 'OPEN' | 'CLOSED' | 'MERGED';
2278
+ isDraft?: boolean;
2279
+ checkState?: 'SUCCESS' | 'FAILURE' | 'PENDING' | null;
2280
+ }>;
2281
+ };
2282
+ };
2283
+ export type GetPullRequestsStatusResponse = GetPullRequestsStatusResponses[keyof GetPullRequestsStatusResponses];
2155
2284
  export type CreateWorkspaceRootRepoData = {
2156
2285
  body?: {
2157
2286
  dazlId: string;
@@ -2212,6 +2341,10 @@ export type CreateWorkspaceRootRepoResponses = {
2212
2341
  * Sessions of the workspace that now have it as their root repo
2213
2342
  */
2214
2343
  linkedProjects: number;
2344
+ /**
2345
+ * Set when the repository exists but could not be added to the App installation, so pushes to it will fail until it is
2346
+ */
2347
+ installationWarning?: string;
2215
2348
  };
2216
2349
  };
2217
2350
  export type CreateWorkspaceRootRepoResponse = CreateWorkspaceRootRepoResponses[keyof CreateWorkspaceRootRepoResponses];
@@ -3417,7 +3550,7 @@ export type ReportRepoInitFailureResponses = {
3417
3550
  };
3418
3551
  export type ReportRepoInitFailureResponse = ReportRepoInitFailureResponses[keyof ReportRepoInitFailureResponses];
3419
3552
  export type CreateProjectData = {
3420
- body: {
3553
+ body?: {
3421
3554
  name: string;
3422
3555
  userDazlId: string;
3423
3556
  latestScreenshot?: string | null;
@@ -3483,6 +3616,115 @@ export type CreateProjectResponses = {
3483
3616
  };
3484
3617
  };
3485
3618
  export type CreateProjectResponse = CreateProjectResponses[keyof CreateProjectResponses];
3619
+ export type ClaimPendingGenerationData = {
3620
+ body: OwnerDazlId;
3621
+ path: {
3622
+ projectId: string;
3623
+ };
3624
+ query?: never;
3625
+ url: '/project/{projectId}/pending-generation/claim';
3626
+ };
3627
+ export type ClaimPendingGenerationErrors = {
3628
+ /**
3629
+ * Bad request - Invalid parameters or malformed JSON
3630
+ */
3631
+ 400: {
3632
+ message: string;
3633
+ issues?: string;
3634
+ };
3635
+ /**
3636
+ * Unauthorized
3637
+ */
3638
+ 401: ErrorResponse;
3639
+ /**
3640
+ * Forbidden
3641
+ */
3642
+ 403: ErrorResponse;
3643
+ /**
3644
+ * Not Found
3645
+ */
3646
+ 404: ErrorResponse;
3647
+ /**
3648
+ * Conflict
3649
+ */
3650
+ 409: ErrorResponse;
3651
+ /**
3652
+ * Internal server error
3653
+ */
3654
+ 500: ErrorResponse;
3655
+ /**
3656
+ * Service Unavailable
3657
+ */
3658
+ 503: ErrorResponse;
3659
+ };
3660
+ export type ClaimPendingGenerationError = ClaimPendingGenerationErrors[keyof ClaimPendingGenerationErrors];
3661
+ export type ClaimPendingGenerationResponses = {
3662
+ /**
3663
+ * Leases the run; retry after retryAfterMs when another caller holds it, or stop when both fields are absent/null
3664
+ */
3665
+ 200: {
3666
+ pendingGeneration: ClaimedPendingGeneration | null;
3667
+ retryAfterMs?: number;
3668
+ };
3669
+ };
3670
+ export type ClaimPendingGenerationResponse = ClaimPendingGenerationResponses[keyof ClaimPendingGenerationResponses];
3671
+ export type AcknowledgePendingGenerationData = {
3672
+ body: {
3673
+ /**
3674
+ * The dazl ID of the requesting user, used for permission checks
3675
+ */
3676
+ ownerDazlId: string;
3677
+ claimToken: string;
3678
+ };
3679
+ path: {
3680
+ projectId: string;
3681
+ };
3682
+ query?: never;
3683
+ url: '/project/{projectId}/pending-generation/acknowledge';
3684
+ };
3685
+ export type AcknowledgePendingGenerationErrors = {
3686
+ /**
3687
+ * Bad request - Invalid parameters or malformed JSON
3688
+ */
3689
+ 400: {
3690
+ message: string;
3691
+ issues?: string;
3692
+ };
3693
+ /**
3694
+ * Unauthorized
3695
+ */
3696
+ 401: ErrorResponse;
3697
+ /**
3698
+ * Forbidden
3699
+ */
3700
+ 403: ErrorResponse;
3701
+ /**
3702
+ * Not Found
3703
+ */
3704
+ 404: ErrorResponse;
3705
+ /**
3706
+ * Conflict
3707
+ */
3708
+ 409: ErrorResponse;
3709
+ /**
3710
+ * Internal server error
3711
+ */
3712
+ 500: ErrorResponse;
3713
+ /**
3714
+ * Service Unavailable
3715
+ */
3716
+ 503: ErrorResponse;
3717
+ };
3718
+ export type AcknowledgePendingGenerationError = AcknowledgePendingGenerationErrors[keyof AcknowledgePendingGenerationErrors];
3719
+ export type AcknowledgePendingGenerationResponses = {
3720
+ /**
3721
+ * Clears the claim after the generation run starts
3722
+ */
3723
+ 200: {
3724
+ acknowledged: boolean;
3725
+ };
3726
+ };
3727
+ export type AcknowledgePendingGenerationResponse = AcknowledgePendingGenerationResponses[keyof AcknowledgePendingGenerationResponses];
3486
3728
  export type ListProjectReposData = {
3487
3729
  body?: never;
3488
3730
  path: {
@@ -5183,6 +5425,9 @@ export type CreateChatResponses = {
5183
5425
  archived: boolean;
5184
5426
  createdByUserId: string;
5185
5427
  schemaVersion: number;
5428
+ metadata: {
5429
+ [key: string]: unknown;
5430
+ } | null;
5186
5431
  createdAt: string;
5187
5432
  updatedAt: string;
5188
5433
  pinnedContext?: unknown;
@@ -5251,6 +5496,9 @@ export type ListProjectChatsResponses = {
5251
5496
  archived: boolean;
5252
5497
  createdByUserId: string;
5253
5498
  schemaVersion: number;
5499
+ metadata: {
5500
+ [key: string]: unknown;
5501
+ } | null;
5254
5502
  createdAt: string;
5255
5503
  updatedAt: string;
5256
5504
  }>;
@@ -5369,6 +5617,9 @@ export type GetChatResponses = {
5369
5617
  archived: boolean;
5370
5618
  createdByUserId: string;
5371
5619
  schemaVersion: number;
5620
+ metadata: {
5621
+ [key: string]: unknown;
5622
+ } | null;
5372
5623
  createdAt: string;
5373
5624
  updatedAt: string;
5374
5625
  pinnedContext?: unknown;
@@ -5387,6 +5638,9 @@ export type UpdateChatData = {
5387
5638
  archived: boolean;
5388
5639
  pinnedContext?: unknown;
5389
5640
  agentSession?: unknown;
5641
+ metadata?: {
5642
+ [key: string]: unknown;
5643
+ } | null;
5390
5644
  schemaVersion: number;
5391
5645
  messages: Array<{
5392
5646
  id: string;
@@ -5446,6 +5700,9 @@ export type UpdateChatResponses = {
5446
5700
  archived: boolean;
5447
5701
  createdByUserId: string;
5448
5702
  schemaVersion: number;
5703
+ metadata: {
5704
+ [key: string]: unknown;
5705
+ } | null;
5449
5706
  createdAt: string;
5450
5707
  updatedAt: string;
5451
5708
  pinnedContext?: unknown;
@@ -9848,4 +10105,302 @@ export type EditReplyResponses = {
9848
10105
  };
9849
10106
  };
9850
10107
  export type EditReplyResponse = EditReplyResponses[keyof EditReplyResponses];
10108
+ export type DeleteWorkspaceSecretsForProjectData = {
10109
+ body?: never;
10110
+ path: {
10111
+ projectId: string;
10112
+ };
10113
+ query: {
10114
+ repo: string;
10115
+ };
10116
+ url: '/workspace-secrets/{projectId}';
10117
+ };
10118
+ export type DeleteWorkspaceSecretsForProjectErrors = {
10119
+ /**
10120
+ * Bad request - Invalid parameters or malformed JSON
10121
+ */
10122
+ 400: {
10123
+ message: string;
10124
+ issues?: string;
10125
+ };
10126
+ /**
10127
+ * Unauthorized
10128
+ */
10129
+ 401: ErrorResponse;
10130
+ /**
10131
+ * Forbidden
10132
+ */
10133
+ 403: ErrorResponse;
10134
+ /**
10135
+ * Not Found
10136
+ */
10137
+ 404: ErrorResponse;
10138
+ /**
10139
+ * Conflict
10140
+ */
10141
+ 409: ErrorResponse;
10142
+ /**
10143
+ * Internal server error
10144
+ */
10145
+ 500: ErrorResponse;
10146
+ /**
10147
+ * Service Unavailable
10148
+ */
10149
+ 503: ErrorResponse;
10150
+ };
10151
+ export type DeleteWorkspaceSecretsForProjectError = DeleteWorkspaceSecretsForProjectErrors[keyof DeleteWorkspaceSecretsForProjectErrors];
10152
+ export type DeleteWorkspaceSecretsForProjectResponses = {
10153
+ /**
10154
+ * Whether an entry was removed
10155
+ */
10156
+ 200: DeleteWorkspaceSecretsResponse;
10157
+ };
10158
+ export type DeleteWorkspaceSecretsForProjectResponse = DeleteWorkspaceSecretsForProjectResponses[keyof DeleteWorkspaceSecretsForProjectResponses];
10159
+ export type GetWorkspaceSecretsForProjectData = {
10160
+ body?: never;
10161
+ path: {
10162
+ projectId: string;
10163
+ };
10164
+ query?: never;
10165
+ url: '/workspace-secrets/{projectId}';
10166
+ };
10167
+ export type GetWorkspaceSecretsForProjectErrors = {
10168
+ /**
10169
+ * Bad request - Invalid parameters or malformed JSON
10170
+ */
10171
+ 400: {
10172
+ message: string;
10173
+ issues?: string;
10174
+ };
10175
+ /**
10176
+ * Unauthorized
10177
+ */
10178
+ 401: ErrorResponse;
10179
+ /**
10180
+ * Forbidden
10181
+ */
10182
+ 403: ErrorResponse;
10183
+ /**
10184
+ * Not Found
10185
+ */
10186
+ 404: ErrorResponse;
10187
+ /**
10188
+ * Conflict
10189
+ */
10190
+ 409: ErrorResponse;
10191
+ /**
10192
+ * Internal server error
10193
+ */
10194
+ 500: ErrorResponse;
10195
+ /**
10196
+ * Service Unavailable
10197
+ */
10198
+ 503: ErrorResponse;
10199
+ };
10200
+ export type GetWorkspaceSecretsForProjectError = GetWorkspaceSecretsForProjectErrors[keyof GetWorkspaceSecretsForProjectErrors];
10201
+ export type GetWorkspaceSecretsForProjectResponses = {
10202
+ /**
10203
+ * The workspace's stored `.env` files, by repository
10204
+ */
10205
+ 200: WorkspaceSecretsResponse;
10206
+ };
10207
+ export type GetWorkspaceSecretsForProjectResponse = GetWorkspaceSecretsForProjectResponses[keyof GetWorkspaceSecretsForProjectResponses];
10208
+ export type SetWorkspaceSecretsForProjectData = {
10209
+ body: SetWorkspaceSecretsRequest;
10210
+ path: {
10211
+ projectId: string;
10212
+ };
10213
+ query?: never;
10214
+ url: '/workspace-secrets/{projectId}';
10215
+ };
10216
+ export type SetWorkspaceSecretsForProjectErrors = {
10217
+ /**
10218
+ * Bad request - Invalid parameters or malformed JSON
10219
+ */
10220
+ 400: {
10221
+ message: string;
10222
+ issues?: string;
10223
+ };
10224
+ /**
10225
+ * Unauthorized
10226
+ */
10227
+ 401: ErrorResponse;
10228
+ /**
10229
+ * Forbidden
10230
+ */
10231
+ 403: ErrorResponse;
10232
+ /**
10233
+ * Not Found
10234
+ */
10235
+ 404: ErrorResponse;
10236
+ /**
10237
+ * Conflict
10238
+ */
10239
+ 409: ErrorResponse;
10240
+ /**
10241
+ * Internal server error
10242
+ */
10243
+ 500: ErrorResponse;
10244
+ /**
10245
+ * Service Unavailable
10246
+ */
10247
+ 503: ErrorResponse;
10248
+ };
10249
+ export type SetWorkspaceSecretsForProjectError = SetWorkspaceSecretsForProjectErrors[keyof SetWorkspaceSecretsForProjectErrors];
10250
+ export type SetWorkspaceSecretsForProjectResponses = {
10251
+ /**
10252
+ * Whether the copy was stored
10253
+ */
10254
+ 200: SetWorkspaceSecretsResponse;
10255
+ };
10256
+ export type SetWorkspaceSecretsForProjectResponse = SetWorkspaceSecretsForProjectResponses[keyof SetWorkspaceSecretsForProjectResponses];
10257
+ export type DeleteWorkspaceSecretsData = {
10258
+ body?: never;
10259
+ path: {
10260
+ workspaceId: string;
10261
+ };
10262
+ query: {
10263
+ repo: string;
10264
+ };
10265
+ url: '/workspace-secrets/workspace/{workspaceId}';
10266
+ };
10267
+ export type DeleteWorkspaceSecretsErrors = {
10268
+ /**
10269
+ * Bad request - Invalid parameters or malformed JSON
10270
+ */
10271
+ 400: {
10272
+ message: string;
10273
+ issues?: string;
10274
+ };
10275
+ /**
10276
+ * Unauthorized
10277
+ */
10278
+ 401: ErrorResponse;
10279
+ /**
10280
+ * Forbidden
10281
+ */
10282
+ 403: ErrorResponse;
10283
+ /**
10284
+ * Not Found
10285
+ */
10286
+ 404: ErrorResponse;
10287
+ /**
10288
+ * Conflict
10289
+ */
10290
+ 409: ErrorResponse;
10291
+ /**
10292
+ * Internal server error
10293
+ */
10294
+ 500: ErrorResponse;
10295
+ /**
10296
+ * Service Unavailable
10297
+ */
10298
+ 503: ErrorResponse;
10299
+ };
10300
+ export type DeleteWorkspaceSecretsError = DeleteWorkspaceSecretsErrors[keyof DeleteWorkspaceSecretsErrors];
10301
+ export type DeleteWorkspaceSecretsResponses = {
10302
+ /**
10303
+ * Whether an entry was removed
10304
+ */
10305
+ 200: DeleteWorkspaceSecretsResponse;
10306
+ };
10307
+ export type DeleteWorkspaceSecretsResponse2 = DeleteWorkspaceSecretsResponses[keyof DeleteWorkspaceSecretsResponses];
10308
+ export type GetWorkspaceSecretsData = {
10309
+ body?: never;
10310
+ path: {
10311
+ workspaceId: string;
10312
+ };
10313
+ query?: never;
10314
+ url: '/workspace-secrets/workspace/{workspaceId}';
10315
+ };
10316
+ export type GetWorkspaceSecretsErrors = {
10317
+ /**
10318
+ * Bad request - Invalid parameters or malformed JSON
10319
+ */
10320
+ 400: {
10321
+ message: string;
10322
+ issues?: string;
10323
+ };
10324
+ /**
10325
+ * Unauthorized
10326
+ */
10327
+ 401: ErrorResponse;
10328
+ /**
10329
+ * Forbidden
10330
+ */
10331
+ 403: ErrorResponse;
10332
+ /**
10333
+ * Not Found
10334
+ */
10335
+ 404: ErrorResponse;
10336
+ /**
10337
+ * Conflict
10338
+ */
10339
+ 409: ErrorResponse;
10340
+ /**
10341
+ * Internal server error
10342
+ */
10343
+ 500: ErrorResponse;
10344
+ /**
10345
+ * Service Unavailable
10346
+ */
10347
+ 503: ErrorResponse;
10348
+ };
10349
+ export type GetWorkspaceSecretsError = GetWorkspaceSecretsErrors[keyof GetWorkspaceSecretsErrors];
10350
+ export type GetWorkspaceSecretsResponses = {
10351
+ /**
10352
+ * The workspace's stored `.env` files, by repository
10353
+ */
10354
+ 200: WorkspaceSecretsByWorkspaceResponse;
10355
+ };
10356
+ export type GetWorkspaceSecretsResponse = GetWorkspaceSecretsResponses[keyof GetWorkspaceSecretsResponses];
10357
+ export type SetWorkspaceSecretsData = {
10358
+ body: SetWorkspaceSecretsRequest;
10359
+ path: {
10360
+ workspaceId: string;
10361
+ };
10362
+ query?: never;
10363
+ url: '/workspace-secrets/workspace/{workspaceId}';
10364
+ };
10365
+ export type SetWorkspaceSecretsErrors = {
10366
+ /**
10367
+ * Bad request - Invalid parameters or malformed JSON
10368
+ */
10369
+ 400: {
10370
+ message: string;
10371
+ issues?: string;
10372
+ };
10373
+ /**
10374
+ * Unauthorized
10375
+ */
10376
+ 401: ErrorResponse;
10377
+ /**
10378
+ * Forbidden
10379
+ */
10380
+ 403: ErrorResponse;
10381
+ /**
10382
+ * Not Found
10383
+ */
10384
+ 404: ErrorResponse;
10385
+ /**
10386
+ * Conflict
10387
+ */
10388
+ 409: ErrorResponse;
10389
+ /**
10390
+ * Internal server error
10391
+ */
10392
+ 500: ErrorResponse;
10393
+ /**
10394
+ * Service Unavailable
10395
+ */
10396
+ 503: ErrorResponse;
10397
+ };
10398
+ export type SetWorkspaceSecretsError = SetWorkspaceSecretsErrors[keyof SetWorkspaceSecretsErrors];
10399
+ export type SetWorkspaceSecretsResponses = {
10400
+ /**
10401
+ * Whether the copy was stored
10402
+ */
10403
+ 200: SetWorkspaceSecretsByWorkspaceResponse;
10404
+ };
10405
+ export type SetWorkspaceSecretsResponse2 = SetWorkspaceSecretsResponses[keyof SetWorkspaceSecretsResponses];
9851
10406
  //# sourceMappingURL=types.gen.d.ts.map