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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "syllable-sdk",
3
- "version": "1.0.3-rc.4",
3
+ "version": "1.0.4-rc.1",
4
4
  "author": "Syllable",
5
5
  "bin": {
6
6
  "mcp": "bin/mcp-server.js"
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.3-rc.4",
64
+ sdkVersion: "1.0.4-rc.1",
65
65
  genVersion: "2.723.11",
66
- userAgent: "speakeasy-sdk/typescript 1.0.3-rc.4 2.723.11 0.0.2 syllable-sdk",
66
+ userAgent: "speakeasy-sdk/typescript 1.0.4-rc.1 2.723.11 0.0.2 syllable-sdk",
67
67
  } as const;
@@ -19,7 +19,7 @@ const routes = buildRouteMap({
19
19
  export const app = buildApplication(routes, {
20
20
  name: "mcp",
21
21
  versionInfo: {
22
- currentVersion: "1.0.3-rc.4",
22
+ currentVersion: "1.0.4-rc.1",
23
23
  },
24
24
  });
25
25
 
@@ -169,7 +169,7 @@ export function createMCPServer(deps: {
169
169
  }) {
170
170
  const server = new McpServer({
171
171
  name: "SyllableSDK",
172
- version: "1.0.3-rc.4",
172
+ version: "1.0.4-rc.1",
173
173
  });
174
174
 
175
175
  const client = new SyllableSDKCore({
@@ -13,6 +13,7 @@ export const ChannelServices = {
13
13
  Twilio: "twilio",
14
14
  Email: "email",
15
15
  Webchat: "webchat",
16
+ Africastalking: "africastalking",
16
17
  } as const;
17
18
  /**
18
19
  * The communication service for a channel.
@@ -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