@dazl/api-client 1.0.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/README.md +61 -0
- package/dist/db/generated-types.d.ts +274 -0
- package/dist/db/generated-types.d.ts.map +1 -0
- package/dist/db/generated-types.js +6 -0
- package/dist/db/generated-types.js.map +1 -0
- package/dist/db/jsonb.types.d.ts +21 -0
- package/dist/db/jsonb.types.d.ts.map +1 -0
- package/dist/db/jsonb.types.js +2 -0
- package/dist/db/jsonb.types.js.map +1 -0
- package/dist/feature-toggles-config.d.ts +52 -0
- package/dist/feature-toggles-config.d.ts.map +1 -0
- package/dist/feature-toggles-config.js +23 -0
- package/dist/feature-toggles-config.js.map +1 -0
- package/dist/internal/client/client.gen.d.ts +3 -0
- package/dist/internal/client/client.gen.d.ts.map +1 -0
- package/dist/internal/client/client.gen.js +217 -0
- package/dist/internal/client/client.gen.js.map +1 -0
- package/dist/internal/client/index.d.ts +11 -0
- package/dist/internal/client/index.d.ts.map +1 -0
- package/dist/internal/client/index.js +7 -0
- package/dist/internal/client/index.js.map +1 -0
- package/dist/internal/client/types.gen.d.ts +121 -0
- package/dist/internal/client/types.gen.d.ts.map +1 -0
- package/dist/internal/client/types.gen.js +3 -0
- package/dist/internal/client/types.gen.js.map +1 -0
- package/dist/internal/client/utils.gen.d.ts +38 -0
- package/dist/internal/client/utils.gen.d.ts.map +1 -0
- package/dist/internal/client/utils.gen.js +229 -0
- package/dist/internal/client/utils.gen.js.map +1 -0
- package/dist/internal/client.gen.d.ts +13 -0
- package/dist/internal/client.gen.d.ts.map +1 -0
- package/dist/internal/client.gen.js +4 -0
- package/dist/internal/client.gen.js.map +1 -0
- package/dist/internal/core/auth.gen.d.ts +26 -0
- package/dist/internal/core/auth.gen.d.ts.map +1 -0
- package/dist/internal/core/auth.gen.js +15 -0
- package/dist/internal/core/auth.gen.js.map +1 -0
- package/dist/internal/core/bodySerializer.gen.d.ts +26 -0
- package/dist/internal/core/bodySerializer.gen.d.ts.map +1 -0
- package/dist/internal/core/bodySerializer.gen.js +58 -0
- package/dist/internal/core/bodySerializer.gen.js.map +1 -0
- package/dist/internal/core/params.gen.d.ts +44 -0
- package/dist/internal/core/params.gen.d.ts.map +1 -0
- package/dist/internal/core/params.gen.js +110 -0
- package/dist/internal/core/params.gen.js.map +1 -0
- package/dist/internal/core/pathSerializer.gen.d.ts +34 -0
- package/dist/internal/core/pathSerializer.gen.d.ts.map +1 -0
- package/dist/internal/core/pathSerializer.gen.js +107 -0
- package/dist/internal/core/pathSerializer.gen.js.map +1 -0
- package/dist/internal/core/queryKeySerializer.gen.d.ts +19 -0
- package/dist/internal/core/queryKeySerializer.gen.d.ts.map +1 -0
- package/dist/internal/core/queryKeySerializer.gen.js +93 -0
- package/dist/internal/core/queryKeySerializer.gen.js.map +1 -0
- package/dist/internal/core/serverSentEvents.gen.d.ts +72 -0
- package/dist/internal/core/serverSentEvents.gen.d.ts.map +1 -0
- package/dist/internal/core/serverSentEvents.gen.js +133 -0
- package/dist/internal/core/serverSentEvents.gen.js.map +1 -0
- package/dist/internal/core/types.gen.d.ts +84 -0
- package/dist/internal/core/types.gen.d.ts.map +1 -0
- package/dist/internal/core/types.gen.js +3 -0
- package/dist/internal/core/types.gen.js.map +1 -0
- package/dist/internal/core/utils.gen.d.ts +20 -0
- package/dist/internal/core/utils.gen.d.ts.map +1 -0
- package/dist/internal/core/utils.gen.js +88 -0
- package/dist/internal/core/utils.gen.js.map +1 -0
- package/dist/internal/index.d.ts +3 -0
- package/dist/internal/index.d.ts.map +1 -0
- package/dist/internal/index.js +3 -0
- package/dist/internal/index.js.map +1 -0
- package/dist/internal/sdk.gen.d.ts +157 -0
- package/dist/internal/sdk.gen.d.ts.map +1 -0
- package/dist/internal/sdk.gen.js +639 -0
- package/dist/internal/sdk.gen.js.map +1 -0
- package/dist/internal/types.gen.d.ts +5663 -0
- package/dist/internal/types.gen.d.ts.map +1 -0
- package/dist/internal/types.gen.js +3 -0
- package/dist/internal/types.gen.js.map +1 -0
- package/package.json +47 -0
- package/src/db/generated-types.ts +308 -0
- package/src/db/jsonb.types.ts +20 -0
- package/src/feature-toggles-config.ts +54 -0
- package/src/internal/client/client.gen.ts +277 -0
- package/src/internal/client/index.ts +27 -0
- package/src/internal/client/types.gen.ts +218 -0
- package/src/internal/client/utils.gen.ts +316 -0
- package/src/internal/client.gen.ts +16 -0
- package/src/internal/core/auth.gen.ts +48 -0
- package/src/internal/core/bodySerializer.gen.ts +82 -0
- package/src/internal/core/params.gen.ts +178 -0
- package/src/internal/core/pathSerializer.gen.ts +171 -0
- package/src/internal/core/queryKeySerializer.gen.ts +117 -0
- package/src/internal/core/serverSentEvents.gen.ts +242 -0
- package/src/internal/core/types.gen.ts +110 -0
- package/src/internal/core/utils.gen.ts +140 -0
- package/src/internal/index.ts +4 -0
- package/src/internal/sdk.gen.ts +742 -0
- package/src/internal/types.gen.ts +6133 -0
|
@@ -0,0 +1,742 @@
|
|
|
1
|
+
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
|
+
|
|
3
|
+
import type { Client, ClientMeta, Options as Options2, RequestResult, TDataShape } from './client/index.ts';
|
|
4
|
+
import type { AcceptProjectInvitationData, AcceptProjectInvitationErrors, AcceptProjectInvitationResponses, AddCustomDomainData, AddCustomDomainErrors, AddCustomDomainResponses, AddTemplateSharedWithData, AddTemplateSharedWithErrors, AddTemplateSharedWithResponses, AddUserToPromotionData, AddUserToPromotionErrors, AddUserToPromotionResponses, AdminCleanupProjectData, AdminCleanupProjectErrors, AdminCleanupProjectResponses, AdminCloneProjectCreateData, AdminCloneProjectCreateErrors, AdminCloneProjectCreateResponses, AdminCloneProjectLogData, AdminCloneProjectLogErrors, AdminCloneProjectLogResponses, AdminDeleteProjectData, AdminDeleteProjectErrors, AdminDeleteProjectResponses, AdminLogActionData, AdminLogActionErrors, AdminLogActionResponses, AdminUpdateCreditsData, AdminUpdateCreditsErrors, AdminUpdateCreditsResponses, CancelScheduledUpdateByDazlIdData, CancelScheduledUpdateByDazlIdErrors, CancelScheduledUpdateByDazlIdResponses, CloseFeatureToggleData, CloseFeatureToggleErrors, CloseFeatureToggleResponses, ConnectUserData, ConnectUserErrors, ConnectUserResponses, CreateCustomerPortalSessionData, CreateCustomerPortalSessionErrors, CreateCustomerPortalSessionResponses, CreateCustomerWithDefaultSubscriptionData, CreateCustomerWithDefaultSubscriptionErrors, CreateCustomerWithDefaultSubscriptionResponses, CreateMediaData, CreateMediaErrors, CreateMediaResponses, CreateProjectData, CreateProjectErrors, CreateProjectResponses, CreateRepositoryData, CreateRepositoryErrors, CreateRepositoryResponses, CreateTemplateData, CreateTemplateErrors, CreateTemplateResponses, CreateUserData, CreateUserErrors, CreateUserResponses, DeactivateUserPromotionData, DeactivateUserPromotionErrors, DeactivateUserPromotionResponses, DeleteCategValuesData, DeleteCategValuesErrors, DeleteCategValuesResponses, DeleteCustomDomainData, DeleteCustomDomainErrors, DeleteCustomDomainResponses, DeleteProjectData, DeleteProjectErrors, DeleteProjectInvitationData, DeleteProjectInvitationErrors, DeleteProjectInvitationResponses, DeleteProjectMemberData, DeleteProjectMemberErrors, DeleteProjectMemberResponses, DeleteProjectResponses, DeleteSiteData, DeleteSiteErrors, DeleteSiteResponses, DeleteTemplateData, DeleteTemplateErrors, DeleteTemplateResponses, DisconnectUserData, DisconnectUserErrors, DisconnectUserResponses, DuplicateProjectData, DuplicateProjectErrors, DuplicateProjectResponses, EnsureSiteIdData, EnsureSiteIdErrors, EnsureSiteIdResponses, GetAllProductsData, GetAllProductsErrors, GetAllProductsResponses, GetAppInstallUrlData, GetAppInstallUrlErrors, GetAppInstallUrlResponses, GetByDazlIdData, GetByDazlIdErrors, GetByDazlIdResponses, GetCustomDomainData, GetCustomDomainErrors, GetCustomDomainResponses, GetCustomerInfoByDazlIdData, GetCustomerInfoByDazlIdErrors, GetCustomerInfoByDazlIdResponses, GetEntriConfigData, GetEntriConfigErrors, GetEntriConfigResponses, GetFeatureTogglesData, GetFeatureTogglesErrors, GetFeatureTogglesResponses, GetHasSufficientCreditsByDazlIdData, GetHasSufficientCreditsByDazlIdErrors, GetHasSufficientCreditsByDazlIdResponses, GetInstallationsData, GetInstallationsErrors, GetInstallationsResponses, GetLatestDeployData, GetLatestDeployErrors, GetLatestDeployResponses, GetOAuthUrlData, GetOAuthUrlErrors, GetOAuthUrlResponses, GetPriceByIdData, GetPriceByIdErrors, GetPriceByIdResponses, GetProjectByIdData, GetProjectByIdErrors, GetProjectByIdResponses, GetProjectCollaboratorsData, GetProjectCollaboratorsErrors, GetProjectCollaboratorsResponses, GetProjectInfoData, GetProjectInfoErrors, GetProjectInfoResponses, GetPublicTemplatesData, GetPublicTemplatesErrors, GetPublicTemplatesResponses, GetTemplateData, GetTemplateErrors, GetTemplateResponses, GetUploadConfigurationData, GetUploadConfigurationErrors, GetUploadConfigurationResponses, GetUserActivePromotionsData, GetUserActivePromotionsErrors, GetUserActivePromotionsResponses, GetUserByDazlIdData, GetUserByDazlIdErrors, GetUserByDazlIdResponses, GetUserInfoByDazlIdData, GetUserInfoByDazlIdErrors, GetUserInfoByDazlIdResponses, GetUserInfoData, GetUserInfoErrors, GetUserInfoResponses, GetUserProjectsData, GetUserProjectsErrors, GetUserProjectsResponses, GetUsersByDazlIdsData, GetUsersByDazlIdsErrors, GetUsersByDazlIdsResponses, GetUsersByEmailsData, GetUsersByEmailsErrors, GetUsersByEmailsResponses, GetUserTemplatesData, GetUserTemplatesErrors, GetUserTemplatesResponses, GetValuesData, GetValuesErrors, GetValuesResponses, InternalCreateCommentData, InternalCreateCommentErrors, InternalCreateCommentResponses, InternalCreateReplyData, InternalCreateReplyErrors, InternalCreateReplyResponses, InternalDeleteCommentData, InternalDeleteCommentErrors, InternalDeleteCommentResponses, InternalDeleteReplyData, InternalDeleteReplyErrors, InternalDeleteReplyResponses, InternalEditCommentData, InternalEditCommentErrors, InternalEditCommentResponses, InternalEditReplyData, InternalEditReplyErrors, InternalEditReplyResponses, InternalGetProjectCommentData, InternalGetProjectCommentErrors, InternalGetProjectCommentResponses, InternalListProjectCommentsData, InternalListProjectCommentsErrors, InternalListProjectCommentsResponses, InternalReopenCommentData, InternalReopenCommentErrors, InternalReopenCommentResponses, InternalResolveCommentData, InternalResolveCommentErrors, InternalResolveCommentResponses, InviteProjectMemberData, InviteProjectMemberErrors, InviteProjectMemberResponses, IsPromotionOpenData, IsPromotionOpenErrors, IsPromotionOpenResponses, ListFilesData, ListFilesErrors, ListFilesResponses, OpenFeatureToggleData, OpenFeatureToggleErrors, OpenFeatureToggleResponses, PurgeUserAccountData, PurgeUserAccountErrors, PurgeUserAccountResponses, RemoveTemplateSharedWithData, RemoveTemplateSharedWithErrors, RemoveTemplateSharedWithResponses, ReplaceCategValuesData, ReplaceCategValuesErrors, ReplaceCategValuesResponses, SaveMediaData, SaveMediaErrors, SaveMediaResponses, ScrapePageContentData, ScrapePageContentErrors, ScrapePageContentResponses, SearchWebData, SearchWebErrors, SearchWebResponses, SetValueData, SetValueErrors, SetValueResponses, 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
|
+
|
|
6
|
+
export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown> = Options2<TData, ThrowOnError, TResponse> & {
|
|
7
|
+
/**
|
|
8
|
+
* You can provide a client instance returned by `createClient()` instead of
|
|
9
|
+
* individual options. This might be also useful if you want to implement a
|
|
10
|
+
* custom client.
|
|
11
|
+
*/
|
|
12
|
+
client: Client;
|
|
13
|
+
/**
|
|
14
|
+
* You can pass arbitrary values through the `meta` object. This can be
|
|
15
|
+
* used to access values that aren't defined as part of the SDK function.
|
|
16
|
+
*/
|
|
17
|
+
meta?: keyof ClientMeta extends never ? Record<string, unknown> : ClientMeta;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export class UserSettings {
|
|
21
|
+
public static getByDazlId<ThrowOnError extends boolean = false>(options: Options<GetByDazlIdData, ThrowOnError>): RequestResult<GetByDazlIdResponses, GetByDazlIdErrors, ThrowOnError> {
|
|
22
|
+
return options.client.get<GetByDazlIdResponses, GetByDazlIdErrors, ThrowOnError>({ url: '/user-settings/{dazlId}', ...options });
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
public static updateByDazlId<ThrowOnError extends boolean = false>(options: Options<UpdateByDazlIdData, ThrowOnError>): RequestResult<UpdateByDazlIdResponses, UpdateByDazlIdErrors, ThrowOnError> {
|
|
26
|
+
return options.client.put<UpdateByDazlIdResponses, UpdateByDazlIdErrors, ThrowOnError>({
|
|
27
|
+
url: '/user-settings/{dazlId}',
|
|
28
|
+
...options,
|
|
29
|
+
headers: {
|
|
30
|
+
'Content-Type': 'application/json',
|
|
31
|
+
...options.headers
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export class Billing {
|
|
38
|
+
public static getHasSufficientCreditsByDazlId<ThrowOnError extends boolean = false>(options: Options<GetHasSufficientCreditsByDazlIdData, ThrowOnError>): RequestResult<GetHasSufficientCreditsByDazlIdResponses, GetHasSufficientCreditsByDazlIdErrors, ThrowOnError> {
|
|
39
|
+
return options.client.get<GetHasSufficientCreditsByDazlIdResponses, GetHasSufficientCreditsByDazlIdErrors, ThrowOnError>({ url: '/billing/has-sufficient-credits/{dazlId}', ...options });
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
public static getAllProducts<ThrowOnError extends boolean = false>(options: Options<GetAllProductsData, ThrowOnError>): RequestResult<GetAllProductsResponses, GetAllProductsErrors, ThrowOnError> {
|
|
43
|
+
return options.client.get<GetAllProductsResponses, GetAllProductsErrors, ThrowOnError>({ url: '/billing/prices', ...options });
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
public static getPriceById<ThrowOnError extends boolean = false>(options: Options<GetPriceByIdData, ThrowOnError>): RequestResult<GetPriceByIdResponses, GetPriceByIdErrors, ThrowOnError> {
|
|
47
|
+
return options.client.get<GetPriceByIdResponses, GetPriceByIdErrors, ThrowOnError>({ url: '/billing/price/{priceId}', ...options });
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
public static getCustomerInfoByDazlId<ThrowOnError extends boolean = false>(options: Options<GetCustomerInfoByDazlIdData, ThrowOnError>): RequestResult<GetCustomerInfoByDazlIdResponses, GetCustomerInfoByDazlIdErrors, ThrowOnError> {
|
|
51
|
+
return options.client.get<GetCustomerInfoByDazlIdResponses, GetCustomerInfoByDazlIdErrors, ThrowOnError>({ url: '/billing/customer-info/{dazlId}', ...options });
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
public static updateUserSubscription<ThrowOnError extends boolean = false>(options: Options<UpdateUserSubscriptionData, ThrowOnError>): RequestResult<UpdateUserSubscriptionResponses, UpdateUserSubscriptionErrors, ThrowOnError> {
|
|
55
|
+
return options.client.post<UpdateUserSubscriptionResponses, UpdateUserSubscriptionErrors, ThrowOnError>({
|
|
56
|
+
url: '/billing/update-subscription',
|
|
57
|
+
...options,
|
|
58
|
+
headers: {
|
|
59
|
+
'Content-Type': 'application/json',
|
|
60
|
+
...options.headers
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
public static cancelScheduledUpdateByDazlId<ThrowOnError extends boolean = false>(options: Options<CancelScheduledUpdateByDazlIdData, ThrowOnError>): RequestResult<CancelScheduledUpdateByDazlIdResponses, CancelScheduledUpdateByDazlIdErrors, ThrowOnError> {
|
|
66
|
+
return options.client.post<CancelScheduledUpdateByDazlIdResponses, CancelScheduledUpdateByDazlIdErrors, ThrowOnError>({ url: '/billing/cancel-scheduled-update/{dazlId}', ...options });
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
public static createCustomerPortalSession<ThrowOnError extends boolean = false>(options: Options<CreateCustomerPortalSessionData, ThrowOnError>): RequestResult<CreateCustomerPortalSessionResponses, CreateCustomerPortalSessionErrors, ThrowOnError> {
|
|
70
|
+
return options.client.post<CreateCustomerPortalSessionResponses, CreateCustomerPortalSessionErrors, ThrowOnError>({
|
|
71
|
+
url: '/billing/create-portal-session',
|
|
72
|
+
...options,
|
|
73
|
+
headers: {
|
|
74
|
+
'Content-Type': 'application/json',
|
|
75
|
+
...options.headers
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
public static createCustomerWithDefaultSubscription<ThrowOnError extends boolean = false>(options: Options<CreateCustomerWithDefaultSubscriptionData, ThrowOnError>): RequestResult<CreateCustomerWithDefaultSubscriptionResponses, CreateCustomerWithDefaultSubscriptionErrors, ThrowOnError> {
|
|
81
|
+
return options.client.put<CreateCustomerWithDefaultSubscriptionResponses, CreateCustomerWithDefaultSubscriptionErrors, ThrowOnError>({
|
|
82
|
+
url: '/billing/create-customer-with-default-subscription',
|
|
83
|
+
...options,
|
|
84
|
+
headers: {
|
|
85
|
+
'Content-Type': 'application/json',
|
|
86
|
+
...options.headers
|
|
87
|
+
}
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
public static getUserInfoByDazlId<ThrowOnError extends boolean = false>(options: Options<GetUserInfoByDazlIdData, ThrowOnError>): RequestResult<GetUserInfoByDazlIdResponses, GetUserInfoByDazlIdErrors, ThrowOnError> {
|
|
92
|
+
return options.client.get<GetUserInfoByDazlIdResponses, GetUserInfoByDazlIdErrors, ThrowOnError>({ url: '/billing/user-info/{dazlId}', ...options });
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export class GitHub {
|
|
97
|
+
public static connectUser<ThrowOnError extends boolean = false>(options: Options<ConnectUserData, ThrowOnError>): RequestResult<ConnectUserResponses, ConnectUserErrors, ThrowOnError> {
|
|
98
|
+
return options.client.post<ConnectUserResponses, ConnectUserErrors, ThrowOnError>({
|
|
99
|
+
url: '/github/user/{dazlId}/connect',
|
|
100
|
+
...options,
|
|
101
|
+
headers: {
|
|
102
|
+
'Content-Type': 'application/json',
|
|
103
|
+
...options.headers
|
|
104
|
+
}
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
public static disconnectUser<ThrowOnError extends boolean = false>(options: Options<DisconnectUserData, ThrowOnError>): RequestResult<DisconnectUserResponses, DisconnectUserErrors, ThrowOnError> {
|
|
109
|
+
return options.client.delete<DisconnectUserResponses, DisconnectUserErrors, ThrowOnError>({ url: '/github/user/{dazlId}/disconnect', ...options });
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
public static getUserInfo<ThrowOnError extends boolean = false>(options: Options<GetUserInfoData, ThrowOnError>): RequestResult<GetUserInfoResponses, GetUserInfoErrors, ThrowOnError> {
|
|
113
|
+
return options.client.get<GetUserInfoResponses, GetUserInfoErrors, ThrowOnError>({ url: '/github/user/{dazlId}/info', ...options });
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
public static getInstallations<ThrowOnError extends boolean = false>(options: Options<GetInstallationsData, ThrowOnError>): RequestResult<GetInstallationsResponses, GetInstallationsErrors, ThrowOnError> {
|
|
117
|
+
return options.client.get<GetInstallationsResponses, GetInstallationsErrors, ThrowOnError>({ url: '/github/user/{dazlId}/installations', ...options });
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
public static getProjectInfo<ThrowOnError extends boolean = false>(options: Options<GetProjectInfoData, ThrowOnError>): RequestResult<GetProjectInfoResponses, GetProjectInfoErrors, ThrowOnError> {
|
|
121
|
+
return options.client.get<GetProjectInfoResponses, GetProjectInfoErrors, ThrowOnError>({ url: '/github/project/{projectId}/info', ...options });
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
public static createRepository<ThrowOnError extends boolean = false>(options: Options<CreateRepositoryData, ThrowOnError>): RequestResult<CreateRepositoryResponses, CreateRepositoryErrors, ThrowOnError> {
|
|
125
|
+
return options.client.post<CreateRepositoryResponses, CreateRepositoryErrors, ThrowOnError>({
|
|
126
|
+
url: '/github/project/{projectId}/repo',
|
|
127
|
+
...options,
|
|
128
|
+
headers: {
|
|
129
|
+
'Content-Type': 'application/json',
|
|
130
|
+
...options.headers
|
|
131
|
+
}
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
public static getOAuthUrl<ThrowOnError extends boolean = false>(options: Options<GetOAuthUrlData, ThrowOnError>): RequestResult<GetOAuthUrlResponses, GetOAuthUrlErrors, ThrowOnError> {
|
|
136
|
+
return options.client.get<GetOAuthUrlResponses, GetOAuthUrlErrors, ThrowOnError>({ url: '/github/user/oauth-url', ...options });
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
public static getAppInstallUrl<ThrowOnError extends boolean = false>(options: Options<GetAppInstallUrlData, ThrowOnError>): RequestResult<GetAppInstallUrlResponses, GetAppInstallUrlErrors, ThrowOnError> {
|
|
140
|
+
return options.client.get<GetAppInstallUrlResponses, GetAppInstallUrlErrors, ThrowOnError>({ url: '/github/installation/url', ...options });
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
export class Publish {
|
|
145
|
+
public static ensureSiteId<ThrowOnError extends boolean = false>(options: Options<EnsureSiteIdData, ThrowOnError>): RequestResult<EnsureSiteIdResponses, EnsureSiteIdErrors, ThrowOnError> {
|
|
146
|
+
return options.client.post<EnsureSiteIdResponses, EnsureSiteIdErrors, ThrowOnError>({
|
|
147
|
+
url: '/publish/site-id',
|
|
148
|
+
...options,
|
|
149
|
+
headers: {
|
|
150
|
+
'Content-Type': 'application/json',
|
|
151
|
+
...options.headers
|
|
152
|
+
}
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
public static getLatestDeploy<ThrowOnError extends boolean = false>(options: Options<GetLatestDeployData, ThrowOnError>): RequestResult<GetLatestDeployResponses, GetLatestDeployErrors, ThrowOnError> {
|
|
157
|
+
return options.client.get<GetLatestDeployResponses, GetLatestDeployErrors, ThrowOnError>({ url: '/publish/latest', ...options });
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
public static upsertDeployInDb<ThrowOnError extends boolean = false>(options: Options<UpsertDeployInDbData, ThrowOnError>): RequestResult<UpsertDeployInDbResponses, UpsertDeployInDbErrors, ThrowOnError> {
|
|
161
|
+
return options.client.post<UpsertDeployInDbResponses, UpsertDeployInDbErrors, ThrowOnError>({
|
|
162
|
+
url: '/publish/upsert-deploy',
|
|
163
|
+
...options,
|
|
164
|
+
headers: {
|
|
165
|
+
'Content-Type': 'application/json',
|
|
166
|
+
...options.headers
|
|
167
|
+
}
|
|
168
|
+
});
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
public static updateEnvVars<ThrowOnError extends boolean = false>(options: Options<UpdateEnvVarsData, ThrowOnError>): RequestResult<UpdateEnvVarsResponses, UpdateEnvVarsErrors, ThrowOnError> {
|
|
172
|
+
return options.client.post<UpdateEnvVarsResponses, UpdateEnvVarsErrors, ThrowOnError>({
|
|
173
|
+
url: '/publish/env-vars',
|
|
174
|
+
...options,
|
|
175
|
+
headers: {
|
|
176
|
+
'Content-Type': 'application/json',
|
|
177
|
+
...options.headers
|
|
178
|
+
}
|
|
179
|
+
});
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
public static deleteCustomDomain<ThrowOnError extends boolean = false>(options: Options<DeleteCustomDomainData, ThrowOnError>): RequestResult<DeleteCustomDomainResponses, DeleteCustomDomainErrors, ThrowOnError> {
|
|
183
|
+
return options.client.delete<DeleteCustomDomainResponses, DeleteCustomDomainErrors, ThrowOnError>({ url: '/publish/custom-domain', ...options });
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
public static getCustomDomain<ThrowOnError extends boolean = false>(options: Options<GetCustomDomainData, ThrowOnError>): RequestResult<GetCustomDomainResponses, GetCustomDomainErrors, ThrowOnError> {
|
|
187
|
+
return options.client.get<GetCustomDomainResponses, GetCustomDomainErrors, ThrowOnError>({ url: '/publish/custom-domain', ...options });
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
public static addCustomDomain<ThrowOnError extends boolean = false>(options: Options<AddCustomDomainData, ThrowOnError>): RequestResult<AddCustomDomainResponses, AddCustomDomainErrors, ThrowOnError> {
|
|
191
|
+
return options.client.post<AddCustomDomainResponses, AddCustomDomainErrors, ThrowOnError>({
|
|
192
|
+
url: '/publish/custom-domain',
|
|
193
|
+
...options,
|
|
194
|
+
headers: {
|
|
195
|
+
'Content-Type': 'application/json',
|
|
196
|
+
...options.headers
|
|
197
|
+
}
|
|
198
|
+
});
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
public static deleteSite<ThrowOnError extends boolean = false>(options: Options<DeleteSiteData, ThrowOnError>): RequestResult<DeleteSiteResponses, DeleteSiteErrors, ThrowOnError> {
|
|
202
|
+
return options.client.delete<DeleteSiteResponses, DeleteSiteErrors, ThrowOnError>({ url: '/publish/site', ...options });
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
public static getEntriConfig<ThrowOnError extends boolean = false>(options: Options<GetEntriConfigData, ThrowOnError>): RequestResult<GetEntriConfigResponses, GetEntriConfigErrors, ThrowOnError> {
|
|
206
|
+
return options.client.get<GetEntriConfigResponses, GetEntriConfigErrors, ThrowOnError>({ url: '/publish/entri-config', ...options });
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
export class Project {
|
|
211
|
+
public static duplicateProject<ThrowOnError extends boolean = false>(options: Options<DuplicateProjectData, ThrowOnError>): RequestResult<DuplicateProjectResponses, DuplicateProjectErrors, ThrowOnError> {
|
|
212
|
+
return options.client.post<DuplicateProjectResponses, DuplicateProjectErrors, ThrowOnError>({
|
|
213
|
+
url: '/project/duplicate/{projectId}',
|
|
214
|
+
...options,
|
|
215
|
+
headers: {
|
|
216
|
+
'Content-Type': 'application/json',
|
|
217
|
+
...options.headers
|
|
218
|
+
}
|
|
219
|
+
});
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
public static deleteProject<ThrowOnError extends boolean = false>(options: Options<DeleteProjectData, ThrowOnError>): RequestResult<DeleteProjectResponses, DeleteProjectErrors, ThrowOnError> {
|
|
223
|
+
return options.client.delete<DeleteProjectResponses, DeleteProjectErrors, ThrowOnError>({
|
|
224
|
+
url: '/project/{projectId}',
|
|
225
|
+
...options,
|
|
226
|
+
headers: {
|
|
227
|
+
'Content-Type': 'application/json',
|
|
228
|
+
...options.headers
|
|
229
|
+
}
|
|
230
|
+
});
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
public static getProjectById<ThrowOnError extends boolean = false>(options: Options<GetProjectByIdData, ThrowOnError>): RequestResult<GetProjectByIdResponses, GetProjectByIdErrors, ThrowOnError> {
|
|
234
|
+
return options.client.get<GetProjectByIdResponses, GetProjectByIdErrors, ThrowOnError>({ url: '/project/{projectId}', ...options });
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
public static updateProject<ThrowOnError extends boolean = false>(options: Options<UpdateProjectData, ThrowOnError>): RequestResult<UpdateProjectResponses, UpdateProjectErrors, ThrowOnError> {
|
|
238
|
+
return options.client.patch<UpdateProjectResponses, UpdateProjectErrors, ThrowOnError>({
|
|
239
|
+
url: '/project/{projectId}',
|
|
240
|
+
...options,
|
|
241
|
+
headers: {
|
|
242
|
+
'Content-Type': 'application/json',
|
|
243
|
+
...options.headers
|
|
244
|
+
}
|
|
245
|
+
});
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
public static createProject<ThrowOnError extends boolean = false>(options: Options<CreateProjectData, ThrowOnError>): RequestResult<CreateProjectResponses, CreateProjectErrors, ThrowOnError> {
|
|
249
|
+
return options.client.post<CreateProjectResponses, CreateProjectErrors, ThrowOnError>({
|
|
250
|
+
url: '/project',
|
|
251
|
+
...options,
|
|
252
|
+
headers: {
|
|
253
|
+
'Content-Type': 'application/json',
|
|
254
|
+
...options.headers
|
|
255
|
+
}
|
|
256
|
+
});
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
public static getUserProjects<ThrowOnError extends boolean = false>(options: Options<GetUserProjectsData, ThrowOnError>): RequestResult<GetUserProjectsResponses, GetUserProjectsErrors, ThrowOnError> {
|
|
260
|
+
return options.client.get<GetUserProjectsResponses, GetUserProjectsErrors, ThrowOnError>({ url: '/project/user/{ownerDazlId}', ...options });
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
public static inviteProjectMember<ThrowOnError extends boolean = false>(options: Options<InviteProjectMemberData, ThrowOnError>): RequestResult<InviteProjectMemberResponses, InviteProjectMemberErrors, ThrowOnError> {
|
|
264
|
+
return options.client.post<InviteProjectMemberResponses, InviteProjectMemberErrors, ThrowOnError>({
|
|
265
|
+
url: '/project/{projectId}/members/invite',
|
|
266
|
+
...options,
|
|
267
|
+
headers: {
|
|
268
|
+
'Content-Type': 'application/json',
|
|
269
|
+
...options.headers
|
|
270
|
+
}
|
|
271
|
+
});
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
public static acceptProjectInvitation<ThrowOnError extends boolean = false>(options: Options<AcceptProjectInvitationData, ThrowOnError>): RequestResult<AcceptProjectInvitationResponses, AcceptProjectInvitationErrors, ThrowOnError> {
|
|
275
|
+
return options.client.post<AcceptProjectInvitationResponses, AcceptProjectInvitationErrors, ThrowOnError>({
|
|
276
|
+
url: '/project/members/accept-invitation',
|
|
277
|
+
...options,
|
|
278
|
+
headers: {
|
|
279
|
+
'Content-Type': 'application/json',
|
|
280
|
+
...options.headers
|
|
281
|
+
}
|
|
282
|
+
});
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
public static getProjectCollaborators<ThrowOnError extends boolean = false>(options: Options<GetProjectCollaboratorsData, ThrowOnError>): RequestResult<GetProjectCollaboratorsResponses, GetProjectCollaboratorsErrors, ThrowOnError> {
|
|
286
|
+
return options.client.get<GetProjectCollaboratorsResponses, GetProjectCollaboratorsErrors, ThrowOnError>({ url: '/project/{projectId}/collaborators', ...options });
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
public static deleteProjectMember<ThrowOnError extends boolean = false>(options: Options<DeleteProjectMemberData, ThrowOnError>): RequestResult<DeleteProjectMemberResponses, DeleteProjectMemberErrors, ThrowOnError> {
|
|
290
|
+
return options.client.delete<DeleteProjectMemberResponses, DeleteProjectMemberErrors, ThrowOnError>({ url: '/project/{projectId}/members/{memberId}', ...options });
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
public static deleteProjectInvitation<ThrowOnError extends boolean = false>(options: Options<DeleteProjectInvitationData, ThrowOnError>): RequestResult<DeleteProjectInvitationResponses, DeleteProjectInvitationErrors, ThrowOnError> {
|
|
294
|
+
return options.client.delete<DeleteProjectInvitationResponses, DeleteProjectInvitationErrors, ThrowOnError>({ url: '/project/{projectId}/invitations/{invitationId}', ...options });
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
export class Comments {
|
|
299
|
+
public static internalDeleteComment<ThrowOnError extends boolean = false>(options: Options<InternalDeleteCommentData, ThrowOnError>): RequestResult<InternalDeleteCommentResponses, InternalDeleteCommentErrors, ThrowOnError> {
|
|
300
|
+
return options.client.delete<InternalDeleteCommentResponses, InternalDeleteCommentErrors, ThrowOnError>({ url: '/project/{projectId}/comments/{commentId}', ...options });
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
public static internalGetProjectComment<ThrowOnError extends boolean = false>(options: Options<InternalGetProjectCommentData, ThrowOnError>): RequestResult<InternalGetProjectCommentResponses, InternalGetProjectCommentErrors, ThrowOnError> {
|
|
304
|
+
return options.client.get<InternalGetProjectCommentResponses, InternalGetProjectCommentErrors, ThrowOnError>({ url: '/project/{projectId}/comments/{commentId}', ...options });
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
public static internalEditComment<ThrowOnError extends boolean = false>(options: Options<InternalEditCommentData, ThrowOnError>): RequestResult<InternalEditCommentResponses, InternalEditCommentErrors, ThrowOnError> {
|
|
308
|
+
return options.client.patch<InternalEditCommentResponses, InternalEditCommentErrors, ThrowOnError>({
|
|
309
|
+
url: '/project/{projectId}/comments/{commentId}',
|
|
310
|
+
...options,
|
|
311
|
+
headers: {
|
|
312
|
+
'Content-Type': 'application/json',
|
|
313
|
+
...options.headers
|
|
314
|
+
}
|
|
315
|
+
});
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
public static internalListProjectComments<ThrowOnError extends boolean = false>(options: Options<InternalListProjectCommentsData, ThrowOnError>): RequestResult<InternalListProjectCommentsResponses, InternalListProjectCommentsErrors, ThrowOnError> {
|
|
319
|
+
return options.client.get<InternalListProjectCommentsResponses, InternalListProjectCommentsErrors, ThrowOnError>({ url: '/project/{projectId}/comments', ...options });
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
public static internalCreateComment<ThrowOnError extends boolean = false>(options: Options<InternalCreateCommentData, ThrowOnError>): RequestResult<InternalCreateCommentResponses, InternalCreateCommentErrors, ThrowOnError> {
|
|
323
|
+
return options.client.post<InternalCreateCommentResponses, InternalCreateCommentErrors, ThrowOnError>({
|
|
324
|
+
url: '/project/{projectId}/comments',
|
|
325
|
+
...options,
|
|
326
|
+
headers: {
|
|
327
|
+
'Content-Type': 'application/json',
|
|
328
|
+
...options.headers
|
|
329
|
+
}
|
|
330
|
+
});
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
public static internalResolveComment<ThrowOnError extends boolean = false>(options: Options<InternalResolveCommentData, ThrowOnError>): RequestResult<InternalResolveCommentResponses, InternalResolveCommentErrors, ThrowOnError> {
|
|
334
|
+
return options.client.post<InternalResolveCommentResponses, InternalResolveCommentErrors, ThrowOnError>({ url: '/project/{projectId}/comments/{commentId}/resolve', ...options });
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
public static internalReopenComment<ThrowOnError extends boolean = false>(options: Options<InternalReopenCommentData, ThrowOnError>): RequestResult<InternalReopenCommentResponses, InternalReopenCommentErrors, ThrowOnError> {
|
|
338
|
+
return options.client.post<InternalReopenCommentResponses, InternalReopenCommentErrors, ThrowOnError>({ url: '/project/{projectId}/comments/{commentId}/reopen', ...options });
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
public static internalCreateReply<ThrowOnError extends boolean = false>(options: Options<InternalCreateReplyData, ThrowOnError>): RequestResult<InternalCreateReplyResponses, InternalCreateReplyErrors, ThrowOnError> {
|
|
342
|
+
return options.client.post<InternalCreateReplyResponses, InternalCreateReplyErrors, ThrowOnError>({
|
|
343
|
+
url: '/project/{projectId}/comments/{commentId}/replies',
|
|
344
|
+
...options,
|
|
345
|
+
headers: {
|
|
346
|
+
'Content-Type': 'application/json',
|
|
347
|
+
...options.headers
|
|
348
|
+
}
|
|
349
|
+
});
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
public static internalDeleteReply<ThrowOnError extends boolean = false>(options: Options<InternalDeleteReplyData, ThrowOnError>): RequestResult<InternalDeleteReplyResponses, InternalDeleteReplyErrors, ThrowOnError> {
|
|
353
|
+
return options.client.delete<InternalDeleteReplyResponses, InternalDeleteReplyErrors, ThrowOnError>({ url: '/project/{projectId}/comments/{commentId}/replies/{replyId}', ...options });
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
public static internalEditReply<ThrowOnError extends boolean = false>(options: Options<InternalEditReplyData, ThrowOnError>): RequestResult<InternalEditReplyResponses, InternalEditReplyErrors, ThrowOnError> {
|
|
357
|
+
return options.client.patch<InternalEditReplyResponses, InternalEditReplyErrors, ThrowOnError>({
|
|
358
|
+
url: '/project/{projectId}/comments/{commentId}/replies/{replyId}',
|
|
359
|
+
...options,
|
|
360
|
+
headers: {
|
|
361
|
+
'Content-Type': 'application/json',
|
|
362
|
+
...options.headers
|
|
363
|
+
}
|
|
364
|
+
});
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
export class Template {
|
|
369
|
+
public static getPublicTemplates<ThrowOnError extends boolean = false>(options: Options<GetPublicTemplatesData, ThrowOnError>): RequestResult<GetPublicTemplatesResponses, GetPublicTemplatesErrors, ThrowOnError> {
|
|
370
|
+
return options.client.get<GetPublicTemplatesResponses, GetPublicTemplatesErrors, ThrowOnError>({ url: '/template/public-templates', ...options });
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
public static getUserTemplates<ThrowOnError extends boolean = false>(options: Options<GetUserTemplatesData, ThrowOnError>): RequestResult<GetUserTemplatesResponses, GetUserTemplatesErrors, ThrowOnError> {
|
|
374
|
+
return options.client.get<GetUserTemplatesResponses, GetUserTemplatesErrors, ThrowOnError>({ url: '/template/user/{dazlId}', ...options });
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
public static deleteTemplate<ThrowOnError extends boolean = false>(options: Options<DeleteTemplateData, ThrowOnError>): RequestResult<DeleteTemplateResponses, DeleteTemplateErrors, ThrowOnError> {
|
|
378
|
+
return options.client.delete<DeleteTemplateResponses, DeleteTemplateErrors, ThrowOnError>({
|
|
379
|
+
url: '/template/{templateId}',
|
|
380
|
+
...options,
|
|
381
|
+
headers: {
|
|
382
|
+
'Content-Type': 'application/json',
|
|
383
|
+
...options.headers
|
|
384
|
+
}
|
|
385
|
+
});
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
public static getTemplate<ThrowOnError extends boolean = false>(options: Options<GetTemplateData, ThrowOnError>): RequestResult<GetTemplateResponses, GetTemplateErrors, ThrowOnError> {
|
|
389
|
+
return options.client.get<GetTemplateResponses, GetTemplateErrors, ThrowOnError>({ url: '/template/{templateId}', ...options });
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
public static updateTemplate<ThrowOnError extends boolean = false>(options: Options<UpdateTemplateData, ThrowOnError>): RequestResult<UpdateTemplateResponses, UpdateTemplateErrors, ThrowOnError> {
|
|
393
|
+
return options.client.patch<UpdateTemplateResponses, UpdateTemplateErrors, ThrowOnError>({
|
|
394
|
+
url: '/template/{templateId}',
|
|
395
|
+
...options,
|
|
396
|
+
headers: {
|
|
397
|
+
'Content-Type': 'application/json',
|
|
398
|
+
...options.headers
|
|
399
|
+
}
|
|
400
|
+
});
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
public static createTemplate<ThrowOnError extends boolean = false>(options: Options<CreateTemplateData, ThrowOnError>): RequestResult<CreateTemplateResponses, CreateTemplateErrors, ThrowOnError> {
|
|
404
|
+
return options.client.post<CreateTemplateResponses, CreateTemplateErrors, ThrowOnError>({
|
|
405
|
+
url: '/template/create',
|
|
406
|
+
...options,
|
|
407
|
+
headers: {
|
|
408
|
+
'Content-Type': 'application/json',
|
|
409
|
+
...options.headers
|
|
410
|
+
}
|
|
411
|
+
});
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
public static addTemplateSharedWith<ThrowOnError extends boolean = false>(options: Options<AddTemplateSharedWithData, ThrowOnError>): RequestResult<AddTemplateSharedWithResponses, AddTemplateSharedWithErrors, ThrowOnError> {
|
|
415
|
+
return options.client.post<AddTemplateSharedWithResponses, AddTemplateSharedWithErrors, ThrowOnError>({
|
|
416
|
+
url: '/template/{templateId}/shared-with',
|
|
417
|
+
...options,
|
|
418
|
+
headers: {
|
|
419
|
+
'Content-Type': 'application/json',
|
|
420
|
+
...options.headers
|
|
421
|
+
}
|
|
422
|
+
});
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
public static removeTemplateSharedWith<ThrowOnError extends boolean = false>(options: Options<RemoveTemplateSharedWithData, ThrowOnError>): RequestResult<RemoveTemplateSharedWithResponses, RemoveTemplateSharedWithErrors, ThrowOnError> {
|
|
426
|
+
return options.client.delete<RemoveTemplateSharedWithResponses, RemoveTemplateSharedWithErrors, ThrowOnError>({
|
|
427
|
+
url: '/template/{templateId}/shared-with/{email}',
|
|
428
|
+
...options,
|
|
429
|
+
headers: {
|
|
430
|
+
'Content-Type': 'application/json',
|
|
431
|
+
...options.headers
|
|
432
|
+
}
|
|
433
|
+
});
|
|
434
|
+
}
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
export class Media {
|
|
438
|
+
public static getUploadConfiguration<ThrowOnError extends boolean = false>(options: Options<GetUploadConfigurationData, ThrowOnError>): RequestResult<GetUploadConfigurationResponses, GetUploadConfigurationErrors, ThrowOnError> {
|
|
439
|
+
return options.client.post<GetUploadConfigurationResponses, GetUploadConfigurationErrors, ThrowOnError>({
|
|
440
|
+
url: '/media/upload-configuration',
|
|
441
|
+
...options,
|
|
442
|
+
headers: {
|
|
443
|
+
'Content-Type': 'application/json',
|
|
444
|
+
...options.headers
|
|
445
|
+
}
|
|
446
|
+
});
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
/**
|
|
450
|
+
* @deprecated
|
|
451
|
+
*/
|
|
452
|
+
public static listFiles<ThrowOnError extends boolean = false>(options: Options<ListFilesData, ThrowOnError>): RequestResult<ListFilesResponses, ListFilesErrors, ThrowOnError> {
|
|
453
|
+
return options.client.get<ListFilesResponses, ListFilesErrors, ThrowOnError>({ url: '/media/list', ...options });
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
public static createMedia<ThrowOnError extends boolean = false>(options: Options<CreateMediaData, ThrowOnError>): RequestResult<CreateMediaResponses, CreateMediaErrors, ThrowOnError> {
|
|
457
|
+
return options.client.post<CreateMediaResponses, CreateMediaErrors, ThrowOnError>({
|
|
458
|
+
url: '/media',
|
|
459
|
+
...options,
|
|
460
|
+
headers: {
|
|
461
|
+
'Content-Type': 'application/json',
|
|
462
|
+
...options.headers
|
|
463
|
+
}
|
|
464
|
+
});
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
public static saveMedia<ThrowOnError extends boolean = false>(options: Options<SaveMediaData, ThrowOnError>): RequestResult<SaveMediaResponses, SaveMediaErrors, ThrowOnError> {
|
|
468
|
+
return options.client.post<SaveMediaResponses, SaveMediaErrors, ThrowOnError>({
|
|
469
|
+
url: '/media/save',
|
|
470
|
+
...options,
|
|
471
|
+
headers: {
|
|
472
|
+
'Content-Type': 'application/json',
|
|
473
|
+
...options.headers
|
|
474
|
+
}
|
|
475
|
+
});
|
|
476
|
+
}
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
export class Capture {
|
|
480
|
+
public static takeScreenshot<ThrowOnError extends boolean = false>(options: Options<TakeScreenshotData, ThrowOnError>): RequestResult<TakeScreenshotResponses, TakeScreenshotErrors, ThrowOnError> {
|
|
481
|
+
return options.client.post<TakeScreenshotResponses, TakeScreenshotErrors, ThrowOnError>({
|
|
482
|
+
url: '/capture/screenshot',
|
|
483
|
+
...options,
|
|
484
|
+
headers: {
|
|
485
|
+
'Content-Type': 'application/json',
|
|
486
|
+
...options.headers
|
|
487
|
+
}
|
|
488
|
+
});
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
public static scrapePageContent<ThrowOnError extends boolean = false>(options: Options<ScrapePageContentData, ThrowOnError>): RequestResult<ScrapePageContentResponses, ScrapePageContentErrors, ThrowOnError> {
|
|
492
|
+
return options.client.post<ScrapePageContentResponses, ScrapePageContentErrors, ThrowOnError>({
|
|
493
|
+
url: '/capture/scrape',
|
|
494
|
+
...options,
|
|
495
|
+
headers: {
|
|
496
|
+
'Content-Type': 'application/json',
|
|
497
|
+
...options.headers
|
|
498
|
+
}
|
|
499
|
+
});
|
|
500
|
+
}
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
export class User {
|
|
504
|
+
public static getUserByDazlId<ThrowOnError extends boolean = false>(options: Options<GetUserByDazlIdData, ThrowOnError>): RequestResult<GetUserByDazlIdResponses, GetUserByDazlIdErrors, ThrowOnError> {
|
|
505
|
+
return options.client.get<GetUserByDazlIdResponses, GetUserByDazlIdErrors, ThrowOnError>({ url: '/user/{dazlId}', ...options });
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
public static updateUser<ThrowOnError extends boolean = false>(options: Options<UpdateUserData, ThrowOnError>): RequestResult<UpdateUserResponses, UpdateUserErrors, ThrowOnError> {
|
|
509
|
+
return options.client.patch<UpdateUserResponses, UpdateUserErrors, ThrowOnError>({
|
|
510
|
+
url: '/user/{dazlId}',
|
|
511
|
+
...options,
|
|
512
|
+
headers: {
|
|
513
|
+
'Content-Type': 'application/json',
|
|
514
|
+
...options.headers
|
|
515
|
+
}
|
|
516
|
+
});
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
public static getUsersByDazlIds<ThrowOnError extends boolean = false>(options: Options<GetUsersByDazlIdsData, ThrowOnError>): RequestResult<GetUsersByDazlIdsResponses, GetUsersByDazlIdsErrors, ThrowOnError> {
|
|
520
|
+
return options.client.post<GetUsersByDazlIdsResponses, GetUsersByDazlIdsErrors, ThrowOnError>({
|
|
521
|
+
url: '/user/list-by-dazl-ids',
|
|
522
|
+
...options,
|
|
523
|
+
headers: {
|
|
524
|
+
'Content-Type': 'application/json',
|
|
525
|
+
...options.headers
|
|
526
|
+
}
|
|
527
|
+
});
|
|
528
|
+
}
|
|
529
|
+
|
|
530
|
+
public static getUsersByEmails<ThrowOnError extends boolean = false>(options: Options<GetUsersByEmailsData, ThrowOnError>): RequestResult<GetUsersByEmailsResponses, GetUsersByEmailsErrors, ThrowOnError> {
|
|
531
|
+
return options.client.post<GetUsersByEmailsResponses, GetUsersByEmailsErrors, ThrowOnError>({
|
|
532
|
+
url: '/user/list-by-emails',
|
|
533
|
+
...options,
|
|
534
|
+
headers: {
|
|
535
|
+
'Content-Type': 'application/json',
|
|
536
|
+
...options.headers
|
|
537
|
+
}
|
|
538
|
+
});
|
|
539
|
+
}
|
|
540
|
+
|
|
541
|
+
public static createUser<ThrowOnError extends boolean = false>(options: Options<CreateUserData, ThrowOnError>): RequestResult<CreateUserResponses, CreateUserErrors, ThrowOnError> {
|
|
542
|
+
return options.client.post<CreateUserResponses, CreateUserErrors, ThrowOnError>({
|
|
543
|
+
url: '/user/create',
|
|
544
|
+
...options,
|
|
545
|
+
headers: {
|
|
546
|
+
'Content-Type': 'application/json',
|
|
547
|
+
...options.headers
|
|
548
|
+
}
|
|
549
|
+
});
|
|
550
|
+
}
|
|
551
|
+
}
|
|
552
|
+
|
|
553
|
+
export class Search {
|
|
554
|
+
public static searchWeb<ThrowOnError extends boolean = false>(options: Options<SearchWebData, ThrowOnError>): RequestResult<SearchWebResponses, SearchWebErrors, ThrowOnError> {
|
|
555
|
+
return options.client.post<SearchWebResponses, SearchWebErrors, ThrowOnError>({
|
|
556
|
+
url: '/search/web',
|
|
557
|
+
...options,
|
|
558
|
+
headers: {
|
|
559
|
+
'Content-Type': 'application/json',
|
|
560
|
+
...options.headers
|
|
561
|
+
}
|
|
562
|
+
});
|
|
563
|
+
}
|
|
564
|
+
}
|
|
565
|
+
|
|
566
|
+
export class Admin {
|
|
567
|
+
/**
|
|
568
|
+
* Deletes a project and its deployments, logging the admin action. Used by backoffice admins.
|
|
569
|
+
*/
|
|
570
|
+
public static adminDeleteProject<ThrowOnError extends boolean = false>(options: Options<AdminDeleteProjectData, ThrowOnError>): RequestResult<AdminDeleteProjectResponses, AdminDeleteProjectErrors, ThrowOnError> {
|
|
571
|
+
return options.client.delete<AdminDeleteProjectResponses, AdminDeleteProjectErrors, ThrowOnError>({
|
|
572
|
+
url: '/admin/project/{projectId}',
|
|
573
|
+
...options,
|
|
574
|
+
headers: {
|
|
575
|
+
'Content-Type': 'application/json',
|
|
576
|
+
...options.headers
|
|
577
|
+
}
|
|
578
|
+
});
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
/**
|
|
582
|
+
* Creates a new project record for cloning. Returns the new project ID so the client can perform S3 operations.
|
|
583
|
+
*/
|
|
584
|
+
public static adminCloneProjectCreate<ThrowOnError extends boolean = false>(options: Options<AdminCloneProjectCreateData, ThrowOnError>): RequestResult<AdminCloneProjectCreateResponses, AdminCloneProjectCreateErrors, ThrowOnError> {
|
|
585
|
+
return options.client.post<AdminCloneProjectCreateResponses, AdminCloneProjectCreateErrors, ThrowOnError>({
|
|
586
|
+
url: '/admin/project/clone',
|
|
587
|
+
...options,
|
|
588
|
+
headers: {
|
|
589
|
+
'Content-Type': 'application/json',
|
|
590
|
+
...options.headers
|
|
591
|
+
}
|
|
592
|
+
});
|
|
593
|
+
}
|
|
594
|
+
|
|
595
|
+
/**
|
|
596
|
+
* Logs the successful clone action after S3 operations complete.
|
|
597
|
+
*/
|
|
598
|
+
public static adminCloneProjectLog<ThrowOnError extends boolean = false>(options: Options<AdminCloneProjectLogData, ThrowOnError>): RequestResult<AdminCloneProjectLogResponses, AdminCloneProjectLogErrors, ThrowOnError> {
|
|
599
|
+
return options.client.post<AdminCloneProjectLogResponses, AdminCloneProjectLogErrors, ThrowOnError>({
|
|
600
|
+
url: '/admin/project/clone/log',
|
|
601
|
+
...options,
|
|
602
|
+
headers: {
|
|
603
|
+
'Content-Type': 'application/json',
|
|
604
|
+
...options.headers
|
|
605
|
+
}
|
|
606
|
+
});
|
|
607
|
+
}
|
|
608
|
+
|
|
609
|
+
/**
|
|
610
|
+
* Compensating transaction: deletes a newly created project record if S3 copy fails.
|
|
611
|
+
*/
|
|
612
|
+
public static adminCleanupProject<ThrowOnError extends boolean = false>(options: Options<AdminCleanupProjectData, ThrowOnError>): RequestResult<AdminCleanupProjectResponses, AdminCleanupProjectErrors, ThrowOnError> {
|
|
613
|
+
return options.client.post<AdminCleanupProjectResponses, AdminCleanupProjectErrors, ThrowOnError>({
|
|
614
|
+
url: '/admin/project/cleanup',
|
|
615
|
+
...options,
|
|
616
|
+
headers: {
|
|
617
|
+
'Content-Type': 'application/json',
|
|
618
|
+
...options.headers
|
|
619
|
+
}
|
|
620
|
+
});
|
|
621
|
+
}
|
|
622
|
+
|
|
623
|
+
/**
|
|
624
|
+
* Updates a user's credit balance and logs the change. Used by backoffice admins.
|
|
625
|
+
*/
|
|
626
|
+
public static adminUpdateCredits<ThrowOnError extends boolean = false>(options: Options<AdminUpdateCreditsData, ThrowOnError>): RequestResult<AdminUpdateCreditsResponses, AdminUpdateCreditsErrors, ThrowOnError> {
|
|
627
|
+
return options.client.put<AdminUpdateCreditsResponses, AdminUpdateCreditsErrors, ThrowOnError>({
|
|
628
|
+
url: '/admin/credits',
|
|
629
|
+
...options,
|
|
630
|
+
headers: {
|
|
631
|
+
'Content-Type': 'application/json',
|
|
632
|
+
...options.headers
|
|
633
|
+
}
|
|
634
|
+
});
|
|
635
|
+
}
|
|
636
|
+
|
|
637
|
+
/**
|
|
638
|
+
* Logs an arbitrary admin action
|
|
639
|
+
*/
|
|
640
|
+
public static adminLogAction<ThrowOnError extends boolean = false>(options: Options<AdminLogActionData, ThrowOnError>): RequestResult<AdminLogActionResponses, AdminLogActionErrors, ThrowOnError> {
|
|
641
|
+
return options.client.post<AdminLogActionResponses, AdminLogActionErrors, ThrowOnError>({
|
|
642
|
+
url: '/admin/action/log',
|
|
643
|
+
...options,
|
|
644
|
+
headers: {
|
|
645
|
+
'Content-Type': 'application/json',
|
|
646
|
+
...options.headers
|
|
647
|
+
}
|
|
648
|
+
});
|
|
649
|
+
}
|
|
650
|
+
|
|
651
|
+
/**
|
|
652
|
+
* Purge a user account and all associated data from Cognito, Netlify, S3, Media Platform, Stripe, and the database
|
|
653
|
+
*/
|
|
654
|
+
public static purgeUserAccount<ThrowOnError extends boolean = false>(options: Options<PurgeUserAccountData, ThrowOnError>): RequestResult<PurgeUserAccountResponses, PurgeUserAccountErrors, ThrowOnError> {
|
|
655
|
+
return options.client.delete<PurgeUserAccountResponses, PurgeUserAccountErrors, ThrowOnError>({
|
|
656
|
+
url: '/purge/user-account',
|
|
657
|
+
...options,
|
|
658
|
+
headers: {
|
|
659
|
+
'Content-Type': 'application/json',
|
|
660
|
+
...options.headers
|
|
661
|
+
}
|
|
662
|
+
});
|
|
663
|
+
}
|
|
664
|
+
}
|
|
665
|
+
|
|
666
|
+
export class EnvConfig {
|
|
667
|
+
public static getFeatureToggles<ThrowOnError extends boolean = false>(options: Options<GetFeatureTogglesData, ThrowOnError>): RequestResult<GetFeatureTogglesResponses, GetFeatureTogglesErrors, ThrowOnError> {
|
|
668
|
+
return options.client.get<GetFeatureTogglesResponses, GetFeatureTogglesErrors, ThrowOnError>({ url: '/env-config', ...options });
|
|
669
|
+
}
|
|
670
|
+
|
|
671
|
+
public static openFeatureToggle<ThrowOnError extends boolean = false>(options: Options<OpenFeatureToggleData, ThrowOnError>): RequestResult<OpenFeatureToggleResponses, OpenFeatureToggleErrors, ThrowOnError> {
|
|
672
|
+
return options.client.post<OpenFeatureToggleResponses, OpenFeatureToggleErrors, ThrowOnError>({
|
|
673
|
+
url: '/env-config/open',
|
|
674
|
+
...options,
|
|
675
|
+
headers: {
|
|
676
|
+
'Content-Type': 'application/json',
|
|
677
|
+
...options.headers
|
|
678
|
+
}
|
|
679
|
+
});
|
|
680
|
+
}
|
|
681
|
+
|
|
682
|
+
public static closeFeatureToggle<ThrowOnError extends boolean = false>(options: Options<CloseFeatureToggleData, ThrowOnError>): RequestResult<CloseFeatureToggleResponses, CloseFeatureToggleErrors, ThrowOnError> {
|
|
683
|
+
return options.client.delete<CloseFeatureToggleResponses, CloseFeatureToggleErrors, ThrowOnError>({
|
|
684
|
+
url: '/env-config/close',
|
|
685
|
+
...options,
|
|
686
|
+
headers: {
|
|
687
|
+
'Content-Type': 'application/json',
|
|
688
|
+
...options.headers
|
|
689
|
+
}
|
|
690
|
+
});
|
|
691
|
+
}
|
|
692
|
+
}
|
|
693
|
+
|
|
694
|
+
export class UserKeyValue {
|
|
695
|
+
public static getValues<ThrowOnError extends boolean = false>(options: Options<GetValuesData, ThrowOnError>): RequestResult<GetValuesResponses, GetValuesErrors, ThrowOnError> {
|
|
696
|
+
return options.client.get<GetValuesResponses, GetValuesErrors, ThrowOnError>({ url: '/user-key-value/{dazlUserId}/values', ...options });
|
|
697
|
+
}
|
|
698
|
+
|
|
699
|
+
public static setValue<ThrowOnError extends boolean = false>(options: Options<SetValueData, ThrowOnError>): RequestResult<SetValueResponses, SetValueErrors, ThrowOnError> {
|
|
700
|
+
return options.client.put<SetValueResponses, SetValueErrors, ThrowOnError>({
|
|
701
|
+
url: '/user-key-value/{dazlUserId}/values/{categ}/{name}',
|
|
702
|
+
...options,
|
|
703
|
+
headers: {
|
|
704
|
+
'Content-Type': 'application/json',
|
|
705
|
+
...options.headers
|
|
706
|
+
}
|
|
707
|
+
});
|
|
708
|
+
}
|
|
709
|
+
|
|
710
|
+
public static deleteCategValues<ThrowOnError extends boolean = false>(options: Options<DeleteCategValuesData, ThrowOnError>): RequestResult<DeleteCategValuesResponses, DeleteCategValuesErrors, ThrowOnError> {
|
|
711
|
+
return options.client.delete<DeleteCategValuesResponses, DeleteCategValuesErrors, ThrowOnError>({ url: '/user-key-value/{dazlUserId}/values/{categ}', ...options });
|
|
712
|
+
}
|
|
713
|
+
|
|
714
|
+
public static replaceCategValues<ThrowOnError extends boolean = false>(options: Options<ReplaceCategValuesData, ThrowOnError>): RequestResult<ReplaceCategValuesResponses, ReplaceCategValuesErrors, ThrowOnError> {
|
|
715
|
+
return options.client.put<ReplaceCategValuesResponses, ReplaceCategValuesErrors, ThrowOnError>({
|
|
716
|
+
url: '/user-key-value/{dazlUserId}/values/{categ}',
|
|
717
|
+
...options,
|
|
718
|
+
headers: {
|
|
719
|
+
'Content-Type': 'application/json',
|
|
720
|
+
...options.headers
|
|
721
|
+
}
|
|
722
|
+
});
|
|
723
|
+
}
|
|
724
|
+
}
|
|
725
|
+
|
|
726
|
+
export class Promotions {
|
|
727
|
+
public static isPromotionOpen<ThrowOnError extends boolean = false>(options: Options<IsPromotionOpenData, ThrowOnError>): RequestResult<IsPromotionOpenResponses, IsPromotionOpenErrors, ThrowOnError> {
|
|
728
|
+
return options.client.get<IsPromotionOpenResponses, IsPromotionOpenErrors, ThrowOnError>({ url: '/promotions/is-open/{promotionName}', ...options });
|
|
729
|
+
}
|
|
730
|
+
|
|
731
|
+
public static deactivateUserPromotion<ThrowOnError extends boolean = false>(options: Options<DeactivateUserPromotionData, ThrowOnError>): RequestResult<DeactivateUserPromotionResponses, DeactivateUserPromotionErrors, ThrowOnError> {
|
|
732
|
+
return options.client.delete<DeactivateUserPromotionResponses, DeactivateUserPromotionErrors, ThrowOnError>({ url: '/promotions/{dazlUserId}/{promotionName}', ...options });
|
|
733
|
+
}
|
|
734
|
+
|
|
735
|
+
public static addUserToPromotion<ThrowOnError extends boolean = false>(options: Options<AddUserToPromotionData, ThrowOnError>): RequestResult<AddUserToPromotionResponses, AddUserToPromotionErrors, ThrowOnError> {
|
|
736
|
+
return options.client.post<AddUserToPromotionResponses, AddUserToPromotionErrors, ThrowOnError>({ url: '/promotions/{dazlUserId}/{promotionName}', ...options });
|
|
737
|
+
}
|
|
738
|
+
|
|
739
|
+
public static getUserActivePromotions<ThrowOnError extends boolean = false>(options: Options<GetUserActivePromotionsData, ThrowOnError>): RequestResult<GetUserActivePromotionsResponses, GetUserActivePromotionsErrors, ThrowOnError> {
|
|
740
|
+
return options.client.get<GetUserActivePromotionsResponses, GetUserActivePromotionsErrors, ThrowOnError>({ url: '/promotions/{dazlUserId}/active', ...options });
|
|
741
|
+
}
|
|
742
|
+
}
|