@mittwald/api-client 4.121.0 → 4.123.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/generated/v2/client-react.js +2 -2
- package/dist/esm/generated/v2/client.js +10 -6
- package/dist/esm/generated/v2/descriptors.js +29 -17
- package/dist/esm/version.js +1 -1
- package/dist/types/generated/v2/client-react.d.ts +55 -44
- package/dist/types/generated/v2/client.d.ts +634 -486
- package/dist/types/generated/v2/descriptors.d.ts +11 -7
- package/dist/types/generated/v2/types.d.ts +227 -117
- package/dist/types/version.d.ts +1 -1
- package/package.json +2 -2
|
@@ -194,6 +194,8 @@ const buildMarketplaceApi = (baseClient) => ({
|
|
|
194
194
|
extensionListExtensionInstances: new ApiCallAsyncResourceFactory(descriptors.extensionListExtensionInstances, baseClient.marketplace.extensionListExtensionInstances).getApiResource,
|
|
195
195
|
/** Get an ExtensionInstance. */
|
|
196
196
|
extensionGetExtensionInstance: new ApiCallAsyncResourceFactory(descriptors.extensionGetExtensionInstance, baseClient.marketplace.extensionGetExtensionInstance).getApiResource,
|
|
197
|
+
/** Get Extension of own contributor. */
|
|
198
|
+
extensionGetOwnExtension: new ApiCallAsyncResourceFactory(descriptors.extensionGetOwnExtension, baseClient.marketplace.extensionGetOwnExtension).getApiResource,
|
|
197
199
|
/** Get a Contributor. */
|
|
198
200
|
extensionGetContributor: new ApiCallAsyncResourceFactory(descriptors.extensionGetContributor, baseClient.marketplace.extensionGetContributor).getApiResource,
|
|
199
201
|
/** Get the ExtensionInstance of a specific customer and extension, if existing. */
|
|
@@ -202,8 +204,6 @@ const buildMarketplaceApi = (baseClient) => ({
|
|
|
202
204
|
extensionGetExtensionInstanceForProject: new ApiCallAsyncResourceFactory(descriptors.extensionGetExtensionInstanceForProject, baseClient.marketplace.extensionGetExtensionInstanceForProject).getApiResource,
|
|
203
205
|
/** Get an Extension. */
|
|
204
206
|
extensionGetExtension: new ApiCallAsyncResourceFactory(descriptors.extensionGetExtension, baseClient.marketplace.extensionGetExtension).getApiResource,
|
|
205
|
-
/** Get Extension of own contributor. */
|
|
206
|
-
extensionGetOwnExtension: new ApiCallAsyncResourceFactory(descriptors.extensionGetOwnExtension, baseClient.marketplace.extensionGetOwnExtension).getApiResource,
|
|
207
207
|
/** Get the public key to verify the webhook signature. */
|
|
208
208
|
extensionGetPublicKey: new ApiCallAsyncResourceFactory(descriptors.extensionGetPublicKey, baseClient.marketplace.extensionGetPublicKey).getApiResource,
|
|
209
209
|
/** List Contributors. */
|
|
@@ -152,6 +152,8 @@ export class MittwaldAPIV2Client extends ApiClientBase {
|
|
|
152
152
|
contributorRotateSecretForExtensionInstance: this.requestFunctionFactory(descriptors.contributorRotateSecretForExtensionInstance),
|
|
153
153
|
/** Authenticate your external application using the extensionInstanceSecret. */
|
|
154
154
|
extensionAuthenticateInstance: this.requestFunctionFactory(descriptors.extensionAuthenticateInstance),
|
|
155
|
+
/** Authenticate your external application using the extensionInstanceSecret. */
|
|
156
|
+
extensionAuthenticateWithSessionToken: this.requestFunctionFactory(descriptors.extensionAuthenticateWithSessionToken),
|
|
155
157
|
/** Consent to extension scopes. */
|
|
156
158
|
extensionConsentToExtensionScopes: this.requestFunctionFactory(descriptors.extensionConsentToExtensionScopes),
|
|
157
159
|
/** List ExtensionInstances. */
|
|
@@ -164,14 +166,20 @@ export class MittwaldAPIV2Client extends ApiClientBase {
|
|
|
164
166
|
extensionGetExtensionInstance: this.requestFunctionFactory(descriptors.extensionGetExtensionInstance),
|
|
165
167
|
/** Delete an ExtensionInstance. */
|
|
166
168
|
extensionDeleteExtensionInstance: this.requestFunctionFactory(descriptors.extensionDeleteExtensionInstance),
|
|
169
|
+
/** Get Extension of own contributor. */
|
|
170
|
+
extensionGetOwnExtension: this.requestFunctionFactory(descriptors.extensionGetOwnExtension),
|
|
171
|
+
/** Delete an extension. */
|
|
172
|
+
extensionDeleteExtension: this.requestFunctionFactory(descriptors.extensionDeleteExtension),
|
|
173
|
+
/** Patch Extension. */
|
|
174
|
+
extensionPatchExtension: this.requestFunctionFactory(descriptors.extensionPatchExtension),
|
|
167
175
|
/** Disable an ExtensionInstance. */
|
|
168
176
|
extensionDisableExtensionInstance: this.requestFunctionFactory(descriptors.extensionDisableExtensionInstance),
|
|
169
177
|
/** Dry run a webhook with random or given values. */
|
|
170
178
|
extensionDryRunWebhook: this.requestFunctionFactory(descriptors.extensionDryRunWebhook),
|
|
171
179
|
/** Enable an ExtensionInstance. */
|
|
172
180
|
extensionEnableExtensionInstance: this.requestFunctionFactory(descriptors.extensionEnableExtensionInstance),
|
|
173
|
-
/** Generate a session
|
|
174
|
-
|
|
181
|
+
/** Generate a session token to transmit it to the extensions frontend fragment. */
|
|
182
|
+
extensionGenerateSessionToken: this.requestFunctionFactory(descriptors.extensionGenerateSessionToken),
|
|
175
183
|
/** Get a Contributor. */
|
|
176
184
|
extensionGetContributor: this.requestFunctionFactory(descriptors.extensionGetContributor),
|
|
177
185
|
/** Get the ExtensionInstance of a specific customer and extension, if existing. */
|
|
@@ -180,10 +188,6 @@ export class MittwaldAPIV2Client extends ApiClientBase {
|
|
|
180
188
|
extensionGetExtensionInstanceForProject: this.requestFunctionFactory(descriptors.extensionGetExtensionInstanceForProject),
|
|
181
189
|
/** Get an Extension. */
|
|
182
190
|
extensionGetExtension: this.requestFunctionFactory(descriptors.extensionGetExtension),
|
|
183
|
-
/** Get Extension of own contributor. */
|
|
184
|
-
extensionGetOwnExtension: this.requestFunctionFactory(descriptors.extensionGetOwnExtension),
|
|
185
|
-
/** Patch Extension. */
|
|
186
|
-
extensionPatchExtension: this.requestFunctionFactory(descriptors.extensionPatchExtension),
|
|
187
191
|
/** Get the public key to verify the webhook signature. */
|
|
188
192
|
extensionGetPublicKey: this.requestFunctionFactory(descriptors.extensionGetPublicKey),
|
|
189
193
|
/** List Contributors. */
|
|
@@ -946,6 +946,12 @@ export const extensionAuthenticateInstance = {
|
|
|
946
946
|
method: "POST",
|
|
947
947
|
operationId: "extension-authenticate-instance",
|
|
948
948
|
};
|
|
949
|
+
/** Authenticate your external application using the extensionInstanceSecret. */
|
|
950
|
+
export const extensionAuthenticateWithSessionToken = {
|
|
951
|
+
path: "/v2/authenticate-session-token",
|
|
952
|
+
method: "POST",
|
|
953
|
+
operationId: "extension-authenticate-with-session-token",
|
|
954
|
+
};
|
|
949
955
|
/** Consent to extension scopes. */
|
|
950
956
|
export const extensionConsentToExtensionScopes = {
|
|
951
957
|
path: "/v2/extension-instances/{extensionInstanceId}/scopes",
|
|
@@ -982,6 +988,24 @@ export const extensionDeleteExtensionInstance = {
|
|
|
982
988
|
method: "DELETE",
|
|
983
989
|
operationId: "extension-delete-extension-instance",
|
|
984
990
|
};
|
|
991
|
+
/** Get Extension of own contributor. */
|
|
992
|
+
export const extensionGetOwnExtension = {
|
|
993
|
+
path: "/v2/contributors/{contributorId}/extensions/{extensionId}",
|
|
994
|
+
method: "GET",
|
|
995
|
+
operationId: "extension-get-own-extension",
|
|
996
|
+
};
|
|
997
|
+
/** Delete an extension. */
|
|
998
|
+
export const extensionDeleteExtension = {
|
|
999
|
+
path: "/v2/contributors/{contributorId}/extensions/{extensionId}",
|
|
1000
|
+
method: "DELETE",
|
|
1001
|
+
operationId: "extension-delete-extension",
|
|
1002
|
+
};
|
|
1003
|
+
/** Patch Extension. */
|
|
1004
|
+
export const extensionPatchExtension = {
|
|
1005
|
+
path: "/v2/contributors/{contributorId}/extensions/{extensionId}",
|
|
1006
|
+
method: "PATCH",
|
|
1007
|
+
operationId: "extension-patch-extension",
|
|
1008
|
+
};
|
|
985
1009
|
/** Disable an ExtensionInstance. */
|
|
986
1010
|
export const extensionDisableExtensionInstance = {
|
|
987
1011
|
path: "/v2/extension-instances/{extensionInstanceId}/actions/disable",
|
|
@@ -1000,11 +1024,11 @@ export const extensionEnableExtensionInstance = {
|
|
|
1000
1024
|
method: "POST",
|
|
1001
1025
|
operationId: "extension-enable-extension-instance",
|
|
1002
1026
|
};
|
|
1003
|
-
/** Generate a session
|
|
1004
|
-
export const
|
|
1005
|
-
path: "/v2/extension-instances/{extensionInstanceId}/
|
|
1027
|
+
/** Generate a session token to transmit it to the extensions frontend fragment. */
|
|
1028
|
+
export const extensionGenerateSessionToken = {
|
|
1029
|
+
path: "/v2/extension-instances/{extensionInstanceId}/sessions/{sessionId}",
|
|
1006
1030
|
method: "POST",
|
|
1007
|
-
operationId: "extension-generate-session-
|
|
1031
|
+
operationId: "extension-generate-session-token",
|
|
1008
1032
|
};
|
|
1009
1033
|
/** Get a Contributor. */
|
|
1010
1034
|
export const extensionGetContributor = {
|
|
@@ -1030,21 +1054,9 @@ export const extensionGetExtension = {
|
|
|
1030
1054
|
method: "GET",
|
|
1031
1055
|
operationId: "extension-get-extension",
|
|
1032
1056
|
};
|
|
1033
|
-
/** Get Extension of own contributor. */
|
|
1034
|
-
export const extensionGetOwnExtension = {
|
|
1035
|
-
path: "/v2/contributors/{contributorId}/extensions/{extensionId}",
|
|
1036
|
-
method: "GET",
|
|
1037
|
-
operationId: "extension-get-own-extension",
|
|
1038
|
-
};
|
|
1039
|
-
/** Patch Extension. */
|
|
1040
|
-
export const extensionPatchExtension = {
|
|
1041
|
-
path: "/v2/contributors/{contributorId}/extensions/{extensionId}",
|
|
1042
|
-
method: "PATCH",
|
|
1043
|
-
operationId: "extension-patch-extension",
|
|
1044
|
-
};
|
|
1045
1057
|
/** Get the public key to verify the webhook signature. */
|
|
1046
1058
|
export const extensionGetPublicKey = {
|
|
1047
|
-
path: "/v2/
|
|
1059
|
+
path: "/v2/public-keys/{serial}",
|
|
1048
1060
|
method: "GET",
|
|
1049
1061
|
operationId: "extension-get-public-key",
|
|
1050
1062
|
};
|
package/dist/esm/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const MittwaldAPIClientVersion = '4.
|
|
1
|
+
export const MittwaldAPIClientVersion = '4.122.0';
|
|
@@ -292,8 +292,12 @@ declare const buildBackupApi: (baseClient: MittwaldAPIV2Client) => {
|
|
|
292
292
|
} | undefined;
|
|
293
293
|
queryParameters?: {
|
|
294
294
|
[x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
|
|
295
|
+
searchTerm?: string | undefined;
|
|
295
296
|
withExportsOnly?: boolean | undefined;
|
|
296
297
|
sortOrder?: import("./types.js").MittwaldAPIV2.Components.Schemas.BackupBackupSortOrder | undefined;
|
|
298
|
+
limit?: number | undefined;
|
|
299
|
+
skip?: number | undefined;
|
|
300
|
+
page?: number | undefined;
|
|
297
301
|
} | undefined;
|
|
298
302
|
}) => import("@mittwald/react-use-promise").AsyncResource<import("./types.js").MittwaldAPIV2.Components.Schemas.BackupProjectBackup[]>;
|
|
299
303
|
/** Get a ProjectBackupSchedule. */
|
|
@@ -926,8 +930,10 @@ declare const buildCustomerApi: (baseClient: MittwaldAPIV2Client) => {
|
|
|
926
930
|
customerId: string;
|
|
927
931
|
customerNumber: string;
|
|
928
932
|
executingUserRoles?: import("./types.js").MittwaldAPIV2.Components.Schemas.CustomerRole[] | undefined;
|
|
933
|
+
flags?: import("./types.js").MittwaldAPIV2.Components.Schemas.CustomerCustomerFlag[] | undefined;
|
|
929
934
|
isBanned?: boolean | undefined;
|
|
930
935
|
isInDefaultOfPayment?: boolean | undefined;
|
|
936
|
+
levelOfUndeliverableDunningNotice?: "first" | "second" | undefined;
|
|
931
937
|
memberCount: number;
|
|
932
938
|
name: string;
|
|
933
939
|
owner?: import("./types.js").MittwaldAPIV2.Components.Schemas.CustomerContact | undefined;
|
|
@@ -1400,6 +1406,50 @@ declare const buildMarketplaceApi: (baseClient: MittwaldAPIV2Client) => {
|
|
|
1400
1406
|
pendingInstallation: boolean;
|
|
1401
1407
|
pendingRemoval: boolean;
|
|
1402
1408
|
}>;
|
|
1409
|
+
/** Get Extension of own contributor. */
|
|
1410
|
+
extensionGetOwnExtension: (conf: {
|
|
1411
|
+
contributorId: string;
|
|
1412
|
+
extensionId: string;
|
|
1413
|
+
headers?: {
|
|
1414
|
+
[x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
|
|
1415
|
+
"x-access-token"?: string | undefined;
|
|
1416
|
+
} | undefined;
|
|
1417
|
+
}) => import("@mittwald/react-use-promise").AsyncResource<{
|
|
1418
|
+
assets: import("./types.js").MittwaldAPIV2.Components.Schemas.MarketplaceExtensionAsset[];
|
|
1419
|
+
backendComponents?: import("./types.js").MittwaldAPIV2.Components.Schemas.MarketplaceBackendComponents | undefined;
|
|
1420
|
+
blocked?: boolean | undefined;
|
|
1421
|
+
context?: import("./types.js").MittwaldAPIV2.Components.Schemas.MarketplaceContext | undefined;
|
|
1422
|
+
contributorId: string;
|
|
1423
|
+
deprecation?: import("./types.js").MittwaldAPIV2.Components.Schemas.MarketplaceExtensionDeprecation | undefined;
|
|
1424
|
+
description?: string | undefined;
|
|
1425
|
+
detailedDescriptions?: import("./types.js").MittwaldAPIV2.Components.Schemas.MarketplaceDetailedDescriptions | undefined;
|
|
1426
|
+
disabled?: boolean | undefined;
|
|
1427
|
+
externalFrontends?: import("./types.js").MittwaldAPIV2.Components.Schemas.MarketplaceExternalComponent[] | undefined;
|
|
1428
|
+
frontendComponents?: import("./types.js").MittwaldAPIV2.Components.Schemas.MarketplaceExternalComponent[] | undefined;
|
|
1429
|
+
frontendFragments?: {
|
|
1430
|
+
[k: string]: import("./types.js").MittwaldAPIV2.Components.Schemas.MarketplaceFrontendFragment;
|
|
1431
|
+
} | undefined;
|
|
1432
|
+
functional: boolean;
|
|
1433
|
+
id: string;
|
|
1434
|
+
logoRefId?: string | undefined;
|
|
1435
|
+
name: string;
|
|
1436
|
+
published: boolean;
|
|
1437
|
+
requestedChanges?: {
|
|
1438
|
+
context?: import("./types.js").MittwaldAPIV2.Components.Schemas.MarketplaceContext;
|
|
1439
|
+
scopes?: string[];
|
|
1440
|
+
webhookUrls?: import("./types.js").MittwaldAPIV2.Components.Schemas.MarketplaceWebhookUrls;
|
|
1441
|
+
} | undefined;
|
|
1442
|
+
scopes?: string[] | undefined;
|
|
1443
|
+
secrets: import("./types.js").MittwaldAPIV2.Components.Schemas.MarketplaceExtensionSecret[];
|
|
1444
|
+
state?: "enabled" | "blocked" | "disabled" | undefined;
|
|
1445
|
+
statistics: import("./types.js").MittwaldAPIV2.Components.Schemas.MarketplaceExtensionStatistics;
|
|
1446
|
+
subTitle?: import("./types.js").MittwaldAPIV2.Components.Schemas.MarketplaceSubTitle | undefined;
|
|
1447
|
+
support?: import("./types.js").MittwaldAPIV2.Components.Schemas.MarketplaceSupportMeta | undefined;
|
|
1448
|
+
tags?: string[] | undefined;
|
|
1449
|
+
verificationRequested: boolean;
|
|
1450
|
+
verified: boolean;
|
|
1451
|
+
webhookUrls?: import("./types.js").MittwaldAPIV2.Components.Schemas.MarketplaceWebhookUrls | undefined;
|
|
1452
|
+
}>;
|
|
1403
1453
|
/** Get a Contributor. */
|
|
1404
1454
|
extensionGetContributor: (conf: {
|
|
1405
1455
|
contributorId: string;
|
|
@@ -1493,56 +1543,17 @@ declare const buildMarketplaceApi: (baseClient: MittwaldAPIV2Client) => {
|
|
|
1493
1543
|
support: import("./types.js").MittwaldAPIV2.Components.Schemas.MarketplaceSupportMeta;
|
|
1494
1544
|
tags: string[];
|
|
1495
1545
|
}>;
|
|
1496
|
-
/** Get Extension of own contributor. */
|
|
1497
|
-
extensionGetOwnExtension: (conf: {
|
|
1498
|
-
contributorId: string;
|
|
1499
|
-
extensionId: string;
|
|
1500
|
-
headers?: {
|
|
1501
|
-
[x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
|
|
1502
|
-
"x-access-token"?: string | undefined;
|
|
1503
|
-
} | undefined;
|
|
1504
|
-
}) => import("@mittwald/react-use-promise").AsyncResource<{
|
|
1505
|
-
assets: import("./types.js").MittwaldAPIV2.Components.Schemas.MarketplaceExtensionAsset[];
|
|
1506
|
-
backendComponents?: import("./types.js").MittwaldAPIV2.Components.Schemas.MarketplaceBackendComponents | undefined;
|
|
1507
|
-
blocked?: boolean | undefined;
|
|
1508
|
-
context?: import("./types.js").MittwaldAPIV2.Components.Schemas.MarketplaceContext | undefined;
|
|
1509
|
-
contributorId: string;
|
|
1510
|
-
deprecation?: import("./types.js").MittwaldAPIV2.Components.Schemas.MarketplaceExtensionDeprecation | undefined;
|
|
1511
|
-
description?: string | undefined;
|
|
1512
|
-
detailedDescriptions?: import("./types.js").MittwaldAPIV2.Components.Schemas.MarketplaceDetailedDescriptions | undefined;
|
|
1513
|
-
disabled?: boolean | undefined;
|
|
1514
|
-
externalFrontends?: import("./types.js").MittwaldAPIV2.Components.Schemas.MarketplaceExternalComponent[] | undefined;
|
|
1515
|
-
frontendComponents?: import("./types.js").MittwaldAPIV2.Components.Schemas.MarketplaceExternalComponent[] | undefined;
|
|
1516
|
-
frontendFragments?: {
|
|
1517
|
-
[k: string]: import("./types.js").MittwaldAPIV2.Components.Schemas.MarketplaceFrontendFragment;
|
|
1518
|
-
} | undefined;
|
|
1519
|
-
functional: boolean;
|
|
1520
|
-
id: string;
|
|
1521
|
-
logoRefId?: string | undefined;
|
|
1522
|
-
name: string;
|
|
1523
|
-
published: boolean;
|
|
1524
|
-
requestedChanges?: {
|
|
1525
|
-
context?: import("./types.js").MittwaldAPIV2.Components.Schemas.MarketplaceContext;
|
|
1526
|
-
scopes?: string[];
|
|
1527
|
-
webhookUrls?: import("./types.js").MittwaldAPIV2.Components.Schemas.MarketplaceWebhookUrls;
|
|
1528
|
-
} | undefined;
|
|
1529
|
-
scopes?: string[] | undefined;
|
|
1530
|
-
secrets: import("./types.js").MittwaldAPIV2.Components.Schemas.MarketplaceExtensionSecret[];
|
|
1531
|
-
state?: "enabled" | "blocked" | "disabled" | undefined;
|
|
1532
|
-
statistics: import("./types.js").MittwaldAPIV2.Components.Schemas.MarketplaceExtensionStatistics;
|
|
1533
|
-
subTitle?: import("./types.js").MittwaldAPIV2.Components.Schemas.MarketplaceSubTitle | undefined;
|
|
1534
|
-
support?: import("./types.js").MittwaldAPIV2.Components.Schemas.MarketplaceSupportMeta | undefined;
|
|
1535
|
-
tags?: string[] | undefined;
|
|
1536
|
-
verificationRequested: boolean;
|
|
1537
|
-
verified: boolean;
|
|
1538
|
-
webhookUrls?: import("./types.js").MittwaldAPIV2.Components.Schemas.MarketplaceWebhookUrls | undefined;
|
|
1539
|
-
}>;
|
|
1540
1546
|
/** Get the public key to verify the webhook signature. */
|
|
1541
1547
|
extensionGetPublicKey: (conf: {
|
|
1542
1548
|
serial: string;
|
|
1543
1549
|
headers?: {
|
|
1544
1550
|
[x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
|
|
1545
1551
|
} | undefined;
|
|
1552
|
+
queryParameters?: {
|
|
1553
|
+
[x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
|
|
1554
|
+
purpose?: "webhook" | "session_token" | undefined;
|
|
1555
|
+
format?: "raw" | "spki" | undefined;
|
|
1556
|
+
} | undefined;
|
|
1546
1557
|
}) => import("@mittwald/react-use-promise").AsyncResource<{
|
|
1547
1558
|
algorithm: string;
|
|
1548
1559
|
key: string;
|