@pushwoosh/rpc-v2-http-api-data 0.2.122 → 0.2.124

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/accounts.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import { RpcMethod } from './commonTypes';
2
+ import { AiBuilderDocument as pushwoosh_aibuilder_v1_AiBuilderDocument } from './pushwoosh_aibuilder_v1';
2
3
  export type AccountsService_GetEmailStatisticCount = RpcMethod<GetEmailStatisticCountRequest, GetEmailStatisticCountResponse>;
3
4
  export type AccountsService_GetActiveDevicesCount = RpcMethod<GetActiveDevicesCountRequest, GetActiveDevicesCountResponse>;
4
5
  export type AccountsService_GetSubscribersCount = RpcMethod<GetSubscribersCountRequest, GetSubscribersCountResponse>;
@@ -372,14 +373,23 @@ export type EmailContent_Mjml = {
372
373
  };
373
374
  export type EmailContent_Smartcards = {
374
375
  /**
375
- * Deprecated: ignored on write. The server renders the html from `content`
376
+ * Deprecated: ignored on write. The server renders the html from the document
376
377
  * and stores what it rendered; sent values are dropped. Still returned on read.
377
378
  */
378
379
  html: string;
379
- /** Deprecated: ignored on write, derived from `content` with the html. */
380
+ /** Deprecated: ignored on write, derived from the document with the html. */
380
381
  localizationData: object;
381
- /** Smartcards editor content — the document, and the only input that counts. */
382
+ /**
383
+ * The document in the editor dialect (camelCase, tagged oneofs) — what
384
+ * clients wrote before `document` existed. Accepted on write while stored
385
+ * templates still hold it; prefer `document`.
386
+ */
382
387
  content: object;
388
+ /**
389
+ * The document, typed. Same shape the renderer takes, so nothing converts
390
+ * it on the way in — set this and leave `content` empty.
391
+ */
392
+ document: pushwoosh_aibuilder_v1_AiBuilderDocument;
383
393
  };
384
394
  export type EmailContent_Vibeblocks = {
385
395
  /** Raw html */
@@ -519,6 +529,8 @@ export type RebakeEmailTemplatesResponse = {
519
529
  results: RebakeEmailTemplateResult[];
520
530
  /** Templates a dry run would have rewritten. */
521
531
  wouldChange: number;
532
+ /** Templates whose dialect carried keys the typed document cannot hold. */
533
+ withDroppedKeys: number;
522
534
  };
523
535
  export type RebakeEmailTemplateResult = {
524
536
  code: string;
@@ -527,4 +539,9 @@ export type RebakeEmailTemplateResult = {
527
539
  error: string;
528
540
  htmlBytesBefore: number;
529
541
  htmlBytesAfter: number;
542
+ /**
543
+ * Editor keys the typed document cannot hold, named by the renderer. Empty on
544
+ * every template is the second half of the AIDEV-925 zero criterion.
545
+ */
546
+ droppedFeKeys: string[];
530
547
  };