@0xsequence/api 0.0.0-20250430130723 → 0.0.0-20250529132337

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.
@@ -13,7 +13,7 @@ function _extends() {
13
13
  }
14
14
 
15
15
  /* eslint-disable */
16
- // sequence-api v0.4.0 ab3b6841bf983fa51a24df4cee18536199f115c3
16
+ // sequence-api v0.4.0 1bfcfbfaf0d9cbc4cb88e71af967670e1c5506aa
17
17
  // --
18
18
  // Code generated by webrpc-gen@v0.25.3 with typescript generator. DO NOT EDIT.
19
19
  //
@@ -29,7 +29,7 @@ const WebRPCVersion = "v1";
29
29
  const WebRPCSchemaVersion = "v0.4.0";
30
30
 
31
31
  // Schema hash generated from your RIDL schema
32
- const WebRPCSchemaHash = "ab3b6841bf983fa51a24df4cee18536199f115c3";
32
+ const WebRPCSchemaHash = "1bfcfbfaf0d9cbc4cb88e71af967670e1c5506aa";
33
33
  function VersionFromHeader(headers) {
34
34
  const headerValue = headers.get(WebrpcHeader);
35
35
  if (!headerValue) {
@@ -1171,6 +1171,32 @@ class API {
1171
1171
  });
1172
1172
  });
1173
1173
  };
1174
+ this.getRevealTxData = (args, headers, signal) => {
1175
+ return this.fetch(this.url('GetRevealTxData'), createHTTPRequest(args, headers, signal)).then(res => {
1176
+ return buildResponse(res).then(_data => {
1177
+ return {
1178
+ txData: _data.txData
1179
+ };
1180
+ });
1181
+ }, error => {
1182
+ throw WebrpcRequestFailedError.new({
1183
+ cause: `fetch(): ${error.message || ''}`
1184
+ });
1185
+ });
1186
+ };
1187
+ this.checkoutOptionsPrimary = (args, headers, signal) => {
1188
+ return this.fetch(this.url('CheckoutOptionsPrimary'), createHTTPRequest(args, headers, signal)).then(res => {
1189
+ return buildResponse(res).then(_data => {
1190
+ return {
1191
+ options: _data.options
1192
+ };
1193
+ });
1194
+ }, error => {
1195
+ throw WebrpcRequestFailedError.new({
1196
+ cause: `fetch(): ${error.message || ''}`
1197
+ });
1198
+ });
1199
+ };
1174
1200
  this.checkoutOptionsSecondary = (args, headers, signal) => {
1175
1201
  return this.fetch(this.url('CheckoutOptionsSecondary'), createHTTPRequest(args, headers, signal)).then(res => {
1176
1202
  return buildResponse(res).then(_data => {
@@ -13,7 +13,7 @@ function _extends() {
13
13
  }
14
14
 
15
15
  /* eslint-disable */
16
- // sequence-api v0.4.0 ab3b6841bf983fa51a24df4cee18536199f115c3
16
+ // sequence-api v0.4.0 1bfcfbfaf0d9cbc4cb88e71af967670e1c5506aa
17
17
  // --
18
18
  // Code generated by webrpc-gen@v0.25.3 with typescript generator. DO NOT EDIT.
19
19
  //
@@ -29,7 +29,7 @@ const WebRPCVersion = "v1";
29
29
  const WebRPCSchemaVersion = "v0.4.0";
30
30
 
31
31
  // Schema hash generated from your RIDL schema
32
- const WebRPCSchemaHash = "ab3b6841bf983fa51a24df4cee18536199f115c3";
32
+ const WebRPCSchemaHash = "1bfcfbfaf0d9cbc4cb88e71af967670e1c5506aa";
33
33
  function VersionFromHeader(headers) {
34
34
  const headerValue = headers.get(WebrpcHeader);
35
35
  if (!headerValue) {
@@ -1171,6 +1171,32 @@ class API {
1171
1171
  });
1172
1172
  });
1173
1173
  };
1174
+ this.getRevealTxData = (args, headers, signal) => {
1175
+ return this.fetch(this.url('GetRevealTxData'), createHTTPRequest(args, headers, signal)).then(res => {
1176
+ return buildResponse(res).then(_data => {
1177
+ return {
1178
+ txData: _data.txData
1179
+ };
1180
+ });
1181
+ }, error => {
1182
+ throw WebrpcRequestFailedError.new({
1183
+ cause: `fetch(): ${error.message || ''}`
1184
+ });
1185
+ });
1186
+ };
1187
+ this.checkoutOptionsPrimary = (args, headers, signal) => {
1188
+ return this.fetch(this.url('CheckoutOptionsPrimary'), createHTTPRequest(args, headers, signal)).then(res => {
1189
+ return buildResponse(res).then(_data => {
1190
+ return {
1191
+ options: _data.options
1192
+ };
1193
+ });
1194
+ }, error => {
1195
+ throw WebrpcRequestFailedError.new({
1196
+ cause: `fetch(): ${error.message || ''}`
1197
+ });
1198
+ });
1199
+ };
1174
1200
  this.checkoutOptionsSecondary = (args, headers, signal) => {
1175
1201
  return this.fetch(this.url('CheckoutOptionsSecondary'), createHTTPRequest(args, headers, signal)).then(res => {
1176
1202
  return buildResponse(res).then(_data => {
@@ -9,7 +9,7 @@ function _extends() {
9
9
  }
10
10
 
11
11
  /* eslint-disable */
12
- // sequence-api v0.4.0 ab3b6841bf983fa51a24df4cee18536199f115c3
12
+ // sequence-api v0.4.0 1bfcfbfaf0d9cbc4cb88e71af967670e1c5506aa
13
13
  // --
14
14
  // Code generated by webrpc-gen@v0.25.3 with typescript generator. DO NOT EDIT.
15
15
  //
@@ -25,7 +25,7 @@ const WebRPCVersion = "v1";
25
25
  const WebRPCSchemaVersion = "v0.4.0";
26
26
 
27
27
  // Schema hash generated from your RIDL schema
28
- const WebRPCSchemaHash = "ab3b6841bf983fa51a24df4cee18536199f115c3";
28
+ const WebRPCSchemaHash = "1bfcfbfaf0d9cbc4cb88e71af967670e1c5506aa";
29
29
  function VersionFromHeader(headers) {
30
30
  const headerValue = headers.get(WebrpcHeader);
31
31
  if (!headerValue) {
@@ -1167,6 +1167,32 @@ class API {
1167
1167
  });
1168
1168
  });
1169
1169
  };
1170
+ this.getRevealTxData = (args, headers, signal) => {
1171
+ return this.fetch(this.url('GetRevealTxData'), createHTTPRequest(args, headers, signal)).then(res => {
1172
+ return buildResponse(res).then(_data => {
1173
+ return {
1174
+ txData: _data.txData
1175
+ };
1176
+ });
1177
+ }, error => {
1178
+ throw WebrpcRequestFailedError.new({
1179
+ cause: `fetch(): ${error.message || ''}`
1180
+ });
1181
+ });
1182
+ };
1183
+ this.checkoutOptionsPrimary = (args, headers, signal) => {
1184
+ return this.fetch(this.url('CheckoutOptionsPrimary'), createHTTPRequest(args, headers, signal)).then(res => {
1185
+ return buildResponse(res).then(_data => {
1186
+ return {
1187
+ options: _data.options
1188
+ };
1189
+ });
1190
+ }, error => {
1191
+ throw WebrpcRequestFailedError.new({
1192
+ cause: `fetch(): ${error.message || ''}`
1193
+ });
1194
+ });
1195
+ };
1170
1196
  this.checkoutOptionsSecondary = (args, headers, signal) => {
1171
1197
  return this.fetch(this.url('CheckoutOptionsSecondary'), createHTTPRequest(args, headers, signal)).then(res => {
1172
1198
  return buildResponse(res).then(_data => {
@@ -2,7 +2,7 @@ export declare const WebrpcHeader = "Webrpc";
2
2
  export declare const WebrpcHeaderValue = "webrpc@v0.25.3;gen-typescript@v0.17.0;sequence-api@v0.4.0";
3
3
  export declare const WebRPCVersion = "v1";
4
4
  export declare const WebRPCSchemaVersion = "v0.4.0";
5
- export declare const WebRPCSchemaHash = "ab3b6841bf983fa51a24df4cee18536199f115c3";
5
+ export declare const WebRPCSchemaHash = "1bfcfbfaf0d9cbc4cb88e71af967670e1c5506aa";
6
6
  type WebrpcGenVersions = {
7
7
  webrpcGenVersion: string;
8
8
  codeGenName: string;
@@ -601,7 +601,11 @@ export interface TransakChain {
601
601
  name: string;
602
602
  chainId: number;
603
603
  }
604
- export interface SecondaryCheckoutOptionsParams {
604
+ export interface CheckoutOptionsPrimaryParams {
605
+ quantity: string;
606
+ tokenId: string;
607
+ }
608
+ export interface CheckoutOptionsSecondaryParams {
605
609
  collectionAddress: string;
606
610
  marketplaceAddress: string;
607
611
  currencyAddress: string;
@@ -803,6 +807,8 @@ export interface API {
803
807
  getPack(args: GetPackArgs, headers?: object, signal?: AbortSignal): Promise<GetPackReturn>;
804
808
  deletePack(args: DeletePackArgs, headers?: object, signal?: AbortSignal): Promise<DeletePackReturn>;
805
809
  updatePackContent(args: UpdatePackContentArgs, headers?: object, signal?: AbortSignal): Promise<UpdatePackContentReturn>;
810
+ getRevealTxData(args: GetRevealTxDataArgs, headers?: object, signal?: AbortSignal): Promise<GetRevealTxDataReturn>;
811
+ checkoutOptionsPrimary(args: CheckoutOptionsPrimaryArgs, headers?: object, signal?: AbortSignal): Promise<CheckoutOptionsPrimaryReturn>;
806
812
  checkoutOptionsSecondary(args: CheckoutOptionsSecondaryArgs, headers?: object, signal?: AbortSignal): Promise<CheckoutOptionsSecondaryReturn>;
807
813
  checkoutOptionsGetTransakContractID(args: CheckoutOptionsGetTransakContractIDArgs, headers?: object, signal?: AbortSignal): Promise<CheckoutOptionsGetTransakContractIDReturn>;
808
814
  }
@@ -1337,10 +1343,28 @@ export interface UpdatePackContentArgs {
1337
1343
  export interface UpdatePackContentReturn {
1338
1344
  merkleRoot: string;
1339
1345
  }
1346
+ export interface GetRevealTxDataArgs {
1347
+ contractAddress: string;
1348
+ chainId: number;
1349
+ userAddress: string;
1350
+ }
1351
+ export interface GetRevealTxDataReturn {
1352
+ txData: string;
1353
+ }
1354
+ export interface CheckoutOptionsPrimaryArgs {
1355
+ chainId: number;
1356
+ wallet: string;
1357
+ contractAddress: string;
1358
+ collectionAddress: string;
1359
+ params: Array<CheckoutOptionsPrimaryParams>;
1360
+ }
1361
+ export interface CheckoutOptionsPrimaryReturn {
1362
+ options: CheckoutOptions;
1363
+ }
1340
1364
  export interface CheckoutOptionsSecondaryArgs {
1341
1365
  chainId: number;
1342
1366
  wallet: string;
1343
- params: Array<SecondaryCheckoutOptionsParams>;
1367
+ params: Array<CheckoutOptionsSecondaryParams>;
1344
1368
  }
1345
1369
  export interface CheckoutOptionsSecondaryReturn {
1346
1370
  options: CheckoutOptions;
@@ -1437,6 +1461,8 @@ export declare class API implements API {
1437
1461
  getPack: (args: GetPackArgs, headers?: object, signal?: AbortSignal) => Promise<GetPackReturn>;
1438
1462
  deletePack: (args: DeletePackArgs, headers?: object, signal?: AbortSignal) => Promise<DeletePackReturn>;
1439
1463
  updatePackContent: (args: UpdatePackContentArgs, headers?: object, signal?: AbortSignal) => Promise<UpdatePackContentReturn>;
1464
+ getRevealTxData: (args: GetRevealTxDataArgs, headers?: object, signal?: AbortSignal) => Promise<GetRevealTxDataReturn>;
1465
+ checkoutOptionsPrimary: (args: CheckoutOptionsPrimaryArgs, headers?: object, signal?: AbortSignal) => Promise<CheckoutOptionsPrimaryReturn>;
1440
1466
  checkoutOptionsSecondary: (args: CheckoutOptionsSecondaryArgs, headers?: object, signal?: AbortSignal) => Promise<CheckoutOptionsSecondaryReturn>;
1441
1467
  checkoutOptionsGetTransakContractID: (args: CheckoutOptionsGetTransakContractIDArgs, headers?: object, signal?: AbortSignal) => Promise<CheckoutOptionsGetTransakContractIDReturn>;
1442
1468
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@0xsequence/api",
3
- "version": "0.0.0-20250430130723",
3
+ "version": "0.0.0-20250529132337",
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",
package/src/api.gen.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /* eslint-disable */
2
- // sequence-api v0.4.0 ab3b6841bf983fa51a24df4cee18536199f115c3
2
+ // sequence-api v0.4.0 1bfcfbfaf0d9cbc4cb88e71af967670e1c5506aa
3
3
  // --
4
4
  // Code generated by webrpc-gen@v0.25.3 with typescript generator. DO NOT EDIT.
5
5
  //
@@ -16,7 +16,7 @@ export const WebRPCVersion = "v1"
16
16
  export const WebRPCSchemaVersion = "v0.4.0"
17
17
 
18
18
  // Schema hash generated from your RIDL schema
19
- export const WebRPCSchemaHash = "ab3b6841bf983fa51a24df4cee18536199f115c3"
19
+ export const WebRPCSchemaHash = "1bfcfbfaf0d9cbc4cb88e71af967670e1c5506aa"
20
20
 
21
21
  type WebrpcGenVersions = {
22
22
  webrpcGenVersion: string;
@@ -732,7 +732,12 @@ export interface TransakChain {
732
732
  chainId: number
733
733
  }
734
734
 
735
- export interface SecondaryCheckoutOptionsParams {
735
+ export interface CheckoutOptionsPrimaryParams {
736
+ quantity: string
737
+ tokenId: string
738
+ }
739
+
740
+ export interface CheckoutOptionsSecondaryParams {
736
741
  collectionAddress: string
737
742
  marketplaceAddress: string
738
743
  currencyAddress: string
@@ -936,6 +941,8 @@ export interface API {
936
941
  getPack(args: GetPackArgs, headers?: object, signal?: AbortSignal): Promise<GetPackReturn>
937
942
  deletePack(args: DeletePackArgs, headers?: object, signal?: AbortSignal): Promise<DeletePackReturn>
938
943
  updatePackContent(args: UpdatePackContentArgs, headers?: object, signal?: AbortSignal): Promise<UpdatePackContentReturn>
944
+ getRevealTxData(args: GetRevealTxDataArgs, headers?: object, signal?: AbortSignal): Promise<GetRevealTxDataReturn>
945
+ checkoutOptionsPrimary(args: CheckoutOptionsPrimaryArgs, headers?: object, signal?: AbortSignal): Promise<CheckoutOptionsPrimaryReturn>
939
946
  checkoutOptionsSecondary(args: CheckoutOptionsSecondaryArgs, headers?: object, signal?: AbortSignal): Promise<CheckoutOptionsSecondaryReturn>
940
947
  checkoutOptionsGetTransakContractID(args: CheckoutOptionsGetTransakContractIDArgs, headers?: object, signal?: AbortSignal): Promise<CheckoutOptionsGetTransakContractIDReturn>
941
948
  }
@@ -1548,10 +1555,30 @@ export interface UpdatePackContentArgs {
1548
1555
  export interface UpdatePackContentReturn {
1549
1556
  merkleRoot: string
1550
1557
  }
1558
+ export interface GetRevealTxDataArgs {
1559
+ contractAddress: string
1560
+ chainId: number
1561
+ userAddress: string
1562
+ }
1563
+
1564
+ export interface GetRevealTxDataReturn {
1565
+ txData: string
1566
+ }
1567
+ export interface CheckoutOptionsPrimaryArgs {
1568
+ chainId: number
1569
+ wallet: string
1570
+ contractAddress: string
1571
+ collectionAddress: string
1572
+ params: Array<CheckoutOptionsPrimaryParams>
1573
+ }
1574
+
1575
+ export interface CheckoutOptionsPrimaryReturn {
1576
+ options: CheckoutOptions
1577
+ }
1551
1578
  export interface CheckoutOptionsSecondaryArgs {
1552
1579
  chainId: number
1553
1580
  wallet: string
1554
- params: Array<SecondaryCheckoutOptionsParams>
1581
+ params: Array<CheckoutOptionsSecondaryParams>
1555
1582
  }
1556
1583
 
1557
1584
  export interface CheckoutOptionsSecondaryReturn {
@@ -2721,6 +2748,34 @@ export class API implements API {
2721
2748
  })
2722
2749
  }
2723
2750
 
2751
+ getRevealTxData = (args: GetRevealTxDataArgs, headers?: object, signal?: AbortSignal): Promise<GetRevealTxDataReturn> => {
2752
+ return this.fetch(
2753
+ this.url('GetRevealTxData'),
2754
+ createHTTPRequest(args, headers, signal)).then((res) => {
2755
+ return buildResponse(res).then(_data => {
2756
+ return {
2757
+ txData: <string>(_data.txData),
2758
+ }
2759
+ })
2760
+ }, (error) => {
2761
+ throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })
2762
+ })
2763
+ }
2764
+
2765
+ checkoutOptionsPrimary = (args: CheckoutOptionsPrimaryArgs, headers?: object, signal?: AbortSignal): Promise<CheckoutOptionsPrimaryReturn> => {
2766
+ return this.fetch(
2767
+ this.url('CheckoutOptionsPrimary'),
2768
+ createHTTPRequest(args, headers, signal)).then((res) => {
2769
+ return buildResponse(res).then(_data => {
2770
+ return {
2771
+ options: <CheckoutOptions>(_data.options),
2772
+ }
2773
+ })
2774
+ }, (error) => {
2775
+ throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })
2776
+ })
2777
+ }
2778
+
2724
2779
  checkoutOptionsSecondary = (args: CheckoutOptionsSecondaryArgs, headers?: object, signal?: AbortSignal): Promise<CheckoutOptionsSecondaryReturn> => {
2725
2780
  return this.fetch(
2726
2781
  this.url('CheckoutOptionsSecondary'),