@pushwoosh/rpc-gateway-ai-assistant 0.1.107 → 0.1.109
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 +65 -2
- package/package.json +1 -1
- package/pushwoosh_aibuilder_v1.d.ts +23 -2
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
|
},
|
|
@@ -688,10 +731,10 @@ export const data = {
|
|
|
688
731
|
"type": "string"
|
|
689
732
|
},
|
|
690
733
|
"width": {
|
|
691
|
-
"type": "
|
|
734
|
+
"type": "string"
|
|
692
735
|
},
|
|
693
736
|
"height": {
|
|
694
|
-
"type": "
|
|
737
|
+
"type": "string"
|
|
695
738
|
},
|
|
696
739
|
"src": {
|
|
697
740
|
"type": "string"
|
|
@@ -701,6 +744,12 @@ export const data = {
|
|
|
701
744
|
},
|
|
702
745
|
"mediaUuid": {
|
|
703
746
|
"type": "string"
|
|
747
|
+
},
|
|
748
|
+
"origWidth": {
|
|
749
|
+
"type": "number"
|
|
750
|
+
},
|
|
751
|
+
"origHeight": {
|
|
752
|
+
"type": "number"
|
|
704
753
|
}
|
|
705
754
|
}
|
|
706
755
|
},
|
|
@@ -780,6 +829,17 @@ export const data = {
|
|
|
780
829
|
}
|
|
781
830
|
}
|
|
782
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
|
+
},
|
|
783
843
|
"pushwoosh.aibuilder.v1.AiBuilderDocument": {
|
|
784
844
|
"type": "I",
|
|
785
845
|
"fields": {
|
|
@@ -797,6 +857,9 @@ export const data = {
|
|
|
797
857
|
"colorScheme": {
|
|
798
858
|
"type": "pushwoosh.aibuilder.v1.ColorSchemeItem",
|
|
799
859
|
"mapKeyType": "string"
|
|
860
|
+
},
|
|
861
|
+
"emailMeta": {
|
|
862
|
+
"type": "pushwoosh.aibuilder.v1.EmailMeta"
|
|
800
863
|
}
|
|
801
864
|
}
|
|
802
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';
|
|
@@ -269,11 +283,13 @@ export type Content = {
|
|
|
269
283
|
};
|
|
270
284
|
export type Image = {
|
|
271
285
|
prompt: string;
|
|
272
|
-
width:
|
|
273
|
-
height:
|
|
286
|
+
width: string;
|
|
287
|
+
height: string;
|
|
274
288
|
src: string;
|
|
275
289
|
alt: string;
|
|
276
290
|
mediaUuid: string;
|
|
291
|
+
origWidth: number;
|
|
292
|
+
origHeight: number;
|
|
277
293
|
};
|
|
278
294
|
export type AiBuilderCard = {
|
|
279
295
|
layout: DocumentBlockLayout;
|
|
@@ -304,9 +320,14 @@ export type AiBuilderBlock = {
|
|
|
304
320
|
styles?: BlockStyles;
|
|
305
321
|
block: AiBuilderBlock_block;
|
|
306
322
|
};
|
|
323
|
+
export type EmailMeta = {
|
|
324
|
+
subject: string;
|
|
325
|
+
preheader: string;
|
|
326
|
+
};
|
|
307
327
|
export type AiBuilderDocument = {
|
|
308
328
|
blocks: AiBuilderBlock[];
|
|
309
329
|
settings: DocumentSettings;
|
|
310
330
|
textVariants: Record<string, TextVariantStyle>;
|
|
311
331
|
colorScheme: Record<string, ColorSchemeItem>;
|
|
332
|
+
emailMeta: EmailMeta;
|
|
312
333
|
};
|