@dazl/internal-api-client 1.5.9 → 1.6.1
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/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/sdk.gen.d.ts +23 -2
- package/dist/sdk.gen.d.ts.map +1 -1
- package/dist/sdk.gen.js +67 -3
- package/dist/sdk.gen.js.map +1 -1
- package/dist/types.gen.d.ts +320 -68
- package/dist/types.gen.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +2 -2
- package/src/sdk.gen.ts +73 -5
- package/src/types.gen.ts +350 -73
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,
|
|
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, 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,
|
|
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, 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,10 +198,6 @@ 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
|
-
}
|
|
205
201
|
}
|
|
206
202
|
|
|
207
203
|
export class Project {
|
|
@@ -401,3 +397,75 @@ export class Search {
|
|
|
401
397
|
});
|
|
402
398
|
}
|
|
403
399
|
}
|
|
400
|
+
|
|
401
|
+
export class Admin {
|
|
402
|
+
/**
|
|
403
|
+
* Deletes a project and its deployments, logging the admin action. Used by backoffice admins.
|
|
404
|
+
*/
|
|
405
|
+
public static adminDeleteProject<ThrowOnError extends boolean = false>(options: Options<AdminDeleteProjectData, ThrowOnError>) {
|
|
406
|
+
return (options.client ?? client).delete<AdminDeleteProjectResponses, AdminDeleteProjectErrors, ThrowOnError>({
|
|
407
|
+
url: '/admin/project/{projectId}',
|
|
408
|
+
...options,
|
|
409
|
+
headers: {
|
|
410
|
+
'Content-Type': 'application/json',
|
|
411
|
+
...options.headers
|
|
412
|
+
}
|
|
413
|
+
});
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
/**
|
|
417
|
+
* Creates a new project record for cloning. Returns the new project ID so the client can perform S3 operations.
|
|
418
|
+
*/
|
|
419
|
+
public static adminCloneProjectCreate<ThrowOnError extends boolean = false>(options: Options<AdminCloneProjectCreateData, ThrowOnError>) {
|
|
420
|
+
return (options.client ?? client).post<AdminCloneProjectCreateResponses, AdminCloneProjectCreateErrors, ThrowOnError>({
|
|
421
|
+
url: '/admin/project/clone',
|
|
422
|
+
...options,
|
|
423
|
+
headers: {
|
|
424
|
+
'Content-Type': 'application/json',
|
|
425
|
+
...options.headers
|
|
426
|
+
}
|
|
427
|
+
});
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
/**
|
|
431
|
+
* Logs the successful clone action after S3 operations complete.
|
|
432
|
+
*/
|
|
433
|
+
public static adminCloneProjectLog<ThrowOnError extends boolean = false>(options: Options<AdminCloneProjectLogData, ThrowOnError>) {
|
|
434
|
+
return (options.client ?? client).post<AdminCloneProjectLogResponses, AdminCloneProjectLogErrors, ThrowOnError>({
|
|
435
|
+
url: '/admin/project/clone/log',
|
|
436
|
+
...options,
|
|
437
|
+
headers: {
|
|
438
|
+
'Content-Type': 'application/json',
|
|
439
|
+
...options.headers
|
|
440
|
+
}
|
|
441
|
+
});
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
/**
|
|
445
|
+
* Compensating transaction: deletes a newly created project record if S3 copy fails.
|
|
446
|
+
*/
|
|
447
|
+
public static adminCleanupProject<ThrowOnError extends boolean = false>(options: Options<AdminCleanupProjectData, ThrowOnError>) {
|
|
448
|
+
return (options.client ?? client).post<AdminCleanupProjectResponses, AdminCleanupProjectErrors, ThrowOnError>({
|
|
449
|
+
url: '/admin/project/cleanup',
|
|
450
|
+
...options,
|
|
451
|
+
headers: {
|
|
452
|
+
'Content-Type': 'application/json',
|
|
453
|
+
...options.headers
|
|
454
|
+
}
|
|
455
|
+
});
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
/**
|
|
459
|
+
* Updates a user's credit balance and logs the change. Used by backoffice admins.
|
|
460
|
+
*/
|
|
461
|
+
public static adminUpdateCredits<ThrowOnError extends boolean = false>(options: Options<AdminUpdateCreditsData, ThrowOnError>) {
|
|
462
|
+
return (options.client ?? client).put<AdminUpdateCreditsResponses, AdminUpdateCreditsErrors, ThrowOnError>({
|
|
463
|
+
url: '/admin/credits',
|
|
464
|
+
...options,
|
|
465
|
+
headers: {
|
|
466
|
+
'Content-Type': 'application/json',
|
|
467
|
+
...options.headers
|
|
468
|
+
}
|
|
469
|
+
});
|
|
470
|
+
}
|
|
471
|
+
}
|
package/src/types.gen.ts
CHANGED
|
@@ -278,6 +278,81 @@ export type UserRaw = {
|
|
|
278
278
|
picture?: string | null;
|
|
279
279
|
};
|
|
280
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
|
+
|
|
281
356
|
export type GetByDazlIdData = {
|
|
282
357
|
body?: never;
|
|
283
358
|
path: {
|
|
@@ -1633,6 +1708,7 @@ export type DeleteCustomDomainData = {
|
|
|
1633
1708
|
query: {
|
|
1634
1709
|
projectId: string;
|
|
1635
1710
|
dazlId: string;
|
|
1711
|
+
domain: string;
|
|
1636
1712
|
};
|
|
1637
1713
|
url: '/publish/custom-domain';
|
|
1638
1714
|
};
|
|
@@ -1799,79 +1875,6 @@ export type AddCustomDomainResponses = {
|
|
|
1799
1875
|
|
|
1800
1876
|
export type AddCustomDomainResponse = AddCustomDomainResponses[keyof AddCustomDomainResponses];
|
|
1801
1877
|
|
|
1802
|
-
export type GetEntriConfigData = {
|
|
1803
|
-
body?: never;
|
|
1804
|
-
path?: never;
|
|
1805
|
-
query: {
|
|
1806
|
-
projectId: string;
|
|
1807
|
-
dazlId: string;
|
|
1808
|
-
};
|
|
1809
|
-
url: '/publish/entri-config';
|
|
1810
|
-
};
|
|
1811
|
-
|
|
1812
|
-
export type GetEntriConfigErrors = {
|
|
1813
|
-
/**
|
|
1814
|
-
* Bad request - Invalid parameters or malformed JSON
|
|
1815
|
-
*/
|
|
1816
|
-
400: {
|
|
1817
|
-
message: string;
|
|
1818
|
-
issues?: string;
|
|
1819
|
-
};
|
|
1820
|
-
/**
|
|
1821
|
-
* Unauthorized
|
|
1822
|
-
*/
|
|
1823
|
-
401: ErrorResponse;
|
|
1824
|
-
/**
|
|
1825
|
-
* Forbidden
|
|
1826
|
-
*/
|
|
1827
|
-
403: ErrorResponse;
|
|
1828
|
-
/**
|
|
1829
|
-
* Not Found
|
|
1830
|
-
*/
|
|
1831
|
-
404: ErrorResponse;
|
|
1832
|
-
/**
|
|
1833
|
-
* Conflict
|
|
1834
|
-
*/
|
|
1835
|
-
409: ErrorResponse;
|
|
1836
|
-
/**
|
|
1837
|
-
* Internal server error
|
|
1838
|
-
*/
|
|
1839
|
-
500: ErrorResponse;
|
|
1840
|
-
/**
|
|
1841
|
-
* Service Unavailable
|
|
1842
|
-
*/
|
|
1843
|
-
503: ErrorResponse;
|
|
1844
|
-
};
|
|
1845
|
-
|
|
1846
|
-
export type GetEntriConfigError = GetEntriConfigErrors[keyof GetEntriConfigErrors];
|
|
1847
|
-
|
|
1848
|
-
export type GetEntriConfigResponses = {
|
|
1849
|
-
/**
|
|
1850
|
-
* Returns the Entri configuration
|
|
1851
|
-
*/
|
|
1852
|
-
200: {
|
|
1853
|
-
applicationId: string;
|
|
1854
|
-
token: string;
|
|
1855
|
-
prefilledDomain?: string;
|
|
1856
|
-
dnsRecords: {
|
|
1857
|
-
domain: Array<{
|
|
1858
|
-
type: string;
|
|
1859
|
-
host: string;
|
|
1860
|
-
value: string;
|
|
1861
|
-
ttl: number;
|
|
1862
|
-
}>;
|
|
1863
|
-
subDomain: Array<{
|
|
1864
|
-
type: string;
|
|
1865
|
-
host: string;
|
|
1866
|
-
value: string;
|
|
1867
|
-
ttl: number;
|
|
1868
|
-
}>;
|
|
1869
|
-
};
|
|
1870
|
-
};
|
|
1871
|
-
};
|
|
1872
|
-
|
|
1873
|
-
export type GetEntriConfigResponse = GetEntriConfigResponses[keyof GetEntriConfigResponses];
|
|
1874
|
-
|
|
1875
1878
|
export type DuplicateProjectData = {
|
|
1876
1879
|
body: {
|
|
1877
1880
|
ownerDazlId: string;
|
|
@@ -3487,3 +3490,277 @@ export type SearchWebResponses = {
|
|
|
3487
3490
|
};
|
|
3488
3491
|
|
|
3489
3492
|
export type SearchWebResponse = SearchWebResponses[keyof SearchWebResponses];
|
|
3493
|
+
|
|
3494
|
+
export type AdminDeleteProjectData = {
|
|
3495
|
+
body: DeleteProjectInput;
|
|
3496
|
+
path: {
|
|
3497
|
+
projectId: string;
|
|
3498
|
+
};
|
|
3499
|
+
query?: never;
|
|
3500
|
+
url: '/admin/project/{projectId}';
|
|
3501
|
+
};
|
|
3502
|
+
|
|
3503
|
+
export type AdminDeleteProjectErrors = {
|
|
3504
|
+
/**
|
|
3505
|
+
* Bad request - Invalid parameters or malformed JSON
|
|
3506
|
+
*/
|
|
3507
|
+
400: {
|
|
3508
|
+
message: string;
|
|
3509
|
+
issues?: string;
|
|
3510
|
+
};
|
|
3511
|
+
/**
|
|
3512
|
+
* Unauthorized
|
|
3513
|
+
*/
|
|
3514
|
+
401: ErrorResponse;
|
|
3515
|
+
/**
|
|
3516
|
+
* Forbidden
|
|
3517
|
+
*/
|
|
3518
|
+
403: ErrorResponse;
|
|
3519
|
+
/**
|
|
3520
|
+
* Not Found
|
|
3521
|
+
*/
|
|
3522
|
+
404: ErrorResponse;
|
|
3523
|
+
/**
|
|
3524
|
+
* Conflict
|
|
3525
|
+
*/
|
|
3526
|
+
409: ErrorResponse;
|
|
3527
|
+
/**
|
|
3528
|
+
* Internal server error
|
|
3529
|
+
*/
|
|
3530
|
+
500: ErrorResponse;
|
|
3531
|
+
/**
|
|
3532
|
+
* Service Unavailable
|
|
3533
|
+
*/
|
|
3534
|
+
503: ErrorResponse;
|
|
3535
|
+
};
|
|
3536
|
+
|
|
3537
|
+
export type AdminDeleteProjectError = AdminDeleteProjectErrors[keyof AdminDeleteProjectErrors];
|
|
3538
|
+
|
|
3539
|
+
export type AdminDeleteProjectResponses = {
|
|
3540
|
+
/**
|
|
3541
|
+
* Project deleted successfully
|
|
3542
|
+
*/
|
|
3543
|
+
200: {
|
|
3544
|
+
success: boolean;
|
|
3545
|
+
projectId: string;
|
|
3546
|
+
};
|
|
3547
|
+
};
|
|
3548
|
+
|
|
3549
|
+
export type AdminDeleteProjectResponse = AdminDeleteProjectResponses[keyof AdminDeleteProjectResponses];
|
|
3550
|
+
|
|
3551
|
+
export type AdminCloneProjectCreateData = {
|
|
3552
|
+
body: CloneProjectCreateInput;
|
|
3553
|
+
path?: never;
|
|
3554
|
+
query?: never;
|
|
3555
|
+
url: '/admin/project/clone';
|
|
3556
|
+
};
|
|
3557
|
+
|
|
3558
|
+
export type AdminCloneProjectCreateErrors = {
|
|
3559
|
+
/**
|
|
3560
|
+
* Bad request - Invalid parameters or malformed JSON
|
|
3561
|
+
*/
|
|
3562
|
+
400: {
|
|
3563
|
+
message: string;
|
|
3564
|
+
issues?: string;
|
|
3565
|
+
};
|
|
3566
|
+
/**
|
|
3567
|
+
* Unauthorized
|
|
3568
|
+
*/
|
|
3569
|
+
401: ErrorResponse;
|
|
3570
|
+
/**
|
|
3571
|
+
* Forbidden
|
|
3572
|
+
*/
|
|
3573
|
+
403: ErrorResponse;
|
|
3574
|
+
/**
|
|
3575
|
+
* Not Found
|
|
3576
|
+
*/
|
|
3577
|
+
404: ErrorResponse;
|
|
3578
|
+
/**
|
|
3579
|
+
* Conflict
|
|
3580
|
+
*/
|
|
3581
|
+
409: ErrorResponse;
|
|
3582
|
+
/**
|
|
3583
|
+
* Internal server error
|
|
3584
|
+
*/
|
|
3585
|
+
500: ErrorResponse;
|
|
3586
|
+
/**
|
|
3587
|
+
* Service Unavailable
|
|
3588
|
+
*/
|
|
3589
|
+
503: ErrorResponse;
|
|
3590
|
+
};
|
|
3591
|
+
|
|
3592
|
+
export type AdminCloneProjectCreateError = AdminCloneProjectCreateErrors[keyof AdminCloneProjectCreateErrors];
|
|
3593
|
+
|
|
3594
|
+
export type AdminCloneProjectCreateResponses = {
|
|
3595
|
+
/**
|
|
3596
|
+
* Returns the ID of the newly created clone project record
|
|
3597
|
+
*/
|
|
3598
|
+
200: {
|
|
3599
|
+
newProjectId: string;
|
|
3600
|
+
};
|
|
3601
|
+
};
|
|
3602
|
+
|
|
3603
|
+
export type AdminCloneProjectCreateResponse = AdminCloneProjectCreateResponses[keyof AdminCloneProjectCreateResponses];
|
|
3604
|
+
|
|
3605
|
+
export type AdminCloneProjectLogData = {
|
|
3606
|
+
body: CloneProjectLogInput;
|
|
3607
|
+
path?: never;
|
|
3608
|
+
query?: never;
|
|
3609
|
+
url: '/admin/project/clone/log';
|
|
3610
|
+
};
|
|
3611
|
+
|
|
3612
|
+
export type AdminCloneProjectLogErrors = {
|
|
3613
|
+
/**
|
|
3614
|
+
* Bad request - Invalid parameters or malformed JSON
|
|
3615
|
+
*/
|
|
3616
|
+
400: {
|
|
3617
|
+
message: string;
|
|
3618
|
+
issues?: string;
|
|
3619
|
+
};
|
|
3620
|
+
/**
|
|
3621
|
+
* Unauthorized
|
|
3622
|
+
*/
|
|
3623
|
+
401: ErrorResponse;
|
|
3624
|
+
/**
|
|
3625
|
+
* Forbidden
|
|
3626
|
+
*/
|
|
3627
|
+
403: ErrorResponse;
|
|
3628
|
+
/**
|
|
3629
|
+
* Not Found
|
|
3630
|
+
*/
|
|
3631
|
+
404: ErrorResponse;
|
|
3632
|
+
/**
|
|
3633
|
+
* Conflict
|
|
3634
|
+
*/
|
|
3635
|
+
409: ErrorResponse;
|
|
3636
|
+
/**
|
|
3637
|
+
* Internal server error
|
|
3638
|
+
*/
|
|
3639
|
+
500: ErrorResponse;
|
|
3640
|
+
/**
|
|
3641
|
+
* Service Unavailable
|
|
3642
|
+
*/
|
|
3643
|
+
503: ErrorResponse;
|
|
3644
|
+
};
|
|
3645
|
+
|
|
3646
|
+
export type AdminCloneProjectLogError = AdminCloneProjectLogErrors[keyof AdminCloneProjectLogErrors];
|
|
3647
|
+
|
|
3648
|
+
export type AdminCloneProjectLogResponses = {
|
|
3649
|
+
/**
|
|
3650
|
+
* Admin action logged successfully
|
|
3651
|
+
*/
|
|
3652
|
+
200: {
|
|
3653
|
+
success: boolean;
|
|
3654
|
+
};
|
|
3655
|
+
};
|
|
3656
|
+
|
|
3657
|
+
export type AdminCloneProjectLogResponse = AdminCloneProjectLogResponses[keyof AdminCloneProjectLogResponses];
|
|
3658
|
+
|
|
3659
|
+
export type AdminCleanupProjectData = {
|
|
3660
|
+
body: CleanupProjectInput;
|
|
3661
|
+
path?: never;
|
|
3662
|
+
query?: never;
|
|
3663
|
+
url: '/admin/project/cleanup';
|
|
3664
|
+
};
|
|
3665
|
+
|
|
3666
|
+
export type AdminCleanupProjectErrors = {
|
|
3667
|
+
/**
|
|
3668
|
+
* Bad request - Invalid parameters or malformed JSON
|
|
3669
|
+
*/
|
|
3670
|
+
400: {
|
|
3671
|
+
message: string;
|
|
3672
|
+
issues?: string;
|
|
3673
|
+
};
|
|
3674
|
+
/**
|
|
3675
|
+
* Unauthorized
|
|
3676
|
+
*/
|
|
3677
|
+
401: ErrorResponse;
|
|
3678
|
+
/**
|
|
3679
|
+
* Forbidden
|
|
3680
|
+
*/
|
|
3681
|
+
403: ErrorResponse;
|
|
3682
|
+
/**
|
|
3683
|
+
* Not Found
|
|
3684
|
+
*/
|
|
3685
|
+
404: ErrorResponse;
|
|
3686
|
+
/**
|
|
3687
|
+
* Conflict
|
|
3688
|
+
*/
|
|
3689
|
+
409: ErrorResponse;
|
|
3690
|
+
/**
|
|
3691
|
+
* Internal server error
|
|
3692
|
+
*/
|
|
3693
|
+
500: ErrorResponse;
|
|
3694
|
+
/**
|
|
3695
|
+
* Service Unavailable
|
|
3696
|
+
*/
|
|
3697
|
+
503: ErrorResponse;
|
|
3698
|
+
};
|
|
3699
|
+
|
|
3700
|
+
export type AdminCleanupProjectError = AdminCleanupProjectErrors[keyof AdminCleanupProjectErrors];
|
|
3701
|
+
|
|
3702
|
+
export type AdminCleanupProjectResponses = {
|
|
3703
|
+
/**
|
|
3704
|
+
* Project cleaned up successfully
|
|
3705
|
+
*/
|
|
3706
|
+
200: {
|
|
3707
|
+
success: boolean;
|
|
3708
|
+
};
|
|
3709
|
+
};
|
|
3710
|
+
|
|
3711
|
+
export type AdminCleanupProjectResponse = AdminCleanupProjectResponses[keyof AdminCleanupProjectResponses];
|
|
3712
|
+
|
|
3713
|
+
export type AdminUpdateCreditsData = {
|
|
3714
|
+
body: UpdateCreditsInput;
|
|
3715
|
+
path?: never;
|
|
3716
|
+
query?: never;
|
|
3717
|
+
url: '/admin/credits';
|
|
3718
|
+
};
|
|
3719
|
+
|
|
3720
|
+
export type AdminUpdateCreditsErrors = {
|
|
3721
|
+
/**
|
|
3722
|
+
* Bad request - Invalid parameters or malformed JSON
|
|
3723
|
+
*/
|
|
3724
|
+
400: {
|
|
3725
|
+
message: string;
|
|
3726
|
+
issues?: string;
|
|
3727
|
+
};
|
|
3728
|
+
/**
|
|
3729
|
+
* Unauthorized
|
|
3730
|
+
*/
|
|
3731
|
+
401: ErrorResponse;
|
|
3732
|
+
/**
|
|
3733
|
+
* Forbidden
|
|
3734
|
+
*/
|
|
3735
|
+
403: ErrorResponse;
|
|
3736
|
+
/**
|
|
3737
|
+
* Not Found
|
|
3738
|
+
*/
|
|
3739
|
+
404: ErrorResponse;
|
|
3740
|
+
/**
|
|
3741
|
+
* Conflict
|
|
3742
|
+
*/
|
|
3743
|
+
409: ErrorResponse;
|
|
3744
|
+
/**
|
|
3745
|
+
* Internal server error
|
|
3746
|
+
*/
|
|
3747
|
+
500: ErrorResponse;
|
|
3748
|
+
/**
|
|
3749
|
+
* Service Unavailable
|
|
3750
|
+
*/
|
|
3751
|
+
503: ErrorResponse;
|
|
3752
|
+
};
|
|
3753
|
+
|
|
3754
|
+
export type AdminUpdateCreditsError = AdminUpdateCreditsErrors[keyof AdminUpdateCreditsErrors];
|
|
3755
|
+
|
|
3756
|
+
export type AdminUpdateCreditsResponses = {
|
|
3757
|
+
/**
|
|
3758
|
+
* Credits updated successfully
|
|
3759
|
+
*/
|
|
3760
|
+
200: {
|
|
3761
|
+
success: boolean;
|
|
3762
|
+
newBalance: number;
|
|
3763
|
+
};
|
|
3764
|
+
};
|
|
3765
|
+
|
|
3766
|
+
export type AdminUpdateCreditsResponse = AdminUpdateCreditsResponses[keyof AdminUpdateCreditsResponses];
|