@pushwoosh/rpc-gateway-ai-assistant 0.1.108 → 0.1.110
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/data.js +57 -0
- package/package.json +1 -1
- package/pushwoosh_aibuilder_v1.d.ts +19 -0
package/data.js
CHANGED
|
@@ -25,6 +25,46 @@ export const data = {
|
|
|
25
25
|
"method": "post",
|
|
26
26
|
"path": "/api/v1/builder/generate-block",
|
|
27
27
|
"serverStreaming": true
|
|
28
|
+
},
|
|
29
|
+
"GenerateDescription": {
|
|
30
|
+
"request": "pushwoosh.aibuilder.v1.BuilderGenerateDescriptionRequest",
|
|
31
|
+
"response": "pushwoosh.aibuilder.v1.BuilderGenerateDescriptionResponse",
|
|
32
|
+
"method": "post",
|
|
33
|
+
"path": "/api/v1/builder/generate-description"
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
"pushwoosh.aibuilder.v1.BuilderDescriptionField": {
|
|
38
|
+
"type": "E",
|
|
39
|
+
"values": [
|
|
40
|
+
"BUILDER_DESCRIPTION_FIELD_UNSPECIFIED",
|
|
41
|
+
"BUILDER_DESCRIPTION_FIELD_TEMPLATE_NAME",
|
|
42
|
+
"BUILDER_DESCRIPTION_FIELD_SUBJECT",
|
|
43
|
+
"BUILDER_DESCRIPTION_FIELD_PREHEADER"
|
|
44
|
+
]
|
|
45
|
+
},
|
|
46
|
+
"pushwoosh.aibuilder.v1.BuilderGenerateDescriptionRequest": {
|
|
47
|
+
"type": "I",
|
|
48
|
+
"fields": {
|
|
49
|
+
"document": {
|
|
50
|
+
"type": "pushwoosh.aibuilder.v1.AiBuilderDocument"
|
|
51
|
+
},
|
|
52
|
+
"field": {
|
|
53
|
+
"type": "pushwoosh.aibuilder.v1.BuilderDescriptionField"
|
|
54
|
+
},
|
|
55
|
+
"application": {
|
|
56
|
+
"type": "string"
|
|
57
|
+
},
|
|
58
|
+
"textModel": {
|
|
59
|
+
"type": "pushwoosh.aibuilder.v1.LLMProvider"
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"pushwoosh.aibuilder.v1.BuilderGenerateDescriptionResponse": {
|
|
64
|
+
"type": "I",
|
|
65
|
+
"fields": {
|
|
66
|
+
"text": {
|
|
67
|
+
"type": "string"
|
|
28
68
|
}
|
|
29
69
|
}
|
|
30
70
|
},
|
|
@@ -207,6 +247,9 @@ export const data = {
|
|
|
207
247
|
"colorScheme": {
|
|
208
248
|
"type": "pushwoosh.aibuilder.v1.ColorSchemeItem",
|
|
209
249
|
"mapKeyType": "string"
|
|
250
|
+
},
|
|
251
|
+
"emailMeta": {
|
|
252
|
+
"type": "pushwoosh.aibuilder.v1.EmailMeta"
|
|
210
253
|
}
|
|
211
254
|
}
|
|
212
255
|
},
|
|
@@ -786,6 +829,17 @@ export const data = {
|
|
|
786
829
|
}
|
|
787
830
|
}
|
|
788
831
|
},
|
|
832
|
+
"pushwoosh.aibuilder.v1.EmailMeta": {
|
|
833
|
+
"type": "I",
|
|
834
|
+
"fields": {
|
|
835
|
+
"subject": {
|
|
836
|
+
"type": "string"
|
|
837
|
+
},
|
|
838
|
+
"preheader": {
|
|
839
|
+
"type": "string"
|
|
840
|
+
}
|
|
841
|
+
}
|
|
842
|
+
},
|
|
789
843
|
"pushwoosh.aibuilder.v1.AiBuilderDocument": {
|
|
790
844
|
"type": "I",
|
|
791
845
|
"fields": {
|
|
@@ -803,6 +857,9 @@ export const data = {
|
|
|
803
857
|
"colorScheme": {
|
|
804
858
|
"type": "pushwoosh.aibuilder.v1.ColorSchemeItem",
|
|
805
859
|
"mapKeyType": "string"
|
|
860
|
+
},
|
|
861
|
+
"emailMeta": {
|
|
862
|
+
"type": "pushwoosh.aibuilder.v1.EmailMeta"
|
|
806
863
|
}
|
|
807
864
|
}
|
|
808
865
|
},
|
package/package.json
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { RpcMethod } from './commonTypes';
|
|
2
|
+
export type BuilderService_GenerateDescription = RpcMethod<BuilderGenerateDescriptionRequest, BuilderGenerateDescriptionResponse>;
|
|
1
3
|
export interface BuilderService {
|
|
2
4
|
Create(request: BuilderCreateRequest, options?: {
|
|
3
5
|
signal?: AbortSignal;
|
|
@@ -8,7 +10,18 @@ export interface BuilderService {
|
|
|
8
10
|
GenerateBlock(request: BuilderGenerateBlockRequest, options?: {
|
|
9
11
|
signal?: AbortSignal;
|
|
10
12
|
}): Promise<AsyncIterable<BuilderCreateStreamEvent>>;
|
|
13
|
+
GenerateDescription: BuilderService_GenerateDescription;
|
|
11
14
|
}
|
|
15
|
+
export type BuilderDescriptionField = 'BUILDER_DESCRIPTION_FIELD_UNSPECIFIED' | 'BUILDER_DESCRIPTION_FIELD_TEMPLATE_NAME' | 'BUILDER_DESCRIPTION_FIELD_SUBJECT' | 'BUILDER_DESCRIPTION_FIELD_PREHEADER';
|
|
16
|
+
export type BuilderGenerateDescriptionRequest = {
|
|
17
|
+
document: AiBuilderDocument;
|
|
18
|
+
field: BuilderDescriptionField;
|
|
19
|
+
application: string;
|
|
20
|
+
textModel: LLMProvider;
|
|
21
|
+
};
|
|
22
|
+
export type BuilderGenerateDescriptionResponse = {
|
|
23
|
+
text: string;
|
|
24
|
+
};
|
|
12
25
|
export type LLMProvider = 'LLM_PROVIDER_UNSPECIFIED' | 'LLM_PROVIDER_QWEN' | 'LLM_PROVIDER_GEMINI';
|
|
13
26
|
export type BuilderCreateRequest = {
|
|
14
27
|
prompt: string;
|
|
@@ -80,6 +93,7 @@ export type BuilderCreateDocument = {
|
|
|
80
93
|
settings: BuilderCreateColorSettings;
|
|
81
94
|
textVariants: Record<string, TextVariantStyle>;
|
|
82
95
|
colorScheme: Record<string, ColorSchemeItem>;
|
|
96
|
+
emailMeta: EmailMeta;
|
|
83
97
|
};
|
|
84
98
|
export type BuilderCreateDocumentBlock_block_card = {
|
|
85
99
|
type: 'card';
|
|
@@ -306,9 +320,14 @@ export type AiBuilderBlock = {
|
|
|
306
320
|
styles?: BlockStyles;
|
|
307
321
|
block: AiBuilderBlock_block;
|
|
308
322
|
};
|
|
323
|
+
export type EmailMeta = {
|
|
324
|
+
subject: string;
|
|
325
|
+
preheader: string;
|
|
326
|
+
};
|
|
309
327
|
export type AiBuilderDocument = {
|
|
310
328
|
blocks: AiBuilderBlock[];
|
|
311
329
|
settings: DocumentSettings;
|
|
312
330
|
textVariants: Record<string, TextVariantStyle>;
|
|
313
331
|
colorScheme: Record<string, ColorSchemeItem>;
|
|
332
|
+
emailMeta: EmailMeta;
|
|
314
333
|
};
|