declare namespace Components {
+
namespace RequestBodies {
+
export type CreateWallet = Schemas.WalletCreation;
+
export type JoinWallet = Schemas.CoSigner;
+
export interface SignProposal {
+
issuer: Schemas.PubKey;
+
export interface TransactionProposal {
+
issuer: Schemas.PubKey;
+
tx: Schemas.UnsignedTransaction;
+
export interface CreateWallet {
+
walletId: Schemas.WalletId;
+
export interface JoinWallet {
+
walletState: Schemas.WalletState;
+
export type SignTransaction = Schemas.Transaction;
+
export type TransactionProposal = Schemas.Transaction;
+
export type TransactionProposals = Schemas.Transaction[];
+
export type WalletState = Schemas.Wallet;
-
export interface SampleRequest {
-
* Sample response object.
-
export interface SampleResponse {
-
* Sample response error object.
-
export interface SampleResponseError {
+
export interface CoSigner {
+
cosignerAlias: CoSignerAlias;
+
export type CoSignerAlias = string;
+
export interface ErrorResponse {
+
export type PubKey = string;
+
export interface Transaction {
+
transactionId: TransactionId;
+
unsignedTransaction: UnsignedTransaction;
+
transactionState: 'WaitingForSignatures' | 'Signed';
+
creationDate: string; // date
+
updateDate: string; // date
+
export type TransactionId = string;
+
export type TransactionState = 'WaitingForSignatures' | 'Signed';
+
export type UnsignedTransaction = string;
+
export interface Wallet {
+
walletState: WalletState;
+
creationDate: string; // date
+
export interface WalletCreation {
+
export type WalletId = string;
+
export type WalletState = 'WaitingForCosigners' | 'Ready' | 'Expired';
declare namespace Paths {
-
namespace SampleMethod {
-
export type RequestBody = /* Sample request */ Components.Schemas.SampleRequest;
+
namespace CreateWallet {
+
export type RequestBody = Components.RequestBodies.CreateWallet;
+
export type $200 = Components.Responses.CreateWallet;
+
export type $400 = Components.Schemas.ErrorResponse;
+
export type $500 = Components.Schemas.ErrorResponse;
+
namespace GetTransactionProposals {
+
export type From = string; // date
+
export type WalletId = string;
+
export interface PathParameters {
+
walletId: Parameters.WalletId;
+
export interface QueryParameters {
+
from: Parameters.From /* date */;
+
export type $200 = Components.Responses.TransactionProposals;
+
export type $404 = Components.Schemas.ErrorResponse;
+
export type $500 = Components.Schemas.ErrorResponse;
+
namespace GetWalletState {
+
export type WalletId = string;
+
export interface PathParameters {
+
walletId: Parameters.WalletId;
+
export type $200 = Components.Responses.WalletState;
+
export type $404 = Components.Schemas.ErrorResponse;
+
export type $500 = Components.Schemas.ErrorResponse;
+
export type WalletId = string;
+
export interface PathParameters {
+
walletId: Parameters.WalletId;
+
export type RequestBody = Components.RequestBodies.JoinWallet;
+
export type $200 = Components.Responses.JoinWallet;
+
export type $400 = Components.Schemas.ErrorResponse;
+
export type $404 = Components.Schemas.ErrorResponse;
+
export type $500 = Components.Schemas.ErrorResponse;
+
namespace NewTransactionProposal {
+
export type WalletId = string;
+
export interface PathParameters {
+
walletId: Parameters.WalletId;
+
export type RequestBody = Components.RequestBodies.TransactionProposal;
+
export type $200 = Components.Responses.TransactionProposal;
+
export type $400 = Components.Schemas.ErrorResponse;
+
export type $404 = Components.Schemas.ErrorResponse;
+
export type $500 = Components.Schemas.ErrorResponse;
+
namespace SignTransaction {
+
export type TxId = string;
+
export interface PathParameters {
+
export type RequestBody = Components.RequestBodies.SignProposal;
-
export type $200 = /* Sample response object. */ Components.Schemas.SampleResponse;
-
export type $500 = /* Sample response error object. */ Components.Schemas.SampleResponseError;
+
export type $200 = Components.Responses.SignTransaction;
+
export type $400 = Components.Schemas.ErrorResponse;
+
export type $404 = Components.Schemas.ErrorResponse;
+
export type $500 = Components.Schemas.ErrorResponse;