Skip to content

Commit

Permalink
Regenerated TS SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
krzlabrdx committed Jul 13, 2023
1 parent f3b8969 commit 550782f
Show file tree
Hide file tree
Showing 38 changed files with 2,308 additions and 116 deletions.
22 changes: 22 additions & 0 deletions sdk/typescript/lib/generated/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ apis/index.ts
index.ts
models/AtLedgerStateMixin.ts
models/CommittedTransactionInfo.ts
models/ComponentEntityAccessRules.ts
models/CursorLimitMixin.ts
models/EntityMetadataCollection.ts
models/EntityMetadataCollectionAllOf.ts
Expand Down Expand Up @@ -44,6 +45,22 @@ models/InvalidTransactionErrorAllOf.ts
models/LedgerState.ts
models/LedgerStateMixin.ts
models/LedgerStateSelector.ts
models/MetadataNonFungibleGlobalIdArrayValue.ts
models/MetadataNonFungibleGlobalIdArrayValueAllOf.ts
models/MetadataNonFungibleGlobalIdArrayValueAllOfValues.ts
models/MetadataNonFungibleGlobalIdValue.ts
models/MetadataNonFungibleGlobalIdValueAllOf.ts
models/MetadataPublicKeyArrayValue.ts
models/MetadataPublicKeyArrayValueAllOf.ts
models/MetadataPublicKeyValue.ts
models/MetadataPublicKeyValueAllOf.ts
models/MetadataScalarArrayValue.ts
models/MetadataScalarArrayValueAllOf.ts
models/MetadataScalarValue.ts
models/MetadataScalarValueAllOf.ts
models/MetadataTypedValue.ts
models/MetadataTypedValueBase.ts
models/MetadataValueType.ts
models/NetworkConfigurationResponse.ts
models/NetworkConfigurationResponseWellKnownAddresses.ts
models/NonFungibleIdType.ts
Expand All @@ -65,6 +82,7 @@ models/NotSyncedUpError.ts
models/NotSyncedUpErrorAllOf.ts
models/OptionalNonFungibleIdsCollection.ts
models/OptionalNonFungibleIdsCollectionAllOf.ts
models/PackageVmType.ts
models/PublicKey.ts
models/PublicKeyBase.ts
models/PublicKeyEcdsaSecp256k1.ts
Expand Down Expand Up @@ -97,6 +115,9 @@ models/StateEntityDetailsResponseNonFungibleVaultDetails.ts
models/StateEntityDetailsResponseNonFungibleVaultDetailsAllOf.ts
models/StateEntityDetailsResponsePackageDetails.ts
models/StateEntityDetailsResponsePackageDetailsAllOf.ts
models/StateEntityDetailsResponsePackageDetailsBlueprintCollection.ts
models/StateEntityDetailsResponsePackageDetailsBlueprintCollectionAllOf.ts
models/StateEntityDetailsResponsePackageDetailsBlueprintItem.ts
models/StateEntityFungibleResourceVaultsPageRequest.ts
models/StateEntityFungibleResourceVaultsPageRequestAllOf.ts
models/StateEntityFungibleResourceVaultsPageResponse.ts
Expand Down Expand Up @@ -162,5 +183,6 @@ models/ValidatorCollection.ts
models/ValidatorCollectionAllOf.ts
models/ValidatorCollectionItem.ts
models/ValidatorCollectionItemActiveInEpoch.ts
models/ValidatorVaultItem.ts
models/index.ts
runtime.ts
75 changes: 75 additions & 0 deletions sdk/typescript/lib/generated/models/ComponentEntityAccessRules.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
/* tslint:disable */
/* eslint-disable */
/**
* Babylon Gateway API - RCnet V2
* This API is exposed by the Babylon Radix Gateway to enable clients to efficiently query current and historic state on the RadixDLT ledger, and intelligently handle transaction submission. It is designed for use by wallets and explorers. For simple use cases, you can typically use the Core API on a Node. A Gateway is only needed for reading historic snapshots of ledger states or a more robust set-up. The Gateway API is implemented by the [Network Gateway](https://github.com/radixdlt/babylon-gateway), which is configured to read from [full node(s)](https://github.com/radixdlt/babylon-node) to extract and index data from the network. This document is an API reference documentation, visit [User Guide](https://docs-babylon.radixdlt.com/) to learn more about how to run a Gateway of your own. ## Integration and forward compatibility guarantees We give no guarantees that other endpoints will not change before Babylon mainnet launch, although changes are expected to be minimal.
*
* The version of the OpenAPI document: 0.4.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/

import { exists, mapValues } from '../runtime';
/**
*
* @export
* @interface ComponentEntityAccessRules
*/
export interface ComponentEntityAccessRules {
/**
*
* @type {object}
* @memberof ComponentEntityAccessRules
*/
owner: object;
/**
*
* @type {object}
* @memberof ComponentEntityAccessRules
*/
entries: object;
}

/**
* Check if a given object implements the ComponentEntityAccessRules interface.
*/
export function instanceOfComponentEntityAccessRules(value: object): boolean {
let isInstance = true;
isInstance = isInstance && "owner" in value;
isInstance = isInstance && "entries" in value;

return isInstance;
}

export function ComponentEntityAccessRulesFromJSON(json: any): ComponentEntityAccessRules {
return ComponentEntityAccessRulesFromJSONTyped(json, false);
}

export function ComponentEntityAccessRulesFromJSONTyped(json: any, ignoreDiscriminator: boolean): ComponentEntityAccessRules {
if ((json === undefined) || (json === null)) {
return json;
}
return {

'owner': json['owner'],
'entries': json['entries'],
};
}

export function ComponentEntityAccessRulesToJSON(value?: ComponentEntityAccessRules | null): any {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {

'owner': value.owner,
'entries': value.entries,
};
}

9 changes: 9 additions & 0 deletions sdk/typescript/lib/generated/models/EntityMetadataItem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@ export interface EntityMetadataItem {
* @memberof EntityMetadataItem
*/
value: EntityMetadataItemValue;
/**
*
* @type {boolean}
* @memberof EntityMetadataItem
*/
is_locked: boolean;
/**
* TBD
* @type {number}
Expand All @@ -53,6 +59,7 @@ export function instanceOfEntityMetadataItem(value: object): boolean {
let isInstance = true;
isInstance = isInstance && "key" in value;
isInstance = isInstance && "value" in value;
isInstance = isInstance && "is_locked" in value;
isInstance = isInstance && "last_updated_at_state_version" in value;

return isInstance;
Expand All @@ -70,6 +77,7 @@ export function EntityMetadataItemFromJSONTyped(json: any, ignoreDiscriminator:

'key': json['key'],
'value': EntityMetadataItemValueFromJSON(json['value']),
'is_locked': json['is_locked'],
'last_updated_at_state_version': json['last_updated_at_state_version'],
};
}
Expand All @@ -85,6 +93,7 @@ export function EntityMetadataItemToJSON(value?: EntityMetadataItem | null): any

'key': value.key,
'value': EntityMetadataItemValueToJSON(value.value),
'is_locked': value.is_locked,
'last_updated_at_state_version': value.last_updated_at_state_version,
};
}
Expand Down
23 changes: 11 additions & 12 deletions sdk/typescript/lib/generated/models/EntityMetadataItemValue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@
*/

import { exists, mapValues } from '../runtime';
import type { MetadataTypedValue } from './MetadataTypedValue';
import {
MetadataTypedValueFromJSON,
MetadataTypedValueFromJSONTyped,
MetadataTypedValueToJSON,
} from './MetadataTypedValue';

/**
*
* @export
Expand All @@ -33,16 +40,10 @@ export interface EntityMetadataItemValue {
raw_json: object;
/**
*
* @type {string}
* @memberof EntityMetadataItemValue
*/
as_string?: string;
/**
*
* @type {Array<string>}
* @type {MetadataTypedValue}
* @memberof EntityMetadataItemValue
*/
as_string_collection?: Array<string>;
typed?: MetadataTypedValue;
}

/**
Expand All @@ -68,8 +69,7 @@ export function EntityMetadataItemValueFromJSONTyped(json: any, ignoreDiscrimina

'raw_hex': json['raw_hex'],
'raw_json': json['raw_json'],
'as_string': !exists(json, 'as_string') ? undefined : json['as_string'],
'as_string_collection': !exists(json, 'as_string_collection') ? undefined : json['as_string_collection'],
'typed': !exists(json, 'typed') ? undefined : MetadataTypedValueFromJSON(json['typed']),
};
}

Expand All @@ -84,8 +84,7 @@ export function EntityMetadataItemValueToJSON(value?: EntityMetadataItemValue |

'raw_hex': value.raw_hex,
'raw_json': value.raw_json,
'as_string': value.as_string,
'as_string_collection': value.as_string_collection,
'typed': MetadataTypedValueToJSON(value.typed),
};
}

23 changes: 11 additions & 12 deletions sdk/typescript/lib/generated/models/EntityMetadataItemValueAllOf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@
*/

import { exists, mapValues } from '../runtime';
import type { MetadataTypedValue } from './MetadataTypedValue';
import {
MetadataTypedValueFromJSON,
MetadataTypedValueFromJSONTyped,
MetadataTypedValueToJSON,
} from './MetadataTypedValue';

/**
*
* @export
Expand All @@ -21,16 +28,10 @@ import { exists, mapValues } from '../runtime';
export interface EntityMetadataItemValueAllOf {
/**
*
* @type {string}
* @memberof EntityMetadataItemValueAllOf
*/
as_string?: string;
/**
*
* @type {Array<string>}
* @type {MetadataTypedValue}
* @memberof EntityMetadataItemValueAllOf
*/
as_string_collection?: Array<string>;
typed?: MetadataTypedValue;
}

/**
Expand All @@ -52,8 +53,7 @@ export function EntityMetadataItemValueAllOfFromJSONTyped(json: any, ignoreDiscr
}
return {

'as_string': !exists(json, 'as_string') ? undefined : json['as_string'],
'as_string_collection': !exists(json, 'as_string_collection') ? undefined : json['as_string_collection'],
'typed': !exists(json, 'typed') ? undefined : MetadataTypedValueFromJSON(json['typed']),
};
}

Expand All @@ -66,8 +66,7 @@ export function EntityMetadataItemValueAllOfToJSON(value?: EntityMetadataItemVal
}
return {

'as_string': value.as_string,
'as_string_collection': value.as_string_collection,
'typed': MetadataTypedValueToJSON(value.typed),
};
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
/* tslint:disable */
/* eslint-disable */
/**
* Babylon Gateway API - RCnet V2
* This API is exposed by the Babylon Radix Gateway to enable clients to efficiently query current and historic state on the RadixDLT ledger, and intelligently handle transaction submission. It is designed for use by wallets and explorers. For simple use cases, you can typically use the Core API on a Node. A Gateway is only needed for reading historic snapshots of ledger states or a more robust set-up. The Gateway API is implemented by the [Network Gateway](https://github.com/radixdlt/babylon-gateway), which is configured to read from [full node(s)](https://github.com/radixdlt/babylon-node) to extract and index data from the network. This document is an API reference documentation, visit [User Guide](https://docs-babylon.radixdlt.com/) to learn more about how to run a Gateway of your own. ## Integration and forward compatibility guarantees We give no guarantees that other endpoints will not change before Babylon mainnet launch, although changes are expected to be minimal.
*
* The version of the OpenAPI document: 0.4.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/

import { exists, mapValues } from '../runtime';
import type { MetadataNonFungibleGlobalIdArrayValueAllOfValues } from './MetadataNonFungibleGlobalIdArrayValueAllOfValues';
import {
MetadataNonFungibleGlobalIdArrayValueAllOfValuesFromJSON,
MetadataNonFungibleGlobalIdArrayValueAllOfValuesFromJSONTyped,
MetadataNonFungibleGlobalIdArrayValueAllOfValuesToJSON,
} from './MetadataNonFungibleGlobalIdArrayValueAllOfValues';

/**
*
* @export
* @interface MetadataNonFungibleGlobalIdArrayValue
*/
export interface MetadataNonFungibleGlobalIdArrayValue {
/**
*
* @type {string}
* @memberof MetadataNonFungibleGlobalIdArrayValue
*/
type: MetadataNonFungibleGlobalIdArrayValueTypeEnum;
/**
*
* @type {Array<MetadataNonFungibleGlobalIdArrayValueAllOfValues>}
* @memberof MetadataNonFungibleGlobalIdArrayValue
*/
values: Array<MetadataNonFungibleGlobalIdArrayValueAllOfValues>;
}


/**
* @export
*/
export const MetadataNonFungibleGlobalIdArrayValueTypeEnum = {
NonFungibleGlobalIdArray: 'NonFungibleGlobalIdArray'
} as const;
export type MetadataNonFungibleGlobalIdArrayValueTypeEnum = typeof MetadataNonFungibleGlobalIdArrayValueTypeEnum[keyof typeof MetadataNonFungibleGlobalIdArrayValueTypeEnum];


/**
* Check if a given object implements the MetadataNonFungibleGlobalIdArrayValue interface.
*/
export function instanceOfMetadataNonFungibleGlobalIdArrayValue(value: object): boolean {
let isInstance = true;
isInstance = isInstance && "type" in value;
isInstance = isInstance && "values" in value;

return isInstance;
}

export function MetadataNonFungibleGlobalIdArrayValueFromJSON(json: any): MetadataNonFungibleGlobalIdArrayValue {
return MetadataNonFungibleGlobalIdArrayValueFromJSONTyped(json, false);
}

export function MetadataNonFungibleGlobalIdArrayValueFromJSONTyped(json: any, ignoreDiscriminator: boolean): MetadataNonFungibleGlobalIdArrayValue {
if ((json === undefined) || (json === null)) {
return json;
}
return {

'type': json['type'],
'values': ((json['values'] as Array<any>).map(MetadataNonFungibleGlobalIdArrayValueAllOfValuesFromJSON)),
};
}

export function MetadataNonFungibleGlobalIdArrayValueToJSON(value?: MetadataNonFungibleGlobalIdArrayValue | null): any {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {

'type': value.type,
'values': ((value.values as Array<any>).map(MetadataNonFungibleGlobalIdArrayValueAllOfValuesToJSON)),
};
}

Loading

0 comments on commit 550782f

Please sign in to comment.