@locusai/shared 0.16.1 → 0.16.2
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/dist/enums.d.ts +0 -10
- package/dist/enums.d.ts.map +1 -1
- package/dist/index.js +391 -481
- package/dist/models/index.d.ts +0 -1
- package/dist/models/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/models/aws-instance.d.ts +0 -105
- package/dist/models/aws-instance.d.ts.map +0 -1
package/dist/models/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,MAAM,CAAC;AACrB,cAAc,OAAO,CAAC;AACtB,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
import { AwsRegion, InstanceStatus } from "../enums";
|
|
3
|
-
export declare enum InstanceAction {
|
|
4
|
-
START = "START",
|
|
5
|
-
STOP = "STOP",
|
|
6
|
-
TERMINATE = "TERMINATE"
|
|
7
|
-
}
|
|
8
|
-
export declare const AwsCredentialsSchema: z.ZodObject<{
|
|
9
|
-
accessKeyId: z.ZodString;
|
|
10
|
-
secretAccessKey: z.ZodString;
|
|
11
|
-
region: z.ZodDefault<z.ZodEnum<typeof AwsRegion>>;
|
|
12
|
-
}, z.core.$strip>;
|
|
13
|
-
export type AwsCredentials = z.infer<typeof AwsCredentialsSchema>;
|
|
14
|
-
export declare const IntegrationSchema: z.ZodObject<{
|
|
15
|
-
name: z.ZodString;
|
|
16
|
-
config: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
17
|
-
}, z.core.$strip>;
|
|
18
|
-
export type Integration = z.infer<typeof IntegrationSchema>;
|
|
19
|
-
export declare const AwsInstanceSchema: z.ZodObject<{
|
|
20
|
-
id: z.ZodUUID;
|
|
21
|
-
createdAt: z.ZodUnion<readonly [z.ZodDate, z.ZodNumber]>;
|
|
22
|
-
updatedAt: z.ZodUnion<readonly [z.ZodDate, z.ZodNumber]>;
|
|
23
|
-
workspaceId: z.ZodUUID;
|
|
24
|
-
instanceId: z.ZodString;
|
|
25
|
-
status: z.ZodEnum<typeof InstanceStatus>;
|
|
26
|
-
instanceType: z.ZodEnum<{
|
|
27
|
-
"t3.micro": "t3.micro";
|
|
28
|
-
"t3.small": "t3.small";
|
|
29
|
-
"t3.medium": "t3.medium";
|
|
30
|
-
}>;
|
|
31
|
-
region: z.ZodDefault<z.ZodEnum<typeof AwsRegion>>;
|
|
32
|
-
publicIp: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
33
|
-
launchTime: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodDate, z.ZodNumber]>>>;
|
|
34
|
-
repoUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
35
|
-
integrations: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
36
|
-
name: z.ZodString;
|
|
37
|
-
config: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
38
|
-
}, z.core.$strip>>>;
|
|
39
|
-
}, z.core.$strip>;
|
|
40
|
-
export type AwsInstance = z.infer<typeof AwsInstanceSchema>;
|
|
41
|
-
export declare const CreateAwsInstanceSchema: z.ZodObject<{
|
|
42
|
-
workspaceId: z.ZodUUID;
|
|
43
|
-
instanceType: z.ZodDefault<z.ZodEnum<{
|
|
44
|
-
"t3.micro": "t3.micro";
|
|
45
|
-
"t3.small": "t3.small";
|
|
46
|
-
"t3.medium": "t3.medium";
|
|
47
|
-
}>>;
|
|
48
|
-
region: z.ZodDefault<z.ZodEnum<typeof AwsRegion>>;
|
|
49
|
-
repoUrl: z.ZodOptional<z.ZodString>;
|
|
50
|
-
integrations: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
51
|
-
name: z.ZodString;
|
|
52
|
-
config: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
53
|
-
}, z.core.$strip>>>>;
|
|
54
|
-
}, z.core.$strip>;
|
|
55
|
-
export type CreateAwsInstance = z.infer<typeof CreateAwsInstanceSchema>;
|
|
56
|
-
export declare const UpdateAwsInstanceSchema: z.ZodObject<{
|
|
57
|
-
status: z.ZodOptional<z.ZodEnum<typeof InstanceStatus>>;
|
|
58
|
-
instanceType: z.ZodOptional<z.ZodEnum<{
|
|
59
|
-
"t3.micro": "t3.micro";
|
|
60
|
-
"t3.small": "t3.small";
|
|
61
|
-
"t3.medium": "t3.medium";
|
|
62
|
-
}>>;
|
|
63
|
-
publicIp: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
64
|
-
launchTime: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodDate, z.ZodNumber]>>>;
|
|
65
|
-
repoUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
66
|
-
integrations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
67
|
-
name: z.ZodString;
|
|
68
|
-
config: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
69
|
-
}, z.core.$strip>>>;
|
|
70
|
-
}, z.core.$strip>;
|
|
71
|
-
export type UpdateAwsInstance = z.infer<typeof UpdateAwsInstanceSchema>;
|
|
72
|
-
export declare const SaveAwsCredentialsSchema: z.ZodObject<{
|
|
73
|
-
accessKeyId: z.ZodString;
|
|
74
|
-
secretAccessKey: z.ZodString;
|
|
75
|
-
region: z.ZodDefault<z.ZodString>;
|
|
76
|
-
}, z.core.$strip>;
|
|
77
|
-
export type SaveAwsCredentials = z.infer<typeof SaveAwsCredentialsSchema>;
|
|
78
|
-
export declare const ProvisionAwsInstanceSchema: z.ZodObject<{
|
|
79
|
-
repoUrl: z.ZodString;
|
|
80
|
-
githubToken: z.ZodString;
|
|
81
|
-
instanceType: z.ZodDefault<z.ZodEnum<{
|
|
82
|
-
"t3.micro": "t3.micro";
|
|
83
|
-
"t3.small": "t3.small";
|
|
84
|
-
"t3.medium": "t3.medium";
|
|
85
|
-
}>>;
|
|
86
|
-
integrations: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
87
|
-
name: z.ZodString;
|
|
88
|
-
config: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
89
|
-
}, z.core.$strip>>>>;
|
|
90
|
-
}, z.core.$strip>;
|
|
91
|
-
export type ProvisionAwsInstance = z.infer<typeof ProvisionAwsInstanceSchema>;
|
|
92
|
-
export declare const InstanceActionBodySchema: z.ZodObject<{
|
|
93
|
-
action: z.ZodEnum<typeof InstanceAction>;
|
|
94
|
-
}, z.core.$strip>;
|
|
95
|
-
export type InstanceActionBody = z.infer<typeof InstanceActionBodySchema>;
|
|
96
|
-
export declare const InstanceIdParamSchema: z.ZodObject<{
|
|
97
|
-
workspaceId: z.ZodString;
|
|
98
|
-
instanceId: z.ZodString;
|
|
99
|
-
}, z.core.$strip>;
|
|
100
|
-
export type InstanceIdParam = z.infer<typeof InstanceIdParamSchema>;
|
|
101
|
-
export declare const UpdateSecurityRulesSchema: z.ZodObject<{
|
|
102
|
-
allowedIps: z.ZodArray<z.ZodString>;
|
|
103
|
-
}, z.core.$strip>;
|
|
104
|
-
export type UpdateSecurityRules = z.infer<typeof UpdateSecurityRulesSchema>;
|
|
105
|
-
//# sourceMappingURL=aws-instance.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|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