@pushwoosh/rpc-gateway-ai-assistant 0.1.241 → 0.1.243
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 +38 -0
- package/package.json +1 -1
- package/pushwoosh_aibuilder_v1.d.ts +49 -4
package/data.js
CHANGED
|
@@ -467,6 +467,14 @@ export const data = {
|
|
|
467
467
|
"widthPercent": {
|
|
468
468
|
"type": "number",
|
|
469
469
|
"optional": true
|
|
470
|
+
},
|
|
471
|
+
"mobileWidthPercent": {
|
|
472
|
+
"type": "number",
|
|
473
|
+
"optional": true
|
|
474
|
+
},
|
|
475
|
+
"mobilePadding": {
|
|
476
|
+
"type": "pushwoosh.aibuilder.v1.EdgeInsets",
|
|
477
|
+
"optional": true
|
|
470
478
|
}
|
|
471
479
|
}
|
|
472
480
|
},
|
|
@@ -500,6 +508,18 @@ export const data = {
|
|
|
500
508
|
"gap": {
|
|
501
509
|
"type": "number",
|
|
502
510
|
"optional": true
|
|
511
|
+
},
|
|
512
|
+
"mobileStack": {
|
|
513
|
+
"type": "pushwoosh.aibuilder.v1.MobileStack",
|
|
514
|
+
"optional": true
|
|
515
|
+
},
|
|
516
|
+
"mobileGap": {
|
|
517
|
+
"type": "number",
|
|
518
|
+
"optional": true
|
|
519
|
+
},
|
|
520
|
+
"mobilePadding": {
|
|
521
|
+
"type": "pushwoosh.aibuilder.v1.EdgeInsets",
|
|
522
|
+
"optional": true
|
|
503
523
|
}
|
|
504
524
|
}
|
|
505
525
|
},
|
|
@@ -1040,6 +1060,20 @@ export const data = {
|
|
|
1040
1060
|
}
|
|
1041
1061
|
}
|
|
1042
1062
|
},
|
|
1063
|
+
"pushwoosh.aibuilder.v1.SyncedBlockRef": {
|
|
1064
|
+
"type": "I",
|
|
1065
|
+
"fields": {
|
|
1066
|
+
"templateCode": {
|
|
1067
|
+
"type": "string"
|
|
1068
|
+
},
|
|
1069
|
+
"sourceUpdatedAt": {
|
|
1070
|
+
"type": "string"
|
|
1071
|
+
},
|
|
1072
|
+
"fragmentCode": {
|
|
1073
|
+
"type": "string"
|
|
1074
|
+
}
|
|
1075
|
+
}
|
|
1076
|
+
},
|
|
1043
1077
|
"pushwoosh.aibuilder.v1.AiBuilderBlock": {
|
|
1044
1078
|
"type": "I",
|
|
1045
1079
|
"fields": {
|
|
@@ -1068,6 +1102,10 @@ export const data = {
|
|
|
1068
1102
|
"type": "pushwoosh.aibuilder.v1.BlockStyles",
|
|
1069
1103
|
"optional": true
|
|
1070
1104
|
},
|
|
1105
|
+
"syncedRef": {
|
|
1106
|
+
"type": "pushwoosh.aibuilder.v1.SyncedBlockRef",
|
|
1107
|
+
"optional": true
|
|
1108
|
+
},
|
|
1071
1109
|
"parentId": {
|
|
1072
1110
|
"type": "string"
|
|
1073
1111
|
}
|
package/package.json
CHANGED
|
@@ -258,13 +258,13 @@ export type BackgroundGradient = {
|
|
|
258
258
|
angle: number;
|
|
259
259
|
};
|
|
260
260
|
/**
|
|
261
|
-
* How a columns block stacks on mobile (max-width media
|
|
262
|
-
* UNSPECIFIED = stack in DOM order (the historical behaviour).
|
|
261
|
+
* How a columns block (or a button group) stacks on mobile (max-width media
|
|
262
|
+
* query). Unset / UNSPECIFIED = stack in DOM order (the historical behaviour).
|
|
263
263
|
*/
|
|
264
264
|
export type MobileStack = 'MOBILE_STACK_UNSPECIFIED'
|
|
265
|
-
/** Keep the
|
|
265
|
+
/** Keep the items side by side on mobile (desktop widths). */
|
|
266
266
|
| 'MOBILE_STACK_NONE'
|
|
267
|
-
/** Stack in reverse order (last
|
|
267
|
+
/** Stack in reverse order (last item on top). */
|
|
268
268
|
| 'MOBILE_STACK_REVERSE';
|
|
269
269
|
export type ColumnsStyles = {
|
|
270
270
|
/** Padding applied to each column in the columns block. */
|
|
@@ -477,6 +477,14 @@ export type ButtonStyles = {
|
|
|
477
477
|
padding?: EdgeInsets;
|
|
478
478
|
/** Width as % of the block row (1-100). Client-managed; unset = auto (fit the label). */
|
|
479
479
|
widthPercent?: number;
|
|
480
|
+
/**
|
|
481
|
+
* Mobile (media-query) override of width_percent (1-100). Client-managed;
|
|
482
|
+
* unset = the group's mobile layout decides (full width when stacked,
|
|
483
|
+
* width_percent / auto when the desktop row is kept).
|
|
484
|
+
*/
|
|
485
|
+
mobileWidthPercent?: number;
|
|
486
|
+
/** Mobile (media-query) override of padding. Client-managed; unset = desktop value. */
|
|
487
|
+
mobilePadding?: EdgeInsets;
|
|
480
488
|
};
|
|
481
489
|
export type ButtonGroup = {
|
|
482
490
|
buttons: Button[];
|
|
@@ -491,6 +499,19 @@ export type ButtonGroupStyles = {
|
|
|
491
499
|
padding?: EdgeInsets;
|
|
492
500
|
backgroundColor?: string;
|
|
493
501
|
gap?: number;
|
|
502
|
+
/**
|
|
503
|
+
* How the group lays out on mobile. Unset / UNSPECIFIED = stack the
|
|
504
|
+
* buttons full-width in DOM order (the historical behaviour); NONE keeps
|
|
505
|
+
* the desktop row. Client-managed, like the whole message.
|
|
506
|
+
*/
|
|
507
|
+
mobileStack?: MobileStack;
|
|
508
|
+
/**
|
|
509
|
+
* Mobile overrides of gap / padding. Client-managed; unset = the mobile
|
|
510
|
+
* default (stacked: fixed stack gap below each button; row kept: the
|
|
511
|
+
* desktop values).
|
|
512
|
+
*/
|
|
513
|
+
mobileGap?: number;
|
|
514
|
+
mobilePadding?: EdgeInsets;
|
|
494
515
|
};
|
|
495
516
|
/**
|
|
496
517
|
* ListItem is one entry of a List. `text` carries the same inline-HTML
|
|
@@ -926,6 +947,28 @@ export type Divider = {
|
|
|
926
947
|
style: DividerStyle;
|
|
927
948
|
widthPercent: number;
|
|
928
949
|
};
|
|
950
|
+
/**
|
|
951
|
+
* SyncedBlockRef links a block subtree root back to the saved-block template it was inserted from.
|
|
952
|
+
* Client-managed end to end: the client refreshes the subtree from the template on load,
|
|
953
|
+
* pushes edits back via TemplatesService, and re-applies the link after AI edits.
|
|
954
|
+
*/
|
|
955
|
+
export type SyncedBlockRef = {
|
|
956
|
+
/** TemplatesService code of the source template. */
|
|
957
|
+
templateCode: string;
|
|
958
|
+
/**
|
|
959
|
+
* RFC3339 updated_at of the source template at last sync — the staleness check on load.
|
|
960
|
+
* A string, not google.protobuf.Timestamp, on purpose: the value is client-opaque and lives in
|
|
961
|
+
* documents stored as raw JSON (rpc-v2 smartcards content), where a Timestamp's generated
|
|
962
|
+
* Date type would lie after a plain JSON revival; only the client ever parses it.
|
|
963
|
+
*/
|
|
964
|
+
sourceUpdatedAt: string;
|
|
965
|
+
/**
|
|
966
|
+
* Companion email template holding the block's rendered fragment. The email
|
|
967
|
+
* emitter writes `{% email_content "<code>" %}` instead of the baked block,
|
|
968
|
+
* so the sending pipeline inlines the CURRENT fragment at send time.
|
|
969
|
+
*/
|
|
970
|
+
fragmentCode: string;
|
|
971
|
+
};
|
|
929
972
|
export type AiBuilderBlock_block_card = {
|
|
930
973
|
type: 'card';
|
|
931
974
|
data: AiBuilderCard;
|
|
@@ -954,6 +997,8 @@ export type AiBuilderBlock_block = AiBuilderBlock_block_card | AiBuilderBlock_bl
|
|
|
954
997
|
export type AiBuilderBlock = {
|
|
955
998
|
id: string;
|
|
956
999
|
styles?: BlockStyles;
|
|
1000
|
+
/** Synced-block link; present only on the root of an instance's subtree. */
|
|
1001
|
+
syncedRef?: SyncedBlockRef;
|
|
957
1002
|
/**
|
|
958
1003
|
* Id of the block-of-this-page that contains this one. Empty string
|
|
959
1004
|
* marks a top-level block. The parent (if set) must be a container
|