syllable-sdk 1.0.7-rc.8 → 1.0.7
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/bin/mcp-server.js +11 -23
- package/bin/mcp-server.js.map +7 -7
- package/docs/sdks/directory/README.md +32 -4
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/lib/config.js.map +1 -1
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/mcp-server.js.map +1 -1
- package/mcp-server/server.js +1 -1
- package/mcp-server/server.js.map +1 -1
- package/models/components/directorymember.d.ts +6 -23
- package/models/components/directorymember.d.ts.map +1 -1
- package/models/components/directorymember.js +3 -26
- package/models/components/directorymember.js.map +1 -1
- package/models/components/directorymembercreate.d.ts +6 -23
- package/models/components/directorymembercreate.d.ts.map +1 -1
- package/models/components/directorymembercreate.js +3 -26
- package/models/components/directorymembercreate.js.map +1 -1
- package/openapi.json +24 -4
- package/package.json +1 -1
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/components/directorymember.ts +4 -50
- package/src/models/components/directorymembercreate.ts +4 -60
|
@@ -14,8 +14,6 @@ import {
|
|
|
14
14
|
DirectoryExtension$outboundSchema,
|
|
15
15
|
} from "./directoryextension.js";
|
|
16
16
|
|
|
17
|
-
export type ContactTags = {};
|
|
18
|
-
|
|
19
17
|
/**
|
|
20
18
|
* Model for a directory member (i.e. a contact).
|
|
21
19
|
*/
|
|
@@ -35,7 +33,7 @@ export type DirectoryMember = {
|
|
|
35
33
|
/**
|
|
36
34
|
* Tags for the directory member
|
|
37
35
|
*/
|
|
38
|
-
contactTags?:
|
|
36
|
+
contactTags?: { [k: string]: Array<string> } | null | undefined;
|
|
39
37
|
/**
|
|
40
38
|
* Internal ID of the directory member
|
|
41
39
|
*/
|
|
@@ -50,50 +48,6 @@ export type DirectoryMember = {
|
|
|
50
48
|
lastUpdatedBy?: string | null | undefined;
|
|
51
49
|
};
|
|
52
50
|
|
|
53
|
-
/** @internal */
|
|
54
|
-
export const ContactTags$inboundSchema: z.ZodType<
|
|
55
|
-
ContactTags,
|
|
56
|
-
z.ZodTypeDef,
|
|
57
|
-
unknown
|
|
58
|
-
> = z.object({});
|
|
59
|
-
|
|
60
|
-
/** @internal */
|
|
61
|
-
export type ContactTags$Outbound = {};
|
|
62
|
-
|
|
63
|
-
/** @internal */
|
|
64
|
-
export const ContactTags$outboundSchema: z.ZodType<
|
|
65
|
-
ContactTags$Outbound,
|
|
66
|
-
z.ZodTypeDef,
|
|
67
|
-
ContactTags
|
|
68
|
-
> = z.object({});
|
|
69
|
-
|
|
70
|
-
/**
|
|
71
|
-
* @internal
|
|
72
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
73
|
-
*/
|
|
74
|
-
export namespace ContactTags$ {
|
|
75
|
-
/** @deprecated use `ContactTags$inboundSchema` instead. */
|
|
76
|
-
export const inboundSchema = ContactTags$inboundSchema;
|
|
77
|
-
/** @deprecated use `ContactTags$outboundSchema` instead. */
|
|
78
|
-
export const outboundSchema = ContactTags$outboundSchema;
|
|
79
|
-
/** @deprecated use `ContactTags$Outbound` instead. */
|
|
80
|
-
export type Outbound = ContactTags$Outbound;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
export function contactTagsToJSON(contactTags: ContactTags): string {
|
|
84
|
-
return JSON.stringify(ContactTags$outboundSchema.parse(contactTags));
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
export function contactTagsFromJSON(
|
|
88
|
-
jsonString: string,
|
|
89
|
-
): SafeParseResult<ContactTags, SDKValidationError> {
|
|
90
|
-
return safeParse(
|
|
91
|
-
jsonString,
|
|
92
|
-
(x) => ContactTags$inboundSchema.parse(JSON.parse(x)),
|
|
93
|
-
`Failed to parse 'ContactTags' from JSON`,
|
|
94
|
-
);
|
|
95
|
-
}
|
|
96
|
-
|
|
97
51
|
/** @internal */
|
|
98
52
|
export const DirectoryMember$inboundSchema: z.ZodType<
|
|
99
53
|
DirectoryMember,
|
|
@@ -103,7 +57,7 @@ export const DirectoryMember$inboundSchema: z.ZodType<
|
|
|
103
57
|
name: z.string(),
|
|
104
58
|
type: z.string(),
|
|
105
59
|
extensions: z.nullable(z.array(DirectoryExtension$inboundSchema)).optional(),
|
|
106
|
-
contact_tags: z.nullable(z.
|
|
60
|
+
contact_tags: z.nullable(z.record(z.array(z.string()))).optional(),
|
|
107
61
|
id: z.nullable(z.number().int()).optional(),
|
|
108
62
|
updated_at: z.nullable(
|
|
109
63
|
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
@@ -122,7 +76,7 @@ export type DirectoryMember$Outbound = {
|
|
|
122
76
|
name: string;
|
|
123
77
|
type: string;
|
|
124
78
|
extensions?: Array<DirectoryExtension$Outbound> | null | undefined;
|
|
125
|
-
contact_tags?:
|
|
79
|
+
contact_tags?: { [k: string]: Array<string> } | null | undefined;
|
|
126
80
|
id?: number | null | undefined;
|
|
127
81
|
updated_at?: string | null | undefined;
|
|
128
82
|
last_updated_by?: string | null | undefined;
|
|
@@ -137,7 +91,7 @@ export const DirectoryMember$outboundSchema: z.ZodType<
|
|
|
137
91
|
name: z.string(),
|
|
138
92
|
type: z.string(),
|
|
139
93
|
extensions: z.nullable(z.array(DirectoryExtension$outboundSchema)).optional(),
|
|
140
|
-
contactTags: z.nullable(z.
|
|
94
|
+
contactTags: z.nullable(z.record(z.array(z.string()))).optional(),
|
|
141
95
|
id: z.nullable(z.number().int()).optional(),
|
|
142
96
|
updatedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
|
|
143
97
|
lastUpdatedBy: z.nullable(z.string()).optional(),
|
|
@@ -14,8 +14,6 @@ import {
|
|
|
14
14
|
DirectoryExtension$outboundSchema,
|
|
15
15
|
} from "./directoryextension.js";
|
|
16
16
|
|
|
17
|
-
export type DirectoryMemberCreateContactTags = {};
|
|
18
|
-
|
|
19
17
|
/**
|
|
20
18
|
* Request model to create a directory member.
|
|
21
19
|
*/
|
|
@@ -35,59 +33,9 @@ export type DirectoryMemberCreate = {
|
|
|
35
33
|
/**
|
|
36
34
|
* Tags for the directory member
|
|
37
35
|
*/
|
|
38
|
-
contactTags?:
|
|
36
|
+
contactTags?: { [k: string]: Array<string> } | null | undefined;
|
|
39
37
|
};
|
|
40
38
|
|
|
41
|
-
/** @internal */
|
|
42
|
-
export const DirectoryMemberCreateContactTags$inboundSchema: z.ZodType<
|
|
43
|
-
DirectoryMemberCreateContactTags,
|
|
44
|
-
z.ZodTypeDef,
|
|
45
|
-
unknown
|
|
46
|
-
> = z.object({});
|
|
47
|
-
|
|
48
|
-
/** @internal */
|
|
49
|
-
export type DirectoryMemberCreateContactTags$Outbound = {};
|
|
50
|
-
|
|
51
|
-
/** @internal */
|
|
52
|
-
export const DirectoryMemberCreateContactTags$outboundSchema: z.ZodType<
|
|
53
|
-
DirectoryMemberCreateContactTags$Outbound,
|
|
54
|
-
z.ZodTypeDef,
|
|
55
|
-
DirectoryMemberCreateContactTags
|
|
56
|
-
> = z.object({});
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
* @internal
|
|
60
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
61
|
-
*/
|
|
62
|
-
export namespace DirectoryMemberCreateContactTags$ {
|
|
63
|
-
/** @deprecated use `DirectoryMemberCreateContactTags$inboundSchema` instead. */
|
|
64
|
-
export const inboundSchema = DirectoryMemberCreateContactTags$inboundSchema;
|
|
65
|
-
/** @deprecated use `DirectoryMemberCreateContactTags$outboundSchema` instead. */
|
|
66
|
-
export const outboundSchema = DirectoryMemberCreateContactTags$outboundSchema;
|
|
67
|
-
/** @deprecated use `DirectoryMemberCreateContactTags$Outbound` instead. */
|
|
68
|
-
export type Outbound = DirectoryMemberCreateContactTags$Outbound;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
export function directoryMemberCreateContactTagsToJSON(
|
|
72
|
-
directoryMemberCreateContactTags: DirectoryMemberCreateContactTags,
|
|
73
|
-
): string {
|
|
74
|
-
return JSON.stringify(
|
|
75
|
-
DirectoryMemberCreateContactTags$outboundSchema.parse(
|
|
76
|
-
directoryMemberCreateContactTags,
|
|
77
|
-
),
|
|
78
|
-
);
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
export function directoryMemberCreateContactTagsFromJSON(
|
|
82
|
-
jsonString: string,
|
|
83
|
-
): SafeParseResult<DirectoryMemberCreateContactTags, SDKValidationError> {
|
|
84
|
-
return safeParse(
|
|
85
|
-
jsonString,
|
|
86
|
-
(x) => DirectoryMemberCreateContactTags$inboundSchema.parse(JSON.parse(x)),
|
|
87
|
-
`Failed to parse 'DirectoryMemberCreateContactTags' from JSON`,
|
|
88
|
-
);
|
|
89
|
-
}
|
|
90
|
-
|
|
91
39
|
/** @internal */
|
|
92
40
|
export const DirectoryMemberCreate$inboundSchema: z.ZodType<
|
|
93
41
|
DirectoryMemberCreate,
|
|
@@ -97,9 +45,7 @@ export const DirectoryMemberCreate$inboundSchema: z.ZodType<
|
|
|
97
45
|
name: z.string(),
|
|
98
46
|
type: z.string(),
|
|
99
47
|
extensions: z.nullable(z.array(DirectoryExtension$inboundSchema)).optional(),
|
|
100
|
-
contact_tags: z.nullable(
|
|
101
|
-
z.lazy(() => DirectoryMemberCreateContactTags$inboundSchema),
|
|
102
|
-
).optional(),
|
|
48
|
+
contact_tags: z.nullable(z.record(z.array(z.string()))).optional(),
|
|
103
49
|
}).transform((v) => {
|
|
104
50
|
return remap$(v, {
|
|
105
51
|
"contact_tags": "contactTags",
|
|
@@ -111,7 +57,7 @@ export type DirectoryMemberCreate$Outbound = {
|
|
|
111
57
|
name: string;
|
|
112
58
|
type: string;
|
|
113
59
|
extensions?: Array<DirectoryExtension$Outbound> | null | undefined;
|
|
114
|
-
contact_tags?:
|
|
60
|
+
contact_tags?: { [k: string]: Array<string> } | null | undefined;
|
|
115
61
|
};
|
|
116
62
|
|
|
117
63
|
/** @internal */
|
|
@@ -123,9 +69,7 @@ export const DirectoryMemberCreate$outboundSchema: z.ZodType<
|
|
|
123
69
|
name: z.string(),
|
|
124
70
|
type: z.string(),
|
|
125
71
|
extensions: z.nullable(z.array(DirectoryExtension$outboundSchema)).optional(),
|
|
126
|
-
contactTags: z.nullable(
|
|
127
|
-
z.lazy(() => DirectoryMemberCreateContactTags$outboundSchema),
|
|
128
|
-
).optional(),
|
|
72
|
+
contactTags: z.nullable(z.record(z.array(z.string()))).optional(),
|
|
129
73
|
}).transform((v) => {
|
|
130
74
|
return remap$(v, {
|
|
131
75
|
contactTags: "contact_tags",
|