@veltdev/types-dev 6.0.0-beta.22 → 6.0.0-beta.23

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.
@@ -80,12 +80,21 @@ export declare class Config {
80
80
  /**
81
81
  * VENDORED from the backend deployment-profile manifest — source of truth:
82
82
  * `shared-firebase-function` repo, `functions/src/deployment-profiles/modules.manifest.ts`
83
- * (`DeploymentModuleId`, 13 modules; backend plan §8.3, ratified 2026-07-03; `console`
84
- * split added in backend iteration-4). Do NOT add, remove, or rename ids here without a
85
- * matching manifest change — the endpoint→module map in `endpoints.service.ts` and its
86
- * cross-repo drift-fence test key off this list.
83
+ * (`DeploymentModuleId`, 12 modules; backend plan §8.3; restructured 2026-07-10 in backend
84
+ * iteration-10, owner-directed). Do NOT add, remove, or rename ids here without a matching
85
+ * manifest change — the endpoint→module map in `endpoints.service.ts` and its cross-repo
86
+ * drift-fence test key off this list.
87
+ *
88
+ * 2026-07-10 restructure summary:
89
+ * - DELETED (absorbed into `core`): `notifications`, `analytics-telemetry`, `console`.
90
+ * The agents RUNTIME also moved to `core` (`agents` keeps only the approval engine).
91
+ * - NEW `rest-api`: the customer-facing REST CFs (`commentsapibe`, `documentsapibe`, …),
92
+ * now opt-in (hardDep `core`). None of the SDK's own runtime endpoints live there.
93
+ * - NEW `legacy-v1`: the ~55 standalone V1 REST CFs — EXCLUDED, never provisioned on any
94
+ * self-hosted profile, so this id never appears in a valid `deploymentProfile`.
95
+ * - `core` is the SOLE mandatory module.
87
96
  */
88
- export declare const DEPLOYMENT_MODULE_IDS: readonly ["core", "notifications", "recorder-media", "ai", "agents", "huddle-webrtc", "integrations-workflow", "superflow", "billing-stripe", "analytics-telemetry", "migrations", "velt-internal", "console"];
97
+ export declare const DEPLOYMENT_MODULE_IDS: readonly ["core", "rest-api", "recorder-media", "ai", "agents", "huddle-webrtc", "integrations-workflow", "superflow", "billing-stripe", "migrations", "legacy-v1", "velt-internal"];
89
98
  /** A backend feature-module id (see {@link DEPLOYMENT_MODULE_IDS} for provenance). */
90
99
  export type DeploymentModuleId = typeof DEPLOYMENT_MODULE_IDS[number];
91
100
  /**
@@ -187,6 +196,30 @@ export interface SelfHostedConfig {
187
196
  * — they are excluded from the strict-mode core-misconfiguration report).
188
197
  */
189
198
  deploymentProfile?: DeploymentModuleId[];
199
+ /**
200
+ * The `dataRegions` field of the `velt-deployment-profile.json` v1 document (additive
201
+ * 2026-07-10, GTK-005-safe): which regional `setencrypteddata*` variants the deployment
202
+ * provisioned. Inlined by the customer's tooling alongside {@link deploymentProfile}.
203
+ *
204
+ * - `undefined` / `null` — no region filter (all regional variants provisioned; the
205
+ * SaaS shape). `null` and `[]` are DIFFERENT fleets — never coalesce them.
206
+ * - `[]` — ONLY the base `setencrypteddata` (in the deployment's own region) exists.
207
+ * - `['europe-west1', …]` — the base plus the variants for exactly those GCP regions
208
+ * (known: `europe-west1`, `asia-southeast1`, `australia-southeast1`,
209
+ * `asia-northeast1`).
210
+ *
211
+ * The SDK uses this as a pre-call provisioning check in
212
+ * `EndpointsService.getSetEncryptedDataUrl`: a tenant routed to an UNPROVISIONED
213
+ * regional variant degrades to the base `setEncryptedData` resolution instead of
214
+ * calling a URL that would 404.
215
+ *
216
+ * The filter is AUTHORITATIVE over injected per-region URLs (mirroring how a
217
+ * `deploymentProfile` opt-out wins over an injected endpoint URL): an injected
218
+ * `cloudFunction.regions[X]` override for a region excluded by `dataRegions` is
219
+ * never consulted — the write resolves through the base slot. Don't inject overrides
220
+ * for regions the deployment did not provision.
221
+ */
222
+ dataRegions?: string[] | null;
190
223
  }
191
224
  export interface ProxyConfig {
192
225
  /** Custom host for the Velt CDN (e.g., 'cdn-proxy.customer.com') */
@@ -333,7 +333,7 @@ export type RecorderType = 'audio' | 'video' | 'screen';
333
333
  export type RecorderFileFormat = 'mp3' | 'mp4' | 'webm';
334
334
  export type RecorderLayoutMode = 'floating' | 'thread';
335
335
  export type SupportedMimeType = 'audio' | 'video';
336
- export type FirebaseRegion = 'usCentral1' | 'asiaSouthEast1' | 'europeWest1' | 'australiaSouthEast1';
336
+ export type FirebaseRegion = 'usCentral1' | 'asiaSouthEast1' | 'europeWest1' | 'australiaSouthEast1' | 'asiaNorthEast1';
337
337
  export type VideoEventType = 'play' | 'pause' | 'ratechange' | 'seeked' | 'timeupdate' | 'volumechange';
338
338
  export type RewriterType = 'copywriter' | 'generic';
339
339
  export type RecorderStatusType = 'started' | 'paused' | 'resumed' | 'stopped' | 'error' | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veltdev/types-dev",
3
- "version": "6.0.0-beta.22",
3
+ "version": "6.0.0-beta.23",
4
4
  "description": "Velt is an SDK to add collaborative features to your product within minutes. Example: Comments like Figma, Frame.io, Google docs or sheets, Recording like Loom, Huddles like Slack and much more.",
5
5
  "homepage": "https://velt.dev",
6
6
  "keywords": [