@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
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Zod schemas for broker operations
|
|
3
|
+
*/
|
|
4
|
+
import { z } from 'zod';
|
|
5
|
+
export declare const OperationTypeSchema: z.ZodEnum<{
|
|
6
|
+
ping: "ping";
|
|
7
|
+
http_request: "http_request";
|
|
8
|
+
file_read: "file_read";
|
|
9
|
+
file_write: "file_write";
|
|
10
|
+
file_list: "file_list";
|
|
11
|
+
exec: "exec";
|
|
12
|
+
open_url: "open_url";
|
|
13
|
+
secret_inject: "secret_inject";
|
|
14
|
+
policy_check: "policy_check";
|
|
15
|
+
}>;
|
|
16
|
+
export declare const HttpRequestParamsSchema: z.ZodObject<{
|
|
17
|
+
url: z.ZodString;
|
|
18
|
+
method: z.ZodOptional<z.ZodEnum<{
|
|
19
|
+
GET: "GET";
|
|
20
|
+
POST: "POST";
|
|
21
|
+
PUT: "PUT";
|
|
22
|
+
DELETE: "DELETE";
|
|
23
|
+
PATCH: "PATCH";
|
|
24
|
+
HEAD: "HEAD";
|
|
25
|
+
OPTIONS: "OPTIONS";
|
|
26
|
+
}>>;
|
|
27
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
28
|
+
body: z.ZodOptional<z.ZodString>;
|
|
29
|
+
timeout: z.ZodOptional<z.ZodNumber>;
|
|
30
|
+
followRedirects: z.ZodOptional<z.ZodBoolean>;
|
|
31
|
+
}, z.core.$strip>;
|
|
32
|
+
export declare const FileReadParamsSchema: z.ZodObject<{
|
|
33
|
+
path: z.ZodString;
|
|
34
|
+
encoding: z.ZodOptional<z.ZodString>;
|
|
35
|
+
}, z.core.$strip>;
|
|
36
|
+
export declare const FileWriteParamsSchema: z.ZodObject<{
|
|
37
|
+
path: z.ZodString;
|
|
38
|
+
content: z.ZodString;
|
|
39
|
+
encoding: z.ZodOptional<z.ZodString>;
|
|
40
|
+
mode: z.ZodOptional<z.ZodNumber>;
|
|
41
|
+
}, z.core.$strip>;
|
|
42
|
+
export declare const FileListParamsSchema: z.ZodObject<{
|
|
43
|
+
path: z.ZodString;
|
|
44
|
+
recursive: z.ZodOptional<z.ZodBoolean>;
|
|
45
|
+
pattern: z.ZodOptional<z.ZodString>;
|
|
46
|
+
}, z.core.$strip>;
|
|
47
|
+
export declare const ExecParamsSchema: z.ZodObject<{
|
|
48
|
+
command: z.ZodString;
|
|
49
|
+
args: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
50
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
51
|
+
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
52
|
+
timeout: z.ZodOptional<z.ZodNumber>;
|
|
53
|
+
shell: z.ZodOptional<z.ZodBoolean>;
|
|
54
|
+
}, z.core.$strip>;
|
|
55
|
+
export declare const OpenUrlParamsSchema: z.ZodObject<{
|
|
56
|
+
url: z.ZodString;
|
|
57
|
+
browser: z.ZodOptional<z.ZodString>;
|
|
58
|
+
}, z.core.$strip>;
|
|
59
|
+
export declare const SecretInjectParamsSchema: z.ZodObject<{
|
|
60
|
+
name: z.ZodString;
|
|
61
|
+
targetEnv: z.ZodOptional<z.ZodString>;
|
|
62
|
+
}, z.core.$strip>;
|
|
63
|
+
export declare const PingParamsSchema: z.ZodObject<{
|
|
64
|
+
echo: z.ZodOptional<z.ZodString>;
|
|
65
|
+
}, z.core.$strip>;
|
|
66
|
+
export declare const PolicyCheckParamsSchema: z.ZodObject<{
|
|
67
|
+
operation: z.ZodEnum<{
|
|
68
|
+
ping: "ping";
|
|
69
|
+
http_request: "http_request";
|
|
70
|
+
file_read: "file_read";
|
|
71
|
+
file_write: "file_write";
|
|
72
|
+
file_list: "file_list";
|
|
73
|
+
exec: "exec";
|
|
74
|
+
open_url: "open_url";
|
|
75
|
+
secret_inject: "secret_inject";
|
|
76
|
+
policy_check: "policy_check";
|
|
77
|
+
}>;
|
|
78
|
+
target: z.ZodString;
|
|
79
|
+
}, z.core.$strip>;
|
|
80
|
+
export declare const BrokerRequestSchema: z.ZodObject<{
|
|
81
|
+
jsonrpc: z.ZodLiteral<"2.0">;
|
|
82
|
+
id: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
83
|
+
method: z.ZodEnum<{
|
|
84
|
+
ping: "ping";
|
|
85
|
+
http_request: "http_request";
|
|
86
|
+
file_read: "file_read";
|
|
87
|
+
file_write: "file_write";
|
|
88
|
+
file_list: "file_list";
|
|
89
|
+
exec: "exec";
|
|
90
|
+
open_url: "open_url";
|
|
91
|
+
secret_inject: "secret_inject";
|
|
92
|
+
policy_check: "policy_check";
|
|
93
|
+
}>;
|
|
94
|
+
params: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
95
|
+
channel: z.ZodOptional<z.ZodEnum<{
|
|
96
|
+
http: "http";
|
|
97
|
+
socket: "socket";
|
|
98
|
+
}>>;
|
|
99
|
+
}, z.core.$strip>;
|
|
100
|
+
export declare const BrokerErrorSchema: z.ZodObject<{
|
|
101
|
+
code: z.ZodNumber;
|
|
102
|
+
message: z.ZodString;
|
|
103
|
+
data: z.ZodOptional<z.ZodUnknown>;
|
|
104
|
+
}, z.core.$strip>;
|
|
105
|
+
export declare const BrokerResponseSchema: z.ZodObject<{
|
|
106
|
+
jsonrpc: z.ZodLiteral<"2.0">;
|
|
107
|
+
id: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
108
|
+
result: z.ZodOptional<z.ZodUnknown>;
|
|
109
|
+
error: z.ZodOptional<z.ZodObject<{
|
|
110
|
+
code: z.ZodNumber;
|
|
111
|
+
message: z.ZodString;
|
|
112
|
+
data: z.ZodOptional<z.ZodUnknown>;
|
|
113
|
+
}, z.core.$strip>>;
|
|
114
|
+
}, z.core.$strip>;
|
|
115
|
+
export type OperationType = z.infer<typeof OperationTypeSchema>;
|
|
116
|
+
export type HttpRequestParams = z.infer<typeof HttpRequestParamsSchema>;
|
|
117
|
+
export type FileReadParams = z.infer<typeof FileReadParamsSchema>;
|
|
118
|
+
export type FileWriteParams = z.infer<typeof FileWriteParamsSchema>;
|
|
119
|
+
export type FileListParams = z.infer<typeof FileListParamsSchema>;
|
|
120
|
+
export type ExecParams = z.infer<typeof ExecParamsSchema>;
|
|
121
|
+
export type OpenUrlParams = z.infer<typeof OpenUrlParamsSchema>;
|
|
122
|
+
export type SecretInjectParams = z.infer<typeof SecretInjectParamsSchema>;
|
|
123
|
+
export type PingParams = z.infer<typeof PingParamsSchema>;
|
|
124
|
+
export type PolicyCheckParams = z.infer<typeof PolicyCheckParamsSchema>;
|
|
125
|
+
export type BrokerRequest = z.infer<typeof BrokerRequestSchema>;
|
|
126
|
+
export type BrokerError = z.infer<typeof BrokerErrorSchema>;
|
|
127
|
+
export type BrokerResponse = z.infer<typeof BrokerResponseSchema>;
|
|
128
|
+
//# sourceMappingURL=ops.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ops.schema.d.ts","sourceRoot":"","sources":["../../src/schemas/ops.schema.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,mBAAmB;;;;;;;;;;EAU9B,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;iBAOlC,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;iBAG/B,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;iBAKhC,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;iBAI/B,CAAC;AAEH,eAAO,MAAM,gBAAgB;;;;;;;iBAO3B,CAAC;AAEH,eAAO,MAAM,mBAAmB;;;iBAG9B,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;iBAGnC,CAAC;AAEH,e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,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Zod schemas for policy types
|
|
3
|
+
*/
|
|
4
|
+
import { z } from 'zod';
|
|
5
|
+
export declare const PolicyRuleSchema: z.ZodObject<{
|
|
6
|
+
id: z.ZodString;
|
|
7
|
+
name: z.ZodString;
|
|
8
|
+
action: z.ZodEnum<{
|
|
9
|
+
allow: "allow";
|
|
10
|
+
deny: "deny";
|
|
11
|
+
approval: "approval";
|
|
12
|
+
}>;
|
|
13
|
+
target: z.ZodEnum<{
|
|
14
|
+
filesystem: "filesystem";
|
|
15
|
+
command: "command";
|
|
16
|
+
skill: "skill";
|
|
17
|
+
url: "url";
|
|
18
|
+
}>;
|
|
19
|
+
operations: z.ZodArray<z.ZodEnum<{
|
|
20
|
+
ping: "ping";
|
|
21
|
+
http_request: "http_request";
|
|
22
|
+
file_read: "file_read";
|
|
23
|
+
file_write: "file_write";
|
|
24
|
+
file_list: "file_list";
|
|
25
|
+
exec: "exec";
|
|
26
|
+
open_url: "open_url";
|
|
27
|
+
secret_inject: "secret_inject";
|
|
28
|
+
policy_check: "policy_check";
|
|
29
|
+
}>>;
|
|
30
|
+
patterns: z.ZodArray<z.ZodString>;
|
|
31
|
+
enabled: z.ZodBoolean;
|
|
32
|
+
priority: z.ZodOptional<z.ZodNumber>;
|
|
33
|
+
}, z.core.$strip>;
|
|
34
|
+
export declare const FsConstraintsSchema: z.ZodObject<{
|
|
35
|
+
allowedPaths: z.ZodArray<z.ZodString>;
|
|
36
|
+
deniedPatterns: z.ZodArray<z.ZodString>;
|
|
37
|
+
}, z.core.$strip>;
|
|
38
|
+
export declare const NetworkConstraintsSchema: z.ZodObject<{
|
|
39
|
+
allowedHosts: z.ZodArray<z.ZodString>;
|
|
40
|
+
deniedHosts: z.ZodArray<z.ZodString>;
|
|
41
|
+
allowedPorts: z.ZodArray<z.ZodNumber>;
|
|
42
|
+
}, z.core.$strip>;
|
|
43
|
+
export declare const EnvInjectionRuleSchema: z.ZodObject<{
|
|
44
|
+
secretName: z.ZodString;
|
|
45
|
+
targetEnv: z.ZodString;
|
|
46
|
+
operations: z.ZodArray<z.ZodEnum<{
|
|
47
|
+
ping: "ping";
|
|
48
|
+
http_request: "http_request";
|
|
49
|
+
file_read: "file_read";
|
|
50
|
+
file_write: "file_write";
|
|
51
|
+
file_list: "file_list";
|
|
52
|
+
exec: "exec";
|
|
53
|
+
open_url: "open_url";
|
|
54
|
+
secret_inject: "secret_inject";
|
|
55
|
+
policy_check: "policy_check";
|
|
56
|
+
}>>;
|
|
57
|
+
}, z.core.$strip>;
|
|
58
|
+
export declare const PolicyConfigurationSchema: z.ZodObject<{
|
|
59
|
+
version: z.ZodString;
|
|
60
|
+
rules: z.ZodArray<z.ZodObject<{
|
|
61
|
+
id: z.ZodString;
|
|
62
|
+
name: z.ZodString;
|
|
63
|
+
action: z.ZodEnum<{
|
|
64
|
+
allow: "allow";
|
|
65
|
+
deny: "deny";
|
|
66
|
+
approval: "approval";
|
|
67
|
+
}>;
|
|
68
|
+
target: z.ZodEnum<{
|
|
69
|
+
filesystem: "filesystem";
|
|
70
|
+
command: "command";
|
|
71
|
+
skill: "skill";
|
|
72
|
+
url: "url";
|
|
73
|
+
}>;
|
|
74
|
+
operations: z.ZodArray<z.ZodEnum<{
|
|
75
|
+
ping: "ping";
|
|
76
|
+
http_request: "http_request";
|
|
77
|
+
file_read: "file_read";
|
|
78
|
+
file_write: "file_write";
|
|
79
|
+
file_list: "file_list";
|
|
80
|
+
exec: "exec";
|
|
81
|
+
open_url: "open_url";
|
|
82
|
+
secret_inject: "secret_inject";
|
|
83
|
+
policy_check: "policy_check";
|
|
84
|
+
}>>;
|
|
85
|
+
patterns: z.ZodArray<z.ZodString>;
|
|
86
|
+
enabled: z.ZodBoolean;
|
|
87
|
+
priority: z.ZodOptional<z.ZodNumber>;
|
|
88
|
+
}, z.core.$strip>>;
|
|
89
|
+
defaultAction: z.ZodEnum<{
|
|
90
|
+
allow: "allow";
|
|
91
|
+
deny: "deny";
|
|
92
|
+
}>;
|
|
93
|
+
fsConstraints: z.ZodOptional<z.ZodObject<{
|
|
94
|
+
allowedPaths: z.ZodArray<z.ZodString>;
|
|
95
|
+
deniedPatterns: z.ZodArray<z.ZodString>;
|
|
96
|
+
}, z.core.$strip>>;
|
|
97
|
+
networkConstraints: z.ZodOptional<z.ZodObject<{
|
|
98
|
+
allowedHosts: z.ZodArray<z.ZodString>;
|
|
99
|
+
deniedHosts: z.ZodArray<z.ZodString>;
|
|
100
|
+
allowedPorts: z.ZodArray<z.ZodNumber>;
|
|
101
|
+
}, z.core.$strip>>;
|
|
102
|
+
envInjection: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
103
|
+
secretName: z.ZodString;
|
|
104
|
+
targetEnv: z.ZodString;
|
|
105
|
+
operations: z.ZodArray<z.ZodEnum<{
|
|
106
|
+
ping: "ping";
|
|
107
|
+
http_request: "http_request";
|
|
108
|
+
file_read: "file_read";
|
|
109
|
+
file_write: "file_write";
|
|
110
|
+
file_list: "file_list";
|
|
111
|
+
exec: "exec";
|
|
112
|
+
open_url: "open_url";
|
|
113
|
+
secret_inject: "secret_inject";
|
|
114
|
+
policy_check: "policy_check";
|
|
115
|
+
}>>;
|
|
116
|
+
}, z.core.$strip>>>;
|
|
117
|
+
}, z.core.$strip>;
|
|
118
|
+
export declare const PolicyEvaluationResultSchema: z.ZodObject<{
|
|
119
|
+
allowed: z.ZodBoolean;
|
|
120
|
+
policyId: z.ZodOptional<z.ZodString>;
|
|
121
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
122
|
+
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
123
|
+
}, z.core.$strip>;
|
|
124
|
+
export declare const ChannelRestrictionSchema: z.ZodObject<{
|
|
125
|
+
operation: z.ZodEnum<{
|
|
126
|
+
ping: "ping";
|
|
127
|
+
http_request: "http_request";
|
|
128
|
+
file_read: "file_read";
|
|
129
|
+
file_write: "file_write";
|
|
130
|
+
file_list: "file_list";
|
|
131
|
+
exec: "exec";
|
|
132
|
+
open_url: "open_url";
|
|
133
|
+
secret_inject: "secret_inject";
|
|
134
|
+
policy_check: "policy_check";
|
|
135
|
+
}>;
|
|
136
|
+
allowedChannels: z.ZodArray<z.ZodEnum<{
|
|
137
|
+
http: "http";
|
|
138
|
+
socket: "socket";
|
|
139
|
+
}>>;
|
|
140
|
+
}, z.core.$strip>;
|
|
141
|
+
export type PolicyRule = z.infer<typeof PolicyRuleSchema>;
|
|
142
|
+
export type FsConstraints = z.infer<typeof FsConstraintsSchema>;
|
|
143
|
+
export type NetworkConstraints = z.infer<typeof NetworkConstraintsSchema>;
|
|
144
|
+
export type EnvInjectionRule = z.infer<typeof EnvInjectionRuleSchema>;
|
|
145
|
+
export type PolicyConfiguration = z.infer<typeof PolicyConfigurationSchema>;
|
|
146
|
+
export type PolicyEvaluationResult = z.infer<typeof PolicyEvaluationResultSchema>;
|
|
147
|
+
export type ChannelRestriction = z.infer<typeof ChannelRestrictionSchema>;
|
|
148
|
+
//# sourceMappingURL=policy.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"policy.schema.d.ts","sourceRoot":"","sources":["../../src/schemas/policy.schema.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAS3B,CAAC;AAEH,eAAO,MAAM,mBAAmB;;;iBAG9B,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;iBAInC,CAAC;AAEH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;iBAIjC,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAOpC,CAAC;AAEH,eAAO,MAAM,4BAA4B;;;;;iBAKvC,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;iBAGnC,CAAC;AAGH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAC1D,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAChE,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAC1E,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AACtE,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAC5E,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAClF,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC"}
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Zod schemas for system state validation
|
|
3
|
+
*/
|
|
4
|
+
import { z } from 'zod';
|
|
5
|
+
/**
|
|
6
|
+
* Daemon state schema
|
|
7
|
+
*/
|
|
8
|
+
export declare const DaemonStateSchema: z.ZodObject<{
|
|
9
|
+
running: z.ZodBoolean;
|
|
10
|
+
pid: z.ZodOptional<z.ZodNumber>;
|
|
11
|
+
startedAt: z.ZodOptional<z.ZodString>;
|
|
12
|
+
port: z.ZodNumber;
|
|
13
|
+
}, z.core.$strip>;
|
|
14
|
+
/**
|
|
15
|
+
* User state schema
|
|
16
|
+
*/
|
|
17
|
+
export declare const UserStateSchema: z.ZodObject<{
|
|
18
|
+
username: z.ZodString;
|
|
19
|
+
uid: z.ZodNumber;
|
|
20
|
+
type: z.ZodEnum<{
|
|
21
|
+
agent: "agent";
|
|
22
|
+
broker: "broker";
|
|
23
|
+
}>;
|
|
24
|
+
createdAt: z.ZodString;
|
|
25
|
+
homeDir: z.ZodString;
|
|
26
|
+
}, z.core.$strip>;
|
|
27
|
+
/**
|
|
28
|
+
* Group state schema
|
|
29
|
+
*/
|
|
30
|
+
export declare const GroupStateSchema: z.ZodObject<{
|
|
31
|
+
name: z.ZodString;
|
|
32
|
+
gid: z.ZodNumber;
|
|
33
|
+
type: z.ZodEnum<{
|
|
34
|
+
socket: "socket";
|
|
35
|
+
workspace: "workspace";
|
|
36
|
+
}>;
|
|
37
|
+
}, z.core.$strip>;
|
|
38
|
+
/**
|
|
39
|
+
* AgenCo state schema
|
|
40
|
+
*/
|
|
41
|
+
export declare const AgenCoStateSchema: z.ZodObject<{
|
|
42
|
+
authenticated: z.ZodBoolean;
|
|
43
|
+
lastAuthAt: z.ZodOptional<z.ZodString>;
|
|
44
|
+
connectedIntegrations: z.ZodArray<z.ZodString>;
|
|
45
|
+
}, z.core.$strip>;
|
|
46
|
+
/**
|
|
47
|
+
* Installation state schema
|
|
48
|
+
*/
|
|
49
|
+
export declare const InstallationStateSchema: z.ZodObject<{
|
|
50
|
+
preset: z.ZodString;
|
|
51
|
+
baseName: z.ZodString;
|
|
52
|
+
prefix: z.ZodOptional<z.ZodString>;
|
|
53
|
+
wrappers: z.ZodArray<z.ZodString>;
|
|
54
|
+
seatbeltInstalled: z.ZodBoolean;
|
|
55
|
+
}, z.core.$strip>;
|
|
56
|
+
/**
|
|
57
|
+
* Passcode protection state schema
|
|
58
|
+
*/
|
|
59
|
+
export declare const PasscodeProtectionStateSchema: z.ZodObject<{
|
|
60
|
+
enabled: z.ZodBoolean;
|
|
61
|
+
allowAnonymousReadOnly: z.ZodOptional<z.ZodBoolean>;
|
|
62
|
+
failedAttempts: z.ZodOptional<z.ZodNumber>;
|
|
63
|
+
lockedUntil: z.ZodOptional<z.ZodString>;
|
|
64
|
+
}, z.core.$strip>;
|
|
65
|
+
/**
|
|
66
|
+
* Complete system state schema
|
|
67
|
+
*/
|
|
68
|
+
export declare const SystemStateSchema: z.ZodObject<{
|
|
69
|
+
version: z.ZodString;
|
|
70
|
+
installedAt: z.ZodString;
|
|
71
|
+
daemon: z.ZodObject<{
|
|
72
|
+
running: z.ZodBoolean;
|
|
73
|
+
pid: z.ZodOptional<z.ZodNumber>;
|
|
74
|
+
startedAt: z.ZodOptional<z.ZodString>;
|
|
75
|
+
port: z.ZodNumber;
|
|
76
|
+
}, z.core.$strip>;
|
|
77
|
+
users: z.ZodArray<z.ZodObject<{
|
|
78
|
+
username: z.ZodString;
|
|
79
|
+
uid: z.ZodNumber;
|
|
80
|
+
type: z.ZodEnum<{
|
|
81
|
+
agent: "agent";
|
|
82
|
+
broker: "broker";
|
|
83
|
+
}>;
|
|
84
|
+
createdAt: z.ZodString;
|
|
85
|
+
homeDir: z.ZodString;
|
|
86
|
+
}, z.core.$strip>>;
|
|
87
|
+
groups: z.ZodArray<z.ZodObject<{
|
|
88
|
+
name: z.ZodString;
|
|
89
|
+
gid: z.ZodNumber;
|
|
90
|
+
type: z.ZodEnum<{
|
|
91
|
+
socket: "socket";
|
|
92
|
+
workspace: "workspace";
|
|
93
|
+
}>;
|
|
94
|
+
}, z.core.$strip>>;
|
|
95
|
+
agenco: z.ZodObject<{
|
|
96
|
+
authenticated: z.ZodBoolean;
|
|
97
|
+
lastAuthAt: z.ZodOptional<z.ZodString>;
|
|
98
|
+
connectedIntegrations: z.ZodArray<z.ZodString>;
|
|
99
|
+
}, z.core.$strip>;
|
|
100
|
+
installation: z.ZodObject<{
|
|
101
|
+
preset: z.ZodString;
|
|
102
|
+
baseName: z.ZodString;
|
|
103
|
+
prefix: z.ZodOptional<z.ZodString>;
|
|
104
|
+
wrappers: z.ZodArray<z.ZodString>;
|
|
105
|
+
seatbeltInstalled: z.ZodBoolean;
|
|
106
|
+
}, z.core.$strip>;
|
|
107
|
+
passcodeProtection: z.ZodOptional<z.ZodObject<{
|
|
108
|
+
enabled: z.ZodBoolean;
|
|
109
|
+
allowAnonymousReadOnly: z.ZodOptional<z.ZodBoolean>;
|
|
110
|
+
failedAttempts: z.ZodOptional<z.ZodNumber>;
|
|
111
|
+
lockedUntil: z.ZodOptional<z.ZodString>;
|
|
112
|
+
}, z.core.$strip>>;
|
|
113
|
+
}, z.core.$strip>;
|
|
114
|
+
export type DaemonStateInput = z.input<typeof DaemonStateSchema>;
|
|
115
|
+
export type DaemonStateOutput = z.output<typeof DaemonStateSchema>;
|
|
116
|
+
export type UserStateInput = z.input<typeof UserStateSchema>;
|
|
117
|
+
export type UserStateOutput = z.output<typeof UserStateSchema>;
|
|
118
|
+
export type GroupStateInput = z.input<typeof GroupStateSchema>;
|
|
119
|
+
export type GroupStateOutput = z.output<typeof GroupStateSchema>;
|
|
120
|
+
export type AgenCoStateInput = z.input<typeof AgenCoStateSchema>;
|
|
121
|
+
export type AgenCoStateOutput = z.output<typeof AgenCoStateSchema>;
|
|
122
|
+
export type InstallationStateInput = z.input<typeof InstallationStateSchema>;
|
|
123
|
+
export type InstallationStateOutput = z.output<typeof InstallationStateSchema>;
|
|
124
|
+
export type PasscodeProtectionStateInput = z.input<typeof PasscodeProtectionStateSchema>;
|
|
125
|
+
export type PasscodeProtectionStateOutput = z.output<typeof PasscodeProtectionStateSchema>;
|
|
126
|
+
export type SystemStateInput = z.input<typeof SystemStateSchema>;
|
|
127
|
+
export type SystemStateOutput = z.output<typeof SystemStateSchema>;
|
|
128
|
+
//# sourceMappingURL=state.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"state.schema.d.ts","sourceRoot":"","sources":["../../src/schemas/state.schema.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;GAEG;AACH,eAAO,MAAM,iBAAiB;;;;;iBAK5B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,eAAe;;;;;;;;;iB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OAAO,6BAA6B,CAAC,CAAC;AACzF,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,6BAA6B,CAAC,CAAC;AAC3F,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AACjE,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,iBAAiB,CAAC,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Zod schemas for vault validation
|
|
3
|
+
*/
|
|
4
|
+
import { z } from 'zod';
|
|
5
|
+
/**
|
|
6
|
+
* AgenCo secrets schema
|
|
7
|
+
*/
|
|
8
|
+
export declare const AgenCoSecretsSchema: z.ZodObject<{
|
|
9
|
+
accessToken: z.ZodString;
|
|
10
|
+
refreshToken: z.ZodString;
|
|
11
|
+
expiresAt: z.ZodNumber;
|
|
12
|
+
clientId: z.ZodString;
|
|
13
|
+
clientSecret: z.ZodString;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
/**
|
|
16
|
+
* Vault contents schema
|
|
17
|
+
*/
|
|
18
|
+
export declare const VaultContentsSchema: z.ZodObject<{
|
|
19
|
+
agenco: z.ZodOptional<z.ZodObject<{
|
|
20
|
+
accessToken: z.ZodString;
|
|
21
|
+
refreshToken: z.ZodString;
|
|
22
|
+
expiresAt: z.ZodNumber;
|
|
23
|
+
clientId: z.ZodString;
|
|
24
|
+
clientSecret: z.ZodString;
|
|
25
|
+
}, z.core.$strip>>;
|
|
26
|
+
envSecrets: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
27
|
+
sensitivePatterns: z.ZodArray<z.ZodString>;
|
|
28
|
+
passcode: z.ZodOptional<z.ZodObject<{
|
|
29
|
+
hash: z.ZodString;
|
|
30
|
+
setAt: z.ZodString;
|
|
31
|
+
changedAt: z.ZodOptional<z.ZodString>;
|
|
32
|
+
}, z.core.$strip>>;
|
|
33
|
+
}, z.core.$strip>;
|
|
34
|
+
export type AgenCoSecretsInput = z.input<typeof AgenCoSecretsSchema>;
|
|
35
|
+
export type AgenCoSecretsOutput = z.output<typeof AgenCoSecretsSchema>;
|
|
36
|
+
export type VaultContentsInput = z.input<typeof VaultContentsSchema>;
|
|
37
|
+
export type VaultContentsOutput = z.output<typeof VaultContentsSchema>;
|
|
38
|
+
//# sourceMappingURL=vault.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vault.schema.d.ts","sourceRoot":"","sources":["../../src/schemas/vault.schema.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;GAEG;AACH,eAAO,MAAM,mBAAmB;;;;;;iBAM9B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;iBAK9B,CAAC;AAGH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AACrE,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,mBAAmB,CAAC,CAAC;AACvE,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AACrE,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,mBAAmB,CAAC,CAAC"}
|
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AgenCo API types
|
|
3
|
+
*
|
|
4
|
+
* Request/Response types for AgenCo routes that forward to MCP Gateway
|
|
5
|
+
*/
|
|
6
|
+
/** MCP connection state */
|
|
7
|
+
export type MCPConnectionState = 'disconnected' | 'connecting' | 'connected' | 'error' | 'unauthorized';
|
|
8
|
+
/** MCP status response */
|
|
9
|
+
export interface AgenCoMCPStatusResponse {
|
|
10
|
+
state: MCPConnectionState;
|
|
11
|
+
active: boolean;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Request to start OAuth authentication flow
|
|
15
|
+
*/
|
|
16
|
+
export interface AgenCoAuthStartRequest {
|
|
17
|
+
/** OAuth scopes to request */
|
|
18
|
+
scopes?: string[];
|
|
19
|
+
/** Source of the auth request: CLI, UI popup, or agent delegation */
|
|
20
|
+
source?: 'cli' | 'ui' | 'agent';
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Response from starting OAuth authentication flow
|
|
24
|
+
*/
|
|
25
|
+
export interface AgenCoAuthStartResponse {
|
|
26
|
+
/** URL to redirect user to for authentication */
|
|
27
|
+
authUrl: string;
|
|
28
|
+
/** State parameter for CSRF protection */
|
|
29
|
+
state: string;
|
|
30
|
+
/** Port where callback server is listening */
|
|
31
|
+
callbackPort: number;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Request to complete OAuth authentication (callback)
|
|
35
|
+
*/
|
|
36
|
+
export interface AgenCoAuthCallbackRequest {
|
|
37
|
+
/** Authorization code from OAuth provider */
|
|
38
|
+
code: string;
|
|
39
|
+
/** State parameter for validation */
|
|
40
|
+
state: string;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Response from auth callback
|
|
44
|
+
*/
|
|
45
|
+
export interface AgenCoAuthCallbackResponse {
|
|
46
|
+
success: boolean;
|
|
47
|
+
error?: string;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Response from auth status check
|
|
51
|
+
*/
|
|
52
|
+
export interface AgenCoAuthStatusResponse {
|
|
53
|
+
/** Whether user is authenticated */
|
|
54
|
+
authenticated: boolean;
|
|
55
|
+
/** Whether token is expired */
|
|
56
|
+
expired: boolean;
|
|
57
|
+
/** Token expiration time */
|
|
58
|
+
expiresAt: string | null;
|
|
59
|
+
/** List of connected integration IDs */
|
|
60
|
+
connectedIntegrations: string[];
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Request to run a tool
|
|
64
|
+
*/
|
|
65
|
+
export interface AgenCoToolRunRequest {
|
|
66
|
+
/** Integration identifier (e.g., 'github', 'slack') */
|
|
67
|
+
integration: string;
|
|
68
|
+
/** Tool name within the integration */
|
|
69
|
+
tool: string;
|
|
70
|
+
/** Tool parameters */
|
|
71
|
+
params?: Record<string, unknown>;
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Response from running a tool
|
|
75
|
+
*/
|
|
76
|
+
export interface AgenCoToolRunResponse {
|
|
77
|
+
success: boolean;
|
|
78
|
+
result?: unknown;
|
|
79
|
+
error?: string;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Request to list tools
|
|
83
|
+
*/
|
|
84
|
+
export interface AgenCoToolListRequest {
|
|
85
|
+
/** Filter by integration */
|
|
86
|
+
integration?: string;
|
|
87
|
+
/** Only show tools from connected integrations */
|
|
88
|
+
connectedOnly?: boolean;
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Tool information
|
|
92
|
+
*/
|
|
93
|
+
export interface AgenCoTool {
|
|
94
|
+
/** Integration this tool belongs to */
|
|
95
|
+
integration: string;
|
|
96
|
+
/** Tool identifier */
|
|
97
|
+
tool: string;
|
|
98
|
+
/** Human-readable description */
|
|
99
|
+
description: string;
|
|
100
|
+
/** Whether the integration is connected */
|
|
101
|
+
connected?: boolean;
|
|
102
|
+
/** URL to connect the integration */
|
|
103
|
+
connectUrl?: string;
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* Response from listing tools
|
|
107
|
+
*/
|
|
108
|
+
export interface AgenCoToolListResponse {
|
|
109
|
+
tools: AgenCoTool[];
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* Request to search tools
|
|
113
|
+
*/
|
|
114
|
+
export interface AgenCoToolSearchRequest {
|
|
115
|
+
/** Search query */
|
|
116
|
+
query: string;
|
|
117
|
+
/** Filter by integration */
|
|
118
|
+
integration?: string;
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* Request to list integrations
|
|
122
|
+
*/
|
|
123
|
+
export interface AgenCoIntegrationsListRequest {
|
|
124
|
+
/** Filter by category */
|
|
125
|
+
category?: string;
|
|
126
|
+
/** Search query */
|
|
127
|
+
search?: string;
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* Integration action metadata
|
|
131
|
+
*/
|
|
132
|
+
export interface AgenCoIntegrationAction {
|
|
133
|
+
/** Action identifier */
|
|
134
|
+
name: string;
|
|
135
|
+
/** Human-readable description */
|
|
136
|
+
description: string;
|
|
137
|
+
}
|
|
138
|
+
/**
|
|
139
|
+
* Integration information
|
|
140
|
+
*/
|
|
141
|
+
export interface AgenCoIntegration {
|
|
142
|
+
/** Integration identifier */
|
|
143
|
+
id: string;
|
|
144
|
+
/** Human-readable name */
|
|
145
|
+
name: string;
|
|
146
|
+
/** Description */
|
|
147
|
+
description: string;
|
|
148
|
+
/** Category (e.g., 'communication', 'development') */
|
|
149
|
+
category: string;
|
|
150
|
+
/** Number of tools in this integration */
|
|
151
|
+
toolsCount: number;
|
|
152
|
+
/** Available actions for this integration */
|
|
153
|
+
actions?: AgenCoIntegrationAction[];
|
|
154
|
+
}
|
|
155
|
+
/**
|
|
156
|
+
* Response from listing available integrations
|
|
157
|
+
*/
|
|
158
|
+
export interface AgenCoIntegrationsListResponse {
|
|
159
|
+
integrations: AgenCoIntegration[];
|
|
160
|
+
totalCount: number;
|
|
161
|
+
}
|
|
162
|
+
/**
|
|
163
|
+
* Connected integration information
|
|
164
|
+
*/
|
|
165
|
+
export interface AgenCoConnectedIntegration {
|
|
166
|
+
/** Integration identifier */
|
|
167
|
+
id: string;
|
|
168
|
+
/** Human-readable name */
|
|
169
|
+
name: string;
|
|
170
|
+
/** When the integration was connected */
|
|
171
|
+
connectedAt: string;
|
|
172
|
+
/** Connection status */
|
|
173
|
+
status: string;
|
|
174
|
+
/** Account/workspace name if applicable */
|
|
175
|
+
account?: string;
|
|
176
|
+
/** Whether re-authentication is required */
|
|
177
|
+
requiresReauth?: boolean;
|
|
178
|
+
}
|
|
179
|
+
/**
|
|
180
|
+
* Response from listing connected integrations
|
|
181
|
+
*/
|
|
182
|
+
export interface AgenCoConnectedIntegrationsResponse {
|
|
183
|
+
integrations: AgenCoConnectedIntegration[];
|
|
184
|
+
}
|
|
185
|
+
/**
|
|
186
|
+
* Request to connect an integration
|
|
187
|
+
*/
|
|
188
|
+
export interface AgenCoConnectIntegrationRequest {
|
|
189
|
+
/** Integration identifier */
|
|
190
|
+
integration: string;
|
|
191
|
+
/** Optional OAuth scopes */
|
|
192
|
+
scopes?: string[];
|
|
193
|
+
}
|
|
194
|
+
/**
|
|
195
|
+
* Response from connecting an integration
|
|
196
|
+
*/
|
|
197
|
+
export interface AgenCoConnectIntegrationResponse {
|
|
198
|
+
/** Connection status */
|
|
199
|
+
status: 'auth_required' | 'already_connected' | 'connected';
|
|
200
|
+
/** OAuth URL if authentication is required */
|
|
201
|
+
oauthUrl?: string;
|
|
202
|
+
/** Expiration time if applicable */
|
|
203
|
+
expiresIn?: number;
|
|
204
|
+
/** Additional instructions */
|
|
205
|
+
instructions?: string;
|
|
206
|
+
/** Connected account name */
|
|
207
|
+
account?: string;
|
|
208
|
+
/** When the integration was connected */
|
|
209
|
+
connectedAt?: string;
|
|
210
|
+
}
|
|
211
|
+
//# sourceMappingURL=agenco.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agenco.d.ts","sourceRoot":"","sources":["../../src/types/agenco.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,2BAA2B;AAC3B,MAAM,MAAM,kBAAkB,GAAG,cAAc,GAAG,YAAY,GAAG,WAAW,GAAG,OAAO,GAAG,cAAc,CAAC;AAExG,0BAA0B;AAC1B,MAAM,WAAW,uBAAuB;IACtC,KAAK,EAAE,kBAAkB,CAAC;IAC1B,MAAM,EAAE,OAAO,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC,8BAA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