@dazl/internal-api-client 1.5.8 → 1.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/index.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  // This file is auto-generated by @hey-api/openapi-ts
2
2
 
3
3
  export { client, type CreateClientConfig } from './client.gen.ts';
4
- export { Billing, Capture, GitHub, Media, type Options, Project, Publish, Search, Template, User, UserSettings } from './sdk.gen.ts';
5
- export type { AddCustomDomainData, AddCustomDomainError, AddCustomDomainErrors, AddCustomDomainResponse, AddCustomDomainResponses, BillingPrice, BillingProduct, CancelScheduledUpdateByDazlIdData, CancelScheduledUpdateByDazlIdError, CancelScheduledUpdateByDazlIdErrors, CancelScheduledUpdateByDazlIdResponse, CancelScheduledUpdateByDazlIdResponses, ClientOptions, ConnectUserData, ConnectUserError, ConnectUserErrors, ConnectUserResponse, ConnectUserResponses, CreateCustomerPortalSessionData, CreateCustomerPortalSessionError, CreateCustomerPortalSessionErrors, CreateCustomerPortalSessionResponse, CreateCustomerPortalSessionResponses, CreateCustomerWithDefaultSubscriptionData, CreateCustomerWithDefaultSubscriptionError, CreateCustomerWithDefaultSubscriptionErrors, CreateCustomerWithDefaultSubscriptionResponse, CreateCustomerWithDefaultSubscriptionResponses, CreateMediaData, CreateMediaError, CreateMediaErrors, CreateMediaResponses, CreateProjectData, CreateProjectError, CreateProjectErrors, CreateProjectResponse, CreateProjectResponses, CreateRepositoryData, CreateRepositoryError, CreateRepositoryErrors, CreateRepositoryResponse, CreateRepositoryResponses, CreateTemplateData, CreateTemplateError, CreateTemplateErrors, CreateTemplateResponse, CreateTemplateResponses, CreateUserData, CreateUserError, CreateUserErrors, CreateUserResponse, CreateUserResponses, CustomerInfo, DeleteCustomDomainData, DeleteCustomDomainError, DeleteCustomDomainErrors, DeleteCustomDomainResponse, DeleteCustomDomainResponses, DeleteProjectData, DeleteProjectError, DeleteProjectErrors, DeleteProjectResponse, DeleteProjectResponses, DeleteTemplateData, DeleteTemplateError, DeleteTemplateErrors, DeleteTemplateResponse, DeleteTemplateResponses, Deployment, DuplicateProjectData, DuplicateProjectError, DuplicateProjectErrors, DuplicateProjectResponse, DuplicateProjectResponses, EnsureSiteIdData, EnsureSiteIdError, EnsureSiteIdErrors, EnsureSiteIdResponse, EnsureSiteIdResponses, ErrorResponse, GetAccountScreenshotsData, GetAccountScreenshotsError, GetAccountScreenshotsErrors, GetAccountScreenshotsResponse, GetAccountScreenshotsResponses, GetAllProductsData, GetAllProductsError, GetAllProductsErrors, GetAllProductsResponse, GetAllProductsResponses, GetByDazlIdData, GetByDazlIdError, GetByDazlIdErrors, GetByDazlIdResponse, GetByDazlIdResponses, GetCustomDomainData, GetCustomDomainError, GetCustomDomainErrors, GetCustomDomainResponse, GetCustomDomainResponses, GetCustomerInfoByDazlIdData, GetCustomerInfoByDazlIdError, GetCustomerInfoByDazlIdErrors, GetCustomerInfoByDazlIdResponse, GetCustomerInfoByDazlIdResponses, GetHasSufficientCreditsByDazlIdData, GetHasSufficientCreditsByDazlIdError, GetHasSufficientCreditsByDazlIdErrors, GetHasSufficientCreditsByDazlIdResponse, GetHasSufficientCreditsByDazlIdResponses, GetInstallationsData, GetInstallationsError, GetInstallationsErrors, GetInstallationsResponse, GetInstallationsResponses, GetInstallationTokenData, GetInstallationTokenError, GetInstallationTokenErrors, GetInstallationTokenResponse, GetInstallationTokenResponses, GetInstallationUrlData, GetInstallationUrlError, GetInstallationUrlErrors, GetInstallationUrlResponse, GetInstallationUrlResponses, GetLatestDeployData, GetLatestDeployError, GetLatestDeployErrors, GetLatestDeployResponse, GetLatestDeployResponses, GetMaxCreditsForDefaultFreeData, GetMaxCreditsForDefaultFreeError, GetMaxCreditsForDefaultFreeErrors, GetMaxCreditsForDefaultFreeResponse, GetMaxCreditsForDefaultFreeResponses, GetPriceByIdData, GetPriceByIdError, GetPriceByIdErrors, GetPriceByIdResponse, GetPriceByIdResponses, GetProjectByIdData, GetProjectByIdError, GetProjectByIdErrors, GetProjectByIdResponse, GetProjectByIdResponses, GetProjectInfoData, GetProjectInfoError, GetProjectInfoErrors, GetProjectInfoResponse, GetProjectInfoResponses, GetProjectScreenshotsData, GetProjectScreenshotsError, GetProjectScreenshotsErrors, GetProjectScreenshotsResponse, GetProjectScreenshotsResponses, GetTemplateData, GetTemplateError, GetTemplateErrors, GetTemplateResponse, GetTemplateResponses, GetUploadConfigurationData, GetUploadConfigurationError, GetUploadConfigurationErrors, GetUploadConfigurationResponse, GetUploadConfigurationResponses, GetUserByDazlIdData, GetUserByDazlIdError, GetUserByDazlIdErrors, GetUserByDazlIdResponse, GetUserByDazlIdResponses, GetUserInfoByDazlIdData, GetUserInfoByDazlIdError, GetUserInfoByDazlIdErrors, GetUserInfoByDazlIdResponse, GetUserInfoByDazlIdResponses, GetUserInfoData, GetUserInfoError, GetUserInfoErrors, GetUserInfoResponse, GetUserInfoResponses, GetUserProjectsData, GetUserProjectsError, GetUserProjectsErrors, GetUserProjectsResponse, GetUserProjectsResponses, GetUserTemplatesData, GetUserTemplatesError, GetUserTemplatesErrors, GetUserTemplatesResponse, GetUserTemplatesResponses, ListFilesData, ListFilesError, ListFilesErrors, ListFilesResponse, ListFilesResponses, MediaFile, MediaFileList, OwnerDazlId, ProjectRaw, ProjectWithScreenshot, ScheduledUpdate, ScrapePageContentData, ScrapePageContentError, ScrapePageContentErrors, ScrapePageContentResponse, ScrapePageContentResponses, Screenshot, SearchWebData, SearchWebError, SearchWebErrors, SearchWebResponse, SearchWebResponses, StripeProduct, TakeScreenshotData, TakeScreenshotError, TakeScreenshotErrors, TakeScreenshotResponse, TakeScreenshotResponses, TemplateRaw, UpdateByDazlIdData, UpdateByDazlIdError, UpdateByDazlIdErrors, UpdateByDazlIdResponse, UpdateByDazlIdResponses, UpdateEnvVarsData, UpdateEnvVarsError, UpdateEnvVarsErrors, UpdateEnvVarsResponse, UpdateEnvVarsResponses, UpdateProjectData, UpdateProjectError, UpdateProjectErrors, UpdateProjectResponse, UpdateProjectResponses, UpdateTemplateData, UpdateTemplateError, UpdateTemplateErrors, UpdateTemplateResponse, UpdateTemplateResponses, UpdateUserData, UpdateUserError, UpdateUserErrors, UpdateUserResponse, UpdateUserResponses, UpdateUserSubscriptionData, UpdateUserSubscriptionError, UpdateUserSubscriptionErrors, UpdateUserSubscriptionResponse, UpdateUserSubscriptionResponses, UploadConfiguration, UpsertDeployInDbData, UpsertDeployInDbError, UpsertDeployInDbErrors, UpsertDeployInDbResponse, UpsertDeployInDbResponses, UserRaw } from './types.gen.ts';
4
+ export { Admin, Billing, Capture, GitHub, Media, type Options, Project, Publish, Search, Template, User, UserSettings } from './sdk.gen.ts';
5
+ export type { AddCustomDomainData, AddCustomDomainError, AddCustomDomainErrors, AddCustomDomainResponse, AddCustomDomainResponses, AdminCleanupProjectData, AdminCleanupProjectError, AdminCleanupProjectErrors, AdminCleanupProjectResponse, AdminCleanupProjectResponses, AdminCloneProjectCreateData, AdminCloneProjectCreateError, AdminCloneProjectCreateErrors, AdminCloneProjectCreateResponse, AdminCloneProjectCreateResponses, AdminCloneProjectLogData, AdminCloneProjectLogError, AdminCloneProjectLogErrors, AdminCloneProjectLogResponse, AdminCloneProjectLogResponses, AdminDeleteProjectData, AdminDeleteProjectError, AdminDeleteProjectErrors, AdminDeleteProjectResponse, AdminDeleteProjectResponses, AdminUpdateCreditsData, AdminUpdateCreditsError, AdminUpdateCreditsErrors, AdminUpdateCreditsResponse, AdminUpdateCreditsResponses, BillingPrice, BillingProduct, CancelScheduledUpdateByDazlIdData, CancelScheduledUpdateByDazlIdError, CancelScheduledUpdateByDazlIdErrors, CancelScheduledUpdateByDazlIdResponse, CancelScheduledUpdateByDazlIdResponses, CleanupProjectInput, ClientOptions, CloneProjectCreateInput, CloneProjectLogInput, ConnectUserData, ConnectUserError, ConnectUserErrors, ConnectUserResponse, ConnectUserResponses, CreateCustomerPortalSessionData, CreateCustomerPortalSessionError, CreateCustomerPortalSessionErrors, CreateCustomerPortalSessionResponse, CreateCustomerPortalSessionResponses, CreateCustomerWithDefaultSubscriptionData, CreateCustomerWithDefaultSubscriptionError, CreateCustomerWithDefaultSubscriptionErrors, CreateCustomerWithDefaultSubscriptionResponse, CreateCustomerWithDefaultSubscriptionResponses, CreateMediaData, CreateMediaError, CreateMediaErrors, CreateMediaResponses, CreateProjectData, CreateProjectError, CreateProjectErrors, CreateProjectResponse, CreateProjectResponses, CreateRepositoryData, CreateRepositoryError, CreateRepositoryErrors, CreateRepositoryResponse, CreateRepositoryResponses, CreateTemplateData, CreateTemplateError, CreateTemplateErrors, CreateTemplateResponse, CreateTemplateResponses, CreateUserData, CreateUserError, CreateUserErrors, CreateUserResponse, CreateUserResponses, CustomerInfo, DeleteCustomDomainData, DeleteCustomDomainError, DeleteCustomDomainErrors, DeleteCustomDomainResponse, DeleteCustomDomainResponses, DeleteProjectData, DeleteProjectError, DeleteProjectErrors, DeleteProjectInput, DeleteProjectResponse, DeleteProjectResponses, DeleteTemplateData, DeleteTemplateError, DeleteTemplateErrors, DeleteTemplateResponse, DeleteTemplateResponses, Deployment, DuplicateProjectData, DuplicateProjectError, DuplicateProjectErrors, DuplicateProjectResponse, DuplicateProjectResponses, EnsureSiteIdData, EnsureSiteIdError, EnsureSiteIdErrors, EnsureSiteIdResponse, EnsureSiteIdResponses, ErrorResponse, GetAccountScreenshotsData, GetAccountScreenshotsError, GetAccountScreenshotsErrors, GetAccountScreenshotsResponse, GetAccountScreenshotsResponses, GetAllProductsData, GetAllProductsError, GetAllProductsErrors, GetAllProductsResponse, GetAllProductsResponses, GetByDazlIdData, GetByDazlIdError, GetByDazlIdErrors, GetByDazlIdResponse, GetByDazlIdResponses, GetCustomDomainData, GetCustomDomainError, GetCustomDomainErrors, GetCustomDomainResponse, GetCustomDomainResponses, GetCustomerInfoByDazlIdData, GetCustomerInfoByDazlIdError, GetCustomerInfoByDazlIdErrors, GetCustomerInfoByDazlIdResponse, GetCustomerInfoByDazlIdResponses, GetEntriConfigData, GetEntriConfigError, GetEntriConfigErrors, GetEntriConfigResponse, GetEntriConfigResponses, GetHasSufficientCreditsByDazlIdData, GetHasSufficientCreditsByDazlIdError, GetHasSufficientCreditsByDazlIdErrors, GetHasSufficientCreditsByDazlIdResponse, GetHasSufficientCreditsByDazlIdResponses, GetInstallationsData, GetInstallationsError, GetInstallationsErrors, GetInstallationsResponse, GetInstallationsResponses, GetInstallationTokenData, GetInstallationTokenError, GetInstallationTokenErrors, GetInstallationTokenResponse, GetInstallationTokenResponses, GetInstallationUrlData, GetInstallationUrlError, GetInstallationUrlErrors, GetInstallationUrlResponse, GetInstallationUrlResponses, GetLatestDeployData, GetLatestDeployError, GetLatestDeployErrors, GetLatestDeployResponse, GetLatestDeployResponses, GetMaxCreditsForDefaultFreeData, GetMaxCreditsForDefaultFreeError, GetMaxCreditsForDefaultFreeErrors, GetMaxCreditsForDefaultFreeResponse, GetMaxCreditsForDefaultFreeResponses, GetPriceByIdData, GetPriceByIdError, GetPriceByIdErrors, GetPriceByIdResponse, GetPriceByIdResponses, GetProjectByIdData, GetProjectByIdError, GetProjectByIdErrors, GetProjectByIdResponse, GetProjectByIdResponses, GetProjectInfoData, GetProjectInfoError, GetProjectInfoErrors, GetProjectInfoResponse, GetProjectInfoResponses, GetProjectScreenshotsData, GetProjectScreenshotsError, GetProjectScreenshotsErrors, GetProjectScreenshotsResponse, GetProjectScreenshotsResponses, GetTemplateData, GetTemplateError, GetTemplateErrors, GetTemplateResponse, GetTemplateResponses, GetUploadConfigurationData, GetUploadConfigurationError, GetUploadConfigurationErrors, GetUploadConfigurationResponse, GetUploadConfigurationResponses, GetUserByDazlIdData, GetUserByDazlIdError, GetUserByDazlIdErrors, GetUserByDazlIdResponse, GetUserByDazlIdResponses, GetUserInfoByDazlIdData, GetUserInfoByDazlIdError, GetUserInfoByDazlIdErrors, GetUserInfoByDazlIdResponse, GetUserInfoByDazlIdResponses, GetUserInfoData, GetUserInfoError, GetUserInfoErrors, GetUserInfoResponse, GetUserInfoResponses, GetUserProjectsData, GetUserProjectsError, GetUserProjectsErrors, GetUserProjectsResponse, GetUserProjectsResponses, GetUserTemplatesData, GetUserTemplatesError, GetUserTemplatesErrors, GetUserTemplatesResponse, GetUserTemplatesResponses, ListFilesData, ListFilesError, ListFilesErrors, ListFilesResponse, ListFilesResponses, MediaFile, MediaFileList, OwnerDazlId, ProjectRaw, ProjectWithScreenshot, ScheduledUpdate, ScrapePageContentData, ScrapePageContentError, ScrapePageContentErrors, ScrapePageContentResponse, ScrapePageContentResponses, Screenshot, SearchWebData, SearchWebError, SearchWebErrors, SearchWebResponse, SearchWebResponses, StripeProduct, TakeScreenshotData, TakeScreenshotError, TakeScreenshotErrors, TakeScreenshotResponse, TakeScreenshotResponses, TemplateRaw, UpdateByDazlIdData, UpdateByDazlIdError, UpdateByDazlIdErrors, UpdateByDazlIdResponse, UpdateByDazlIdResponses, UpdateCreditsInput, UpdateEnvVarsData, UpdateEnvVarsError, UpdateEnvVarsErrors, UpdateEnvVarsResponse, UpdateEnvVarsResponses, UpdateProjectData, UpdateProjectError, UpdateProjectErrors, UpdateProjectResponse, UpdateProjectResponses, UpdateTemplateData, UpdateTemplateError, UpdateTemplateErrors, UpdateTemplateResponse, UpdateTemplateResponses, UpdateUserData, UpdateUserError, UpdateUserErrors, UpdateUserResponse, UpdateUserResponses, UpdateUserSubscriptionData, UpdateUserSubscriptionError, UpdateUserSubscriptionErrors, UpdateUserSubscriptionResponse, UpdateUserSubscriptionResponses, UploadConfiguration, UpsertDeployInDbData, UpsertDeployInDbError, UpsertDeployInDbErrors, UpsertDeployInDbResponse, UpsertDeployInDbResponses, UserRaw } from './types.gen.ts';
package/src/sdk.gen.ts CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  import { client } from './client.gen.ts';
4
4
  import type { Client, Options as Options2, TDataShape } from './client/index.ts';
5
- import type { AddCustomDomainData, AddCustomDomainErrors, AddCustomDomainResponses, CancelScheduledUpdateByDazlIdData, CancelScheduledUpdateByDazlIdErrors, CancelScheduledUpdateByDazlIdResponses, ConnectUserData, ConnectUserErrors, ConnectUserResponses, CreateCustomerPortalSessionData, CreateCustomerPortalSessionErrors, CreateCustomerPortalSessionResponses, CreateCustomerWithDefaultSubscriptionData, CreateCustomerWithDefaultSubscriptionErrors, CreateCustomerWithDefaultSubscriptionResponses, CreateMediaData, CreateMediaErrors, CreateMediaResponses, CreateProjectData, CreateProjectErrors, CreateProjectResponses, CreateRepositoryData, CreateRepositoryErrors, CreateRepositoryResponses, CreateTemplateData, CreateTemplateErrors, CreateTemplateResponses, CreateUserData, CreateUserErrors, CreateUserResponses, DeleteCustomDomainData, DeleteCustomDomainErrors, DeleteCustomDomainResponses, DeleteProjectData, DeleteProjectErrors, DeleteProjectResponses, DeleteTemplateData, DeleteTemplateErrors, DeleteTemplateResponses, DuplicateProjectData, DuplicateProjectErrors, DuplicateProjectResponses, EnsureSiteIdData, EnsureSiteIdErrors, EnsureSiteIdResponses, GetAccountScreenshotsData, GetAccountScreenshotsErrors, GetAccountScreenshotsResponses, GetAllProductsData, GetAllProductsErrors, GetAllProductsResponses, GetByDazlIdData, GetByDazlIdErrors, GetByDazlIdResponses, GetCustomDomainData, GetCustomDomainErrors, GetCustomDomainResponses, GetCustomerInfoByDazlIdData, GetCustomerInfoByDazlIdErrors, GetCustomerInfoByDazlIdResponses, GetHasSufficientCreditsByDazlIdData, GetHasSufficientCreditsByDazlIdErrors, GetHasSufficientCreditsByDazlIdResponses, GetInstallationsData, GetInstallationsErrors, GetInstallationsResponses, GetInstallationTokenData, GetInstallationTokenErrors, GetInstallationTokenResponses, GetInstallationUrlData, GetInstallationUrlErrors, GetInstallationUrlResponses, GetLatestDeployData, GetLatestDeployErrors, GetLatestDeployResponses, GetMaxCreditsForDefaultFreeData, GetMaxCreditsForDefaultFreeErrors, GetMaxCreditsForDefaultFreeResponses, GetPriceByIdData, GetPriceByIdErrors, GetPriceByIdResponses, GetProjectByIdData, GetProjectByIdErrors, GetProjectByIdResponses, GetProjectInfoData, GetProjectInfoErrors, GetProjectInfoResponses, GetProjectScreenshotsData, GetProjectScreenshotsErrors, GetProjectScreenshotsResponses, GetTemplateData, GetTemplateErrors, GetTemplateResponses, GetUploadConfigurationData, GetUploadConfigurationErrors, GetUploadConfigurationResponses, GetUserByDazlIdData, GetUserByDazlIdErrors, GetUserByDazlIdResponses, GetUserInfoByDazlIdData, GetUserInfoByDazlIdErrors, GetUserInfoByDazlIdResponses, GetUserInfoData, GetUserInfoErrors, GetUserInfoResponses, GetUserProjectsData, GetUserProjectsErrors, GetUserProjectsResponses, GetUserTemplatesData, GetUserTemplatesErrors, GetUserTemplatesResponses, ListFilesData, ListFilesErrors, ListFilesResponses, ScrapePageContentData, ScrapePageContentErrors, ScrapePageContentResponses, SearchWebData, SearchWebErrors, SearchWebResponses, TakeScreenshotData, TakeScreenshotErrors, TakeScreenshotResponses, UpdateByDazlIdData, UpdateByDazlIdErrors, UpdateByDazlIdResponses, UpdateEnvVarsData, UpdateEnvVarsErrors, UpdateEnvVarsResponses, UpdateProjectData, UpdateProjectErrors, UpdateProjectResponses, UpdateTemplateData, UpdateTemplateErrors, UpdateTemplateResponses, UpdateUserData, UpdateUserErrors, UpdateUserResponses, UpdateUserSubscriptionData, UpdateUserSubscriptionErrors, UpdateUserSubscriptionResponses, UpsertDeployInDbData, UpsertDeployInDbErrors, UpsertDeployInDbResponses } from './types.gen.ts';
5
+ import type { AddCustomDomainData, AddCustomDomainErrors, AddCustomDomainResponses, AdminCleanupProjectData, AdminCleanupProjectErrors, AdminCleanupProjectResponses, AdminCloneProjectCreateData, AdminCloneProjectCreateErrors, AdminCloneProjectCreateResponses, AdminCloneProjectLogData, AdminCloneProjectLogErrors, AdminCloneProjectLogResponses, AdminDeleteProjectData, AdminDeleteProjectErrors, AdminDeleteProjectResponses, AdminUpdateCreditsData, AdminUpdateCreditsErrors, AdminUpdateCreditsResponses, CancelScheduledUpdateByDazlIdData, CancelScheduledUpdateByDazlIdErrors, CancelScheduledUpdateByDazlIdResponses, ConnectUserData, ConnectUserErrors, ConnectUserResponses, CreateCustomerPortalSessionData, CreateCustomerPortalSessionErrors, CreateCustomerPortalSessionResponses, CreateCustomerWithDefaultSubscriptionData, CreateCustomerWithDefaultSubscriptionErrors, CreateCustomerWithDefaultSubscriptionResponses, CreateMediaData, CreateMediaErrors, CreateMediaResponses, CreateProjectData, CreateProjectErrors, CreateProjectResponses, CreateRepositoryData, CreateRepositoryErrors, CreateRepositoryResponses, CreateTemplateData, CreateTemplateErrors, CreateTemplateResponses, CreateUserData, CreateUserErrors, CreateUserResponses, DeleteCustomDomainData, DeleteCustomDomainErrors, DeleteCustomDomainResponses, DeleteProjectData, DeleteProjectErrors, DeleteProjectResponses, DeleteTemplateData, DeleteTemplateErrors, DeleteTemplateResponses, DuplicateProjectData, DuplicateProjectErrors, DuplicateProjectResponses, EnsureSiteIdData, EnsureSiteIdErrors, EnsureSiteIdResponses, GetAccountScreenshotsData, GetAccountScreenshotsErrors, GetAccountScreenshotsResponses, GetAllProductsData, GetAllProductsErrors, GetAllProductsResponses, GetByDazlIdData, GetByDazlIdErrors, GetByDazlIdResponses, GetCustomDomainData, GetCustomDomainErrors, GetCustomDomainResponses, GetCustomerInfoByDazlIdData, GetCustomerInfoByDazlIdErrors, GetCustomerInfoByDazlIdResponses, GetEntriConfigData, GetEntriConfigErrors, GetEntriConfigResponses, GetHasSufficientCreditsByDazlIdData, GetHasSufficientCreditsByDazlIdErrors, GetHasSufficientCreditsByDazlIdResponses, GetInstallationsData, GetInstallationsErrors, GetInstallationsResponses, GetInstallationTokenData, GetInstallationTokenErrors, GetInstallationTokenResponses, GetInstallationUrlData, GetInstallationUrlErrors, GetInstallationUrlResponses, GetLatestDeployData, GetLatestDeployErrors, GetLatestDeployResponses, GetMaxCreditsForDefaultFreeData, GetMaxCreditsForDefaultFreeErrors, GetMaxCreditsForDefaultFreeResponses, GetPriceByIdData, GetPriceByIdErrors, GetPriceByIdResponses, GetProjectByIdData, GetProjectByIdErrors, GetProjectByIdResponses, GetProjectInfoData, GetProjectInfoErrors, GetProjectInfoResponses, GetProjectScreenshotsData, GetProjectScreenshotsErrors, GetProjectScreenshotsResponses, GetTemplateData, GetTemplateErrors, GetTemplateResponses, GetUploadConfigurationData, GetUploadConfigurationErrors, GetUploadConfigurationResponses, GetUserByDazlIdData, GetUserByDazlIdErrors, GetUserByDazlIdResponses, GetUserInfoByDazlIdData, GetUserInfoByDazlIdErrors, GetUserInfoByDazlIdResponses, GetUserInfoData, GetUserInfoErrors, GetUserInfoResponses, GetUserProjectsData, GetUserProjectsErrors, GetUserProjectsResponses, GetUserTemplatesData, GetUserTemplatesErrors, GetUserTemplatesResponses, ListFilesData, ListFilesErrors, ListFilesResponses, ScrapePageContentData, ScrapePageContentErrors, ScrapePageContentResponses, SearchWebData, SearchWebErrors, SearchWebResponses, TakeScreenshotData, TakeScreenshotErrors, TakeScreenshotResponses, UpdateByDazlIdData, UpdateByDazlIdErrors, UpdateByDazlIdResponses, UpdateEnvVarsData, UpdateEnvVarsErrors, UpdateEnvVarsResponses, UpdateProjectData, UpdateProjectErrors, UpdateProjectResponses, UpdateTemplateData, UpdateTemplateErrors, UpdateTemplateResponses, UpdateUserData, UpdateUserErrors, UpdateUserResponses, UpdateUserSubscriptionData, UpdateUserSubscriptionErrors, UpdateUserSubscriptionResponses, UpsertDeployInDbData, UpsertDeployInDbErrors, UpsertDeployInDbResponses } from './types.gen.ts';
6
6
 
7
7
  export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = Options2<TData, ThrowOnError> & {
8
8
  /**
@@ -198,6 +198,10 @@ export class Publish {
198
198
  }
199
199
  });
200
200
  }
201
+
202
+ public static getEntriConfig<ThrowOnError extends boolean = false>(options: Options<GetEntriConfigData, ThrowOnError>) {
203
+ return (options.client ?? client).get<GetEntriConfigResponses, GetEntriConfigErrors, ThrowOnError>({ url: '/publish/entri-config', ...options });
204
+ }
201
205
  }
202
206
 
203
207
  export class Project {
@@ -397,3 +401,75 @@ export class Search {
397
401
  });
398
402
  }
399
403
  }
404
+
405
+ export class Admin {
406
+ /**
407
+ * Deletes a project and its deployments, logging the admin action. Used by backoffice admins.
408
+ */
409
+ public static adminDeleteProject<ThrowOnError extends boolean = false>(options: Options<AdminDeleteProjectData, ThrowOnError>) {
410
+ return (options.client ?? client).delete<AdminDeleteProjectResponses, AdminDeleteProjectErrors, ThrowOnError>({
411
+ url: '/admin/project/{projectId}',
412
+ ...options,
413
+ headers: {
414
+ 'Content-Type': 'application/json',
415
+ ...options.headers
416
+ }
417
+ });
418
+ }
419
+
420
+ /**
421
+ * Creates a new project record for cloning. Returns the new project ID so the client can perform S3 operations.
422
+ */
423
+ public static adminCloneProjectCreate<ThrowOnError extends boolean = false>(options: Options<AdminCloneProjectCreateData, ThrowOnError>) {
424
+ return (options.client ?? client).post<AdminCloneProjectCreateResponses, AdminCloneProjectCreateErrors, ThrowOnError>({
425
+ url: '/admin/project/clone',
426
+ ...options,
427
+ headers: {
428
+ 'Content-Type': 'application/json',
429
+ ...options.headers
430
+ }
431
+ });
432
+ }
433
+
434
+ /**
435
+ * Logs the successful clone action after S3 operations complete.
436
+ */
437
+ public static adminCloneProjectLog<ThrowOnError extends boolean = false>(options: Options<AdminCloneProjectLogData, ThrowOnError>) {
438
+ return (options.client ?? client).post<AdminCloneProjectLogResponses, AdminCloneProjectLogErrors, ThrowOnError>({
439
+ url: '/admin/project/clone/log',
440
+ ...options,
441
+ headers: {
442
+ 'Content-Type': 'application/json',
443
+ ...options.headers
444
+ }
445
+ });
446
+ }
447
+
448
+ /**
449
+ * Compensating transaction: deletes a newly created project record if S3 copy fails.
450
+ */
451
+ public static adminCleanupProject<ThrowOnError extends boolean = false>(options: Options<AdminCleanupProjectData, ThrowOnError>) {
452
+ return (options.client ?? client).post<AdminCleanupProjectResponses, AdminCleanupProjectErrors, ThrowOnError>({
453
+ url: '/admin/project/cleanup',
454
+ ...options,
455
+ headers: {
456
+ 'Content-Type': 'application/json',
457
+ ...options.headers
458
+ }
459
+ });
460
+ }
461
+
462
+ /**
463
+ * Updates a user's credit balance and logs the change. Used by backoffice admins.
464
+ */
465
+ public static adminUpdateCredits<ThrowOnError extends boolean = false>(options: Options<AdminUpdateCreditsData, ThrowOnError>) {
466
+ return (options.client ?? client).put<AdminUpdateCreditsResponses, AdminUpdateCreditsErrors, ThrowOnError>({
467
+ url: '/admin/credits',
468
+ ...options,
469
+ headers: {
470
+ 'Content-Type': 'application/json',
471
+ ...options.headers
472
+ }
473
+ });
474
+ }
475
+ }
package/src/types.gen.ts CHANGED
@@ -81,6 +81,8 @@ export type Deployment = {
81
81
  productionURL: string;
82
82
  publishedAt: string;
83
83
  createdAt: string;
84
+ customDomain: string | null;
85
+ isDnsValid: boolean;
84
86
  };
85
87
 
86
88
  export type ProjectRaw = {
@@ -276,6 +278,81 @@ export type UserRaw = {
276
278
  picture?: string | null;
277
279
  };
278
280
 
281
+ export type DeleteProjectInput = {
282
+ /**
283
+ * The admin user's internal ID
284
+ */
285
+ adminUserId: number;
286
+ /**
287
+ * The owner of the project being deleted
288
+ */
289
+ targetUserId: number;
290
+ /**
291
+ * The name of the project being deleted
292
+ */
293
+ projectName: string;
294
+ };
295
+
296
+ export type CloneProjectCreateInput = {
297
+ /**
298
+ * The name of the original project
299
+ */
300
+ originalProjectName: string;
301
+ /**
302
+ * The admin user's internal ID
303
+ */
304
+ adminUserId: number;
305
+ };
306
+
307
+ export type CloneProjectLogInput = {
308
+ /**
309
+ * The admin user's internal ID
310
+ */
311
+ adminUserId: number;
312
+ /**
313
+ * The internal ID of the original project owner
314
+ */
315
+ originalProjectOwnerId: number;
316
+ /**
317
+ * The ID of the original project
318
+ */
319
+ originalProjectId: string;
320
+ /**
321
+ * The name of the original project
322
+ */
323
+ originalProjectName: string;
324
+ };
325
+
326
+ export type CleanupProjectInput = {
327
+ /**
328
+ * The ID of the project to delete
329
+ */
330
+ newProjectId: string;
331
+ };
332
+
333
+ export type UpdateCreditsInput = {
334
+ /**
335
+ * The user whose credits are being updated
336
+ */
337
+ targetUserId: number;
338
+ /**
339
+ * The new credit balance
340
+ */
341
+ newBalance: number;
342
+ /**
343
+ * The previous credit balance
344
+ */
345
+ oldBalance: number;
346
+ /**
347
+ * The admin user's internal ID
348
+ */
349
+ adminUserId: number;
350
+ /**
351
+ * Optional reason for the credit change
352
+ */
353
+ reason?: string | null;
354
+ };
355
+
279
356
  export type GetByDazlIdData = {
280
357
  body?: never;
281
358
  path: {
@@ -1631,7 +1708,6 @@ export type DeleteCustomDomainData = {
1631
1708
  query: {
1632
1709
  projectId: string;
1633
1710
  dazlId: string;
1634
- domain: string;
1635
1711
  };
1636
1712
  url: '/publish/custom-domain';
1637
1713
  };
@@ -1798,6 +1874,79 @@ export type AddCustomDomainResponses = {
1798
1874
 
1799
1875
  export type AddCustomDomainResponse = AddCustomDomainResponses[keyof AddCustomDomainResponses];
1800
1876
 
1877
+ export type GetEntriConfigData = {
1878
+ body?: never;
1879
+ path?: never;
1880
+ query: {
1881
+ projectId: string;
1882
+ dazlId: string;
1883
+ };
1884
+ url: '/publish/entri-config';
1885
+ };
1886
+
1887
+ export type GetEntriConfigErrors = {
1888
+ /**
1889
+ * Bad request - Invalid parameters or malformed JSON
1890
+ */
1891
+ 400: {
1892
+ message: string;
1893
+ issues?: string;
1894
+ };
1895
+ /**
1896
+ * Unauthorized
1897
+ */
1898
+ 401: ErrorResponse;
1899
+ /**
1900
+ * Forbidden
1901
+ */
1902
+ 403: ErrorResponse;
1903
+ /**
1904
+ * Not Found
1905
+ */
1906
+ 404: ErrorResponse;
1907
+ /**
1908
+ * Conflict
1909
+ */
1910
+ 409: ErrorResponse;
1911
+ /**
1912
+ * Internal server error
1913
+ */
1914
+ 500: ErrorResponse;
1915
+ /**
1916
+ * Service Unavailable
1917
+ */
1918
+ 503: ErrorResponse;
1919
+ };
1920
+
1921
+ export type GetEntriConfigError = GetEntriConfigErrors[keyof GetEntriConfigErrors];
1922
+
1923
+ export type GetEntriConfigResponses = {
1924
+ /**
1925
+ * Returns the Entri configuration
1926
+ */
1927
+ 200: {
1928
+ applicationId: string;
1929
+ token: string;
1930
+ prefilledDomain?: string;
1931
+ dnsRecords: {
1932
+ domain: Array<{
1933
+ type: string;
1934
+ host: string;
1935
+ value: string;
1936
+ ttl: number;
1937
+ }>;
1938
+ subDomain: Array<{
1939
+ type: string;
1940
+ host: string;
1941
+ value: string;
1942
+ ttl: number;
1943
+ }>;
1944
+ };
1945
+ };
1946
+ };
1947
+
1948
+ export type GetEntriConfigResponse = GetEntriConfigResponses[keyof GetEntriConfigResponses];
1949
+
1801
1950
  export type DuplicateProjectData = {
1802
1951
  body: {
1803
1952
  ownerDazlId: string;
@@ -3413,3 +3562,277 @@ export type SearchWebResponses = {
3413
3562
  };
3414
3563
 
3415
3564
  export type SearchWebResponse = SearchWebResponses[keyof SearchWebResponses];
3565
+
3566
+ export type AdminDeleteProjectData = {
3567
+ body: DeleteProjectInput;
3568
+ path: {
3569
+ projectId: string;
3570
+ };
3571
+ query?: never;
3572
+ url: '/admin/project/{projectId}';
3573
+ };
3574
+
3575
+ export type AdminDeleteProjectErrors = {
3576
+ /**
3577
+ * Bad request - Invalid parameters or malformed JSON
3578
+ */
3579
+ 400: {
3580
+ message: string;
3581
+ issues?: string;
3582
+ };
3583
+ /**
3584
+ * Unauthorized
3585
+ */
3586
+ 401: ErrorResponse;
3587
+ /**
3588
+ * Forbidden
3589
+ */
3590
+ 403: ErrorResponse;
3591
+ /**
3592
+ * Not Found
3593
+ */
3594
+ 404: ErrorResponse;
3595
+ /**
3596
+ * Conflict
3597
+ */
3598
+ 409: ErrorResponse;
3599
+ /**
3600
+ * Internal server error
3601
+ */
3602
+ 500: ErrorResponse;
3603
+ /**
3604
+ * Service Unavailable
3605
+ */
3606
+ 503: ErrorResponse;
3607
+ };
3608
+
3609
+ export type AdminDeleteProjectError = AdminDeleteProjectErrors[keyof AdminDeleteProjectErrors];
3610
+
3611
+ export type AdminDeleteProjectResponses = {
3612
+ /**
3613
+ * Project deleted successfully
3614
+ */
3615
+ 200: {
3616
+ success: boolean;
3617
+ projectId: string;
3618
+ };
3619
+ };
3620
+
3621
+ export type AdminDeleteProjectResponse = AdminDeleteProjectResponses[keyof AdminDeleteProjectResponses];
3622
+
3623
+ export type AdminCloneProjectCreateData = {
3624
+ body: CloneProjectCreateInput;
3625
+ path?: never;
3626
+ query?: never;
3627
+ url: '/admin/project/clone';
3628
+ };
3629
+
3630
+ export type AdminCloneProjectCreateErrors = {
3631
+ /**
3632
+ * Bad request - Invalid parameters or malformed JSON
3633
+ */
3634
+ 400: {
3635
+ message: string;
3636
+ issues?: string;
3637
+ };
3638
+ /**
3639
+ * Unauthorized
3640
+ */
3641
+ 401: ErrorResponse;
3642
+ /**
3643
+ * Forbidden
3644
+ */
3645
+ 403: ErrorResponse;
3646
+ /**
3647
+ * Not Found
3648
+ */
3649
+ 404: ErrorResponse;
3650
+ /**
3651
+ * Conflict
3652
+ */
3653
+ 409: ErrorResponse;
3654
+ /**
3655
+ * Internal server error
3656
+ */
3657
+ 500: ErrorResponse;
3658
+ /**
3659
+ * Service Unavailable
3660
+ */
3661
+ 503: ErrorResponse;
3662
+ };
3663
+
3664
+ export type AdminCloneProjectCreateError = AdminCloneProjectCreateErrors[keyof AdminCloneProjectCreateErrors];
3665
+
3666
+ export type AdminCloneProjectCreateResponses = {
3667
+ /**
3668
+ * Returns the ID of the newly created clone project record
3669
+ */
3670
+ 200: {
3671
+ newProjectId: string;
3672
+ };
3673
+ };
3674
+
3675
+ export type AdminCloneProjectCreateResponse = AdminCloneProjectCreateResponses[keyof AdminCloneProjectCreateResponses];
3676
+
3677
+ export type AdminCloneProjectLogData = {
3678
+ body: CloneProjectLogInput;
3679
+ path?: never;
3680
+ query?: never;
3681
+ url: '/admin/project/clone/log';
3682
+ };
3683
+
3684
+ export type AdminCloneProjectLogErrors = {
3685
+ /**
3686
+ * Bad request - Invalid parameters or malformed JSON
3687
+ */
3688
+ 400: {
3689
+ message: string;
3690
+ issues?: string;
3691
+ };
3692
+ /**
3693
+ * Unauthorized
3694
+ */
3695
+ 401: ErrorResponse;
3696
+ /**
3697
+ * Forbidden
3698
+ */
3699
+ 403: ErrorResponse;
3700
+ /**
3701
+ * Not Found
3702
+ */
3703
+ 404: ErrorResponse;
3704
+ /**
3705
+ * Conflict
3706
+ */
3707
+ 409: ErrorResponse;
3708
+ /**
3709
+ * Internal server error
3710
+ */
3711
+ 500: ErrorResponse;
3712
+ /**
3713
+ * Service Unavailable
3714
+ */
3715
+ 503: ErrorResponse;
3716
+ };
3717
+
3718
+ export type AdminCloneProjectLogError = AdminCloneProjectLogErrors[keyof AdminCloneProjectLogErrors];
3719
+
3720
+ export type AdminCloneProjectLogResponses = {
3721
+ /**
3722
+ * Admin action logged successfully
3723
+ */
3724
+ 200: {
3725
+ success: boolean;
3726
+ };
3727
+ };
3728
+
3729
+ export type AdminCloneProjectLogResponse = AdminCloneProjectLogResponses[keyof AdminCloneProjectLogResponses];
3730
+
3731
+ export type AdminCleanupProjectData = {
3732
+ body: CleanupProjectInput;
3733
+ path?: never;
3734
+ query?: never;
3735
+ url: '/admin/project/cleanup';
3736
+ };
3737
+
3738
+ export type AdminCleanupProjectErrors = {
3739
+ /**
3740
+ * Bad request - Invalid parameters or malformed JSON
3741
+ */
3742
+ 400: {
3743
+ message: string;
3744
+ issues?: string;
3745
+ };
3746
+ /**
3747
+ * Unauthorized
3748
+ */
3749
+ 401: ErrorResponse;
3750
+ /**
3751
+ * Forbidden
3752
+ */
3753
+ 403: ErrorResponse;
3754
+ /**
3755
+ * Not Found
3756
+ */
3757
+ 404: ErrorResponse;
3758
+ /**
3759
+ * Conflict
3760
+ */
3761
+ 409: ErrorResponse;
3762
+ /**
3763
+ * Internal server error
3764
+ */
3765
+ 500: ErrorResponse;
3766
+ /**
3767
+ * Service Unavailable
3768
+ */
3769
+ 503: ErrorResponse;
3770
+ };
3771
+
3772
+ export type AdminCleanupProjectError = AdminCleanupProjectErrors[keyof AdminCleanupProjectErrors];
3773
+
3774
+ export type AdminCleanupProjectResponses = {
3775
+ /**
3776
+ * Project cleaned up successfully
3777
+ */
3778
+ 200: {
3779
+ success: boolean;
3780
+ };
3781
+ };
3782
+
3783
+ export type AdminCleanupProjectResponse = AdminCleanupProjectResponses[keyof AdminCleanupProjectResponses];
3784
+
3785
+ export type AdminUpdateCreditsData = {
3786
+ body: UpdateCreditsInput;
3787
+ path?: never;
3788
+ query?: never;
3789
+ url: '/admin/credits';
3790
+ };
3791
+
3792
+ export type AdminUpdateCreditsErrors = {
3793
+ /**
3794
+ * Bad request - Invalid parameters or malformed JSON
3795
+ */
3796
+ 400: {
3797
+ message: string;
3798
+ issues?: string;
3799
+ };
3800
+ /**
3801
+ * Unauthorized
3802
+ */
3803
+ 401: ErrorResponse;
3804
+ /**
3805
+ * Forbidden
3806
+ */
3807
+ 403: ErrorResponse;
3808
+ /**
3809
+ * Not Found
3810
+ */
3811
+ 404: ErrorResponse;
3812
+ /**
3813
+ * Conflict
3814
+ */
3815
+ 409: ErrorResponse;
3816
+ /**
3817
+ * Internal server error
3818
+ */
3819
+ 500: ErrorResponse;
3820
+ /**
3821
+ * Service Unavailable
3822
+ */
3823
+ 503: ErrorResponse;
3824
+ };
3825
+
3826
+ export type AdminUpdateCreditsError = AdminUpdateCreditsErrors[keyof AdminUpdateCreditsErrors];
3827
+
3828
+ export type AdminUpdateCreditsResponses = {
3829
+ /**
3830
+ * Credits updated successfully
3831
+ */
3832
+ 200: {
3833
+ success: boolean;
3834
+ newBalance: number;
3835
+ };
3836
+ };
3837
+
3838
+ export type AdminUpdateCreditsResponse = AdminUpdateCreditsResponses[keyof AdminUpdateCreditsResponses];