From 69d29a155b7d4da07ecf378b82268c1d9aef9383 Mon Sep 17 00:00:00 2001 From: David Wolinsky Date: Thu, 13 Jun 2024 22:01:48 -0700 Subject: [PATCH] [api] oops i broke it again (#13697) run `cargo run -p aptos-openapi-spec-generator -- -f yaml -o api/doc/spec.yaml` after latest api update --- api/doc/spec.json | 209 ++++++++++++++++-- api/doc/spec.yaml | 135 +++++++++-- .../typescript/sdk/src/generated/index.ts | 18 +- .../sdk/src/generated/models/BlockEndInfo.ts | 11 + .../models/BlockEpilogueTransaction.ts | 36 +++ ..._string_HexEncodedBytes_.ts => Ed25519.ts} | 6 +- ..._string_HexEncodedBytes_.ts => Keyless.ts} | 6 +- .../sdk/src/generated/models/PublicKey.ts | 7 +- .../src/generated/models/PublicKey_Ed25519.ts | 10 + .../src/generated/models/PublicKey_Keyless.ts | 10 + .../models/PublicKey_Secp256k1Ecdsa.ts | 10 + .../models/PublicKey_Secp256r1Ecdsa.ts | 10 + .../src/generated/models/Secp256k1Ecdsa.ts | 10 + .../src/generated/models/Secp256r1Ecdsa.ts | 10 + .../sdk/src/generated/models/Signature.ts | 7 +- .../src/generated/models/Signature_Ed25519.ts | 10 + .../src/generated/models/Signature_Keyless.ts | 10 + .../models/Signature_Secp256k1Ecdsa.ts | 10 + .../generated/models/Signature_WebAuthn.ts | 10 + .../sdk/src/generated/models/Transaction.ts | 3 +- .../Transaction_BlockEpilogueTransaction.ts | 10 + .../sdk/src/generated/models/WebAuthn.ts | 10 + 22 files changed, 505 insertions(+), 53 deletions(-) create mode 100644 ecosystem/typescript/sdk/src/generated/models/BlockEndInfo.ts create mode 100644 ecosystem/typescript/sdk/src/generated/models/BlockEpilogueTransaction.ts rename ecosystem/typescript/sdk/src/generated/models/{PublicKey_string_HexEncodedBytes_.ts => Ed25519.ts} (58%) rename ecosystem/typescript/sdk/src/generated/models/{Signature_string_HexEncodedBytes_.ts => Keyless.ts} (58%) create mode 100644 ecosystem/typescript/sdk/src/generated/models/PublicKey_Ed25519.ts create mode 100644 ecosystem/typescript/sdk/src/generated/models/PublicKey_Keyless.ts create mode 100644 ecosystem/typescript/sdk/src/generated/models/PublicKey_Secp256k1Ecdsa.ts create mode 100644 ecosystem/typescript/sdk/src/generated/models/PublicKey_Secp256r1Ecdsa.ts create mode 100644 ecosystem/typescript/sdk/src/generated/models/Secp256k1Ecdsa.ts create mode 100644 ecosystem/typescript/sdk/src/generated/models/Secp256r1Ecdsa.ts create mode 100644 ecosystem/typescript/sdk/src/generated/models/Signature_Ed25519.ts create mode 100644 ecosystem/typescript/sdk/src/generated/models/Signature_Keyless.ts create mode 100644 ecosystem/typescript/sdk/src/generated/models/Signature_Secp256k1Ecdsa.ts create mode 100644 ecosystem/typescript/sdk/src/generated/models/Signature_WebAuthn.ts create mode 100644 ecosystem/typescript/sdk/src/generated/models/Transaction_BlockEpilogueTransaction.ts create mode 100644 ecosystem/typescript/sdk/src/generated/models/WebAuthn.ts diff --git a/api/doc/spec.json b/api/doc/spec.json index 0c660118eb552..9757337ae35e5 100644 --- a/api/doc/spec.json +++ b/api/doc/spec.json @@ -14462,6 +14462,17 @@ } } }, + "Ed25519": { + "type": "object", + "required": [ + "value" + ], + "properties": { + "value": { + "$ref": "#/components/schemas/HexEncodedBytes" + } + } + }, "Ed25519Signature": { "type": "object", "description": "A single Ed25519 signature", @@ -14846,6 +14857,17 @@ } } }, + "Keyless": { + "type": "object", + "required": [ + "value" + ], + "properties": { + "value": { + "$ref": "#/components/schemas/HexEncodedBytes" + } + } + }, "MoveAbility": { "type": "string" }, @@ -15345,29 +15367,48 @@ "type": "object", "oneOf": [ { - "$ref": "#/components/schemas/PublicKey_string(HexEncodedBytes)" + "$ref": "#/components/schemas/PublicKey_Ed25519" }, { - "$ref": "#/components/schemas/PublicKey_string(HexEncodedBytes)" + "$ref": "#/components/schemas/PublicKey_Secp256k1Ecdsa" }, { - "$ref": "#/components/schemas/PublicKey_string(HexEncodedBytes)" + "$ref": "#/components/schemas/PublicKey_Secp256r1Ecdsa" }, { - "$ref": "#/components/schemas/PublicKey_string(HexEncodedBytes)" + "$ref": "#/components/schemas/PublicKey_Keyless" } ], "discriminator": { "propertyName": "type", "mapping": { - "ed25519": "#/components/schemas/PublicKey_string(HexEncodedBytes)", - "secp256k1_ecdsa": "#/components/schemas/PublicKey_string(HexEncodedBytes)", - "secp256r1_ecdsa": "#/components/schemas/PublicKey_string(HexEncodedBytes)", - "keyless": "#/components/schemas/PublicKey_string(HexEncodedBytes)" + "ed25519": "#/components/schemas/PublicKey_Ed25519", + "secp256k1_ecdsa": "#/components/schemas/PublicKey_Secp256k1Ecdsa", + "secp256r1_ecdsa": "#/components/schemas/PublicKey_Secp256r1Ecdsa", + "keyless": "#/components/schemas/PublicKey_Keyless" } } }, - "PublicKey_string(HexEncodedBytes)": { + "PublicKey_Ed25519": { + "allOf": [ + { + "type": "object", + "required": [ + "type" + ], + "properties": { + "type": { + "type": "string", + "example": "ed25519" + } + } + }, + { + "$ref": "#/components/schemas/Ed25519" + } + ] + }, + "PublicKey_Keyless": { "allOf": [ { "type": "object", @@ -15382,7 +15423,45 @@ } }, { - "$ref": "#/components/schemas/HexEncodedBytes" + "$ref": "#/components/schemas/Keyless" + } + ] + }, + "PublicKey_Secp256k1Ecdsa": { + "allOf": [ + { + "type": "object", + "required": [ + "type" + ], + "properties": { + "type": { + "type": "string", + "example": "secp256k1_ecdsa" + } + } + }, + { + "$ref": "#/components/schemas/Secp256k1Ecdsa" + } + ] + }, + "PublicKey_Secp256r1Ecdsa": { + "allOf": [ + { + "type": "object", + "required": [ + "type" + ], + "properties": { + "type": { + "type": "string", + "example": "secp256r1_ecdsa" + } + } + }, + { + "$ref": "#/components/schemas/Secp256r1Ecdsa" } ] }, @@ -15446,33 +15525,74 @@ } } }, + "Secp256k1Ecdsa": { + "type": "object", + "required": [ + "value" + ], + "properties": { + "value": { + "$ref": "#/components/schemas/HexEncodedBytes" + } + } + }, + "Secp256r1Ecdsa": { + "type": "object", + "required": [ + "value" + ], + "properties": { + "value": { + "$ref": "#/components/schemas/HexEncodedBytes" + } + } + }, "Signature": { "type": "object", "oneOf": [ { - "$ref": "#/components/schemas/Signature_string(HexEncodedBytes)" + "$ref": "#/components/schemas/Signature_Ed25519" }, { - "$ref": "#/components/schemas/Signature_string(HexEncodedBytes)" + "$ref": "#/components/schemas/Signature_Secp256k1Ecdsa" }, { - "$ref": "#/components/schemas/Signature_string(HexEncodedBytes)" + "$ref": "#/components/schemas/Signature_WebAuthn" }, { - "$ref": "#/components/schemas/Signature_string(HexEncodedBytes)" + "$ref": "#/components/schemas/Signature_Keyless" } ], "discriminator": { "propertyName": "type", "mapping": { - "ed25519": "#/components/schemas/Signature_string(HexEncodedBytes)", - "secp256k1_ecdsa": "#/components/schemas/Signature_string(HexEncodedBytes)", - "web_authn": "#/components/schemas/Signature_string(HexEncodedBytes)", - "keyless": "#/components/schemas/Signature_string(HexEncodedBytes)" + "ed25519": "#/components/schemas/Signature_Ed25519", + "secp256k1_ecdsa": "#/components/schemas/Signature_Secp256k1Ecdsa", + "web_authn": "#/components/schemas/Signature_WebAuthn", + "keyless": "#/components/schemas/Signature_Keyless" } } }, - "Signature_string(HexEncodedBytes)": { + "Signature_Ed25519": { + "allOf": [ + { + "type": "object", + "required": [ + "type" + ], + "properties": { + "type": { + "type": "string", + "example": "ed25519" + } + } + }, + { + "$ref": "#/components/schemas/Ed25519" + } + ] + }, + "Signature_Keyless": { "allOf": [ { "type": "object", @@ -15487,7 +15607,45 @@ } }, { - "$ref": "#/components/schemas/HexEncodedBytes" + "$ref": "#/components/schemas/Keyless" + } + ] + }, + "Signature_Secp256k1Ecdsa": { + "allOf": [ + { + "type": "object", + "required": [ + "type" + ], + "properties": { + "type": { + "type": "string", + "example": "secp256k1_ecdsa" + } + } + }, + { + "$ref": "#/components/schemas/Secp256k1Ecdsa" + } + ] + }, + "Signature_WebAuthn": { + "allOf": [ + { + "type": "object", + "required": [ + "type" + ], + "properties": { + "type": { + "type": "string", + "example": "web_authn" + } + } + }, + { + "$ref": "#/components/schemas/WebAuthn" } ] }, @@ -16287,6 +16445,17 @@ } } }, + "WebAuthn": { + "type": "object", + "required": [ + "value" + ], + "properties": { + "value": { + "$ref": "#/components/schemas/HexEncodedBytes" + } + } + }, "WriteModule": { "type": "object", "description": "Write a new module or update an existing one", diff --git a/api/doc/spec.yaml b/api/doc/spec.yaml index 5157d2cab86d3..d7d2aab1b221b 100644 --- a/api/doc/spec.yaml +++ b/api/doc/spec.yaml @@ -10818,6 +10818,13 @@ components: type: array items: $ref: '#/components/schemas/Event' + Ed25519: + type: object + required: + - value + properties: + value: + $ref: '#/components/schemas/HexEncodedBytes' Ed25519Signature: type: object description: A single Ed25519 signature @@ -11103,6 +11110,13 @@ components: format: uint8 signature: $ref: '#/components/schemas/Signature' + Keyless: + type: object + required: + - value + properties: + value: + $ref: '#/components/schemas/HexEncodedBytes' MoveAbility: type: string MoveFunction: @@ -11538,18 +11552,28 @@ components: PublicKey: type: object oneOf: - - $ref: '#/components/schemas/PublicKey_string(HexEncodedBytes)' - - $ref: '#/components/schemas/PublicKey_string(HexEncodedBytes)' - - $ref: '#/components/schemas/PublicKey_string(HexEncodedBytes)' - - $ref: '#/components/schemas/PublicKey_string(HexEncodedBytes)' + - $ref: '#/components/schemas/PublicKey_Ed25519' + - $ref: '#/components/schemas/PublicKey_Secp256k1Ecdsa' + - $ref: '#/components/schemas/PublicKey_Secp256r1Ecdsa' + - $ref: '#/components/schemas/PublicKey_Keyless' discriminator: propertyName: type mapping: - ed25519: '#/components/schemas/PublicKey_string(HexEncodedBytes)' - secp256k1_ecdsa: '#/components/schemas/PublicKey_string(HexEncodedBytes)' - secp256r1_ecdsa: '#/components/schemas/PublicKey_string(HexEncodedBytes)' - keyless: '#/components/schemas/PublicKey_string(HexEncodedBytes)' - PublicKey_string(HexEncodedBytes): + ed25519: '#/components/schemas/PublicKey_Ed25519' + secp256k1_ecdsa: '#/components/schemas/PublicKey_Secp256k1Ecdsa' + secp256r1_ecdsa: '#/components/schemas/PublicKey_Secp256r1Ecdsa' + keyless: '#/components/schemas/PublicKey_Keyless' + PublicKey_Ed25519: + allOf: + - type: object + required: + - type + properties: + type: + type: string + example: ed25519 + - $ref: '#/components/schemas/Ed25519' + PublicKey_Keyless: allOf: - type: object required: @@ -11558,7 +11582,27 @@ components: type: type: string example: keyless - - $ref: '#/components/schemas/HexEncodedBytes' + - $ref: '#/components/schemas/Keyless' + PublicKey_Secp256k1Ecdsa: + allOf: + - type: object + required: + - type + properties: + type: + type: string + example: secp256k1_ecdsa + - $ref: '#/components/schemas/Secp256k1Ecdsa' + PublicKey_Secp256r1Ecdsa: + allOf: + - type: object + required: + - type + properties: + type: + type: string + example: secp256r1_ecdsa + - $ref: '#/components/schemas/Secp256r1Ecdsa' RawTableItemRequest: type: object description: Table Item request for the GetTableItemRaw API @@ -11601,21 +11645,45 @@ components: $ref: '#/components/schemas/Address' script: $ref: '#/components/schemas/ScriptPayload' + Secp256k1Ecdsa: + type: object + required: + - value + properties: + value: + $ref: '#/components/schemas/HexEncodedBytes' + Secp256r1Ecdsa: + type: object + required: + - value + properties: + value: + $ref: '#/components/schemas/HexEncodedBytes' Signature: type: object oneOf: - - $ref: '#/components/schemas/Signature_string(HexEncodedBytes)' - - $ref: '#/components/schemas/Signature_string(HexEncodedBytes)' - - $ref: '#/components/schemas/Signature_string(HexEncodedBytes)' - - $ref: '#/components/schemas/Signature_string(HexEncodedBytes)' + - $ref: '#/components/schemas/Signature_Ed25519' + - $ref: '#/components/schemas/Signature_Secp256k1Ecdsa' + - $ref: '#/components/schemas/Signature_WebAuthn' + - $ref: '#/components/schemas/Signature_Keyless' discriminator: propertyName: type mapping: - ed25519: '#/components/schemas/Signature_string(HexEncodedBytes)' - secp256k1_ecdsa: '#/components/schemas/Signature_string(HexEncodedBytes)' - web_authn: '#/components/schemas/Signature_string(HexEncodedBytes)' - keyless: '#/components/schemas/Signature_string(HexEncodedBytes)' - Signature_string(HexEncodedBytes): + ed25519: '#/components/schemas/Signature_Ed25519' + secp256k1_ecdsa: '#/components/schemas/Signature_Secp256k1Ecdsa' + web_authn: '#/components/schemas/Signature_WebAuthn' + keyless: '#/components/schemas/Signature_Keyless' + Signature_Ed25519: + allOf: + - type: object + required: + - type + properties: + type: + type: string + example: ed25519 + - $ref: '#/components/schemas/Ed25519' + Signature_Keyless: allOf: - type: object required: @@ -11624,7 +11692,27 @@ components: type: type: string example: keyless - - $ref: '#/components/schemas/HexEncodedBytes' + - $ref: '#/components/schemas/Keyless' + Signature_Secp256k1Ecdsa: + allOf: + - type: object + required: + - type + properties: + type: + type: string + example: secp256k1_ecdsa + - $ref: '#/components/schemas/Secp256k1Ecdsa' + Signature_WebAuthn: + allOf: + - type: object + required: + - type + properties: + type: + type: string + example: web_authn + - $ref: '#/components/schemas/WebAuthn' SingleKeySignature: type: object description: A single key signature @@ -12146,6 +12234,13 @@ components: type: array description: Arguments of the function items: {} + WebAuthn: + type: object + required: + - value + properties: + value: + $ref: '#/components/schemas/HexEncodedBytes' WriteModule: type: object description: Write a new module or update an existing one diff --git a/ecosystem/typescript/sdk/src/generated/index.ts b/ecosystem/typescript/sdk/src/generated/index.ts index 860dbb5232369..d58133dc2eb18 100644 --- a/ecosystem/typescript/sdk/src/generated/index.ts +++ b/ecosystem/typescript/sdk/src/generated/index.ts @@ -12,6 +12,8 @@ export type { Address } from './models/Address'; export type { AptosError } from './models/AptosError'; export { AptosErrorCode } from './models/AptosErrorCode'; export type { Block } from './models/Block'; +export type { BlockEndInfo } from './models/BlockEndInfo'; +export type { BlockEpilogueTransaction } from './models/BlockEpilogueTransaction'; export type { BlockMetadataTransaction } from './models/BlockMetadataTransaction'; export type { DecodedTableData } from './models/DecodedTableData'; export type { DeletedTableData } from './models/DeletedTableData'; @@ -20,6 +22,7 @@ export type { DeleteResource } from './models/DeleteResource'; export type { DeleteTableItem } from './models/DeleteTableItem'; export type { DeprecatedModuleBundlePayload } from './models/DeprecatedModuleBundlePayload'; export type { DirectWriteSet } from './models/DirectWriteSet'; +export type { Ed25519 } from './models/Ed25519'; export type { Ed25519Signature } from './models/Ed25519Signature'; export type { EncodeSubmissionRequest } from './models/EncodeSubmissionRequest'; export type { EntryFunctionId } from './models/EntryFunctionId'; @@ -37,6 +40,7 @@ export type { HexEncodedBytes } from './models/HexEncodedBytes'; export type { IdentifierWrapper } from './models/IdentifierWrapper'; export type { IndexedSignature } from './models/IndexedSignature'; export type { IndexResponse } from './models/IndexResponse'; +export type { Keyless } from './models/Keyless'; export type { MoveAbility } from './models/MoveAbility'; export type { MoveFunction } from './models/MoveFunction'; export type { MoveFunctionGenericTypeParam } from './models/MoveFunctionGenericTypeParam'; @@ -61,19 +65,28 @@ export type { MultisigTransactionPayload } from './models/MultisigTransactionPay export type { MultisigTransactionPayload_EntryFunctionPayload } from './models/MultisigTransactionPayload_EntryFunctionPayload'; export type { PendingTransaction } from './models/PendingTransaction'; export type { PublicKey } from './models/PublicKey'; -export type { PublicKey_string_HexEncodedBytes_ } from './models/PublicKey_string_HexEncodedBytes_'; +export type { PublicKey_Ed25519 } from './models/PublicKey_Ed25519'; +export type { PublicKey_Keyless } from './models/PublicKey_Keyless'; +export type { PublicKey_Secp256k1Ecdsa } from './models/PublicKey_Secp256k1Ecdsa'; +export type { PublicKey_Secp256r1Ecdsa } from './models/PublicKey_Secp256r1Ecdsa'; export type { RawTableItemRequest } from './models/RawTableItemRequest'; export { RoleType } from './models/RoleType'; export type { ScriptPayload } from './models/ScriptPayload'; export type { ScriptWriteSet } from './models/ScriptWriteSet'; +export type { Secp256k1Ecdsa } from './models/Secp256k1Ecdsa'; +export type { Secp256r1Ecdsa } from './models/Secp256r1Ecdsa'; export type { Signature } from './models/Signature'; -export type { Signature_string_HexEncodedBytes_ } from './models/Signature_string_HexEncodedBytes_'; +export type { Signature_Ed25519 } from './models/Signature_Ed25519'; +export type { Signature_Keyless } from './models/Signature_Keyless'; +export type { Signature_Secp256k1Ecdsa } from './models/Signature_Secp256k1Ecdsa'; +export type { Signature_WebAuthn } from './models/Signature_WebAuthn'; export type { SingleKeySignature } from './models/SingleKeySignature'; export type { StateCheckpointTransaction } from './models/StateCheckpointTransaction'; export type { StateKeyWrapper } from './models/StateKeyWrapper'; export type { SubmitTransactionRequest } from './models/SubmitTransactionRequest'; export type { TableItemRequest } from './models/TableItemRequest'; export type { Transaction } from './models/Transaction'; +export type { Transaction_BlockEpilogueTransaction } from './models/Transaction_BlockEpilogueTransaction'; export type { Transaction_BlockMetadataTransaction } from './models/Transaction_BlockMetadataTransaction'; export type { Transaction_GenesisTransaction } from './models/Transaction_GenesisTransaction'; export type { Transaction_PendingTransaction } from './models/Transaction_PendingTransaction'; @@ -100,6 +113,7 @@ export type { UserTransaction } from './models/UserTransaction'; export type { ValidatorTransaction } from './models/ValidatorTransaction'; export type { VersionedEvent } from './models/VersionedEvent'; export type { ViewRequest } from './models/ViewRequest'; +export type { WebAuthn } from './models/WebAuthn'; export type { WriteModule } from './models/WriteModule'; export type { WriteResource } from './models/WriteResource'; export type { WriteSet } from './models/WriteSet'; diff --git a/ecosystem/typescript/sdk/src/generated/models/BlockEndInfo.ts b/ecosystem/typescript/sdk/src/generated/models/BlockEndInfo.ts new file mode 100644 index 0000000000000..ebea2c204ec78 --- /dev/null +++ b/ecosystem/typescript/sdk/src/generated/models/BlockEndInfo.ts @@ -0,0 +1,11 @@ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +export type BlockEndInfo = { + block_gas_limit_reached: boolean; + block_output_limit_reached: boolean; + block_effective_block_gas_units: number; + block_approx_output_size: number; +}; + diff --git a/ecosystem/typescript/sdk/src/generated/models/BlockEpilogueTransaction.ts b/ecosystem/typescript/sdk/src/generated/models/BlockEpilogueTransaction.ts new file mode 100644 index 0000000000000..3314ed8e960fd --- /dev/null +++ b/ecosystem/typescript/sdk/src/generated/models/BlockEpilogueTransaction.ts @@ -0,0 +1,36 @@ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +import type { BlockEndInfo } from './BlockEndInfo'; +import type { HashValue } from './HashValue'; +import type { U64 } from './U64'; +import type { WriteSetChange } from './WriteSetChange'; + +/** + * A block epilogue transaction + */ +export type BlockEpilogueTransaction = { + version: U64; + hash: HashValue; + state_change_hash: HashValue; + event_root_hash: HashValue; + state_checkpoint_hash?: HashValue; + gas_used: U64; + /** + * Whether the transaction was successful + */ + success: boolean; + /** + * The VM status of the transaction, can tell useful information in a failure + */ + vm_status: string; + accumulator_root_hash: HashValue; + /** + * Final state of resources changed by the transaction + */ + changes: Array; + timestamp: U64; + block_end_info?: BlockEndInfo; +}; + diff --git a/ecosystem/typescript/sdk/src/generated/models/PublicKey_string_HexEncodedBytes_.ts b/ecosystem/typescript/sdk/src/generated/models/Ed25519.ts similarity index 58% rename from ecosystem/typescript/sdk/src/generated/models/PublicKey_string_HexEncodedBytes_.ts rename to ecosystem/typescript/sdk/src/generated/models/Ed25519.ts index 488809a28110a..585d5abb76fd4 100644 --- a/ecosystem/typescript/sdk/src/generated/models/PublicKey_string_HexEncodedBytes_.ts +++ b/ecosystem/typescript/sdk/src/generated/models/Ed25519.ts @@ -4,7 +4,7 @@ import type { HexEncodedBytes } from './HexEncodedBytes'; -export type PublicKey_string_HexEncodedBytes_ = ({ - type: string; -} & HexEncodedBytes); +export type Ed25519 = { + value: HexEncodedBytes; +}; diff --git a/ecosystem/typescript/sdk/src/generated/models/Signature_string_HexEncodedBytes_.ts b/ecosystem/typescript/sdk/src/generated/models/Keyless.ts similarity index 58% rename from ecosystem/typescript/sdk/src/generated/models/Signature_string_HexEncodedBytes_.ts rename to ecosystem/typescript/sdk/src/generated/models/Keyless.ts index 74cc378d7c04b..e7917b795bab2 100644 --- a/ecosystem/typescript/sdk/src/generated/models/Signature_string_HexEncodedBytes_.ts +++ b/ecosystem/typescript/sdk/src/generated/models/Keyless.ts @@ -4,7 +4,7 @@ import type { HexEncodedBytes } from './HexEncodedBytes'; -export type Signature_string_HexEncodedBytes_ = ({ - type: string; -} & HexEncodedBytes); +export type Keyless = { + value: HexEncodedBytes; +}; diff --git a/ecosystem/typescript/sdk/src/generated/models/PublicKey.ts b/ecosystem/typescript/sdk/src/generated/models/PublicKey.ts index e9611882147b1..e058f28669ea5 100644 --- a/ecosystem/typescript/sdk/src/generated/models/PublicKey.ts +++ b/ecosystem/typescript/sdk/src/generated/models/PublicKey.ts @@ -2,7 +2,10 @@ /* tslint:disable */ /* eslint-disable */ -import type { PublicKey_string_HexEncodedBytes_ } from './PublicKey_string_HexEncodedBytes_'; +import type { PublicKey_Ed25519 } from './PublicKey_Ed25519'; +import type { PublicKey_Keyless } from './PublicKey_Keyless'; +import type { PublicKey_Secp256k1Ecdsa } from './PublicKey_Secp256k1Ecdsa'; +import type { PublicKey_Secp256r1Ecdsa } from './PublicKey_Secp256r1Ecdsa'; -export type PublicKey = PublicKey_string_HexEncodedBytes_; +export type PublicKey = (PublicKey_Ed25519 | PublicKey_Secp256k1Ecdsa | PublicKey_Secp256r1Ecdsa | PublicKey_Keyless); diff --git a/ecosystem/typescript/sdk/src/generated/models/PublicKey_Ed25519.ts b/ecosystem/typescript/sdk/src/generated/models/PublicKey_Ed25519.ts new file mode 100644 index 0000000000000..aba535a16f4ad --- /dev/null +++ b/ecosystem/typescript/sdk/src/generated/models/PublicKey_Ed25519.ts @@ -0,0 +1,10 @@ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +import type { Ed25519 } from './Ed25519'; + +export type PublicKey_Ed25519 = ({ + type: string; +} & Ed25519); + diff --git a/ecosystem/typescript/sdk/src/generated/models/PublicKey_Keyless.ts b/ecosystem/typescript/sdk/src/generated/models/PublicKey_Keyless.ts new file mode 100644 index 0000000000000..1125c14e96587 --- /dev/null +++ b/ecosystem/typescript/sdk/src/generated/models/PublicKey_Keyless.ts @@ -0,0 +1,10 @@ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +import type { Keyless } from './Keyless'; + +export type PublicKey_Keyless = ({ + type: string; +} & Keyless); + diff --git a/ecosystem/typescript/sdk/src/generated/models/PublicKey_Secp256k1Ecdsa.ts b/ecosystem/typescript/sdk/src/generated/models/PublicKey_Secp256k1Ecdsa.ts new file mode 100644 index 0000000000000..b517615973cfe --- /dev/null +++ b/ecosystem/typescript/sdk/src/generated/models/PublicKey_Secp256k1Ecdsa.ts @@ -0,0 +1,10 @@ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +import type { Secp256k1Ecdsa } from './Secp256k1Ecdsa'; + +export type PublicKey_Secp256k1Ecdsa = ({ + type: string; +} & Secp256k1Ecdsa); + diff --git a/ecosystem/typescript/sdk/src/generated/models/PublicKey_Secp256r1Ecdsa.ts b/ecosystem/typescript/sdk/src/generated/models/PublicKey_Secp256r1Ecdsa.ts new file mode 100644 index 0000000000000..ba43033f1f67a --- /dev/null +++ b/ecosystem/typescript/sdk/src/generated/models/PublicKey_Secp256r1Ecdsa.ts @@ -0,0 +1,10 @@ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +import type { Secp256r1Ecdsa } from './Secp256r1Ecdsa'; + +export type PublicKey_Secp256r1Ecdsa = ({ + type: string; +} & Secp256r1Ecdsa); + diff --git a/ecosystem/typescript/sdk/src/generated/models/Secp256k1Ecdsa.ts b/ecosystem/typescript/sdk/src/generated/models/Secp256k1Ecdsa.ts new file mode 100644 index 0000000000000..e00324c277a19 --- /dev/null +++ b/ecosystem/typescript/sdk/src/generated/models/Secp256k1Ecdsa.ts @@ -0,0 +1,10 @@ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +import type { HexEncodedBytes } from './HexEncodedBytes'; + +export type Secp256k1Ecdsa = { + value: HexEncodedBytes; +}; + diff --git a/ecosystem/typescript/sdk/src/generated/models/Secp256r1Ecdsa.ts b/ecosystem/typescript/sdk/src/generated/models/Secp256r1Ecdsa.ts new file mode 100644 index 0000000000000..992c8445ccae1 --- /dev/null +++ b/ecosystem/typescript/sdk/src/generated/models/Secp256r1Ecdsa.ts @@ -0,0 +1,10 @@ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +import type { HexEncodedBytes } from './HexEncodedBytes'; + +export type Secp256r1Ecdsa = { + value: HexEncodedBytes; +}; + diff --git a/ecosystem/typescript/sdk/src/generated/models/Signature.ts b/ecosystem/typescript/sdk/src/generated/models/Signature.ts index ebd65c20a1d20..b3375090db5dd 100644 --- a/ecosystem/typescript/sdk/src/generated/models/Signature.ts +++ b/ecosystem/typescript/sdk/src/generated/models/Signature.ts @@ -2,7 +2,10 @@ /* tslint:disable */ /* eslint-disable */ -import type { Signature_string_HexEncodedBytes_ } from './Signature_string_HexEncodedBytes_'; +import type { Signature_Ed25519 } from './Signature_Ed25519'; +import type { Signature_Keyless } from './Signature_Keyless'; +import type { Signature_Secp256k1Ecdsa } from './Signature_Secp256k1Ecdsa'; +import type { Signature_WebAuthn } from './Signature_WebAuthn'; -export type Signature = Signature_string_HexEncodedBytes_; +export type Signature = (Signature_Ed25519 | Signature_Secp256k1Ecdsa | Signature_WebAuthn | Signature_Keyless); diff --git a/ecosystem/typescript/sdk/src/generated/models/Signature_Ed25519.ts b/ecosystem/typescript/sdk/src/generated/models/Signature_Ed25519.ts new file mode 100644 index 0000000000000..c76b89fe9501d --- /dev/null +++ b/ecosystem/typescript/sdk/src/generated/models/Signature_Ed25519.ts @@ -0,0 +1,10 @@ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +import type { Ed25519 } from './Ed25519'; + +export type Signature_Ed25519 = ({ + type: string; +} & Ed25519); + diff --git a/ecosystem/typescript/sdk/src/generated/models/Signature_Keyless.ts b/ecosystem/typescript/sdk/src/generated/models/Signature_Keyless.ts new file mode 100644 index 0000000000000..24d0d746964f8 --- /dev/null +++ b/ecosystem/typescript/sdk/src/generated/models/Signature_Keyless.ts @@ -0,0 +1,10 @@ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +import type { Keyless } from './Keyless'; + +export type Signature_Keyless = ({ + type: string; +} & Keyless); + diff --git a/ecosystem/typescript/sdk/src/generated/models/Signature_Secp256k1Ecdsa.ts b/ecosystem/typescript/sdk/src/generated/models/Signature_Secp256k1Ecdsa.ts new file mode 100644 index 0000000000000..5a6609fde59d2 --- /dev/null +++ b/ecosystem/typescript/sdk/src/generated/models/Signature_Secp256k1Ecdsa.ts @@ -0,0 +1,10 @@ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +import type { Secp256k1Ecdsa } from './Secp256k1Ecdsa'; + +export type Signature_Secp256k1Ecdsa = ({ + type: string; +} & Secp256k1Ecdsa); + diff --git a/ecosystem/typescript/sdk/src/generated/models/Signature_WebAuthn.ts b/ecosystem/typescript/sdk/src/generated/models/Signature_WebAuthn.ts new file mode 100644 index 0000000000000..19109c21bbb91 --- /dev/null +++ b/ecosystem/typescript/sdk/src/generated/models/Signature_WebAuthn.ts @@ -0,0 +1,10 @@ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +import type { WebAuthn } from './WebAuthn'; + +export type Signature_WebAuthn = ({ + type: string; +} & WebAuthn); + diff --git a/ecosystem/typescript/sdk/src/generated/models/Transaction.ts b/ecosystem/typescript/sdk/src/generated/models/Transaction.ts index 6cbd41ca39a96..9332b69176960 100644 --- a/ecosystem/typescript/sdk/src/generated/models/Transaction.ts +++ b/ecosystem/typescript/sdk/src/generated/models/Transaction.ts @@ -2,6 +2,7 @@ /* tslint:disable */ /* eslint-disable */ +import type { Transaction_BlockEpilogueTransaction } from './Transaction_BlockEpilogueTransaction'; import type { Transaction_BlockMetadataTransaction } from './Transaction_BlockMetadataTransaction'; import type { Transaction_GenesisTransaction } from './Transaction_GenesisTransaction'; import type { Transaction_PendingTransaction } from './Transaction_PendingTransaction'; @@ -12,5 +13,5 @@ import type { Transaction_ValidatorTransaction } from './Transaction_ValidatorTr /** * Enum of the different types of transactions in Aptos */ -export type Transaction = (Transaction_PendingTransaction | Transaction_UserTransaction | Transaction_GenesisTransaction | Transaction_BlockMetadataTransaction | Transaction_StateCheckpointTransaction | Transaction_ValidatorTransaction); +export type Transaction = (Transaction_PendingTransaction | Transaction_UserTransaction | Transaction_GenesisTransaction | Transaction_BlockMetadataTransaction | Transaction_StateCheckpointTransaction | Transaction_BlockEpilogueTransaction | Transaction_ValidatorTransaction); diff --git a/ecosystem/typescript/sdk/src/generated/models/Transaction_BlockEpilogueTransaction.ts b/ecosystem/typescript/sdk/src/generated/models/Transaction_BlockEpilogueTransaction.ts new file mode 100644 index 0000000000000..e4988c5f4449b --- /dev/null +++ b/ecosystem/typescript/sdk/src/generated/models/Transaction_BlockEpilogueTransaction.ts @@ -0,0 +1,10 @@ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +import type { BlockEpilogueTransaction } from './BlockEpilogueTransaction'; + +export type Transaction_BlockEpilogueTransaction = ({ + type: string; +} & BlockEpilogueTransaction); + diff --git a/ecosystem/typescript/sdk/src/generated/models/WebAuthn.ts b/ecosystem/typescript/sdk/src/generated/models/WebAuthn.ts new file mode 100644 index 0000000000000..26d588211971b --- /dev/null +++ b/ecosystem/typescript/sdk/src/generated/models/WebAuthn.ts @@ -0,0 +1,10 @@ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ + +import type { HexEncodedBytes } from './HexEncodedBytes'; + +export type WebAuthn = { + value: HexEncodedBytes; +}; +