@lepsto/sdk-app 89.3.0 → 89.4.0

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.
@@ -82545,6 +82545,79 @@ export interface MailSuppressionRemoveOutput {
82545
82545
  */
82546
82546
  removed: boolean;
82547
82547
  }
82548
+ export interface MailTemplateArchiveInput {
82549
+ /**
82550
+ * Template id to archive
82551
+ */
82552
+ id: string;
82553
+ }
82554
+ export interface MailTemplateArchiveOutput {
82555
+ /**
82556
+ * Template id
82557
+ */
82558
+ id: string;
82559
+ /**
82560
+ * HTML body; may contain {{ variable }} placeholders
82561
+ */
82562
+ html: string;
82563
+ /**
82564
+ * Human label for the template
82565
+ */
82566
+ name: string;
82567
+ /**
82568
+ * Plaintext body; null when none was supplied
82569
+ */
82570
+ text: (string | null);
82571
+ /**
82572
+ * Lifecycle status: published once a revision has gone live
82573
+ */
82574
+ status: ("draft" | "published");
82575
+ /**
82576
+ * Email subject; may contain {{ variable }} placeholders
82577
+ */
82578
+ subject: string;
82579
+ /**
82580
+ * When the template was created (ISO 8601 UTC)
82581
+ */
82582
+ createdAt: string;
82583
+ /**
82584
+ * When the template was last modified (ISO 8601 UTC)
82585
+ */
82586
+ updatedAt: string;
82587
+ /**
82588
+ * Declared variables of this template (at most 20)
82589
+ */
82590
+ variables: {
82591
+ /**
82592
+ * Placeholder identifier used as {{ name }}
82593
+ */
82594
+ name: string;
82595
+ /**
82596
+ * Declared type (metadata; rendered as string in v1)
82597
+ */
82598
+ type: ("string" | "number" | "boolean");
82599
+ /**
82600
+ * Value used when none is supplied
82601
+ */
82602
+ fallback?: string;
82603
+ /**
82604
+ * If true, an absent value renders as empty string
82605
+ */
82606
+ optional: boolean;
82607
+ }[];
82608
+ /**
82609
+ * When the template was archived (ISO 8601 UTC); null while it is listed normally. Archiving never stops a send
82610
+ */
82611
+ archivedAt: (string | null);
82612
+ /**
82613
+ * Revision number of the open, unpublished draft; null when there is none
82614
+ */
82615
+ draftRevision: (number | null);
82616
+ /**
82617
+ * Revision number a send renders; null until the template is first published
82618
+ */
82619
+ currentRevision: (number | null);
82620
+ }
82548
82621
  export interface MailTemplateCreateInput {
82549
82622
  /**
82550
82623
  * HTML body; may contain {{ variable }} placeholders
@@ -86387,7 +86460,7 @@ export interface MailTemplateCreateOutput {
86387
86460
  */
86388
86461
  text: (string | null);
86389
86462
  /**
86390
- * Lifecycle status: a draft is editable, a published template is not
86463
+ * Lifecycle status: published once a revision has gone live
86391
86464
  */
86392
86465
  status: ("draft" | "published");
86393
86466
  /**
@@ -86423,6 +86496,18 @@ export interface MailTemplateCreateOutput {
86423
86496
  */
86424
86497
  optional: boolean;
86425
86498
  }[];
86499
+ /**
86500
+ * When the template was archived (ISO 8601 UTC); null while it is listed normally. Archiving never stops a send
86501
+ */
86502
+ archivedAt: (string | null);
86503
+ /**
86504
+ * Revision number of the open, unpublished draft; null when there is none
86505
+ */
86506
+ draftRevision: (number | null);
86507
+ /**
86508
+ * Revision number a send renders; null until the template is first published
86509
+ */
86510
+ currentRevision: (number | null);
86426
86511
  }
86427
86512
  export interface MailTemplateDeleteInput {
86428
86513
  /**
@@ -86436,6 +86521,22 @@ export interface MailTemplateDeleteOutput {
86436
86521
  */
86437
86522
  deleted: boolean;
86438
86523
  }
86524
+ export interface MailTemplateDraftDiscardInput {
86525
+ /**
86526
+ * Template id whose open draft is thrown away
86527
+ */
86528
+ id: string;
86529
+ }
86530
+ export interface MailTemplateDraftDiscardOutput {
86531
+ /**
86532
+ * Revision number that was discarded
86533
+ */
86534
+ revision: number;
86535
+ /**
86536
+ * True once the open draft is gone
86537
+ */
86538
+ discarded: boolean;
86539
+ }
86439
86540
  export interface MailTemplateGetInput {
86440
86541
  /**
86441
86542
  * Template id
@@ -86473,7 +86574,7 @@ export interface MailTemplateGetOutput {
86473
86574
  last_sent_at: (string | null);
86474
86575
  };
86475
86576
  /**
86476
- * Lifecycle status: a draft is editable, a published template is not
86577
+ * Lifecycle status: published once a revision has gone live
86477
86578
  */
86478
86579
  status: ("draft" | "published");
86479
86580
  /**
@@ -86509,8 +86610,24 @@ export interface MailTemplateGetOutput {
86509
86610
  */
86510
86611
  optional: boolean;
86511
86612
  }[];
86613
+ /**
86614
+ * When the template was archived (ISO 8601 UTC); null while it is listed normally. Archiving never stops a send
86615
+ */
86616
+ archivedAt: (string | null);
86617
+ /**
86618
+ * Revision number of the open, unpublished draft; null when there is none
86619
+ */
86620
+ draftRevision: (number | null);
86621
+ /**
86622
+ * Revision number a send renders; null until the template is first published
86623
+ */
86624
+ currentRevision: (number | null);
86512
86625
  }
86513
86626
  export interface MailTemplateListInput {
86627
+ /**
86628
+ * Include archived templates, which are hidden by default. Archiving never stops a send: an archived template is still sendable by its id
86629
+ */
86630
+ include_archived?: boolean;
86514
86631
  }
86515
86632
  export type MailTemplateListOutput = {
86516
86633
  /**
@@ -86530,7 +86647,7 @@ export type MailTemplateListOutput = {
86530
86647
  */
86531
86648
  text: (string | null);
86532
86649
  /**
86533
- * Lifecycle status: a draft is editable, a published template is not
86650
+ * Lifecycle status: published once a revision has gone live
86534
86651
  */
86535
86652
  status: ("draft" | "published");
86536
86653
  /**
@@ -86566,6 +86683,18 @@ export type MailTemplateListOutput = {
86566
86683
  */
86567
86684
  optional: boolean;
86568
86685
  }[];
86686
+ /**
86687
+ * When the template was archived (ISO 8601 UTC); null while it is listed normally. Archiving never stops a send
86688
+ */
86689
+ archivedAt: (string | null);
86690
+ /**
86691
+ * Revision number of the open, unpublished draft; null when there is none
86692
+ */
86693
+ draftRevision: (number | null);
86694
+ /**
86695
+ * Revision number a send renders; null until the template is first published
86696
+ */
86697
+ currentRevision: (number | null);
86569
86698
  }[];
86570
86699
  export interface MailTemplatePublishInput {
86571
86700
  /**
@@ -86591,7 +86720,7 @@ export interface MailTemplatePublishOutput {
86591
86720
  */
86592
86721
  text: (string | null);
86593
86722
  /**
86594
- * Lifecycle status: a draft is editable, a published template is not
86723
+ * Lifecycle status: published once a revision has gone live
86595
86724
  */
86596
86725
  status: ("draft" | "published");
86597
86726
  /**
@@ -86627,6 +86756,294 @@ export interface MailTemplatePublishOutput {
86627
86756
  */
86628
86757
  optional: boolean;
86629
86758
  }[];
86759
+ /**
86760
+ * When the template was archived (ISO 8601 UTC); null while it is listed normally. Archiving never stops a send
86761
+ */
86762
+ archivedAt: (string | null);
86763
+ /**
86764
+ * Revision number of the open, unpublished draft; null when there is none
86765
+ */
86766
+ draftRevision: (number | null);
86767
+ /**
86768
+ * Revision number a send renders; null until the template is first published
86769
+ */
86770
+ currentRevision: (number | null);
86771
+ }
86772
+ export interface MailTemplateRestoreInput {
86773
+ /**
86774
+ * Template id
86775
+ */
86776
+ id: string;
86777
+ /**
86778
+ * Revision number to make live again
86779
+ */
86780
+ revision: number;
86781
+ }
86782
+ export interface MailTemplateRestoreOutput {
86783
+ /**
86784
+ * Template id
86785
+ */
86786
+ id: string;
86787
+ /**
86788
+ * HTML body; may contain {{ variable }} placeholders
86789
+ */
86790
+ html: string;
86791
+ /**
86792
+ * Human label for the template
86793
+ */
86794
+ name: string;
86795
+ /**
86796
+ * Plaintext body; null when none was supplied
86797
+ */
86798
+ text: (string | null);
86799
+ /**
86800
+ * Lifecycle status: published once a revision has gone live
86801
+ */
86802
+ status: ("draft" | "published");
86803
+ /**
86804
+ * Email subject; may contain {{ variable }} placeholders
86805
+ */
86806
+ subject: string;
86807
+ /**
86808
+ * When the template was created (ISO 8601 UTC)
86809
+ */
86810
+ createdAt: string;
86811
+ /**
86812
+ * When the template was last modified (ISO 8601 UTC)
86813
+ */
86814
+ updatedAt: string;
86815
+ /**
86816
+ * Declared variables of this template (at most 20)
86817
+ */
86818
+ variables: {
86819
+ /**
86820
+ * Placeholder identifier used as {{ name }}
86821
+ */
86822
+ name: string;
86823
+ /**
86824
+ * Declared type (metadata; rendered as string in v1)
86825
+ */
86826
+ type: ("string" | "number" | "boolean");
86827
+ /**
86828
+ * Value used when none is supplied
86829
+ */
86830
+ fallback?: string;
86831
+ /**
86832
+ * If true, an absent value renders as empty string
86833
+ */
86834
+ optional: boolean;
86835
+ }[];
86836
+ /**
86837
+ * When the template was archived (ISO 8601 UTC); null while it is listed normally. Archiving never stops a send
86838
+ */
86839
+ archivedAt: (string | null);
86840
+ /**
86841
+ * Revision number of the open, unpublished draft; null when there is none
86842
+ */
86843
+ draftRevision: (number | null);
86844
+ /**
86845
+ * Revision number a send renders; null until the template is first published
86846
+ */
86847
+ currentRevision: (number | null);
86848
+ }
86849
+ export interface MailTemplateRevisionGetInput {
86850
+ /**
86851
+ * Template id
86852
+ */
86853
+ id: string;
86854
+ /**
86855
+ * Revision number, counting from 1 for this template
86856
+ */
86857
+ revision: number;
86858
+ }
86859
+ export interface MailTemplateRevisionGetOutput {
86860
+ /**
86861
+ * HTML body as authored in this revision
86862
+ */
86863
+ html: string;
86864
+ /**
86865
+ * True for the revision a send currently renders
86866
+ */
86867
+ live: boolean;
86868
+ /**
86869
+ * Plaintext body as authored in this revision; null when none was supplied
86870
+ */
86871
+ text: (string | null);
86872
+ /**
86873
+ * Subject as authored in this revision
86874
+ */
86875
+ subject: string;
86876
+ /**
86877
+ * Revision number, counting from 1 for this template
86878
+ */
86879
+ revision: number;
86880
+ /**
86881
+ * When this revision was authored (ISO 8601 UTC)
86882
+ */
86883
+ createdAt: string;
86884
+ /**
86885
+ * Identity that authored this revision; null when unknown
86886
+ */
86887
+ createdBy: (string | null);
86888
+ /**
86889
+ * Variables declared by this revision (at most 20)
86890
+ */
86891
+ variables: {
86892
+ /**
86893
+ * Placeholder identifier used as {{ name }}
86894
+ */
86895
+ name: string;
86896
+ /**
86897
+ * Declared type (metadata; rendered as string in v1)
86898
+ */
86899
+ type: ("string" | "number" | "boolean");
86900
+ /**
86901
+ * Value used when none is supplied
86902
+ */
86903
+ fallback?: string;
86904
+ /**
86905
+ * If true, an absent value renders as empty string
86906
+ */
86907
+ optional: boolean;
86908
+ }[];
86909
+ /**
86910
+ * When this revision first went live (ISO 8601 UTC); null for the open draft
86911
+ */
86912
+ publishedAt: (string | null);
86913
+ }
86914
+ export interface MailTemplateRevisionListInput {
86915
+ /**
86916
+ * Template id
86917
+ */
86918
+ id: string;
86919
+ }
86920
+ export type MailTemplateRevisionListOutput = {
86921
+ /**
86922
+ * HTML body as authored in this revision
86923
+ */
86924
+ html: string;
86925
+ /**
86926
+ * True for the revision a send currently renders
86927
+ */
86928
+ live: boolean;
86929
+ /**
86930
+ * Plaintext body as authored in this revision; null when none was supplied
86931
+ */
86932
+ text: (string | null);
86933
+ /**
86934
+ * Subject as authored in this revision
86935
+ */
86936
+ subject: string;
86937
+ /**
86938
+ * Revision number, counting from 1 for this template
86939
+ */
86940
+ revision: number;
86941
+ /**
86942
+ * When this revision was authored (ISO 8601 UTC)
86943
+ */
86944
+ createdAt: string;
86945
+ /**
86946
+ * Identity that authored this revision; null when unknown
86947
+ */
86948
+ createdBy: (string | null);
86949
+ /**
86950
+ * Variables declared by this revision (at most 20)
86951
+ */
86952
+ variables: {
86953
+ /**
86954
+ * Placeholder identifier used as {{ name }}
86955
+ */
86956
+ name: string;
86957
+ /**
86958
+ * Declared type (metadata; rendered as string in v1)
86959
+ */
86960
+ type: ("string" | "number" | "boolean");
86961
+ /**
86962
+ * Value used when none is supplied
86963
+ */
86964
+ fallback?: string;
86965
+ /**
86966
+ * If true, an absent value renders as empty string
86967
+ */
86968
+ optional: boolean;
86969
+ }[];
86970
+ /**
86971
+ * When this revision first went live (ISO 8601 UTC); null for the open draft
86972
+ */
86973
+ publishedAt: (string | null);
86974
+ }[];
86975
+ export interface MailTemplateUnarchiveInput {
86976
+ /**
86977
+ * Template id to unarchive
86978
+ */
86979
+ id: string;
86980
+ }
86981
+ export interface MailTemplateUnarchiveOutput {
86982
+ /**
86983
+ * Template id
86984
+ */
86985
+ id: string;
86986
+ /**
86987
+ * HTML body; may contain {{ variable }} placeholders
86988
+ */
86989
+ html: string;
86990
+ /**
86991
+ * Human label for the template
86992
+ */
86993
+ name: string;
86994
+ /**
86995
+ * Plaintext body; null when none was supplied
86996
+ */
86997
+ text: (string | null);
86998
+ /**
86999
+ * Lifecycle status: published once a revision has gone live
87000
+ */
87001
+ status: ("draft" | "published");
87002
+ /**
87003
+ * Email subject; may contain {{ variable }} placeholders
87004
+ */
87005
+ subject: string;
87006
+ /**
87007
+ * When the template was created (ISO 8601 UTC)
87008
+ */
87009
+ createdAt: string;
87010
+ /**
87011
+ * When the template was last modified (ISO 8601 UTC)
87012
+ */
87013
+ updatedAt: string;
87014
+ /**
87015
+ * Declared variables of this template (at most 20)
87016
+ */
87017
+ variables: {
87018
+ /**
87019
+ * Placeholder identifier used as {{ name }}
87020
+ */
87021
+ name: string;
87022
+ /**
87023
+ * Declared type (metadata; rendered as string in v1)
87024
+ */
87025
+ type: ("string" | "number" | "boolean");
87026
+ /**
87027
+ * Value used when none is supplied
87028
+ */
87029
+ fallback?: string;
87030
+ /**
87031
+ * If true, an absent value renders as empty string
87032
+ */
87033
+ optional: boolean;
87034
+ }[];
87035
+ /**
87036
+ * When the template was archived (ISO 8601 UTC); null while it is listed normally. Archiving never stops a send
87037
+ */
87038
+ archivedAt: (string | null);
87039
+ /**
87040
+ * Revision number of the open, unpublished draft; null when there is none
87041
+ */
87042
+ draftRevision: (number | null);
87043
+ /**
87044
+ * Revision number a send renders; null until the template is first published
87045
+ */
87046
+ currentRevision: (number | null);
86630
87047
  }
86631
87048
  export interface MailTemplateUpdateInput {
86632
87049
  /**
@@ -90474,7 +90891,7 @@ export interface MailTemplateUpdateOutput {
90474
90891
  */
90475
90892
  text: (string | null);
90476
90893
  /**
90477
- * Lifecycle status: a draft is editable, a published template is not
90894
+ * Lifecycle status: published once a revision has gone live
90478
90895
  */
90479
90896
  status: ("draft" | "published");
90480
90897
  /**
@@ -90510,6 +90927,18 @@ export interface MailTemplateUpdateOutput {
90510
90927
  */
90511
90928
  optional: boolean;
90512
90929
  }[];
90930
+ /**
90931
+ * When the template was archived (ISO 8601 UTC); null while it is listed normally. Archiving never stops a send
90932
+ */
90933
+ archivedAt: (string | null);
90934
+ /**
90935
+ * Revision number of the open, unpublished draft; null when there is none
90936
+ */
90937
+ draftRevision: (number | null);
90938
+ /**
90939
+ * Revision number a send renders; null until the template is first published
90940
+ */
90941
+ currentRevision: (number | null);
90513
90942
  }
90514
90943
  export interface MailUsageGetInput {
90515
90944
  }
@@ -4811,6 +4811,19 @@ var bindings = {
4811
4811
  }
4812
4812
  },
4813
4813
  "template": {
4814
+ "archive": {
4815
+ "level": "write",
4816
+ "method": "POST",
4817
+ "operationKey": "mail_template_archive",
4818
+ "params": [
4819
+ {
4820
+ "in": "path",
4821
+ "name": "id"
4822
+ }
4823
+ ],
4824
+ "path": "/mail/templates/:id/archive",
4825
+ "readOnly": false
4826
+ },
4814
4827
  "create": {
4815
4828
  "level": "write",
4816
4829
  "method": "POST",
@@ -4870,6 +4883,12 @@ var bindings = {
4870
4883
  "level": "read",
4871
4884
  "method": "GET",
4872
4885
  "operationKey": "mail_template_list",
4886
+ "params": [
4887
+ {
4888
+ "in": "query",
4889
+ "name": "include_archived"
4890
+ }
4891
+ ],
4873
4892
  "path": "/mail/templates",
4874
4893
  "readOnly": true
4875
4894
  },
@@ -4886,6 +4905,36 @@ var bindings = {
4886
4905
  "path": "/mail/templates/:id/publish",
4887
4906
  "readOnly": false
4888
4907
  },
4908
+ "restore": {
4909
+ "level": "write",
4910
+ "method": "POST",
4911
+ "operationKey": "mail_template_restore",
4912
+ "params": [
4913
+ {
4914
+ "in": "path",
4915
+ "name": "id"
4916
+ },
4917
+ {
4918
+ "in": "path",
4919
+ "name": "revision"
4920
+ }
4921
+ ],
4922
+ "path": "/mail/templates/:id/revisions/:revision/restore",
4923
+ "readOnly": false
4924
+ },
4925
+ "unarchive": {
4926
+ "level": "write",
4927
+ "method": "POST",
4928
+ "operationKey": "mail_template_unarchive",
4929
+ "params": [
4930
+ {
4931
+ "in": "path",
4932
+ "name": "id"
4933
+ }
4934
+ ],
4935
+ "path": "/mail/templates/:id/unarchive",
4936
+ "readOnly": false
4937
+ },
4889
4938
  "update": {
4890
4939
  "level": "write",
4891
4940
  "method": "PATCH",
@@ -4920,6 +4969,53 @@ var bindings = {
4920
4969
  "readOnly": false
4921
4970
  }
4922
4971
  },
4972
+ "template-draft": {
4973
+ "discard": {
4974
+ "level": "write",
4975
+ "method": "DELETE",
4976
+ "operationKey": "mail_template_draft_discard",
4977
+ "params": [
4978
+ {
4979
+ "in": "path",
4980
+ "name": "id"
4981
+ }
4982
+ ],
4983
+ "path": "/mail/templates/:id/draft",
4984
+ "readOnly": false
4985
+ }
4986
+ },
4987
+ "template-revision": {
4988
+ "get": {
4989
+ "level": "read",
4990
+ "method": "GET",
4991
+ "operationKey": "mail_template_revision_get",
4992
+ "params": [
4993
+ {
4994
+ "in": "path",
4995
+ "name": "id"
4996
+ },
4997
+ {
4998
+ "in": "path",
4999
+ "name": "revision"
5000
+ }
5001
+ ],
5002
+ "path": "/mail/templates/:id/revisions/:revision",
5003
+ "readOnly": true
5004
+ },
5005
+ "list": {
5006
+ "level": "read",
5007
+ "method": "GET",
5008
+ "operationKey": "mail_template_revision_list",
5009
+ "params": [
5010
+ {
5011
+ "in": "path",
5012
+ "name": "id"
5013
+ }
5014
+ ],
5015
+ "path": "/mail/templates/:id/revisions",
5016
+ "readOnly": true
5017
+ }
5018
+ },
4923
5019
  "usage": {
4924
5020
  "get": {
4925
5021
  "level": "read",
@@ -11402,5 +11498,5 @@ var wsBindings = {
11402
11498
  };
11403
11499
 
11404
11500
  export { bindings, wsBindings };
11405
- //# sourceMappingURL=chunk-IWBH5QNX.js.map
11406
- //# sourceMappingURL=chunk-IWBH5QNX.js.map
11501
+ //# sourceMappingURL=chunk-ZH37YJ7E.js.map
11502
+ //# sourceMappingURL=chunk-ZH37YJ7E.js.map