diff --git a/package.json b/package.json index 299a1b1..610bb40 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "flagright", - "version": "1.5.0", + "version": "1.5.1", "private": false, "repository": "https://github.com/flagright/flagright-node", "main": "./index.js", diff --git a/src/api/resources/businessUserEvents/client/Client.ts b/src/api/resources/businessUserEvents/client/Client.ts index 8c97187..a1c70ea 100644 --- a/src/api/resources/businessUserEvents/client/Client.ts +++ b/src/api/resources/businessUserEvents/client/Client.ts @@ -524,7 +524,7 @@ export class BusinessUserEvents { "x-api-key": await core.Supplier.get(this._options.apiKey), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "flagright", - "X-Fern-SDK-Version": "1.5.0", + "X-Fern-SDK-Version": "1.5.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -598,7 +598,7 @@ export class BusinessUserEvents { "x-api-key": await core.Supplier.get(this._options.apiKey), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "flagright", - "X-Fern-SDK-Version": "1.5.0", + "X-Fern-SDK-Version": "1.5.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, diff --git a/src/api/resources/businessUsers/client/Client.ts b/src/api/resources/businessUsers/client/Client.ts index 489116b..8a4d958 100644 --- a/src/api/resources/businessUsers/client/Client.ts +++ b/src/api/resources/businessUsers/client/Client.ts @@ -301,7 +301,7 @@ export class BusinessUsers { "x-api-key": await core.Supplier.get(this._options.apiKey), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "flagright", - "X-Fern-SDK-Version": "1.5.0", + "X-Fern-SDK-Version": "1.5.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -376,7 +376,7 @@ export class BusinessUsers { "x-api-key": await core.Supplier.get(this._options.apiKey), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "flagright", - "X-Fern-SDK-Version": "1.5.0", + "X-Fern-SDK-Version": "1.5.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, diff --git a/src/api/resources/consumerUserEvents/client/Client.ts b/src/api/resources/consumerUserEvents/client/Client.ts index 8d3fc53..a5723c5 100644 --- a/src/api/resources/consumerUserEvents/client/Client.ts +++ b/src/api/resources/consumerUserEvents/client/Client.ts @@ -190,7 +190,7 @@ export class ConsumerUserEvents { "x-api-key": await core.Supplier.get(this._options.apiKey), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "flagright", - "X-Fern-SDK-Version": "1.5.0", + "X-Fern-SDK-Version": "1.5.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -264,7 +264,7 @@ export class ConsumerUserEvents { "x-api-key": await core.Supplier.get(this._options.apiKey), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "flagright", - "X-Fern-SDK-Version": "1.5.0", + "X-Fern-SDK-Version": "1.5.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, diff --git a/src/api/resources/consumerUsers/client/Client.ts b/src/api/resources/consumerUsers/client/Client.ts index 9f14d62..469e1a9 100644 --- a/src/api/resources/consumerUsers/client/Client.ts +++ b/src/api/resources/consumerUsers/client/Client.ts @@ -173,7 +173,7 @@ export class ConsumerUsers { "x-api-key": await core.Supplier.get(this._options.apiKey), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "flagright", - "X-Fern-SDK-Version": "1.5.0", + "X-Fern-SDK-Version": "1.5.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -248,7 +248,7 @@ export class ConsumerUsers { "x-api-key": await core.Supplier.get(this._options.apiKey), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "flagright", - "X-Fern-SDK-Version": "1.5.0", + "X-Fern-SDK-Version": "1.5.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, diff --git a/src/api/resources/transactionEvents/client/Client.ts b/src/api/resources/transactionEvents/client/Client.ts index 9aac410..b95f17d 100644 --- a/src/api/resources/transactionEvents/client/Client.ts +++ b/src/api/resources/transactionEvents/client/Client.ts @@ -126,7 +126,7 @@ export class TransactionEvents { "x-api-key": await core.Supplier.get(this._options.apiKey), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "flagright", - "X-Fern-SDK-Version": "1.5.0", + "X-Fern-SDK-Version": "1.5.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -201,7 +201,7 @@ export class TransactionEvents { "x-api-key": await core.Supplier.get(this._options.apiKey), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "flagright", - "X-Fern-SDK-Version": "1.5.0", + "X-Fern-SDK-Version": "1.5.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, diff --git a/src/api/resources/transactions/client/Client.ts b/src/api/resources/transactions/client/Client.ts index 556182d..c9198c4 100644 --- a/src/api/resources/transactions/client/Client.ts +++ b/src/api/resources/transactions/client/Client.ts @@ -130,7 +130,7 @@ export class Transactions { "x-api-key": await core.Supplier.get(this._options.apiKey), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "flagright", - "X-Fern-SDK-Version": "1.5.0", + "X-Fern-SDK-Version": "1.5.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -208,7 +208,7 @@ export class Transactions { "x-api-key": await core.Supplier.get(this._options.apiKey), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "flagright", - "X-Fern-SDK-Version": "1.5.0", + "X-Fern-SDK-Version": "1.5.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, diff --git a/src/api/types/WalletDetails.ts b/src/api/types/WalletDetails.ts index 25a7481..ace7693 100644 --- a/src/api/types/WalletDetails.ts +++ b/src/api/types/WalletDetails.ts @@ -22,4 +22,6 @@ export interface WalletDetails { /** Phone number associated with the wallet, if any */ walletPhoneNumber?: string; walletBalance?: Flagright.Amount; + /** Network of the wallet */ + network?: Flagright.WalletDetailsNetwork; } diff --git a/src/api/types/WalletDetailsNetwork.ts b/src/api/types/WalletDetailsNetwork.ts new file mode 100644 index 0000000..2613a00 --- /dev/null +++ b/src/api/types/WalletDetailsNetwork.ts @@ -0,0 +1,59 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * Network of the wallet + */ +export type WalletDetailsNetwork = + | "BITCOIN" + | "ETHEREUM" + | "POLYGON" + | "BNB_SMART_CHAIN" + | "BNB_BEACON_CHAIN" + | "ARBITRUM_L2" + | "SOLANA" + | "AVALANCHE_C_CHAIN" + | "LITECOIN" + | "BITCOIN_CASH" + | "RIPPLE" + | "STELLAR" + | "EOS_PUBLIC" + | "TRON" + | "CARDANO" + | "POLKADOT" + | "NEAR_PROTOCOL" + | "COSMOS" + | "DOGECOIN" + | "OPTIMISM_MAINNET" + | "FANTOM" + | "HEDERA" + | "ALGORAND" + | "CELESTIA"; + +export const WalletDetailsNetwork = { + Bitcoin: "BITCOIN", + Ethereum: "ETHEREUM", + Polygon: "POLYGON", + BnbSmartChain: "BNB_SMART_CHAIN", + BnbBeaconChain: "BNB_BEACON_CHAIN", + ArbitrumL2: "ARBITRUM_L2", + Solana: "SOLANA", + AvalancheCChain: "AVALANCHE_C_CHAIN", + Litecoin: "LITECOIN", + BitcoinCash: "BITCOIN_CASH", + Ripple: "RIPPLE", + Stellar: "STELLAR", + EosPublic: "EOS_PUBLIC", + Tron: "TRON", + Cardano: "CARDANO", + Polkadot: "POLKADOT", + NearProtocol: "NEAR_PROTOCOL", + Cosmos: "COSMOS", + Dogecoin: "DOGECOIN", + OptimismMainnet: "OPTIMISM_MAINNET", + Fantom: "FANTOM", + Hedera: "HEDERA", + Algorand: "ALGORAND", + Celestia: "CELESTIA", +} as const; diff --git a/src/api/types/index.ts b/src/api/types/index.ts index 0ac6c3d..98579eb 100644 --- a/src/api/types/index.ts +++ b/src/api/types/index.ts @@ -42,6 +42,7 @@ export * from "./BusinessUsersResponse"; export * from "./ConsumerUsersResponse"; export * from "./CardDetails"; export * from "./IbanDetails"; +export * from "./WalletDetailsNetwork"; export * from "./WalletDetails"; export * from "./AchDetails"; export * from "./SwiftDetails"; diff --git a/src/serialization/types/WalletDetails.ts b/src/serialization/types/WalletDetails.ts index 04ec09a..7c5d58d 100644 --- a/src/serialization/types/WalletDetails.ts +++ b/src/serialization/types/WalletDetails.ts @@ -16,6 +16,7 @@ export const WalletDetails: core.serialization.ObjectSchema (await import("..")).Tag)).optional(), walletPhoneNumber: core.serialization.string().optional(), walletBalance: core.serialization.lazyObject(async () => (await import("..")).Amount).optional(), + network: core.serialization.lazy(async () => (await import("..")).WalletDetailsNetwork).optional(), }); export declare namespace WalletDetails { @@ -28,5 +29,6 @@ export declare namespace WalletDetails { tags?: serializers.Tag.Raw[] | null; walletPhoneNumber?: string | null; walletBalance?: serializers.Amount.Raw | null; + network?: serializers.WalletDetailsNetwork.Raw | null; } } diff --git a/src/serialization/types/WalletDetailsNetwork.ts b/src/serialization/types/WalletDetailsNetwork.ts new file mode 100644 index 0000000..4617264 --- /dev/null +++ b/src/serialization/types/WalletDetailsNetwork.ts @@ -0,0 +1,65 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from ".."; +import * as Flagright from "../../api"; +import * as core from "../../core"; + +export const WalletDetailsNetwork: core.serialization.Schema< + serializers.WalletDetailsNetwork.Raw, + Flagright.WalletDetailsNetwork +> = core.serialization.enum_([ + "BITCOIN", + "ETHEREUM", + "POLYGON", + "BNB_SMART_CHAIN", + "BNB_BEACON_CHAIN", + "ARBITRUM_L2", + "SOLANA", + "AVALANCHE_C_CHAIN", + "LITECOIN", + "BITCOIN_CASH", + "RIPPLE", + "STELLAR", + "EOS_PUBLIC", + "TRON", + "CARDANO", + "POLKADOT", + "NEAR_PROTOCOL", + "COSMOS", + "DOGECOIN", + "OPTIMISM_MAINNET", + "FANTOM", + "HEDERA", + "ALGORAND", + "CELESTIA", +]); + +export declare namespace WalletDetailsNetwork { + type Raw = + | "BITCOIN" + | "ETHEREUM" + | "POLYGON" + | "BNB_SMART_CHAIN" + | "BNB_BEACON_CHAIN" + | "ARBITRUM_L2" + | "SOLANA" + | "AVALANCHE_C_CHAIN" + | "LITECOIN" + | "BITCOIN_CASH" + | "RIPPLE" + | "STELLAR" + | "EOS_PUBLIC" + | "TRON" + | "CARDANO" + | "POLKADOT" + | "NEAR_PROTOCOL" + | "COSMOS" + | "DOGECOIN" + | "OPTIMISM_MAINNET" + | "FANTOM" + | "HEDERA" + | "ALGORAND" + | "CELESTIA"; +} diff --git a/src/serialization/types/index.ts b/src/serialization/types/index.ts index 0ac6c3d..98579eb 100644 --- a/src/serialization/types/index.ts +++ b/src/serialization/types/index.ts @@ -42,6 +42,7 @@ export * from "./BusinessUsersResponse"; export * from "./ConsumerUsersResponse"; export * from "./CardDetails"; export * from "./IbanDetails"; +export * from "./WalletDetailsNetwork"; export * from "./WalletDetails"; export * from "./AchDetails"; export * from "./SwiftDetails"; diff --git a/yarn.lock b/yarn.lock index 1ba4c6d..f3e5d68 100644 --- a/yarn.lock +++ b/yarn.lock @@ -858,9 +858,9 @@ camelcase@^6.2.0: integrity sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA== caniuse-lite@^1.0.30001587: - version "1.0.30001608" - resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001608.tgz#7ae6e92ffb300e4b4ec2f795e0abab456ec06cc0" - integrity sha512-cjUJTQkk9fQlJR2s4HMuPMvTiRggl0rAVMtthQuyOlDWuqHXqN8azLq+pi8B2TjwKJ32diHjUqRIKeFX4z1FoA== + version "1.0.30001610" + resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001610.tgz#2f44ed6e21d359e914271ae35b68903632628ccf" + integrity sha512-QFutAY4NgaelojVMjY63o6XlZyORPaLfyMnsl3HgnWdJUcX6K0oaJymHjH8PT5Gk7sTm8rvC/c5COUQKXqmOMA== chalk@^2.4.2: version "2.4.2" @@ -984,9 +984,9 @@ debug@^4.1.0, debug@^4.1.1, debug@^4.3.1: ms "2.1.2" dedent@^1.0.0: - version "1.5.1" - resolved "https://registry.yarnpkg.com/dedent/-/dedent-1.5.1.tgz#4f3fc94c8b711e9bb2800d185cd6ad20f2a90aff" - integrity sha512-+LxW+KLWxu3HW3M2w2ympwtqPrqYRzU8fqi6Fhd18fBALe15blJPI/I4+UHveMVG6lJqB4JNd4UG0S5cnVHwIg== + version "1.5.3" + resolved "https://registry.yarnpkg.com/dedent/-/dedent-1.5.3.tgz#99aee19eb9bae55a67327717b6e848d0bf777e5a" + integrity sha512-NHQtfOOW68WD8lgypbLA5oT+Bt0xXJhiYvoR6SmmNXZfpzOGXwdKWmcwG8N7PwVVWV3eF/68nmD9BaJSsTBhyQ== deepmerge@^4.2.2: version "4.3.1" @@ -1018,9 +1018,9 @@ diff-sequences@^29.6.3: integrity sha512-EjePK1srD3P08o2j4f0ExnylqRs5B9tJjcp9t1krH2qRi8CCdsYfwe9JgSLurFBWwq4uOlipzfk5fHNvwFKr8Q== electron-to-chromium@^1.4.668: - version "1.4.731" - resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.731.tgz#d3dc19f359045b750a1fb0bc42315a502d950187" - integrity sha512-+TqVfZjpRz2V/5SPpmJxq9qK620SC5SqCnxQIOi7i/U08ZDcTpKbT7Xjj9FU5CbXTMUb4fywbIr8C7cGv4hcjw== + version "1.4.738" + resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.738.tgz#9a7fca98abaee61e20c9c25013d5ce60bb533436" + integrity sha512-lwKft2CLFztD+vEIpesrOtCrko/TFnEJlHFdRhazU7Y/jx5qc4cqsocfVrBg4So4gGe9lvxnbLIoev47WMpg+A== emittery@^0.13.1: version "0.13.1"