@salsita-ai/contracts 0.50.0-develop.e5ed4a0b66 → 0.50.0-develop.e68e3df6cd
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/README.md +15 -4
- package/dist/api/cli-access.d.ts +60 -0
- package/dist/api/cli-access.js +1 -0
- package/dist/api/cli-login-approval.d.ts +15 -0
- package/dist/api/cli-login-approval.js +1 -0
- package/dist/api/cli-sign-in.d.ts +23 -0
- package/dist/api/cli-sign-in.js +1 -0
- package/dist/api/index.d.ts +6 -0
- package/dist/api/index.js +1 -1
- package/dist/api/session-token.d.ts +1 -1
- package/dist/api/studio-session.d.ts +104 -0
- package/dist/api/studio-session.js +1 -0
- package/dist/api/workspace-creation-options.d.ts +19 -0
- package/dist/api/workspace-creation-options.js +1 -0
- package/dist/api/workspace-creation.d.ts +19 -0
- package/dist/api/workspace-creation.js +1 -0
- package/dist/assistant/ban-tool.d.ts +17 -0
- package/dist/assistant/ban-tool.js +1 -0
- package/dist/assistant/deployment-assistant.d.ts +131 -6
- package/dist/assistant/deployment-assistant.js +1 -1
- package/dist/assistant/graphql-tools.d.ts +18 -3
- package/dist/assistant/graphql-tools.js +1 -1
- package/dist/assistant/image-reference.d.ts +10 -0
- package/dist/assistant/image-reference.js +1 -0
- package/dist/assistant/index.d.ts +11 -4
- package/dist/assistant/index.js +1 -1
- package/dist/assistant/message-metadata.d.ts +138 -1
- package/dist/assistant/message-metadata.js +1 -1
- package/dist/assistant/speech-text.d.ts +15 -0
- package/dist/assistant/speech-text.js +1 -0
- package/dist/assistant/tool-error.d.ts +30 -0
- package/dist/assistant/tool-error.js +1 -0
- package/dist/assistant/transcript-event.d.ts +25 -0
- package/dist/assistant/transcript-event.js +1 -0
- package/dist/assistant/voice-recording.d.ts +13 -0
- package/dist/assistant/voice-recording.js +1 -0
- package/dist/chat/api.d.ts +0 -41
- package/dist/chat/api.js +1 -1
- package/dist/chat/completions/types.d.ts +0 -3
- package/dist/chat/completions/types.js +1 -1
- package/dist/chat/functions/process.d.ts +1 -2
- package/dist/chat/functions/process.js +1 -1
- package/dist/chat/index.d.ts +3 -6
- package/dist/chat/index.js +1 -1
- package/dist/domain/account-status.d.ts +6 -0
- package/dist/domain/account-status.js +1 -0
- package/dist/domain/deployments/activations/environment-activation-kind.d.ts +11 -0
- package/dist/domain/deployments/activations/environment-activation-kind.js +1 -0
- package/dist/domain/deployments/activations/index.d.ts +2 -0
- package/dist/domain/deployments/activations/index.js +1 -0
- package/dist/domain/deployments/activations/production-rollback-state.d.ts +14 -0
- package/dist/domain/deployments/activations/production-rollback-state.js +1 -0
- package/dist/domain/deployments/api-tokens/index.d.ts +1 -0
- package/dist/domain/deployments/api-tokens/index.js +1 -0
- package/dist/domain/deployments/api-tokens/limits.d.ts +16 -0
- package/dist/domain/deployments/api-tokens/limits.js +1 -0
- package/dist/domain/deployments/assistant-limit-domain.d.ts +13 -0
- package/dist/domain/deployments/assistant-limit-domain.js +1 -0
- package/dist/domain/deployments/custom-domains/custom-domain.d.ts +40 -0
- package/dist/domain/deployments/custom-domains/custom-domain.js +1 -0
- package/dist/domain/deployments/custom-domains/index.d.ts +1 -0
- package/dist/domain/deployments/custom-domains/index.js +1 -0
- package/dist/domain/deployments/customer-domain.d.ts +2 -0
- package/dist/domain/deployments/deployment-build-domain.d.ts +18 -0
- package/dist/domain/deployments/deployment-domain.d.ts +4 -0
- package/dist/domain/deployments/environment-domain.d.ts +3 -0
- package/dist/domain/deployments/index.d.ts +9 -1
- package/dist/domain/deployments/index.js +1 -1
- package/dist/domain/deployments/oauth-connection-domain.d.ts +0 -7
- package/dist/domain/deployments/oauth-connection-domain.js +1 -1
- package/dist/domain/deployments/previews/index.d.ts +2 -0
- package/dist/domain/deployments/previews/index.js +1 -0
- package/dist/domain/deployments/previews/preview-limits.d.ts +5 -0
- package/dist/domain/deployments/previews/preview-limits.js +1 -0
- package/dist/domain/deployments/previews/preview-name.d.ts +23 -0
- package/dist/domain/deployments/previews/preview-name.js +1 -0
- package/dist/domain/deployments/project-domain.d.ts +6 -3
- package/dist/domain/deployments/sdk-builder-environment-domain.d.ts +20 -0
- package/dist/domain/deployments/sdk-builder-environment-domain.js +1 -0
- package/dist/domain/deployments/sdk-builder-project-domain.d.ts +22 -0
- package/dist/domain/deployments/sdk-builder-project-domain.js +1 -0
- package/dist/domain/deployments/sdk-builder-setup-domain.d.ts +5 -4
- package/dist/domain/deployments/teardowns/index.d.ts +1 -0
- package/dist/domain/deployments/teardowns/index.js +1 -0
- package/dist/domain/deployments/teardowns/teardown-status.d.ts +23 -0
- package/dist/domain/deployments/teardowns/teardown-status.js +1 -0
- package/dist/domain/index.d.ts +6 -0
- package/dist/domain/index.js +1 -1
- package/dist/domain/password-policy.d.ts +22 -0
- package/dist/domain/password-policy.js +1 -0
- package/dist/domain/product-configurations/analytics/configuration-chart-definition.d.ts +798 -0
- package/dist/domain/product-configurations/analytics/configuration-chart-definition.js +1 -0
- package/dist/domain/product-configurations/analytics/index.d.ts +1 -0
- package/dist/domain/product-configurations/analytics/index.js +1 -0
- package/dist/domain/product-configurations/configuration-insight-field.d.ts +54 -0
- package/dist/domain/product-configurations/configuration-insight-field.js +1 -0
- package/dist/domain/product-configurations/configuration-insight-status.d.ts +4 -0
- package/dist/domain/product-configurations/configuration-insight-status.js +1 -0
- package/dist/domain/product-configurations/configuration-insight-value.d.ts +114 -0
- package/dist/domain/product-configurations/configuration-insight-value.js +1 -0
- package/dist/domain/product-configurations/configurations-domain.d.ts +2 -7
- package/dist/domain/product-configurations/configurations-domain.js +1 -1
- package/dist/domain/product-configurations/index.d.ts +5 -1
- package/dist/domain/product-configurations/index.js +1 -1
- package/dist/domain/workspace-invitation-role.d.ts +7 -0
- package/dist/domain/workspace-invitation-role.js +1 -0
- package/dist/domain/workspace-invitation.d.ts +7 -0
- package/dist/domain/workspace-invitation.js +1 -0
- package/dist/domain/workspace-lifecycle/disabled-workspace-status.d.ts +7 -0
- package/dist/domain/workspace-lifecycle/disabled-workspace-status.js +1 -0
- package/dist/domain/workspace-lifecycle/index.d.ts +3 -0
- package/dist/domain/workspace-lifecycle/index.js +1 -0
- package/dist/domain/workspace-lifecycle/workspace-disabled-message.d.ts +6 -0
- package/dist/domain/workspace-lifecycle/workspace-disabled-message.js +1 -0
- package/dist/domain/workspace-lifecycle/workspace-status.d.ts +13 -0
- package/dist/domain/workspace-lifecycle/workspace-status.js +1 -0
- package/dist/domain/workspace-membership-status.d.ts +6 -0
- package/dist/domain/workspace-membership-status.js +1 -0
- package/dist/webhook/implementation/backend-data-response.d.ts +3 -0
- package/dist/webhook/implementation/backend-data-response.js +1 -0
- package/dist/webhook/implementation/configuration-insights-payload.d.ts +41 -0
- package/dist/webhook/implementation/configuration-insights-payload.js +1 -0
- package/dist/webhook/implementation/configuration-insights-response.d.ts +184 -0
- package/dist/webhook/implementation/configuration-insights-response.js +1 -0
- package/dist/webhook/implementation/index.d.ts +3 -2
- package/dist/webhook/implementation/index.js +1 -1
- package/dist/webhook/implementation/webhook-api-types.d.ts +267 -5
- package/dist/webhook/implementation/webhook-api-types.js +1 -1
- package/dist/webhook/implementation/webhook-routing.d.ts +5 -6
- package/dist/webhook/implementation/webhook-routing.js +1 -1
- package/dist/webhook/implementation/webhook-tunnel-types.d.ts +9 -0
- package/dist/webhook/implementation/webhook-tunnel-types.js +1 -1
- package/package.json +5 -6
- package/dist/assistant/browser-details-tool.d.ts +0 -16
- package/dist/assistant/browser-details-tool.js +0 -1
- package/dist/chat/completions/messages.d.ts +0 -3
- package/dist/chat/completions/messages.js +0 -1
- package/dist/chat/functions/augmentations.d.ts +0 -3
- package/dist/chat/functions/augmentations.js +0 -1
- package/dist/chat/functions/create.d.ts +0 -5
- package/dist/chat/functions/create.js +0 -1
- package/dist/webhook/implementation/webhook-client.d.ts +0 -85
- package/dist/webhook/implementation/webhook-client.js +0 -1
|
@@ -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."})});
|
|
@@ -50,13 +50,8 @@ export interface Revision {
|
|
|
50
50
|
configurationId: ConfigurationId;
|
|
51
51
|
configurationSchemaId: ConfigurationSchemaId;
|
|
52
52
|
}
|
|
53
|
-
export declare const PublishedDataRevisionKind: {
|
|
54
|
-
readonly Regular: 'regular';
|
|
55
|
-
readonly Chunked: 'chunked';
|
|
56
|
-
};
|
|
57
|
-
export type PublishedDataRevisionKind = (typeof PublishedDataRevisionKind)[keyof typeof PublishedDataRevisionKind];
|
|
58
53
|
export interface PublishedDataRevision {
|
|
59
|
-
readonly kind:
|
|
54
|
+
readonly kind: 'regular';
|
|
60
55
|
readonly id: PublishedDataRevisionId;
|
|
61
56
|
readonly finalizationUuid: FinalizationUuid;
|
|
62
57
|
readonly uploadPath: PublishedDataRevisionUploadPath;
|
|
@@ -64,7 +59,7 @@ export interface PublishedDataRevision {
|
|
|
64
59
|
readonly data: unknown;
|
|
65
60
|
}
|
|
66
61
|
export interface ChunkedPublishedDataRevision {
|
|
67
|
-
readonly kind:
|
|
62
|
+
readonly kind: 'chunked';
|
|
68
63
|
readonly id: PublishedDataRevisionId;
|
|
69
64
|
readonly finalizationUuid: FinalizationUuid;
|
|
70
65
|
readonly publishedDataHash: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{validate as t}from"uuid";import{Branded as i}from"@salsita-ai/common/utils";export const ConfigurationId=r=>{if(!t(r))throw Error(`Invalid configuration id: ${r}. It must be a valid UUID.`);return i(r)};export const ConfigurationRootEntityType=t=>i(t);export const RevisionId=r=>{if(!t(r))throw Error(`Invalid revision id: ${r}. It must be a valid UUID.`);return i(r)};export const FinalizationUuid=r=>{if(!t(r))throw Error(`Invalid finalization id: ${r}. It must be a valid UUID.`);return i(r)};export const PublishedDataRevisionId=r=>{if(!t(r))throw Error(`Invalid published data revision id: ${r}. It must be a valid UUID.`);return i(r)};export const PublishedDataRevisionUploadPath=t=>i(t);export const PublishedDataRevisionVersion=t=>i(t);export const PublishedDataChunkId=r=>{if(!t(r))throw Error(`Invalid published data chunk id: ${r}. It must be a valid UUID.`);return i(r)};export const ChunkScope=t=>i(t);let r=/^[a-z][a-z0-9]*(-[a-z0-9]+)*$/;export const ChunkKey=t=>{if(!r.test(t))throw Error(`Invalid chunk key '${t}'. Must be lowercase, start with a letter, and contain only letters, numbers, and hyphens.`);return i(t)};export const FinalizationJobId=t=>i(t);export const ShareId=r=>{if(!t(r))throw Error(`Invalid share id: ${r}. It must be a valid UUID.`);return i(r)};
|
|
1
|
+
import{validate as t}from"uuid";import{Branded as i}from"@salsita-ai/common/utils";export const ConfigurationId=r=>{if(!t(r))throw Error(`Invalid configuration id: ${r}. It must be a valid UUID.`);return i(r)};export const ConfigurationRootEntityType=t=>i(t);export const RevisionId=r=>{if(!t(r))throw Error(`Invalid revision id: ${r}. It must be a valid UUID.`);return i(r)};export const FinalizationUuid=r=>{if(!t(r))throw Error(`Invalid finalization id: ${r}. It must be a valid UUID.`);return i(r)};export const PublishedDataRevisionId=r=>{if(!t(r))throw Error(`Invalid published data revision id: ${r}. It must be a valid UUID.`);return i(r)};export const PublishedDataRevisionUploadPath=t=>i(t);export const PublishedDataRevisionVersion=t=>i(t);export const PublishedDataChunkId=r=>{if(!t(r))throw Error(`Invalid published data chunk id: ${r}. It must be a valid UUID.`);return i(r)};export const ChunkScope=t=>i(t);let r=/^[a-z][a-z0-9]*(-[a-z0-9]+)*$/;export const ChunkKey=t=>{if(!r.test(t))throw Error(`Invalid chunk key '${t}'. Must be lowercase, start with a letter, and contain only letters, numbers, and hyphens.`);return i(t)};export const FinalizationJobId=t=>i(t);export const ShareId=r=>{if(!t(r))throw Error(`Invalid share id: ${r}. It must be a valid UUID.`);return i(r)};
|
|
@@ -1 +1,5 @@
|
|
|
1
|
-
export { ConfigurationId, ConfigurationRootEntityType, RevisionId, type Revision, type NewRevision,
|
|
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,
|
|
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
|
+
/** Workspace access granted on acceptance; first-owner invitations always grant SuperAdmin. */
|
|
2
|
+
export declare const WorkspaceInvitationRole: {
|
|
3
|
+
readonly User: 'user';
|
|
4
|
+
readonly Admin: 'admin';
|
|
5
|
+
readonly SuperAdmin: 'superadmin';
|
|
6
|
+
};
|
|
7
|
+
export type WorkspaceInvitationRole = (typeof WorkspaceInvitationRole)[keyof typeof WorkspaceInvitationRole];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const WorkspaceInvitationRole={User:"user",Admin:"admin",SuperAdmin:"superadmin"};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/** Lifecycle of an email invitation, with expiry derived from its current deadline. */
|
|
2
|
+
export declare const WorkspaceInvitationStatus: {
|
|
3
|
+
readonly Pending: 'pending';
|
|
4
|
+
readonly Expired: 'expired';
|
|
5
|
+
readonly Accepted: 'accepted';
|
|
6
|
+
readonly Revoked: 'revoked';
|
|
7
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const WorkspaceInvitationStatus={Pending:"pending",Expired:"expired",Accepted:"accepted",Revoked:"revoked"};
|
|
@@ -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 @@
|
|
|
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,6 @@
|
|
|
1
|
+
/** Workspace-local membership state; suspension retains assignments for explicit reactivation. */
|
|
2
|
+
export declare const WorkspaceMembershipStatus: {
|
|
3
|
+
readonly Active: 'active';
|
|
4
|
+
readonly Suspended: 'suspended';
|
|
5
|
+
};
|
|
6
|
+
export type WorkspaceMembershipStatus = (typeof WorkspaceMembershipStatus)[keyof typeof WorkspaceMembershipStatus];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const WorkspaceMembershipStatus={Active:"active",Suspended:"suspended"};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { APIGatewayProxyStructuredResultV2 } from 'aws-lambda';
|
|
2
|
+
import type { FetchBackendDataHandlerResponse } from './webhook-api-types.js';
|
|
3
|
+
export declare const createBackendDataResponse: (result: FetchBackendDataHandlerResponse, acceptEncoding: string | undefined) => Promise<APIGatewayProxyStructuredResultV2>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const createBackendDataResponse=async(e,t)=>{let n,r,i,s=JSON.stringify(e),o={"content-type":"application/json",vary:"Accept-Encoding"};if(32768>Buffer.byteLength(s,"utf8")||!((i=(r=(n=(t??"").split(",").map(e=>{let[t,...n]=e.trim().toLowerCase().split(";"),r=n.map(e=>e.trim()).find(e=>e.startsWith("q=")),i=void 0===r?"1":r.slice(2).trim();return{encoding:t?.trim(),quality:/^(?:0(?:\.\d{0,3})?|1(?:\.0{0,3})?)$/.test(i)?Number(i):0}})).filter(e=>"gzip"===e.encoding)).length>0?r:n.filter(e=>"*"===e.encoding)).length>0&&i.every(e=>e.quality>0)))return{statusCode:200,headers:o,body:s};let a=await new Response(new Blob([s]).stream().pipeThrough(new CompressionStream("gzip"))).arrayBuffer(),p=Buffer.from(a).toString("base64");return p.length>=Buffer.byteLength(s,"utf8")?{statusCode:200,headers:o,body:s}:{statusCode:200,headers:{...o,"content-encoding":"gzip"},body:p,isBase64Encoded:!0}};
|
|
@@ -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,4 +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 {
|
|
4
|
-
export {
|
|
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{
|
|
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";
|