telnyx 7.21.0 → 7.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/client.d.mts +7 -4
- package/client.d.mts.map +1 -1
- package/client.d.ts +7 -4
- package/client.d.ts.map +1 -1
- package/client.js +3 -0
- package/client.js.map +1 -1
- package/client.mjs +3 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/ai/ai.d.mts +2 -2
- package/resources/ai/ai.d.mts.map +1 -1
- package/resources/ai/ai.d.ts +2 -2
- package/resources/ai/ai.d.ts.map +1 -1
- package/resources/ai/ai.js.map +1 -1
- package/resources/ai/ai.mjs.map +1 -1
- package/resources/ai/assistants/assistants.d.mts +152 -1
- package/resources/ai/assistants/assistants.d.mts.map +1 -1
- package/resources/ai/assistants/assistants.d.ts +152 -1
- package/resources/ai/assistants/assistants.d.ts.map +1 -1
- package/resources/ai/assistants/assistants.js.map +1 -1
- package/resources/ai/assistants/assistants.mjs.map +1 -1
- package/resources/ai/assistants/index.d.mts +1 -1
- package/resources/ai/assistants/index.d.mts.map +1 -1
- package/resources/ai/assistants/index.d.ts +1 -1
- package/resources/ai/assistants/index.d.ts.map +1 -1
- package/resources/ai/assistants/index.js.map +1 -1
- package/resources/ai/assistants/index.mjs.map +1 -1
- package/resources/ai/assistants/versions.d.mts +25 -0
- package/resources/ai/assistants/versions.d.mts.map +1 -1
- package/resources/ai/assistants/versions.d.ts +25 -0
- package/resources/ai/assistants/versions.d.ts.map +1 -1
- package/resources/ai/chat.d.mts +61 -22
- package/resources/ai/chat.d.mts.map +1 -1
- package/resources/ai/chat.d.ts +61 -22
- package/resources/ai/chat.d.ts.map +1 -1
- package/resources/ai/index.d.mts +1 -1
- package/resources/ai/index.d.mts.map +1 -1
- package/resources/ai/index.d.ts +1 -1
- package/resources/ai/index.d.ts.map +1 -1
- package/resources/ai/index.js.map +1 -1
- package/resources/ai/index.mjs.map +1 -1
- package/resources/ai/openai/chat.d.mts +61 -22
- package/resources/ai/openai/chat.d.mts.map +1 -1
- package/resources/ai/openai/chat.d.ts +61 -22
- package/resources/ai/openai/chat.d.ts.map +1 -1
- package/resources/compute/compute.d.mts +10 -0
- package/resources/compute/compute.d.mts.map +1 -0
- package/resources/compute/compute.d.ts +10 -0
- package/resources/compute/compute.d.ts.map +1 -0
- package/resources/compute/compute.js +17 -0
- package/resources/compute/compute.js.map +1 -0
- package/resources/compute/compute.mjs +12 -0
- package/resources/compute/compute.mjs.map +1 -0
- package/resources/compute/funcs.d.mts +179 -0
- package/resources/compute/funcs.d.mts.map +1 -0
- package/resources/compute/funcs.d.ts +179 -0
- package/resources/compute/funcs.d.ts.map +1 -0
- package/resources/compute/funcs.js +41 -0
- package/resources/compute/funcs.js.map +1 -0
- package/resources/compute/funcs.mjs +37 -0
- package/resources/compute/funcs.mjs.map +1 -0
- package/resources/compute/index.d.mts +3 -0
- package/resources/compute/index.d.mts.map +1 -0
- package/resources/compute/index.d.ts +3 -0
- package/resources/compute/index.d.ts.map +1 -0
- package/resources/compute/index.js +9 -0
- package/resources/compute/index.js.map +1 -0
- package/resources/compute/index.mjs +4 -0
- package/resources/compute/index.mjs.map +1 -0
- package/resources/compute.d.mts +2 -0
- package/resources/compute.d.mts.map +1 -0
- package/resources/compute.d.ts +2 -0
- package/resources/compute.d.ts.map +1 -0
- package/resources/compute.js +6 -0
- package/resources/compute.js.map +1 -0
- package/resources/compute.mjs +3 -0
- package/resources/compute.mjs.map +1 -0
- package/resources/credential-connections/credential-connections.d.mts +4 -1
- package/resources/credential-connections/credential-connections.d.mts.map +1 -1
- package/resources/credential-connections/credential-connections.d.ts +4 -1
- package/resources/credential-connections/credential-connections.d.ts.map +1 -1
- package/resources/credential-connections/credential-connections.js.map +1 -1
- package/resources/credential-connections/credential-connections.mjs.map +1 -1
- package/resources/email-inboxes/drafts.d.mts +7 -0
- package/resources/email-inboxes/drafts.d.mts.map +1 -1
- package/resources/email-inboxes/drafts.d.ts +7 -0
- package/resources/email-inboxes/drafts.d.ts.map +1 -1
- package/resources/email-messages/email-messages.d.mts +7 -3
- package/resources/email-messages/email-messages.d.mts.map +1 -1
- package/resources/email-messages/email-messages.d.ts +7 -3
- package/resources/email-messages/email-messages.d.ts.map +1 -1
- package/resources/email-messages/email-messages.js +3 -1
- package/resources/email-messages/email-messages.js.map +1 -1
- package/resources/email-messages/email-messages.mjs +3 -1
- package/resources/email-messages/email-messages.mjs.map +1 -1
- package/resources/fqdn-connections/fqdn-authentication.d.mts +4 -1
- package/resources/fqdn-connections/fqdn-authentication.d.mts.map +1 -1
- package/resources/fqdn-connections/fqdn-authentication.d.ts +4 -1
- package/resources/fqdn-connections/fqdn-authentication.d.ts.map +1 -1
- package/resources/fqdn-connections/fqdn-connections.d.mts +4 -1
- package/resources/fqdn-connections/fqdn-connections.d.mts.map +1 -1
- package/resources/fqdn-connections/fqdn-connections.d.ts +4 -1
- package/resources/fqdn-connections/fqdn-connections.d.ts.map +1 -1
- package/resources/fqdn-connections/fqdn-connections.js.map +1 -1
- package/resources/fqdn-connections/fqdn-connections.mjs.map +1 -1
- package/resources/index.d.mts +3 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +3 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +6 -4
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/messages/messages.d.mts +79 -6
- package/resources/messages/messages.d.mts.map +1 -1
- package/resources/messages/messages.d.ts +79 -6
- package/resources/messages/messages.d.ts.map +1 -1
- package/resources/messages/messages.js.map +1 -1
- package/resources/messages/messages.mjs.map +1 -1
- package/resources/messaging-profiles/index.d.mts +1 -1
- package/resources/messaging-profiles/index.d.mts.map +1 -1
- package/resources/messaging-profiles/index.d.ts +1 -1
- package/resources/messaging-profiles/index.d.ts.map +1 -1
- package/resources/messaging-profiles/index.js.map +1 -1
- package/resources/messaging-profiles/index.mjs.map +1 -1
- package/resources/messaging-profiles/messaging-profiles.d.mts +34 -1
- package/resources/messaging-profiles/messaging-profiles.d.mts.map +1 -1
- package/resources/messaging-profiles/messaging-profiles.d.ts +34 -1
- package/resources/messaging-profiles/messaging-profiles.d.ts.map +1 -1
- package/resources/messaging-profiles/messaging-profiles.js.map +1 -1
- package/resources/messaging-profiles/messaging-profiles.mjs.map +1 -1
- package/resources/uac-connections/uac-connections.d.mts +9 -2
- package/resources/uac-connections/uac-connections.d.mts.map +1 -1
- package/resources/uac-connections/uac-connections.d.ts +9 -2
- package/resources/uac-connections/uac-connections.d.ts.map +1 -1
- package/resources/uac-connections/uac-connections.js.map +1 -1
- package/resources/uac-connections/uac-connections.mjs.map +1 -1
- package/resources/webhooks.d.mts +129 -3
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +129 -3
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/whatsapp/business-accounts/phone-numbers.d.mts +33 -0
- package/resources/whatsapp/business-accounts/phone-numbers.d.mts.map +1 -1
- package/resources/whatsapp/business-accounts/phone-numbers.d.ts +33 -0
- package/resources/whatsapp/business-accounts/phone-numbers.d.ts.map +1 -1
- package/resources/whatsapp/index.d.mts +1 -1
- package/resources/whatsapp/index.d.mts.map +1 -1
- package/resources/whatsapp/index.d.ts +1 -1
- package/resources/whatsapp/index.d.ts.map +1 -1
- package/resources/whatsapp/index.js.map +1 -1
- package/resources/whatsapp/index.mjs.map +1 -1
- package/resources/whatsapp/phone-numbers/index.d.mts +1 -1
- package/resources/whatsapp/phone-numbers/index.d.mts.map +1 -1
- package/resources/whatsapp/phone-numbers/index.d.ts +1 -1
- package/resources/whatsapp/phone-numbers/index.d.ts.map +1 -1
- package/resources/whatsapp/phone-numbers/index.js.map +1 -1
- package/resources/whatsapp/phone-numbers/index.mjs.map +1 -1
- package/resources/whatsapp/phone-numbers/phone-numbers.d.mts +147 -1
- package/resources/whatsapp/phone-numbers/phone-numbers.d.mts.map +1 -1
- package/resources/whatsapp/phone-numbers/phone-numbers.d.ts +147 -1
- package/resources/whatsapp/phone-numbers/phone-numbers.d.ts.map +1 -1
- package/resources/whatsapp/phone-numbers/phone-numbers.js +16 -0
- package/resources/whatsapp/phone-numbers/phone-numbers.js.map +1 -1
- package/resources/whatsapp/phone-numbers/phone-numbers.mjs +16 -0
- package/resources/whatsapp/phone-numbers/phone-numbers.mjs.map +1 -1
- package/resources/whatsapp/whatsapp.d.mts +2 -2
- package/resources/whatsapp/whatsapp.d.mts.map +1 -1
- package/resources/whatsapp/whatsapp.d.ts +2 -2
- package/resources/whatsapp/whatsapp.d.ts.map +1 -1
- package/resources/whatsapp/whatsapp.js.map +1 -1
- package/resources/whatsapp/whatsapp.mjs.map +1 -1
- package/resources/x402/credit-account/credit-account.d.mts +226 -0
- package/resources/x402/credit-account/credit-account.d.mts.map +1 -0
- package/resources/x402/credit-account/credit-account.d.ts +226 -0
- package/resources/x402/credit-account/credit-account.d.ts.map +1 -0
- package/resources/x402/credit-account/credit-account.js +66 -0
- package/resources/x402/credit-account/credit-account.js.map +1 -0
- package/resources/x402/credit-account/credit-account.mjs +61 -0
- package/resources/x402/credit-account/credit-account.mjs.map +1 -0
- package/resources/x402/credit-account/index.d.mts +3 -0
- package/resources/x402/credit-account/index.d.mts.map +1 -0
- package/resources/x402/credit-account/index.d.ts +3 -0
- package/resources/x402/credit-account/index.d.ts.map +1 -0
- package/resources/x402/credit-account/index.js +9 -0
- package/resources/x402/credit-account/index.js.map +1 -0
- package/resources/x402/credit-account/index.mjs +4 -0
- package/resources/x402/credit-account/index.mjs.map +1 -0
- package/resources/x402/credit-account/payments.d.mts +90 -0
- package/resources/x402/credit-account/payments.d.mts.map +1 -0
- package/resources/x402/credit-account/payments.d.ts +90 -0
- package/resources/x402/credit-account/payments.d.ts.map +1 -0
- package/resources/x402/credit-account/payments.js +47 -0
- package/resources/x402/credit-account/payments.js.map +1 -0
- package/resources/x402/credit-account/payments.mjs +43 -0
- package/resources/x402/credit-account/payments.mjs.map +1 -0
- package/resources/x402/credit-account.d.mts +1 -221
- package/resources/x402/credit-account.d.mts.map +1 -1
- package/resources/x402/credit-account.d.ts +1 -221
- package/resources/x402/credit-account.d.ts.map +1 -1
- package/resources/x402/credit-account.js +2 -54
- package/resources/x402/credit-account.js.map +1 -1
- package/resources/x402/credit-account.mjs +1 -52
- package/resources/x402/credit-account.mjs.map +1 -1
- package/resources/x402/index.d.mts +1 -1
- package/resources/x402/index.d.mts.map +1 -1
- package/resources/x402/index.d.ts +1 -1
- package/resources/x402/index.d.ts.map +1 -1
- package/resources/x402/index.js +2 -2
- package/resources/x402/index.js.map +1 -1
- package/resources/x402/index.mjs +1 -1
- package/resources/x402/index.mjs.map +1 -1
- package/resources/x402/x402.d.mts +2 -2
- package/resources/x402/x402.d.mts.map +1 -1
- package/resources/x402/x402.d.ts +2 -2
- package/resources/x402/x402.d.ts.map +1 -1
- package/resources/x402/x402.js +2 -2
- package/resources/x402/x402.js.map +1 -1
- package/resources/x402/x402.mjs +2 -2
- package/resources/x402/x402.mjs.map +1 -1
- package/src/client.ts +11 -0
- package/src/resources/ai/ai.ts +2 -0
- package/src/resources/ai/assistants/assistants.ts +173 -0
- package/src/resources/ai/assistants/index.ts +1 -0
- package/src/resources/ai/assistants/versions.ts +27 -0
- package/src/resources/ai/chat.ts +69 -23
- package/src/resources/ai/index.ts +1 -0
- package/src/resources/ai/openai/chat.ts +69 -23
- package/src/resources/compute/compute.ts +37 -0
- package/src/resources/compute/funcs.ts +298 -0
- package/src/resources/compute/index.ts +15 -0
- package/src/resources/compute.ts +3 -0
- package/src/resources/credential-connections/credential-connections.ts +4 -1
- package/src/resources/email-inboxes/drafts.ts +8 -0
- package/src/resources/email-messages/email-messages.ts +7 -2
- package/src/resources/fqdn-connections/fqdn-authentication.ts +4 -1
- package/src/resources/fqdn-connections/fqdn-connections.ts +4 -1
- package/src/resources/index.ts +4 -0
- package/src/resources/messages/messages.ts +89 -6
- package/src/resources/messaging-profiles/index.ts +1 -0
- package/src/resources/messaging-profiles/messaging-profiles.ts +39 -0
- package/src/resources/uac-connections/uac-connections.ts +9 -2
- package/src/resources/webhooks.ts +177 -2
- package/src/resources/whatsapp/business-accounts/phone-numbers.ts +52 -0
- package/src/resources/whatsapp/index.ts +1 -0
- package/src/resources/whatsapp/phone-numbers/index.ts +1 -0
- package/src/resources/whatsapp/phone-numbers/phone-numbers.ts +222 -0
- package/src/resources/whatsapp/whatsapp.ts +2 -0
- package/src/resources/x402/credit-account/credit-account.ts +312 -0
- package/src/resources/x402/credit-account/index.ts +16 -0
- package/src/resources/x402/credit-account/payments.ts +126 -0
- package/src/resources/x402/credit-account.ts +1 -290
- package/src/resources/x402/index.ts +1 -1
- package/src/resources/x402/x402.ts +2 -2
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../../core/resource.mjs";
|
|
3
|
+
import { DefaultFlatPagination, } from "../../../core/pagination.mjs";
|
|
4
|
+
import { path } from "../../../internal/utils/path.mjs";
|
|
5
|
+
/**
|
|
6
|
+
* Operations for x402 cryptocurrency payment transactions. Fund your Telnyx account using USDC stablecoin payments via the x402 protocol.
|
|
7
|
+
*/
|
|
8
|
+
export class Payments extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Returns a paginated list of the authenticated user's x402 payment transactions,
|
|
11
|
+
* newest first. Organization sub-users must have read permission on transactions;
|
|
12
|
+
* without it the list is empty.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```ts
|
|
16
|
+
* // Automatically fetches more pages as needed.
|
|
17
|
+
* for await (const x402TransactionRecord of client.x402.creditAccount.payments.list()) {
|
|
18
|
+
* // ...
|
|
19
|
+
* }
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
list(query = {}, options) {
|
|
23
|
+
return this._client.getAPIList('/x402/credit_account/payments', (DefaultFlatPagination), { query, ...options });
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Returns a single x402 payment transaction by ID. The transaction must belong to
|
|
27
|
+
* the authenticated user; organization sub-users must have read permission on
|
|
28
|
+
* transactions. Returns 404 if the transaction does not exist or belongs to
|
|
29
|
+
* another user.
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* ```ts
|
|
33
|
+
* const payment =
|
|
34
|
+
* await client.x402.creditAccount.payments.retrieve(
|
|
35
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
36
|
+
* );
|
|
37
|
+
* ```
|
|
38
|
+
*/
|
|
39
|
+
retrieve(id, options) {
|
|
40
|
+
return this._client.get(path `/x402/credit_account/payments/${id}`, options);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
//# sourceMappingURL=payments.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payments.mjs","sourceRoot":"","sources":["../../../src/resources/x402/credit-account/payments.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,mCAA+B;AAErD,OAAO,EACL,qBAAqB,GAGtB,qCAAiC;AAElC,OAAO,EAAE,IAAI,EAAE,yCAAqC;AAEpD;;GAEG;AACH,MAAM,OAAO,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;;;OAYG;IACH,IAAI,CACF,QAA8C,EAAE,EAChD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,+BAA+B,EAC/B,CAAA,qBAA4C,CAAA,EAC5C,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;IAED;;;;;;;;;;;;;OAaG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,iCAAiC,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC9E,CAAC;CACF"}
|
|
@@ -1,222 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
import { APIPromise } from "../../core/api-promise.mjs";
|
|
3
|
-
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
4
|
-
/**
|
|
5
|
-
* Operations for x402 cryptocurrency payment transactions. Fund your Telnyx account using USDC stablecoin payments via the x402 protocol.
|
|
6
|
-
*/
|
|
7
|
-
export declare class CreditAccount extends APIResource {
|
|
8
|
-
/**
|
|
9
|
-
* Settles an x402 payment using the quote ID and a signed payment authorization.
|
|
10
|
-
* The payment signature can be provided via the `PAYMENT-SIGNATURE` header or the
|
|
11
|
-
* `payment_signature` body parameter. Settlement is idempotent — submitting the
|
|
12
|
-
* same quote ID multiple times returns the existing transaction.
|
|
13
|
-
*
|
|
14
|
-
* @example
|
|
15
|
-
* ```ts
|
|
16
|
-
* const response = await client.x402.creditAccount.settle({
|
|
17
|
-
* id: 'quote_abc123',
|
|
18
|
-
* payment_signature: '0xabc123...',
|
|
19
|
-
* });
|
|
20
|
-
* ```
|
|
21
|
-
*/
|
|
22
|
-
settle(params: CreditAccountSettleParams, options?: RequestOptions): APIPromise<CreditAccountSettleResponse>;
|
|
23
|
-
/**
|
|
24
|
-
* Creates a payment quote for the specified USD amount. Returns payment details
|
|
25
|
-
* including the x402 payment requirements, network, and expiration time. The quote
|
|
26
|
-
* must be settled before it expires.
|
|
27
|
-
*
|
|
28
|
-
* @example
|
|
29
|
-
* ```ts
|
|
30
|
-
* const response =
|
|
31
|
-
* await client.x402.creditAccount.createQuote({
|
|
32
|
-
* amount_usd: '50.00',
|
|
33
|
-
* });
|
|
34
|
-
* ```
|
|
35
|
-
*/
|
|
36
|
-
createQuote(body: CreditAccountCreateQuoteParams, options?: RequestOptions): APIPromise<CreditAccountCreateQuoteResponse>;
|
|
37
|
-
}
|
|
38
|
-
export interface CreditAccountCreateQuoteResponse {
|
|
39
|
-
data?: CreditAccountCreateQuoteResponse.Data;
|
|
40
|
-
}
|
|
41
|
-
export declare namespace CreditAccountCreateQuoteResponse {
|
|
42
|
-
interface Data {
|
|
43
|
-
/**
|
|
44
|
-
* Unique quote identifier. Use this to settle the payment.
|
|
45
|
-
*/
|
|
46
|
-
id?: string;
|
|
47
|
-
/**
|
|
48
|
-
* The equivalent amount in the payment cryptocurrency's smallest unit (e.g. USDC
|
|
49
|
-
* has 6 decimals, so $50.00 = "50000000").
|
|
50
|
-
*/
|
|
51
|
-
amount_crypto?: string;
|
|
52
|
-
/**
|
|
53
|
-
* The quoted amount in USD.
|
|
54
|
-
*/
|
|
55
|
-
amount_usd?: string;
|
|
56
|
-
/**
|
|
57
|
-
* ISO 8601 timestamp when the quote expires.
|
|
58
|
-
*/
|
|
59
|
-
expires_at?: string;
|
|
60
|
-
/**
|
|
61
|
-
* The blockchain network for the payment in CAIP-2 format (e.g. eip155:8453 for
|
|
62
|
-
* Base).
|
|
63
|
-
*/
|
|
64
|
-
network?: string;
|
|
65
|
-
/**
|
|
66
|
-
* x402 protocol v2 payment requirements. Contains all information needed to
|
|
67
|
-
* construct and sign a payment authorization.
|
|
68
|
-
*/
|
|
69
|
-
payment_requirements?: Data.PaymentRequirements;
|
|
70
|
-
record_type?: 'quote';
|
|
71
|
-
}
|
|
72
|
-
namespace Data {
|
|
73
|
-
/**
|
|
74
|
-
* x402 protocol v2 payment requirements. Contains all information needed to
|
|
75
|
-
* construct and sign a payment authorization.
|
|
76
|
-
*/
|
|
77
|
-
interface PaymentRequirements {
|
|
78
|
-
/**
|
|
79
|
-
* Accepted payment schemes. Currently only the `exact` EVM scheme is supported.
|
|
80
|
-
*/
|
|
81
|
-
accepts?: Array<PaymentRequirements.Accept>;
|
|
82
|
-
/**
|
|
83
|
-
* The resource being paid for. Included in the payment signature.
|
|
84
|
-
*/
|
|
85
|
-
resource?: PaymentRequirements.Resource;
|
|
86
|
-
/**
|
|
87
|
-
* x402 protocol version. Currently always 2.
|
|
88
|
-
*/
|
|
89
|
-
x402Version?: 2;
|
|
90
|
-
}
|
|
91
|
-
namespace PaymentRequirements {
|
|
92
|
-
interface Accept {
|
|
93
|
-
/**
|
|
94
|
-
* Amount in the token's smallest unit.
|
|
95
|
-
*/
|
|
96
|
-
amount?: string;
|
|
97
|
-
/**
|
|
98
|
-
* Token contract address (e.g. USDC on Base).
|
|
99
|
-
*/
|
|
100
|
-
asset?: string;
|
|
101
|
-
/**
|
|
102
|
-
* Additional scheme-specific parameters including EIP-712 domain info and the
|
|
103
|
-
* facilitator URL.
|
|
104
|
-
*/
|
|
105
|
-
extra?: Accept.Extra;
|
|
106
|
-
/**
|
|
107
|
-
* Maximum time in seconds before the payment authorization expires.
|
|
108
|
-
*/
|
|
109
|
-
maxTimeoutSeconds?: number;
|
|
110
|
-
/**
|
|
111
|
-
* Blockchain network identifier in CAIP-2 format (e.g. "eip155:8453" for Base).
|
|
112
|
-
*/
|
|
113
|
-
network?: string;
|
|
114
|
-
/**
|
|
115
|
-
* Recipient wallet address.
|
|
116
|
-
*/
|
|
117
|
-
payTo?: string;
|
|
118
|
-
/**
|
|
119
|
-
* Payment scheme (e.g. "exact").
|
|
120
|
-
*/
|
|
121
|
-
scheme?: string;
|
|
122
|
-
}
|
|
123
|
-
namespace Accept {
|
|
124
|
-
/**
|
|
125
|
-
* Additional scheme-specific parameters including EIP-712 domain info and the
|
|
126
|
-
* facilitator URL.
|
|
127
|
-
*/
|
|
128
|
-
interface Extra {
|
|
129
|
-
facilitatorUrl?: string;
|
|
130
|
-
/**
|
|
131
|
-
* EIP-712 domain name (e.g. "USD Coin").
|
|
132
|
-
*/
|
|
133
|
-
name?: string;
|
|
134
|
-
quoteId?: string;
|
|
135
|
-
/**
|
|
136
|
-
* EIP-712 domain version.
|
|
137
|
-
*/
|
|
138
|
-
version?: string;
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
/**
|
|
142
|
-
* The resource being paid for. Included in the payment signature.
|
|
143
|
-
*/
|
|
144
|
-
interface Resource {
|
|
145
|
-
/**
|
|
146
|
-
* Human-readable description of the payment.
|
|
147
|
-
*/
|
|
148
|
-
description?: string;
|
|
149
|
-
/**
|
|
150
|
-
* MIME type of the resource.
|
|
151
|
-
*/
|
|
152
|
-
mimeType?: string;
|
|
153
|
-
/**
|
|
154
|
-
* Canonical URL of the payment resource.
|
|
155
|
-
*/
|
|
156
|
-
url?: string;
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
export interface CreditAccountSettleResponse {
|
|
162
|
-
data?: CreditAccountSettleResponse.Data;
|
|
163
|
-
}
|
|
164
|
-
export declare namespace CreditAccountSettleResponse {
|
|
165
|
-
interface Data {
|
|
166
|
-
/**
|
|
167
|
-
* Unique transaction identifier.
|
|
168
|
-
*/
|
|
169
|
-
id?: string;
|
|
170
|
-
/**
|
|
171
|
-
* The transaction amount in the specified currency.
|
|
172
|
-
*/
|
|
173
|
-
amount?: string;
|
|
174
|
-
/**
|
|
175
|
-
* ISO 8601 timestamp when the transaction was created.
|
|
176
|
-
*/
|
|
177
|
-
created_at?: string;
|
|
178
|
-
/**
|
|
179
|
-
* The currency of the transaction amount (e.g. USD).
|
|
180
|
-
*/
|
|
181
|
-
currency?: string;
|
|
182
|
-
/**
|
|
183
|
-
* The original quote ID associated with this transaction.
|
|
184
|
-
*/
|
|
185
|
-
quote_id?: string;
|
|
186
|
-
record_type?: 'x402_transaction';
|
|
187
|
-
/**
|
|
188
|
-
* The settlement status of the transaction.
|
|
189
|
-
*/
|
|
190
|
-
status?: 'settled';
|
|
191
|
-
/**
|
|
192
|
-
* The on-chain transaction hash, if available.
|
|
193
|
-
*/
|
|
194
|
-
tx_hash?: string | null;
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
export interface CreditAccountSettleParams {
|
|
198
|
-
/**
|
|
199
|
-
* Body param: The quote ID to settle.
|
|
200
|
-
*/
|
|
201
|
-
id: string;
|
|
202
|
-
/**
|
|
203
|
-
* Body param: Base64-encoded signed payment authorization (x402 PaymentPayload).
|
|
204
|
-
* Can alternatively be provided via the PAYMENT-SIGNATURE header.
|
|
205
|
-
*/
|
|
206
|
-
payment_signature?: string;
|
|
207
|
-
/**
|
|
208
|
-
* Header param: Signed payment authorization for the quote. Alternative to
|
|
209
|
-
* providing `payment_signature` in the request body.
|
|
210
|
-
*/
|
|
211
|
-
header_payment_signature?: string;
|
|
212
|
-
}
|
|
213
|
-
export interface CreditAccountCreateQuoteParams {
|
|
214
|
-
/**
|
|
215
|
-
* Amount in USD to fund (minimum 5.00, maximum 10000.00).
|
|
216
|
-
*/
|
|
217
|
-
amount_usd: string;
|
|
218
|
-
}
|
|
219
|
-
export declare namespace CreditAccount {
|
|
220
|
-
export { type CreditAccountCreateQuoteResponse as CreditAccountCreateQuoteResponse, type CreditAccountSettleResponse as CreditAccountSettleResponse, type CreditAccountSettleParams as CreditAccountSettleParams, type CreditAccountCreateQuoteParams as CreditAccountCreateQuoteParams, };
|
|
221
|
-
}
|
|
1
|
+
export * from "./credit-account/index.mjs";
|
|
222
2
|
//# sourceMappingURL=credit-account.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"credit-account.d.mts","sourceRoot":"","sources":["../../src/resources/x402/credit-account.ts"],"names":[],"mappings":"AAEA,
|
|
1
|
+
{"version":3,"file":"credit-account.d.mts","sourceRoot":"","sources":["../../src/resources/x402/credit-account.ts"],"names":[],"mappings":"AAEA,2CAAuC"}
|
|
@@ -1,222 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
import { APIPromise } from "../../core/api-promise.js";
|
|
3
|
-
import { RequestOptions } from "../../internal/request-options.js";
|
|
4
|
-
/**
|
|
5
|
-
* Operations for x402 cryptocurrency payment transactions. Fund your Telnyx account using USDC stablecoin payments via the x402 protocol.
|
|
6
|
-
*/
|
|
7
|
-
export declare class CreditAccount extends APIResource {
|
|
8
|
-
/**
|
|
9
|
-
* Settles an x402 payment using the quote ID and a signed payment authorization.
|
|
10
|
-
* The payment signature can be provided via the `PAYMENT-SIGNATURE` header or the
|
|
11
|
-
* `payment_signature` body parameter. Settlement is idempotent — submitting the
|
|
12
|
-
* same quote ID multiple times returns the existing transaction.
|
|
13
|
-
*
|
|
14
|
-
* @example
|
|
15
|
-
* ```ts
|
|
16
|
-
* const response = await client.x402.creditAccount.settle({
|
|
17
|
-
* id: 'quote_abc123',
|
|
18
|
-
* payment_signature: '0xabc123...',
|
|
19
|
-
* });
|
|
20
|
-
* ```
|
|
21
|
-
*/
|
|
22
|
-
settle(params: CreditAccountSettleParams, options?: RequestOptions): APIPromise<CreditAccountSettleResponse>;
|
|
23
|
-
/**
|
|
24
|
-
* Creates a payment quote for the specified USD amount. Returns payment details
|
|
25
|
-
* including the x402 payment requirements, network, and expiration time. The quote
|
|
26
|
-
* must be settled before it expires.
|
|
27
|
-
*
|
|
28
|
-
* @example
|
|
29
|
-
* ```ts
|
|
30
|
-
* const response =
|
|
31
|
-
* await client.x402.creditAccount.createQuote({
|
|
32
|
-
* amount_usd: '50.00',
|
|
33
|
-
* });
|
|
34
|
-
* ```
|
|
35
|
-
*/
|
|
36
|
-
createQuote(body: CreditAccountCreateQuoteParams, options?: RequestOptions): APIPromise<CreditAccountCreateQuoteResponse>;
|
|
37
|
-
}
|
|
38
|
-
export interface CreditAccountCreateQuoteResponse {
|
|
39
|
-
data?: CreditAccountCreateQuoteResponse.Data;
|
|
40
|
-
}
|
|
41
|
-
export declare namespace CreditAccountCreateQuoteResponse {
|
|
42
|
-
interface Data {
|
|
43
|
-
/**
|
|
44
|
-
* Unique quote identifier. Use this to settle the payment.
|
|
45
|
-
*/
|
|
46
|
-
id?: string;
|
|
47
|
-
/**
|
|
48
|
-
* The equivalent amount in the payment cryptocurrency's smallest unit (e.g. USDC
|
|
49
|
-
* has 6 decimals, so $50.00 = "50000000").
|
|
50
|
-
*/
|
|
51
|
-
amount_crypto?: string;
|
|
52
|
-
/**
|
|
53
|
-
* The quoted amount in USD.
|
|
54
|
-
*/
|
|
55
|
-
amount_usd?: string;
|
|
56
|
-
/**
|
|
57
|
-
* ISO 8601 timestamp when the quote expires.
|
|
58
|
-
*/
|
|
59
|
-
expires_at?: string;
|
|
60
|
-
/**
|
|
61
|
-
* The blockchain network for the payment in CAIP-2 format (e.g. eip155:8453 for
|
|
62
|
-
* Base).
|
|
63
|
-
*/
|
|
64
|
-
network?: string;
|
|
65
|
-
/**
|
|
66
|
-
* x402 protocol v2 payment requirements. Contains all information needed to
|
|
67
|
-
* construct and sign a payment authorization.
|
|
68
|
-
*/
|
|
69
|
-
payment_requirements?: Data.PaymentRequirements;
|
|
70
|
-
record_type?: 'quote';
|
|
71
|
-
}
|
|
72
|
-
namespace Data {
|
|
73
|
-
/**
|
|
74
|
-
* x402 protocol v2 payment requirements. Contains all information needed to
|
|
75
|
-
* construct and sign a payment authorization.
|
|
76
|
-
*/
|
|
77
|
-
interface PaymentRequirements {
|
|
78
|
-
/**
|
|
79
|
-
* Accepted payment schemes. Currently only the `exact` EVM scheme is supported.
|
|
80
|
-
*/
|
|
81
|
-
accepts?: Array<PaymentRequirements.Accept>;
|
|
82
|
-
/**
|
|
83
|
-
* The resource being paid for. Included in the payment signature.
|
|
84
|
-
*/
|
|
85
|
-
resource?: PaymentRequirements.Resource;
|
|
86
|
-
/**
|
|
87
|
-
* x402 protocol version. Currently always 2.
|
|
88
|
-
*/
|
|
89
|
-
x402Version?: 2;
|
|
90
|
-
}
|
|
91
|
-
namespace PaymentRequirements {
|
|
92
|
-
interface Accept {
|
|
93
|
-
/**
|
|
94
|
-
* Amount in the token's smallest unit.
|
|
95
|
-
*/
|
|
96
|
-
amount?: string;
|
|
97
|
-
/**
|
|
98
|
-
* Token contract address (e.g. USDC on Base).
|
|
99
|
-
*/
|
|
100
|
-
asset?: string;
|
|
101
|
-
/**
|
|
102
|
-
* Additional scheme-specific parameters including EIP-712 domain info and the
|
|
103
|
-
* facilitator URL.
|
|
104
|
-
*/
|
|
105
|
-
extra?: Accept.Extra;
|
|
106
|
-
/**
|
|
107
|
-
* Maximum time in seconds before the payment authorization expires.
|
|
108
|
-
*/
|
|
109
|
-
maxTimeoutSeconds?: number;
|
|
110
|
-
/**
|
|
111
|
-
* Blockchain network identifier in CAIP-2 format (e.g. "eip155:8453" for Base).
|
|
112
|
-
*/
|
|
113
|
-
network?: string;
|
|
114
|
-
/**
|
|
115
|
-
* Recipient wallet address.
|
|
116
|
-
*/
|
|
117
|
-
payTo?: string;
|
|
118
|
-
/**
|
|
119
|
-
* Payment scheme (e.g. "exact").
|
|
120
|
-
*/
|
|
121
|
-
scheme?: string;
|
|
122
|
-
}
|
|
123
|
-
namespace Accept {
|
|
124
|
-
/**
|
|
125
|
-
* Additional scheme-specific parameters including EIP-712 domain info and the
|
|
126
|
-
* facilitator URL.
|
|
127
|
-
*/
|
|
128
|
-
interface Extra {
|
|
129
|
-
facilitatorUrl?: string;
|
|
130
|
-
/**
|
|
131
|
-
* EIP-712 domain name (e.g. "USD Coin").
|
|
132
|
-
*/
|
|
133
|
-
name?: string;
|
|
134
|
-
quoteId?: string;
|
|
135
|
-
/**
|
|
136
|
-
* EIP-712 domain version.
|
|
137
|
-
*/
|
|
138
|
-
version?: string;
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
/**
|
|
142
|
-
* The resource being paid for. Included in the payment signature.
|
|
143
|
-
*/
|
|
144
|
-
interface Resource {
|
|
145
|
-
/**
|
|
146
|
-
* Human-readable description of the payment.
|
|
147
|
-
*/
|
|
148
|
-
description?: string;
|
|
149
|
-
/**
|
|
150
|
-
* MIME type of the resource.
|
|
151
|
-
*/
|
|
152
|
-
mimeType?: string;
|
|
153
|
-
/**
|
|
154
|
-
* Canonical URL of the payment resource.
|
|
155
|
-
*/
|
|
156
|
-
url?: string;
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
export interface CreditAccountSettleResponse {
|
|
162
|
-
data?: CreditAccountSettleResponse.Data;
|
|
163
|
-
}
|
|
164
|
-
export declare namespace CreditAccountSettleResponse {
|
|
165
|
-
interface Data {
|
|
166
|
-
/**
|
|
167
|
-
* Unique transaction identifier.
|
|
168
|
-
*/
|
|
169
|
-
id?: string;
|
|
170
|
-
/**
|
|
171
|
-
* The transaction amount in the specified currency.
|
|
172
|
-
*/
|
|
173
|
-
amount?: string;
|
|
174
|
-
/**
|
|
175
|
-
* ISO 8601 timestamp when the transaction was created.
|
|
176
|
-
*/
|
|
177
|
-
created_at?: string;
|
|
178
|
-
/**
|
|
179
|
-
* The currency of the transaction amount (e.g. USD).
|
|
180
|
-
*/
|
|
181
|
-
currency?: string;
|
|
182
|
-
/**
|
|
183
|
-
* The original quote ID associated with this transaction.
|
|
184
|
-
*/
|
|
185
|
-
quote_id?: string;
|
|
186
|
-
record_type?: 'x402_transaction';
|
|
187
|
-
/**
|
|
188
|
-
* The settlement status of the transaction.
|
|
189
|
-
*/
|
|
190
|
-
status?: 'settled';
|
|
191
|
-
/**
|
|
192
|
-
* The on-chain transaction hash, if available.
|
|
193
|
-
*/
|
|
194
|
-
tx_hash?: string | null;
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
export interface CreditAccountSettleParams {
|
|
198
|
-
/**
|
|
199
|
-
* Body param: The quote ID to settle.
|
|
200
|
-
*/
|
|
201
|
-
id: string;
|
|
202
|
-
/**
|
|
203
|
-
* Body param: Base64-encoded signed payment authorization (x402 PaymentPayload).
|
|
204
|
-
* Can alternatively be provided via the PAYMENT-SIGNATURE header.
|
|
205
|
-
*/
|
|
206
|
-
payment_signature?: string;
|
|
207
|
-
/**
|
|
208
|
-
* Header param: Signed payment authorization for the quote. Alternative to
|
|
209
|
-
* providing `payment_signature` in the request body.
|
|
210
|
-
*/
|
|
211
|
-
header_payment_signature?: string;
|
|
212
|
-
}
|
|
213
|
-
export interface CreditAccountCreateQuoteParams {
|
|
214
|
-
/**
|
|
215
|
-
* Amount in USD to fund (minimum 5.00, maximum 10000.00).
|
|
216
|
-
*/
|
|
217
|
-
amount_usd: string;
|
|
218
|
-
}
|
|
219
|
-
export declare namespace CreditAccount {
|
|
220
|
-
export { type CreditAccountCreateQuoteResponse as CreditAccountCreateQuoteResponse, type CreditAccountSettleResponse as CreditAccountSettleResponse, type CreditAccountSettleParams as CreditAccountSettleParams, type CreditAccountCreateQuoteParams as CreditAccountCreateQuoteParams, };
|
|
221
|
-
}
|
|
1
|
+
export * from "./credit-account/index.js";
|
|
222
2
|
//# sourceMappingURL=credit-account.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"credit-account.d.ts","sourceRoot":"","sources":["../../src/resources/x402/credit-account.ts"],"names":[],"mappings":"AAEA,
|
|
1
|
+
{"version":3,"file":"credit-account.d.ts","sourceRoot":"","sources":["../../src/resources/x402/credit-account.ts"],"names":[],"mappings":"AAEA,0CAAuC"}
|
|
@@ -1,58 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
const headers_1 = require("../../internal/headers.js");
|
|
7
|
-
/**
|
|
8
|
-
* Operations for x402 cryptocurrency payment transactions. Fund your Telnyx account using USDC stablecoin payments via the x402 protocol.
|
|
9
|
-
*/
|
|
10
|
-
class CreditAccount extends resource_1.APIResource {
|
|
11
|
-
/**
|
|
12
|
-
* Settles an x402 payment using the quote ID and a signed payment authorization.
|
|
13
|
-
* The payment signature can be provided via the `PAYMENT-SIGNATURE` header or the
|
|
14
|
-
* `payment_signature` body parameter. Settlement is idempotent — submitting the
|
|
15
|
-
* same quote ID multiple times returns the existing transaction.
|
|
16
|
-
*
|
|
17
|
-
* @example
|
|
18
|
-
* ```ts
|
|
19
|
-
* const response = await client.x402.creditAccount.settle({
|
|
20
|
-
* id: 'quote_abc123',
|
|
21
|
-
* payment_signature: '0xabc123...',
|
|
22
|
-
* });
|
|
23
|
-
* ```
|
|
24
|
-
*/
|
|
25
|
-
settle(params, options) {
|
|
26
|
-
const { header_payment_signature, ...body } = params;
|
|
27
|
-
return this._client.post('/v2/x402/credit_account', {
|
|
28
|
-
body,
|
|
29
|
-
...options,
|
|
30
|
-
headers: (0, headers_1.buildHeaders)([
|
|
31
|
-
{
|
|
32
|
-
...(header_payment_signature != null ?
|
|
33
|
-
{ 'PAYMENT-SIGNATURE': header_payment_signature }
|
|
34
|
-
: undefined),
|
|
35
|
-
},
|
|
36
|
-
options?.headers,
|
|
37
|
-
]),
|
|
38
|
-
});
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* Creates a payment quote for the specified USD amount. Returns payment details
|
|
42
|
-
* including the x402 payment requirements, network, and expiration time. The quote
|
|
43
|
-
* must be settled before it expires.
|
|
44
|
-
*
|
|
45
|
-
* @example
|
|
46
|
-
* ```ts
|
|
47
|
-
* const response =
|
|
48
|
-
* await client.x402.creditAccount.createQuote({
|
|
49
|
-
* amount_usd: '50.00',
|
|
50
|
-
* });
|
|
51
|
-
* ```
|
|
52
|
-
*/
|
|
53
|
-
createQuote(body, options) {
|
|
54
|
-
return this._client.post('/v2/x402/credit_account/quote', { body, ...options });
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
exports.CreditAccount = CreditAccount;
|
|
4
|
+
const tslib_1 = require("../../internal/tslib.js");
|
|
5
|
+
tslib_1.__exportStar(require("./credit-account/index.js"), exports);
|
|
58
6
|
//# sourceMappingURL=credit-account.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"credit-account.js","sourceRoot":"","sources":["../../src/resources/x402/credit-account.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,
|
|
1
|
+
{"version":3,"file":"credit-account.js","sourceRoot":"","sources":["../../src/resources/x402/credit-account.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,oEAAuC"}
|
|
@@ -1,54 +1,3 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
import { buildHeaders } from "../../internal/headers.mjs";
|
|
4
|
-
/**
|
|
5
|
-
* Operations for x402 cryptocurrency payment transactions. Fund your Telnyx account using USDC stablecoin payments via the x402 protocol.
|
|
6
|
-
*/
|
|
7
|
-
export class CreditAccount extends APIResource {
|
|
8
|
-
/**
|
|
9
|
-
* Settles an x402 payment using the quote ID and a signed payment authorization.
|
|
10
|
-
* The payment signature can be provided via the `PAYMENT-SIGNATURE` header or the
|
|
11
|
-
* `payment_signature` body parameter. Settlement is idempotent — submitting the
|
|
12
|
-
* same quote ID multiple times returns the existing transaction.
|
|
13
|
-
*
|
|
14
|
-
* @example
|
|
15
|
-
* ```ts
|
|
16
|
-
* const response = await client.x402.creditAccount.settle({
|
|
17
|
-
* id: 'quote_abc123',
|
|
18
|
-
* payment_signature: '0xabc123...',
|
|
19
|
-
* });
|
|
20
|
-
* ```
|
|
21
|
-
*/
|
|
22
|
-
settle(params, options) {
|
|
23
|
-
const { header_payment_signature, ...body } = params;
|
|
24
|
-
return this._client.post('/v2/x402/credit_account', {
|
|
25
|
-
body,
|
|
26
|
-
...options,
|
|
27
|
-
headers: buildHeaders([
|
|
28
|
-
{
|
|
29
|
-
...(header_payment_signature != null ?
|
|
30
|
-
{ 'PAYMENT-SIGNATURE': header_payment_signature }
|
|
31
|
-
: undefined),
|
|
32
|
-
},
|
|
33
|
-
options?.headers,
|
|
34
|
-
]),
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* Creates a payment quote for the specified USD amount. Returns payment details
|
|
39
|
-
* including the x402 payment requirements, network, and expiration time. The quote
|
|
40
|
-
* must be settled before it expires.
|
|
41
|
-
*
|
|
42
|
-
* @example
|
|
43
|
-
* ```ts
|
|
44
|
-
* const response =
|
|
45
|
-
* await client.x402.creditAccount.createQuote({
|
|
46
|
-
* amount_usd: '50.00',
|
|
47
|
-
* });
|
|
48
|
-
* ```
|
|
49
|
-
*/
|
|
50
|
-
createQuote(body, options) {
|
|
51
|
-
return this._client.post('/v2/x402/credit_account/quote', { body, ...options });
|
|
52
|
-
}
|
|
53
|
-
}
|
|
2
|
+
export * from "./credit-account/index.mjs";
|
|
54
3
|
//# sourceMappingURL=credit-account.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"credit-account.mjs","sourceRoot":"","sources":["../../src/resources/x402/credit-account.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,
|
|
1
|
+
{"version":3,"file":"credit-account.mjs","sourceRoot":"","sources":["../../src/resources/x402/credit-account.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,2CAAuC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { CreditAccount, type CreditAccountCreateQuoteResponse, type CreditAccountSettleResponse, type CreditAccountSettleParams, type CreditAccountCreateQuoteParams, } from "./credit-account.mjs";
|
|
1
|
+
export { CreditAccount, type CreditAccountCreateQuoteResponse, type CreditAccountSettleResponse, type CreditAccountSettleParams, type CreditAccountCreateQuoteParams, } from "./credit-account/index.mjs";
|
|
2
2
|
export { X402 } from "./x402.mjs";
|
|
3
3
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/x402/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,aAAa,EACb,KAAK,gCAAgC,EACrC,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,EAC9B,KAAK,8BAA8B,GACpC,
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/x402/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,aAAa,EACb,KAAK,gCAAgC,EACrC,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,EAC9B,KAAK,8BAA8B,GACpC,mCAA+B;AAChC,OAAO,EAAE,IAAI,EAAE,mBAAe"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { CreditAccount, type CreditAccountCreateQuoteResponse, type CreditAccountSettleResponse, type CreditAccountSettleParams, type CreditAccountCreateQuoteParams, } from "./credit-account.js";
|
|
1
|
+
export { CreditAccount, type CreditAccountCreateQuoteResponse, type CreditAccountSettleResponse, type CreditAccountSettleParams, type CreditAccountCreateQuoteParams, } from "./credit-account/index.js";
|
|
2
2
|
export { X402 } from "./x402.js";
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/x402/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,aAAa,EACb,KAAK,gCAAgC,EACrC,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,EAC9B,KAAK,8BAA8B,GACpC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/x402/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,aAAa,EACb,KAAK,gCAAgC,EACrC,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,EAC9B,KAAK,8BAA8B,GACpC,kCAA+B;AAChC,OAAO,EAAE,IAAI,EAAE,kBAAe"}
|