cv-contracts 2.0.1 → 2.0.2
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.
- package/dist/interfaces/Attachment.d.ts +3 -0
- package/dist/interfaces/AttachmentV2.d.ts +11 -0
- package/dist/interfaces/AttachmentV2.js +3 -0
- package/dist/interfaces/AttachmentV2.js.map +1 -0
- package/dist/interfaces/Message.d.ts +20 -64
- package/dist/interfaces/MessageV3.d.ts +72 -0
- package/dist/interfaces/MessageV3.js +3 -0
- package/dist/interfaces/MessageV3.js.map +1 -0
- package/dist/interfaces/index.d.ts +2 -0
- package/dist/interfaces/index.js +2 -0
- package/dist/interfaces/index.js.map +1 -1
- package/dist/schemas/AttachmentSchema.d.ts +11 -1
- package/dist/schemas/AttachmentSchema.js +10 -0
- package/dist/schemas/AttachmentSchema.js.map +1 -1
- package/dist/schemas/AttachmentV2Schema.d.ts +48 -0
- package/dist/schemas/AttachmentV2Schema.js +60 -0
- package/dist/schemas/AttachmentV2Schema.js.map +1 -0
- package/dist/schemas/GetMessageResponseSchema.d.ts +38 -209
- package/dist/schemas/GetMessageResponseSchema.js +55 -232
- package/dist/schemas/GetMessageResponseSchema.js.map +1 -1
- package/dist/schemas/MessageSchema.d.ts +57 -233
- package/dist/schemas/MessageSchema.js +73 -255
- package/dist/schemas/MessageSchema.js.map +1 -1
- package/dist/schemas/MessageShareLinkSchema.d.ts +38 -209
- package/dist/schemas/MessageShareLinkSchema.js +55 -232
- package/dist/schemas/MessageShareLinkSchema.js.map +1 -1
- package/dist/schemas/MessageV3Schema.d.ts +343 -0
- package/dist/schemas/MessageV3Schema.js +392 -0
- package/dist/schemas/MessageV3Schema.js.map +1 -0
- package/dist/schemas/index.d.ts +5 -3
- package/dist/schemas/index.js +5 -3
- package/dist/schemas/index.js.map +1 -1
- package/dist/schemas/webhook/WebhookAIPromptResponseGeneratedSchema.d.ts +38 -209
- package/dist/schemas/webhook/WebhookAIPromptResponseGeneratedSchema.js +55 -232
- package/dist/schemas/webhook/WebhookAIPromptResponseGeneratedSchema.js.map +1 -1
- package/dist/schemas/webhook/WebhookLabelAddedToMessageSchema.d.ts +38 -209
- package/dist/schemas/webhook/WebhookLabelAddedToMessageSchema.js +55 -232
- package/dist/schemas/webhook/WebhookLabelAddedToMessageSchema.js.map +1 -1
- package/dist/schemas/webhook/WebhookMessageSchema.d.ts +7 -0
- package/dist/schemas/webhook/WebhookMessageSchema.js +7 -0
- package/dist/schemas/webhook/WebhookMessageSchema.js.map +1 -1
- package/package.json +1 -1
|
@@ -5,7 +5,10 @@ export interface Attachment {
|
|
|
5
5
|
created_at: string;
|
|
6
6
|
type: AttachmentType;
|
|
7
7
|
link: string;
|
|
8
|
+
active_begin?: string | null;
|
|
9
|
+
active_end?: string | null;
|
|
8
10
|
filename?: string | null;
|
|
9
11
|
mime_type?: string | null;
|
|
10
12
|
length_in_bytes?: number | null;
|
|
13
|
+
location?: unknown | null;
|
|
11
14
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { AttachmentType } from '../enums';
|
|
2
|
+
export interface AttachmentV2 {
|
|
3
|
+
id: string;
|
|
4
|
+
creator_id: string;
|
|
5
|
+
created_at: string;
|
|
6
|
+
type: AttachmentType;
|
|
7
|
+
link: string;
|
|
8
|
+
filename?: string | null;
|
|
9
|
+
mime_type?: string | null;
|
|
10
|
+
length_in_bytes?: number | null;
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AttachmentV2.js","sourceRoot":"","sources":["../../src/interfaces/AttachmentV2.ts"],"names":[],"mappings":""}
|
|
@@ -1,72 +1,28 @@
|
|
|
1
1
|
import { Attachment } from './Attachment';
|
|
2
|
-
import {
|
|
3
|
-
export interface MessageAIResponse {
|
|
4
|
-
id: string;
|
|
5
|
-
prompt_id: string;
|
|
6
|
-
}
|
|
7
|
-
export interface MessageTimeCode {
|
|
8
|
-
t: string;
|
|
9
|
-
s: number;
|
|
10
|
-
e: number;
|
|
11
|
-
}
|
|
12
|
-
export interface UtmData {
|
|
13
|
-
utm_source?: string | null;
|
|
14
|
-
utm_medium?: string | null;
|
|
15
|
-
utm_campaign?: string | null;
|
|
16
|
-
utm_content?: string | null;
|
|
17
|
-
utm_term?: string | null;
|
|
18
|
-
}
|
|
19
|
-
export interface UserReaction {
|
|
20
|
-
user_id: string;
|
|
21
|
-
reaction_id: string;
|
|
22
|
-
}
|
|
23
|
-
export interface ReactionCounts {
|
|
24
|
-
[reaction_id: string]: number;
|
|
25
|
-
}
|
|
26
|
-
export interface ReactionSummary {
|
|
27
|
-
reaction_counts: ReactionCounts;
|
|
28
|
-
top_user_reactions: UserReaction[];
|
|
29
|
-
}
|
|
30
|
-
export interface UserNotAllowedReceiveNotifications {
|
|
31
|
-
user_id: string;
|
|
32
|
-
phone?: string;
|
|
33
|
-
email?: string;
|
|
34
|
-
}
|
|
35
|
-
export interface AudioInfo {
|
|
36
|
-
url?: string | null;
|
|
37
|
-
streaming_url?: string | null;
|
|
38
|
-
presigned_url?: string | null;
|
|
39
|
-
presigned_url_expiration_date?: string | null;
|
|
40
|
-
duration_ms?: number | null;
|
|
41
|
-
}
|
|
2
|
+
import { MessageKind, MessageStatus, MessageType } from '../enums';
|
|
42
3
|
export interface Message {
|
|
43
4
|
id: string;
|
|
44
|
-
|
|
45
|
-
|
|
5
|
+
name?: string | null;
|
|
6
|
+
link: string;
|
|
7
|
+
creator_id: string;
|
|
8
|
+
conversation_id?: string | null;
|
|
9
|
+
workspace_id?: string | null;
|
|
46
10
|
created_at: string;
|
|
47
|
-
|
|
11
|
+
last_updated_at: string;
|
|
48
12
|
deleted_at?: string | null;
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
status: MessageStatus;
|
|
53
|
-
parent_message_id?: string | null;
|
|
54
|
-
attachments?: Attachment[];
|
|
55
|
-
language?: string | null;
|
|
56
|
-
is_original_language?: boolean | null;
|
|
13
|
+
duration_ms: number;
|
|
14
|
+
audio_url?: string | null;
|
|
15
|
+
audio_stream_url?: string | null;
|
|
57
16
|
transcript?: string | null;
|
|
58
17
|
ai_summary?: string | null;
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
users_caught_up?: MessageCaughtUpStatus | null;
|
|
70
|
-
reaction_summary?: ReactionSummary | null;
|
|
71
|
-
users_not_allowed_to_receive_notifications?: UserNotAllowedReceiveNotifications[] | null;
|
|
18
|
+
has_ai_summary?: boolean;
|
|
19
|
+
waveform_url?: string | null;
|
|
20
|
+
reply_count: number;
|
|
21
|
+
parent_message_id?: string | null;
|
|
22
|
+
language?: string | null;
|
|
23
|
+
status: MessageStatus;
|
|
24
|
+
attachments?: Attachment[];
|
|
25
|
+
type: MessageType;
|
|
26
|
+
kind?: MessageKind | null;
|
|
27
|
+
share_link_id?: string;
|
|
72
28
|
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { AttachmentV2 } from './AttachmentV2';
|
|
2
|
+
import { MessageCaughtUpStatus, MessageKind, MessageStatus, MessageType } from '../enums';
|
|
3
|
+
export interface MessageAIResponse {
|
|
4
|
+
id: string;
|
|
5
|
+
prompt_id: string;
|
|
6
|
+
}
|
|
7
|
+
export interface MessageTimeCode {
|
|
8
|
+
t: string;
|
|
9
|
+
s: number;
|
|
10
|
+
e: number;
|
|
11
|
+
}
|
|
12
|
+
export interface UtmData {
|
|
13
|
+
utm_source?: string | null;
|
|
14
|
+
utm_medium?: string | null;
|
|
15
|
+
utm_campaign?: string | null;
|
|
16
|
+
utm_content?: string | null;
|
|
17
|
+
utm_term?: string | null;
|
|
18
|
+
}
|
|
19
|
+
export interface UserReaction {
|
|
20
|
+
user_id: string;
|
|
21
|
+
reaction_id: string;
|
|
22
|
+
}
|
|
23
|
+
export interface ReactionCounts {
|
|
24
|
+
[reaction_id: string]: number;
|
|
25
|
+
}
|
|
26
|
+
export interface ReactionSummary {
|
|
27
|
+
reaction_counts: ReactionCounts;
|
|
28
|
+
top_user_reactions: UserReaction[];
|
|
29
|
+
}
|
|
30
|
+
export interface UserNotAllowedReceiveNotifications {
|
|
31
|
+
user_id: string;
|
|
32
|
+
phone?: string;
|
|
33
|
+
email?: string;
|
|
34
|
+
}
|
|
35
|
+
export interface AudioInfo {
|
|
36
|
+
url?: string | null;
|
|
37
|
+
streaming_url?: string | null;
|
|
38
|
+
presigned_url?: string | null;
|
|
39
|
+
presigned_url_expiration_date?: string | null;
|
|
40
|
+
duration_ms?: number | null;
|
|
41
|
+
}
|
|
42
|
+
export interface MessageV3 {
|
|
43
|
+
id: string;
|
|
44
|
+
type: MessageType;
|
|
45
|
+
kind?: MessageKind | null;
|
|
46
|
+
created_at: string;
|
|
47
|
+
updated_at: string;
|
|
48
|
+
deleted_at?: string | null;
|
|
49
|
+
conversation_id?: string | null;
|
|
50
|
+
workspace_id: string;
|
|
51
|
+
creator_id: string;
|
|
52
|
+
status: MessageStatus;
|
|
53
|
+
parent_message_id?: string | null;
|
|
54
|
+
attachments?: AttachmentV2[];
|
|
55
|
+
language?: string | null;
|
|
56
|
+
is_original_language?: boolean | null;
|
|
57
|
+
transcript?: string | null;
|
|
58
|
+
ai_summary?: string | null;
|
|
59
|
+
ai_response_ids?: MessageAIResponse[];
|
|
60
|
+
share_link_id?: string | null;
|
|
61
|
+
link: string;
|
|
62
|
+
time_codes?: MessageTimeCode[];
|
|
63
|
+
waveform_percentages?: number[];
|
|
64
|
+
folder_id?: string | null;
|
|
65
|
+
utm_data?: UtmData | null;
|
|
66
|
+
conversation_sequence?: number | null;
|
|
67
|
+
source_message_id?: string | null;
|
|
68
|
+
audio?: AudioInfo | null;
|
|
69
|
+
users_caught_up?: MessageCaughtUpStatus | null;
|
|
70
|
+
reaction_summary?: ReactionSummary | null;
|
|
71
|
+
users_not_allowed_to_receive_notifications?: UserNotAllowedReceiveNotifications[] | null;
|
|
72
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MessageV3.js","sourceRoot":"","sources":["../../src/interfaces/MessageV3.ts"],"names":[],"mappings":""}
|
package/dist/interfaces/index.js
CHANGED
|
@@ -28,4 +28,6 @@ __exportStar(require("./ResponseByLanguage"), exports);
|
|
|
28
28
|
__exportStar(require("./AIShareLinkPromptResponse"), exports);
|
|
29
29
|
__exportStar(require("./ActionItem"), exports);
|
|
30
30
|
__exportStar(require("./MessageShareLink"), exports);
|
|
31
|
+
__exportStar(require("./MessageV3"), exports);
|
|
32
|
+
__exportStar(require("./AttachmentV2"), exports);
|
|
31
33
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,iDAA+B;AAC/B,4CAA0B;AAC1B,8CAA4B;AAC5B,0CAAwB;AACxB,+CAA6B;AAC7B,yCAAuB;AACvB,4CAA0B;AAC1B,qDAAmC;AACnC,uDAAqC;AACrC,uDAAqC;AACrC,8DAA4C;AAC5C,+CAA6B;AAC7B,qDAAmC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,iDAA+B;AAC/B,4CAA0B;AAC1B,8CAA4B;AAC5B,0CAAwB;AACxB,+CAA6B;AAC7B,yCAAuB;AACvB,4CAA0B;AAC1B,qDAAmC;AACnC,uDAAqC;AACrC,uDAAqC;AACrC,8DAA4C;AAC5C,+CAA6B;AAC7B,qDAAmC;AACnC,8CAA4B;AAC5B,iDAA+B"}
|
|
@@ -16,6 +16,12 @@ export declare const AttachmentSchema: {
|
|
|
16
16
|
link: {
|
|
17
17
|
type: string;
|
|
18
18
|
};
|
|
19
|
+
active_begin: {
|
|
20
|
+
type: string[];
|
|
21
|
+
};
|
|
22
|
+
active_end: {
|
|
23
|
+
type: string[];
|
|
24
|
+
};
|
|
19
25
|
filename: {
|
|
20
26
|
type: string[];
|
|
21
27
|
};
|
|
@@ -25,6 +31,7 @@ export declare const AttachmentSchema: {
|
|
|
25
31
|
length_in_bytes: {
|
|
26
32
|
type: string[];
|
|
27
33
|
};
|
|
34
|
+
location: {};
|
|
28
35
|
};
|
|
29
36
|
additionalProperties: boolean;
|
|
30
37
|
required: string[];
|
|
@@ -42,7 +49,10 @@ export declare enum AttachmentKeys {
|
|
|
42
49
|
created_at = "created_at",
|
|
43
50
|
type = "type",
|
|
44
51
|
link = "link",
|
|
52
|
+
active_begin = "active_begin",
|
|
53
|
+
active_end = "active_end",
|
|
45
54
|
filename = "filename",
|
|
46
55
|
mime_type = "mime_type",
|
|
47
|
-
length_in_bytes = "length_in_bytes"
|
|
56
|
+
length_in_bytes = "length_in_bytes",
|
|
57
|
+
location = "location"
|
|
48
58
|
}
|
|
@@ -19,6 +19,12 @@ exports.AttachmentSchema = {
|
|
|
19
19
|
link: {
|
|
20
20
|
type: 'string',
|
|
21
21
|
},
|
|
22
|
+
active_begin: {
|
|
23
|
+
type: ['null', 'string'],
|
|
24
|
+
},
|
|
25
|
+
active_end: {
|
|
26
|
+
type: ['null', 'string'],
|
|
27
|
+
},
|
|
22
28
|
filename: {
|
|
23
29
|
type: ['null', 'string'],
|
|
24
30
|
},
|
|
@@ -28,6 +34,7 @@ exports.AttachmentSchema = {
|
|
|
28
34
|
length_in_bytes: {
|
|
29
35
|
type: ['null', 'number'],
|
|
30
36
|
},
|
|
37
|
+
location: {},
|
|
31
38
|
},
|
|
32
39
|
additionalProperties: false,
|
|
33
40
|
required: ['created_at', 'creator_id', 'id', 'link', 'type'],
|
|
@@ -53,8 +60,11 @@ var AttachmentKeys;
|
|
|
53
60
|
AttachmentKeys["created_at"] = "created_at";
|
|
54
61
|
AttachmentKeys["type"] = "type";
|
|
55
62
|
AttachmentKeys["link"] = "link";
|
|
63
|
+
AttachmentKeys["active_begin"] = "active_begin";
|
|
64
|
+
AttachmentKeys["active_end"] = "active_end";
|
|
56
65
|
AttachmentKeys["filename"] = "filename";
|
|
57
66
|
AttachmentKeys["mime_type"] = "mime_type";
|
|
58
67
|
AttachmentKeys["length_in_bytes"] = "length_in_bytes";
|
|
68
|
+
AttachmentKeys["location"] = "location";
|
|
59
69
|
})(AttachmentKeys = exports.AttachmentKeys || (exports.AttachmentKeys = {}));
|
|
60
70
|
//# sourceMappingURL=AttachmentSchema.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AttachmentSchema.js","sourceRoot":"","sources":["../../src/schemas/AttachmentSchema.ts"],"names":[],"mappings":";;;AAAa,QAAA,gBAAgB,GAAG;IAC9B,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACV,EAAE,EAAE;YACF,IAAI,EAAE,QAAQ;SACf;QACD,UAAU,EAAE;YACV,IAAI,EAAE,QAAQ;SACf;QACD,UAAU,EAAE;YACV,IAAI,EAAE,QAAQ;SACf;QACD,IAAI,EAAE;YACJ,IAAI,EAAE,8BAA8B;SACrC;QACD,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;QACD,QAAQ,EAAE;YACR,IAAI,EAAE,CAAC,MAAM,EAAE,QAAQ,CAAC;SACzB;QACD,SAAS,EAAE;YACT,IAAI,EAAE,CAAC,MAAM,EAAE,QAAQ,CAAC;SACzB;QACD,eAAe,EAAE;YACf,IAAI,EAAE,CAAC,MAAM,EAAE,QAAQ,CAAC;SACzB;
|
|
1
|
+
{"version":3,"file":"AttachmentSchema.js","sourceRoot":"","sources":["../../src/schemas/AttachmentSchema.ts"],"names":[],"mappings":";;;AAAa,QAAA,gBAAgB,GAAG;IAC9B,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACV,EAAE,EAAE;YACF,IAAI,EAAE,QAAQ;SACf;QACD,UAAU,EAAE;YACV,IAAI,EAAE,QAAQ;SACf;QACD,UAAU,EAAE;YACV,IAAI,EAAE,QAAQ;SACf;QACD,IAAI,EAAE;YACJ,IAAI,EAAE,8BAA8B;SACrC;QACD,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;QACD,YAAY,EAAE;YACZ,IAAI,EAAE,CAAC,MAAM,EAAE,QAAQ,CAAC;SACzB;QACD,UAAU,EAAE;YACV,IAAI,EAAE,CAAC,MAAM,EAAE,QAAQ,CAAC;SACzB;QACD,QAAQ,EAAE;YACR,IAAI,EAAE,CAAC,MAAM,EAAE,QAAQ,CAAC;SACzB;QACD,SAAS,EAAE;YACT,IAAI,EAAE,CAAC,MAAM,EAAE,QAAQ,CAAC;SACzB;QACD,eAAe,EAAE;YACf,IAAI,EAAE,CAAC,MAAM,EAAE,QAAQ,CAAC;SACzB;QACD,QAAQ,EAAE,EAAE;KACb;IACD,oBAAoB,EAAE,KAAK;IAC3B,QAAQ,EAAE,CAAC,YAAY,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,CAAC;IAC5D,WAAW,EAAE;QACX,cAAc,EAAE;YACd,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE;gBACJ,MAAM;gBACN,MAAM;gBACN,UAAU;gBACV,gBAAgB;gBAChB,cAAc;gBACd,gBAAgB;aACjB;SACF;KACF;IACD,OAAO,EAAE,yCAAyC;CACnD,CAAC;AAEF,IAAY,cAYX;AAZD,WAAY,cAAc;IACxB,2BAAS,CAAA;IACT,2CAAyB,CAAA;IACzB,2CAAyB,CAAA;IACzB,+BAAa,CAAA;IACb,+BAAa,CAAA;IACb,+CAA6B,CAAA;IAC7B,2CAAyB,CAAA;IACzB,uCAAqB,CAAA;IACrB,yCAAuB,CAAA;IACvB,qDAAmC,CAAA;IACnC,uCAAqB,CAAA;AACvB,CAAC,EAZW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAYzB"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
export declare const AttachmentV2Schema: {
|
|
2
|
+
type: string;
|
|
3
|
+
properties: {
|
|
4
|
+
id: {
|
|
5
|
+
type: string;
|
|
6
|
+
};
|
|
7
|
+
creator_id: {
|
|
8
|
+
type: string;
|
|
9
|
+
};
|
|
10
|
+
created_at: {
|
|
11
|
+
type: string;
|
|
12
|
+
};
|
|
13
|
+
type: {
|
|
14
|
+
$ref: string;
|
|
15
|
+
};
|
|
16
|
+
link: {
|
|
17
|
+
type: string;
|
|
18
|
+
};
|
|
19
|
+
filename: {
|
|
20
|
+
type: string[];
|
|
21
|
+
};
|
|
22
|
+
mime_type: {
|
|
23
|
+
type: string[];
|
|
24
|
+
};
|
|
25
|
+
length_in_bytes: {
|
|
26
|
+
type: string[];
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
additionalProperties: boolean;
|
|
30
|
+
required: string[];
|
|
31
|
+
definitions: {
|
|
32
|
+
AttachmentType: {
|
|
33
|
+
type: string;
|
|
34
|
+
enum: string[];
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
$schema: string;
|
|
38
|
+
};
|
|
39
|
+
export declare enum AttachmentV2Keys {
|
|
40
|
+
id = "id",
|
|
41
|
+
creator_id = "creator_id",
|
|
42
|
+
created_at = "created_at",
|
|
43
|
+
type = "type",
|
|
44
|
+
link = "link",
|
|
45
|
+
filename = "filename",
|
|
46
|
+
mime_type = "mime_type",
|
|
47
|
+
length_in_bytes = "length_in_bytes"
|
|
48
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AttachmentV2Keys = exports.AttachmentV2Schema = void 0;
|
|
4
|
+
exports.AttachmentV2Schema = {
|
|
5
|
+
type: 'object',
|
|
6
|
+
properties: {
|
|
7
|
+
id: {
|
|
8
|
+
type: 'string',
|
|
9
|
+
},
|
|
10
|
+
creator_id: {
|
|
11
|
+
type: 'string',
|
|
12
|
+
},
|
|
13
|
+
created_at: {
|
|
14
|
+
type: 'string',
|
|
15
|
+
},
|
|
16
|
+
type: {
|
|
17
|
+
$ref: '#/definitions/AttachmentType',
|
|
18
|
+
},
|
|
19
|
+
link: {
|
|
20
|
+
type: 'string',
|
|
21
|
+
},
|
|
22
|
+
filename: {
|
|
23
|
+
type: ['null', 'string'],
|
|
24
|
+
},
|
|
25
|
+
mime_type: {
|
|
26
|
+
type: ['null', 'string'],
|
|
27
|
+
},
|
|
28
|
+
length_in_bytes: {
|
|
29
|
+
type: ['null', 'number'],
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
additionalProperties: false,
|
|
33
|
+
required: ['created_at', 'creator_id', 'id', 'link', 'type'],
|
|
34
|
+
definitions: {
|
|
35
|
+
AttachmentType: {
|
|
36
|
+
type: 'string',
|
|
37
|
+
enum: [
|
|
38
|
+
'link',
|
|
39
|
+
'file',
|
|
40
|
+
'location',
|
|
41
|
+
'ai-response-id',
|
|
42
|
+
'ai-prompt-id',
|
|
43
|
+
'action-item-id',
|
|
44
|
+
],
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
$schema: 'http://json-schema.org/draft-07/schema#',
|
|
48
|
+
};
|
|
49
|
+
var AttachmentV2Keys;
|
|
50
|
+
(function (AttachmentV2Keys) {
|
|
51
|
+
AttachmentV2Keys["id"] = "id";
|
|
52
|
+
AttachmentV2Keys["creator_id"] = "creator_id";
|
|
53
|
+
AttachmentV2Keys["created_at"] = "created_at";
|
|
54
|
+
AttachmentV2Keys["type"] = "type";
|
|
55
|
+
AttachmentV2Keys["link"] = "link";
|
|
56
|
+
AttachmentV2Keys["filename"] = "filename";
|
|
57
|
+
AttachmentV2Keys["mime_type"] = "mime_type";
|
|
58
|
+
AttachmentV2Keys["length_in_bytes"] = "length_in_bytes";
|
|
59
|
+
})(AttachmentV2Keys = exports.AttachmentV2Keys || (exports.AttachmentV2Keys = {}));
|
|
60
|
+
//# sourceMappingURL=AttachmentV2Schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AttachmentV2Schema.js","sourceRoot":"","sources":["../../src/schemas/AttachmentV2Schema.ts"],"names":[],"mappings":";;;AAAa,QAAA,kBAAkB,GAAG;IAChC,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACV,EAAE,EAAE;YACF,IAAI,EAAE,QAAQ;SACf;QACD,UAAU,EAAE;YACV,IAAI,EAAE,QAAQ;SACf;QACD,UAAU,EAAE;YACV,IAAI,EAAE,QAAQ;SACf;QACD,IAAI,EAAE;YACJ,IAAI,EAAE,8BAA8B;SACrC;QACD,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;QACD,QAAQ,EAAE;YACR,IAAI,EAAE,CAAC,MAAM,EAAE,QAAQ,CAAC;SACzB;QACD,SAAS,EAAE;YACT,IAAI,EAAE,CAAC,MAAM,EAAE,QAAQ,CAAC;SACzB;QACD,eAAe,EAAE;YACf,IAAI,EAAE,CAAC,MAAM,EAAE,QAAQ,CAAC;SACzB;KACF;IACD,oBAAoB,EAAE,KAAK;IAC3B,QAAQ,EAAE,CAAC,YAAY,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,CAAC;IAC5D,WAAW,EAAE;QACX,cAAc,EAAE;YACd,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE;gBACJ,MAAM;gBACN,MAAM;gBACN,UAAU;gBACV,gBAAgB;gBAChB,cAAc;gBACd,gBAAgB;aACjB;SACF;KACF;IACD,OAAO,EAAE,yCAAyC;CACnD,CAAC;AAEF,IAAY,gBASX;AATD,WAAY,gBAAgB;IAC1B,6BAAS,CAAA;IACT,6CAAyB,CAAA;IACzB,6CAAyB,CAAA;IACzB,iCAAa,CAAA;IACb,iCAAa,CAAA;IACb,yCAAqB,CAAA;IACrB,2CAAuB,CAAA;IACvB,uDAAmC,CAAA;AACrC,CAAC,EATW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAS3B"}
|