@salsita-ai/contracts 0.50.0-develop.aec0f535bf → 0.50.0-develop.af031dec0f

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.
Files changed (91) hide show
  1. package/README.md +2 -1
  2. package/dist/api/cli-access.d.ts +60 -0
  3. package/dist/api/cli-access.js +1 -0
  4. package/dist/api/cli-login-approval.d.ts +15 -0
  5. package/dist/api/cli-login-approval.js +1 -0
  6. package/dist/api/cli-sign-in.d.ts +23 -0
  7. package/dist/api/cli-sign-in.js +1 -0
  8. package/dist/api/index.d.ts +5 -0
  9. package/dist/api/index.js +1 -1
  10. package/dist/api/session-token.d.ts +1 -1
  11. package/dist/api/studio-session.d.ts +47 -0
  12. package/dist/api/studio-session.js +1 -1
  13. package/dist/api/workspace-creation-options.d.ts +19 -0
  14. package/dist/api/workspace-creation-options.js +1 -0
  15. package/dist/api/workspace-creation.d.ts +19 -0
  16. package/dist/api/workspace-creation.js +1 -0
  17. package/dist/assistant/ban-tool.d.ts +2 -2
  18. package/dist/assistant/ban-tool.js +1 -1
  19. package/dist/assistant/deployment-assistant.d.ts +15 -0
  20. package/dist/assistant/deployment-assistant.js +1 -1
  21. package/dist/assistant/graphql-tools.d.ts +4 -2
  22. package/dist/assistant/graphql-tools.js +1 -1
  23. package/dist/assistant/index.d.ts +1 -1
  24. package/dist/assistant/index.js +1 -1
  25. package/dist/domain/deployments/activations/environment-activation-kind.d.ts +11 -0
  26. package/dist/domain/deployments/activations/environment-activation-kind.js +1 -0
  27. package/dist/domain/deployments/activations/index.d.ts +2 -0
  28. package/dist/domain/deployments/activations/index.js +1 -0
  29. package/dist/domain/deployments/activations/production-rollback-state.d.ts +14 -0
  30. package/dist/domain/deployments/activations/production-rollback-state.js +1 -0
  31. package/dist/domain/deployments/api-tokens/index.d.ts +1 -0
  32. package/dist/domain/deployments/api-tokens/index.js +1 -0
  33. package/dist/domain/deployments/api-tokens/limits.d.ts +16 -0
  34. package/dist/domain/deployments/api-tokens/limits.js +1 -0
  35. package/dist/domain/deployments/custom-domains/custom-domain.d.ts +40 -0
  36. package/dist/domain/deployments/custom-domains/custom-domain.js +1 -0
  37. package/dist/domain/deployments/custom-domains/index.d.ts +1 -0
  38. package/dist/domain/deployments/custom-domains/index.js +1 -0
  39. package/dist/domain/deployments/deployment-build-domain.d.ts +8 -0
  40. package/dist/domain/deployments/deployment-domain.d.ts +2 -0
  41. package/dist/domain/deployments/index.d.ts +7 -0
  42. package/dist/domain/deployments/index.js +1 -1
  43. package/dist/domain/deployments/previews/index.d.ts +2 -0
  44. package/dist/domain/deployments/previews/index.js +1 -0
  45. package/dist/domain/deployments/previews/preview-limits.d.ts +5 -0
  46. package/dist/domain/deployments/previews/preview-limits.js +1 -0
  47. package/dist/domain/deployments/previews/preview-name.d.ts +23 -0
  48. package/dist/domain/deployments/previews/preview-name.js +1 -0
  49. package/dist/domain/deployments/project-domain.d.ts +6 -3
  50. package/dist/domain/deployments/sdk-builder-environment-domain.d.ts +20 -0
  51. package/dist/domain/deployments/sdk-builder-environment-domain.js +1 -0
  52. package/dist/domain/deployments/sdk-builder-project-domain.d.ts +22 -0
  53. package/dist/domain/deployments/sdk-builder-project-domain.js +1 -0
  54. package/dist/domain/deployments/sdk-builder-setup-domain.d.ts +5 -4
  55. package/dist/domain/deployments/teardowns/index.d.ts +1 -0
  56. package/dist/domain/deployments/teardowns/index.js +1 -0
  57. package/dist/domain/deployments/teardowns/teardown-status.d.ts +23 -0
  58. package/dist/domain/deployments/teardowns/teardown-status.js +1 -0
  59. package/dist/domain/index.d.ts +1 -0
  60. package/dist/domain/index.js +1 -1
  61. package/dist/domain/product-configurations/analytics/configuration-chart-definition.d.ts +798 -0
  62. package/dist/domain/product-configurations/analytics/configuration-chart-definition.js +1 -0
  63. package/dist/domain/product-configurations/analytics/index.d.ts +1 -0
  64. package/dist/domain/product-configurations/analytics/index.js +1 -0
  65. package/dist/domain/product-configurations/configuration-insight-field.d.ts +54 -0
  66. package/dist/domain/product-configurations/configuration-insight-field.js +1 -0
  67. package/dist/domain/product-configurations/configuration-insight-status.d.ts +4 -0
  68. package/dist/domain/product-configurations/configuration-insight-status.js +1 -0
  69. package/dist/domain/product-configurations/configuration-insight-value.d.ts +114 -0
  70. package/dist/domain/product-configurations/configuration-insight-value.js +1 -0
  71. package/dist/domain/product-configurations/index.d.ts +4 -0
  72. package/dist/domain/product-configurations/index.js +1 -1
  73. package/dist/domain/workspace-lifecycle/disabled-workspace-status.d.ts +7 -0
  74. package/dist/domain/workspace-lifecycle/disabled-workspace-status.js +1 -0
  75. package/dist/domain/workspace-lifecycle/index.d.ts +3 -0
  76. package/dist/domain/workspace-lifecycle/index.js +1 -0
  77. package/dist/domain/workspace-lifecycle/workspace-disabled-message.d.ts +6 -0
  78. package/dist/domain/workspace-lifecycle/workspace-disabled-message.js +1 -0
  79. package/dist/domain/workspace-lifecycle/workspace-status.d.ts +13 -0
  80. package/dist/domain/workspace-lifecycle/workspace-status.js +1 -0
  81. package/dist/webhook/implementation/configuration-insights-payload.d.ts +41 -0
  82. package/dist/webhook/implementation/configuration-insights-payload.js +1 -0
  83. package/dist/webhook/implementation/configuration-insights-response.d.ts +184 -0
  84. package/dist/webhook/implementation/configuration-insights-response.js +1 -0
  85. package/dist/webhook/implementation/index.d.ts +3 -1
  86. package/dist/webhook/implementation/index.js +1 -1
  87. package/dist/webhook/implementation/webhook-api-types.d.ts +111 -5
  88. package/dist/webhook/implementation/webhook-api-types.js +1 -1
  89. package/dist/webhook/implementation/webhook-routing.d.ts +3 -0
  90. package/dist/webhook/implementation/webhook-routing.js +1 -1
  91. package/package.json +2 -2
@@ -0,0 +1 @@
1
+ import{z as e}from"zod";import{ConfigurationInsightField as i}from"../configuration-insight-field.js";let t=e.union([e.enum(["revisionCount","timeToFinalizeHours"]),i.refine(e=>"number"===e.type,"Choose a numeric expression.")]),n=e.string().regex(/^\d{4}-\d{2}-\d{2}$/).refine(e=>{let i=new Date(`${e}T00:00:00Z`);return Number.isFinite(i.getTime())&&i.toISOString().slice(0,10)===e},"Choose a valid calendar date."),a=e.object({field:i,operator:e.enum(["eq","ne","gt","gte","lt","lte","missing"]),value:e.union([e.string().max(500),e.number().finite(),e.boolean(),e.null()])}).superRefine((e,i)=>{if("missing"===e.operator)return;let t="category"===e.field.type?"string":e.field.type;(typeof e.value!==t||["gt","gte","lt","lte"].includes(e.operator)&&"number"!==t)&&i.addIssue({code:"custom",message:"Choose a filter value and operator compatible with the field type."})});export const ConfigurationChartDefinition=e.object({measure:e.discriminatedUnion("kind",[e.object({kind:e.literal("count")}),e.object({kind:e.literal("numeric"),source:t,aggregate:e.enum(["sum","average","median","min","max"])})]),group:e.discriminatedUnion("kind",[e.object({kind:e.literal("none")}),e.object({kind:e.literal("time"),interval:e.enum(["day","week","month"])}),e.object({kind:e.literal("entityType")}),e.object({kind:e.literal("field"),field:i.refine(e=>"number"!==e.type,"Use numeric ranges for a number.")}),e.object({kind:e.literal("histogram"),source:t,bins:e.union([e.literal(5),e.literal(10),e.literal(20)])})]),visualization:e.enum(["bar","line","donut","number","table"]),range:e.discriminatedUnion("kind",[e.object({kind:e.literal("all")}),e.object({kind:e.literal("relative"),days:e.union([e.literal(7),e.literal(30),e.literal(90),e.literal(365)])}),e.object({kind:e.literal("custom"),from:n,to:n})]),rootEntityType:e.string().max(200).nullable(),filters:e.array(a).max(5)}).superRefine((e,i)=>{"custom"===e.range.kind&&e.range.from>e.range.to&&i.addIssue({code:"custom",path:["range"],message:"The end date must be on or after the start date."}),"line"===e.visualization&&"time"!==e.group.kind&&i.addIssue({code:"custom",path:["visualization"],message:"Line charts require a time grouping."}),"number"===e.visualization&&"none"!==e.group.kind&&i.addIssue({code:"custom",path:["visualization"],message:"Number cards require no grouping."}),"donut"!==e.visualization||"count"===e.measure.kind&&["field","entityType"].includes(e.group.kind)||i.addIssue({code:"custom",path:["visualization"],message:"Donut charts show counts grouped by category or finalization."})});
@@ -0,0 +1 @@
1
+ export { ConfigurationChartDefinition } from './configuration-chart-definition.js';
@@ -0,0 +1 @@
1
+ export{ConfigurationChartDefinition}from"./configuration-chart-definition.js";
@@ -0,0 +1,54 @@
1
+ import { z } from 'zod';
2
+ /** Opt-in scalar expression published by a configurator for Studio analysis. */
3
+ export declare const ConfigurationInsightField: z.ZodEffects<z.ZodObject<{
4
+ id: z.ZodString;
5
+ label: z.ZodString;
6
+ description: z.ZodString;
7
+ expression: z.ZodString;
8
+ version: z.ZodString;
9
+ type: z.ZodEnum<["number", "category", "boolean"]>;
10
+ unit: z.ZodOptional<z.ZodString>;
11
+ currency: z.ZodOptional<z.ZodString>;
12
+ taxBasis: z.ZodOptional<z.ZodEnum<["inclusive", "exclusive", "unspecified"]>>;
13
+ }, "strip", z.ZodTypeAny, {
14
+ id: string;
15
+ label: string;
16
+ description: string;
17
+ expression: string;
18
+ version: string;
19
+ type: "boolean" | "category" | "number";
20
+ unit?: string | undefined;
21
+ currency?: string | undefined;
22
+ taxBasis?: "exclusive" | "inclusive" | "unspecified" | undefined;
23
+ }, {
24
+ id: string;
25
+ label: string;
26
+ description: string;
27
+ expression: string;
28
+ version: string;
29
+ type: "boolean" | "category" | "number";
30
+ unit?: string | undefined;
31
+ currency?: string | undefined;
32
+ taxBasis?: "exclusive" | "inclusive" | "unspecified" | undefined;
33
+ }>, {
34
+ id: string;
35
+ label: string;
36
+ description: string;
37
+ expression: string;
38
+ version: string;
39
+ type: "boolean" | "category" | "number";
40
+ unit?: string | undefined;
41
+ currency?: string | undefined;
42
+ taxBasis?: "exclusive" | "inclusive" | "unspecified" | undefined;
43
+ }, {
44
+ id: string;
45
+ label: string;
46
+ description: string;
47
+ expression: string;
48
+ version: string;
49
+ type: "boolean" | "category" | "number";
50
+ unit?: string | undefined;
51
+ currency?: string | undefined;
52
+ taxBasis?: "exclusive" | "inclusive" | "unspecified" | undefined;
53
+ }>;
54
+ export type ConfigurationInsightField = z.infer<typeof ConfigurationInsightField>;
@@ -0,0 +1 @@
1
+ import{z as e}from"zod";export const ConfigurationInsightField=e.object({id:e.string().regex(/^[a-z][a-z0-9_-]{0,63}$/),label:e.string().min(1).max(120),description:e.string().max(500),expression:e.string().regex(/^\$[a-zA-Z][a-zA-Z0-9_]*$/),version:e.string().min(1).max(64),type:e.enum(["number","category","boolean"]),unit:e.string().max(40).optional(),currency:e.string().regex(/^[A-Z]{3}$/).optional(),taxBasis:e.enum(["inclusive","exclusive","unspecified"]).optional()}).superRefine((e,i)=>{e.currency&&("number"!==e.type||!e.taxBasis)&&i.addIssue({code:"custom",message:"Money fields require a numeric type and an explicit tax basis."})});
@@ -0,0 +1,4 @@
1
+ import { z } from 'zod';
2
+ /** Persisted evaluation states; absent historical evaluations are unavailable, never zero. */
3
+ export declare const ConfigurationInsightStatus: z.ZodEnum<["pending", "verified", "unavailable", "failed"]>;
4
+ export type ConfigurationInsightStatus = z.infer<typeof ConfigurationInsightStatus>;
@@ -0,0 +1 @@
1
+ import{z as i}from"zod";export const ConfigurationInsightStatus=i.enum(["pending","verified","unavailable","failed"]);
@@ -0,0 +1,114 @@
1
+ import { z } from 'zod';
2
+ /** One evaluated field, retaining its definition alongside the historical value. */
3
+ export declare const ConfigurationInsightValue: z.ZodEffects<z.ZodObject<{
4
+ field: z.ZodEffects<z.ZodObject<{
5
+ id: z.ZodString;
6
+ label: z.ZodString;
7
+ description: z.ZodString;
8
+ expression: z.ZodString;
9
+ version: z.ZodString;
10
+ type: z.ZodEnum<["number", "category", "boolean"]>;
11
+ unit: z.ZodOptional<z.ZodString>;
12
+ currency: z.ZodOptional<z.ZodString>;
13
+ taxBasis: z.ZodOptional<z.ZodEnum<["inclusive", "exclusive", "unspecified"]>>;
14
+ }, "strip", z.ZodTypeAny, {
15
+ id: string;
16
+ label: string;
17
+ description: string;
18
+ expression: string;
19
+ version: string;
20
+ type: "boolean" | "category" | "number";
21
+ unit?: string | undefined;
22
+ currency?: string | undefined;
23
+ taxBasis?: "exclusive" | "inclusive" | "unspecified" | undefined;
24
+ }, {
25
+ id: string;
26
+ label: string;
27
+ description: string;
28
+ expression: string;
29
+ version: string;
30
+ type: "boolean" | "category" | "number";
31
+ unit?: string | undefined;
32
+ currency?: string | undefined;
33
+ taxBasis?: "exclusive" | "inclusive" | "unspecified" | undefined;
34
+ }>, {
35
+ id: string;
36
+ label: string;
37
+ description: string;
38
+ expression: string;
39
+ version: string;
40
+ type: "boolean" | "category" | "number";
41
+ unit?: string | undefined;
42
+ currency?: string | undefined;
43
+ taxBasis?: "exclusive" | "inclusive" | "unspecified" | undefined;
44
+ }, {
45
+ id: string;
46
+ label: string;
47
+ description: string;
48
+ expression: string;
49
+ version: string;
50
+ type: "boolean" | "category" | "number";
51
+ unit?: string | undefined;
52
+ currency?: string | undefined;
53
+ taxBasis?: "exclusive" | "inclusive" | "unspecified" | undefined;
54
+ }>;
55
+ value: z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString, z.ZodBoolean]>>;
56
+ status: z.ZodEnum<["available", "missing", "failed"]>;
57
+ }, "strip", z.ZodTypeAny, {
58
+ field: {
59
+ id: string;
60
+ label: string;
61
+ description: string;
62
+ expression: string;
63
+ version: string;
64
+ type: "boolean" | "category" | "number";
65
+ unit?: string | undefined;
66
+ currency?: string | undefined;
67
+ taxBasis?: "exclusive" | "inclusive" | "unspecified" | undefined;
68
+ };
69
+ value: string | number | boolean | null;
70
+ status: "available" | "failed" | "missing";
71
+ }, {
72
+ field: {
73
+ id: string;
74
+ label: string;
75
+ description: string;
76
+ expression: string;
77
+ version: string;
78
+ type: "boolean" | "category" | "number";
79
+ unit?: string | undefined;
80
+ currency?: string | undefined;
81
+ taxBasis?: "exclusive" | "inclusive" | "unspecified" | undefined;
82
+ };
83
+ value: string | number | boolean | null;
84
+ status: "available" | "failed" | "missing";
85
+ }>, {
86
+ field: {
87
+ id: string;
88
+ label: string;
89
+ description: string;
90
+ expression: string;
91
+ version: string;
92
+ type: "boolean" | "category" | "number";
93
+ unit?: string | undefined;
94
+ currency?: string | undefined;
95
+ taxBasis?: "exclusive" | "inclusive" | "unspecified" | undefined;
96
+ };
97
+ value: string | number | boolean | null;
98
+ status: "available" | "failed" | "missing";
99
+ }, {
100
+ field: {
101
+ id: string;
102
+ label: string;
103
+ description: string;
104
+ expression: string;
105
+ version: string;
106
+ type: "boolean" | "category" | "number";
107
+ unit?: string | undefined;
108
+ currency?: string | undefined;
109
+ taxBasis?: "exclusive" | "inclusive" | "unspecified" | undefined;
110
+ };
111
+ value: string | number | boolean | null;
112
+ status: "available" | "failed" | "missing";
113
+ }>;
114
+ export type ConfigurationInsightValue = z.infer<typeof ConfigurationInsightValue>;
@@ -0,0 +1 @@
1
+ import{z as e}from"zod";import{ConfigurationInsightField as a}from"./configuration-insight-field.js";export const ConfigurationInsightValue=e.object({field:a,value:e.union([e.number().finite(),e.string().max(500),e.boolean()]).nullable(),status:e.enum(["available","missing","failed"])}).superRefine((e,a)=>{let t="category"===e.field.type?"string":e.field.type;("available"===e.status&&typeof e.value!==t||"available"!==e.status&&null!==e.value)&&a.addIssue({code:"custom",message:"The analytical value does not match its field type and status."})});
@@ -1 +1,5 @@
1
1
  export { ConfigurationId, ConfigurationRootEntityType, RevisionId, type Revision, type NewRevision, type PublishedDataRevision, type ChunkedPublishedDataRevision, type AnyPublishedDataRevision, type Configuration, type NewConfiguration, type Entity, FinalizationUuid, type Finalization, type NewFinalization, FinalizationJobId, PublishedDataRevisionId, PublishedDataRevisionUploadPath, PublishedDataRevisionVersion, PublishedDataChunkId, ChunkScope, ChunkKey, type PublishedDataChunk, type NewShare, type Share, ShareId, } from './configurations-domain.js';
2
+ export { ConfigurationInsightField } from './configuration-insight-field.js';
3
+ export { ConfigurationInsightStatus } from './configuration-insight-status.js';
4
+ export { ConfigurationInsightValue } from './configuration-insight-value.js';
5
+ export { ConfigurationChartDefinition } from './analytics/index.js';
@@ -1 +1 @@
1
- export{ConfigurationId,ConfigurationRootEntityType,RevisionId,FinalizationUuid,FinalizationJobId,PublishedDataRevisionId,PublishedDataRevisionUploadPath,PublishedDataRevisionVersion,PublishedDataChunkId,ChunkScope,ChunkKey,ShareId}from"./configurations-domain.js";
1
+ export{ConfigurationId,ConfigurationRootEntityType,RevisionId,FinalizationUuid,FinalizationJobId,PublishedDataRevisionId,PublishedDataRevisionUploadPath,PublishedDataRevisionVersion,PublishedDataChunkId,ChunkScope,ChunkKey,ShareId}from"./configurations-domain.js";export{ConfigurationInsightField}from"./configuration-insight-field.js";export{ConfigurationInsightStatus}from"./configuration-insight-status.js";export{ConfigurationInsightValue}from"./configuration-insight-value.js";export{ConfigurationChartDefinition}from"./analytics/index.js";
@@ -0,0 +1,7 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * The states in which a workspace still exists but none of its members can use it. Its members are told which one
4
+ * applies, so they do not mistake it for lost membership.
5
+ */
6
+ export declare const DisabledWorkspaceStatusSchema: z.ZodEnum<["suspended", "deletion_pending"]>;
7
+ export type DisabledWorkspaceStatus = z.infer<typeof DisabledWorkspaceStatusSchema>;
@@ -0,0 +1 @@
1
+ import{z as e}from"zod";import{WorkspaceStatus as o}from"./workspace-status.js";export const DisabledWorkspaceStatusSchema=e.enum([o.Suspended,o.DeletionPending]);
@@ -0,0 +1,3 @@
1
+ export { DisabledWorkspaceStatusSchema, type DisabledWorkspaceStatus } from './disabled-workspace-status.js';
2
+ export { workspaceDisabledMessage } from './workspace-disabled-message.js';
3
+ export { WorkspaceStatus, WorkspaceStatusSchema } from './workspace-status.js';
@@ -0,0 +1 @@
1
+ export{DisabledWorkspaceStatusSchema}from"./disabled-workspace-status.js";export{workspaceDisabledMessage}from"./workspace-disabled-message.js";export{WorkspaceStatus,WorkspaceStatusSchema}from"./workspace-status.js";
@@ -0,0 +1,6 @@
1
+ import type { DisabledWorkspaceStatus } from './disabled-workspace-status.js';
2
+ /**
3
+ * What a member of a disabled workspace is told wherever the workspace is refused: by the server to the CLI, the
4
+ * runner and configurator sessions, and by Studio for a link into the workspace.
5
+ */
6
+ export declare const workspaceDisabledMessage: (status: DisabledWorkspaceStatus) => string;
@@ -0,0 +1 @@
1
+ import{WorkspaceStatus as e}from"./workspace-status.js";let s={[e.Suspended]:"This workspace is suspended. Contact support to restore it.",[e.DeletionPending]:"This workspace is scheduled for deletion and can no longer be used."};export const workspaceDisabledMessage=e=>s[e];
@@ -0,0 +1,13 @@
1
+ import { z } from 'zod';
2
+ /** Customer access state; pending deletion retains resources until staff cleanup. */
3
+ export declare const WorkspaceStatus: {
4
+ readonly Active: 'active';
5
+ readonly Suspended: 'suspended';
6
+ readonly DeletionPending: 'deletion_pending';
7
+ };
8
+ export declare const WorkspaceStatusSchema: z.ZodNativeEnum<{
9
+ readonly Active: 'active';
10
+ readonly Suspended: 'suspended';
11
+ readonly DeletionPending: 'deletion_pending';
12
+ }>;
13
+ export type WorkspaceStatus = z.infer<typeof WorkspaceStatusSchema>;
@@ -0,0 +1 @@
1
+ import{z as e}from"zod";export const WorkspaceStatus={Active:"active",Suspended:"suspended",DeletionPending:"deletion_pending"};export const WorkspaceStatusSchema=e.nativeEnum(WorkspaceStatus);
@@ -0,0 +1,41 @@
1
+ import { z } from 'zod';
2
+ import { RevisionId } from '../../domain/index.js';
3
+ /** Internal evaluation request; only stored revision data and pinned publication URLs are supplied. */
4
+ export declare const ConfigurationInsightsPayload: z.ZodObject<{
5
+ revisionId: z.ZodEffects<z.ZodString, RevisionId, string>;
6
+ rootEntityType: z.ZodString;
7
+ modelVersion: z.ZodNumber;
8
+ entities: z.ZodArray<z.ZodObject<{
9
+ id: z.ZodString;
10
+ type: z.ZodString;
11
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
12
+ id: z.ZodString;
13
+ type: z.ZodString;
14
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
15
+ id: z.ZodString;
16
+ type: z.ZodString;
17
+ }, z.ZodTypeAny, "passthrough">>, "many">;
18
+ publishedChunks: z.ZodRecord<z.ZodString, z.ZodString>;
19
+ publishedDataUrl: z.ZodNullable<z.ZodString>;
20
+ }, "strip", z.ZodTypeAny, {
21
+ revisionId: string & import("@salsita-ai/common/utils").Brand<"RevisionId">;
22
+ rootEntityType: string;
23
+ modelVersion: number;
24
+ entities: z.objectOutputType<{
25
+ id: z.ZodString;
26
+ type: z.ZodString;
27
+ }, z.ZodTypeAny, "passthrough">[];
28
+ publishedChunks: Record<string, string>;
29
+ publishedDataUrl: string | null;
30
+ }, {
31
+ revisionId: string;
32
+ rootEntityType: string;
33
+ modelVersion: number;
34
+ entities: z.objectInputType<{
35
+ id: z.ZodString;
36
+ type: z.ZodString;
37
+ }, z.ZodTypeAny, "passthrough">[];
38
+ publishedChunks: Record<string, string>;
39
+ publishedDataUrl: string | null;
40
+ }>;
41
+ export type ConfigurationInsightsPayload = z.infer<typeof ConfigurationInsightsPayload>;
@@ -0,0 +1 @@
1
+ import{z as r}from"zod";import{RevisionId as i}from"../../domain/index.js";export const ConfigurationInsightsPayload=r.object({revisionId:r.string().uuid().transform(i),rootEntityType:r.string(),modelVersion:r.number().int().nonnegative(),entities:r.array(r.object({id:r.string(),type:r.string()}).passthrough()),publishedChunks:r.record(r.string().url()),publishedDataUrl:r.string().url().nullable()});
@@ -0,0 +1,184 @@
1
+ import { z } from 'zod';
2
+ export declare const ConfigurationInsightsResponse: z.ZodEffects<z.ZodObject<{
3
+ status: z.ZodEnum<["verified", "unavailable"]>;
4
+ values: z.ZodArray<z.ZodEffects<z.ZodObject<{
5
+ field: z.ZodEffects<z.ZodObject<{
6
+ id: z.ZodString;
7
+ label: z.ZodString;
8
+ description: z.ZodString;
9
+ expression: z.ZodString;
10
+ version: z.ZodString;
11
+ type: z.ZodEnum<["number", "category", "boolean"]>;
12
+ unit: z.ZodOptional<z.ZodString>;
13
+ currency: z.ZodOptional<z.ZodString>;
14
+ taxBasis: z.ZodOptional<z.ZodEnum<["inclusive", "exclusive", "unspecified"]>>;
15
+ }, "strip", z.ZodTypeAny, {
16
+ id: string;
17
+ label: string;
18
+ description: string;
19
+ expression: string;
20
+ version: string;
21
+ type: "boolean" | "category" | "number";
22
+ unit?: string | undefined;
23
+ currency?: string | undefined;
24
+ taxBasis?: "exclusive" | "inclusive" | "unspecified" | undefined;
25
+ }, {
26
+ id: string;
27
+ label: string;
28
+ description: string;
29
+ expression: string;
30
+ version: string;
31
+ type: "boolean" | "category" | "number";
32
+ unit?: string | undefined;
33
+ currency?: string | undefined;
34
+ taxBasis?: "exclusive" | "inclusive" | "unspecified" | undefined;
35
+ }>, {
36
+ id: string;
37
+ label: string;
38
+ description: string;
39
+ expression: string;
40
+ version: string;
41
+ type: "boolean" | "category" | "number";
42
+ unit?: string | undefined;
43
+ currency?: string | undefined;
44
+ taxBasis?: "exclusive" | "inclusive" | "unspecified" | undefined;
45
+ }, {
46
+ id: string;
47
+ label: string;
48
+ description: string;
49
+ expression: string;
50
+ version: string;
51
+ type: "boolean" | "category" | "number";
52
+ unit?: string | undefined;
53
+ currency?: string | undefined;
54
+ taxBasis?: "exclusive" | "inclusive" | "unspecified" | undefined;
55
+ }>;
56
+ value: z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString, z.ZodBoolean]>>;
57
+ status: z.ZodEnum<["available", "missing", "failed"]>;
58
+ }, "strip", z.ZodTypeAny, {
59
+ field: {
60
+ id: string;
61
+ label: string;
62
+ description: string;
63
+ expression: string;
64
+ version: string;
65
+ type: "boolean" | "category" | "number";
66
+ unit?: string | undefined;
67
+ currency?: string | undefined;
68
+ taxBasis?: "exclusive" | "inclusive" | "unspecified" | undefined;
69
+ };
70
+ value: string | number | boolean | null;
71
+ status: "available" | "failed" | "missing";
72
+ }, {
73
+ field: {
74
+ id: string;
75
+ label: string;
76
+ description: string;
77
+ expression: string;
78
+ version: string;
79
+ type: "boolean" | "category" | "number";
80
+ unit?: string | undefined;
81
+ currency?: string | undefined;
82
+ taxBasis?: "exclusive" | "inclusive" | "unspecified" | undefined;
83
+ };
84
+ value: string | number | boolean | null;
85
+ status: "available" | "failed" | "missing";
86
+ }>, {
87
+ field: {
88
+ id: string;
89
+ label: string;
90
+ description: string;
91
+ expression: string;
92
+ version: string;
93
+ type: "boolean" | "category" | "number";
94
+ unit?: string | undefined;
95
+ currency?: string | undefined;
96
+ taxBasis?: "exclusive" | "inclusive" | "unspecified" | undefined;
97
+ };
98
+ value: string | number | boolean | null;
99
+ status: "available" | "failed" | "missing";
100
+ }, {
101
+ field: {
102
+ id: string;
103
+ label: string;
104
+ description: string;
105
+ expression: string;
106
+ version: string;
107
+ type: "boolean" | "category" | "number";
108
+ unit?: string | undefined;
109
+ currency?: string | undefined;
110
+ taxBasis?: "exclusive" | "inclusive" | "unspecified" | undefined;
111
+ };
112
+ value: string | number | boolean | null;
113
+ status: "available" | "failed" | "missing";
114
+ }>, "many">;
115
+ }, "strip", z.ZodTypeAny, {
116
+ status: "unavailable" | "verified";
117
+ values: {
118
+ field: {
119
+ id: string;
120
+ label: string;
121
+ description: string;
122
+ expression: string;
123
+ version: string;
124
+ type: "boolean" | "category" | "number";
125
+ unit?: string | undefined;
126
+ currency?: string | undefined;
127
+ taxBasis?: "exclusive" | "inclusive" | "unspecified" | undefined;
128
+ };
129
+ value: string | number | boolean | null;
130
+ status: "available" | "failed" | "missing";
131
+ }[];
132
+ }, {
133
+ status: "unavailable" | "verified";
134
+ values: {
135
+ field: {
136
+ id: string;
137
+ label: string;
138
+ description: string;
139
+ expression: string;
140
+ version: string;
141
+ type: "boolean" | "category" | "number";
142
+ unit?: string | undefined;
143
+ currency?: string | undefined;
144
+ taxBasis?: "exclusive" | "inclusive" | "unspecified" | undefined;
145
+ };
146
+ value: string | number | boolean | null;
147
+ status: "available" | "failed" | "missing";
148
+ }[];
149
+ }>, {
150
+ status: "unavailable" | "verified";
151
+ values: {
152
+ field: {
153
+ id: string;
154
+ label: string;
155
+ description: string;
156
+ expression: string;
157
+ version: string;
158
+ type: "boolean" | "category" | "number";
159
+ unit?: string | undefined;
160
+ currency?: string | undefined;
161
+ taxBasis?: "exclusive" | "inclusive" | "unspecified" | undefined;
162
+ };
163
+ value: string | number | boolean | null;
164
+ status: "available" | "failed" | "missing";
165
+ }[];
166
+ }, {
167
+ status: "unavailable" | "verified";
168
+ values: {
169
+ field: {
170
+ id: string;
171
+ label: string;
172
+ description: string;
173
+ expression: string;
174
+ version: string;
175
+ type: "boolean" | "category" | "number";
176
+ unit?: string | undefined;
177
+ currency?: string | undefined;
178
+ taxBasis?: "exclusive" | "inclusive" | "unspecified" | undefined;
179
+ };
180
+ value: string | number | boolean | null;
181
+ status: "available" | "failed" | "missing";
182
+ }[];
183
+ }>;
184
+ export type ConfigurationInsightsResponse = z.infer<typeof ConfigurationInsightsResponse>;
@@ -0,0 +1 @@
1
+ import{z as e}from"zod";import{ConfigurationInsightValue as a}from"../../domain/index.js";export const ConfigurationInsightsResponse=e.object({status:e.enum(["verified","unavailable"]),values:e.array(a).max(50)}).superRefine((e,a)=>{new Set(e.values.map(e=>e.field.id)).size!==e.values.length&&a.addIssue({code:"custom",message:"Analytical field IDs must be unique."}),"unavailable"===e.status&&e.values.length>0&&a.addIssue({code:"custom",message:"Unavailable evaluations cannot contain verified values."})});
@@ -1,3 +1,5 @@
1
1
  export { routeWebhookRequests } from './webhook-routing.js';
2
2
  export { TunneledWebhookRequest, TunneledWebhookResponse, WebhookTunnelPollRequest, WebhookTunnelPollResponse, WebhookTunnelRespondRequest, } from './webhook-tunnel-types.js';
3
- export { AssistantSetupPayload, AssistantSetupResponse, AuthHandlerResponse, AuthUserIdSource, RefreshPayload, CodePayload, AuthPayload, AnonymousPayload, FinalizeWebhookPayload, CallbackPayload, CallbackResponse, FetchBackendDataPayload, FetchBackendDataHandlerResponse, } from './webhook-api-types.js';
3
+ export { AssistantSetupPayload, AssistantSetupResponse, AuthHandlerResponse, AuthUserIdSource, RefreshPayload, CodePayload, AuthPayload, PhoenixAuthPayload, AnonymousPayload, FinalizeWebhookPayload, CallbackPayload, CallbackResponse, FetchBackendDataPayload, FetchBackendDataHandlerResponse, } from './webhook-api-types.js';
4
+ export { ConfigurationInsightsPayload } from './configuration-insights-payload.js';
5
+ export { ConfigurationInsightsResponse } from './configuration-insights-response.js';
@@ -1 +1 @@
1
- export{routeWebhookRequests}from"./webhook-routing.js";export{TunneledWebhookRequest,TunneledWebhookResponse,WebhookTunnelPollRequest,WebhookTunnelPollResponse,WebhookTunnelRespondRequest}from"./webhook-tunnel-types.js";export{AssistantSetupPayload,AssistantSetupResponse,AuthHandlerResponse,AuthUserIdSource,RefreshPayload,CodePayload,AuthPayload,AnonymousPayload,FinalizeWebhookPayload,CallbackPayload,CallbackResponse,FetchBackendDataPayload,FetchBackendDataHandlerResponse}from"./webhook-api-types.js";
1
+ export{routeWebhookRequests}from"./webhook-routing.js";export{TunneledWebhookRequest,TunneledWebhookResponse,WebhookTunnelPollRequest,WebhookTunnelPollResponse,WebhookTunnelRespondRequest}from"./webhook-tunnel-types.js";export{AssistantSetupPayload,AssistantSetupResponse,AuthHandlerResponse,AuthUserIdSource,RefreshPayload,CodePayload,AuthPayload,PhoenixAuthPayload,AnonymousPayload,FinalizeWebhookPayload,CallbackPayload,CallbackResponse,FetchBackendDataPayload,FetchBackendDataHandlerResponse}from"./webhook-api-types.js";export{ConfigurationInsightsPayload}from"./configuration-insights-payload.js";export{ConfigurationInsightsResponse}from"./configuration-insights-response.js";