syllable-sdk 1.0.3-rc.4 → 1.0.4-rc.1
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 +13 -8
- package/bin/mcp-server.js.map +7 -7
- package/docs/sdks/batches/README.md +4 -4
- package/docs/sdks/channels/README.md +16 -0
- package/docs/sdks/workflows/README.md +8 -8
- 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/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.js +1 -1
- package/models/components/channelservices.d.ts +3 -0
- package/models/components/channelservices.d.ts.map +1 -1
- package/models/components/channelservices.js +1 -0
- package/models/components/channelservices.js.map +1 -1
- package/models/components/organizationchannelconfig.d.ts +9 -0
- package/models/components/organizationchannelconfig.d.ts.map +1 -1
- package/models/components/organizationchannelconfig.js +4 -0
- package/models/components/organizationchannelconfig.js.map +1 -1
- package/openapi.json +80 -34
- 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/channelservices.ts +1 -0
- package/src/models/components/organizationchannelconfig.ts +9 -0
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.
|
|
64
|
+
sdkVersion: "1.0.4-rc.1",
|
|
65
65
|
genVersion: "2.723.11",
|
|
66
|
-
userAgent: "speakeasy-sdk/typescript 1.0.
|
|
66
|
+
userAgent: "speakeasy-sdk/typescript 1.0.4-rc.1 2.723.11 0.0.2 syllable-sdk",
|
|
67
67
|
} as const;
|
package/src/mcp-server/server.ts
CHANGED
|
@@ -26,6 +26,10 @@ export type OrganizationChannelConfig = {
|
|
|
26
26
|
* The Twilio auth token
|
|
27
27
|
*/
|
|
28
28
|
authToken?: string | null | undefined;
|
|
29
|
+
/**
|
|
30
|
+
* Provider-specific credentials. Initially to be used for AfricasTalking creds.In a future this would be used for Twilio creds too (removing the account_sid and auth_token fields).
|
|
31
|
+
*/
|
|
32
|
+
providerCredentials?: { [k: string]: string } | null | undefined;
|
|
29
33
|
/**
|
|
30
34
|
* Telephony configurations to be applied to the targets under the channel
|
|
31
35
|
*/
|
|
@@ -40,11 +44,13 @@ export const OrganizationChannelConfig$inboundSchema: z.ZodType<
|
|
|
40
44
|
> = z.object({
|
|
41
45
|
account_sid: z.nullable(z.string()).optional(),
|
|
42
46
|
auth_token: z.nullable(z.string()).optional(),
|
|
47
|
+
provider_credentials: z.nullable(z.record(z.string())).optional(),
|
|
43
48
|
telephony: z.nullable(TelephonyConfigurations$inboundSchema).optional(),
|
|
44
49
|
}).transform((v) => {
|
|
45
50
|
return remap$(v, {
|
|
46
51
|
"account_sid": "accountSid",
|
|
47
52
|
"auth_token": "authToken",
|
|
53
|
+
"provider_credentials": "providerCredentials",
|
|
48
54
|
});
|
|
49
55
|
});
|
|
50
56
|
|
|
@@ -52,6 +58,7 @@ export const OrganizationChannelConfig$inboundSchema: z.ZodType<
|
|
|
52
58
|
export type OrganizationChannelConfig$Outbound = {
|
|
53
59
|
account_sid?: string | null | undefined;
|
|
54
60
|
auth_token?: string | null | undefined;
|
|
61
|
+
provider_credentials?: { [k: string]: string } | null | undefined;
|
|
55
62
|
telephony?: TelephonyConfigurations$Outbound | null | undefined;
|
|
56
63
|
};
|
|
57
64
|
|
|
@@ -63,11 +70,13 @@ export const OrganizationChannelConfig$outboundSchema: z.ZodType<
|
|
|
63
70
|
> = z.object({
|
|
64
71
|
accountSid: z.nullable(z.string()).optional(),
|
|
65
72
|
authToken: z.nullable(z.string()).optional(),
|
|
73
|
+
providerCredentials: z.nullable(z.record(z.string())).optional(),
|
|
66
74
|
telephony: z.nullable(TelephonyConfigurations$outboundSchema).optional(),
|
|
67
75
|
}).transform((v) => {
|
|
68
76
|
return remap$(v, {
|
|
69
77
|
accountSid: "account_sid",
|
|
70
78
|
authToken: "auth_token",
|
|
79
|
+
providerCredentials: "provider_credentials",
|
|
71
80
|
});
|
|
72
81
|
});
|
|
73
82
|
|