File tree 3 files changed +5
-16
lines changed
3 files changed +5
-16
lines changed Original file line number Diff line number Diff line change 1
1
__title__ = "aidbox-python-sdk"
2
- __version__ = "0.1.1 "
2
+ __version__ = "0.1.2 "
3
3
__author__ = "beda.software"
4
4
__license__ = "None"
5
5
__copyright__ = "Copyright 2023 beda.software"
Original file line number Diff line number Diff line change @@ -27,17 +27,7 @@ def setup_routes(app):
27
27
async def register_app (sdk : SDK , client : AsyncAidboxClient ):
28
28
app_resource = client .resource (
29
29
"App" ,
30
- ** {
31
- "apiVersion" : 1 ,
32
- "type" : "app" ,
33
- "id" : sdk .settings .APP_ID ,
34
- "endpoint" : {
35
- "url" : f"{ sdk .settings .APP_URL } /aidbox" ,
36
- "type" : "http-rpc" ,
37
- "secret" : sdk .settings .APP_SECRET ,
38
- },
39
- ** sdk .build_manifest (),
40
- },
30
+ ** sdk .build_manifest () ,
41
31
)
42
32
try :
43
33
await app_resource .save ()
Original file line number Diff line number Diff line change @@ -27,12 +27,11 @@ def __init__(
27
27
self ._operations = {}
28
28
self ._operation_handlers = {}
29
29
self ._manifest = {
30
- "id" : settings .APP_ID ,
31
- "resourceType" : "App" ,
32
- "type" : "app" ,
33
30
"apiVersion" : 1 ,
31
+ "type" : "app" ,
32
+ "id" : settings .APP_ID ,
34
33
"endpoint" : {
35
- "url" : settings .APP_URL ,
34
+ "url" : f" { settings .APP_URL } /aidbox" ,
36
35
"type" : "http-rpc" ,
37
36
"secret" : settings .APP_SECRET ,
38
37
},
You can’t perform that action at this time.
0 commit comments