@vivocha/public-types
Advanced tools
| { | ||
| "description": "Vivocha Multiple Attachment Message", | ||
| "type": "object", | ||
| "required": ["code", "type", "attachments"], | ||
| "properties": { | ||
| "code": { | ||
| "enum": ["message"] | ||
| }, | ||
| "type": { | ||
| "enum": ["multi-attachment"] | ||
| }, | ||
| "attachments": { | ||
| "type": "array", | ||
| "item": { | ||
| "description": "Vivocha Attachment", | ||
| "type": "object", | ||
| "required": ["url", "meta"], | ||
| "properties": { | ||
| "url": { | ||
| "$ref": "common#/definitions/notEmptyString" | ||
| }, | ||
| "meta": { | ||
| "description": "Vivocha Attachment Metadata", | ||
| "type": "object", | ||
| "required": ["mimetype"], | ||
| "properties": { | ||
| "originalUrl": { | ||
| "$ref": "common#/definitions/notEmptyString" | ||
| }, | ||
| "originalUrlHash": { | ||
| "$ref": "common#/definitions/notEmptyString" | ||
| }, | ||
| "originalId": { | ||
| "$ref": "common#/definitions/notEmptyString" | ||
| }, | ||
| "originalName": { | ||
| "$ref": "common#/definitions/notEmptyString" | ||
| }, | ||
| "mimetype": { | ||
| "$ref": "common#/definitions/notEmptyString" | ||
| }, | ||
| "desc": { | ||
| "$ref": "common#/definitions/notEmptyString" | ||
| }, | ||
| "key": { | ||
| "$ref": "common#/definitions/notEmptyString" | ||
| }, | ||
| "size": { | ||
| "type": "number" | ||
| }, | ||
| "ref": { | ||
| "$ref": "common#/definitions/notEmptyString" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } |
+16
-0
@@ -6,2 +6,18 @@ # Change Log | ||
| # [1.3.0-gaia.3](https://github.com/vivocha/vivocha/compare/@vivocha/public-types@1.3.0-gaia.2...@vivocha/public-types@1.3.0-gaia.3) (2024-07-25) | ||
| ### Bug Fixes | ||
| * fix schema to allow registering multi attachment schema ([46c9328](https://github.com/vivocha/vivocha/commit/46c93284939168e34a6000aeeb2016599f3b2fd9)) | ||
| ### Features | ||
| * **public-types:** add types and register new schemas for multi attach ([3b634f3](https://github.com/vivocha/vivocha/commit/3b634f3307046796db38a54c345a3e30fd9743f8)) | ||
| # [1.3.0-gaia.2](https://github.com/vivocha/vivocha/compare/@vivocha/public-types@1.3.0-gaia.1...@vivocha/public-types@1.3.0-gaia.2) (2024-07-18) | ||
@@ -8,0 +24,0 @@ |
+2
-2
@@ -1,3 +0,3 @@ | ||
| import { ActionMessage, AttachmentMessage, IsWritingMessage, LocationMessage, PostbackMessage, TextMessage } from './message'; | ||
| export declare type BotMessageBody = TextMessage | PostbackMessage | AttachmentMessage | ActionMessage | IsWritingMessage | LocationMessage; | ||
| import { ActionMessage, AttachmentMessage, IsWritingMessage, LocationMessage, MultiAttachmentMessage, PostbackMessage, TextMessage } from './message'; | ||
| export declare type BotMessageBody = TextMessage | PostbackMessage | AttachmentMessage | MultiAttachmentMessage | ActionMessage | IsWritingMessage | LocationMessage; | ||
| export interface EnvironmentGeoIP { | ||
@@ -4,0 +4,0 @@ country_code?: string; |
@@ -119,3 +119,3 @@ import { Encryptable } from './encryptable'; | ||
| code: 'message'; | ||
| type: 'text' | 'link' | 'action' | 'iswriting' | 'ack' | 'read' | 'mediachange' | 'attachment' | 'postback' | 'location' | 'timepicker'; | ||
| type: 'text' | 'link' | 'action' | 'iswriting' | 'ack' | 'read' | 'mediachange' | 'attachment' | 'multi-attachment' | 'postback' | 'location' | 'timepicker'; | ||
| payload?: string; | ||
@@ -179,2 +179,6 @@ lang?: string; | ||
| } | ||
| export interface MultiAttachmentMessage extends GenericMessage { | ||
| type: 'multi-attachment'; | ||
| attachments: Attachment[]; | ||
| } | ||
| export interface PostbackMessage extends GenericMessage { | ||
@@ -245,3 +249,3 @@ type: 'postback'; | ||
| } | ||
| export declare type Message = TextMessage | TextToSpeechMessage | SpeechToTextMessage | LinkMessage | ActionMessage | IsWritingMessage | AckMessage | MediaChangeMessage | AttachmentMessage | PostbackMessage | LocationMessage | TimePickerMessage | Ai.Request | Ai.Response; | ||
| export declare type Message = TextMessage | TextToSpeechMessage | SpeechToTextMessage | LinkMessage | ActionMessage | IsWritingMessage | AckMessage | MediaChangeMessage | AttachmentMessage | MultiAttachmentMessage | PostbackMessage | LocationMessage | TimePickerMessage | Ai.Request | Ai.Response; | ||
| export declare type MessageExt = Message | JoinRawMessage | LeaveRawMessage | TransferRawMessage | DataRawMessage | PingRawMessage | EventRawMessage; | ||
@@ -248,0 +252,0 @@ export interface GenericEvent { |
+2
-2
| { | ||
| "name": "@vivocha/public-types", | ||
| "version": "1.3.0-gaia.2", | ||
| "version": "1.3.0-gaia.3", | ||
| "description": "Vivocha public types", | ||
@@ -26,3 +26,3 @@ "main": "dist/index.js", | ||
| }, | ||
| "gitHead": "cd4e211e76a01bb300b777130730baafe3d20bec" | ||
| "gitHead": "e57f7c3da95bd9d11ab6eb333f2683a14606e39a" | ||
| } |
@@ -45,2 +45,5 @@ { | ||
| { | ||
| "$ref": "multi_attachment_message" | ||
| }, | ||
| { | ||
| "$ref": "action_message" | ||
@@ -47,0 +50,0 @@ }, |
@@ -30,2 +30,5 @@ { | ||
| { | ||
| "$ref": "multi_attachment_message" | ||
| }, | ||
| { | ||
| "$ref": "action_message" | ||
@@ -32,0 +35,0 @@ }, |
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
72217
3.66%42
2.44%2447
2.99%