syllable-sdk 1.0.12-rc.2 → 1.0.12-rc.4

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.
Files changed (38) hide show
  1. package/bin/mcp-server.js +37 -6
  2. package/bin/mcp-server.js.map +11 -10
  3. package/examples/package-lock.json +1 -1
  4. package/jsr.json +1 -1
  5. package/lib/config.d.ts +3 -3
  6. package/lib/config.js +3 -3
  7. package/mcp-server/mcp-server.js +1 -1
  8. package/mcp-server/server.js +1 -1
  9. package/models/components/custommessageconfig.d.ts +23 -0
  10. package/models/components/custommessageconfig.d.ts.map +1 -0
  11. package/models/components/custommessageconfig.js +67 -0
  12. package/models/components/custommessageconfig.js.map +1 -0
  13. package/models/components/custommessagecreaterequest.d.ts +6 -0
  14. package/models/components/custommessagecreaterequest.d.ts.map +1 -1
  15. package/models/components/custommessagecreaterequest.js +3 -0
  16. package/models/components/custommessagecreaterequest.js.map +1 -1
  17. package/models/components/custommessageresponse.d.ts +6 -0
  18. package/models/components/custommessageresponse.d.ts.map +1 -1
  19. package/models/components/custommessageresponse.js +3 -0
  20. package/models/components/custommessageresponse.js.map +1 -1
  21. package/models/components/custommessageupdaterequest.d.ts +6 -0
  22. package/models/components/custommessageupdaterequest.d.ts.map +1 -1
  23. package/models/components/custommessageupdaterequest.js +3 -0
  24. package/models/components/custommessageupdaterequest.js.map +1 -1
  25. package/models/components/index.d.ts +1 -0
  26. package/models/components/index.d.ts.map +1 -1
  27. package/models/components/index.js +1 -0
  28. package/models/components/index.js.map +1 -1
  29. package/openapi.json +85 -33
  30. package/package.json +1 -1
  31. package/src/lib/config.ts +3 -3
  32. package/src/mcp-server/mcp-server.ts +1 -1
  33. package/src/mcp-server/server.ts +1 -1
  34. package/src/models/components/custommessageconfig.ts +68 -0
  35. package/src/models/components/custommessagecreaterequest.ts +13 -0
  36. package/src/models/components/custommessageresponse.ts +13 -0
  37. package/src/models/components/custommessageupdaterequest.ts +13 -0
  38. package/src/models/components/index.ts +1 -0
package/openapi.json CHANGED
@@ -13781,7 +13781,7 @@
13781
13781
  "title": "Batch Id",
13782
13782
  "description": "Unique ID for conversation batch",
13783
13783
  "examples": [
13784
- "20251115.9"
13784
+ "20251118.9"
13785
13785
  ]
13786
13786
  },
13787
13787
  "campaign_id": {
@@ -13805,7 +13805,7 @@
13805
13805
  "title": "Expires On",
13806
13806
  "description": "Timestamp of batch expiration",
13807
13807
  "examples": [
13808
- "2025-11-16T00:00:00Z"
13808
+ "2025-11-19T00:00:00Z"
13809
13809
  ]
13810
13810
  },
13811
13811
  "paused": {
@@ -13858,7 +13858,7 @@
13858
13858
  "title": "Created At",
13859
13859
  "description": "Timestamp of batch creation",
13860
13860
  "examples": [
13861
- "2025-11-15T00:00:00Z"
13861
+ "2025-11-18T00:00:00Z"
13862
13862
  ]
13863
13863
  },
13864
13864
  "deleted_at": {
@@ -13874,7 +13874,7 @@
13874
13874
  "title": "Deleted At",
13875
13875
  "description": "Timestamp of batch deletion",
13876
13876
  "examples": [
13877
- "2025-11-15T00:00:00Z"
13877
+ "2025-11-18T00:00:00Z"
13878
13878
  ]
13879
13879
  },
13880
13880
  "deleted_reason": {
@@ -13905,7 +13905,7 @@
13905
13905
  "title": "Last Updated At",
13906
13906
  "description": "Timestamp of last change to batch",
13907
13907
  "examples": [
13908
- "2025-11-15T00:00:00Z"
13908
+ "2025-11-18T00:00:00Z"
13909
13909
  ]
13910
13910
  },
13911
13911
  "last_updated_by": {
@@ -14661,7 +14661,7 @@
14661
14661
  "title": "Batch Id",
14662
14662
  "description": "Unique ID for conversation batch",
14663
14663
  "examples": [
14664
- "20251115.9"
14664
+ "20251118.9"
14665
14665
  ]
14666
14666
  },
14667
14667
  "campaign_id": {
@@ -14685,7 +14685,7 @@
14685
14685
  "title": "Expires On",
14686
14686
  "description": "Timestamp of batch expiration",
14687
14687
  "examples": [
14688
- "2025-11-16T00:00:00Z"
14688
+ "2025-11-19T00:00:00Z"
14689
14689
  ]
14690
14690
  },
14691
14691
  "paused": {
@@ -14738,7 +14738,7 @@
14738
14738
  "title": "Created At",
14739
14739
  "description": "Timestamp of batch creation",
14740
14740
  "examples": [
14741
- "2025-11-15T00:00:00Z"
14741
+ "2025-11-18T00:00:00Z"
14742
14742
  ]
14743
14743
  },
14744
14744
  "deleted_at": {
@@ -14754,7 +14754,7 @@
14754
14754
  "title": "Deleted At",
14755
14755
  "description": "Timestamp of batch deletion",
14756
14756
  "examples": [
14757
- "2025-11-15T00:00:00Z"
14757
+ "2025-11-18T00:00:00Z"
14758
14758
  ]
14759
14759
  },
14760
14760
  "deleted_reason": {
@@ -14785,7 +14785,7 @@
14785
14785
  "title": "Last Updated At",
14786
14786
  "description": "Timestamp of last change to batch",
14787
14787
  "examples": [
14788
- "2025-11-15T00:00:00Z"
14788
+ "2025-11-18T00:00:00Z"
14789
14789
  ]
14790
14790
  },
14791
14791
  "last_updated_by": {
@@ -14828,7 +14828,7 @@
14828
14828
  "title": "Batch Id",
14829
14829
  "description": "Unique ID for conversation batch",
14830
14830
  "examples": [
14831
- "20251115.9"
14831
+ "20251118.9"
14832
14832
  ]
14833
14833
  },
14834
14834
  "campaign_id": {
@@ -14852,7 +14852,7 @@
14852
14852
  "title": "Expires On",
14853
14853
  "description": "Timestamp of batch expiration",
14854
14854
  "examples": [
14855
- "2025-11-16T00:00:00Z"
14855
+ "2025-11-19T00:00:00Z"
14856
14856
  ]
14857
14857
  },
14858
14858
  "paused": {
@@ -15001,7 +15001,7 @@
15001
15001
  "title": "Created At",
15002
15002
  "description": "Timestamp of request creation",
15003
15003
  "examples": [
15004
- "2025-11-14T00:00:00Z"
15004
+ "2025-11-17T00:00:00Z"
15005
15005
  ]
15006
15006
  },
15007
15007
  "sent_at": {
@@ -15017,7 +15017,7 @@
15017
15017
  "title": "Sent At",
15018
15018
  "description": "Timestamp at which request was sent",
15019
15019
  "examples": [
15020
- "2025-11-15T00:00:00Z"
15020
+ "2025-11-18T00:00:00Z"
15021
15021
  ]
15022
15022
  },
15023
15023
  "attempt_count": {
@@ -15338,6 +15338,22 @@
15338
15338
  ],
15339
15339
  "title": "CreateTakeoutResponse"
15340
15340
  },
15341
+ "CustomMessageConfig": {
15342
+ "properties": {
15343
+ "user_initiated_non_voice_session_behavior": {
15344
+ "type": "string",
15345
+ "title": "User Initiated Non Voice Session Behavior",
15346
+ "description": "The behavior of an agent assigned this message at the beginning of a user-initiated non-voice session (e.g., SMS, email, etc.). 'respond_only' will skip the message and respond to the user's message. 'greet_and_respond' will deliver the message and respond to the user's message. 'greet_only' will deliver the message and not respond to the user's message. Defaults to 'greet_only'.",
15347
+ "default": "greet_only",
15348
+ "examples": [
15349
+ "greet_only"
15350
+ ]
15351
+ }
15352
+ },
15353
+ "type": "object",
15354
+ "title": "CustomMessageConfig",
15355
+ "description": "Additional configuration options for the message."
15356
+ },
15341
15357
  "CustomMessageCreateRequest": {
15342
15358
  "properties": {
15343
15359
  "name": {
@@ -15403,6 +15419,18 @@
15403
15419
  ]
15404
15420
  ]
15405
15421
  },
15422
+ "config": {
15423
+ "$ref": "#/components/schemas/CustomMessageConfig",
15424
+ "description": "Additional configuration options for the message",
15425
+ "default": {
15426
+ "user_initiated_non_voice_session_behavior": "greet_only"
15427
+ },
15428
+ "examples": [
15429
+ {
15430
+ "user_initiated_non_voice_session_behavior": "greet_only"
15431
+ }
15432
+ ]
15433
+ },
15406
15434
  "type": {
15407
15435
  "type": "string",
15408
15436
  "title": "Type",
@@ -15498,6 +15526,18 @@
15498
15526
  ]
15499
15527
  ]
15500
15528
  },
15529
+ "config": {
15530
+ "$ref": "#/components/schemas/CustomMessageConfig",
15531
+ "description": "Additional configuration options for the message",
15532
+ "default": {
15533
+ "user_initiated_non_voice_session_behavior": "greet_only"
15534
+ },
15535
+ "examples": [
15536
+ {
15537
+ "user_initiated_non_voice_session_behavior": "greet_only"
15538
+ }
15539
+ ]
15540
+ },
15501
15541
  "id": {
15502
15542
  "type": "integer",
15503
15543
  "title": "Id",
@@ -15732,6 +15772,18 @@
15732
15772
  ]
15733
15773
  ]
15734
15774
  },
15775
+ "config": {
15776
+ "$ref": "#/components/schemas/CustomMessageConfig",
15777
+ "description": "Additional configuration options for the message",
15778
+ "default": {
15779
+ "user_initiated_non_voice_session_behavior": "greet_only"
15780
+ },
15781
+ "examples": [
15782
+ {
15783
+ "user_initiated_non_voice_session_behavior": "greet_only"
15784
+ }
15785
+ ]
15786
+ },
15735
15787
  "id": {
15736
15788
  "type": "integer",
15737
15789
  "title": "Id",
@@ -17273,7 +17325,7 @@
17273
17325
  "title": "Created At",
17274
17326
  "description": "Timestamp at which insight upload folder was created",
17275
17327
  "examples": [
17276
- "2025-11-14T00:00:00Z"
17328
+ "2025-11-17T00:00:00Z"
17277
17329
  ]
17278
17330
  },
17279
17331
  "updated_at": {
@@ -17282,7 +17334,7 @@
17282
17334
  "title": "Updated At",
17283
17335
  "description": "Timestamp at which insight upload folder was last updated",
17284
17336
  "examples": [
17285
- "2025-11-15T00:00:00Z"
17337
+ "2025-11-18T00:00:00Z"
17286
17338
  ]
17287
17339
  },
17288
17340
  "last_updated_by": {
@@ -17968,7 +18020,7 @@
17968
18020
  "title": "Created At",
17969
18021
  "description": "Timestamp of at which insight tool configuration was created",
17970
18022
  "examples": [
17971
- "2025-11-14T00:00:00Z"
18023
+ "2025-11-17T00:00:00Z"
17972
18024
  ]
17973
18025
  },
17974
18026
  "updated_at": {
@@ -17977,7 +18029,7 @@
17977
18029
  "title": "Updated At",
17978
18030
  "description": "Timestamp at which insight tool configuration was last updated",
17979
18031
  "examples": [
17980
- "2025-11-15T00:00:00Z"
18032
+ "2025-11-18T00:00:00Z"
17981
18033
  ]
17982
18034
  },
17983
18035
  "last_updated_by": {
@@ -18358,7 +18410,7 @@
18358
18410
  "title": "Start Datetime",
18359
18411
  "description": "Target session timestamp the workflow (backfill) should start. An empty value indicates start on activation - live sessions only",
18360
18412
  "examples": [
18361
- "2025-11-14T00:00:00Z"
18413
+ "2025-11-17T00:00:00Z"
18362
18414
  ]
18363
18415
  },
18364
18416
  "end_datetime": {
@@ -18374,7 +18426,7 @@
18374
18426
  "title": "End Datetime",
18375
18427
  "description": "Target session timestamp the workflow (backfill) should end. An empty value indicates no end, i.e., include live sessions until deactivation",
18376
18428
  "examples": [
18377
- "2025-11-15T00:00:00Z"
18429
+ "2025-11-18T00:00:00Z"
18378
18430
  ]
18379
18431
  }
18380
18432
  },
@@ -18449,7 +18501,7 @@
18449
18501
  "title": "Start Datetime",
18450
18502
  "description": "Target session timestamp the workflow (backfill) should start. An empty value indicates start on activation - live sessions only",
18451
18503
  "examples": [
18452
- "2025-11-14T00:00:00Z"
18504
+ "2025-11-17T00:00:00Z"
18453
18505
  ]
18454
18506
  },
18455
18507
  "end_datetime": {
@@ -18465,7 +18517,7 @@
18465
18517
  "title": "End Datetime",
18466
18518
  "description": "Target session timestamp the workflow (backfill) should end. An empty value indicates no end, i.e., include live sessions until deactivation",
18467
18519
  "examples": [
18468
- "2025-11-15T00:00:00Z"
18520
+ "2025-11-18T00:00:00Z"
18469
18521
  ]
18470
18522
  },
18471
18523
  "id": {
@@ -18518,7 +18570,7 @@
18518
18570
  "title": "Created At",
18519
18571
  "description": "Timestamp at which the insight workflow was created",
18520
18572
  "examples": [
18521
- "2025-11-14T00:00:00Z"
18573
+ "2025-11-17T00:00:00Z"
18522
18574
  ]
18523
18575
  },
18524
18576
  "updated_at": {
@@ -18527,7 +18579,7 @@
18527
18579
  "title": "Updated At",
18528
18580
  "description": "Timestamp of most recent update to the insight workflow",
18529
18581
  "examples": [
18530
- "2025-11-15T00:00:00Z"
18582
+ "2025-11-18T00:00:00Z"
18531
18583
  ]
18532
18584
  },
18533
18585
  "last_updated_by": {
@@ -18623,7 +18675,7 @@
18623
18675
  "title": "Created At",
18624
18676
  "description": "Timestamp at which insight upload folder was created",
18625
18677
  "examples": [
18626
- "2025-11-14T00:00:00Z"
18678
+ "2025-11-17T00:00:00Z"
18627
18679
  ]
18628
18680
  },
18629
18681
  "updated_at": {
@@ -18632,7 +18684,7 @@
18632
18684
  "title": "Updated At",
18633
18685
  "description": "Timestamp at which insight upload folder was last updated",
18634
18686
  "examples": [
18635
- "2025-11-15T00:00:00Z"
18687
+ "2025-11-18T00:00:00Z"
18636
18688
  ]
18637
18689
  },
18638
18690
  "last_updated_by": {
@@ -18867,7 +18919,7 @@
18867
18919
  "title": "Created At",
18868
18920
  "description": "Timestamp at which insight tool result was created",
18869
18921
  "examples": [
18870
- "2025-11-14T00:00:00Z"
18922
+ "2025-11-17T00:00:00Z"
18871
18923
  ]
18872
18924
  },
18873
18925
  "updated_at": {
@@ -18876,7 +18928,7 @@
18876
18928
  "title": "Updated At",
18877
18929
  "description": "Timestamp at which insight tool result was last updated",
18878
18930
  "examples": [
18879
- "2025-11-15T00:00:00Z"
18931
+ "2025-11-18T00:00:00Z"
18880
18932
  ]
18881
18933
  },
18882
18934
  "upload_file_metadata": {
@@ -19021,7 +19073,7 @@
19021
19073
  "title": "Start Time",
19022
19074
  "description": "Start time of the uploaded file",
19023
19075
  "examples": [
19024
- "2025-11-14T00:00:00Z"
19076
+ "2025-11-17T00:00:00Z"
19025
19077
  ]
19026
19078
  },
19027
19079
  "end_time": {
@@ -19037,7 +19089,7 @@
19037
19089
  "title": "End Time",
19038
19090
  "description": "End time of the uploaded file",
19039
19091
  "examples": [
19040
- "2025-11-15T00:00:00Z"
19092
+ "2025-11-18T00:00:00Z"
19041
19093
  ]
19042
19094
  },
19043
19095
  "error_message": {
@@ -19092,7 +19144,7 @@
19092
19144
  "title": "Created At",
19093
19145
  "description": "Timestamp at which insight upload file was created",
19094
19146
  "examples": [
19095
- "2025-11-14T00:00:00Z"
19147
+ "2025-11-17T00:00:00Z"
19096
19148
  ]
19097
19149
  }
19098
19150
  },
@@ -22265,7 +22317,7 @@
22265
22317
  "title": "Created At",
22266
22318
  "description": "Timestamp of campaign creation",
22267
22319
  "examples": [
22268
- "2025-11-15T00:00:00Z"
22320
+ "2025-11-18T00:00:00Z"
22269
22321
  ]
22270
22322
  },
22271
22323
  "updated_at": {
@@ -22274,7 +22326,7 @@
22274
22326
  "title": "Updated At",
22275
22327
  "description": "Timestamp of campaign update",
22276
22328
  "examples": [
22277
- "2025-11-15T00:00:00Z"
22329
+ "2025-11-18T00:00:00Z"
22278
22330
  ]
22279
22331
  },
22280
22332
  "last_updated_by": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "syllable-sdk",
3
- "version": "1.0.12-rc.2",
3
+ "version": "1.0.12-rc.4",
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.12-rc.2",
65
- genVersion: "2.755.0",
66
- userAgent: "speakeasy-sdk/typescript 1.0.12-rc.2 2.755.0 0.0.2 syllable-sdk",
64
+ sdkVersion: "1.0.12-rc.4",
65
+ genVersion: "2.755.9",
66
+ userAgent: "speakeasy-sdk/typescript 1.0.12-rc.4 2.755.9 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.12-rc.2",
22
+ currentVersion: "1.0.12-rc.4",
23
23
  },
24
24
  });
25
25
 
@@ -183,7 +183,7 @@ export function createMCPServer(deps: {
183
183
  }) {
184
184
  const server = new McpServer({
185
185
  name: "SyllableSDK",
186
- version: "1.0.12-rc.2",
186
+ version: "1.0.12-rc.4",
187
187
  });
188
188
 
189
189
  const client = new SyllableSDKCore({
@@ -0,0 +1,68 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+
11
+ /**
12
+ * Additional configuration options for the message.
13
+ */
14
+ export type CustomMessageConfig = {
15
+ /**
16
+ * The behavior of an agent assigned this message at the beginning of a user-initiated non-voice session (e.g., SMS, email, etc.). 'respond_only' will skip the message and respond to the user's message. 'greet_and_respond' will deliver the message and respond to the user's message. 'greet_only' will deliver the message and not respond to the user's message. Defaults to 'greet_only'.
17
+ */
18
+ userInitiatedNonVoiceSessionBehavior?: string | undefined;
19
+ };
20
+
21
+ /** @internal */
22
+ export const CustomMessageConfig$inboundSchema: z.ZodType<
23
+ CustomMessageConfig,
24
+ z.ZodTypeDef,
25
+ unknown
26
+ > = z.object({
27
+ user_initiated_non_voice_session_behavior: z.string().default("greet_only"),
28
+ }).transform((v) => {
29
+ return remap$(v, {
30
+ "user_initiated_non_voice_session_behavior":
31
+ "userInitiatedNonVoiceSessionBehavior",
32
+ });
33
+ });
34
+ /** @internal */
35
+ export type CustomMessageConfig$Outbound = {
36
+ user_initiated_non_voice_session_behavior: string;
37
+ };
38
+
39
+ /** @internal */
40
+ export const CustomMessageConfig$outboundSchema: z.ZodType<
41
+ CustomMessageConfig$Outbound,
42
+ z.ZodTypeDef,
43
+ CustomMessageConfig
44
+ > = z.object({
45
+ userInitiatedNonVoiceSessionBehavior: z.string().default("greet_only"),
46
+ }).transform((v) => {
47
+ return remap$(v, {
48
+ userInitiatedNonVoiceSessionBehavior:
49
+ "user_initiated_non_voice_session_behavior",
50
+ });
51
+ });
52
+
53
+ export function customMessageConfigToJSON(
54
+ customMessageConfig: CustomMessageConfig,
55
+ ): string {
56
+ return JSON.stringify(
57
+ CustomMessageConfig$outboundSchema.parse(customMessageConfig),
58
+ );
59
+ }
60
+ export function customMessageConfigFromJSON(
61
+ jsonString: string,
62
+ ): SafeParseResult<CustomMessageConfig, SDKValidationError> {
63
+ return safeParse(
64
+ jsonString,
65
+ (x) => CustomMessageConfig$inboundSchema.parse(JSON.parse(x)),
66
+ `Failed to parse 'CustomMessageConfig' from JSON`,
67
+ );
68
+ }
@@ -6,6 +6,12 @@ import * as z from "zod/v3";
6
6
  import { safeParse } from "../../lib/schemas.js";
7
7
  import { Result as SafeParseResult } from "../../types/fp.js";
8
8
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
+ import {
10
+ CustomMessageConfig,
11
+ CustomMessageConfig$inboundSchema,
12
+ CustomMessageConfig$Outbound,
13
+ CustomMessageConfig$outboundSchema,
14
+ } from "./custommessageconfig.js";
9
15
  import {
10
16
  CustomMessageRule,
11
17
  CustomMessageRule$inboundSchema,
@@ -33,6 +39,10 @@ export type CustomMessageCreateRequest = {
33
39
  * Rules for time-specific message variants
34
40
  */
35
41
  rules?: Array<CustomMessageRule> | undefined;
42
+ /**
43
+ * Additional configuration options for the message.
44
+ */
45
+ config?: CustomMessageConfig | undefined;
36
46
  /**
37
47
  * Type of the custom message (must be "greeting" for now)
38
48
  */
@@ -49,6 +59,7 @@ export const CustomMessageCreateRequest$inboundSchema: z.ZodType<
49
59
  text: z.string(),
50
60
  label: z.nullable(z.string()).optional(),
51
61
  rules: z.array(CustomMessageRule$inboundSchema).optional(),
62
+ config: CustomMessageConfig$inboundSchema.optional(),
52
63
  type: z.string().default("greeting"),
53
64
  });
54
65
  /** @internal */
@@ -57,6 +68,7 @@ export type CustomMessageCreateRequest$Outbound = {
57
68
  text: string;
58
69
  label?: string | null | undefined;
59
70
  rules?: Array<CustomMessageRule$Outbound> | undefined;
71
+ config?: CustomMessageConfig$Outbound | undefined;
60
72
  type: string;
61
73
  };
62
74
 
@@ -70,6 +82,7 @@ export const CustomMessageCreateRequest$outboundSchema: z.ZodType<
70
82
  text: z.string(),
71
83
  label: z.nullable(z.string()).optional(),
72
84
  rules: z.array(CustomMessageRule$outboundSchema).optional(),
85
+ config: CustomMessageConfig$outboundSchema.optional(),
73
86
  type: z.string().default("greeting"),
74
87
  });
75
88
 
@@ -7,6 +7,12 @@ import { remap as remap$ } from "../../lib/primitives.js";
7
7
  import { safeParse } from "../../lib/schemas.js";
8
8
  import { Result as SafeParseResult } from "../../types/fp.js";
9
9
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+ import {
11
+ CustomMessageConfig,
12
+ CustomMessageConfig$inboundSchema,
13
+ CustomMessageConfig$Outbound,
14
+ CustomMessageConfig$outboundSchema,
15
+ } from "./custommessageconfig.js";
10
16
  import {
11
17
  CustomMessageRule,
12
18
  CustomMessageRule$inboundSchema,
@@ -41,6 +47,10 @@ export type CustomMessageResponse = {
41
47
  * Rules for time-specific message variants
42
48
  */
43
49
  rules?: Array<CustomMessageRule> | undefined;
50
+ /**
51
+ * Additional configuration options for the message.
52
+ */
53
+ config?: CustomMessageConfig | undefined;
44
54
  /**
45
55
  * The ID of the custom message
46
56
  */
@@ -73,6 +83,7 @@ export const CustomMessageResponse$inboundSchema: z.ZodType<
73
83
  text: z.string(),
74
84
  label: z.nullable(z.string()).optional(),
75
85
  rules: z.array(CustomMessageRule$inboundSchema).optional(),
86
+ config: CustomMessageConfig$inboundSchema.optional(),
76
87
  id: z.number().int(),
77
88
  updated_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
78
89
  agent_count: z.nullable(z.number().int()).optional(),
@@ -91,6 +102,7 @@ export type CustomMessageResponse$Outbound = {
91
102
  text: string;
92
103
  label?: string | null | undefined;
93
104
  rules?: Array<CustomMessageRule$Outbound> | undefined;
105
+ config?: CustomMessageConfig$Outbound | undefined;
94
106
  id: number;
95
107
  updated_at: string;
96
108
  agent_count?: number | null | undefined;
@@ -108,6 +120,7 @@ export const CustomMessageResponse$outboundSchema: z.ZodType<
108
120
  text: z.string(),
109
121
  label: z.nullable(z.string()).optional(),
110
122
  rules: z.array(CustomMessageRule$outboundSchema).optional(),
123
+ config: CustomMessageConfig$outboundSchema.optional(),
111
124
  id: z.number().int(),
112
125
  updatedAt: z.date().transform(v => v.toISOString()),
113
126
  agentCount: z.nullable(z.number().int()).optional(),
@@ -6,6 +6,12 @@ import * as z from "zod/v3";
6
6
  import { safeParse } from "../../lib/schemas.js";
7
7
  import { Result as SafeParseResult } from "../../types/fp.js";
8
8
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
+ import {
10
+ CustomMessageConfig,
11
+ CustomMessageConfig$inboundSchema,
12
+ CustomMessageConfig$Outbound,
13
+ CustomMessageConfig$outboundSchema,
14
+ } from "./custommessageconfig.js";
9
15
  import {
10
16
  CustomMessageRule,
11
17
  CustomMessageRule$inboundSchema,
@@ -33,6 +39,10 @@ export type CustomMessageUpdateRequest = {
33
39
  * Rules for time-specific message variants
34
40
  */
35
41
  rules?: Array<CustomMessageRule> | undefined;
42
+ /**
43
+ * Additional configuration options for the message.
44
+ */
45
+ config?: CustomMessageConfig | undefined;
36
46
  /**
37
47
  * The ID of the custom message
38
48
  */
@@ -53,6 +63,7 @@ export const CustomMessageUpdateRequest$inboundSchema: z.ZodType<
53
63
  text: z.string(),
54
64
  label: z.nullable(z.string()).optional(),
55
65
  rules: z.array(CustomMessageRule$inboundSchema).optional(),
66
+ config: CustomMessageConfig$inboundSchema.optional(),
56
67
  id: z.number().int(),
57
68
  type: z.string().default("greeting"),
58
69
  });
@@ -62,6 +73,7 @@ export type CustomMessageUpdateRequest$Outbound = {
62
73
  text: string;
63
74
  label?: string | null | undefined;
64
75
  rules?: Array<CustomMessageRule$Outbound> | undefined;
76
+ config?: CustomMessageConfig$Outbound | undefined;
65
77
  id: number;
66
78
  type: string;
67
79
  };
@@ -76,6 +88,7 @@ export const CustomMessageUpdateRequest$outboundSchema: z.ZodType<
76
88
  text: z.string(),
77
89
  label: z.nullable(z.string()).optional(),
78
90
  rules: z.array(CustomMessageRule$outboundSchema).optional(),
91
+ config: CustomMessageConfig$outboundSchema.optional(),
79
92
  id: z.number().int(),
80
93
  type: z.string().default("greeting"),
81
94
  });
@@ -46,6 +46,7 @@ export * from "./communicationrequestresult.js";
46
46
  export * from "./conversation.js";
47
47
  export * from "./conversationproperties.js";
48
48
  export * from "./createtakeoutresponse.js";
49
+ export * from "./custommessageconfig.js";
49
50
  export * from "./custommessagecreaterequest.js";
50
51
  export * from "./custommessageproperties.js";
51
52
  export * from "./custommessageresponse.js";