@edgible-team/cli 1.0.1 → 1.2.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/LICENSE +16 -0
- package/README.md +114 -1
- package/dist/client/api-client.d.ts +575 -0
- package/dist/client/api-client.d.ts.map +1 -0
- package/dist/client/api-client.js +196 -2
- package/dist/client/index.d.ts +10 -0
- package/dist/client/index.d.ts.map +1 -0
- package/dist/commands/agent.d.ts +3 -0
- package/dist/commands/agent.d.ts.map +1 -0
- package/dist/commands/agent.js +18 -34
- package/dist/commands/ai.d.ts +3 -0
- package/dist/commands/ai.d.ts.map +1 -0
- package/dist/commands/ai.js +1661 -275
- package/dist/commands/application.d.ts +6 -0
- package/dist/commands/application.d.ts.map +1 -0
- package/dist/commands/application.js +377 -0
- package/dist/commands/auth.d.ts +3 -0
- package/dist/commands/auth.d.ts.map +1 -0
- package/dist/commands/base/BaseCommand.d.ts +53 -0
- package/dist/commands/base/BaseCommand.d.ts.map +1 -0
- package/dist/commands/base/CommandHandler.d.ts +28 -0
- package/dist/commands/base/CommandHandler.d.ts.map +1 -0
- package/dist/commands/base/command-wrapper.d.ts +21 -0
- package/dist/commands/base/command-wrapper.d.ts.map +1 -0
- package/dist/commands/base/middleware.d.ts +34 -0
- package/dist/commands/base/middleware.d.ts.map +1 -0
- package/dist/commands/config.d.ts +3 -0
- package/dist/commands/config.d.ts.map +1 -0
- package/dist/commands/connectivity.d.ts +3 -0
- package/dist/commands/connectivity.d.ts.map +1 -0
- package/dist/commands/debug.d.ts +3 -0
- package/dist/commands/debug.d.ts.map +1 -0
- package/dist/commands/debug.js +336 -0
- package/dist/commands/discover.d.ts +3 -0
- package/dist/commands/discover.d.ts.map +1 -0
- package/dist/commands/examples/migrated-command-example.d.ts +31 -0
- package/dist/commands/examples/migrated-command-example.d.ts.map +1 -0
- package/dist/commands/gateway.d.ts +6 -0
- package/dist/commands/gateway.d.ts.map +1 -0
- package/dist/commands/managedGateway.d.ts +6 -0
- package/dist/commands/managedGateway.d.ts.map +1 -0
- package/dist/commands/managedGateway.js +132 -0
- package/dist/commands/utils/config-validator.d.ts +29 -0
- package/dist/commands/utils/config-validator.d.ts.map +1 -0
- package/dist/commands/utils/gateway-prompt.d.ts +23 -0
- package/dist/commands/utils/gateway-prompt.d.ts.map +1 -0
- package/dist/commands/utils/input-parser.d.ts +34 -0
- package/dist/commands/utils/input-parser.d.ts.map +1 -0
- package/dist/commands/utils/output-formatter.d.ts +62 -0
- package/dist/commands/utils/output-formatter.d.ts.map +1 -0
- package/dist/config/app-config.d.ts +44 -0
- package/dist/config/app-config.d.ts.map +1 -0
- package/dist/detection/SystemCapabilityDetector.d.ts +139 -0
- package/dist/detection/SystemCapabilityDetector.d.ts.map +1 -0
- package/dist/detection/ToolDetector.d.ts +16 -0
- package/dist/detection/ToolDetector.d.ts.map +1 -0
- package/dist/detection/WorkloadDetector.d.ts +62 -0
- package/dist/detection/WorkloadDetector.d.ts.map +1 -0
- package/dist/detection/tools.d.ts +16 -0
- package/dist/detection/tools.d.ts.map +1 -0
- package/dist/detection/tools.js +305 -0
- package/dist/di/bindings.d.ts +15 -0
- package/dist/di/bindings.d.ts.map +1 -0
- package/dist/di/container.d.ts +44 -0
- package/dist/di/container.d.ts.map +1 -0
- package/dist/di/types.d.ts +23 -0
- package/dist/di/types.d.ts.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +8 -1
- package/dist/interfaces/IDaemonManager.d.ts +67 -0
- package/dist/interfaces/IDaemonManager.d.ts.map +1 -0
- package/dist/repositories/config-repository.d.ts +46 -0
- package/dist/repositories/config-repository.d.ts.map +1 -0
- package/dist/repositories/gateway-repository.d.ts +37 -0
- package/dist/repositories/gateway-repository.d.ts.map +1 -0
- package/dist/services/AgentStatusManager.d.ts +30 -0
- package/dist/services/AgentStatusManager.d.ts.map +1 -0
- package/dist/services/ConnectivityTester.d.ts +30 -0
- package/dist/services/ConnectivityTester.d.ts.map +1 -0
- package/dist/services/DependencyInstaller.d.ts +32 -0
- package/dist/services/DependencyInstaller.d.ts.map +1 -0
- package/dist/services/LocalAgentManager.d.ts +220 -0
- package/dist/services/LocalAgentManager.d.ts.map +1 -0
- package/dist/services/LocalAgentManager.js +3 -5
- package/dist/services/application/ApplicationService.d.ts +54 -0
- package/dist/services/application/ApplicationService.d.ts.map +1 -0
- package/dist/services/application/ApplicationService.js +10 -3
- package/dist/services/auth/AuthService.d.ts +42 -0
- package/dist/services/auth/AuthService.d.ts.map +1 -0
- package/dist/services/aws.d.ts +136 -0
- package/dist/services/aws.d.ts.map +1 -0
- package/dist/services/aws.js +2 -2
- package/dist/services/daemon/DaemonManagerFactory.d.ts +17 -0
- package/dist/services/daemon/DaemonManagerFactory.d.ts.map +1 -0
- package/dist/services/daemon/DockerDaemonManager.d.ts +26 -0
- package/dist/services/daemon/DockerDaemonManager.d.ts.map +1 -0
- package/dist/services/daemon/LaunchdDaemonManager.d.ts +20 -0
- package/dist/services/daemon/LaunchdDaemonManager.d.ts.map +1 -0
- package/dist/services/daemon/LaunchdDaemonManager.js +54 -6
- package/dist/services/daemon/PodmanDaemonManager.d.ts +24 -0
- package/dist/services/daemon/PodmanDaemonManager.d.ts.map +1 -0
- package/dist/services/daemon/SystemdDaemonManager.d.ts +20 -0
- package/dist/services/daemon/SystemdDaemonManager.d.ts.map +1 -0
- package/dist/services/daemon/WindowsServiceDaemonManager.d.ts +19 -0
- package/dist/services/daemon/WindowsServiceDaemonManager.d.ts.map +1 -0
- package/dist/services/daemon/index.d.ts +7 -0
- package/dist/services/daemon/index.d.ts.map +1 -0
- package/dist/services/edgible.d.ts +304 -0
- package/dist/services/edgible.d.ts.map +1 -0
- package/dist/services/edgible.js +53 -4
- package/dist/services/gateway/GatewayService.d.ts +88 -0
- package/dist/services/gateway/GatewayService.d.ts.map +1 -0
- package/dist/state/config.d.ts +96 -0
- package/dist/state/config.d.ts.map +1 -0
- package/dist/types/AgentConfig.d.ts +126 -0
- package/dist/types/AgentConfig.d.ts.map +1 -0
- package/dist/types/AgentStatus.d.ts +30 -0
- package/dist/types/AgentStatus.d.ts.map +1 -0
- package/dist/types/ApiClient.d.ts +36 -0
- package/dist/types/ApiClient.d.ts.map +1 -0
- package/dist/types/ApiRequests.d.ts +269 -0
- package/dist/types/ApiRequests.d.ts.map +1 -0
- package/dist/types/ApiResponses.d.ts +348 -0
- package/dist/types/ApiResponses.d.ts.map +1 -0
- package/dist/types/Application.d.ts +13 -0
- package/dist/types/Application.d.ts.map +1 -0
- package/dist/types/CaddyJson.d.ts +231 -0
- package/dist/types/CaddyJson.d.ts.map +1 -0
- package/dist/types/DeviceMetrics.d.ts +95 -0
- package/dist/types/DeviceMetrics.d.ts.map +1 -0
- package/dist/types/DeviceMetrics.js +5 -0
- package/dist/types/LogAggregation.d.ts +106 -0
- package/dist/types/LogAggregation.d.ts.map +1 -0
- package/dist/types/LogAggregation.js +5 -0
- package/dist/types/LogEntry.d.ts +60 -0
- package/dist/types/LogEntry.d.ts.map +1 -0
- package/dist/types/LogEntry.js +5 -0
- package/dist/types/UnifiedAgentStatus.d.ts +28 -0
- package/dist/types/UnifiedAgentStatus.d.ts.map +1 -0
- package/dist/types/WireGuard.d.ts +36 -0
- package/dist/types/WireGuard.d.ts.map +1 -0
- package/dist/types/Workload.d.ts +9 -0
- package/dist/types/Workload.d.ts.map +1 -0
- package/dist/types/agent.d.ts +120 -0
- package/dist/types/agent.d.ts.map +1 -0
- package/dist/types/command-options.d.ts +115 -0
- package/dist/types/command-options.d.ts.map +1 -0
- package/dist/types/connectivity.d.ts +80 -0
- package/dist/types/connectivity.d.ts.map +1 -0
- package/dist/types/errors.d.ts +97 -0
- package/dist/types/errors.d.ts.map +1 -0
- package/dist/types/gateway-types.d.ts +46 -0
- package/dist/types/gateway-types.d.ts.map +1 -0
- package/dist/types/index.d.ts +28 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/models/ApplicationData.d.ts +78 -0
- package/dist/types/models/ApplicationData.d.ts.map +1 -0
- package/dist/types/models/CertificateData.d.ts +44 -0
- package/dist/types/models/CertificateData.d.ts.map +1 -0
- package/dist/types/models/DeviceData.d.ts +29 -0
- package/dist/types/models/DeviceData.d.ts.map +1 -0
- package/dist/types/models/DevicePoolData.d.ts +47 -0
- package/dist/types/models/DevicePoolData.d.ts.map +1 -0
- package/dist/types/models/LifecycleEvent.d.ts +27 -0
- package/dist/types/models/LifecycleEvent.d.ts.map +1 -0
- package/dist/types/models/LifecycleEvent.js +5 -0
- package/dist/types/models/OrganizationData.d.ts +53 -0
- package/dist/types/models/OrganizationData.d.ts.map +1 -0
- package/dist/types/models/OrganizationInviteData.d.ts +39 -0
- package/dist/types/models/OrganizationInviteData.d.ts.map +1 -0
- package/dist/types/models/ProviderConfiguration.d.ts +37 -0
- package/dist/types/models/ProviderConfiguration.d.ts.map +1 -0
- package/dist/types/models/ResourceData.d.ts +18 -0
- package/dist/types/models/ResourceData.d.ts.map +1 -0
- package/dist/types/models/ServiceResourceData.d.ts +5 -0
- package/dist/types/models/ServiceResourceData.d.ts.map +1 -0
- package/dist/types/models/UserData.d.ts +12 -0
- package/dist/types/models/UserData.d.ts.map +1 -0
- package/dist/types/route.d.ts +67 -0
- package/dist/types/route.d.ts.map +1 -0
- package/dist/types/validation/schemas.d.ts +606 -0
- package/dist/types/validation/schemas.d.ts.map +1 -0
- package/dist/types/validation/schemas.js +46 -4
- package/dist/types/validation.d.ts +68 -0
- package/dist/types/validation.d.ts.map +1 -0
- package/dist/utils/FileIntegrityManager.d.ts +37 -0
- package/dist/utils/FileIntegrityManager.d.ts.map +1 -0
- package/dist/utils/PathMigration.d.ts +45 -0
- package/dist/utils/PathMigration.d.ts.map +1 -0
- package/dist/utils/PathResolver.d.ts +76 -0
- package/dist/utils/PathResolver.d.ts.map +1 -0
- package/dist/utils/PlatformDetector.d.ts +60 -0
- package/dist/utils/PlatformDetector.d.ts.map +1 -0
- package/dist/utils/console-logger.d.ts +37 -0
- package/dist/utils/console-logger.d.ts.map +1 -0
- package/dist/utils/docker-compose-parser.d.ts +28 -0
- package/dist/utils/docker-compose-parser.d.ts.map +1 -0
- package/dist/utils/errors.d.ts +63 -0
- package/dist/utils/errors.d.ts.map +1 -0
- package/dist/utils/health-checker.d.ts +34 -0
- package/dist/utils/health-checker.d.ts.map +1 -0
- package/dist/utils/json-logger.d.ts +23 -0
- package/dist/utils/json-logger.d.ts.map +1 -0
- package/dist/utils/log-formatter.d.ts +85 -0
- package/dist/utils/log-formatter.d.ts.map +1 -0
- package/dist/utils/log-formatter.js +39 -11
- package/dist/utils/logger.d.ts +34 -0
- package/dist/utils/logger.d.ts.map +1 -0
- package/dist/utils/network-utils.d.ts +56 -0
- package/dist/utils/network-utils.d.ts.map +1 -0
- package/dist/utils/output.d.ts +73 -0
- package/dist/utils/output.d.ts.map +1 -0
- package/dist/utils/passwordValidation.d.ts +32 -0
- package/dist/utils/passwordValidation.d.ts.map +1 -0
- package/dist/utils/progress.d.ts +74 -0
- package/dist/utils/progress.d.ts.map +1 -0
- package/dist/utils/sudo-checker.d.ts +9 -0
- package/dist/utils/sudo-checker.d.ts.map +1 -0
- package/dist/utils/urls.d.ts +19 -0
- package/dist/utils/urls.d.ts.map +1 -0
- package/dist/utils/urls.js +3 -3
- package/dist/utils/validation.d.ts +19 -0
- package/dist/utils/validation.d.ts.map +1 -0
- package/dist/validation/schemas.d.ts +197 -0
- package/dist/validation/schemas.d.ts.map +1 -0
- package/dist/validation/schemas.js +1 -1
- package/dist/validation/validator.d.ts +22 -0
- package/dist/validation/validator.d.ts.map +1 -0
- package/package.json +9 -4
- package/recipes/compose/open-webui/.env +1 -0
- package/recipes/compose/open-webui/docker-compose.yml +17 -0
|
@@ -0,0 +1,606 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const CreateOrganizationSchema: z.ZodObject<{
|
|
3
|
+
name: z.ZodString;
|
|
4
|
+
rootUserEmail: z.ZodString;
|
|
5
|
+
description: z.ZodOptional<z.ZodString>;
|
|
6
|
+
billingOrganizationId: z.ZodOptional<z.ZodString>;
|
|
7
|
+
}, "strip", z.ZodTypeAny, {
|
|
8
|
+
name: string;
|
|
9
|
+
rootUserEmail: string;
|
|
10
|
+
description?: string | undefined;
|
|
11
|
+
billingOrganizationId?: string | undefined;
|
|
12
|
+
}, {
|
|
13
|
+
name: string;
|
|
14
|
+
rootUserEmail: string;
|
|
15
|
+
description?: string | undefined;
|
|
16
|
+
billingOrganizationId?: string | undefined;
|
|
17
|
+
}>;
|
|
18
|
+
export declare const UpdateOrganizationSchema: z.ZodObject<{
|
|
19
|
+
name: z.ZodOptional<z.ZodString>;
|
|
20
|
+
description: z.ZodOptional<z.ZodString>;
|
|
21
|
+
}, "strip", z.ZodTypeAny, {
|
|
22
|
+
name?: string | undefined;
|
|
23
|
+
description?: string | undefined;
|
|
24
|
+
}, {
|
|
25
|
+
name?: string | undefined;
|
|
26
|
+
description?: string | undefined;
|
|
27
|
+
}>;
|
|
28
|
+
export declare const GetOrganizationSchema: z.ZodObject<{
|
|
29
|
+
organizationId: z.ZodString;
|
|
30
|
+
}, "strip", z.ZodTypeAny, {
|
|
31
|
+
organizationId: string;
|
|
32
|
+
}, {
|
|
33
|
+
organizationId: string;
|
|
34
|
+
}>;
|
|
35
|
+
export declare const CreateUserSchema: z.ZodObject<{
|
|
36
|
+
email: z.ZodString;
|
|
37
|
+
firstName: z.ZodOptional<z.ZodString>;
|
|
38
|
+
lastName: z.ZodOptional<z.ZodString>;
|
|
39
|
+
mobile: z.ZodOptional<z.ZodString>;
|
|
40
|
+
}, "strip", z.ZodTypeAny, {
|
|
41
|
+
email: string;
|
|
42
|
+
mobile?: string | undefined;
|
|
43
|
+
firstName?: string | undefined;
|
|
44
|
+
lastName?: string | undefined;
|
|
45
|
+
}, {
|
|
46
|
+
email: string;
|
|
47
|
+
mobile?: string | undefined;
|
|
48
|
+
firstName?: string | undefined;
|
|
49
|
+
lastName?: string | undefined;
|
|
50
|
+
}>;
|
|
51
|
+
export declare const UpdateUserSchema: z.ZodObject<{
|
|
52
|
+
email: z.ZodOptional<z.ZodString>;
|
|
53
|
+
firstName: z.ZodOptional<z.ZodString>;
|
|
54
|
+
lastName: z.ZodOptional<z.ZodString>;
|
|
55
|
+
organizations: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
56
|
+
}, "strip", z.ZodTypeAny, {
|
|
57
|
+
email?: string | undefined;
|
|
58
|
+
firstName?: string | undefined;
|
|
59
|
+
lastName?: string | undefined;
|
|
60
|
+
organizations?: string[] | undefined;
|
|
61
|
+
}, {
|
|
62
|
+
email?: string | undefined;
|
|
63
|
+
firstName?: string | undefined;
|
|
64
|
+
lastName?: string | undefined;
|
|
65
|
+
organizations?: string[] | undefined;
|
|
66
|
+
}>;
|
|
67
|
+
export declare const GetUserSchema: z.ZodObject<{
|
|
68
|
+
email: z.ZodString;
|
|
69
|
+
}, "strip", z.ZodTypeAny, {
|
|
70
|
+
email: string;
|
|
71
|
+
}, {
|
|
72
|
+
email: string;
|
|
73
|
+
}>;
|
|
74
|
+
export declare const CreateApplicationSchema: z.ZodObject<{
|
|
75
|
+
name: z.ZodString;
|
|
76
|
+
description: z.ZodOptional<z.ZodString>;
|
|
77
|
+
organizationId: z.ZodString;
|
|
78
|
+
environment: z.ZodDefault<z.ZodEnum<["development", "staging", "prod"]>>;
|
|
79
|
+
configuration: z.ZodObject<{
|
|
80
|
+
port: z.ZodNumber;
|
|
81
|
+
protocol: z.ZodEnum<["http", "https", "tcp", "udp"]>;
|
|
82
|
+
command: z.ZodOptional<z.ZodString>;
|
|
83
|
+
workingDirectory: z.ZodOptional<z.ZodString>;
|
|
84
|
+
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
85
|
+
logFile: z.ZodOptional<z.ZodString>;
|
|
86
|
+
healthCheckPath: z.ZodOptional<z.ZodString>;
|
|
87
|
+
dockerComposePath: z.ZodOptional<z.ZodString>;
|
|
88
|
+
systemdService: z.ZodOptional<z.ZodString>;
|
|
89
|
+
}, "strip", z.ZodTypeAny, {
|
|
90
|
+
port: number;
|
|
91
|
+
protocol: "tcp" | "udp" | "http" | "https";
|
|
92
|
+
command?: string | undefined;
|
|
93
|
+
logFile?: string | undefined;
|
|
94
|
+
workingDirectory?: string | undefined;
|
|
95
|
+
env?: Record<string, string> | undefined;
|
|
96
|
+
dockerComposePath?: string | undefined;
|
|
97
|
+
healthCheckPath?: string | undefined;
|
|
98
|
+
systemdService?: string | undefined;
|
|
99
|
+
}, {
|
|
100
|
+
port: number;
|
|
101
|
+
protocol: "tcp" | "udp" | "http" | "https";
|
|
102
|
+
command?: string | undefined;
|
|
103
|
+
logFile?: string | undefined;
|
|
104
|
+
workingDirectory?: string | undefined;
|
|
105
|
+
env?: Record<string, string> | undefined;
|
|
106
|
+
dockerComposePath?: string | undefined;
|
|
107
|
+
healthCheckPath?: string | undefined;
|
|
108
|
+
systemdService?: string | undefined;
|
|
109
|
+
}>;
|
|
110
|
+
hostnames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
111
|
+
deviceIds: z.ZodArray<z.ZodString, "many">;
|
|
112
|
+
gatewayIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
113
|
+
useManagedGateway: z.ZodOptional<z.ZodBoolean>;
|
|
114
|
+
subtype: z.ZodEnum<["local-preexisting", "managed-docker", "systemd", "docker-compose", "managed-process"]>;
|
|
115
|
+
}, "strip", z.ZodTypeAny, {
|
|
116
|
+
organizationId: string;
|
|
117
|
+
name: string;
|
|
118
|
+
configuration: {
|
|
119
|
+
port: number;
|
|
120
|
+
protocol: "tcp" | "udp" | "http" | "https";
|
|
121
|
+
command?: string | undefined;
|
|
122
|
+
logFile?: string | undefined;
|
|
123
|
+
workingDirectory?: string | undefined;
|
|
124
|
+
env?: Record<string, string> | undefined;
|
|
125
|
+
dockerComposePath?: string | undefined;
|
|
126
|
+
healthCheckPath?: string | undefined;
|
|
127
|
+
systemdService?: string | undefined;
|
|
128
|
+
};
|
|
129
|
+
subtype: "systemd" | "local-preexisting" | "managed-docker" | "docker-compose" | "managed-process";
|
|
130
|
+
environment: "prod" | "development" | "staging";
|
|
131
|
+
deviceIds: string[];
|
|
132
|
+
description?: string | undefined;
|
|
133
|
+
gatewayIds?: string[] | undefined;
|
|
134
|
+
hostnames?: string[] | undefined;
|
|
135
|
+
useManagedGateway?: boolean | undefined;
|
|
136
|
+
}, {
|
|
137
|
+
organizationId: string;
|
|
138
|
+
name: string;
|
|
139
|
+
configuration: {
|
|
140
|
+
port: number;
|
|
141
|
+
protocol: "tcp" | "udp" | "http" | "https";
|
|
142
|
+
command?: string | undefined;
|
|
143
|
+
logFile?: string | undefined;
|
|
144
|
+
workingDirectory?: string | undefined;
|
|
145
|
+
env?: Record<string, string> | undefined;
|
|
146
|
+
dockerComposePath?: string | undefined;
|
|
147
|
+
healthCheckPath?: string | undefined;
|
|
148
|
+
systemdService?: string | undefined;
|
|
149
|
+
};
|
|
150
|
+
subtype: "systemd" | "local-preexisting" | "managed-docker" | "docker-compose" | "managed-process";
|
|
151
|
+
deviceIds: string[];
|
|
152
|
+
description?: string | undefined;
|
|
153
|
+
gatewayIds?: string[] | undefined;
|
|
154
|
+
environment?: "prod" | "development" | "staging" | undefined;
|
|
155
|
+
hostnames?: string[] | undefined;
|
|
156
|
+
useManagedGateway?: boolean | undefined;
|
|
157
|
+
}>;
|
|
158
|
+
export declare const UpdateApplicationSchema: z.ZodObject<{
|
|
159
|
+
name: z.ZodOptional<z.ZodString>;
|
|
160
|
+
description: z.ZodOptional<z.ZodString>;
|
|
161
|
+
environment: z.ZodOptional<z.ZodEnum<["development", "staging", "prod"]>>;
|
|
162
|
+
allowedSourceIPs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
163
|
+
}, "strip", z.ZodTypeAny, {
|
|
164
|
+
name?: string | undefined;
|
|
165
|
+
description?: string | undefined;
|
|
166
|
+
environment?: "prod" | "development" | "staging" | undefined;
|
|
167
|
+
allowedSourceIPs?: string[] | undefined;
|
|
168
|
+
}, {
|
|
169
|
+
name?: string | undefined;
|
|
170
|
+
description?: string | undefined;
|
|
171
|
+
environment?: "prod" | "development" | "staging" | undefined;
|
|
172
|
+
allowedSourceIPs?: string[] | undefined;
|
|
173
|
+
}>;
|
|
174
|
+
export declare const GetApplicationSchema: z.ZodObject<{
|
|
175
|
+
applicationId: z.ZodString;
|
|
176
|
+
}, "strip", z.ZodTypeAny, {
|
|
177
|
+
applicationId: string;
|
|
178
|
+
}, {
|
|
179
|
+
applicationId: string;
|
|
180
|
+
}>;
|
|
181
|
+
export declare const GetCertificatesPathSchema: z.ZodObject<{
|
|
182
|
+
applicationId: z.ZodString;
|
|
183
|
+
}, "strip", z.ZodTypeAny, {
|
|
184
|
+
applicationId: string;
|
|
185
|
+
}, {
|
|
186
|
+
applicationId: string;
|
|
187
|
+
}>;
|
|
188
|
+
export declare const GetCertificatePathSchema: z.ZodObject<{
|
|
189
|
+
applicationId: z.ZodString;
|
|
190
|
+
hostname: z.ZodString;
|
|
191
|
+
}, "strip", z.ZodTypeAny, {
|
|
192
|
+
applicationId: string;
|
|
193
|
+
hostname: string;
|
|
194
|
+
}, {
|
|
195
|
+
applicationId: string;
|
|
196
|
+
hostname: string;
|
|
197
|
+
}>;
|
|
198
|
+
export declare const RefreshCertificatePathSchema: z.ZodObject<{
|
|
199
|
+
applicationId: z.ZodString;
|
|
200
|
+
certificateId: z.ZodString;
|
|
201
|
+
}, "strip", z.ZodTypeAny, {
|
|
202
|
+
applicationId: string;
|
|
203
|
+
certificateId: string;
|
|
204
|
+
}, {
|
|
205
|
+
applicationId: string;
|
|
206
|
+
certificateId: string;
|
|
207
|
+
}>;
|
|
208
|
+
export declare const CreateDeviceSchema: z.ZodObject<{
|
|
209
|
+
name: z.ZodString;
|
|
210
|
+
type: z.ZodOptional<z.ZodEnum<["laptop", "desktop", "mobile", "tablet", "server", "gateway"]>>;
|
|
211
|
+
deviceId: z.ZodOptional<z.ZodString>;
|
|
212
|
+
os: z.ZodOptional<z.ZodString>;
|
|
213
|
+
browser: z.ZodOptional<z.ZodString>;
|
|
214
|
+
description: z.ZodOptional<z.ZodString>;
|
|
215
|
+
organizationId: z.ZodString;
|
|
216
|
+
userEmail: z.ZodString;
|
|
217
|
+
ipAddress: z.ZodOptional<z.ZodString>;
|
|
218
|
+
location: z.ZodOptional<z.ZodString>;
|
|
219
|
+
isTrusted: z.ZodOptional<z.ZodBoolean>;
|
|
220
|
+
privateKey: z.ZodOptional<z.ZodString>;
|
|
221
|
+
publicKey: z.ZodOptional<z.ZodString>;
|
|
222
|
+
}, "strip", z.ZodTypeAny, {
|
|
223
|
+
organizationId: string;
|
|
224
|
+
userEmail: string;
|
|
225
|
+
name: string;
|
|
226
|
+
deviceId?: string | undefined;
|
|
227
|
+
type?: "gateway" | "laptop" | "desktop" | "mobile" | "tablet" | "server" | undefined;
|
|
228
|
+
privateKey?: string | undefined;
|
|
229
|
+
publicKey?: string | undefined;
|
|
230
|
+
os?: string | undefined;
|
|
231
|
+
description?: string | undefined;
|
|
232
|
+
browser?: string | undefined;
|
|
233
|
+
ipAddress?: string | undefined;
|
|
234
|
+
location?: string | undefined;
|
|
235
|
+
isTrusted?: boolean | undefined;
|
|
236
|
+
}, {
|
|
237
|
+
organizationId: string;
|
|
238
|
+
userEmail: string;
|
|
239
|
+
name: string;
|
|
240
|
+
deviceId?: string | undefined;
|
|
241
|
+
type?: "gateway" | "laptop" | "desktop" | "mobile" | "tablet" | "server" | undefined;
|
|
242
|
+
privateKey?: string | undefined;
|
|
243
|
+
publicKey?: string | undefined;
|
|
244
|
+
os?: string | undefined;
|
|
245
|
+
description?: string | undefined;
|
|
246
|
+
browser?: string | undefined;
|
|
247
|
+
ipAddress?: string | undefined;
|
|
248
|
+
location?: string | undefined;
|
|
249
|
+
isTrusted?: boolean | undefined;
|
|
250
|
+
}>;
|
|
251
|
+
export declare const UpdateDeviceSchema: z.ZodObject<{
|
|
252
|
+
name: z.ZodOptional<z.ZodString>;
|
|
253
|
+
description: z.ZodOptional<z.ZodString>;
|
|
254
|
+
type: z.ZodOptional<z.ZodEnum<["laptop", "desktop", "mobile", "tablet", "server", "gateway"]>>;
|
|
255
|
+
os: z.ZodOptional<z.ZodString>;
|
|
256
|
+
browser: z.ZodOptional<z.ZodString>;
|
|
257
|
+
location: z.ZodOptional<z.ZodString>;
|
|
258
|
+
status: z.ZodOptional<z.ZodEnum<["active", "inactive", "pending", "suspended"]>>;
|
|
259
|
+
isTrusted: z.ZodOptional<z.ZodBoolean>;
|
|
260
|
+
ipAddress: z.ZodOptional<z.ZodString>;
|
|
261
|
+
}, "strip", z.ZodTypeAny, {
|
|
262
|
+
name?: string | undefined;
|
|
263
|
+
status?: "active" | "inactive" | "pending" | "suspended" | undefined;
|
|
264
|
+
type?: "gateway" | "laptop" | "desktop" | "mobile" | "tablet" | "server" | undefined;
|
|
265
|
+
os?: string | undefined;
|
|
266
|
+
description?: string | undefined;
|
|
267
|
+
browser?: string | undefined;
|
|
268
|
+
ipAddress?: string | undefined;
|
|
269
|
+
location?: string | undefined;
|
|
270
|
+
isTrusted?: boolean | undefined;
|
|
271
|
+
}, {
|
|
272
|
+
name?: string | undefined;
|
|
273
|
+
status?: "active" | "inactive" | "pending" | "suspended" | undefined;
|
|
274
|
+
type?: "gateway" | "laptop" | "desktop" | "mobile" | "tablet" | "server" | undefined;
|
|
275
|
+
os?: string | undefined;
|
|
276
|
+
description?: string | undefined;
|
|
277
|
+
browser?: string | undefined;
|
|
278
|
+
ipAddress?: string | undefined;
|
|
279
|
+
location?: string | undefined;
|
|
280
|
+
isTrusted?: boolean | undefined;
|
|
281
|
+
}>;
|
|
282
|
+
export declare const GetDeviceSchema: z.ZodObject<{
|
|
283
|
+
deviceId: z.ZodString;
|
|
284
|
+
}, "strip", z.ZodTypeAny, {
|
|
285
|
+
deviceId: string;
|
|
286
|
+
}, {
|
|
287
|
+
deviceId: string;
|
|
288
|
+
}>;
|
|
289
|
+
export declare const CreateOrganizationInviteSchema: z.ZodObject<{
|
|
290
|
+
organizationId: z.ZodString;
|
|
291
|
+
inviteeEmail: z.ZodString;
|
|
292
|
+
permission: z.ZodEnum<["OWNER", "EDITOR", "READ_ONLY"]>;
|
|
293
|
+
message: z.ZodOptional<z.ZodString>;
|
|
294
|
+
}, "strip", z.ZodTypeAny, {
|
|
295
|
+
organizationId: string;
|
|
296
|
+
inviteeEmail: string;
|
|
297
|
+
permission: "OWNER" | "EDITOR" | "READ_ONLY";
|
|
298
|
+
message?: string | undefined;
|
|
299
|
+
}, {
|
|
300
|
+
organizationId: string;
|
|
301
|
+
inviteeEmail: string;
|
|
302
|
+
permission: "OWNER" | "EDITOR" | "READ_ONLY";
|
|
303
|
+
message?: string | undefined;
|
|
304
|
+
}>;
|
|
305
|
+
export declare const AcceptInviteSchema: z.ZodObject<{
|
|
306
|
+
inviteId: z.ZodString;
|
|
307
|
+
}, "strip", z.ZodTypeAny, {
|
|
308
|
+
inviteId: string;
|
|
309
|
+
}, {
|
|
310
|
+
inviteId: string;
|
|
311
|
+
}>;
|
|
312
|
+
export declare const DeclineInviteSchema: z.ZodObject<{
|
|
313
|
+
inviteId: z.ZodString;
|
|
314
|
+
}, "strip", z.ZodTypeAny, {
|
|
315
|
+
inviteId: string;
|
|
316
|
+
}, {
|
|
317
|
+
inviteId: string;
|
|
318
|
+
}>;
|
|
319
|
+
export declare const CancelInviteSchema: z.ZodObject<{
|
|
320
|
+
inviteId: z.ZodString;
|
|
321
|
+
}, "strip", z.ZodTypeAny, {
|
|
322
|
+
inviteId: string;
|
|
323
|
+
}, {
|
|
324
|
+
inviteId: string;
|
|
325
|
+
}>;
|
|
326
|
+
export declare const AdoptOrganizationSchema: z.ZodObject<{
|
|
327
|
+
organizationId: z.ZodString;
|
|
328
|
+
newOwnerEmail: z.ZodString;
|
|
329
|
+
}, "strip", z.ZodTypeAny, {
|
|
330
|
+
organizationId: string;
|
|
331
|
+
newOwnerEmail: string;
|
|
332
|
+
}, {
|
|
333
|
+
organizationId: string;
|
|
334
|
+
newOwnerEmail: string;
|
|
335
|
+
}>;
|
|
336
|
+
export declare const CreateBillingOrganizationSchema: z.ZodObject<{
|
|
337
|
+
name: z.ZodOptional<z.ZodString>;
|
|
338
|
+
rootUserEmail: z.ZodOptional<z.ZodString>;
|
|
339
|
+
description: z.ZodOptional<z.ZodString>;
|
|
340
|
+
}, "strip", z.ZodTypeAny, {
|
|
341
|
+
name?: string | undefined;
|
|
342
|
+
description?: string | undefined;
|
|
343
|
+
rootUserEmail?: string | undefined;
|
|
344
|
+
}, {
|
|
345
|
+
name?: string | undefined;
|
|
346
|
+
description?: string | undefined;
|
|
347
|
+
rootUserEmail?: string | undefined;
|
|
348
|
+
}>;
|
|
349
|
+
export declare const UpdateResourceLimitsSchema: z.ZodObject<{
|
|
350
|
+
maxOrganizations: z.ZodOptional<z.ZodNumber>;
|
|
351
|
+
maxDataUsageGB: z.ZodOptional<z.ZodNumber>;
|
|
352
|
+
maxDeviceCredits: z.ZodOptional<z.ZodNumber>;
|
|
353
|
+
maxUsers: z.ZodOptional<z.ZodNumber>;
|
|
354
|
+
}, "strip", z.ZodTypeAny, {
|
|
355
|
+
maxOrganizations?: number | undefined;
|
|
356
|
+
maxDataUsageGB?: number | undefined;
|
|
357
|
+
maxDeviceCredits?: number | undefined;
|
|
358
|
+
maxUsers?: number | undefined;
|
|
359
|
+
}, {
|
|
360
|
+
maxOrganizations?: number | undefined;
|
|
361
|
+
maxDataUsageGB?: number | undefined;
|
|
362
|
+
maxDeviceCredits?: number | undefined;
|
|
363
|
+
maxUsers?: number | undefined;
|
|
364
|
+
}>;
|
|
365
|
+
export declare const LinkOrganizationSchema: z.ZodObject<{
|
|
366
|
+
childOrganizationId: z.ZodString;
|
|
367
|
+
}, "strip", z.ZodTypeAny, {
|
|
368
|
+
childOrganizationId: string;
|
|
369
|
+
}, {
|
|
370
|
+
childOrganizationId: string;
|
|
371
|
+
}>;
|
|
372
|
+
export declare const AuthenticateSchema: z.ZodObject<{
|
|
373
|
+
email: z.ZodEffects<z.ZodString, string, string>;
|
|
374
|
+
password: z.ZodString;
|
|
375
|
+
}, "strip", z.ZodTypeAny, {
|
|
376
|
+
email: string;
|
|
377
|
+
password: string;
|
|
378
|
+
}, {
|
|
379
|
+
email: string;
|
|
380
|
+
password: string;
|
|
381
|
+
}>;
|
|
382
|
+
export declare const RefreshTokenSchema: z.ZodObject<{
|
|
383
|
+
refreshToken: z.ZodString;
|
|
384
|
+
}, "strip", z.ZodTypeAny, {
|
|
385
|
+
refreshToken: string;
|
|
386
|
+
}, {
|
|
387
|
+
refreshToken: string;
|
|
388
|
+
}>;
|
|
389
|
+
export declare const ForceChangePasswordSchema: z.ZodObject<{
|
|
390
|
+
email: z.ZodString;
|
|
391
|
+
newPassword: z.ZodString;
|
|
392
|
+
session: z.ZodString;
|
|
393
|
+
}, "strip", z.ZodTypeAny, {
|
|
394
|
+
email: string;
|
|
395
|
+
newPassword: string;
|
|
396
|
+
session: string;
|
|
397
|
+
}, {
|
|
398
|
+
email: string;
|
|
399
|
+
newPassword: string;
|
|
400
|
+
session: string;
|
|
401
|
+
}>;
|
|
402
|
+
export declare const GetChallengeSessionSchema: z.ZodObject<{
|
|
403
|
+
email: z.ZodString;
|
|
404
|
+
password: z.ZodString;
|
|
405
|
+
}, "strip", z.ZodTypeAny, {
|
|
406
|
+
email: string;
|
|
407
|
+
password: string;
|
|
408
|
+
}, {
|
|
409
|
+
email: string;
|
|
410
|
+
password: string;
|
|
411
|
+
}>;
|
|
412
|
+
export declare const CreateDeviceWithOrphanedOrganizationSchema: z.ZodObject<{
|
|
413
|
+
name: z.ZodString;
|
|
414
|
+
description: z.ZodOptional<z.ZodString>;
|
|
415
|
+
type: z.ZodOptional<z.ZodEnum<["laptop", "desktop", "mobile", "tablet", "server", "gateway"]>>;
|
|
416
|
+
organizationName: z.ZodString;
|
|
417
|
+
organizationDescription: z.ZodOptional<z.ZodString>;
|
|
418
|
+
userEmail: z.ZodOptional<z.ZodString>;
|
|
419
|
+
ipAddress: z.ZodOptional<z.ZodString>;
|
|
420
|
+
location: z.ZodOptional<z.ZodString>;
|
|
421
|
+
os: z.ZodOptional<z.ZodString>;
|
|
422
|
+
browser: z.ZodOptional<z.ZodString>;
|
|
423
|
+
isTrusted: z.ZodOptional<z.ZodBoolean>;
|
|
424
|
+
privateKey: z.ZodOptional<z.ZodString>;
|
|
425
|
+
publicKey: z.ZodOptional<z.ZodString>;
|
|
426
|
+
password: z.ZodString;
|
|
427
|
+
}, "strip", z.ZodTypeAny, {
|
|
428
|
+
name: string;
|
|
429
|
+
password: string;
|
|
430
|
+
organizationName: string;
|
|
431
|
+
userEmail?: string | undefined;
|
|
432
|
+
type?: "gateway" | "laptop" | "desktop" | "mobile" | "tablet" | "server" | undefined;
|
|
433
|
+
privateKey?: string | undefined;
|
|
434
|
+
publicKey?: string | undefined;
|
|
435
|
+
os?: string | undefined;
|
|
436
|
+
description?: string | undefined;
|
|
437
|
+
browser?: string | undefined;
|
|
438
|
+
ipAddress?: string | undefined;
|
|
439
|
+
location?: string | undefined;
|
|
440
|
+
isTrusted?: boolean | undefined;
|
|
441
|
+
organizationDescription?: string | undefined;
|
|
442
|
+
}, {
|
|
443
|
+
name: string;
|
|
444
|
+
password: string;
|
|
445
|
+
organizationName: string;
|
|
446
|
+
userEmail?: string | undefined;
|
|
447
|
+
type?: "gateway" | "laptop" | "desktop" | "mobile" | "tablet" | "server" | undefined;
|
|
448
|
+
privateKey?: string | undefined;
|
|
449
|
+
publicKey?: string | undefined;
|
|
450
|
+
os?: string | undefined;
|
|
451
|
+
description?: string | undefined;
|
|
452
|
+
browser?: string | undefined;
|
|
453
|
+
ipAddress?: string | undefined;
|
|
454
|
+
location?: string | undefined;
|
|
455
|
+
isTrusted?: boolean | undefined;
|
|
456
|
+
organizationDescription?: string | undefined;
|
|
457
|
+
}>;
|
|
458
|
+
export declare const CreateResourceSchema: z.ZodObject<{
|
|
459
|
+
name: z.ZodString;
|
|
460
|
+
resourceType: z.ZodString;
|
|
461
|
+
type: z.ZodOptional<z.ZodString>;
|
|
462
|
+
region: z.ZodOptional<z.ZodString>;
|
|
463
|
+
description: z.ZodOptional<z.ZodString>;
|
|
464
|
+
status: z.ZodOptional<z.ZodEnum<["running", "stopped", "pending", "error"]>>;
|
|
465
|
+
cost: z.ZodOptional<z.ZodNumber>;
|
|
466
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
467
|
+
parentResourceId: z.ZodOptional<z.ZodString>;
|
|
468
|
+
organizationId: z.ZodOptional<z.ZodString>;
|
|
469
|
+
configuration: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
470
|
+
}, "strip", z.ZodTypeAny, {
|
|
471
|
+
name: string;
|
|
472
|
+
resourceType: string;
|
|
473
|
+
organizationId?: string | undefined;
|
|
474
|
+
status?: "running" | "stopped" | "pending" | "error" | undefined;
|
|
475
|
+
type?: string | undefined;
|
|
476
|
+
region?: string | undefined;
|
|
477
|
+
tags?: string[] | undefined;
|
|
478
|
+
configuration?: Record<string, unknown> | undefined;
|
|
479
|
+
description?: string | undefined;
|
|
480
|
+
cost?: number | undefined;
|
|
481
|
+
parentResourceId?: string | undefined;
|
|
482
|
+
}, {
|
|
483
|
+
name: string;
|
|
484
|
+
resourceType: string;
|
|
485
|
+
organizationId?: string | undefined;
|
|
486
|
+
status?: "running" | "stopped" | "pending" | "error" | undefined;
|
|
487
|
+
type?: string | undefined;
|
|
488
|
+
region?: string | undefined;
|
|
489
|
+
tags?: string[] | undefined;
|
|
490
|
+
configuration?: Record<string, unknown> | undefined;
|
|
491
|
+
description?: string | undefined;
|
|
492
|
+
cost?: number | undefined;
|
|
493
|
+
parentResourceId?: string | undefined;
|
|
494
|
+
}>;
|
|
495
|
+
export declare const UpdateResourceSchema: z.ZodObject<{
|
|
496
|
+
name: z.ZodOptional<z.ZodString>;
|
|
497
|
+
description: z.ZodOptional<z.ZodString>;
|
|
498
|
+
status: z.ZodOptional<z.ZodEnum<["running", "stopped", "pending", "error"]>>;
|
|
499
|
+
cost: z.ZodOptional<z.ZodNumber>;
|
|
500
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
501
|
+
region: z.ZodOptional<z.ZodString>;
|
|
502
|
+
}, "strip", z.ZodTypeAny, {
|
|
503
|
+
name?: string | undefined;
|
|
504
|
+
status?: "running" | "stopped" | "pending" | "error" | undefined;
|
|
505
|
+
region?: string | undefined;
|
|
506
|
+
tags?: string[] | undefined;
|
|
507
|
+
description?: string | undefined;
|
|
508
|
+
cost?: number | undefined;
|
|
509
|
+
}, {
|
|
510
|
+
name?: string | undefined;
|
|
511
|
+
status?: "running" | "stopped" | "pending" | "error" | undefined;
|
|
512
|
+
region?: string | undefined;
|
|
513
|
+
tags?: string[] | undefined;
|
|
514
|
+
description?: string | undefined;
|
|
515
|
+
cost?: number | undefined;
|
|
516
|
+
}>;
|
|
517
|
+
export declare const GetResourceSchema: z.ZodObject<{
|
|
518
|
+
resourceId: z.ZodString;
|
|
519
|
+
}, "strip", z.ZodTypeAny, {
|
|
520
|
+
resourceId: string;
|
|
521
|
+
}, {
|
|
522
|
+
resourceId: string;
|
|
523
|
+
}>;
|
|
524
|
+
export declare const CheckApplicationReachabilitySchema: z.ZodObject<{
|
|
525
|
+
applicationId: z.ZodString;
|
|
526
|
+
}, "strip", z.ZodTypeAny, {
|
|
527
|
+
applicationId: string;
|
|
528
|
+
}, {
|
|
529
|
+
applicationId: string;
|
|
530
|
+
}>;
|
|
531
|
+
export declare const PostDevicePoolTrafficSchema: z.ZodObject<{
|
|
532
|
+
ingressBytes: z.ZodNumber;
|
|
533
|
+
egressBytes: z.ZodNumber;
|
|
534
|
+
}, "strip", z.ZodTypeAny, {
|
|
535
|
+
ingressBytes: number;
|
|
536
|
+
egressBytes: number;
|
|
537
|
+
}, {
|
|
538
|
+
ingressBytes: number;
|
|
539
|
+
egressBytes: number;
|
|
540
|
+
}>;
|
|
541
|
+
export declare const CreateLifecycleEventSchema: z.ZodObject<{
|
|
542
|
+
eventType: z.ZodEnum<["application_ip_whitelist_updated", "application_started", "application_stopped", "application_config_updated", "device_config_updated", "device_wireguard_config_updated"]>;
|
|
543
|
+
organizationId: z.ZodString;
|
|
544
|
+
applicationId: z.ZodOptional<z.ZodString>;
|
|
545
|
+
deviceId: z.ZodOptional<z.ZodString>;
|
|
546
|
+
eventAction: z.ZodString;
|
|
547
|
+
message: z.ZodString;
|
|
548
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
549
|
+
source: z.ZodEnum<["backend", "agent"]>;
|
|
550
|
+
sourceDetails: z.ZodOptional<z.ZodObject<{
|
|
551
|
+
deviceType: z.ZodOptional<z.ZodEnum<["gateway", "serving"]>>;
|
|
552
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
553
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
554
|
+
}, "strip", z.ZodTypeAny, {
|
|
555
|
+
deviceType?: "gateway" | "serving" | undefined;
|
|
556
|
+
userId?: string | undefined;
|
|
557
|
+
requestId?: string | undefined;
|
|
558
|
+
}, {
|
|
559
|
+
deviceType?: "gateway" | "serving" | undefined;
|
|
560
|
+
userId?: string | undefined;
|
|
561
|
+
requestId?: string | undefined;
|
|
562
|
+
}>>;
|
|
563
|
+
}, "strip", z.ZodTypeAny, {
|
|
564
|
+
organizationId: string;
|
|
565
|
+
message: string;
|
|
566
|
+
eventType: "application_ip_whitelist_updated" | "application_started" | "application_stopped" | "application_config_updated" | "device_config_updated" | "device_wireguard_config_updated";
|
|
567
|
+
eventAction: string;
|
|
568
|
+
source: "agent" | "backend";
|
|
569
|
+
deviceId?: string | undefined;
|
|
570
|
+
metadata?: Record<string, unknown> | undefined;
|
|
571
|
+
applicationId?: string | undefined;
|
|
572
|
+
sourceDetails?: {
|
|
573
|
+
deviceType?: "gateway" | "serving" | undefined;
|
|
574
|
+
userId?: string | undefined;
|
|
575
|
+
requestId?: string | undefined;
|
|
576
|
+
} | undefined;
|
|
577
|
+
}, {
|
|
578
|
+
organizationId: string;
|
|
579
|
+
message: string;
|
|
580
|
+
eventType: "application_ip_whitelist_updated" | "application_started" | "application_stopped" | "application_config_updated" | "device_config_updated" | "device_wireguard_config_updated";
|
|
581
|
+
eventAction: string;
|
|
582
|
+
source: "agent" | "backend";
|
|
583
|
+
deviceId?: string | undefined;
|
|
584
|
+
metadata?: Record<string, unknown> | undefined;
|
|
585
|
+
applicationId?: string | undefined;
|
|
586
|
+
sourceDetails?: {
|
|
587
|
+
deviceType?: "gateway" | "serving" | undefined;
|
|
588
|
+
userId?: string | undefined;
|
|
589
|
+
requestId?: string | undefined;
|
|
590
|
+
} | undefined;
|
|
591
|
+
}>;
|
|
592
|
+
export type CreateOrganizationInput = z.infer<typeof CreateOrganizationSchema>;
|
|
593
|
+
export type UpdateOrganizationInput = z.infer<typeof UpdateOrganizationSchema>;
|
|
594
|
+
export type CreateUserInput = z.infer<typeof CreateUserSchema>;
|
|
595
|
+
export type UpdateUserInput = z.infer<typeof UpdateUserSchema>;
|
|
596
|
+
export type CreateApplicationInput = z.infer<typeof CreateApplicationSchema>;
|
|
597
|
+
export type UpdateApplicationInput = z.infer<typeof UpdateApplicationSchema>;
|
|
598
|
+
export type CreateDeviceInput = z.infer<typeof CreateDeviceSchema>;
|
|
599
|
+
export type UpdateDeviceInput = z.infer<typeof UpdateDeviceSchema>;
|
|
600
|
+
export type CreateOrganizationInviteInput = z.infer<typeof CreateOrganizationInviteSchema>;
|
|
601
|
+
export type AuthenticateInput = z.infer<typeof AuthenticateSchema>;
|
|
602
|
+
export type RefreshTokenInput = z.infer<typeof RefreshTokenSchema>;
|
|
603
|
+
export type ForceChangePasswordInput = z.infer<typeof ForceChangePasswordSchema>;
|
|
604
|
+
export type GetChallengeSessionInput = z.infer<typeof GetChallengeSessionSchema>;
|
|
605
|
+
export type CreateDeviceWithOrphanedOrganizationInput = z.infer<typeof CreateDeviceWithOrphan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