@dazl/api-client 1.0.22 → 1.0.24

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.
@@ -125,6 +125,11 @@ export type Deployment = {
125
125
  customDomainStatus: 'success' | 'pending' | 'error' | null;
126
126
  updatedAt: string;
127
127
  };
128
+ export type RemoteEnvConfig = {
129
+ id: string;
130
+ name: string;
131
+ remoteEnvConfigName: string;
132
+ };
128
133
  export type ProjectRaw = {
129
134
  id: string;
130
135
  name: string;
@@ -149,6 +154,7 @@ export type ProjectRaw = {
149
154
  role: 'admin' | 'contributor' | 'viewer';
150
155
  }>;
151
156
  workspaceId: string | null;
157
+ remoteEnvConfigId: string | null;
152
158
  };
153
159
  export type OwnerDazlId = {
154
160
  /**
@@ -446,19 +452,29 @@ export type FeatureToggle = {
446
452
  scope: 'RemoteAndEditor' | 'SiteAndEditor';
447
453
  updatedAt: string;
448
454
  };
449
- export type Workspace = {
455
+ export type WorkspaceBase = {
450
456
  id: string;
451
457
  name: string;
452
- /**
453
- * The user which created the workspace. Null if the user was deleted.
454
- */
455
458
  dazlUserId: string | null;
456
459
  createdAt: string;
457
460
  isDefault: boolean;
461
+ repoId: string | null;
462
+ };
463
+ export type WorkspaceWithRepo = {
464
+ id: string;
465
+ name: string;
466
+ dazlUserId: string | null;
467
+ createdAt: string;
468
+ isDefault: boolean;
469
+ repoId: string | null;
458
470
  /**
459
- * The ID of the repo associated with this workspace, if any.
471
+ * The full name of the repo associated with this workspace, if any.
460
472
  */
461
- repoId: string | null;
473
+ repoFullName: string | null;
474
+ /**
475
+ * The host of the repo associated with this workspace, if any.
476
+ */
477
+ repoHost: string | null;
462
478
  };
463
479
  export type CreateSessionAuthorized = {
464
480
  status: 'authorized';
@@ -1421,6 +1437,7 @@ export type GetProjectInfoResponses = {
1421
1437
  repoFullName: string;
1422
1438
  token: string | null;
1423
1439
  repoId: string;
1440
+ host: string;
1424
1441
  };
1425
1442
  };
1426
1443
  export type GetProjectInfoResponse = GetProjectInfoResponses[keyof GetProjectInfoResponses];
@@ -2134,6 +2151,55 @@ export type GetEntriConfigResponses = {
2134
2151
  };
2135
2152
  };
2136
2153
  export type GetEntriConfigResponse = GetEntriConfigResponses[keyof GetEntriConfigResponses];
2154
+ export type ListRemoteEnvConfigsData = {
2155
+ body?: never;
2156
+ path?: never;
2157
+ query?: never;
2158
+ url: '/project/remote-env-configs';
2159
+ };
2160
+ export type ListRemoteEnvConfigsErrors = {
2161
+ /**
2162
+ * Bad request - Invalid parameters or malformed JSON
2163
+ */
2164
+ 400: {
2165
+ message: string;
2166
+ issues?: string;
2167
+ };
2168
+ /**
2169
+ * Unauthorized
2170
+ */
2171
+ 401: ErrorResponse;
2172
+ /**
2173
+ * Forbidden
2174
+ */
2175
+ 403: ErrorResponse;
2176
+ /**
2177
+ * Not Found
2178
+ */
2179
+ 404: ErrorResponse;
2180
+ /**
2181
+ * Conflict
2182
+ */
2183
+ 409: ErrorResponse;
2184
+ /**
2185
+ * Internal server error
2186
+ */
2187
+ 500: ErrorResponse;
2188
+ /**
2189
+ * Service Unavailable
2190
+ */
2191
+ 503: ErrorResponse;
2192
+ };
2193
+ export type ListRemoteEnvConfigsError = ListRemoteEnvConfigsErrors[keyof ListRemoteEnvConfigsErrors];
2194
+ export type ListRemoteEnvConfigsResponses = {
2195
+ /**
2196
+ * Returns the list of available remote env configs
2197
+ */
2198
+ 200: {
2199
+ remoteEnvConfigs: Array<RemoteEnvConfig>;
2200
+ };
2201
+ };
2202
+ export type ListRemoteEnvConfigsResponse = ListRemoteEnvConfigsResponses[keyof ListRemoteEnvConfigsResponses];
2137
2203
  export type DuplicateProjectData = {
2138
2204
  body: {
2139
2205
  /**
@@ -2315,6 +2381,7 @@ export type UpdateProjectData = {
2315
2381
  lastOpenedAt?: string | string | null;
2316
2382
  latestScreenshot?: string | null;
2317
2383
  archivedAt?: string | string | null;
2384
+ remoteEnvConfigId?: string | null;
2318
2385
  /**
2319
2386
  * The dazl ID of the requesting user, used for permission checks
2320
2387
  */
@@ -2494,6 +2561,7 @@ export type CreateProjectData = {
2494
2561
  originTemplateId?: string | null;
2495
2562
  createdAt?: string;
2496
2563
  workspaceId?: string;
2564
+ remoteEnvConfigId?: string | null;
2497
2565
  projectInitData?: {
2498
2566
  gitRepoURL: string;
2499
2567
  gitBranchToClone?: string | null;
@@ -6067,7 +6135,7 @@ export type CreateWorkspaceResponses = {
6067
6135
  * Returns the created workspace
6068
6136
  */
6069
6137
  200: {
6070
- workspace: Workspace;
6138
+ workspace: WorkspaceBase;
6071
6139
  };
6072
6140
  };
6073
6141
  export type CreateWorkspaceResponse = CreateWorkspaceResponses[keyof CreateWorkspaceResponses];
@@ -6120,7 +6188,7 @@ export type UpdateWorkspaceResponses = {
6120
6188
  * Returns the updated workspace
6121
6189
  */
6122
6190
  200: {
6123
- workspace: Workspace;
6191
+ workspace: WorkspaceBase;
6124
6192
  };
6125
6193
  };
6126
6194
  export type UpdateWorkspaceResponse = UpdateWorkspaceResponses[keyof UpdateWorkspaceResponses];
@@ -6176,19 +6244,27 @@ export type GetWorkspaceResponses = {
6176
6244
  * Returns the workspace with the given ID
6177
6245
  */
6178
6246
  200: {
6179
- workspace: Workspace;
6247
+ workspace: WorkspaceWithRepo;
6180
6248
  };
6181
6249
  };
6182
6250
  export type GetWorkspaceResponse = GetWorkspaceResponses[keyof GetWorkspaceResponses];
6183
6251
  export type GetAllWorkspacesData = {
6184
- body?: never;
6185
- path?: never;
6186
- query?: {
6252
+ body: {
6187
6253
  /**
6188
6254
  * Whether to include the members of each workspace
6189
6255
  */
6190
6256
  withMembers?: boolean;
6257
+ /**
6258
+ * Filter workspaces by repository URLs
6259
+ */
6260
+ repoUrls?: Array<string>;
6261
+ /**
6262
+ * Whether to ensure a workspace exists for each repository URL provided
6263
+ */
6264
+ withEnsureWorkspacePerRepo?: boolean;
6191
6265
  };
6266
+ path?: never;
6267
+ query?: never;
6192
6268
  url: '/workspace/list-my';
6193
6269
  };
6194
6270
  export type GetAllWorkspacesErrors = {
@@ -6227,22 +6303,24 @@ export type GetAllWorkspacesErrors = {
6227
6303
  export type GetAllWorkspacesError = GetAllWorkspacesErrors[keyof GetAllWorkspacesErrors];
6228
6304
  export type GetAllWorkspacesResponses = {
6229
6305
  /**
6230
- * Returns the list of workspaces that the user is a member of
6306
+ * Returns the list of workspaces for the current user
6231
6307
  */
6232
6308
  200: {
6233
6309
  workspaces: Array<{
6234
6310
  id: string;
6235
6311
  name: string;
6236
- /**
6237
- * The user which created the workspace. Null if the user was deleted.
6238
- */
6239
6312
  dazlUserId: string | null;
6240
6313
  createdAt: string;
6241
6314
  isDefault: boolean;
6315
+ repoId: string | null;
6242
6316
  /**
6243
- * The ID of the repo associated with this workspace, if any.
6317
+ * The full name of the repo associated with this workspace, if any.
6244
6318
  */
6245
- repoId: string | null;
6319
+ repoFullName: string | null;
6320
+ /**
6321
+ * The host of the repo associated with this workspace, if any.
6322
+ */
6323
+ repoHost: string | null;
6246
6324
  owner?: {
6247
6325
  /**
6248
6326
  * Dazl ID for the type = "user"