manage authorization

This commit is contained in:
boufni95 2025-07-08 15:41:41 +00:00
parent 819cf74d2f
commit df088bf0fe
18 changed files with 623 additions and 56 deletions

View file

@ -43,6 +43,11 @@ The nostr server will send back a message response, and inside the body there wi
- input: [DebitAuthorizationRequest](#DebitAuthorizationRequest)
- output: [DebitAuthorization](#DebitAuthorization)
- AuthorizeManage
- auth type: __User__
- input: [ManageAuthorizationRequest](#ManageAuthorizationRequest)
- output: [ManageAuthorization](#ManageAuthorization)
- BanDebit
- auth type: __User__
- input: [DebitOperation](#DebitOperation)
@ -128,6 +133,11 @@ The nostr server will send back a message response, and inside the body there wi
- This methods has an __empty__ __request__ body
- output: [LiveDebitRequest](#LiveDebitRequest)
- GetLiveManageRequests
- auth type: __User__
- This methods has an __empty__ __request__ body
- output: [LiveManageRequest](#LiveManageRequest)
- GetLiveUserOperations
- auth type: __User__
- This methods has an __empty__ __request__ body
@ -153,6 +163,11 @@ The nostr server will send back a message response, and inside the body there wi
- This methods has an __empty__ __request__ body
- output: [LnurlLinkResponse](#LnurlLinkResponse)
- GetManageAuthorizations
- auth type: __User__
- This methods has an __empty__ __request__ body
- output: [ManageAuthorizations](#ManageAuthorizations)
- GetMigrationUpdate
- auth type: __User__
- This methods has an __empty__ __request__ body
@ -418,6 +433,13 @@ The nostr server will send back a message response, and inside the body there wi
- input: [DebitAuthorizationRequest](#DebitAuthorizationRequest)
- output: [DebitAuthorization](#DebitAuthorization)
- AuthorizeManage
- auth type: __User__
- http method: __post__
- http route: __/api/user/manage/authorize__
- input: [ManageAuthorizationRequest](#ManageAuthorizationRequest)
- output: [ManageAuthorization](#ManageAuthorization)
- BanDebit
- auth type: __User__
- http method: __post__
@ -565,6 +587,13 @@ The nostr server will send back a message response, and inside the body there wi
- This methods has an __empty__ __request__ body
- output: [LiveDebitRequest](#LiveDebitRequest)
- GetLiveManageRequests
- auth type: __User__
- http method: __post__
- http route: __/api/user/manage/sub__
- This methods has an __empty__ __request__ body
- output: [LiveManageRequest](#LiveManageRequest)
- GetLiveUserOperations
- auth type: __User__
- http method: __post__
@ -618,6 +647,13 @@ The nostr server will send back a message response, and inside the body there wi
- This methods has an __empty__ __request__ body
- output: [LnurlLinkResponse](#LnurlLinkResponse)
- GetManageAuthorizations
- auth type: __User__
- http method: __get__
- http route: __/api/user/manage/get__
- This methods has an __empty__ __request__ body
- output: [ManageAuthorizations](#ManageAuthorizations)
- GetMigrationUpdate
- auth type: __User__
- http method: __post__
@ -1216,6 +1252,10 @@ The nostr server will send back a message response, and inside the body there wi
- __npub__: _string_
- __request_id__: _string_
### LiveManageRequest
- __npub__: _string_
- __request_id__: _string_
### LiveUserOperation
- __operation__: _[UserOperation](#UserOperation)_
@ -1290,6 +1330,19 @@ The nostr server will send back a message response, and inside the body there wi
- __payLink__: _string_
- __tag__: _string_
### ManageAuthorization
- __authorized__: _boolean_
- __manage_id__: _string_
- __npub__: _string_
### ManageAuthorizationRequest
- __authorize_npub__: _string_
- __ban__: _boolean_
- __request_id__: _string_ *this field is optional
### ManageAuthorizations
- __manages__: ARRAY of: _[ManageAuthorization](#ManageAuthorization)_
### MetricsFile
### MigrationUpdate