Skip to content

Commit 7450bce

Browse files
authored
chore: generate client for aca-py 0.7.5 (#89)
Signed-off-by: Moriarty <[email protected]> Signed-off-by: Moriarty <[email protected]>
1 parent e880eb7 commit 7450bce

File tree

7 files changed

+156
-277
lines changed

7 files changed

+156
-277
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,14 @@ Each Cloud Controller version maps to a specific ACA-Py version, which is outlin
4545
| ------------------------------ | -------------------------------- |
4646
| 0.5.1-0.5.2 | 0.7.3 |
4747
| 0.6.0-0.6.3 | 0.7.4 |
48+
| 0.7.0 | 0.7.5 |
4849

4950
## Features
5051

5152
Aries Cloud Controller Python is a fully featured client for interacting with ACA-Py.
5253

5354
- Fully Typed wrapper around Aries Cloud Agent Python
54-
- Supports latest ACA-Py version (0.7.4)
55+
- Supports latest ACA-Py version (0.7.5)
5556
- Client is auto generated based on OpenAPI definitions, allowing us to keep up to date with new releases.
5657
- Supports multi-tenant APIs and authentication
5758
- Async API

generator/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@ cd generator
2121

2222
## Updating the OpenAPI
2323

24-
Updating the OpenAPI is only needed when a new version of ACA-Py is released. The process of updating the OpenAPI is mostly automated, you only need to run a few scripts. First determine the version you want for OpenAPI spec from the BCGov agent docker images (https://hub.docker.com/r/bcgovimages/aries-cloudagent/). Currently the default for the `retrieve-openapi.sh` script is "py36-1.16-1_0.7.4".
24+
Updating the OpenAPI is only needed when a new version of ACA-Py is released. The process of updating the OpenAPI is mostly automated, you only need to run a few scripts. First determine the version you want for OpenAPI spec from the BCGov agent docker images (https://hub.docker.com/r/bcgovimages/aries-cloudagent/). Currently the default for the `retrieve-openapi.sh` script is "py36-1.16-1_0.7.5".
2525

2626
After that you can run the following commands to update the `data/openapi.yml` file. This file should be committed.
2727

2828
```sh
2929
cd aries-cloudcontroller-python/generator
3030

31-
# Retrieve the open api file, change py36-1.16-1_0.7.4 if you want another version
32-
./scripts/retrieve-openapi.sh py36-1.16-1_0.7.4
31+
# Retrieve the open api file, change py36-1.16-1_0.7.5 if you want another version
32+
./scripts/retrieve-openapi.sh py36-1.16-1_0.7.5
3333

3434
# transform to OpenAPI V3
3535
./scripts/convert-to-openapi3-local.sh

generator/data/openapi.patch

Lines changed: 0 additions & 234 deletions
Original file line numberDiff line numberDiff line change
@@ -1,234 +0,0 @@
1-
diff --git a/generator/data/openapi.yml b/generator/data/openapi.yml
2-
index 6a013a3..3a6608a 100644
3-
--- a/generator/data/openapi.yml
4-
+++ b/generator/data/openapi.yml
5-
@@ -722,7 +722,9 @@ paths:
6-
content:
7-
application/json:
8-
schema:
9-
- $ref: '#/components/schemas/TxnOrCredentialDefinitionSendResult'
10-
+ oneOf:
11-
+ - $ref: '#/components/schemas/CredentialDefinitionSendResult'
12-
+ - $ref: '#/components/schemas/TxnOrCredentialDefinitionSendResult'
13-
x-codegen-request-body-name: body
14-
operationId: publish_cred_def
15-
/credential-definitions/created:
16-
@@ -3447,7 +3449,9 @@ paths:
17-
content:
18-
application/json:
19-
schema:
20-
- $ref: '#/components/schemas/TxnOrPublishRevocationsResult'
21-
+ oneOf:
22-
+ - $ref: '#/components/schemas/PublishRevocations'
23-
+ - $ref: '#/components/schemas/TxnOrPublishRevocationsResult'
24-
x-codegen-request-body-name: body
25-
operationId: publish_revocations
26-
/revocation/registries/created:
27-
@@ -3558,7 +3562,9 @@ paths:
28-
content:
29-
application/json:
30-
schema:
31-
- $ref: '#/components/schemas/TxnOrRevRegResult'
32-
+ oneOf:
33-
+ - $ref: '#/components/schemas/RevRegResult'
34-
+ - $ref: '#/components/schemas/TxnOrRevRegResult'
35-
operationId: publish_rev_reg_def
36-
/revocation/registry/{rev_reg_id}/entry:
37-
post:
38-
@@ -3801,7 +3807,9 @@ paths:
39-
content:
40-
application/json:
41-
schema:
42-
- $ref: '#/components/schemas/TxnOrSchemaSendResult'
43-
+ oneOf:
44-
+ - $ref: '#/components/schemas/SchemaSendResult'
45-
+ - $ref: '#/components/schemas/TxnOrSchemaSendResult'
46-
x-codegen-request-body-name: body
47-
operationId: publish_schema
48-
/schemas/created:
49-
@@ -5281,7 +5289,8 @@ components:
50-
description: Tag within credential definition identifier
51-
example: tag
52-
type:
53-
- type: object
54-
+ enum:
55-
+ - CL
56-
description: 'Signature type: CL for Camenisch-Lysyanskaya'
57-
example: CL
58-
value:
59-
@@ -5323,6 +5332,8 @@ components:
60-
example: default
61-
CredentialDefinitionSendResult:
62-
type: object
63-
+ required:
64-
+ - credential_definition_id
65-
properties:
66-
credential_definition_id:
67-
pattern: ^([123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{21,22}):3:CL:(([1-9][0-9]*)|([123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]{21,22}:2:.+:[0-9.]+)):(.+)?$
68-
@@ -6160,14 +6171,12 @@ components:
69-
type: object
70-
properties:
71-
from:
72-
- maximum: 18446744073709551615
73-
minimum: 0
74-
type: integer
75-
description: Earliest time of interest in non-revocation interval
76-
format: int32
77-
example: 1640995199
78-
to:
79-
- maximum: 18446744073709551615
80-
minimum: 0
81-
type: integer
82-
description: Latest time of interest in non-revocation interval
83-
@@ -6329,7 +6338,6 @@ components:
84-
description: Schema identifier
85-
example: WgWxqztrNooG92RXvxSTWv:2:schema_name:1.0
86-
timestamp:
87-
- maximum: 18446744073709551615
88-
minimum: 0
89-
type: integer
90-
description: Timestamp epoch
91-
@@ -6410,18 +6418,14 @@ components:
92-
type: object
93-
properties:
94-
from:
95-
- maximum: 18446744073709551615
96-
minimum: 0
97-
type: integer
98-
description: Earliest time of interest in non-revocation interval
99-
- format: int32
100-
example: 1640995199
101-
to:
102-
- maximum: 18446744073709551615
103-
minimum: 0
104-
type: integer
105-
description: Latest time of interest in non-revocation interval
106-
- format: int32
107-
example: 1640995199
108-
IndyProofReqPredSpec:
109-
required:
110-
@@ -6467,18 +6471,14 @@ components:
111-
type: object
112-
properties:
113-
from:
114-
- maximum: 18446744073709551615
115-
minimum: 0
116-
type: integer
117-
description: Earliest time of interest in non-revocation interval
118-
- format: int32
119-
example: 1640995199
120-
to:
121-
- maximum: 18446744073709551615
122-
minimum: 0
123-
type: integer
124-
description: Latest time of interest in non-revocation interval
125-
- format: int32
126-
example: 1640995199
127-
IndyProofRequest:
128-
required:
129-
@@ -6519,18 +6519,14 @@ components:
130-
type: object
131-
properties:
132-
from:
133-
- maximum: 18446744073709551615
134-
minimum: 0
135-
type: integer
136-
description: Earliest time of interest in non-revocation interval
137-
- format: int32
138-
example: 1640995199
139-
to:
140-
- maximum: 18446744073709551615
141-
minimum: 0
142-
type: integer
143-
description: Latest time of interest in non-revocation interval
144-
- format: int32
145-
example: 1640995199
146-
IndyProofRequestedProof:
147-
type: object
148-
@@ -6618,11 +6614,9 @@ components:
149-
a UUID)
150-
example: 3fa85f64-5717-4562-b3fc-2c963f66afa6
151-
timestamp:
152-
- maximum: 18446744073709551615
153-
minimum: 0
154-
type: integer
155-
description: Epoch timestamp of interest for non-revocation proof
156-
- format: int32
157-
example: 1640995199
158-
IndyRevRegDef:
159-
type: object
160-
@@ -6840,9 +6834,11 @@ components:
161-
type: string
162-
- did:sov:WgWxqztrNooG92RXvxSTWv
163-
items:
164-
- type: object
165-
- description: Either a DIDComm service object (as per RFC0067) or a DID
166-
- string.
167-
+ oneOf:
168-
+ - type: object
169-
+ description: Either a DIDComm service object (as per RFC0067) or a DID
170-
+ string.
171-
+ - type: string
172-
InvitationRecord:
173-
type: object
174-
properties:
175-
@@ -7784,6 +7780,8 @@ components:
176-
example: 0
177-
RevRegResult:
178-
type: object
179-
+ required:
180-
+ - result
181-
properties:
182-
result:
183-
$ref: '#/components/schemas/IssuerRevRegRecord'
184-
@@ -7973,6 +7971,7 @@ components:
185-
SchemaSendResult:
186-
required:
187-
- schema_id
188-
+ - schema
189-
type: object
190-
properties:
191-
schema:
192-
@@ -8123,10 +8122,7 @@ components:
193-
mechanism:
194-
type: string
195-
time:
196-
- maximum: 18446744073709551615
197-
- minimum: 0
198-
type: integer
199-
- format: int32
200-
example: 1640995199
201-
TAAInfo:
202-
type: object
203-
@@ -8281,6 +8277,7 @@ components:
204-
example: 2021-12-31 23:59:59+00:00
205-
TxnOrCredentialDefinitionSendResult:
206-
type: object
207-
+ additionalProperties: false
208-
properties:
209-
sent:
210-
$ref: '#/components/schemas/CredentialDefinitionSendResult'
211-
@@ -8291,6 +8288,7 @@ components:
212-
- $ref: '#/components/schemas/TransactionRecord'
213-
TxnOrPublishRevocationsResult:
214-
type: object
215-
+ additionalProperties: false
216-
properties:
217-
sent:
218-
$ref: '#/components/schemas/PublishRevocations'
219-
@@ -8313,6 +8311,7 @@ components:
220-
- $ref: '#/components/schemas/TransactionRecord'
221-
TxnOrRevRegResult:
222-
type: object
223-
+ additionalProperties: false
224-
properties:
225-
sent:
226-
$ref: '#/components/schemas/RevRegResult'
227-
@@ -8323,6 +8322,7 @@ components:
228-
- $ref: '#/components/schemas/TransactionRecord'
229-
TxnOrSchemaSendResult:
230-
type: object
231-
+ additionalProperties: false
232-
properties:
233-
sent:
234-
type: object

0 commit comments

Comments
 (0)