@intentic/sandbox-contract 1.334.0 → 1.335.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/README.md +8 -3
- package/dist/contracts/accounts.contract.d.ts +11 -11
- package/dist/contracts/activity.contract.d.ts +1 -0
- package/dist/contracts/activity.contract.d.ts.map +1 -1
- package/dist/contracts/activity.contract.js +1 -1
- package/dist/contracts/activity.contract.js.map +1 -1
- package/dist/contracts/agent.contract.d.ts +102 -18
- package/dist/contracts/agent.contract.d.ts.map +1 -1
- package/dist/contracts/agents.contract.d.ts +163 -0
- package/dist/contracts/agents.contract.d.ts.map +1 -1
- package/dist/contracts/agents.contract.js +10 -1
- package/dist/contracts/agents.contract.js.map +1 -1
- package/dist/contracts/audit.contract.d.ts +84 -0
- package/dist/contracts/audit.contract.d.ts.map +1 -0
- package/dist/contracts/audit.contract.js +43 -0
- package/dist/contracts/audit.contract.js.map +1 -0
- package/dist/contracts/automations.contract.d.ts +15 -0
- package/dist/contracts/automations.contract.d.ts.map +1 -1
- package/dist/contracts/ci.contract.d.ts +10 -0
- package/dist/contracts/ci.contract.d.ts.map +1 -1
- package/dist/contracts/compliance.contract.d.ts +163 -0
- package/dist/contracts/compliance.contract.d.ts.map +1 -0
- package/dist/contracts/compliance.contract.js +41 -0
- package/dist/contracts/compliance.contract.js.map +1 -0
- package/dist/contracts/device.contract.d.ts +6 -0
- package/dist/contracts/device.contract.d.ts.map +1 -1
- package/dist/contracts/extensions.contract.d.ts +2 -0
- package/dist/contracts/extensions.contract.d.ts.map +1 -1
- package/dist/contracts/loops.contract.d.ts +15 -0
- package/dist/contracts/loops.contract.d.ts.map +1 -1
- package/dist/contracts/needs.contract.d.ts +49 -0
- package/dist/contracts/needs.contract.d.ts.map +1 -1
- package/dist/contracts/offload.contract.d.ts +5 -0
- package/dist/contracts/offload.contract.d.ts.map +1 -1
- package/dist/contracts/personas.contract.d.ts +10 -0
- package/dist/contracts/personas.contract.d.ts.map +1 -1
- package/dist/contracts/providers.contract.d.ts +2 -0
- package/dist/contracts/providers.contract.d.ts.map +1 -1
- package/dist/contracts/providers.contract.js +4 -0
- package/dist/contracts/providers.contract.js.map +1 -1
- package/dist/contracts/runner.contract.d.ts +42 -10
- package/dist/contracts/runner.contract.d.ts.map +1 -1
- package/dist/contracts/sessions.contract.d.ts +17 -0
- package/dist/contracts/sessions.contract.d.ts.map +1 -1
- package/dist/contracts/settings.contract.d.ts +84 -0
- package/dist/contracts/settings.contract.d.ts.map +1 -1
- package/dist/contracts/settings.contract.js +7 -0
- package/dist/contracts/settings.contract.js.map +1 -1
- package/dist/contracts/system.contract.d.ts +16 -2
- package/dist/contracts/system.contract.d.ts.map +1 -1
- package/dist/contracts/workflows.contract.d.ts +30 -0
- package/dist/contracts/workflows.contract.d.ts.map +1 -1
- package/dist/contracts/workspace.contract.d.ts +3 -0
- package/dist/contracts/workspace.contract.d.ts.map +1 -1
- package/dist/events/agent-events.d.ts +74 -0
- package/dist/events/agent-events.d.ts.map +1 -1
- package/dist/events/agent-events.js +1 -0
- package/dist/events/agent-events.js.map +1 -1
- package/dist/events/requests.d.ts +45 -0
- package/dist/events/requests.d.ts.map +1 -1
- package/dist/events/system-events.d.ts +12 -0
- package/dist/events/system-events.d.ts.map +1 -1
- package/dist/events/transcript.d.ts +117 -0
- package/dist/events/transcript.d.ts.map +1 -1
- package/dist/index.d.ts +828 -73
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +11 -0
- package/dist/index.js.map +1 -1
- package/dist/models/agent-catalog.d.ts +18 -3
- package/dist/models/agent-catalog.d.ts.map +1 -1
- package/dist/models/agent-catalog.js +61 -12
- package/dist/models/agent-catalog.js.map +1 -1
- package/dist/models/agent-runtimes.d.ts +5 -2
- package/dist/models/agent-runtimes.d.ts.map +1 -1
- package/dist/models/agent-runtimes.js +73 -40
- package/dist/models/agent-runtimes.js.map +1 -1
- package/dist/models/model-setups.d.ts +5 -0
- package/dist/models/model-setups.d.ts.map +1 -1
- package/dist/models/provider-specs.d.ts +153 -32
- package/dist/models/provider-specs.d.ts.map +1 -1
- package/dist/models/provider-specs.js +97 -11
- package/dist/models/provider-specs.js.map +1 -1
- package/dist/policy/reserved-servers.d.ts.map +1 -1
- package/dist/policy/reserved-servers.js +1 -0
- package/dist/policy/reserved-servers.js.map +1 -1
- package/dist/policy/sandbox-power.d.ts +7 -2
- package/dist/policy/sandbox-power.d.ts.map +1 -1
- package/dist/policy/sandbox-power.js +34 -1
- package/dist/policy/sandbox-power.js.map +1 -1
- package/dist/policy/turned-away.d.ts.map +1 -1
- package/dist/policy/turned-away.js +1 -0
- package/dist/policy/turned-away.js.map +1 -1
- package/dist/protocol/doors/listener-protocol.d.ts +43 -1
- package/dist/protocol/doors/listener-protocol.d.ts.map +1 -1
- package/dist/protocol/doors/listener-protocol.js +10 -0
- package/dist/protocol/doors/listener-protocol.js.map +1 -1
- package/dist/protocol/raw/raw-json-routes.d.ts +92 -0
- package/dist/protocol/raw/raw-json-routes.d.ts.map +1 -1
- package/dist/protocol/raw/raw-json-routes.js +2 -1
- package/dist/protocol/raw/raw-json-routes.js.map +1 -1
- package/dist/protocol/raw/raw-routes.d.ts +13 -0
- package/dist/protocol/raw/raw-routes.d.ts.map +1 -1
- package/dist/protocol/raw/raw-routes.js +3 -0
- package/dist/protocol/raw/raw-routes.js.map +1 -1
- package/dist/schemas/activity.d.ts +2 -0
- package/dist/schemas/activity.d.ts.map +1 -1
- package/dist/schemas/agent.d.ts +34 -0
- package/dist/schemas/agent.d.ts.map +1 -1
- package/dist/schemas/agent.js +7 -6
- package/dist/schemas/agent.js.map +1 -1
- package/dist/schemas/agents-list.d.ts +7 -0
- package/dist/schemas/agents-list.d.ts.map +1 -1
- package/dist/schemas/agents.d.ts +18 -0
- package/dist/schemas/agents.d.ts.map +1 -1
- package/dist/schemas/ai-literacy.d.ts +54 -0
- package/dist/schemas/ai-literacy.d.ts.map +1 -0
- package/dist/schemas/ai-literacy.js +15 -0
- package/dist/schemas/ai-literacy.js.map +1 -0
- package/dist/schemas/audit.d.ts +166 -0
- package/dist/schemas/audit.d.ts.map +1 -0
- package/dist/schemas/audit.js +100 -0
- package/dist/schemas/audit.js.map +1 -0
- package/dist/schemas/automations.d.ts +27 -0
- package/dist/schemas/automations.d.ts.map +1 -1
- package/dist/schemas/automations.js +11 -0
- package/dist/schemas/automations.js.map +1 -1
- package/dist/schemas/ci.d.ts +10 -0
- package/dist/schemas/ci.d.ts.map +1 -1
- package/dist/schemas/compliance.d.ts +423 -0
- package/dist/schemas/compliance.d.ts.map +1 -0
- package/dist/schemas/compliance.js +135 -0
- package/dist/schemas/compliance.js.map +1 -0
- package/dist/schemas/data-protection.d.ts +28 -0
- package/dist/schemas/data-protection.d.ts.map +1 -0
- package/dist/schemas/data-protection.js +49 -0
- package/dist/schemas/data-protection.js.map +1 -0
- package/dist/schemas/devices.d.ts +12 -0
- package/dist/schemas/devices.d.ts.map +1 -1
- package/dist/schemas/engines.d.ts +22 -1
- package/dist/schemas/engines.d.ts.map +1 -1
- package/dist/schemas/engines.js +1 -1
- package/dist/schemas/engines.js.map +1 -1
- package/dist/schemas/extension-updates.d.ts +4 -0
- package/dist/schemas/extension-updates.d.ts.map +1 -1
- package/dist/schemas/git/git.d.ts +33 -0
- package/dist/schemas/git/git.d.ts.map +1 -1
- package/dist/schemas/git/git.js +29 -0
- package/dist/schemas/git/git.js.map +1 -1
- package/dist/schemas/hosts.d.ts +36 -0
- package/dist/schemas/hosts.d.ts.map +1 -1
- package/dist/schemas/hosts.js +2 -0
- package/dist/schemas/hosts.js.map +1 -1
- package/dist/schemas/intentic-os.d.ts +117 -0
- package/dist/schemas/intentic-os.d.ts.map +1 -0
- package/dist/schemas/intentic-os.js +66 -0
- package/dist/schemas/intentic-os.js.map +1 -0
- package/dist/schemas/loops.d.ts +15 -0
- package/dist/schemas/loops.d.ts.map +1 -1
- package/dist/schemas/members.d.ts +90 -0
- package/dist/schemas/members.d.ts.map +1 -1
- package/dist/schemas/members.js +73 -3
- package/dist/schemas/members.js.map +1 -1
- package/dist/schemas/needs.d.ts +56 -0
- package/dist/schemas/needs.d.ts.map +1 -1
- package/dist/schemas/offload.d.ts +5 -0
- package/dist/schemas/offload.d.ts.map +1 -1
- package/dist/schemas/personas.d.ts +10 -0
- package/dist/schemas/personas.d.ts.map +1 -1
- package/dist/schemas/providers/plan-limits.d.ts +20 -0
- package/dist/schemas/providers/plan-limits.d.ts.map +1 -1
- package/dist/schemas/providers/provider-oauth.js +1 -1
- package/dist/schemas/providers/provider-oauth.js.map +1 -1
- package/dist/schemas/providers/usage.d.ts +1 -0
- package/dist/schemas/providers/usage.d.ts.map +1 -1
- package/dist/schemas/providers/usage.js +4 -0
- package/dist/schemas/providers/usage.js.map +1 -1
- package/dist/schemas/settings.d.ts +48 -0
- package/dist/schemas/settings.d.ts.map +1 -1
- package/dist/schemas/settings.js +14 -0
- package/dist/schemas/settings.js.map +1 -1
- package/dist/schemas/system.d.ts +8 -0
- package/dist/schemas/system.d.ts.map +1 -1
- package/dist/schemas/system.js +2 -0
- package/dist/schemas/system.js.map +1 -1
- package/dist/schemas/workflows.d.ts +50 -0
- package/dist/schemas/workflows.d.ts.map +1 -1
- package/dist/schemas/workspace/workspace-tree.d.ts +4 -0
- package/dist/schemas/workspace/workspace-tree.d.ts.map +1 -1
- package/dist/schemas/workspace/workspace-tree.js +16 -1
- package/dist/schemas/workspace/workspace-tree.js.map +1 -1
- package/dist/state/definition.d.ts +80 -4
- package/dist/state/definition.d.ts.map +1 -1
- package/dist/state/history-state.d.ts.map +1 -1
- package/dist/state/history-state.js +2 -0
- package/dist/state/history-state.js.map +1 -1
- package/package.json +5 -5
- package/src/contracts/activity.contract.ts +1 -1
- package/src/contracts/agents.contract.ts +13 -1
- package/src/contracts/audit.contract.ts +48 -0
- package/src/contracts/compliance.contract.ts +57 -0
- package/src/contracts/providers.contract.ts +9 -0
- package/src/contracts/settings.contract.ts +7 -0
- package/src/events/agent-events.ts +4 -0
- package/src/index.ts +11 -0
- package/src/models/agent-catalog.test.ts +317 -53
- package/src/models/agent-catalog.ts +115 -22
- package/src/models/agent-runtimes.ts +273 -75
- package/src/models/capability-ledger.test.ts +12 -1
- package/src/models/provider-specs.test.ts +42 -7
- package/src/models/provider-specs.ts +160 -20
- package/src/policy/reserved-servers.ts +2 -1
- package/src/policy/sandbox-power.ts +67 -8
- package/src/policy/tests/sandbox-power.test.ts +59 -1
- package/src/policy/turned-away.ts +2 -0
- package/src/protocol/doors/listener-protocol.ts +74 -6
- package/src/protocol/raw/raw-json-routes.ts +2 -1
- package/src/protocol/raw/raw-routes.ts +7 -0
- package/src/schemas/activity.ts +2 -2
- package/src/schemas/agent.ts +22 -9
- package/src/schemas/ai-literacy.ts +17 -0
- package/src/schemas/audit.ts +131 -0
- package/src/schemas/automations.ts +13 -0
- package/src/schemas/compliance.ts +195 -0
- package/src/schemas/daemon-health.test.ts +2 -0
- package/src/schemas/data-protection.ts +99 -0
- package/src/schemas/engines.ts +1 -1
- package/src/schemas/git/git.ts +46 -0
- package/src/schemas/hosts.ts +5 -0
- package/src/schemas/intentic-os.test.ts +86 -0
- package/src/schemas/intentic-os.ts +130 -0
- package/src/schemas/members.test.ts +47 -0
- package/src/schemas/members.ts +141 -6
- package/src/schemas/providers/provider-oauth.ts +1 -1
- package/src/schemas/providers/usage.ts +6 -0
- package/src/schemas/settings.ts +32 -0
- package/src/schemas/system.ts +2 -0
- package/src/schemas/workspace/workspace-tree.ts +26 -1
- package/src/state/history-state.ts +7 -0
|
@@ -0,0 +1,423 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const ComplianceLanguageSchema: z.ZodEnum<{
|
|
3
|
+
en: "en";
|
|
4
|
+
pl: "pl";
|
|
5
|
+
}>;
|
|
6
|
+
export type ComplianceLanguage = z.infer<typeof ComplianceLanguageSchema>;
|
|
7
|
+
export declare const DATA_FLOW_GROUPS: readonly ["models", "messaging", "connectors", "speech", "web", "platform", "maintenance", "analytics"];
|
|
8
|
+
export declare const DataFlowGroupSchema: z.ZodEnum<{
|
|
9
|
+
analytics: "analytics";
|
|
10
|
+
connectors: "connectors";
|
|
11
|
+
maintenance: "maintenance";
|
|
12
|
+
messaging: "messaging";
|
|
13
|
+
models: "models";
|
|
14
|
+
platform: "platform";
|
|
15
|
+
speech: "speech";
|
|
16
|
+
web: "web";
|
|
17
|
+
}>;
|
|
18
|
+
export type DataFlowGroup = z.infer<typeof DataFlowGroupSchema>;
|
|
19
|
+
export declare const DATA_FLOW_KINDS: readonly ["model-provider", "model-endpoint", "local-model", "email-imap", "email-smtp", "team-chat", "webchat", "connector", "speech", "web-search", "web-fetch", "browser", "platform-link", "ingress", "update-check", "model-download", "product-analytics", "push-notifications"];
|
|
20
|
+
export declare const DataFlowKindSchema: z.ZodEnum<{
|
|
21
|
+
browser: "browser";
|
|
22
|
+
connector: "connector";
|
|
23
|
+
"email-imap": "email-imap";
|
|
24
|
+
"email-smtp": "email-smtp";
|
|
25
|
+
ingress: "ingress";
|
|
26
|
+
"local-model": "local-model";
|
|
27
|
+
"model-download": "model-download";
|
|
28
|
+
"model-endpoint": "model-endpoint";
|
|
29
|
+
"model-provider": "model-provider";
|
|
30
|
+
"platform-link": "platform-link";
|
|
31
|
+
"product-analytics": "product-analytics";
|
|
32
|
+
"push-notifications": "push-notifications";
|
|
33
|
+
speech: "speech";
|
|
34
|
+
"team-chat": "team-chat";
|
|
35
|
+
"update-check": "update-check";
|
|
36
|
+
"web-fetch": "web-fetch";
|
|
37
|
+
"web-search": "web-search";
|
|
38
|
+
webchat: "webchat";
|
|
39
|
+
}>;
|
|
40
|
+
export type DataFlowKind = z.infer<typeof DataFlowKindSchema>;
|
|
41
|
+
export declare const PersonalDataReachSchema: z.ZodEnum<{
|
|
42
|
+
no: "no";
|
|
43
|
+
possible: "possible";
|
|
44
|
+
yes: "yes";
|
|
45
|
+
}>;
|
|
46
|
+
export type PersonalDataReach = z.infer<typeof PersonalDataReachSchema>;
|
|
47
|
+
export declare const ShieldCoverSchema: z.ZodEnum<{
|
|
48
|
+
blocked: "blocked";
|
|
49
|
+
local: "local";
|
|
50
|
+
masked: "masked";
|
|
51
|
+
none: "none";
|
|
52
|
+
trusted: "trusted";
|
|
53
|
+
watched: "watched";
|
|
54
|
+
}>;
|
|
55
|
+
export type ShieldCover = z.infer<typeof ShieldCoverSchema>;
|
|
56
|
+
export declare const DataFlowSchema: z.ZodObject<{
|
|
57
|
+
id: z.ZodString;
|
|
58
|
+
group: z.ZodEnum<{
|
|
59
|
+
analytics: "analytics";
|
|
60
|
+
connectors: "connectors";
|
|
61
|
+
maintenance: "maintenance";
|
|
62
|
+
messaging: "messaging";
|
|
63
|
+
models: "models";
|
|
64
|
+
platform: "platform";
|
|
65
|
+
speech: "speech";
|
|
66
|
+
web: "web";
|
|
67
|
+
}>;
|
|
68
|
+
kind: z.ZodEnum<{
|
|
69
|
+
browser: "browser";
|
|
70
|
+
connector: "connector";
|
|
71
|
+
"email-imap": "email-imap";
|
|
72
|
+
"email-smtp": "email-smtp";
|
|
73
|
+
ingress: "ingress";
|
|
74
|
+
"local-model": "local-model";
|
|
75
|
+
"model-download": "model-download";
|
|
76
|
+
"model-endpoint": "model-endpoint";
|
|
77
|
+
"model-provider": "model-provider";
|
|
78
|
+
"platform-link": "platform-link";
|
|
79
|
+
"product-analytics": "product-analytics";
|
|
80
|
+
"push-notifications": "push-notifications";
|
|
81
|
+
speech: "speech";
|
|
82
|
+
"team-chat": "team-chat";
|
|
83
|
+
"update-check": "update-check";
|
|
84
|
+
"web-fetch": "web-fetch";
|
|
85
|
+
"web-search": "web-search";
|
|
86
|
+
webchat: "webchat";
|
|
87
|
+
}>;
|
|
88
|
+
name: z.ZodString;
|
|
89
|
+
hosts: z.ZodArray<z.ZodString>;
|
|
90
|
+
operator: z.ZodOptional<z.ZodString>;
|
|
91
|
+
region: z.ZodOptional<z.ZodString>;
|
|
92
|
+
thirdCountry: z.ZodOptional<z.ZodBoolean>;
|
|
93
|
+
active: z.ZodBoolean;
|
|
94
|
+
personalData: z.ZodEnum<{
|
|
95
|
+
no: "no";
|
|
96
|
+
possible: "possible";
|
|
97
|
+
yes: "yes";
|
|
98
|
+
}>;
|
|
99
|
+
shield: z.ZodEnum<{
|
|
100
|
+
blocked: "blocked";
|
|
101
|
+
local: "local";
|
|
102
|
+
masked: "masked";
|
|
103
|
+
none: "none";
|
|
104
|
+
trusted: "trusted";
|
|
105
|
+
watched: "watched";
|
|
106
|
+
}>;
|
|
107
|
+
switch: z.ZodOptional<z.ZodString>;
|
|
108
|
+
question: z.ZodOptional<z.ZodString>;
|
|
109
|
+
}, z.core.$strip>;
|
|
110
|
+
export type DataFlow = z.infer<typeof DataFlowSchema>;
|
|
111
|
+
export declare const MeasureStatusSchema: z.ZodEnum<{
|
|
112
|
+
off: "off";
|
|
113
|
+
on: "on";
|
|
114
|
+
partial: "partial";
|
|
115
|
+
unavailable: "unavailable";
|
|
116
|
+
unknown: "unknown";
|
|
117
|
+
}>;
|
|
118
|
+
export type MeasureStatus = z.infer<typeof MeasureStatusSchema>;
|
|
119
|
+
export declare const MEASURE_IDS: readonly ["privacy-shield", "privacy-images", "privacy-names", "trusted-providers", "local-models", "member-roles", "areas", "guest-jail", "sign-in", "action-rules", "admission", "command-judge", "credential-gates", "host-guards", "retention", "audit", "audit-reads", "audit-forward", "encryption-at-rest", "encryption-in-transit", "agent-domain", "product-analytics", "ai-notice", "webchat-ai-disclosure", "backups"];
|
|
120
|
+
export declare const MeasureIdSchema: z.ZodEnum<{
|
|
121
|
+
"action-rules": "action-rules";
|
|
122
|
+
admission: "admission";
|
|
123
|
+
"agent-domain": "agent-domain";
|
|
124
|
+
"ai-notice": "ai-notice";
|
|
125
|
+
areas: "areas";
|
|
126
|
+
audit: "audit";
|
|
127
|
+
"audit-forward": "audit-forward";
|
|
128
|
+
"audit-reads": "audit-reads";
|
|
129
|
+
backups: "backups";
|
|
130
|
+
"command-judge": "command-judge";
|
|
131
|
+
"credential-gates": "credential-gates";
|
|
132
|
+
"encryption-at-rest": "encryption-at-rest";
|
|
133
|
+
"encryption-in-transit": "encryption-in-transit";
|
|
134
|
+
"guest-jail": "guest-jail";
|
|
135
|
+
"host-guards": "host-guards";
|
|
136
|
+
"local-models": "local-models";
|
|
137
|
+
"member-roles": "member-roles";
|
|
138
|
+
"privacy-images": "privacy-images";
|
|
139
|
+
"privacy-names": "privacy-names";
|
|
140
|
+
"privacy-shield": "privacy-shield";
|
|
141
|
+
"product-analytics": "product-analytics";
|
|
142
|
+
retention: "retention";
|
|
143
|
+
"sign-in": "sign-in";
|
|
144
|
+
"trusted-providers": "trusted-providers";
|
|
145
|
+
"webchat-ai-disclosure": "webchat-ai-disclosure";
|
|
146
|
+
}>;
|
|
147
|
+
export type MeasureId = z.infer<typeof MeasureIdSchema>;
|
|
148
|
+
export declare const MeasureCategorySchema: z.ZodEnum<{
|
|
149
|
+
accountability: "accountability";
|
|
150
|
+
availability: "availability";
|
|
151
|
+
confidentiality: "confidentiality";
|
|
152
|
+
integrity: "integrity";
|
|
153
|
+
minimisation: "minimisation";
|
|
154
|
+
transparency: "transparency";
|
|
155
|
+
}>;
|
|
156
|
+
export type MeasureCategory = z.infer<typeof MeasureCategorySchema>;
|
|
157
|
+
export declare const MeasureSchema: z.ZodObject<{
|
|
158
|
+
id: z.ZodEnum<{
|
|
159
|
+
"action-rules": "action-rules";
|
|
160
|
+
admission: "admission";
|
|
161
|
+
"agent-domain": "agent-domain";
|
|
162
|
+
"ai-notice": "ai-notice";
|
|
163
|
+
areas: "areas";
|
|
164
|
+
audit: "audit";
|
|
165
|
+
"audit-forward": "audit-forward";
|
|
166
|
+
"audit-reads": "audit-reads";
|
|
167
|
+
backups: "backups";
|
|
168
|
+
"command-judge": "command-judge";
|
|
169
|
+
"credential-gates": "credential-gates";
|
|
170
|
+
"encryption-at-rest": "encryption-at-rest";
|
|
171
|
+
"encryption-in-transit": "encryption-in-transit";
|
|
172
|
+
"guest-jail": "guest-jail";
|
|
173
|
+
"host-guards": "host-guards";
|
|
174
|
+
"local-models": "local-models";
|
|
175
|
+
"member-roles": "member-roles";
|
|
176
|
+
"privacy-images": "privacy-images";
|
|
177
|
+
"privacy-names": "privacy-names";
|
|
178
|
+
"privacy-shield": "privacy-shield";
|
|
179
|
+
"product-analytics": "product-analytics";
|
|
180
|
+
retention: "retention";
|
|
181
|
+
"sign-in": "sign-in";
|
|
182
|
+
"trusted-providers": "trusted-providers";
|
|
183
|
+
"webchat-ai-disclosure": "webchat-ai-disclosure";
|
|
184
|
+
}>;
|
|
185
|
+
category: z.ZodEnum<{
|
|
186
|
+
accountability: "accountability";
|
|
187
|
+
availability: "availability";
|
|
188
|
+
confidentiality: "confidentiality";
|
|
189
|
+
integrity: "integrity";
|
|
190
|
+
minimisation: "minimisation";
|
|
191
|
+
transparency: "transparency";
|
|
192
|
+
}>;
|
|
193
|
+
status: z.ZodEnum<{
|
|
194
|
+
off: "off";
|
|
195
|
+
on: "on";
|
|
196
|
+
partial: "partial";
|
|
197
|
+
unavailable: "unavailable";
|
|
198
|
+
unknown: "unknown";
|
|
199
|
+
}>;
|
|
200
|
+
facts: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
201
|
+
preset: z.ZodBoolean;
|
|
202
|
+
}, z.core.$strip>;
|
|
203
|
+
export type Measure = z.infer<typeof MeasureSchema>;
|
|
204
|
+
export declare const ComplianceReportSchema: z.ZodObject<{
|
|
205
|
+
generatedAt: z.ZodString;
|
|
206
|
+
flows: z.ZodArray<z.ZodObject<{
|
|
207
|
+
id: z.ZodString;
|
|
208
|
+
group: z.ZodEnum<{
|
|
209
|
+
analytics: "analytics";
|
|
210
|
+
connectors: "connectors";
|
|
211
|
+
maintenance: "maintenance";
|
|
212
|
+
messaging: "messaging";
|
|
213
|
+
models: "models";
|
|
214
|
+
platform: "platform";
|
|
215
|
+
speech: "speech";
|
|
216
|
+
web: "web";
|
|
217
|
+
}>;
|
|
218
|
+
kind: z.ZodEnum<{
|
|
219
|
+
browser: "browser";
|
|
220
|
+
connector: "connector";
|
|
221
|
+
"email-imap": "email-imap";
|
|
222
|
+
"email-smtp": "email-smtp";
|
|
223
|
+
ingress: "ingress";
|
|
224
|
+
"local-model": "local-model";
|
|
225
|
+
"model-download": "model-download";
|
|
226
|
+
"model-endpoint": "model-endpoint";
|
|
227
|
+
"model-provider": "model-provider";
|
|
228
|
+
"platform-link": "platform-link";
|
|
229
|
+
"product-analytics": "product-analytics";
|
|
230
|
+
"push-notifications": "push-notifications";
|
|
231
|
+
speech: "speech";
|
|
232
|
+
"team-chat": "team-chat";
|
|
233
|
+
"update-check": "update-check";
|
|
234
|
+
"web-fetch": "web-fetch";
|
|
235
|
+
"web-search": "web-search";
|
|
236
|
+
webchat: "webchat";
|
|
237
|
+
}>;
|
|
238
|
+
name: z.ZodString;
|
|
239
|
+
hosts: z.ZodArray<z.ZodString>;
|
|
240
|
+
operator: z.ZodOptional<z.ZodString>;
|
|
241
|
+
region: z.ZodOptional<z.ZodString>;
|
|
242
|
+
thirdCountry: z.ZodOptional<z.ZodBoolean>;
|
|
243
|
+
active: z.ZodBoolean;
|
|
244
|
+
personalData: z.ZodEnum<{
|
|
245
|
+
no: "no";
|
|
246
|
+
possible: "possible";
|
|
247
|
+
yes: "yes";
|
|
248
|
+
}>;
|
|
249
|
+
shield: z.ZodEnum<{
|
|
250
|
+
blocked: "blocked";
|
|
251
|
+
local: "local";
|
|
252
|
+
masked: "masked";
|
|
253
|
+
none: "none";
|
|
254
|
+
trusted: "trusted";
|
|
255
|
+
watched: "watched";
|
|
256
|
+
}>;
|
|
257
|
+
switch: z.ZodOptional<z.ZodString>;
|
|
258
|
+
question: z.ZodOptional<z.ZodString>;
|
|
259
|
+
}, z.core.$strip>>;
|
|
260
|
+
measures: z.ZodArray<z.ZodObject<{
|
|
261
|
+
id: z.ZodEnum<{
|
|
262
|
+
"action-rules": "action-rules";
|
|
263
|
+
admission: "admission";
|
|
264
|
+
"agent-domain": "agent-domain";
|
|
265
|
+
"ai-notice": "ai-notice";
|
|
266
|
+
areas: "areas";
|
|
267
|
+
audit: "audit";
|
|
268
|
+
"audit-forward": "audit-forward";
|
|
269
|
+
"audit-reads": "audit-reads";
|
|
270
|
+
backups: "backups";
|
|
271
|
+
"command-judge": "command-judge";
|
|
272
|
+
"credential-gates": "credential-gates";
|
|
273
|
+
"encryption-at-rest": "encryption-at-rest";
|
|
274
|
+
"encryption-in-transit": "encryption-in-transit";
|
|
275
|
+
"guest-jail": "guest-jail";
|
|
276
|
+
"host-guards": "host-guards";
|
|
277
|
+
"local-models": "local-models";
|
|
278
|
+
"member-roles": "member-roles";
|
|
279
|
+
"privacy-images": "privacy-images";
|
|
280
|
+
"privacy-names": "privacy-names";
|
|
281
|
+
"privacy-shield": "privacy-shield";
|
|
282
|
+
"product-analytics": "product-analytics";
|
|
283
|
+
retention: "retention";
|
|
284
|
+
"sign-in": "sign-in";
|
|
285
|
+
"trusted-providers": "trusted-providers";
|
|
286
|
+
"webchat-ai-disclosure": "webchat-ai-disclosure";
|
|
287
|
+
}>;
|
|
288
|
+
category: z.ZodEnum<{
|
|
289
|
+
accountability: "accountability";
|
|
290
|
+
availability: "availability";
|
|
291
|
+
confidentiality: "confidentiality";
|
|
292
|
+
integrity: "integrity";
|
|
293
|
+
minimisation: "minimisation";
|
|
294
|
+
transparency: "transparency";
|
|
295
|
+
}>;
|
|
296
|
+
status: z.ZodEnum<{
|
|
297
|
+
off: "off";
|
|
298
|
+
on: "on";
|
|
299
|
+
partial: "partial";
|
|
300
|
+
unavailable: "unavailable";
|
|
301
|
+
unknown: "unknown";
|
|
302
|
+
}>;
|
|
303
|
+
facts: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
304
|
+
preset: z.ZodBoolean;
|
|
305
|
+
}, z.core.$strip>>;
|
|
306
|
+
}, z.core.$strip>;
|
|
307
|
+
export type ComplianceReport = z.infer<typeof ComplianceReportSchema>;
|
|
308
|
+
export declare const ComplianceDocumentKindSchema: z.ZodEnum<{
|
|
309
|
+
dpia: "dpia";
|
|
310
|
+
ropa: "ropa";
|
|
311
|
+
toms: "toms";
|
|
312
|
+
}>;
|
|
313
|
+
export type ComplianceDocumentKind = z.infer<typeof ComplianceDocumentKindSchema>;
|
|
314
|
+
export declare const ComplianceDocumentFormatSchema: z.ZodEnum<{
|
|
315
|
+
docx: "docx";
|
|
316
|
+
md: "md";
|
|
317
|
+
}>;
|
|
318
|
+
export type ComplianceDocumentFormat = z.infer<typeof ComplianceDocumentFormatSchema>;
|
|
319
|
+
export declare const ComplianceDocumentQuerySchema: z.ZodObject<{
|
|
320
|
+
kind: z.ZodEnum<{
|
|
321
|
+
dpia: "dpia";
|
|
322
|
+
ropa: "ropa";
|
|
323
|
+
toms: "toms";
|
|
324
|
+
}>;
|
|
325
|
+
language: z.ZodDefault<z.ZodEnum<{
|
|
326
|
+
en: "en";
|
|
327
|
+
pl: "pl";
|
|
328
|
+
}>>;
|
|
329
|
+
format: z.ZodDefault<z.ZodEnum<{
|
|
330
|
+
docx: "docx";
|
|
331
|
+
md: "md";
|
|
332
|
+
}>>;
|
|
333
|
+
}, z.core.$strip>;
|
|
334
|
+
export type ComplianceDocumentQuery = z.input<typeof ComplianceDocumentQuerySchema>;
|
|
335
|
+
export declare const ComplianceDocumentSchema: z.ZodObject<{
|
|
336
|
+
filename: z.ZodString;
|
|
337
|
+
mediaType: z.ZodString;
|
|
338
|
+
encoding: z.ZodEnum<{
|
|
339
|
+
base64: "base64";
|
|
340
|
+
utf8: "utf8";
|
|
341
|
+
}>;
|
|
342
|
+
content: z.ZodString;
|
|
343
|
+
}, z.core.$strip>;
|
|
344
|
+
export type ComplianceDocument = z.infer<typeof ComplianceDocumentSchema>;
|
|
345
|
+
export declare const PresetValueSchema: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
346
|
+
export type PresetValue = z.infer<typeof PresetValueSchema>;
|
|
347
|
+
export declare const PRESET_GROUPS: readonly ["privacy", "retention", "audit", "analytics", "notice", "actions", "admission", "judge"];
|
|
348
|
+
export declare const PresetGroupSchema: z.ZodEnum<{
|
|
349
|
+
actions: "actions";
|
|
350
|
+
admission: "admission";
|
|
351
|
+
analytics: "analytics";
|
|
352
|
+
audit: "audit";
|
|
353
|
+
judge: "judge";
|
|
354
|
+
notice: "notice";
|
|
355
|
+
privacy: "privacy";
|
|
356
|
+
retention: "retention";
|
|
357
|
+
}>;
|
|
358
|
+
export type PresetGroup = z.infer<typeof PresetGroupSchema>;
|
|
359
|
+
export declare const PresetItemSchema: z.ZodObject<{
|
|
360
|
+
id: z.ZodString;
|
|
361
|
+
group: z.ZodEnum<{
|
|
362
|
+
actions: "actions";
|
|
363
|
+
admission: "admission";
|
|
364
|
+
analytics: "analytics";
|
|
365
|
+
audit: "audit";
|
|
366
|
+
judge: "judge";
|
|
367
|
+
notice: "notice";
|
|
368
|
+
privacy: "privacy";
|
|
369
|
+
retention: "retention";
|
|
370
|
+
}>;
|
|
371
|
+
current: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
372
|
+
proposed: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
373
|
+
changes: z.ZodBoolean;
|
|
374
|
+
available: z.ZodBoolean;
|
|
375
|
+
owner: z.ZodBoolean;
|
|
376
|
+
}, z.core.$strip>;
|
|
377
|
+
export type PresetItem = z.infer<typeof PresetItemSchema>;
|
|
378
|
+
export declare const PresetPreviewSchema: z.ZodObject<{
|
|
379
|
+
items: z.ZodArray<z.ZodObject<{
|
|
380
|
+
id: z.ZodString;
|
|
381
|
+
group: z.ZodEnum<{
|
|
382
|
+
actions: "actions";
|
|
383
|
+
admission: "admission";
|
|
384
|
+
analytics: "analytics";
|
|
385
|
+
audit: "audit";
|
|
386
|
+
judge: "judge";
|
|
387
|
+
notice: "notice";
|
|
388
|
+
privacy: "privacy";
|
|
389
|
+
retention: "retention";
|
|
390
|
+
}>;
|
|
391
|
+
current: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
392
|
+
proposed: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
393
|
+
changes: z.ZodBoolean;
|
|
394
|
+
available: z.ZodBoolean;
|
|
395
|
+
owner: z.ZodBoolean;
|
|
396
|
+
}, z.core.$strip>>;
|
|
397
|
+
}, z.core.$strip>;
|
|
398
|
+
export type PresetPreview = z.infer<typeof PresetPreviewSchema>;
|
|
399
|
+
export declare const PRESET_APPLY_MAX = 200;
|
|
400
|
+
export declare const PresetApplySchema: z.ZodObject<{
|
|
401
|
+
items: z.ZodArray<z.ZodString>;
|
|
402
|
+
}, z.core.$strip>;
|
|
403
|
+
export type PresetApply = z.infer<typeof PresetApplySchema>;
|
|
404
|
+
export declare const PresetSkipReasonSchema: z.ZodEnum<{
|
|
405
|
+
owner: "owner";
|
|
406
|
+
unavailable: "unavailable";
|
|
407
|
+
unchanged: "unchanged";
|
|
408
|
+
unknown: "unknown";
|
|
409
|
+
}>;
|
|
410
|
+
export declare const PresetApplyResultSchema: z.ZodObject<{
|
|
411
|
+
applied: z.ZodArray<z.ZodString>;
|
|
412
|
+
skipped: z.ZodArray<z.ZodObject<{
|
|
413
|
+
id: z.ZodString;
|
|
414
|
+
reason: z.ZodEnum<{
|
|
415
|
+
owner: "owner";
|
|
416
|
+
unavailable: "unavailable";
|
|
417
|
+
unchanged: "unchanged";
|
|
418
|
+
unknown: "unknown";
|
|
419
|
+
}>;
|
|
420
|
+
}, z.core.$strip>>;
|
|
421
|
+
}, z.core.$strip>;
|
|
422
|
+
export type PresetApplyResult = z.infer<typeof PresetApplyResultSchema>;
|
|
423
|
+
//# sourceMappingURL=compliance.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"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CAAC;AAEhE,eAAO,MAAM,gBAAgB,MAAM,CAAC;AACpC,eAAO,MAAM,iBAAiB;;iBAM5B,CAAC;AACH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE5D,eAAO,MAAM,sBAAsB;;;;;EAA2D,CAAC;AAC/F,eAAO,MAAM,uBAAuB;;;;;;;;;;;iBAGlC,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC"}
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export const ComplianceLanguageSchema = z.enum(["pl", "en"]);
|
|
3
|
+
export const DATA_FLOW_GROUPS = ["models", "messaging", "connectors", "speech", "web", "platform", "maintenance", "analytics"];
|
|
4
|
+
export const DataFlowGroupSchema = z.enum(DATA_FLOW_GROUPS);
|
|
5
|
+
export const DATA_FLOW_KINDS = [
|
|
6
|
+
"model-provider",
|
|
7
|
+
"model-endpoint",
|
|
8
|
+
"local-model",
|
|
9
|
+
"email-imap",
|
|
10
|
+
"email-smtp",
|
|
11
|
+
"team-chat",
|
|
12
|
+
"webchat",
|
|
13
|
+
"connector",
|
|
14
|
+
"speech",
|
|
15
|
+
"web-search",
|
|
16
|
+
"web-fetch",
|
|
17
|
+
"browser",
|
|
18
|
+
"platform-link",
|
|
19
|
+
"ingress",
|
|
20
|
+
"update-check",
|
|
21
|
+
"model-download",
|
|
22
|
+
"product-analytics",
|
|
23
|
+
"push-notifications",
|
|
24
|
+
];
|
|
25
|
+
export const DataFlowKindSchema = z.enum(DATA_FLOW_KINDS);
|
|
26
|
+
export const PersonalDataReachSchema = z.enum(["yes", "possible", "no"]);
|
|
27
|
+
export const ShieldCoverSchema = z.enum(["masked", "trusted", "watched", "local", "blocked", "none"]);
|
|
28
|
+
export const DataFlowSchema = z.object({
|
|
29
|
+
id: z.string().describe("Stable id of this path, such as `model-provider:claude` or `team-chat:discord`."),
|
|
30
|
+
group: DataFlowGroupSchema,
|
|
31
|
+
kind: DataFlowKindSchema,
|
|
32
|
+
name: z.string().describe("The destination's own name, such as Anthropic Claude or a connector's title. Proper nouns only."),
|
|
33
|
+
hosts: z.array(z.string()).describe("The hosts data is sent to, as configured. Empty when the code cannot know them in advance."),
|
|
34
|
+
operator: z.string().optional().describe("Who runs the destination, where known."),
|
|
35
|
+
region: z.string().optional().describe("Where it is processed, as far as the operator says: `EU`, `US`, `this machine`, or a hosting region."),
|
|
36
|
+
thirdCountry: z
|
|
37
|
+
.boolean()
|
|
38
|
+
.optional()
|
|
39
|
+
.describe("True when the operator processes the data outside the European Economic Area, which makes this a transfer to a third country."),
|
|
40
|
+
active: z.boolean().describe("Whether this path is in use now. An inactive one is listed because a single switch would open it."),
|
|
41
|
+
personalData: PersonalDataReachSchema,
|
|
42
|
+
shield: ShieldCoverSchema,
|
|
43
|
+
switch: z
|
|
44
|
+
.string()
|
|
45
|
+
.optional()
|
|
46
|
+
.describe("What opens or closes this path: a settings key (`productAnalytics`), a page, or an environment variable."),
|
|
47
|
+
question: z
|
|
48
|
+
.string()
|
|
49
|
+
.optional()
|
|
50
|
+
.describe("Set when the sandbox cannot tell something about this path and the office must answer it, as a short key the editor words."),
|
|
51
|
+
});
|
|
52
|
+
export const MeasureStatusSchema = z.enum(["on", "partial", "off", "unavailable", "unknown"]);
|
|
53
|
+
export const MEASURE_IDS = [
|
|
54
|
+
"privacy-shield",
|
|
55
|
+
"privacy-images",
|
|
56
|
+
"privacy-names",
|
|
57
|
+
"trusted-providers",
|
|
58
|
+
"local-models",
|
|
59
|
+
"member-roles",
|
|
60
|
+
"areas",
|
|
61
|
+
"guest-jail",
|
|
62
|
+
"sign-in",
|
|
63
|
+
"action-rules",
|
|
64
|
+
"admission",
|
|
65
|
+
"command-judge",
|
|
66
|
+
"credential-gates",
|
|
67
|
+
"host-guards",
|
|
68
|
+
"retention",
|
|
69
|
+
"audit",
|
|
70
|
+
"audit-reads",
|
|
71
|
+
"audit-forward",
|
|
72
|
+
"encryption-at-rest",
|
|
73
|
+
"encryption-in-transit",
|
|
74
|
+
"agent-domain",
|
|
75
|
+
"product-analytics",
|
|
76
|
+
"ai-notice",
|
|
77
|
+
"webchat-ai-disclosure",
|
|
78
|
+
"backups",
|
|
79
|
+
];
|
|
80
|
+
export const MeasureIdSchema = z.enum(MEASURE_IDS);
|
|
81
|
+
export const MeasureCategorySchema = z.enum(["confidentiality", "minimisation", "integrity", "accountability", "transparency", "availability"]);
|
|
82
|
+
export const MeasureSchema = z.object({
|
|
83
|
+
id: MeasureIdSchema,
|
|
84
|
+
category: MeasureCategorySchema,
|
|
85
|
+
status: MeasureStatusSchema,
|
|
86
|
+
facts: z
|
|
87
|
+
.record(z.string(), z.union([z.string(), z.number(), z.boolean()]))
|
|
88
|
+
.describe("The configured values behind the status, such as `{ mode: \"on\", trusted: 2 }`, for the reader to word."),
|
|
89
|
+
preset: z.boolean().describe("The public-office preset changes this measure."),
|
|
90
|
+
});
|
|
91
|
+
export const ComplianceReportSchema = z.object({
|
|
92
|
+
generatedAt: z.string().describe("When this was read, as an ISO timestamp."),
|
|
93
|
+
flows: z.array(DataFlowSchema),
|
|
94
|
+
measures: z.array(MeasureSchema),
|
|
95
|
+
});
|
|
96
|
+
export const ComplianceDocumentKindSchema = z.enum(["ropa", "dpia", "toms"]);
|
|
97
|
+
export const ComplianceDocumentFormatSchema = z.enum(["md", "docx"]);
|
|
98
|
+
export const ComplianceDocumentQuerySchema = z.object({
|
|
99
|
+
kind: ComplianceDocumentKindSchema.describe("ropa: the record of processing activities entry. dpia: the impact assessment draft. toms: the measures."),
|
|
100
|
+
language: ComplianceLanguageSchema.default("pl").describe("pl or en."),
|
|
101
|
+
format: ComplianceDocumentFormatSchema.default("md").describe("md for Markdown text, docx for a Word document."),
|
|
102
|
+
});
|
|
103
|
+
export const ComplianceDocumentSchema = z.object({
|
|
104
|
+
filename: z.string(),
|
|
105
|
+
mediaType: z.string(),
|
|
106
|
+
encoding: z.enum(["utf8", "base64"]).describe("utf8 for Markdown, base64 for a Word document's bytes."),
|
|
107
|
+
content: z.string(),
|
|
108
|
+
});
|
|
109
|
+
export const PresetValueSchema = z.union([z.string(), z.number(), z.boolean(), z.null()]);
|
|
110
|
+
export const PRESET_GROUPS = ["privacy", "retention", "audit", "analytics", "notice", "actions", "admission", "judge"];
|
|
111
|
+
export const PresetGroupSchema = z.enum(PRESET_GROUPS);
|
|
112
|
+
export const PresetItemSchema = z.object({
|
|
113
|
+
id: z.string(),
|
|
114
|
+
group: PresetGroupSchema,
|
|
115
|
+
current: PresetValueSchema,
|
|
116
|
+
proposed: PresetValueSchema,
|
|
117
|
+
changes: z.boolean().describe("Applying it would change something; false when the sandbox already has the proposed value."),
|
|
118
|
+
available: z.boolean().describe("It can be applied here. False when what it needs is missing, such as a local name model."),
|
|
119
|
+
owner: z.boolean().describe("Only the owner may apply it, since it changes the privacy shield."),
|
|
120
|
+
});
|
|
121
|
+
export const PresetPreviewSchema = z.object({ items: z.array(PresetItemSchema) });
|
|
122
|
+
export const PRESET_APPLY_MAX = 200;
|
|
123
|
+
export const PresetApplySchema = z.object({
|
|
124
|
+
items: z
|
|
125
|
+
.array(z.string().min(1).max(200))
|
|
126
|
+
.min(1)
|
|
127
|
+
.max(PRESET_APPLY_MAX)
|
|
128
|
+
.describe("The ids of the items to apply, as the preview lists them. Anything not named is left as it is."),
|
|
129
|
+
});
|
|
130
|
+
export const PresetSkipReasonSchema = z.enum(["unknown", "unavailable", "unchanged", "owner"]);
|
|
131
|
+
export const PresetApplyResultSchema = z.object({
|
|
132
|
+
applied: z.array(z.string()),
|
|
133
|
+
skipped: z.array(z.object({ id: z.string(), reason: PresetSkipReasonSchema })),
|
|
134
|
+
});
|
|
135
|
+
//# sourceMappingURL=compliance.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compliance.js","sourceRoot":"","sources":["../../src/schemas/compliance.ts"],"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,0 +1,28 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const RETENTION_DAYS_MAX = 3650;
|
|
3
|
+
export declare const RetentionSettingsSchema: z.ZodObject<{
|
|
4
|
+
transcriptDays: z.ZodDefault<z.ZodNumber>;
|
|
5
|
+
restorePointDays: z.ZodDefault<z.ZodNumber>;
|
|
6
|
+
privacyVaultDays: z.ZodDefault<z.ZodNumber>;
|
|
7
|
+
cacheDays: z.ZodDefault<z.ZodNumber>;
|
|
8
|
+
rawOutputDays: z.ZodDefault<z.ZodNumber>;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
export type RetentionSettings = z.infer<typeof RetentionSettingsSchema>;
|
|
11
|
+
export declare const AUDIT_RETENTION_DAYS_MIN = 30;
|
|
12
|
+
export declare const AUDIT_RETENTION_DAYS_DEFAULT = 365;
|
|
13
|
+
export declare const AUDIT_RETENTION_DAYS_PUBLIC_OFFICE = 730;
|
|
14
|
+
export declare const AuditSettingsSchema: z.ZodObject<{
|
|
15
|
+
retentionDays: z.ZodDefault<z.ZodNumber>;
|
|
16
|
+
recordReads: z.ZodDefault<z.ZodBoolean>;
|
|
17
|
+
forwardUrl: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodURL]>>;
|
|
18
|
+
forwardSecret: z.ZodDefault<z.ZodString>;
|
|
19
|
+
}, z.core.$strip>;
|
|
20
|
+
export type AuditSettings = z.infer<typeof AuditSettingsSchema>;
|
|
21
|
+
export declare const AI_NOTICE_TEXT_MAX = 4000;
|
|
22
|
+
export declare const AiNoticeSchema: z.ZodObject<{
|
|
23
|
+
show: z.ZodDefault<z.ZodBoolean>;
|
|
24
|
+
text: z.ZodDefault<z.ZodString>;
|
|
25
|
+
}, z.core.$strip>;
|
|
26
|
+
export type AiNotice = z.infer<typeof AiNoticeSchema>;
|
|
27
|
+
export declare const AT_REST_KEY_FILE_ENV = "INTENTIC_AT_REST_KEY_FILE";
|
|
28
|
+
//# sourceMappingURL=data-protection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data-protection.d.ts","sourceRoot":"","sources":["../../src/schemas/data-protection.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,kBAAkB,OAAO,CAAC;AAMvC,eAAO,MAAM,uBAAuB;;;;;;iBAgBlC,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAExE,eAAO,MAAM,wBAAwB,KAAK,CAAC;AAC3C,eAAO,MAAM,4BAA4B,MAAM,CAAC;AAEhD,eAAO,MAAM,kCAAkC,MAAM,CAAC;AAKtD,eAAO,MAAM,mBAAmB;;;;;iBA6B9B,CAAC;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEhE,eAAO,MAAM,kBAAkB,OAAO,CAAC;AAKvC,eAAO,MAAM,cAAc;;;iBAczB,CAAC;AACH,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAKtD,eAAO,MAAM,oBAAoB,8BAA8B,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export const RETENTION_DAYS_MAX = 3650;
|
|
3
|
+
const retentionDays = () => z.number().int().min(0).max(RETENTION_DAYS_MAX).default(0);
|
|
4
|
+
export const RetentionSettingsSchema = z.object({
|
|
5
|
+
transcriptDays: retentionDays().describe("How many days a conversation's transcript is kept after its last message. After that the transcript and its backups are deleted for good, not archived. Zero keeps them forever."),
|
|
6
|
+
restorePointDays: retentionDays().describe("How many days the workspace's restore points are kept. These are the snapshots taken every minute while agents work, so files deleted from the workspace stay recoverable until then. Zero keeps every restore point."),
|
|
7
|
+
privacyVaultDays: retentionDays().describe("How many days the privacy shield remembers a personal value after it last saw it. After that the value and its token are deleted, and the value is matched as new if it comes back. Zero remembers them forever."),
|
|
8
|
+
cacheDays: retentionDays().describe("How many days converted copies of documents are kept: text read out of PDFs and office files, and the results of reading scans and images. Zero keeps them until the cache needs the room."),
|
|
9
|
+
rawOutputDays: retentionDays().describe("How many days the full, untrimmed output of commands is kept beside the trimmed version the agent read. Zero keeps it until the space is needed."),
|
|
10
|
+
});
|
|
11
|
+
export const AUDIT_RETENTION_DAYS_MIN = 30;
|
|
12
|
+
export const AUDIT_RETENTION_DAYS_DEFAULT = 365;
|
|
13
|
+
export const AUDIT_RETENTION_DAYS_PUBLIC_OFFICE = 730;
|
|
14
|
+
export const AuditSettingsSchema = z.object({
|
|
15
|
+
retentionDays: z
|
|
16
|
+
.number()
|
|
17
|
+
.int()
|
|
18
|
+
.min(AUDIT_RETENTION_DAYS_MIN)
|
|
19
|
+
.max(RETENTION_DAYS_MAX)
|
|
20
|
+
.default(AUDIT_RETENTION_DAYS_DEFAULT)
|
|
21
|
+
.describe("How many days audit records are kept before the oldest are deleted. Public bodies in Poland keep system logs for two years (730 days)."),
|
|
22
|
+
recordReads: z
|
|
23
|
+
.boolean()
|
|
24
|
+
.default(false)
|
|
25
|
+
.describe("Also record who opened which conversation, transcript, file or log, not only who changed something. Off by default because it writes a record on every page someone opens."),
|
|
26
|
+
forwardUrl: z
|
|
27
|
+
.union([z.literal(""), z.url({ protocol: /^https$/ })])
|
|
28
|
+
.default("")
|
|
29
|
+
.describe("An HTTPS address each audit record is also sent to as it is written, such as your organisation's log collector (SIEM). A copy kept outside the sandbox is the one nobody inside it can change. Empty sends nothing."),
|
|
30
|
+
forwardSecret: z
|
|
31
|
+
.string()
|
|
32
|
+
.max(200)
|
|
33
|
+
.default("")
|
|
34
|
+
.describe("The name of a stored secret sent as a bearer token with each forwarded record. Empty sends none."),
|
|
35
|
+
});
|
|
36
|
+
export const AI_NOTICE_TEXT_MAX = 4000;
|
|
37
|
+
export const AiNoticeSchema = z.object({
|
|
38
|
+
show: z
|
|
39
|
+
.boolean()
|
|
40
|
+
.default(false)
|
|
41
|
+
.describe("Show members a short notice the first time they open this sandbox: that they are working with an AI, that it makes mistakes, what to check before acting on its answers, and what not to paste into it. They confirm it once, and the confirmation is recorded."),
|
|
42
|
+
text: z
|
|
43
|
+
.string()
|
|
44
|
+
.max(AI_NOTICE_TEXT_MAX)
|
|
45
|
+
.default("")
|
|
46
|
+
.describe("Your own wording for that notice, such as your office's rules for using AI. Empty shows the built-in text in the reader's language."),
|
|
47
|
+
});
|
|
48
|
+
export const AT_REST_KEY_FILE_ENV = "INTENTIC_AT_REST_KEY_FILE";
|
|
49
|
+
//# sourceMappingURL=data-protection.js.map
|