@iblai/data-layer 1.19.0 → 1.20.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/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iblai/data-layer",
3
- "version": "1.18.1",
3
+ "version": "1.19.1",
4
4
  "description": "ibl.ai data layer",
5
5
  "main": "dist/index.esm.js",
6
6
  "types": "dist/index.d.ts",
@@ -439,6 +439,9 @@ export interface ClickhousePerUserCostsArgs extends ClickhouseCostRangeArgs {
439
439
  }
440
440
  export interface ClickhousePerUserCostRow {
441
441
  username?: string;
442
+ /** `costs/peruser/` names these `user_*`; `email` is the older spelling. */
443
+ user_email?: string | null;
444
+ user_full_name?: string | null;
442
445
  email?: string;
443
446
  total_cost: number;
444
447
  /** Not every deployment returns these — render them conditionally. */
@@ -0,0 +1,3 @@
1
+ export * from './api-slice';
2
+ export * from './types';
3
+ export * from './constants';
@@ -2,13 +2,44 @@ export interface CustomDomainImage {
2
2
  image: string;
3
3
  alt: string;
4
4
  }
5
+ /**
6
+ * One DNS record the domain's owner has to set at their registrar. `reason`
7
+ * explains why it is needed and is written for a human, so it can be shown
8
+ * as-is.
9
+ */
10
+ export interface DomainRecord {
11
+ type: string;
12
+ name: string;
13
+ value: string;
14
+ reason?: string;
15
+ }
16
+ /** A domain serving a deployed app rather than one of the sign-in/app SPAs. */
17
+ export declare const VERCEL_SPA = "vercel";
5
18
  export interface CustomDomain {
6
19
  id: number;
7
20
  custom_domain: string;
21
+ /** `vercel` for a deployed app; the other values are the sign-in/app SPAs. */
8
22
  spa: string;
9
23
  spa_display?: string;
10
24
  registered_with_dns_pro?: boolean;
11
25
  dns_pro_display?: string;
26
+ /**
27
+ * When the organization last proved it controls the domain; `null` if never.
28
+ * Only ever set on hosted (`spa: 'vercel'`) rows — the SPA domains are
29
+ * verified in the browser instead, and have no server-side record of it.
30
+ */
31
+ verified_at?: string | null;
32
+ /**
33
+ * When another organization claimed the domain, `null` while this one still
34
+ * holds it. A lost domain comes back the moment it verifies again.
35
+ */
36
+ lost_at?: string | null;
37
+ /**
38
+ * The records to set, structured. Written only on the hosting path, so an
39
+ * SPA row always reads `[]` and its single CNAME is computed client-side.
40
+ */
41
+ records?: DomainRecord[];
42
+ /** The same records as free text. Prefer `records`; do not parse this. */
12
43
  instructions?: string;
13
44
  platform_id?: number;
14
45
  platform_key?: string;