rehive 4.3.0 → 4.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/admin.d.mts +14445 -5452
- package/dist/admin.d.ts +14445 -5452
- package/dist/admin.js +1 -1
- package/dist/admin.mjs +1 -1
- package/dist/auth.d.mts +2 -2
- package/dist/auth.d.ts +2 -2
- package/dist/auth.js +1 -1
- package/dist/auth.mjs +1 -1
- package/dist/{chunk-MAMZSYFF.js → chunk-3BG2PD7X.js} +1 -1
- package/dist/chunk-4FVXXRGV.mjs +6 -0
- package/dist/chunk-AIKSGC2F.js +6 -0
- package/dist/chunk-BLPR7LRO.mjs +6 -0
- package/dist/{chunk-KOUIKOXX.mjs → chunk-HAVKMJEY.mjs} +1 -1
- package/dist/{chunk-QKHQP5JT.mjs → chunk-JZVYT324.mjs} +1 -1
- package/dist/chunk-K5GNAPOS.js +6 -0
- package/dist/{chunk-OP7MQ6KX.js → chunk-Y7BCC5TX.js} +1 -1
- package/dist/{create-api-client-DvXFNRl7.d.mts → create-api-client-BY6W7Qz9.d.mts} +1 -1
- package/dist/{create-api-client-C02JVdcx.d.ts → create-api-client-CBNjHT-x.d.ts} +1 -1
- package/dist/{create-auth-9l3wfvKL.d.mts → create-auth-CROjq_cP.d.mts} +9193 -2388
- package/dist/{create-auth-9l3wfvKL.d.ts → create-auth-CROjq_cP.d.ts} +9193 -2388
- package/dist/extensions/alchemy.d.mts +84 -6
- package/dist/extensions/alchemy.d.ts +84 -6
- package/dist/extensions/alchemy.js +3 -3
- package/dist/extensions/alchemy.mjs +3 -3
- package/dist/extensions/app.d.mts +8 -3
- package/dist/extensions/app.d.ts +8 -3
- package/dist/extensions/app.js +3 -3
- package/dist/extensions/app.mjs +3 -3
- package/dist/extensions/billing.d.mts +8 -3
- package/dist/extensions/billing.d.ts +8 -3
- package/dist/extensions/billing.js +3 -3
- package/dist/extensions/billing.mjs +3 -3
- package/dist/extensions/bridge.d.mts +165 -5
- package/dist/extensions/bridge.d.ts +165 -5
- package/dist/extensions/bridge.js +3 -3
- package/dist/extensions/bridge.mjs +3 -3
- package/dist/extensions/builder.d.mts +8 -3
- package/dist/extensions/builder.d.ts +8 -3
- package/dist/extensions/builder.js +4 -4
- package/dist/extensions/builder.mjs +4 -4
- package/dist/extensions/business.d.mts +8 -3
- package/dist/extensions/business.d.ts +8 -3
- package/dist/extensions/business.js +5 -5
- package/dist/extensions/business.mjs +5 -5
- package/dist/extensions/conversion.d.mts +8 -3
- package/dist/extensions/conversion.d.ts +8 -3
- package/dist/extensions/mass-send.d.mts +8 -3
- package/dist/extensions/mass-send.d.ts +8 -3
- package/dist/extensions/mukuru.d.mts +207 -55
- package/dist/extensions/mukuru.d.ts +207 -55
- package/dist/extensions/mukuru.js +5 -5
- package/dist/extensions/mukuru.mjs +5 -5
- package/dist/extensions/notifications.d.mts +9 -3
- package/dist/extensions/notifications.d.ts +9 -3
- package/dist/extensions/payment-requests.d.mts +8 -3
- package/dist/extensions/payment-requests.d.ts +8 -3
- package/dist/extensions/payment-requests.js +4 -4
- package/dist/extensions/payment-requests.mjs +4 -4
- package/dist/extensions/products.d.mts +8 -3
- package/dist/extensions/products.d.ts +8 -3
- package/dist/extensions/rain.d.mts +8 -3
- package/dist/extensions/rain.d.ts +8 -3
- package/dist/extensions/rain.js +2 -2
- package/dist/extensions/rain.mjs +2 -2
- package/dist/extensions/rewards.d.mts +8 -3
- package/dist/extensions/rewards.d.ts +8 -3
- package/dist/extensions/rewards.js +2 -2
- package/dist/extensions/rewards.mjs +2 -2
- package/dist/extensions/stellar-testnet.d.mts +8 -3
- package/dist/extensions/stellar-testnet.d.ts +8 -3
- package/dist/extensions/stellar-testnet.js +4 -4
- package/dist/extensions/stellar-testnet.mjs +4 -4
- package/dist/extensions/stellar.d.mts +8 -3
- package/dist/extensions/stellar.d.ts +8 -3
- package/dist/extensions/stellar.js +4 -4
- package/dist/extensions/stellar.mjs +4 -4
- package/dist/extensions/sumsub.d.mts +54 -27
- package/dist/extensions/sumsub.d.ts +54 -27
- package/dist/extensions/sumsub.js +2 -2
- package/dist/extensions/sumsub.mjs +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/react.d.mts +2 -2
- package/dist/react.d.ts +2 -2
- package/dist/react.js +1 -1
- package/dist/react.mjs +1 -1
- package/dist/user.d.mts +17 -6
- package/dist/user.d.ts +17 -6
- package/dist/user.js +1 -1
- package/dist/user.mjs +1 -1
- package/package.json +1 -1
- package/src/extensions/alchemy/openapi-ts/client/index.ts +1 -0
- package/src/extensions/alchemy/openapi-ts/core/params.gen.ts +18 -11
- package/src/extensions/alchemy/openapi-ts/core/types.gen.ts +6 -0
- package/src/extensions/alchemy/openapi-ts/index.ts +2 -2
- package/src/extensions/alchemy/openapi-ts/sdk.gen.ts +29 -3
- package/src/extensions/alchemy/openapi-ts/types.gen.ts +82 -1
- package/src/extensions/app/openapi-ts/client/index.ts +1 -0
- package/src/extensions/app/openapi-ts/core/params.gen.ts +18 -11
- package/src/extensions/app/openapi-ts/core/types.gen.ts +6 -0
- package/src/extensions/app/openapi-ts/sdk.gen.ts +2 -2
- package/src/extensions/billing/openapi-ts/client/index.ts +1 -0
- package/src/extensions/billing/openapi-ts/core/params.gen.ts +18 -11
- package/src/extensions/billing/openapi-ts/core/types.gen.ts +6 -0
- package/src/extensions/billing/openapi-ts/sdk.gen.ts +2 -2
- package/src/extensions/bridge/openapi-ts/client/index.ts +1 -0
- package/src/extensions/bridge/openapi-ts/core/params.gen.ts +18 -11
- package/src/extensions/bridge/openapi-ts/core/types.gen.ts +6 -0
- package/src/extensions/bridge/openapi-ts/index.ts +2 -2
- package/src/extensions/bridge/openapi-ts/sdk.gen.ts +35 -3
- package/src/extensions/bridge/openapi-ts/types.gen.ts +171 -0
- package/src/extensions/builder/openapi-ts/client/index.ts +1 -0
- package/src/extensions/builder/openapi-ts/core/params.gen.ts +18 -11
- package/src/extensions/builder/openapi-ts/core/types.gen.ts +6 -0
- package/src/extensions/builder/openapi-ts/sdk.gen.ts +2 -2
- package/src/extensions/business/openapi-ts/client/index.ts +1 -0
- package/src/extensions/business/openapi-ts/core/params.gen.ts +18 -11
- package/src/extensions/business/openapi-ts/core/types.gen.ts +6 -0
- package/src/extensions/business/openapi-ts/sdk.gen.ts +2 -2
- package/src/extensions/conversion/openapi-ts/client/index.ts +1 -0
- package/src/extensions/conversion/openapi-ts/core/params.gen.ts +18 -11
- package/src/extensions/conversion/openapi-ts/core/types.gen.ts +6 -0
- package/src/extensions/conversion/openapi-ts/sdk.gen.ts +2 -2
- package/src/extensions/mass-send/openapi-ts/client/index.ts +1 -0
- package/src/extensions/mass-send/openapi-ts/core/params.gen.ts +18 -11
- package/src/extensions/mass-send/openapi-ts/core/types.gen.ts +6 -0
- package/src/extensions/mass-send/openapi-ts/sdk.gen.ts +2 -2
- package/src/extensions/mukuru/openapi-ts/client/index.ts +1 -0
- package/src/extensions/mukuru/openapi-ts/client.gen.ts +1 -1
- package/src/extensions/mukuru/openapi-ts/core/params.gen.ts +18 -11
- package/src/extensions/mukuru/openapi-ts/core/types.gen.ts +6 -0
- package/src/extensions/mukuru/openapi-ts/index.ts +2 -2
- package/src/extensions/mukuru/openapi-ts/sdk.gen.ts +21 -3
- package/src/extensions/mukuru/openapi-ts/types.gen.ts +204 -52
- package/src/extensions/notifications/openapi-ts/client/index.ts +1 -0
- package/src/extensions/notifications/openapi-ts/core/params.gen.ts +18 -11
- package/src/extensions/notifications/openapi-ts/core/types.gen.ts +6 -0
- package/src/extensions/notifications/openapi-ts/sdk.gen.ts +2 -2
- package/src/extensions/notifications/openapi-ts/types.gen.ts +1 -0
- package/src/extensions/payment-requests/openapi-ts/client/index.ts +1 -0
- package/src/extensions/payment-requests/openapi-ts/core/params.gen.ts +18 -11
- package/src/extensions/payment-requests/openapi-ts/core/types.gen.ts +6 -0
- package/src/extensions/payment-requests/openapi-ts/sdk.gen.ts +2 -2
- package/src/extensions/products/openapi-ts/client/index.ts +1 -0
- package/src/extensions/products/openapi-ts/core/params.gen.ts +18 -11
- package/src/extensions/products/openapi-ts/core/types.gen.ts +6 -0
- package/src/extensions/products/openapi-ts/sdk.gen.ts +2 -2
- package/src/extensions/rain/openapi-ts/client/index.ts +1 -0
- package/src/extensions/rain/openapi-ts/core/params.gen.ts +18 -11
- package/src/extensions/rain/openapi-ts/core/types.gen.ts +6 -0
- package/src/extensions/rain/openapi-ts/sdk.gen.ts +2 -2
- package/src/extensions/rewards/openapi-ts/client/index.ts +1 -0
- package/src/extensions/rewards/openapi-ts/core/params.gen.ts +18 -11
- package/src/extensions/rewards/openapi-ts/core/types.gen.ts +6 -0
- package/src/extensions/rewards/openapi-ts/sdk.gen.ts +2 -2
- package/src/extensions/stellar/openapi-ts/client/index.ts +1 -0
- package/src/extensions/stellar/openapi-ts/core/params.gen.ts +18 -11
- package/src/extensions/stellar/openapi-ts/core/types.gen.ts +6 -0
- package/src/extensions/stellar/openapi-ts/sdk.gen.ts +2 -2
- package/src/extensions/stellar-testnet/openapi-ts/client/index.ts +1 -0
- package/src/extensions/stellar-testnet/openapi-ts/core/params.gen.ts +18 -11
- package/src/extensions/stellar-testnet/openapi-ts/core/types.gen.ts +6 -0
- package/src/extensions/stellar-testnet/openapi-ts/sdk.gen.ts +2 -2
- package/src/extensions/sumsub/openapi-ts/client/index.ts +1 -0
- package/src/extensions/sumsub/openapi-ts/core/params.gen.ts +18 -11
- package/src/extensions/sumsub/openapi-ts/core/types.gen.ts +6 -0
- package/src/extensions/sumsub/openapi-ts/sdk.gen.ts +2 -2
- package/src/extensions/sumsub/openapi-ts/types.gen.ts +46 -24
- package/src/platform/admin/openapi-ts/client/index.ts +1 -0
- package/src/platform/admin/openapi-ts/core/params.gen.ts +18 -11
- package/src/platform/admin/openapi-ts/core/types.gen.ts +6 -0
- package/src/platform/admin/openapi-ts/index.ts +2 -2
- package/src/platform/admin/openapi-ts/sdk.gen.ts +51 -3
- package/src/platform/admin/openapi-ts/types.gen.ts +13012 -4000
- package/src/platform/user/openapi-ts/client/index.ts +1 -0
- package/src/platform/user/openapi-ts/core/params.gen.ts +18 -11
- package/src/platform/user/openapi-ts/core/types.gen.ts +6 -0
- package/src/platform/user/openapi-ts/index.ts +2 -2
- package/src/platform/user/openapi-ts/sdk.gen.ts +37 -3
- package/src/platform/user/openapi-ts/types.gen.ts +11236 -4408
- package/dist/chunk-HSNZ57ET.mjs +0 -6
- package/dist/chunk-M6Z3PA5D.js +0 -6
- package/dist/chunk-WNBM6WBC.mjs +0 -6
- package/dist/chunk-YPGO2Y5R.js +0 -6
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as ApiFactoryConfig, B as BoundSdk } from '../create-api-client-
|
|
2
|
-
import '../create-auth-
|
|
1
|
+
import { A as ApiFactoryConfig, B as BoundSdk } from '../create-api-client-BY6W7Qz9.mjs';
|
|
2
|
+
import '../create-auth-CROjq_cP.mjs';
|
|
3
3
|
|
|
4
4
|
type AuthToken = string | undefined;
|
|
5
5
|
interface Auth {
|
|
@@ -122,6 +122,11 @@ interface Config$1 {
|
|
|
122
122
|
*/
|
|
123
123
|
responseValidator?: (data: unknown) => Promise<unknown>;
|
|
124
124
|
}
|
|
125
|
+
/**
|
|
126
|
+
* Arbitrary metadata passed through the `meta` request option.
|
|
127
|
+
*/
|
|
128
|
+
interface ClientMeta {
|
|
129
|
+
}
|
|
125
130
|
|
|
126
131
|
type ServerSentEventsOptions<TData = unknown> = Omit<RequestInit, 'method'> & Pick<Config$1, 'method' | 'responseTransformer' | 'responseValidator'> & {
|
|
127
132
|
/**
|
|
@@ -764,6 +769,16 @@ type PatchedTransactionCollection = {
|
|
|
764
769
|
*/
|
|
765
770
|
readonly status?: 'pending' | 'signed' | 'broadcast' | 'confirmed' | 'failed' | 'cancelled';
|
|
766
771
|
};
|
|
772
|
+
/**
|
|
773
|
+
* A ModelSerializer that takes additional arguments for
|
|
774
|
+
* "fields", "omit" and "expand" in order to
|
|
775
|
+
* control which fields are displayed, and whether to replace simple
|
|
776
|
+
* values with complex, nested serializations
|
|
777
|
+
*/
|
|
778
|
+
type PatchedUser = {
|
|
779
|
+
readonly identifier?: string;
|
|
780
|
+
private_key_exported?: number;
|
|
781
|
+
};
|
|
767
782
|
/**
|
|
768
783
|
* A ModelSerializer that takes additional arguments for
|
|
769
784
|
* "fields", "omit" and "expand" in order to
|
|
@@ -794,7 +809,8 @@ type TransactionCollectionResponse = {
|
|
|
794
809
|
* values with complex, nested serializations
|
|
795
810
|
*/
|
|
796
811
|
type User = {
|
|
797
|
-
identifier: string;
|
|
812
|
+
readonly identifier: string;
|
|
813
|
+
private_key_exported?: number;
|
|
798
814
|
};
|
|
799
815
|
/**
|
|
800
816
|
* Request body for POST /user/addresses/. Two mutually-exclusive modes, both
|
|
@@ -816,6 +832,10 @@ type UserCreateAddress = {
|
|
|
816
832
|
address?: string;
|
|
817
833
|
rehive_account?: string;
|
|
818
834
|
};
|
|
835
|
+
type UserResponse = {
|
|
836
|
+
status?: string;
|
|
837
|
+
data?: User;
|
|
838
|
+
};
|
|
819
839
|
type Webhook = {
|
|
820
840
|
id: string;
|
|
821
841
|
/**
|
|
@@ -981,6 +1001,15 @@ type PatchedOnchainTransactionWritable = {
|
|
|
981
1001
|
type PatchedTransactionCollectionWritable = {
|
|
982
1002
|
hash?: string;
|
|
983
1003
|
};
|
|
1004
|
+
/**
|
|
1005
|
+
* A ModelSerializer that takes additional arguments for
|
|
1006
|
+
* "fields", "omit" and "expand" in order to
|
|
1007
|
+
* control which fields are displayed, and whether to replace simple
|
|
1008
|
+
* values with complex, nested serializations
|
|
1009
|
+
*/
|
|
1010
|
+
type PatchedUserWritable = {
|
|
1011
|
+
private_key_exported?: number;
|
|
1012
|
+
};
|
|
984
1013
|
/**
|
|
985
1014
|
* A ModelSerializer that takes additional arguments for
|
|
986
1015
|
* "fields", "omit" and "expand" in order to
|
|
@@ -994,6 +1023,15 @@ type TransactionCollectionResponseWritable = {
|
|
|
994
1023
|
status?: string;
|
|
995
1024
|
data?: TransactionCollectionWritable;
|
|
996
1025
|
};
|
|
1026
|
+
/**
|
|
1027
|
+
* A ModelSerializer that takes additional arguments for
|
|
1028
|
+
* "fields", "omit" and "expand" in order to
|
|
1029
|
+
* control which fields are displayed, and whether to replace simple
|
|
1030
|
+
* values with complex, nested serializations
|
|
1031
|
+
*/
|
|
1032
|
+
type UserWritable = {
|
|
1033
|
+
private_key_exported?: number;
|
|
1034
|
+
};
|
|
997
1035
|
/**
|
|
998
1036
|
* Request body for POST /user/addresses/. Two mutually-exclusive modes, both
|
|
999
1037
|
* scoped to the calling user:
|
|
@@ -1024,6 +1062,10 @@ type UserCreateAddressWritable = {
|
|
|
1024
1062
|
subtype?: string;
|
|
1025
1063
|
provider?: string;
|
|
1026
1064
|
};
|
|
1065
|
+
type UserResponseWritable = {
|
|
1066
|
+
status?: string;
|
|
1067
|
+
data?: UserWritable;
|
|
1068
|
+
};
|
|
1027
1069
|
type ActivateCreateData = {
|
|
1028
1070
|
body: Activate;
|
|
1029
1071
|
path?: never;
|
|
@@ -1248,6 +1290,36 @@ type DeactivateCreateResponses = {
|
|
|
1248
1290
|
200: ActionResponse;
|
|
1249
1291
|
};
|
|
1250
1292
|
type DeactivateCreateResponse = DeactivateCreateResponses[keyof DeactivateCreateResponses];
|
|
1293
|
+
type UserRetrieveData = {
|
|
1294
|
+
body?: never;
|
|
1295
|
+
path?: never;
|
|
1296
|
+
query?: never;
|
|
1297
|
+
url: '/user/';
|
|
1298
|
+
};
|
|
1299
|
+
type UserRetrieveResponses = {
|
|
1300
|
+
200: UserResponse;
|
|
1301
|
+
};
|
|
1302
|
+
type UserRetrieveResponse = UserRetrieveResponses[keyof UserRetrieveResponses];
|
|
1303
|
+
type UserPartialUpdateData = {
|
|
1304
|
+
body?: PatchedUserWritable;
|
|
1305
|
+
path?: never;
|
|
1306
|
+
query?: never;
|
|
1307
|
+
url: '/user/';
|
|
1308
|
+
};
|
|
1309
|
+
type UserPartialUpdateResponses = {
|
|
1310
|
+
200: UserResponse;
|
|
1311
|
+
};
|
|
1312
|
+
type UserPartialUpdateResponse = UserPartialUpdateResponses[keyof UserPartialUpdateResponses];
|
|
1313
|
+
type UserUpdateData = {
|
|
1314
|
+
body?: UserWritable;
|
|
1315
|
+
path?: never;
|
|
1316
|
+
query?: never;
|
|
1317
|
+
url: '/user/';
|
|
1318
|
+
};
|
|
1319
|
+
type UserUpdateResponses = {
|
|
1320
|
+
200: UserResponse;
|
|
1321
|
+
};
|
|
1322
|
+
type UserUpdateResponse = UserUpdateResponses[keyof UserUpdateResponses];
|
|
1251
1323
|
type UserAccountAddressLookupCreateData = {
|
|
1252
1324
|
body: AccountAddressLookup;
|
|
1253
1325
|
path?: never;
|
|
@@ -1430,7 +1502,7 @@ type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean
|
|
|
1430
1502
|
* You can pass arbitrary values through the `meta` object. This can be
|
|
1431
1503
|
* used to access values that aren't defined as part of the SDK function.
|
|
1432
1504
|
*/
|
|
1433
|
-
meta?: Record<string, unknown
|
|
1505
|
+
meta?: keyof ClientMeta extends never ? Record<string, unknown> : ClientMeta;
|
|
1434
1506
|
};
|
|
1435
1507
|
declare const activateCreate: <ThrowOnError extends boolean = false>(options: Options<ActivateCreateData, ThrowOnError>) => RequestResult<ActivateCreateResponses, unknown, ThrowOnError>;
|
|
1436
1508
|
declare const adminAddressesList: <ThrowOnError extends boolean = false>(options?: Options<AdminAddressesListData, ThrowOnError>) => RequestResult<AdminAddressesListResponses, unknown, ThrowOnError>;
|
|
@@ -1448,6 +1520,9 @@ declare const adminOnchainTransactionsList: <ThrowOnError extends boolean = fals
|
|
|
1448
1520
|
declare const adminOnchainTransactionsRetrieve: <ThrowOnError extends boolean = false>(options: Options<AdminOnchainTransactionsRetrieveData, ThrowOnError>) => RequestResult<AdminOnchainTransactionsRetrieveResponses, unknown, ThrowOnError>;
|
|
1449
1521
|
declare const alchemyWebhookCreate: <ThrowOnError extends boolean = false>(options: Options<AlchemyWebhookCreateData, ThrowOnError>) => RequestResult<AlchemyWebhookCreateResponses, unknown, ThrowOnError>;
|
|
1450
1522
|
declare const deactivateCreate: <ThrowOnError extends boolean = false>(options: Options<DeactivateCreateData, ThrowOnError>) => RequestResult<DeactivateCreateResponses, unknown, ThrowOnError>;
|
|
1523
|
+
declare const userRetrieve: <ThrowOnError extends boolean = false>(options?: Options<UserRetrieveData, ThrowOnError>) => RequestResult<UserRetrieveResponses, unknown, ThrowOnError>;
|
|
1524
|
+
declare const userPartialUpdate: <ThrowOnError extends boolean = false>(options?: Options<UserPartialUpdateData, ThrowOnError>) => RequestResult<UserPartialUpdateResponses, unknown, ThrowOnError>;
|
|
1525
|
+
declare const userUpdate: <ThrowOnError extends boolean = false>(options?: Options<UserUpdateData, ThrowOnError>) => RequestResult<UserUpdateResponses, unknown, ThrowOnError>;
|
|
1451
1526
|
declare const userAccountAddressLookupCreate: <ThrowOnError extends boolean = false>(options: Options<UserAccountAddressLookupCreateData, ThrowOnError>) => RequestResult<UserAccountAddressLookupCreateResponses, unknown, ThrowOnError>;
|
|
1452
1527
|
declare const userAddressesList: <ThrowOnError extends boolean = false>(options?: Options<UserAddressesListData, ThrowOnError>) => RequestResult<UserAddressesListResponses, unknown, ThrowOnError>;
|
|
1453
1528
|
declare const userAddressesCreate: <ThrowOnError extends boolean = false>(options?: Options<UserAddressesCreateData, ThrowOnError>) => RequestResult<UserAddressesCreateResponses, unknown, ThrowOnError>;
|
|
@@ -1491,12 +1566,15 @@ declare const sdk_userOnchainTransactionsList: typeof userOnchainTransactionsLis
|
|
|
1491
1566
|
declare const sdk_userOnchainTransactionsPartialUpdate: typeof userOnchainTransactionsPartialUpdate;
|
|
1492
1567
|
declare const sdk_userOnchainTransactionsRetrieve: typeof userOnchainTransactionsRetrieve;
|
|
1493
1568
|
declare const sdk_userOnchainTransactionsUpdate: typeof userOnchainTransactionsUpdate;
|
|
1569
|
+
declare const sdk_userPartialUpdate: typeof userPartialUpdate;
|
|
1570
|
+
declare const sdk_userRetrieve: typeof userRetrieve;
|
|
1571
|
+
declare const sdk_userUpdate: typeof userUpdate;
|
|
1494
1572
|
declare const sdk_webhookCreate: typeof webhookCreate;
|
|
1495
1573
|
declare namespace sdk {
|
|
1496
|
-
export { type sdk_Options as Options, sdk_activateCreate as activateCreate, sdk_adminAddressesCreate as adminAddressesCreate, sdk_adminAddressesDestroy as adminAddressesDestroy, sdk_adminAddressesList as adminAddressesList, sdk_adminAddressesRetrieve as adminAddressesRetrieve, sdk_adminCompanyPartialUpdate as adminCompanyPartialUpdate, sdk_adminCompanyRetrieve as adminCompanyRetrieve, sdk_adminCompanyUpdate as adminCompanyUpdate, sdk_adminDepositAddressesCreate as adminDepositAddressesCreate, sdk_adminDepositFactoriesCreate as adminDepositFactoriesCreate, sdk_adminDepositFactoriesList as adminDepositFactoriesList, sdk_adminDepositFactoriesRetrieve as adminDepositFactoriesRetrieve, sdk_adminOnchainTransactionsList as adminOnchainTransactionsList, sdk_adminOnchainTransactionsRetrieve as adminOnchainTransactionsRetrieve, sdk_alchemyWebhookCreate as alchemyWebhookCreate, sdk_deactivateCreate as deactivateCreate, sdk_userAccountAddressLookupCreate as userAccountAddressLookupCreate, sdk_userAddressesCreate as userAddressesCreate, sdk_userAddressesList as userAddressesList, sdk_userAddressesRetrieve as userAddressesRetrieve, sdk_userCollectionsPartialUpdate as userCollectionsPartialUpdate, sdk_userCollectionsRetrieve as userCollectionsRetrieve, sdk_userCollectionsUpdate as userCollectionsUpdate, sdk_userOnchainTransactionsCancelCreate as userOnchainTransactionsCancelCreate, sdk_userOnchainTransactionsList as userOnchainTransactionsList, sdk_userOnchainTransactionsPartialUpdate as userOnchainTransactionsPartialUpdate, sdk_userOnchainTransactionsRetrieve as userOnchainTransactionsRetrieve, sdk_userOnchainTransactionsUpdate as userOnchainTransactionsUpdate, sdk_webhookCreate as webhookCreate };
|
|
1574
|
+
export { type sdk_Options as Options, sdk_activateCreate as activateCreate, sdk_adminAddressesCreate as adminAddressesCreate, sdk_adminAddressesDestroy as adminAddressesDestroy, sdk_adminAddressesList as adminAddressesList, sdk_adminAddressesRetrieve as adminAddressesRetrieve, sdk_adminCompanyPartialUpdate as adminCompanyPartialUpdate, sdk_adminCompanyRetrieve as adminCompanyRetrieve, sdk_adminCompanyUpdate as adminCompanyUpdate, sdk_adminDepositAddressesCreate as adminDepositAddressesCreate, sdk_adminDepositFactoriesCreate as adminDepositFactoriesCreate, sdk_adminDepositFactoriesList as adminDepositFactoriesList, sdk_adminDepositFactoriesRetrieve as adminDepositFactoriesRetrieve, sdk_adminOnchainTransactionsList as adminOnchainTransactionsList, sdk_adminOnchainTransactionsRetrieve as adminOnchainTransactionsRetrieve, sdk_alchemyWebhookCreate as alchemyWebhookCreate, sdk_deactivateCreate as deactivateCreate, sdk_userAccountAddressLookupCreate as userAccountAddressLookupCreate, sdk_userAddressesCreate as userAddressesCreate, sdk_userAddressesList as userAddressesList, sdk_userAddressesRetrieve as userAddressesRetrieve, sdk_userCollectionsPartialUpdate as userCollectionsPartialUpdate, sdk_userCollectionsRetrieve as userCollectionsRetrieve, sdk_userCollectionsUpdate as userCollectionsUpdate, sdk_userOnchainTransactionsCancelCreate as userOnchainTransactionsCancelCreate, sdk_userOnchainTransactionsList as userOnchainTransactionsList, sdk_userOnchainTransactionsPartialUpdate as userOnchainTransactionsPartialUpdate, sdk_userOnchainTransactionsRetrieve as userOnchainTransactionsRetrieve, sdk_userOnchainTransactionsUpdate as userOnchainTransactionsUpdate, sdk_userPartialUpdate as userPartialUpdate, sdk_userRetrieve as userRetrieve, sdk_userUpdate as userUpdate, sdk_webhookCreate as webhookCreate };
|
|
1497
1575
|
}
|
|
1498
1576
|
|
|
1499
1577
|
type AlchemyApi = BoundSdk<typeof sdk>;
|
|
1500
1578
|
declare function createAlchemyApi(config: ApiFactoryConfig): AlchemyApi;
|
|
1501
1579
|
|
|
1502
|
-
export { type AccountAddressLookup, type AccountAddressLookupResponse, type ActionResponse, type Activate, type ActivateCreateData, type ActivateCreateResponse, type ActivateCreateResponses, type Address, type AddressResponse, type AddressResponseWritable, type AddressWritable, type AdminAddress, type AdminAddressResponse, type AdminAddressResponseWritable, type AdminAddressWritable, type AdminAddressesCreateData, type AdminAddressesCreateResponse, type AdminAddressesCreateResponses, type AdminAddressesDestroyData, type AdminAddressesDestroyResponse, type AdminAddressesDestroyResponses, type AdminAddressesListData, type AdminAddressesListResponse, type AdminAddressesListResponses, type AdminAddressesRetrieveData, type AdminAddressesRetrieveResponse, type AdminAddressesRetrieveResponses, type AdminCompany, type AdminCompanyPartialUpdateData, type AdminCompanyPartialUpdateResponse, type AdminCompanyPartialUpdateResponses, type AdminCompanyResponse, type AdminCompanyResponseWritable, type AdminCompanyRetrieveData, type AdminCompanyRetrieveResponse, type AdminCompanyRetrieveResponses, type AdminCompanyUpdateData, type AdminCompanyUpdateResponse, type AdminCompanyUpdateResponses, type AdminCreateAddress, type AdminCreateDepositAddress, type AdminCreateDepositAddressResponse, type AdminCreateDepositFactory, type AdminDepositAddressesCreateData, type AdminDepositAddressesCreateResponse, type AdminDepositAddressesCreateResponses, type AdminDepositFactoriesCreateData, type AdminDepositFactoriesCreateResponse, type AdminDepositFactoriesCreateResponses, type AdminDepositFactoriesListData, type AdminDepositFactoriesListResponse, type AdminDepositFactoriesListResponses, type AdminDepositFactoriesRetrieveData, type AdminDepositFactoriesRetrieveResponse, type AdminDepositFactoriesRetrieveResponses, type AdminDepositFactory, type AdminDepositFactoryResponse, type AdminDepositFactoryResponseWritable, type AdminOnchainTransaction, type AdminOnchainTransactionResponse, type AdminOnchainTransactionResponseWritable, type AdminOnchainTransactionWritable, type AdminOnchainTransactionsListData, type AdminOnchainTransactionsListResponse, type AdminOnchainTransactionsListResponses, type AdminOnchainTransactionsRetrieveData, type AdminOnchainTransactionsRetrieveResponse, type AdminOnchainTransactionsRetrieveResponses, type AlchemyApi, type AlchemyWebhook, type AlchemyWebhookCreateData, type AlchemyWebhookCreateResponse, type AlchemyWebhookCreateResponses, type ClientOptions, type Currency, type Deactivate, type DeactivateCreateData, type DeactivateCreateResponse, type DeactivateCreateResponses, type OnchainTransaction, type OnchainTransactionResponse, type OnchainTransactionResponseWritable, type OnchainTransactionWritable, type PaginatedAddressList, type PaginatedAddressListResponse, type PaginatedAddressListResponseWritable, type PaginatedAddressListWritable, type PaginatedAdminAddressList, type PaginatedAdminAddressListResponse, type PaginatedAdminAddressListResponseWritable, type PaginatedAdminAddressListWritable, type PaginatedAdminDepositFactoryList, type PaginatedAdminDepositFactoryListResponse, type PaginatedAdminDepositFactoryListResponseWritable, type PaginatedAdminDepositFactoryListWritable, type PaginatedAdminOnchainTransactionList, type PaginatedAdminOnchainTransactionListResponse, type PaginatedAdminOnchainTransactionListResponseWritable, type PaginatedAdminOnchainTransactionListWritable, type PaginatedOnchainTransactionList, type PaginatedOnchainTransactionListResponse, type PaginatedOnchainTransactionListResponseWritable, type PaginatedOnchainTransactionListWritable, type PatchedAdminCompany, type PatchedOnchainTransaction, type PatchedOnchainTransactionWritable, type PatchedTransactionCollection, type PatchedTransactionCollectionWritable, type TransactionCollection, type TransactionCollectionResponse, type TransactionCollectionResponseWritable, type TransactionCollectionWritable, type User, type UserAccountAddressLookupCreateData, type UserAccountAddressLookupCreateResponse, type UserAccountAddressLookupCreateResponses, type UserAddressesCreateData, type UserAddressesCreateResponse, type UserAddressesCreateResponses, type UserAddressesListData, type UserAddressesListResponse, type UserAddressesListResponses, type UserAddressesRetrieveData, type UserAddressesRetrieveResponse, type UserAddressesRetrieveResponses, type UserCollectionsPartialUpdateData, type UserCollectionsPartialUpdateResponse, type UserCollectionsPartialUpdateResponses, type UserCollectionsRetrieveData, type UserCollectionsRetrieveResponse, type UserCollectionsRetrieveResponses, type UserCollectionsUpdateData, type UserCollectionsUpdateResponse, type UserCollectionsUpdateResponses, type UserCreateAddress, type UserCreateAddressWritable, type UserOnchainTransactionsCancelCreateData, type UserOnchainTransactionsCancelCreateResponse, type UserOnchainTransactionsCancelCreateResponses, type UserOnchainTransactionsListData, type UserOnchainTransactionsListResponse, type UserOnchainTransactionsListResponses, type UserOnchainTransactionsPartialUpdateData, type UserOnchainTransactionsPartialUpdateResponse, type UserOnchainTransactionsPartialUpdateResponses, type UserOnchainTransactionsRetrieveData, type UserOnchainTransactionsRetrieveResponse, type UserOnchainTransactionsRetrieveResponses, type UserOnchainTransactionsUpdateData, type UserOnchainTransactionsUpdateResponse, type UserOnchainTransactionsUpdateResponses, type Webhook, type WebhookCreateData, type WebhookCreateResponse, type WebhookCreateResponses, createAlchemyApi };
|
|
1580
|
+
export { type AccountAddressLookup, type AccountAddressLookupResponse, type ActionResponse, type Activate, type ActivateCreateData, type ActivateCreateResponse, type ActivateCreateResponses, type Address, type AddressResponse, type AddressResponseWritable, type AddressWritable, type AdminAddress, type AdminAddressResponse, type AdminAddressResponseWritable, type AdminAddressWritable, type AdminAddressesCreateData, type AdminAddressesCreateResponse, type AdminAddressesCreateResponses, type AdminAddressesDestroyData, type AdminAddressesDestroyResponse, type AdminAddressesDestroyResponses, type AdminAddressesListData, type AdminAddressesListResponse, type AdminAddressesListResponses, type AdminAddressesRetrieveData, type AdminAddressesRetrieveResponse, type AdminAddressesRetrieveResponses, type AdminCompany, type AdminCompanyPartialUpdateData, type AdminCompanyPartialUpdateResponse, type AdminCompanyPartialUpdateResponses, type AdminCompanyResponse, type AdminCompanyResponseWritable, type AdminCompanyRetrieveData, type AdminCompanyRetrieveResponse, type AdminCompanyRetrieveResponses, type AdminCompanyUpdateData, type AdminCompanyUpdateResponse, type AdminCompanyUpdateResponses, type AdminCreateAddress, type AdminCreateDepositAddress, type AdminCreateDepositAddressResponse, type AdminCreateDepositFactory, type AdminDepositAddressesCreateData, type AdminDepositAddressesCreateResponse, type AdminDepositAddressesCreateResponses, type AdminDepositFactoriesCreateData, type AdminDepositFactoriesCreateResponse, type AdminDepositFactoriesCreateResponses, type AdminDepositFactoriesListData, type AdminDepositFactoriesListResponse, type AdminDepositFactoriesListResponses, type AdminDepositFactoriesRetrieveData, type AdminDepositFactoriesRetrieveResponse, type AdminDepositFactoriesRetrieveResponses, type AdminDepositFactory, type AdminDepositFactoryResponse, type AdminDepositFactoryResponseWritable, type AdminOnchainTransaction, type AdminOnchainTransactionResponse, type AdminOnchainTransactionResponseWritable, type AdminOnchainTransactionWritable, type AdminOnchainTransactionsListData, type AdminOnchainTransactionsListResponse, type AdminOnchainTransactionsListResponses, type AdminOnchainTransactionsRetrieveData, type AdminOnchainTransactionsRetrieveResponse, type AdminOnchainTransactionsRetrieveResponses, type AlchemyApi, type AlchemyWebhook, type AlchemyWebhookCreateData, type AlchemyWebhookCreateResponse, type AlchemyWebhookCreateResponses, type ClientOptions, type Currency, type Deactivate, type DeactivateCreateData, type DeactivateCreateResponse, type DeactivateCreateResponses, type OnchainTransaction, type OnchainTransactionResponse, type OnchainTransactionResponseWritable, type OnchainTransactionWritable, type PaginatedAddressList, type PaginatedAddressListResponse, type PaginatedAddressListResponseWritable, type PaginatedAddressListWritable, type PaginatedAdminAddressList, type PaginatedAdminAddressListResponse, type PaginatedAdminAddressListResponseWritable, type PaginatedAdminAddressListWritable, type PaginatedAdminDepositFactoryList, type PaginatedAdminDepositFactoryListResponse, type PaginatedAdminDepositFactoryListResponseWritable, type PaginatedAdminDepositFactoryListWritable, type PaginatedAdminOnchainTransactionList, type PaginatedAdminOnchainTransactionListResponse, type PaginatedAdminOnchainTransactionListResponseWritable, type PaginatedAdminOnchainTransactionListWritable, type PaginatedOnchainTransactionList, type PaginatedOnchainTransactionListResponse, type PaginatedOnchainTransactionListResponseWritable, type PaginatedOnchainTransactionListWritable, type PatchedAdminCompany, type PatchedOnchainTransaction, type PatchedOnchainTransactionWritable, type PatchedTransactionCollection, type PatchedTransactionCollectionWritable, type PatchedUser, type PatchedUserWritable, type TransactionCollection, type TransactionCollectionResponse, type TransactionCollectionResponseWritable, type TransactionCollectionWritable, type User, type UserAccountAddressLookupCreateData, type UserAccountAddressLookupCreateResponse, type UserAccountAddressLookupCreateResponses, type UserAddressesCreateData, type UserAddressesCreateResponse, type UserAddressesCreateResponses, type UserAddressesListData, type UserAddressesListResponse, type UserAddressesListResponses, type UserAddressesRetrieveData, type UserAddressesRetrieveResponse, type UserAddressesRetrieveResponses, type UserCollectionsPartialUpdateData, type UserCollectionsPartialUpdateResponse, type UserCollectionsPartialUpdateResponses, type UserCollectionsRetrieveData, type UserCollectionsRetrieveResponse, type UserCollectionsRetrieveResponses, type UserCollectionsUpdateData, type UserCollectionsUpdateResponse, type UserCollectionsUpdateResponses, type UserCreateAddress, type UserCreateAddressWritable, type UserOnchainTransactionsCancelCreateData, type UserOnchainTransactionsCancelCreateResponse, type UserOnchainTransactionsCancelCreateResponses, type UserOnchainTransactionsListData, type UserOnchainTransactionsListResponse, type UserOnchainTransactionsListResponses, type UserOnchainTransactionsPartialUpdateData, type UserOnchainTransactionsPartialUpdateResponse, type UserOnchainTransactionsPartialUpdateResponses, type UserOnchainTransactionsRetrieveData, type UserOnchainTransactionsRetrieveResponse, type UserOnchainTransactionsRetrieveResponses, type UserOnchainTransactionsUpdateData, type UserOnchainTransactionsUpdateResponse, type UserOnchainTransactionsUpdateResponses, type UserPartialUpdateData, type UserPartialUpdateResponse, type UserPartialUpdateResponses, type UserResponse, type UserResponseWritable, type UserRetrieveData, type UserRetrieveResponse, type UserRetrieveResponses, type UserUpdateData, type UserUpdateResponse, type UserUpdateResponses, type UserWritable, type Webhook, type WebhookCreateData, type WebhookCreateResponse, type WebhookCreateResponses, createAlchemyApi };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as ApiFactoryConfig, B as BoundSdk } from '../create-api-client-
|
|
2
|
-
import '../create-auth-
|
|
1
|
+
import { A as ApiFactoryConfig, B as BoundSdk } from '../create-api-client-CBNjHT-x.js';
|
|
2
|
+
import '../create-auth-CROjq_cP.js';
|
|
3
3
|
|
|
4
4
|
type AuthToken = string | undefined;
|
|
5
5
|
interface Auth {
|
|
@@ -122,6 +122,11 @@ interface Config$1 {
|
|
|
122
122
|
*/
|
|
123
123
|
responseValidator?: (data: unknown) => Promise<unknown>;
|
|
124
124
|
}
|
|
125
|
+
/**
|
|
126
|
+
* Arbitrary metadata passed through the `meta` request option.
|
|
127
|
+
*/
|
|
128
|
+
interface ClientMeta {
|
|
129
|
+
}
|
|
125
130
|
|
|
126
131
|
type ServerSentEventsOptions<TData = unknown> = Omit<RequestInit, 'method'> & Pick<Config$1, 'method' | 'responseTransformer' | 'responseValidator'> & {
|
|
127
132
|
/**
|
|
@@ -764,6 +769,16 @@ type PatchedTransactionCollection = {
|
|
|
764
769
|
*/
|
|
765
770
|
readonly status?: 'pending' | 'signed' | 'broadcast' | 'confirmed' | 'failed' | 'cancelled';
|
|
766
771
|
};
|
|
772
|
+
/**
|
|
773
|
+
* A ModelSerializer that takes additional arguments for
|
|
774
|
+
* "fields", "omit" and "expand" in order to
|
|
775
|
+
* control which fields are displayed, and whether to replace simple
|
|
776
|
+
* values with complex, nested serializations
|
|
777
|
+
*/
|
|
778
|
+
type PatchedUser = {
|
|
779
|
+
readonly identifier?: string;
|
|
780
|
+
private_key_exported?: number;
|
|
781
|
+
};
|
|
767
782
|
/**
|
|
768
783
|
* A ModelSerializer that takes additional arguments for
|
|
769
784
|
* "fields", "omit" and "expand" in order to
|
|
@@ -794,7 +809,8 @@ type TransactionCollectionResponse = {
|
|
|
794
809
|
* values with complex, nested serializations
|
|
795
810
|
*/
|
|
796
811
|
type User = {
|
|
797
|
-
identifier: string;
|
|
812
|
+
readonly identifier: string;
|
|
813
|
+
private_key_exported?: number;
|
|
798
814
|
};
|
|
799
815
|
/**
|
|
800
816
|
* Request body for POST /user/addresses/. Two mutually-exclusive modes, both
|
|
@@ -816,6 +832,10 @@ type UserCreateAddress = {
|
|
|
816
832
|
address?: string;
|
|
817
833
|
rehive_account?: string;
|
|
818
834
|
};
|
|
835
|
+
type UserResponse = {
|
|
836
|
+
status?: string;
|
|
837
|
+
data?: User;
|
|
838
|
+
};
|
|
819
839
|
type Webhook = {
|
|
820
840
|
id: string;
|
|
821
841
|
/**
|
|
@@ -981,6 +1001,15 @@ type PatchedOnchainTransactionWritable = {
|
|
|
981
1001
|
type PatchedTransactionCollectionWritable = {
|
|
982
1002
|
hash?: string;
|
|
983
1003
|
};
|
|
1004
|
+
/**
|
|
1005
|
+
* A ModelSerializer that takes additional arguments for
|
|
1006
|
+
* "fields", "omit" and "expand" in order to
|
|
1007
|
+
* control which fields are displayed, and whether to replace simple
|
|
1008
|
+
* values with complex, nested serializations
|
|
1009
|
+
*/
|
|
1010
|
+
type PatchedUserWritable = {
|
|
1011
|
+
private_key_exported?: number;
|
|
1012
|
+
};
|
|
984
1013
|
/**
|
|
985
1014
|
* A ModelSerializer that takes additional arguments for
|
|
986
1015
|
* "fields", "omit" and "expand" in order to
|
|
@@ -994,6 +1023,15 @@ type TransactionCollectionResponseWritable = {
|
|
|
994
1023
|
status?: string;
|
|
995
1024
|
data?: TransactionCollectionWritable;
|
|
996
1025
|
};
|
|
1026
|
+
/**
|
|
1027
|
+
* A ModelSerializer that takes additional arguments for
|
|
1028
|
+
* "fields", "omit" and "expand" in order to
|
|
1029
|
+
* control which fields are displayed, and whether to replace simple
|
|
1030
|
+
* values with complex, nested serializations
|
|
1031
|
+
*/
|
|
1032
|
+
type UserWritable = {
|
|
1033
|
+
private_key_exported?: number;
|
|
1034
|
+
};
|
|
997
1035
|
/**
|
|
998
1036
|
* Request body for POST /user/addresses/. Two mutually-exclusive modes, both
|
|
999
1037
|
* scoped to the calling user:
|
|
@@ -1024,6 +1062,10 @@ type UserCreateAddressWritable = {
|
|
|
1024
1062
|
subtype?: string;
|
|
1025
1063
|
provider?: string;
|
|
1026
1064
|
};
|
|
1065
|
+
type UserResponseWritable = {
|
|
1066
|
+
status?: string;
|
|
1067
|
+
data?: UserWritable;
|
|
1068
|
+
};
|
|
1027
1069
|
type ActivateCreateData = {
|
|
1028
1070
|
body: Activate;
|
|
1029
1071
|
path?: never;
|
|
@@ -1248,6 +1290,36 @@ type DeactivateCreateResponses = {
|
|
|
1248
1290
|
200: ActionResponse;
|
|
1249
1291
|
};
|
|
1250
1292
|
type DeactivateCreateResponse = DeactivateCreateResponses[keyof DeactivateCreateResponses];
|
|
1293
|
+
type UserRetrieveData = {
|
|
1294
|
+
body?: never;
|
|
1295
|
+
path?: never;
|
|
1296
|
+
query?: never;
|
|
1297
|
+
url: '/user/';
|
|
1298
|
+
};
|
|
1299
|
+
type UserRetrieveResponses = {
|
|
1300
|
+
200: UserResponse;
|
|
1301
|
+
};
|
|
1302
|
+
type UserRetrieveResponse = UserRetrieveResponses[keyof UserRetrieveResponses];
|
|
1303
|
+
type UserPartialUpdateData = {
|
|
1304
|
+
body?: PatchedUserWritable;
|
|
1305
|
+
path?: never;
|
|
1306
|
+
query?: never;
|
|
1307
|
+
url: '/user/';
|
|
1308
|
+
};
|
|
1309
|
+
type UserPartialUpdateResponses = {
|
|
1310
|
+
200: UserResponse;
|
|
1311
|
+
};
|
|
1312
|
+
type UserPartialUpdateResponse = UserPartialUpdateResponses[keyof UserPartialUpdateResponses];
|
|
1313
|
+
type UserUpdateData = {
|
|
1314
|
+
body?: UserWritable;
|
|
1315
|
+
path?: never;
|
|
1316
|
+
query?: never;
|
|
1317
|
+
url: '/user/';
|
|
1318
|
+
};
|
|
1319
|
+
type UserUpdateResponses = {
|
|
1320
|
+
200: UserResponse;
|
|
1321
|
+
};
|
|
1322
|
+
type UserUpdateResponse = UserUpdateResponses[keyof UserUpdateResponses];
|
|
1251
1323
|
type UserAccountAddressLookupCreateData = {
|
|
1252
1324
|
body: AccountAddressLookup;
|
|
1253
1325
|
path?: never;
|
|
@@ -1430,7 +1502,7 @@ type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean
|
|
|
1430
1502
|
* You can pass arbitrary values through the `meta` object. This can be
|
|
1431
1503
|
* used to access values that aren't defined as part of the SDK function.
|
|
1432
1504
|
*/
|
|
1433
|
-
meta?: Record<string, unknown
|
|
1505
|
+
meta?: keyof ClientMeta extends never ? Record<string, unknown> : ClientMeta;
|
|
1434
1506
|
};
|
|
1435
1507
|
declare const activateCreate: <ThrowOnError extends boolean = false>(options: Options<ActivateCreateData, ThrowOnError>) => RequestResult<ActivateCreateResponses, unknown, ThrowOnError>;
|
|
1436
1508
|
declare const adminAddressesList: <ThrowOnError extends boolean = false>(options?: Options<AdminAddressesListData, ThrowOnError>) => RequestResult<AdminAddressesListResponses, unknown, ThrowOnError>;
|
|
@@ -1448,6 +1520,9 @@ declare const adminOnchainTransactionsList: <ThrowOnError extends boolean = fals
|
|
|
1448
1520
|
declare const adminOnchainTransactionsRetrieve: <ThrowOnError extends boolean = false>(options: Options<AdminOnchainTransactionsRetrieveData, ThrowOnError>) => RequestResult<AdminOnchainTransactionsRetrieveResponses, unknown, ThrowOnError>;
|
|
1449
1521
|
declare const alchemyWebhookCreate: <ThrowOnError extends boolean = false>(options: Options<AlchemyWebhookCreateData, ThrowOnError>) => RequestResult<AlchemyWebhookCreateResponses, unknown, ThrowOnError>;
|
|
1450
1522
|
declare const deactivateCreate: <ThrowOnError extends boolean = false>(options: Options<DeactivateCreateData, ThrowOnError>) => RequestResult<DeactivateCreateResponses, unknown, ThrowOnError>;
|
|
1523
|
+
declare const userRetrieve: <ThrowOnError extends boolean = false>(options?: Options<UserRetrieveData, ThrowOnError>) => RequestResult<UserRetrieveResponses, unknown, ThrowOnError>;
|
|
1524
|
+
declare const userPartialUpdate: <ThrowOnError extends boolean = false>(options?: Options<UserPartialUpdateData, ThrowOnError>) => RequestResult<UserPartialUpdateResponses, unknown, ThrowOnError>;
|
|
1525
|
+
declare const userUpdate: <ThrowOnError extends boolean = false>(options?: Options<UserUpdateData, ThrowOnError>) => RequestResult<UserUpdateResponses, unknown, ThrowOnError>;
|
|
1451
1526
|
declare const userAccountAddressLookupCreate: <ThrowOnError extends boolean = false>(options: Options<UserAccountAddressLookupCreateData, ThrowOnError>) => RequestResult<UserAccountAddressLookupCreateResponses, unknown, ThrowOnError>;
|
|
1452
1527
|
declare const userAddressesList: <ThrowOnError extends boolean = false>(options?: Options<UserAddressesListData, ThrowOnError>) => RequestResult<UserAddressesListResponses, unknown, ThrowOnError>;
|
|
1453
1528
|
declare const userAddressesCreate: <ThrowOnError extends boolean = false>(options?: Options<UserAddressesCreateData, ThrowOnError>) => RequestResult<UserAddressesCreateResponses, unknown, ThrowOnError>;
|
|
@@ -1491,12 +1566,15 @@ declare const sdk_userOnchainTransactionsList: typeof userOnchainTransactionsLis
|
|
|
1491
1566
|
declare const sdk_userOnchainTransactionsPartialUpdate: typeof userOnchainTransactionsPartialUpdate;
|
|
1492
1567
|
declare const sdk_userOnchainTransactionsRetrieve: typeof userOnchainTransactionsRetrieve;
|
|
1493
1568
|
declare const sdk_userOnchainTransactionsUpdate: typeof userOnchainTransactionsUpdate;
|
|
1569
|
+
declare const sdk_userPartialUpdate: typeof userPartialUpdate;
|
|
1570
|
+
declare const sdk_userRetrieve: typeof userRetrieve;
|
|
1571
|
+
declare const sdk_userUpdate: typeof userUpdate;
|
|
1494
1572
|
declare const sdk_webhookCreate: typeof webhookCreate;
|
|
1495
1573
|
declare namespace sdk {
|
|
1496
|
-
export { type sdk_Options as Options, sdk_activateCreate as activateCreate, sdk_adminAddressesCreate as adminAddressesCreate, sdk_adminAddressesDestroy as adminAddressesDestroy, sdk_adminAddressesList as adminAddressesList, sdk_adminAddressesRetrieve as adminAddressesRetrieve, sdk_adminCompanyPartialUpdate as adminCompanyPartialUpdate, sdk_adminCompanyRetrieve as adminCompanyRetrieve, sdk_adminCompanyUpdate as adminCompanyUpdate, sdk_adminDepositAddressesCreate as adminDepositAddressesCreate, sdk_adminDepositFactoriesCreate as adminDepositFactoriesCreate, sdk_adminDepositFactoriesList as adminDepositFactoriesList, sdk_adminDepositFactoriesRetrieve as adminDepositFactoriesRetrieve, sdk_adminOnchainTransactionsList as adminOnchainTransactionsList, sdk_adminOnchainTransactionsRetrieve as adminOnchainTransactionsRetrieve, sdk_alchemyWebhookCreate as alchemyWebhookCreate, sdk_deactivateCreate as deactivateCreate, sdk_userAccountAddressLookupCreate as userAccountAddressLookupCreate, sdk_userAddressesCreate as userAddressesCreate, sdk_userAddressesList as userAddressesList, sdk_userAddressesRetrieve as userAddressesRetrieve, sdk_userCollectionsPartialUpdate as userCollectionsPartialUpdate, sdk_userCollectionsRetrieve as userCollectionsRetrieve, sdk_userCollectionsUpdate as userCollectionsUpdate, sdk_userOnchainTransactionsCancelCreate as userOnchainTransactionsCancelCreate, sdk_userOnchainTransactionsList as userOnchainTransactionsList, sdk_userOnchainTransactionsPartialUpdate as userOnchainTransactionsPartialUpdate, sdk_userOnchainTransactionsRetrieve as userOnchainTransactionsRetrieve, sdk_userOnchainTransactionsUpdate as userOnchainTransactionsUpdate, sdk_webhookCreate as webhookCreate };
|
|
1574
|
+
export { type sdk_Options as Options, sdk_activateCreate as activateCreate, sdk_adminAddressesCreate as adminAddressesCreate, sdk_adminAddressesDestroy as adminAddressesDestroy, sdk_adminAddressesList as adminAddressesList, sdk_adminAddressesRetrieve as adminAddressesRetrieve, sdk_adminCompanyPartialUpdate as adminCompanyPartialUpdate, sdk_adminCompanyRetrieve as adminCompanyRetrieve, sdk_adminCompanyUpdate as adminCompanyUpdate, sdk_adminDepositAddressesCreate as adminDepositAddressesCreate, sdk_adminDepositFactoriesCreate as adminDepositFactoriesCreate, sdk_adminDepositFactoriesList as adminDepositFactoriesList, sdk_adminDepositFactoriesRetrieve as adminDepositFactoriesRetrieve, sdk_adminOnchainTransactionsList as adminOnchainTransactionsList, sdk_adminOnchainTransactionsRetrieve as adminOnchainTransactionsRetrieve, sdk_alchemyWebhookCreate as alchemyWebhookCreate, sdk_deactivateCreate as deactivateCreate, sdk_userAccountAddressLookupCreate as userAccountAddressLookupCreate, sdk_userAddressesCreate as userAddressesCreate, sdk_userAddressesList as userAddressesList, sdk_userAddressesRetrieve as userAddressesRetrieve, sdk_userCollectionsPartialUpdate as userCollectionsPartialUpdate, sdk_userCollectionsRetrieve as userCollectionsRetrieve, sdk_userCollectionsUpdate as userCollectionsUpdate, sdk_userOnchainTransactionsCancelCreate as userOnchainTransactionsCancelCreate, sdk_userOnchainTransactionsList as userOnchainTransactionsList, sdk_userOnchainTransactionsPartialUpdate as userOnchainTransactionsPartialUpdate, sdk_userOnchainTransactionsRetrieve as userOnchainTransactionsRetrieve, sdk_userOnchainTransactionsUpdate as userOnchainTransactionsUpdate, sdk_userPartialUpdate as userPartialUpdate, sdk_userRetrieve as userRetrieve, sdk_userUpdate as userUpdate, sdk_webhookCreate as webhookCreate };
|
|
1497
1575
|
}
|
|
1498
1576
|
|
|
1499
1577
|
type AlchemyApi = BoundSdk<typeof sdk>;
|
|
1500
1578
|
declare function createAlchemyApi(config: ApiFactoryConfig): AlchemyApi;
|
|
1501
1579
|
|
|
1502
|
-
export { type AccountAddressLookup, type AccountAddressLookupResponse, type ActionResponse, type Activate, type ActivateCreateData, type ActivateCreateResponse, type ActivateCreateResponses, type Address, type AddressResponse, type AddressResponseWritable, type AddressWritable, type AdminAddress, type AdminAddressResponse, type AdminAddressResponseWritable, type AdminAddressWritable, type AdminAddressesCreateData, type AdminAddressesCreateResponse, type AdminAddressesCreateResponses, type AdminAddressesDestroyData, type AdminAddressesDestroyResponse, type AdminAddressesDestroyResponses, type AdminAddressesListData, type AdminAddressesListResponse, type AdminAddressesListResponses, type AdminAddressesRetrieveData, type AdminAddressesRetrieveResponse, type AdminAddressesRetrieveResponses, type AdminCompany, type AdminCompanyPartialUpdateData, type AdminCompanyPartialUpdateResponse, type AdminCompanyPartialUpdateResponses, type AdminCompanyResponse, type AdminCompanyResponseWritable, type AdminCompanyRetrieveData, type AdminCompanyRetrieveResponse, type AdminCompanyRetrieveResponses, type AdminCompanyUpdateData, type AdminCompanyUpdateResponse, type AdminCompanyUpdateResponses, type AdminCreateAddress, type AdminCreateDepositAddress, type AdminCreateDepositAddressResponse, type AdminCreateDepositFactory, type AdminDepositAddressesCreateData, type AdminDepositAddressesCreateResponse, type AdminDepositAddressesCreateResponses, type AdminDepositFactoriesCreateData, type AdminDepositFactoriesCreateResponse, type AdminDepositFactoriesCreateResponses, type AdminDepositFactoriesListData, type AdminDepositFactoriesListResponse, type AdminDepositFactoriesListResponses, type AdminDepositFactoriesRetrieveData, type AdminDepositFactoriesRetrieveResponse, type AdminDepositFactoriesRetrieveResponses, type AdminDepositFactory, type AdminDepositFactoryResponse, type AdminDepositFactoryResponseWritable, type AdminOnchainTransaction, type AdminOnchainTransactionResponse, type AdminOnchainTransactionResponseWritable, type AdminOnchainTransactionWritable, type AdminOnchainTransactionsListData, type AdminOnchainTransactionsListResponse, type AdminOnchainTransactionsListResponses, type AdminOnchainTransactionsRetrieveData, type AdminOnchainTransactionsRetrieveResponse, type AdminOnchainTransactionsRetrieveResponses, type AlchemyApi, type AlchemyWebhook, type AlchemyWebhookCreateData, type AlchemyWebhookCreateResponse, type AlchemyWebhookCreateResponses, type ClientOptions, type Currency, type Deactivate, type DeactivateCreateData, type DeactivateCreateResponse, type DeactivateCreateResponses, type OnchainTransaction, type OnchainTransactionResponse, type OnchainTransactionResponseWritable, type OnchainTransactionWritable, type PaginatedAddressList, type PaginatedAddressListResponse, type PaginatedAddressListResponseWritable, type PaginatedAddressListWritable, type PaginatedAdminAddressList, type PaginatedAdminAddressListResponse, type PaginatedAdminAddressListResponseWritable, type PaginatedAdminAddressListWritable, type PaginatedAdminDepositFactoryList, type PaginatedAdminDepositFactoryListResponse, type PaginatedAdminDepositFactoryListResponseWritable, type PaginatedAdminDepositFactoryListWritable, type PaginatedAdminOnchainTransactionList, type PaginatedAdminOnchainTransactionListResponse, type PaginatedAdminOnchainTransactionListResponseWritable, type PaginatedAdminOnchainTransactionListWritable, type PaginatedOnchainTransactionList, type PaginatedOnchainTransactionListResponse, type PaginatedOnchainTransactionListResponseWritable, type PaginatedOnchainTransactionListWritable, type PatchedAdminCompany, type PatchedOnchainTransaction, type PatchedOnchainTransactionWritable, type PatchedTransactionCollection, type PatchedTransactionCollectionWritable, type TransactionCollection, type TransactionCollectionResponse, type TransactionCollectionResponseWritable, type TransactionCollectionWritable, type User, type UserAccountAddressLookupCreateData, type UserAccountAddressLookupCreateResponse, type UserAccountAddressLookupCreateResponses, type UserAddressesCreateData, type UserAddressesCreateResponse, type UserAddressesCreateResponses, type UserAddressesListData, type UserAddressesListResponse, type UserAddressesListResponses, type UserAddressesRetrieveData, type UserAddressesRetrieveResponse, type UserAddressesRetrieveResponses, type UserCollectionsPartialUpdateData, type UserCollectionsPartialUpdateResponse, type UserCollectionsPartialUpdateResponses, type UserCollectionsRetrieveData, type UserCollectionsRetrieveResponse, type UserCollectionsRetrieveResponses, type UserCollectionsUpdateData, type UserCollectionsUpdateResponse, type UserCollectionsUpdateResponses, type UserCreateAddress, type UserCreateAddressWritable, type UserOnchainTransactionsCancelCreateData, type UserOnchainTransactionsCancelCreateResponse, type UserOnchainTransactionsCancelCreateResponses, type UserOnchainTransactionsListData, type UserOnchainTransactionsListResponse, type UserOnchainTransactionsListResponses, type UserOnchainTransactionsPartialUpdateData, type UserOnchainTransactionsPartialUpdateResponse, type UserOnchainTransactionsPartialUpdateResponses, type UserOnchainTransactionsRetrieveData, type UserOnchainTransactionsRetrieveResponse, type UserOnchainTransactionsRetrieveResponses, type UserOnchainTransactionsUpdateData, type UserOnchainTransactionsUpdateResponse, type UserOnchainTransactionsUpdateResponses, type Webhook, type WebhookCreateData, type WebhookCreateResponse, type WebhookCreateResponses, createAlchemyApi };
|
|
1580
|
+
export { type AccountAddressLookup, type AccountAddressLookupResponse, type ActionResponse, type Activate, type ActivateCreateData, type ActivateCreateResponse, type ActivateCreateResponses, type Address, type AddressResponse, type AddressResponseWritable, type AddressWritable, type AdminAddress, type AdminAddressResponse, type AdminAddressResponseWritable, type AdminAddressWritable, type AdminAddressesCreateData, type AdminAddressesCreateResponse, type AdminAddressesCreateResponses, type AdminAddressesDestroyData, type AdminAddressesDestroyResponse, type AdminAddressesDestroyResponses, type AdminAddressesListData, type AdminAddressesListResponse, type AdminAddressesListResponses, type AdminAddressesRetrieveData, type AdminAddressesRetrieveResponse, type AdminAddressesRetrieveResponses, type AdminCompany, type AdminCompanyPartialUpdateData, type AdminCompanyPartialUpdateResponse, type AdminCompanyPartialUpdateResponses, type AdminCompanyResponse, type AdminCompanyResponseWritable, type AdminCompanyRetrieveData, type AdminCompanyRetrieveResponse, type AdminCompanyRetrieveResponses, type AdminCompanyUpdateData, type AdminCompanyUpdateResponse, type AdminCompanyUpdateResponses, type AdminCreateAddress, type AdminCreateDepositAddress, type AdminCreateDepositAddressResponse, type AdminCreateDepositFactory, type AdminDepositAddressesCreateData, type AdminDepositAddressesCreateResponse, type AdminDepositAddressesCreateResponses, type AdminDepositFactoriesCreateData, type AdminDepositFactoriesCreateResponse, type AdminDepositFactoriesCreateResponses, type AdminDepositFactoriesListData, type AdminDepositFactoriesListResponse, type AdminDepositFactoriesListResponses, type AdminDepositFactoriesRetrieveData, type AdminDepositFactoriesRetrieveResponse, type AdminDepositFactoriesRetrieveResponses, type AdminDepositFactory, type AdminDepositFactoryResponse, type AdminDepositFactoryResponseWritable, type AdminOnchainTransaction, type AdminOnchainTransactionResponse, type AdminOnchainTransactionResponseWritable, type AdminOnchainTransactionWritable, type AdminOnchainTransactionsListData, type AdminOnchainTransactionsListResponse, type AdminOnchainTransactionsListResponses, type AdminOnchainTransactionsRetrieveData, type AdminOnchainTransactionsRetrieveResponse, type AdminOnchainTransactionsRetrieveResponses, type AlchemyApi, type AlchemyWebhook, type AlchemyWebhookCreateData, type AlchemyWebhookCreateResponse, type AlchemyWebhookCreateResponses, type ClientOptions, type Currency, type Deactivate, type DeactivateCreateData, type DeactivateCreateResponse, type DeactivateCreateResponses, type OnchainTransaction, type OnchainTransactionResponse, type OnchainTransactionResponseWritable, type OnchainTransactionWritable, type PaginatedAddressList, type PaginatedAddressListResponse, type PaginatedAddressListResponseWritable, type PaginatedAddressListWritable, type PaginatedAdminAddressList, type PaginatedAdminAddressListResponse, type PaginatedAdminAddressListResponseWritable, type PaginatedAdminAddressListWritable, type PaginatedAdminDepositFactoryList, type PaginatedAdminDepositFactoryListResponse, type PaginatedAdminDepositFactoryListResponseWritable, type PaginatedAdminDepositFactoryListWritable, type PaginatedAdminOnchainTransactionList, type PaginatedAdminOnchainTransactionListResponse, type PaginatedAdminOnchainTransactionListResponseWritable, type PaginatedAdminOnchainTransactionListWritable, type PaginatedOnchainTransactionList, type PaginatedOnchainTransactionListResponse, type PaginatedOnchainTransactionListResponseWritable, type PaginatedOnchainTransactionListWritable, type PatchedAdminCompany, type PatchedOnchainTransaction, type PatchedOnchainTransactionWritable, type PatchedTransactionCollection, type PatchedTransactionCollectionWritable, type PatchedUser, type PatchedUserWritable, type TransactionCollection, type TransactionCollectionResponse, type TransactionCollectionResponseWritable, type TransactionCollectionWritable, type User, type UserAccountAddressLookupCreateData, type UserAccountAddressLookupCreateResponse, type UserAccountAddressLookupCreateResponses, type UserAddressesCreateData, type UserAddressesCreateResponse, type UserAddressesCreateResponses, type UserAddressesListData, type UserAddressesListResponse, type UserAddressesListResponses, type UserAddressesRetrieveData, type UserAddressesRetrieveResponse, type UserAddressesRetrieveResponses, type UserCollectionsPartialUpdateData, type UserCollectionsPartialUpdateResponse, type UserCollectionsPartialUpdateResponses, type UserCollectionsRetrieveData, type UserCollectionsRetrieveResponse, type UserCollectionsRetrieveResponses, type UserCollectionsUpdateData, type UserCollectionsUpdateResponse, type UserCollectionsUpdateResponses, type UserCreateAddress, type UserCreateAddressWritable, type UserOnchainTransactionsCancelCreateData, type UserOnchainTransactionsCancelCreateResponse, type UserOnchainTransactionsCancelCreateResponses, type UserOnchainTransactionsListData, type UserOnchainTransactionsListResponse, type UserOnchainTransactionsListResponses, type UserOnchainTransactionsPartialUpdateData, type UserOnchainTransactionsPartialUpdateResponse, type UserOnchainTransactionsPartialUpdateResponses, type UserOnchainTransactionsRetrieveData, type UserOnchainTransactionsRetrieveResponse, type UserOnchainTransactionsRetrieveResponses, type UserOnchainTransactionsUpdateData, type UserOnchainTransactionsUpdateResponse, type UserOnchainTransactionsUpdateResponses, type UserPartialUpdateData, type UserPartialUpdateResponse, type UserPartialUpdateResponses, type UserResponse, type UserResponseWritable, type UserRetrieveData, type UserRetrieveResponse, type UserRetrieveResponses, type UserUpdateData, type UserUpdateResponse, type UserUpdateResponses, type UserWritable, type Webhook, type WebhookCreateData, type WebhookCreateResponse, type WebhookCreateResponses, createAlchemyApi };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }var _chunkGR5TETAUjs = require('../chunk-GR5TETAU.js');var _chunkOEIQFP6Tjs = require('../chunk-OEIQFP6T.js');var K={};_chunkOEIQFP6Tjs.a.call(void 0, K,{activateCreate:()=>me,adminAddressesCreate:()=>Oe,adminAddressesDestroy:()=>we,adminAddressesList:()=>Re,adminAddressesRetrieve:()=>Te,adminCompanyPartialUpdate:()=>be,adminCompanyRetrieve:()=>Ae,adminCompanyUpdate:()=>ge,adminDepositAddressesCreate:()=>Ce,adminDepositFactoriesCreate:()=>xe,adminDepositFactoriesList:()=>Ee,adminDepositFactoriesRetrieve:()=>ke,adminOnchainTransactionsList:()=>Se,adminOnchainTransactionsRetrieve:()=>
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }var _chunkGR5TETAUjs = require('../chunk-GR5TETAU.js');var _chunkOEIQFP6Tjs = require('../chunk-OEIQFP6T.js');var K={};_chunkOEIQFP6Tjs.a.call(void 0, K,{activateCreate:()=>me,adminAddressesCreate:()=>Oe,adminAddressesDestroy:()=>we,adminAddressesList:()=>Re,adminAddressesRetrieve:()=>Te,adminCompanyPartialUpdate:()=>be,adminCompanyRetrieve:()=>Ae,adminCompanyUpdate:()=>ge,adminDepositAddressesCreate:()=>Ce,adminDepositFactoriesCreate:()=>xe,adminDepositFactoriesList:()=>Ee,adminDepositFactoriesRetrieve:()=>ke,adminOnchainTransactionsList:()=>Se,adminOnchainTransactionsRetrieve:()=>Ue,alchemyWebhookCreate:()=>De,deactivateCreate:()=>qe,userAccountAddressLookupCreate:()=>je,userAddressesCreate:()=>Le,userAddressesList:()=>Ie,userAddressesRetrieve:()=>Be,userCollectionsPartialUpdate:()=>Ke,userCollectionsRetrieve:()=>Fe,userCollectionsUpdate:()=>$e,userOnchainTransactionsCancelCreate:()=>Ve,userOnchainTransactionsList:()=>We,userOnchainTransactionsPartialUpdate:()=>He,userOnchainTransactionsRetrieve:()=>Ne,userOnchainTransactionsUpdate:()=>Me,userPartialUpdate:()=>Pe,userRetrieve:()=>ze,userUpdate:()=>ve,webhookCreate:()=>Je});var I={bodySerializer:e=>JSON.stringify(e,(r,t)=>typeof t=="bigint"?t.toString():t)};var ae={$body_:"body",$headers_:"headers",$path_:"path",$query_:"query"},Ge=Object.entries(ae);function Q({onRequest:e,onSseError:r,onSseEvent:t,responseTransformer:s,responseValidator:i,sseDefaultRetryDelay:d,sseMaxRetryAttempts:o,sseMaxRetryDelay:n,sseSleepFn:a,url:O,...l}){let c,T=_nullishCoalesce(a, () => ((u=>new Promise(f=>setTimeout(f,u)))));return{stream:async function*(){let u=_nullishCoalesce(d, () => (3e3)),f=0,w=_nullishCoalesce(l.signal, () => (new AbortController().signal));for(;!w.aborted;){f++;let D=l.headers instanceof Headers?l.headers:new Headers(l.headers);c!==void 0&&D.set("Last-Event-ID",c);try{let g={redirect:"follow",...l,body:l.serializedBody,headers:D,signal:w},C=new Request(O,g);e&&(C=await e(O,g));let h=await(_nullishCoalesce(l.fetch, () => (globalThis.fetch)))(C);if(!h.ok)throw new Error(`SSE failed: ${h.status} ${h.statusText}`);if(!h.body)throw new Error("No body in SSE response");let A=h.body.pipeThrough(new TextDecoderStream).getReader(),m="",$=()=>{try{A.cancel()}catch (e2){}};w.addEventListener("abort",$);try{for(;;){let{done:re,value:te}=await A.read();if(re)break;m+=te,m=m.replace(/\r\n?/g,`
|
|
2
2
|
`);let W=m.split(`
|
|
3
3
|
|
|
4
4
|
`);m=_nullishCoalesce(W.pop(), () => (""));for(let ne of W){let se=ne.split(`
|
|
5
|
-
`),q=[],N;for(let b of se)if(b.startsWith("data:"))q.push(b.replace(/^data:\s*/,""));else if(b.startsWith("event:"))N=b.replace(/^event:\s*/,"");else if(b.startsWith("id:"))
|
|
6
|
-
`);try{E=JSON.parse(b),H=!0}catch (e3){E=b}}H&&(i&&await i(E),s&&(E=await s(E))),_optionalChain([t, 'optionalCall', _2 => _2({data:E,event:N,id:p,retry:u})]),q.length&&(yield E)}}}finally{w.removeEventListener("abort",$),A.releaseLock()}break}catch(g){if(_optionalChain([r, 'optionalCall', _3 => _3(g)]),o!==void 0&&y>=o)break;let C=Math.min(u*2**(y-1),_nullishCoalesce(n, () => (3e4)));await T(C)}}}()}}var ie=e=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},ce=e=>{switch(e){case"form":return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20";default:return","}},de=e=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},z=({allowReserved:e,explode:r,name:t,style:s,value:i})=>{if(!r){let n=(e?i:i.map(a=>encodeURIComponent(a))).join(ce(s));switch(s){case"label":return`.${n}`;case"matrix":return`;${t}=${n}`;case"simple":return n;default:return`${t}=${n}`}}let d=ie(s),o=i.map(n=>s==="label"||s==="simple"?e?n:encodeURIComponent(n):x({allowReserved:e,name:t,value:n})).join(d);return s==="label"||s==="matrix"?d+o:o},x=({allowReserved:e,name:r,value:t})=>{if(t==null)return"";if(typeof t=="object")throw new Error("Deeply-nested arrays/objects aren\u2019t supported. Provide your own `querySerializer()` to handle these.");return`${r}=${e?t:encodeURIComponent(t)}`},P=({allowReserved:e,explode:r,name:t,style:s,value:i,valueOnly:d})=>{if(i instanceof Date)return d?i.toISOString():`${t}=${i.toISOString()}`;if(s!=="deepObject"&&!r){let a=[];Object.entries(i).forEach(([l,p])=>{a=[...a,l,e?p:encodeURIComponent(p)]});let O=a.join(",");switch(s){case"form":return`${t}=${O}`;case"label":return`.${O}`;case"matrix":return`;${t}=${O}`;default:return O}}let o=de(s),n=Object.entries(i).map(([a,O])=>x({allowReserved:e,name:s==="deepObject"?`${t}[${a}]`:a,value:O})).join(o);return s==="label"||s==="matrix"?o+n:n};var pe=/\{[^{}]+\}/g,le=({path:e,url:r})=>{let t=r,s=r.match(pe);if(s)for(let i of s){let d=!1,o=i.substring(1,i.length-1),n="simple";o.endsWith("*")&&(d=!0,o=o.substring(0,o.length-1)),o.startsWith(".")?(o=o.substring(1),n="label"):o.startsWith(";")&&(o=o.substring(1),n="matrix");let a=e[o];if(a==null)continue;if(Array.isArray(a)){t=t.replace(i,z({explode:d,name:o,style:n,value:a}));continue}if(typeof a=="object"){t=t.replace(i,P({explode:d,name:o,style:n,value:a,valueOnly:!0}));continue}if(n==="matrix"){t=t.replace(i,`;${x({name:o,value:a})}`);continue}let O=encodeURIComponent(n==="label"?`.${a}`:a);t=t.replace(i,O)}return t},_=({baseUrl:e,path:r,query:t,querySerializer:s,url:i})=>{let d=i.startsWith("/")?i:`/${i}`,o=(_nullishCoalesce(e, () => ("")))+d;r&&(o=le({path:r,url:o}));let n=t?s(t):"";return n.startsWith("?")&&(n=n.substring(1)),n&&(o+=`?${n}`),o};function L(e){let r=e.body!==void 0;if(r&&e.bodySerializer)return"serializedBody"in e?e.serializedBody!==void 0&&e.serializedBody!==""?e.serializedBody:null:e.body!==""?e.body:null;if(r)return e.body}var G=async(e,r)=>{let t=typeof r=="function"?await r(e):r;if(t)return e.scheme==="bearer"?`Bearer ${t}`:e.scheme==="basic"?`Basic ${btoa(t)}`:t};var X=({parameters:e={},...r}={})=>s=>{let i=[];if(s&&typeof s=="object")for(let d in s){let o=s[d];if(o==null)continue;let n=e[d]||r;if(Array.isArray(o)){let a=z({allowReserved:n.allowReserved,explode:!0,name:d,style:"form",value:o,...n.array});a&&i.push(a)}else if(typeof o=="object"){let a=P({allowReserved:n.allowReserved,explode:!0,name:d,style:"deepObject",value:o,...n.object});a&&i.push(a)}else{let a=x({allowReserved:n.allowReserved,name:d,value:o});a&&i.push(a)}}return i.join("&")},Y=e=>{if(!e)return"stream";let r=_optionalChain([e, 'access', _4 => _4.split, 'call', _5 => _5(";"), 'access', _6 => _6[0], 'optionalAccess', _7 => _7.trim, 'call', _8 => _8()]);if(r){if(r.startsWith("application/json")||r.endsWith("+json"))return"json";if(r==="multipart/form-data")return"formData";if(["application/","audio/","image/","video/"].some(t=>r.startsWith(t)))return"blob";if(r.startsWith("text/"))return"text"}},ue=(e,r)=>r?!!(e.headers.has(r)||_optionalChain([e, 'access', _9 => _9.query, 'optionalAccess', _10 => _10[r]])||_optionalChain([e, 'access', _11 => _11.headers, 'access', _12 => _12.get, 'call', _13 => _13("Cookie"), 'optionalAccess', _14 => _14.includes, 'call', _15 => _15(`${r}=`)])):!1;async function Z(e){for(let r of _nullishCoalesce(e.security, () => ([]))){if(ue(e,r.name))continue;let t=await G(r,e.auth);if(!t)continue;let s=_nullishCoalesce(r.name, () => ("Authorization"));switch(r.in){case"query":e.query||(e.query={}),e.query[s]=t;break;case"cookie":e.headers.append("Cookie",`${s}=${t}`);break;case"header":default:e.headers.set(s,t);break}}}var B=e=>_({baseUrl:e.baseUrl,path:e.path,query:e.query,querySerializer:typeof e.querySerializer=="function"?e.querySerializer:X(e.querySerializer),url:e.url}),F=(e,r)=>{let t={...e,...r};return _optionalChain([t, 'access', _16 => _16.baseUrl, 'optionalAccess', _17 => _17.endsWith, 'call', _18 => _18("/")])&&(t.baseUrl=t.baseUrl.substring(0,t.baseUrl.length-1)),t.headers=j(e.headers,r.headers),t},fe=e=>{let r=[];return e.forEach((t,s)=>{r.push([s,t])}),r},j=(...e)=>{let r=new Headers;for(let t of e){if(!t)continue;let s=t instanceof Headers?fe(t):Object.entries(t);for(let[i,d]of s)if(d===null)r.delete(i);else if(Array.isArray(d))for(let o of d)r.append(i,o);else d!==void 0&&r.set(i,typeof d=="object"?JSON.stringify(d):d)}return r},k=class{constructor(){this.fns=[]}clear(){this.fns=[]}eject(r){let t=this.getInterceptorIndex(r);this.fns[t]&&(this.fns[t]=null)}exists(r){let t=this.getInterceptorIndex(r);return!!this.fns[t]}getInterceptorIndex(r){return typeof r=="number"?this.fns[r]?r:-1:this.fns.indexOf(r)}update(r,t){let s=this.getInterceptorIndex(r);return this.fns[s]?(this.fns[s]=t,r):!1}use(r){return this.fns.push(r),this.fns.length-1}},ee=()=>({error:new k,request:new k,response:new k}),ye=X({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),he={"Content-Type":"application/json"},S=(e={})=>({...I,headers:he,parseAs:"auto",querySerializer:ye,...e});var D=(e={})=>{let r=F(S(),e),t=()=>({...r}),s=l=>(r=F(r,l),t()),i=ee(),d=async l=>{let p={...r,...l,fetch:_nullishCoalesce(_nullishCoalesce(l.fetch, () => (r.fetch)), () => (globalThis.fetch)),headers:j(r.headers,l.headers),serializedBody:void 0};p.security&&await Z(p),p.requestValidator&&await p.requestValidator(p),p.body!==void 0&&p.bodySerializer&&(p.serializedBody=p.bodySerializer(p.body)),(p.body===void 0||p.serializedBody==="")&&p.headers.delete("Content-Type");let T=p,R=B(T);return{opts:T,url:R}},o=async l=>{let p=_nullishCoalesce(l.throwOnError, () => (r.throwOnError)),T=_nullishCoalesce(l.responseStyle, () => (r.responseStyle)),R,f;try{let{opts:u,url:y}=await d(l),w={redirect:"follow",...u,body:L(u)};R=new Request(y,w);for(let h of i.request.fns)h&&(R=await h(R,u));let U=u.fetch;f=await U(R);for(let h of i.response.fns)h&&(f=await h(f,R,u));let g={request:R,response:f};if(f.ok){let h=_nullishCoalesce((u.parseAs==="auto"?Y(f.headers.get("Content-Type")):u.parseAs), () => ("json"));if(f.status===204||f.headers.get("Content-Length")==="0"){let m;switch(h){case"arrayBuffer":case"blob":case"text":m=await f[h]();break;case"formData":m=new FormData;break;case"stream":m=f.body;break;case"json":default:m={};break}return u.responseStyle==="data"?m:{data:m,...g}}let A;switch(h){case"arrayBuffer":case"blob":case"formData":case"text":A=await f[h]();break;case"json":{let m=await f.text();A=m?JSON.parse(m):{};break}case"stream":return u.responseStyle==="data"?f.body:{data:f.body,...g}}return h==="json"&&(u.responseValidator&&await u.responseValidator(A),u.responseTransformer&&(A=await u.responseTransformer(A))),u.responseStyle==="data"?A:{data:A,...g}}let C=await f.text(),v;try{v=JSON.parse(C)}catch (e4){}throw _nullishCoalesce(v, () => (C))}catch(u){let y=u;for(let w of i.error.fns)w&&(y=await w(y,f,R,l));if(y=y||{},p)throw y;return T==="data"?void 0:{error:y,request:R,response:f}}},n=l=>p=>o({...p,method:l}),a=l=>async p=>{let{opts:T,url:R}=await d(p);return Q({...T,body:T.body,method:l,onRequest:async(f,u)=>{let y=new Request(f,u);for(let w of i.request.fns)w&&(y=await w(y,T));return y},serializedBody:L(T),url:R})};return{buildUrl:l=>B({...r,...l}),connect:n("CONNECT"),delete:n("DELETE"),get:n("GET"),getConfig:t,head:n("HEAD"),interceptors:i,options:n("OPTIONS"),patch:n("PATCH"),post:n("POST"),put:n("PUT"),request:o,setConfig:s,sse:{connect:a("CONNECT"),delete:a("DELETE"),get:a("GET"),head:a("HEAD"),options:a("OPTIONS"),patch:a("PATCH"),post:a("POST"),put:a("PUT"),trace:a("TRACE")},trace:n("TRACE")}};var c=D(S({baseUrl:"https://alchemy.services.rehive.com/api/"}));var me=e=>(_nullishCoalesce(e.client, () => (c))).post({url:"/activate/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Re=e=>(_nullishCoalesce(_optionalChain([e, 'optionalAccess', _19 => _19.client]), () => (c))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/addresses/",...e}),Oe=e=>(_nullishCoalesce(e.client, () => (c))).post({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/addresses/",...e,headers:{"Content-Type":"application/json",...e.headers}}),we=e=>(_nullishCoalesce(e.client, () => (c))).delete({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/addresses/{identifier}/",...e}),Te=e=>(_nullishCoalesce(e.client, () => (c))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/addresses/{identifier}/",...e}),Ae=e=>(_nullishCoalesce(_optionalChain([e, 'optionalAccess', _20 => _20.client]), () => (c))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/company/",...e}),be=e=>(_nullishCoalesce(_optionalChain([e, 'optionalAccess', _21 => _21.client]), () => (c))).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/company/",...e,headers:{"Content-Type":"application/json",..._optionalChain([e, 'optionalAccess', _22 => _22.headers])}}),ge=e=>(_nullishCoalesce(_optionalChain([e, 'optionalAccess', _23 => _23.client]), () => (c))).put({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/company/",...e,headers:{"Content-Type":"application/json",..._optionalChain([e, 'optionalAccess', _24 => _24.headers])}}),Ce=e=>(_nullishCoalesce(e.client, () => (c))).post({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/deposit-addresses/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ee=e=>(_nullishCoalesce(_optionalChain([e, 'optionalAccess', _25 => _25.client]), () => (c))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/deposit-factories/",...e}),xe=e=>(_nullishCoalesce(e.client, () => (c))).post({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/deposit-factories/",...e,headers:{"Content-Type":"application/json",...e.headers}}),ke=e=>(_nullishCoalesce(e.client, () => (c))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/deposit-factories/{identifier}/",...e}),Se=e=>(_nullishCoalesce(_optionalChain([e, 'optionalAccess', _26 => _26.client]), () => (c))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/onchain-transactions/",...e}),De=e=>(_nullishCoalesce(e.client, () => (c))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/onchain-transactions/{identifier}/",...e}),Ue=e=>(_nullishCoalesce(e.client, () => (c))).post({url:"/alchemy_webhook/",...e,headers:{"Content-Type":"application/json",...e.headers}}),qe=e=>(_nullishCoalesce(e.client, () => (c))).post({url:"/deactivate/",...e,headers:{"Content-Type":"application/json",...e.headers}}),ze=e=>(_nullishCoalesce(e.client, () => (c))).post({security:[{name:"Authorization",type:"apiKey"}],url:"/user/account-address-lookup/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Pe=e=>(_nullishCoalesce(_optionalChain([e, 'optionalAccess', _27 => _27.client]), () => (c))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/user/addresses/",...e}),je=e=>(_nullishCoalesce(_optionalChain([e, 'optionalAccess', _28 => _28.client]), () => (c))).post({security:[{name:"Authorization",type:"apiKey"}],url:"/user/addresses/",...e,headers:{"Content-Type":"application/json",..._optionalChain([e, 'optionalAccess', _29 => _29.headers])}}),ve=e=>(_nullishCoalesce(e.client, () => (c))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/user/addresses/{identifier}/",...e}),Ie=e=>(_nullishCoalesce(e.client, () => (c))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/user/collections/{identifier}/",...e}),Le=e=>(_nullishCoalesce(e.client, () => (c))).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/user/collections/{identifier}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Be=e=>(_nullishCoalesce(e.client, () => (c))).put({security:[{name:"Authorization",type:"apiKey"}],url:"/user/collections/{identifier}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Fe=e=>(_nullishCoalesce(_optionalChain([e, 'optionalAccess', _30 => _30.client]), () => (c))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/user/onchain-transactions/",...e}),Ke=e=>(_nullishCoalesce(e.client, () => (c))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/user/onchain-transactions/{identifier}/",...e}),$e=e=>(_nullishCoalesce(e.client, () => (c))).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/user/onchain-transactions/{identifier}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),We=e=>(_nullishCoalesce(e.client, () => (c))).put({security:[{name:"Authorization",type:"apiKey"}],url:"/user/onchain-transactions/{identifier}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ne=e=>(_nullishCoalesce(e.client, () => (c))).post({security:[{name:"Authorization",type:"apiKey"}],url:"/user/onchain-transactions/{identifier}/cancel/",...e,headers:{"Content-Type":"application/json",...e.headers}}),He=e=>(_nullishCoalesce(e.client, () => (c))).post({url:"/webhook/",...e,headers:{"Content-Type":"application/json",...e.headers}});function Me(e){let r=D(_chunkGR5TETAUjs.c.call(void 0, e,"https://alchemy.services.rehive.com/api/"));return _chunkGR5TETAUjs.a.call(void 0, K,r)}exports.createAlchemyApi = Me;
|
|
5
|
+
`),q=[],N;for(let b of se)if(b.startsWith("data:"))q.push(b.replace(/^data:\s*/,""));else if(b.startsWith("event:"))N=b.replace(/^event:\s*/,"");else if(b.startsWith("id:"))c=b.replace(/^id:\s*/,"");else if(b.startsWith("retry:")){let M=Number.parseInt(b.replace(/^retry:\s*/,""),10);Number.isNaN(M)||(u=M)}let E,H=!1;if(q.length){let b=q.join(`
|
|
6
|
+
`);try{E=JSON.parse(b),H=!0}catch (e3){E=b}}H&&(i&&await i(E),s&&(E=await s(E))),_optionalChain([t, 'optionalCall', _2 => _2({data:E,event:N,id:c,retry:u})]),q.length&&(yield E)}}}finally{w.removeEventListener("abort",$),A.releaseLock()}break}catch(g){if(_optionalChain([r, 'optionalCall', _3 => _3(g)]),o!==void 0&&f>=o)break;let C=Math.min(u*2**(f-1),_nullishCoalesce(n, () => (3e4)));await T(C)}}}()}}var ie=e=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},pe=e=>{switch(e){case"form":return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20";default:return","}},de=e=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},z=({allowReserved:e,explode:r,name:t,style:s,value:i})=>{if(!r){let n=(e?i:i.map(a=>encodeURIComponent(a))).join(pe(s));switch(s){case"label":return`.${n}`;case"matrix":return`;${t}=${n}`;case"simple":return n;default:return`${t}=${n}`}}let d=ie(s),o=i.map(n=>s==="label"||s==="simple"?e?n:encodeURIComponent(n):x({allowReserved:e,name:t,value:n})).join(d);return s==="label"||s==="matrix"?d+o:o},x=({allowReserved:e,name:r,value:t})=>{if(t==null)return"";if(typeof t=="object")throw new Error("Deeply-nested arrays/objects aren\u2019t supported. Provide your own `querySerializer()` to handle these.");return`${r}=${e?t:encodeURIComponent(t)}`},P=({allowReserved:e,explode:r,name:t,style:s,value:i,valueOnly:d})=>{if(i instanceof Date)return d?i.toISOString():`${t}=${i.toISOString()}`;if(s!=="deepObject"&&!r){let a=[];Object.entries(i).forEach(([l,c])=>{a=[...a,l,e?c:encodeURIComponent(c)]});let O=a.join(",");switch(s){case"form":return`${t}=${O}`;case"label":return`.${O}`;case"matrix":return`;${t}=${O}`;default:return O}}let o=de(s),n=Object.entries(i).map(([a,O])=>x({allowReserved:e,name:s==="deepObject"?`${t}[${a}]`:a,value:O})).join(o);return s==="label"||s==="matrix"?o+n:n};var ce=/\{[^{}]+\}/g,le=({path:e,url:r})=>{let t=r,s=r.match(ce);if(s)for(let i of s){let d=!1,o=i.substring(1,i.length-1),n="simple";o.endsWith("*")&&(d=!0,o=o.substring(0,o.length-1)),o.startsWith(".")?(o=o.substring(1),n="label"):o.startsWith(";")&&(o=o.substring(1),n="matrix");let a=e[o];if(a==null)continue;if(Array.isArray(a)){t=t.replace(i,z({explode:d,name:o,style:n,value:a}));continue}if(typeof a=="object"){t=t.replace(i,P({explode:d,name:o,style:n,value:a,valueOnly:!0}));continue}if(n==="matrix"){t=t.replace(i,`;${x({name:o,value:a})}`);continue}let O=encodeURIComponent(n==="label"?`.${a}`:a);t=t.replace(i,O)}return t},_=({baseUrl:e,path:r,query:t,querySerializer:s,url:i})=>{let d=i.startsWith("/")?i:`/${i}`,o=(_nullishCoalesce(e, () => ("")))+d;r&&(o=le({path:r,url:o}));let n=t?s(t):"";return n.startsWith("?")&&(n=n.substring(1)),n&&(o+=`?${n}`),o};function L(e){let r=e.body!==void 0;if(r&&e.bodySerializer)return"serializedBody"in e?e.serializedBody!==void 0&&e.serializedBody!==""?e.serializedBody:null:e.body!==""?e.body:null;if(r)return e.body}var G=async(e,r)=>{let t=typeof r=="function"?await r(e):r;if(t)return e.scheme==="bearer"?`Bearer ${t}`:e.scheme==="basic"?`Basic ${btoa(t)}`:t};var X=({parameters:e={},...r}={})=>s=>{let i=[];if(s&&typeof s=="object")for(let d in s){let o=s[d];if(o==null)continue;let n=e[d]||r;if(Array.isArray(o)){let a=z({allowReserved:n.allowReserved,explode:!0,name:d,style:"form",value:o,...n.array});a&&i.push(a)}else if(typeof o=="object"){let a=P({allowReserved:n.allowReserved,explode:!0,name:d,style:"deepObject",value:o,...n.object});a&&i.push(a)}else{let a=x({allowReserved:n.allowReserved,name:d,value:o});a&&i.push(a)}}return i.join("&")},Y=e=>{if(!e)return"stream";let r=_optionalChain([e, 'access', _4 => _4.split, 'call', _5 => _5(";"), 'access', _6 => _6[0], 'optionalAccess', _7 => _7.trim, 'call', _8 => _8()]);if(r){if(r.startsWith("application/json")||r.endsWith("+json"))return"json";if(r==="multipart/form-data")return"formData";if(["application/","audio/","image/","video/"].some(t=>r.startsWith(t)))return"blob";if(r.startsWith("text/"))return"text"}},ue=(e,r)=>r?!!(e.headers.has(r)||_optionalChain([e, 'access', _9 => _9.query, 'optionalAccess', _10 => _10[r]])||_optionalChain([e, 'access', _11 => _11.headers, 'access', _12 => _12.get, 'call', _13 => _13("Cookie"), 'optionalAccess', _14 => _14.includes, 'call', _15 => _15(`${r}=`)])):!1;async function Z(e){for(let r of _nullishCoalesce(e.security, () => ([]))){if(ue(e,r.name))continue;let t=await G(r,e.auth);if(!t)continue;let s=_nullishCoalesce(r.name, () => ("Authorization"));switch(r.in){case"query":e.query||(e.query={}),e.query[s]=t;break;case"cookie":e.headers.append("Cookie",`${s}=${t}`);break;case"header":default:e.headers.set(s,t);break}}}var B=e=>_({baseUrl:e.baseUrl,path:e.path,query:e.query,querySerializer:typeof e.querySerializer=="function"?e.querySerializer:X(e.querySerializer),url:e.url}),F=(e,r)=>{let t={...e,...r};return _optionalChain([t, 'access', _16 => _16.baseUrl, 'optionalAccess', _17 => _17.endsWith, 'call', _18 => _18("/")])&&(t.baseUrl=t.baseUrl.substring(0,t.baseUrl.length-1)),t.headers=v(e.headers,r.headers),t},ye=e=>{let r=[];return e.forEach((t,s)=>{r.push([s,t])}),r},v=(...e)=>{let r=new Headers;for(let t of e){if(!t)continue;let s=t instanceof Headers?ye(t):Object.entries(t);for(let[i,d]of s)if(d===null)r.delete(i);else if(Array.isArray(d))for(let o of d)r.append(i,o);else d!==void 0&&r.set(i,typeof d=="object"?JSON.stringify(d):d)}return r},k=class{constructor(){this.fns=[]}clear(){this.fns=[]}eject(r){let t=this.getInterceptorIndex(r);this.fns[t]&&(this.fns[t]=null)}exists(r){let t=this.getInterceptorIndex(r);return!!this.fns[t]}getInterceptorIndex(r){return typeof r=="number"?this.fns[r]?r:-1:this.fns.indexOf(r)}update(r,t){let s=this.getInterceptorIndex(r);return this.fns[s]?(this.fns[s]=t,r):!1}use(r){return this.fns.push(r),this.fns.length-1}},ee=()=>({error:new k,request:new k,response:new k}),fe=X({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),he={"Content-Type":"application/json"},S=(e={})=>({...I,headers:he,parseAs:"auto",querySerializer:fe,...e});var U=(e={})=>{let r=F(S(),e),t=()=>({...r}),s=l=>(r=F(r,l),t()),i=ee(),d=async l=>{let c={...r,...l,fetch:_nullishCoalesce(_nullishCoalesce(l.fetch, () => (r.fetch)), () => (globalThis.fetch)),headers:v(r.headers,l.headers),serializedBody:void 0};c.security&&await Z(c),c.requestValidator&&await c.requestValidator(c),c.body!==void 0&&c.bodySerializer&&(c.serializedBody=c.bodySerializer(c.body)),(c.body===void 0||c.serializedBody==="")&&c.headers.delete("Content-Type");let T=c,R=B(T);return{opts:T,url:R}},o=async l=>{let c=_nullishCoalesce(l.throwOnError, () => (r.throwOnError)),T=_nullishCoalesce(l.responseStyle, () => (r.responseStyle)),R,y;try{let{opts:u,url:f}=await d(l),w={redirect:"follow",...u,body:L(u)};R=new Request(f,w);for(let h of i.request.fns)h&&(R=await h(R,u));let D=u.fetch;y=await D(R);for(let h of i.response.fns)h&&(y=await h(y,R,u));let g={request:R,response:y};if(y.ok){let h=_nullishCoalesce((u.parseAs==="auto"?Y(y.headers.get("Content-Type")):u.parseAs), () => ("json"));if(y.status===204||y.headers.get("Content-Length")==="0"){let m;switch(h){case"arrayBuffer":case"blob":case"text":m=await y[h]();break;case"formData":m=new FormData;break;case"stream":m=y.body;break;case"json":default:m={};break}return u.responseStyle==="data"?m:{data:m,...g}}let A;switch(h){case"arrayBuffer":case"blob":case"formData":case"text":A=await y[h]();break;case"json":{let m=await y.text();A=m?JSON.parse(m):{};break}case"stream":return u.responseStyle==="data"?y.body:{data:y.body,...g}}return h==="json"&&(u.responseValidator&&await u.responseValidator(A),u.responseTransformer&&(A=await u.responseTransformer(A))),u.responseStyle==="data"?A:{data:A,...g}}let C=await y.text(),j;try{j=JSON.parse(C)}catch (e4){}throw _nullishCoalesce(j, () => (C))}catch(u){let f=u;for(let w of i.error.fns)w&&(f=await w(f,y,R,l));if(f=f||{},c)throw f;return T==="data"?void 0:{error:f,request:R,response:y}}},n=l=>c=>o({...c,method:l}),a=l=>async c=>{let{opts:T,url:R}=await d(c);return Q({...T,body:T.body,method:l,onRequest:async(y,u)=>{let f=new Request(y,u);for(let w of i.request.fns)w&&(f=await w(f,T));return f},serializedBody:L(T),url:R})};return{buildUrl:l=>B({...r,...l}),connect:n("CONNECT"),delete:n("DELETE"),get:n("GET"),getConfig:t,head:n("HEAD"),interceptors:i,options:n("OPTIONS"),patch:n("PATCH"),post:n("POST"),put:n("PUT"),request:o,setConfig:s,sse:{connect:a("CONNECT"),delete:a("DELETE"),get:a("GET"),head:a("HEAD"),options:a("OPTIONS"),patch:a("PATCH"),post:a("POST"),put:a("PUT"),trace:a("TRACE")},trace:n("TRACE")}};var p=U(S({baseUrl:"https://alchemy.services.rehive.com/api/"}));var me=e=>(_nullishCoalesce(e.client, () => (p))).post({url:"/activate/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Re=e=>(_nullishCoalesce(_optionalChain([e, 'optionalAccess', _19 => _19.client]), () => (p))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/addresses/",...e}),Oe=e=>(_nullishCoalesce(e.client, () => (p))).post({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/addresses/",...e,headers:{"Content-Type":"application/json",...e.headers}}),we=e=>(_nullishCoalesce(e.client, () => (p))).delete({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/addresses/{identifier}/",...e}),Te=e=>(_nullishCoalesce(e.client, () => (p))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/addresses/{identifier}/",...e}),Ae=e=>(_nullishCoalesce(_optionalChain([e, 'optionalAccess', _20 => _20.client]), () => (p))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/company/",...e}),be=e=>(_nullishCoalesce(_optionalChain([e, 'optionalAccess', _21 => _21.client]), () => (p))).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/company/",...e,headers:{"Content-Type":"application/json",..._optionalChain([e, 'optionalAccess', _22 => _22.headers])}}),ge=e=>(_nullishCoalesce(_optionalChain([e, 'optionalAccess', _23 => _23.client]), () => (p))).put({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/company/",...e,headers:{"Content-Type":"application/json",..._optionalChain([e, 'optionalAccess', _24 => _24.headers])}}),Ce=e=>(_nullishCoalesce(e.client, () => (p))).post({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/deposit-addresses/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ee=e=>(_nullishCoalesce(_optionalChain([e, 'optionalAccess', _25 => _25.client]), () => (p))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/deposit-factories/",...e}),xe=e=>(_nullishCoalesce(e.client, () => (p))).post({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/deposit-factories/",...e,headers:{"Content-Type":"application/json",...e.headers}}),ke=e=>(_nullishCoalesce(e.client, () => (p))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/deposit-factories/{identifier}/",...e}),Se=e=>(_nullishCoalesce(_optionalChain([e, 'optionalAccess', _26 => _26.client]), () => (p))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/onchain-transactions/",...e}),Ue=e=>(_nullishCoalesce(e.client, () => (p))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/onchain-transactions/{identifier}/",...e}),De=e=>(_nullishCoalesce(e.client, () => (p))).post({url:"/alchemy_webhook/",...e,headers:{"Content-Type":"application/json",...e.headers}}),qe=e=>(_nullishCoalesce(e.client, () => (p))).post({url:"/deactivate/",...e,headers:{"Content-Type":"application/json",...e.headers}}),ze=e=>(_nullishCoalesce(_optionalChain([e, 'optionalAccess', _27 => _27.client]), () => (p))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/user/",...e}),Pe=e=>(_nullishCoalesce(_optionalChain([e, 'optionalAccess', _28 => _28.client]), () => (p))).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/user/",...e,headers:{"Content-Type":"application/json",..._optionalChain([e, 'optionalAccess', _29 => _29.headers])}}),ve=e=>(_nullishCoalesce(_optionalChain([e, 'optionalAccess', _30 => _30.client]), () => (p))).put({security:[{name:"Authorization",type:"apiKey"}],url:"/user/",...e,headers:{"Content-Type":"application/json",..._optionalChain([e, 'optionalAccess', _31 => _31.headers])}}),je=e=>(_nullishCoalesce(e.client, () => (p))).post({security:[{name:"Authorization",type:"apiKey"}],url:"/user/account-address-lookup/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ie=e=>(_nullishCoalesce(_optionalChain([e, 'optionalAccess', _32 => _32.client]), () => (p))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/user/addresses/",...e}),Le=e=>(_nullishCoalesce(_optionalChain([e, 'optionalAccess', _33 => _33.client]), () => (p))).post({security:[{name:"Authorization",type:"apiKey"}],url:"/user/addresses/",...e,headers:{"Content-Type":"application/json",..._optionalChain([e, 'optionalAccess', _34 => _34.headers])}}),Be=e=>(_nullishCoalesce(e.client, () => (p))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/user/addresses/{identifier}/",...e}),Fe=e=>(_nullishCoalesce(e.client, () => (p))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/user/collections/{identifier}/",...e}),Ke=e=>(_nullishCoalesce(e.client, () => (p))).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/user/collections/{identifier}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),$e=e=>(_nullishCoalesce(e.client, () => (p))).put({security:[{name:"Authorization",type:"apiKey"}],url:"/user/collections/{identifier}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),We=e=>(_nullishCoalesce(_optionalChain([e, 'optionalAccess', _35 => _35.client]), () => (p))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/user/onchain-transactions/",...e}),Ne=e=>(_nullishCoalesce(e.client, () => (p))).get({security:[{name:"Authorization",type:"apiKey"}],url:"/user/onchain-transactions/{identifier}/",...e}),He=e=>(_nullishCoalesce(e.client, () => (p))).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/user/onchain-transactions/{identifier}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Me=e=>(_nullishCoalesce(e.client, () => (p))).put({security:[{name:"Authorization",type:"apiKey"}],url:"/user/onchain-transactions/{identifier}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ve=e=>(_nullishCoalesce(e.client, () => (p))).post({security:[{name:"Authorization",type:"apiKey"}],url:"/user/onchain-transactions/{identifier}/cancel/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Je=e=>(_nullishCoalesce(e.client, () => (p))).post({url:"/webhook/",...e,headers:{"Content-Type":"application/json",...e.headers}});function Qe(e){let r=U(_chunkGR5TETAUjs.c.call(void 0, e,"https://alchemy.services.rehive.com/api/"));return _chunkGR5TETAUjs.a.call(void 0, K,r)}exports.createAlchemyApi = Qe;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import{a as V,c as J}from"../chunk-S5UXBHRU.mjs";import{a as oe}from"../chunk-S4QKN5WW.mjs";var K={};oe(K,{activateCreate:()=>me,adminAddressesCreate:()=>Oe,adminAddressesDestroy:()=>we,adminAddressesList:()=>Re,adminAddressesRetrieve:()=>Te,adminCompanyPartialUpdate:()=>be,adminCompanyRetrieve:()=>Ae,adminCompanyUpdate:()=>ge,adminDepositAddressesCreate:()=>Ce,adminDepositFactoriesCreate:()=>xe,adminDepositFactoriesList:()=>Ee,adminDepositFactoriesRetrieve:()=>ke,adminOnchainTransactionsList:()=>Se,adminOnchainTransactionsRetrieve:()=>
|
|
1
|
+
import{a as V,c as J}from"../chunk-S5UXBHRU.mjs";import{a as oe}from"../chunk-S4QKN5WW.mjs";var K={};oe(K,{activateCreate:()=>me,adminAddressesCreate:()=>Oe,adminAddressesDestroy:()=>we,adminAddressesList:()=>Re,adminAddressesRetrieve:()=>Te,adminCompanyPartialUpdate:()=>be,adminCompanyRetrieve:()=>Ae,adminCompanyUpdate:()=>ge,adminDepositAddressesCreate:()=>Ce,adminDepositFactoriesCreate:()=>xe,adminDepositFactoriesList:()=>Ee,adminDepositFactoriesRetrieve:()=>ke,adminOnchainTransactionsList:()=>Se,adminOnchainTransactionsRetrieve:()=>Ue,alchemyWebhookCreate:()=>De,deactivateCreate:()=>qe,userAccountAddressLookupCreate:()=>je,userAddressesCreate:()=>Le,userAddressesList:()=>Ie,userAddressesRetrieve:()=>Be,userCollectionsPartialUpdate:()=>Ke,userCollectionsRetrieve:()=>Fe,userCollectionsUpdate:()=>$e,userOnchainTransactionsCancelCreate:()=>Ve,userOnchainTransactionsList:()=>We,userOnchainTransactionsPartialUpdate:()=>He,userOnchainTransactionsRetrieve:()=>Ne,userOnchainTransactionsUpdate:()=>Me,userPartialUpdate:()=>Pe,userRetrieve:()=>ze,userUpdate:()=>ve,webhookCreate:()=>Je});var I={bodySerializer:e=>JSON.stringify(e,(r,t)=>typeof t=="bigint"?t.toString():t)};var ae={$body_:"body",$headers_:"headers",$path_:"path",$query_:"query"},Ge=Object.entries(ae);function Q({onRequest:e,onSseError:r,onSseEvent:t,responseTransformer:s,responseValidator:i,sseDefaultRetryDelay:d,sseMaxRetryAttempts:o,sseMaxRetryDelay:n,sseSleepFn:a,url:O,...l}){let c,T=a??(u=>new Promise(f=>setTimeout(f,u)));return{stream:async function*(){let u=d??3e3,f=0,w=l.signal??new AbortController().signal;for(;!w.aborted;){f++;let D=l.headers instanceof Headers?l.headers:new Headers(l.headers);c!==void 0&&D.set("Last-Event-ID",c);try{let g={redirect:"follow",...l,body:l.serializedBody,headers:D,signal:w},C=new Request(O,g);e&&(C=await e(O,g));let h=await(l.fetch??globalThis.fetch)(C);if(!h.ok)throw new Error(`SSE failed: ${h.status} ${h.statusText}`);if(!h.body)throw new Error("No body in SSE response");let A=h.body.pipeThrough(new TextDecoderStream).getReader(),m="",$=()=>{try{A.cancel()}catch{}};w.addEventListener("abort",$);try{for(;;){let{done:re,value:te}=await A.read();if(re)break;m+=te,m=m.replace(/\r\n?/g,`
|
|
2
2
|
`);let W=m.split(`
|
|
3
3
|
|
|
4
4
|
`);m=W.pop()??"";for(let ne of W){let se=ne.split(`
|
|
5
|
-
`),q=[],N;for(let b of se)if(b.startsWith("data:"))q.push(b.replace(/^data:\s*/,""));else if(b.startsWith("event:"))N=b.replace(/^event:\s*/,"");else if(b.startsWith("id:"))
|
|
6
|
-
`);try{E=JSON.parse(b),H=!0}catch{E=b}}H&&(i&&await i(E),s&&(E=await s(E))),t?.({data:E,event:N,id:p,retry:u}),q.length&&(yield E)}}}finally{w.removeEventListener("abort",$),A.releaseLock()}break}catch(g){if(r?.(g),o!==void 0&&y>=o)break;let C=Math.min(u*2**(y-1),n??3e4);await T(C)}}}()}}var ie=e=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},ce=e=>{switch(e){case"form":return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20";default:return","}},de=e=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},z=({allowReserved:e,explode:r,name:t,style:s,value:i})=>{if(!r){let n=(e?i:i.map(a=>encodeURIComponent(a))).join(ce(s));switch(s){case"label":return`.${n}`;case"matrix":return`;${t}=${n}`;case"simple":return n;default:return`${t}=${n}`}}let d=ie(s),o=i.map(n=>s==="label"||s==="simple"?e?n:encodeURIComponent(n):x({allowReserved:e,name:t,value:n})).join(d);return s==="label"||s==="matrix"?d+o:o},x=({allowReserved:e,name:r,value:t})=>{if(t==null)return"";if(typeof t=="object")throw new Error("Deeply-nested arrays/objects aren\u2019t supported. Provide your own `querySerializer()` to handle these.");return`${r}=${e?t:encodeURIComponent(t)}`},P=({allowReserved:e,explode:r,name:t,style:s,value:i,valueOnly:d})=>{if(i instanceof Date)return d?i.toISOString():`${t}=${i.toISOString()}`;if(s!=="deepObject"&&!r){let a=[];Object.entries(i).forEach(([l,p])=>{a=[...a,l,e?p:encodeURIComponent(p)]});let O=a.join(",");switch(s){case"form":return`${t}=${O}`;case"label":return`.${O}`;case"matrix":return`;${t}=${O}`;default:return O}}let o=de(s),n=Object.entries(i).map(([a,O])=>x({allowReserved:e,name:s==="deepObject"?`${t}[${a}]`:a,value:O})).join(o);return s==="label"||s==="matrix"?o+n:n};var pe=/\{[^{}]+\}/g,le=({path:e,url:r})=>{let t=r,s=r.match(pe);if(s)for(let i of s){let d=!1,o=i.substring(1,i.length-1),n="simple";o.endsWith("*")&&(d=!0,o=o.substring(0,o.length-1)),o.startsWith(".")?(o=o.substring(1),n="label"):o.startsWith(";")&&(o=o.substring(1),n="matrix");let a=e[o];if(a==null)continue;if(Array.isArray(a)){t=t.replace(i,z({explode:d,name:o,style:n,value:a}));continue}if(typeof a=="object"){t=t.replace(i,P({explode:d,name:o,style:n,value:a,valueOnly:!0}));continue}if(n==="matrix"){t=t.replace(i,`;${x({name:o,value:a})}`);continue}let O=encodeURIComponent(n==="label"?`.${a}`:a);t=t.replace(i,O)}return t},_=({baseUrl:e,path:r,query:t,querySerializer:s,url:i})=>{let d=i.startsWith("/")?i:`/${i}`,o=(e??"")+d;r&&(o=le({path:r,url:o}));let n=t?s(t):"";return n.startsWith("?")&&(n=n.substring(1)),n&&(o+=`?${n}`),o};function L(e){let r=e.body!==void 0;if(r&&e.bodySerializer)return"serializedBody"in e?e.serializedBody!==void 0&&e.serializedBody!==""?e.serializedBody:null:e.body!==""?e.body:null;if(r)return e.body}var G=async(e,r)=>{let t=typeof r=="function"?await r(e):r;if(t)return e.scheme==="bearer"?`Bearer ${t}`:e.scheme==="basic"?`Basic ${btoa(t)}`:t};var X=({parameters:e={},...r}={})=>s=>{let i=[];if(s&&typeof s=="object")for(let d in s){let o=s[d];if(o==null)continue;let n=e[d]||r;if(Array.isArray(o)){let a=z({allowReserved:n.allowReserved,explode:!0,name:d,style:"form",value:o,...n.array});a&&i.push(a)}else if(typeof o=="object"){let a=P({allowReserved:n.allowReserved,explode:!0,name:d,style:"deepObject",value:o,...n.object});a&&i.push(a)}else{let a=x({allowReserved:n.allowReserved,name:d,value:o});a&&i.push(a)}}return i.join("&")},Y=e=>{if(!e)return"stream";let r=e.split(";")[0]?.trim();if(r){if(r.startsWith("application/json")||r.endsWith("+json"))return"json";if(r==="multipart/form-data")return"formData";if(["application/","audio/","image/","video/"].some(t=>r.startsWith(t)))return"blob";if(r.startsWith("text/"))return"text"}},ue=(e,r)=>r?!!(e.headers.has(r)||e.query?.[r]||e.headers.get("Cookie")?.includes(`${r}=`)):!1;async function Z(e){for(let r of e.security??[]){if(ue(e,r.name))continue;let t=await G(r,e.auth);if(!t)continue;let s=r.name??"Authorization";switch(r.in){case"query":e.query||(e.query={}),e.query[s]=t;break;case"cookie":e.headers.append("Cookie",`${s}=${t}`);break;case"header":default:e.headers.set(s,t);break}}}var B=e=>_({baseUrl:e.baseUrl,path:e.path,query:e.query,querySerializer:typeof e.querySerializer=="function"?e.querySerializer:X(e.querySerializer),url:e.url}),F=(e,r)=>{let t={...e,...r};return t.baseUrl?.endsWith("/")&&(t.baseUrl=t.baseUrl.substring(0,t.baseUrl.length-1)),t.headers=j(e.headers,r.headers),t},fe=e=>{let r=[];return e.forEach((t,s)=>{r.push([s,t])}),r},j=(...e)=>{let r=new Headers;for(let t of e){if(!t)continue;let s=t instanceof Headers?fe(t):Object.entries(t);for(let[i,d]of s)if(d===null)r.delete(i);else if(Array.isArray(d))for(let o of d)r.append(i,o);else d!==void 0&&r.set(i,typeof d=="object"?JSON.stringify(d):d)}return r},k=class{constructor(){this.fns=[]}clear(){this.fns=[]}eject(r){let t=this.getInterceptorIndex(r);this.fns[t]&&(this.fns[t]=null)}exists(r){let t=this.getInterceptorIndex(r);return!!this.fns[t]}getInterceptorIndex(r){return typeof r=="number"?this.fns[r]?r:-1:this.fns.indexOf(r)}update(r,t){let s=this.getInterceptorIndex(r);return this.fns[s]?(this.fns[s]=t,r):!1}use(r){return this.fns.push(r),this.fns.length-1}},ee=()=>({error:new k,request:new k,response:new k}),ye=X({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),he={"Content-Type":"application/json"},S=(e={})=>({...I,headers:he,parseAs:"auto",querySerializer:ye,...e});var D=(e={})=>{let r=F(S(),e),t=()=>({...r}),s=l=>(r=F(r,l),t()),i=ee(),d=async l=>{let p={...r,...l,fetch:l.fetch??r.fetch??globalThis.fetch,headers:j(r.headers,l.headers),serializedBody:void 0};p.security&&await Z(p),p.requestValidator&&await p.requestValidator(p),p.body!==void 0&&p.bodySerializer&&(p.serializedBody=p.bodySerializer(p.body)),(p.body===void 0||p.serializedBody==="")&&p.headers.delete("Content-Type");let T=p,R=B(T);return{opts:T,url:R}},o=async l=>{let p=l.throwOnError??r.throwOnError,T=l.responseStyle??r.responseStyle,R,f;try{let{opts:u,url:y}=await d(l),w={redirect:"follow",...u,body:L(u)};R=new Request(y,w);for(let h of i.request.fns)h&&(R=await h(R,u));let U=u.fetch;f=await U(R);for(let h of i.response.fns)h&&(f=await h(f,R,u));let g={request:R,response:f};if(f.ok){let h=(u.parseAs==="auto"?Y(f.headers.get("Content-Type")):u.parseAs)??"json";if(f.status===204||f.headers.get("Content-Length")==="0"){let m;switch(h){case"arrayBuffer":case"blob":case"text":m=await f[h]();break;case"formData":m=new FormData;break;case"stream":m=f.body;break;case"json":default:m={};break}return u.responseStyle==="data"?m:{data:m,...g}}let A;switch(h){case"arrayBuffer":case"blob":case"formData":case"text":A=await f[h]();break;case"json":{let m=await f.text();A=m?JSON.parse(m):{};break}case"stream":return u.responseStyle==="data"?f.body:{data:f.body,...g}}return h==="json"&&(u.responseValidator&&await u.responseValidator(A),u.responseTransformer&&(A=await u.responseTransformer(A))),u.responseStyle==="data"?A:{data:A,...g}}let C=await f.text(),v;try{v=JSON.parse(C)}catch{}throw v??C}catch(u){let y=u;for(let w of i.error.fns)w&&(y=await w(y,f,R,l));if(y=y||{},p)throw y;return T==="data"?void 0:{error:y,request:R,response:f}}},n=l=>p=>o({...p,method:l}),a=l=>async p=>{let{opts:T,url:R}=await d(p);return Q({...T,body:T.body,method:l,onRequest:async(f,u)=>{let y=new Request(f,u);for(let w of i.request.fns)w&&(y=await w(y,T));return y},serializedBody:L(T),url:R})};return{buildUrl:l=>B({...r,...l}),connect:n("CONNECT"),delete:n("DELETE"),get:n("GET"),getConfig:t,head:n("HEAD"),interceptors:i,options:n("OPTIONS"),patch:n("PATCH"),post:n("POST"),put:n("PUT"),request:o,setConfig:s,sse:{connect:a("CONNECT"),delete:a("DELETE"),get:a("GET"),head:a("HEAD"),options:a("OPTIONS"),patch:a("PATCH"),post:a("POST"),put:a("PUT"),trace:a("TRACE")},trace:n("TRACE")}};var c=D(S({baseUrl:"https://alchemy.services.rehive.com/api/"}));var me=e=>(e.client??c).post({url:"/activate/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Re=e=>(e?.client??c).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/addresses/",...e}),Oe=e=>(e.client??c).post({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/addresses/",...e,headers:{"Content-Type":"application/json",...e.headers}}),we=e=>(e.client??c).delete({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/addresses/{identifier}/",...e}),Te=e=>(e.client??c).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/addresses/{identifier}/",...e}),Ae=e=>(e?.client??c).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/company/",...e}),be=e=>(e?.client??c).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/company/",...e,headers:{"Content-Type":"application/json",...e?.headers}}),ge=e=>(e?.client??c).put({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/company/",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Ce=e=>(e.client??c).post({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/deposit-addresses/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ee=e=>(e?.client??c).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/deposit-factories/",...e}),xe=e=>(e.client??c).post({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/deposit-factories/",...e,headers:{"Content-Type":"application/json",...e.headers}}),ke=e=>(e.client??c).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/deposit-factories/{identifier}/",...e}),Se=e=>(e?.client??c).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/onchain-transactions/",...e}),De=e=>(e.client??c).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/onchain-transactions/{identifier}/",...e}),Ue=e=>(e.client??c).post({url:"/alchemy_webhook/",...e,headers:{"Content-Type":"application/json",...e.headers}}),qe=e=>(e.client??c).post({url:"/deactivate/",...e,headers:{"Content-Type":"application/json",...e.headers}}),ze=e=>(e.client??c).post({security:[{name:"Authorization",type:"apiKey"}],url:"/user/account-address-lookup/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Pe=e=>(e?.client??c).get({security:[{name:"Authorization",type:"apiKey"}],url:"/user/addresses/",...e}),je=e=>(e?.client??c).post({security:[{name:"Authorization",type:"apiKey"}],url:"/user/addresses/",...e,headers:{"Content-Type":"application/json",...e?.headers}}),ve=e=>(e.client??c).get({security:[{name:"Authorization",type:"apiKey"}],url:"/user/addresses/{identifier}/",...e}),Ie=e=>(e.client??c).get({security:[{name:"Authorization",type:"apiKey"}],url:"/user/collections/{identifier}/",...e}),Le=e=>(e.client??c).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/user/collections/{identifier}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Be=e=>(e.client??c).put({security:[{name:"Authorization",type:"apiKey"}],url:"/user/collections/{identifier}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Fe=e=>(e?.client??c).get({security:[{name:"Authorization",type:"apiKey"}],url:"/user/onchain-transactions/",...e}),Ke=e=>(e.client??c).get({security:[{name:"Authorization",type:"apiKey"}],url:"/user/onchain-transactions/{identifier}/",...e}),$e=e=>(e.client??c).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/user/onchain-transactions/{identifier}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),We=e=>(e.client??c).put({security:[{name:"Authorization",type:"apiKey"}],url:"/user/onchain-transactions/{identifier}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ne=e=>(e.client??c).post({security:[{name:"Authorization",type:"apiKey"}],url:"/user/onchain-transactions/{identifier}/cancel/",...e,headers:{"Content-Type":"application/json",...e.headers}}),He=e=>(e.client??c).post({url:"/webhook/",...e,headers:{"Content-Type":"application/json",...e.headers}});function Me(e){let r=D(J(e,"https://alchemy.services.rehive.com/api/"));return V(K,r)}export{Me as createAlchemyApi};
|
|
5
|
+
`),q=[],N;for(let b of se)if(b.startsWith("data:"))q.push(b.replace(/^data:\s*/,""));else if(b.startsWith("event:"))N=b.replace(/^event:\s*/,"");else if(b.startsWith("id:"))c=b.replace(/^id:\s*/,"");else if(b.startsWith("retry:")){let M=Number.parseInt(b.replace(/^retry:\s*/,""),10);Number.isNaN(M)||(u=M)}let E,H=!1;if(q.length){let b=q.join(`
|
|
6
|
+
`);try{E=JSON.parse(b),H=!0}catch{E=b}}H&&(i&&await i(E),s&&(E=await s(E))),t?.({data:E,event:N,id:c,retry:u}),q.length&&(yield E)}}}finally{w.removeEventListener("abort",$),A.releaseLock()}break}catch(g){if(r?.(g),o!==void 0&&f>=o)break;let C=Math.min(u*2**(f-1),n??3e4);await T(C)}}}()}}var ie=e=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},pe=e=>{switch(e){case"form":return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20";default:return","}},de=e=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},z=({allowReserved:e,explode:r,name:t,style:s,value:i})=>{if(!r){let n=(e?i:i.map(a=>encodeURIComponent(a))).join(pe(s));switch(s){case"label":return`.${n}`;case"matrix":return`;${t}=${n}`;case"simple":return n;default:return`${t}=${n}`}}let d=ie(s),o=i.map(n=>s==="label"||s==="simple"?e?n:encodeURIComponent(n):x({allowReserved:e,name:t,value:n})).join(d);return s==="label"||s==="matrix"?d+o:o},x=({allowReserved:e,name:r,value:t})=>{if(t==null)return"";if(typeof t=="object")throw new Error("Deeply-nested arrays/objects aren\u2019t supported. Provide your own `querySerializer()` to handle these.");return`${r}=${e?t:encodeURIComponent(t)}`},P=({allowReserved:e,explode:r,name:t,style:s,value:i,valueOnly:d})=>{if(i instanceof Date)return d?i.toISOString():`${t}=${i.toISOString()}`;if(s!=="deepObject"&&!r){let a=[];Object.entries(i).forEach(([l,c])=>{a=[...a,l,e?c:encodeURIComponent(c)]});let O=a.join(",");switch(s){case"form":return`${t}=${O}`;case"label":return`.${O}`;case"matrix":return`;${t}=${O}`;default:return O}}let o=de(s),n=Object.entries(i).map(([a,O])=>x({allowReserved:e,name:s==="deepObject"?`${t}[${a}]`:a,value:O})).join(o);return s==="label"||s==="matrix"?o+n:n};var ce=/\{[^{}]+\}/g,le=({path:e,url:r})=>{let t=r,s=r.match(ce);if(s)for(let i of s){let d=!1,o=i.substring(1,i.length-1),n="simple";o.endsWith("*")&&(d=!0,o=o.substring(0,o.length-1)),o.startsWith(".")?(o=o.substring(1),n="label"):o.startsWith(";")&&(o=o.substring(1),n="matrix");let a=e[o];if(a==null)continue;if(Array.isArray(a)){t=t.replace(i,z({explode:d,name:o,style:n,value:a}));continue}if(typeof a=="object"){t=t.replace(i,P({explode:d,name:o,style:n,value:a,valueOnly:!0}));continue}if(n==="matrix"){t=t.replace(i,`;${x({name:o,value:a})}`);continue}let O=encodeURIComponent(n==="label"?`.${a}`:a);t=t.replace(i,O)}return t},_=({baseUrl:e,path:r,query:t,querySerializer:s,url:i})=>{let d=i.startsWith("/")?i:`/${i}`,o=(e??"")+d;r&&(o=le({path:r,url:o}));let n=t?s(t):"";return n.startsWith("?")&&(n=n.substring(1)),n&&(o+=`?${n}`),o};function L(e){let r=e.body!==void 0;if(r&&e.bodySerializer)return"serializedBody"in e?e.serializedBody!==void 0&&e.serializedBody!==""?e.serializedBody:null:e.body!==""?e.body:null;if(r)return e.body}var G=async(e,r)=>{let t=typeof r=="function"?await r(e):r;if(t)return e.scheme==="bearer"?`Bearer ${t}`:e.scheme==="basic"?`Basic ${btoa(t)}`:t};var X=({parameters:e={},...r}={})=>s=>{let i=[];if(s&&typeof s=="object")for(let d in s){let o=s[d];if(o==null)continue;let n=e[d]||r;if(Array.isArray(o)){let a=z({allowReserved:n.allowReserved,explode:!0,name:d,style:"form",value:o,...n.array});a&&i.push(a)}else if(typeof o=="object"){let a=P({allowReserved:n.allowReserved,explode:!0,name:d,style:"deepObject",value:o,...n.object});a&&i.push(a)}else{let a=x({allowReserved:n.allowReserved,name:d,value:o});a&&i.push(a)}}return i.join("&")},Y=e=>{if(!e)return"stream";let r=e.split(";")[0]?.trim();if(r){if(r.startsWith("application/json")||r.endsWith("+json"))return"json";if(r==="multipart/form-data")return"formData";if(["application/","audio/","image/","video/"].some(t=>r.startsWith(t)))return"blob";if(r.startsWith("text/"))return"text"}},ue=(e,r)=>r?!!(e.headers.has(r)||e.query?.[r]||e.headers.get("Cookie")?.includes(`${r}=`)):!1;async function Z(e){for(let r of e.security??[]){if(ue(e,r.name))continue;let t=await G(r,e.auth);if(!t)continue;let s=r.name??"Authorization";switch(r.in){case"query":e.query||(e.query={}),e.query[s]=t;break;case"cookie":e.headers.append("Cookie",`${s}=${t}`);break;case"header":default:e.headers.set(s,t);break}}}var B=e=>_({baseUrl:e.baseUrl,path:e.path,query:e.query,querySerializer:typeof e.querySerializer=="function"?e.querySerializer:X(e.querySerializer),url:e.url}),F=(e,r)=>{let t={...e,...r};return t.baseUrl?.endsWith("/")&&(t.baseUrl=t.baseUrl.substring(0,t.baseUrl.length-1)),t.headers=v(e.headers,r.headers),t},ye=e=>{let r=[];return e.forEach((t,s)=>{r.push([s,t])}),r},v=(...e)=>{let r=new Headers;for(let t of e){if(!t)continue;let s=t instanceof Headers?ye(t):Object.entries(t);for(let[i,d]of s)if(d===null)r.delete(i);else if(Array.isArray(d))for(let o of d)r.append(i,o);else d!==void 0&&r.set(i,typeof d=="object"?JSON.stringify(d):d)}return r},k=class{constructor(){this.fns=[]}clear(){this.fns=[]}eject(r){let t=this.getInterceptorIndex(r);this.fns[t]&&(this.fns[t]=null)}exists(r){let t=this.getInterceptorIndex(r);return!!this.fns[t]}getInterceptorIndex(r){return typeof r=="number"?this.fns[r]?r:-1:this.fns.indexOf(r)}update(r,t){let s=this.getInterceptorIndex(r);return this.fns[s]?(this.fns[s]=t,r):!1}use(r){return this.fns.push(r),this.fns.length-1}},ee=()=>({error:new k,request:new k,response:new k}),fe=X({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),he={"Content-Type":"application/json"},S=(e={})=>({...I,headers:he,parseAs:"auto",querySerializer:fe,...e});var U=(e={})=>{let r=F(S(),e),t=()=>({...r}),s=l=>(r=F(r,l),t()),i=ee(),d=async l=>{let c={...r,...l,fetch:l.fetch??r.fetch??globalThis.fetch,headers:v(r.headers,l.headers),serializedBody:void 0};c.security&&await Z(c),c.requestValidator&&await c.requestValidator(c),c.body!==void 0&&c.bodySerializer&&(c.serializedBody=c.bodySerializer(c.body)),(c.body===void 0||c.serializedBody==="")&&c.headers.delete("Content-Type");let T=c,R=B(T);return{opts:T,url:R}},o=async l=>{let c=l.throwOnError??r.throwOnError,T=l.responseStyle??r.responseStyle,R,y;try{let{opts:u,url:f}=await d(l),w={redirect:"follow",...u,body:L(u)};R=new Request(f,w);for(let h of i.request.fns)h&&(R=await h(R,u));let D=u.fetch;y=await D(R);for(let h of i.response.fns)h&&(y=await h(y,R,u));let g={request:R,response:y};if(y.ok){let h=(u.parseAs==="auto"?Y(y.headers.get("Content-Type")):u.parseAs)??"json";if(y.status===204||y.headers.get("Content-Length")==="0"){let m;switch(h){case"arrayBuffer":case"blob":case"text":m=await y[h]();break;case"formData":m=new FormData;break;case"stream":m=y.body;break;case"json":default:m={};break}return u.responseStyle==="data"?m:{data:m,...g}}let A;switch(h){case"arrayBuffer":case"blob":case"formData":case"text":A=await y[h]();break;case"json":{let m=await y.text();A=m?JSON.parse(m):{};break}case"stream":return u.responseStyle==="data"?y.body:{data:y.body,...g}}return h==="json"&&(u.responseValidator&&await u.responseValidator(A),u.responseTransformer&&(A=await u.responseTransformer(A))),u.responseStyle==="data"?A:{data:A,...g}}let C=await y.text(),j;try{j=JSON.parse(C)}catch{}throw j??C}catch(u){let f=u;for(let w of i.error.fns)w&&(f=await w(f,y,R,l));if(f=f||{},c)throw f;return T==="data"?void 0:{error:f,request:R,response:y}}},n=l=>c=>o({...c,method:l}),a=l=>async c=>{let{opts:T,url:R}=await d(c);return Q({...T,body:T.body,method:l,onRequest:async(y,u)=>{let f=new Request(y,u);for(let w of i.request.fns)w&&(f=await w(f,T));return f},serializedBody:L(T),url:R})};return{buildUrl:l=>B({...r,...l}),connect:n("CONNECT"),delete:n("DELETE"),get:n("GET"),getConfig:t,head:n("HEAD"),interceptors:i,options:n("OPTIONS"),patch:n("PATCH"),post:n("POST"),put:n("PUT"),request:o,setConfig:s,sse:{connect:a("CONNECT"),delete:a("DELETE"),get:a("GET"),head:a("HEAD"),options:a("OPTIONS"),patch:a("PATCH"),post:a("POST"),put:a("PUT"),trace:a("TRACE")},trace:n("TRACE")}};var p=U(S({baseUrl:"https://alchemy.services.rehive.com/api/"}));var me=e=>(e.client??p).post({url:"/activate/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Re=e=>(e?.client??p).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/addresses/",...e}),Oe=e=>(e.client??p).post({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/addresses/",...e,headers:{"Content-Type":"application/json",...e.headers}}),we=e=>(e.client??p).delete({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/addresses/{identifier}/",...e}),Te=e=>(e.client??p).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/addresses/{identifier}/",...e}),Ae=e=>(e?.client??p).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/company/",...e}),be=e=>(e?.client??p).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/company/",...e,headers:{"Content-Type":"application/json",...e?.headers}}),ge=e=>(e?.client??p).put({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/company/",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Ce=e=>(e.client??p).post({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/deposit-addresses/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ee=e=>(e?.client??p).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/deposit-factories/",...e}),xe=e=>(e.client??p).post({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/deposit-factories/",...e,headers:{"Content-Type":"application/json",...e.headers}}),ke=e=>(e.client??p).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/deposit-factories/{identifier}/",...e}),Se=e=>(e?.client??p).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/onchain-transactions/",...e}),Ue=e=>(e.client??p).get({security:[{name:"Authorization",type:"apiKey"}],url:"/admin/onchain-transactions/{identifier}/",...e}),De=e=>(e.client??p).post({url:"/alchemy_webhook/",...e,headers:{"Content-Type":"application/json",...e.headers}}),qe=e=>(e.client??p).post({url:"/deactivate/",...e,headers:{"Content-Type":"application/json",...e.headers}}),ze=e=>(e?.client??p).get({security:[{name:"Authorization",type:"apiKey"}],url:"/user/",...e}),Pe=e=>(e?.client??p).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/user/",...e,headers:{"Content-Type":"application/json",...e?.headers}}),ve=e=>(e?.client??p).put({security:[{name:"Authorization",type:"apiKey"}],url:"/user/",...e,headers:{"Content-Type":"application/json",...e?.headers}}),je=e=>(e.client??p).post({security:[{name:"Authorization",type:"apiKey"}],url:"/user/account-address-lookup/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ie=e=>(e?.client??p).get({security:[{name:"Authorization",type:"apiKey"}],url:"/user/addresses/",...e}),Le=e=>(e?.client??p).post({security:[{name:"Authorization",type:"apiKey"}],url:"/user/addresses/",...e,headers:{"Content-Type":"application/json",...e?.headers}}),Be=e=>(e.client??p).get({security:[{name:"Authorization",type:"apiKey"}],url:"/user/addresses/{identifier}/",...e}),Fe=e=>(e.client??p).get({security:[{name:"Authorization",type:"apiKey"}],url:"/user/collections/{identifier}/",...e}),Ke=e=>(e.client??p).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/user/collections/{identifier}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),$e=e=>(e.client??p).put({security:[{name:"Authorization",type:"apiKey"}],url:"/user/collections/{identifier}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),We=e=>(e?.client??p).get({security:[{name:"Authorization",type:"apiKey"}],url:"/user/onchain-transactions/",...e}),Ne=e=>(e.client??p).get({security:[{name:"Authorization",type:"apiKey"}],url:"/user/onchain-transactions/{identifier}/",...e}),He=e=>(e.client??p).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/user/onchain-transactions/{identifier}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Me=e=>(e.client??p).put({security:[{name:"Authorization",type:"apiKey"}],url:"/user/onchain-transactions/{identifier}/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ve=e=>(e.client??p).post({security:[{name:"Authorization",type:"apiKey"}],url:"/user/onchain-transactions/{identifier}/cancel/",...e,headers:{"Content-Type":"application/json",...e.headers}}),Je=e=>(e.client??p).post({url:"/webhook/",...e,headers:{"Content-Type":"application/json",...e.headers}});function Qe(e){let r=U(J(e,"https://alchemy.services.rehive.com/api/"));return V(K,r)}export{Qe as createAlchemyApi};
|