@agenshield/ipc 0.1.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/catalog.d.ts +24 -0
- package/catalog.d.ts.map +1 -0
- package/constants.d.ts +59 -0
- package/constants.d.ts.map +1 -0
- package/index.d.ts +19 -0
- package/index.d.ts.map +1 -0
- package/index.js +1377 -0
- package/package.json +20 -0
- package/schemas/agenco.schema.d.ts +189 -0
- package/schemas/agenco.schema.d.ts.map +1 -0
- package/schemas/auth.schema.d.ts +112 -0
- package/schemas/auth.schema.d.ts.map +1 -0
- package/schemas/config.schema.d.ts +218 -0
- package/schemas/config.schema.d.ts.map +1 -0
- package/schemas/index.d.ts +11 -0
- package/schemas/index.d.ts.map +1 -0
- package/schemas/ops.schema.d.ts +128 -0
- package/schemas/ops.schema.d.ts.map +1 -0
- package/schemas/policy.schema.d.ts +148 -0
- package/schemas/policy.schema.d.ts.map +1 -0
- package/schemas/state.schema.d.ts +128 -0
- package/schemas/state.schema.d.ts.map +1 -0
- package/schemas/vault.schema.d.ts +38 -0
- package/schemas/vault.schema.d.ts.map +1 -0
- package/types/agenco.d.ts +211 -0
- package/types/agenco.d.ts.map +1 -0
- package/types/api.d.ts +59 -0
- package/types/api.d.ts.map +1 -0
- package/types/auth.d.ts +121 -0
- package/types/auth.d.ts.map +1 -0
- package/types/backup.d.ts +79 -0
- package/types/backup.d.ts.map +1 -0
- package/types/catalog.d.ts +13 -0
- package/types/catalog.d.ts.map +1 -0
- package/types/config.d.ts +208 -0
- package/types/config.d.ts.map +1 -0
- package/types/daemon.d.ts +22 -0
- package/types/daemon.d.ts.map +1 -0
- package/types/discovery.d.ts +121 -0
- package/types/discovery.d.ts.map +1 -0
- package/types/events.d.ts +83 -0
- package/types/events.d.ts.map +1 -0
- package/types/index.d.ts +18 -0
- package/types/index.d.ts.map +1 -0
- package/types/marketplace.d.ts +101 -0
- package/types/marketplace.d.ts.map +1 -0
- package/types/ops.d.ts +141 -0
- package/types/ops.d.ts.map +1 -0
- package/types/policy.d.ts +100 -0
- package/types/policy.d.ts.map +1 -0
- package/types/state.d.ts +105 -0
- package/types/state.d.ts.map +1 -0
- package/types/vault.d.ts +62 -0
- package/types/vault.d.ts.map +1 -0
package/package.json
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@agenshield/ipc",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"description": "Shared types and schemas for AgenShield IPC communication",
|
|
6
|
+
"main": "./index.js",
|
|
7
|
+
"types": "./index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
"./package.json": "./package.json",
|
|
10
|
+
".": {
|
|
11
|
+
"types": "./index.d.ts",
|
|
12
|
+
"import": "./index.js",
|
|
13
|
+
"default": "./index.js"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"license": "MIT",
|
|
17
|
+
"dependencies": {
|
|
18
|
+
"zod": "^4.3.6"
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Zod schemas for AgenCo API validation
|
|
3
|
+
*/
|
|
4
|
+
import { z } from 'zod';
|
|
5
|
+
/**
|
|
6
|
+
* Auth start request schema
|
|
7
|
+
*/
|
|
8
|
+
export declare const AgenCoAuthStartRequestSchema: z.ZodObject<{
|
|
9
|
+
scopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
/**
|
|
12
|
+
* Auth start response schema
|
|
13
|
+
*/
|
|
14
|
+
export declare const AgenCoAuthStartResponseSchema: z.ZodObject<{
|
|
15
|
+
authUrl: z.ZodString;
|
|
16
|
+
state: z.ZodString;
|
|
17
|
+
callbackPort: z.ZodNumber;
|
|
18
|
+
}, z.core.$strip>;
|
|
19
|
+
/**
|
|
20
|
+
* Auth callback request schema
|
|
21
|
+
*/
|
|
22
|
+
export declare const AgenCoAuthCallbackRequestSchema: z.ZodObject<{
|
|
23
|
+
code: z.ZodString;
|
|
24
|
+
state: z.ZodString;
|
|
25
|
+
}, z.core.$strip>;
|
|
26
|
+
/**
|
|
27
|
+
* Auth callback response schema
|
|
28
|
+
*/
|
|
29
|
+
export declare const AgenCoAuthCallbackResponseSchema: z.ZodObject<{
|
|
30
|
+
success: z.ZodBoolean;
|
|
31
|
+
error: z.ZodOptional<z.ZodString>;
|
|
32
|
+
}, z.core.$strip>;
|
|
33
|
+
/**
|
|
34
|
+
* Auth status response schema
|
|
35
|
+
*/
|
|
36
|
+
export declare const AgenCoAuthStatusResponseSchema: z.ZodObject<{
|
|
37
|
+
authenticated: z.ZodBoolean;
|
|
38
|
+
expired: z.ZodBoolean;
|
|
39
|
+
expiresAt: z.ZodNullable<z.ZodString>;
|
|
40
|
+
connectedIntegrations: z.ZodArray<z.ZodString>;
|
|
41
|
+
}, z.core.$strip>;
|
|
42
|
+
/**
|
|
43
|
+
* Tool run request schema
|
|
44
|
+
*/
|
|
45
|
+
export declare const AgenCoToolRunRequestSchema: z.ZodObject<{
|
|
46
|
+
integration: z.ZodString;
|
|
47
|
+
tool: z.ZodString;
|
|
48
|
+
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
49
|
+
}, z.core.$strip>;
|
|
50
|
+
/**
|
|
51
|
+
* Tool run response schema
|
|
52
|
+
*/
|
|
53
|
+
export declare const AgenCoToolRunResponseSchema: z.ZodObject<{
|
|
54
|
+
success: z.ZodBoolean;
|
|
55
|
+
result: z.ZodOptional<z.ZodUnknown>;
|
|
56
|
+
error: z.ZodOptional<z.ZodString>;
|
|
57
|
+
}, z.core.$strip>;
|
|
58
|
+
/**
|
|
59
|
+
* Tool list request schema
|
|
60
|
+
*/
|
|
61
|
+
export declare const AgenCoToolListRequestSchema: z.ZodObject<{
|
|
62
|
+
integration: z.ZodOptional<z.ZodString>;
|
|
63
|
+
connectedOnly: z.ZodOptional<z.ZodBoolean>;
|
|
64
|
+
}, z.core.$strip>;
|
|
65
|
+
/**
|
|
66
|
+
* Tool schema
|
|
67
|
+
*/
|
|
68
|
+
export declare const AgenCoToolSchema: z.ZodObject<{
|
|
69
|
+
integration: z.ZodString;
|
|
70
|
+
tool: z.ZodString;
|
|
71
|
+
description: z.ZodString;
|
|
72
|
+
connected: z.ZodOptional<z.ZodBoolean>;
|
|
73
|
+
connectUrl: z.ZodOptional<z.ZodString>;
|
|
74
|
+
}, z.core.$strip>;
|
|
75
|
+
/**
|
|
76
|
+
* Tool list response schema
|
|
77
|
+
*/
|
|
78
|
+
export declare const AgenCoToolListResponseSchema: z.ZodObject<{
|
|
79
|
+
tools: z.ZodArray<z.ZodObject<{
|
|
80
|
+
integration: z.ZodString;
|
|
81
|
+
tool: z.ZodString;
|
|
82
|
+
description: z.ZodString;
|
|
83
|
+
connected: z.ZodOptional<z.ZodBoolean>;
|
|
84
|
+
connectUrl: z.ZodOptional<z.ZodString>;
|
|
85
|
+
}, z.core.$strip>>;
|
|
86
|
+
}, z.core.$strip>;
|
|
87
|
+
/**
|
|
88
|
+
* Tool search request schema
|
|
89
|
+
*/
|
|
90
|
+
export declare const AgenCoToolSearchRequestSchema: z.ZodObject<{
|
|
91
|
+
query: z.ZodString;
|
|
92
|
+
integration: z.ZodOptional<z.ZodString>;
|
|
93
|
+
}, z.core.$strip>;
|
|
94
|
+
/**
|
|
95
|
+
* Integrations list request schema
|
|
96
|
+
*/
|
|
97
|
+
export declare const AgenCoIntegrationsListRequestSchema: z.ZodObject<{
|
|
98
|
+
category: z.ZodOptional<z.ZodString>;
|
|
99
|
+
search: z.ZodOptional<z.ZodString>;
|
|
100
|
+
}, z.core.$strip>;
|
|
101
|
+
/**
|
|
102
|
+
* Integration action schema
|
|
103
|
+
*/
|
|
104
|
+
export declare const AgenCoIntegrationActionSchema: z.ZodObject<{
|
|
105
|
+
name: z.ZodString;
|
|
106
|
+
description: z.ZodString;
|
|
107
|
+
}, z.core.$strip>;
|
|
108
|
+
/**
|
|
109
|
+
* Integration schema
|
|
110
|
+
*/
|
|
111
|
+
export declare const AgenCoIntegrationSchema: z.ZodObject<{
|
|
112
|
+
id: z.ZodString;
|
|
113
|
+
name: z.ZodString;
|
|
114
|
+
description: z.ZodString;
|
|
115
|
+
category: z.ZodString;
|
|
116
|
+
toolsCount: z.ZodNumber;
|
|
117
|
+
actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
118
|
+
name: z.ZodString;
|
|
119
|
+
description: z.ZodString;
|
|
120
|
+
}, z.core.$strip>>>;
|
|
121
|
+
}, z.core.$strip>;
|
|
122
|
+
/**
|
|
123
|
+
* Integrations list response schema
|
|
124
|
+
*/
|
|
125
|
+
export declare const AgenCoIntegrationsListResponseSchema: z.ZodObject<{
|
|
126
|
+
integrations: z.ZodArray<z.ZodObject<{
|
|
127
|
+
id: z.ZodString;
|
|
128
|
+
name: z.ZodString;
|
|
129
|
+
description: z.ZodString;
|
|
130
|
+
category: z.ZodString;
|
|
131
|
+
toolsCount: z.ZodNumber;
|
|
132
|
+
actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
133
|
+
name: z.ZodString;
|
|
134
|
+
description: z.ZodString;
|
|
135
|
+
}, z.core.$strip>>>;
|
|
136
|
+
}, z.core.$strip>>;
|
|
137
|
+
totalCount: z.ZodNumber;
|
|
138
|
+
}, z.core.$strip>;
|
|
139
|
+
/**
|
|
140
|
+
* Connected integration schema
|
|
141
|
+
*/
|
|
142
|
+
export declare const AgenCoConnectedIntegrationSchema: z.ZodObject<{
|
|
143
|
+
id: z.ZodString;
|
|
144
|
+
name: z.ZodString;
|
|
145
|
+
connectedAt: z.ZodString;
|
|
146
|
+
status: z.ZodString;
|
|
147
|
+
account: z.ZodOptional<z.ZodString>;
|
|
148
|
+
requiresReauth: z.ZodOptional<z.ZodBoolean>;
|
|
149
|
+
}, z.core.$strip>;
|
|
150
|
+
/**
|
|
151
|
+
* Connected integrations response schema
|
|
152
|
+
*/
|
|
153
|
+
export declare const AgenCoConnectedIntegrationsResponseSchema: z.ZodObject<{
|
|
154
|
+
integrations: z.ZodArray<z.ZodObject<{
|
|
155
|
+
id: z.ZodString;
|
|
156
|
+
name: z.ZodString;
|
|
157
|
+
connectedAt: z.ZodString;
|
|
158
|
+
status: z.ZodString;
|
|
159
|
+
account: z.ZodOptional<z.ZodString>;
|
|
160
|
+
requiresReauth: z.ZodOptional<z.ZodBoolean>;
|
|
161
|
+
}, z.core.$strip>>;
|
|
162
|
+
}, z.core.$strip>;
|
|
163
|
+
/**
|
|
164
|
+
* Connect integration request schema
|
|
165
|
+
*/
|
|
166
|
+
export declare const AgenCoConnectIntegrationRequestSchema: z.ZodObject<{
|
|
167
|
+
integration: z.ZodString;
|
|
168
|
+
scopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
169
|
+
}, z.core.$strip>;
|
|
170
|
+
/**
|
|
171
|
+
* Connect integration response schema
|
|
172
|
+
*/
|
|
173
|
+
export declare const AgenCoConnectIntegrationResponseSchema: z.ZodObject<{
|
|
174
|
+
status: z.ZodEnum<{
|
|
175
|
+
connected: "connected";
|
|
176
|
+
auth_required: "auth_required";
|
|
177
|
+
already_connected: "already_connected";
|
|
178
|
+
}>;
|
|
179
|
+
oauthUrl: z.ZodOptional<z.ZodString>;
|
|
180
|
+
expiresIn: z.ZodOptional<z.ZodNumber>;
|
|
181
|
+
instructions: z.ZodOptional<z.ZodString>;
|
|
182
|
+
account: z.ZodOptional<z.ZodString>;
|
|
183
|
+
connectedAt: z.ZodOptional<z.ZodString>;
|
|
184
|
+
}, z.core.$strip>;
|
|
185
|
+
export type AgenCoAuthStartRequestInput = z.input<typeof AgenCoAuthStartRequestSchema>;
|
|
186
|
+
export type AgenCoAuthStartResponseOutput = z.output<typeof AgenCoAuthStartResponseSchema>;
|
|
187
|
+
export type AgenCoAuthCallbackRequestInput = z.input<typeof AgenCoAuthCallbackRequestSchema>;
|
|
188
|
+
export type AgenCoToolRunRequestInput = z.input<typeof AgenCoToolRunRequestSchema>;
|
|
189
|
+
//# sourceMappingURL=agenco.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agenco.schema.d.ts","sourceRoot":"","sources":["../../src/schemas/agenco.schema.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;GAEG;AACH,eAAO,MAAM,4BAA4B;;iBAEvC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,6BAA6B;;;;iBAIxC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,+BAA+B;;;iBAG1C,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,gCAAgC;;;iBAG3C,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,8BAA8B;;;;;iBAKzC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,0BAA0B;;;;iBAIrC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,2BAA2B;;;;iBAItC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,2BAA2B;;;iBAGtC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,gBAAgB;;;;;;iBAM3B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,4BAA4B;;;;;;;;iBAEvC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,6BAA6B;;;iBAGxC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,mCAAmC;;;iBAG9C,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,6BAA6B;;;iBAGxC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,uBAAuB;;;;;;;;;;iBAOlC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,oCAAoC;;;;;;;;;;;;;iBAG/C,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,gCAAgC;;;;;;;iBAO3C,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,yCAAyC;;;;;;;;;iBAEpD,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,qCAAqC;;;iBAGhD,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,sCAAsC;;;;;;;;;;;iBAOjD,CAAC;AAGH,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AACvF,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,6BAA6B,CAAC,CAAC;AAC3F,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC;AAC7F,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC"}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Zod schemas for authentication validation
|
|
3
|
+
*/
|
|
4
|
+
import { z } from 'zod';
|
|
5
|
+
/**
|
|
6
|
+
* Auth status response schema
|
|
7
|
+
*/
|
|
8
|
+
export declare const AuthStatusResponseSchema: z.ZodObject<{
|
|
9
|
+
passcodeSet: z.ZodBoolean;
|
|
10
|
+
protectionEnabled: z.ZodBoolean;
|
|
11
|
+
allowAnonymousReadOnly: z.ZodBoolean;
|
|
12
|
+
lockedOut: z.ZodBoolean;
|
|
13
|
+
lockedUntil: z.ZodOptional<z.ZodString>;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
/**
|
|
16
|
+
* Unlock request schema
|
|
17
|
+
*/
|
|
18
|
+
export declare const UnlockRequestSchema: z.ZodObject<{
|
|
19
|
+
passcode: z.ZodString;
|
|
20
|
+
}, z.core.$strip>;
|
|
21
|
+
/**
|
|
22
|
+
* Unlock response schema
|
|
23
|
+
*/
|
|
24
|
+
export declare const UnlockResponseSchema: z.ZodObject<{
|
|
25
|
+
success: z.ZodBoolean;
|
|
26
|
+
token: z.ZodOptional<z.ZodString>;
|
|
27
|
+
expiresAt: z.ZodOptional<z.ZodNumber>;
|
|
28
|
+
error: z.ZodOptional<z.ZodString>;
|
|
29
|
+
remainingAttempts: z.ZodOptional<z.ZodNumber>;
|
|
30
|
+
}, z.core.$strip>;
|
|
31
|
+
/**
|
|
32
|
+
* Lock request schema
|
|
33
|
+
*/
|
|
34
|
+
export declare const LockRequestSchema: z.ZodObject<{
|
|
35
|
+
token: z.ZodString;
|
|
36
|
+
}, z.core.$strip>;
|
|
37
|
+
/**
|
|
38
|
+
* Lock response schema
|
|
39
|
+
*/
|
|
40
|
+
export declare const LockResponseSchema: z.ZodObject<{
|
|
41
|
+
success: z.ZodBoolean;
|
|
42
|
+
}, z.core.$strip>;
|
|
43
|
+
/**
|
|
44
|
+
* Setup passcode request schema
|
|
45
|
+
*/
|
|
46
|
+
export declare const SetupPasscodeRequestSchema: z.ZodObject<{
|
|
47
|
+
passcode: z.ZodString;
|
|
48
|
+
enableProtection: z.ZodOptional<z.ZodBoolean>;
|
|
49
|
+
}, z.core.$strip>;
|
|
50
|
+
/**
|
|
51
|
+
* Setup passcode response schema
|
|
52
|
+
*/
|
|
53
|
+
export declare const SetupPasscodeResponseSchema: z.ZodObject<{
|
|
54
|
+
success: z.ZodBoolean;
|
|
55
|
+
error: z.ZodOptional<z.ZodString>;
|
|
56
|
+
}, z.core.$strip>;
|
|
57
|
+
/**
|
|
58
|
+
* Change passcode request schema
|
|
59
|
+
*/
|
|
60
|
+
export declare const ChangePasscodeRequestSchema: z.ZodObject<{
|
|
61
|
+
oldPasscode: z.ZodOptional<z.ZodString>;
|
|
62
|
+
newPasscode: z.ZodString;
|
|
63
|
+
}, z.core.$strip>;
|
|
64
|
+
/**
|
|
65
|
+
* Change passcode response schema
|
|
66
|
+
*/
|
|
67
|
+
export declare const ChangePasscodeResponseSchema: z.ZodObject<{
|
|
68
|
+
success: z.ZodBoolean;
|
|
69
|
+
error: z.ZodOptional<z.ZodString>;
|
|
70
|
+
}, z.core.$strip>;
|
|
71
|
+
/**
|
|
72
|
+
* Session schema (internal)
|
|
73
|
+
*/
|
|
74
|
+
export declare const SessionSchema: z.ZodObject<{
|
|
75
|
+
token: z.ZodString;
|
|
76
|
+
createdAt: z.ZodNumber;
|
|
77
|
+
expiresAt: z.ZodNumber;
|
|
78
|
+
clientId: z.ZodOptional<z.ZodString>;
|
|
79
|
+
}, z.core.$strip>;
|
|
80
|
+
/**
|
|
81
|
+
* Auth config schema
|
|
82
|
+
*/
|
|
83
|
+
export declare const AuthConfigSchema: z.ZodObject<{
|
|
84
|
+
sessionTtlMs: z.ZodNumber;
|
|
85
|
+
maxFailedAttempts: z.ZodNumber;
|
|
86
|
+
lockoutDurationMs: z.ZodNumber;
|
|
87
|
+
}, z.core.$strip>;
|
|
88
|
+
/**
|
|
89
|
+
* Passcode data schema (for vault)
|
|
90
|
+
*/
|
|
91
|
+
export declare const PasscodeDataSchema: z.ZodObject<{
|
|
92
|
+
hash: z.ZodString;
|
|
93
|
+
setAt: z.ZodString;
|
|
94
|
+
changedAt: z.ZodOptional<z.ZodString>;
|
|
95
|
+
}, z.core.$strip>;
|
|
96
|
+
export type AuthStatusResponseInput = z.input<typeof AuthStatusResponseSchema>;
|
|
97
|
+
export type AuthStatusResponseOutput = z.output<typeof AuthStatusResponseSchema>;
|
|
98
|
+
export type UnlockRequestInput = z.input<typeof UnlockRequestSchema>;
|
|
99
|
+
export type UnlockRequestOutput = z.output<typeof UnlockRequestSchema>;
|
|
100
|
+
export type UnlockResponseInput = z.input<typeof UnlockResponseSchema>;
|
|
101
|
+
export type UnlockResponseOutput = z.output<typeof UnlockResponseSchema>;
|
|
102
|
+
export type LockRequestInput = z.input<typeof LockRequestSchema>;
|
|
103
|
+
export type LockRequestOutput = z.output<typeof LockRequestSchema>;
|
|
104
|
+
export type SetupPasscodeRequestInput = z.input<typeof SetupPasscodeRequestSchema>;
|
|
105
|
+
export type SetupPasscodeRequestOutput = z.output<typeof SetupPasscodeRequestSchema>;
|
|
106
|
+
export type ChangePasscodeRequestInput = z.input<typeof ChangePasscodeRequestSchema>;
|
|
107
|
+
export type ChangePasscodeRequestOutput = z.output<typeof ChangePasscodeRequestSchema>;
|
|
108
|
+
export type SessionInput = z.input<typeof SessionSchema>;
|
|
109
|
+
export type SessionOutput = z.output<typeof SessionSchema>;
|
|
110
|
+
export type PasscodeDataInput = z.input<typeof PasscodeDataSchema>;
|
|
111
|
+
export type PasscodeDataOutput = z.output<typeof PasscodeDataSchema>;
|
|
112
|
+
//# sourceMappingURL=auth.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth.schema.d.ts","sourceRoot":"","sources":["../../src/schemas/auth.schema.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB;;GAEG;AACH,eAAO,MAAM,wBAAwB;;;;;;iBAMnC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,mBAAmB;;iBAE9B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,oBAAoB;;;;;;iBAM/B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,iBAAiB;;iBAE5B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,kBAAkB;;iBAE7B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,0BAA0B;;;iBAGrC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,2BAA2B;;;iBAGtC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,2BAA2B;;;iBAGtC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,4BAA4B;;;iBAGvC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,aAAa;;;;;iBAKxB,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,gBAAgB;;;;iBAI3B,CAAC;AAIH;;GAEG;AACH,eAAO,MAAM,kBAAkB;;;;iBAI7B,CAAC;AAGH,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAC/E,MAAM,MAAM,w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0 +1,218 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Zod schemas for AgenShield configuration validation
|
|
3
|
+
*/
|
|
4
|
+
import { z } from 'zod';
|
|
5
|
+
/**
|
|
6
|
+
* User definition schema
|
|
7
|
+
*/
|
|
8
|
+
export declare const UserDefinitionSchema: z.ZodObject<{
|
|
9
|
+
username: z.ZodString;
|
|
10
|
+
uid: z.ZodNumber;
|
|
11
|
+
gid: z.ZodNumber;
|
|
12
|
+
shell: z.ZodString;
|
|
13
|
+
home: z.ZodString;
|
|
14
|
+
realname: z.ZodString;
|
|
15
|
+
groups: z.ZodArray<z.ZodString>;
|
|
16
|
+
}, z.core.$strip>;
|
|
17
|
+
/**
|
|
18
|
+
* Group definition schema
|
|
19
|
+
*/
|
|
20
|
+
export declare const GroupDefinitionSchema: z.ZodObject<{
|
|
21
|
+
name: z.ZodString;
|
|
22
|
+
gid: z.ZodNumber;
|
|
23
|
+
description: z.ZodString;
|
|
24
|
+
}, z.core.$strip>;
|
|
25
|
+
/**
|
|
26
|
+
* User configuration schema
|
|
27
|
+
*/
|
|
28
|
+
export declare const UserConfigSchema: z.ZodObject<{
|
|
29
|
+
agentUser: z.ZodObject<{
|
|
30
|
+
username: z.ZodString;
|
|
31
|
+
uid: z.ZodNumber;
|
|
32
|
+
gid: z.ZodNumber;
|
|
33
|
+
shell: z.ZodString;
|
|
34
|
+
home: z.ZodString;
|
|
35
|
+
realname: z.ZodString;
|
|
36
|
+
groups: z.ZodArray<z.ZodString>;
|
|
37
|
+
}, z.core.$strip>;
|
|
38
|
+
brokerUser: z.ZodObject<{
|
|
39
|
+
username: z.ZodString;
|
|
40
|
+
uid: z.ZodNumber;
|
|
41
|
+
gid: z.ZodNumber;
|
|
42
|
+
shell: z.ZodString;
|
|
43
|
+
home: z.ZodString;
|
|
44
|
+
realname: z.ZodString;
|
|
45
|
+
groups: z.ZodArray<z.ZodString>;
|
|
46
|
+
}, z.core.$strip>;
|
|
47
|
+
groups: z.ZodObject<{
|
|
48
|
+
socket: z.ZodObject<{
|
|
49
|
+
name: z.ZodString;
|
|
50
|
+
gid: z.ZodNumber;
|
|
51
|
+
description: z.ZodString;
|
|
52
|
+
}, z.core.$strip>;
|
|
53
|
+
workspace: z.ZodObject<{
|
|
54
|
+
name: z.ZodString;
|
|
55
|
+
gid: z.ZodNumber;
|
|
56
|
+
description: z.ZodString;
|
|
57
|
+
}, z.core.$strip>;
|
|
58
|
+
}, z.core.$strip>;
|
|
59
|
+
prefix: z.ZodDefault<z.ZodString>;
|
|
60
|
+
baseName: z.ZodDefault<z.ZodString>;
|
|
61
|
+
baseUid: z.ZodDefault<z.ZodNumber>;
|
|
62
|
+
baseGid: z.ZodDefault<z.ZodNumber>;
|
|
63
|
+
}, z.core.$strip>;
|
|
64
|
+
/**
|
|
65
|
+
* Paths configuration schema
|
|
66
|
+
*/
|
|
67
|
+
export declare const PathsConfigSchema: z.ZodObject<{
|
|
68
|
+
socketPath: z.ZodDefault<z.ZodString>;
|
|
69
|
+
configDir: z.ZodDefault<z.ZodString>;
|
|
70
|
+
policiesDir: z.ZodDefault<z.ZodString>;
|
|
71
|
+
seatbeltDir: z.ZodDefault<z.ZodString>;
|
|
72
|
+
logDir: z.ZodDefault<z.ZodString>;
|
|
73
|
+
agentHomeDir: z.ZodDefault<z.ZodString>;
|
|
74
|
+
socketDir: z.ZodDefault<z.ZodString>;
|
|
75
|
+
}, z.core.$strip>;
|
|
76
|
+
/**
|
|
77
|
+
* Installation configuration schema
|
|
78
|
+
*/
|
|
79
|
+
export declare const InstallationConfigSchema: z.ZodObject<{
|
|
80
|
+
users: z.ZodObject<{
|
|
81
|
+
agentUser: z.ZodObject<{
|
|
82
|
+
username: z.ZodString;
|
|
83
|
+
uid: z.ZodNumber;
|
|
84
|
+
gid: z.ZodNumber;
|
|
85
|
+
shell: z.ZodString;
|
|
86
|
+
home: z.ZodString;
|
|
87
|
+
realname: z.ZodString;
|
|
88
|
+
groups: z.ZodArray<z.ZodString>;
|
|
89
|
+
}, z.core.$strip>;
|
|
90
|
+
brokerUser: z.ZodObject<{
|
|
91
|
+
username: z.ZodString;
|
|
92
|
+
uid: z.ZodNumber;
|
|
93
|
+
gid: z.ZodNumber;
|
|
94
|
+
shell: z.ZodString;
|
|
95
|
+
home: z.ZodString;
|
|
96
|
+
realname: z.ZodString;
|
|
97
|
+
groups: z.ZodArray<z.ZodString>;
|
|
98
|
+
}, z.core.$strip>;
|
|
99
|
+
groups: z.ZodObject<{
|
|
100
|
+
socket: z.ZodObject<{
|
|
101
|
+
name: z.ZodString;
|
|
102
|
+
gid: z.ZodNumber;
|
|
103
|
+
description: z.ZodString;
|
|
104
|
+
}, z.core.$strip>;
|
|
105
|
+
workspace: z.ZodObject<{
|
|
106
|
+
name: z.ZodString;
|
|
107
|
+
gid: z.ZodNumber;
|
|
108
|
+
description: z.ZodString;
|
|
109
|
+
}, z.core.$strip>;
|
|
110
|
+
}, z.core.$strip>;
|
|
111
|
+
prefix: z.ZodDefault<z.ZodString>;
|
|
112
|
+
baseName: z.ZodDefault<z.ZodString>;
|
|
113
|
+
baseUid: z.ZodDefault<z.ZodNumber>;
|
|
114
|
+
baseGid: z.ZodDefault<z.ZodNumber>;
|
|
115
|
+
}, z.core.$strip>;
|
|
116
|
+
paths: z.ZodObject<{
|
|
117
|
+
socketPath: z.ZodDefault<z.ZodString>;
|
|
118
|
+
configDir: z.ZodDefault<z.ZodString>;
|
|
119
|
+
policiesDir: z.ZodDefault<z.ZodString>;
|
|
120
|
+
seatbeltDir: z.ZodDefault<z.ZodString>;
|
|
121
|
+
logDir: z.ZodDefault<z.ZodString>;
|
|
122
|
+
agentHomeDir: z.ZodDefault<z.ZodString>;
|
|
123
|
+
socketDir: z.ZodDefault<z.ZodString>;
|
|
124
|
+
}, z.core.$strip>;
|
|
125
|
+
httpFallback: z.ZodDefault<z.ZodBoolean>;
|
|
126
|
+
httpPort: z.ZodDefault<z.ZodNumber>;
|
|
127
|
+
}, z.core.$strip>;
|
|
128
|
+
export declare const DaemonConfigSchema: z.ZodObject<{
|
|
129
|
+
port: z.ZodDefault<z.ZodNumber>;
|
|
130
|
+
host: z.ZodDefault<z.ZodString>;
|
|
131
|
+
logLevel: z.ZodDefault<z.ZodEnum<{
|
|
132
|
+
info: "info";
|
|
133
|
+
debug: "debug";
|
|
134
|
+
warn: "warn";
|
|
135
|
+
error: "error";
|
|
136
|
+
}>>;
|
|
137
|
+
enableHostsEntry: z.ZodDefault<z.ZodBoolean>;
|
|
138
|
+
}, z.core.$strip>;
|
|
139
|
+
export declare const PolicyConfigSchema: z.ZodObject<{
|
|
140
|
+
id: z.ZodString;
|
|
141
|
+
name: z.ZodString;
|
|
142
|
+
action: z.ZodEnum<{
|
|
143
|
+
allow: "allow";
|
|
144
|
+
deny: "deny";
|
|
145
|
+
approval: "approval";
|
|
146
|
+
}>;
|
|
147
|
+
target: z.ZodEnum<{
|
|
148
|
+
filesystem: "filesystem";
|
|
149
|
+
command: "command";
|
|
150
|
+
skill: "skill";
|
|
151
|
+
url: "url";
|
|
152
|
+
}>;
|
|
153
|
+
patterns: z.ZodArray<z.ZodString>;
|
|
154
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
155
|
+
operations: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
156
|
+
}, z.core.$strip>;
|
|
157
|
+
export declare const VaultConfigSchema: z.ZodObject<{
|
|
158
|
+
enabled: z.ZodBoolean;
|
|
159
|
+
provider: z.ZodEnum<{
|
|
160
|
+
env: "env";
|
|
161
|
+
local: "local";
|
|
162
|
+
}>;
|
|
163
|
+
}, z.core.$strip>;
|
|
164
|
+
export declare const ShieldConfigSchema: z.ZodObject<{
|
|
165
|
+
version: z.ZodString;
|
|
166
|
+
daemon: z.ZodObject<{
|
|
167
|
+
port: z.ZodDefault<z.ZodNumber>;
|
|
168
|
+
host: z.ZodDefault<z.ZodString>;
|
|
169
|
+
logLevel: z.ZodDefault<z.ZodEnum<{
|
|
170
|
+
info: "info";
|
|
171
|
+
debug: "debug";
|
|
172
|
+
warn: "warn";
|
|
173
|
+
error: "error";
|
|
174
|
+
}>>;
|
|
175
|
+
enableHostsEntry: z.ZodDefault<z.ZodBoolean>;
|
|
176
|
+
}, z.core.$strip>;
|
|
177
|
+
policies: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
178
|
+
id: z.ZodString;
|
|
179
|
+
name: z.ZodString;
|
|
180
|
+
action: z.ZodEnum<{
|
|
181
|
+
allow: "allow";
|
|
182
|
+
deny: "deny";
|
|
183
|
+
approval: "approval";
|
|
184
|
+
}>;
|
|
185
|
+
target: z.ZodEnum<{
|
|
186
|
+
filesystem: "filesystem";
|
|
187
|
+
command: "command";
|
|
188
|
+
skill: "skill";
|
|
189
|
+
url: "url";
|
|
190
|
+
}>;
|
|
191
|
+
patterns: z.ZodArray<z.ZodString>;
|
|
192
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
193
|
+
operations: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
194
|
+
}, z.core.$strip>>>;
|
|
195
|
+
vault: z.ZodOptional<z.ZodObject<{
|
|
196
|
+
enabled: z.ZodBoolean;
|
|
197
|
+
provider: z.ZodEnum<{
|
|
198
|
+
env: "env";
|
|
199
|
+
local: "local";
|
|
200
|
+
}>;
|
|
201
|
+
}, z.core.$strip>>;
|
|
202
|
+
}, z.core.$strip>;
|
|
203
|
+
export type DaemonConfigInput = z.input<typeof DaemonConfigSchema>;
|
|
204
|
+
export type DaemonConfigOutput = z.output<typeof DaemonConfigSchema>;
|
|
205
|
+
export type PolicyConfigInput = z.input<typeof PolicyConfigSchema>;
|
|
206
|
+
export type ShieldConfigInput = z.input<typeof ShieldConfigSchema>;
|
|
207
|
+
export type ShieldConfigOutput = z.output<typeof ShieldConfigSchema>;
|
|
208
|
+
export type UserDefinitionInput = z.input<typeof UserDefinitionSchema>;
|
|
209
|
+
export type UserDefinitionOutput = z.output<typeof UserDefinitionSchema>;
|
|
210
|
+
export type GroupDefinitionInput = z.input<typeof GroupDefinitionSchema>;
|
|
211
|
+
export type GroupDefinitionOutput = z.output<typeof GroupDefinitionSchema>;
|
|
212
|
+
export type UserConfigInput = z.input<typeof UserConfigSchema>;
|
|
213
|
+
export type UserConfigOutput = z.output<typeof UserConfigSchema>;
|
|
214
|
+
export type PathsConfigInput = z.input<typeof PathsConfigSchema>;
|
|
215
|
+
export type PathsConfigOutput = z.output<typeof PathsConfigSchema>;
|
|
216
|
+
export type InstallationConfigInput = z.input<typeof InstallationConfigSchema>;
|
|
217
|
+
export type InstallationConfigOutput = z.output<typeof InstallationConfigSchema>;
|
|
218
|
+
//# sourceMappingURL=config.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.schema.d.ts","sourceRoot":"","sources":["../../src/schemas/config.schema.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;GAEG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;iBAQ/B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,qBAAqB;;;;iBAIhC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAW3B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;iBAQ5B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAKnC,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;;;;;;;;iBAK7B,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;iBAQ7B,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;;;;iBAG5B,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAK7B,CAAC;AAGH,MAAM,MAAM,iBAAi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@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Re-export all schemas
|
|
3
|
+
*/
|
|
4
|
+
export * from './config.schema';
|
|
5
|
+
export * from './ops.schema';
|
|
6
|
+
export * from './policy.schema';
|
|
7
|
+
export * from './agenco.schema';
|
|
8
|
+
export * from './state.schema';
|
|
9
|
+
export * from './vault.schema';
|
|
10
|
+
export * from './auth.schema';
|
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC"}
|