totalum-sdk 1.0.0 → 1.2.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.
@@ -1,6 +1,6 @@
1
- import { S as SdkClientErrorCode, a as TotalumError, b as TotalumErrorCode, E as ErrorBody } from '../_types/errors.d-Dtt-BIwJ.js';
1
+ import { S as SdkClientErrorCode, a as TotalumError, b as TotalumErrorCode, E as ErrorBody } from '../_types/errors.d-EVOC2l-Z.js';
2
2
  import { TotalumClientOptions } from '../ai/index.js';
3
- export { i as isTotalumError } from '../_types/errors.d-Dtt-BIwJ.js';
3
+ export { i as isTotalumError } from '../_types/errors.d-EVOC2l-Z.js';
4
4
 
5
5
  /**
6
6
  * Cloudflare's `D1Database` surface, re-declared structurally so an app needs no Cloudflare types to compile
@@ -1,8 +1,8 @@
1
- import { E as EmailSendInput, j as EmailView } from '../_types/integrations.d-DjOeFaYn.js';
2
- export { i as EmailSendOutput } from '../_types/integrations.d-DjOeFaYn.js';
3
- import { T as TotalumClientOptions } from '../_types/errors.d-Dtt-BIwJ.js';
4
- export { a as TotalumError, b as TotalumErrorCode, i as isTotalumError } from '../_types/errors.d-Dtt-BIwJ.js';
5
- import '../_types/coerce.d-BXj_o-j6.js';
1
+ import { E as EmailSendInput, j as EmailView } from '../_types/integrations.d-CGtCHddY.js';
2
+ export { i as EmailSendOutput } from '../_types/integrations.d-CGtCHddY.js';
3
+ import { T as TotalumClientOptions } from '../_types/errors.d-EVOC2l-Z.js';
4
+ export { a as TotalumError, b as TotalumErrorCode, i as isTotalumError } from '../_types/errors.d-EVOC2l-Z.js';
5
+ import '../_types/coerce.d-Aya847-Q.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
@@ -1,8 +1,8 @@
1
- import { F as FileDescriptor, k as FileUploadUrlInput, m as FilesListQuery } from '../_types/integrations.d-DjOeFaYn.js';
2
- export { l as FileUploadUrlOutput, n as FilesPage } from '../_types/integrations.d-DjOeFaYn.js';
3
- import { T as TotalumClientOptions } from '../_types/errors.d-Dtt-BIwJ.js';
4
- export { a as TotalumError, b as TotalumErrorCode, i as isTotalumError } from '../_types/errors.d-Dtt-BIwJ.js';
5
- import '../_types/coerce.d-BXj_o-j6.js';
1
+ import { F as FileDescriptor, k as FileUploadUrlInput, m as FilesListQuery } from '../_types/integrations.d-CGtCHddY.js';
2
+ export { l as FileUploadUrlOutput, n as FilesPage } from '../_types/integrations.d-CGtCHddY.js';
3
+ import { T as TotalumClientOptions } from '../_types/errors.d-EVOC2l-Z.js';
4
+ export { a as TotalumError, b as TotalumErrorCode, i as isTotalumError } from '../_types/errors.d-EVOC2l-Z.js';
5
+ import '../_types/coerce.d-Aya847-Q.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). */
package/dist/http.js CHANGED
@@ -22,6 +22,11 @@ export async function send(options, method, route, body, extra = {}) {
22
22
  authorization: `Bearer ${projectKey(options)}`,
23
23
  'x-totalum-env': envOf(options),
24
24
  };
25
+ // which deployment is calling (PGM binds `dev` on the preview Worker, `live` on the published one): payments charge
26
+ // in Stripe live mode only from `live` (plan 11 §9.4)
27
+ const usageEnv = readEnv('TOTALUM_USAGE_ENV');
28
+ if (usageEnv === 'dev' || usageEnv === 'live')
29
+ headers['x-totalum-usage-env'] = usageEnv;
25
30
  const form = body instanceof FormData;
26
31
  if (body !== undefined && !form)
27
32
  headers['content-type'] = 'application/json';
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-Dtt-BIwJ.js';
35
- export { C as CheckoutInput, a as CheckoutOutput, b as CronJob, c as CronJobInput, d as CronJobPatch, e as CronRun, f as CronRunsPage, g as CustomerPortalLinkInput, h as CustomerPortalLinkOutput, E as EmailSendInput, i as EmailSendOutput, j as EmailView, F as FileDescriptor, k as FileUploadUrlInput, l as FileUploadUrlOutput, m as FilesListQuery, n as FilesPage, J as JobCreated, O as OnboardingLinkInput, o as OnboardingLinkOutput, P as PaymentsStatus, p as PdfFromHtmlInput, q as PdfFromUrlInput, r as PdfOutput, S as ScanDocumentInput, s as ScanOcrInput, t as ScanOcrOutput, u as ScreenshotInput, v as ScreenshotOutput, w as SeoIndexNowKey, x as SeoNotifyOutput, y as SpeakInput, z as StoredMedia, T as TranscribeInput, A as TranscribeOutput, W as WebJob, B as WebScrapeOutput, D as WebSearchOutput } from './_types/integrations.d-DjOeFaYn.js';
36
- export { L as LogsPage, S as SiteAnalyticsOutput, a as SiteDimension, b as SiteMetric } from './_types/ops.d-BKBWL6Qf.js';
37
- export { W as WebhookConfig, a as WebhookEvent, b as WebhookSecretOutput } from './_types/billing.d-BcRcDH4Y.js';
38
- import './_types/coerce.d-BXj_o-j6.js';
34
+ export { T as TotalumClientOptions, a as TotalumError, b as TotalumErrorCode, i as isTotalumError } from './_types/errors.d-EVOC2l-Z.js';
35
+ export { C as CheckoutInput, a as CheckoutOutput, b as CronJob, c as CronJobInput, d as CronJobPatch, e as CronRun, f as CronRunsPage, g as CustomerPortalLinkInput, h as CustomerPortalLinkOutput, E as EmailSendInput, i as EmailSendOutput, j as EmailView, F as FileDescriptor, k as FileUploadUrlInput, l as FileUploadUrlOutput, m as FilesListQuery, n as FilesPage, J as JobCreated, O as OnboardingLinkInput, o as OnboardingLinkOutput, P as PaymentsStatus, p as PdfFromHtmlInput, q as PdfFromUrlInput, r as PdfOutput, R as RefundInput, s as RefundOutput, S as ScanDocumentInput, t as ScanOcrInput, u as ScanOcrOutput, v as ScreenshotInput, w as ScreenshotOutput, x as SeoIndexNowKey, y as SeoNotifyOutput, z as SpeakInput, A as StoredMedia, T as TranscribeInput, B as TranscribeOutput, W as WebJob, D as WebScrapeOutput, G as WebSearchOutput } from './_types/integrations.d-CGtCHddY.js';
36
+ export { L as LogsPage, S as SiteAnalyticsOutput, a as SiteDimension, b as SiteMetric } from './_types/ops.d-DAfs2eGd.js';
37
+ export { W as WebhookConfig, a as WebhookEvent, b as WebhookSecretOutput } from './_types/billing.d-NEKx9oFr.js';
38
+ import './_types/coerce.d-Aya847-Q.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;
@@ -1,8 +1,8 @@
1
- import { c as LogsQueryInput } from '../_types/ops.d-BKBWL6Qf.js';
2
- export { L as LogsPage } from '../_types/ops.d-BKBWL6Qf.js';
3
- import { T as TotalumClientOptions } from '../_types/errors.d-Dtt-BIwJ.js';
4
- export { a as TotalumError, b as TotalumErrorCode, i as isTotalumError } from '../_types/errors.d-Dtt-BIwJ.js';
5
- import '../_types/coerce.d-BXj_o-j6.js';
1
+ import { c as LogsQueryInput } from '../_types/ops.d-DAfs2eGd.js';
2
+ export { L as LogsPage } from '../_types/ops.d-DAfs2eGd.js';
3
+ import { T as TotalumClientOptions } from '../_types/errors.d-EVOC2l-Z.js';
4
+ export { a as TotalumError, b as TotalumErrorCode, i as isTotalumError } from '../_types/errors.d-EVOC2l-Z.js';
5
+ import '../_types/coerce.d-Aya847-Q.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'>;
@@ -1,13 +1,14 @@
1
- import { O as OnboardingLinkInput, C as CheckoutInput, g as CustomerPortalLinkInput } from '../_types/integrations.d-DjOeFaYn.js';
2
- export { a as CheckoutOutput, h as CustomerPortalLinkOutput, o as OnboardingLinkOutput, P as PaymentsStatus } from '../_types/integrations.d-DjOeFaYn.js';
3
- import { T as TotalumClientOptions } from '../_types/errors.d-Dtt-BIwJ.js';
4
- export { a as TotalumError, b as TotalumErrorCode, i as isTotalumError } from '../_types/errors.d-Dtt-BIwJ.js';
5
- import '../_types/coerce.d-BXj_o-j6.js';
1
+ import { O as OnboardingLinkInput, C as CheckoutInput, g as CustomerPortalLinkInput, R as RefundInput } from '../_types/integrations.d-CGtCHddY.js';
2
+ export { a as CheckoutOutput, h as CustomerPortalLinkOutput, o as OnboardingLinkOutput, P as PaymentsStatus, s as RefundOutput } from '../_types/integrations.d-CGtCHddY.js';
3
+ import { T as TotalumClientOptions } from '../_types/errors.d-EVOC2l-Z.js';
4
+ export { a as TotalumError, b as TotalumErrorCode, i as isTotalumError } from '../_types/errors.d-EVOC2l-Z.js';
5
+ import '../_types/coerce.d-Aya847-Q.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
9
9
  * Connect direct charges on the project's own connected account. Card data never passes through here — send buyers to
10
- * the hosted Checkout `url` (SAQ-A); SDK-API refuses card fields with `CARD_DATA_NOT_ACCEPTED`.
10
+ * the hosted Checkout `url` (SAQ-A); SDK-API refuses card fields with `CARD_DATA_NOT_ACCEPTED`. Stripe test mode on the
11
+ * preview and in the sandbox; live mode only on the published site, once the owner onboarded and switched live on.
11
12
  */
12
13
  declare function totalumPayments(options?: TotalumClientOptions): {
13
14
  /** Whether the project's Stripe account can take payments (charges, payouts, pending requirements). */
@@ -25,6 +26,7 @@ declare function totalumPayments(options?: TotalumClientOptions): {
25
26
  eventuallyDue: string[];
26
27
  };
27
28
  applicationFeeBps: number;
29
+ liveEnabled: boolean;
28
30
  }>;
29
31
  /** Stripe's hosted onboarding for the project owner (single use; never for the agent's sandbox key). */
30
32
  onboardingLink: (input: OnboardingLinkInput) => Promise<{
@@ -40,8 +42,17 @@ declare function totalumPayments(options?: TotalumClientOptions): {
40
42
  customerPortalLink: (input: CustomerPortalLinkInput) => Promise<{
41
43
  url: string;
42
44
  }>;
45
+ refunds: {
46
+ /** Refund a payment (all of it, or `amount` in the smallest unit); Totalum's fee is refunded with it. */
47
+ create: (input: RefundInput) => Promise<{
48
+ id: string;
49
+ status: string;
50
+ amount: number;
51
+ currency: string;
52
+ }>;
53
+ };
43
54
  };
44
55
  type TotalumPayments = ReturnType<typeof totalumPayments>;
45
56
 
46
- export { CheckoutInput, CustomerPortalLinkInput, OnboardingLinkInput, TotalumClientOptions, totalumPayments };
57
+ export { CheckoutInput, CustomerPortalLinkInput, OnboardingLinkInput, RefundInput, TotalumClientOptions, totalumPayments };
47
58
  export type { TotalumPayments };
@@ -3,7 +3,8 @@ export { TotalumError, isTotalumError } from '../errors.js';
3
3
  /**
4
4
  * `totalum.payments` (plan 05, plan 11 §9.5) over SDK-API `/v1/payments/*` with a project key (scope `payments`): Stripe
5
5
  * Connect direct charges on the project's own connected account. Card data never passes through here — send buyers to
6
- * the hosted Checkout `url` (SAQ-A); SDK-API refuses card fields with `CARD_DATA_NOT_ACCEPTED`.
6
+ * the hosted Checkout `url` (SAQ-A); SDK-API refuses card fields with `CARD_DATA_NOT_ACCEPTED`. Stripe test mode on the
7
+ * preview and in the sandbox; live mode only on the published site, once the owner onboarded and switched live on.
7
8
  */
8
9
  export function totalumPayments(options = {}) {
9
10
  const call = jsonClient(options);
@@ -16,5 +17,9 @@ export function totalumPayments(options = {}) {
16
17
  createCheckout: (input) => call('POST', '/v1/payments/checkout', input),
17
18
  /** Stripe's hosted portal where a customer manages their subscriptions and saved cards. */
18
19
  customerPortalLink: (input) => call('POST', '/v1/payments/customer-portal-link', input),
20
+ refunds: {
21
+ /** Refund a payment (all of it, or `amount` in the smallest unit); Totalum's fee is refunded with it. */
22
+ create: (input) => call('POST', '/v1/payments/refunds', input),
23
+ },
19
24
  };
20
25
  }
@@ -1,8 +1,8 @@
1
- import { p as PdfFromHtmlInput, q as PdfFromUrlInput } from '../_types/integrations.d-DjOeFaYn.js';
2
- export { r as PdfOutput } from '../_types/integrations.d-DjOeFaYn.js';
3
- import { T as TotalumClientOptions } from '../_types/errors.d-Dtt-BIwJ.js';
4
- export { a as TotalumError, b as TotalumErrorCode, i as isTotalumError } from '../_types/errors.d-Dtt-BIwJ.js';
5
- import '../_types/coerce.d-BXj_o-j6.js';
1
+ import { p as PdfFromHtmlInput, q as PdfFromUrlInput } from '../_types/integrations.d-CGtCHddY.js';
2
+ export { r as PdfOutput } from '../_types/integrations.d-CGtCHddY.js';
3
+ import { T as TotalumClientOptions } from '../_types/errors.d-EVOC2l-Z.js';
4
+ export { a as TotalumError, b as TotalumErrorCode, i as isTotalumError } from '../_types/errors.d-EVOC2l-Z.js';
5
+ import '../_types/coerce.d-Aya847-Q.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): {
@@ -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-Dtt-BIwJ.js';
2
- export { a as TotalumError, b as TotalumErrorCode, i as isTotalumError } from '../_types/errors.d-Dtt-BIwJ.js';
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-EVOC2l-Z.js';
2
+ export { a as TotalumError, b as TotalumErrorCode, i as isTotalumError } from '../_types/errors.d-EVOC2l-Z.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<{
@@ -1,8 +1,8 @@
1
- import { S as ScanDocumentInput, s as ScanOcrInput } from '../_types/integrations.d-DjOeFaYn.js';
2
- export { t as ScanOcrOutput } from '../_types/integrations.d-DjOeFaYn.js';
3
- import { T as TotalumClientOptions } from '../_types/errors.d-Dtt-BIwJ.js';
4
- export { a as TotalumError, b as TotalumErrorCode, i as isTotalumError } from '../_types/errors.d-Dtt-BIwJ.js';
5
- import '../_types/coerce.d-BXj_o-j6.js';
1
+ import { S as ScanDocumentInput, t as ScanOcrInput } from '../_types/integrations.d-CGtCHddY.js';
2
+ export { u as ScanOcrOutput } from '../_types/integrations.d-CGtCHddY.js';
3
+ import { T as TotalumClientOptions } from '../_types/errors.d-EVOC2l-Z.js';
4
+ export { a as TotalumError, b as TotalumErrorCode, i as isTotalumError } from '../_types/errors.d-EVOC2l-Z.js';
5
+ import '../_types/coerce.d-Aya847-Q.js';
6
6
 
7
7
  /**
8
8
  * The v1 scan result: the extracted fields (one set per page with `processEveryPdfPageAsDifferentScan`), the v1
@@ -1,7 +1,7 @@
1
- export { w as SeoIndexNowKey, x as SeoNotifyOutput } from '../_types/integrations.d-DjOeFaYn.js';
2
- import { T as TotalumClientOptions } from '../_types/errors.d-Dtt-BIwJ.js';
3
- export { a as TotalumError, b as TotalumErrorCode, i as isTotalumError } from '../_types/errors.d-Dtt-BIwJ.js';
4
- import '../_types/coerce.d-BXj_o-j6.js';
1
+ export { x as SeoIndexNowKey, y as SeoNotifyOutput } from '../_types/integrations.d-CGtCHddY.js';
2
+ import { T as TotalumClientOptions } from '../_types/errors.d-EVOC2l-Z.js';
3
+ export { a as TotalumError, b as TotalumErrorCode, i as isTotalumError } from '../_types/errors.d-EVOC2l-Z.js';
4
+ import '../_types/coerce.d-Aya847-Q.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): {
@@ -1,8 +1,8 @@
1
- import { T as TranscribeInput, y as SpeakInput, z as StoredMedia } from '../_types/integrations.d-DjOeFaYn.js';
2
- export { A as TranscribeOutput } from '../_types/integrations.d-DjOeFaYn.js';
3
- import { T as TotalumClientOptions } from '../_types/errors.d-Dtt-BIwJ.js';
4
- export { a as TotalumError, b as TotalumErrorCode, i as isTotalumError } from '../_types/errors.d-Dtt-BIwJ.js';
5
- import '../_types/coerce.d-BXj_o-j6.js';
1
+ import { T as TranscribeInput, z as SpeakInput, A as StoredMedia } from '../_types/integrations.d-CGtCHddY.js';
2
+ export { B as TranscribeOutput } from '../_types/integrations.d-CGtCHddY.js';
3
+ import { T as TotalumClientOptions } from '../_types/errors.d-EVOC2l-Z.js';
4
+ export { a as TotalumError, b as TotalumErrorCode, i as isTotalumError } from '../_types/errors.d-EVOC2l-Z.js';
5
+ import '../_types/coerce.d-Aya847-Q.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 {
@@ -1,10 +1,10 @@
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-Dtt-BIwJ.js';
2
- export { a as TotalumError, b as TotalumErrorCode, i as isTotalumError } from '../_types/errors.d-Dtt-BIwJ.js';
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-EVOC2l-Z.js';
2
+ export { a as TotalumError, b as TotalumErrorCode, i as isTotalumError } from '../_types/errors.d-EVOC2l-Z.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<{
6
- text: "text";
7
6
  image: "image";
7
+ text: "text";
8
8
  }>;
9
9
  type VectorSpace = output<typeof VectorSpace>;
10
10
  /** ≤ 9 KiB as JSON (Vectorize keeps 10 KiB); keys starting with `_` are reserved. */
@@ -16,8 +16,8 @@ declare const VectorUpsertItem: ZodObject<{
16
16
  text: ZodOptional<ZodString>;
17
17
  image: ZodOptional<ZodString>;
18
18
  space: ZodOptional<ZodEnum<{
19
- text: "text";
20
19
  image: "image";
20
+ text: "text";
21
21
  }>>;
22
22
  metadata: ZodOptional<ZodRecord<ZodString, ZodUnion<readonly [ZodString, ZodNumber, ZodBoolean, ZodArray<ZodString>]>>>;
23
23
  }, $strip>;
@@ -49,8 +49,8 @@ declare const VectorsQueryInput: ZodObject<{
49
49
  values: ZodOptional<ZodArray<ZodNumber>>;
50
50
  image: ZodOptional<ZodString>;
51
51
  space: ZodOptional<ZodEnum<{
52
- text: "text";
53
52
  image: "image";
53
+ text: "text";
54
54
  }>>;
55
55
  topK: ZodOptional<ZodInt>;
56
56
  filter: ZodOptional<ZodRecord<ZodEnum<{
@@ -76,8 +76,8 @@ declare const VectorMatch: ZodObject<{
76
76
  id: ZodString;
77
77
  score: ZodNumber;
78
78
  space: ZodEnum<{
79
- text: "text";
80
79
  image: "image";
80
+ text: "text";
81
81
  }>;
82
82
  metadata: ZodOptional<ZodRecord<ZodString, ZodUnion<readonly [ZodString, ZodNumber, ZodBoolean, ZodArray<ZodString>]>>>;
83
83
  values: ZodOptional<ZodArray<ZodNumber>>;
@@ -86,8 +86,8 @@ type VectorMatch = output<typeof VectorMatch>;
86
86
  declare const VectorRecord: ZodObject<{
87
87
  id: ZodString;
88
88
  space: ZodEnum<{
89
- text: "text";
90
89
  image: "image";
90
+ text: "text";
91
91
  }>;
92
92
  values: ZodArray<ZodNumber>;
93
93
  metadata: ZodOptional<ZodRecord<ZodString, ZodUnion<readonly [ZodString, ZodNumber, ZodBoolean, ZodArray<ZodString>]>>>;
@@ -1,8 +1,8 @@
1
- import { G as WebScrapeInput, H as WebSearchInput, I as WebMapInput, K as WebCrawlInput, u as ScreenshotInput } from '../_types/integrations.d-DjOeFaYn.js';
2
- export { J as JobCreated, v as ScreenshotOutput, W as WebJob, B as WebScrapeOutput, D as WebSearchOutput } from '../_types/integrations.d-DjOeFaYn.js';
3
- import { T as TotalumClientOptions } from '../_types/errors.d-Dtt-BIwJ.js';
4
- export { a as TotalumError, b as TotalumErrorCode, i as isTotalumError } from '../_types/errors.d-Dtt-BIwJ.js';
5
- import '../_types/coerce.d-BXj_o-j6.js';
1
+ import { H as WebScrapeInput, I as WebSearchInput, K as WebMapInput, L as WebCrawlInput, v as ScreenshotInput } from '../_types/integrations.d-CGtCHddY.js';
2
+ export { J as JobCreated, w as ScreenshotOutput, W as WebJob, D as WebScrapeOutput, G as WebSearchOutput } from '../_types/integrations.d-CGtCHddY.js';
3
+ import { T as TotalumClientOptions } from '../_types/errors.d-EVOC2l-Z.js';
4
+ export { a as TotalumError, b as TotalumErrorCode, i as isTotalumError } from '../_types/errors.d-EVOC2l-Z.js';
5
+ import '../_types/coerce.d-Aya847-Q.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
@@ -1,7 +1,7 @@
1
- import { a as WebhookEvent } from '../_types/billing.d-BcRcDH4Y.js';
2
- export { W as WebhookConfig, b as WebhookSecretOutput } from '../_types/billing.d-BcRcDH4Y.js';
3
- import { T as TotalumClientOptions, a as TotalumError } from '../_types/errors.d-Dtt-BIwJ.js';
4
- export { b as TotalumErrorCode, i as isTotalumError } from '../_types/errors.d-Dtt-BIwJ.js';
1
+ import { a as WebhookEvent } from '../_types/billing.d-NEKx9oFr.js';
2
+ export { W as WebhookConfig, b as WebhookSecretOutput } from '../_types/billing.d-NEKx9oFr.js';
3
+ import { T as TotalumClientOptions, a as TotalumError } from '../_types/errors.d-EVOC2l-Z.js';
4
+ export { b as TotalumErrorCode, i as isTotalumError } from '../_types/errors.d-EVOC2l-Z.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.0.0",
3
+ "version": "1.2.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",