Skip to content

Commit

Permalink
chore: update generated development client
Browse files Browse the repository at this point in the history
  • Loading branch information
mfal committed Sep 24, 2024
1 parent 4ee6763 commit e096ee7
Show file tree
Hide file tree
Showing 5 changed files with 6,941 additions and 1,182 deletions.
2 changes: 1 addition & 1 deletion packages/mittwald/spec/openapi-dev.json

Large diffs are not rendered by default.

44 changes: 32 additions & 12 deletions packages/mittwald/src/generated/v2/client-react.ts
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,11 @@ const buildContractApi = (baseClient: MittwaldAPIV2Client) => ({
descriptors.contractGetBaseItemOfContract,
baseClient.contract.getBaseItemOfContract,
).getApiResource,
/** Return the Contract for the given Certificate. */
getDetailOfContractByCertificate: new ApiCallAsyncResourceFactory(
descriptors.contractGetDetailOfContractByCertificate,
baseClient.contract.getDetailOfContractByCertificate,
).getApiResource,
/** Return the Contract for the given Domain. */
getDetailOfContractByDomain: new ApiCallAsyncResourceFactory(
descriptors.contractGetDetailOfContractByDomain,
Expand Down Expand Up @@ -323,21 +328,11 @@ const buildCronjobApi = (baseClient: MittwaldAPIV2Client) => ({
});

const buildCustomerApi = (baseClient: MittwaldAPIV2Client) => ({
/** Get all customer categories. */
listOfCustomerCategories: new ApiCallAsyncResourceFactory(
descriptors.customerListOfCustomerCategories,
baseClient.customer.listOfCustomerCategories,
).getApiResource,
/** Get all customer profiles the authenticated user has access to. */
listCustomers: new ApiCallAsyncResourceFactory(
descriptors.customerListCustomers,
baseClient.customer.listCustomers,
).getApiResource,
/** Get a customer category. */
getCustomerCategory: new ApiCallAsyncResourceFactory(
descriptors.customerGetCustomerCategory,
baseClient.customer.getCustomerCategory,
).getApiResource,
/** Get a CustomerInvite. */
getCustomerInvite: new ApiCallAsyncResourceFactory(
descriptors.customerGetCustomerInvite,
Expand Down Expand Up @@ -474,6 +469,11 @@ const buildDomainApi = (baseClient: MittwaldAPIV2Client) => ({
descriptors.domainListTlds,
baseClient.domain.listTlds,
).getApiResource,
/** Suggest a list of domains based on a prompt using AI. */
suggest: new ApiCallAsyncResourceFactory(
descriptors.domainSuggest,
baseClient.domain.suggest,
).getApiResource,
/** List Ingresses. */
ingressListIngresses: new ApiCallAsyncResourceFactory(
descriptors.ingressListIngresses,
Expand All @@ -484,6 +484,26 @@ const buildDomainApi = (baseClient: MittwaldAPIV2Client) => ({
descriptors.ingressGetIngress,
baseClient.domain.ingressGetIngress,
).getApiResource,
/** List CertificateRequests belonging to a Project or an Ingress. */
sslListCertificateRequests: new ApiCallAsyncResourceFactory(
descriptors.sslListCertificateRequests,
baseClient.domain.sslListCertificateRequests,
).getApiResource,
/** Get a CertificateRequest. */
sslGetCertificateRequest: new ApiCallAsyncResourceFactory(
descriptors.sslGetCertificateRequest,
baseClient.domain.sslGetCertificateRequest,
).getApiResource,
/** Get a Certificate. */
sslGetCertificate: new ApiCallAsyncResourceFactory(
descriptors.sslGetCertificate,
baseClient.domain.sslGetCertificate,
).getApiResource,
/** List Certificates belonging to a Project or an Ingress. */
sslListCertificates: new ApiCallAsyncResourceFactory(
descriptors.sslListCertificates,
baseClient.domain.sslListCertificates,
).getApiResource,
});

const buildMarketplaceApi = (baseClient: MittwaldAPIV2Client) => ({
Expand Down Expand Up @@ -545,7 +565,7 @@ const buildFileApi = (baseClient: MittwaldAPIV2Client) => ({
descriptors.fileGetFile,
baseClient.file.getFile,
).getApiResource,
/** Get a File. */
/** Get a File with user-friendly url. */
getFileWithName: new ApiCallAsyncResourceFactory(
descriptors.fileGetFileWithName,
baseClient.file.getFileWithName,
Expand Down Expand Up @@ -851,7 +871,7 @@ export class MittwaldAPIV2ClientReact {
/** The database API allows you to manage your databases, like MySQL and Redis databases. */
public readonly database: ReturnType<typeof buildDatabaseApi>;

/** The domain API allows you to manage your domains, DNS records and ingress resources. */
/** The domain API allows you to manage your domains, DNS records, SSL certificates and ingress resources. */
public readonly domain: ReturnType<typeof buildDomainApi>;

/** The marketplace API allows you to manage extensions and more information regaring the marketplace. */
Expand Down
198 changes: 114 additions & 84 deletions packages/mittwald/src/generated/v2/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@ export class MittwaldAPIV2Client extends ApiClientBase {
listUpdateCandidatesForAppversion: this.requestFunctionFactory(
descriptors.appListUpdateCandidatesForAppversion,
),
/** Replace a MySQL Database with another MySQL Database. */
replaceDatabase: this.requestFunctionFactory(
descriptors.appReplaceDatabase,
),
/** Request a copy of an AppInstallation. */
requestAppinstallationCopy: this.requestFunctionFactory(
descriptors.appRequestAppinstallationCopy,
Expand Down Expand Up @@ -249,6 +253,10 @@ export class MittwaldAPIV2Client extends ApiClientBase {
getBaseItemOfContract: this.requestFunctionFactory(
descriptors.contractGetBaseItemOfContract,
),
/** Return the Contract for the given Certificate. */
getDetailOfContractByCertificate: this.requestFunctionFactory(
descriptors.contractGetDetailOfContractByCertificate,
),
/** Return the Contract for the given Domain. */
getDetailOfContractByDomain: this.requestFunctionFactory(
descriptors.contractGetDetailOfContractByDomain,
Expand Down Expand Up @@ -323,6 +331,74 @@ export class MittwaldAPIV2Client extends ApiClientBase {
),
};

/** The marketplace API allows you to manage extensions and more information regaring the marketplace. */
public readonly marketplace = {
/** Rotate the secret for an extension instance. */
contributorRotateSecretForExtensionInstance: this.requestFunctionFactory(
descriptors.contributorRotateSecretForExtensionInstance,
),
/** Authenticate your external application using the extensionInstanceSecret. */
extensionAuthenticateInstance: this.requestFunctionFactory(
descriptors.extensionAuthenticateInstance,
),
/** Consent to extension scopes. */
extensionConsentToExtensionScopes: this.requestFunctionFactory(
descriptors.extensionConsentToExtensionScopes,
),
/** List ExtensionInstances. */
extensionListExtensionInstances: this.requestFunctionFactory(
descriptors.extensionListExtensionInstances,
),
/** Create an ExtensionInstance. */
extensionCreateExtensionInstance: this.requestFunctionFactory(
descriptors.extensionCreateExtensionInstance,
),
/** Create an access token retrieval key for an extension instance. */
extensionCreateRetrievalKey: this.requestFunctionFactory(
descriptors.extensionCreateRetrievalKey,
),
/** Get an ExtensionInstance. */
extensionGetExtensionInstance: this.requestFunctionFactory(
descriptors.extensionGetExtensionInstance,
),
/** Delete an ExtensionInstance. */
extensionDeleteExtensionInstance: this.requestFunctionFactory(
descriptors.extensionDeleteExtensionInstance,
),
/** Disable an ExtensionInstance. */
extensionDisableExtensionInstance: this.requestFunctionFactory(
descriptors.extensionDisableExtensionInstance,
),
/** Dry run a webhook with random or given values. */
extensionDryRunWebhook: this.requestFunctionFactory(
descriptors.extensionDryRunWebhook,
),
/** Enable an ExtensionInstance. */
extensionEnableExtensionInstance: this.requestFunctionFactory(
descriptors.extensionEnableExtensionInstance,
),
/** Get a Contributor. */
extensionGetContributor: this.requestFunctionFactory(
descriptors.extensionGetContributor,
),
/** Get an Extension. */
extensionGetExtension: this.requestFunctionFactory(
descriptors.extensionGetExtension,
),
/** Get the public key to verify the webhook signature. */
extensionGetPublicKey: this.requestFunctionFactory(
descriptors.extensionGetPublicKey,
),
/** List Contributors. */
extensionListContributors: this.requestFunctionFactory(
descriptors.extensionListContributors,
),
/** List Extensions. */
extensionListExtensions: this.requestFunctionFactory(
descriptors.extensionListExtensions,
),
};

/** The conversation API allows you to manage your support conversations. */
public readonly conversation = {
/** Get all conversation the authenticated user has created or has access to. */
Expand Down Expand Up @@ -427,14 +503,6 @@ export class MittwaldAPIV2Client extends ApiClientBase {
acceptCustomerInvite: this.requestFunctionFactory(
descriptors.customerAcceptCustomerInvite,
),
/** Get all customer categories. */
listOfCustomerCategories: this.requestFunctionFactory(
descriptors.customerListOfCustomerCategories,
),
/** Create a new customer category. */
createCategory: this.requestFunctionFactory(
descriptors.customerCreateCategory,
),
/** Create a CustomerInvite. */
createCustomerInvite: this.requestFunctionFactory(
descriptors.customerCreateCustomerInvite,
Expand All @@ -451,18 +519,6 @@ export class MittwaldAPIV2Client extends ApiClientBase {
declineCustomerInvite: this.requestFunctionFactory(
descriptors.customerDeclineCustomerInvite,
),
/** Get a customer category. */
getCustomerCategory: this.requestFunctionFactory(
descriptors.customerGetCustomerCategory,
),
/** Update a customer category. */
updateCategory: this.requestFunctionFactory(
descriptors.customerUpdateCategory,
),
/** Delete a customer category. */
deleteCategory: this.requestFunctionFactory(
descriptors.customerDeleteCategory,
),
/** Get a CustomerInvite. */
getCustomerInvite: this.requestFunctionFactory(
descriptors.customerGetCustomerInvite,
Expand Down Expand Up @@ -663,7 +719,7 @@ export class MittwaldAPIV2Client extends ApiClientBase {
),
};

/** The domain API allows you to manage your domains, DNS records and ingress resources. */
/** The domain API allows you to manage your domains, DNS records, SSL certificates and ingress resources. */
public readonly domain = {
/** Create a DNSZone. */
dnsCreateDnsZone: this.requestFunctionFactory(descriptors.dnsCreateDnsZone),
Expand Down Expand Up @@ -707,14 +763,6 @@ export class MittwaldAPIV2Client extends ApiClientBase {
getDomain: this.requestFunctionFactory(descriptors.domainGetDomain),
/** Delete a Domain. */
deleteDomain: this.requestFunctionFactory(descriptors.domainDeleteDomain),
/** Generate a list of domains from an input using AI. */
generateFromInput: this.requestFunctionFactory(
descriptors.domainGenerateFromInput,
),
/** Generate a list of domains from an input using AI, based on previously generated Domains and a context modification. */
generateInContext: this.requestFunctionFactory(
descriptors.domainGenerateInContext,
),
/** Get the latest screenshot's FileReference belonging to a Domain. */
getLatestScreenshot: this.requestFunctionFactory(
descriptors.domainGetLatestScreenshot,
Expand All @@ -729,6 +777,8 @@ export class MittwaldAPIV2Client extends ApiClientBase {
resendDomainEmail: this.requestFunctionFactory(
descriptors.domainResendDomainEmail,
),
/** Suggest a list of domains based on a prompt using AI. */
suggest: this.requestFunctionFactory(descriptors.domainSuggest),
/** Update the auth code of a Domain. */
updateDomainAuthCode: this.requestFunctionFactory(
descriptors.domainUpdateDomainAuthCode,
Expand Down Expand Up @@ -761,6 +811,10 @@ export class MittwaldAPIV2Client extends ApiClientBase {
ingressIngressVerifyOwnership: this.requestFunctionFactory(
descriptors.ingressIngressVerifyOwnership,
),
/** List Ingresses compatible with a certificate. */
ingressListIngressesCompatibleWithCertificate: this.requestFunctionFactory(
descriptors.ingressListIngressesCompatibleWithCertificate,
),
/** Update the paths of an Ingress. */
ingressUpdateIngressPaths: this.requestFunctionFactory(
descriptors.ingressUpdateIngressPaths,
Expand All @@ -773,69 +827,45 @@ export class MittwaldAPIV2Client extends ApiClientBase {
ingressUpdateIngressTls: this.requestFunctionFactory(
descriptors.ingressUpdateIngressTls,
),
};

/** The marketplace API allows you to manage extensions and more information regaring the marketplace. */
public readonly marketplace = {
/** Authenticate your external application using the extensionInstanceSecret. */
extensionAuthenticateInstance: this.requestFunctionFactory(
descriptors.extensionAuthenticateInstance,
/** Check the replacement of a Certificate. */
sslCheckReplaceCertificate: this.requestFunctionFactory(
descriptors.sslCheckReplaceCertificate,
),
/** Consent to extension scopes. */
extensionConsentToExtensionScopes: this.requestFunctionFactory(
descriptors.extensionConsentToExtensionScopes,
/** List CertificateRequests belonging to a Project or an Ingress. */
sslListCertificateRequests: this.requestFunctionFactory(
descriptors.sslListCertificateRequests,
),
/** List ExtensionInstances. */
extensionListExtensionInstances: this.requestFunctionFactory(
descriptors.extensionListExtensionInstances,
/** Create a CertificateRequest. */
sslCreateCertificateRequest: this.requestFunctionFactory(
descriptors.sslCreateCertificateRequest,
),
/** Create an ExtensionInstance. */
extensionCreateExtensionInstance: this.requestFunctionFactory(
descriptors.extensionCreateExtensionInstance,
/** Delete a CertificateRequest. */
sslDeleteCertificateRequest: this.requestFunctionFactory(
descriptors.sslDeleteCertificateRequest,
),
/** Create an access token retrieval key for an extension instance. */
extensionCreateRetrievalKey: this.requestFunctionFactory(
descriptors.extensionCreateRetrievalKey,
/** Delete a Certificate. */
sslDeleteCertificate: this.requestFunctionFactory(
descriptors.sslDeleteCertificate,
),
/** Get an ExtensionInstance. */
extensionGetExtensionInstance: this.requestFunctionFactory(
descriptors.extensionGetExtensionInstance,
/** Get a CertificateRequest. */
sslGetCertificateRequest: this.requestFunctionFactory(
descriptors.sslGetCertificateRequest,
),
/** Delete an ExtensionInstance. */
extensionDeleteExtensionInstance: this.requestFunctionFactory(
descriptors.extensionDeleteExtensionInstance,
),
/** Disable an ExtensionInstance. */
extensionDisableExtensionInstance: this.requestFunctionFactory(
descriptors.extensionDisableExtensionInstance,
),
/** Enable an ExtensionInstance. */
extensionEnableExtensionInstance: this.requestFunctionFactory(
descriptors.extensionEnableExtensionInstance,
),
/** Get a Contributor. */
extensionGetContributor: this.requestFunctionFactory(
descriptors.extensionGetContributor,
),
/** Get an Extension. */
extensionGetExtension: this.requestFunctionFactory(
descriptors.extensionGetExtension,
),
/** Get the public key to verify the webhook signature. */
extensionGetPublicKey: this.requestFunctionFactory(
descriptors.extensionGetPublicKey,
/** Get a Certificate. */
sslGetCertificate: this.requestFunctionFactory(
descriptors.sslGetCertificate,
),
/** List Contributors. */
extensionListContributors: this.requestFunctionFactory(
descriptors.extensionListContributors,
/** Update a Certificate. */
sslReplaceCertificate: this.requestFunctionFactory(
descriptors.sslReplaceCertificate,
),
/** List Extensions. */
extensionListExtensions: this.requestFunctionFactory(
descriptors.extensionListExtensions,
/** List Certificates belonging to a Project or an Ingress. */
sslListCertificates: this.requestFunctionFactory(
descriptors.sslListCertificates,
),
/** Rotate the secret for an extension instance. */
contributorRotateSecretForExtensionInstance: this.requestFunctionFactory(
descriptors.contributorRotateSecretForExtensionInstance,
/** Update the certificate of a CertificateRequest. */
sslSetCertificateRequestCertificate: this.requestFunctionFactory(
descriptors.sslSetCertificateRequestCertificate,
),
};

Expand All @@ -855,7 +885,7 @@ export class MittwaldAPIV2Client extends ApiClientBase {
),
/** Get a File. */
getFile: this.requestFunctionFactory(descriptors.fileGetFile),
/** Get a File. */
/** Get a File with user-friendly url. */
getFileWithName: this.requestFunctionFactory(
descriptors.fileGetFileWithName,
),
Expand Down
Loading

0 comments on commit e096ee7

Please sign in to comment.