@kard-financial/sdk 22.1.0 → 22.2.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.
Files changed (57) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/api/resources/organizations/resources/placements/types/BatchActivationPlacementAttributes.d.ts +14 -0
  3. package/dist/cjs/api/resources/organizations/resources/placements/types/BatchActivationPlacementAttributes.js +3 -0
  4. package/dist/cjs/api/resources/organizations/resources/placements/types/BatchActivationPlacementData.d.ts +9 -0
  5. package/dist/cjs/api/resources/organizations/resources/placements/types/BatchActivationPlacementData.js +3 -0
  6. package/dist/cjs/api/resources/organizations/resources/placements/types/BatchActivationSlot.d.ts +11 -0
  7. package/dist/cjs/api/resources/organizations/resources/placements/types/BatchActivationSlot.js +3 -0
  8. package/dist/cjs/api/resources/organizations/resources/placements/types/CreateBatchActivationAttributes.d.ts +22 -0
  9. package/dist/cjs/api/resources/organizations/resources/placements/types/CreateBatchActivationAttributes.js +3 -0
  10. package/dist/cjs/api/resources/organizations/resources/placements/types/CreateBatchActivationPlacementData.d.ts +8 -0
  11. package/dist/cjs/api/resources/organizations/resources/placements/types/CreateBatchActivationPlacementData.js +3 -0
  12. package/dist/cjs/api/resources/organizations/resources/placements/types/CreateBatchActivationSlot.d.ts +9 -0
  13. package/dist/cjs/api/resources/organizations/resources/placements/types/CreateBatchActivationSlot.js +3 -0
  14. package/dist/cjs/api/resources/organizations/resources/placements/types/CreatePlacementDataUnion.d.ts +4 -1
  15. package/dist/cjs/api/resources/organizations/resources/placements/types/PlacementFormatUnion.d.ts +20 -1
  16. package/dist/cjs/api/resources/organizations/resources/placements/types/PlacementTypeFilter.d.ts +1 -0
  17. package/dist/cjs/api/resources/organizations/resources/placements/types/PlacementTypeFilter.js +1 -0
  18. package/dist/cjs/api/resources/organizations/resources/placements/types/UpdateBatchActivationAttributes.d.ts +23 -0
  19. package/dist/cjs/api/resources/organizations/resources/placements/types/UpdateBatchActivationAttributes.js +3 -0
  20. package/dist/cjs/api/resources/organizations/resources/placements/types/UpdateBatchActivationPlacementData.d.ts +8 -0
  21. package/dist/cjs/api/resources/organizations/resources/placements/types/UpdateBatchActivationPlacementData.js +3 -0
  22. package/dist/cjs/api/resources/organizations/resources/placements/types/UpdateBatchActivationSlot.d.ts +11 -0
  23. package/dist/cjs/api/resources/organizations/resources/placements/types/UpdateBatchActivationSlot.js +3 -0
  24. package/dist/cjs/api/resources/organizations/resources/placements/types/UpdatePlacementDataUnion.d.ts +4 -1
  25. package/dist/cjs/api/resources/organizations/resources/placements/types/index.d.ts +9 -0
  26. package/dist/cjs/api/resources/organizations/resources/placements/types/index.js +9 -0
  27. package/dist/cjs/version.d.ts +1 -1
  28. package/dist/cjs/version.js +1 -1
  29. package/dist/esm/BaseClient.mjs +2 -2
  30. package/dist/esm/api/resources/organizations/resources/placements/types/BatchActivationPlacementAttributes.d.mts +14 -0
  31. package/dist/esm/api/resources/organizations/resources/placements/types/BatchActivationPlacementAttributes.mjs +2 -0
  32. package/dist/esm/api/resources/organizations/resources/placements/types/BatchActivationPlacementData.d.mts +9 -0
  33. package/dist/esm/api/resources/organizations/resources/placements/types/BatchActivationPlacementData.mjs +2 -0
  34. package/dist/esm/api/resources/organizations/resources/placements/types/BatchActivationSlot.d.mts +11 -0
  35. package/dist/esm/api/resources/organizations/resources/placements/types/BatchActivationSlot.mjs +2 -0
  36. package/dist/esm/api/resources/organizations/resources/placements/types/CreateBatchActivationAttributes.d.mts +22 -0
  37. package/dist/esm/api/resources/organizations/resources/placements/types/CreateBatchActivationAttributes.mjs +2 -0
  38. package/dist/esm/api/resources/organizations/resources/placements/types/CreateBatchActivationPlacementData.d.mts +8 -0
  39. package/dist/esm/api/resources/organizations/resources/placements/types/CreateBatchActivationPlacementData.mjs +2 -0
  40. package/dist/esm/api/resources/organizations/resources/placements/types/CreateBatchActivationSlot.d.mts +9 -0
  41. package/dist/esm/api/resources/organizations/resources/placements/types/CreateBatchActivationSlot.mjs +2 -0
  42. package/dist/esm/api/resources/organizations/resources/placements/types/CreatePlacementDataUnion.d.mts +4 -1
  43. package/dist/esm/api/resources/organizations/resources/placements/types/PlacementFormatUnion.d.mts +20 -1
  44. package/dist/esm/api/resources/organizations/resources/placements/types/PlacementTypeFilter.d.mts +1 -0
  45. package/dist/esm/api/resources/organizations/resources/placements/types/PlacementTypeFilter.mjs +1 -0
  46. package/dist/esm/api/resources/organizations/resources/placements/types/UpdateBatchActivationAttributes.d.mts +23 -0
  47. package/dist/esm/api/resources/organizations/resources/placements/types/UpdateBatchActivationAttributes.mjs +2 -0
  48. package/dist/esm/api/resources/organizations/resources/placements/types/UpdateBatchActivationPlacementData.d.mts +8 -0
  49. package/dist/esm/api/resources/organizations/resources/placements/types/UpdateBatchActivationPlacementData.mjs +2 -0
  50. package/dist/esm/api/resources/organizations/resources/placements/types/UpdateBatchActivationSlot.d.mts +11 -0
  51. package/dist/esm/api/resources/organizations/resources/placements/types/UpdateBatchActivationSlot.mjs +2 -0
  52. package/dist/esm/api/resources/organizations/resources/placements/types/UpdatePlacementDataUnion.d.mts +4 -1
  53. package/dist/esm/api/resources/organizations/resources/placements/types/index.d.mts +9 -0
  54. package/dist/esm/api/resources/organizations/resources/placements/types/index.mjs +9 -0
  55. package/dist/esm/version.d.mts +1 -1
  56. package/dist/esm/version.mjs +1 -1
  57. package/package.json +1 -1
@@ -43,8 +43,8 @@ function normalizeClientOptions(options) {
43
43
  const headers = (0, headers_js_1.mergeHeaders)({
44
44
  "X-Fern-Language": "JavaScript",
45
45
  "X-Fern-SDK-Name": "@kard-financial/sdk",
46
- "X-Fern-SDK-Version": "22.1.0",
47
- "User-Agent": "@kard-financial/sdk/22.1.0",
46
+ "X-Fern-SDK-Version": "22.2.0",
47
+ "User-Agent": "@kard-financial/sdk/22.2.0",
48
48
  "X-Fern-Runtime": core.RUNTIME.type,
49
49
  "X-Fern-Runtime-Version": core.RUNTIME.version,
50
50
  }, options === null || options === void 0 ? void 0 : options.headers);
@@ -0,0 +1,14 @@
1
+ import type * as KardApi from "../../../../../index.js";
2
+ /**
3
+ * Attributes for a batch-activation placement
4
+ */
5
+ export interface BatchActivationPlacementAttributes {
6
+ /** Name of the placement */
7
+ name: string;
8
+ /** ID of the organization this placement belongs to */
9
+ organizationId: string;
10
+ /** ISO-8601 duration that controls how often the activation cohort refreshes (e.g. "P7D" for weekly). */
11
+ refreshInterval: string;
12
+ /** Slots that make up the activation cohort */
13
+ slots: KardApi.organizations.BatchActivationSlot[];
14
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ import type * as KardApi from "../../../../../index.js";
2
+ /**
3
+ * Batch-activation placement resource data
4
+ */
5
+ export interface BatchActivationPlacementData {
6
+ /** Unique identifier of the placement (UUID v7) */
7
+ id: string;
8
+ attributes: KardApi.organizations.BatchActivationPlacementAttributes;
9
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
1
+ /**
2
+ * A slot within a batch-activation placement
3
+ */
4
+ export interface BatchActivationSlot {
5
+ /** Stable identifier for the slot within the placement */
6
+ slotId: string;
7
+ /** ID of the content strategy linked to this slot */
8
+ contentStrategyId: string;
9
+ /** Customer-defined alias for the slot, unique within the placement */
10
+ alias: string;
11
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,22 @@
1
+ import type * as KardApi from "../../../../../index.js";
2
+ /**
3
+ * Attributes for creating a batch-activation placement
4
+ *
5
+ * @example
6
+ * {
7
+ * name: "Weekly Cohort",
8
+ * refreshInterval: "P7D",
9
+ * slots: [{
10
+ * contentStrategyId: "01961e5a-f26f-7e44-ce5f-1ad7c9fb4e67",
11
+ * alias: "primary"
12
+ * }]
13
+ * }
14
+ */
15
+ export interface CreateBatchActivationAttributes {
16
+ /** Name of the placement */
17
+ name: string;
18
+ /** ISO-8601 duration controlling how often the activation cohort refreshes */
19
+ refreshInterval: string;
20
+ /** Slots that make up the activation cohort */
21
+ slots: KardApi.organizations.CreateBatchActivationSlot[];
22
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ import type * as KardApi from "../../../../../index.js";
2
+ /**
3
+ * Data for creating a batch-activation placement
4
+ */
5
+ export interface CreateBatchActivationPlacementData {
6
+ /** Batch-activation placement attributes for creation */
7
+ attributes: KardApi.organizations.CreateBatchActivationAttributes;
8
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ /**
2
+ * A slot in a batch-activation placement at creation time
3
+ */
4
+ export interface CreateBatchActivationSlot {
5
+ /** ID of the content strategy that fills this slot */
6
+ contentStrategyId: string;
7
+ /** Customer-defined alias for the slot, unique within the placement */
8
+ alias: string;
9
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -2,7 +2,7 @@ import type * as KardApi from "../../../../../index.js";
2
2
  /**
3
3
  * Discriminated union for creating a placement
4
4
  */
5
- export type CreatePlacementDataUnion = KardApi.organizations.CreatePlacementDataUnion.PlacementMainPage | KardApi.organizations.CreatePlacementDataUnion.PlacementPushNotification;
5
+ export type CreatePlacementDataUnion = KardApi.organizations.CreatePlacementDataUnion.PlacementMainPage | KardApi.organizations.CreatePlacementDataUnion.PlacementPushNotification | KardApi.organizations.CreatePlacementDataUnion.PlacementBatchActivation;
6
6
  export declare namespace CreatePlacementDataUnion {
7
7
  interface PlacementMainPage extends KardApi.organizations.CreateMainPagePlacementData {
8
8
  type: "placementMainPage";
@@ -10,4 +10,7 @@ export declare namespace CreatePlacementDataUnion {
10
10
  interface PlacementPushNotification extends KardApi.organizations.CreatePushNotificationPlacementData {
11
11
  type: "placementPushNotification";
12
12
  }
13
+ interface PlacementBatchActivation extends KardApi.organizations.CreateBatchActivationPlacementData {
14
+ type: "placementBatchActivation";
15
+ }
13
16
  }
@@ -26,8 +26,24 @@ import type * as KardApi from "../../../../../index.js";
26
26
  * }
27
27
  * }
28
28
  * }
29
+ *
30
+ * @example
31
+ * {
32
+ * type: "placementBatchActivation",
33
+ * id: "01961e5a-d94e-7c22-ac3f-f8b5a7e92c45",
34
+ * attributes: {
35
+ * name: "Weekly Cohort",
36
+ * organizationId: "org-123",
37
+ * refreshInterval: "P7D",
38
+ * slots: [{
39
+ * slotId: "01961e5a-e15f-7d33-bd4f-09c6b8fa3d56",
40
+ * contentStrategyId: "01961e5a-f26f-7e44-ce5f-1ad7c9fb4e67",
41
+ * alias: "primary"
42
+ * }]
43
+ * }
44
+ * }
29
45
  */
30
- export type PlacementFormatUnion = KardApi.organizations.PlacementFormatUnion.PlacementMainPage | KardApi.organizations.PlacementFormatUnion.PlacementPushNotification;
46
+ export type PlacementFormatUnion = KardApi.organizations.PlacementFormatUnion.PlacementMainPage | KardApi.organizations.PlacementFormatUnion.PlacementPushNotification | KardApi.organizations.PlacementFormatUnion.PlacementBatchActivation;
31
47
  export declare namespace PlacementFormatUnion {
32
48
  interface PlacementMainPage extends KardApi.organizations.MainPagePlacementData {
33
49
  type: "placementMainPage";
@@ -35,4 +51,7 @@ export declare namespace PlacementFormatUnion {
35
51
  interface PlacementPushNotification extends KardApi.organizations.PushNotificationPlacementData {
36
52
  type: "placementPushNotification";
37
53
  }
54
+ interface PlacementBatchActivation extends KardApi.organizations.BatchActivationPlacementData {
55
+ type: "placementBatchActivation";
56
+ }
38
57
  }
@@ -2,5 +2,6 @@
2
2
  export declare const PlacementTypeFilter: {
3
3
  readonly PlacementMainPage: "placementMainPage";
4
4
  readonly PlacementPushNotification: "placementPushNotification";
5
+ readonly PlacementBatchActivation: "placementBatchActivation";
5
6
  };
6
7
  export type PlacementTypeFilter = (typeof PlacementTypeFilter)[keyof typeof PlacementTypeFilter];
@@ -6,4 +6,5 @@ exports.PlacementTypeFilter = void 0;
6
6
  exports.PlacementTypeFilter = {
7
7
  PlacementMainPage: "placementMainPage",
8
8
  PlacementPushNotification: "placementPushNotification",
9
+ PlacementBatchActivation: "placementBatchActivation",
9
10
  };
@@ -0,0 +1,23 @@
1
+ import type * as KardApi from "../../../../../index.js";
2
+ /**
3
+ * Attributes for updating a batch-activation placement. All fields are required.
4
+ *
5
+ * @example
6
+ * {
7
+ * name: "Updated Cohort",
8
+ * refreshInterval: "P14D",
9
+ * slots: [{
10
+ * slotId: "01961e5a-e15f-7d33-bd4f-09c6b8fa3d56",
11
+ * contentStrategyId: "01961e5a-f26f-7e44-ce5f-1ad7c9fb4e67",
12
+ * alias: "primary"
13
+ * }]
14
+ * }
15
+ */
16
+ export interface UpdateBatchActivationAttributes {
17
+ /** Name of the placement */
18
+ name: string;
19
+ /** ISO-8601 duration controlling how often the activation cohort refreshes */
20
+ refreshInterval: string;
21
+ /** Slots that make up the activation cohort. Slots present in the prior state but absent from this list are removed. */
22
+ slots: KardApi.organizations.UpdateBatchActivationSlot[];
23
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ import type * as KardApi from "../../../../../index.js";
2
+ /**
3
+ * Data for updating a batch-activation placement
4
+ */
5
+ export interface UpdateBatchActivationPlacementData {
6
+ /** Batch-activation placement attributes for update */
7
+ attributes: KardApi.organizations.UpdateBatchActivationAttributes;
8
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
1
+ /**
2
+ * A slot in a batch-activation placement at update time
3
+ */
4
+ export interface UpdateBatchActivationSlot {
5
+ /** Existing slot identifier. Echo the value from a prior GET to keep the slot stable; omit to mint a fresh slot. If the contentStrategyId changes, the slotId is regenerated regardless of what was echoed. */
6
+ slotId?: string | undefined;
7
+ /** ID of the content strategy that fills this slot */
8
+ contentStrategyId: string;
9
+ /** Customer-defined alias for the slot, unique within the placement */
10
+ alias: string;
11
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -2,7 +2,7 @@ import type * as KardApi from "../../../../../index.js";
2
2
  /**
3
3
  * Discriminated union for updating a placement
4
4
  */
5
- export type UpdatePlacementDataUnion = KardApi.organizations.UpdatePlacementDataUnion.PlacementMainPage | KardApi.organizations.UpdatePlacementDataUnion.PlacementPushNotification;
5
+ export type UpdatePlacementDataUnion = KardApi.organizations.UpdatePlacementDataUnion.PlacementMainPage | KardApi.organizations.UpdatePlacementDataUnion.PlacementPushNotification | KardApi.organizations.UpdatePlacementDataUnion.PlacementBatchActivation;
6
6
  export declare namespace UpdatePlacementDataUnion {
7
7
  interface PlacementMainPage extends KardApi.organizations.UpdateMainPagePlacementData {
8
8
  type: "placementMainPage";
@@ -10,4 +10,7 @@ export declare namespace UpdatePlacementDataUnion {
10
10
  interface PlacementPushNotification extends KardApi.organizations.UpdatePushNotificationPlacementData {
11
11
  type: "placementPushNotification";
12
12
  }
13
+ interface PlacementBatchActivation extends KardApi.organizations.UpdateBatchActivationPlacementData {
14
+ type: "placementBatchActivation";
15
+ }
13
16
  }
@@ -1,5 +1,11 @@
1
+ export * from "./BatchActivationPlacementAttributes.js";
2
+ export * from "./BatchActivationPlacementData.js";
3
+ export * from "./BatchActivationSlot.js";
1
4
  export * from "./Cadence.js";
2
5
  export * from "./CadenceFrequency.js";
6
+ export * from "./CreateBatchActivationAttributes.js";
7
+ export * from "./CreateBatchActivationPlacementData.js";
8
+ export * from "./CreateBatchActivationSlot.js";
3
9
  export * from "./CreateMainPageAttributes.js";
4
10
  export * from "./CreateMainPagePlacementData.js";
5
11
  export * from "./CreatePlacementDataUnion.js";
@@ -15,6 +21,9 @@ export * from "./PlacementResource.js";
15
21
  export * from "./PlacementTypeFilter.js";
16
22
  export * from "./PushNotificationPlacementAttributes.js";
17
23
  export * from "./PushNotificationPlacementData.js";
24
+ export * from "./UpdateBatchActivationAttributes.js";
25
+ export * from "./UpdateBatchActivationPlacementData.js";
26
+ export * from "./UpdateBatchActivationSlot.js";
18
27
  export * from "./UpdateMainPageAttributes.js";
19
28
  export * from "./UpdateMainPagePlacementData.js";
20
29
  export * from "./UpdatePlacementDataUnion.js";
@@ -14,8 +14,14 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./BatchActivationPlacementAttributes.js"), exports);
18
+ __exportStar(require("./BatchActivationPlacementData.js"), exports);
19
+ __exportStar(require("./BatchActivationSlot.js"), exports);
17
20
  __exportStar(require("./Cadence.js"), exports);
18
21
  __exportStar(require("./CadenceFrequency.js"), exports);
22
+ __exportStar(require("./CreateBatchActivationAttributes.js"), exports);
23
+ __exportStar(require("./CreateBatchActivationPlacementData.js"), exports);
24
+ __exportStar(require("./CreateBatchActivationSlot.js"), exports);
19
25
  __exportStar(require("./CreateMainPageAttributes.js"), exports);
20
26
  __exportStar(require("./CreateMainPagePlacementData.js"), exports);
21
27
  __exportStar(require("./CreatePlacementDataUnion.js"), exports);
@@ -31,6 +37,9 @@ __exportStar(require("./PlacementResource.js"), exports);
31
37
  __exportStar(require("./PlacementTypeFilter.js"), exports);
32
38
  __exportStar(require("./PushNotificationPlacementAttributes.js"), exports);
33
39
  __exportStar(require("./PushNotificationPlacementData.js"), exports);
40
+ __exportStar(require("./UpdateBatchActivationAttributes.js"), exports);
41
+ __exportStar(require("./UpdateBatchActivationPlacementData.js"), exports);
42
+ __exportStar(require("./UpdateBatchActivationSlot.js"), exports);
34
43
  __exportStar(require("./UpdateMainPageAttributes.js"), exports);
35
44
  __exportStar(require("./UpdateMainPagePlacementData.js"), exports);
36
45
  __exportStar(require("./UpdatePlacementDataUnion.js"), exports);
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "22.1.0";
1
+ export declare const SDK_VERSION = "22.2.0";
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "22.1.0";
4
+ exports.SDK_VERSION = "22.2.0";
@@ -6,8 +6,8 @@ export function normalizeClientOptions(options) {
6
6
  const headers = mergeHeaders({
7
7
  "X-Fern-Language": "JavaScript",
8
8
  "X-Fern-SDK-Name": "@kard-financial/sdk",
9
- "X-Fern-SDK-Version": "22.1.0",
10
- "User-Agent": "@kard-financial/sdk/22.1.0",
9
+ "X-Fern-SDK-Version": "22.2.0",
10
+ "User-Agent": "@kard-financial/sdk/22.2.0",
11
11
  "X-Fern-Runtime": core.RUNTIME.type,
12
12
  "X-Fern-Runtime-Version": core.RUNTIME.version,
13
13
  }, options === null || options === void 0 ? void 0 : options.headers);
@@ -0,0 +1,14 @@
1
+ import type * as KardApi from "../../../../../index.mjs";
2
+ /**
3
+ * Attributes for a batch-activation placement
4
+ */
5
+ export interface BatchActivationPlacementAttributes {
6
+ /** Name of the placement */
7
+ name: string;
8
+ /** ID of the organization this placement belongs to */
9
+ organizationId: string;
10
+ /** ISO-8601 duration that controls how often the activation cohort refreshes (e.g. "P7D" for weekly). */
11
+ refreshInterval: string;
12
+ /** Slots that make up the activation cohort */
13
+ slots: KardApi.organizations.BatchActivationSlot[];
14
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,9 @@
1
+ import type * as KardApi from "../../../../../index.mjs";
2
+ /**
3
+ * Batch-activation placement resource data
4
+ */
5
+ export interface BatchActivationPlacementData {
6
+ /** Unique identifier of the placement (UUID v7) */
7
+ id: string;
8
+ attributes: KardApi.organizations.BatchActivationPlacementAttributes;
9
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,11 @@
1
+ /**
2
+ * A slot within a batch-activation placement
3
+ */
4
+ export interface BatchActivationSlot {
5
+ /** Stable identifier for the slot within the placement */
6
+ slotId: string;
7
+ /** ID of the content strategy linked to this slot */
8
+ contentStrategyId: string;
9
+ /** Customer-defined alias for the slot, unique within the placement */
10
+ alias: string;
11
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,22 @@
1
+ import type * as KardApi from "../../../../../index.mjs";
2
+ /**
3
+ * Attributes for creating a batch-activation placement
4
+ *
5
+ * @example
6
+ * {
7
+ * name: "Weekly Cohort",
8
+ * refreshInterval: "P7D",
9
+ * slots: [{
10
+ * contentStrategyId: "01961e5a-f26f-7e44-ce5f-1ad7c9fb4e67",
11
+ * alias: "primary"
12
+ * }]
13
+ * }
14
+ */
15
+ export interface CreateBatchActivationAttributes {
16
+ /** Name of the placement */
17
+ name: string;
18
+ /** ISO-8601 duration controlling how often the activation cohort refreshes */
19
+ refreshInterval: string;
20
+ /** Slots that make up the activation cohort */
21
+ slots: KardApi.organizations.CreateBatchActivationSlot[];
22
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,8 @@
1
+ import type * as KardApi from "../../../../../index.mjs";
2
+ /**
3
+ * Data for creating a batch-activation placement
4
+ */
5
+ export interface CreateBatchActivationPlacementData {
6
+ /** Batch-activation placement attributes for creation */
7
+ attributes: KardApi.organizations.CreateBatchActivationAttributes;
8
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,9 @@
1
+ /**
2
+ * A slot in a batch-activation placement at creation time
3
+ */
4
+ export interface CreateBatchActivationSlot {
5
+ /** ID of the content strategy that fills this slot */
6
+ contentStrategyId: string;
7
+ /** Customer-defined alias for the slot, unique within the placement */
8
+ alias: string;
9
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -2,7 +2,7 @@ import type * as KardApi from "../../../../../index.mjs";
2
2
  /**
3
3
  * Discriminated union for creating a placement
4
4
  */
5
- export type CreatePlacementDataUnion = KardApi.organizations.CreatePlacementDataUnion.PlacementMainPage | KardApi.organizations.CreatePlacementDataUnion.PlacementPushNotification;
5
+ export type CreatePlacementDataUnion = KardApi.organizations.CreatePlacementDataUnion.PlacementMainPage | KardApi.organizations.CreatePlacementDataUnion.PlacementPushNotification | KardApi.organizations.CreatePlacementDataUnion.PlacementBatchActivation;
6
6
  export declare namespace CreatePlacementDataUnion {
7
7
  interface PlacementMainPage extends KardApi.organizations.CreateMainPagePlacementData {
8
8
  type: "placementMainPage";
@@ -10,4 +10,7 @@ export declare namespace CreatePlacementDataUnion {
10
10
  interface PlacementPushNotification extends KardApi.organizations.CreatePushNotificationPlacementData {
11
11
  type: "placementPushNotification";
12
12
  }
13
+ interface PlacementBatchActivation extends KardApi.organizations.CreateBatchActivationPlacementData {
14
+ type: "placementBatchActivation";
15
+ }
13
16
  }
@@ -26,8 +26,24 @@ import type * as KardApi from "../../../../../index.mjs";
26
26
  * }
27
27
  * }
28
28
  * }
29
+ *
30
+ * @example
31
+ * {
32
+ * type: "placementBatchActivation",
33
+ * id: "01961e5a-d94e-7c22-ac3f-f8b5a7e92c45",
34
+ * attributes: {
35
+ * name: "Weekly Cohort",
36
+ * organizationId: "org-123",
37
+ * refreshInterval: "P7D",
38
+ * slots: [{
39
+ * slotId: "01961e5a-e15f-7d33-bd4f-09c6b8fa3d56",
40
+ * contentStrategyId: "01961e5a-f26f-7e44-ce5f-1ad7c9fb4e67",
41
+ * alias: "primary"
42
+ * }]
43
+ * }
44
+ * }
29
45
  */
30
- export type PlacementFormatUnion = KardApi.organizations.PlacementFormatUnion.PlacementMainPage | KardApi.organizations.PlacementFormatUnion.PlacementPushNotification;
46
+ export type PlacementFormatUnion = KardApi.organizations.PlacementFormatUnion.PlacementMainPage | KardApi.organizations.PlacementFormatUnion.PlacementPushNotification | KardApi.organizations.PlacementFormatUnion.PlacementBatchActivation;
31
47
  export declare namespace PlacementFormatUnion {
32
48
  interface PlacementMainPage extends KardApi.organizations.MainPagePlacementData {
33
49
  type: "placementMainPage";
@@ -35,4 +51,7 @@ export declare namespace PlacementFormatUnion {
35
51
  interface PlacementPushNotification extends KardApi.organizations.PushNotificationPlacementData {
36
52
  type: "placementPushNotification";
37
53
  }
54
+ interface PlacementBatchActivation extends KardApi.organizations.BatchActivationPlacementData {
55
+ type: "placementBatchActivation";
56
+ }
38
57
  }
@@ -2,5 +2,6 @@
2
2
  export declare const PlacementTypeFilter: {
3
3
  readonly PlacementMainPage: "placementMainPage";
4
4
  readonly PlacementPushNotification: "placementPushNotification";
5
+ readonly PlacementBatchActivation: "placementBatchActivation";
5
6
  };
6
7
  export type PlacementTypeFilter = (typeof PlacementTypeFilter)[keyof typeof PlacementTypeFilter];
@@ -3,4 +3,5 @@
3
3
  export const PlacementTypeFilter = {
4
4
  PlacementMainPage: "placementMainPage",
5
5
  PlacementPushNotification: "placementPushNotification",
6
+ PlacementBatchActivation: "placementBatchActivation",
6
7
  };
@@ -0,0 +1,23 @@
1
+ import type * as KardApi from "../../../../../index.mjs";
2
+ /**
3
+ * Attributes for updating a batch-activation placement. All fields are required.
4
+ *
5
+ * @example
6
+ * {
7
+ * name: "Updated Cohort",
8
+ * refreshInterval: "P14D",
9
+ * slots: [{
10
+ * slotId: "01961e5a-e15f-7d33-bd4f-09c6b8fa3d56",
11
+ * contentStrategyId: "01961e5a-f26f-7e44-ce5f-1ad7c9fb4e67",
12
+ * alias: "primary"
13
+ * }]
14
+ * }
15
+ */
16
+ export interface UpdateBatchActivationAttributes {
17
+ /** Name of the placement */
18
+ name: string;
19
+ /** ISO-8601 duration controlling how often the activation cohort refreshes */
20
+ refreshInterval: string;
21
+ /** Slots that make up the activation cohort. Slots present in the prior state but absent from this list are removed. */
22
+ slots: KardApi.organizations.UpdateBatchActivationSlot[];
23
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,8 @@
1
+ import type * as KardApi from "../../../../../index.mjs";
2
+ /**
3
+ * Data for updating a batch-activation placement
4
+ */
5
+ export interface UpdateBatchActivationPlacementData {
6
+ /** Batch-activation placement attributes for update */
7
+ attributes: KardApi.organizations.UpdateBatchActivationAttributes;
8
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,11 @@
1
+ /**
2
+ * A slot in a batch-activation placement at update time
3
+ */
4
+ export interface UpdateBatchActivationSlot {
5
+ /** Existing slot identifier. Echo the value from a prior GET to keep the slot stable; omit to mint a fresh slot. If the contentStrategyId changes, the slotId is regenerated regardless of what was echoed. */
6
+ slotId?: string | undefined;
7
+ /** ID of the content strategy that fills this slot */
8
+ contentStrategyId: string;
9
+ /** Customer-defined alias for the slot, unique within the placement */
10
+ alias: string;
11
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -2,7 +2,7 @@ import type * as KardApi from "../../../../../index.mjs";
2
2
  /**
3
3
  * Discriminated union for updating a placement
4
4
  */
5
- export type UpdatePlacementDataUnion = KardApi.organizations.UpdatePlacementDataUnion.PlacementMainPage | KardApi.organizations.UpdatePlacementDataUnion.PlacementPushNotification;
5
+ export type UpdatePlacementDataUnion = KardApi.organizations.UpdatePlacementDataUnion.PlacementMainPage | KardApi.organizations.UpdatePlacementDataUnion.PlacementPushNotification | KardApi.organizations.UpdatePlacementDataUnion.PlacementBatchActivation;
6
6
  export declare namespace UpdatePlacementDataUnion {
7
7
  interface PlacementMainPage extends KardApi.organizations.UpdateMainPagePlacementData {
8
8
  type: "placementMainPage";
@@ -10,4 +10,7 @@ export declare namespace UpdatePlacementDataUnion {
10
10
  interface PlacementPushNotification extends KardApi.organizations.UpdatePushNotificationPlacementData {
11
11
  type: "placementPushNotification";
12
12
  }
13
+ interface PlacementBatchActivation extends KardApi.organizations.UpdateBatchActivationPlacementData {
14
+ type: "placementBatchActivation";
15
+ }
13
16
  }
@@ -1,5 +1,11 @@
1
+ export * from "./BatchActivationPlacementAttributes.mjs";
2
+ export * from "./BatchActivationPlacementData.mjs";
3
+ export * from "./BatchActivationSlot.mjs";
1
4
  export * from "./Cadence.mjs";
2
5
  export * from "./CadenceFrequency.mjs";
6
+ export * from "./CreateBatchActivationAttributes.mjs";
7
+ export * from "./CreateBatchActivationPlacementData.mjs";
8
+ export * from "./CreateBatchActivationSlot.mjs";
3
9
  export * from "./CreateMainPageAttributes.mjs";
4
10
  export * from "./CreateMainPagePlacementData.mjs";
5
11
  export * from "./CreatePlacementDataUnion.mjs";
@@ -15,6 +21,9 @@ export * from "./PlacementResource.mjs";
15
21
  export * from "./PlacementTypeFilter.mjs";
16
22
  export * from "./PushNotificationPlacementAttributes.mjs";
17
23
  export * from "./PushNotificationPlacementData.mjs";
24
+ export * from "./UpdateBatchActivationAttributes.mjs";
25
+ export * from "./UpdateBatchActivationPlacementData.mjs";
26
+ export * from "./UpdateBatchActivationSlot.mjs";
18
27
  export * from "./UpdateMainPageAttributes.mjs";
19
28
  export * from "./UpdateMainPagePlacementData.mjs";
20
29
  export * from "./UpdatePlacementDataUnion.mjs";
@@ -1,5 +1,11 @@
1
+ export * from "./BatchActivationPlacementAttributes.mjs";
2
+ export * from "./BatchActivationPlacementData.mjs";
3
+ export * from "./BatchActivationSlot.mjs";
1
4
  export * from "./Cadence.mjs";
2
5
  export * from "./CadenceFrequency.mjs";
6
+ export * from "./CreateBatchActivationAttributes.mjs";
7
+ export * from "./CreateBatchActivationPlacementData.mjs";
8
+ export * from "./CreateBatchActivationSlot.mjs";
3
9
  export * from "./CreateMainPageAttributes.mjs";
4
10
  export * from "./CreateMainPagePlacementData.mjs";
5
11
  export * from "./CreatePlacementDataUnion.mjs";
@@ -15,6 +21,9 @@ export * from "./PlacementResource.mjs";
15
21
  export * from "./PlacementTypeFilter.mjs";
16
22
  export * from "./PushNotificationPlacementAttributes.mjs";
17
23
  export * from "./PushNotificationPlacementData.mjs";
24
+ export * from "./UpdateBatchActivationAttributes.mjs";
25
+ export * from "./UpdateBatchActivationPlacementData.mjs";
26
+ export * from "./UpdateBatchActivationSlot.mjs";
18
27
  export * from "./UpdateMainPageAttributes.mjs";
19
28
  export * from "./UpdateMainPagePlacementData.mjs";
20
29
  export * from "./UpdatePlacementDataUnion.mjs";
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "22.1.0";
1
+ export declare const SDK_VERSION = "22.2.0";
@@ -1 +1 @@
1
- export const SDK_VERSION = "22.1.0";
1
+ export const SDK_VERSION = "22.2.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kard-financial/sdk",
3
- "version": "22.1.0",
3
+ "version": "22.2.0",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",