@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 CHANGED
@@ -441,14 +441,16 @@ export const data = {
441
441
  }
442
442
  }
443
443
  },
444
- "pushwoosh.aibuilder.v1.EmailMeta": {
444
+ "pushwoosh.aibuilder.v1.Meta": {
445
445
  "type": "I",
446
446
  "fields": {
447
- "subject": {
448
- "type": "string"
447
+ "emailSubject": {
448
+ "type": "string",
449
+ "optional": true
449
450
  },
450
- "preheader": {
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
- "emailMeta": {
489
- "type": "pushwoosh.aibuilder.v1.EmailMeta"
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.AiGenTextDescription": {
819
+ "pushwoosh.aigen.v1.AiGenMetaDelta": {
818
820
  "type": "I",
819
821
  "fields": {
820
- "type": {
822
+ "field": {
821
823
  "type": "string"
822
824
  },
823
- "description": {
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
- "textDescription": {
856
- "type": "pushwoosh.aigen.v1.AiGenTextDescription"
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
- "textDescription"
872
+ "metaDelta"
871
873
  ]
872
874
  }
873
875
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-gateway-ai-assistant",
3
- "version": "0.1.115",
3
+ "version": "0.1.117",
4
4
  "description": "AI Assistant api gateway HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -199,9 +199,9 @@ export type AiBuilderBlock = {
199
199
  styles?: BlockStyles;
200
200
  block: AiBuilderBlock_block;
201
201
  };
202
- export type EmailMeta = {
203
- subject: string;
204
- preheader: string;
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
- emailMeta: EmailMeta;
223
+ meta: Meta;
224
224
  };
@@ -205,14 +205,14 @@ export type AiGenDoneEvent = {
205
205
  summary: string;
206
206
  };
207
207
  /**
208
- * AiGenTextDescription carries a generated short text for a document-level
209
- * description field (template name, email subject, preheader, ...) so the
210
- * client can render it as it arrives instead of waiting for done.
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 AiGenTextDescription = {
213
- /** "template_name" | "subject" | "preheader" */
214
- type: string;
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 AiGenEvent_event_textDescription = {
250
- type: 'textDescription';
251
- data: AiGenTextDescription;
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 | AiGenEvent_event_textDescription;
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
@@ -1 +1,3 @@
1
+ /* eslint-disable */
2
+ /* Autogenerated code */
1
3
  export {};