agental-sdk 0.6.0 → 0.8.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/README.md +9 -0
- package/dist/client.d.ts +18 -1
- package/dist/client.js +29 -0
- package/dist/index.d.ts +1 -1
- package/dist/openapi.d.ts +218 -0
- package/dist/types.d.ts +7 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -344,6 +344,15 @@ An account starts on the free plan: nothing a month, and what it runs is paid fr
|
|
|
344
344
|
|
|
345
345
|
`setAutoReload(dollars)` has the card saved at the last purchase charged for a top-up of that much, with tax, when the month's credits and the top-ups run out, and the credits added at once, before any sandbox is stopped: at most three times a day, and not again for a day after a card that would not pay. `setAutoReload(null)` turns it off, and `billing().autoReload` says how it is set. It needs a card saved first: `billing().canAutoReload` says whether it can be set, and the call answers `409 no_card` until then.
|
|
346
346
|
|
|
347
|
+
```ts
|
|
348
|
+
const page = await agental.invoices({ limit: 10 });
|
|
349
|
+
for await (const invoice of agental.allInvoices()) console.log(invoice.number, invoice.status, invoice.totalMicros);
|
|
350
|
+
const { card } = await agental.card();
|
|
351
|
+
const { details } = await agental.billingDetails();
|
|
352
|
+
```
|
|
353
|
+
|
|
354
|
+
`invoices()` gives the account's invoices from the payment provider, newest first, 25 to a page unless `limit` says otherwise: a plan's months, top-ups and auto-reloads, each with its number, state, what it was for, what it came to in millionths, and its page and PDF (`null` for an admin). Pass a page's `next` as `startingAfter` for the page after it, or let `allInvoices()` read them all. `card()` gives the card the account pays with now: brand, last four, expiry and wallet, or `null` where none is saved. `billingDetails()` gives who the invoices are made out to: the email they go to, the name and address on them and the tax ids, or `null` before the account has bought anything. It is the owner's to read: an admin's call is refused with 403.
|
|
355
|
+
|
|
347
356
|
The free plan makes tiny and small sandboxes, the $100 plan medium ones too, and the $500 and $2000 plans every size: `prices.tiers` lists the plans, and each plan's `sizes` says which. A create, fork or template start of a size the plan does not make throws an `ApiError` with the status 402 and the code `size_not_on_plan`, whose message names the plan that makes it. A sandbox made before a change of plan still starts at its own size.
|
|
348
357
|
|
|
349
358
|
## How many you run, and how fast you start them
|
package/dist/client.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Http, type AgentalOptions } from "./http.js";
|
|
2
2
|
import { Email, Sandbox, type CreateOptions } from "./sandbox.js";
|
|
3
3
|
import { Templates } from "./template.js";
|
|
4
|
-
import type { AccountEmail, AccountExport, ApiKey, ApiKeyUsage, Billing, Headroom, HeadroomNow, HeadroomRange, Catalog, HostRoute, Invite, Me, Member, Organization, Region, AutoReload, Checkout, DataRetention, CreateApiKey, CreatedApiKey, MetricsAtMoment, Policy, Prices, RunningOverTime, SandboxSummary, SandboxJob, SandboxJobItem, SandboxJobPreview, Snapshot, Team, TeamRole, Telemetry, TelemetryTest, ClaudeConnection, ClaudeSession, RunsOnRepository, RunsOnRepositories, Usage, Webhook, EgressAccount } from "./types.js";
|
|
4
|
+
import type { AccountEmail, AccountExport, ApiKey, ApiKeyUsage, Billing, Headroom, HeadroomNow, HeadroomRange, Catalog, HostRoute, Invite, Me, Member, Organization, Region, AutoReload, BillingCard, BillingDetails, BillingInvoice, BillingInvoices, Checkout, DataRetention, CreateApiKey, CreatedApiKey, MetricsAtMoment, Policy, Prices, RunningOverTime, SandboxSummary, SandboxJob, SandboxJobItem, SandboxJobPreview, Snapshot, Team, TeamRole, Telemetry, TelemetryTest, ClaudeConnection, ClaudeSession, RunsOnRepository, RunsOnRepositories, Usage, Webhook, EgressAccount } from "./types.js";
|
|
5
5
|
/** What a list of sandboxes is narrowed to. Each field left out narrows nothing; a list of values is any of them. */
|
|
6
6
|
export interface SandboxFilter {
|
|
7
7
|
/** Tags every sandbox has. */
|
|
@@ -310,6 +310,23 @@ export declare class Agental {
|
|
|
310
310
|
* first, by checkout(): billing().canAutoReload says whether it can be set.
|
|
311
311
|
*/
|
|
312
312
|
setAutoReload(dollars: number | null): Promise<AutoReload>;
|
|
313
|
+
/**
|
|
314
|
+
* The account's invoices, newest first, read from the payment provider: a plan's months, top-ups
|
|
315
|
+
* and auto-reloads, drafts left out. 25 unless limit says otherwise, 100 at most; pass a page's
|
|
316
|
+
* next as startingAfter for the page after it. An admin is given no pageUrl or pdfUrl.
|
|
317
|
+
*/
|
|
318
|
+
invoices(options?: {
|
|
319
|
+
limit?: number;
|
|
320
|
+
startingAfter?: string;
|
|
321
|
+
}): Promise<BillingInvoices>;
|
|
322
|
+
/** Every invoice, newest first, read a page at a time as they are asked for. */
|
|
323
|
+
allInvoices(options?: {
|
|
324
|
+
limit?: number;
|
|
325
|
+
}): AsyncGenerator<BillingInvoice, void, void>;
|
|
326
|
+
/** The card the account pays with now, the one an auto-reload charges: its brand, last four, expiry and wallet, or null where none is saved. */
|
|
327
|
+
card(): Promise<BillingCard>;
|
|
328
|
+
/** Who the account's invoices are made out to: the email they go to, the name and address on them, and its tax ids. Null before it has bought anything. An owner's to read: an admin is refused with 403. */
|
|
329
|
+
billingDetails(): Promise<BillingDetails>;
|
|
313
330
|
/** The account's mail: the handle every address of its sandboxes carries, what its plan allows, and what it has had of that today. */
|
|
314
331
|
email(): Promise<AccountEmail>;
|
|
315
332
|
/**
|
package/dist/client.js
CHANGED
|
@@ -426,6 +426,35 @@ export class Agental {
|
|
|
426
426
|
async setAutoReload(dollars) {
|
|
427
427
|
return (await this.http.json({ method: "PUT", path: "/v1/billing/auto-reload", body: { dollars } })).body;
|
|
428
428
|
}
|
|
429
|
+
/**
|
|
430
|
+
* The account's invoices, newest first, read from the payment provider: a plan's months, top-ups
|
|
431
|
+
* and auto-reloads, drafts left out. 25 unless limit says otherwise, 100 at most; pass a page's
|
|
432
|
+
* next as startingAfter for the page after it. An admin is given no pageUrl or pdfUrl.
|
|
433
|
+
*/
|
|
434
|
+
async invoices(options = {}) {
|
|
435
|
+
const query = { limit: options.limit === undefined ? undefined : String(options.limit), startingAfter: options.startingAfter };
|
|
436
|
+
return (await this.http.json({ method: "GET", path: "/v1/billing/invoices", query, replay: true })).body;
|
|
437
|
+
}
|
|
438
|
+
/** Every invoice, newest first, read a page at a time as they are asked for. */
|
|
439
|
+
async *allInvoices(options = {}) {
|
|
440
|
+
let startingAfter;
|
|
441
|
+
for (;;) {
|
|
442
|
+
const page = await this.invoices({ ...options, ...(startingAfter === undefined ? {} : { startingAfter }) });
|
|
443
|
+
yield* page.invoices;
|
|
444
|
+
if (page.next === null) {
|
|
445
|
+
return;
|
|
446
|
+
}
|
|
447
|
+
startingAfter = page.next;
|
|
448
|
+
}
|
|
449
|
+
}
|
|
450
|
+
/** The card the account pays with now, the one an auto-reload charges: its brand, last four, expiry and wallet, or null where none is saved. */
|
|
451
|
+
async card() {
|
|
452
|
+
return (await this.http.json({ method: "GET", path: "/v1/billing/card", replay: true })).body;
|
|
453
|
+
}
|
|
454
|
+
/** Who the account's invoices are made out to: the email they go to, the name and address on them, and its tax ids. Null before it has bought anything. An owner's to read: an admin is refused with 403. */
|
|
455
|
+
async billingDetails() {
|
|
456
|
+
return (await this.http.json({ method: "GET", path: "/v1/billing/details", replay: true })).body;
|
|
457
|
+
}
|
|
429
458
|
/** The account's mail: the handle every address of its sandboxes carries, what its plan allows, and what it has had of that today. */
|
|
430
459
|
async email() {
|
|
431
460
|
return (await this.http.json({ method: "GET", path: "/v1/email", replay: true })).body;
|
package/dist/index.d.ts
CHANGED
|
@@ -8,5 +8,5 @@ export { Terminal, TERMINAL_CLOSE, TERMINAL_PROTOCOL } from "./terminal.js";
|
|
|
8
8
|
export type { TerminalExit, TerminalOptions, WebSocketConstructor, WebSocketLike } from "./terminal.js";
|
|
9
9
|
export type { TemplateChanges } from "./template.js";
|
|
10
10
|
export type { BurstOptions, CommandLine, CreateOptions, DesktopButton, ExecEvent, ExecOptions, SandboxChanges, ScreenshotOptions, SendEmailOptions, StartOptions, StopOptions, WaitOptions } from "./sandbox.js";
|
|
11
|
-
export type { AccountEmail, ApiKey, ApiKeyAction, ApiKeyPreset, ApiKeyUsage, Billing, BrowserState, BurstFee, BurstQuote, Headroom, HeadroomNow, HeadroomRange, HeadroomStep, Catalog, Region, AutoReload, Checkout, Command, CreateSchedule, CreateApiKey, CreatedApiKey, DesktopLink, DesktopScreenshot, DesktopState, Egress, EgressAccount, EgressInput, EmailMessage, EmailMessageList, EmailMessageSummary, ExecResult, HiddenVariable, HostRoute, Invite, Me, Member, Organization, MetricsAtMoment, MetricsReading, NetworkRule, Operation, PlainVariable, Plan, Policy, Prices, RunningOverTime, SandboxAutoStop, SandboxEmail, SandboxInfo, SandboxSummary, SandboxJob, SandboxJobItem, SandboxJobPreview, SandboxMetrics, SandboxNetwork, SandboxNetworkDetail, SandboxOwnNetwork, SandboxStatus, SandboxTemplate, SandboxUsage, Schedule, ScheduleRun, SecretVariable, SendEmail, SetAutoStop, Size, Snapshot, SshKey, SshState, UpdateSchedule, Team, TeamRole, Telemetry, DataRetention, AccountExport, TelemetryTest, ClaudeConnection, ClaudeSession, RunsOnRepository, RunsOnRepositories, TemplateApplied, TemplateInfo, TemplateNetwork, TemplateSandbox, TemplateStart, TemplateSsh, Usage, Webhook, WebhookDelivery, } from "./types.js";
|
|
11
|
+
export type { AccountEmail, ApiKey, ApiKeyAction, ApiKeyPreset, ApiKeyUsage, Billing, BrowserState, BurstFee, BurstQuote, Headroom, HeadroomNow, HeadroomRange, HeadroomStep, Catalog, Region, AutoReload, BillingCard, BillingDetails, BillingInvoice, BillingInvoices, Checkout, Command, CreateSchedule, CreateApiKey, CreatedApiKey, DesktopLink, DesktopScreenshot, DesktopState, Egress, EgressAccount, EgressInput, EmailMessage, EmailMessageList, EmailMessageSummary, ExecResult, HiddenVariable, HostRoute, Invite, Me, Member, Organization, MetricsAtMoment, MetricsReading, NetworkRule, Operation, PlainVariable, Plan, Policy, Prices, RunningOverTime, SandboxAutoStop, SandboxEmail, SandboxInfo, SandboxSummary, SandboxJob, SandboxJobItem, SandboxJobPreview, SandboxMetrics, SandboxNetwork, SandboxNetworkDetail, SandboxOwnNetwork, SandboxStatus, SandboxTemplate, SandboxUsage, Schedule, ScheduleRun, SecretVariable, SendEmail, SetAutoStop, Size, Snapshot, SshKey, SshState, UpdateSchedule, Team, TeamRole, Telemetry, DataRetention, AccountExport, TelemetryTest, ClaudeConnection, ClaudeSession, RunsOnRepository, RunsOnRepositories, TemplateApplied, TemplateInfo, TemplateNetwork, TemplateSandbox, TemplateStart, TemplateSsh, Usage, Webhook, WebhookDelivery, } from "./types.js";
|
|
12
12
|
export { verifyWebhook } from "./webhooks.js";
|
package/dist/openapi.d.ts
CHANGED
|
@@ -2304,6 +2304,54 @@ export interface paths {
|
|
|
2304
2304
|
patch?: never;
|
|
2305
2305
|
trace?: never;
|
|
2306
2306
|
};
|
|
2307
|
+
"/v1/billing/invoices": {
|
|
2308
|
+
parameters: {
|
|
2309
|
+
query?: never;
|
|
2310
|
+
header?: never;
|
|
2311
|
+
path?: never;
|
|
2312
|
+
cookie?: never;
|
|
2313
|
+
};
|
|
2314
|
+
get: operations["listBillingInvoices"];
|
|
2315
|
+
put?: never;
|
|
2316
|
+
post?: never;
|
|
2317
|
+
delete?: never;
|
|
2318
|
+
options?: never;
|
|
2319
|
+
head?: never;
|
|
2320
|
+
patch?: never;
|
|
2321
|
+
trace?: never;
|
|
2322
|
+
};
|
|
2323
|
+
"/v1/billing/card": {
|
|
2324
|
+
parameters: {
|
|
2325
|
+
query?: never;
|
|
2326
|
+
header?: never;
|
|
2327
|
+
path?: never;
|
|
2328
|
+
cookie?: never;
|
|
2329
|
+
};
|
|
2330
|
+
get: operations["getBillingCard"];
|
|
2331
|
+
put?: never;
|
|
2332
|
+
post?: never;
|
|
2333
|
+
delete?: never;
|
|
2334
|
+
options?: never;
|
|
2335
|
+
head?: never;
|
|
2336
|
+
patch?: never;
|
|
2337
|
+
trace?: never;
|
|
2338
|
+
};
|
|
2339
|
+
"/v1/billing/details": {
|
|
2340
|
+
parameters: {
|
|
2341
|
+
query?: never;
|
|
2342
|
+
header?: never;
|
|
2343
|
+
path?: never;
|
|
2344
|
+
cookie?: never;
|
|
2345
|
+
};
|
|
2346
|
+
get: operations["getBillingDetails"];
|
|
2347
|
+
put?: never;
|
|
2348
|
+
post?: never;
|
|
2349
|
+
delete?: never;
|
|
2350
|
+
options?: never;
|
|
2351
|
+
head?: never;
|
|
2352
|
+
patch?: never;
|
|
2353
|
+
trace?: never;
|
|
2354
|
+
};
|
|
2307
2355
|
"/v1/cli-sign-ins": {
|
|
2308
2356
|
parameters: {
|
|
2309
2357
|
query?: never;
|
|
@@ -5216,6 +5264,75 @@ export interface components {
|
|
|
5216
5264
|
dollars: number;
|
|
5217
5265
|
} | null;
|
|
5218
5266
|
};
|
|
5267
|
+
BillingInvoices: {
|
|
5268
|
+
invoices: {
|
|
5269
|
+
id: string;
|
|
5270
|
+
/** @description The number on the invoice. Null until it is finalized. */
|
|
5271
|
+
number: string | null;
|
|
5272
|
+
createdAt: string;
|
|
5273
|
+
/**
|
|
5274
|
+
* @description open: not paid yet. void: cancelled, nothing is owed, as a reload whose card declined. uncollectible: written off.
|
|
5275
|
+
* @enum {string}
|
|
5276
|
+
*/
|
|
5277
|
+
status: "open" | "paid" | "void" | "uncollectible";
|
|
5278
|
+
/** @description What it was for, as the invoice says it. */
|
|
5279
|
+
description: string | null;
|
|
5280
|
+
/** @example usd */
|
|
5281
|
+
currency: string;
|
|
5282
|
+
/** @description What it came to, tax included. */
|
|
5283
|
+
totalMicros: number;
|
|
5284
|
+
taxMicros: number;
|
|
5285
|
+
amountPaidMicros: number;
|
|
5286
|
+
/** @description The payment provider's page for it, where an open one is paid. It shows the billing name and address, so it is given to an owner only: null for an admin. */
|
|
5287
|
+
pageUrl: string | null;
|
|
5288
|
+
/** @description Its PDF, an owner's only as pageUrl is. */
|
|
5289
|
+
pdfUrl: string | null;
|
|
5290
|
+
}[];
|
|
5291
|
+
/** @description Pass as startingAfter for the page after this one. Null on the last page. */
|
|
5292
|
+
next: string | null;
|
|
5293
|
+
};
|
|
5294
|
+
BillingCard: {
|
|
5295
|
+
/** @description Null where the account has no card saved. */
|
|
5296
|
+
card: {
|
|
5297
|
+
/** @example visa */
|
|
5298
|
+
brand: string | null;
|
|
5299
|
+
/** @example 4242 */
|
|
5300
|
+
last4: string | null;
|
|
5301
|
+
expMonth: number | null;
|
|
5302
|
+
expYear: number | null;
|
|
5303
|
+
/** @description apple_pay, google_pay or another wallet it is kept in; null for a card typed in. */
|
|
5304
|
+
wallet: string | null;
|
|
5305
|
+
} | null;
|
|
5306
|
+
};
|
|
5307
|
+
BillingDetails: {
|
|
5308
|
+
/** @description Null where the account has bought nothing and saved no card yet, or the payment provider has no customer for it. */
|
|
5309
|
+
details: {
|
|
5310
|
+
/** @description Where invoices and receipts are sent. */
|
|
5311
|
+
email: string | null;
|
|
5312
|
+
/** @description The name on invoices: a company's, or a person's. */
|
|
5313
|
+
name: string | null;
|
|
5314
|
+
address: {
|
|
5315
|
+
line1: string | null;
|
|
5316
|
+
line2: string | null;
|
|
5317
|
+
city: string | null;
|
|
5318
|
+
postalCode: string | null;
|
|
5319
|
+
state: string | null;
|
|
5320
|
+
/**
|
|
5321
|
+
* @description Two letters, as BG.
|
|
5322
|
+
* @example BG
|
|
5323
|
+
*/
|
|
5324
|
+
country: string | null;
|
|
5325
|
+
} | null;
|
|
5326
|
+
taxIds: {
|
|
5327
|
+
/** @example eu_vat */
|
|
5328
|
+
type: string;
|
|
5329
|
+
/** @example BG123456789 */
|
|
5330
|
+
value: string;
|
|
5331
|
+
/** @description verified, pending or unverified, as the tax authority answered; null where it is not checked. */
|
|
5332
|
+
verification: string | null;
|
|
5333
|
+
}[];
|
|
5334
|
+
} | null;
|
|
5335
|
+
};
|
|
5219
5336
|
CliSignIn: {
|
|
5220
5337
|
/** @example cli_5d0f3c9a7e214b86a0c1d2e3f4a5b6c7 */
|
|
5221
5338
|
id: string;
|
|
@@ -16472,6 +16589,107 @@ export interface operations {
|
|
|
16472
16589
|
};
|
|
16473
16590
|
};
|
|
16474
16591
|
};
|
|
16592
|
+
listBillingInvoices: {
|
|
16593
|
+
parameters: {
|
|
16594
|
+
query?: {
|
|
16595
|
+
/** @description How many to answer at most, 1 to 100. 25 when left out. */
|
|
16596
|
+
limit?: number;
|
|
16597
|
+
/** @description The next value of the page before, for the page after it. A page may hold fewer than limit, drafts being left out, and still have a next. */
|
|
16598
|
+
startingAfter?: string;
|
|
16599
|
+
};
|
|
16600
|
+
header?: never;
|
|
16601
|
+
path?: never;
|
|
16602
|
+
cookie?: never;
|
|
16603
|
+
};
|
|
16604
|
+
requestBody?: never;
|
|
16605
|
+
responses: {
|
|
16606
|
+
/** @description The account's invoices, newest first, as the payment provider keeps them: a plan's months, top-ups and auto-reloads, drafts left out. Read from it each time; agental keeps none of them. Amounts are millionths of the invoice's currency. */
|
|
16607
|
+
200: {
|
|
16608
|
+
headers: {
|
|
16609
|
+
[name: string]: unknown;
|
|
16610
|
+
};
|
|
16611
|
+
content: {
|
|
16612
|
+
"application/json": components["schemas"]["BillingInvoices"];
|
|
16613
|
+
};
|
|
16614
|
+
};
|
|
16615
|
+
/** @description billing_not_configured: nothing is sold here. */
|
|
16616
|
+
409: {
|
|
16617
|
+
headers: {
|
|
16618
|
+
[name: string]: unknown;
|
|
16619
|
+
};
|
|
16620
|
+
content: {
|
|
16621
|
+
"application/json": components["schemas"]["Error"];
|
|
16622
|
+
};
|
|
16623
|
+
};
|
|
16624
|
+
};
|
|
16625
|
+
};
|
|
16626
|
+
getBillingCard: {
|
|
16627
|
+
parameters: {
|
|
16628
|
+
query?: never;
|
|
16629
|
+
header?: never;
|
|
16630
|
+
path?: never;
|
|
16631
|
+
cookie?: never;
|
|
16632
|
+
};
|
|
16633
|
+
requestBody?: never;
|
|
16634
|
+
responses: {
|
|
16635
|
+
/** @description The card the account pays with now: the one a plan's month, a top-up and an auto-reload charge. Its brand, last four and expiry only, read from the payment provider each time. Changed on the payment provider's page, POST /v1/billing/portal. */
|
|
16636
|
+
200: {
|
|
16637
|
+
headers: {
|
|
16638
|
+
[name: string]: unknown;
|
|
16639
|
+
};
|
|
16640
|
+
content: {
|
|
16641
|
+
"application/json": components["schemas"]["BillingCard"];
|
|
16642
|
+
};
|
|
16643
|
+
};
|
|
16644
|
+
/** @description billing_not_configured: nothing is sold here. */
|
|
16645
|
+
409: {
|
|
16646
|
+
headers: {
|
|
16647
|
+
[name: string]: unknown;
|
|
16648
|
+
};
|
|
16649
|
+
content: {
|
|
16650
|
+
"application/json": components["schemas"]["Error"];
|
|
16651
|
+
};
|
|
16652
|
+
};
|
|
16653
|
+
};
|
|
16654
|
+
};
|
|
16655
|
+
getBillingDetails: {
|
|
16656
|
+
parameters: {
|
|
16657
|
+
query?: never;
|
|
16658
|
+
header?: never;
|
|
16659
|
+
path?: never;
|
|
16660
|
+
cookie?: never;
|
|
16661
|
+
};
|
|
16662
|
+
requestBody?: never;
|
|
16663
|
+
responses: {
|
|
16664
|
+
/** @description Who the account's invoices are made out to: the email they go to, the name and address on them, and its tax ids, as an EU VAT number. Read from the payment provider each time, and changed on its page, POST /v1/billing/portal; the next invoice carries them. */
|
|
16665
|
+
200: {
|
|
16666
|
+
headers: {
|
|
16667
|
+
[name: string]: unknown;
|
|
16668
|
+
};
|
|
16669
|
+
content: {
|
|
16670
|
+
"application/json": components["schemas"]["BillingDetails"];
|
|
16671
|
+
};
|
|
16672
|
+
};
|
|
16673
|
+
/** @description forbidden: only an owner of a team sees who its invoices are made out to. */
|
|
16674
|
+
403: {
|
|
16675
|
+
headers: {
|
|
16676
|
+
[name: string]: unknown;
|
|
16677
|
+
};
|
|
16678
|
+
content: {
|
|
16679
|
+
"application/json": components["schemas"]["Error"];
|
|
16680
|
+
};
|
|
16681
|
+
};
|
|
16682
|
+
/** @description billing_not_configured: nothing is sold here. */
|
|
16683
|
+
409: {
|
|
16684
|
+
headers: {
|
|
16685
|
+
[name: string]: unknown;
|
|
16686
|
+
};
|
|
16687
|
+
content: {
|
|
16688
|
+
"application/json": components["schemas"]["Error"];
|
|
16689
|
+
};
|
|
16690
|
+
};
|
|
16691
|
+
};
|
|
16692
|
+
};
|
|
16475
16693
|
createCliSignIn: {
|
|
16476
16694
|
parameters: {
|
|
16477
16695
|
query?: never;
|
package/dist/types.d.ts
CHANGED
|
@@ -170,6 +170,13 @@ export type Billing = Omit<Schemas["Billing"], "plan" | "discount" | "sandboxesA
|
|
|
170
170
|
export type Checkout = Schemas["Checkout"];
|
|
171
171
|
/** The auto-reload as it is now: the top-up the saved card is charged for when the credits run out, or null while it is off. */
|
|
172
172
|
export type AutoReload = Schemas["AutoReload"];
|
|
173
|
+
/** A page of the account's invoices, newest first, and the value to pass as startingAfter for the page after it, null on the last. */
|
|
174
|
+
export type BillingInvoices = Schemas["BillingInvoices"];
|
|
175
|
+
/** An invoice: its number, state, what it was for, what it came to in millionths, and the payment provider's page and PDF for it (an owner's only). */
|
|
176
|
+
export type BillingInvoice = Schemas["BillingInvoices"]["invoices"][number];
|
|
177
|
+
/** The card the account pays with now, or null where it has none: brand, last four, expiry and wallet only. */
|
|
178
|
+
export type BillingCard = Schemas["BillingCard"];
|
|
179
|
+
export type BillingDetails = Schemas["BillingDetails"];
|
|
173
180
|
/** Whether mail is on for a sandbox, and the domain its addresses end in. */
|
|
174
181
|
export type SandboxEmail = Schemas["SandboxEmail"];
|
|
175
182
|
/** A message as a list gives it: who it is from and for, what was made of its sender, and where a sent one has got to. */
|
package/dist/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/** This package's version, as package.json says it. A test holds the two to the same. */
|
|
2
|
-
export declare const VERSION = "0.
|
|
2
|
+
export declare const VERSION = "0.8.0";
|
package/dist/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/** This package's version, as package.json says it. A test holds the two to the same. */
|
|
2
|
-
export const VERSION = "0.
|
|
2
|
+
export const VERSION = "0.8.0";
|
package/package.json
CHANGED