@ardrive/turbo-sdk 1.41.3 → 1.42.0-alpha.10

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.
Files changed (97) hide show
  1. package/lib/cjs/cli/cli.js +61 -0
  2. package/lib/cjs/cli/commands/arns.js +317 -0
  3. package/lib/cjs/cli/commands/freeStatus.js +47 -0
  4. package/lib/cjs/cli/commands/index.js +3 -0
  5. package/lib/cjs/cli/commands/paymentHistory.js +25 -0
  6. package/lib/cjs/cli/options.js +124 -11
  7. package/lib/cjs/cli/utils.js +3 -19
  8. package/lib/cjs/common/arnsActions.js +102 -0
  9. package/lib/cjs/common/factory.js +1 -3
  10. package/lib/cjs/common/http.js +20 -5
  11. package/lib/cjs/common/index.js +6 -0
  12. package/lib/cjs/common/payment.js +482 -3
  13. package/lib/cjs/common/signer.js +27 -6
  14. package/lib/cjs/common/token/ario.js +104 -83
  15. package/lib/cjs/common/token/index.js +0 -11
  16. package/lib/cjs/common/token/solana.js +1 -0
  17. package/lib/cjs/common/turbo.js +131 -0
  18. package/lib/cjs/common/upload.js +3 -2
  19. package/lib/cjs/node/factory.js +1 -3
  20. package/lib/cjs/types.js +44 -3
  21. package/lib/cjs/utils/common.js +5 -21
  22. package/lib/cjs/utils/errors.js +38 -1
  23. package/lib/cjs/utils/uuid.js +31 -0
  24. package/lib/cjs/web/factory.js +1 -3
  25. package/lib/cjs/web/signer.js +4 -2
  26. package/lib/esm/cli/cli.js +63 -2
  27. package/lib/esm/cli/commands/arns.js +300 -0
  28. package/lib/esm/cli/commands/freeStatus.js +44 -0
  29. package/lib/esm/cli/commands/index.js +3 -0
  30. package/lib/esm/cli/commands/paymentHistory.js +22 -0
  31. package/lib/esm/cli/options.js +123 -10
  32. package/lib/esm/cli/utils.js +4 -20
  33. package/lib/esm/common/arnsActions.js +93 -0
  34. package/lib/esm/common/factory.js +1 -3
  35. package/lib/esm/common/http.js +19 -4
  36. package/lib/esm/common/index.js +6 -0
  37. package/lib/esm/common/payment.js +482 -3
  38. package/lib/esm/common/signer.js +28 -7
  39. package/lib/esm/common/token/ario.js +102 -84
  40. package/lib/esm/common/token/index.js +1 -12
  41. package/lib/esm/common/token/solana.js +1 -0
  42. package/lib/esm/common/turbo.js +131 -0
  43. package/lib/esm/common/upload.js +4 -3
  44. package/lib/esm/node/factory.js +1 -3
  45. package/lib/esm/types.js +43 -2
  46. package/lib/esm/utils/common.js +4 -20
  47. package/lib/esm/utils/errors.js +35 -0
  48. package/lib/esm/utils/uuid.js +28 -0
  49. package/lib/esm/web/factory.js +1 -3
  50. package/lib/esm/web/signer.js +4 -2
  51. package/lib/types/cli/commands/arns.d.ts +86 -0
  52. package/lib/types/cli/commands/arns.d.ts.map +1 -0
  53. package/lib/types/cli/commands/freeStatus.d.ts +3 -0
  54. package/lib/types/cli/commands/freeStatus.d.ts.map +1 -0
  55. package/lib/types/cli/commands/index.d.ts +3 -0
  56. package/lib/types/cli/commands/index.d.ts.map +1 -1
  57. package/lib/types/cli/commands/paymentHistory.d.ts +18 -0
  58. package/lib/types/cli/commands/paymentHistory.d.ts.map +1 -0
  59. package/lib/types/cli/options.d.ts +238 -10
  60. package/lib/types/cli/options.d.ts.map +1 -1
  61. package/lib/types/cli/types.d.ts +41 -2
  62. package/lib/types/cli/types.d.ts.map +1 -1
  63. package/lib/types/cli/utils.d.ts.map +1 -1
  64. package/lib/types/common/arnsActions.d.ts +43 -0
  65. package/lib/types/common/arnsActions.d.ts.map +1 -0
  66. package/lib/types/common/factory.d.ts +1 -1
  67. package/lib/types/common/factory.d.ts.map +1 -1
  68. package/lib/types/common/http.d.ts +14 -1
  69. package/lib/types/common/http.d.ts.map +1 -1
  70. package/lib/types/common/index.d.ts +2 -0
  71. package/lib/types/common/index.d.ts.map +1 -1
  72. package/lib/types/common/payment.d.ts +230 -1
  73. package/lib/types/common/payment.d.ts.map +1 -1
  74. package/lib/types/common/signer.d.ts +12 -6
  75. package/lib/types/common/signer.d.ts.map +1 -1
  76. package/lib/types/common/token/ario.d.ts +13 -9
  77. package/lib/types/common/token/ario.d.ts.map +1 -1
  78. package/lib/types/common/token/index.d.ts.map +1 -1
  79. package/lib/types/common/token/solana.d.ts.map +1 -1
  80. package/lib/types/common/turbo.d.ts +140 -1
  81. package/lib/types/common/turbo.d.ts.map +1 -1
  82. package/lib/types/common/upload.d.ts.map +1 -1
  83. package/lib/types/node/factory.d.ts +1 -1
  84. package/lib/types/node/factory.d.ts.map +1 -1
  85. package/lib/types/types.d.ts +483 -7
  86. package/lib/types/types.d.ts.map +1 -1
  87. package/lib/types/utils/common.d.ts +0 -12
  88. package/lib/types/utils/common.d.ts.map +1 -1
  89. package/lib/types/utils/errors.d.ts +29 -0
  90. package/lib/types/utils/errors.d.ts.map +1 -1
  91. package/lib/types/utils/uuid.d.ts +7 -0
  92. package/lib/types/utils/uuid.d.ts.map +1 -0
  93. package/lib/types/web/factory.d.ts +1 -1
  94. package/lib/types/web/factory.d.ts.map +1 -1
  95. package/lib/types/web/signer.d.ts +1 -1
  96. package/lib/types/web/signer.d.ts.map +1 -1
  97. package/package.json +3 -2
@@ -0,0 +1,28 @@
1
+ /**
2
+ * Copyright (C) 2022-2024 Permanent Data Solutions, Inc.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { randomBytes } from 'crypto';
17
+ /**
18
+ * RFC 4122 version 4 UUID, derived from `randomBytes` (already used across the
19
+ * SDK in both the node and web builds). Avoids depending on
20
+ * `crypto.randomUUID`, whose availability varies by runtime/polyfill.
21
+ */
22
+ export function uuidV4() {
23
+ const bytes = randomBytes(16);
24
+ bytes[6] = (bytes[6] & 0x0f) | 0x40; // version 4
25
+ bytes[8] = (bytes[8] & 0x3f) | 0x80; // RFC 4122 variant
26
+ const hex = bytes.toString('hex');
27
+ return `${hex.slice(0, 8)}-${hex.slice(8, 12)}-${hex.slice(12, 16)}-${hex.slice(16, 20)}-${hex.slice(20)}`;
28
+ }
@@ -34,7 +34,7 @@ export class TurboFactory extends TurboBaseFactory {
34
34
  // Import the TurboAuthenticatedUploadService class from the web upload module
35
35
  return new TurboAuthenticatedUploadService(config);
36
36
  }
37
- static authenticated({ privateKey, signer: providedSigner, paymentServiceConfig = {}, uploadServiceConfig = {}, token, gatewayUrl, tokenMap, tokenTools, walletAdapter, cuUrl, processId, }) {
37
+ static authenticated({ privateKey, signer: providedSigner, paymentServiceConfig = {}, uploadServiceConfig = {}, token, gatewayUrl, tokenMap, tokenTools, walletAdapter, }) {
38
38
  return new TurboFactory().getAuthenticatedTurbo({
39
39
  privateKey,
40
40
  signer: providedSigner,
@@ -46,8 +46,6 @@ export class TurboFactory extends TurboBaseFactory {
46
46
  tokenTools,
47
47
  logger: this.logger,
48
48
  walletAdapter,
49
- cuUrl,
50
- processId,
51
49
  });
52
50
  }
53
51
  }
@@ -59,9 +59,11 @@ export class TurboWebArweaveSigner extends TurboDataItemAbstractSigner {
59
59
  dataItemSizeFactory: () => signedDataItemSize,
60
60
  };
61
61
  }
62
- async generateSignedRequestHeaders() {
62
+ async generateSignedRequestHeaders(nonce, additionalData) {
63
63
  await this.setPublicKey();
64
- return super.generateSignedRequestHeaders();
64
+ // Pass through the caller's nonce + action-binding data (previously dropped,
65
+ // which would override a route-required UUID nonce and the H-2 binding).
66
+ return super.generateSignedRequestHeaders(nonce, additionalData);
65
67
  }
66
68
  async signData(dataToSign) {
67
69
  await this.setPublicKey();
@@ -0,0 +1,86 @@
1
+ import { ArNSFiatPurchaseQuoteParams, ArNSFiatPurchaseQuoteResponse, ArNSNameType, ArNSPriceParams, ArNSPriceResponse, ArNSPurchaseStatusResponse } from '../../types.js';
2
+ import { ArNSActionCompleted, ArNSOwnerSigner } from '../../types.js';
3
+ import { ArNSFiatQuoteOptions, ArNSPriceOptions, ArNSPurchaseOptions, ArNSPurchaseStatusOptions, RemoveArNSRecordOptions, SetArNSRecordOptions, TransferArNSAntOptions } from '../types.js';
4
+ export type ArNSPriceClient = {
5
+ getArNSPriceForName(params: ArNSPriceParams): Promise<ArNSPriceResponse>;
6
+ };
7
+ export type ArNSStatusClient = {
8
+ getArNSPurchaseStatus(p: {
9
+ nonce: string;
10
+ }): Promise<ArNSPurchaseStatusResponse>;
11
+ };
12
+ export type ArNSPurchaseClient = {
13
+ buyArNSName(params: {
14
+ name: string;
15
+ owner: ArNSOwnerSigner;
16
+ type?: ArNSNameType;
17
+ years?: number;
18
+ paidBy?: string[];
19
+ }): Promise<ArNSActionCompleted>;
20
+ extendArNSLease(params: {
21
+ name: string;
22
+ years: number;
23
+ paidBy?: string[];
24
+ }): Promise<ArNSActionCompleted>;
25
+ increaseArNSUndernameLimit(params: {
26
+ name: string;
27
+ increaseQty: number;
28
+ paidBy?: string[];
29
+ }): Promise<ArNSActionCompleted>;
30
+ upgradeArNSName(params: {
31
+ name: string;
32
+ paidBy?: string[];
33
+ }): Promise<ArNSActionCompleted>;
34
+ };
35
+ export type ArNSCustodyClient = {
36
+ transferArNSAnt(params: {
37
+ antId: string;
38
+ owner: ArNSOwnerSigner;
39
+ target: string;
40
+ }): Promise<ArNSActionCompleted>;
41
+ setArNSRecord(params: {
42
+ antId: string;
43
+ owner: ArNSOwnerSigner;
44
+ transactionId: string;
45
+ undername?: string;
46
+ ttlSeconds?: number;
47
+ }): Promise<ArNSActionCompleted>;
48
+ removeArNSRecord(params: {
49
+ antId: string;
50
+ owner: ArNSOwnerSigner;
51
+ undername: string;
52
+ }): Promise<ArNSActionCompleted>;
53
+ };
54
+ export declare function requiredNameFromOptions(options: {
55
+ name?: string;
56
+ }): string;
57
+ export declare function positiveIntFromOption(value: string | undefined, flag: string): number;
58
+ export declare function typeFromOptions(value: string | undefined): ArNSNameType;
59
+ export declare function paidByFromArNSOptions(paidBy: string[] | undefined): string[] | undefined;
60
+ /**
61
+ * Infer the ArNS pricing intent from the provided flags:
62
+ * - `--type` present -> Buy-Name (lease needs --years; --process-id optional for pricing)
63
+ * - `--increase-qty` present -> Increase-Undername-Limit
64
+ * - `--years` present (no type) -> Extend-Lease
65
+ * - otherwise -> Upgrade-Name
66
+ */
67
+ export declare function arnsPriceParamsFromOptions(options: ArNSPriceOptions): ArNSPriceParams;
68
+ export declare function arnsPrice(options: ArNSPriceOptions, turbo?: ArNSPriceClient): Promise<void>;
69
+ /**
70
+ * Fiat (Stripe) quote for an ArNS purchase. Read-only from the CLI's point of
71
+ * view: it records a quote and returns a Stripe session to complete elsewhere,
72
+ * so nothing is charged here.
73
+ */
74
+ export type ArNSFiatQuoteClient = {
75
+ getArNSFiatPurchaseQuote(params: ArNSFiatPurchaseQuoteParams): Promise<ArNSFiatPurchaseQuoteResponse>;
76
+ };
77
+ export declare function arnsFiatQuote(options: ArNSFiatQuoteOptions, turbo?: ArNSFiatQuoteClient): Promise<void>;
78
+ export declare function buyArNSName(options: ArNSPurchaseOptions, turbo?: ArNSPurchaseClient): Promise<void>;
79
+ export declare function extendArNSLease(options: ArNSPurchaseOptions, turbo?: ArNSPurchaseClient): Promise<void>;
80
+ export declare function increaseArNSUndernames(options: ArNSPurchaseOptions, turbo?: ArNSPurchaseClient): Promise<void>;
81
+ export declare function upgradeArNSName(options: ArNSPurchaseOptions, turbo?: ArNSPurchaseClient): Promise<void>;
82
+ export declare function arnsPurchaseStatus(options: ArNSPurchaseStatusOptions, turbo?: ArNSStatusClient): Promise<void>;
83
+ export declare function transferArNSAnt(options: TransferArNSAntOptions, turbo?: ArNSCustodyClient): Promise<void>;
84
+ export declare function setArNSRecord(options: SetArNSRecordOptions, turbo?: ArNSCustodyClient): Promise<void>;
85
+ export declare function removeArNSRecord(options: RemoveArNSRecordOptions, turbo?: ArNSCustodyClient): Promise<void>;
86
+ //# sourceMappingURL=arns.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"arns.d.ts","sourceRoot":"","sources":["../../../../src/cli/commands/arns.ts"],"names":[],"mappings":"AAmBA,OAAO,EACL,2BAA2B,EAC3B,6BAA6B,EAC7B,YAAY,EACZ,eAAe,EACf,iBAAiB,EACjB,0BAA0B,EAE3B,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAMtE,OAAO,EACL,oBAAoB,EACpB,gBAAgB,EAChB,mBAAmB,EACnB,yBAAyB,EACzB,uBAAuB,EACvB,oBAAoB,EACpB,sBAAsB,EACvB,MAAM,aAAa,CAAC;AAyBrB,MAAM,MAAM,eAAe,GAAG;IAC5B,mBAAmB,CAAC,MAAM,EAAE,eAAe,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC;CAC1E,CAAC;AACF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,qBAAqB,CAAC,CAAC,EAAE;QACvB,KAAK,EAAE,MAAM,CAAC;KACf,GAAG,OAAO,CAAC,0BAA0B,CAAC,CAAC;CACzC,CAAC;AACF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,WAAW,CAAC,MAAM,EAAE;QAClB,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,EAAE,eAAe,CAAC;QACvB,IAAI,CAAC,EAAE,YAAY,CAAC;QACpB,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;KACnB,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC;IACjC,eAAe,CAAC,MAAM,EAAE;QACtB,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,EAAE,MAAM,CAAC;QACd,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;KACnB,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC;IACjC,0BAA0B,C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kBf;AAED,wBAAsB,aAAa,CACjC,OAAO,EAAE,oBAAoB,EAC7B,KAAK,CAAC,EAAE,iBAAiB,GACxB,OAAO,CAAC,IAAI,CAAC,CAqBf;AAED,wBAAsB,gBAAgB,CACpC,OAAO,EAAE,uBAAuB,EAChC,KAAK,CAAC,EAAE,iBAAiB,GACxB,OAAO,CAAC,IAAI,CAAC,CAkBf"}
@@ -0,0 +1,3 @@
1
+ import { AddressOptions } from '../types.js';
2
+ export declare function freeStatus(options: AddressOptions): Promise<void>;
3
+ //# sourceMappingURL=freeStatus.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"freeStatus.d.ts","sourceRoot":"","sources":["../../../../src/cli/commands/freeStatus.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAG7C,wBAAsB,UAAU,CAAC,OAAO,EAAE,cAAc,iBA8BvD"}
@@ -13,8 +13,11 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
+ export * from './arns.js';
16
17
  export * from './balance.js';
17
18
  export * from './cryptoFund.js';
19
+ export * from './freeStatus.js';
20
+ export * from './paymentHistory.js';
18
21
  export * from './price.js';
19
22
  export * from './topUp.js';
20
23
  export * from './uploadFile.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/cli/commands/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/cli/commands/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC"}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Copyright (C) 2022-2024 Permanent Data Solutions, Inc.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { PaymentHistoryOptions } from '../types.js';
17
+ export declare function paymentHistory(options: PaymentHistoryOptions): Promise<void>;
18
+ //# sourceMappingURL=paymentHistory.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"paymentHistory.d.ts","sourceRoot":"","sources":["../../../../src/cli/commands/paymentHistory.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAGpD,wBAAsB,cAAc,CAAC,OAAO,EAAE,qBAAqB,iBA4BlE"}
@@ -73,16 +73,6 @@ export declare const optionMap: {
73
73
  readonly description: "Set a custom payment service URL";
74
74
  readonly default: undefined;
75
75
  };
76
- readonly processId: {
77
- readonly alias: "--process-id <processId>";
78
- readonly description: "Set a custom target process ID for the action";
79
- readonly default: undefined;
80
- };
81
- readonly cuUrl: {
82
- readonly alias: "--cu-url <cuUrl>";
83
- readonly description: "Set a custom CU URL for the action";
84
- readonly default: undefined;
85
- };
86
76
  readonly dev: {
87
77
  readonly alias: "--dev";
88
78
  readonly description: "Enable Turbo development endpoints";
@@ -196,6 +186,58 @@ export declare const optionMap: {
196
186
  readonly alias: "--max-crypto-top-up-value <maxCryptoTopUpValue>";
197
187
  readonly description: "Maximum crypto top-up value to use for the upload. Defaults to no limit.";
198
188
  };
189
+ readonly arnsName: {
190
+ readonly alias: "--name <name>";
191
+ readonly description: "ArNS name to price, buy, or manage";
192
+ };
193
+ readonly arnsType: {
194
+ readonly alias: "--type <type>";
195
+ readonly description: "ArNS purchase type for Buy-Name: 'lease' or 'permabuy'";
196
+ };
197
+ readonly arnsYears: {
198
+ readonly alias: "--years <years>";
199
+ readonly description: "Lease duration in years (Buy-Name lease / Extend-Lease)";
200
+ };
201
+ readonly arnsIncreaseQty: {
202
+ readonly alias: "--increase-qty <qty>";
203
+ readonly description: "Number of additional undernames (Increase-Undername-Limit)";
204
+ };
205
+ readonly arnsOwnerKey: {
206
+ readonly alias: "--owner-key <base58SolanaSecretKey>";
207
+ readonly description: "Base58 Solana secret key that OWNS the ANT and signs for it. Separate from the wallet paying in Turbo Credits — the owner needs a key to sign with, not SOL: Turbo pays every fee and rent";
208
+ };
209
+ readonly arnsNonce: {
210
+ readonly alias: "--nonce <nonce>";
211
+ readonly description: "ArNS purchase nonce to look up the status for";
212
+ };
213
+ readonly arnsAntId: {
214
+ readonly alias: "--ant-id <antId>";
215
+ readonly description: "ANT (Metaplex Core asset) ID to transfer or manage";
216
+ };
217
+ readonly arnsTarget: {
218
+ readonly alias: "--target <address>";
219
+ readonly description: "Target Solana pubkey to transfer the ANT to";
220
+ };
221
+ readonly arnsUndername: {
222
+ readonly alias: "--undername <undername>";
223
+ readonly description: "ArNS undername record to set or remove (defaults to '@')";
224
+ };
225
+ readonly arnsTransactionId: {
226
+ readonly alias: "--transaction-id <transactionId>";
227
+ readonly description: "Arweave transaction ID the ArNS record resolves to";
228
+ };
229
+ readonly arnsTtlSeconds: {
230
+ readonly alias: "--ttl-seconds <ttlSeconds>";
231
+ readonly description: "TTL in seconds for the ArNS record";
232
+ };
233
+ readonly limit: {
234
+ readonly alias: "--limit <limit>";
235
+ readonly description: "Max number of payment-history rows to return (1-100, default 50)";
236
+ };
237
+ readonly cursor: {
238
+ readonly alias: "--cursor <cursor>";
239
+ readonly description: "Opaque pagination cursor from a prior payment-history response";
240
+ };
199
241
  };
200
242
  export declare const walletOptions: ({
201
243
  readonly alias: "-w, --wallet-file <filePath>";
@@ -479,4 +521,190 @@ export declare const listSharesOptions: ({
479
521
  readonly alias: "-p, --private-key <key>";
480
522
  readonly description: "Private key to use with the action";
481
523
  })[];
524
+ export declare const arnsPriceOptions: ({
525
+ readonly alias: "--name <name>";
526
+ readonly description: "ArNS name to price, buy, or manage";
527
+ } | {
528
+ readonly alias: "--type <type>";
529
+ readonly description: "ArNS purchase type for Buy-Name: 'lease' or 'permabuy'";
530
+ } | {
531
+ readonly alias: "--years <years>";
532
+ readonly description: "Lease duration in years (Buy-Name lease / Extend-Lease)";
533
+ } | {
534
+ readonly alias: "--increase-qty <qty>";
535
+ readonly description: "Number of additional undernames (Increase-Undername-Limit)";
536
+ })[];
537
+ export declare const arnsFiatQuoteOptions: ({
538
+ readonly alias: "-c, --currency <currency>";
539
+ readonly description: "Fiat currency type to use for the action";
540
+ readonly default: "usd";
541
+ } | {
542
+ readonly alias: "-a, --address <nativeAddress>";
543
+ readonly description: "Native address to use for action";
544
+ } | {
545
+ readonly alias: "--name <name>";
546
+ readonly description: "ArNS name to price, buy, or manage";
547
+ } | {
548
+ readonly alias: "--type <type>";
549
+ readonly description: "ArNS purchase type for Buy-Name: 'lease' or 'permabuy'";
550
+ } | {
551
+ readonly alias: "--years <years>";
552
+ readonly description: "Lease duration in years (Buy-Name lease / Extend-Lease)";
553
+ } | {
554
+ readonly alias: "--increase-qty <qty>";
555
+ readonly description: "Number of additional undernames (Increase-Undername-Limit)";
556
+ } | {
557
+ alias: string;
558
+ description: string;
559
+ })[];
560
+ export declare const buyArNSNameOptions: ({
561
+ readonly alias: "-w, --wallet-file <filePath>";
562
+ readonly description: "Wallet file to use with the action. Formats accepted: JWK.json, KYVE or ETH private key as a string, or SOL Secret Key as a Uint8Array";
563
+ } | {
564
+ readonly alias: "-m, --mnemonic <phrase>";
565
+ readonly description: "Mnemonic to use with the action";
566
+ } | {
567
+ readonly alias: "-p, --private-key <key>";
568
+ readonly description: "Private key to use with the action";
569
+ } | {
570
+ readonly alias: "--paid-by <paidBy...>";
571
+ readonly description: "Address to pay for the upload";
572
+ readonly type: "array";
573
+ } | {
574
+ readonly alias: "--name <name>";
575
+ readonly description: "ArNS name to price, buy, or manage";
576
+ } | {
577
+ readonly alias: "--type <type>";
578
+ readonly description: "ArNS purchase type for Buy-Name: 'lease' or 'permabuy'";
579
+ } | {
580
+ readonly alias: "--years <years>";
581
+ readonly description: "Lease duration in years (Buy-Name lease / Extend-Lease)";
582
+ } | {
583
+ readonly alias: "--owner-key <base58SolanaSecretKey>";
584
+ readonly description: "Base58 Solana secret key that OWNS the ANT and signs for it. Separate from the wallet paying in Turbo Credits — the owner needs a key to sign with, not SOL: Turbo pays every fee and rent";
585
+ })[];
586
+ export declare const extendArNSLeaseOptions: ({
587
+ readonly alias: "-w, --wallet-file <filePath>";
588
+ readonly description: "Wallet file to use with the action. Formats accepted: JWK.json, KYVE or ETH private key as a string, or SOL Secret Key as a Uint8Array";
589
+ } | {
590
+ readonly alias: "-m, --mnemonic <phrase>";
591
+ readonly description: "Mnemonic to use with the action";
592
+ } | {
593
+ readonly alias: "-p, --private-key <key>";
594
+ readonly description: "Private key to use with the action";
595
+ } | {
596
+ readonly alias: "--paid-by <paidBy...>";
597
+ readonly description: "Address to pay for the upload";
598
+ readonly type: "array";
599
+ } | {
600
+ readonly alias: "--name <name>";
601
+ readonly description: "ArNS name to price, buy, or manage";
602
+ } | {
603
+ readonly alias: "--years <years>";
604
+ readonly description: "Lease duration in years (Buy-Name lease / Extend-Lease)";
605
+ })[];
606
+ export declare const increaseArNSUndernamesOptions: ({
607
+ readonly alias: "-w, --wallet-file <filePath>";
608
+ readonly description: "Wallet file to use with the action. Formats accepted: JWK.json, KYVE or ETH private key as a string, or SOL Secret Key as a Uint8Array";
609
+ } | {
610
+ readonly alias: "-m, --mnemonic <phrase>";
611
+ readonly description: "Mnemonic to use with the action";
612
+ } | {
613
+ readonly alias: "-p, --private-key <key>";
614
+ readonly description: "Private key to use with the action";
615
+ } | {
616
+ readonly alias: "--paid-by <paidBy...>";
617
+ readonly description: "Address to pay for the upload";
618
+ readonly type: "array";
619
+ } | {
620
+ readonly alias: "--name <name>";
621
+ readonly description: "ArNS name to price, buy, or manage";
622
+ } | {
623
+ readonly alias: "--increase-qty <qty>";
624
+ readonly description: "Number of additional undernames (Increase-Undername-Limit)";
625
+ })[];
626
+ export declare const upgradeArNSNameOptions: ({
627
+ readonly alias: "-w, --wallet-file <filePath>";
628
+ readonly description: "Wallet file to use with the action. Formats accepted: JWK.json, KYVE or ETH private key as a string, or SOL Secret Key as a Uint8Array";
629
+ } | {
630
+ readonly alias: "-m, --mnemonic <phrase>";
631
+ readonly description: "Mnemonic to use with the action";
632
+ } | {
633
+ readonly alias: "-p, --private-key <key>";
634
+ readonly description: "Private key to use with the action";
635
+ } | {
636
+ readonly alias: "--paid-by <paidBy...>";
637
+ readonly description: "Address to pay for the upload";
638
+ readonly type: "array";
639
+ } | {
640
+ readonly alias: "--name <name>";
641
+ readonly description: "ArNS name to price, buy, or manage";
642
+ })[];
643
+ export declare const arnsPurchaseStatusOptions: {
644
+ readonly alias: "--nonce <nonce>";
645
+ readonly description: "ArNS purchase nonce to look up the status for";
646
+ }[];
647
+ export declare const transferArNSAntOptions: ({
648
+ readonly alias: "-w, --wallet-file <filePath>";
649
+ readonly description: "Wallet file to use with the action. Formats accepted: JWK.json, KYVE or ETH private key as a string, or SOL Secret Key as a Uint8Array";
650
+ } | {
651
+ readonly alias: "-m, --mnemonic <phrase>";
652
+ readonly description: "Mnemonic to use with the action";
653
+ } | {
654
+ readonly alias: "-p, --private-key <key>";
655
+ readonly description: "Private key to use with the action";
656
+ } | {
657
+ readonly alias: "--owner-key <base58SolanaSecretKey>";
658
+ readonly description: "Base58 Solana secret key that OWNS the ANT and signs for it. Separate from the wallet paying in Turbo Credits — the owner needs a key to sign with, not SOL: Turbo pays every fee and rent";
659
+ } | {
660
+ readonly alias: "--ant-id <antId>";
661
+ readonly description: "ANT (Metaplex Core asset) ID to transfer or manage";
662
+ } | {
663
+ readonly alias: "--target <address>";
664
+ readonly description: "Target Solana pubkey to transfer the ANT to";
665
+ })[];
666
+ export declare const setArNSRecordOptions: ({
667
+ readonly alias: "-w, --wallet-file <filePath>";
668
+ readonly description: "Wallet file to use with the action. Formats accepted: JWK.json, KYVE or ETH private key as a string, or SOL Secret Key as a Uint8Array";
669
+ } | {
670
+ readonly alias: "-m, --mnemonic <phrase>";
671
+ readonly description: "Mnemonic to use with the action";
672
+ } | {
673
+ readonly alias: "-p, --private-key <key>";
674
+ readonly description: "Private key to use with the action";
675
+ } | {
676
+ readonly alias: "--owner-key <base58SolanaSecretKey>";
677
+ readonly description: "Base58 Solana secret key that OWNS the ANT and signs for it. Separate from the wallet paying in Turbo Credits — the owner needs a key to sign with, not SOL: Turbo pays every fee and rent";
678
+ } | {
679
+ readonly alias: "--ant-id <antId>";
680
+ readonly description: "ANT (Metaplex Core asset) ID to transfer or manage";
681
+ } | {
682
+ readonly alias: "--undername <undername>";
683
+ readonly description: "ArNS undername record to set or remove (defaults to '@')";
684
+ } | {
685
+ readonly alias: "--transaction-id <transactionId>";
686
+ readonly description: "Arweave transaction ID the ArNS record resolves to";
687
+ } | {
688
+ readonly alias: "--ttl-seconds <ttlSeconds>";
689
+ readonly description: "TTL in seconds for the ArNS record";
690
+ })[];
691
+ export declare const removeArNSRecordOptions: ({
692
+ readonly alias: "-w, --wallet-file <filePath>";
693
+ readonly description: "Wallet file to use with the action. Formats accepted: JWK.json, KYVE or ETH private key as a string, or SOL Secret Key as a Uint8Array";
694
+ } | {
695
+ readonly alias: "-m, --mnemonic <phrase>";
696
+ readonly description: "Mnemonic to use with the action";
697
+ } | {
698
+ readonly alias: "-p, --private-key <key>";
699
+ readonly description: "Private key to use with the action";
700
+ } | {
701
+ readonly alias: "--owner-key <base58SolanaSecretKey>";
702
+ readonly description: "Base58 Solana secret key that OWNS the ANT and signs for it. Separate from the wallet paying in Turbo Credits — the owner needs a key to sign with, not SOL: Turbo pays every fee and rent";
703
+ } | {
704
+ readonly alias: "--ant-id <antId>";
705
+ readonly description: "ANT (Metaplex Core asset) ID to transfer or manage";
706
+ } | {
707
+ readonly alias: "--undername <undername>";
708
+ readonly description: "ArNS undername record to set or remove (defaults to '@')";
709
+ })[];
482
710
  //# sourceMappingURL=options.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../../src/cli/options.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoMZ,CAAC;AAEX,eAAO,MAAM,aAAa;;;;;;;;;IAIzB,CAAC;AAEF,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAUzB,CAAC;AASF,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAYzB,CAAC;AAEF,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAO/B,CAAC;AAEF,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAAyC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gBAAgB;;;;;;;;;;;;IAK5B,CAAC;AAEF,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;IAgBhC,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;IAO9B,CAAC;AAEF,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;IAKlC,CAAC;AAEF,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;IAKzC,CAAC;AAEF,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;IAIlC,CAAC;AAEF,eAAO,MAAM,yBAAyB;;;GAAwB,CAAC;AAE/D,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;IAKlC,CAAC;AAEF,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;IAOhC,CAAC;AAEF,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;IAKnC,CAAC"}
@@ -24,8 +24,6 @@ export type GlobalOptions = {
24
24
  token: string;
25
25
  paymentUrl: string | undefined;
26
26
  uploadUrl: string | undefined;
27
- processId: string | undefined;
28
- cuUrl: string | undefined;
29
27
  };
30
28
  export type WalletOptions = GlobalOptions & {
31
29
  walletFile: string | undefined;
@@ -35,6 +33,10 @@ export type WalletOptions = GlobalOptions & {
35
33
  export type AddressOptions = WalletOptions & {
36
34
  address: string | undefined;
37
35
  };
36
+ export type PaymentHistoryOptions = WalletOptions & {
37
+ limit: string | undefined;
38
+ cursor: string | undefined;
39
+ };
38
40
  export type TopUpOptions = AddressOptions & {
39
41
  value: string | undefined;
40
42
  currency: string | undefined;
@@ -91,4 +93,41 @@ export type RevokeCreditsOptions = WalletOptions & {
91
93
  address: string | undefined;
92
94
  };
93
95
  export type ListSharesOptions = RevokeCreditsOptions;
96
+ export type ArNSPriceOptions = GlobalOptions & {
97
+ name: string | undefined;
98
+ type: string | undefined;
99
+ years: string | undefined;
100
+ increaseQty: string | undefined;
101
+ processId: string | undefined;
102
+ };
103
+ export type ArNSFiatQuoteOptions = ArNSPriceOptions & {
104
+ address: string | undefined;
105
+ currency: string | undefined;
106
+ method: string | undefined;
107
+ promoCode: string[] | undefined;
108
+ };
109
+ /** Base58 Solana secret key that will OWN the ANT — separate from the payer. */
110
+ export type ArNSOwnerKeyOption = {
111
+ ownerKey?: string;
112
+ };
113
+ export type ArNSPurchaseOptions = ArNSOwnerKeyOption & WalletOptions & ArNSPriceOptions & {
114
+ paidBy: string[] | undefined;
115
+ };
116
+ export type ArNSPurchaseStatusOptions = GlobalOptions & {
117
+ nonce: string | undefined;
118
+ };
119
+ export type TransferArNSAntOptions = ArNSOwnerKeyOption & WalletOptions & {
120
+ antId: string | undefined;
121
+ target: string | undefined;
122
+ };
123
+ export type SetArNSRecordOptions = ArNSOwnerKeyOption & WalletOptions & {
124
+ antId: string | undefined;
125
+ undername: string | undefined;
126
+ transactionId: string | undefined;
127
+ ttlSeconds: string | undefined;
128
+ };
129
+ export type RemoveArNSRecordOptions = ArNSOwnerKeyOption & WalletOptions & {
130
+ antId: string | undefined;
131
+ undername: string | undefined;
132
+ };
94
133
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/cli/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAEhD,MAAM,MAAM,aAAa,GAAG;IAC1B,GAAG,EAAE,OAAO,CAAC;IACb,KAAK,EAAE,OAAO,CAAC;IACf,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,KAAK,EAAE,OAAO,CAAC;IACf,KAAK,EAAE,OAAO,CAAC;IACf,gBAAgB,EAAE,OAAO,CAAC;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,SAAS,EAAE,M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for the owner proof.
4
+ *
5
+ * MUST match the bundler's `buildArNSCustodyMessage` byte for byte
6
+ * (newline-delimited) or every signature is rejected. The bundler rebuilds this
7
+ * from the request and verifies the signature over `message + nonce`, so a
8
+ * signature captured for one operation cannot authorize a different one, and
9
+ * the nonce is consumed on use so the same one cannot be replayed (e.g. to
10
+ * revert a record to an older value).
11
+ */
12
+ export declare function buildArNSCustodyMessage(action: 'set-record' | 'remove-record', fields: string[]): string;
13
+ /**
14
+ * The ANT owner's half of the envelope, in its own `x-owner-*` headers.
15
+ *
16
+ * Two signatures travel on a record action — the PAYER's signed request over
17
+ * `"" + nonce`, and the OWNER's action-bound proof over `message + nonce` —
18
+ * from two different keys, usually on two different chains. They cannot share
19
+ * one header set: whichever verifier ran second would reject a signature that
20
+ * was never meant for it.
21
+ */
22
+ export declare function arNSOwnerProofHeaders(owner: ArNSOwnerSigner, message: string, nonce: string): Promise<Record<string, string>>;
23
+ /**
24
+ * Build an {@link ArNSOwnerSigner} from a raw Solana secret key.
25
+ *
26
+ * For servers and tests. A browser wallet (Phantom, Solflare, or a console's
27
+ * embedded wallet) should implement the interface directly against its own
28
+ * `signTransaction` / `signMessage` rather than exposing a secret key.
29
+ *
30
+ * Note the owner needs a key to SIGN with, not a funded account: Turbo is the
31
+ * fee payer on every sponsored action, so this wallet's SOL balance can stay
32
+ * at zero for the entire life of the name.
33
+ */
34
+ export declare function solanaOwnerSigner(secretKey: Uint8Array | string): ArNSOwnerSigner;
35
+ /**
36
+ * Count the signature slots a prepared transaction still has empty.
37
+ *
38
+ * Turbo pre-signs as fee payer and leaves exactly one slot for the owner, so a
39
+ * client can assert that before prompting a wallet — a cheap way to catch a
40
+ * malformed or already-signed transaction before bothering the user.
41
+ */
42
+ export declare function emptySignatureSlots(transactionBase64: string): number;
43
+ //# sourceMappingURL=arnsActions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"arnsActions.d.ts","sourceRoot":"","sources":["../../../src/common/arnsActions.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAG9C;;;;;;;;;GASG;AACH,wBAAgB,uBAAuB,CACrC,MAAM,EAAE,YAAY,GAAG,eAAe,EACtC,MAAM,EAAE,MAAM,EAAE,GACf,MAAM,CAER;AAKD;;;;;;;;GAQG;AACH,wBAAsB,qBAAqB,CACzC,KAAK,EAAE,eAAe,EACtB,OAAO,EAAE,MAAM,EACf,KAAK,EAAE,MAAM,GACZ,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAcjC;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,iBAAiB,CAC/B,SAAS,EAAE,UAAU,GAAG,MAAM,GAC7B,eAAe,CAmBjB;AAED;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CAAC,iBAAiB,EAAE,MAAM,GAAG,MAAM,CAKrE"}
@@ -11,7 +11,7 @@ export declare abstract class TurboBaseFactory {
11
11
  protected abstract getAuthenticatedUploadService(config: TurboAuthenticatedUploadServiceConfiguration & {
12
12
  paymentService: TurboAuthenticatedPaymentService;
13
13
  }): TurboAuthenticatedUploadServiceInterface;
14
- protected getAuthenticatedTurbo({ privateKey, signer: providedSigner, paymentServiceConfig, uploadServiceConfig, token, gatewayUrl, tokenMap, tokenTools, logger, walletAdapter, processId, cuUrl, }: TurboAuthenticatedConfiguration & {
14
+ protected getAuthenticatedTurbo({ privateKey, signer: providedSigner, paymentServiceConfig, uploadServiceConfig, token, gatewayUrl, tokenMap, tokenTools, logger, walletAdapter, }: TurboAuthenticatedConfiguration & {
15
15
  logger: Logger;
16
16
  }): TurboAuthenticatedClient;
17
17
  private signerFromAdapter;
@@ -1 +1 @@
1
- {"version":3,"file":"factory.d.ts","sourceRoot":"","sources":["../../../src/common/factory.ts"],"names":[],"mappings":"AAqBA,OAAO,EACL,oBAAoB,EAEpB,+BAA+B,EAC/B,4CAA4C,EAC5C,wCAAwC,EACxC,iCAAiC,EAKlC,MAAM,aAAa,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