@pushwoosh/rpc-gateway-ai-assistant 0.1.115 → 0.1.117
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 +15 -13
- package/package.json +1 -1
- package/pushwoosh_aibuilder_v1.d.ts +4 -4
- package/pushwoosh_aigen_v1.d.ts +11 -11
- package/types.js +2 -0
package/data.js
CHANGED
|
@@ -441,14 +441,16 @@ export const data = {
|
|
|
441
441
|
}
|
|
442
442
|
}
|
|
443
443
|
},
|
|
444
|
-
"pushwoosh.aibuilder.v1.
|
|
444
|
+
"pushwoosh.aibuilder.v1.Meta": {
|
|
445
445
|
"type": "I",
|
|
446
446
|
"fields": {
|
|
447
|
-
"
|
|
448
|
-
"type": "string"
|
|
447
|
+
"emailSubject": {
|
|
448
|
+
"type": "string",
|
|
449
|
+
"optional": true
|
|
449
450
|
},
|
|
450
|
-
"
|
|
451
|
-
"type": "string"
|
|
451
|
+
"emailPreheader": {
|
|
452
|
+
"type": "string",
|
|
453
|
+
"optional": true
|
|
452
454
|
},
|
|
453
455
|
"templateName": {
|
|
454
456
|
"type": "string"
|
|
@@ -485,8 +487,8 @@ export const data = {
|
|
|
485
487
|
"type": "pushwoosh.aibuilder.v1.ColorSchemeItem",
|
|
486
488
|
"mapKeyType": "string"
|
|
487
489
|
},
|
|
488
|
-
"
|
|
489
|
-
"type": "pushwoosh.aibuilder.v1.
|
|
490
|
+
"meta": {
|
|
491
|
+
"type": "pushwoosh.aibuilder.v1.Meta"
|
|
490
492
|
}
|
|
491
493
|
}
|
|
492
494
|
},
|
|
@@ -814,13 +816,13 @@ export const data = {
|
|
|
814
816
|
}
|
|
815
817
|
}
|
|
816
818
|
},
|
|
817
|
-
"pushwoosh.aigen.v1.
|
|
819
|
+
"pushwoosh.aigen.v1.AiGenMetaDelta": {
|
|
818
820
|
"type": "I",
|
|
819
821
|
"fields": {
|
|
820
|
-
"
|
|
822
|
+
"field": {
|
|
821
823
|
"type": "string"
|
|
822
824
|
},
|
|
823
|
-
"
|
|
825
|
+
"value": {
|
|
824
826
|
"type": "string"
|
|
825
827
|
}
|
|
826
828
|
}
|
|
@@ -852,8 +854,8 @@ export const data = {
|
|
|
852
854
|
"fatal": {
|
|
853
855
|
"type": "string"
|
|
854
856
|
},
|
|
855
|
-
"
|
|
856
|
-
"type": "pushwoosh.aigen.v1.
|
|
857
|
+
"metaDelta": {
|
|
858
|
+
"type": "pushwoosh.aigen.v1.AiGenMetaDelta"
|
|
857
859
|
}
|
|
858
860
|
},
|
|
859
861
|
"oneofs": {
|
|
@@ -867,7 +869,7 @@ export const data = {
|
|
|
867
869
|
"blockError",
|
|
868
870
|
"done",
|
|
869
871
|
"fatal",
|
|
870
|
-
"
|
|
872
|
+
"metaDelta"
|
|
871
873
|
]
|
|
872
874
|
}
|
|
873
875
|
}
|
package/package.json
CHANGED
|
@@ -199,9 +199,9 @@ export type AiBuilderBlock = {
|
|
|
199
199
|
styles?: BlockStyles;
|
|
200
200
|
block: AiBuilderBlock_block;
|
|
201
201
|
};
|
|
202
|
-
export type
|
|
203
|
-
|
|
204
|
-
|
|
202
|
+
export type Meta = {
|
|
203
|
+
emailSubject?: string;
|
|
204
|
+
emailPreheader?: string;
|
|
205
205
|
templateName: string;
|
|
206
206
|
};
|
|
207
207
|
/**
|
|
@@ -220,5 +220,5 @@ export type AiBuilderDocument = {
|
|
|
220
220
|
settings: DocumentSettings;
|
|
221
221
|
textVariants: Record<string, TextVariantStyle>;
|
|
222
222
|
colorScheme: Record<string, ColorSchemeItem>;
|
|
223
|
-
|
|
223
|
+
meta: Meta;
|
|
224
224
|
};
|
package/pushwoosh_aigen_v1.d.ts
CHANGED
|
@@ -205,14 +205,14 @@ export type AiGenDoneEvent = {
|
|
|
205
205
|
summary: string;
|
|
206
206
|
};
|
|
207
207
|
/**
|
|
208
|
-
*
|
|
209
|
-
*
|
|
210
|
-
*
|
|
208
|
+
* AiGenMetaDelta carries an updated value for one field of the document's
|
|
209
|
+
* Meta so the client can render it as it arrives instead of waiting for
|
|
210
|
+
* done. `field` matches a proto field name on `Meta`:
|
|
211
|
+
* "template_name" | "email_subject" | "email_preheader".
|
|
211
212
|
*/
|
|
212
|
-
export type
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
description: string;
|
|
213
|
+
export type AiGenMetaDelta = {
|
|
214
|
+
field: string;
|
|
215
|
+
value: string;
|
|
216
216
|
};
|
|
217
217
|
export type AiGenEvent_event_progress = {
|
|
218
218
|
type: 'progress';
|
|
@@ -246,11 +246,11 @@ export type AiGenEvent_event_fatal = {
|
|
|
246
246
|
type: 'fatal';
|
|
247
247
|
data: string;
|
|
248
248
|
};
|
|
249
|
-
export type
|
|
250
|
-
type: '
|
|
251
|
-
data:
|
|
249
|
+
export type AiGenEvent_event_metaDelta = {
|
|
250
|
+
type: 'metaDelta';
|
|
251
|
+
data: AiGenMetaDelta;
|
|
252
252
|
};
|
|
253
|
-
export type AiGenEvent_event = AiGenEvent_event_progress | AiGenEvent_event_structure | AiGenEvent_event_structureDiff | AiGenEvent_event_blockDelta | AiGenEvent_event_imageDelta | AiGenEvent_event_blockError | AiGenEvent_event_done | AiGenEvent_event_fatal |
|
|
253
|
+
export type AiGenEvent_event = AiGenEvent_event_progress | AiGenEvent_event_structure | AiGenEvent_event_structureDiff | AiGenEvent_event_blockDelta | AiGenEvent_event_imageDelta | AiGenEvent_event_blockError | AiGenEvent_event_done | AiGenEvent_event_fatal | AiGenEvent_event_metaDelta;
|
|
254
254
|
export type AiGenEvent = {
|
|
255
255
|
event: AiGenEvent_event;
|
|
256
256
|
};
|
package/types.js
CHANGED