-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[js] Update to latest schema for 3P packages (#6140)
GitOrigin-RevId: 74d531dd26dbb7a23a7bd8a7ec75c98383dd8709
- Loading branch information
1 parent
79d0c2f
commit cdac018
Showing
62 changed files
with
4,142 additions
and
649 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
packages/lightspark-sdk/src/objects/CreateUmaInvoiceInput.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved | ||
|
||
type CreateUmaInvoiceInput = { | ||
nodeId: string; | ||
|
||
amountMsats: number; | ||
|
||
metadataHash: string; | ||
|
||
expirySecs?: number; | ||
}; | ||
|
||
export const CreateUmaInvoiceInputFromJson = ( | ||
obj: any, | ||
): CreateUmaInvoiceInput => { | ||
return { | ||
nodeId: obj["create_uma_invoice_input_node_id"], | ||
amountMsats: obj["create_uma_invoice_input_amount_msats"], | ||
metadataHash: obj["create_uma_invoice_input_metadata_hash"], | ||
expirySecs: obj["create_uma_invoice_input_expiry_secs"], | ||
} as CreateUmaInvoiceInput; | ||
}; | ||
|
||
export default CreateUmaInvoiceInput; |
16 changes: 16 additions & 0 deletions
16
packages/lightspark-sdk/src/objects/DeclineToSignMessagesInput.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved | ||
|
||
type DeclineToSignMessagesInput = { | ||
/** List of payload ids to decline to sign because validation failed. **/ | ||
payloadIds: string[]; | ||
}; | ||
|
||
export const DeclineToSignMessagesInputFromJson = ( | ||
obj: any, | ||
): DeclineToSignMessagesInput => { | ||
return { | ||
payloadIds: obj["decline_to_sign_messages_input_payload_ids"], | ||
} as DeclineToSignMessagesInput; | ||
}; | ||
|
||
export default DeclineToSignMessagesInput; |
28 changes: 28 additions & 0 deletions
28
packages/lightspark-sdk/src/objects/DeclineToSignMessagesOutput.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
// Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved | ||
|
||
import type SignablePayload from "./SignablePayload.js"; | ||
import { SignablePayloadFromJson } from "./SignablePayload.js"; | ||
|
||
type DeclineToSignMessagesOutput = { | ||
declinedPayloads: SignablePayload[]; | ||
}; | ||
|
||
export const DeclineToSignMessagesOutputFromJson = ( | ||
obj: any, | ||
): DeclineToSignMessagesOutput => { | ||
return { | ||
declinedPayloads: obj[ | ||
"decline_to_sign_messages_output_declined_payloads" | ||
].map((e) => SignablePayloadFromJson(e)), | ||
} as DeclineToSignMessagesOutput; | ||
}; | ||
|
||
export const FRAGMENT = ` | ||
fragment DeclineToSignMessagesOutputFragment on DeclineToSignMessagesOutput { | ||
__typename | ||
decline_to_sign_messages_output_declined_payloads: declined_payloads { | ||
id | ||
} | ||
}`; | ||
|
||
export default DeclineToSignMessagesOutput; |
Oops, something went wrong.