@0xsequence/api 1.10.11 → 1.10.12

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.
@@ -14,9 +14,9 @@ function _extends() {
14
14
  }
15
15
 
16
16
  /* eslint-disable */
17
- // sequence-api v0.4.0 da72de09959c34a964bb84662ed6bd510f78f5cb
17
+ // sequence-api v0.4.0 d3f5f1338693d60d58f87bc408a076218201a097
18
18
  // --
19
- // Code generated by webrpc-gen@v0.18.6 with typescript generator. DO NOT EDIT.
19
+ // Code generated by webrpc-gen@v0.18.7 with typescript generator. DO NOT EDIT.
20
20
  //
21
21
  // webrpc-gen -schema=api.ridl -target=typescript -client -out=./clients/api.gen.ts
22
22
 
@@ -27,7 +27,7 @@ const WebRPCVersion = 'v1';
27
27
  const WebRPCSchemaVersion = 'v0.4.0';
28
28
 
29
29
  // Schema hash generated from your RIDL schema
30
- const WebRPCSchemaHash = 'da72de09959c34a964bb84662ed6bd510f78f5cb';
30
+ const WebRPCSchemaHash = 'd3f5f1338693d60d58f87bc408a076218201a097';
31
31
 
32
32
  //
33
33
  // Types
@@ -38,6 +38,12 @@ let SortOrder = /*#__PURE__*/function (SortOrder) {
38
38
  SortOrder["ASC"] = "ASC";
39
39
  return SortOrder;
40
40
  }({});
41
+ let TokenType = /*#__PURE__*/function (TokenType) {
42
+ TokenType["ERC20"] = "ERC20";
43
+ TokenType["ERC721"] = "ERC721";
44
+ TokenType["ERC1155"] = "ERC1155";
45
+ return TokenType;
46
+ }({});
41
47
  //
42
48
  // Client
43
49
  //
@@ -617,6 +623,185 @@ class API {
617
623
  });
618
624
  });
619
625
  };
626
+ this.removeLinkedWallet = (args, headers, signal) => {
627
+ return this.fetch(this.url('RemoveLinkedWallet'), createHTTPRequest(args, headers, signal)).then(res => {
628
+ return buildResponse(res).then(_data => {
629
+ return {
630
+ status: _data.status
631
+ };
632
+ });
633
+ }, error => {
634
+ throw WebrpcRequestFailedError.new({
635
+ cause: `fetch(): ${error.message || ''}`
636
+ });
637
+ });
638
+ };
639
+ this.generateWaaSVerificationURL = (args, headers, signal) => {
640
+ return this.fetch(this.url('GenerateWaaSVerificationURL'), createHTTPRequest(args, headers, signal)).then(res => {
641
+ return buildResponse(res).then(_data => {
642
+ return {
643
+ nonce: _data.nonce,
644
+ verificationURL: _data.verificationURL
645
+ };
646
+ });
647
+ }, error => {
648
+ throw WebrpcRequestFailedError.new({
649
+ cause: `fetch(): ${error.message || ''}`
650
+ });
651
+ });
652
+ };
653
+ this.validateWaaSVerificationNonce = (args, headers, signal) => {
654
+ return this.fetch(this.url('ValidateWaaSVerificationNonce'), createHTTPRequest(args, headers, signal)).then(res => {
655
+ return buildResponse(res).then(_data => {
656
+ return {
657
+ walletAddress: _data.walletAddress
658
+ };
659
+ });
660
+ }, error => {
661
+ throw WebrpcRequestFailedError.new({
662
+ cause: `fetch(): ${error.message || ''}`
663
+ });
664
+ });
665
+ };
666
+ this.getSwapQuotes = (args, headers, signal) => {
667
+ return this.fetch(this.url('GetSwapQuotes'), createHTTPRequest(args, headers, signal)).then(res => {
668
+ return buildResponse(res).then(_data => {
669
+ return {
670
+ swapQuotes: _data.swapQuotes
671
+ };
672
+ });
673
+ }, error => {
674
+ throw WebrpcRequestFailedError.new({
675
+ cause: `fetch(): ${error.message || ''}`
676
+ });
677
+ });
678
+ };
679
+ this.addCurrencyGroup = (args, headers, signal) => {
680
+ return this.fetch(this.url('AddCurrencyGroup'), createHTTPRequest(args, headers, signal)).then(res => {
681
+ return buildResponse(res).then(_data => {
682
+ return {
683
+ groupId: _data.groupId
684
+ };
685
+ });
686
+ }, error => {
687
+ throw WebrpcRequestFailedError.new({
688
+ cause: `fetch(): ${error.message || ''}`
689
+ });
690
+ });
691
+ };
692
+ this.updateCurrencyGroup = (args, headers, signal) => {
693
+ return this.fetch(this.url('UpdateCurrencyGroup'), createHTTPRequest(args, headers, signal)).then(res => {
694
+ return buildResponse(res).then(_data => {
695
+ return {};
696
+ });
697
+ }, error => {
698
+ throw WebrpcRequestFailedError.new({
699
+ cause: `fetch(): ${error.message || ''}`
700
+ });
701
+ });
702
+ };
703
+ this.listCurrencyGroups = (headers, signal) => {
704
+ return this.fetch(this.url('ListCurrencyGroups'), createHTTPRequest({}, headers, signal)).then(res => {
705
+ return buildResponse(res).then(_data => {
706
+ return {
707
+ currencyGroups: _data.currencyGroups
708
+ };
709
+ });
710
+ }, error => {
711
+ throw WebrpcRequestFailedError.new({
712
+ cause: `fetch(): ${error.message || ''}`
713
+ });
714
+ });
715
+ };
716
+ this.deleteCurrencyGroup = (args, headers, signal) => {
717
+ return this.fetch(this.url('DeleteCurrencyGroup'), createHTTPRequest(args, headers, signal)).then(res => {
718
+ return buildResponse(res).then(_data => {
719
+ return {
720
+ ok: _data.ok
721
+ };
722
+ });
723
+ }, error => {
724
+ throw WebrpcRequestFailedError.new({
725
+ cause: `fetch(): ${error.message || ''}`
726
+ });
727
+ });
728
+ };
729
+ this.addInventoryPaymentConfig = (args, headers, signal) => {
730
+ return this.fetch(this.url('AddInventoryPaymentConfig'), createHTTPRequest(args, headers, signal)).then(res => {
731
+ return buildResponse(res).then(_data => {
732
+ return {
733
+ configId: _data.configId
734
+ };
735
+ });
736
+ }, error => {
737
+ throw WebrpcRequestFailedError.new({
738
+ cause: `fetch(): ${error.message || ''}`
739
+ });
740
+ });
741
+ };
742
+ this.getInventoryPaymentConfig = (args, headers, signal) => {
743
+ return this.fetch(this.url('GetInventoryPaymentConfig'), createHTTPRequest(args, headers, signal)).then(res => {
744
+ return buildResponse(res).then(_data => {
745
+ return {
746
+ config: _data.config
747
+ };
748
+ });
749
+ }, error => {
750
+ throw WebrpcRequestFailedError.new({
751
+ cause: `fetch(): ${error.message || ''}`
752
+ });
753
+ });
754
+ };
755
+ this.listInventoryPaymentConfigs = (args, headers, signal) => {
756
+ return this.fetch(this.url('ListInventoryPaymentConfigs'), createHTTPRequest(args, headers, signal)).then(res => {
757
+ return buildResponse(res).then(_data => {
758
+ return {
759
+ configs: _data.configs
760
+ };
761
+ });
762
+ }, error => {
763
+ throw WebrpcRequestFailedError.new({
764
+ cause: `fetch(): ${error.message || ''}`
765
+ });
766
+ });
767
+ };
768
+ this.updateInventoryPaymentConfig = (args, headers, signal) => {
769
+ return this.fetch(this.url('UpdateInventoryPaymentConfig'), createHTTPRequest(args, headers, signal)).then(res => {
770
+ return buildResponse(res).then(_data => {
771
+ return {};
772
+ });
773
+ }, error => {
774
+ throw WebrpcRequestFailedError.new({
775
+ cause: `fetch(): ${error.message || ''}`
776
+ });
777
+ });
778
+ };
779
+ this.deleteInventoryPaymentConfig = (args, headers, signal) => {
780
+ return this.fetch(this.url('DeleteInventoryPaymentConfig'), createHTTPRequest(args, headers, signal)).then(res => {
781
+ return buildResponse(res).then(_data => {
782
+ return {
783
+ ok: _data.ok
784
+ };
785
+ });
786
+ }, error => {
787
+ throw WebrpcRequestFailedError.new({
788
+ cause: `fetch(): ${error.message || ''}`
789
+ });
790
+ });
791
+ };
792
+ this.requestInventoryPayment = (args, headers, signal) => {
793
+ return this.fetch(this.url('RequestInventoryPayment'), createHTTPRequest(args, headers, signal)).then(res => {
794
+ return buildResponse(res).then(_data => {
795
+ return {
796
+ payment: _data.payment
797
+ };
798
+ });
799
+ }, error => {
800
+ throw WebrpcRequestFailedError.new({
801
+ cause: `fetch(): ${error.message || ''}`
802
+ });
803
+ });
804
+ };
620
805
  this.hostname = hostname;
621
806
  this.fetch = (input, init) => fetch(input, init);
622
807
  }
@@ -779,6 +964,12 @@ class AbortedError extends WebrpcError {
779
964
  Object.setPrototypeOf(this, AbortedError.prototype);
780
965
  }
781
966
  }
967
+ class GeoblockedError extends WebrpcError {
968
+ constructor(name = 'Geoblocked', code = 1006, message = 'Geoblocked region', status = 0, cause) {
969
+ super(name, code, message, status, cause);
970
+ Object.setPrototypeOf(this, GeoblockedError.prototype);
971
+ }
972
+ }
782
973
  class InvalidArgumentError extends WebrpcError {
783
974
  constructor(name = 'InvalidArgument', code = 2000, message = 'Invalid argument', status = 0, cause) {
784
975
  super(name, code, message, status, cause);
@@ -819,6 +1010,7 @@ let errors = /*#__PURE__*/function (errors) {
819
1010
  errors["PermissionDenied"] = "PermissionDenied";
820
1011
  errors["SessionExpired"] = "SessionExpired";
821
1012
  errors["Aborted"] = "Aborted";
1013
+ errors["Geoblocked"] = "Geoblocked";
822
1014
  errors["InvalidArgument"] = "InvalidArgument";
823
1015
  errors["Unavailable"] = "Unavailable";
824
1016
  errors["QueryFailed"] = "QueryFailed";
@@ -841,13 +1033,14 @@ const webrpcErrorByCode = {
841
1033
  [1001]: PermissionDeniedError,
842
1034
  [1002]: SessionExpiredError,
843
1035
  [1005]: AbortedError,
1036
+ [1006]: GeoblockedError,
844
1037
  [2000]: InvalidArgumentError,
845
1038
  [2002]: UnavailableError,
846
1039
  [2003]: QueryFailedError,
847
1040
  [3000]: NotFoundError
848
1041
  };
849
1042
 
850
- const fetch = typeof global === 'object' ? global.fetch : window.fetch;
1043
+ const fetch = globalThis.fetch;
851
1044
  class SequenceAPIClient extends API {
852
1045
  constructor(hostname, projectAccessKey, jwtAuth) {
853
1046
  super(hostname.endsWith('/') ? hostname.slice(0, -1) : hostname, fetch);
@@ -874,4 +1067,4 @@ class SequenceAPIClient extends API {
874
1067
  }
875
1068
  }
876
1069
 
877
- export { API, AbortedError, InvalidArgumentError, NotFoundError, PermissionDeniedError, QueryFailedError, SequenceAPIClient, SessionExpiredError, SortOrder, UnauthorizedError, UnavailableError, WebRPCSchemaHash, WebRPCSchemaVersion, WebRPCVersion, WebrpcBadMethodError, WebrpcBadRequestError, WebrpcBadResponseError, WebrpcBadRouteError, WebrpcClientDisconnectedError, WebrpcEndpointError, WebrpcError, WebrpcInternalErrorError, WebrpcRequestFailedError, WebrpcServerPanicError, WebrpcStreamFinishedError, WebrpcStreamLostError, errors };
1070
+ export { API, AbortedError, GeoblockedError, InvalidArgumentError, NotFoundError, PermissionDeniedError, QueryFailedError, SequenceAPIClient, SessionExpiredError, SortOrder, TokenType, UnauthorizedError, UnavailableError, WebRPCSchemaHash, WebRPCSchemaVersion, WebRPCVersion, WebrpcBadMethodError, WebrpcBadRequestError, WebrpcBadResponseError, WebrpcBadRouteError, WebrpcClientDisconnectedError, WebrpcEndpointError, WebrpcError, WebrpcInternalErrorError, WebrpcRequestFailedError, WebrpcServerPanicError, WebrpcStreamFinishedError, WebrpcStreamLostError, errors };
@@ -1,10 +1,15 @@
1
1
  export declare const WebRPCVersion = "v1";
2
2
  export declare const WebRPCSchemaVersion = "v0.4.0";
3
- export declare const WebRPCSchemaHash = "da72de09959c34a964bb84662ed6bd510f78f5cb";
3
+ export declare const WebRPCSchemaHash = "d3f5f1338693d60d58f87bc408a076218201a097";
4
4
  export declare enum SortOrder {
5
5
  DESC = "DESC",
6
6
  ASC = "ASC"
7
7
  }
8
+ export declare enum TokenType {
9
+ ERC20 = "ERC20",
10
+ ERC721 = "ERC721",
11
+ ERC1155 = "ERC1155"
12
+ }
8
13
  export interface Version {
9
14
  webrpcVersion: string;
10
15
  schemaVersion: string;
@@ -162,6 +167,13 @@ export interface NftCheckoutParams {
162
167
  contractAddress: string;
163
168
  quantity: number;
164
169
  decimals?: number;
170
+ tokenAmount: string;
171
+ tokenAddress: string;
172
+ tokenSymbol: string;
173
+ tokenDecimals?: number;
174
+ calldata: string;
175
+ platform: string;
176
+ approvedSpenderAddress?: string;
165
177
  }
166
178
  export interface NftCheckout {
167
179
  token: string;
@@ -191,6 +203,68 @@ export interface SardineOrder {
191
203
  transactionHash?: string;
192
204
  recipientAddress: string;
193
205
  }
206
+ export interface SwapQuote {
207
+ currencyAddress: string;
208
+ currencyBalance: string;
209
+ price: string;
210
+ maxPrice: string;
211
+ to: string;
212
+ transactionData: string;
213
+ approveData: string;
214
+ }
215
+ export interface CurrencyGroup {
216
+ id: number;
217
+ name: string;
218
+ tokens: Array<CurrencyGroupToken>;
219
+ }
220
+ export interface CurrencyGroupToken {
221
+ id: number;
222
+ currencyGroupId: number;
223
+ chainId: number;
224
+ tokenAddress: string;
225
+ }
226
+ export interface InventoryPaymentConfig {
227
+ id: number;
228
+ projectId: number;
229
+ chainId: number;
230
+ externalProductId: string;
231
+ paymentTokenAddress: string;
232
+ paymentTokenType: TokenType;
233
+ paymentTokenId: number;
234
+ paymentAmount: number;
235
+ paymentRecipient: string;
236
+ chainedCallAddress?: string;
237
+ chainedCallData?: string;
238
+ allowCrossChainPayments?: boolean;
239
+ callbackURL?: string;
240
+ createdAt: string;
241
+ deletedAt?: string;
242
+ }
243
+ export interface InventoryPayment {
244
+ id: number;
245
+ inventoryPaymentConfigId: number;
246
+ productRecipient: string;
247
+ paymentChainId: number;
248
+ paymentTokenAddress: string;
249
+ expiration: string;
250
+ createdAt: string;
251
+ completedAt?: string;
252
+ processedAt?: string;
253
+ }
254
+ export interface InventoryPaymentResponse {
255
+ paymentId: number;
256
+ inventoryPaymentConfigId: number;
257
+ chainId: number;
258
+ externalProductId: string;
259
+ paymentTokenAddress: string;
260
+ paymentTokenType: TokenType;
261
+ paymentTokenId: number;
262
+ paymentTotal: number;
263
+ expiration: string;
264
+ signature: string;
265
+ txTo: string;
266
+ txData: string;
267
+ }
194
268
  export interface API {
195
269
  ping(headers?: object, signal?: AbortSignal): Promise<PingReturn>;
196
270
  version(headers?: object, signal?: AbortSignal): Promise<VersionReturn>;
@@ -235,6 +309,20 @@ export interface API {
235
309
  paperSessionSecret2(args: PaperSessionSecret2Args, headers?: object, signal?: AbortSignal): Promise<PaperSessionSecret2Return>;
236
310
  linkWallet(args: LinkWalletArgs, headers?: object, signal?: AbortSignal): Promise<LinkWalletReturn>;
237
311
  getLinkedWallets(args: GetLinkedWalletsArgs, headers?: object, signal?: AbortSignal): Promise<GetLinkedWalletsReturn>;
312
+ removeLinkedWallet(args: RemoveLinkedWalletArgs, headers?: object, signal?: AbortSignal): Promise<RemoveLinkedWalletReturn>;
313
+ generateWaaSVerificationURL(args: GenerateWaaSVerificationURLArgs, headers?: object, signal?: AbortSignal): Promise<GenerateWaaSVerificationURLReturn>;
314
+ validateWaaSVerificationNonce(args: ValidateWaaSVerificationNonceArgs, headers?: object, signal?: AbortSignal): Promise<ValidateWaaSVerificationNonceReturn>;
315
+ getSwapQuotes(args: GetSwapQuotesArgs, headers?: object, signal?: AbortSignal): Promise<GetSwapQuotesReturn>;
316
+ addCurrencyGroup(args: AddCurrencyGroupArgs, headers?: object, signal?: AbortSignal): Promise<AddCurrencyGroupReturn>;
317
+ updateCurrencyGroup(args: UpdateCurrencyGroupArgs, headers?: object, signal?: AbortSignal): Promise<UpdateCurrencyGroupReturn>;
318
+ listCurrencyGroups(headers?: object, signal?: AbortSignal): Promise<ListCurrencyGroupsReturn>;
319
+ deleteCurrencyGroup(args: DeleteCurrencyGroupArgs, headers?: object, signal?: AbortSignal): Promise<DeleteCurrencyGroupReturn>;
320
+ addInventoryPaymentConfig(args: AddInventoryPaymentConfigArgs, headers?: object, signal?: AbortSignal): Promise<AddInventoryPaymentConfigReturn>;
321
+ getInventoryPaymentConfig(args: GetInventoryPaymentConfigArgs, headers?: object, signal?: AbortSignal): Promise<GetInventoryPaymentConfigReturn>;
322
+ listInventoryPaymentConfigs(args: ListInventoryPaymentConfigsArgs, headers?: object, signal?: AbortSignal): Promise<ListInventoryPaymentConfigsReturn>;
323
+ updateInventoryPaymentConfig(args: UpdateInventoryPaymentConfigArgs, headers?: object, signal?: AbortSignal): Promise<UpdateInventoryPaymentConfigReturn>;
324
+ deleteInventoryPaymentConfig(args: DeleteInventoryPaymentConfigArgs, headers?: object, signal?: AbortSignal): Promise<DeleteInventoryPaymentConfigReturn>;
325
+ requestInventoryPayment(args: RequestInventoryPaymentArgs, headers?: object, signal?: AbortSignal): Promise<RequestInventoryPaymentReturn>;
238
326
  }
239
327
  export interface PingArgs {
240
328
  }
@@ -538,6 +626,102 @@ export interface GetLinkedWalletsArgs {
538
626
  export interface GetLinkedWalletsReturn {
539
627
  linkedWallets: Array<string>;
540
628
  }
629
+ export interface RemoveLinkedWalletArgs {
630
+ chainId: string;
631
+ walletAddress: string;
632
+ ethAuthProofString: string;
633
+ linkedWalletMessage: string;
634
+ linkedWalletSignature: string;
635
+ }
636
+ export interface RemoveLinkedWalletReturn {
637
+ status: boolean;
638
+ }
639
+ export interface GenerateWaaSVerificationURLArgs {
640
+ walletAddress: string;
641
+ }
642
+ export interface GenerateWaaSVerificationURLReturn {
643
+ nonce: string;
644
+ verificationURL: string;
645
+ }
646
+ export interface ValidateWaaSVerificationNonceArgs {
647
+ nonce: string;
648
+ signature: string;
649
+ sessionId: string;
650
+ chainId: string;
651
+ }
652
+ export interface ValidateWaaSVerificationNonceReturn {
653
+ walletAddress: string;
654
+ }
655
+ export interface GetSwapQuotesArgs {
656
+ userAddress: string;
657
+ currencyAddress: string;
658
+ currencyAmount: string;
659
+ chainId: number;
660
+ includeApprove: boolean;
661
+ }
662
+ export interface GetSwapQuotesReturn {
663
+ swapQuotes: Array<SwapQuote>;
664
+ }
665
+ export interface AddCurrencyGroupArgs {
666
+ currencyGroup: CurrencyGroup;
667
+ }
668
+ export interface AddCurrencyGroupReturn {
669
+ groupId: number;
670
+ }
671
+ export interface UpdateCurrencyGroupArgs {
672
+ currencyGroup: CurrencyGroup;
673
+ }
674
+ export interface UpdateCurrencyGroupReturn {
675
+ }
676
+ export interface ListCurrencyGroupsArgs {
677
+ }
678
+ export interface ListCurrencyGroupsReturn {
679
+ currencyGroups: Array<CurrencyGroup>;
680
+ }
681
+ export interface DeleteCurrencyGroupArgs {
682
+ groupId: number;
683
+ }
684
+ export interface DeleteCurrencyGroupReturn {
685
+ ok: boolean;
686
+ }
687
+ export interface AddInventoryPaymentConfigArgs {
688
+ config: InventoryPaymentConfig;
689
+ }
690
+ export interface AddInventoryPaymentConfigReturn {
691
+ configId: number;
692
+ }
693
+ export interface GetInventoryPaymentConfigArgs {
694
+ configId: number;
695
+ }
696
+ export interface GetInventoryPaymentConfigReturn {
697
+ config: InventoryPaymentConfig;
698
+ }
699
+ export interface ListInventoryPaymentConfigsArgs {
700
+ projectId: number;
701
+ }
702
+ export interface ListInventoryPaymentConfigsReturn {
703
+ configs: Array<InventoryPaymentConfig>;
704
+ }
705
+ export interface UpdateInventoryPaymentConfigArgs {
706
+ config: InventoryPaymentConfig;
707
+ }
708
+ export interface UpdateInventoryPaymentConfigReturn {
709
+ }
710
+ export interface DeleteInventoryPaymentConfigArgs {
711
+ configId: number;
712
+ }
713
+ export interface DeleteInventoryPaymentConfigReturn {
714
+ ok: boolean;
715
+ }
716
+ export interface RequestInventoryPaymentArgs {
717
+ configId: number;
718
+ recipient: string;
719
+ chainId?: number;
720
+ tokenAddress?: string;
721
+ }
722
+ export interface RequestInventoryPaymentReturn {
723
+ payment: InventoryPaymentResponse;
724
+ }
541
725
  export declare class API implements API {
542
726
  protected hostname: string;
543
727
  protected fetch: Fetch;
@@ -587,6 +771,20 @@ export declare class API implements API {
587
771
  paperSessionSecret2: (args: PaperSessionSecret2Args, headers?: object | undefined, signal?: AbortSignal | undefined) => Promise<PaperSessionSecret2Return>;
588
772
  linkWallet: (args: LinkWalletArgs, headers?: object | undefined, signal?: AbortSignal | undefined) => Promise<LinkWalletReturn>;
589
773
  getLinkedWallets: (args: GetLinkedWalletsArgs, headers?: object | undefined, signal?: AbortSignal | undefined) => Promise<GetLinkedWalletsReturn>;
774
+ removeLinkedWallet: (args: RemoveLinkedWalletArgs, headers?: object | undefined, signal?: AbortSignal | undefined) => Promise<RemoveLinkedWalletReturn>;
775
+ generateWaaSVerificationURL: (args: GenerateWaaSVerificationURLArgs, headers?: object | undefined, signal?: AbortSignal | undefined) => Promise<GenerateWaaSVerificationURLReturn>;
776
+ validateWaaSVerificationNonce: (args: ValidateWaaSVerificationNonceArgs, headers?: object | undefined, signal?: AbortSignal | undefined) => Promise<ValidateWaaSVerificationNonceReturn>;
777
+ getSwapQuotes: (args: GetSwapQuotesArgs, headers?: object | undefined, signal?: AbortSignal | undefined) => Promise<GetSwapQuotesReturn>;
778
+ addCurrencyGroup: (args: AddCurrencyGroupArgs, headers?: object | undefined, signal?: AbortSignal | undefined) => Promise<AddCurrencyGroupReturn>;
779
+ updateCurrencyGroup: (args: UpdateCurrencyGroupArgs, headers?: object | undefined, signal?: AbortSignal | undefined) => Promise<UpdateCurrencyGroupReturn>;
780
+ listCurrencyGroups: (headers?: object | undefined, signal?: AbortSignal | undefined) => Promise<ListCurrencyGroupsReturn>;
781
+ deleteCurrencyGroup: (args: DeleteCurrencyGroupArgs, headers?: object | undefined, signal?: AbortSignal | undefined) => Promise<DeleteCurrencyGroupReturn>;
782
+ addInventoryPaymentConfig: (args: AddInventoryPaymentConfigArgs, headers?: object | undefined, signal?: AbortSignal | undefined) => Promise<AddInventoryPaymentConfigReturn>;
783
+ getInventoryPaymentConfig: (args: GetInventoryPaymentConfigArgs, headers?: object | undefined, signal?: AbortSignal | undefined) => Promise<GetInventoryPaymentConfigReturn>;
784
+ listInventoryPaymentConfigs: (args: ListInventoryPaymentConfigsArgs, headers?: object | undefined, signal?: AbortSignal | undefined) => Promise<ListInventoryPaymentConfigsReturn>;
785
+ updateInventoryPaymentConfig: (args: UpdateInventoryPaymentConfigArgs, headers?: object | undefined, signal?: AbortSignal | undefined) => Promise<UpdateInventoryPaymentConfigReturn>;
786
+ deleteInventoryPaymentConfig: (args: DeleteInventoryPaymentConfigArgs, headers?: object | undefined, signal?: AbortSignal | undefined) => Promise<DeleteInventoryPaymentConfigReturn>;
787
+ requestInventoryPayment: (args: RequestInventoryPaymentArgs, headers?: object | undefined, signal?: AbortSignal | undefined) => Promise<RequestInventoryPaymentReturn>;
590
788
  }
591
789
  export declare class WebrpcError extends Error {
592
790
  name: string;
@@ -644,6 +842,9 @@ export declare class SessionExpiredError extends WebrpcError {
644
842
  export declare class AbortedError extends WebrpcError {
645
843
  constructor(name?: string, code?: number, message?: string, status?: number, cause?: string);
646
844
  }
845
+ export declare class GeoblockedError extends WebrpcError {
846
+ constructor(name?: string, code?: number, message?: string, status?: number, cause?: string);
847
+ }
647
848
  export declare class InvalidArgumentError extends WebrpcError {
648
849
  constructor(name?: string, code?: number, message?: string, status?: number, cause?: string);
649
850
  }
@@ -672,6 +873,7 @@ export declare enum errors {
672
873
  PermissionDenied = "PermissionDenied",
673
874
  SessionExpired = "SessionExpired",
674
875
  Aborted = "Aborted",
876
+ Geoblocked = "Geoblocked",
675
877
  InvalidArgument = "InvalidArgument",
676
878
  Unavailable = "Unavailable",
677
879
  QueryFailed = "QueryFailed",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@0xsequence/api",
3
- "version": "1.10.11",
3
+ "version": "1.10.12",
4
4
  "description": "api sub-package for Sequence",
5
5
  "repository": "https://github.com/0xsequence/sequence.js/tree/master/packages/api",
6
6
  "source": "src/index.ts",