Skip to content

Commit 406a7ef

Browse files
feat: update generated client
1 parent f18037c commit 406a7ef

4 files changed

Lines changed: 259 additions & 1 deletion

File tree

packages/mittwald/spec/openapi.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

packages/mittwald/src/generated/v2/client.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,10 @@ export class MittwaldAPIV2Client extends ApiClientBase {
321321
extensionGetOwnExtension: this.requestFunctionFactory(
322322
descriptors.extensionGetOwnExtension,
323323
),
324+
/** Patch Extension. */
325+
extensionPatchExtension: this.requestFunctionFactory(
326+
descriptors.extensionPatchExtension,
327+
),
324328
/** Get the public key to verify the webhook signature. */
325329
extensionGetPublicKey: this.requestFunctionFactory(
326330
descriptors.extensionGetPublicKey,
@@ -337,6 +341,10 @@ export class MittwaldAPIV2Client extends ApiClientBase {
337341
extensionListOwnExtensions: this.requestFunctionFactory(
338342
descriptors.extensionListOwnExtensions,
339343
),
344+
/** Register an Extension. */
345+
extensionRegisterExtension: this.requestFunctionFactory(
346+
descriptors.extensionRegisterExtension,
347+
),
340348
};
341349

342350
/** The conversation API allows you to manage your support conversations. */

packages/mittwald/src/generated/v2/descriptors.ts

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6465,6 +6465,50 @@ export const extensionGetOwnExtension: OpenAPIOperation<
64656465
operationId: "extension-get-own-extension",
64666466
};
64676467

6468+
/** Patch Extension. */
6469+
export const extensionPatchExtension: OpenAPIOperation<
6470+
RequestType<
6471+
Simplify<MittwaldAPIV2.Paths.V2ContributorsContributorIdExtensionsExtensionId.Patch.Parameters.RequestBody>,
6472+
Simplify<MittwaldAPIV2.Paths.V2ContributorsContributorIdExtensionsExtensionId.Patch.Parameters.Path>,
6473+
Simplify<MittwaldAPIV2.Paths.V2ContributorsContributorIdExtensionsExtensionId.Patch.Parameters.Query>,
6474+
Simplify<MittwaldAPIV2.Paths.V2ContributorsContributorIdExtensionsExtensionId.Patch.Parameters.Header>
6475+
>,
6476+
| Response<
6477+
Simplify<MittwaldAPIV2.Paths.V2ContributorsContributorIdExtensionsExtensionId.Patch.Responses.$200.Content.ApplicationJson>,
6478+
200,
6479+
"application/json"
6480+
>
6481+
| Response<
6482+
Simplify<MittwaldAPIV2.Paths.V2ContributorsContributorIdExtensionsExtensionId.Patch.Responses.$400.Content.ApplicationJson>,
6483+
400,
6484+
"application/json"
6485+
>
6486+
| Response<
6487+
Simplify<MittwaldAPIV2.Paths.V2ContributorsContributorIdExtensionsExtensionId.Patch.Responses.$404.Content.ApplicationJson>,
6488+
404,
6489+
"application/json"
6490+
>
6491+
| Response<
6492+
Simplify<MittwaldAPIV2.Paths.V2ContributorsContributorIdExtensionsExtensionId.Patch.Responses.$409.Content.ApplicationJson>,
6493+
409,
6494+
"application/json"
6495+
>
6496+
| Response<
6497+
Simplify<MittwaldAPIV2.Paths.V2ContributorsContributorIdExtensionsExtensionId.Patch.Responses.$429.Content.ApplicationJson>,
6498+
429,
6499+
"application/json"
6500+
>
6501+
| Response<
6502+
Simplify<MittwaldAPIV2.Paths.V2ContributorsContributorIdExtensionsExtensionId.Patch.Responses.Default.Content.ApplicationJson>,
6503+
"default",
6504+
"application/json"
6505+
>
6506+
> = {
6507+
path: "/v2/contributors/{contributorId}/extensions/{extensionId}",
6508+
method: "PATCH",
6509+
operationId: "extension-patch-extension",
6510+
};
6511+
64686512
/** Get the public key to verify the webhook signature. */
64696513
export const extensionGetPublicKey: OpenAPIOperation<
64706514
RequestType<
@@ -6586,6 +6630,40 @@ export const extensionListOwnExtensions: OpenAPIOperation<
65866630
operationId: "extension-list-own-extensions",
65876631
};
65886632

6633+
/** Register an Extension. */
6634+
export const extensionRegisterExtension: OpenAPIOperation<
6635+
RequestType<
6636+
Simplify<MittwaldAPIV2.Paths.V2ContributorsContributorIdExtensions.Post.Parameters.RequestBody>,
6637+
Simplify<MittwaldAPIV2.Paths.V2ContributorsContributorIdExtensions.Post.Parameters.Path>,
6638+
Simplify<MittwaldAPIV2.Paths.V2ContributorsContributorIdExtensions.Post.Parameters.Query>,
6639+
Simplify<MittwaldAPIV2.Paths.V2ContributorsContributorIdExtensions.Post.Parameters.Header>
6640+
>,
6641+
| Response<
6642+
Simplify<MittwaldAPIV2.Paths.V2ContributorsContributorIdExtensions.Post.Responses.$201.Content.ApplicationJson>,
6643+
201,
6644+
"application/json"
6645+
>
6646+
| Response<
6647+
Simplify<MittwaldAPIV2.Paths.V2ContributorsContributorIdExtensions.Post.Responses.$400.Content.ApplicationJson>,
6648+
400,
6649+
"application/json"
6650+
>
6651+
| Response<
6652+
Simplify<MittwaldAPIV2.Paths.V2ContributorsContributorIdExtensions.Post.Responses.$429.Content.ApplicationJson>,
6653+
429,
6654+
"application/json"
6655+
>
6656+
| Response<
6657+
Simplify<MittwaldAPIV2.Paths.V2ContributorsContributorIdExtensions.Post.Responses.Default.Content.ApplicationJson>,
6658+
"default",
6659+
"application/json"
6660+
>
6661+
> = {
6662+
path: "/v2/contributors/{contributorId}/extensions",
6663+
method: "POST",
6664+
operationId: "extension-register-extension",
6665+
};
6666+
65896667
/** Create a File. */
65906668
export const fileCreateFile: OpenAPIOperation<
65916669
RequestType<

packages/mittwald/src/generated/v2/types.ts

Lines changed: 172 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1769,6 +1769,17 @@ export declare module MittwaldAPIV2 {
17691769
>;
17701770
}
17711771

1772+
namespace ExtensionPatchExtension {
1773+
type RequestData = InferredRequestData<
1774+
typeof descriptors.extensionPatchExtension
1775+
>;
1776+
type ResponseData<TStatus extends HttpStatus = 200> =
1777+
InferredResponseData<
1778+
typeof descriptors.extensionPatchExtension,
1779+
TStatus
1780+
>;
1781+
}
1782+
17721783
namespace ExtensionGetPublicKey {
17731784
type RequestData = InferredRequestData<
17741785
typeof descriptors.extensionGetPublicKey
@@ -1810,6 +1821,17 @@ export declare module MittwaldAPIV2 {
18101821
>;
18111822
}
18121823

1824+
namespace ExtensionRegisterExtension {
1825+
type RequestData = InferredRequestData<
1826+
typeof descriptors.extensionRegisterExtension
1827+
>;
1828+
type ResponseData<TStatus extends HttpStatus = 200> =
1829+
InferredResponseData<
1830+
typeof descriptors.extensionRegisterExtension,
1831+
TStatus
1832+
>;
1833+
}
1834+
18131835
namespace FileCreateFile {
18141836
type RequestData = InferredRequestData<typeof descriptors.fileCreateFile>;
18151837
type ResponseData<TStatus extends HttpStatus = 200> =
@@ -4873,6 +4895,7 @@ export declare module MittwaldAPIV2 {
48734895
webhookUrls?: MittwaldAPIV2.Components.Schemas.MarketplaceWebhookUrls;
48744896
};
48754897
scopes?: string[];
4898+
secrets: MittwaldAPIV2.Components.Schemas.MarketplaceExtensionSecret[];
48764899
/**
48774900
* deprecated
48784901
*/
@@ -6723,6 +6746,11 @@ export declare module MittwaldAPIV2 {
67236746
value: string;
67246747
}
67256748

6749+
export interface MarketplaceExtensionSecret {
6750+
secretId: string;
6751+
usableUntil?: string;
6752+
}
6753+
67266754
export interface CommonsAddress {
67276755
street: string;
67286756
houseNumber: string;
@@ -16673,6 +16701,86 @@ export declare module MittwaldAPIV2 {
1667316701
}
1667416702
}
1667516703
}
16704+
16705+
namespace Patch {
16706+
namespace Parameters {
16707+
export type Path = {
16708+
contributorId: string;
16709+
extensionId: string;
16710+
};
16711+
16712+
export interface RequestBody {
16713+
deprecation?: MittwaldAPIV2.Components.Schemas.MarketplaceExtensionDeprecation;
16714+
description?: string;
16715+
detailedDescriptions?: MittwaldAPIV2.Components.Schemas.MarketplaceDetailedDescriptions;
16716+
externalFrontends?: MittwaldAPIV2.Components.Schemas.MarketplaceExternalComponent[];
16717+
frontendFragments?: {
16718+
[
16719+
k: string
16720+
]: MittwaldAPIV2.Components.Schemas.MarketplaceFrontendFragment;
16721+
};
16722+
name?: string;
16723+
scopes?: string[];
16724+
subTitle?: MittwaldAPIV2.Components.Schemas.MarketplaceSubTitle;
16725+
support?: MittwaldAPIV2.Components.Schemas.MarketplaceSupportMeta;
16726+
tags?: string[];
16727+
webhookUrls?: MittwaldAPIV2.Components.Schemas.MarketplaceWebhookUrls;
16728+
}
16729+
16730+
export type Header =
16731+
{} & MittwaldAPIV2.Components.SecuritySchemes.CommonsAccessToken;
16732+
16733+
export type Query = {};
16734+
}
16735+
namespace Responses {
16736+
namespace $200 {
16737+
namespace Content {
16738+
export type ApplicationJson =
16739+
MittwaldAPIV2.Components.Schemas.MarketplaceOwnExtension;
16740+
}
16741+
}
16742+
16743+
namespace $400 {
16744+
namespace Content {
16745+
export interface ApplicationJson {
16746+
[k: string]: unknown;
16747+
}
16748+
}
16749+
}
16750+
16751+
namespace $404 {
16752+
namespace Content {
16753+
export interface ApplicationJson {
16754+
[k: string]: unknown;
16755+
}
16756+
}
16757+
}
16758+
16759+
namespace $409 {
16760+
namespace Content {
16761+
export interface ApplicationJson {
16762+
[k: string]: unknown;
16763+
}
16764+
}
16765+
}
16766+
16767+
namespace $429 {
16768+
namespace Content {
16769+
export interface ApplicationJson {
16770+
[k: string]: unknown;
16771+
}
16772+
}
16773+
}
16774+
16775+
namespace Default {
16776+
namespace Content {
16777+
export interface ApplicationJson {
16778+
[k: string]: unknown;
16779+
}
16780+
}
16781+
}
16782+
}
16783+
}
1667616784
}
1667716785

1667816786
namespace V2WebhookPublicKeysSerial {
@@ -16843,6 +16951,70 @@ export declare module MittwaldAPIV2 {
1684316951
}
1684416952
}
1684516953
}
16954+
16955+
namespace Post {
16956+
namespace Parameters {
16957+
export type Path = {
16958+
contributorId: string;
16959+
};
16960+
16961+
export interface RequestBody {
16962+
context?: MittwaldAPIV2.Components.Schemas.MarketplaceContext;
16963+
description?: string;
16964+
detailedDescriptions?: MittwaldAPIV2.Components.Schemas.MarketplaceDetailedDescriptions;
16965+
externalFrontend?: MittwaldAPIV2.Components.Schemas.MarketplaceExternalComponent[];
16966+
frontendFragments?: {
16967+
[
16968+
k: string
16969+
]: MittwaldAPIV2.Components.Schemas.MarketplaceFrontendFragment;
16970+
};
16971+
name: string;
16972+
scopes?: string[];
16973+
subTitle?: MittwaldAPIV2.Components.Schemas.MarketplaceSubTitle;
16974+
support?: MittwaldAPIV2.Components.Schemas.MarketplaceSupportMeta;
16975+
tags?: string[];
16976+
webhookURLs?: MittwaldAPIV2.Components.Schemas.MarketplaceWebhookUrls;
16977+
}
16978+
16979+
export type Header =
16980+
{} & MittwaldAPIV2.Components.SecuritySchemes.CommonsAccessToken;
16981+
16982+
export type Query = {};
16983+
}
16984+
namespace Responses {
16985+
namespace $201 {
16986+
namespace Content {
16987+
export interface ApplicationJson {
16988+
id: string;
16989+
}
16990+
}
16991+
}
16992+
16993+
namespace $400 {
16994+
namespace Content {
16995+
export interface ApplicationJson {
16996+
[k: string]: unknown;
16997+
}
16998+
}
16999+
}
17000+
17001+
namespace $429 {
17002+
namespace Content {
17003+
export interface ApplicationJson {
17004+
[k: string]: unknown;
17005+
}
17006+
}
17007+
}
17008+
17009+
namespace Default {
17010+
namespace Content {
17011+
export interface ApplicationJson {
17012+
[k: string]: unknown;
17013+
}
17014+
}
17015+
}
17016+
}
17017+
}
1684617018
}
1684717019

1684817020
namespace V2Files {

0 commit comments

Comments
 (0)