sequenzy 2.1.2 → 2.1.4

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.
Files changed (169) hide show
  1. package/dist/cjs/api/resources/inApp/client/Client.d.ts +36 -0
  2. package/dist/cjs/api/resources/inApp/client/Client.js +138 -0
  3. package/dist/cjs/api/resources/inApp/client/requests/WriteInAppCopyRequest.d.ts +13 -0
  4. package/dist/cjs/api/resources/inApp/client/requests/WriteInAppCopyRequest.js +3 -0
  5. package/dist/cjs/api/resources/inApp/client/requests/index.d.ts +1 -0
  6. package/dist/cjs/api/resources/inApp/types/ListInAppTemplatesResponse.d.ts +5 -0
  7. package/dist/cjs/api/resources/inApp/types/ListInAppTemplatesResponse.js +3 -0
  8. package/dist/cjs/api/resources/inApp/types/ListInAppTemplatesResponseTemplatesItem.d.ts +9 -0
  9. package/dist/cjs/api/resources/inApp/types/ListInAppTemplatesResponseTemplatesItem.js +3 -0
  10. package/dist/cjs/api/resources/inApp/types/ListInAppTemplatesResponseTemplatesItemCategory.d.ts +7 -0
  11. package/dist/cjs/api/resources/inApp/types/ListInAppTemplatesResponseTemplatesItemCategory.js +10 -0
  12. package/dist/cjs/api/resources/inApp/types/WriteInAppCopyRequestFormat.d.ts +6 -0
  13. package/dist/cjs/api/resources/inApp/types/WriteInAppCopyRequestFormat.js +9 -0
  14. package/dist/cjs/api/resources/inApp/types/WriteInAppCopyRequestKind.d.ts +5 -0
  15. package/dist/cjs/api/resources/inApp/types/WriteInAppCopyRequestKind.js +8 -0
  16. package/dist/cjs/api/resources/inApp/types/WriteInAppCopyResponse.d.ts +5 -0
  17. package/dist/cjs/api/resources/inApp/types/WriteInAppCopyResponse.js +3 -0
  18. package/dist/cjs/api/resources/inApp/types/WriteInAppCopyResponseCopy.d.ts +7 -0
  19. package/dist/cjs/api/resources/inApp/types/WriteInAppCopyResponseCopy.js +3 -0
  20. package/dist/cjs/api/resources/inApp/types/WriteInAppCopyResponseCopyButtonsItem.d.ts +5 -0
  21. package/dist/cjs/api/resources/inApp/types/WriteInAppCopyResponseCopyButtonsItem.js +3 -0
  22. package/dist/cjs/api/resources/inApp/types/WriteInAppCopyResponseCopyButtonsItemAction.d.ts +5 -0
  23. package/dist/cjs/api/resources/inApp/types/WriteInAppCopyResponseCopyButtonsItemAction.js +8 -0
  24. package/dist/cjs/api/resources/inApp/types/index.d.ts +9 -0
  25. package/dist/cjs/api/resources/inApp/types/index.js +9 -0
  26. package/dist/cjs/api/resources/sequences/types/SimulateSequencesResponse.d.ts +1 -1
  27. package/dist/cjs/api/resources/sequences/types/SimulateSequencesResponseReadiness.d.ts +1 -1
  28. package/dist/cjs/api/resources/webTrackingKeys/client/Client.d.ts +2 -2
  29. package/dist/cjs/api/resources/webTrackingKeys/client/Client.js +2 -2
  30. package/dist/cjs/api/resources/webTrackingKeys/client/requests/CreateWebTrackingKeysRequest.d.ts +3 -1
  31. package/dist/cjs/api/resources/webTrackingKeys/client/requests/UpdateWebTrackingKeysRequest.d.ts +3 -1
  32. package/dist/cjs/api/types/Company.d.ts +1 -0
  33. package/dist/cjs/api/types/InAppMessage.d.ts +5 -1
  34. package/dist/cjs/api/types/InAppMessageImagePlacement.d.ts +6 -0
  35. package/dist/cjs/api/types/InAppMessageImagePlacement.js +9 -0
  36. package/dist/cjs/api/types/InAppMessagePosition.d.ts +2 -1
  37. package/dist/cjs/api/types/InAppMessagePosition.js +2 -1
  38. package/dist/cjs/api/types/PushDevice.d.ts +1 -0
  39. package/dist/cjs/api/types/PushDeviceSource.d.ts +2 -0
  40. package/dist/cjs/api/types/PushDeviceSource.js +2 -0
  41. package/dist/cjs/api/types/SequenceActionResponse.d.ts +1 -1
  42. package/dist/cjs/api/types/WebTrackingKey.d.ts +5 -3
  43. package/dist/cjs/api/types/index.d.ts +1 -0
  44. package/dist/cjs/api/types/index.js +1 -0
  45. package/dist/cjs/serialization/resources/inApp/client/requests/WriteInAppCopyRequest.d.ts +14 -0
  46. package/dist/cjs/serialization/resources/inApp/client/requests/WriteInAppCopyRequest.js +36 -0
  47. package/dist/cjs/serialization/resources/inApp/client/requests/index.d.ts +1 -0
  48. package/dist/cjs/serialization/resources/inApp/client/requests/index.js +3 -1
  49. package/dist/cjs/serialization/resources/inApp/types/ListInAppTemplatesResponse.d.ts +11 -0
  50. package/dist/cjs/serialization/resources/inApp/types/ListInAppTemplatesResponse.js +33 -0
  51. package/dist/cjs/serialization/resources/inApp/types/ListInAppTemplatesResponseTemplatesItem.d.ts +14 -0
  52. package/dist/cjs/serialization/resources/inApp/types/ListInAppTemplatesResponseTemplatesItem.js +36 -0
  53. package/dist/cjs/serialization/resources/inApp/types/ListInAppTemplatesResponseTemplatesItemCategory.d.ts +7 -0
  54. package/dist/cjs/serialization/resources/inApp/types/ListInAppTemplatesResponseTemplatesItemCategory.js +29 -0
  55. package/dist/cjs/serialization/resources/inApp/types/WriteInAppCopyRequestFormat.d.ts +7 -0
  56. package/dist/cjs/serialization/resources/inApp/types/WriteInAppCopyRequestFormat.js +29 -0
  57. package/dist/cjs/serialization/resources/inApp/types/WriteInAppCopyRequestKind.d.ts +7 -0
  58. package/dist/cjs/serialization/resources/inApp/types/WriteInAppCopyRequestKind.js +29 -0
  59. package/dist/cjs/serialization/resources/inApp/types/WriteInAppCopyResponse.d.ts +11 -0
  60. package/dist/cjs/serialization/resources/inApp/types/WriteInAppCopyResponse.js +33 -0
  61. package/dist/cjs/serialization/resources/inApp/types/WriteInAppCopyResponseCopy.d.ts +13 -0
  62. package/dist/cjs/serialization/resources/inApp/types/WriteInAppCopyResponseCopy.js +35 -0
  63. package/dist/cjs/serialization/resources/inApp/types/WriteInAppCopyResponseCopyButtonsItem.d.ts +11 -0
  64. package/dist/cjs/serialization/resources/inApp/types/WriteInAppCopyResponseCopyButtonsItem.js +33 -0
  65. package/dist/cjs/serialization/resources/inApp/types/WriteInAppCopyResponseCopyButtonsItemAction.d.ts +7 -0
  66. package/dist/cjs/serialization/resources/inApp/types/WriteInAppCopyResponseCopyButtonsItemAction.js +29 -0
  67. package/dist/cjs/serialization/resources/inApp/types/index.d.ts +9 -0
  68. package/dist/cjs/serialization/resources/inApp/types/index.js +9 -0
  69. package/dist/cjs/serialization/resources/webTrackingKeys/client/requests/CreateWebTrackingKeysRequest.d.ts +1 -0
  70. package/dist/cjs/serialization/resources/webTrackingKeys/client/requests/CreateWebTrackingKeysRequest.js +1 -0
  71. package/dist/cjs/serialization/resources/webTrackingKeys/client/requests/UpdateWebTrackingKeysRequest.d.ts +1 -0
  72. package/dist/cjs/serialization/resources/webTrackingKeys/client/requests/UpdateWebTrackingKeysRequest.js +1 -0
  73. package/dist/cjs/serialization/types/InAppMessage.d.ts +3 -0
  74. package/dist/cjs/serialization/types/InAppMessage.js +3 -0
  75. package/dist/cjs/serialization/types/InAppMessageImagePlacement.d.ts +7 -0
  76. package/dist/cjs/serialization/types/InAppMessageImagePlacement.js +29 -0
  77. package/dist/cjs/serialization/types/InAppMessagePosition.d.ts +1 -1
  78. package/dist/cjs/serialization/types/InAppMessagePosition.js +1 -1
  79. package/dist/cjs/serialization/types/PushDeviceSource.d.ts +1 -1
  80. package/dist/cjs/serialization/types/PushDeviceSource.js +1 -1
  81. package/dist/cjs/serialization/types/WebTrackingKey.d.ts +1 -0
  82. package/dist/cjs/serialization/types/WebTrackingKey.js +1 -0
  83. package/dist/cjs/serialization/types/index.d.ts +1 -0
  84. package/dist/cjs/serialization/types/index.js +1 -0
  85. package/dist/esm/api/resources/inApp/client/Client.d.ts +36 -0
  86. package/dist/esm/api/resources/inApp/client/Client.js +138 -0
  87. package/dist/esm/api/resources/inApp/client/requests/WriteInAppCopyRequest.d.ts +13 -0
  88. package/dist/esm/api/resources/inApp/client/requests/WriteInAppCopyRequest.js +2 -0
  89. package/dist/esm/api/resources/inApp/client/requests/index.d.ts +1 -0
  90. package/dist/esm/api/resources/inApp/types/ListInAppTemplatesResponse.d.ts +5 -0
  91. package/dist/esm/api/resources/inApp/types/ListInAppTemplatesResponse.js +2 -0
  92. package/dist/esm/api/resources/inApp/types/ListInAppTemplatesResponseTemplatesItem.d.ts +9 -0
  93. package/dist/esm/api/resources/inApp/types/ListInAppTemplatesResponseTemplatesItem.js +2 -0
  94. package/dist/esm/api/resources/inApp/types/ListInAppTemplatesResponseTemplatesItemCategory.d.ts +7 -0
  95. package/dist/esm/api/resources/inApp/types/ListInAppTemplatesResponseTemplatesItemCategory.js +7 -0
  96. package/dist/esm/api/resources/inApp/types/WriteInAppCopyRequestFormat.d.ts +6 -0
  97. package/dist/esm/api/resources/inApp/types/WriteInAppCopyRequestFormat.js +6 -0
  98. package/dist/esm/api/resources/inApp/types/WriteInAppCopyRequestKind.d.ts +5 -0
  99. package/dist/esm/api/resources/inApp/types/WriteInAppCopyRequestKind.js +5 -0
  100. package/dist/esm/api/resources/inApp/types/WriteInAppCopyResponse.d.ts +5 -0
  101. package/dist/esm/api/resources/inApp/types/WriteInAppCopyResponse.js +2 -0
  102. package/dist/esm/api/resources/inApp/types/WriteInAppCopyResponseCopy.d.ts +7 -0
  103. package/dist/esm/api/resources/inApp/types/WriteInAppCopyResponseCopy.js +2 -0
  104. package/dist/esm/api/resources/inApp/types/WriteInAppCopyResponseCopyButtonsItem.d.ts +5 -0
  105. package/dist/esm/api/resources/inApp/types/WriteInAppCopyResponseCopyButtonsItem.js +2 -0
  106. package/dist/esm/api/resources/inApp/types/WriteInAppCopyResponseCopyButtonsItemAction.d.ts +5 -0
  107. package/dist/esm/api/resources/inApp/types/WriteInAppCopyResponseCopyButtonsItemAction.js +5 -0
  108. package/dist/esm/api/resources/inApp/types/index.d.ts +9 -0
  109. package/dist/esm/api/resources/inApp/types/index.js +9 -0
  110. package/dist/esm/api/resources/sequences/types/SimulateSequencesResponse.d.ts +1 -1
  111. package/dist/esm/api/resources/sequences/types/SimulateSequencesResponseReadiness.d.ts +1 -1
  112. package/dist/esm/api/resources/webTrackingKeys/client/Client.d.ts +2 -2
  113. package/dist/esm/api/resources/webTrackingKeys/client/Client.js +2 -2
  114. package/dist/esm/api/resources/webTrackingKeys/client/requests/CreateWebTrackingKeysRequest.d.ts +3 -1
  115. package/dist/esm/api/resources/webTrackingKeys/client/requests/UpdateWebTrackingKeysRequest.d.ts +3 -1
  116. package/dist/esm/api/types/Company.d.ts +1 -0
  117. package/dist/esm/api/types/InAppMessage.d.ts +5 -1
  118. package/dist/esm/api/types/InAppMessageImagePlacement.d.ts +6 -0
  119. package/dist/esm/api/types/InAppMessageImagePlacement.js +6 -0
  120. package/dist/esm/api/types/InAppMessagePosition.d.ts +2 -1
  121. package/dist/esm/api/types/InAppMessagePosition.js +2 -1
  122. package/dist/esm/api/types/PushDevice.d.ts +1 -0
  123. package/dist/esm/api/types/PushDeviceSource.d.ts +2 -0
  124. package/dist/esm/api/types/PushDeviceSource.js +2 -0
  125. package/dist/esm/api/types/SequenceActionResponse.d.ts +1 -1
  126. package/dist/esm/api/types/WebTrackingKey.d.ts +5 -3
  127. package/dist/esm/api/types/index.d.ts +1 -0
  128. package/dist/esm/api/types/index.js +1 -0
  129. package/dist/esm/serialization/resources/inApp/client/requests/WriteInAppCopyRequest.d.ts +14 -0
  130. package/dist/esm/serialization/resources/inApp/client/requests/WriteInAppCopyRequest.js +10 -0
  131. package/dist/esm/serialization/resources/inApp/client/requests/index.d.ts +1 -0
  132. package/dist/esm/serialization/resources/inApp/client/requests/index.js +1 -0
  133. package/dist/esm/serialization/resources/inApp/types/ListInAppTemplatesResponse.d.ts +11 -0
  134. package/dist/esm/serialization/resources/inApp/types/ListInAppTemplatesResponse.js +7 -0
  135. package/dist/esm/serialization/resources/inApp/types/ListInAppTemplatesResponseTemplatesItem.d.ts +14 -0
  136. package/dist/esm/serialization/resources/inApp/types/ListInAppTemplatesResponseTemplatesItem.js +10 -0
  137. package/dist/esm/serialization/resources/inApp/types/ListInAppTemplatesResponseTemplatesItemCategory.d.ts +7 -0
  138. package/dist/esm/serialization/resources/inApp/types/ListInAppTemplatesResponseTemplatesItemCategory.js +3 -0
  139. package/dist/esm/serialization/resources/inApp/types/WriteInAppCopyRequestFormat.d.ts +7 -0
  140. package/dist/esm/serialization/resources/inApp/types/WriteInAppCopyRequestFormat.js +3 -0
  141. package/dist/esm/serialization/resources/inApp/types/WriteInAppCopyRequestKind.d.ts +7 -0
  142. package/dist/esm/serialization/resources/inApp/types/WriteInAppCopyRequestKind.js +3 -0
  143. package/dist/esm/serialization/resources/inApp/types/WriteInAppCopyResponse.d.ts +11 -0
  144. package/dist/esm/serialization/resources/inApp/types/WriteInAppCopyResponse.js +7 -0
  145. package/dist/esm/serialization/resources/inApp/types/WriteInAppCopyResponseCopy.d.ts +13 -0
  146. package/dist/esm/serialization/resources/inApp/types/WriteInAppCopyResponseCopy.js +9 -0
  147. package/dist/esm/serialization/resources/inApp/types/WriteInAppCopyResponseCopyButtonsItem.d.ts +11 -0
  148. package/dist/esm/serialization/resources/inApp/types/WriteInAppCopyResponseCopyButtonsItem.js +7 -0
  149. package/dist/esm/serialization/resources/inApp/types/WriteInAppCopyResponseCopyButtonsItemAction.d.ts +7 -0
  150. package/dist/esm/serialization/resources/inApp/types/WriteInAppCopyResponseCopyButtonsItemAction.js +3 -0
  151. package/dist/esm/serialization/resources/inApp/types/index.d.ts +9 -0
  152. package/dist/esm/serialization/resources/inApp/types/index.js +9 -0
  153. package/dist/esm/serialization/resources/webTrackingKeys/client/requests/CreateWebTrackingKeysRequest.d.ts +1 -0
  154. package/dist/esm/serialization/resources/webTrackingKeys/client/requests/CreateWebTrackingKeysRequest.js +1 -0
  155. package/dist/esm/serialization/resources/webTrackingKeys/client/requests/UpdateWebTrackingKeysRequest.d.ts +1 -0
  156. package/dist/esm/serialization/resources/webTrackingKeys/client/requests/UpdateWebTrackingKeysRequest.js +1 -0
  157. package/dist/esm/serialization/types/InAppMessage.d.ts +3 -0
  158. package/dist/esm/serialization/types/InAppMessage.js +3 -0
  159. package/dist/esm/serialization/types/InAppMessageImagePlacement.d.ts +7 -0
  160. package/dist/esm/serialization/types/InAppMessageImagePlacement.js +3 -0
  161. package/dist/esm/serialization/types/InAppMessagePosition.d.ts +1 -1
  162. package/dist/esm/serialization/types/InAppMessagePosition.js +1 -1
  163. package/dist/esm/serialization/types/PushDeviceSource.d.ts +1 -1
  164. package/dist/esm/serialization/types/PushDeviceSource.js +1 -1
  165. package/dist/esm/serialization/types/WebTrackingKey.d.ts +1 -0
  166. package/dist/esm/serialization/types/WebTrackingKey.js +1 -0
  167. package/dist/esm/serialization/types/index.d.ts +1 -0
  168. package/dist/esm/serialization/types/index.js +1 -0
  169. package/package.json +1 -1
@@ -1,6 +1,7 @@
1
1
  // This file was auto-generated by Fern from our API Definition.
2
- /** Banner position; null for other formats and cards. */
2
+ /** Banners: top or bottom. Modals: bottom (a sheet rising from the bottom edge) or center. Null for full screens and cards. */
3
3
  export const InAppMessagePosition = {
4
4
  Top: "top",
5
5
  Bottom: "bottom",
6
+ Center: "center",
6
7
  };
@@ -10,6 +10,7 @@ export interface PushDevice {
10
10
  locale?: string | null;
11
11
  osVersion?: string | null;
12
12
  platform?: Sequenzy.PushDevicePlatform;
13
+ /** web_sdk for browsers, mobile_sdk for devices the iOS, Android, React Native and Flutter SDKs registered, api for devices registered with a secret key. */
13
14
  source?: Sequenzy.PushDeviceSource;
14
15
  status?: Sequenzy.PushDeviceStatus;
15
16
  /** Linked contact, or null for anonymous browsers. */
@@ -1,5 +1,7 @@
1
+ /** web_sdk for browsers, mobile_sdk for devices the iOS, Android, React Native and Flutter SDKs registered, api for devices registered with a secret key. */
1
2
  export declare const PushDeviceSource: {
2
3
  readonly WebSdk: "web_sdk";
4
+ readonly MobileSdk: "mobile_sdk";
3
5
  readonly Api: "api";
4
6
  };
5
7
  export type PushDeviceSource = (typeof PushDeviceSource)[keyof typeof PushDeviceSource];
@@ -1,5 +1,7 @@
1
1
  // This file was auto-generated by Fern from our API Definition.
2
+ /** web_sdk for browsers, mobile_sdk for devices the iOS, Android, React Native and Flutter SDKs registered, api for devices registered with a secret key. */
2
3
  export const PushDeviceSource = {
3
4
  WebSdk: "web_sdk",
5
+ MobileSdk: "mobile_sdk",
4
6
  Api: "api",
5
7
  };
@@ -13,6 +13,6 @@ export interface SequenceActionResponse {
13
13
  sequenceId?: string;
14
14
  status?: Sequenzy.SequenceStatus;
15
15
  success?: boolean;
16
- /** Enable only. Non-blocking readiness warnings, such as empty branch paths or a `contact_added` trigger with no list, which enrolls every contact added to the company. Absent when there is nothing to report. */
16
+ /** Enable only. Non-blocking readiness warnings, such as empty branch paths, a `contact_added` trigger with no list, which enrolls every contact added to the company, or an email that uses `{{webhooks.KEY...}}` or `{{ai.KEY...}}` when no earlier step saves a result under that key, so those tags send empty. Absent when there is nothing to report. */
17
17
  warnings?: string[];
18
18
  }
@@ -1,8 +1,10 @@
1
1
  /**
2
- * A publishable key for the browser tracking SDK. The key ships in the customer's page source by design, so it is not a secret; it authorizes storefront customer events only and carries an origin allowlist instead of scopes.
2
+ * A publishable key for the browser tracking SDK and the mobile SDKs. The key ships in the customer's page source or app by design, so it is not a secret; it authorizes client events only and carries origin and app ID allowlists instead of scopes.
3
3
  */
4
4
  export interface WebTrackingKey {
5
- /** Normalized origins allowed to use this key. Empty means any origin. */
5
+ /** iOS bundle IDs and Android package names allowed to use this key from the mobile SDKs, matched case-insensitively against the x-sequenzy-app-id header on requests without an Origin header. A key with app IDs and no origins is rejected from browsers. */
6
+ allowedAppIds?: string[];
7
+ /** Normalized origins allowed to use this key from a browser. */
6
8
  allowedOrigins?: string[];
7
9
  createdAt?: Date;
8
10
  /** Ingest URL the SDK posts events to. */
@@ -17,7 +19,7 @@ export interface WebTrackingKey {
17
19
  name?: string;
18
20
  /** The publishable key, prefixed seq_pk_. */
19
21
  publicKey?: string;
20
- /** True when the allowlist is empty, so any site can send events with this key. */
22
+ /** True when both allowedOrigins and allowedAppIds are empty, so any site or app can send events with this key. */
21
23
  unrestricted?: boolean;
22
24
  updatedAt?: Date;
23
25
  /** Present only when the key is unrestricted. */
@@ -311,6 +311,7 @@ export * from "./InAppMessage.js";
311
311
  export * from "./InAppMessageButtonsItem.js";
312
312
  export * from "./InAppMessageButtonsItemAction.js";
313
313
  export * from "./InAppMessageFormat.js";
314
+ export * from "./InAppMessageImagePlacement.js";
314
315
  export * from "./InAppMessageKind.js";
315
316
  export * from "./InAppMessagePosition.js";
316
317
  export * from "./InAppStyle.js";
@@ -311,6 +311,7 @@ export * from "./InAppMessage.js";
311
311
  export * from "./InAppMessageButtonsItem.js";
312
312
  export * from "./InAppMessageButtonsItemAction.js";
313
313
  export * from "./InAppMessageFormat.js";
314
+ export * from "./InAppMessageImagePlacement.js";
314
315
  export * from "./InAppMessageKind.js";
315
316
  export * from "./InAppMessagePosition.js";
316
317
  export * from "./InAppStyle.js";
@@ -0,0 +1,14 @@
1
+ import type * as Sequenzy from "../../../../../api/index.js";
2
+ import * as core from "../../../../../core/index.js";
3
+ import type * as serializers from "../../../../index.js";
4
+ import { WriteInAppCopyRequestFormat } from "../../types/WriteInAppCopyRequestFormat.js";
5
+ import { WriteInAppCopyRequestKind } from "../../types/WriteInAppCopyRequestKind.js";
6
+ export declare const WriteInAppCopyRequest: core.serialization.Schema<serializers.WriteInAppCopyRequest.Raw, Sequenzy.WriteInAppCopyRequest>;
7
+ export declare namespace WriteInAppCopyRequest {
8
+ interface Raw {
9
+ brief: string;
10
+ format?: WriteInAppCopyRequestFormat.Raw | null;
11
+ hasImage?: boolean | null;
12
+ kind?: WriteInAppCopyRequestKind.Raw | null;
13
+ }
14
+ }
@@ -0,0 +1,10 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as core from "../../../../../core/index.js";
3
+ import { WriteInAppCopyRequestFormat } from "../../types/WriteInAppCopyRequestFormat.js";
4
+ import { WriteInAppCopyRequestKind } from "../../types/WriteInAppCopyRequestKind.js";
5
+ export const WriteInAppCopyRequest = core.serialization.object({
6
+ brief: core.serialization.string(),
7
+ format: WriteInAppCopyRequestFormat.optional(),
8
+ hasImage: core.serialization.boolean().optional(),
9
+ kind: WriteInAppCopyRequestKind.optional(),
10
+ });
@@ -1 +1,2 @@
1
1
  export { RecordInAppEventRequest } from "./RecordInAppEventRequest.js";
2
+ export { WriteInAppCopyRequest } from "./WriteInAppCopyRequest.js";
@@ -1 +1,2 @@
1
1
  export { RecordInAppEventRequest } from "./RecordInAppEventRequest.js";
2
+ export { WriteInAppCopyRequest } from "./WriteInAppCopyRequest.js";
@@ -0,0 +1,11 @@
1
+ import type * as Sequenzy from "../../../../api/index.js";
2
+ import * as core from "../../../../core/index.js";
3
+ import type * as serializers from "../../../index.js";
4
+ import { ListInAppTemplatesResponseTemplatesItem } from "./ListInAppTemplatesResponseTemplatesItem.js";
5
+ export declare const ListInAppTemplatesResponse: core.serialization.ObjectSchema<serializers.ListInAppTemplatesResponse.Raw, Sequenzy.ListInAppTemplatesResponse>;
6
+ export declare namespace ListInAppTemplatesResponse {
7
+ interface Raw {
8
+ success?: boolean | null;
9
+ templates?: ListInAppTemplatesResponseTemplatesItem.Raw[] | null;
10
+ }
11
+ }
@@ -0,0 +1,7 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as core from "../../../../core/index.js";
3
+ import { ListInAppTemplatesResponseTemplatesItem } from "./ListInAppTemplatesResponseTemplatesItem.js";
4
+ export const ListInAppTemplatesResponse = core.serialization.object({
5
+ success: core.serialization.boolean().optional(),
6
+ templates: core.serialization.list(ListInAppTemplatesResponseTemplatesItem).optional(),
7
+ });
@@ -0,0 +1,14 @@
1
+ import type * as Sequenzy from "../../../../api/index.js";
2
+ import * as core from "../../../../core/index.js";
3
+ import type * as serializers from "../../../index.js";
4
+ import { ListInAppTemplatesResponseTemplatesItemCategory } from "./ListInAppTemplatesResponseTemplatesItemCategory.js";
5
+ export declare const ListInAppTemplatesResponseTemplatesItem: core.serialization.ObjectSchema<serializers.ListInAppTemplatesResponseTemplatesItem.Raw, Sequenzy.ListInAppTemplatesResponseTemplatesItem>;
6
+ export declare namespace ListInAppTemplatesResponseTemplatesItem {
7
+ interface Raw {
8
+ category?: ListInAppTemplatesResponseTemplatesItemCategory.Raw | null;
9
+ config?: Record<string, unknown> | null;
10
+ description?: string | null;
11
+ id?: string | null;
12
+ name?: string | null;
13
+ }
14
+ }
@@ -0,0 +1,10 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as core from "../../../../core/index.js";
3
+ import { ListInAppTemplatesResponseTemplatesItemCategory } from "./ListInAppTemplatesResponseTemplatesItemCategory.js";
4
+ export const ListInAppTemplatesResponseTemplatesItem = core.serialization.object({
5
+ category: ListInAppTemplatesResponseTemplatesItemCategory.optional(),
6
+ config: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
7
+ description: core.serialization.string().optional(),
8
+ id: core.serialization.string().optional(),
9
+ name: core.serialization.string().optional(),
10
+ });
@@ -0,0 +1,7 @@
1
+ import type * as Sequenzy from "../../../../api/index.js";
2
+ import * as core from "../../../../core/index.js";
3
+ import type * as serializers from "../../../index.js";
4
+ export declare const ListInAppTemplatesResponseTemplatesItemCategory: core.serialization.Schema<serializers.ListInAppTemplatesResponseTemplatesItemCategory.Raw, Sequenzy.ListInAppTemplatesResponseTemplatesItemCategory>;
5
+ export declare namespace ListInAppTemplatesResponseTemplatesItemCategory {
6
+ type Raw = "Conversion" | "Onboarding" | "Announcement" | "Engagement";
7
+ }
@@ -0,0 +1,3 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as core from "../../../../core/index.js";
3
+ export const ListInAppTemplatesResponseTemplatesItemCategory = core.serialization.enum_(["Conversion", "Onboarding", "Announcement", "Engagement"]);
@@ -0,0 +1,7 @@
1
+ import type * as Sequenzy from "../../../../api/index.js";
2
+ import * as core from "../../../../core/index.js";
3
+ import type * as serializers from "../../../index.js";
4
+ export declare const WriteInAppCopyRequestFormat: core.serialization.Schema<serializers.WriteInAppCopyRequestFormat.Raw, Sequenzy.WriteInAppCopyRequestFormat>;
5
+ export declare namespace WriteInAppCopyRequestFormat {
6
+ type Raw = "modal" | "banner" | "fullscreen";
7
+ }
@@ -0,0 +1,3 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as core from "../../../../core/index.js";
3
+ export const WriteInAppCopyRequestFormat = core.serialization.enum_(["modal", "banner", "fullscreen"]);
@@ -0,0 +1,7 @@
1
+ import type * as Sequenzy from "../../../../api/index.js";
2
+ import * as core from "../../../../core/index.js";
3
+ import type * as serializers from "../../../index.js";
4
+ export declare const WriteInAppCopyRequestKind: core.serialization.Schema<serializers.WriteInAppCopyRequestKind.Raw, Sequenzy.WriteInAppCopyRequestKind>;
5
+ export declare namespace WriteInAppCopyRequestKind {
6
+ type Raw = "message" | "card";
7
+ }
@@ -0,0 +1,3 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as core from "../../../../core/index.js";
3
+ export const WriteInAppCopyRequestKind = core.serialization.enum_(["message", "card"]);
@@ -0,0 +1,11 @@
1
+ import type * as Sequenzy from "../../../../api/index.js";
2
+ import * as core from "../../../../core/index.js";
3
+ import type * as serializers from "../../../index.js";
4
+ import { WriteInAppCopyResponseCopy } from "./WriteInAppCopyResponseCopy.js";
5
+ export declare const WriteInAppCopyResponse: core.serialization.ObjectSchema<serializers.WriteInAppCopyResponse.Raw, Sequenzy.WriteInAppCopyResponse>;
6
+ export declare namespace WriteInAppCopyResponse {
7
+ interface Raw {
8
+ copy?: WriteInAppCopyResponseCopy.Raw | null;
9
+ success?: boolean | null;
10
+ }
11
+ }
@@ -0,0 +1,7 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as core from "../../../../core/index.js";
3
+ import { WriteInAppCopyResponseCopy } from "./WriteInAppCopyResponseCopy.js";
4
+ export const WriteInAppCopyResponse = core.serialization.object({
5
+ copy: WriteInAppCopyResponseCopy.optional(),
6
+ success: core.serialization.boolean().optional(),
7
+ });
@@ -0,0 +1,13 @@
1
+ import type * as Sequenzy from "../../../../api/index.js";
2
+ import * as core from "../../../../core/index.js";
3
+ import type * as serializers from "../../../index.js";
4
+ import { WriteInAppCopyResponseCopyButtonsItem } from "./WriteInAppCopyResponseCopyButtonsItem.js";
5
+ export declare const WriteInAppCopyResponseCopy: core.serialization.ObjectSchema<serializers.WriteInAppCopyResponseCopy.Raw, Sequenzy.WriteInAppCopyResponseCopy>;
6
+ export declare namespace WriteInAppCopyResponseCopy {
7
+ interface Raw {
8
+ body?: string | null;
9
+ buttons?: WriteInAppCopyResponseCopyButtonsItem.Raw[] | null;
10
+ eyebrow?: string | null;
11
+ title?: string | null;
12
+ }
13
+ }
@@ -0,0 +1,9 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as core from "../../../../core/index.js";
3
+ import { WriteInAppCopyResponseCopyButtonsItem } from "./WriteInAppCopyResponseCopyButtonsItem.js";
4
+ export const WriteInAppCopyResponseCopy = core.serialization.object({
5
+ body: core.serialization.string().optional(),
6
+ buttons: core.serialization.list(WriteInAppCopyResponseCopyButtonsItem).optional(),
7
+ eyebrow: core.serialization.string().optional(),
8
+ title: core.serialization.string().optional(),
9
+ });
@@ -0,0 +1,11 @@
1
+ import type * as Sequenzy from "../../../../api/index.js";
2
+ import * as core from "../../../../core/index.js";
3
+ import type * as serializers from "../../../index.js";
4
+ import { WriteInAppCopyResponseCopyButtonsItemAction } from "./WriteInAppCopyResponseCopyButtonsItemAction.js";
5
+ export declare const WriteInAppCopyResponseCopyButtonsItem: core.serialization.ObjectSchema<serializers.WriteInAppCopyResponseCopyButtonsItem.Raw, Sequenzy.WriteInAppCopyResponseCopyButtonsItem>;
6
+ export declare namespace WriteInAppCopyResponseCopyButtonsItem {
7
+ interface Raw {
8
+ action?: WriteInAppCopyResponseCopyButtonsItemAction.Raw | null;
9
+ label?: string | null;
10
+ }
11
+ }
@@ -0,0 +1,7 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as core from "../../../../core/index.js";
3
+ import { WriteInAppCopyResponseCopyButtonsItemAction } from "./WriteInAppCopyResponseCopyButtonsItemAction.js";
4
+ export const WriteInAppCopyResponseCopyButtonsItem = core.serialization.object({
5
+ action: WriteInAppCopyResponseCopyButtonsItemAction.optional(),
6
+ label: core.serialization.string().optional(),
7
+ });
@@ -0,0 +1,7 @@
1
+ import type * as Sequenzy from "../../../../api/index.js";
2
+ import * as core from "../../../../core/index.js";
3
+ import type * as serializers from "../../../index.js";
4
+ export declare const WriteInAppCopyResponseCopyButtonsItemAction: core.serialization.Schema<serializers.WriteInAppCopyResponseCopyButtonsItemAction.Raw, Sequenzy.WriteInAppCopyResponseCopyButtonsItemAction>;
5
+ export declare namespace WriteInAppCopyResponseCopyButtonsItemAction {
6
+ type Raw = "open_url" | "dismiss";
7
+ }
@@ -0,0 +1,3 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as core from "../../../../core/index.js";
3
+ export const WriteInAppCopyResponseCopyButtonsItemAction = core.serialization.enum_(["open_url", "dismiss"]);
@@ -5,5 +5,14 @@ export * from "./ListInAppMessagesRequestKind.js";
5
5
  export * from "./ListInAppMessagesRequestStatus.js";
6
6
  export * from "./ListInAppMessagesResponse.js";
7
7
  export * from "./ListInAppMessagesResponseStatus.js";
8
+ export * from "./ListInAppTemplatesResponse.js";
9
+ export * from "./ListInAppTemplatesResponseTemplatesItem.js";
10
+ export * from "./ListInAppTemplatesResponseTemplatesItemCategory.js";
8
11
  export * from "./RecordInAppEventRequestType.js";
9
12
  export * from "./RecordInAppEventResponse.js";
13
+ export * from "./WriteInAppCopyRequestFormat.js";
14
+ export * from "./WriteInAppCopyRequestKind.js";
15
+ export * from "./WriteInAppCopyResponse.js";
16
+ export * from "./WriteInAppCopyResponseCopy.js";
17
+ export * from "./WriteInAppCopyResponseCopyButtonsItem.js";
18
+ export * from "./WriteInAppCopyResponseCopyButtonsItemAction.js";
@@ -5,5 +5,14 @@ export * from "./ListInAppMessagesRequestKind.js";
5
5
  export * from "./ListInAppMessagesRequestStatus.js";
6
6
  export * from "./ListInAppMessagesResponse.js";
7
7
  export * from "./ListInAppMessagesResponseStatus.js";
8
+ export * from "./ListInAppTemplatesResponse.js";
9
+ export * from "./ListInAppTemplatesResponseTemplatesItem.js";
10
+ export * from "./ListInAppTemplatesResponseTemplatesItemCategory.js";
8
11
  export * from "./RecordInAppEventRequestType.js";
9
12
  export * from "./RecordInAppEventResponse.js";
13
+ export * from "./WriteInAppCopyRequestFormat.js";
14
+ export * from "./WriteInAppCopyRequestKind.js";
15
+ export * from "./WriteInAppCopyResponse.js";
16
+ export * from "./WriteInAppCopyResponseCopy.js";
17
+ export * from "./WriteInAppCopyResponseCopyButtonsItem.js";
18
+ export * from "./WriteInAppCopyResponseCopyButtonsItemAction.js";
@@ -4,6 +4,7 @@ import type * as serializers from "../../../../index.js";
4
4
  export declare const CreateWebTrackingKeysRequest: core.serialization.Schema<serializers.CreateWebTrackingKeysRequest.Raw, Sequenzy.CreateWebTrackingKeysRequest>;
5
5
  export declare namespace CreateWebTrackingKeysRequest {
6
6
  interface Raw {
7
+ allowedAppIds?: string[] | null;
7
8
  allowedOrigins?: string[] | null;
8
9
  name: string;
9
10
  }
@@ -1,6 +1,7 @@
1
1
  // This file was auto-generated by Fern from our API Definition.
2
2
  import * as core from "../../../../../core/index.js";
3
3
  export const CreateWebTrackingKeysRequest = core.serialization.object({
4
+ allowedAppIds: core.serialization.list(core.serialization.string()).optional(),
4
5
  allowedOrigins: core.serialization.list(core.serialization.string()).optional(),
5
6
  name: core.serialization.string(),
6
7
  });
@@ -4,6 +4,7 @@ import type * as serializers from "../../../../index.js";
4
4
  export declare const UpdateWebTrackingKeysRequest: core.serialization.Schema<serializers.UpdateWebTrackingKeysRequest.Raw, Omit<Sequenzy.UpdateWebTrackingKeysRequest, "id">>;
5
5
  export declare namespace UpdateWebTrackingKeysRequest {
6
6
  interface Raw {
7
+ allowedAppIds?: string[] | null;
7
8
  allowedOrigins?: string[] | null;
8
9
  isActive?: boolean | null;
9
10
  name?: string | null;
@@ -1,6 +1,7 @@
1
1
  // This file was auto-generated by Fern from our API Definition.
2
2
  import * as core from "../../../../../core/index.js";
3
3
  export const UpdateWebTrackingKeysRequest = core.serialization.object({
4
+ allowedAppIds: core.serialization.list(core.serialization.string()).optional(),
4
5
  allowedOrigins: core.serialization.list(core.serialization.string()).optional(),
5
6
  isActive: core.serialization.boolean().optional(),
6
7
  name: core.serialization.string().optional(),
@@ -3,6 +3,7 @@ import * as core from "../../core/index.js";
3
3
  import type * as serializers from "../index.js";
4
4
  import { InAppMessageButtonsItem } from "./InAppMessageButtonsItem.js";
5
5
  import { InAppMessageFormat } from "./InAppMessageFormat.js";
6
+ import { InAppMessageImagePlacement } from "./InAppMessageImagePlacement.js";
6
7
  import { InAppMessageKind } from "./InAppMessageKind.js";
7
8
  import { InAppMessagePosition } from "./InAppMessagePosition.js";
8
9
  import { InAppStyle } from "./InAppStyle.js";
@@ -18,8 +19,10 @@ export declare namespace InAppMessage {
18
19
  dismissedAt?: (string | null | undefined) | null;
19
20
  displayedAt?: (string | null | undefined) | null;
20
21
  expiresAt?: (string | null | undefined) | null;
22
+ eyebrow?: string | null;
21
23
  format?: (InAppMessageFormat.Raw | null | undefined) | null;
22
24
  id?: string | null;
25
+ imagePlacement?: (InAppMessageImagePlacement.Raw | null | undefined) | null;
23
26
  imageUrl?: (string | null | undefined) | null;
24
27
  kind?: InAppMessageKind.Raw | null;
25
28
  pinned?: boolean | null;
@@ -2,6 +2,7 @@
2
2
  import * as core from "../../core/index.js";
3
3
  import { InAppMessageButtonsItem } from "./InAppMessageButtonsItem.js";
4
4
  import { InAppMessageFormat } from "./InAppMessageFormat.js";
5
+ import { InAppMessageImagePlacement } from "./InAppMessageImagePlacement.js";
5
6
  import { InAppMessageKind } from "./InAppMessageKind.js";
6
7
  import { InAppMessagePosition } from "./InAppMessagePosition.js";
7
8
  import { InAppStyle } from "./InAppStyle.js";
@@ -15,8 +16,10 @@ export const InAppMessage = core.serialization.object({
15
16
  dismissedAt: core.serialization.date().optionalNullable(),
16
17
  displayedAt: core.serialization.date().optionalNullable(),
17
18
  expiresAt: core.serialization.date().optionalNullable(),
19
+ eyebrow: core.serialization.string().optional(),
18
20
  format: InAppMessageFormat.optionalNullable(),
19
21
  id: core.serialization.string().optional(),
22
+ imagePlacement: InAppMessageImagePlacement.optionalNullable(),
20
23
  imageUrl: core.serialization.string().optionalNullable(),
21
24
  kind: InAppMessageKind.optional(),
22
25
  pinned: core.serialization.boolean().optional(),
@@ -0,0 +1,7 @@
1
+ import type * as Sequenzy from "../../api/index.js";
2
+ import * as core from "../../core/index.js";
3
+ import type * as serializers from "../index.js";
4
+ export declare const InAppMessageImagePlacement: core.serialization.Schema<serializers.InAppMessageImagePlacement.Raw, Sequenzy.InAppMessageImagePlacement>;
5
+ export declare namespace InAppMessageImagePlacement {
6
+ type Raw = "top" | "background";
7
+ }
@@ -0,0 +1,3 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as core from "../../core/index.js";
3
+ export const InAppMessageImagePlacement = core.serialization.enum_(["top", "background"]);
@@ -3,5 +3,5 @@ import * as core from "../../core/index.js";
3
3
  import type * as serializers from "../index.js";
4
4
  export declare const InAppMessagePosition: core.serialization.Schema<serializers.InAppMessagePosition.Raw, Sequenzy.InAppMessagePosition>;
5
5
  export declare namespace InAppMessagePosition {
6
- type Raw = "top" | "bottom";
6
+ type Raw = "top" | "bottom" | "center";
7
7
  }
@@ -1,3 +1,3 @@
1
1
  // This file was auto-generated by Fern from our API Definition.
2
2
  import * as core from "../../core/index.js";
3
- export const InAppMessagePosition = core.serialization.enum_(["top", "bottom"]);
3
+ export const InAppMessagePosition = core.serialization.enum_(["top", "bottom", "center"]);
@@ -3,5 +3,5 @@ import * as core from "../../core/index.js";
3
3
  import type * as serializers from "../index.js";
4
4
  export declare const PushDeviceSource: core.serialization.Schema<serializers.PushDeviceSource.Raw, Sequenzy.PushDeviceSource>;
5
5
  export declare namespace PushDeviceSource {
6
- type Raw = "web_sdk" | "api";
6
+ type Raw = "web_sdk" | "mobile_sdk" | "api";
7
7
  }
@@ -1,3 +1,3 @@
1
1
  // This file was auto-generated by Fern from our API Definition.
2
2
  import * as core from "../../core/index.js";
3
- export const PushDeviceSource = core.serialization.enum_(["web_sdk", "api"]);
3
+ export const PushDeviceSource = core.serialization.enum_(["web_sdk", "mobile_sdk", "api"]);
@@ -4,6 +4,7 @@ import type * as serializers from "../index.js";
4
4
  export declare const WebTrackingKey: core.serialization.ObjectSchema<serializers.WebTrackingKey.Raw, Sequenzy.WebTrackingKey>;
5
5
  export declare namespace WebTrackingKey {
6
6
  interface Raw {
7
+ allowedAppIds?: string[] | null;
7
8
  allowedOrigins?: string[] | null;
8
9
  createdAt?: string | null;
9
10
  endpoint?: string | null;
@@ -1,6 +1,7 @@
1
1
  // This file was auto-generated by Fern from our API Definition.
2
2
  import * as core from "../../core/index.js";
3
3
  export const WebTrackingKey = core.serialization.object({
4
+ allowedAppIds: core.serialization.list(core.serialization.string()).optional(),
4
5
  allowedOrigins: core.serialization.list(core.serialization.string()).optional(),
5
6
  createdAt: core.serialization.date().optional(),
6
7
  endpoint: core.serialization.string().optional(),
@@ -311,6 +311,7 @@ export * from "./InAppMessage.js";
311
311
  export * from "./InAppMessageButtonsItem.js";
312
312
  export * from "./InAppMessageButtonsItemAction.js";
313
313
  export * from "./InAppMessageFormat.js";
314
+ export * from "./InAppMessageImagePlacement.js";
314
315
  export * from "./InAppMessageKind.js";
315
316
  export * from "./InAppMessagePosition.js";
316
317
  export * from "./InAppStyle.js";
@@ -311,6 +311,7 @@ export * from "./InAppMessage.js";
311
311
  export * from "./InAppMessageButtonsItem.js";
312
312
  export * from "./InAppMessageButtonsItemAction.js";
313
313
  export * from "./InAppMessageFormat.js";
314
+ export * from "./InAppMessageImagePlacement.js";
314
315
  export * from "./InAppMessageKind.js";
315
316
  export * from "./InAppMessagePosition.js";
316
317
  export * from "./InAppStyle.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sequenzy",
3
- "version": "2.1.2",
3
+ "version": "2.1.4",
4
4
  "description": "Official TypeScript SDK for the Sequenzy API",
5
5
  "license": "MIT",
6
6
  "homepage": "https://docs.sequenzy.com",