Merge branch 'master' into debits

This commit is contained in:
boufni95 2024-09-27 16:39:23 +00:00
commit b4e24eb964
8 changed files with 21 additions and 5 deletions

View file

@ -1070,6 +1070,7 @@ The nostr server will send back a message response, and inside the body there wi
### UserInfo
- __balance__: _number_
- __bridge_url__: _string_
- __callback_url__: _string_
- __max_withdrawable__: _number_
- __ndebit__: _string_

View file

@ -460,6 +460,7 @@ type UseInviteLinkRequest struct {
}
type UserInfo struct {
Balance int64 `json:"balance"`
Bridge_url string `json:"bridge_url"`
Callback_url string `json:"callback_url"`
Max_withdrawable int64 `json:"max_withdrawable"`
Ndebit string `json:"ndebit"`

View file

@ -2612,6 +2612,7 @@ export const UseInviteLinkRequestValidate = (o?: UseInviteLinkRequest, opts: Use
export type UserInfo = {
balance: number
bridge_url: string
callback_url: string
max_withdrawable: number
ndebit: string
@ -2626,6 +2627,7 @@ export const UserInfoOptionalFields: [] = []
export type UserInfoOptions = OptionsBaseMessage & {
checkOptionalsAreSet?: []
balance_CustomCheck?: (v: number) => boolean
bridge_url_CustomCheck?: (v: string) => boolean
callback_url_CustomCheck?: (v: string) => boolean
max_withdrawable_CustomCheck?: (v: number) => boolean
ndebit_CustomCheck?: (v: string) => boolean
@ -2643,6 +2645,9 @@ export const UserInfoValidate = (o?: UserInfo, opts: UserInfoOptions = {}, path:
if (typeof o.balance !== 'number') return new Error(`${path}.balance: is not a number`)
if (opts.balance_CustomCheck && !opts.balance_CustomCheck(o.balance)) return new Error(`${path}.balance: custom check failed`)
if (typeof o.bridge_url !== 'string') return new Error(`${path}.bridge_url: is not a string`)
if (opts.bridge_url_CustomCheck && !opts.bridge_url_CustomCheck(o.bridge_url)) return new Error(`${path}.bridge_url: custom check failed`)
if (typeof o.callback_url !== 'string') return new Error(`${path}.callback_url: is not a string`)
if (opts.callback_url_CustomCheck && !opts.callback_url_CustomCheck(o.callback_url)) return new Error(`${path}.callback_url: custom check failed`)

View file

@ -362,6 +362,7 @@ message UserInfo{
string noffer = 8;
string ndebit = 9;
string callback_url = 10;
string bridge_url = 11;
}
message GetUserOperationsRequest{
int64 latestIncomingInvoice = 1;