@@ -50,16 +50,7 @@ See the endpoint docs at
50
50
51
51
``` ts
52
52
await client .skills .createBoxSkillCardsOnFile (file .id , {
53
- cards: [
54
- {
55
- type: ' skill_card' ,
56
- skillCardType: ' keyword' ,
57
- skillCardTitle: { code: ' license-plates' , message: titleMessage },
58
- skill: { id: skillId , type: ' service' },
59
- invocation: { id: invocationId , type: ' skill_invocation' },
60
- entries: [{ text: ' DN86 BOX' }],
61
- } satisfies KeywordSkillCardOrStatusSkillCardOrTimelineSkillCardOrTranscriptSkillCard ,
62
- ],
53
+ cards: cardsToCreate ,
63
54
} satisfies CreateBoxSkillCardsOnFileRequestBody );
64
55
```
65
56
@@ -95,23 +86,7 @@ await client.skills.updateBoxSkillCardsOnFile(file.id, [
95
86
{
96
87
op: ' replace' as UpdateBoxSkillCardsOnFileRequestBodyOpField ,
97
88
path: ' /cards/0' ,
98
- value: new KeywordSkillCard ({
99
- type: ' skill_card' as KeywordSkillCardTypeField ,
100
- skillCardType: ' keyword' as KeywordSkillCardSkillCardTypeField ,
101
- skillCardTitle: {
102
- code: ' license-plates' ,
103
- message: updatedTitleMessage ,
104
- } satisfies KeywordSkillCardSkillCardTitleField ,
105
- skill: new KeywordSkillCardSkillField ({
106
- id: skillId ,
107
- type: ' service' as KeywordSkillCardSkillTypeField ,
108
- }),
109
- invocation: new KeywordSkillCardInvocationField ({
110
- id: invocationId ,
111
- type: ' skill_invocation' as KeywordSkillCardInvocationTypeField ,
112
- }),
113
- entries: [{ text: ' DN86 BOX' } satisfies KeywordSkillCardEntriesField ],
114
- }),
89
+ value: cardToUpdate ,
115
90
} satisfies UpdateBoxSkillCardsOnFileRequestBody ,
116
91
]);
117
92
```
0 commit comments