Skip to content

Commit 3dc622a

Browse files
committed
chore(update-schema): update aca-py schema to version 0.5.4
BREAKING CHANGE: New ACA-Py version introduced breaking changes in API
1 parent 2a9d03b commit 3dc622a

File tree

2 files changed

+3126
-2176
lines changed

2 files changed

+3126
-2176
lines changed

patches/api.patch

Lines changed: 79 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,17 @@
11
diff --git a/generated/openapi/api.ts b/generated/openapi/api.ts
2-
index 55f855a..98836fc 100644
2+
index 21f6a6f..ec1ff9e 100644
33
--- a/generated/openapi/api.ts
44
+++ b/generated/openapi/api.ts
5-
@@ -279,7 +279,7 @@ export interface CredAttrSpec {
5+
@@ -100,7 +100,7 @@ export interface AttachDecorator {
6+
* @type {string}
7+
* @memberof AttachDecorator
8+
*/
9+
- mime_type?: string;
10+
+ "mime-type"?: string;
11+
/**
12+
* File name
13+
* @type {string}
14+
@@ -583,7 +583,7 @@ export interface CredAttrSpec {
615
* @type {string}
716
* @memberof CredAttrSpec
817
*/
@@ -11,16 +20,16 @@ index 55f855a..98836fc 100644
1120
/**
1221
* Attribute value: base64-encode if MIME type is present
1322
* @type {string}
14-
@@ -659,7 +659,7 @@ export interface CredentialPreview {
23+
@@ -770,7 +770,7 @@ export interface CredentialPreview {
1524
* @type {string}
1625
* @memberof CredentialPreview
1726
*/
18-
- type?: CredentialPreviewTypeEnum;
19-
+ "@type"?: CredentialPreviewTypeEnum;
27+
- type?: string;
28+
+ "@type"?: string;
2029
/**
2130
*
2231
* @type {Array<CredAttrSpec>}
23-
@@ -1239,7 +1239,7 @@ export interface PresAttrSpec {
32+
@@ -1441,7 +1441,7 @@ export interface PresAttrSpec {
2433
* @type {string}
2534
* @memberof PresAttrSpec
2635
*/
@@ -29,53 +38,90 @@ index 55f855a..98836fc 100644
2938
/**
3039
* Attribute value
3140
* @type {string}
32-
@@ -1387,7 +1387,7 @@ export interface PresentationPreview {
41+
@@ -1509,7 +1509,7 @@ export interface PresentationPreview {
3342
* @type {string}
3443
* @memberof PresentationPreview
3544
*/
36-
- type?: PresentationPreviewTypeEnum;
37-
+ "@type"?: PresentationPreviewTypeEnum;
45+
- type?: string;
46+
+ "@type"?: string;
3847
/**
3948
*
4049
* @type {Array<PresAttrSpec>}
41-
@@ -1553,7 +1553,7 @@ export interface Schema {
42-
* @type {Array<string>}
43-
* @memberof Schema
44-
*/
45-
- attr_names?: Array<string>;
46-
+ attrNames?: Array<string>;
47-
/**
48-
* Schema name
49-
* @type {string}
50-
@@ -6073,7 +6073,7 @@ export const LedgerApiFp = function(configuration?: Configuration) {
50+
@@ -6598,7 +6598,7 @@ export const LedgerApiFp = function(configuration?: Configuration) {
5151
* @param {*} [options] Override http request option.
5252
* @throws {RequiredError}
5353
*/
54-
- ledgerDidEndpointGet(did: string, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise<void> {
55-
+ ledgerDidEndpointGet(did: string, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise<LedgerEndpointGetResults> {
56-
const localVarAxiosArgs = LedgerApiAxiosParamCreator(configuration).ledgerDidEndpointGet(did, options);
54+
- async ledgerDidEndpointGet(did: string, endpointType?: 'Endpoint' | 'Profile' | 'LinkedDomains', options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
55+
+ async ledgerDidEndpointGet(did: string, endpointType?: 'Endpoint' | 'Profile' | 'LinkedDomains', options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LedgerEndpointGetResults>> {
56+
const localVarAxiosArgs = await LedgerApiAxiosParamCreator(configuration).ledgerDidEndpointGet(did, endpointType, options);
5757
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
5858
const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
59-
@@ -6087,7 +6087,7 @@ export const LedgerApiFp = function(configuration?: Configuration) {
59+
@@ -6612,7 +6612,7 @@ export const LedgerApiFp = function(configuration?: Configuration) {
6060
* @param {*} [options] Override http request option.
6161
* @throws {RequiredError}
6262
*/
63-
- ledgerDidVerkeyGet(did: string, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise<void> {
64-
+ ledgerDidVerkeyGet(did: string, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise<LedgerVerkeyGetResults> {
65-
const localVarAxiosArgs = LedgerApiAxiosParamCreator(configuration).ledgerDidVerkeyGet(did, options);
63+
- async ledgerDidVerkeyGet(did: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
64+
+ async ledgerDidVerkeyGet(did: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LedgerVerkeyGetResults>> {
65+
const localVarAxiosArgs = await LedgerApiAxiosParamCreator(configuration).ledgerDidVerkeyGet(did, options);
6666
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
6767
const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
68-
@@ -6104,7 +6104,7 @@ export const LedgerApiFp = function(configuration?: Configuration) {
68+
@@ -6643,7 +6643,7 @@ export const LedgerApiFp = function(configuration?: Configuration) {
6969
* @param {*} [options] Override http request option.
7070
* @throws {RequiredError}
7171
*/
72-
- ledgerRegisterNymPost(did: string, verkey: string, alias?: string, role?: string, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise<void> {
73-
+ ledgerRegisterNymPost(did: string, verkey: string, alias?: string, role?: string, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise<RegisterNymPostResults> {
74-
const localVarAxiosArgs = LedgerApiAxiosParamCreator(configuration).ledgerRegisterNymPost(did, verkey, alias, role, options);
72+
- async ledgerRegisterNymPost(did: string, verkey: string, alias?: string, role?: 'STEWARD' | 'TRUSTEE' | 'ENDORSER' | 'NETWORK_MONITOR' | 'reset', options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
73+
+ async ledgerRegisterNymPost(did: string, verkey: string, alias?: string, role?: 'STEWARD' | 'TRUSTEE' | 'ENDORSER' | 'NETWORK_MONITOR' | 'reset', options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RegisterNymPostResults>> {
74+
const localVarAxiosArgs = await LedgerApiAxiosParamCreator(configuration).ledgerRegisterNymPost(did, verkey, alias, role, options);
7575
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
7676
const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
77-
@@ -9034,4 +9034,41 @@ export class WalletApi extends BaseAPI {
77+
@@ -6707,7 +6707,7 @@ export const LedgerApiFactory = function (configuration?: Configuration, basePat
78+
* @param {*} [options] Override http request option.
79+
* @throws {RequiredError}
80+
*/
81+
- ledgerDidEndpointGet(did: string, endpointType?: 'Endpoint' | 'Profile' | 'LinkedDomains', options?: any): AxiosPromise<void> {
82+
+ ledgerDidEndpointGet(did: string, endpointType?: 'Endpoint' | 'Profile' | 'LinkedDomains', options?: any): AxiosPromise<LedgerEndpointGetResults> {
83+
return LedgerApiFp(configuration).ledgerDidEndpointGet(did, endpointType, options).then((request) => request(axios, basePath));
84+
},
85+
/**
86+
@@ -6717,7 +6717,7 @@ export const LedgerApiFactory = function (configuration?: Configuration, basePat
87+
* @param {*} [options] Override http request option.
88+
* @throws {RequiredError}
89+
*/
90+
- ledgerDidVerkeyGet(did: string, options?: any): AxiosPromise<void> {
91+
+ ledgerDidVerkeyGet(did: string, options?: any): AxiosPromise<LedgerVerkeyGetResults> {
92+
return LedgerApiFp(configuration).ledgerDidVerkeyGet(did, options).then((request) => request(axios, basePath));
93+
},
94+
/**
95+
@@ -6740,7 +6740,7 @@ export const LedgerApiFactory = function (configuration?: Configuration, basePat
96+
* @param {*} [options] Override http request option.
97+
* @throws {RequiredError}
98+
*/
99+
- ledgerRegisterNymPost(did: string, verkey: string, alias?: string, role?: 'STEWARD' | 'TRUSTEE' | 'ENDORSER' | 'NETWORK_MONITOR' | 'reset', options?: any): AxiosPromise<void> {
100+
+ ledgerRegisterNymPost(did: string, verkey: string, alias?: string, role?: 'STEWARD' | 'TRUSTEE' | 'ENDORSER' | 'NETWORK_MONITOR' | 'reset', options?: any): AxiosPromise<RegisterNymPostResults> {
101+
return LedgerApiFp(configuration).ledgerRegisterNymPost(did, verkey, alias, role, options).then((request) => request(axios, basePath));
102+
},
103+
/**
104+
@@ -8862,14 +8862,14 @@ export const ServerApiAxiosParamCreator = function (configuration?: Configuratio
78105

106+
107+
108+
- const query = new URLSearchParams(localVarUrlObj.search);
109+
+ const search = new URLSearchParams(localVarUrlObj.search);
110+
for (const key in localVarQueryParameter) {
111+
- query.set(key, localVarQueryParameter[key]);
112+
+ search.set(key, localVarQueryParameter[key]);
113+
}
114+
for (const key in options.query) {
115+
- query.set(key, options.query[key]);
116+
+ search.set(key, options.query[key]);
117+
}
118+
- localVarUrlObj.search = (new URLSearchParams(query)).toString();
119+
+ localVarUrlObj.search = (new URLSearchParams(search)).toString();
120+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
121+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
122+
123+
@@ -10066,4 +10066,41 @@ export class WalletApi extends BaseAPI {
124+
}
79125
}
80126

81127
+/**
@@ -90,7 +136,7 @@ index 55f855a..98836fc 100644
90136
+ */
91137
+ verkey: string | null
92138
+}
93-
+
139+
94140
+/**
95141
+ *
96142
+ * @export
@@ -103,7 +149,7 @@ index 55f855a..98836fc 100644
103149
+ */
104150
+ endpoint: string
105151
+}
106-
152+
+
107153
+/**
108154
+ *
109155
+ * @export
@@ -116,4 +162,3 @@ index 55f855a..98836fc 100644
116162
+ */
117163
+ success: boolean
118164
+}
119-
\ No newline at end of file

0 commit comments

Comments
 (0)