openai/chatkit-python
Publicmirrored fromhttps://github.com/openai/chatkit-pythonAvailable
tests/assets/widgets/card_with_data.widget
96lines · modecode
| 1 | { |
| 2 | "version": "1.0", |
| 3 | "name": "Channel message", |
| 4 | "template": "{\"type\":\"Card\",\"size\":\"md\",\"children\":[{\"type\":\"Row\",\"children\":[{\"type\":\"Text\",\"value\":{{ (channel) | tojson }}},{\"type\":\"Spacer\"},{\"type\":\"Text\",\"value\":{{ (time) | tojson }},\"color\":\"tertiary\"}]},{\"type\":\"Divider\",\"flush\":true},{\"type\":\"Row\",\"align\":\"start\",\"gap\":4,\"children\":[{\"type\":\"Image\",\"src\":{{ (user.image) | tojson }},\"size\":44},{\"type\":\"Col\",\"children\":[{\"type\":\"Text\",\"value\":{{ (user.name) | tojson }},\"weight\":\"semibold\"},{\"type\":\"Markdown\",\"value\":{{ ((\"End of week update for ChatKit:\\n\\n1. Designed **new header system** with more flexibility for custom menu actions.\\n2. Made progress on **DevDay training material**.\\n3. Coordinated with partners to **prioritize remaining feature requirements**.\\n\\n**Next week** I plan to focus on building out our Figma library and updating to new icons.\")) | tojson }}}]}]},{\"type\":\"Spacer\"}]}", |
| 5 | "jsonSchema": { |
| 6 | "$schema": "https://json-schema.org/draft/2020-12/schema", |
| 7 | "type": "object", |
| 8 | "properties": { |
| 9 | "channel": { |
| 10 | "type": "string" |
| 11 | }, |
| 12 | "time": { |
| 13 | "type": "string" |
| 14 | }, |
| 15 | "user": { |
| 16 | "type": "object", |
| 17 | "properties": { |
| 18 | "image": { |
| 19 | "type": "string" |
| 20 | }, |
| 21 | "name": { |
| 22 | "type": "string" |
| 23 | } |
| 24 | }, |
| 25 | "required": [ |
| 26 | "image", |
| 27 | "name" |
| 28 | ], |
| 29 | "additionalProperties": false |
| 30 | } |
| 31 | }, |
| 32 | "required": [ |
| 33 | "channel", |
| 34 | "time", |
| 35 | "user" |
| 36 | ], |
| 37 | "additionalProperties": false |
| 38 | }, |
| 39 | "outputJsonPreview": { |
| 40 | "type": "Card", |
| 41 | "size": "md", |
| 42 | "children": [ |
| 43 | { |
| 44 | "type": "Row", |
| 45 | "children": [ |
| 46 | { |
| 47 | "type": "Text", |
| 48 | "value": "#proj-chatkit" |
| 49 | }, |
| 50 | { |
| 51 | "type": "Spacer" |
| 52 | }, |
| 53 | { |
| 54 | "type": "Text", |
| 55 | "value": "4:48 PM", |
| 56 | "color": "tertiary" |
| 57 | } |
| 58 | ] |
| 59 | }, |
| 60 | { |
| 61 | "type": "Divider", |
| 62 | "flush": true |
| 63 | }, |
| 64 | { |
| 65 | "type": "Row", |
| 66 | "align": "start", |
| 67 | "gap": 4, |
| 68 | "children": [ |
| 69 | { |
| 70 | "type": "Image", |
| 71 | "src": "/zj.png", |
| 72 | "size": 44 |
| 73 | }, |
| 74 | { |
| 75 | "type": "Col", |
| 76 | "children": [ |
| 77 | { |
| 78 | "type": "Text", |
| 79 | "value": "Zach Johnston", |
| 80 | "weight": "semibold" |
| 81 | }, |
| 82 | { |
| 83 | "type": "Markdown", |
| 84 | "value": "End of week update for ChatKit:\n\n1. Designed **new header system** with more flexibility for custom menu actions.\n2. Made progress on **DevDay training material**.\n3. Coordinated with partners to **prioritize remaining feature requirements**.\n\n**Next week** I plan to focus on building out our Figma library and updating to new icons." |
| 85 | } |
| 86 | ] |
| 87 | } |
| 88 | ] |
| 89 | }, |
| 90 | { |
| 91 | "type": "Spacer" |
| 92 | } |
| 93 | ] |
| 94 | }, |
| 95 | "encodedWidget": "eyJpZCI6IndpZ183N3AzNzIxeiIsIm5hbWUiOiJDaGFubmVsIG1lc3NhZ2UiLCJ2aWV3IjoiPENhcmQgc2l6ZT1cIm1kXCI-XG4gIDxSb3c-XG4gICAgPFRleHQgdmFsdWU9e2NoYW5uZWx9IC8-XG4gICAgPFNwYWNlciAvPlxuICAgIDxUZXh0IHZhbHVlPXt0aW1lfSBjb2xvcj1cInRlcnRpYXJ5XCIgLz5cbiAgPC9Sb3c-XG4gIDxEaXZpZGVyIGZsdXNoIC8-XG4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