@0xsequence/api 2.0.11 → 2.0.13
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/0xsequence-api.cjs.dev.js +28 -51
- package/dist/0xsequence-api.cjs.prod.js +28 -51
- package/dist/0xsequence-api.esm.js +28 -51
- package/dist/declarations/src/api.gen.d.ts +49 -65
- package/package.json +1 -1
- package/src/api.gen.ts +1011 -1273
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const WebRPCVersion = "v1";
|
|
2
2
|
export declare const WebRPCSchemaVersion = "v0.4.0";
|
|
3
|
-
export declare const WebRPCSchemaHash = "
|
|
3
|
+
export declare const WebRPCSchemaHash = "470a0f88ea399c2a57ff8c22da54358c033ed5f0";
|
|
4
4
|
export declare enum SortOrder {
|
|
5
5
|
DESC = "DESC",
|
|
6
6
|
ASC = "ASC"
|
|
@@ -324,17 +324,14 @@ export interface SwapQuote {
|
|
|
324
324
|
approveData: string;
|
|
325
325
|
}
|
|
326
326
|
export interface CurrencyGroup {
|
|
327
|
-
id: number;
|
|
328
327
|
name: string;
|
|
329
328
|
tokens: Array<CurrencyGroupToken>;
|
|
330
329
|
}
|
|
331
330
|
export interface CurrencyGroupToken {
|
|
332
|
-
id: number;
|
|
333
|
-
currencyGroupId: number;
|
|
334
331
|
chainId: number;
|
|
335
332
|
tokenAddress: string;
|
|
336
333
|
}
|
|
337
|
-
export interface
|
|
334
|
+
export interface OffchainInventory {
|
|
338
335
|
id: number;
|
|
339
336
|
projectId: number;
|
|
340
337
|
chainId: number;
|
|
@@ -351,9 +348,9 @@ export interface InventoryPaymentConfig {
|
|
|
351
348
|
createdAt: string;
|
|
352
349
|
deletedAt?: string;
|
|
353
350
|
}
|
|
354
|
-
export interface
|
|
351
|
+
export interface OffchainPayment {
|
|
355
352
|
id: number;
|
|
356
|
-
|
|
353
|
+
offchainInventoryId: number;
|
|
357
354
|
productRecipient: string;
|
|
358
355
|
paymentChainId: number;
|
|
359
356
|
paymentTokenAddress: string;
|
|
@@ -362,9 +359,9 @@ export interface InventoryPayment {
|
|
|
362
359
|
completedAt?: string;
|
|
363
360
|
processedAt?: string;
|
|
364
361
|
}
|
|
365
|
-
export interface
|
|
362
|
+
export interface PaymentResponse {
|
|
366
363
|
paymentId: number;
|
|
367
|
-
|
|
364
|
+
offchainInventoryId: number;
|
|
368
365
|
chainId: number;
|
|
369
366
|
externalProductId: string;
|
|
370
367
|
paymentTokenAddress: string;
|
|
@@ -433,16 +430,14 @@ export interface API {
|
|
|
433
430
|
validateWaaSVerificationNonce(args: ValidateWaaSVerificationNonceArgs, headers?: object, signal?: AbortSignal): Promise<ValidateWaaSVerificationNonceReturn>;
|
|
434
431
|
getSwapPrices(args: GetSwapPricesArgs, headers?: object, signal?: AbortSignal): Promise<GetSwapPricesReturn>;
|
|
435
432
|
getSwapQuote(args: GetSwapQuoteArgs, headers?: object, signal?: AbortSignal): Promise<GetSwapQuoteReturn>;
|
|
436
|
-
addCurrencyGroup(args: AddCurrencyGroupArgs, headers?: object, signal?: AbortSignal): Promise<AddCurrencyGroupReturn>;
|
|
437
|
-
updateCurrencyGroup(args: UpdateCurrencyGroupArgs, headers?: object, signal?: AbortSignal): Promise<UpdateCurrencyGroupReturn>;
|
|
438
433
|
listCurrencyGroups(headers?: object, signal?: AbortSignal): Promise<ListCurrencyGroupsReturn>;
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
434
|
+
addOffchainInventory(args: AddOffchainInventoryArgs, headers?: object, signal?: AbortSignal): Promise<AddOffchainInventoryReturn>;
|
|
435
|
+
getOffchainInventory(args: GetOffchainInventoryArgs, headers?: object, signal?: AbortSignal): Promise<GetOffchainInventoryReturn>;
|
|
436
|
+
listOffchainInventories(args: ListOffchainInventoriesArgs, headers?: object, signal?: AbortSignal): Promise<ListOffchainInventoriesReturn>;
|
|
437
|
+
updateOffchainInventory(args: UpdateOffchainInventoryArgs, headers?: object, signal?: AbortSignal): Promise<UpdateOffchainInventoryReturn>;
|
|
438
|
+
deleteOffchainInventory(args: DeleteOffchainInventoryArgs, headers?: object, signal?: AbortSignal): Promise<DeleteOffchainInventoryReturn>;
|
|
439
|
+
requestOffchainPayment(args: RequestOffchainPaymentArgs, headers?: object, signal?: AbortSignal): Promise<RequestOffchainPaymentReturn>;
|
|
440
|
+
listOffchainPayments(args: ListOffchainPaymentsArgs, headers?: object, signal?: AbortSignal): Promise<ListOffchainPaymentsReturn>;
|
|
446
441
|
}
|
|
447
442
|
export interface PingArgs {
|
|
448
443
|
}
|
|
@@ -842,65 +837,56 @@ export interface GetSwapQuoteArgs {
|
|
|
842
837
|
export interface GetSwapQuoteReturn {
|
|
843
838
|
swapQuote: SwapQuote;
|
|
844
839
|
}
|
|
845
|
-
export interface AddCurrencyGroupArgs {
|
|
846
|
-
currencyGroup: CurrencyGroup;
|
|
847
|
-
}
|
|
848
|
-
export interface AddCurrencyGroupReturn {
|
|
849
|
-
groupId: number;
|
|
850
|
-
}
|
|
851
|
-
export interface UpdateCurrencyGroupArgs {
|
|
852
|
-
currencyGroup: CurrencyGroup;
|
|
853
|
-
}
|
|
854
|
-
export interface UpdateCurrencyGroupReturn {
|
|
855
|
-
}
|
|
856
840
|
export interface ListCurrencyGroupsArgs {
|
|
857
841
|
}
|
|
858
842
|
export interface ListCurrencyGroupsReturn {
|
|
859
843
|
currencyGroups: Array<CurrencyGroup>;
|
|
860
844
|
}
|
|
861
|
-
export interface
|
|
862
|
-
|
|
845
|
+
export interface AddOffchainInventoryArgs {
|
|
846
|
+
inventory: OffchainInventory;
|
|
863
847
|
}
|
|
864
|
-
export interface
|
|
865
|
-
|
|
848
|
+
export interface AddOffchainInventoryReturn {
|
|
849
|
+
inventoryId: number;
|
|
866
850
|
}
|
|
867
|
-
export interface
|
|
868
|
-
|
|
851
|
+
export interface GetOffchainInventoryArgs {
|
|
852
|
+
inventoryId: number;
|
|
869
853
|
}
|
|
870
|
-
export interface
|
|
871
|
-
|
|
854
|
+
export interface GetOffchainInventoryReturn {
|
|
855
|
+
inventory: OffchainInventory;
|
|
872
856
|
}
|
|
873
|
-
export interface
|
|
874
|
-
configId: number;
|
|
875
|
-
}
|
|
876
|
-
export interface GetInventoryPaymentConfigReturn {
|
|
877
|
-
config: InventoryPaymentConfig;
|
|
878
|
-
}
|
|
879
|
-
export interface ListInventoryPaymentConfigsArgs {
|
|
857
|
+
export interface ListOffchainInventoriesArgs {
|
|
880
858
|
projectId: number;
|
|
881
859
|
}
|
|
882
|
-
export interface
|
|
883
|
-
|
|
860
|
+
export interface ListOffchainInventoriesReturn {
|
|
861
|
+
inventory: Array<OffchainInventory>;
|
|
884
862
|
}
|
|
885
|
-
export interface
|
|
886
|
-
|
|
863
|
+
export interface UpdateOffchainInventoryArgs {
|
|
864
|
+
inventory: OffchainInventory;
|
|
887
865
|
}
|
|
888
|
-
export interface
|
|
866
|
+
export interface UpdateOffchainInventoryReturn {
|
|
889
867
|
}
|
|
890
|
-
export interface
|
|
891
|
-
|
|
868
|
+
export interface DeleteOffchainInventoryArgs {
|
|
869
|
+
inventoryId: number;
|
|
892
870
|
}
|
|
893
|
-
export interface
|
|
871
|
+
export interface DeleteOffchainInventoryReturn {
|
|
894
872
|
ok: boolean;
|
|
895
873
|
}
|
|
896
|
-
export interface
|
|
897
|
-
|
|
874
|
+
export interface RequestOffchainPaymentArgs {
|
|
875
|
+
inventoryId: number;
|
|
898
876
|
recipient: string;
|
|
899
877
|
chainId?: number;
|
|
900
878
|
tokenAddress?: string;
|
|
901
879
|
}
|
|
902
|
-
export interface
|
|
903
|
-
payment:
|
|
880
|
+
export interface RequestOffchainPaymentReturn {
|
|
881
|
+
payment: PaymentResponse;
|
|
882
|
+
}
|
|
883
|
+
export interface ListOffchainPaymentsArgs {
|
|
884
|
+
inventoryId: number;
|
|
885
|
+
page?: Page;
|
|
886
|
+
}
|
|
887
|
+
export interface ListOffchainPaymentsReturn {
|
|
888
|
+
page: Page;
|
|
889
|
+
payments: Array<OffchainPayment>;
|
|
904
890
|
}
|
|
905
891
|
export declare class API implements API {
|
|
906
892
|
protected hostname: string;
|
|
@@ -964,16 +950,14 @@ export declare class API implements API {
|
|
|
964
950
|
validateWaaSVerificationNonce: (args: ValidateWaaSVerificationNonceArgs, headers?: object | undefined, signal?: AbortSignal | undefined) => Promise<ValidateWaaSVerificationNonceReturn>;
|
|
965
951
|
getSwapPrices: (args: GetSwapPricesArgs, headers?: object | undefined, signal?: AbortSignal | undefined) => Promise<GetSwapPricesReturn>;
|
|
966
952
|
getSwapQuote: (args: GetSwapQuoteArgs, headers?: object | undefined, signal?: AbortSignal | undefined) => Promise<GetSwapQuoteReturn>;
|
|
967
|
-
addCurrencyGroup: (args: AddCurrencyGroupArgs, headers?: object | undefined, signal?: AbortSignal | undefined) => Promise<AddCurrencyGroupReturn>;
|
|
968
|
-
updateCurrencyGroup: (args: UpdateCurrencyGroupArgs, headers?: object | undefined, signal?: AbortSignal | undefined) => Promise<UpdateCurrencyGroupReturn>;
|
|
969
953
|
listCurrencyGroups: (headers?: object | undefined, signal?: AbortSignal | undefined) => Promise<ListCurrencyGroupsReturn>;
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
954
|
+
addOffchainInventory: (args: AddOffchainInventoryArgs, headers?: object | undefined, signal?: AbortSignal | undefined) => Promise<AddOffchainInventoryReturn>;
|
|
955
|
+
getOffchainInventory: (args: GetOffchainInventoryArgs, headers?: object | undefined, signal?: AbortSignal | undefined) => Promise<GetOffchainInventoryReturn>;
|
|
956
|
+
listOffchainInventories: (args: ListOffchainInventoriesArgs, headers?: object | undefined, signal?: AbortSignal | undefined) => Promise<ListOffchainInventoriesReturn>;
|
|
957
|
+
updateOffchainInventory: (args: UpdateOffchainInventoryArgs, headers?: object | undefined, signal?: AbortSignal | undefined) => Promise<UpdateOffchainInventoryReturn>;
|
|
958
|
+
deleteOffchainInventory: (args: DeleteOffchainInventoryArgs, headers?: object | undefined, signal?: AbortSignal | undefined) => Promise<DeleteOffchainInventoryReturn>;
|
|
959
|
+
requestOffchainPayment: (args: RequestOffchainPaymentArgs, headers?: object | undefined, signal?: AbortSignal | undefined) => Promise<RequestOffchainPaymentReturn>;
|
|
960
|
+
listOffchainPayments: (args: ListOffchainPaymentsArgs, headers?: object | undefined, signal?: AbortSignal | undefined) => Promise<ListOffchainPaymentsReturn>;
|
|
977
961
|
}
|
|
978
962
|
export declare class WebrpcError extends Error {
|
|
979
963
|
name: string;
|
package/package.json
CHANGED