@pushwoosh/rpc-gateway-ai-assistant 0.1.192 → 0.1.193
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 +63 -2
- package/package.json +1 -1
- package/pushwoosh_aibuilder_v1.d.ts +37 -1
- package/pushwoosh_aigen_v1.d.ts +7 -1
package/data.js
CHANGED
|
@@ -429,6 +429,62 @@ export const data = {
|
|
|
429
429
|
}
|
|
430
430
|
}
|
|
431
431
|
},
|
|
432
|
+
"pushwoosh.aibuilder.v1.FormFieldType": {
|
|
433
|
+
"type": "E",
|
|
434
|
+
"values": [
|
|
435
|
+
"FORM_FIELD_TYPE_UNSPECIFIED",
|
|
436
|
+
"FORM_FIELD_TYPE_TEXT",
|
|
437
|
+
"FORM_FIELD_TYPE_EMAIL",
|
|
438
|
+
"FORM_FIELD_TYPE_PHONE",
|
|
439
|
+
"FORM_FIELD_TYPE_NUMBER",
|
|
440
|
+
"FORM_FIELD_TYPE_DATE",
|
|
441
|
+
"FORM_FIELD_TYPE_CHECKBOX",
|
|
442
|
+
"FORM_FIELD_TYPE_SELECT",
|
|
443
|
+
"FORM_FIELD_TYPE_TEXTAREA",
|
|
444
|
+
"FORM_FIELD_TYPE_HIDDEN",
|
|
445
|
+
"FORM_FIELD_TYPE_RADIO"
|
|
446
|
+
]
|
|
447
|
+
},
|
|
448
|
+
"pushwoosh.aibuilder.v1.FormField": {
|
|
449
|
+
"type": "I",
|
|
450
|
+
"fields": {
|
|
451
|
+
"name": {
|
|
452
|
+
"type": "string"
|
|
453
|
+
},
|
|
454
|
+
"label": {
|
|
455
|
+
"type": "string"
|
|
456
|
+
},
|
|
457
|
+
"type": {
|
|
458
|
+
"type": "pushwoosh.aibuilder.v1.FormFieldType"
|
|
459
|
+
},
|
|
460
|
+
"required": {
|
|
461
|
+
"type": "boolean"
|
|
462
|
+
},
|
|
463
|
+
"placeholder": {
|
|
464
|
+
"type": "string"
|
|
465
|
+
},
|
|
466
|
+
"options": {
|
|
467
|
+
"type": "string",
|
|
468
|
+
"array": true
|
|
469
|
+
}
|
|
470
|
+
}
|
|
471
|
+
},
|
|
472
|
+
"pushwoosh.aibuilder.v1.Form": {
|
|
473
|
+
"type": "I",
|
|
474
|
+
"fields": {
|
|
475
|
+
"fields": {
|
|
476
|
+
"type": "pushwoosh.aibuilder.v1.FormField",
|
|
477
|
+
"array": true
|
|
478
|
+
},
|
|
479
|
+
"submitLabel": {
|
|
480
|
+
"type": "string"
|
|
481
|
+
},
|
|
482
|
+
"submitStyles": {
|
|
483
|
+
"type": "pushwoosh.aibuilder.v1.ButtonStyles",
|
|
484
|
+
"optional": true
|
|
485
|
+
}
|
|
486
|
+
}
|
|
487
|
+
},
|
|
432
488
|
"pushwoosh.aibuilder.v1.ContentItem": {
|
|
433
489
|
"type": "I",
|
|
434
490
|
"fields": {
|
|
@@ -444,6 +500,9 @@ export const data = {
|
|
|
444
500
|
"image": {
|
|
445
501
|
"type": "pushwoosh.aibuilder.v1.Image"
|
|
446
502
|
},
|
|
503
|
+
"form": {
|
|
504
|
+
"type": "pushwoosh.aibuilder.v1.Form"
|
|
505
|
+
},
|
|
447
506
|
"padding": {
|
|
448
507
|
"type": "pushwoosh.aibuilder.v1.EdgeInsets",
|
|
449
508
|
"optional": true
|
|
@@ -455,7 +514,8 @@ export const data = {
|
|
|
455
514
|
"text",
|
|
456
515
|
"buttonGroup",
|
|
457
516
|
"list",
|
|
458
|
-
"image"
|
|
517
|
+
"image",
|
|
518
|
+
"form"
|
|
459
519
|
]
|
|
460
520
|
}
|
|
461
521
|
}
|
|
@@ -967,7 +1027,8 @@ export const data = {
|
|
|
967
1027
|
"AI_GEN_MODE_UNSPECIFIED",
|
|
968
1028
|
"AI_GEN_MODE_EMAIL",
|
|
969
1029
|
"AI_GEN_MODE_FULL",
|
|
970
|
-
"AI_GEN_MODE_WEB_POPUP"
|
|
1030
|
+
"AI_GEN_MODE_WEB_POPUP",
|
|
1031
|
+
"AI_GEN_MODE_WEB_PAGE"
|
|
971
1032
|
]
|
|
972
1033
|
},
|
|
973
1034
|
"pushwoosh.aigen.v1.AiGenBlockPath": {
|
package/package.json
CHANGED
|
@@ -392,6 +392,38 @@ export type ListItem = {
|
|
|
392
392
|
export type List = {
|
|
393
393
|
items: ListItem[];
|
|
394
394
|
};
|
|
395
|
+
export type FormFieldType =
|
|
396
|
+
/** treated as TEXT */
|
|
397
|
+
'FORM_FIELD_TYPE_UNSPECIFIED' | 'FORM_FIELD_TYPE_TEXT' | 'FORM_FIELD_TYPE_EMAIL' | 'FORM_FIELD_TYPE_PHONE' | 'FORM_FIELD_TYPE_NUMBER' | 'FORM_FIELD_TYPE_DATE' | 'FORM_FIELD_TYPE_CHECKBOX' | 'FORM_FIELD_TYPE_SELECT' | 'FORM_FIELD_TYPE_TEXTAREA' | 'FORM_FIELD_TYPE_HIDDEN' | 'FORM_FIELD_TYPE_RADIO';
|
|
398
|
+
export type FormField = {
|
|
399
|
+
/**
|
|
400
|
+
* Input name, submitted verbatim; the cloud-pages backend turns every
|
|
401
|
+
* field into a subscriber tag of the same name. Two names are special
|
|
402
|
+
* there: "email" registers an Email-platform device, "phone_number" an
|
|
403
|
+
* SMS one.
|
|
404
|
+
*/
|
|
405
|
+
name: string;
|
|
406
|
+
label: string;
|
|
407
|
+
type: FormFieldType;
|
|
408
|
+
required: boolean;
|
|
409
|
+
placeholder: string;
|
|
410
|
+
/** Choices for SELECT / RADIO / CHECKBOX-group fields. */
|
|
411
|
+
options: string[];
|
|
412
|
+
};
|
|
413
|
+
/**
|
|
414
|
+
* A subscription form (WEB_PAGE documents). Client-managed end to end in
|
|
415
|
+
* the MVP: the LLM neither sees nor generates forms; the converter and the
|
|
416
|
+
* editor own them. The emitted HTML must follow the cloud-pages submit
|
|
417
|
+
* conventions: <form method="GET"> with NO action — the hosting service
|
|
418
|
+
* rewrites the method to POST and the form posts back to the page's own
|
|
419
|
+
* URL.
|
|
420
|
+
*/
|
|
421
|
+
export type Form = {
|
|
422
|
+
fields: FormField[];
|
|
423
|
+
/** Submit button. */
|
|
424
|
+
submitLabel: string;
|
|
425
|
+
submitStyles?: ButtonStyles;
|
|
426
|
+
};
|
|
395
427
|
export type ContentItem_item_text = {
|
|
396
428
|
type: 'text';
|
|
397
429
|
data: TextBlock;
|
|
@@ -408,7 +440,11 @@ export type ContentItem_item_image = {
|
|
|
408
440
|
type: 'image';
|
|
409
441
|
data: Image;
|
|
410
442
|
};
|
|
411
|
-
export type
|
|
443
|
+
export type ContentItem_item_form = {
|
|
444
|
+
type: 'form';
|
|
445
|
+
data: Form;
|
|
446
|
+
};
|
|
447
|
+
export type ContentItem_item = ContentItem_item_text | ContentItem_item_buttonGroup | ContentItem_item_list | ContentItem_item_image | ContentItem_item_form;
|
|
412
448
|
export type ContentItem = {
|
|
413
449
|
/**
|
|
414
450
|
* Container padding of the item. Unset = client's default inter-item gap;
|
package/pushwoosh_aigen_v1.d.ts
CHANGED
|
@@ -118,7 +118,13 @@ export type AiGenMode = 'AI_GEN_MODE_UNSPECIFIED' | 'AI_GEN_MODE_EMAIL'
|
|
|
118
118
|
* with this mode (InvalidArgument). Use AI_GEN_MODE_WEB_POPUP for
|
|
119
119
|
* popups or a future concrete channel for other surfaces.
|
|
120
120
|
*/
|
|
121
|
-
| 'AI_GEN_MODE_FULL' | 'AI_GEN_MODE_WEB_POPUP'
|
|
121
|
+
| 'AI_GEN_MODE_FULL' | 'AI_GEN_MODE_WEB_POPUP'
|
|
122
|
+
/**
|
|
123
|
+
* Cloud pages: full-page web documents with subscription forms. MVP is
|
|
124
|
+
* conversion + manual editing only — the generation pipeline is not
|
|
125
|
+
* tuned for pages yet.
|
|
126
|
+
*/
|
|
127
|
+
| 'AI_GEN_MODE_WEB_PAGE';
|
|
122
128
|
/**
|
|
123
129
|
* AiGenBlockPath wraps a block-addressing path so it can appear inside
|
|
124
130
|
* repeated fields — proto3 disallows `repeated repeated`. Path is
|