api-arreya-types 1.0.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/account.type.d.ts +150 -0
- package/auth.type.d.ts +35 -0
- package/billing.type.d.ts +113 -0
- package/device.type.d.ts +166 -0
- package/error-result.type.d.ts +4 -0
- package/example.type.d.ts +7 -0
- package/file.type.d.ts +298 -0
- package/folder.type.d.ts +66 -0
- package/index.d.ts +9 -0
- package/package.json +9 -0
- package/page.type.d.ts +212 -0
- package/presentation.type.d.ts +290 -0
- package/project.type.d.ts +90 -0
- package/schedule.type.d.ts +240 -0
- package/stripe.type.d.ts +105 -0
- package/template.type.d.ts +326 -0
- package/user.type.d.ts +223 -0
- package/zod-utils.d.ts +5 -0
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const zStatus: z.ZodEnum<[string, ...string[]]>;
|
|
3
|
+
export declare const Account: z.ZodObject<{
|
|
4
|
+
id: z.ZodString;
|
|
5
|
+
name: z.ZodString;
|
|
6
|
+
stripeCustomer: z.ZodNullable<z.ZodString>;
|
|
7
|
+
stripeSubscription: z.ZodNullable<z.ZodString>;
|
|
8
|
+
status: z.ZodEnum<[string, ...string[]]>;
|
|
9
|
+
deviceLimit: z.ZodNullable<z.ZodNumber>;
|
|
10
|
+
mediaLimit: z.ZodNullable<z.ZodNumber>;
|
|
11
|
+
private: z.ZodDefault<z.ZodBoolean>;
|
|
12
|
+
createdAt: z.ZodDate;
|
|
13
|
+
updatedAt: z.ZodDate;
|
|
14
|
+
}, "strip", z.ZodTypeAny, {
|
|
15
|
+
id: string;
|
|
16
|
+
name: string;
|
|
17
|
+
stripeCustomer: string | null;
|
|
18
|
+
stripeSubscription: string | null;
|
|
19
|
+
status: string;
|
|
20
|
+
deviceLimit: number | null;
|
|
21
|
+
mediaLimit: number | null;
|
|
22
|
+
private: boolean;
|
|
23
|
+
createdAt: Date;
|
|
24
|
+
updatedAt: Date;
|
|
25
|
+
}, {
|
|
26
|
+
id: string;
|
|
27
|
+
name: string;
|
|
28
|
+
stripeCustomer: string | null;
|
|
29
|
+
stripeSubscription: string | null;
|
|
30
|
+
status: string;
|
|
31
|
+
deviceLimit: number | null;
|
|
32
|
+
mediaLimit: number | null;
|
|
33
|
+
createdAt: Date;
|
|
34
|
+
updatedAt: Date;
|
|
35
|
+
private?: boolean | undefined;
|
|
36
|
+
}>;
|
|
37
|
+
export declare const AccountCreate: z.ZodObject<{
|
|
38
|
+
name: z.ZodString;
|
|
39
|
+
stripeCustomer: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
40
|
+
stripeSubscription: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
41
|
+
status: z.ZodDefault<z.ZodEnum<[string, ...string[]]>>;
|
|
42
|
+
deviceLimit: z.ZodNullable<z.ZodNumber>;
|
|
43
|
+
mediaLimit: z.ZodNullable<z.ZodNumber>;
|
|
44
|
+
private: z.ZodDefault<z.ZodBoolean>;
|
|
45
|
+
}, "strip", z.ZodTypeAny, {
|
|
46
|
+
name: string;
|
|
47
|
+
stripeCustomer: string | null;
|
|
48
|
+
stripeSubscription: string | null;
|
|
49
|
+
status: string;
|
|
50
|
+
deviceLimit: number | null;
|
|
51
|
+
mediaLimit: number | null;
|
|
52
|
+
private: boolean;
|
|
53
|
+
}, {
|
|
54
|
+
name: string;
|
|
55
|
+
deviceLimit: number | null;
|
|
56
|
+
mediaLimit: number | null;
|
|
57
|
+
stripeCustomer?: string | null | undefined;
|
|
58
|
+
stripeSubscription?: string | null | undefined;
|
|
59
|
+
status?: string | undefined;
|
|
60
|
+
private?: boolean | undefined;
|
|
61
|
+
}>;
|
|
62
|
+
export declare const AccountUpdate: z.ZodObject<{
|
|
63
|
+
id: z.ZodString;
|
|
64
|
+
stripeCustomer: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
65
|
+
stripeSubscription: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
66
|
+
status: z.ZodOptional<z.ZodDefault<z.ZodEnum<[string, ...string[]]>>>;
|
|
67
|
+
deviceLimit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
68
|
+
mediaLimit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
69
|
+
private: z.ZodOptional<z.ZodBoolean>;
|
|
70
|
+
}, "strip", z.ZodTypeAny, {
|
|
71
|
+
id: string;
|
|
72
|
+
stripeCustomer?: string | null | undefined;
|
|
73
|
+
stripeSubscription?: string | null | undefined;
|
|
74
|
+
status?: string | undefined;
|
|
75
|
+
deviceLimit?: number | null | undefined;
|
|
76
|
+
mediaLimit?: number | null | undefined;
|
|
77
|
+
private?: boolean | undefined;
|
|
78
|
+
}, {
|
|
79
|
+
id: string;
|
|
80
|
+
stripeCustomer?: string | null | undefined;
|
|
81
|
+
stripeSubscription?: string | null | undefined;
|
|
82
|
+
status?: string | undefined;
|
|
83
|
+
deviceLimit?: number | null | undefined;
|
|
84
|
+
mediaLimit?: number | null | undefined;
|
|
85
|
+
private?: boolean | undefined;
|
|
86
|
+
}>;
|
|
87
|
+
export type Account = z.infer<typeof Account>;
|
|
88
|
+
export type AccountCreate = z.infer<typeof AccountCreate>;
|
|
89
|
+
export type AccountUpdate = z.infer<typeof AccountUpdate>;
|
|
90
|
+
export declare const AccountIdRequestParams: z.ZodObject<{
|
|
91
|
+
id: z.ZodString;
|
|
92
|
+
}, "strip", z.ZodTypeAny, {
|
|
93
|
+
id: string;
|
|
94
|
+
}, {
|
|
95
|
+
id: string;
|
|
96
|
+
}>;
|
|
97
|
+
export declare const CreateAccountRequestBody: z.ZodObject<{
|
|
98
|
+
name: z.ZodString;
|
|
99
|
+
stripeCustomer: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
100
|
+
status: z.ZodDefault<z.ZodEnum<[string, ...string[]]>>;
|
|
101
|
+
deviceLimit: z.ZodNullable<z.ZodNumber>;
|
|
102
|
+
mediaLimit: z.ZodNullable<z.ZodNumber>;
|
|
103
|
+
private: z.ZodDefault<z.ZodBoolean>;
|
|
104
|
+
}, "strip", z.ZodTypeAny, {
|
|
105
|
+
name: string;
|
|
106
|
+
stripeCustomer: string | null;
|
|
107
|
+
status: string;
|
|
108
|
+
deviceLimit: number | null;
|
|
109
|
+
mediaLimit: number | null;
|
|
110
|
+
private: boolean;
|
|
111
|
+
}, {
|
|
112
|
+
name: string;
|
|
113
|
+
deviceLimit: number | null;
|
|
114
|
+
mediaLimit: number | null;
|
|
115
|
+
stripeCustomer?: string | null | undefined;
|
|
116
|
+
status?: string | undefined;
|
|
117
|
+
private?: boolean | undefined;
|
|
118
|
+
}>;
|
|
119
|
+
export type CreateAccountRequestBody = z.infer<typeof CreateAccountRequestBody>;
|
|
120
|
+
export declare const UpdateAccountDBRequestBody: z.ZodObject<{
|
|
121
|
+
email: z.ZodOptional<z.ZodString>;
|
|
122
|
+
}, "strip", z.ZodTypeAny, {
|
|
123
|
+
email?: string | undefined;
|
|
124
|
+
}, {
|
|
125
|
+
email?: string | undefined;
|
|
126
|
+
}>;
|
|
127
|
+
export declare const UpdateAccountSubscriptionRequestBody: z.ZodObject<{
|
|
128
|
+
items: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
129
|
+
id: z.ZodString;
|
|
130
|
+
quantity: z.ZodNumber;
|
|
131
|
+
}, "strip", z.ZodTypeAny, {
|
|
132
|
+
id: string;
|
|
133
|
+
quantity: number;
|
|
134
|
+
}, {
|
|
135
|
+
id: string;
|
|
136
|
+
quantity: number;
|
|
137
|
+
}>, "many">>;
|
|
138
|
+
}, "strip", z.ZodTypeAny, {
|
|
139
|
+
items?: {
|
|
140
|
+
id: string;
|
|
141
|
+
quantity: number;
|
|
142
|
+
}[] | undefined;
|
|
143
|
+
}, {
|
|
144
|
+
items?: {
|
|
145
|
+
id: string;
|
|
146
|
+
quantity: number;
|
|
147
|
+
}[] | undefined;
|
|
148
|
+
}>;
|
|
149
|
+
export type UpdateAccountDBRequestBody = z.infer<typeof UpdateAccountDBRequestBody>;
|
|
150
|
+
export type UpdateAccountSubscriptionRequestBody = z.infer<typeof UpdateAccountSubscriptionRequestBody>;
|
package/auth.type.d.ts
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const AuthorizationRequestQuery: z.ZodObject<{
|
|
3
|
+
accountId: z.ZodString;
|
|
4
|
+
}, "strip", z.ZodTypeAny, {
|
|
5
|
+
accountId: string;
|
|
6
|
+
}, {
|
|
7
|
+
accountId: string;
|
|
8
|
+
}>;
|
|
9
|
+
export declare const AuthenticationRequestHeader: z.ZodObject<{
|
|
10
|
+
authorization: z.ZodString;
|
|
11
|
+
}, "strip", z.ZodTypeAny, {
|
|
12
|
+
authorization: string;
|
|
13
|
+
}, {
|
|
14
|
+
authorization: string;
|
|
15
|
+
}>;
|
|
16
|
+
export declare const IdRequestParams: z.ZodObject<{
|
|
17
|
+
id: z.ZodOptional<z.ZodString>;
|
|
18
|
+
}, "strip", z.ZodTypeAny, {
|
|
19
|
+
id?: string | undefined;
|
|
20
|
+
}, {
|
|
21
|
+
id?: string | undefined;
|
|
22
|
+
}>;
|
|
23
|
+
export declare const RequestBody: z.ZodOptional<z.ZodObject<{
|
|
24
|
+
ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
25
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
26
|
+
projectIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
27
|
+
}, "strip", z.ZodTypeAny, {
|
|
28
|
+
ids?: string[] | undefined;
|
|
29
|
+
projectId?: string | undefined;
|
|
30
|
+
projectIds?: string[] | undefined;
|
|
31
|
+
}, {
|
|
32
|
+
ids?: string[] | undefined;
|
|
33
|
+
projectId?: string | undefined;
|
|
34
|
+
projectIds?: string[] | undefined;
|
|
35
|
+
}>>;
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import Stripe from 'stripe';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
export type PaymentMethod = Stripe.PaymentMethod & {
|
|
4
|
+
isDefault?: boolean;
|
|
5
|
+
};
|
|
6
|
+
export declare const SubscriptionItem: z.ZodObject<{
|
|
7
|
+
id: z.ZodString;
|
|
8
|
+
price: z.ZodString;
|
|
9
|
+
quantity: z.ZodOptional<z.ZodNumber>;
|
|
10
|
+
}, "strip", z.ZodTypeAny, {
|
|
11
|
+
id: string;
|
|
12
|
+
price: string;
|
|
13
|
+
quantity?: number | undefined;
|
|
14
|
+
}, {
|
|
15
|
+
id: string;
|
|
16
|
+
price: string;
|
|
17
|
+
quantity?: number | undefined;
|
|
18
|
+
}>;
|
|
19
|
+
export type SubscriptionItem = z.infer<typeof SubscriptionItem>;
|
|
20
|
+
export declare const CustomerUpdate: z.ZodObject<{
|
|
21
|
+
id: z.ZodString;
|
|
22
|
+
defaultPaymentMethod: z.ZodOptional<z.ZodString>;
|
|
23
|
+
}, "strip", z.ZodTypeAny, {
|
|
24
|
+
id: string;
|
|
25
|
+
defaultPaymentMethod?: string | undefined;
|
|
26
|
+
}, {
|
|
27
|
+
id: string;
|
|
28
|
+
defaultPaymentMethod?: string | undefined;
|
|
29
|
+
}>;
|
|
30
|
+
export type CustomerUpdate = z.infer<typeof CustomerUpdate>;
|
|
31
|
+
export declare const ConfirmSetupIntentRequestBody: z.ZodObject<{
|
|
32
|
+
setupIntentId: z.ZodString;
|
|
33
|
+
paymentMethodId: z.ZodString;
|
|
34
|
+
}, "strip", z.ZodTypeAny, {
|
|
35
|
+
setupIntentId: string;
|
|
36
|
+
paymentMethodId: string;
|
|
37
|
+
}, {
|
|
38
|
+
setupIntentId: string;
|
|
39
|
+
paymentMethodId: string;
|
|
40
|
+
}>;
|
|
41
|
+
export type ConfirmSetupIntentRequestBody = z.infer<typeof ConfirmSetupIntentRequestBody>;
|
|
42
|
+
export declare const CreatePreviewRequestBody: z.ZodObject<{
|
|
43
|
+
items: z.ZodArray<z.ZodObject<{
|
|
44
|
+
id: z.ZodString;
|
|
45
|
+
price: z.ZodString;
|
|
46
|
+
quantity: z.ZodOptional<z.ZodNumber>;
|
|
47
|
+
}, "strip", z.ZodTypeAny, {
|
|
48
|
+
id: string;
|
|
49
|
+
price: string;
|
|
50
|
+
quantity?: number | undefined;
|
|
51
|
+
}, {
|
|
52
|
+
id: string;
|
|
53
|
+
price: string;
|
|
54
|
+
quantity?: number | undefined;
|
|
55
|
+
}>, "many">;
|
|
56
|
+
}, "strip", z.ZodTypeAny, {
|
|
57
|
+
items: {
|
|
58
|
+
id: string;
|
|
59
|
+
price: string;
|
|
60
|
+
quantity?: number | undefined;
|
|
61
|
+
}[];
|
|
62
|
+
}, {
|
|
63
|
+
items: {
|
|
64
|
+
id: string;
|
|
65
|
+
price: string;
|
|
66
|
+
quantity?: number | undefined;
|
|
67
|
+
}[];
|
|
68
|
+
}>;
|
|
69
|
+
export type CreatePreviewRequestBody = z.infer<typeof CreatePreviewRequestBody>;
|
|
70
|
+
export declare const DeletePaymentMethodRequestBody: z.ZodObject<{
|
|
71
|
+
paymentMethodId: z.ZodString;
|
|
72
|
+
}, "strip", z.ZodTypeAny, {
|
|
73
|
+
paymentMethodId: string;
|
|
74
|
+
}, {
|
|
75
|
+
paymentMethodId: string;
|
|
76
|
+
}>;
|
|
77
|
+
export type DeletePaymentMethodRequestBody = z.infer<typeof DeletePaymentMethodRequestBody>;
|
|
78
|
+
export declare const PaymentMethodIdRequestParams: z.ZodObject<{
|
|
79
|
+
id: z.ZodString;
|
|
80
|
+
}, "strip", z.ZodTypeAny, {
|
|
81
|
+
id: string;
|
|
82
|
+
}, {
|
|
83
|
+
id: string;
|
|
84
|
+
}>;
|
|
85
|
+
export type PaymentMethodIdRequestParams = z.infer<typeof PaymentMethodIdRequestParams>;
|
|
86
|
+
export declare const UpdateSubscriptionRequestBody: z.ZodObject<{
|
|
87
|
+
items: z.ZodArray<z.ZodObject<{
|
|
88
|
+
id: z.ZodString;
|
|
89
|
+
price: z.ZodString;
|
|
90
|
+
quantity: z.ZodOptional<z.ZodNumber>;
|
|
91
|
+
}, "strip", z.ZodTypeAny, {
|
|
92
|
+
id: string;
|
|
93
|
+
price: string;
|
|
94
|
+
quantity?: number | undefined;
|
|
95
|
+
}, {
|
|
96
|
+
id: string;
|
|
97
|
+
price: string;
|
|
98
|
+
quantity?: number | undefined;
|
|
99
|
+
}>, "many">;
|
|
100
|
+
}, "strip", z.ZodTypeAny, {
|
|
101
|
+
items: {
|
|
102
|
+
id: string;
|
|
103
|
+
price: string;
|
|
104
|
+
quantity?: number | undefined;
|
|
105
|
+
}[];
|
|
106
|
+
}, {
|
|
107
|
+
items: {
|
|
108
|
+
id: string;
|
|
109
|
+
price: string;
|
|
110
|
+
quantity?: number | undefined;
|
|
111
|
+
}[];
|
|
112
|
+
}>;
|
|
113
|
+
export type UpdateSubscriptionRequestBody = z.infer<typeof UpdateSubscriptionRequestBody>;
|
package/device.type.d.ts
ADDED
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const Device: z.ZodObject<{
|
|
3
|
+
id: z.ZodString;
|
|
4
|
+
name: z.ZodNullable<z.ZodString>;
|
|
5
|
+
projectId: z.ZodNullable<z.ZodString>;
|
|
6
|
+
code: z.ZodNullable<z.ZodString>;
|
|
7
|
+
ip: z.ZodString;
|
|
8
|
+
userAgent: z.ZodString;
|
|
9
|
+
online: z.ZodBoolean;
|
|
10
|
+
createdAt: z.ZodDate;
|
|
11
|
+
updatedAt: z.ZodDate;
|
|
12
|
+
}, "strip", z.ZodTypeAny, {
|
|
13
|
+
id: string;
|
|
14
|
+
name: string | null;
|
|
15
|
+
createdAt: Date;
|
|
16
|
+
updatedAt: Date;
|
|
17
|
+
code: string | null;
|
|
18
|
+
projectId: string | null;
|
|
19
|
+
ip: string;
|
|
20
|
+
userAgent: string;
|
|
21
|
+
online: boolean;
|
|
22
|
+
}, {
|
|
23
|
+
id: string;
|
|
24
|
+
name: string | null;
|
|
25
|
+
createdAt: Date;
|
|
26
|
+
updatedAt: Date;
|
|
27
|
+
code: string | null;
|
|
28
|
+
projectId: string | null;
|
|
29
|
+
ip: string;
|
|
30
|
+
userAgent: string;
|
|
31
|
+
online: boolean;
|
|
32
|
+
}>;
|
|
33
|
+
export declare const DeviceCreate: z.ZodObject<{
|
|
34
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
35
|
+
projectId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
36
|
+
code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
37
|
+
ip: z.ZodString;
|
|
38
|
+
userAgent: z.ZodString;
|
|
39
|
+
online: z.ZodBoolean;
|
|
40
|
+
}, "strip", z.ZodTypeAny, {
|
|
41
|
+
ip: string;
|
|
42
|
+
userAgent: string;
|
|
43
|
+
online: boolean;
|
|
44
|
+
name?: string | null | undefined;
|
|
45
|
+
code?: string | null | undefined;
|
|
46
|
+
projectId?: string | null | undefined;
|
|
47
|
+
}, {
|
|
48
|
+
ip: string;
|
|
49
|
+
userAgent: string;
|
|
50
|
+
online: boolean;
|
|
51
|
+
name?: string | null | undefined;
|
|
52
|
+
code?: string | null | undefined;
|
|
53
|
+
projectId?: string | null | undefined;
|
|
54
|
+
}>;
|
|
55
|
+
export declare const DeviceUpdate: z.ZodObject<{
|
|
56
|
+
id: z.ZodString;
|
|
57
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
58
|
+
projectId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
59
|
+
code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
60
|
+
ip: z.ZodOptional<z.ZodString>;
|
|
61
|
+
userAgent: z.ZodOptional<z.ZodString>;
|
|
62
|
+
online: z.ZodOptional<z.ZodBoolean>;
|
|
63
|
+
}, "strip", z.ZodTypeAny, {
|
|
64
|
+
id: string;
|
|
65
|
+
name?: string | null | undefined;
|
|
66
|
+
code?: string | null | undefined;
|
|
67
|
+
projectId?: string | null | undefined;
|
|
68
|
+
ip?: string | undefined;
|
|
69
|
+
userAgent?: string | undefined;
|
|
70
|
+
online?: boolean | undefined;
|
|
71
|
+
}, {
|
|
72
|
+
id: string;
|
|
73
|
+
name?: string | null | undefined;
|
|
74
|
+
code?: string | null | undefined;
|
|
75
|
+
projectId?: string | null | undefined;
|
|
76
|
+
ip?: string | undefined;
|
|
77
|
+
userAgent?: string | undefined;
|
|
78
|
+
online?: boolean | undefined;
|
|
79
|
+
}>;
|
|
80
|
+
export declare const DevicePair: z.ZodObject<{
|
|
81
|
+
id: z.ZodString;
|
|
82
|
+
name: z.ZodString;
|
|
83
|
+
projectId: z.ZodString;
|
|
84
|
+
}, "strip", z.ZodTypeAny, {
|
|
85
|
+
id: string;
|
|
86
|
+
name: string;
|
|
87
|
+
projectId: string;
|
|
88
|
+
}, {
|
|
89
|
+
id: string;
|
|
90
|
+
name: string;
|
|
91
|
+
projectId: string;
|
|
92
|
+
}>;
|
|
93
|
+
export type Device = z.infer<typeof Device>;
|
|
94
|
+
export type DeviceCreate = z.infer<typeof DeviceCreate>;
|
|
95
|
+
export type DeviceUpdate = z.infer<typeof DeviceUpdate>;
|
|
96
|
+
export type DevicePair = z.infer<typeof DevicePair>;
|
|
97
|
+
export declare const DeviceIdRequestParams: z.ZodObject<{
|
|
98
|
+
id: z.ZodString;
|
|
99
|
+
}, "strip", z.ZodTypeAny, {
|
|
100
|
+
id: string;
|
|
101
|
+
}, {
|
|
102
|
+
id: string;
|
|
103
|
+
}>;
|
|
104
|
+
export type DeviceIdRequestParams = z.infer<typeof DeviceIdRequestParams>;
|
|
105
|
+
export declare const DeviceIdsRequestBody: z.ZodObject<{
|
|
106
|
+
ids: z.ZodArray<z.ZodString, "many">;
|
|
107
|
+
}, "strip", z.ZodTypeAny, {
|
|
108
|
+
ids: string[];
|
|
109
|
+
}, {
|
|
110
|
+
ids: string[];
|
|
111
|
+
}>;
|
|
112
|
+
export type DeviceIdsRequestBody = z.infer<typeof DeviceIdsRequestBody>;
|
|
113
|
+
export declare const MoveDevicesRequestBody: z.ZodObject<{
|
|
114
|
+
ids: z.ZodArray<z.ZodString, "many">;
|
|
115
|
+
projectId: z.ZodString;
|
|
116
|
+
}, "strip", z.ZodTypeAny, {
|
|
117
|
+
ids: string[];
|
|
118
|
+
projectId: string;
|
|
119
|
+
}, {
|
|
120
|
+
ids: string[];
|
|
121
|
+
projectId: string;
|
|
122
|
+
}>;
|
|
123
|
+
export type MoveDevicesRequestBody = z.infer<typeof MoveDevicesRequestBody>;
|
|
124
|
+
export declare const CreateDeviceRequestBody: z.ZodObject<{
|
|
125
|
+
name: z.ZodString;
|
|
126
|
+
project: z.ZodNullable<z.ZodString>;
|
|
127
|
+
}, "strip", z.ZodTypeAny, {
|
|
128
|
+
name: string;
|
|
129
|
+
project: string | null;
|
|
130
|
+
}, {
|
|
131
|
+
name: string;
|
|
132
|
+
project: string | null;
|
|
133
|
+
}>;
|
|
134
|
+
export type CreateDeviceRequestBody = z.infer<typeof CreateDeviceRequestBody>;
|
|
135
|
+
export declare const UpdateDeviceRequestBody: z.ZodObject<{
|
|
136
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
137
|
+
projectId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
138
|
+
}, "strip", z.ZodTypeAny, {
|
|
139
|
+
name?: string | null | undefined;
|
|
140
|
+
projectId?: string | null | undefined;
|
|
141
|
+
}, {
|
|
142
|
+
name?: string | null | undefined;
|
|
143
|
+
projectId?: string | null | undefined;
|
|
144
|
+
}>;
|
|
145
|
+
export type UpdateDeviceRequestBody = z.infer<typeof UpdateDeviceRequestBody>;
|
|
146
|
+
export declare const PairDeviceRequestBody: z.ZodObject<{
|
|
147
|
+
name: z.ZodString;
|
|
148
|
+
code: z.ZodString;
|
|
149
|
+
projectId: z.ZodString;
|
|
150
|
+
}, "strip", z.ZodTypeAny, {
|
|
151
|
+
name: string;
|
|
152
|
+
code: string;
|
|
153
|
+
projectId: string;
|
|
154
|
+
}, {
|
|
155
|
+
name: string;
|
|
156
|
+
code: string;
|
|
157
|
+
projectId: string;
|
|
158
|
+
}>;
|
|
159
|
+
export type PairDeviceRequestBody = z.infer<typeof PairDeviceRequestBody>;
|
|
160
|
+
export declare const AddDeviceTagRequestBody: z.ZodObject<{
|
|
161
|
+
names: z.ZodArray<z.ZodString, "many">;
|
|
162
|
+
}, "strip", z.ZodTypeAny, {
|
|
163
|
+
names: string[];
|
|
164
|
+
}, {
|
|
165
|
+
names: string[];
|
|
166
|
+
}>;
|