@arbol-ai/sdk 5.59.0 → 5.60.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/dist/account/billing/client.d.ts +23 -0
- package/dist/account/billing/client.js +18 -0
- package/dist/account/billing/index.d.ts +5 -0
- package/dist/account/billing/index.js +4 -0
- package/dist/account/billing/models.d.ts +97 -0
- package/dist/account/billing/models.js +13 -0
- package/dist/account/billingPortalSessions/client.d.ts +24 -0
- package/dist/account/billingPortalSessions/client.js +18 -0
- package/dist/account/billingPortalSessions/index.d.ts +5 -0
- package/dist/account/billingPortalSessions/index.js +4 -0
- package/dist/account/billingPortalSessions/models.d.ts +69 -0
- package/dist/account/billingPortalSessions/models.js +3 -0
- package/dist/account/client.d.ts +10 -0
- package/dist/account/client.js +25 -0
- package/dist/account/index.d.ts +1 -1
- package/dist/account/models.d.ts +42 -0
- package/dist/account/usageSummary/client.d.ts +35 -0
- package/dist/account/usageSummary/client.js +19 -0
- package/dist/account/usageSummary/index.d.ts +5 -0
- package/dist/account/usageSummary/index.js +4 -0
- package/dist/account/usageSummary/models.d.ts +55 -0
- package/dist/account/usageSummary/models.js +10 -0
- package/dist/account/walletTopUps/client.d.ts +23 -0
- package/dist/account/walletTopUps/client.js +18 -0
- package/dist/account/walletTopUps/index.d.ts +5 -0
- package/dist/account/walletTopUps/index.js +4 -0
- package/dist/account/walletTopUps/models.d.ts +80 -0
- package/dist/account/walletTopUps/models.js +3 -0
- package/dist/account/walletTransactions/client.d.ts +36 -0
- package/dist/account/walletTransactions/client.js +19 -0
- package/dist/account/walletTransactions/index.d.ts +5 -0
- package/dist/account/walletTransactions/index.js +4 -0
- package/dist/account/walletTransactions/models.d.ts +78 -0
- package/dist/account/walletTransactions/models.js +13 -0
- package/package.json +3 -3
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
+
import { type AccountBillingResponse } from "./models.js";
|
|
3
|
+
export interface ClientOptions extends BaseClientOptions {
|
|
4
|
+
/**
|
|
5
|
+
* The URL the paths of the API are relative to.
|
|
6
|
+
*/
|
|
7
|
+
baseUrl: string;
|
|
8
|
+
}
|
|
9
|
+
export interface Client {
|
|
10
|
+
/**
|
|
11
|
+
* Get billing
|
|
12
|
+
*
|
|
13
|
+
* The organization's wallet in credits (one credit is one US dollar): credits
|
|
14
|
+
* left, granted and spent in the current period, whether running out stops
|
|
15
|
+
* service, its plans and the card a top-up charges.
|
|
16
|
+
*/
|
|
17
|
+
get(request?: GetRequest, options?: RequestOptions): Promise<GetResponse>;
|
|
18
|
+
}
|
|
19
|
+
export declare function createClient(options: ClientOptions): Client;
|
|
20
|
+
export declare function bind(transport: Transport): Client;
|
|
21
|
+
export interface GetRequest {
|
|
22
|
+
}
|
|
23
|
+
export type GetResponse = AccountBillingResponse;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// Code generated by forge. DO NOT EDIT.
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
import { Transport, } from "../../_/index.js";
|
|
4
|
+
import { AccountBillingResponseCodec, } from "./models.js";
|
|
5
|
+
export function createClient(options) {
|
|
6
|
+
return bind(new Transport(options));
|
|
7
|
+
}
|
|
8
|
+
export function bind(transport) {
|
|
9
|
+
return {
|
|
10
|
+
get: (request, options) => transport.send(GetOperation, request, options),
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
const GetOperation = {
|
|
14
|
+
method: "GET",
|
|
15
|
+
route: "/v1/account/billing",
|
|
16
|
+
response: AccountBillingResponseCodec,
|
|
17
|
+
errors: { "400": true, "401": true, "403": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
18
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { ApiError } from "../../_/index.js";
|
|
2
|
+
export type { RequestOptions } from "../../_/index.js";
|
|
3
|
+
export { createClient } from "./client.js";
|
|
4
|
+
export type { Client, ClientOptions, GetRequest, GetResponse, } from "./client.js";
|
|
5
|
+
export type { AccountBilling, AccountBillingPlan, AccountBillingResponse, AccountGetBillingServiceUnavailableError, AccountGetBillingServiceUnavailableFailure, } from "./models.js";
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import type { ResponseMetadata, UpstreamUnavailableFailure } from "../../models.js";
|
|
2
|
+
import type { AccountBillingNotConfiguredFailure, AccountBillingUnavailableFailure } from "../models.js";
|
|
3
|
+
export interface AccountBilling {
|
|
4
|
+
/**
|
|
5
|
+
* Credits left in the wallet; one credit is one US dollar.
|
|
6
|
+
*/
|
|
7
|
+
balance: number;
|
|
8
|
+
/**
|
|
9
|
+
* The card a top-up charges without asking for one.
|
|
10
|
+
*/
|
|
11
|
+
card: {
|
|
12
|
+
brand: string;
|
|
13
|
+
last4: string;
|
|
14
|
+
} | null;
|
|
15
|
+
/**
|
|
16
|
+
* Whether running out stops service now; until it does, a refusal is only
|
|
17
|
+
* recorded.
|
|
18
|
+
*/
|
|
19
|
+
enforced: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Credits the wallet received in the current period, top-ups included.
|
|
22
|
+
*/
|
|
23
|
+
granted: number;
|
|
24
|
+
/**
|
|
25
|
+
* When the plan's included credits renew.
|
|
26
|
+
*/
|
|
27
|
+
nextResetAt: Temporal.Instant | null;
|
|
28
|
+
/**
|
|
29
|
+
* Usage continues below zero, up to any limit agreed, and is settled later.
|
|
30
|
+
*/
|
|
31
|
+
overageAllowed: boolean;
|
|
32
|
+
plans: AccountBillingPlan[];
|
|
33
|
+
/**
|
|
34
|
+
* `new`: the organization has no wallet yet; its first use or top-up opens
|
|
35
|
+
* one.
|
|
36
|
+
*/
|
|
37
|
+
status: "active" | "new";
|
|
38
|
+
/**
|
|
39
|
+
* The credits one top-up may buy, in whole credits.
|
|
40
|
+
*/
|
|
41
|
+
topUp: {
|
|
42
|
+
maximum: number;
|
|
43
|
+
minimum: number;
|
|
44
|
+
};
|
|
45
|
+
/**
|
|
46
|
+
* The plan never stops usage for lack of credits.
|
|
47
|
+
*/
|
|
48
|
+
unlimited: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* Credits spent in the current period.
|
|
51
|
+
*/
|
|
52
|
+
used: number;
|
|
53
|
+
}
|
|
54
|
+
export interface AccountBillingPlan {
|
|
55
|
+
/**
|
|
56
|
+
* When the current period ends.
|
|
57
|
+
*/
|
|
58
|
+
currentPeriodEndsAt: Temporal.Instant | null;
|
|
59
|
+
/**
|
|
60
|
+
* The plan's id in Autumn, such as `arbol_prepaid` or a customer's own plan.
|
|
61
|
+
*/
|
|
62
|
+
id: string;
|
|
63
|
+
name: string;
|
|
64
|
+
/**
|
|
65
|
+
* A card payment of the plan failed and is still owed.
|
|
66
|
+
*/
|
|
67
|
+
pastDue: boolean;
|
|
68
|
+
status: "active" | "scheduled";
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* A successful answer.
|
|
72
|
+
*/
|
|
73
|
+
export interface AccountBillingResponse {
|
|
74
|
+
data: AccountBilling;
|
|
75
|
+
error: null;
|
|
76
|
+
/**
|
|
77
|
+
* What every answer carries besides its data or error.
|
|
78
|
+
*/
|
|
79
|
+
metadata: ResponseMetadata;
|
|
80
|
+
success: true;
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* A failed answer.
|
|
84
|
+
*/
|
|
85
|
+
export interface AccountGetBillingServiceUnavailableError {
|
|
86
|
+
data: null;
|
|
87
|
+
error: AccountGetBillingServiceUnavailableFailure;
|
|
88
|
+
/**
|
|
89
|
+
* What every answer carries besides its data or error.
|
|
90
|
+
*/
|
|
91
|
+
metadata: ResponseMetadata;
|
|
92
|
+
success: false;
|
|
93
|
+
}
|
|
94
|
+
export type AccountGetBillingServiceUnavailableFailure = UpstreamUnavailableFailure | AccountBillingNotConfiguredFailure | AccountBillingUnavailableFailure;
|
|
95
|
+
export declare const AccountBillingCodec: import("../../_/codec.js").Codec;
|
|
96
|
+
export declare const AccountBillingPlanCodec: import("../../_/codec.js").Codec;
|
|
97
|
+
export declare const AccountBillingResponseCodec: import("../../_/codec.js").Codec;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// Code generated by forge. DO NOT EDIT.
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
import { array, instant, object } from "../../_/index.js";
|
|
4
|
+
export const AccountBillingCodec = object([
|
|
5
|
+
["nextResetAt", null, instant],
|
|
6
|
+
["plans", null, array(() => AccountBillingPlanCodec)],
|
|
7
|
+
]);
|
|
8
|
+
export const AccountBillingPlanCodec = object([
|
|
9
|
+
["currentPeriodEndsAt", null, instant],
|
|
10
|
+
]);
|
|
11
|
+
export const AccountBillingResponseCodec = object([
|
|
12
|
+
["data", null, () => AccountBillingCodec],
|
|
13
|
+
]);
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
+
import type { Empty } from "../../models.js";
|
|
3
|
+
import type { AccountBillingPortalSessionResponse } from "./models.js";
|
|
4
|
+
export interface ClientOptions extends BaseClientOptions {
|
|
5
|
+
/**
|
|
6
|
+
* The URL the paths of the API are relative to.
|
|
7
|
+
*/
|
|
8
|
+
baseUrl: string;
|
|
9
|
+
}
|
|
10
|
+
export interface Client {
|
|
11
|
+
/**
|
|
12
|
+
* Open the card portal
|
|
13
|
+
*
|
|
14
|
+
* A session of Stripe's portal, where the organization's people change its
|
|
15
|
+
* saved card and download its card receipts.
|
|
16
|
+
*/
|
|
17
|
+
create(request: CreateRequest, options?: RequestOptions): Promise<CreateResponse>;
|
|
18
|
+
}
|
|
19
|
+
export declare function createClient(options: ClientOptions): Client;
|
|
20
|
+
export declare function bind(transport: Transport): Client;
|
|
21
|
+
export interface CreateRequest {
|
|
22
|
+
body: Empty;
|
|
23
|
+
}
|
|
24
|
+
export type CreateResponse = AccountBillingPortalSessionResponse;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// Code generated by forge. DO NOT EDIT.
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
import { Transport, } from "../../_/index.js";
|
|
4
|
+
export function createClient(options) {
|
|
5
|
+
return bind(new Transport(options));
|
|
6
|
+
}
|
|
7
|
+
export function bind(transport) {
|
|
8
|
+
return {
|
|
9
|
+
create: (request, options) => transport.send(CreateOperation, request, options),
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
const CreateOperation = {
|
|
13
|
+
method: "POST",
|
|
14
|
+
route: "/v1/account/billing-portal-sessions",
|
|
15
|
+
body: "nested",
|
|
16
|
+
response: null,
|
|
17
|
+
errors: { "400": true, "401": true, "403": true, "409": true, "413": true, "415": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
18
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { ApiError } from "../../_/index.js";
|
|
2
|
+
export type { RequestOptions } from "../../_/index.js";
|
|
3
|
+
export { createClient } from "./client.js";
|
|
4
|
+
export type { Client, ClientOptions, CreateRequest, CreateResponse, } from "./client.js";
|
|
5
|
+
export type { AccountBillingPortalSession, AccountBillingPortalSessionResponse, AccountBillingPortalUnavailableError, AccountBillingPortalUnavailableFailure, AccountCreateBillingPortalSessionServiceUnavailableError, AccountCreateBillingPortalSessionServiceUnavailableFailure, } from "./models.js";
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import type { Empty, ResponseMetadata, UpstreamUnavailableFailure } from "../../models.js";
|
|
2
|
+
import type { AccountBillingNotConfiguredFailure, AccountBillingUnavailableFailure } from "../models.js";
|
|
3
|
+
export interface AccountBillingPortalSession {
|
|
4
|
+
/**
|
|
5
|
+
* Stripe's portal, for the organization's cards and receipts.
|
|
6
|
+
*/
|
|
7
|
+
url: string;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* A successful answer.
|
|
11
|
+
*/
|
|
12
|
+
export interface AccountBillingPortalSessionResponse {
|
|
13
|
+
data: AccountBillingPortalSession;
|
|
14
|
+
error: null;
|
|
15
|
+
/**
|
|
16
|
+
* What every answer carries besides its data or error.
|
|
17
|
+
*/
|
|
18
|
+
metadata: ResponseMetadata;
|
|
19
|
+
success: true;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* A failed answer.
|
|
23
|
+
*/
|
|
24
|
+
export interface AccountBillingPortalUnavailableError {
|
|
25
|
+
data: null;
|
|
26
|
+
/**
|
|
27
|
+
* The organization has no card payments to manage yet.
|
|
28
|
+
*/
|
|
29
|
+
error: AccountBillingPortalUnavailableFailure;
|
|
30
|
+
/**
|
|
31
|
+
* What every answer carries besides its data or error.
|
|
32
|
+
*/
|
|
33
|
+
metadata: ResponseMetadata;
|
|
34
|
+
success: false;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* The organization has no card payments to manage yet.
|
|
38
|
+
*/
|
|
39
|
+
export interface AccountBillingPortalUnavailableFailure {
|
|
40
|
+
/**
|
|
41
|
+
* The failure code, stable across releases.
|
|
42
|
+
*/
|
|
43
|
+
code: "BILLING_PORTAL_UNAVAILABLE";
|
|
44
|
+
/**
|
|
45
|
+
* No fields.
|
|
46
|
+
*/
|
|
47
|
+
data: Empty;
|
|
48
|
+
/**
|
|
49
|
+
* What went wrong, for people; it never contains input values.
|
|
50
|
+
*/
|
|
51
|
+
message: string;
|
|
52
|
+
/**
|
|
53
|
+
* Whether repeating the same request may succeed.
|
|
54
|
+
*/
|
|
55
|
+
retryable: false;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* A failed answer.
|
|
59
|
+
*/
|
|
60
|
+
export interface AccountCreateBillingPortalSessionServiceUnavailableError {
|
|
61
|
+
data: null;
|
|
62
|
+
error: AccountCreateBillingPortalSessionServiceUnavailableFailure;
|
|
63
|
+
/**
|
|
64
|
+
* What every answer carries besides its data or error.
|
|
65
|
+
*/
|
|
66
|
+
metadata: ResponseMetadata;
|
|
67
|
+
success: false;
|
|
68
|
+
}
|
|
69
|
+
export type AccountCreateBillingPortalSessionServiceUnavailableFailure = UpstreamUnavailableFailure | AccountBillingNotConfiguredFailure | AccountBillingUnavailableFailure;
|
package/dist/account/client.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { type BaseClientOptions, Transport } from "../_/index.js";
|
|
2
2
|
import { type Client as ApiKeysClient } from "./apiKeys/client.js";
|
|
3
|
+
import { type Client as BillingClient } from "./billing/client.js";
|
|
4
|
+
import { type Client as BillingPortalSessionsClient } from "./billingPortalSessions/client.js";
|
|
3
5
|
import { type Client as ColombianRecordsClient } from "./colombianRecords/client.js";
|
|
4
6
|
import { type Client as ConnectionsClient } from "./connections/client.js";
|
|
5
7
|
import { type Client as InvitationsClient } from "./invitations/client.js";
|
|
@@ -9,6 +11,9 @@ import { type Client as OrganizationsClient } from "./organizations/client.js";
|
|
|
9
11
|
import { type Client as PermissionsClient } from "./permissions/client.js";
|
|
10
12
|
import { type Client as RegistryInstallationsClient } from "./registryInstallations/client.js";
|
|
11
13
|
import { type Client as RolesClient } from "./roles/client.js";
|
|
14
|
+
import { type Client as UsageSummaryClient } from "./usageSummary/client.js";
|
|
15
|
+
import { type Client as WalletTopUpsClient } from "./walletTopUps/client.js";
|
|
16
|
+
import { type Client as WalletTransactionsClient } from "./walletTransactions/client.js";
|
|
12
17
|
export interface ClientOptions extends BaseClientOptions {
|
|
13
18
|
/**
|
|
14
19
|
* The URL the paths of the API are relative to.
|
|
@@ -17,6 +22,8 @@ export interface ClientOptions extends BaseClientOptions {
|
|
|
17
22
|
}
|
|
18
23
|
export interface Client {
|
|
19
24
|
readonly apiKeys: ApiKeysClient;
|
|
25
|
+
readonly billing: BillingClient;
|
|
26
|
+
readonly billingPortalSessions: BillingPortalSessionsClient;
|
|
20
27
|
readonly colombianRecords: ColombianRecordsClient;
|
|
21
28
|
readonly connections: ConnectionsClient;
|
|
22
29
|
readonly invitations: InvitationsClient;
|
|
@@ -26,6 +33,9 @@ export interface Client {
|
|
|
26
33
|
readonly permissions: PermissionsClient;
|
|
27
34
|
readonly registryInstallations: RegistryInstallationsClient;
|
|
28
35
|
readonly roles: RolesClient;
|
|
36
|
+
readonly usageSummary: UsageSummaryClient;
|
|
37
|
+
readonly walletTopUps: WalletTopUpsClient;
|
|
38
|
+
readonly walletTransactions: WalletTransactionsClient;
|
|
29
39
|
}
|
|
30
40
|
export declare function createClient(options: ClientOptions): Client;
|
|
31
41
|
export declare function bind(transport: Transport): Client;
|
package/dist/account/client.js
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
import { Transport } from "../_/index.js";
|
|
4
4
|
import { bind as bindApiKeys, } from "./apiKeys/client.js";
|
|
5
|
+
import { bind as bindBilling, } from "./billing/client.js";
|
|
6
|
+
import { bind as bindBillingPortalSessions, } from "./billingPortalSessions/client.js";
|
|
5
7
|
import { bind as bindColombianRecords, } from "./colombianRecords/client.js";
|
|
6
8
|
import { bind as bindConnections, } from "./connections/client.js";
|
|
7
9
|
import { bind as bindInvitations, } from "./invitations/client.js";
|
|
@@ -11,11 +13,16 @@ import { bind as bindOrganizations, } from "./organizations/client.js";
|
|
|
11
13
|
import { bind as bindPermissions, } from "./permissions/client.js";
|
|
12
14
|
import { bind as bindRegistryInstallations, } from "./registryInstallations/client.js";
|
|
13
15
|
import { bind as bindRoles, } from "./roles/client.js";
|
|
16
|
+
import { bind as bindUsageSummary, } from "./usageSummary/client.js";
|
|
17
|
+
import { bind as bindWalletTopUps, } from "./walletTopUps/client.js";
|
|
18
|
+
import { bind as bindWalletTransactions, } from "./walletTransactions/client.js";
|
|
14
19
|
export function createClient(options) {
|
|
15
20
|
return bind(new Transport(options));
|
|
16
21
|
}
|
|
17
22
|
export function bind(transport) {
|
|
18
23
|
let apiKeysClient;
|
|
24
|
+
let billingClient;
|
|
25
|
+
let billingPortalSessionsClient;
|
|
19
26
|
let colombianRecordsClient;
|
|
20
27
|
let connectionsClient;
|
|
21
28
|
let invitationsClient;
|
|
@@ -25,10 +32,19 @@ export function bind(transport) {
|
|
|
25
32
|
let permissionsClient;
|
|
26
33
|
let registryInstallationsClient;
|
|
27
34
|
let rolesClient;
|
|
35
|
+
let usageSummaryClient;
|
|
36
|
+
let walletTopUpsClient;
|
|
37
|
+
let walletTransactionsClient;
|
|
28
38
|
return {
|
|
29
39
|
get apiKeys() {
|
|
30
40
|
return (apiKeysClient ??= bindApiKeys(transport));
|
|
31
41
|
},
|
|
42
|
+
get billing() {
|
|
43
|
+
return (billingClient ??= bindBilling(transport));
|
|
44
|
+
},
|
|
45
|
+
get billingPortalSessions() {
|
|
46
|
+
return (billingPortalSessionsClient ??= bindBillingPortalSessions(transport));
|
|
47
|
+
},
|
|
32
48
|
get colombianRecords() {
|
|
33
49
|
return (colombianRecordsClient ??= bindColombianRecords(transport));
|
|
34
50
|
},
|
|
@@ -56,5 +72,14 @@ export function bind(transport) {
|
|
|
56
72
|
get roles() {
|
|
57
73
|
return (rolesClient ??= bindRoles(transport));
|
|
58
74
|
},
|
|
75
|
+
get usageSummary() {
|
|
76
|
+
return (usageSummaryClient ??= bindUsageSummary(transport));
|
|
77
|
+
},
|
|
78
|
+
get walletTopUps() {
|
|
79
|
+
return (walletTopUpsClient ??= bindWalletTopUps(transport));
|
|
80
|
+
},
|
|
81
|
+
get walletTransactions() {
|
|
82
|
+
return (walletTransactionsClient ??= bindWalletTransactions(transport));
|
|
83
|
+
},
|
|
59
84
|
};
|
|
60
85
|
}
|
package/dist/account/index.d.ts
CHANGED
|
@@ -2,4 +2,4 @@ export { ApiError } from "../_/index.js";
|
|
|
2
2
|
export type { RequestOptions } from "../_/index.js";
|
|
3
3
|
export { createClient } from "./client.js";
|
|
4
4
|
export type { Client, ClientOptions, } from "./client.js";
|
|
5
|
-
export type { AccountAccountNotConfiguredFailure, AccountIdentityRejectedError, AccountIdentityRejectedFailure, AccountIdentityUnavailableFailure, AccountMemberProtectedFailure, AccountProductRole, AccountRoleNotAssignableFailure, } from "./models.js";
|
|
5
|
+
export type { AccountAccountNotConfiguredFailure, AccountBillingNotConfiguredFailure, AccountBillingUnavailableFailure, AccountIdentityRejectedError, AccountIdentityRejectedFailure, AccountIdentityUnavailableFailure, AccountMemberProtectedFailure, AccountProductRole, AccountRoleNotAssignableFailure, } from "./models.js";
|
package/dist/account/models.d.ts
CHANGED
|
@@ -20,6 +20,48 @@ export interface AccountAccountNotConfiguredFailure {
|
|
|
20
20
|
*/
|
|
21
21
|
retryable: false;
|
|
22
22
|
}
|
|
23
|
+
/**
|
|
24
|
+
* Billing is not configured yet.
|
|
25
|
+
*/
|
|
26
|
+
export interface AccountBillingNotConfiguredFailure {
|
|
27
|
+
/**
|
|
28
|
+
* The failure code, stable across releases.
|
|
29
|
+
*/
|
|
30
|
+
code: "BILLING_NOT_CONFIGURED";
|
|
31
|
+
/**
|
|
32
|
+
* No fields.
|
|
33
|
+
*/
|
|
34
|
+
data: Empty;
|
|
35
|
+
/**
|
|
36
|
+
* What went wrong, for people; it never contains input values.
|
|
37
|
+
*/
|
|
38
|
+
message: string;
|
|
39
|
+
/**
|
|
40
|
+
* Whether repeating the same request may succeed.
|
|
41
|
+
*/
|
|
42
|
+
retryable: false;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* The billing service did not answer.
|
|
46
|
+
*/
|
|
47
|
+
export interface AccountBillingUnavailableFailure {
|
|
48
|
+
/**
|
|
49
|
+
* The failure code, stable across releases.
|
|
50
|
+
*/
|
|
51
|
+
code: "BILLING_UNAVAILABLE";
|
|
52
|
+
/**
|
|
53
|
+
* No fields.
|
|
54
|
+
*/
|
|
55
|
+
data: Empty;
|
|
56
|
+
/**
|
|
57
|
+
* What went wrong, for people; it never contains input values.
|
|
58
|
+
*/
|
|
59
|
+
message: string;
|
|
60
|
+
/**
|
|
61
|
+
* Whether repeating the same request may succeed.
|
|
62
|
+
*/
|
|
63
|
+
retryable: true;
|
|
64
|
+
}
|
|
23
65
|
/**
|
|
24
66
|
* A failed answer.
|
|
25
67
|
*/
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
+
import { type AccountUsageSummaryResponse } from "./models.js";
|
|
3
|
+
export interface ClientOptions extends BaseClientOptions {
|
|
4
|
+
/**
|
|
5
|
+
* The URL the paths of the API are relative to.
|
|
6
|
+
*/
|
|
7
|
+
baseUrl: string;
|
|
8
|
+
}
|
|
9
|
+
export interface Client {
|
|
10
|
+
/**
|
|
11
|
+
* Get the usage summary
|
|
12
|
+
*
|
|
13
|
+
* What the organization used in a range, the current month by default: each
|
|
14
|
+
* metered feature in its own units (minutes, conversations, lookups…), broken
|
|
15
|
+
* down by product or channel, and the credits its wallet paid.
|
|
16
|
+
*/
|
|
17
|
+
get(request?: GetRequest, options?: RequestOptions): Promise<GetResponse>;
|
|
18
|
+
}
|
|
19
|
+
export declare function createClient(options: ClientOptions): Client;
|
|
20
|
+
export declare function bind(transport: Transport): Client;
|
|
21
|
+
export interface GetRequest {
|
|
22
|
+
/**
|
|
23
|
+
* Start of the range; the current month by default.
|
|
24
|
+
*/
|
|
25
|
+
from?: Temporal.Instant;
|
|
26
|
+
/**
|
|
27
|
+
* End of the range; now by default.
|
|
28
|
+
*/
|
|
29
|
+
to?: Temporal.Instant;
|
|
30
|
+
/**
|
|
31
|
+
* Breaks each feature down; by product by default.
|
|
32
|
+
*/
|
|
33
|
+
groupBy?: "product" | "channel";
|
|
34
|
+
}
|
|
35
|
+
export type GetResponse = AccountUsageSummaryResponse;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// Code generated by forge. DO NOT EDIT.
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
import { Transport, } from "../../_/index.js";
|
|
4
|
+
import { AccountUsageSummaryResponseCodec, } from "./models.js";
|
|
5
|
+
export function createClient(options) {
|
|
6
|
+
return bind(new Transport(options));
|
|
7
|
+
}
|
|
8
|
+
export function bind(transport) {
|
|
9
|
+
return {
|
|
10
|
+
get: (request, options) => transport.send(GetOperation, request, options),
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
const GetOperation = {
|
|
14
|
+
method: "GET",
|
|
15
|
+
route: "/v1/account/usage-summary",
|
|
16
|
+
query: { from: "from", to: "to", groupBy: "groupBy" },
|
|
17
|
+
response: AccountUsageSummaryResponseCodec,
|
|
18
|
+
errors: { "400": true, "401": true, "403": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
19
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { ApiError } from "../../_/index.js";
|
|
2
|
+
export type { RequestOptions } from "../../_/index.js";
|
|
3
|
+
export { createClient } from "./client.js";
|
|
4
|
+
export type { Client, ClientOptions, GetRequest, GetResponse, } from "./client.js";
|
|
5
|
+
export type { AccountGetUsageSummaryServiceUnavailableError, AccountGetUsageSummaryServiceUnavailableFailure, AccountUsageFeature, AccountUsageSummary, AccountUsageSummaryResponse, } from "./models.js";
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import type { ResponseMetadata, UpstreamUnavailableFailure } from "../../models.js";
|
|
2
|
+
import type { AccountBillingNotConfiguredFailure, AccountBillingUnavailableFailure } from "../models.js";
|
|
3
|
+
/**
|
|
4
|
+
* A failed answer.
|
|
5
|
+
*/
|
|
6
|
+
export interface AccountGetUsageSummaryServiceUnavailableError {
|
|
7
|
+
data: null;
|
|
8
|
+
error: AccountGetUsageSummaryServiceUnavailableFailure;
|
|
9
|
+
/**
|
|
10
|
+
* What every answer carries besides its data or error.
|
|
11
|
+
*/
|
|
12
|
+
metadata: ResponseMetadata;
|
|
13
|
+
success: false;
|
|
14
|
+
}
|
|
15
|
+
export type AccountGetUsageSummaryServiceUnavailableFailure = UpstreamUnavailableFailure | AccountBillingNotConfiguredFailure | AccountBillingUnavailableFailure;
|
|
16
|
+
export interface AccountUsageFeature {
|
|
17
|
+
/**
|
|
18
|
+
* How many reports made it up.
|
|
19
|
+
*/
|
|
20
|
+
events: number;
|
|
21
|
+
feature: "voice_minutes" | "telephony_minutes" | "whatsapp_conversations" | "whatsapp_messages" | "whatsapp_templates" | "tool_calls" | "ai_cost" | "phone_numbers" | "sisben_lookups" | "agenda_plan" | "agenda_users" | "support_fee";
|
|
22
|
+
groups: {
|
|
23
|
+
key: string;
|
|
24
|
+
units: number;
|
|
25
|
+
}[];
|
|
26
|
+
/**
|
|
27
|
+
* What was used, in the feature's units: minutes, conversations, lookups… For
|
|
28
|
+
* `ai_cost`, the model calls.
|
|
29
|
+
*/
|
|
30
|
+
units: number;
|
|
31
|
+
}
|
|
32
|
+
export interface AccountUsageSummary {
|
|
33
|
+
/**
|
|
34
|
+
* Credits the wallet paid in the range.
|
|
35
|
+
*/
|
|
36
|
+
credits: number;
|
|
37
|
+
features: AccountUsageFeature[];
|
|
38
|
+
from: Temporal.Instant;
|
|
39
|
+
groupBy: "product" | "channel";
|
|
40
|
+
to: Temporal.Instant;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* A successful answer.
|
|
44
|
+
*/
|
|
45
|
+
export interface AccountUsageSummaryResponse {
|
|
46
|
+
data: AccountUsageSummary;
|
|
47
|
+
error: null;
|
|
48
|
+
/**
|
|
49
|
+
* What every answer carries besides its data or error.
|
|
50
|
+
*/
|
|
51
|
+
metadata: ResponseMetadata;
|
|
52
|
+
success: true;
|
|
53
|
+
}
|
|
54
|
+
export declare const AccountUsageSummaryCodec: import("../../_/codec.js").Codec;
|
|
55
|
+
export declare const AccountUsageSummaryResponseCodec: import("../../_/codec.js").Codec;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// Code generated by forge. DO NOT EDIT.
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
import { instant, object } from "../../_/index.js";
|
|
4
|
+
export const AccountUsageSummaryCodec = object([
|
|
5
|
+
["from", null, instant],
|
|
6
|
+
["to", null, instant],
|
|
7
|
+
]);
|
|
8
|
+
export const AccountUsageSummaryResponseCodec = object([
|
|
9
|
+
["data", null, () => AccountUsageSummaryCodec],
|
|
10
|
+
]);
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
+
import type { AccountCreateWalletTopUpBody, AccountWalletTopUpResponse } from "./models.js";
|
|
3
|
+
export interface ClientOptions extends BaseClientOptions {
|
|
4
|
+
/**
|
|
5
|
+
* The URL the paths of the API are relative to.
|
|
6
|
+
*/
|
|
7
|
+
baseUrl: string;
|
|
8
|
+
}
|
|
9
|
+
export interface Client {
|
|
10
|
+
/**
|
|
11
|
+
* Top up the wallet
|
|
12
|
+
*
|
|
13
|
+
* Buys credits at one US dollar each. The organization's saved card is
|
|
14
|
+
* charged at once; without one, or when the bank asks to confirm, the answer
|
|
15
|
+
* is Stripe's page to pay on. Never repeated on its own: a lost answer is
|
|
16
|
+
* OUTCOME_UNKNOWN, and the wallet's transactions say whether it was paid.
|
|
17
|
+
*/
|
|
18
|
+
create(request: CreateRequest, options?: RequestOptions): Promise<CreateResponse>;
|
|
19
|
+
}
|
|
20
|
+
export declare function createClient(options: ClientOptions): Client;
|
|
21
|
+
export declare function bind(transport: Transport): Client;
|
|
22
|
+
export type CreateRequest = AccountCreateWalletTopUpBody;
|
|
23
|
+
export type CreateResponse = AccountWalletTopUpResponse;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// Code generated by forge. DO NOT EDIT.
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
import { Transport, } from "../../_/index.js";
|
|
4
|
+
export function createClient(options) {
|
|
5
|
+
return bind(new Transport(options));
|
|
6
|
+
}
|
|
7
|
+
export function bind(transport) {
|
|
8
|
+
return {
|
|
9
|
+
create: (request, options) => transport.send(CreateOperation, request, options),
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
const CreateOperation = {
|
|
13
|
+
method: "POST",
|
|
14
|
+
route: "/v1/account/wallet-top-ups",
|
|
15
|
+
body: "flat",
|
|
16
|
+
response: null,
|
|
17
|
+
errors: { "400": true, "401": true, "402": true, "403": true, "413": true, "415": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
18
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { ApiError } from "../../_/index.js";
|
|
2
|
+
export type { RequestOptions } from "../../_/index.js";
|
|
3
|
+
export { createClient } from "./client.js";
|
|
4
|
+
export type { Client, ClientOptions, CreateRequest, CreateResponse, } from "./client.js";
|
|
5
|
+
export type { AccountCreateWalletTopUpBody, AccountCreateWalletTopUpServiceUnavailableError, AccountCreateWalletTopUpServiceUnavailableFailure, AccountTopUpDeclinedError, AccountTopUpDeclinedFailure, AccountWalletTopUp, AccountWalletTopUpResponse, } from "./models.js";
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import type { Empty, ResponseMetadata, UpstreamUnavailableFailure } from "../../models.js";
|
|
2
|
+
import type { AccountBillingNotConfiguredFailure, AccountBillingUnavailableFailure } from "../models.js";
|
|
3
|
+
export interface AccountCreateWalletTopUpBody {
|
|
4
|
+
/**
|
|
5
|
+
* Credits to buy, at one US dollar each.
|
|
6
|
+
*/
|
|
7
|
+
credits: number;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* A failed answer.
|
|
11
|
+
*/
|
|
12
|
+
export interface AccountCreateWalletTopUpServiceUnavailableError {
|
|
13
|
+
data: null;
|
|
14
|
+
error: AccountCreateWalletTopUpServiceUnavailableFailure;
|
|
15
|
+
/**
|
|
16
|
+
* What every answer carries besides its data or error.
|
|
17
|
+
*/
|
|
18
|
+
metadata: ResponseMetadata;
|
|
19
|
+
success: false;
|
|
20
|
+
}
|
|
21
|
+
export type AccountCreateWalletTopUpServiceUnavailableFailure = UpstreamUnavailableFailure | AccountBillingNotConfiguredFailure | AccountBillingUnavailableFailure;
|
|
22
|
+
/**
|
|
23
|
+
* A failed answer.
|
|
24
|
+
*/
|
|
25
|
+
export interface AccountTopUpDeclinedError {
|
|
26
|
+
data: null;
|
|
27
|
+
/**
|
|
28
|
+
* The card was not charged: the payment was declined.
|
|
29
|
+
*/
|
|
30
|
+
error: AccountTopUpDeclinedFailure;
|
|
31
|
+
/**
|
|
32
|
+
* What every answer carries besides its data or error.
|
|
33
|
+
*/
|
|
34
|
+
metadata: ResponseMetadata;
|
|
35
|
+
success: false;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* The card was not charged: the payment was declined.
|
|
39
|
+
*/
|
|
40
|
+
export interface AccountTopUpDeclinedFailure {
|
|
41
|
+
/**
|
|
42
|
+
* The failure code, stable across releases.
|
|
43
|
+
*/
|
|
44
|
+
code: "TOP_UP_DECLINED";
|
|
45
|
+
/**
|
|
46
|
+
* No fields.
|
|
47
|
+
*/
|
|
48
|
+
data: Empty;
|
|
49
|
+
/**
|
|
50
|
+
* What went wrong, for people; it never contains input values.
|
|
51
|
+
*/
|
|
52
|
+
message: string;
|
|
53
|
+
/**
|
|
54
|
+
* Whether repeating the same request may succeed.
|
|
55
|
+
*/
|
|
56
|
+
retryable: false;
|
|
57
|
+
}
|
|
58
|
+
export interface AccountWalletTopUp {
|
|
59
|
+
/**
|
|
60
|
+
* Stripe's page to pay on, for `checkout`.
|
|
61
|
+
*/
|
|
62
|
+
checkoutUrl: string | null;
|
|
63
|
+
/**
|
|
64
|
+
* `paid`: the saved card was charged and the credits are in the wallet;
|
|
65
|
+
* `checkout`: pay on `checkoutUrl`.
|
|
66
|
+
*/
|
|
67
|
+
status: "paid" | "checkout";
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* A successful answer.
|
|
71
|
+
*/
|
|
72
|
+
export interface AccountWalletTopUpResponse {
|
|
73
|
+
data: AccountWalletTopUp;
|
|
74
|
+
error: null;
|
|
75
|
+
/**
|
|
76
|
+
* What every answer carries besides its data or error.
|
|
77
|
+
*/
|
|
78
|
+
metadata: ResponseMetadata;
|
|
79
|
+
success: true;
|
|
80
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
+
import { type AccountWalletTransactionPageResponse } from "./models.js";
|
|
3
|
+
export interface ClientOptions extends BaseClientOptions {
|
|
4
|
+
/**
|
|
5
|
+
* The URL the paths of the API are relative to.
|
|
6
|
+
*/
|
|
7
|
+
baseUrl: string;
|
|
8
|
+
}
|
|
9
|
+
export interface Client {
|
|
10
|
+
/**
|
|
11
|
+
* List wallet transactions
|
|
12
|
+
*
|
|
13
|
+
* What moved the organization's wallet, newest first: top-ups, plan grants
|
|
14
|
+
* and renewals, adjustments Arbol made, and the credits spent, one entry per
|
|
15
|
+
* UTC day, each with the balance right after it. Listed forward only.
|
|
16
|
+
*/
|
|
17
|
+
list(request?: ListRequest, options?: RequestOptions): Promise<ListResponse>;
|
|
18
|
+
}
|
|
19
|
+
export declare function createClient(options: ClientOptions): Client;
|
|
20
|
+
export declare function bind(transport: Transport): Client;
|
|
21
|
+
export interface ListRequest {
|
|
22
|
+
/**
|
|
23
|
+
* Opaque cursor returned by pageInfo; omit it to request the first page.
|
|
24
|
+
*/
|
|
25
|
+
cursor?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Direction to traverse the stable keyset ordering from the supplied cursor.
|
|
28
|
+
*/
|
|
29
|
+
direction?: "forward" | "backward";
|
|
30
|
+
/**
|
|
31
|
+
* Maximum items returned in one page. Defaults to 25; larger reads require
|
|
32
|
+
* another cursor.
|
|
33
|
+
*/
|
|
34
|
+
limit?: number;
|
|
35
|
+
}
|
|
36
|
+
export type ListResponse = AccountWalletTransactionPageResponse;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// Code generated by forge. DO NOT EDIT.
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
import { Transport, } from "../../_/index.js";
|
|
4
|
+
import { AccountWalletTransactionPageResponseCodec, } from "./models.js";
|
|
5
|
+
export function createClient(options) {
|
|
6
|
+
return bind(new Transport(options));
|
|
7
|
+
}
|
|
8
|
+
export function bind(transport) {
|
|
9
|
+
return {
|
|
10
|
+
list: (request, options) => transport.send(ListOperation, request, options),
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
const ListOperation = {
|
|
14
|
+
method: "GET",
|
|
15
|
+
route: "/v1/account/wallet-transactions",
|
|
16
|
+
query: { cursor: "cursor", direction: "direction", limit: "limit" },
|
|
17
|
+
response: AccountWalletTransactionPageResponseCodec,
|
|
18
|
+
errors: { "400": true, "401": true, "403": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
19
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { ApiError } from "../../_/index.js";
|
|
2
|
+
export type { RequestOptions } from "../../_/index.js";
|
|
3
|
+
export { createClient } from "./client.js";
|
|
4
|
+
export type { Client, ClientOptions, ListRequest, ListResponse, } from "./client.js";
|
|
5
|
+
export type { AccountListWalletTransactionsServiceUnavailableError, AccountListWalletTransactionsServiceUnavailableFailure, AccountWalletTransaction, AccountWalletTransactionPage, AccountWalletTransactionPageResponse, } from "./models.js";
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import type { PageInfo, ResponseMetadata, UpstreamUnavailableFailure } from "../../models.js";
|
|
2
|
+
import type { AccountBillingNotConfiguredFailure, AccountBillingUnavailableFailure } from "../models.js";
|
|
3
|
+
/**
|
|
4
|
+
* A failed answer.
|
|
5
|
+
*/
|
|
6
|
+
export interface AccountListWalletTransactionsServiceUnavailableError {
|
|
7
|
+
data: null;
|
|
8
|
+
error: AccountListWalletTransactionsServiceUnavailableFailure;
|
|
9
|
+
/**
|
|
10
|
+
* What every answer carries besides its data or error.
|
|
11
|
+
*/
|
|
12
|
+
metadata: ResponseMetadata;
|
|
13
|
+
success: false;
|
|
14
|
+
}
|
|
15
|
+
export type AccountListWalletTransactionsServiceUnavailableFailure = UpstreamUnavailableFailure | AccountBillingNotConfiguredFailure | AccountBillingUnavailableFailure;
|
|
16
|
+
export interface AccountWalletTransaction {
|
|
17
|
+
/**
|
|
18
|
+
* Credits it added (positive) or took (negative); null when Autumn could not
|
|
19
|
+
* tell.
|
|
20
|
+
*/
|
|
21
|
+
amount: number | null;
|
|
22
|
+
/**
|
|
23
|
+
* Its amounts are Autumn’s estimate, not an exact record.
|
|
24
|
+
*/
|
|
25
|
+
approximate: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Credits left right after it.
|
|
28
|
+
*/
|
|
29
|
+
balanceAfter: number | null;
|
|
30
|
+
/**
|
|
31
|
+
* For usage, how many reports it groups.
|
|
32
|
+
*/
|
|
33
|
+
count: number | null;
|
|
34
|
+
/**
|
|
35
|
+
* For a day of usage, its last use.
|
|
36
|
+
*/
|
|
37
|
+
endsAt: Temporal.Instant | null;
|
|
38
|
+
id: string;
|
|
39
|
+
/**
|
|
40
|
+
* `usage`: credits spent, one entry per UTC day; `top_up`: credits bought;
|
|
41
|
+
* `plan`: a plan's grant or change; `reset`: the plan's period renewed;
|
|
42
|
+
* `adjustment`: a change Arbol made.
|
|
43
|
+
*/
|
|
44
|
+
kind: "usage" | "top_up" | "plan" | "reset" | "adjustment";
|
|
45
|
+
/**
|
|
46
|
+
* When it happened; for a day of usage, its first use.
|
|
47
|
+
*/
|
|
48
|
+
occurredAt: Temporal.Instant;
|
|
49
|
+
}
|
|
50
|
+
export interface AccountWalletTransactionPage {
|
|
51
|
+
/**
|
|
52
|
+
* Items admitted by this resource contract within the verified organization.
|
|
53
|
+
*/
|
|
54
|
+
data: AccountWalletTransaction[];
|
|
55
|
+
/**
|
|
56
|
+
* Discriminator for a resource list response.
|
|
57
|
+
*/
|
|
58
|
+
object: "list";
|
|
59
|
+
/**
|
|
60
|
+
* Opaque navigation cursors for this page’s stable keyset order.
|
|
61
|
+
*/
|
|
62
|
+
pageInfo: PageInfo;
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* A successful answer.
|
|
66
|
+
*/
|
|
67
|
+
export interface AccountWalletTransactionPageResponse {
|
|
68
|
+
data: AccountWalletTransactionPage;
|
|
69
|
+
error: null;
|
|
70
|
+
/**
|
|
71
|
+
* What every answer carries besides its data or error.
|
|
72
|
+
*/
|
|
73
|
+
metadata: ResponseMetadata;
|
|
74
|
+
success: true;
|
|
75
|
+
}
|
|
76
|
+
export declare const AccountWalletTransactionCodec: import("../../_/codec.js").Codec;
|
|
77
|
+
export declare const AccountWalletTransactionPageCodec: import("../../_/codec.js").Codec;
|
|
78
|
+
export declare const AccountWalletTransactionPageResponseCodec: import("../../_/codec.js").Codec;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// Code generated by forge. DO NOT EDIT.
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
import { array, instant, object } from "../../_/index.js";
|
|
4
|
+
export const AccountWalletTransactionCodec = object([
|
|
5
|
+
["endsAt", null, instant],
|
|
6
|
+
["occurredAt", null, instant],
|
|
7
|
+
]);
|
|
8
|
+
export const AccountWalletTransactionPageCodec = object([
|
|
9
|
+
["data", null, array(() => AccountWalletTransactionCodec)],
|
|
10
|
+
]);
|
|
11
|
+
export const AccountWalletTransactionPageResponseCodec = object([
|
|
12
|
+
["data", null, () => AccountWalletTransactionPageCodec],
|
|
13
|
+
]);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arbol-ai/sdk",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.60.0",
|
|
4
4
|
"description": "The Arbol API for TypeScript and JavaScript, generated by Cloudflare Forge from the platform's public OpenAPI.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"arbol",
|
|
@@ -58,8 +58,8 @@
|
|
|
58
58
|
"packageManager": "bun@1.4.3",
|
|
59
59
|
"arbol": {
|
|
60
60
|
"openapi": {
|
|
61
|
-
"release": "1.20261114.
|
|
62
|
-
"sha256": "
|
|
61
|
+
"release": "1.20261114.221927",
|
|
62
|
+
"sha256": "aed83503451737d4e09f8f24d1bfeb840077d6a93bc3e0496595b4229fe7b2cc"
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
}
|