@dazl/internal-api-client 1.4.1 → 1.5.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/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 +8 -1
- package/dist/sdk.gen.d.ts.map +1 -1
- package/dist/sdk.gen.js +24 -0
- package/dist/sdk.gen.js.map +1 -1
- package/dist/types.gen.d.ts +349 -0
- 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 +30 -1
- package/src/types.gen.ts +374 -0
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, Media, type Options, Project, Publish, UserSettings } from './sdk.gen.ts';
|
|
5
|
-
export type { BillingPrice, BillingProduct, CancelScheduledUpdateByDazlIdData, CancelScheduledUpdateByDazlIdError, CancelScheduledUpdateByDazlIdErrors, CancelScheduledUpdateByDazlIdResponse, CancelScheduledUpdateByDazlIdResponses, ClientOptions, CreateCustomerPortalSessionData, CreateCustomerPortalSessionError, CreateCustomerPortalSessionErrors, CreateCustomerPortalSessionResponse, CreateCustomerPortalSessionResponses, CreateCustomerWithDefaultSubscriptionData, CreateCustomerWithDefaultSubscriptionError, CreateCustomerWithDefaultSubscriptionErrors, CreateCustomerWithDefaultSubscriptionResponse, CreateCustomerWithDefaultSubscriptionResponses, CreateMediaData, CreateMediaError, CreateMediaErrors, CreateMediaResponses, CreateProjectData, CreateProjectError, CreateProjectErrors, CreateProjectResponse, CreateProjectResponses, CustomerInfo, DeleteProjectData, DeleteProjectError, DeleteProjectErrors, DeleteProjectResponse, DeleteProjectResponses, 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, GetCustomerInfoByDazlIdData, GetCustomerInfoByDazlIdError, GetCustomerInfoByDazlIdErrors, GetCustomerInfoByDazlIdResponse, GetCustomerInfoByDazlIdResponses, GetHasSufficientCreditsByDazlIdData, GetHasSufficientCreditsByDazlIdError, GetHasSufficientCreditsByDazlIdErrors, GetHasSufficientCreditsByDazlIdResponse, GetHasSufficientCreditsByDazlIdResponses, GetLatestDeployData, GetLatestDeployError, GetLatestDeployErrors, GetLatestDeployResponse, GetLatestDeployResponses, GetMaxCreditsForDefaultFreeData, GetMaxCreditsForDefaultFreeError, GetMaxCreditsForDefaultFreeErrors, GetMaxCreditsForDefaultFreeResponse, GetMaxCreditsForDefaultFreeResponses, GetProjectByIdData, GetProjectByIdError, GetProjectByIdErrors, GetProjectByIdResponse, GetProjectByIdResponses, GetProjectScreenshotsData, GetProjectScreenshotsError, GetProjectScreenshotsErrors, GetProjectScreenshotsResponse, GetProjectScreenshotsResponses, GetUploadConfigurationData, GetUploadConfigurationError, GetUploadConfigurationErrors, GetUploadConfigurationResponse, GetUploadConfigurationResponses, GetUserInfoByDazlIdData, GetUserInfoByDazlIdError, GetUserInfoByDazlIdErrors, GetUserInfoByDazlIdResponse, GetUserInfoByDazlIdResponses, ListFilesData, ListFilesError, ListFilesErrors, ListFilesResponse, ListFilesResponses, MediaFile, MediaFileList, OwnerDazlId, ProjectRaw, ProjectWithScreenshot, ScheduledUpdate, ScrapePageContentData, ScrapePageContentError, ScrapePageContentErrors, ScrapePageContentResponse, ScrapePageContentResponses, Screenshot, StripeProduct, TakeScreenshotData, TakeScreenshotError, TakeScreenshotErrors, TakeScreenshotResponse, TakeScreenshotResponses, UpdateByDazlIdData, UpdateByDazlIdError, UpdateByDazlIdErrors, UpdateByDazlIdResponse, UpdateByDazlIdResponses, UpdateEnvVarsData, UpdateEnvVarsError, UpdateEnvVarsErrors, UpdateEnvVarsResponse, UpdateEnvVarsResponses, UpdateProjectData, UpdateProjectError, UpdateProjectErrors, UpdateProjectResponse, UpdateProjectResponses, UpdateUserSubscriptionData, UpdateUserSubscriptionError, UpdateUserSubscriptionErrors, UpdateUserSubscriptionResponse, UpdateUserSubscriptionResponses, UploadConfiguration, UpsertDeployInDbData, UpsertDeployInDbError, UpsertDeployInDbErrors, UpsertDeployInDbResponse, UpsertDeployInDbResponses } from './types.gen.ts';
|
|
4
|
+
export { Billing, Capture, GitHub, Media, type Options, Project, Publish, UserSettings } from './sdk.gen.ts';
|
|
5
|
+
export type { 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, CustomerInfo, DeleteProjectData, DeleteProjectError, DeleteProjectErrors, DeleteProjectResponse, DeleteProjectResponses, 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, 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, GetProjectByIdData, GetProjectByIdError, GetProjectByIdErrors, GetProjectByIdResponse, GetProjectByIdResponses, GetProjectScreenshotsData, GetProjectScreenshotsError, GetProjectScreenshotsErrors, GetProjectScreenshotsResponse, GetProjectScreenshotsResponses, GetUploadConfigurationData, GetUploadConfigurationError, GetUploadConfigurationErrors, GetUploadConfigurationResponse, GetUploadConfigurationResponses, GetUserInfoByDazlIdData, GetUserInfoByDazlIdError, GetUserInfoByDazlIdErrors, GetUserInfoByDazlIdResponse, GetUserInfoByDazlIdResponses, GetUserInfoData, GetUserInfoError, GetUserInfoErrors, GetUserInfoResponse, GetUserInfoResponses, ListFilesData, ListFilesError, ListFilesErrors, ListFilesResponse, ListFilesResponses, MediaFile, MediaFileList, OwnerDazlId, ProjectRaw, ProjectWithScreenshot, ScheduledUpdate, ScrapePageContentData, ScrapePageContentError, ScrapePageContentErrors, ScrapePageContentResponse, ScrapePageContentResponses, Screenshot, StripeProduct, TakeScreenshotData, TakeScreenshotError, TakeScreenshotErrors, TakeScreenshotResponse, TakeScreenshotResponses, UpdateByDazlIdData, UpdateByDazlIdError, UpdateByDazlIdErrors, UpdateByDazlIdResponse, UpdateByDazlIdResponses, UpdateEnvVarsData, UpdateEnvVarsError, UpdateEnvVarsErrors, UpdateEnvVarsResponse, UpdateEnvVarsResponses, UpdateProjectData, UpdateProjectError, UpdateProjectErrors, UpdateProjectResponse, UpdateProjectResponses, UpdateUserSubscriptionData, UpdateUserSubscriptionError, UpdateUserSubscriptionErrors, UpdateUserSubscriptionResponse, UpdateUserSubscriptionResponses, UploadConfiguration, UpsertDeployInDbData, UpsertDeployInDbError, UpsertDeployInDbErrors, UpsertDeployInDbResponse, UpsertDeployInDbResponses } 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 { CancelScheduledUpdateByDazlIdData, CancelScheduledUpdateByDazlIdErrors, CancelScheduledUpdateByDazlIdResponses, CreateCustomerPortalSessionData, CreateCustomerPortalSessionErrors, CreateCustomerPortalSessionResponses, CreateCustomerWithDefaultSubscriptionData, CreateCustomerWithDefaultSubscriptionErrors, CreateCustomerWithDefaultSubscriptionResponses, CreateMediaData, CreateMediaErrors, CreateMediaResponses, CreateProjectData, CreateProjectErrors, CreateProjectResponses, DeleteProjectData, DeleteProjectErrors, DeleteProjectResponses, DuplicateProjectData, DuplicateProjectErrors, DuplicateProjectResponses, EnsureSiteIdData, EnsureSiteIdErrors, EnsureSiteIdResponses, GetAccountScreenshotsData, GetAccountScreenshotsErrors, GetAccountScreenshotsResponses, GetAllProductsData, GetAllProductsErrors, GetAllProductsResponses, GetByDazlIdData, GetByDazlIdErrors, GetByDazlIdResponses, GetCustomerInfoByDazlIdData, GetCustomerInfoByDazlIdErrors, GetCustomerInfoByDazlIdResponses, GetHasSufficientCreditsByDazlIdData, GetHasSufficientCreditsByDazlIdErrors, GetHasSufficientCreditsByDazlIdResponses, GetLatestDeployData, GetLatestDeployErrors, GetLatestDeployResponses, GetMaxCreditsForDefaultFreeData, GetMaxCreditsForDefaultFreeErrors, GetMaxCreditsForDefaultFreeResponses, GetProjectByIdData, GetProjectByIdErrors, GetProjectByIdResponses, GetProjectScreenshotsData, GetProjectScreenshotsErrors, GetProjectScreenshotsResponses, GetUploadConfigurationData, GetUploadConfigurationErrors, GetUploadConfigurationResponses, GetUserInfoByDazlIdData, GetUserInfoByDazlIdErrors, GetUserInfoByDazlIdResponses, ListFilesData, ListFilesErrors, ListFilesResponses, ScrapePageContentData, ScrapePageContentErrors, ScrapePageContentResponses, TakeScreenshotData, TakeScreenshotErrors, TakeScreenshotResponses, UpdateByDazlIdData, UpdateByDazlIdErrors, UpdateByDazlIdResponses, UpdateEnvVarsData, UpdateEnvVarsErrors, UpdateEnvVarsResponses, UpdateProjectData, UpdateProjectErrors, UpdateProjectResponses, UpdateUserSubscriptionData, UpdateUserSubscriptionErrors, UpdateUserSubscriptionResponses, UpsertDeployInDbData, UpsertDeployInDbErrors, UpsertDeployInDbResponses } from './types.gen.ts';
|
|
5
|
+
import type { CancelScheduledUpdateByDazlIdData, CancelScheduledUpdateByDazlIdErrors, CancelScheduledUpdateByDazlIdResponses, ConnectUserData, ConnectUserErrors, ConnectUserResponses, CreateCustomerPortalSessionData, CreateCustomerPortalSessionErrors, CreateCustomerPortalSessionResponses, CreateCustomerWithDefaultSubscriptionData, CreateCustomerWithDefaultSubscriptionErrors, CreateCustomerWithDefaultSubscriptionResponses, CreateMediaData, CreateMediaErrors, CreateMediaResponses, CreateProjectData, CreateProjectErrors, CreateProjectResponses, DeleteProjectData, DeleteProjectErrors, DeleteProjectResponses, DuplicateProjectData, DuplicateProjectErrors, DuplicateProjectResponses, EnsureSiteIdData, EnsureSiteIdErrors, EnsureSiteIdResponses, GetAccountScreenshotsData, GetAccountScreenshotsErrors, GetAccountScreenshotsResponses, GetAllProductsData, GetAllProductsErrors, GetAllProductsResponses, GetByDazlIdData, GetByDazlIdErrors, GetByDazlIdResponses, GetCustomerInfoByDazlIdData, GetCustomerInfoByDazlIdErrors, GetCustomerInfoByDazlIdResponses, GetHasSufficientCreditsByDazlIdData, GetHasSufficientCreditsByDazlIdErrors, GetHasSufficientCreditsByDazlIdResponses, GetInstallationsData, GetInstallationsErrors, GetInstallationsResponses, GetInstallationTokenData, GetInstallationTokenErrors, GetInstallationTokenResponses, GetInstallationUrlData, GetInstallationUrlErrors, GetInstallationUrlResponses, GetLatestDeployData, GetLatestDeployErrors, GetLatestDeployResponses, GetMaxCreditsForDefaultFreeData, GetMaxCreditsForDefaultFreeErrors, GetMaxCreditsForDefaultFreeResponses, GetProjectByIdData, GetProjectByIdErrors, GetProjectByIdResponses, GetProjectScreenshotsData, GetProjectScreenshotsErrors, GetProjectScreenshotsResponses, GetUploadConfigurationData, GetUploadConfigurationErrors, GetUploadConfigurationResponses, GetUserInfoByDazlIdData, GetUserInfoByDazlIdErrors, GetUserInfoByDazlIdResponses, GetUserInfoData, GetUserInfoErrors, GetUserInfoResponses, ListFilesData, ListFilesErrors, ListFilesResponses, ScrapePageContentData, ScrapePageContentErrors, ScrapePageContentResponses, TakeScreenshotData, TakeScreenshotErrors, TakeScreenshotResponses, UpdateByDazlIdData, UpdateByDazlIdErrors, UpdateByDazlIdResponses, UpdateEnvVarsData, UpdateEnvVarsErrors, UpdateEnvVarsResponses, UpdateProjectData, UpdateProjectErrors, UpdateProjectResponses, 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
|
/**
|
|
@@ -94,6 +94,35 @@ export class Billing {
|
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
96
|
|
|
97
|
+
export class GitHub {
|
|
98
|
+
public static connectUser<ThrowOnError extends boolean = false>(options: Options<ConnectUserData, ThrowOnError>) {
|
|
99
|
+
return (options.client ?? client).post<ConnectUserResponses, ConnectUserErrors, ThrowOnError>({
|
|
100
|
+
url: '/github/user/{dazlId}/connect',
|
|
101
|
+
...options,
|
|
102
|
+
headers: {
|
|
103
|
+
'Content-Type': 'application/json',
|
|
104
|
+
...options.headers
|
|
105
|
+
}
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
public static getUserInfo<ThrowOnError extends boolean = false>(options: Options<GetUserInfoData, ThrowOnError>) {
|
|
110
|
+
return (options.client ?? client).get<GetUserInfoResponses, GetUserInfoErrors, ThrowOnError>({ url: '/github/user/{dazlId}/info', ...options });
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
public static getInstallations<ThrowOnError extends boolean = false>(options: Options<GetInstallationsData, ThrowOnError>) {
|
|
114
|
+
return (options.client ?? client).get<GetInstallationsResponses, GetInstallationsErrors, ThrowOnError>({ url: '/github/user/{dazlId}/installations', ...options });
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
public static getInstallationToken<ThrowOnError extends boolean = false>(options: Options<GetInstallationTokenData, ThrowOnError>) {
|
|
118
|
+
return (options.client ?? client).get<GetInstallationTokenResponses, GetInstallationTokenErrors, ThrowOnError>({ url: '/github/project/{projectId}/token', ...options });
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
public static getInstallationUrl<ThrowOnError extends boolean = false>(options: Options<GetInstallationUrlData, ThrowOnError>) {
|
|
122
|
+
return (options.client ?? client).get<GetInstallationUrlResponses, GetInstallationUrlErrors, ThrowOnError>({ url: '/github/installation/url', ...options });
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
|
|
97
126
|
export class Publish {
|
|
98
127
|
public static ensureSiteId<ThrowOnError extends boolean = false>(options: Options<EnsureSiteIdData, ThrowOnError>) {
|
|
99
128
|
return (options.client ?? client).post<EnsureSiteIdResponses, EnsureSiteIdErrors, ThrowOnError>({
|
package/src/types.gen.ts
CHANGED
|
@@ -278,6 +278,10 @@ export type GetByDazlIdErrors = {
|
|
|
278
278
|
* Internal server error
|
|
279
279
|
*/
|
|
280
280
|
500: ErrorResponse;
|
|
281
|
+
/**
|
|
282
|
+
* Service Unavailable
|
|
283
|
+
*/
|
|
284
|
+
503: ErrorResponse;
|
|
281
285
|
};
|
|
282
286
|
|
|
283
287
|
export type GetByDazlIdError = GetByDazlIdErrors[keyof GetByDazlIdErrors];
|
|
@@ -332,6 +336,10 @@ export type UpdateByDazlIdErrors = {
|
|
|
332
336
|
* Internal server error
|
|
333
337
|
*/
|
|
334
338
|
500: ErrorResponse;
|
|
339
|
+
/**
|
|
340
|
+
* Service Unavailable
|
|
341
|
+
*/
|
|
342
|
+
503: ErrorResponse;
|
|
335
343
|
};
|
|
336
344
|
|
|
337
345
|
export type UpdateByDazlIdError = UpdateByDazlIdErrors[keyof UpdateByDazlIdErrors];
|
|
@@ -380,6 +388,10 @@ export type GetHasSufficientCreditsByDazlIdErrors = {
|
|
|
380
388
|
* Internal server error
|
|
381
389
|
*/
|
|
382
390
|
500: ErrorResponse;
|
|
391
|
+
/**
|
|
392
|
+
* Service Unavailable
|
|
393
|
+
*/
|
|
394
|
+
503: ErrorResponse;
|
|
383
395
|
};
|
|
384
396
|
|
|
385
397
|
export type GetHasSufficientCreditsByDazlIdError = GetHasSufficientCreditsByDazlIdErrors[keyof GetHasSufficientCreditsByDazlIdErrors];
|
|
@@ -426,6 +438,10 @@ export type GetAllProductsErrors = {
|
|
|
426
438
|
* Internal server error
|
|
427
439
|
*/
|
|
428
440
|
500: ErrorResponse;
|
|
441
|
+
/**
|
|
442
|
+
* Service Unavailable
|
|
443
|
+
*/
|
|
444
|
+
503: ErrorResponse;
|
|
429
445
|
};
|
|
430
446
|
|
|
431
447
|
export type GetAllProductsError = GetAllProductsErrors[keyof GetAllProductsErrors];
|
|
@@ -472,6 +488,10 @@ export type GetMaxCreditsForDefaultFreeErrors = {
|
|
|
472
488
|
* Internal server error
|
|
473
489
|
*/
|
|
474
490
|
500: ErrorResponse;
|
|
491
|
+
/**
|
|
492
|
+
* Service Unavailable
|
|
493
|
+
*/
|
|
494
|
+
503: ErrorResponse;
|
|
475
495
|
};
|
|
476
496
|
|
|
477
497
|
export type GetMaxCreditsForDefaultFreeError = GetMaxCreditsForDefaultFreeErrors[keyof GetMaxCreditsForDefaultFreeErrors];
|
|
@@ -520,6 +540,10 @@ export type GetCustomerInfoByDazlIdErrors = {
|
|
|
520
540
|
* Internal server error
|
|
521
541
|
*/
|
|
522
542
|
500: ErrorResponse;
|
|
543
|
+
/**
|
|
544
|
+
* Service Unavailable
|
|
545
|
+
*/
|
|
546
|
+
503: ErrorResponse;
|
|
523
547
|
};
|
|
524
548
|
|
|
525
549
|
export type GetCustomerInfoByDazlIdError = GetCustomerInfoByDazlIdErrors[keyof GetCustomerInfoByDazlIdErrors];
|
|
@@ -569,6 +593,10 @@ export type UpdateUserSubscriptionErrors = {
|
|
|
569
593
|
* Internal server error
|
|
570
594
|
*/
|
|
571
595
|
500: ErrorResponse;
|
|
596
|
+
/**
|
|
597
|
+
* Service Unavailable
|
|
598
|
+
*/
|
|
599
|
+
503: ErrorResponse;
|
|
572
600
|
};
|
|
573
601
|
|
|
574
602
|
export type UpdateUserSubscriptionError = UpdateUserSubscriptionErrors[keyof UpdateUserSubscriptionErrors];
|
|
@@ -623,6 +651,10 @@ export type CancelScheduledUpdateByDazlIdErrors = {
|
|
|
623
651
|
* Internal server error
|
|
624
652
|
*/
|
|
625
653
|
500: ErrorResponse;
|
|
654
|
+
/**
|
|
655
|
+
* Service Unavailable
|
|
656
|
+
*/
|
|
657
|
+
503: ErrorResponse;
|
|
626
658
|
};
|
|
627
659
|
|
|
628
660
|
export type CancelScheduledUpdateByDazlIdError = CancelScheduledUpdateByDazlIdErrors[keyof CancelScheduledUpdateByDazlIdErrors];
|
|
@@ -672,6 +704,10 @@ export type CreateCustomerPortalSessionErrors = {
|
|
|
672
704
|
* Internal server error
|
|
673
705
|
*/
|
|
674
706
|
500: ErrorResponse;
|
|
707
|
+
/**
|
|
708
|
+
* Service Unavailable
|
|
709
|
+
*/
|
|
710
|
+
503: ErrorResponse;
|
|
675
711
|
};
|
|
676
712
|
|
|
677
713
|
export type CreateCustomerPortalSessionError = CreateCustomerPortalSessionErrors[keyof CreateCustomerPortalSessionErrors];
|
|
@@ -727,6 +763,10 @@ export type CreateCustomerWithDefaultSubscriptionErrors = {
|
|
|
727
763
|
* Internal server error
|
|
728
764
|
*/
|
|
729
765
|
500: ErrorResponse;
|
|
766
|
+
/**
|
|
767
|
+
* Service Unavailable
|
|
768
|
+
*/
|
|
769
|
+
503: ErrorResponse;
|
|
730
770
|
};
|
|
731
771
|
|
|
732
772
|
export type CreateCustomerWithDefaultSubscriptionError = CreateCustomerWithDefaultSubscriptionErrors[keyof CreateCustomerWithDefaultSubscriptionErrors];
|
|
@@ -776,6 +816,10 @@ export type GetUserInfoByDazlIdErrors = {
|
|
|
776
816
|
* Internal server error
|
|
777
817
|
*/
|
|
778
818
|
500: ErrorResponse;
|
|
819
|
+
/**
|
|
820
|
+
* Service Unavailable
|
|
821
|
+
*/
|
|
822
|
+
503: ErrorResponse;
|
|
779
823
|
};
|
|
780
824
|
|
|
781
825
|
export type GetUserInfoByDazlIdError = GetUserInfoByDazlIdErrors[keyof GetUserInfoByDazlIdErrors];
|
|
@@ -794,6 +838,272 @@ export type GetUserInfoByDazlIdResponses = {
|
|
|
794
838
|
|
|
795
839
|
export type GetUserInfoByDazlIdResponse = GetUserInfoByDazlIdResponses[keyof GetUserInfoByDazlIdResponses];
|
|
796
840
|
|
|
841
|
+
export type ConnectUserData = {
|
|
842
|
+
body?: {
|
|
843
|
+
code: string;
|
|
844
|
+
};
|
|
845
|
+
path: {
|
|
846
|
+
dazlId: string;
|
|
847
|
+
};
|
|
848
|
+
query?: never;
|
|
849
|
+
url: '/github/user/{dazlId}/connect';
|
|
850
|
+
};
|
|
851
|
+
|
|
852
|
+
export type ConnectUserErrors = {
|
|
853
|
+
/**
|
|
854
|
+
* Bad request - Invalid parameters or malformed JSON
|
|
855
|
+
*/
|
|
856
|
+
400: {
|
|
857
|
+
message: string;
|
|
858
|
+
issues?: string;
|
|
859
|
+
};
|
|
860
|
+
/**
|
|
861
|
+
* Unauthorized
|
|
862
|
+
*/
|
|
863
|
+
401: ErrorResponse;
|
|
864
|
+
/**
|
|
865
|
+
* Forbidden
|
|
866
|
+
*/
|
|
867
|
+
403: ErrorResponse;
|
|
868
|
+
/**
|
|
869
|
+
* Not Found
|
|
870
|
+
*/
|
|
871
|
+
404: ErrorResponse;
|
|
872
|
+
/**
|
|
873
|
+
* Internal server error
|
|
874
|
+
*/
|
|
875
|
+
500: ErrorResponse;
|
|
876
|
+
/**
|
|
877
|
+
* Service Unavailable
|
|
878
|
+
*/
|
|
879
|
+
503: ErrorResponse;
|
|
880
|
+
};
|
|
881
|
+
|
|
882
|
+
export type ConnectUserError = ConnectUserErrors[keyof ConnectUserErrors];
|
|
883
|
+
|
|
884
|
+
export type ConnectUserResponses = {
|
|
885
|
+
/**
|
|
886
|
+
* User connected to GitHub successfully
|
|
887
|
+
*/
|
|
888
|
+
200: {
|
|
889
|
+
username: string;
|
|
890
|
+
};
|
|
891
|
+
};
|
|
892
|
+
|
|
893
|
+
export type ConnectUserResponse = ConnectUserResponses[keyof ConnectUserResponses];
|
|
894
|
+
|
|
895
|
+
export type GetUserInfoData = {
|
|
896
|
+
body?: never;
|
|
897
|
+
path: {
|
|
898
|
+
dazlId: string;
|
|
899
|
+
};
|
|
900
|
+
query?: never;
|
|
901
|
+
url: '/github/user/{dazlId}/info';
|
|
902
|
+
};
|
|
903
|
+
|
|
904
|
+
export type GetUserInfoErrors = {
|
|
905
|
+
/**
|
|
906
|
+
* Bad request - Invalid parameters or malformed JSON
|
|
907
|
+
*/
|
|
908
|
+
400: {
|
|
909
|
+
message: string;
|
|
910
|
+
issues?: string;
|
|
911
|
+
};
|
|
912
|
+
/**
|
|
913
|
+
* Unauthorized
|
|
914
|
+
*/
|
|
915
|
+
401: ErrorResponse;
|
|
916
|
+
/**
|
|
917
|
+
* Forbidden
|
|
918
|
+
*/
|
|
919
|
+
403: ErrorResponse;
|
|
920
|
+
/**
|
|
921
|
+
* Not Found
|
|
922
|
+
*/
|
|
923
|
+
404: ErrorResponse;
|
|
924
|
+
/**
|
|
925
|
+
* Internal server error
|
|
926
|
+
*/
|
|
927
|
+
500: ErrorResponse;
|
|
928
|
+
/**
|
|
929
|
+
* Service Unavailable
|
|
930
|
+
*/
|
|
931
|
+
503: ErrorResponse;
|
|
932
|
+
};
|
|
933
|
+
|
|
934
|
+
export type GetUserInfoError = GetUserInfoErrors[keyof GetUserInfoErrors];
|
|
935
|
+
|
|
936
|
+
export type GetUserInfoResponses = {
|
|
937
|
+
/**
|
|
938
|
+
* Returns user's GitHub info
|
|
939
|
+
*/
|
|
940
|
+
200: {
|
|
941
|
+
username: string;
|
|
942
|
+
};
|
|
943
|
+
};
|
|
944
|
+
|
|
945
|
+
export type GetUserInfoResponse = GetUserInfoResponses[keyof GetUserInfoResponses];
|
|
946
|
+
|
|
947
|
+
export type GetInstallationsData = {
|
|
948
|
+
body?: never;
|
|
949
|
+
path: {
|
|
950
|
+
dazlId: string;
|
|
951
|
+
};
|
|
952
|
+
query?: never;
|
|
953
|
+
url: '/github/user/{dazlId}/installations';
|
|
954
|
+
};
|
|
955
|
+
|
|
956
|
+
export type GetInstallationsErrors = {
|
|
957
|
+
/**
|
|
958
|
+
* Bad request - Invalid parameters or malformed JSON
|
|
959
|
+
*/
|
|
960
|
+
400: {
|
|
961
|
+
message: string;
|
|
962
|
+
issues?: string;
|
|
963
|
+
};
|
|
964
|
+
/**
|
|
965
|
+
* Unauthorized
|
|
966
|
+
*/
|
|
967
|
+
401: ErrorResponse;
|
|
968
|
+
/**
|
|
969
|
+
* Forbidden
|
|
970
|
+
*/
|
|
971
|
+
403: ErrorResponse;
|
|
972
|
+
/**
|
|
973
|
+
* Not Found
|
|
974
|
+
*/
|
|
975
|
+
404: ErrorResponse;
|
|
976
|
+
/**
|
|
977
|
+
* Internal server error
|
|
978
|
+
*/
|
|
979
|
+
500: ErrorResponse;
|
|
980
|
+
/**
|
|
981
|
+
* Service Unavailable
|
|
982
|
+
*/
|
|
983
|
+
503: ErrorResponse;
|
|
984
|
+
};
|
|
985
|
+
|
|
986
|
+
export type GetInstallationsError = GetInstallationsErrors[keyof GetInstallationsErrors];
|
|
987
|
+
|
|
988
|
+
export type GetInstallationsResponses = {
|
|
989
|
+
/**
|
|
990
|
+
* Returns user's GitHub App installations
|
|
991
|
+
*/
|
|
992
|
+
200: {
|
|
993
|
+
installations: Array<{
|
|
994
|
+
installationId: number;
|
|
995
|
+
accountType: 'User' | 'Organization';
|
|
996
|
+
accountLogin: string;
|
|
997
|
+
}>;
|
|
998
|
+
};
|
|
999
|
+
};
|
|
1000
|
+
|
|
1001
|
+
export type GetInstallationsResponse = GetInstallationsResponses[keyof GetInstallationsResponses];
|
|
1002
|
+
|
|
1003
|
+
export type GetInstallationTokenData = {
|
|
1004
|
+
body?: never;
|
|
1005
|
+
path: {
|
|
1006
|
+
projectId: string;
|
|
1007
|
+
};
|
|
1008
|
+
query?: never;
|
|
1009
|
+
url: '/github/project/{projectId}/token';
|
|
1010
|
+
};
|
|
1011
|
+
|
|
1012
|
+
export type GetInstallationTokenErrors = {
|
|
1013
|
+
/**
|
|
1014
|
+
* Bad request - Invalid parameters or malformed JSON
|
|
1015
|
+
*/
|
|
1016
|
+
400: {
|
|
1017
|
+
message: string;
|
|
1018
|
+
issues?: string;
|
|
1019
|
+
};
|
|
1020
|
+
/**
|
|
1021
|
+
* Unauthorized
|
|
1022
|
+
*/
|
|
1023
|
+
401: ErrorResponse;
|
|
1024
|
+
/**
|
|
1025
|
+
* Forbidden
|
|
1026
|
+
*/
|
|
1027
|
+
403: ErrorResponse;
|
|
1028
|
+
/**
|
|
1029
|
+
* Not Found
|
|
1030
|
+
*/
|
|
1031
|
+
404: ErrorResponse;
|
|
1032
|
+
/**
|
|
1033
|
+
* Internal server error
|
|
1034
|
+
*/
|
|
1035
|
+
500: ErrorResponse;
|
|
1036
|
+
/**
|
|
1037
|
+
* Service Unavailable
|
|
1038
|
+
*/
|
|
1039
|
+
503: ErrorResponse;
|
|
1040
|
+
};
|
|
1041
|
+
|
|
1042
|
+
export type GetInstallationTokenError = GetInstallationTokenErrors[keyof GetInstallationTokenErrors];
|
|
1043
|
+
|
|
1044
|
+
export type GetInstallationTokenResponses = {
|
|
1045
|
+
/**
|
|
1046
|
+
* Returns installation access token for the project's linked GitHub installation
|
|
1047
|
+
*/
|
|
1048
|
+
200: {
|
|
1049
|
+
token: string;
|
|
1050
|
+
};
|
|
1051
|
+
};
|
|
1052
|
+
|
|
1053
|
+
export type GetInstallationTokenResponse = GetInstallationTokenResponses[keyof GetInstallationTokenResponses];
|
|
1054
|
+
|
|
1055
|
+
export type GetInstallationUrlData = {
|
|
1056
|
+
body?: never;
|
|
1057
|
+
path?: never;
|
|
1058
|
+
query: {
|
|
1059
|
+
state: string;
|
|
1060
|
+
};
|
|
1061
|
+
url: '/github/installation/url';
|
|
1062
|
+
};
|
|
1063
|
+
|
|
1064
|
+
export type GetInstallationUrlErrors = {
|
|
1065
|
+
/**
|
|
1066
|
+
* Bad request - Invalid parameters or malformed JSON
|
|
1067
|
+
*/
|
|
1068
|
+
400: {
|
|
1069
|
+
message: string;
|
|
1070
|
+
issues?: string;
|
|
1071
|
+
};
|
|
1072
|
+
/**
|
|
1073
|
+
* Unauthorized
|
|
1074
|
+
*/
|
|
1075
|
+
401: ErrorResponse;
|
|
1076
|
+
/**
|
|
1077
|
+
* Forbidden
|
|
1078
|
+
*/
|
|
1079
|
+
403: ErrorResponse;
|
|
1080
|
+
/**
|
|
1081
|
+
* Not Found
|
|
1082
|
+
*/
|
|
1083
|
+
404: ErrorResponse;
|
|
1084
|
+
/**
|
|
1085
|
+
* Internal server error
|
|
1086
|
+
*/
|
|
1087
|
+
500: ErrorResponse;
|
|
1088
|
+
/**
|
|
1089
|
+
* Service Unavailable
|
|
1090
|
+
*/
|
|
1091
|
+
503: ErrorResponse;
|
|
1092
|
+
};
|
|
1093
|
+
|
|
1094
|
+
export type GetInstallationUrlError = GetInstallationUrlErrors[keyof GetInstallationUrlErrors];
|
|
1095
|
+
|
|
1096
|
+
export type GetInstallationUrlResponses = {
|
|
1097
|
+
/**
|
|
1098
|
+
* Returns GitHub App installation URL
|
|
1099
|
+
*/
|
|
1100
|
+
200: {
|
|
1101
|
+
url: string;
|
|
1102
|
+
};
|
|
1103
|
+
};
|
|
1104
|
+
|
|
1105
|
+
export type GetInstallationUrlResponse = GetInstallationUrlResponses[keyof GetInstallationUrlResponses];
|
|
1106
|
+
|
|
797
1107
|
export type EnsureSiteIdData = {
|
|
798
1108
|
body: {
|
|
799
1109
|
projectId: string;
|
|
@@ -832,6 +1142,10 @@ export type EnsureSiteIdErrors = {
|
|
|
832
1142
|
* Internal server error
|
|
833
1143
|
*/
|
|
834
1144
|
500: ErrorResponse;
|
|
1145
|
+
/**
|
|
1146
|
+
* Service Unavailable
|
|
1147
|
+
*/
|
|
1148
|
+
503: ErrorResponse;
|
|
835
1149
|
};
|
|
836
1150
|
|
|
837
1151
|
export type EnsureSiteIdError = EnsureSiteIdErrors[keyof EnsureSiteIdErrors];
|
|
@@ -881,6 +1195,10 @@ export type GetLatestDeployErrors = {
|
|
|
881
1195
|
* Internal server error
|
|
882
1196
|
*/
|
|
883
1197
|
500: ErrorResponse;
|
|
1198
|
+
/**
|
|
1199
|
+
* Service Unavailable
|
|
1200
|
+
*/
|
|
1201
|
+
503: ErrorResponse;
|
|
884
1202
|
};
|
|
885
1203
|
|
|
886
1204
|
export type GetLatestDeployError = GetLatestDeployErrors[keyof GetLatestDeployErrors];
|
|
@@ -932,6 +1250,10 @@ export type UpsertDeployInDbErrors = {
|
|
|
932
1250
|
* Internal server error
|
|
933
1251
|
*/
|
|
934
1252
|
500: ErrorResponse;
|
|
1253
|
+
/**
|
|
1254
|
+
* Service Unavailable
|
|
1255
|
+
*/
|
|
1256
|
+
503: ErrorResponse;
|
|
935
1257
|
};
|
|
936
1258
|
|
|
937
1259
|
export type UpsertDeployInDbError = UpsertDeployInDbErrors[keyof UpsertDeployInDbErrors];
|
|
@@ -981,6 +1303,10 @@ export type UpdateEnvVarsErrors = {
|
|
|
981
1303
|
* Internal server error
|
|
982
1304
|
*/
|
|
983
1305
|
500: ErrorResponse;
|
|
1306
|
+
/**
|
|
1307
|
+
* Service Unavailable
|
|
1308
|
+
*/
|
|
1309
|
+
503: ErrorResponse;
|
|
984
1310
|
};
|
|
985
1311
|
|
|
986
1312
|
export type UpdateEnvVarsError = UpdateEnvVarsErrors[keyof UpdateEnvVarsErrors];
|
|
@@ -1035,6 +1361,10 @@ export type DuplicateProjectErrors = {
|
|
|
1035
1361
|
* Internal server error
|
|
1036
1362
|
*/
|
|
1037
1363
|
500: ErrorResponse;
|
|
1364
|
+
/**
|
|
1365
|
+
* Service Unavailable
|
|
1366
|
+
*/
|
|
1367
|
+
503: ErrorResponse;
|
|
1038
1368
|
};
|
|
1039
1369
|
|
|
1040
1370
|
export type DuplicateProjectError = DuplicateProjectErrors[keyof DuplicateProjectErrors];
|
|
@@ -1083,6 +1413,10 @@ export type DeleteProjectErrors = {
|
|
|
1083
1413
|
* Internal server error
|
|
1084
1414
|
*/
|
|
1085
1415
|
500: ErrorResponse;
|
|
1416
|
+
/**
|
|
1417
|
+
* Service Unavailable
|
|
1418
|
+
*/
|
|
1419
|
+
503: ErrorResponse;
|
|
1086
1420
|
};
|
|
1087
1421
|
|
|
1088
1422
|
export type DeleteProjectError = DeleteProjectErrors[keyof DeleteProjectErrors];
|
|
@@ -1133,6 +1467,10 @@ export type GetProjectByIdErrors = {
|
|
|
1133
1467
|
* Internal server error
|
|
1134
1468
|
*/
|
|
1135
1469
|
500: ErrorResponse;
|
|
1470
|
+
/**
|
|
1471
|
+
* Service Unavailable
|
|
1472
|
+
*/
|
|
1473
|
+
503: ErrorResponse;
|
|
1136
1474
|
};
|
|
1137
1475
|
|
|
1138
1476
|
export type GetProjectByIdError = GetProjectByIdErrors[keyof GetProjectByIdErrors];
|
|
@@ -1187,6 +1525,10 @@ export type UpdateProjectErrors = {
|
|
|
1187
1525
|
* Internal server error
|
|
1188
1526
|
*/
|
|
1189
1527
|
500: ErrorResponse;
|
|
1528
|
+
/**
|
|
1529
|
+
* Service Unavailable
|
|
1530
|
+
*/
|
|
1531
|
+
503: ErrorResponse;
|
|
1190
1532
|
};
|
|
1191
1533
|
|
|
1192
1534
|
export type UpdateProjectError = UpdateProjectErrors[keyof UpdateProjectErrors];
|
|
@@ -1238,6 +1580,10 @@ export type CreateProjectErrors = {
|
|
|
1238
1580
|
* Internal server error
|
|
1239
1581
|
*/
|
|
1240
1582
|
500: ErrorResponse;
|
|
1583
|
+
/**
|
|
1584
|
+
* Service Unavailable
|
|
1585
|
+
*/
|
|
1586
|
+
503: ErrorResponse;
|
|
1241
1587
|
};
|
|
1242
1588
|
|
|
1243
1589
|
export type CreateProjectError = CreateProjectErrors[keyof CreateProjectErrors];
|
|
@@ -1313,6 +1659,10 @@ export type GetUploadConfigurationErrors = {
|
|
|
1313
1659
|
* Internal server error
|
|
1314
1660
|
*/
|
|
1315
1661
|
500: ErrorResponse;
|
|
1662
|
+
/**
|
|
1663
|
+
* Service Unavailable
|
|
1664
|
+
*/
|
|
1665
|
+
503: ErrorResponse;
|
|
1316
1666
|
};
|
|
1317
1667
|
|
|
1318
1668
|
export type GetUploadConfigurationError = GetUploadConfigurationErrors[keyof GetUploadConfigurationErrors];
|
|
@@ -1390,6 +1740,10 @@ export type ListFilesErrors = {
|
|
|
1390
1740
|
* Internal server error
|
|
1391
1741
|
*/
|
|
1392
1742
|
500: ErrorResponse;
|
|
1743
|
+
/**
|
|
1744
|
+
* Service Unavailable
|
|
1745
|
+
*/
|
|
1746
|
+
503: ErrorResponse;
|
|
1393
1747
|
};
|
|
1394
1748
|
|
|
1395
1749
|
export type ListFilesError = ListFilesErrors[keyof ListFilesErrors];
|
|
@@ -1469,6 +1823,10 @@ export type CreateMediaErrors = {
|
|
|
1469
1823
|
* Internal server error
|
|
1470
1824
|
*/
|
|
1471
1825
|
500: ErrorResponse;
|
|
1826
|
+
/**
|
|
1827
|
+
* Service Unavailable
|
|
1828
|
+
*/
|
|
1829
|
+
503: ErrorResponse;
|
|
1472
1830
|
};
|
|
1473
1831
|
|
|
1474
1832
|
export type CreateMediaError = CreateMediaErrors[keyof CreateMediaErrors];
|
|
@@ -1520,6 +1878,10 @@ export type GetAccountScreenshotsErrors = {
|
|
|
1520
1878
|
* Internal server error
|
|
1521
1879
|
*/
|
|
1522
1880
|
500: ErrorResponse;
|
|
1881
|
+
/**
|
|
1882
|
+
* Service Unavailable
|
|
1883
|
+
*/
|
|
1884
|
+
503: ErrorResponse;
|
|
1523
1885
|
};
|
|
1524
1886
|
|
|
1525
1887
|
export type GetAccountScreenshotsError = GetAccountScreenshotsErrors[keyof GetAccountScreenshotsErrors];
|
|
@@ -1577,6 +1939,10 @@ export type GetProjectScreenshotsErrors = {
|
|
|
1577
1939
|
* Internal server error
|
|
1578
1940
|
*/
|
|
1579
1941
|
500: ErrorResponse;
|
|
1942
|
+
/**
|
|
1943
|
+
* Service Unavailable
|
|
1944
|
+
*/
|
|
1945
|
+
503: ErrorResponse;
|
|
1580
1946
|
};
|
|
1581
1947
|
|
|
1582
1948
|
export type GetProjectScreenshotsError = GetProjectScreenshotsErrors[keyof GetProjectScreenshotsErrors];
|
|
@@ -1658,6 +2024,10 @@ export type TakeScreenshotErrors = {
|
|
|
1658
2024
|
* Internal server error
|
|
1659
2025
|
*/
|
|
1660
2026
|
500: ErrorResponse;
|
|
2027
|
+
/**
|
|
2028
|
+
* Service Unavailable
|
|
2029
|
+
*/
|
|
2030
|
+
503: ErrorResponse;
|
|
1661
2031
|
};
|
|
1662
2032
|
|
|
1663
2033
|
export type TakeScreenshotError = TakeScreenshotErrors[keyof TakeScreenshotErrors];
|
|
@@ -1769,6 +2139,10 @@ export type ScrapePageContentErrors = {
|
|
|
1769
2139
|
* Internal server error
|
|
1770
2140
|
*/
|
|
1771
2141
|
500: ErrorResponse;
|
|
2142
|
+
/**
|
|
2143
|
+
* Service Unavailable
|
|
2144
|
+
*/
|
|
2145
|
+
503: ErrorResponse;
|
|
1772
2146
|
};
|
|
1773
2147
|
|
|
1774
2148
|
export type ScrapePageContentError = ScrapePageContentErrors[keyof ScrapePageContentErrors];
|