-
Notifications
You must be signed in to change notification settings - Fork 60
add Settings domain with DB persistence and admin CRUD API #939
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from 8 commits
b9fe77c
ae7da6d
ceb6d68
2fbbeb3
d0564c0
0c9a296
da53ecf
5271785
a61a9f1
2802d62
557ccad
d382b18
4b5966b
066e9f7
27ab8a1
70fb5fe
dd48374
b21375a
93010e2
232d5a1
4fd6fbb
3c78e95
c094527
fd134d5
1fc333e
2f660ca
29e4f2b
0f734ec
5142125
ece9dd1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -833,6 +833,114 @@ | |
| } | ||
| } | ||
| }, | ||
| "/v1/admin/settings": { | ||
| "get": { | ||
| "tags": [ | ||
| "AdminService" | ||
| ], | ||
| "operationId": "AdminService_GetSettings", | ||
| "responses": { | ||
| "200": { | ||
| "description": "a successful response.", | ||
| "content": { | ||
| "application/json": { | ||
| "schema": { | ||
| "$ref": "#/components/schemas/GetSettingsResponse" | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "default": { | ||
| "description": "An unexpected error response.", | ||
| "content": { | ||
| "application/json": { | ||
| "schema": { | ||
| "$ref": "#/components/schemas/Status" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "post": { | ||
| "tags": [ | ||
| "AdminService" | ||
| ], | ||
| "operationId": "AdminService_UpdateSettings", | ||
| "requestBody": { | ||
| "content": { | ||
| "application/json": { | ||
| "schema": { | ||
| "$ref": "#/components/schemas/UpdateSettingsRequest" | ||
| } | ||
| } | ||
| }, | ||
| "required": true | ||
| }, | ||
| "responses": { | ||
| "200": { | ||
| "description": "a successful response.", | ||
| "content": { | ||
| "application/json": { | ||
| "schema": { | ||
| "$ref": "#/components/schemas/UpdateSettingsResponse" | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "default": { | ||
| "description": "An unexpected error response.", | ||
| "content": { | ||
| "application/json": { | ||
| "schema": { | ||
| "$ref": "#/components/schemas/Status" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "/v1/admin/settings/clear": { | ||
| "post": { | ||
| "tags": [ | ||
| "AdminService" | ||
| ], | ||
| "operationId": "AdminService_ClearSettings", | ||
| "requestBody": { | ||
| "content": { | ||
| "application/json": { | ||
| "schema": { | ||
| "$ref": "#/components/schemas/ClearSettingsRequest" | ||
| } | ||
| } | ||
| }, | ||
| "required": true | ||
| }, | ||
| "responses": { | ||
| "200": { | ||
| "description": "a successful response.", | ||
| "content": { | ||
| "application/json": { | ||
| "schema": { | ||
| "$ref": "#/components/schemas/ClearSettingsResponse" | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "default": { | ||
| "description": "An unexpected error response.", | ||
| "content": { | ||
| "application/json": { | ||
| "schema": { | ||
| "$ref": "#/components/schemas/Status" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "/v1/admin/sweep": { | ||
| "post": { | ||
| "tags": [ | ||
|
|
@@ -953,6 +1061,14 @@ | |
| "title": "ClearScheduledSessionConfigResponse", | ||
| "type": "object" | ||
| }, | ||
| "ClearSettingsRequest": { | ||
| "title": "ClearSettingsRequest", | ||
| "type": "object" | ||
| }, | ||
| "ClearSettingsResponse": { | ||
| "title": "ClearSettingsResponse", | ||
| "type": "object" | ||
| }, | ||
| "Conviction": { | ||
| "title": "Conviction", | ||
| "type": "object", | ||
|
|
@@ -1335,6 +1451,19 @@ | |
| } | ||
| } | ||
| }, | ||
| "GetSettingsRequest": { | ||
| "title": "GetSettingsRequest", | ||
| "type": "object" | ||
| }, | ||
| "GetSettingsResponse": { | ||
| "title": "GetSettingsResponse", | ||
| "type": "object", | ||
| "properties": { | ||
| "settings": { | ||
| "$ref": "#/components/schemas/Settings" | ||
| } | ||
| } | ||
| }, | ||
| "Intent": { | ||
| "title": "Intent", | ||
| "type": "object", | ||
|
|
@@ -1563,6 +1692,80 @@ | |
| } | ||
| } | ||
| }, | ||
| "Settings": { | ||
| "title": "Settings", | ||
| "type": "object", | ||
| "properties": { | ||
| "banDuration": { | ||
| "type": "integer", | ||
| "format": "int64" | ||
| }, | ||
| "banThreshold": { | ||
| "type": "integer", | ||
| "format": "int64" | ||
| }, | ||
| "boardingExitDelay": { | ||
| "type": "integer", | ||
| "format": "int64" | ||
| }, | ||
| "checkpointExitDelay": { | ||
| "type": "integer", | ||
| "format": "int64" | ||
| }, | ||
| "maxTxWeight": { | ||
| "type": "integer", | ||
| "format": "int64" | ||
| }, | ||
| "publicUnilateralExitDelay": { | ||
| "type": "integer", | ||
| "format": "int64" | ||
| }, | ||
| "roundMaxParticipantsCount": { | ||
| "type": "integer", | ||
| "format": "int64" | ||
| }, | ||
| "roundMinParticipantsCount": { | ||
| "type": "integer", | ||
| "format": "int64" | ||
| }, | ||
| "settlementMinExpiryGap": { | ||
| "type": "integer", | ||
| "format": "int64" | ||
| }, | ||
| "unilateralExitDelay": { | ||
| "type": "integer", | ||
| "format": "int64" | ||
| }, | ||
| "updatedAt": { | ||
| "type": "integer", | ||
| "format": "int64" | ||
| }, | ||
| "utxoMaxAmount": { | ||
| "type": "integer", | ||
| "format": "int64" | ||
| }, | ||
| "utxoMinAmount": { | ||
| "type": "integer", | ||
| "format": "int64" | ||
| }, | ||
| "vtxoMaxAmount": { | ||
| "type": "integer", | ||
| "format": "int64" | ||
| }, | ||
| "vtxoMinAmount": { | ||
| "type": "integer", | ||
| "format": "int64" | ||
| }, | ||
| "vtxoNoCsvValidationCutoffDate": { | ||
| "type": "integer", | ||
| "format": "int64" | ||
| }, | ||
| "vtxoTreeExpiry": { | ||
| "type": "integer", | ||
| "format": "int64" | ||
| } | ||
| } | ||
| }, | ||
|
Comment on lines
+1839
to
+1912
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
The schema makes Based on learnings, the project prioritizes backward compatibility for API endpoints. Also applies to: 1861-1869 🤖 Prompt for AI Agents |
||
| "Status": { | ||
| "title": "Status", | ||
| "type": "object", | ||
|
|
@@ -1654,6 +1857,19 @@ | |
| "UpdateScheduledSessionConfigResponse": { | ||
| "title": "UpdateScheduledSessionConfigResponse", | ||
| "type": "object" | ||
| }, | ||
| "UpdateSettingsRequest": { | ||
| "title": "UpdateSettingsRequest", | ||
| "type": "object", | ||
| "properties": { | ||
| "settings": { | ||
| "$ref": "#/components/schemas/Settings" | ||
| } | ||
| } | ||
| }, | ||
| "UpdateSettingsResponse": { | ||
| "title": "UpdateSettingsResponse", | ||
| "type": "object" | ||
| } | ||
| } | ||
| }, | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.