@pushwoosh/rpc-gateway-ai-assistant 0.1.241 → 0.1.242

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
@@ -1040,6 +1040,20 @@ export const data = {
1040
1040
  }
1041
1041
  }
1042
1042
  },
1043
+ "pushwoosh.aibuilder.v1.SyncedBlockRef": {
1044
+ "type": "I",
1045
+ "fields": {
1046
+ "templateCode": {
1047
+ "type": "string"
1048
+ },
1049
+ "sourceUpdatedAt": {
1050
+ "type": "string"
1051
+ },
1052
+ "fragmentCode": {
1053
+ "type": "string"
1054
+ }
1055
+ }
1056
+ },
1043
1057
  "pushwoosh.aibuilder.v1.AiBuilderBlock": {
1044
1058
  "type": "I",
1045
1059
  "fields": {
@@ -1068,6 +1082,10 @@ export const data = {
1068
1082
  "type": "pushwoosh.aibuilder.v1.BlockStyles",
1069
1083
  "optional": true
1070
1084
  },
1085
+ "syncedRef": {
1086
+ "type": "pushwoosh.aibuilder.v1.SyncedBlockRef",
1087
+ "optional": true
1088
+ },
1071
1089
  "parentId": {
1072
1090
  "type": "string"
1073
1091
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-gateway-ai-assistant",
3
- "version": "0.1.241",
3
+ "version": "0.1.242",
4
4
  "description": "AI Assistant api gateway HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -926,6 +926,28 @@ export type Divider = {
926
926
  style: DividerStyle;
927
927
  widthPercent: number;
928
928
  };
929
+ /**
930
+ * SyncedBlockRef links a block subtree root back to the saved-block template it was inserted from.
931
+ * Client-managed end to end: the client refreshes the subtree from the template on load,
932
+ * pushes edits back via TemplatesService, and re-applies the link after AI edits.
933
+ */
934
+ export type SyncedBlockRef = {
935
+ /** TemplatesService code of the source template. */
936
+ templateCode: string;
937
+ /**
938
+ * RFC3339 updated_at of the source template at last sync — the staleness check on load.
939
+ * A string, not google.protobuf.Timestamp, on purpose: the value is client-opaque and lives in
940
+ * documents stored as raw JSON (rpc-v2 smartcards content), where a Timestamp's generated
941
+ * Date type would lie after a plain JSON revival; only the client ever parses it.
942
+ */
943
+ sourceUpdatedAt: string;
944
+ /**
945
+ * Companion email template holding the block's rendered fragment. The email
946
+ * emitter writes `{% email_content "<code>" %}` instead of the baked block,
947
+ * so the sending pipeline inlines the CURRENT fragment at send time.
948
+ */
949
+ fragmentCode: string;
950
+ };
929
951
  export type AiBuilderBlock_block_card = {
930
952
  type: 'card';
931
953
  data: AiBuilderCard;
@@ -954,6 +976,8 @@ export type AiBuilderBlock_block = AiBuilderBlock_block_card | AiBuilderBlock_bl
954
976
  export type AiBuilderBlock = {
955
977
  id: string;
956
978
  styles?: BlockStyles;
979
+ /** Synced-block link; present only on the root of an instance's subtree. */
980
+ syncedRef?: SyncedBlockRef;
957
981
  /**
958
982
  * Id of the block-of-this-page that contains this one. Empty string
959
983
  * marks a top-level block. The parent (if set) must be a container