@dazl/internal-api-client 1.26.7-alpha.0 → 1.26.8

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.
Files changed (48) hide show
  1. package/dist/client/index.d.ts +1 -0
  2. package/dist/client/index.d.ts.map +1 -1
  3. package/dist/client/index.js.map +1 -1
  4. package/dist/client/utils.gen.d.ts +1 -1
  5. package/dist/client/utils.gen.d.ts.map +1 -1
  6. package/dist/client/utils.gen.js.map +1 -1
  7. package/dist/client.gen.d.ts +2 -2
  8. package/dist/client.gen.d.ts.map +1 -1
  9. package/dist/client.gen.js.map +1 -1
  10. package/dist/core/auth.gen.d.ts +7 -0
  11. package/dist/core/auth.gen.d.ts.map +1 -1
  12. package/dist/core/auth.gen.js.map +1 -1
  13. package/dist/core/params.gen.d.ts +1 -1
  14. package/dist/core/params.gen.d.ts.map +1 -1
  15. package/dist/core/params.gen.js +6 -6
  16. package/dist/core/params.gen.js.map +1 -1
  17. package/dist/core/pathSerializer.gen.d.ts.map +1 -1
  18. package/dist/core/pathSerializer.gen.js.map +1 -1
  19. package/dist/core/queryKeySerializer.gen.d.ts +1 -1
  20. package/dist/core/queryKeySerializer.gen.d.ts.map +1 -1
  21. package/dist/core/queryKeySerializer.gen.js.map +1 -1
  22. package/dist/core/utils.gen.d.ts.map +1 -1
  23. package/dist/core/utils.gen.js.map +1 -1
  24. package/dist/db/generated-types.d.ts +11 -0
  25. package/dist/db/generated-types.d.ts.map +1 -1
  26. package/dist/index.d.ts +2 -2
  27. package/dist/index.d.ts.map +1 -1
  28. package/dist/index.js +1 -1
  29. package/dist/index.js.map +1 -1
  30. package/dist/sdk.gen.d.ts +89 -85
  31. package/dist/sdk.gen.d.ts.map +1 -1
  32. package/dist/sdk.gen.js +8 -0
  33. package/dist/sdk.gen.js.map +1 -1
  34. package/dist/types.gen.d.ts +136 -1
  35. package/dist/types.gen.d.ts.map +1 -1
  36. package/package.json +2 -2
  37. package/src/client/index.ts +1 -0
  38. package/src/client/utils.gen.ts +2 -2
  39. package/src/client.gen.ts +2 -2
  40. package/src/core/auth.gen.ts +7 -0
  41. package/src/core/params.gen.ts +10 -8
  42. package/src/core/pathSerializer.gen.ts +6 -6
  43. package/src/core/queryKeySerializer.gen.ts +1 -1
  44. package/src/core/utils.gen.ts +4 -4
  45. package/src/db/generated-types.ts +12 -0
  46. package/src/index.ts +2 -2
  47. package/src/sdk.gen.ts +95 -85
  48. package/src/types.gen.ts +148 -1
package/src/sdk.gen.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  // This file is auto-generated by @hey-api/openapi-ts
2
2
 
3
3
  import { client } from './client.gen.ts';
4
- import type { Client, Options as Options2, TDataShape } from './client/index.ts';
5
- import type { AcceptProjectInvitationData, AcceptProjectInvitationErrors, AcceptProjectInvitationResponses, AddCustomDomainData, AddCustomDomainErrors, AddCustomDomainResponses, AddTemplateSharedWithData, AddTemplateSharedWithErrors, AddTemplateSharedWithResponses, 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, 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, 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, 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';
4
+ import type { Client, Options as Options2, RequestResult, TDataShape } from './client/index.ts';
5
+ 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, 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, 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';
6
6
 
7
7
  export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown> = Options2<TData, ThrowOnError, TResponse> & {
8
8
  /**
@@ -19,11 +19,11 @@ export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends
19
19
  };
20
20
 
21
21
  export class UserSettings {
22
- public static getByDazlId<ThrowOnError extends boolean = false>(options: Options<GetByDazlIdData, ThrowOnError>) {
22
+ public static getByDazlId<ThrowOnError extends boolean = false>(options: Options<GetByDazlIdData, ThrowOnError>): RequestResult<GetByDazlIdResponses, GetByDazlIdErrors, ThrowOnError> {
23
23
  return (options.client ?? client).get<GetByDazlIdResponses, GetByDazlIdErrors, ThrowOnError>({ url: '/user-settings/{dazlId}', ...options });
24
24
  }
25
25
 
26
- public static updateByDazlId<ThrowOnError extends boolean = false>(options: Options<UpdateByDazlIdData, ThrowOnError>) {
26
+ public static updateByDazlId<ThrowOnError extends boolean = false>(options: Options<UpdateByDazlIdData, ThrowOnError>): RequestResult<UpdateByDazlIdResponses, UpdateByDazlIdErrors, ThrowOnError> {
27
27
  return (options.client ?? client).put<UpdateByDazlIdResponses, UpdateByDazlIdErrors, ThrowOnError>({
28
28
  url: '/user-settings/{dazlId}',
29
29
  ...options,
@@ -36,23 +36,23 @@ export class UserSettings {
36
36
  }
37
37
 
38
38
  export class Billing {
39
- public static getHasSufficientCreditsByDazlId<ThrowOnError extends boolean = false>(options: Options<GetHasSufficientCreditsByDazlIdData, ThrowOnError>) {
39
+ public static getHasSufficientCreditsByDazlId<ThrowOnError extends boolean = false>(options: Options<GetHasSufficientCreditsByDazlIdData, ThrowOnError>): RequestResult<GetHasSufficientCreditsByDazlIdResponses, GetHasSufficientCreditsByDazlIdErrors, ThrowOnError> {
40
40
  return (options.client ?? client).get<GetHasSufficientCreditsByDazlIdResponses, GetHasSufficientCreditsByDazlIdErrors, ThrowOnError>({ url: '/billing/has-sufficient-credits/{dazlId}', ...options });
41
41
  }
42
42
 
43
- public static getAllProducts<ThrowOnError extends boolean = false>(options?: Options<GetAllProductsData, ThrowOnError>) {
43
+ public static getAllProducts<ThrowOnError extends boolean = false>(options?: Options<GetAllProductsData, ThrowOnError>): RequestResult<GetAllProductsResponses, GetAllProductsErrors, ThrowOnError> {
44
44
  return (options?.client ?? client).get<GetAllProductsResponses, GetAllProductsErrors, ThrowOnError>({ url: '/billing/prices', ...options });
45
45
  }
46
46
 
47
- public static getPriceById<ThrowOnError extends boolean = false>(options: Options<GetPriceByIdData, ThrowOnError>) {
47
+ public static getPriceById<ThrowOnError extends boolean = false>(options: Options<GetPriceByIdData, ThrowOnError>): RequestResult<GetPriceByIdResponses, GetPriceByIdErrors, ThrowOnError> {
48
48
  return (options.client ?? client).get<GetPriceByIdResponses, GetPriceByIdErrors, ThrowOnError>({ url: '/billing/price/{priceId}', ...options });
49
49
  }
50
50
 
51
- public static getCustomerInfoByDazlId<ThrowOnError extends boolean = false>(options: Options<GetCustomerInfoByDazlIdData, ThrowOnError>) {
51
+ public static getCustomerInfoByDazlId<ThrowOnError extends boolean = false>(options: Options<GetCustomerInfoByDazlIdData, ThrowOnError>): RequestResult<GetCustomerInfoByDazlIdResponses, GetCustomerInfoByDazlIdErrors, ThrowOnError> {
52
52
  return (options.client ?? client).get<GetCustomerInfoByDazlIdResponses, GetCustomerInfoByDazlIdErrors, ThrowOnError>({ url: '/billing/customer-info/{dazlId}', ...options });
53
53
  }
54
54
 
55
- public static updateUserSubscription<ThrowOnError extends boolean = false>(options: Options<UpdateUserSubscriptionData, ThrowOnError>) {
55
+ public static updateUserSubscription<ThrowOnError extends boolean = false>(options: Options<UpdateUserSubscriptionData, ThrowOnError>): RequestResult<UpdateUserSubscriptionResponses, UpdateUserSubscriptionErrors, ThrowOnError> {
56
56
  return (options.client ?? client).post<UpdateUserSubscriptionResponses, UpdateUserSubscriptionErrors, ThrowOnError>({
57
57
  url: '/billing/update-subscription',
58
58
  ...options,
@@ -63,11 +63,11 @@ export class Billing {
63
63
  });
64
64
  }
65
65
 
66
- public static cancelScheduledUpdateByDazlId<ThrowOnError extends boolean = false>(options: Options<CancelScheduledUpdateByDazlIdData, ThrowOnError>) {
66
+ public static cancelScheduledUpdateByDazlId<ThrowOnError extends boolean = false>(options: Options<CancelScheduledUpdateByDazlIdData, ThrowOnError>): RequestResult<CancelScheduledUpdateByDazlIdResponses, CancelScheduledUpdateByDazlIdErrors, ThrowOnError> {
67
67
  return (options.client ?? client).post<CancelScheduledUpdateByDazlIdResponses, CancelScheduledUpdateByDazlIdErrors, ThrowOnError>({ url: '/billing/cancel-scheduled-update/{dazlId}', ...options });
68
68
  }
69
69
 
70
- public static createCustomerPortalSession<ThrowOnError extends boolean = false>(options: Options<CreateCustomerPortalSessionData, ThrowOnError>) {
70
+ public static createCustomerPortalSession<ThrowOnError extends boolean = false>(options: Options<CreateCustomerPortalSessionData, ThrowOnError>): RequestResult<CreateCustomerPortalSessionResponses, CreateCustomerPortalSessionErrors, ThrowOnError> {
71
71
  return (options.client ?? client).post<CreateCustomerPortalSessionResponses, CreateCustomerPortalSessionErrors, ThrowOnError>({
72
72
  url: '/billing/create-portal-session',
73
73
  ...options,
@@ -78,7 +78,7 @@ export class Billing {
78
78
  });
79
79
  }
80
80
 
81
- public static createCustomerWithDefaultSubscription<ThrowOnError extends boolean = false>(options: Options<CreateCustomerWithDefaultSubscriptionData, ThrowOnError>) {
81
+ public static createCustomerWithDefaultSubscription<ThrowOnError extends boolean = false>(options: Options<CreateCustomerWithDefaultSubscriptionData, ThrowOnError>): RequestResult<CreateCustomerWithDefaultSubscriptionResponses, CreateCustomerWithDefaultSubscriptionErrors, ThrowOnError> {
82
82
  return (options.client ?? client).put<CreateCustomerWithDefaultSubscriptionResponses, CreateCustomerWithDefaultSubscriptionErrors, ThrowOnError>({
83
83
  url: '/billing/create-customer-with-default-subscription',
84
84
  ...options,
@@ -89,13 +89,13 @@ export class Billing {
89
89
  });
90
90
  }
91
91
 
92
- public static getUserInfoByDazlId<ThrowOnError extends boolean = false>(options: Options<GetUserInfoByDazlIdData, ThrowOnError>) {
92
+ public static getUserInfoByDazlId<ThrowOnError extends boolean = false>(options: Options<GetUserInfoByDazlIdData, ThrowOnError>): RequestResult<GetUserInfoByDazlIdResponses, GetUserInfoByDazlIdErrors, ThrowOnError> {
93
93
  return (options.client ?? client).get<GetUserInfoByDazlIdResponses, GetUserInfoByDazlIdErrors, ThrowOnError>({ url: '/billing/user-info/{dazlId}', ...options });
94
94
  }
95
95
  }
96
96
 
97
97
  export class GitHub {
98
- public static connectUser<ThrowOnError extends boolean = false>(options: Options<ConnectUserData, ThrowOnError>) {
98
+ public static connectUser<ThrowOnError extends boolean = false>(options: Options<ConnectUserData, ThrowOnError>): RequestResult<ConnectUserResponses, ConnectUserErrors, ThrowOnError> {
99
99
  return (options.client ?? client).post<ConnectUserResponses, ConnectUserErrors, ThrowOnError>({
100
100
  url: '/github/user/{dazlId}/connect',
101
101
  ...options,
@@ -106,23 +106,23 @@ export class GitHub {
106
106
  });
107
107
  }
108
108
 
109
- public static disconnectUser<ThrowOnError extends boolean = false>(options: Options<DisconnectUserData, ThrowOnError>) {
109
+ public static disconnectUser<ThrowOnError extends boolean = false>(options: Options<DisconnectUserData, ThrowOnError>): RequestResult<DisconnectUserResponses, DisconnectUserErrors, ThrowOnError> {
110
110
  return (options.client ?? client).delete<DisconnectUserResponses, DisconnectUserErrors, ThrowOnError>({ url: '/github/user/{dazlId}/disconnect', ...options });
111
111
  }
112
112
 
113
- public static getUserInfo<ThrowOnError extends boolean = false>(options: Options<GetUserInfoData, ThrowOnError>) {
113
+ public static getUserInfo<ThrowOnError extends boolean = false>(options: Options<GetUserInfoData, ThrowOnError>): RequestResult<GetUserInfoResponses, GetUserInfoErrors, ThrowOnError> {
114
114
  return (options.client ?? client).get<GetUserInfoResponses, GetUserInfoErrors, ThrowOnError>({ url: '/github/user/{dazlId}/info', ...options });
115
115
  }
116
116
 
117
- public static getInstallations<ThrowOnError extends boolean = false>(options: Options<GetInstallationsData, ThrowOnError>) {
117
+ public static getInstallations<ThrowOnError extends boolean = false>(options: Options<GetInstallationsData, ThrowOnError>): RequestResult<GetInstallationsResponses, GetInstallationsErrors, ThrowOnError> {
118
118
  return (options.client ?? client).get<GetInstallationsResponses, GetInstallationsErrors, ThrowOnError>({ url: '/github/user/{dazlId}/installations', ...options });
119
119
  }
120
120
 
121
- public static getProjectInfo<ThrowOnError extends boolean = false>(options: Options<GetProjectInfoData, ThrowOnError>) {
121
+ public static getProjectInfo<ThrowOnError extends boolean = false>(options: Options<GetProjectInfoData, ThrowOnError>): RequestResult<GetProjectInfoResponses, GetProjectInfoErrors, ThrowOnError> {
122
122
  return (options.client ?? client).get<GetProjectInfoResponses, GetProjectInfoErrors, ThrowOnError>({ url: '/github/project/{projectId}/info', ...options });
123
123
  }
124
124
 
125
- public static createRepository<ThrowOnError extends boolean = false>(options: Options<CreateRepositoryData, ThrowOnError>) {
125
+ public static createRepository<ThrowOnError extends boolean = false>(options: Options<CreateRepositoryData, ThrowOnError>): RequestResult<CreateRepositoryResponses, CreateRepositoryErrors, ThrowOnError> {
126
126
  return (options.client ?? client).post<CreateRepositoryResponses, CreateRepositoryErrors, ThrowOnError>({
127
127
  url: '/github/project/{projectId}/repo',
128
128
  ...options,
@@ -133,17 +133,17 @@ export class GitHub {
133
133
  });
134
134
  }
135
135
 
136
- public static getOAuthUrl<ThrowOnError extends boolean = false>(options: Options<GetOAuthUrlData, ThrowOnError>) {
136
+ public static getOAuthUrl<ThrowOnError extends boolean = false>(options: Options<GetOAuthUrlData, ThrowOnError>): RequestResult<GetOAuthUrlResponses, GetOAuthUrlErrors, ThrowOnError> {
137
137
  return (options.client ?? client).get<GetOAuthUrlResponses, GetOAuthUrlErrors, ThrowOnError>({ url: '/github/user/oauth-url', ...options });
138
138
  }
139
139
 
140
- public static getAppInstallUrl<ThrowOnError extends boolean = false>(options: Options<GetAppInstallUrlData, ThrowOnError>) {
140
+ public static getAppInstallUrl<ThrowOnError extends boolean = false>(options: Options<GetAppInstallUrlData, ThrowOnError>): RequestResult<GetAppInstallUrlResponses, GetAppInstallUrlErrors, ThrowOnError> {
141
141
  return (options.client ?? client).get<GetAppInstallUrlResponses, GetAppInstallUrlErrors, ThrowOnError>({ url: '/github/installation/url', ...options });
142
142
  }
143
143
  }
144
144
 
145
145
  export class Publish {
146
- public static ensureSiteId<ThrowOnError extends boolean = false>(options: Options<EnsureSiteIdData, ThrowOnError>) {
146
+ public static ensureSiteId<ThrowOnError extends boolean = false>(options: Options<EnsureSiteIdData, ThrowOnError>): RequestResult<EnsureSiteIdResponses, EnsureSiteIdErrors, ThrowOnError> {
147
147
  return (options.client ?? client).post<EnsureSiteIdResponses, EnsureSiteIdErrors, ThrowOnError>({
148
148
  url: '/publish/site-id',
149
149
  ...options,
@@ -154,11 +154,11 @@ export class Publish {
154
154
  });
155
155
  }
156
156
 
157
- public static getLatestDeploy<ThrowOnError extends boolean = false>(options: Options<GetLatestDeployData, ThrowOnError>) {
157
+ public static getLatestDeploy<ThrowOnError extends boolean = false>(options: Options<GetLatestDeployData, ThrowOnError>): RequestResult<GetLatestDeployResponses, GetLatestDeployErrors, ThrowOnError> {
158
158
  return (options.client ?? client).get<GetLatestDeployResponses, GetLatestDeployErrors, ThrowOnError>({ url: '/publish/latest', ...options });
159
159
  }
160
160
 
161
- public static upsertDeployInDb<ThrowOnError extends boolean = false>(options: Options<UpsertDeployInDbData, ThrowOnError>) {
161
+ public static upsertDeployInDb<ThrowOnError extends boolean = false>(options: Options<UpsertDeployInDbData, ThrowOnError>): RequestResult<UpsertDeployInDbResponses, UpsertDeployInDbErrors, ThrowOnError> {
162
162
  return (options.client ?? client).post<UpsertDeployInDbResponses, UpsertDeployInDbErrors, ThrowOnError>({
163
163
  url: '/publish/upsert-deploy',
164
164
  ...options,
@@ -169,7 +169,7 @@ export class Publish {
169
169
  });
170
170
  }
171
171
 
172
- public static updateEnvVars<ThrowOnError extends boolean = false>(options: Options<UpdateEnvVarsData, ThrowOnError>) {
172
+ public static updateEnvVars<ThrowOnError extends boolean = false>(options: Options<UpdateEnvVarsData, ThrowOnError>): RequestResult<UpdateEnvVarsResponses, UpdateEnvVarsErrors, ThrowOnError> {
173
173
  return (options.client ?? client).post<UpdateEnvVarsResponses, UpdateEnvVarsErrors, ThrowOnError>({
174
174
  url: '/publish/env-vars',
175
175
  ...options,
@@ -180,15 +180,15 @@ export class Publish {
180
180
  });
181
181
  }
182
182
 
183
- public static deleteCustomDomain<ThrowOnError extends boolean = false>(options: Options<DeleteCustomDomainData, ThrowOnError>) {
183
+ public static deleteCustomDomain<ThrowOnError extends boolean = false>(options: Options<DeleteCustomDomainData, ThrowOnError>): RequestResult<DeleteCustomDomainResponses, DeleteCustomDomainErrors, ThrowOnError> {
184
184
  return (options.client ?? client).delete<DeleteCustomDomainResponses, DeleteCustomDomainErrors, ThrowOnError>({ url: '/publish/custom-domain', ...options });
185
185
  }
186
186
 
187
- public static getCustomDomain<ThrowOnError extends boolean = false>(options: Options<GetCustomDomainData, ThrowOnError>) {
187
+ public static getCustomDomain<ThrowOnError extends boolean = false>(options: Options<GetCustomDomainData, ThrowOnError>): RequestResult<GetCustomDomainResponses, GetCustomDomainErrors, ThrowOnError> {
188
188
  return (options.client ?? client).get<GetCustomDomainResponses, GetCustomDomainErrors, ThrowOnError>({ url: '/publish/custom-domain', ...options });
189
189
  }
190
190
 
191
- public static addCustomDomain<ThrowOnError extends boolean = false>(options: Options<AddCustomDomainData, ThrowOnError>) {
191
+ public static addCustomDomain<ThrowOnError extends boolean = false>(options: Options<AddCustomDomainData, ThrowOnError>): RequestResult<AddCustomDomainResponses, AddCustomDomainErrors, ThrowOnError> {
192
192
  return (options.client ?? client).post<AddCustomDomainResponses, AddCustomDomainErrors, ThrowOnError>({
193
193
  url: '/publish/custom-domain',
194
194
  ...options,
@@ -199,17 +199,17 @@ export class Publish {
199
199
  });
200
200
  }
201
201
 
202
- public static deleteSite<ThrowOnError extends boolean = false>(options: Options<DeleteSiteData, ThrowOnError>) {
202
+ public static deleteSite<ThrowOnError extends boolean = false>(options: Options<DeleteSiteData, ThrowOnError>): RequestResult<DeleteSiteResponses, DeleteSiteErrors, ThrowOnError> {
203
203
  return (options.client ?? client).delete<DeleteSiteResponses, DeleteSiteErrors, ThrowOnError>({ url: '/publish/site', ...options });
204
204
  }
205
205
 
206
- public static getEntriConfig<ThrowOnError extends boolean = false>(options: Options<GetEntriConfigData, ThrowOnError>) {
206
+ public static getEntriConfig<ThrowOnError extends boolean = false>(options: Options<GetEntriConfigData, ThrowOnError>): RequestResult<GetEntriConfigResponses, GetEntriConfigErrors, ThrowOnError> {
207
207
  return (options.client ?? client).get<GetEntriConfigResponses, GetEntriConfigErrors, ThrowOnError>({ url: '/publish/entri-config', ...options });
208
208
  }
209
209
  }
210
210
 
211
211
  export class Project {
212
- public static duplicateProject<ThrowOnError extends boolean = false>(options: Options<DuplicateProjectData, ThrowOnError>) {
212
+ public static duplicateProject<ThrowOnError extends boolean = false>(options: Options<DuplicateProjectData, ThrowOnError>): RequestResult<DuplicateProjectResponses, DuplicateProjectErrors, ThrowOnError> {
213
213
  return (options.client ?? client).post<DuplicateProjectResponses, DuplicateProjectErrors, ThrowOnError>({
214
214
  url: '/project/duplicate/{projectId}',
215
215
  ...options,
@@ -220,7 +220,7 @@ export class Project {
220
220
  });
221
221
  }
222
222
 
223
- public static deleteProject<ThrowOnError extends boolean = false>(options: Options<DeleteProjectData, ThrowOnError>) {
223
+ public static deleteProject<ThrowOnError extends boolean = false>(options: Options<DeleteProjectData, ThrowOnError>): RequestResult<DeleteProjectResponses, DeleteProjectErrors, ThrowOnError> {
224
224
  return (options.client ?? client).delete<DeleteProjectResponses, DeleteProjectErrors, ThrowOnError>({
225
225
  url: '/project/{projectId}',
226
226
  ...options,
@@ -231,11 +231,11 @@ export class Project {
231
231
  });
232
232
  }
233
233
 
234
- public static getProjectById<ThrowOnError extends boolean = false>(options: Options<GetProjectByIdData, ThrowOnError>) {
234
+ public static getProjectById<ThrowOnError extends boolean = false>(options: Options<GetProjectByIdData, ThrowOnError>): RequestResult<GetProjectByIdResponses, GetProjectByIdErrors, ThrowOnError> {
235
235
  return (options.client ?? client).get<GetProjectByIdResponses, GetProjectByIdErrors, ThrowOnError>({ url: '/project/{projectId}', ...options });
236
236
  }
237
237
 
238
- public static updateProject<ThrowOnError extends boolean = false>(options: Options<UpdateProjectData, ThrowOnError>) {
238
+ public static updateProject<ThrowOnError extends boolean = false>(options: Options<UpdateProjectData, ThrowOnError>): RequestResult<UpdateProjectResponses, UpdateProjectErrors, ThrowOnError> {
239
239
  return (options.client ?? client).patch<UpdateProjectResponses, UpdateProjectErrors, ThrowOnError>({
240
240
  url: '/project/{projectId}',
241
241
  ...options,
@@ -246,7 +246,7 @@ export class Project {
246
246
  });
247
247
  }
248
248
 
249
- public static createProject<ThrowOnError extends boolean = false>(options: Options<CreateProjectData, ThrowOnError>) {
249
+ public static createProject<ThrowOnError extends boolean = false>(options: Options<CreateProjectData, ThrowOnError>): RequestResult<CreateProjectResponses, CreateProjectErrors, ThrowOnError> {
250
250
  return (options.client ?? client).post<CreateProjectResponses, CreateProjectErrors, ThrowOnError>({
251
251
  url: '/project',
252
252
  ...options,
@@ -257,11 +257,11 @@ export class Project {
257
257
  });
258
258
  }
259
259
 
260
- public static getUserProjects<ThrowOnError extends boolean = false>(options: Options<GetUserProjectsData, ThrowOnError>) {
260
+ public static getUserProjects<ThrowOnError extends boolean = false>(options: Options<GetUserProjectsData, ThrowOnError>): RequestResult<GetUserProjectsResponses, GetUserProjectsErrors, ThrowOnError> {
261
261
  return (options.client ?? client).get<GetUserProjectsResponses, GetUserProjectsErrors, ThrowOnError>({ url: '/project/user/{ownerDazlId}', ...options });
262
262
  }
263
263
 
264
- public static inviteProjectMember<ThrowOnError extends boolean = false>(options: Options<InviteProjectMemberData, ThrowOnError>) {
264
+ public static inviteProjectMember<ThrowOnError extends boolean = false>(options: Options<InviteProjectMemberData, ThrowOnError>): RequestResult<InviteProjectMemberResponses, InviteProjectMemberErrors, ThrowOnError> {
265
265
  return (options.client ?? client).post<InviteProjectMemberResponses, InviteProjectMemberErrors, ThrowOnError>({
266
266
  url: '/project/{projectId}/members/invite',
267
267
  ...options,
@@ -272,7 +272,7 @@ export class Project {
272
272
  });
273
273
  }
274
274
 
275
- public static acceptProjectInvitation<ThrowOnError extends boolean = false>(options: Options<AcceptProjectInvitationData, ThrowOnError>) {
275
+ public static acceptProjectInvitation<ThrowOnError extends boolean = false>(options: Options<AcceptProjectInvitationData, ThrowOnError>): RequestResult<AcceptProjectInvitationResponses, AcceptProjectInvitationErrors, ThrowOnError> {
276
276
  return (options.client ?? client).post<AcceptProjectInvitationResponses, AcceptProjectInvitationErrors, ThrowOnError>({
277
277
  url: '/project/members/accept-invitation',
278
278
  ...options,
@@ -283,29 +283,29 @@ export class Project {
283
283
  });
284
284
  }
285
285
 
286
- public static getProjectCollaborators<ThrowOnError extends boolean = false>(options: Options<GetProjectCollaboratorsData, ThrowOnError>) {
286
+ public static getProjectCollaborators<ThrowOnError extends boolean = false>(options: Options<GetProjectCollaboratorsData, ThrowOnError>): RequestResult<GetProjectCollaboratorsResponses, GetProjectCollaboratorsErrors, ThrowOnError> {
287
287
  return (options.client ?? client).get<GetProjectCollaboratorsResponses, GetProjectCollaboratorsErrors, ThrowOnError>({ url: '/project/{projectId}/collaborators', ...options });
288
288
  }
289
289
 
290
- public static deleteProjectMember<ThrowOnError extends boolean = false>(options: Options<DeleteProjectMemberData, ThrowOnError>) {
290
+ public static deleteProjectMember<ThrowOnError extends boolean = false>(options: Options<DeleteProjectMemberData, ThrowOnError>): RequestResult<DeleteProjectMemberResponses, DeleteProjectMemberErrors, ThrowOnError> {
291
291
  return (options.client ?? client).delete<DeleteProjectMemberResponses, DeleteProjectMemberErrors, ThrowOnError>({ url: '/project/{projectId}/members/{memberId}', ...options });
292
292
  }
293
293
 
294
- public static deleteProjectInvitation<ThrowOnError extends boolean = false>(options: Options<DeleteProjectInvitationData, ThrowOnError>) {
294
+ public static deleteProjectInvitation<ThrowOnError extends boolean = false>(options: Options<DeleteProjectInvitationData, ThrowOnError>): RequestResult<DeleteProjectInvitationResponses, DeleteProjectInvitationErrors, ThrowOnError> {
295
295
  return (options.client ?? client).delete<DeleteProjectInvitationResponses, DeleteProjectInvitationErrors, ThrowOnError>({ url: '/project/{projectId}/invitations/{invitationId}', ...options });
296
296
  }
297
297
  }
298
298
 
299
299
  export class Comments {
300
- public static internalDeleteComment<ThrowOnError extends boolean = false>(options: Options<InternalDeleteCommentData, ThrowOnError>) {
300
+ public static internalDeleteComment<ThrowOnError extends boolean = false>(options: Options<InternalDeleteCommentData, ThrowOnError>): RequestResult<InternalDeleteCommentResponses, InternalDeleteCommentErrors, ThrowOnError> {
301
301
  return (options.client ?? client).delete<InternalDeleteCommentResponses, InternalDeleteCommentErrors, ThrowOnError>({ url: '/project/{projectId}/comments/{commentId}', ...options });
302
302
  }
303
303
 
304
- public static internalGetProjectComment<ThrowOnError extends boolean = false>(options: Options<InternalGetProjectCommentData, ThrowOnError>) {
304
+ public static internalGetProjectComment<ThrowOnError extends boolean = false>(options: Options<InternalGetProjectCommentData, ThrowOnError>): RequestResult<InternalGetProjectCommentResponses, InternalGetProjectCommentErrors, ThrowOnError> {
305
305
  return (options.client ?? client).get<InternalGetProjectCommentResponses, InternalGetProjectCommentErrors, ThrowOnError>({ url: '/project/{projectId}/comments/{commentId}', ...options });
306
306
  }
307
307
 
308
- public static internalEditComment<ThrowOnError extends boolean = false>(options: Options<InternalEditCommentData, ThrowOnError>) {
308
+ public static internalEditComment<ThrowOnError extends boolean = false>(options: Options<InternalEditCommentData, ThrowOnError>): RequestResult<InternalEditCommentResponses, InternalEditCommentErrors, ThrowOnError> {
309
309
  return (options.client ?? client).patch<InternalEditCommentResponses, InternalEditCommentErrors, ThrowOnError>({
310
310
  url: '/project/{projectId}/comments/{commentId}',
311
311
  ...options,
@@ -316,11 +316,11 @@ export class Comments {
316
316
  });
317
317
  }
318
318
 
319
- public static internalListProjectComments<ThrowOnError extends boolean = false>(options: Options<InternalListProjectCommentsData, ThrowOnError>) {
319
+ public static internalListProjectComments<ThrowOnError extends boolean = false>(options: Options<InternalListProjectCommentsData, ThrowOnError>): RequestResult<InternalListProjectCommentsResponses, InternalListProjectCommentsErrors, ThrowOnError> {
320
320
  return (options.client ?? client).get<InternalListProjectCommentsResponses, InternalListProjectCommentsErrors, ThrowOnError>({ url: '/project/{projectId}/comments', ...options });
321
321
  }
322
322
 
323
- public static internalCreateComment<ThrowOnError extends boolean = false>(options: Options<InternalCreateCommentData, ThrowOnError>) {
323
+ public static internalCreateComment<ThrowOnError extends boolean = false>(options: Options<InternalCreateCommentData, ThrowOnError>): RequestResult<InternalCreateCommentResponses, InternalCreateCommentErrors, ThrowOnError> {
324
324
  return (options.client ?? client).post<InternalCreateCommentResponses, InternalCreateCommentErrors, ThrowOnError>({
325
325
  url: '/project/{projectId}/comments',
326
326
  ...options,
@@ -331,15 +331,15 @@ export class Comments {
331
331
  });
332
332
  }
333
333
 
334
- public static internalResolveComment<ThrowOnError extends boolean = false>(options: Options<InternalResolveCommentData, ThrowOnError>) {
334
+ public static internalResolveComment<ThrowOnError extends boolean = false>(options: Options<InternalResolveCommentData, ThrowOnError>): RequestResult<InternalResolveCommentResponses, InternalResolveCommentErrors, ThrowOnError> {
335
335
  return (options.client ?? client).post<InternalResolveCommentResponses, InternalResolveCommentErrors, ThrowOnError>({ url: '/project/{projectId}/comments/{commentId}/resolve', ...options });
336
336
  }
337
337
 
338
- public static internalReopenComment<ThrowOnError extends boolean = false>(options: Options<InternalReopenCommentData, ThrowOnError>) {
338
+ public static internalReopenComment<ThrowOnError extends boolean = false>(options: Options<InternalReopenCommentData, ThrowOnError>): RequestResult<InternalReopenCommentResponses, InternalReopenCommentErrors, ThrowOnError> {
339
339
  return (options.client ?? client).post<InternalReopenCommentResponses, InternalReopenCommentErrors, ThrowOnError>({ url: '/project/{projectId}/comments/{commentId}/reopen', ...options });
340
340
  }
341
341
 
342
- public static internalCreateReply<ThrowOnError extends boolean = false>(options: Options<InternalCreateReplyData, ThrowOnError>) {
342
+ public static internalCreateReply<ThrowOnError extends boolean = false>(options: Options<InternalCreateReplyData, ThrowOnError>): RequestResult<InternalCreateReplyResponses, InternalCreateReplyErrors, ThrowOnError> {
343
343
  return (options.client ?? client).post<InternalCreateReplyResponses, InternalCreateReplyErrors, ThrowOnError>({
344
344
  url: '/project/{projectId}/comments/{commentId}/replies',
345
345
  ...options,
@@ -350,11 +350,11 @@ export class Comments {
350
350
  });
351
351
  }
352
352
 
353
- public static internalDeleteReply<ThrowOnError extends boolean = false>(options: Options<InternalDeleteReplyData, ThrowOnError>) {
353
+ public static internalDeleteReply<ThrowOnError extends boolean = false>(options: Options<InternalDeleteReplyData, ThrowOnError>): RequestResult<InternalDeleteReplyResponses, InternalDeleteReplyErrors, ThrowOnError> {
354
354
  return (options.client ?? client).delete<InternalDeleteReplyResponses, InternalDeleteReplyErrors, ThrowOnError>({ url: '/project/{projectId}/comments/{commentId}/replies/{replyId}', ...options });
355
355
  }
356
356
 
357
- public static internalEditReply<ThrowOnError extends boolean = false>(options: Options<InternalEditReplyData, ThrowOnError>) {
357
+ public static internalEditReply<ThrowOnError extends boolean = false>(options: Options<InternalEditReplyData, ThrowOnError>): RequestResult<InternalEditReplyResponses, InternalEditReplyErrors, ThrowOnError> {
358
358
  return (options.client ?? client).patch<InternalEditReplyResponses, InternalEditReplyErrors, ThrowOnError>({
359
359
  url: '/project/{projectId}/comments/{commentId}/replies/{replyId}',
360
360
  ...options,
@@ -367,15 +367,15 @@ export class Comments {
367
367
  }
368
368
 
369
369
  export class Template {
370
- public static getPublicTemplates<ThrowOnError extends boolean = false>(options?: Options<GetPublicTemplatesData, ThrowOnError>) {
370
+ public static getPublicTemplates<ThrowOnError extends boolean = false>(options?: Options<GetPublicTemplatesData, ThrowOnError>): RequestResult<GetPublicTemplatesResponses, GetPublicTemplatesErrors, ThrowOnError> {
371
371
  return (options?.client ?? client).get<GetPublicTemplatesResponses, GetPublicTemplatesErrors, ThrowOnError>({ url: '/template/public-templates', ...options });
372
372
  }
373
373
 
374
- public static getUserTemplates<ThrowOnError extends boolean = false>(options: Options<GetUserTemplatesData, ThrowOnError>) {
374
+ public static getUserTemplates<ThrowOnError extends boolean = false>(options: Options<GetUserTemplatesData, ThrowOnError>): RequestResult<GetUserTemplatesResponses, GetUserTemplatesErrors, ThrowOnError> {
375
375
  return (options.client ?? client).get<GetUserTemplatesResponses, GetUserTemplatesErrors, ThrowOnError>({ url: '/template/user/{dazlId}', ...options });
376
376
  }
377
377
 
378
- public static deleteTemplate<ThrowOnError extends boolean = false>(options: Options<DeleteTemplateData, ThrowOnError>) {
378
+ public static deleteTemplate<ThrowOnError extends boolean = false>(options: Options<DeleteTemplateData, ThrowOnError>): RequestResult<DeleteTemplateResponses, DeleteTemplateErrors, ThrowOnError> {
379
379
  return (options.client ?? client).delete<DeleteTemplateResponses, DeleteTemplateErrors, ThrowOnError>({
380
380
  url: '/template/{templateId}',
381
381
  ...options,
@@ -386,11 +386,11 @@ export class Template {
386
386
  });
387
387
  }
388
388
 
389
- public static getTemplate<ThrowOnError extends boolean = false>(options: Options<GetTemplateData, ThrowOnError>) {
389
+ public static getTemplate<ThrowOnError extends boolean = false>(options: Options<GetTemplateData, ThrowOnError>): RequestResult<GetTemplateResponses, GetTemplateErrors, ThrowOnError> {
390
390
  return (options.client ?? client).get<GetTemplateResponses, GetTemplateErrors, ThrowOnError>({ url: '/template/{templateId}', ...options });
391
391
  }
392
392
 
393
- public static updateTemplate<ThrowOnError extends boolean = false>(options: Options<UpdateTemplateData, ThrowOnError>) {
393
+ public static updateTemplate<ThrowOnError extends boolean = false>(options: Options<UpdateTemplateData, ThrowOnError>): RequestResult<UpdateTemplateResponses, UpdateTemplateErrors, ThrowOnError> {
394
394
  return (options.client ?? client).patch<UpdateTemplateResponses, UpdateTemplateErrors, ThrowOnError>({
395
395
  url: '/template/{templateId}',
396
396
  ...options,
@@ -401,7 +401,7 @@ export class Template {
401
401
  });
402
402
  }
403
403
 
404
- public static createTemplate<ThrowOnError extends boolean = false>(options: Options<CreateTemplateData, ThrowOnError>) {
404
+ public static createTemplate<ThrowOnError extends boolean = false>(options: Options<CreateTemplateData, ThrowOnError>): RequestResult<CreateTemplateResponses, CreateTemplateErrors, ThrowOnError> {
405
405
  return (options.client ?? client).post<CreateTemplateResponses, CreateTemplateErrors, ThrowOnError>({
406
406
  url: '/template/create',
407
407
  ...options,
@@ -412,7 +412,7 @@ export class Template {
412
412
  });
413
413
  }
414
414
 
415
- public static addTemplateSharedWith<ThrowOnError extends boolean = false>(options: Options<AddTemplateSharedWithData, ThrowOnError>) {
415
+ public static addTemplateSharedWith<ThrowOnError extends boolean = false>(options: Options<AddTemplateSharedWithData, ThrowOnError>): RequestResult<AddTemplateSharedWithResponses, AddTemplateSharedWithErrors, ThrowOnError> {
416
416
  return (options.client ?? client).post<AddTemplateSharedWithResponses, AddTemplateSharedWithErrors, ThrowOnError>({
417
417
  url: '/template/{templateId}/shared-with',
418
418
  ...options,
@@ -423,7 +423,7 @@ export class Template {
423
423
  });
424
424
  }
425
425
 
426
- public static removeTemplateSharedWith<ThrowOnError extends boolean = false>(options: Options<RemoveTemplateSharedWithData, ThrowOnError>) {
426
+ public static removeTemplateSharedWith<ThrowOnError extends boolean = false>(options: Options<RemoveTemplateSharedWithData, ThrowOnError>): RequestResult<RemoveTemplateSharedWithResponses, RemoveTemplateSharedWithErrors, ThrowOnError> {
427
427
  return (options.client ?? client).delete<RemoveTemplateSharedWithResponses, RemoveTemplateSharedWithErrors, ThrowOnError>({
428
428
  url: '/template/{templateId}/shared-with/{email}',
429
429
  ...options,
@@ -436,7 +436,7 @@ export class Template {
436
436
  }
437
437
 
438
438
  export class Media {
439
- public static getUploadConfiguration<ThrowOnError extends boolean = false>(options: Options<GetUploadConfigurationData, ThrowOnError>) {
439
+ public static getUploadConfiguration<ThrowOnError extends boolean = false>(options: Options<GetUploadConfigurationData, ThrowOnError>): RequestResult<GetUploadConfigurationResponses, GetUploadConfigurationErrors, ThrowOnError> {
440
440
  return (options.client ?? client).post<GetUploadConfigurationResponses, GetUploadConfigurationErrors, ThrowOnError>({
441
441
  url: '/media/upload-configuration',
442
442
  ...options,
@@ -450,11 +450,11 @@ export class Media {
450
450
  /**
451
451
  * @deprecated
452
452
  */
453
- public static listFiles<ThrowOnError extends boolean = false>(options: Options<ListFilesData, ThrowOnError>) {
453
+ public static listFiles<ThrowOnError extends boolean = false>(options: Options<ListFilesData, ThrowOnError>): RequestResult<ListFilesResponses, ListFilesErrors, ThrowOnError> {
454
454
  return (options.client ?? client).get<ListFilesResponses, ListFilesErrors, ThrowOnError>({ url: '/media/list', ...options });
455
455
  }
456
456
 
457
- public static createMedia<ThrowOnError extends boolean = false>(options: Options<CreateMediaData, ThrowOnError>) {
457
+ public static createMedia<ThrowOnError extends boolean = false>(options: Options<CreateMediaData, ThrowOnError>): RequestResult<CreateMediaResponses, CreateMediaErrors, ThrowOnError> {
458
458
  return (options.client ?? client).post<CreateMediaResponses, CreateMediaErrors, ThrowOnError>({
459
459
  url: '/media',
460
460
  ...options,
@@ -465,7 +465,7 @@ export class Media {
465
465
  });
466
466
  }
467
467
 
468
- public static saveMedia<ThrowOnError extends boolean = false>(options: Options<SaveMediaData, ThrowOnError>) {
468
+ public static saveMedia<ThrowOnError extends boolean = false>(options: Options<SaveMediaData, ThrowOnError>): RequestResult<SaveMediaResponses, SaveMediaErrors, ThrowOnError> {
469
469
  return (options.client ?? client).post<SaveMediaResponses, SaveMediaErrors, ThrowOnError>({
470
470
  url: '/media/save',
471
471
  ...options,
@@ -478,7 +478,7 @@ export class Media {
478
478
  }
479
479
 
480
480
  export class Capture {
481
- public static takeScreenshot<ThrowOnError extends boolean = false>(options: Options<TakeScreenshotData, ThrowOnError>) {
481
+ public static takeScreenshot<ThrowOnError extends boolean = false>(options: Options<TakeScreenshotData, ThrowOnError>): RequestResult<TakeScreenshotResponses, TakeScreenshotErrors, ThrowOnError> {
482
482
  return (options.client ?? client).post<TakeScreenshotResponses, TakeScreenshotErrors, ThrowOnError>({
483
483
  url: '/capture/screenshot',
484
484
  ...options,
@@ -489,7 +489,7 @@ export class Capture {
489
489
  });
490
490
  }
491
491
 
492
- public static scrapePageContent<ThrowOnError extends boolean = false>(options: Options<ScrapePageContentData, ThrowOnError>) {
492
+ public static scrapePageContent<ThrowOnError extends boolean = false>(options: Options<ScrapePageContentData, ThrowOnError>): RequestResult<ScrapePageContentResponses, ScrapePageContentErrors, ThrowOnError> {
493
493
  return (options.client ?? client).post<ScrapePageContentResponses, ScrapePageContentErrors, ThrowOnError>({
494
494
  url: '/capture/scrape',
495
495
  ...options,
@@ -502,11 +502,11 @@ export class Capture {
502
502
  }
503
503
 
504
504
  export class User {
505
- public static getUserByDazlId<ThrowOnError extends boolean = false>(options: Options<GetUserByDazlIdData, ThrowOnError>) {
505
+ public static getUserByDazlId<ThrowOnError extends boolean = false>(options: Options<GetUserByDazlIdData, ThrowOnError>): RequestResult<GetUserByDazlIdResponses, GetUserByDazlIdErrors, ThrowOnError> {
506
506
  return (options.client ?? client).get<GetUserByDazlIdResponses, GetUserByDazlIdErrors, ThrowOnError>({ url: '/user/{dazlId}', ...options });
507
507
  }
508
508
 
509
- public static updateUser<ThrowOnError extends boolean = false>(options: Options<UpdateUserData, ThrowOnError>) {
509
+ public static updateUser<ThrowOnError extends boolean = false>(options: Options<UpdateUserData, ThrowOnError>): RequestResult<UpdateUserResponses, UpdateUserErrors, ThrowOnError> {
510
510
  return (options.client ?? client).patch<UpdateUserResponses, UpdateUserErrors, ThrowOnError>({
511
511
  url: '/user/{dazlId}',
512
512
  ...options,
@@ -517,7 +517,7 @@ export class User {
517
517
  });
518
518
  }
519
519
 
520
- public static getUsersByDazlIds<ThrowOnError extends boolean = false>(options: Options<GetUsersByDazlIdsData, ThrowOnError>) {
520
+ public static getUsersByDazlIds<ThrowOnError extends boolean = false>(options: Options<GetUsersByDazlIdsData, ThrowOnError>): RequestResult<GetUsersByDazlIdsResponses, GetUsersByDazlIdsErrors, ThrowOnError> {
521
521
  return (options.client ?? client).post<GetUsersByDazlIdsResponses, GetUsersByDazlIdsErrors, ThrowOnError>({
522
522
  url: '/user/list-by-dazl-ids',
523
523
  ...options,
@@ -528,7 +528,7 @@ export class User {
528
528
  });
529
529
  }
530
530
 
531
- public static getUsersByEmails<ThrowOnError extends boolean = false>(options: Options<GetUsersByEmailsData, ThrowOnError>) {
531
+ public static getUsersByEmails<ThrowOnError extends boolean = false>(options: Options<GetUsersByEmailsData, ThrowOnError>): RequestResult<GetUsersByEmailsResponses, GetUsersByEmailsErrors, ThrowOnError> {
532
532
  return (options.client ?? client).post<GetUsersByEmailsResponses, GetUsersByEmailsErrors, ThrowOnError>({
533
533
  url: '/user/list-by-emails',
534
534
  ...options,
@@ -539,7 +539,7 @@ export class User {
539
539
  });
540
540
  }
541
541
 
542
- public static createUser<ThrowOnError extends boolean = false>(options: Options<CreateUserData, ThrowOnError>) {
542
+ public static createUser<ThrowOnError extends boolean = false>(options: Options<CreateUserData, ThrowOnError>): RequestResult<CreateUserResponses, CreateUserErrors, ThrowOnError> {
543
543
  return (options.client ?? client).post<CreateUserResponses, CreateUserErrors, ThrowOnError>({
544
544
  url: '/user/create',
545
545
  ...options,
@@ -552,7 +552,7 @@ export class User {
552
552
  }
553
553
 
554
554
  export class Search {
555
- public static searchWeb<ThrowOnError extends boolean = false>(options: Options<SearchWebData, ThrowOnError>) {
555
+ public static searchWeb<ThrowOnError extends boolean = false>(options: Options<SearchWebData, ThrowOnError>): RequestResult<SearchWebResponses, SearchWebErrors, ThrowOnError> {
556
556
  return (options.client ?? client).post<SearchWebResponses, SearchWebErrors, ThrowOnError>({
557
557
  url: '/search/web',
558
558
  ...options,
@@ -568,7 +568,7 @@ export class Admin {
568
568
  /**
569
569
  * Deletes a project and its deployments, logging the admin action. Used by backoffice admins.
570
570
  */
571
- public static adminDeleteProject<ThrowOnError extends boolean = false>(options: Options<AdminDeleteProjectData, ThrowOnError>) {
571
+ public static adminDeleteProject<ThrowOnError extends boolean = false>(options: Options<AdminDeleteProjectData, ThrowOnError>): RequestResult<AdminDeleteProjectResponses, AdminDeleteProjectErrors, ThrowOnError> {
572
572
  return (options.client ?? client).delete<AdminDeleteProjectResponses, AdminDeleteProjectErrors, ThrowOnError>({
573
573
  url: '/admin/project/{projectId}',
574
574
  ...options,
@@ -582,7 +582,7 @@ export class Admin {
582
582
  /**
583
583
  * Creates a new project record for cloning. Returns the new project ID so the client can perform S3 operations.
584
584
  */
585
- public static adminCloneProjectCreate<ThrowOnError extends boolean = false>(options: Options<AdminCloneProjectCreateData, ThrowOnError>) {
585
+ public static adminCloneProjectCreate<ThrowOnError extends boolean = false>(options: Options<AdminCloneProjectCreateData, ThrowOnError>): RequestResult<AdminCloneProjectCreateResponses, AdminCloneProjectCreateErrors, ThrowOnError> {
586
586
  return (options.client ?? client).post<AdminCloneProjectCreateResponses, AdminCloneProjectCreateErrors, ThrowOnError>({
587
587
  url: '/admin/project/clone',
588
588
  ...options,
@@ -596,7 +596,7 @@ export class Admin {
596
596
  /**
597
597
  * Logs the successful clone action after S3 operations complete.
598
598
  */
599
- public static adminCloneProjectLog<ThrowOnError extends boolean = false>(options: Options<AdminCloneProjectLogData, ThrowOnError>) {
599
+ public static adminCloneProjectLog<ThrowOnError extends boolean = false>(options: Options<AdminCloneProjectLogData, ThrowOnError>): RequestResult<AdminCloneProjectLogResponses, AdminCloneProjectLogErrors, ThrowOnError> {
600
600
  return (options.client ?? client).post<AdminCloneProjectLogResponses, AdminCloneProjectLogErrors, ThrowOnError>({
601
601
  url: '/admin/project/clone/log',
602
602
  ...options,
@@ -610,7 +610,7 @@ export class Admin {
610
610
  /**
611
611
  * Compensating transaction: deletes a newly created project record if S3 copy fails.
612
612
  */
613
- public static adminCleanupProject<ThrowOnError extends boolean = false>(options: Options<AdminCleanupProjectData, ThrowOnError>) {
613
+ public static adminCleanupProject<ThrowOnError extends boolean = false>(options: Options<AdminCleanupProjectData, ThrowOnError>): RequestResult<AdminCleanupProjectResponses, AdminCleanupProjectErrors, ThrowOnError> {
614
614
  return (options.client ?? client).post<AdminCleanupProjectResponses, AdminCleanupProjectErrors, ThrowOnError>({
615
615
  url: '/admin/project/cleanup',
616
616
  ...options,
@@ -624,7 +624,7 @@ export class Admin {
624
624
  /**
625
625
  * Updates a user's credit balance and logs the change. Used by backoffice admins.
626
626
  */
627
- public static adminUpdateCredits<ThrowOnError extends boolean = false>(options: Options<AdminUpdateCreditsData, ThrowOnError>) {
627
+ public static adminUpdateCredits<ThrowOnError extends boolean = false>(options: Options<AdminUpdateCreditsData, ThrowOnError>): RequestResult<AdminUpdateCreditsResponses, AdminUpdateCreditsErrors, ThrowOnError> {
628
628
  return (options.client ?? client).put<AdminUpdateCreditsResponses, AdminUpdateCreditsErrors, ThrowOnError>({
629
629
  url: '/admin/credits',
630
630
  ...options,
@@ -638,7 +638,7 @@ export class Admin {
638
638
  /**
639
639
  * Logs an arbitrary admin action
640
640
  */
641
- public static adminLogAction<ThrowOnError extends boolean = false>(options: Options<AdminLogActionData, ThrowOnError>) {
641
+ public static adminLogAction<ThrowOnError extends boolean = false>(options: Options<AdminLogActionData, ThrowOnError>): RequestResult<AdminLogActionResponses, AdminLogActionErrors, ThrowOnError> {
642
642
  return (options.client ?? client).post<AdminLogActionResponses, AdminLogActionErrors, ThrowOnError>({
643
643
  url: '/admin/action/log',
644
644
  ...options,
@@ -652,7 +652,7 @@ export class Admin {
652
652
  /**
653
653
  * Purge a user account and all associated data from Cognito, Netlify, S3, Media Platform, Stripe, and the database
654
654
  */
655
- public static purgeUserAccount<ThrowOnError extends boolean = false>(options: Options<PurgeUserAccountData, ThrowOnError>) {
655
+ public static purgeUserAccount<ThrowOnError extends boolean = false>(options: Options<PurgeUserAccountData, ThrowOnError>): RequestResult<PurgeUserAccountResponses, PurgeUserAccountErrors, ThrowOnError> {
656
656
  return (options.client ?? client).delete<PurgeUserAccountResponses, PurgeUserAccountErrors, ThrowOnError>({
657
657
  url: '/purge/user-account',
658
658
  ...options,
@@ -665,11 +665,11 @@ export class Admin {
665
665
  }
666
666
 
667
667
  export class EnvConfig {
668
- public static getFeatureToggles<ThrowOnError extends boolean = false>(options?: Options<GetFeatureTogglesData, ThrowOnError>) {
668
+ public static getFeatureToggles<ThrowOnError extends boolean = false>(options?: Options<GetFeatureTogglesData, ThrowOnError>): RequestResult<GetFeatureTogglesResponses, GetFeatureTogglesErrors, ThrowOnError> {
669
669
  return (options?.client ?? client).get<GetFeatureTogglesResponses, GetFeatureTogglesErrors, ThrowOnError>({ url: '/env-config', ...options });
670
670
  }
671
671
 
672
- public static openFeatureToggle<ThrowOnError extends boolean = false>(options: Options<OpenFeatureToggleData, ThrowOnError>) {
672
+ public static openFeatureToggle<ThrowOnError extends boolean = false>(options: Options<OpenFeatureToggleData, ThrowOnError>): RequestResult<OpenFeatureToggleResponses, OpenFeatureToggleErrors, ThrowOnError> {
673
673
  return (options.client ?? client).post<OpenFeatureToggleResponses, OpenFeatureToggleErrors, ThrowOnError>({
674
674
  url: '/env-config/open',
675
675
  ...options,
@@ -680,7 +680,7 @@ export class EnvConfig {
680
680
  });
681
681
  }
682
682
 
683
- public static closeFeatureToggle<ThrowOnError extends boolean = false>(options: Options<CloseFeatureToggleData, ThrowOnError>) {
683
+ public static closeFeatureToggle<ThrowOnError extends boolean = false>(options: Options<CloseFeatureToggleData, ThrowOnError>): RequestResult<CloseFeatureToggleResponses, CloseFeatureToggleErrors, ThrowOnError> {
684
684
  return (options.client ?? client).delete<CloseFeatureToggleResponses, CloseFeatureToggleErrors, ThrowOnError>({
685
685
  url: '/env-config/close',
686
686
  ...options,
@@ -693,11 +693,11 @@ export class EnvConfig {
693
693
  }
694
694
 
695
695
  export class UserKeyValue {
696
- public static getValues<ThrowOnError extends boolean = false>(options: Options<GetValuesData, ThrowOnError>) {
696
+ public static getValues<ThrowOnError extends boolean = false>(options: Options<GetValuesData, ThrowOnError>): RequestResult<GetValuesResponses, GetValuesErrors, ThrowOnError> {
697
697
  return (options.client ?? client).get<GetValuesResponses, GetValuesErrors, ThrowOnError>({ url: '/user-key-value/{dazlUserId}/values', ...options });
698
698
  }
699
699
 
700
- public static setValue<ThrowOnError extends boolean = false>(options: Options<SetValueData, ThrowOnError>) {
700
+ public static setValue<ThrowOnError extends boolean = false>(options: Options<SetValueData, ThrowOnError>): RequestResult<SetValueResponses, SetValueErrors, ThrowOnError> {
701
701
  return (options.client ?? client).put<SetValueResponses, SetValueErrors, ThrowOnError>({
702
702
  url: '/user-key-value/{dazlUserId}/values/{categ}/{name}',
703
703
  ...options,
@@ -708,11 +708,11 @@ export class UserKeyValue {
708
708
  });
709
709
  }
710
710
 
711
- public static deleteCategValues<ThrowOnError extends boolean = false>(options: Options<DeleteCategValuesData, ThrowOnError>) {
711
+ public static deleteCategValues<ThrowOnError extends boolean = false>(options: Options<DeleteCategValuesData, ThrowOnError>): RequestResult<DeleteCategValuesResponses, DeleteCategValuesErrors, ThrowOnError> {
712
712
  return (options.client ?? client).delete<DeleteCategValuesResponses, DeleteCategValuesErrors, ThrowOnError>({ url: '/user-key-value/{dazlUserId}/values/{categ}', ...options });
713
713
  }
714
714
 
715
- public static replaceCategValues<ThrowOnError extends boolean = false>(options: Options<ReplaceCategValuesData, ThrowOnError>) {
715
+ public static replaceCategValues<ThrowOnError extends boolean = false>(options: Options<ReplaceCategValuesData, ThrowOnError>): RequestResult<ReplaceCategValuesResponses, ReplaceCategValuesErrors, ThrowOnError> {
716
716
  return (options.client ?? client).put<ReplaceCategValuesResponses, ReplaceCategValuesErrors, ThrowOnError>({
717
717
  url: '/user-key-value/{dazlUserId}/values/{categ}',
718
718
  ...options,
@@ -723,3 +723,13 @@ export class UserKeyValue {
723
723
  });
724
724
  }
725
725
  }
726
+
727
+ export class Promotions {
728
+ public static deactivateUserPromotion<ThrowOnError extends boolean = false>(options: Options<DeactivateUserPromotionData, ThrowOnError>): RequestResult<DeactivateUserPromotionResponses, DeactivateUserPromotionErrors, ThrowOnError> {
729
+ return (options.client ?? client).delete<DeactivateUserPromotionResponses, DeactivateUserPromotionErrors, ThrowOnError>({ url: '/promotions/{dazlUserId}/{promotionName}', ...options });
730
+ }
731
+
732
+ public static addUserToPromotion<ThrowOnError extends boolean = false>(options: Options<AddUserToPromotionData, ThrowOnError>): RequestResult<AddUserToPromotionResponses, AddUserToPromotionErrors, ThrowOnError> {
733
+ return (options.client ?? client).post<AddUserToPromotionResponses, AddUserToPromotionErrors, ThrowOnError>({ url: '/promotions/{dazlUserId}/{promotionName}', ...options });
734
+ }
735
+ }