@@ -481,6 +481,34 @@ func (r FilePartType) IsKnown() bool {
481
481
return false
482
482
}
483
483
484
+ type FilePartInputParam struct {
485
+ Mime param.Field [string ] `json:"mime,required"`
486
+ Type param.Field [FilePartInputType ] `json:"type,required"`
487
+ URL param.Field [string ] `json:"url,required"`
488
+ ID param.Field [string ] `json:"id"`
489
+ Filename param.Field [string ] `json:"filename"`
490
+ }
491
+
492
+ func (r FilePartInputParam ) MarshalJSON () (data []byte , err error ) {
493
+ return apijson .MarshalRoot (r )
494
+ }
495
+
496
+ func (r FilePartInputParam ) implementsSessionChatParamsPartUnion () {}
497
+
498
+ type FilePartInputType string
499
+
500
+ const (
501
+ FilePartInputTypeFile FilePartInputType = "file"
502
+ )
503
+
504
+ func (r FilePartInputType ) IsKnown () bool {
505
+ switch r {
506
+ case FilePartInputTypeFile :
507
+ return true
508
+ }
509
+ return false
510
+ }
511
+
484
512
type Message struct {
485
513
ID string `json:"id,required"`
486
514
Role MessageRole `json:"role,required"`
@@ -1060,6 +1088,43 @@ func (r textPartTimeJSON) RawJSON() string {
1060
1088
return r .raw
1061
1089
}
1062
1090
1091
+ type TextPartInputParam struct {
1092
+ Text param.Field [string ] `json:"text,required"`
1093
+ Type param.Field [TextPartInputType ] `json:"type,required"`
1094
+ ID param.Field [string ] `json:"id"`
1095
+ Synthetic param.Field [bool ] `json:"synthetic"`
1096
+ Time param.Field [TextPartInputTimeParam ] `json:"time"`
1097
+ }
1098
+
1099
+ func (r TextPartInputParam ) MarshalJSON () (data []byte , err error ) {
1100
+ return apijson .MarshalRoot (r )
1101
+ }
1102
+
1103
+ func (r TextPartInputParam ) implementsSessionChatParamsPartUnion () {}
1104
+
1105
+ type TextPartInputType string
1106
+
1107
+ const (
1108
+ TextPartInputTypeText TextPartInputType = "text"
1109
+ )
1110
+
1111
+ func (r TextPartInputType ) IsKnown () bool {
1112
+ switch r {
1113
+ case TextPartInputTypeText :
1114
+ return true
1115
+ }
1116
+ return false
1117
+ }
1118
+
1119
+ type TextPartInputTimeParam struct {
1120
+ Start param.Field [float64 ] `json:"start,required"`
1121
+ End param.Field [float64 ] `json:"end"`
1122
+ }
1123
+
1124
+ func (r TextPartInputTimeParam ) MarshalJSON () (data []byte , err error ) {
1125
+ return apijson .MarshalRoot (r )
1126
+ }
1127
+
1063
1128
type ToolPart struct {
1064
1129
ID string `json:"id,required"`
1065
1130
CallID string `json:"callID,required"`
@@ -1562,49 +1627,12 @@ func (r SessionChatParamsPart) MarshalJSON() (data []byte, err error) {
1562
1627
1563
1628
func (r SessionChatParamsPart ) implementsSessionChatParamsPartUnion () {}
1564
1629
1565
- // Satisfied by [SessionChatParamsPartsObject ], [SessionChatParamsPartsObject ],
1630
+ // Satisfied by [TextPartInputParam ], [FilePartInputParam ],
1566
1631
// [SessionChatParamsPart].
1567
1632
type SessionChatParamsPartUnion interface {
1568
1633
implementsSessionChatParamsPartUnion ()
1569
1634
}
1570
1635
1571
- type SessionChatParamsPartsObject struct {
1572
- Text param.Field [string ] `json:"text,required"`
1573
- Type param.Field [SessionChatParamsPartsObjectType ] `json:"type,required"`
1574
- ID param.Field [string ] `json:"id"`
1575
- Synthetic param.Field [bool ] `json:"synthetic"`
1576
- Time param.Field [SessionChatParamsPartsObjectTime ] `json:"time"`
1577
- }
1578
-
1579
- func (r SessionChatParamsPartsObject ) MarshalJSON () (data []byte , err error ) {
1580
- return apijson .MarshalRoot (r )
1581
- }
1582
-
1583
- func (r SessionChatParamsPartsObject ) implementsSessionChatParamsPartUnion () {}
1584
-
1585
- type SessionChatParamsPartsObjectType string
1586
-
1587
- const (
1588
- SessionChatParamsPartsObjectTypeText SessionChatParamsPartsObjectType = "text"
1589
- )
1590
-
1591
- func (r SessionChatParamsPartsObjectType ) IsKnown () bool {
1592
- switch r {
1593
- case SessionChatParamsPartsObjectTypeText :
1594
- return true
1595
- }
1596
- return false
1597
- }
1598
-
1599
- type SessionChatParamsPartsObjectTime struct {
1600
- Start param.Field [float64 ] `json:"start,required"`
1601
- End param.Field [float64 ] `json:"end"`
1602
- }
1603
-
1604
- func (r SessionChatParamsPartsObjectTime ) MarshalJSON () (data []byte , err error ) {
1605
- return apijson .MarshalRoot (r )
1606
- }
1607
-
1608
1636
type SessionChatParamsPartsType string
1609
1637
1610
1638
const (
0 commit comments