totalum-sdk 1.10.4 → 1.11.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 +15 -0
- package/dist/_types/{coerce.d-Dgx5wOUv.d.ts → coerce.d-BKhuaDya.d.ts} +1 -1
- package/dist/_types/{errors.d-CIkIZmY-.d.ts → errors.d-RTRkidv5.d.ts} +12 -0
- package/dist/_types/{integrations.d-B3Ea8Iuc.d.ts → integrations.d-CzTa9T-L.d.ts} +2 -2
- package/dist/_types/{ops.d-G13QAhKA.d.ts → ops.d-CNsrT4Ma.d.ts} +2 -2
- package/dist/ai/index.d.ts +3 -3
- package/dist/analytics/index.d.ts +4 -4
- package/dist/browser/index.d.ts +22 -4
- package/dist/connections/index.d.ts +319 -0
- package/dist/connections/index.js +72 -0
- package/dist/cron/index.d.ts +5 -5
- package/dist/d1/index.d.ts +2 -2
- package/dist/email/index.d.ts +5 -5
- package/dist/files/index.d.ts +7 -7
- package/dist/files/index.js +2 -2
- package/dist/index.d.ts +8 -5
- package/dist/index.js +3 -0
- 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 +2 -2
- 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 +2 -2
- package/package.json +5 -1
- package/totalum-sdk.md +156 -7
- package/totalum-sdk.signatures.json +61 -1
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { envelopeClient, jsonClient, query, withUsage } from '../http.js';
|
|
2
|
+
import { verifyWebhook } from '../webhooks/index.js';
|
|
3
|
+
export { TotalumError, isTotalumError } from '../errors.js';
|
|
4
|
+
/**
|
|
5
|
+
* `totalum.connections` over `/v1/connections/*` (scope `connections`; server-side code only: it needs the project
|
|
6
|
+
* key). Your app's users connect their own accounts of ~1,500 apps — Google Calendar, Gmail, Google Drive, Outlook,
|
|
7
|
+
* OneDrive, Slack, Dropbox, Notion, HubSpot, GitHub, Stripe, Airtable, … — on a hosted page (they sign in at the
|
|
8
|
+
* provider, or type their own API key there), with no OAuth app of yours; then your server runs actions on them
|
|
9
|
+
* (`GOOGLECALENDAR_CREATE_EVENT`, `GMAIL_SEND_EMAIL`, …) and receives their events (`subscribe`). The tokens never
|
|
10
|
+
* reach your app. `userId` is always **your signed-in user's id** (the one in your database), taken from the session
|
|
11
|
+
* on the server — never from the request: each user, project and environment (dev/live) only ever sees its own
|
|
12
|
+
* connections.
|
|
13
|
+
*/
|
|
14
|
+
export function totalumConnections(options = {}) {
|
|
15
|
+
const call = envelopeClient(options);
|
|
16
|
+
const data = jsonClient(options);
|
|
17
|
+
return {
|
|
18
|
+
/**
|
|
19
|
+
* The URL to send the user to so they connect `toolkit` (e.g. `'googlecalendar'`); valid about 10 minutes, so
|
|
20
|
+
* make it when the user clicks "Connect" and redirect at once. They come back to `returnUrl` with
|
|
21
|
+
* `?connection=success|failed&toolkit=<toolkit>` added.
|
|
22
|
+
*/
|
|
23
|
+
connectUrl: async (input) => (await data('POST', '/v1/connections/link', input)).url,
|
|
24
|
+
/** The user's connections (newest first), optionally of one toolkit; `status` is `active` when usable. */
|
|
25
|
+
list: async (input) => (await data('GET', `/v1/connections${query(input)}`)).connections,
|
|
26
|
+
/** Whether the user has an active connection of `toolkit`. */
|
|
27
|
+
isConnected: async (input) => (await data('GET', `/v1/connections${query(input)}`)).connections.some((c) => c.status === 'active'),
|
|
28
|
+
/** Disconnects one of the user's connections (`id` from `list`). */
|
|
29
|
+
disconnect: async (input) => data('DELETE', `/v1/connections/${encodeURIComponent(input.id)}${query({ userId: input.userId })}`),
|
|
30
|
+
/**
|
|
31
|
+
* Runs `action` (e.g. `GOOGLECALENDAR_CREATE_EVENT`) with the user's active connection of its toolkit and
|
|
32
|
+
* returns the provider's answer in `data`. Throws `CONNECTION_REQUIRED` (409) when the user has not connected
|
|
33
|
+
* it yet — send them to `connectUrl()` — and `CONNECTION_ACTION_FAILED` (422) when the provider refuses.
|
|
34
|
+
*/
|
|
35
|
+
execute: async (input) => withUsage(await call('POST', '/v1/connections/execute', input)),
|
|
36
|
+
/** The actions of a toolkit (slug, name, description), optionally filtered by `search`. */
|
|
37
|
+
actions: async (input) => (await data('GET', `/v1/connections/actions${query(input)}`)).actions,
|
|
38
|
+
/** One action with its `inputSchema` (JSON Schema of `execute`'s `input`). */
|
|
39
|
+
action: (slug) => data('GET', `/v1/connections/actions/${encodeURIComponent(slug)}`),
|
|
40
|
+
/**
|
|
41
|
+
* Searches the catalogue of apps (`search` matches names and descriptions, `category` e.g. `crm`); `connect`
|
|
42
|
+
* says how a user connects it: `oauth` (signs in at the provider), `credentials` (types their own key on the
|
|
43
|
+
* hosted page), `none` (no connection: run its actions directly), `unavailable` (cannot be connected). Pages
|
|
44
|
+
* with `cursor` = the previous `nextCursor`.
|
|
45
|
+
*/
|
|
46
|
+
toolkits: (input = {}) => data('GET', `/v1/connections/toolkits${query(input)}`),
|
|
47
|
+
/** One app, exactly: how it connects and, for `credentials`, the fields the user types on the hosted page. */
|
|
48
|
+
toolkit: (slug) => data('GET', `/v1/connections/toolkits/${encodeURIComponent(slug)}`),
|
|
49
|
+
/** The events (triggers) a toolkit can send, e.g. `GMAIL_NEW_GMAIL_MESSAGE`. */
|
|
50
|
+
triggers: async (input) => (await data('GET', `/v1/connections/triggers${query(input)}`)).triggers,
|
|
51
|
+
/** One trigger with `configSchema` (what `subscribe`'s `config` takes) and `payloadSchema` (the event's shape). */
|
|
52
|
+
trigger: (slug) => data('GET', `/v1/connections/triggers/${encodeURIComponent(slug)}`),
|
|
53
|
+
/**
|
|
54
|
+
* Watches `trigger` on the user's active connection of its toolkit: each event is POSTed to `deliverTo` (a path
|
|
55
|
+
* of your own app, default `/api/webhooks/connections`) on the preview (dev users) or the published site (live
|
|
56
|
+
* users), signed with your project's webhook secret — read it with `verifyEvent`. Throws `CONNECTION_REQUIRED`
|
|
57
|
+
* (409) when the user has not connected that toolkit.
|
|
58
|
+
*/
|
|
59
|
+
subscribe: (input) => data('POST', '/v1/connections/subscriptions', input),
|
|
60
|
+
/** The user's subscriptions. */
|
|
61
|
+
subscriptions: async (input) => (await data('GET', `/v1/connections/subscriptions${query(input)}`))
|
|
62
|
+
.subscriptions,
|
|
63
|
+
/** Stops one of the user's subscriptions (`id` from `subscribe` or `subscriptions`). */
|
|
64
|
+
unsubscribe: (input) => data('DELETE', `/v1/connections/subscriptions/${encodeURIComponent(input.id)}${query({ userId: input.userId })}`),
|
|
65
|
+
/**
|
|
66
|
+
* Verifies one delivered event (the raw body text and the request headers of your `deliverTo` route) with
|
|
67
|
+
* `TOTALUM_WEBHOOK_SECRET` and returns it typed: `data.userId` is your user, `data.payload` the event. Throws
|
|
68
|
+
* `TotalumWebhookError` on a bad signature (answer 401). Answer 2xx quickly; a failed delivery is retried.
|
|
69
|
+
*/
|
|
70
|
+
verifyEvent: async (rawBody, headers, secret) => (await verifyWebhook(rawBody, headers, secret)),
|
|
71
|
+
};
|
|
72
|
+
}
|
package/dist/cron/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { d as CronJobInput, c as CronJob, e as CronJobPatch } from '../_types/integrations.d-
|
|
2
|
-
export { f as CronRun, g as CronRunsPage } 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 { d as CronJobInput, c as CronJob, e as CronJobPatch } from '../_types/integrations.d-CzTa9T-L.js';
|
|
2
|
+
export { f as CronRun, g as CronRunsPage } from '../_types/integrations.d-CzTa9T-L.js';
|
|
3
|
+
import { T as TotalumClientOptions } from '../_types/errors.d-RTRkidv5.js';
|
|
4
|
+
export { a as TotalumError, b as TotalumErrorCode, i as isTotalumError } from '../_types/errors.d-RTRkidv5.js';
|
|
5
|
+
import '../_types/coerce.d-BKhuaDya.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* `totalum.cron` over the Totalum API `/v1/cron/*` (scope `cron`): HTTP jobs against the project's own host,
|
package/dist/d1/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { S as SdkClientErrorCode, a as TotalumError, b as TotalumErrorCode, E as ErrorBody } from '../_types/errors.d-
|
|
1
|
+
import { S as SdkClientErrorCode, a as TotalumError, b as TotalumErrorCode, E as ErrorBody } from '../_types/errors.d-RTRkidv5.js';
|
|
2
2
|
import { TotalumClientOptions } from '../ai/index.js';
|
|
3
|
-
export { i as isTotalumError } from '../_types/errors.d-
|
|
3
|
+
export { i as isTotalumError } from '../_types/errors.d-RTRkidv5.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Cloudflare's `D1Database` surface, re-declared structurally so an app needs no Cloudflare types to compile
|
package/dist/email/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { T as TotalumClientOptions, U as Usage } from '../_types/errors.d-
|
|
2
|
-
export { a as TotalumError, b as TotalumErrorCode, i as isTotalumError } from '../_types/errors.d-
|
|
3
|
-
import { E as EmailSendInput, k as EmailView } from '../_types/integrations.d-
|
|
4
|
-
export { j as EmailSendOutput } from '../_types/integrations.d-
|
|
5
|
-
import '../_types/coerce.d-
|
|
1
|
+
import { T as TotalumClientOptions, U as Usage } from '../_types/errors.d-RTRkidv5.js';
|
|
2
|
+
export { a as TotalumError, b as TotalumErrorCode, i as isTotalumError } from '../_types/errors.d-RTRkidv5.js';
|
|
3
|
+
import { E as EmailSendInput, k as EmailView } from '../_types/integrations.d-CzTa9T-L.js';
|
|
4
|
+
export { j as EmailSendOutput } from '../_types/integrations.d-CzTa9T-L.js';
|
|
5
|
+
import '../_types/coerce.d-BKhuaDya.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* `totalum.email` over the Totalum API `/v1/email/*` (scope `email`): 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-CzTa9T-L.js';
|
|
2
|
+
export { m as FileUploadUrlOutput, o as FilesPage } from '../_types/integrations.d-CzTa9T-L.js';
|
|
3
|
+
import { T as TotalumClientOptions } from '../_types/errors.d-RTRkidv5.js';
|
|
4
|
+
export { a as TotalumError, b as TotalumErrorCode, i as isTotalumError } from '../_types/errors.d-RTRkidv5.js';
|
|
5
|
+
import '../_types/coerce.d-BKhuaDya.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`. */
|
|
@@ -25,8 +25,8 @@ declare function totalumFiles(options?: TotalumFilesOptions): {
|
|
|
25
25
|
upload(input: Blob | ArrayBuffer | Uint8Array | string, opts?: UploadOptions): Promise<FileDescriptor>;
|
|
26
26
|
/**
|
|
27
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,
|
|
29
|
-
*
|
|
28
|
+
* The largest file is 50 MB on the Free plan, 500 MB on Starter, Builder and Professional, and 1 GB on Enterprise;
|
|
29
|
+
* above it `FILE_TOO_LARGE` (413, `details.maxBytes`).
|
|
30
30
|
*/
|
|
31
31
|
getUploadUrl: (input: FileUploadUrlInput) => Promise<{
|
|
32
32
|
uploadUrl: string;
|
package/dist/files/index.js
CHANGED
|
@@ -32,8 +32,8 @@ export function totalumFiles(options = {}) {
|
|
|
32
32
|
},
|
|
33
33
|
/**
|
|
34
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,
|
|
36
|
-
*
|
|
35
|
+
* The largest file is 50 MB on the Free plan, 500 MB on Starter, Builder and Professional, and 1 GB on Enterprise;
|
|
36
|
+
* above it `FILE_TOO_LARGE` (413, `details.maxBytes`).
|
|
37
37
|
*/
|
|
38
38
|
getUploadUrl: (input) => call('POST', '/v1/files/upload-url', input),
|
|
39
39
|
/** Registers a file uploaded with `getUploadUrl` and returns its descriptor. */
|
package/dist/index.d.ts
CHANGED
|
@@ -4,6 +4,8 @@ import { totalumAnalytics } from './analytics/index.js';
|
|
|
4
4
|
export { SiteAnalyticsQuery, TotalumAnalytics } from './analytics/index.js';
|
|
5
5
|
import { totalumBrowser } from './browser/index.js';
|
|
6
6
|
export { BrowserActionsOutput, BrowserCommand, BrowserCommandResult, BrowserCommands, BrowserProgram, BrowserProgramStatus, BrowserSession, BrowserSessionCreated, BrowserSessionInput, BrowserSessionStatus, TotalumBrowser } from './browser/index.js';
|
|
7
|
+
import { totalumConnections } from './connections/index.js';
|
|
8
|
+
export { Connection, ConnectionAction, ConnectionEvent, ConnectionStatus, ConnectionSubscription, ConnectionToolkit, ConnectionToolkitDetail, ConnectionTrigger, TotalumConnections } from './connections/index.js';
|
|
7
9
|
import { totalumCron } from './cron/index.js';
|
|
8
10
|
export { TotalumCron } from './cron/index.js';
|
|
9
11
|
import { totalumEmail } from './email/index.js';
|
|
@@ -31,10 +33,10 @@ export { TotalumWeb } from './web/index.js';
|
|
|
31
33
|
import { totalumWebhooks } from './webhooks/index.js';
|
|
32
34
|
export { TotalumWebhookError, TotalumWebhooks, WebhookConfig, WebhookEvent, WebhookSecretOutput, verifyWebhook } from './webhooks/index.js';
|
|
33
35
|
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
|
-
import './_types/coerce.d-
|
|
36
|
+
export { T as TotalumClientOptions, a as TotalumError, b as TotalumErrorCode, i as isTotalumError } from './_types/errors.d-RTRkidv5.js';
|
|
37
|
+
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-CzTa9T-L.js';
|
|
38
|
+
export { L as LogsPage, S as SiteAnalyticsOutput, a as SiteDimension, b as SiteMetric } from './_types/ops.d-CNsrT4Ma.js';
|
|
39
|
+
import './_types/coerce.d-BKhuaDya.js';
|
|
38
40
|
|
|
39
41
|
/** The options of `createTotalum()`: every namespace's options in one object (each falls back to its env var). */
|
|
40
42
|
type TotalumOptions = TotalumAiOptions & TotalumFilesOptions;
|
|
@@ -42,6 +44,7 @@ declare const namespaces: {
|
|
|
42
44
|
ai: typeof totalumAi;
|
|
43
45
|
analytics: typeof totalumAnalytics;
|
|
44
46
|
browser: typeof totalumBrowser;
|
|
47
|
+
connections: typeof totalumConnections;
|
|
45
48
|
cron: typeof totalumCron;
|
|
46
49
|
email: typeof totalumEmail;
|
|
47
50
|
files: typeof totalumFiles;
|
|
@@ -71,5 +74,5 @@ declare function createTotalum(options?: TotalumOptions): Totalum;
|
|
|
71
74
|
/** The default instance, configured from the environment (`TOTALUM_PROJECT_KEY`, `TOTALUM_SDK_API_URL`, `TOTALUM_ENV`). */
|
|
72
75
|
declare const totalum: Totalum;
|
|
73
76
|
|
|
74
|
-
export { TotalumAiOptions, TotalumFilesOptions, createTotalum, totalum, totalumAi, totalumAnalytics, totalumBrowser, totalumCron, totalumEmail, totalumFiles, totalumLogs, totalumPayments, totalumPdf, totalumRealtime, totalumScan, totalumSeo, totalumSpeech, totalumVectors, totalumWeb, totalumWebhooks };
|
|
77
|
+
export { TotalumAiOptions, TotalumFilesOptions, createTotalum, totalum, totalumAi, totalumAnalytics, totalumBrowser, totalumConnections, totalumCron, totalumEmail, totalumFiles, totalumLogs, totalumPayments, totalumPdf, totalumRealtime, totalumScan, totalumSeo, totalumSpeech, totalumVectors, totalumWeb, totalumWebhooks };
|
|
75
78
|
export type { Totalum, TotalumOptions };
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { totalumAi } from './ai/index.js';
|
|
2
2
|
import { totalumAnalytics } from './analytics/index.js';
|
|
3
3
|
import { totalumBrowser } from './browser/index.js';
|
|
4
|
+
import { totalumConnections } from './connections/index.js';
|
|
4
5
|
import { totalumCron } from './cron/index.js';
|
|
5
6
|
import { totalumEmail } from './email/index.js';
|
|
6
7
|
import { totalumFiles } from './files/index.js';
|
|
@@ -17,6 +18,7 @@ import { totalumWebhooks } from './webhooks/index.js';
|
|
|
17
18
|
export * from './ai/index.js';
|
|
18
19
|
export * from './analytics/index.js';
|
|
19
20
|
export * from './browser/index.js';
|
|
21
|
+
export * from './connections/index.js';
|
|
20
22
|
export * from './cron/index.js';
|
|
21
23
|
export * from './d1/index.js';
|
|
22
24
|
export * from './email/index.js';
|
|
@@ -35,6 +37,7 @@ const namespaces = {
|
|
|
35
37
|
ai: totalumAi,
|
|
36
38
|
analytics: totalumAnalytics,
|
|
37
39
|
browser: totalumBrowser,
|
|
40
|
+
connections: totalumConnections,
|
|
38
41
|
cron: totalumCron,
|
|
39
42
|
email: totalumEmail,
|
|
40
43
|
files: totalumFiles,
|
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-CNsrT4Ma.js';
|
|
2
|
+
export { L as LogsPage } from '../_types/ops.d-CNsrT4Ma.js';
|
|
3
|
+
import { T as TotalumClientOptions } from '../_types/errors.d-RTRkidv5.js';
|
|
4
|
+
export { a as TotalumError, b as TotalumErrorCode, i as isTotalumError } from '../_types/errors.d-RTRkidv5.js';
|
|
5
|
+
import '../_types/coerce.d-BKhuaDya.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-CzTa9T-L.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-CzTa9T-L.js';
|
|
3
|
+
import { T as TotalumClientOptions } from '../_types/errors.d-RTRkidv5.js';
|
|
4
|
+
export { a as TotalumError, b as TotalumErrorCode, i as isTotalumError } from '../_types/errors.d-RTRkidv5.js';
|
|
5
|
+
import '../_types/coerce.d-BKhuaDya.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* `totalum.payments` over the Totalum API `/v1/payments/*` with a project key (scope `payments`): Stripe
|
package/dist/pdf/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { T as TotalumClientOptions, U as Usage } from '../_types/errors.d-
|
|
2
|
-
export { a as TotalumError, b as TotalumErrorCode, i as isTotalumError } from '../_types/errors.d-
|
|
3
|
-
import { q as PdfFromHtmlInput, r as PdfFromUrlInput } from '../_types/integrations.d-
|
|
4
|
-
export { s as PdfOutput } from '../_types/integrations.d-
|
|
5
|
-
import '../_types/coerce.d-
|
|
1
|
+
import { T as TotalumClientOptions, U as Usage } from '../_types/errors.d-RTRkidv5.js';
|
|
2
|
+
export { a as TotalumError, b as TotalumErrorCode, i as isTotalumError } from '../_types/errors.d-RTRkidv5.js';
|
|
3
|
+
import { q as PdfFromHtmlInput, r as PdfFromUrlInput } from '../_types/integrations.d-CzTa9T-L.js';
|
|
4
|
+
export { s as PdfOutput } from '../_types/integrations.d-CzTa9T-L.js';
|
|
5
|
+
import '../_types/coerce.d-BKhuaDya.js';
|
|
6
6
|
|
|
7
7
|
/** `totalum.pdf` 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-RTRkidv5.js';
|
|
2
|
+
export { a as TotalumError, b as TotalumErrorCode, i as isTotalumError } from '../_types/errors.d-RTRkidv5.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<{
|
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 { U as Usage, 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-CzTa9T-L.js';
|
|
2
|
+
export { v as ScanOcrOutput } from '../_types/integrations.d-CzTa9T-L.js';
|
|
3
|
+
import { U as Usage, T as TotalumClientOptions } from '../_types/errors.d-RTRkidv5.js';
|
|
4
|
+
export { a as TotalumError, b as TotalumErrorCode, i as isTotalumError } from '../_types/errors.d-RTRkidv5.js';
|
|
5
|
+
import '../_types/coerce.d-BKhuaDya.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-CzTa9T-L.js';
|
|
2
|
+
import { T as TotalumClientOptions } from '../_types/errors.d-RTRkidv5.js';
|
|
3
|
+
export { a as TotalumError, b as TotalumErrorCode, i as isTotalumError } from '../_types/errors.d-RTRkidv5.js';
|
|
4
|
+
import '../_types/coerce.d-BKhuaDya.js';
|
|
5
5
|
|
|
6
6
|
/** `totalum.seo` over the Totalum 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-CzTa9T-L.js';
|
|
2
|
+
export { H as TranscribeOutput } from '../_types/integrations.d-CzTa9T-L.js';
|
|
3
|
+
import { T as TotalumClientOptions } from '../_types/errors.d-RTRkidv5.js';
|
|
4
|
+
export { a as TotalumError, b as TotalumErrorCode, i as isTotalumError } from '../_types/errors.d-RTRkidv5.js';
|
|
5
|
+
import '../_types/coerce.d-BKhuaDya.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, U as Usage } 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, U as Usage } from '../_types/errors.d-RTRkidv5.js';
|
|
2
|
+
export { a as TotalumError, b as TotalumErrorCode, i as isTotalumError } from '../_types/errors.d-RTRkidv5.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 { T as TotalumClientOptions, U as Usage } from '../_types/errors.d-
|
|
2
|
-
export { a as TotalumError, b as TotalumErrorCode, i as isTotalumError } from '../_types/errors.d-
|
|
3
|
-
import { L as WebScrapeInput, M as WebSearchInput, N as WebMapInput, Q as WebCrawlInput, w as ScreenshotInput } from '../_types/integrations.d-
|
|
4
|
-
export { J as JobCreated, x as ScreenshotOutput, W as WebJob, I as WebScrapeOutput, K as WebSearchOutput } from '../_types/integrations.d-
|
|
5
|
-
import '../_types/coerce.d-
|
|
1
|
+
import { T as TotalumClientOptions, U as Usage } from '../_types/errors.d-RTRkidv5.js';
|
|
2
|
+
export { a as TotalumError, b as TotalumErrorCode, i as isTotalumError } from '../_types/errors.d-RTRkidv5.js';
|
|
3
|
+
import { L as WebScrapeInput, M as WebSearchInput, N as WebMapInput, Q as WebCrawlInput, w as ScreenshotInput } from '../_types/integrations.d-CzTa9T-L.js';
|
|
4
|
+
export { J as JobCreated, x as ScreenshotOutput, W as WebJob, I as WebScrapeOutput, K as WebSearchOutput } from '../_types/integrations.d-CzTa9T-L.js';
|
|
5
|
+
import '../_types/coerce.d-BKhuaDya.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* `totalum.web` over the Totalum API `/v1/web/*` (scope `web`): scrape, search, map, crawl and screenshots,
|
package/dist/webhooks/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Z as ZodObject, d as ZodString, u as ZodISODateTime, f as ZodEnum, c as ZodOptional, j as ZodBoolean, h as ZodRecord, g as ZodUnknown, m as $strip, o as output, w as ZodNullable, p as ZodURL, T as TotalumClientOptions, a as TotalumError } from '../_types/errors.d-
|
|
2
|
-
export { b as TotalumErrorCode, i as isTotalumError } from '../_types/errors.d-
|
|
1
|
+
import { Z as ZodObject, d as ZodString, u as ZodISODateTime, f as ZodEnum, c as ZodOptional, j as ZodBoolean, h as ZodRecord, g as ZodUnknown, m as $strip, o as output, w as ZodNullable, p as ZodURL, T as TotalumClientOptions, a as TotalumError } from '../_types/errors.d-RTRkidv5.js';
|
|
2
|
+
export { b as TotalumErrorCode, i as isTotalumError } from '../_types/errors.d-RTRkidv5.js';
|
|
3
3
|
|
|
4
4
|
/** The delivery body: `{id, type, createdAt, projectId, env, livemode?, data}`, idempotent by `id`. */
|
|
5
5
|
declare const WebhookEvent: ZodObject<{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "totalum-sdk",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.11.0",
|
|
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",
|
|
@@ -51,6 +51,10 @@
|
|
|
51
51
|
"types": "./dist/vectors/index.d.ts",
|
|
52
52
|
"default": "./dist/vectors/index.js"
|
|
53
53
|
},
|
|
54
|
+
"./connections": {
|
|
55
|
+
"types": "./dist/connections/index.d.ts",
|
|
56
|
+
"default": "./dist/connections/index.js"
|
|
57
|
+
},
|
|
54
58
|
"./speech": {
|
|
55
59
|
"types": "./dist/speech/index.d.ts",
|
|
56
60
|
"default": "./dist/speech/index.js"
|