syllable-sdk 1.0.7-rc.8 → 1.0.7-rc.9

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.
@@ -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?: DirectoryMemberCreateContactTags | null | undefined;
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?: DirectoryMemberCreateContactTags$Outbound | null | undefined;
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",