@hackfed/schemas 0.5.0 → 0.6.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.
|
@@ -4,7 +4,7 @@ export declare const TelephonyDirectoryPhonebookSchema: z.ZodObject<{
|
|
|
4
4
|
hackfed: "hackfed";
|
|
5
5
|
}>;
|
|
6
6
|
url: z.ZodURL;
|
|
7
|
-
}, z.core.$
|
|
7
|
+
}, z.core.$strip>;
|
|
8
8
|
export declare const TelephonyDirectoryExchangeSchema: z.ZodObject<{
|
|
9
9
|
codecs: z.ZodArray<z.ZodEnum<{
|
|
10
10
|
opus: "opus";
|
|
@@ -17,7 +17,7 @@ export declare const TelephonyDirectoryExchangeSchema: z.ZodObject<{
|
|
|
17
17
|
protocol: z.ZodEnum<{
|
|
18
18
|
iax2: "iax2";
|
|
19
19
|
}>;
|
|
20
|
-
}, z.core.$
|
|
20
|
+
}, z.core.$strip>;
|
|
21
21
|
export declare const TelephonyDirectoryOrgSchema: z.ZodObject<{
|
|
22
22
|
exchanges: z.ZodArray<z.ZodObject<{
|
|
23
23
|
codecs: z.ZodArray<z.ZodEnum<{
|
|
@@ -31,7 +31,7 @@ export declare const TelephonyDirectoryOrgSchema: z.ZodObject<{
|
|
|
31
31
|
protocol: z.ZodEnum<{
|
|
32
32
|
iax2: "iax2";
|
|
33
33
|
}>;
|
|
34
|
-
}, z.core.$
|
|
34
|
+
}, z.core.$strip>>;
|
|
35
35
|
name: z.ZodString;
|
|
36
36
|
orgId: z.ZodString;
|
|
37
37
|
phonebooks: z.ZodArray<z.ZodObject<{
|
|
@@ -39,8 +39,8 @@ export declare const TelephonyDirectoryOrgSchema: z.ZodObject<{
|
|
|
39
39
|
hackfed: "hackfed";
|
|
40
40
|
}>;
|
|
41
41
|
url: z.ZodURL;
|
|
42
|
-
}, z.core.$
|
|
43
|
-
}, z.core.$
|
|
42
|
+
}, z.core.$strip>>;
|
|
43
|
+
}, z.core.$strip>;
|
|
44
44
|
export declare const TelephonyDirectorySchema: z.ZodObject<{
|
|
45
45
|
orgs: z.ZodArray<z.ZodObject<{
|
|
46
46
|
exchanges: z.ZodArray<z.ZodObject<{
|
|
@@ -55,7 +55,7 @@ export declare const TelephonyDirectorySchema: z.ZodObject<{
|
|
|
55
55
|
protocol: z.ZodEnum<{
|
|
56
56
|
iax2: "iax2";
|
|
57
57
|
}>;
|
|
58
|
-
}, z.core.$
|
|
58
|
+
}, z.core.$strip>>;
|
|
59
59
|
name: z.ZodString;
|
|
60
60
|
orgId: z.ZodString;
|
|
61
61
|
phonebooks: z.ZodArray<z.ZodObject<{
|
|
@@ -63,8 +63,8 @@ export declare const TelephonyDirectorySchema: z.ZodObject<{
|
|
|
63
63
|
hackfed: "hackfed";
|
|
64
64
|
}>;
|
|
65
65
|
url: z.ZodURL;
|
|
66
|
-
}, z.core.$
|
|
67
|
-
}, z.core.$
|
|
66
|
+
}, z.core.$strip>>;
|
|
67
|
+
}, z.core.$strip>>;
|
|
68
68
|
}, z.core.$strip>;
|
|
69
69
|
export type TelephonyDirectory = z.infer<typeof TelephonyDirectorySchema>;
|
|
70
70
|
export type TelephonyDirectoryOrg = z.infer<typeof TelephonyDirectoryOrgSchema>;
|
|
@@ -75,7 +75,7 @@ export declare const __schemas: (z.ZodObject<{
|
|
|
75
75
|
hackfed: "hackfed";
|
|
76
76
|
}>;
|
|
77
77
|
url: z.ZodURL;
|
|
78
|
-
}, z.core.$
|
|
78
|
+
}, z.core.$strip> | z.ZodObject<{
|
|
79
79
|
codecs: z.ZodArray<z.ZodEnum<{
|
|
80
80
|
opus: "opus";
|
|
81
81
|
g722: "g722";
|
|
@@ -87,7 +87,7 @@ export declare const __schemas: (z.ZodObject<{
|
|
|
87
87
|
protocol: z.ZodEnum<{
|
|
88
88
|
iax2: "iax2";
|
|
89
89
|
}>;
|
|
90
|
-
}, z.core.$
|
|
90
|
+
}, z.core.$strip> | z.ZodObject<{
|
|
91
91
|
exchanges: z.ZodArray<z.ZodObject<{
|
|
92
92
|
codecs: z.ZodArray<z.ZodEnum<{
|
|
93
93
|
opus: "opus";
|
|
@@ -100,7 +100,7 @@ export declare const __schemas: (z.ZodObject<{
|
|
|
100
100
|
protocol: z.ZodEnum<{
|
|
101
101
|
iax2: "iax2";
|
|
102
102
|
}>;
|
|
103
|
-
}, z.core.$
|
|
103
|
+
}, z.core.$strip>>;
|
|
104
104
|
name: z.ZodString;
|
|
105
105
|
orgId: z.ZodString;
|
|
106
106
|
phonebooks: z.ZodArray<z.ZodObject<{
|
|
@@ -108,8 +108,8 @@ export declare const __schemas: (z.ZodObject<{
|
|
|
108
108
|
hackfed: "hackfed";
|
|
109
109
|
}>;
|
|
110
110
|
url: z.ZodURL;
|
|
111
|
-
}, z.core.$
|
|
112
|
-
}, z.core.$
|
|
111
|
+
}, z.core.$strip>>;
|
|
112
|
+
}, z.core.$strip> | z.ZodObject<{
|
|
113
113
|
orgs: z.ZodArray<z.ZodObject<{
|
|
114
114
|
exchanges: z.ZodArray<z.ZodObject<{
|
|
115
115
|
codecs: z.ZodArray<z.ZodEnum<{
|
|
@@ -123,7 +123,7 @@ export declare const __schemas: (z.ZodObject<{
|
|
|
123
123
|
protocol: z.ZodEnum<{
|
|
124
124
|
iax2: "iax2";
|
|
125
125
|
}>;
|
|
126
|
-
}, z.core.$
|
|
126
|
+
}, z.core.$strip>>;
|
|
127
127
|
name: z.ZodString;
|
|
128
128
|
orgId: z.ZodString;
|
|
129
129
|
phonebooks: z.ZodArray<z.ZodObject<{
|
|
@@ -131,6 +131,6 @@ export declare const __schemas: (z.ZodObject<{
|
|
|
131
131
|
hackfed: "hackfed";
|
|
132
132
|
}>;
|
|
133
133
|
url: z.ZodURL;
|
|
134
|
-
}, z.core.$
|
|
135
|
-
}, z.core.$
|
|
134
|
+
}, z.core.$strip>>;
|
|
135
|
+
}, z.core.$strip>>;
|
|
136
136
|
}, z.core.$strip>)[];
|
|
@@ -5,7 +5,11 @@ export const TelephonyDirectoryPhonebookSchema = z
|
|
|
5
5
|
format: z.enum(['hackfed']).describe('Format of the phonebook data'),
|
|
6
6
|
url: z.url().describe('URL to the phonebook resource'),
|
|
7
7
|
})
|
|
8
|
-
.
|
|
8
|
+
.meta({
|
|
9
|
+
description: 'Information about a public phonebook for an organization.',
|
|
10
|
+
id: 'TelephonyDirectoryPhonebook',
|
|
11
|
+
title: 'Hackfed Telephony Directory Phonebook',
|
|
12
|
+
});
|
|
9
13
|
export const TelephonyDirectoryExchangeSchema = z
|
|
10
14
|
.object({
|
|
11
15
|
codecs: z
|
|
@@ -21,7 +25,11 @@ export const TelephonyDirectoryExchangeSchema = z
|
|
|
21
25
|
.describe('Telephony number prefixes allocated to the organization for this exchange'),
|
|
22
26
|
protocol: z.enum(['iax2']).describe('Telephony protocol used by the exchange'),
|
|
23
27
|
})
|
|
24
|
-
.
|
|
28
|
+
.meta({
|
|
29
|
+
description: 'Information about a telephony exchange for an organization.',
|
|
30
|
+
id: 'TelephonyDirectoryExchange',
|
|
31
|
+
title: 'Hackfed Telephony Directory Exchange',
|
|
32
|
+
});
|
|
25
33
|
export const TelephonyDirectoryOrgSchema = z
|
|
26
34
|
.object({
|
|
27
35
|
exchanges: TelephonyDirectoryExchangeSchema
|
|
@@ -31,7 +39,11 @@ export const TelephonyDirectoryOrgSchema = z
|
|
|
31
39
|
orgId: OrganizationIdSchema.describe('Unique identifier for the organization'),
|
|
32
40
|
phonebooks: TelephonyDirectoryPhonebookSchema.array().describe('Public phonebook URLs for the organization'),
|
|
33
41
|
})
|
|
34
|
-
.
|
|
42
|
+
.meta({
|
|
43
|
+
description: 'Information about an organization participating in Hackfed Telephony Network.',
|
|
44
|
+
id: 'TelephonyDirectoryOrg',
|
|
45
|
+
title: 'Hackfed Telephony Directory Organization',
|
|
46
|
+
});
|
|
35
47
|
export const TelephonyDirectorySchema = z
|
|
36
48
|
.object({
|
|
37
49
|
orgs: z
|