@ardrive/turbo-sdk 1.2.0 → 1.3.0-alpha.2

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.
@@ -17,23 +17,34 @@ exports.TurboFactory = void 0;
17
17
  * You should have received a copy of the GNU Affero General Public License
18
18
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
19
19
  */
20
+ const arbundles_1 = require("arbundles");
20
21
  const factory_js_1 = require("../common/factory.js");
21
22
  const index_js_1 = require("../common/index.js");
22
23
  const signer_js_1 = require("./signer.js");
23
24
  class TurboFactory extends factory_js_1.TurboBaseFactory {
24
- static authenticated({ privateKey, paymentServiceConfig = {}, uploadServiceConfig = {}, }) {
25
- const signer = new signer_js_1.TurboNodeArweaveSigner({
26
- privateKey,
25
+ static authenticated({ privateKey, signer: providedSigner, paymentServiceConfig = {}, uploadServiceConfig = {}, }) {
26
+ let signer;
27
+ if (providedSigner) {
28
+ signer = providedSigner;
29
+ }
30
+ else if (privateKey) {
31
+ signer = new arbundles_1.ArweaveSigner(privateKey);
32
+ }
33
+ else {
34
+ throw new Error('A privateKey or signer must be provided.');
35
+ }
36
+ const turboSigner = new signer_js_1.TurboNodeArweaveSigner({
37
+ signer,
27
38
  logger: this.logger,
28
39
  });
29
40
  const paymentService = new index_js_1.TurboAuthenticatedPaymentService({
30
41
  ...paymentServiceConfig,
31
- signer,
42
+ signer: turboSigner,
32
43
  logger: this.logger,
33
44
  });
34
45
  const uploadService = new index_js_1.TurboAuthenticatedUploadService({
35
46
  ...uploadServiceConfig,
36
- signer,
47
+ signer: turboSigner,
37
48
  logger: this.logger,
38
49
  });
39
50
  return new index_js_1.TurboAuthenticatedClient({
@@ -1,7 +1,4 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
2
  Object.defineProperty(exports, "__esModule", { value: true });
6
3
  exports.TurboNodeArweaveSigner = void 0;
7
4
  /**
@@ -21,15 +18,12 @@ exports.TurboNodeArweaveSigner = void 0;
21
18
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
22
19
  */
23
20
  const arbundles_1 = require("arbundles");
24
- const index_js_1 = __importDefault(require("arweave/node/index.js"));
25
21
  const node_crypto_1 = require("node:crypto");
26
22
  const base64_js_1 = require("../utils/base64.js");
27
23
  class TurboNodeArweaveSigner {
28
- // TODO: replace with internal signer class
29
- constructor({ privateKey, logger, }) {
30
- this.privateKey = privateKey;
24
+ constructor({ signer, logger, }) {
31
25
  this.logger = logger;
32
- this.signer = new arbundles_1.ArweaveSigner(this.privateKey);
26
+ this.signer = signer;
33
27
  }
34
28
  async signDataItem({ fileStreamFactory, fileSizeFactory, dataItemOpts, }) {
35
29
  // TODO: replace with our own signer implementation
@@ -51,9 +45,10 @@ class TurboNodeArweaveSigner {
51
45
  async generateSignedRequestHeaders() {
52
46
  const nonce = (0, node_crypto_1.randomBytes)(16).toString('hex');
53
47
  const buffer = Buffer.from(nonce);
54
- const signature = await index_js_1.default.crypto.sign(this.privateKey, buffer);
48
+ const signature = await this.signer.sign(buffer);
49
+ const publicKey = (0, base64_js_1.toB64Url)(this.signer.publicKey);
55
50
  return {
56
- 'x-public-key': this.privateKey.n,
51
+ 'x-public-key': publicKey,
57
52
  'x-nonce': nonce,
58
53
  'x-signature': (0, base64_js_1.toB64Url)(Buffer.from(signature)),
59
54
  };
@@ -18,4 +18,4 @@
18
18
  Object.defineProperty(exports, "__esModule", { value: true });
19
19
  exports.version = void 0;
20
20
  // AUTOMATICALLY GENERATED FILE - DO NOT TOUCH
21
- exports.version = '1.2.0';
21
+ exports.version = '1.3.0-alpha.2';
@@ -17,23 +17,34 @@ exports.TurboFactory = void 0;
17
17
  * You should have received a copy of the GNU Affero General Public License
18
18
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
19
19
  */
20
+ const arbundles_1 = require("arbundles");
20
21
  const factory_js_1 = require("../common/factory.js");
21
22
  const index_js_1 = require("../common/index.js");
22
23
  const signer_js_1 = require("./signer.js");
23
24
  class TurboFactory extends factory_js_1.TurboBaseFactory {
24
- static authenticated({ privateKey, paymentServiceConfig = {}, uploadServiceConfig = {}, }) {
25
- const signer = new signer_js_1.TurboWebArweaveSigner({
26
- privateKey,
25
+ static authenticated({ privateKey, signer: providedSigner, paymentServiceConfig = {}, uploadServiceConfig = {}, }) {
26
+ let signer;
27
+ if (providedSigner) {
28
+ signer = providedSigner;
29
+ }
30
+ else if (privateKey) {
31
+ signer = new arbundles_1.ArweaveSigner(privateKey);
32
+ }
33
+ else {
34
+ throw new Error('A privateKey or signer must be provided.');
35
+ }
36
+ const turboSigner = new signer_js_1.TurboWebArweaveSigner({
37
+ signer,
27
38
  logger: this.logger,
28
39
  });
29
40
  const paymentService = new index_js_1.TurboAuthenticatedPaymentService({
30
41
  ...paymentServiceConfig,
31
- signer,
42
+ signer: turboSigner,
32
43
  logger: this.logger,
33
44
  });
34
45
  const uploadService = new index_js_1.TurboAuthenticatedUploadService({
35
46
  ...uploadServiceConfig,
36
- signer,
47
+ signer: turboSigner,
37
48
  logger: this.logger,
38
49
  });
39
50
  return new index_js_1.TurboAuthenticatedClient({
@@ -1,7 +1,4 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
2
  Object.defineProperty(exports, "__esModule", { value: true });
6
3
  exports.TurboWebArweaveSigner = void 0;
7
4
  /**
@@ -21,15 +18,13 @@ exports.TurboWebArweaveSigner = void 0;
21
18
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
22
19
  */
23
20
  const arbundles_1 = require("arbundles");
24
- const arweave_1 = __importDefault(require("arweave"));
25
- const node_crypto_1 = require("node:crypto");
21
+ const crypto_1 = require("crypto");
26
22
  const base64_js_1 = require("../utils/base64.js");
27
23
  const readableStream_js_1 = require("../utils/readableStream.js");
28
24
  class TurboWebArweaveSigner {
29
- constructor({ privateKey, logger, }) {
30
- this.privateKey = privateKey;
25
+ constructor({ logger, signer, }) {
31
26
  this.logger = logger;
32
- this.signer = new arbundles_1.ArweaveSigner(this.privateKey);
27
+ this.signer = signer;
33
28
  }
34
29
  async signDataItem({ fileStreamFactory, fileSizeFactory, dataItemOpts, }) {
35
30
  // TODO: converts the readable stream to a buffer bc incrementally signing ReadableStreams is not trivial
@@ -37,6 +32,11 @@ class TurboWebArweaveSigner {
37
32
  stream: fileStreamFactory(),
38
33
  size: fileSizeFactory(),
39
34
  });
35
+ // for arconnect, we need to make sure we have the public key before create data
36
+ if (this.signer.publicKey === undefined &&
37
+ this.signer instanceof arbundles_1.ArconnectSigner) {
38
+ await this.signer.setPublicKey();
39
+ }
40
40
  this.logger.debug('Signing data item...');
41
41
  const signedDataItem = (0, arbundles_1.createData)(buffer, this.signer, dataItemOpts);
42
42
  await signedDataItem.sign(this.signer);
@@ -49,14 +49,17 @@ class TurboWebArweaveSigner {
49
49
  }
50
50
  // NOTE: this might be better in a parent class or elsewhere - easy enough to leave in here now and does require specific environment version of crypto
51
51
  async generateSignedRequestHeaders() {
52
- // a bit hacky - but arweave exports cause issues in tests vs. browser
53
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
54
- const arweave = arweave_1.default.default ?? arweave_1.default;
55
- const nonce = (0, node_crypto_1.randomBytes)(16).toString('hex');
52
+ const nonce = (0, crypto_1.randomBytes)(16).toString('hex');
56
53
  const buffer = Buffer.from(nonce);
57
- const signature = await arweave.crypto.sign(this.privateKey, buffer, {});
54
+ const signature = await this.signer.sign(buffer);
55
+ // for arconnect, we need to make sure we have the public key
56
+ if (this.signer.publicKey === undefined &&
57
+ this.signer instanceof arbundles_1.ArconnectSigner) {
58
+ await this.signer.setPublicKey();
59
+ }
60
+ const publicKey = (0, base64_js_1.toB64Url)(this.signer.publicKey);
58
61
  return {
59
- 'x-public-key': this.privateKey.n,
62
+ 'x-public-key': publicKey,
60
63
  'x-nonce': nonce,
61
64
  'x-signature': (0, base64_js_1.toB64Url)(Buffer.from(signature)),
62
65
  };
@@ -14,23 +14,34 @@
14
14
  * You should have received a copy of the GNU Affero General Public License
15
15
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
16
16
  */
17
+ import { ArweaveSigner } from 'arbundles';
17
18
  import { TurboBaseFactory } from '../common/factory.js';
18
19
  import { TurboAuthenticatedClient, TurboAuthenticatedPaymentService, TurboAuthenticatedUploadService, } from '../common/index.js';
19
20
  import { TurboNodeArweaveSigner } from './signer.js';
20
21
  export class TurboFactory extends TurboBaseFactory {
21
- static authenticated({ privateKey, paymentServiceConfig = {}, uploadServiceConfig = {}, }) {
22
- const signer = new TurboNodeArweaveSigner({
23
- privateKey,
22
+ static authenticated({ privateKey, signer: providedSigner, paymentServiceConfig = {}, uploadServiceConfig = {}, }) {
23
+ let signer;
24
+ if (providedSigner) {
25
+ signer = providedSigner;
26
+ }
27
+ else if (privateKey) {
28
+ signer = new ArweaveSigner(privateKey);
29
+ }
30
+ else {
31
+ throw new Error('A privateKey or signer must be provided.');
32
+ }
33
+ const turboSigner = new TurboNodeArweaveSigner({
34
+ signer,
24
35
  logger: this.logger,
25
36
  });
26
37
  const paymentService = new TurboAuthenticatedPaymentService({
27
38
  ...paymentServiceConfig,
28
- signer,
39
+ signer: turboSigner,
29
40
  logger: this.logger,
30
41
  });
31
42
  const uploadService = new TurboAuthenticatedUploadService({
32
43
  ...uploadServiceConfig,
33
- signer,
44
+ signer: turboSigner,
34
45
  logger: this.logger,
35
46
  });
36
47
  return new TurboAuthenticatedClient({
@@ -14,16 +14,13 @@
14
14
  * You should have received a copy of the GNU Affero General Public License
15
15
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
16
16
  */
17
- import { ArweaveSigner, serializeTags, streamSigner } from 'arbundles';
18
- import Arweave from 'arweave/node/index.js';
17
+ import { serializeTags, streamSigner } from 'arbundles';
19
18
  import { randomBytes } from 'node:crypto';
20
19
  import { fromB64Url, toB64Url } from '../utils/base64.js';
21
20
  export class TurboNodeArweaveSigner {
22
- // TODO: replace with internal signer class
23
- constructor({ privateKey, logger, }) {
24
- this.privateKey = privateKey;
21
+ constructor({ signer, logger, }) {
25
22
  this.logger = logger;
26
- this.signer = new ArweaveSigner(this.privateKey);
23
+ this.signer = signer;
27
24
  }
28
25
  async signDataItem({ fileStreamFactory, fileSizeFactory, dataItemOpts, }) {
29
26
  // TODO: replace with our own signer implementation
@@ -45,9 +42,10 @@ export class TurboNodeArweaveSigner {
45
42
  async generateSignedRequestHeaders() {
46
43
  const nonce = randomBytes(16).toString('hex');
47
44
  const buffer = Buffer.from(nonce);
48
- const signature = await Arweave.crypto.sign(this.privateKey, buffer);
45
+ const signature = await this.signer.sign(buffer);
46
+ const publicKey = toB64Url(this.signer.publicKey);
49
47
  return {
50
- 'x-public-key': this.privateKey.n,
48
+ 'x-public-key': publicKey,
51
49
  'x-nonce': nonce,
52
50
  'x-signature': toB64Url(Buffer.from(signature)),
53
51
  };
@@ -15,4 +15,4 @@
15
15
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
16
16
  */
17
17
  // AUTOMATICALLY GENERATED FILE - DO NOT TOUCH
18
- export const version = '1.2.0';
18
+ export const version = '1.3.0-alpha.2';
@@ -14,23 +14,34 @@
14
14
  * You should have received a copy of the GNU Affero General Public License
15
15
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
16
16
  */
17
+ import { ArweaveSigner } from 'arbundles';
17
18
  import { TurboBaseFactory } from '../common/factory.js';
18
19
  import { TurboAuthenticatedClient, TurboAuthenticatedPaymentService, TurboAuthenticatedUploadService, } from '../common/index.js';
19
20
  import { TurboWebArweaveSigner } from './signer.js';
20
21
  export class TurboFactory extends TurboBaseFactory {
21
- static authenticated({ privateKey, paymentServiceConfig = {}, uploadServiceConfig = {}, }) {
22
- const signer = new TurboWebArweaveSigner({
23
- privateKey,
22
+ static authenticated({ privateKey, signer: providedSigner, paymentServiceConfig = {}, uploadServiceConfig = {}, }) {
23
+ let signer;
24
+ if (providedSigner) {
25
+ signer = providedSigner;
26
+ }
27
+ else if (privateKey) {
28
+ signer = new ArweaveSigner(privateKey);
29
+ }
30
+ else {
31
+ throw new Error('A privateKey or signer must be provided.');
32
+ }
33
+ const turboSigner = new TurboWebArweaveSigner({
34
+ signer,
24
35
  logger: this.logger,
25
36
  });
26
37
  const paymentService = new TurboAuthenticatedPaymentService({
27
38
  ...paymentServiceConfig,
28
- signer,
39
+ signer: turboSigner,
29
40
  logger: this.logger,
30
41
  });
31
42
  const uploadService = new TurboAuthenticatedUploadService({
32
43
  ...uploadServiceConfig,
33
- signer,
44
+ signer: turboSigner,
34
45
  logger: this.logger,
35
46
  });
36
47
  return new TurboAuthenticatedClient({
@@ -14,16 +14,14 @@
14
14
  * You should have received a copy of the GNU Affero General Public License
15
15
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
16
16
  */
17
- import { ArweaveSigner, createData } from 'arbundles';
18
- import Arweave from 'arweave';
19
- import { randomBytes } from 'node:crypto';
17
+ import { ArconnectSigner, createData } from 'arbundles';
18
+ import { randomBytes } from 'crypto';
20
19
  import { toB64Url } from '../utils/base64.js';
21
20
  import { readableStreamToBuffer } from '../utils/readableStream.js';
22
21
  export class TurboWebArweaveSigner {
23
- constructor({ privateKey, logger, }) {
24
- this.privateKey = privateKey;
22
+ constructor({ logger, signer, }) {
25
23
  this.logger = logger;
26
- this.signer = new ArweaveSigner(this.privateKey);
24
+ this.signer = signer;
27
25
  }
28
26
  async signDataItem({ fileStreamFactory, fileSizeFactory, dataItemOpts, }) {
29
27
  // TODO: converts the readable stream to a buffer bc incrementally signing ReadableStreams is not trivial
@@ -31,6 +29,11 @@ export class TurboWebArweaveSigner {
31
29
  stream: fileStreamFactory(),
32
30
  size: fileSizeFactory(),
33
31
  });
32
+ // for arconnect, we need to make sure we have the public key before create data
33
+ if (this.signer.publicKey === undefined &&
34
+ this.signer instanceof ArconnectSigner) {
35
+ await this.signer.setPublicKey();
36
+ }
34
37
  this.logger.debug('Signing data item...');
35
38
  const signedDataItem = createData(buffer, this.signer, dataItemOpts);
36
39
  await signedDataItem.sign(this.signer);
@@ -43,14 +46,17 @@ export class TurboWebArweaveSigner {
43
46
  }
44
47
  // NOTE: this might be better in a parent class or elsewhere - easy enough to leave in here now and does require specific environment version of crypto
45
48
  async generateSignedRequestHeaders() {
46
- // a bit hacky - but arweave exports cause issues in tests vs. browser
47
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
48
- const arweave = Arweave.default ?? Arweave;
49
49
  const nonce = randomBytes(16).toString('hex');
50
50
  const buffer = Buffer.from(nonce);
51
- const signature = await arweave.crypto.sign(this.privateKey, buffer, {});
51
+ const signature = await this.signer.sign(buffer);
52
+ // for arconnect, we need to make sure we have the public key
53
+ if (this.signer.publicKey === undefined &&
54
+ this.signer instanceof ArconnectSigner) {
55
+ await this.signer.setPublicKey();
56
+ }
57
+ const publicKey = toB64Url(this.signer.publicKey);
52
58
  return {
53
- 'x-public-key': this.privateKey.n,
59
+ 'x-public-key': publicKey,
54
60
  'x-nonce': nonce,
55
61
  'x-signature': toB64Url(Buffer.from(signature)),
56
62
  };
@@ -14,7 +14,7 @@
14
14
  * You should have received a copy of the GNU Affero General Public License
15
15
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
16
16
  */
17
- import { Currency, TurboAuthenticatedPaymentServiceConfiguration, TurboAuthenticatedPaymentServiceInterface, TurboBalanceResponse, TurboCheckoutSessionParams, TurboCheckoutSessionResponse, TurboCountriesResponse, TurboCurrenciesResponse, TurboFiatToArResponse, TurboLogger, TurboPriceResponse, TurboRatesResponse, TurboSignedRequestHeaders, TurboUnauthenticatedPaymentServiceConfiguration, TurboUnauthenticatedPaymentServiceInterface, TurboWalletSigner, TurboWincForFiatParams, TurboWincForFiatResponse } from '../types.js';
17
+ import { Currency, TurboAuthenticatedPaymentServiceConfiguration, TurboAuthenticatedPaymentServiceInterface, TurboBalanceResponse, TurboCheckoutSessionParams, TurboCheckoutSessionResponse, TurboCountriesResponse, TurboCurrenciesResponse, TurboDataItemSigner, TurboFiatToArResponse, TurboLogger, TurboPriceResponse, TurboRatesResponse, TurboSignedRequestHeaders, TurboUnauthenticatedPaymentServiceConfiguration, TurboUnauthenticatedPaymentServiceInterface, TurboWincForFiatParams, TurboWincForFiatResponse } from '../types.js';
18
18
  import { TurboHTTPService } from './http.js';
19
19
  export declare const developmentPaymentServiceURL = "https://payment.ardrive.dev";
20
20
  export declare const defaultPaymentServiceURL = "https://payment.ardrive.io";
@@ -43,7 +43,7 @@ export declare class TurboUnauthenticatedPaymentService implements TurboUnauthen
43
43
  createCheckoutSession(params: TurboCheckoutSessionParams): Promise<TurboCheckoutSessionResponse>;
44
44
  }
45
45
  export declare class TurboAuthenticatedPaymentService extends TurboUnauthenticatedPaymentService implements TurboAuthenticatedPaymentServiceInterface {
46
- protected readonly signer: TurboWalletSigner;
46
+ protected readonly signer: TurboDataItemSigner;
47
47
  constructor({ url, retryConfig, signer, logger, }: TurboAuthenticatedPaymentServiceConfiguration);
48
48
  getBalance(): Promise<TurboBalanceResponse>;
49
49
  getWincForFiat({ amount, promoCodes, }: TurboWincForFiatParams): Promise<TurboWincForFiatResponse>;
@@ -1 +1 @@
1
- {"version":3,"file":"payment.d.ts","sourceRoot":"","sources":["../../../src/common/payment.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,OAAO,EACL,QAAQ,EAER,6CAA6C,EAC7C,yCAAyC,EACzC,oBAAoB,EACpB,0BAA0B,EAC1B,4BAA4B,EAC5B,sBAAsB,EACtB,uBAAuB,EACvB,qBAAqB,EACrB,WAAW,EACX,kBAAkB,EAClB,kBAAkB,EAClB,yBAAyB,EACzB,+CAA+C,EAC/C,2CAA2C,EAC3C,iBAAiB,EACjB,sBAAsB,EACtB,wBAAwB,EACzB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAG7C,eAAO,MAAM,4BAA4B,gCAAgC,CAAC;AAC1E,eAAO,MAAM,wBAAwB,+BAA+B,CAAC;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ACpB,MAAM,GACP,EAAE,sBAAsB,GAAG,OAAO,CAAC,wBAAwB,CAAC;IAO7D,SAAS,CAAC,uBAAuB,CAAC,UAAU,EAAE,MAAM,EAAE,GAAG,MAAM;cAK/C,WAAW,CACzB,EAAE,MAAM,EAAE,KAAK,EAAE,UAAe,EAAE,EAAE,0BAA0B,EAC9D,OAAO,CAAC,EAAE,yBAAyB;;;;;;;IAuB9B,qBAAqB,CAC1B,MAAM,EAAE,0BAA0B,GACjC,OAAO,CAAC,4BAA4B,CAAC;CAGzC;AAGD,qBAAa,gCACX,SAAQ,kCACR,YAAW,yCAAyC;IAEpD,SAAS,CAAC,QAAQ,CAAC,MAAM,EAAE,mBAAmB,CAAC;gBAEnC,EACV,GAA8B,EAC9B,WAAW,EACX,MAAM,EACN,MAAM,GACP,EAAE,6CAA6C;IAKnC,UAAU,IAAI,OAAO,CAAC,oBAAoB,CAAC;IAY3C,cAAc,CAAC,EAC1B,MAAM,EACN,UAAe,GAChB,EAAE,sBAAsB,GAAG,OAAO,CAAC,wBAAwB,CAAC;IAShD,qBAAqB,CAChC,MAAM,EAAE,0BAA0B,GACjC,OAAO,CAAC,4BAA4B,CAAC;CAMzC"}
@@ -14,7 +14,7 @@
14
14
  * You should have received a copy of the GNU Affero General Public License
15
15
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
16
16
  */
17
- import { TurboAbortSignal, TurboAuthenticatedUploadServiceConfiguration, TurboAuthenticatedUploadServiceInterface, TurboFileFactory, TurboLogger, TurboSignedDataItemFactory, TurboUnauthenticatedUploadServiceConfiguration, TurboUnauthenticatedUploadServiceInterface, TurboUploadDataItemResponse, TurboWalletSigner } from '../types.js';
17
+ import { TurboAbortSignal, TurboAuthenticatedUploadServiceConfiguration, TurboAuthenticatedUploadServiceInterface, TurboDataItemSigner, TurboFileFactory, TurboLogger, TurboSignedDataItemFactory, TurboUnauthenticatedUploadServiceConfiguration, TurboUnauthenticatedUploadServiceInterface, TurboUploadDataItemResponse } from '../types.js';
18
18
  import { TurboHTTPService } from './http.js';
19
19
  export declare const developmentUploadServiceURL = "https://upload.ardrive.dev";
20
20
  export declare const defaultUploadServiceURL = "https://upload.ardrive.io";
@@ -25,7 +25,7 @@ export declare class TurboUnauthenticatedUploadService implements TurboUnauthent
25
25
  uploadSignedDataItem({ dataItemStreamFactory, dataItemSizeFactory, signal, }: TurboSignedDataItemFactory & TurboAbortSignal): Promise<TurboUploadDataItemResponse>;
26
26
  }
27
27
  export declare class TurboAuthenticatedUploadService extends TurboUnauthenticatedUploadService implements TurboAuthenticatedUploadServiceInterface {
28
- protected signer: TurboWalletSigner;
28
+ protected signer: TurboDataItemSigner;
29
29
  constructor({ url, retryConfig, signer, logger, }: TurboAuthenticatedUploadServiceConfiguration);
30
30
  uploadFile({ fileStreamFactory, fileSizeFactory, signal, dataItemOpts, }: TurboFileFactory & TurboAbortSignal): Promise<TurboUploadDataItemResponse>;
31
31
  }
@@ -1 +1 @@
1
- {"version":3,"file":"upload.d.ts","sourceRoot":"","sources":["../../../src/common/upload.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,OAAO,EACL,gBAAgB,EAChB,4CAA4C,EAC5C,wCAAwC,EACxC,gBAAgB,EAChB,WAAW,EACX,0BAA0B,EAC1B,8CAA8C,EAC9C,0CAA0C,EAC1C,2BAA2B,EAC3B,iBAAiB,EAClB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAG7C,eAAO,MAAM,2BAA2B,+BAA+B,CAAC;AACxE,eAAO,MAAM,uBAAuB,8BAA8B,CAAC;AAEnE,qBAAa,iCACX,YAAW,0CAA0C;IAErD,SAAS,CAAC,WAAW,EAAE,gBAAgB,CAAC;IACxC,SAAS,CAAC,MAAM,EAAE,WAAW,CAAC;gBAElB,EACV,GAA6B,EAC7B,WAAW,EACX,MAAiC,GAClC,EAAE,8CAA8C;IAS3C,oBAAoB,CAAC,EACzB,qBAAqB,EACrB,mB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;gBAE1B,EACV,GAA6B,EAC7B,WAAW,EACX,MAAM,EACN,MAAM,GACP,EAAE,4CAA4C;IAKzC,UAAU,CAAC,EACf,iBAAiB,EACjB,eAAe,EACf,MAAM,EACN,YAAY,GACb,EAAE,gBAAgB,GACjB,gBAAgB,GAAG,OAAO,CAAC,2BAA2B,CAAC;CAqB1D"}
@@ -1,23 +1,7 @@
1
- /**
2
- * Copyright (C) 2022-2023 Permanent Data Solutions, Inc. All Rights Reserved.
3
- *
4
- * This program is free software: you can redistribute it and/or modify
5
- * it under the terms of the GNU Affero General Public License as published by
6
- * the Free Software Foundation, either version 3 of the License, or
7
- * (at your option) any later version.
8
- *
9
- * This program is distributed in the hope that it will be useful,
10
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
11
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
- * GNU Affero General Public License for more details.
13
- *
14
- * You should have received a copy of the GNU Affero General Public License
15
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
16
- */
17
1
  import { TurboBaseFactory } from '../common/factory.js';
18
2
  import { TurboAuthenticatedClient } from '../common/index.js';
19
3
  import { TurboAuthenticatedConfiguration } from '../types.js';
20
4
  export declare class TurboFactory extends TurboBaseFactory {
21
- static authenticated({ privateKey, paymentServiceConfig, uploadServiceConfig, }: TurboAuthenticatedConfiguration): TurboAuthenticatedClient;
5
+ static authenticated({ privateKey, signer: providedSigner, paymentServiceConfig, uploadServiceConfig, }: TurboAuthenticatedConfiguration): TurboAuthenticatedClient;
22
6
  }
23
7
  //# sourceMappingURL=factory.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"factory.d.ts","sourceRoot":"","sources":["../../../src/node/factory.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EACL,wBAAwB,EAGzB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,+BAA+B,EAAE,MAAM,aAAa,CAAC;AAG9D,qBAAa,YAAa,SAAQ,gBAAgB;IAChD,MAAM,CAAC,aAAa,CAAC,EACnB,UAAU,EACV,oBAAyB,EACzB,mBAAwB,GACzB,EAAE,+BAA+B;CAoBnC"}
1
+ {"version":3,"file":"factory.d.ts","sourceRoot":"","sources":["../../../src/node/factory.ts"],"names":[],"mappings":"AAkBA,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EACL,wBAAwB,EAGzB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,+BAA+B,EAAe,MAAM,aAAa,CAAC;AAG3E,qBAAa,YAAa,SAAQ,gBAAgB;IAChD,MAAM,CAAC,aAAa,CAAC,EACnB,UAAU,EACV,MAAM,EAAE,cAAc,EACtB,oBAAyB,EACzB,mBAAwB,GACzB,EAAE,+BAA+B;CA8BnC"}
@@ -1,30 +1,13 @@
1
1
  /// <reference types="node" />
2
- /**
3
- * Copyright (C) 2022-2023 Permanent Data Solutions, Inc. All Rights Reserved.
4
- *
5
- * This program is free software: you can redistribute it and/or modify
6
- * it under the terms of the GNU Affero General Public License as published by
7
- * the Free Software Foundation, either version 3 of the License, or
8
- * (at your option) any later version.
9
- *
10
- * This program is distributed in the hope that it will be useful,
11
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
- * GNU Affero General Public License for more details.
14
- *
15
- * You should have received a copy of the GNU Affero General Public License
16
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
17
- */
18
- import { ArweaveSigner } from 'arbundles';
19
2
  import { Readable } from 'node:stream';
20
3
  import { JWKInterface } from '../common/jwk.js';
21
- import { DataItemOptions, StreamSizeFactory, TurboLogger, TurboWalletSigner } from '../types.js';
22
- export declare class TurboNodeArweaveSigner implements TurboWalletSigner {
4
+ import { DataItemOptions, StreamSizeFactory, TurboDataItemSigner, TurboLogger, TurboSigner } from '../types.js';
5
+ export declare class TurboNodeArweaveSigner implements TurboDataItemSigner {
23
6
  protected privateKey: JWKInterface;
24
- protected signer: ArweaveSigner;
7
+ protected signer: TurboSigner;
25
8
  protected logger: TurboLogger;
26
- constructor({ privateKey, logger, }: {
27
- privateKey: JWKInterface;
9
+ constructor({ signer, logger, }: {
10
+ signer: TurboSigner;
28
11
  logger: TurboLogger;
29
12
  });
30
13
  signDataItem({ fileStreamFactory, fileSizeFactory, dataItemOpts, }: {
@@ -1 +1 @@
1
- {"version":3,"file":"signer.d.ts","sourceRoot":"","sources":["../../../src/node/signer.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;AACH,OAAO,EAAE,aAAa,EAA+B,MAAM,WAAW,CAAC;AAGvE,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EACL,eAAe,EACf,iBAAiB,EACjB,WAAW,EACX,iBAAiB,EAClB,MAAM,aAAa,CAAC;AAGrB,qBAAa,sBAAuB,YAAW,iBAAiB;IAC9D,SAAS,CAAC,UAAU,EAAE,YAAY,CAAC;IACnC,SAAS,CAAC,MAAM,EAAE,aAAa,CAAC;IAChC,SAAS,CAAC,MAAM,EAAE,WAAW,CAAC;gBAElB,EACV,UAAU,EACV,MAAM,GACP,EAAE;QACD,UAAU,EAAE,YAAY,CAAC;QACzB,MAAM,EAAE,WAAW,CAAC;KACrB;IAMK,YAAY,CAAC,EACjB,iBAAiB,EACjB,eAAe,EACf,YAAY,GACb,EAAE;QACD,iBAAiB,EAAE,MAAM,QAAQ,CAAC;QAClC,eAAe,EAAE,iBAAiB,CAAC;QACnC,YAAY,CAAC,EAAE,eAAe,CAAC;KAChC,GAAG,OAAO,CAAC;QACV,qBAAqB,EAAE,MAAM,QAAQ,CAAC;QACtC,mBAAmB,EAAE,iBAAiB,CAAC;KACxC,CAAC;IAwBI,4BAA4B;;;;;IAclC,OAAO,CAAC,8BAA8B;CAkCvC"}
1
+ {"version":3,"file":"signer.d.ts","sourceRoot":"","sources":["../../../src/node/signer.ts"],"names":[],"mappings":";AAkBA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EACL,eAAe,EACf,iBAAiB,EACjB,mBAAmB,EACnB,WAAW,EACX,WAAW,EACZ,MAAM,aAAa,CAAC;AAGrB,qBAAa,sBAAuB,YAAW,mBAAmB;IAChE,SAAS,CAAC,UAAU,EAAE,YAAY,CAAC;IACnC,SAAS,CAAC,MAAM,EAAE,WAAW,CAAC;IAC9B,SAAS,CAAC,MAAM,EAAE,WAAW,CAAC;gBAClB,EACV,MAAM,EACN,MAAM,GACP,EAAE;QACD,MAAM,EAAE,WAAW,CAAC;QACpB,MAAM,EAAE,WAAW,CAAC;KACrB;IAKK,YAAY,CAAC,EACjB,iBAAiB,EACjB,eAAe,EACf,YAAY,GACb,EAAE;QACD,iBAAiB,EAAE,MAAM,QAAQ,CAAC;QAClC,eAAe,EAAE,iBAAiB,CAAC;QACnC,YAAY,CAAC,EAAE,eAAe,CAAC;KAChC,GAAG,OAAO,CAAC;QACV,qBAAqB,EAAE,MAAM,QAAQ,CAAC;QACtC,mBAAmB,EAAE,iBAAiB,CAAC;KACxC,CAAC;IAwBI,4BAA4B;;;;;IAclC,OAAO,CAAC,8BAA8B;CAkCvC"}
@@ -17,7 +17,7 @@
17
17
  * You should have received a copy of the GNU Affero General Public License
18
18
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
19
19
  */
20
- import { DataItemCreateOptions } from 'arbundles';
20
+ import { ArconnectSigner, ArweaveSigner, DataItemCreateOptions } from 'arbundles';
21
21
  import { IAxiosRetryConfig } from 'axios-retry';
22
22
  import { Readable } from 'node:stream';
23
23
  import { ReadableStream } from 'node:stream/web';
@@ -95,7 +95,7 @@ export type TurboSignedRequestHeaders = {
95
95
  'x-signature': string;
96
96
  };
97
97
  type TurboAuthConfiguration = {
98
- signer: TurboWalletSigner;
98
+ signer: TurboDataItemSigner;
99
99
  };
100
100
  type TurboServiceConfiguration = {
101
101
  url?: string;
@@ -119,8 +119,10 @@ export interface TurboLogger {
119
119
  debug: (message: string, ...args: any[]) => void;
120
120
  }
121
121
  export type DataItemOptions = DataItemCreateOptions;
122
+ export type TurboSigner = ArconnectSigner | ArweaveSigner;
122
123
  export type TurboAuthenticatedConfiguration = TurboUnauthenticatedConfiguration & {
123
- privateKey: TurboWallet;
124
+ privateKey?: TurboWallet;
125
+ signer?: TurboSigner;
124
126
  };
125
127
  export type TurboUnauthenticatedClientConfiguration = {
126
128
  paymentService: TurboUnauthenticatedPaymentServiceInterface;
@@ -162,7 +164,7 @@ export interface TurboHTTPServiceInterface {
162
164
  data: Readable | ReadableStream | Buffer;
163
165
  }): Promise<T>;
164
166
  }
165
- export interface TurboWalletSigner {
167
+ export interface TurboDataItemSigner {
166
168
  signDataItem({ fileStreamFactory, fileSizeFactory, dataItemOpts, }: TurboFileFactory): Promise<TurboSignedDataItemFactory>;
167
169
  generateSignedRequestHeaders(): Promise<TurboSignedRequestHeaders>;
168
170
  }
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;GAeG;AACH,OAAO,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAC;AAClD,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAEjD,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC;AAClC,MAAM,MAAM,oBAAoB,GAAG,YAAY,CAAC;AACh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AA2B,CAAC,CAAC;CAC3D;AAED,MAAM,WAAW,wCACf,SAAQ,0CAA0C;IAClD,UAAU,CAAC,EACT,iBAAiB,EACjB,eAAe,GAChB,EAAE,gBAAgB,GAAG,gBAAgB,GAAG,OAAO,CAAC,2BAA2B,CAAC,CAAC;CAC/E;AAED,MAAM,WAAW,mCACf,SAAQ,2CAA2C,EACjD,0CAA0C;CAAG;AACjD,MAAM,WAAW,iCACf,SAAQ,yCAAyC,EAC/C,wCAAwC;CAAG"}
@@ -14,5 +14,5 @@
14
14
  * You should have received a copy of the GNU Affero General Public License
15
15
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
16
16
  */
17
- export declare const version = "1.2.0-alpha.1";
17
+ export declare const version = "1.3.0-alpha.1";
18
18
  //# sourceMappingURL=version.d.ts.map
@@ -1,23 +1,7 @@
1
- /**
2
- * Copyright (C) 2022-2023 Permanent Data Solutions, Inc. All Rights Reserved.
3
- *
4
- * This program is free software: you can redistribute it and/or modify
5
- * it under the terms of the GNU Affero General Public License as published by
6
- * the Free Software Foundation, either version 3 of the License, or
7
- * (at your option) any later version.
8
- *
9
- * This program is distributed in the hope that it will be useful,
10
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
11
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
- * GNU Affero General Public License for more details.
13
- *
14
- * You should have received a copy of the GNU Affero General Public License
15
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
16
- */
17
1
  import { TurboBaseFactory } from '../common/factory.js';
18
2
  import { TurboAuthenticatedClient } from '../common/index.js';
19
3
  import { TurboAuthenticatedConfiguration } from '../types.js';
20
4
  export declare class TurboFactory extends TurboBaseFactory {
21
- static authenticated({ privateKey, paymentServiceConfig, uploadServiceConfig, }: TurboAuthenticatedConfiguration): TurboAuthenticatedClient;
5
+ static authenticated({ privateKey, signer: providedSigner, paymentServiceConfig, uploadServiceConfig, }: TurboAuthenticatedConfiguration): TurboAuthenticatedClient;
22
6
  }
23
7
  //# sourceMappingURL=factory.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"factory.d.ts","sourceRoot":"","sources":["../../../src/web/factory.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EACL,wBAAwB,EAGzB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,+BAA+B,EAAE,MAAM,aAAa,CAAC;AAG9D,qBAAa,YAAa,SAAQ,gBAAgB;IAChD,MAAM,CAAC,aAAa,CAAC,EACnB,UAAU,EACV,oBAAyB,EACzB,mBAAwB,GACzB,EAAE,+BAA+B;CAoBnC"}
1
+ {"version":3,"file":"factory.d.ts","sourceRoot":"","sources":["../../../src/web/factory.ts"],"names":[],"mappings":"AAkBA,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EACL,wBAAwB,EAGzB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,+BAA+B,EAAe,MAAM,aAAa,CAAC;AAG3E,qBAAa,YAAa,SAAQ,gBAAgB;IAChD,MAAM,CAAC,aAAa,CAAC,EACnB,UAAU,EACV,MAAM,EAAE,cAAc,EACtB,oBAAyB,EACzB,mBAAwB,GACzB,EAAE,+BAA+B;CA8BnC"}