totalum-sdk 1.7.0 → 1.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +34 -0
- package/dist/_types/{billing.d-BCV6NeP5.d.ts → billing.d-D4xsKzBh.d.ts} +1 -1
- package/dist/_types/{coerce.d-DrNPZsE2.d.ts → coerce.d-BsPi0zYd.d.ts} +1 -1
- package/dist/_types/{errors.d-4_bQY7cY.d.ts → errors.d-BQCXEk1O.d.ts} +4 -0
- package/dist/_types/{integrations.d-DSTOYTIJ.d.ts → integrations.d-DG5LLFMq.d.ts} +2 -2
- package/dist/_types/{ops.d-CkGit8ca.d.ts → ops.d-Y0AdHnWq.d.ts} +2 -2
- package/dist/ai/index.d.ts +4 -4
- package/dist/analytics/index.d.ts +4 -4
- package/dist/browser/index.d.ts +10 -4
- package/dist/cron/index.d.ts +5 -5
- package/dist/d1/index.d.ts +2 -2
- package/dist/d1/lazy.js +14 -6
- package/dist/d1/libsql.js +46 -3
- package/dist/d1/migrate-rules.js +88 -5
- package/dist/d1/native-shape.js +1 -1
- package/dist/d1/retry.js +39 -0
- package/dist/email/index.d.ts +5 -5
- package/dist/files/index.d.ts +10 -6
- package/dist/files/index.js +5 -1
- package/dist/index.d.ts +5 -5
- package/dist/logs/index.d.ts +5 -5
- package/dist/payments/index.d.ts +5 -5
- package/dist/pdf/index.d.ts +5 -5
- package/dist/realtime/index.d.ts +9 -3
- package/dist/realtime/index.js +7 -1
- package/dist/scan/index.d.ts +5 -5
- package/dist/seo/index.d.ts +4 -4
- package/dist/speech/index.d.ts +5 -5
- package/dist/vectors/index.d.ts +2 -2
- package/dist/web/index.d.ts +5 -5
- package/dist/webhooks/index.d.ts +4 -4
- package/package.json +1 -1
- package/totalum-sdk.md +23 -5
- package/totalum-sdk.signatures.json +1 -1
package/dist/d1/retry.js
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { bare } from './native-shape.js';
|
|
2
|
+
/**
|
|
3
|
+
* The failures the driver repeats (research 75 §10.2), named by D1's own words — the Turso adapter words its provider's
|
|
4
|
+
* failures the same way (`libsql.ts`), so one rule covers the binding, Turso and the HTTPS path.
|
|
5
|
+
*
|
|
6
|
+
* - `TRANSIENT`: what Cloudflare documents as retryable (developers.cloudflare.com/d1/observability/debug-d1), plus the
|
|
7
|
+
* HTTPS path's `NETWORK_ERROR`. The statement may or may not have run, so only a pure read is repeated.
|
|
8
|
+
* - `NEVER_RAN`: the request did not reach a running database (D1 could not resolve or start it; Turso answered 503),
|
|
9
|
+
* so a write is repeated too.
|
|
10
|
+
*
|
|
11
|
+
* Never repeated: an overloaded database (D1: "send fewer requests"), a statement over a time, memory or size limit,
|
|
12
|
+
* any SQL error, and a write after `Network connection lost.` (it may have been applied).
|
|
13
|
+
*/
|
|
14
|
+
const TRANSIENT = /Network connection lost|storage caused object to be reset|reset because its code was updated|Replica disconnected from primary|Cannot resolve D1 DB due to transient issue|Can't read from request stream because client disconnected|^D1_ERROR: NETWORK_ERROR/;
|
|
15
|
+
const NEVER_RAN = /Cannot resolve D1 DB due to transient issue|Internal error while starting up D1 DB storage/;
|
|
16
|
+
/** Two more attempts, after about 100 ms and 400 ms (each 50–150 % of it): at most ≈ 0.75 s added to a request. */
|
|
17
|
+
const DELAYS_MS = [100, 400];
|
|
18
|
+
/** `SELECT …`, or `WITH …` that ends in a select: nothing it can have changed. */
|
|
19
|
+
const pureRead = (sql) => {
|
|
20
|
+
const text = bare(sql).replace(/[\s;]+$/, '');
|
|
21
|
+
return (!text.includes(';') &&
|
|
22
|
+
(/^select\b/i.test(text) || (/^with\b/i.test(text) && !/\b(insert|update|delete|replace)\b/i.test(text))));
|
|
23
|
+
};
|
|
24
|
+
/** Runs `call`, repeating it after a transient failure when that is safe for every statement of `sqls`. */
|
|
25
|
+
export async function withRetry(sqls, call) {
|
|
26
|
+
for (let attempt = 0;; attempt++) {
|
|
27
|
+
try {
|
|
28
|
+
return await call();
|
|
29
|
+
}
|
|
30
|
+
catch (e) {
|
|
31
|
+
const delay = DELAYS_MS[attempt];
|
|
32
|
+
const message = e instanceof Error ? e.message : '';
|
|
33
|
+
const safe = NEVER_RAN.test(message) || (TRANSIENT.test(message) && sqls.every(pureRead));
|
|
34
|
+
if (delay === undefined || !safe)
|
|
35
|
+
throw e;
|
|
36
|
+
await new Promise((resolve) => setTimeout(resolve, delay * (0.5 + Math.random())));
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
package/dist/email/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { E as EmailSendInput, k as EmailView } from '../_types/integrations.d-
|
|
2
|
-
export { j as EmailSendOutput } from '../_types/integrations.d-
|
|
3
|
-
import { T as TotalumClientOptions } from '../_types/errors.d-
|
|
4
|
-
export { a as TotalumError, b as TotalumErrorCode, i as isTotalumError } from '../_types/errors.d-
|
|
5
|
-
import '../_types/coerce.d-
|
|
1
|
+
import { E as EmailSendInput, k as EmailView } from '../_types/integrations.d-DG5LLFMq.js';
|
|
2
|
+
export { j as EmailSendOutput } from '../_types/integrations.d-DG5LLFMq.js';
|
|
3
|
+
import { T as TotalumClientOptions } from '../_types/errors.d-BQCXEk1O.js';
|
|
4
|
+
export { a as TotalumError, b as TotalumErrorCode, i as isTotalumError } from '../_types/errors.d-BQCXEk1O.js';
|
|
5
|
+
import '../_types/coerce.d-BsPi0zYd.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* `totalum.email` (plan 05 §6.4) over SDK-API `/v1/email/*` (scope `email`): Resend, HTML sent byte for byte, charged
|
package/dist/files/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { F as FileDescriptor, l as FileUploadUrlInput, n as FilesListQuery } from '../_types/integrations.d-
|
|
2
|
-
export { m as FileUploadUrlOutput, o as FilesPage } from '../_types/integrations.d-
|
|
3
|
-
import { T as TotalumClientOptions } from '../_types/errors.d-
|
|
4
|
-
export { a as TotalumError, b as TotalumErrorCode, i as isTotalumError } from '../_types/errors.d-
|
|
5
|
-
import '../_types/coerce.d-
|
|
1
|
+
import { F as FileDescriptor, l as FileUploadUrlInput, n as FilesListQuery } from '../_types/integrations.d-DG5LLFMq.js';
|
|
2
|
+
export { m as FileUploadUrlOutput, o as FilesPage } from '../_types/integrations.d-DG5LLFMq.js';
|
|
3
|
+
import { T as TotalumClientOptions } from '../_types/errors.d-BQCXEk1O.js';
|
|
4
|
+
export { a as TotalumError, b as TotalumErrorCode, i as isTotalumError } from '../_types/errors.d-BQCXEk1O.js';
|
|
5
|
+
import '../_types/coerce.d-BsPi0zYd.js';
|
|
6
6
|
|
|
7
7
|
interface TotalumFilesOptions extends TotalumClientOptions {
|
|
8
8
|
/** The public files host; default `TOTALUM_FILES_URL`, else `https://files.totalum-project.com` (A10.1). */
|
|
@@ -23,7 +23,11 @@ interface UploadOptions {
|
|
|
23
23
|
declare function totalumFiles(options?: TotalumFilesOptions): {
|
|
24
24
|
/** Up to 25 MB through SDK-API; larger files go through `getUploadUrl` + `complete`. */
|
|
25
25
|
upload(input: Blob | ArrayBuffer | Uint8Array | string, opts?: UploadOptions): Promise<FileDescriptor>;
|
|
26
|
-
/**
|
|
26
|
+
/**
|
|
27
|
+
* A presigned PUT (15 min, bound to this type and size) for a direct browser/Node upload; then `complete(key)`.
|
|
28
|
+
* The largest file is 50 MB on the Free plan, 200 MB on Starter, 300 MB on Builder, 500 MB on Professional and
|
|
29
|
+
* 1 GB on Enterprise; above it `FILE_TOO_LARGE` (413, `details.maxBytes`).
|
|
30
|
+
*/
|
|
27
31
|
getUploadUrl: (input: FileUploadUrlInput) => Promise<{
|
|
28
32
|
uploadUrl: string;
|
|
29
33
|
key: string;
|
package/dist/files/index.js
CHANGED
|
@@ -30,7 +30,11 @@ export function totalumFiles(options = {}) {
|
|
|
30
30
|
form.set('folder', opts.folder);
|
|
31
31
|
return call('POST', '/v1/files', form);
|
|
32
32
|
},
|
|
33
|
-
/**
|
|
33
|
+
/**
|
|
34
|
+
* A presigned PUT (15 min, bound to this type and size) for a direct browser/Node upload; then `complete(key)`.
|
|
35
|
+
* The largest file is 50 MB on the Free plan, 200 MB on Starter, 300 MB on Builder, 500 MB on Professional and
|
|
36
|
+
* 1 GB on Enterprise; above it `FILE_TOO_LARGE` (413, `details.maxBytes`).
|
|
37
|
+
*/
|
|
34
38
|
getUploadUrl: (input) => call('POST', '/v1/files/upload-url', input),
|
|
35
39
|
/** Registers a file uploaded with `getUploadUrl` and returns its descriptor. */
|
|
36
40
|
complete: (key) => call('POST', '/v1/files/complete', { key }),
|
package/dist/index.d.ts
CHANGED
|
@@ -31,11 +31,11 @@ export { TotalumWeb } from './web/index.js';
|
|
|
31
31
|
import { totalumWebhooks } from './webhooks/index.js';
|
|
32
32
|
export { TotalumWebhookError, TotalumWebhooks, verifyWebhook } from './webhooks/index.js';
|
|
33
33
|
export { D1Database, D1DatabaseSession, D1ExecResult, D1PreparedStatement, D1Result, READ_YOUR_WRITES_COOKIE, TotalumD1ClientCode, TotalumD1Error, TotalumD1ErrorCode, TotalumD1Options, isTotalumD1Error, totalumD1, withTotalumSession } from './d1/index.js';
|
|
34
|
-
export { T as TotalumClientOptions, a as TotalumError, b as TotalumErrorCode, i as isTotalumError } from './_types/errors.d-
|
|
35
|
-
export { C as CheckoutInput, a as CheckoutOutput, b as CheckoutSession, c as CronJob, d as CronJobInput, e as CronJobPatch, f as CronRun, g as CronRunsPage, h as CustomerPortalLinkInput, i as CustomerPortalLinkOutput, E as EmailSendInput, j as EmailSendOutput, k as EmailView, F as FileDescriptor, l as FileUploadUrlInput, m as FileUploadUrlOutput, n as FilesListQuery, o as FilesPage, J as JobCreated, O as OnboardingLinkInput, p as OnboardingLinkOutput, P as PaymentsStatus, q as PdfFromHtmlInput, r as PdfFromUrlInput, s as PdfOutput, R as RefundInput, t as RefundOutput, S as ScanDocumentInput, u as ScanOcrInput, v as ScanOcrOutput, w as ScreenshotInput, x as ScreenshotOutput, y as SeoIndexNowKey, z as SeoNotifyOutput, A as SpeakInput, B as StoredMedia, D as Subscription, G as SubscriptionUpdateInput, T as TranscribeInput, H as TranscribeOutput, W as WebJob, I as WebScrapeOutput, K as WebSearchOutput } from './_types/integrations.d-
|
|
36
|
-
export { L as LogsPage, S as SiteAnalyticsOutput, a as SiteDimension, b as SiteMetric } from './_types/ops.d-
|
|
37
|
-
export { W as WebhookConfig, a as WebhookEvent, b as WebhookSecretOutput } from './_types/billing.d-
|
|
38
|
-
import './_types/coerce.d-
|
|
34
|
+
export { T as TotalumClientOptions, a as TotalumError, b as TotalumErrorCode, i as isTotalumError } from './_types/errors.d-BQCXEk1O.js';
|
|
35
|
+
export { C as CheckoutInput, a as CheckoutOutput, b as CheckoutSession, c as CronJob, d as CronJobInput, e as CronJobPatch, f as CronRun, g as CronRunsPage, h as CustomerPortalLinkInput, i as CustomerPortalLinkOutput, E as EmailSendInput, j as EmailSendOutput, k as EmailView, F as FileDescriptor, l as FileUploadUrlInput, m as FileUploadUrlOutput, n as FilesListQuery, o as FilesPage, J as JobCreated, O as OnboardingLinkInput, p as OnboardingLinkOutput, P as PaymentsStatus, q as PdfFromHtmlInput, r as PdfFromUrlInput, s as PdfOutput, R as RefundInput, t as RefundOutput, S as ScanDocumentInput, u as ScanOcrInput, v as ScanOcrOutput, w as ScreenshotInput, x as ScreenshotOutput, y as SeoIndexNowKey, z as SeoNotifyOutput, A as SpeakInput, B as StoredMedia, D as Subscription, G as SubscriptionUpdateInput, T as TranscribeInput, H as TranscribeOutput, W as WebJob, I as WebScrapeOutput, K as WebSearchOutput } from './_types/integrations.d-DG5LLFMq.js';
|
|
36
|
+
export { L as LogsPage, S as SiteAnalyticsOutput, a as SiteDimension, b as SiteMetric } from './_types/ops.d-Y0AdHnWq.js';
|
|
37
|
+
export { W as WebhookConfig, a as WebhookEvent, b as WebhookSecretOutput } from './_types/billing.d-D4xsKzBh.js';
|
|
38
|
+
import './_types/coerce.d-BsPi0zYd.js';
|
|
39
39
|
|
|
40
40
|
/** The options of `createTotalum()`: every namespace's options in one object (each falls back to its env var). */
|
|
41
41
|
type TotalumOptions = TotalumAiOptions & TotalumFilesOptions;
|
package/dist/logs/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { c as LogsQueryInput } from '../_types/ops.d-
|
|
2
|
-
export { L as LogsPage } from '../_types/ops.d-
|
|
3
|
-
import { T as TotalumClientOptions } from '../_types/errors.d-
|
|
4
|
-
export { a as TotalumError, b as TotalumErrorCode, i as isTotalumError } from '../_types/errors.d-
|
|
5
|
-
import '../_types/coerce.d-
|
|
1
|
+
import { c as LogsQueryInput } from '../_types/ops.d-Y0AdHnWq.js';
|
|
2
|
+
export { L as LogsPage } from '../_types/ops.d-Y0AdHnWq.js';
|
|
3
|
+
import { T as TotalumClientOptions } from '../_types/errors.d-BQCXEk1O.js';
|
|
4
|
+
export { a as TotalumError, b as TotalumErrorCode, i as isTotalumError } from '../_types/errors.d-BQCXEk1O.js';
|
|
5
|
+
import '../_types/coerce.d-BsPi0zYd.js';
|
|
6
6
|
|
|
7
7
|
/** A `logs.query` filter: the window (default the last hour), level, substring, status class, path, request id, env. */
|
|
8
8
|
type LogsQuery = Omit<LogsQueryInput, 'caller' | 'runId'>;
|
package/dist/payments/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { O as OnboardingLinkInput, C as CheckoutInput, h as CustomerPortalLinkInput, G as SubscriptionUpdateInput, R as RefundInput } from '../_types/integrations.d-
|
|
2
|
-
export { a as CheckoutOutput, b as CheckoutSession, i as CustomerPortalLinkOutput, p as OnboardingLinkOutput, P as PaymentsStatus, t as RefundOutput, D as Subscription } from '../_types/integrations.d-
|
|
3
|
-
import { T as TotalumClientOptions } from '../_types/errors.d-
|
|
4
|
-
export { a as TotalumError, b as TotalumErrorCode, i as isTotalumError } from '../_types/errors.d-
|
|
5
|
-
import '../_types/coerce.d-
|
|
1
|
+
import { O as OnboardingLinkInput, C as CheckoutInput, h as CustomerPortalLinkInput, G as SubscriptionUpdateInput, R as RefundInput } from '../_types/integrations.d-DG5LLFMq.js';
|
|
2
|
+
export { a as CheckoutOutput, b as CheckoutSession, i as CustomerPortalLinkOutput, p as OnboardingLinkOutput, P as PaymentsStatus, t as RefundOutput, D as Subscription } from '../_types/integrations.d-DG5LLFMq.js';
|
|
3
|
+
import { T as TotalumClientOptions } from '../_types/errors.d-BQCXEk1O.js';
|
|
4
|
+
export { a as TotalumError, b as TotalumErrorCode, i as isTotalumError } from '../_types/errors.d-BQCXEk1O.js';
|
|
5
|
+
import '../_types/coerce.d-BsPi0zYd.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* `totalum.payments` (plan 05, plan 11 §9.5) over SDK-API `/v1/payments/*` with a project key (scope `payments`): Stripe
|
package/dist/pdf/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { q as PdfFromHtmlInput, r as PdfFromUrlInput } from '../_types/integrations.d-
|
|
2
|
-
export { s as PdfOutput } from '../_types/integrations.d-
|
|
3
|
-
import { T as TotalumClientOptions } from '../_types/errors.d-
|
|
4
|
-
export { a as TotalumError, b as TotalumErrorCode, i as isTotalumError } from '../_types/errors.d-
|
|
5
|
-
import '../_types/coerce.d-
|
|
1
|
+
import { q as PdfFromHtmlInput, r as PdfFromUrlInput } from '../_types/integrations.d-DG5LLFMq.js';
|
|
2
|
+
export { s as PdfOutput } from '../_types/integrations.d-DG5LLFMq.js';
|
|
3
|
+
import { T as TotalumClientOptions } from '../_types/errors.d-BQCXEk1O.js';
|
|
4
|
+
export { a as TotalumError, b as TotalumErrorCode, i as isTotalumError } from '../_types/errors.d-BQCXEk1O.js';
|
|
5
|
+
import '../_types/coerce.d-BsPi0zYd.js';
|
|
6
6
|
|
|
7
7
|
/** `totalum.pdf` (plan 04 §5.5) over `/v1/pdf/*` (scope `files:write`): a new file in the project's storage each time. */
|
|
8
8
|
declare function totalumPdf(options?: TotalumClientOptions): {
|
package/dist/realtime/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Z as ZodObject, c as ZodOptional, d as ZodString, g as ZodUnknown, m as $strip, o as output, u as ZodISODateTime, l as ZodInt, h as ZodRecord, j as ZodBoolean, T as TotalumClientOptions } from '../_types/errors.d-
|
|
2
|
-
export { a as TotalumError, b as TotalumErrorCode, i as isTotalumError } from '../_types/errors.d-
|
|
1
|
+
import { Z as ZodObject, c as ZodOptional, d as ZodString, g as ZodUnknown, m as $strip, o as output, u as ZodISODateTime, l as ZodInt, h as ZodRecord, j as ZodBoolean, T as TotalumClientOptions } from '../_types/errors.d-BQCXEk1O.js';
|
|
2
|
+
export { a as TotalumError, b as TotalumErrorCode, i as isTotalumError } from '../_types/errors.d-BQCXEk1O.js';
|
|
3
3
|
|
|
4
4
|
/** `POST /v1/realtime/tickets` (scope `realtime`). `ttl` is the join window in seconds, not the session length. */
|
|
5
5
|
declare const RealtimeTicketInput: ZodObject<{
|
|
@@ -57,7 +57,13 @@ type RealtimePublishOutput = output<typeof RealtimePublishOutput>;
|
|
|
57
57
|
/**
|
|
58
58
|
* `totalum.realtime` server side (plan 05 §6.14.1) over SDK-API `/v1/realtime/*` (scope `realtime`). The app's own
|
|
59
59
|
* server mints a short-lived ticket after its own auth check and hands `{ticket, url}` to the page; the page opens the
|
|
60
|
-
* `wss://` `url` and never holds a key.
|
|
60
|
+
* `wss://` `url` and never holds a key.
|
|
61
|
+
*
|
|
62
|
+
* A room is billed in credits for each minute it is awake and for each message it receives, never per connection: a
|
|
63
|
+
* chat costs almost nothing, a busy game pays for its messages. A connection may send 120 messages a minute on the
|
|
64
|
+
* Free plan, 600 on Starter, 1,200 on Builder, 1,800 on Professional and 3,600 on Enterprise; the next one closes its
|
|
65
|
+
* socket with code 4429 (`REALTIME_MESSAGE_RATE_EXCEEDED`). Keep one room under about 1,000 messages a second in
|
|
66
|
+
* total: give each match or table its own room.
|
|
61
67
|
*/
|
|
62
68
|
declare function totalumRealtime(options?: TotalumClientOptions): {
|
|
63
69
|
/**
|
package/dist/realtime/index.js
CHANGED
|
@@ -3,7 +3,13 @@ export { TotalumError, isTotalumError } from '../errors.js';
|
|
|
3
3
|
/**
|
|
4
4
|
* `totalum.realtime` server side (plan 05 §6.14.1) over SDK-API `/v1/realtime/*` (scope `realtime`). The app's own
|
|
5
5
|
* server mints a short-lived ticket after its own auth check and hands `{ticket, url}` to the page; the page opens the
|
|
6
|
-
* `wss://` `url` and never holds a key.
|
|
6
|
+
* `wss://` `url` and never holds a key.
|
|
7
|
+
*
|
|
8
|
+
* A room is billed in credits for each minute it is awake and for each message it receives, never per connection: a
|
|
9
|
+
* chat costs almost nothing, a busy game pays for its messages. A connection may send 120 messages a minute on the
|
|
10
|
+
* Free plan, 600 on Starter, 1,200 on Builder, 1,800 on Professional and 3,600 on Enterprise; the next one closes its
|
|
11
|
+
* socket with code 4429 (`REALTIME_MESSAGE_RATE_EXCEEDED`). Keep one room under about 1,000 messages a second in
|
|
12
|
+
* total: give each match or table its own room.
|
|
7
13
|
*/
|
|
8
14
|
export function totalumRealtime(options = {}) {
|
|
9
15
|
const call = jsonClient(options);
|
package/dist/scan/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { S as ScanDocumentInput, u as ScanOcrInput } from '../_types/integrations.d-
|
|
2
|
-
export { v as ScanOcrOutput } from '../_types/integrations.d-
|
|
3
|
-
import { T as TotalumClientOptions } from '../_types/errors.d-
|
|
4
|
-
export { a as TotalumError, b as TotalumErrorCode, i as isTotalumError } from '../_types/errors.d-
|
|
5
|
-
import '../_types/coerce.d-
|
|
1
|
+
import { S as ScanDocumentInput, u as ScanOcrInput } from '../_types/integrations.d-DG5LLFMq.js';
|
|
2
|
+
export { v as ScanOcrOutput } from '../_types/integrations.d-DG5LLFMq.js';
|
|
3
|
+
import { T as TotalumClientOptions } from '../_types/errors.d-BQCXEk1O.js';
|
|
4
|
+
export { a as TotalumError, b as TotalumErrorCode, i as isTotalumError } from '../_types/errors.d-BQCXEk1O.js';
|
|
5
|
+
import '../_types/coerce.d-BsPi0zYd.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* The v1 scan result: the extracted fields (one set per page with `processEveryPdfPageAsDifferentScan`), the v1
|
package/dist/seo/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { y as SeoIndexNowKey, z as SeoNotifyOutput } from '../_types/integrations.d-
|
|
2
|
-
import { T as TotalumClientOptions } from '../_types/errors.d-
|
|
3
|
-
export { a as TotalumError, b as TotalumErrorCode, i as isTotalumError } from '../_types/errors.d-
|
|
4
|
-
import '../_types/coerce.d-
|
|
1
|
+
export { y as SeoIndexNowKey, z as SeoNotifyOutput } from '../_types/integrations.d-DG5LLFMq.js';
|
|
2
|
+
import { T as TotalumClientOptions } from '../_types/errors.d-BQCXEk1O.js';
|
|
3
|
+
export { a as TotalumError, b as TotalumErrorCode, i as isTotalumError } from '../_types/errors.d-BQCXEk1O.js';
|
|
4
|
+
import '../_types/coerce.d-BsPi0zYd.js';
|
|
5
5
|
|
|
6
6
|
/** `totalum.seo` (plan 05 §6.10) over SDK-API `/v1/seo/*` (scope `seo`): IndexNow for verified custom domains, free. */
|
|
7
7
|
declare function totalumSeo(options?: TotalumClientOptions): {
|
package/dist/speech/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { T as TranscribeInput, A as SpeakInput, B as StoredMedia } from '../_types/integrations.d-
|
|
2
|
-
export { H as TranscribeOutput } from '../_types/integrations.d-
|
|
3
|
-
import { T as TotalumClientOptions } from '../_types/errors.d-
|
|
4
|
-
export { a as TotalumError, b as TotalumErrorCode, i as isTotalumError } from '../_types/errors.d-
|
|
5
|
-
import '../_types/coerce.d-
|
|
1
|
+
import { T as TranscribeInput, A as SpeakInput, B as StoredMedia } from '../_types/integrations.d-DG5LLFMq.js';
|
|
2
|
+
export { H as TranscribeOutput } from '../_types/integrations.d-DG5LLFMq.js';
|
|
3
|
+
import { T as TotalumClientOptions } from '../_types/errors.d-BQCXEk1O.js';
|
|
4
|
+
export { a as TotalumError, b as TotalumErrorCode, i as isTotalumError } from '../_types/errors.d-BQCXEk1O.js';
|
|
5
|
+
import '../_types/coerce.d-BsPi0zYd.js';
|
|
6
6
|
|
|
7
7
|
/** The audio bytes of `synthesize` without `store`, and what the call cost (`usage.credits`, the call's hold). */
|
|
8
8
|
interface SpeechAudio {
|
package/dist/vectors/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Z as ZodObject, d as ZodString, c as ZodOptional, e as ZodArray, k as ZodNumber, f as ZodEnum, h as ZodRecord, n as ZodUnion, j as ZodBoolean, m as $strip, o as output, l as ZodInt, q as $partial, x as $strict, T as TotalumClientOptions } from '../_types/errors.d-
|
|
2
|
-
export { a as TotalumError, b as TotalumErrorCode, i as isTotalumError } from '../_types/errors.d-
|
|
1
|
+
import { Z as ZodObject, d as ZodString, c as ZodOptional, e as ZodArray, k as ZodNumber, f as ZodEnum, h as ZodRecord, n as ZodUnion, j as ZodBoolean, m as $strip, o as output, l as ZodInt, q as $partial, x as $strict, T as TotalumClientOptions } from '../_types/errors.d-BQCXEk1O.js';
|
|
2
|
+
export { a as TotalumError, b as TotalumErrorCode, i as isTotalumError } from '../_types/errors.d-BQCXEk1O.js';
|
|
3
3
|
|
|
4
4
|
/** `text` = the `embed` preset's space; `image` = the `embed-image` preset's text+image space. */
|
|
5
5
|
declare const VectorSpace: ZodEnum<{
|
package/dist/web/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { L as WebScrapeInput, M as WebSearchInput, N as WebMapInput, Q as WebCrawlInput, w as ScreenshotInput } from '../_types/integrations.d-
|
|
2
|
-
export { J as JobCreated, x as ScreenshotOutput, W as WebJob, I as WebScrapeOutput, K as WebSearchOutput } from '../_types/integrations.d-
|
|
3
|
-
import { T as TotalumClientOptions } from '../_types/errors.d-
|
|
4
|
-
export { a as TotalumError, b as TotalumErrorCode, i as isTotalumError } from '../_types/errors.d-
|
|
5
|
-
import '../_types/coerce.d-
|
|
1
|
+
import { L as WebScrapeInput, M as WebSearchInput, N as WebMapInput, Q as WebCrawlInput, w as ScreenshotInput } from '../_types/integrations.d-DG5LLFMq.js';
|
|
2
|
+
export { J as JobCreated, x as ScreenshotOutput, W as WebJob, I as WebScrapeOutput, K as WebSearchOutput } from '../_types/integrations.d-DG5LLFMq.js';
|
|
3
|
+
import { T as TotalumClientOptions } from '../_types/errors.d-BQCXEk1O.js';
|
|
4
|
+
export { a as TotalumError, b as TotalumErrorCode, i as isTotalumError } from '../_types/errors.d-BQCXEk1O.js';
|
|
5
|
+
import '../_types/coerce.d-BsPi0zYd.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* `totalum.web` (plan 05 §6.2) over SDK-API `/v1/web/*` (scope `web`): Firecrawl scrape/search/map/crawl and Browser
|
package/dist/webhooks/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { a as WebhookEvent } from '../_types/billing.d-
|
|
2
|
-
export { W as WebhookConfig, b as WebhookSecretOutput } from '../_types/billing.d-
|
|
3
|
-
import { T as TotalumClientOptions, a as TotalumError } from '../_types/errors.d-
|
|
4
|
-
export { b as TotalumErrorCode, i as isTotalumError } from '../_types/errors.d-
|
|
1
|
+
import { a as WebhookEvent } from '../_types/billing.d-D4xsKzBh.js';
|
|
2
|
+
export { W as WebhookConfig, b as WebhookSecretOutput } from '../_types/billing.d-D4xsKzBh.js';
|
|
3
|
+
import { T as TotalumClientOptions, a as TotalumError } from '../_types/errors.d-BQCXEk1O.js';
|
|
4
|
+
export { b as TotalumErrorCode, i as isTotalumError } from '../_types/errors.d-BQCXEk1O.js';
|
|
5
5
|
|
|
6
6
|
/** A webhook refusal (plan 05 §7.2): the codes never travel, the app answers 400. */
|
|
7
7
|
declare class TotalumWebhookError extends TotalumError {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "totalum-sdk",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.2",
|
|
4
4
|
"description": "The SDK generated Totalum apps import: every integration namespace over SDK-API (totalum-sdk, or one subpath each: /files, /ai, /web, \u2026) and totalum-sdk/d1, the D1 driver",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"type": "module",
|