syllable-sdk 1.0.2-rc.4 → 1.0.2-rc.6
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 +24 -23
- package/bin/mcp-server.js.map +11 -11
- package/docs/sdks/campaigns/README.md +24 -0
- package/docs/sdks/incidents/README.md +0 -8
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/config.js.map +1 -1
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.js +1 -1
- package/models/components/campaignproperties.d.ts +3 -0
- package/models/components/campaignproperties.d.ts.map +1 -1
- package/models/components/campaignproperties.js +1 -0
- package/models/components/campaignproperties.js.map +1 -1
- package/models/components/incidentcreaterequest.d.ts +3 -1
- package/models/components/incidentcreaterequest.d.ts.map +1 -1
- package/models/components/incidentcreaterequest.js.map +1 -1
- package/models/components/incidentresponse.d.ts +3 -1
- package/models/components/incidentresponse.d.ts.map +1 -1
- package/models/components/incidentresponse.js.map +1 -1
- package/models/components/incidentupdaterequest.d.ts +3 -11
- package/models/components/incidentupdaterequest.d.ts.map +1 -1
- package/models/components/incidentupdaterequest.js +0 -8
- package/models/components/incidentupdaterequest.js.map +1 -1
- package/models/components/outboundcampaign.d.ts +9 -0
- package/models/components/outboundcampaign.d.ts.map +1 -1
- package/models/components/outboundcampaign.js +4 -0
- package/models/components/outboundcampaign.js.map +1 -1
- package/models/components/outboundcampaigninput.d.ts +9 -0
- package/models/components/outboundcampaigninput.d.ts.map +1 -1
- package/models/components/outboundcampaigninput.js +4 -0
- package/models/components/outboundcampaigninput.js.map +1 -1
- package/openapi.json +66 -36
- package/package.json +1 -1
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/components/campaignproperties.ts +1 -0
- package/src/models/components/incidentcreaterequest.ts +3 -1
- package/src/models/components/incidentresponse.ts +3 -1
- package/src/models/components/incidentupdaterequest.ts +3 -23
- package/src/models/components/outboundcampaign.ts +9 -0
- package/src/models/components/outboundcampaigninput.ts +9 -0
package/openapi.json
CHANGED
|
@@ -13650,7 +13650,8 @@
|
|
|
13650
13650
|
"caller_id",
|
|
13651
13651
|
"updated_at",
|
|
13652
13652
|
"label",
|
|
13653
|
-
"labels"
|
|
13653
|
+
"labels",
|
|
13654
|
+
"voicemail_detection"
|
|
13654
13655
|
],
|
|
13655
13656
|
"title": "CampaignProperties"
|
|
13656
13657
|
},
|
|
@@ -16529,7 +16530,8 @@
|
|
|
16529
16530
|
}
|
|
16530
16531
|
],
|
|
16531
16532
|
"title": "Sub Organization",
|
|
16532
|
-
"description": "The name of the sub-organization",
|
|
16533
|
+
"description": "The name of the sub-organization (DEPRECATED)",
|
|
16534
|
+
"deprecated": true,
|
|
16533
16535
|
"examples": [
|
|
16534
16536
|
"SubOrg A"
|
|
16535
16537
|
]
|
|
@@ -16681,7 +16683,8 @@
|
|
|
16681
16683
|
}
|
|
16682
16684
|
],
|
|
16683
16685
|
"title": "Sub Organization",
|
|
16684
|
-
"description": "The name of the sub-organization",
|
|
16686
|
+
"description": "The name of the sub-organization (DEPRECATED)",
|
|
16687
|
+
"deprecated": true,
|
|
16685
16688
|
"examples": [
|
|
16686
16689
|
"SubOrg A"
|
|
16687
16690
|
]
|
|
@@ -16848,7 +16851,8 @@
|
|
|
16848
16851
|
}
|
|
16849
16852
|
],
|
|
16850
16853
|
"title": "Sub Organization",
|
|
16851
|
-
"description": "The name of the sub-organization",
|
|
16854
|
+
"description": "The name of the sub-organization (DEPRECATED)",
|
|
16855
|
+
"deprecated": true,
|
|
16852
16856
|
"examples": [
|
|
16853
16857
|
"SubOrg A"
|
|
16854
16858
|
]
|
|
@@ -16860,38 +16864,6 @@
|
|
|
16860
16864
|
"examples": [
|
|
16861
16865
|
1
|
|
16862
16866
|
]
|
|
16863
|
-
},
|
|
16864
|
-
"created_at": {
|
|
16865
|
-
"anyOf": [
|
|
16866
|
-
{
|
|
16867
|
-
"type": "string",
|
|
16868
|
-
"format": "date-time"
|
|
16869
|
-
},
|
|
16870
|
-
{
|
|
16871
|
-
"type": "null"
|
|
16872
|
-
}
|
|
16873
|
-
],
|
|
16874
|
-
"title": "Created At",
|
|
16875
|
-
"description": "Creation time of the incident",
|
|
16876
|
-
"examples": [
|
|
16877
|
-
"2023-10-01T08:00:00Z"
|
|
16878
|
-
]
|
|
16879
|
-
},
|
|
16880
|
-
"updated_at": {
|
|
16881
|
-
"anyOf": [
|
|
16882
|
-
{
|
|
16883
|
-
"type": "string",
|
|
16884
|
-
"format": "date-time"
|
|
16885
|
-
},
|
|
16886
|
-
{
|
|
16887
|
-
"type": "null"
|
|
16888
|
-
}
|
|
16889
|
-
],
|
|
16890
|
-
"title": "Updated At",
|
|
16891
|
-
"description": "Last update time of the incident",
|
|
16892
|
-
"examples": [
|
|
16893
|
-
"2023-10-01T08:00:00Z"
|
|
16894
|
-
]
|
|
16895
16867
|
}
|
|
16896
16868
|
},
|
|
16897
16869
|
"type": "object",
|
|
@@ -21133,6 +21105,35 @@
|
|
|
21133
21105
|
"[\"mon\", \"tue\", \"wed\", \"thu\", \"fri\"]"
|
|
21134
21106
|
]
|
|
21135
21107
|
},
|
|
21108
|
+
"voicemail_detection": {
|
|
21109
|
+
"anyOf": [
|
|
21110
|
+
{
|
|
21111
|
+
"additionalProperties": {
|
|
21112
|
+
"type": "number"
|
|
21113
|
+
},
|
|
21114
|
+
"type": "object"
|
|
21115
|
+
},
|
|
21116
|
+
{
|
|
21117
|
+
"type": "null"
|
|
21118
|
+
}
|
|
21119
|
+
],
|
|
21120
|
+
"title": "Voicemail Detection",
|
|
21121
|
+
"description": "Config for voicemail detection for voice campaigns",
|
|
21122
|
+
"default": {
|
|
21123
|
+
"voicemail_detection_overall_timeout": 30.0,
|
|
21124
|
+
"voicemail_detection_speech_threshold": 2.4,
|
|
21125
|
+
"voicemail_detection_pre_speech_timeout": 5.0,
|
|
21126
|
+
"voicemail_detection_post_speech_timeout": 1.2
|
|
21127
|
+
},
|
|
21128
|
+
"examples": [
|
|
21129
|
+
{
|
|
21130
|
+
"voicemail_detection_overall_timeout": 30.0,
|
|
21131
|
+
"voicemail_detection_post_speech_timeout": 1.2,
|
|
21132
|
+
"voicemail_detection_pre_speech_timeout": 5.0,
|
|
21133
|
+
"voicemail_detection_speech_threshold": 2.4
|
|
21134
|
+
}
|
|
21135
|
+
]
|
|
21136
|
+
},
|
|
21136
21137
|
"id": {
|
|
21137
21138
|
"type": "integer",
|
|
21138
21139
|
"title": "Id",
|
|
@@ -21408,6 +21409,35 @@
|
|
|
21408
21409
|
"examples": [
|
|
21409
21410
|
"[\"mon\", \"tue\", \"wed\", \"thu\", \"fri\"]"
|
|
21410
21411
|
]
|
|
21412
|
+
},
|
|
21413
|
+
"voicemail_detection": {
|
|
21414
|
+
"anyOf": [
|
|
21415
|
+
{
|
|
21416
|
+
"additionalProperties": {
|
|
21417
|
+
"type": "number"
|
|
21418
|
+
},
|
|
21419
|
+
"type": "object"
|
|
21420
|
+
},
|
|
21421
|
+
{
|
|
21422
|
+
"type": "null"
|
|
21423
|
+
}
|
|
21424
|
+
],
|
|
21425
|
+
"title": "Voicemail Detection",
|
|
21426
|
+
"description": "Config for voicemail detection for voice campaigns",
|
|
21427
|
+
"default": {
|
|
21428
|
+
"voicemail_detection_overall_timeout": 30.0,
|
|
21429
|
+
"voicemail_detection_speech_threshold": 2.4,
|
|
21430
|
+
"voicemail_detection_pre_speech_timeout": 5.0,
|
|
21431
|
+
"voicemail_detection_post_speech_timeout": 1.2
|
|
21432
|
+
},
|
|
21433
|
+
"examples": [
|
|
21434
|
+
{
|
|
21435
|
+
"voicemail_detection_overall_timeout": 30.0,
|
|
21436
|
+
"voicemail_detection_post_speech_timeout": 1.2,
|
|
21437
|
+
"voicemail_detection_pre_speech_timeout": 5.0,
|
|
21438
|
+
"voicemail_detection_speech_threshold": 2.4
|
|
21439
|
+
}
|
|
21440
|
+
]
|
|
21411
21441
|
}
|
|
21412
21442
|
},
|
|
21413
21443
|
"type": "object",
|
package/package.json
CHANGED
package/src/lib/config.ts
CHANGED
|
@@ -61,7 +61,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
61
61
|
export const SDK_METADATA = {
|
|
62
62
|
language: "typescript",
|
|
63
63
|
openapiDocVersion: "0.0.2",
|
|
64
|
-
sdkVersion: "1.0.2-rc.
|
|
65
|
-
genVersion: "2.723.
|
|
66
|
-
userAgent: "speakeasy-sdk/typescript 1.0.2-rc.
|
|
64
|
+
sdkVersion: "1.0.2-rc.6",
|
|
65
|
+
genVersion: "2.723.11",
|
|
66
|
+
userAgent: "speakeasy-sdk/typescript 1.0.2-rc.6 2.723.11 0.0.2 syllable-sdk",
|
|
67
67
|
} as const;
|
package/src/mcp-server/server.ts
CHANGED
|
@@ -45,7 +45,9 @@ export type IncidentCreateRequest = {
|
|
|
45
45
|
*/
|
|
46
46
|
subOrganizationId?: number | null | undefined;
|
|
47
47
|
/**
|
|
48
|
-
* The name of the sub-organization
|
|
48
|
+
* The name of the sub-organization (DEPRECATED)
|
|
49
|
+
*
|
|
50
|
+
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
49
51
|
*/
|
|
50
52
|
subOrganization?: string | null | undefined;
|
|
51
53
|
};
|
|
@@ -45,7 +45,9 @@ export type IncidentResponse = {
|
|
|
45
45
|
*/
|
|
46
46
|
subOrganizationId?: number | null | undefined;
|
|
47
47
|
/**
|
|
48
|
-
* The name of the sub-organization
|
|
48
|
+
* The name of the sub-organization (DEPRECATED)
|
|
49
|
+
*
|
|
50
|
+
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
49
51
|
*/
|
|
50
52
|
subOrganization?: string | null | undefined;
|
|
51
53
|
/**
|
|
@@ -45,21 +45,15 @@ export type IncidentUpdateRequest = {
|
|
|
45
45
|
*/
|
|
46
46
|
subOrganizationId?: number | null | undefined;
|
|
47
47
|
/**
|
|
48
|
-
* The name of the sub-organization
|
|
48
|
+
* The name of the sub-organization (DEPRECATED)
|
|
49
|
+
*
|
|
50
|
+
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
49
51
|
*/
|
|
50
52
|
subOrganization?: string | null | undefined;
|
|
51
53
|
/**
|
|
52
54
|
* The ID of the incident to update
|
|
53
55
|
*/
|
|
54
56
|
id: number;
|
|
55
|
-
/**
|
|
56
|
-
* Creation time of the incident
|
|
57
|
-
*/
|
|
58
|
-
createdAt?: Date | null | undefined;
|
|
59
|
-
/**
|
|
60
|
-
* Last update time of the incident
|
|
61
|
-
*/
|
|
62
|
-
updatedAt?: Date | null | undefined;
|
|
63
57
|
};
|
|
64
58
|
|
|
65
59
|
/** @internal */
|
|
@@ -82,12 +76,6 @@ export const IncidentUpdateRequest$inboundSchema: z.ZodType<
|
|
|
82
76
|
sub_organization_id: z.nullable(z.number().int()).optional(),
|
|
83
77
|
sub_organization: z.nullable(z.string()).optional(),
|
|
84
78
|
id: z.number().int(),
|
|
85
|
-
created_at: z.nullable(
|
|
86
|
-
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
87
|
-
).optional(),
|
|
88
|
-
updated_at: z.nullable(
|
|
89
|
-
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
90
|
-
).optional(),
|
|
91
79
|
}).transform((v) => {
|
|
92
80
|
return remap$(v, {
|
|
93
81
|
"start_datetime": "startDatetime",
|
|
@@ -97,8 +85,6 @@ export const IncidentUpdateRequest$inboundSchema: z.ZodType<
|
|
|
97
85
|
"organization_id": "organizationId",
|
|
98
86
|
"sub_organization_id": "subOrganizationId",
|
|
99
87
|
"sub_organization": "subOrganization",
|
|
100
|
-
"created_at": "createdAt",
|
|
101
|
-
"updated_at": "updatedAt",
|
|
102
88
|
});
|
|
103
89
|
});
|
|
104
90
|
|
|
@@ -114,8 +100,6 @@ export type IncidentUpdateRequest$Outbound = {
|
|
|
114
100
|
sub_organization_id?: number | null | undefined;
|
|
115
101
|
sub_organization?: string | null | undefined;
|
|
116
102
|
id: number;
|
|
117
|
-
created_at?: string | null | undefined;
|
|
118
|
-
updated_at?: string | null | undefined;
|
|
119
103
|
};
|
|
120
104
|
|
|
121
105
|
/** @internal */
|
|
@@ -134,8 +118,6 @@ export const IncidentUpdateRequest$outboundSchema: z.ZodType<
|
|
|
134
118
|
subOrganizationId: z.nullable(z.number().int()).optional(),
|
|
135
119
|
subOrganization: z.nullable(z.string()).optional(),
|
|
136
120
|
id: z.number().int(),
|
|
137
|
-
createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
|
|
138
|
-
updatedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
|
|
139
121
|
}).transform((v) => {
|
|
140
122
|
return remap$(v, {
|
|
141
123
|
startDatetime: "start_datetime",
|
|
@@ -145,8 +127,6 @@ export const IncidentUpdateRequest$outboundSchema: z.ZodType<
|
|
|
145
127
|
organizationId: "organization_id",
|
|
146
128
|
subOrganizationId: "sub_organization_id",
|
|
147
129
|
subOrganization: "sub_organization",
|
|
148
|
-
createdAt: "created_at",
|
|
149
|
-
updatedAt: "updated_at",
|
|
150
130
|
});
|
|
151
131
|
});
|
|
152
132
|
|
|
@@ -76,6 +76,10 @@ export type OutboundCampaign = {
|
|
|
76
76
|
* Days of the week when campaign is active
|
|
77
77
|
*/
|
|
78
78
|
activeDays: Array<DaysOfWeek>;
|
|
79
|
+
/**
|
|
80
|
+
* Config for voicemail detection for voice campaigns
|
|
81
|
+
*/
|
|
82
|
+
voicemailDetection?: { [k: string]: number } | null | undefined;
|
|
79
83
|
/**
|
|
80
84
|
* Unique ID for campaign
|
|
81
85
|
*/
|
|
@@ -119,6 +123,7 @@ export const OutboundCampaign$inboundSchema: z.ZodType<
|
|
|
119
123
|
retry_count: z.number().int().default(0),
|
|
120
124
|
retry_interval: z.nullable(z.string()).optional(),
|
|
121
125
|
active_days: z.array(DaysOfWeek$inboundSchema),
|
|
126
|
+
voicemail_detection: z.nullable(z.record(z.number())).optional(),
|
|
122
127
|
id: z.number().int(),
|
|
123
128
|
agent_id: z.nullable(z.number().int()).optional(),
|
|
124
129
|
created_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
@@ -138,6 +143,7 @@ export const OutboundCampaign$inboundSchema: z.ZodType<
|
|
|
138
143
|
"retry_count": "retryCount",
|
|
139
144
|
"retry_interval": "retryInterval",
|
|
140
145
|
"active_days": "activeDays",
|
|
146
|
+
"voicemail_detection": "voicemailDetection",
|
|
141
147
|
"agent_id": "agentId",
|
|
142
148
|
"created_at": "createdAt",
|
|
143
149
|
"updated_at": "updatedAt",
|
|
@@ -162,6 +168,7 @@ export type OutboundCampaign$Outbound = {
|
|
|
162
168
|
retry_count: number;
|
|
163
169
|
retry_interval?: string | null | undefined;
|
|
164
170
|
active_days: Array<string>;
|
|
171
|
+
voicemail_detection?: { [k: string]: number } | null | undefined;
|
|
165
172
|
id: number;
|
|
166
173
|
agent_id?: number | null | undefined;
|
|
167
174
|
created_at?: string | undefined;
|
|
@@ -190,6 +197,7 @@ export const OutboundCampaign$outboundSchema: z.ZodType<
|
|
|
190
197
|
retryCount: z.number().int().default(0),
|
|
191
198
|
retryInterval: z.nullable(z.string()).optional(),
|
|
192
199
|
activeDays: z.array(DaysOfWeek$outboundSchema),
|
|
200
|
+
voicemailDetection: z.nullable(z.record(z.number())).optional(),
|
|
193
201
|
id: z.number().int(),
|
|
194
202
|
agentId: z.nullable(z.number().int()).optional(),
|
|
195
203
|
createdAt: z.date().transform(v => v.toISOString()).optional(),
|
|
@@ -207,6 +215,7 @@ export const OutboundCampaign$outboundSchema: z.ZodType<
|
|
|
207
215
|
retryCount: "retry_count",
|
|
208
216
|
retryInterval: "retry_interval",
|
|
209
217
|
activeDays: "active_days",
|
|
218
|
+
voicemailDetection: "voicemail_detection",
|
|
210
219
|
agentId: "agent_id",
|
|
211
220
|
createdAt: "created_at",
|
|
212
221
|
updatedAt: "updated_at",
|
|
@@ -76,6 +76,10 @@ export type OutboundCampaignInput = {
|
|
|
76
76
|
* Days of the week when campaign is active
|
|
77
77
|
*/
|
|
78
78
|
activeDays: Array<DaysOfWeek>;
|
|
79
|
+
/**
|
|
80
|
+
* Config for voicemail detection for voice campaigns
|
|
81
|
+
*/
|
|
82
|
+
voicemailDetection?: { [k: string]: number } | null | undefined;
|
|
79
83
|
};
|
|
80
84
|
|
|
81
85
|
/** @internal */
|
|
@@ -99,6 +103,7 @@ export const OutboundCampaignInput$inboundSchema: z.ZodType<
|
|
|
99
103
|
retry_count: z.number().int().default(0),
|
|
100
104
|
retry_interval: z.nullable(z.string()).optional(),
|
|
101
105
|
active_days: z.array(DaysOfWeek$inboundSchema),
|
|
106
|
+
voicemail_detection: z.nullable(z.record(z.number())).optional(),
|
|
102
107
|
}).transform((v) => {
|
|
103
108
|
return remap$(v, {
|
|
104
109
|
"campaign_name": "campaignName",
|
|
@@ -111,6 +116,7 @@ export const OutboundCampaignInput$inboundSchema: z.ZodType<
|
|
|
111
116
|
"retry_count": "retryCount",
|
|
112
117
|
"retry_interval": "retryInterval",
|
|
113
118
|
"active_days": "activeDays",
|
|
119
|
+
"voicemail_detection": "voicemailDetection",
|
|
114
120
|
});
|
|
115
121
|
});
|
|
116
122
|
|
|
@@ -131,6 +137,7 @@ export type OutboundCampaignInput$Outbound = {
|
|
|
131
137
|
retry_count: number;
|
|
132
138
|
retry_interval?: string | null | undefined;
|
|
133
139
|
active_days: Array<string>;
|
|
140
|
+
voicemail_detection?: { [k: string]: number } | null | undefined;
|
|
134
141
|
};
|
|
135
142
|
|
|
136
143
|
/** @internal */
|
|
@@ -154,6 +161,7 @@ export const OutboundCampaignInput$outboundSchema: z.ZodType<
|
|
|
154
161
|
retryCount: z.number().int().default(0),
|
|
155
162
|
retryInterval: z.nullable(z.string()).optional(),
|
|
156
163
|
activeDays: z.array(DaysOfWeek$outboundSchema),
|
|
164
|
+
voicemailDetection: z.nullable(z.record(z.number())).optional(),
|
|
157
165
|
}).transform((v) => {
|
|
158
166
|
return remap$(v, {
|
|
159
167
|
campaignName: "campaign_name",
|
|
@@ -166,6 +174,7 @@ export const OutboundCampaignInput$outboundSchema: z.ZodType<
|
|
|
166
174
|
retryCount: "retry_count",
|
|
167
175
|
retryInterval: "retry_interval",
|
|
168
176
|
activeDays: "active_days",
|
|
177
|
+
voicemailDetection: "voicemail_detection",
|
|
169
178
|
});
|
|
170
179
|
});
|
|
171
180
|
|