@kard-financial/sdk 24.1.0 → 25.0.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 (83) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/api/resources/organizations/resources/placements/client/requests/GetPlacementRequest.d.ts +1 -1
  3. package/dist/cjs/api/resources/organizations/resources/placements/client/requests/ListPlacementsRequest.d.ts +1 -1
  4. package/dist/cjs/api/resources/organizations/resources/placements/types/BatchActivationPlacementAttributes.d.ts +1 -4
  5. package/dist/cjs/api/resources/organizations/resources/placements/types/BatchActivationPlacementData.d.ts +2 -0
  6. package/dist/cjs/api/resources/organizations/resources/placements/types/BatchActivationPlacementRelationships.d.ts +8 -0
  7. package/dist/cjs/api/resources/organizations/resources/placements/types/BatchActivationSlotAttributes.d.ts +9 -0
  8. package/dist/cjs/api/resources/organizations/resources/placements/types/BatchActivationSlotAttributes.js +3 -0
  9. package/dist/cjs/api/resources/organizations/resources/placements/types/BatchActivationSlotInclusion.d.ts +9 -0
  10. package/dist/cjs/api/resources/organizations/resources/placements/types/BatchActivationSlotInclusion.js +3 -0
  11. package/dist/cjs/api/resources/organizations/resources/placements/types/BatchActivationSlotRelationships.d.ts +8 -0
  12. package/dist/cjs/api/resources/organizations/resources/placements/types/BatchActivationSlotRelationships.js +3 -0
  13. package/dist/cjs/api/resources/organizations/resources/placements/types/ContentStrategyInclusion.d.ts +8 -0
  14. package/dist/cjs/api/resources/organizations/resources/placements/types/ContentStrategyInclusion.js +3 -0
  15. package/dist/cjs/api/resources/organizations/resources/placements/types/CreateBatchActivationAttributes.d.ts +3 -2
  16. package/dist/cjs/api/resources/organizations/resources/placements/types/CreateBatchActivationSlot.d.ts +4 -2
  17. package/dist/cjs/api/resources/organizations/resources/placements/types/IncludedResource.d.ts +19 -0
  18. package/dist/cjs/api/resources/organizations/resources/placements/types/IncludedResource.js +3 -0
  19. package/dist/cjs/api/resources/organizations/resources/placements/types/MainPagePlacementAttributes.d.ts +1 -1
  20. package/dist/cjs/api/resources/organizations/resources/placements/types/MainPagePlacementData.d.ts +2 -0
  21. package/dist/cjs/api/resources/organizations/resources/placements/types/PlacementFormatUnion.d.ts +9 -6
  22. package/dist/cjs/api/resources/organizations/resources/placements/types/PlacementListResponse.d.ts +2 -2
  23. package/dist/cjs/api/resources/organizations/resources/placements/types/PlacementRelationships.d.ts +8 -0
  24. package/dist/cjs/api/resources/organizations/resources/placements/types/PlacementRelationships.js +3 -0
  25. package/dist/cjs/api/resources/organizations/resources/placements/types/PlacementResource.d.ts +2 -2
  26. package/dist/cjs/api/resources/organizations/resources/placements/types/PushNotificationPlacementAttributes.d.ts +1 -1
  27. package/dist/cjs/api/resources/organizations/resources/placements/types/PushNotificationPlacementData.d.ts +2 -0
  28. package/dist/cjs/api/resources/organizations/resources/placements/types/ResourceIdentifier.d.ts +9 -0
  29. package/dist/cjs/api/resources/organizations/resources/placements/types/ResourceIdentifier.js +3 -0
  30. package/dist/cjs/api/resources/organizations/resources/placements/types/ToManyRelationship.d.ts +8 -0
  31. package/dist/cjs/api/resources/organizations/resources/placements/types/ToManyRelationship.js +3 -0
  32. package/dist/cjs/api/resources/organizations/resources/placements/types/ToOneRelationship.d.ts +8 -0
  33. package/dist/cjs/api/resources/organizations/resources/placements/types/ToOneRelationship.js +3 -0
  34. package/dist/cjs/api/resources/organizations/resources/placements/types/UpdateBatchActivationAttributes.d.ts +3 -2
  35. package/dist/cjs/api/resources/organizations/resources/placements/types/UpdateBatchActivationSlot.d.ts +5 -3
  36. package/dist/cjs/api/resources/organizations/resources/placements/types/index.d.ts +10 -1
  37. package/dist/cjs/api/resources/organizations/resources/placements/types/index.js +10 -1
  38. package/dist/cjs/version.d.ts +1 -1
  39. package/dist/cjs/version.js +1 -1
  40. package/dist/esm/BaseClient.mjs +2 -2
  41. package/dist/esm/api/resources/organizations/resources/placements/client/requests/GetPlacementRequest.d.mts +1 -1
  42. package/dist/esm/api/resources/organizations/resources/placements/client/requests/ListPlacementsRequest.d.mts +1 -1
  43. package/dist/esm/api/resources/organizations/resources/placements/types/BatchActivationPlacementAttributes.d.mts +1 -4
  44. package/dist/esm/api/resources/organizations/resources/placements/types/BatchActivationPlacementData.d.mts +2 -0
  45. package/dist/esm/api/resources/organizations/resources/placements/types/BatchActivationPlacementRelationships.d.mts +8 -0
  46. package/dist/esm/api/resources/organizations/resources/placements/types/BatchActivationSlotAttributes.d.mts +9 -0
  47. package/dist/esm/api/resources/organizations/resources/placements/types/BatchActivationSlotAttributes.mjs +2 -0
  48. package/dist/esm/api/resources/organizations/resources/placements/types/BatchActivationSlotInclusion.d.mts +9 -0
  49. package/dist/esm/api/resources/organizations/resources/placements/types/BatchActivationSlotInclusion.mjs +2 -0
  50. package/dist/esm/api/resources/organizations/resources/placements/types/BatchActivationSlotRelationships.d.mts +8 -0
  51. package/dist/esm/api/resources/organizations/resources/placements/types/BatchActivationSlotRelationships.mjs +2 -0
  52. package/dist/esm/api/resources/organizations/resources/placements/types/ContentStrategyInclusion.d.mts +8 -0
  53. package/dist/esm/api/resources/organizations/resources/placements/types/ContentStrategyInclusion.mjs +2 -0
  54. package/dist/esm/api/resources/organizations/resources/placements/types/CreateBatchActivationAttributes.d.mts +3 -2
  55. package/dist/esm/api/resources/organizations/resources/placements/types/CreateBatchActivationSlot.d.mts +4 -2
  56. package/dist/esm/api/resources/organizations/resources/placements/types/IncludedResource.d.mts +19 -0
  57. package/dist/esm/api/resources/organizations/resources/placements/types/IncludedResource.mjs +2 -0
  58. package/dist/esm/api/resources/organizations/resources/placements/types/MainPagePlacementAttributes.d.mts +1 -1
  59. package/dist/esm/api/resources/organizations/resources/placements/types/MainPagePlacementData.d.mts +2 -0
  60. package/dist/esm/api/resources/organizations/resources/placements/types/PlacementFormatUnion.d.mts +9 -6
  61. package/dist/esm/api/resources/organizations/resources/placements/types/PlacementListResponse.d.mts +2 -2
  62. package/dist/esm/api/resources/organizations/resources/placements/types/PlacementRelationships.d.mts +8 -0
  63. package/dist/esm/api/resources/organizations/resources/placements/types/PlacementRelationships.mjs +2 -0
  64. package/dist/esm/api/resources/organizations/resources/placements/types/PlacementResource.d.mts +2 -2
  65. package/dist/esm/api/resources/organizations/resources/placements/types/PushNotificationPlacementAttributes.d.mts +1 -1
  66. package/dist/esm/api/resources/organizations/resources/placements/types/PushNotificationPlacementData.d.mts +2 -0
  67. package/dist/esm/api/resources/organizations/resources/placements/types/ResourceIdentifier.d.mts +9 -0
  68. package/dist/esm/api/resources/organizations/resources/placements/types/ResourceIdentifier.mjs +2 -0
  69. package/dist/esm/api/resources/organizations/resources/placements/types/ToManyRelationship.d.mts +8 -0
  70. package/dist/esm/api/resources/organizations/resources/placements/types/ToManyRelationship.mjs +2 -0
  71. package/dist/esm/api/resources/organizations/resources/placements/types/ToOneRelationship.d.mts +8 -0
  72. package/dist/esm/api/resources/organizations/resources/placements/types/ToOneRelationship.mjs +2 -0
  73. package/dist/esm/api/resources/organizations/resources/placements/types/UpdateBatchActivationAttributes.d.mts +3 -2
  74. package/dist/esm/api/resources/organizations/resources/placements/types/UpdateBatchActivationSlot.d.mts +5 -3
  75. package/dist/esm/api/resources/organizations/resources/placements/types/index.d.mts +10 -1
  76. package/dist/esm/api/resources/organizations/resources/placements/types/index.mjs +10 -1
  77. package/dist/esm/version.d.mts +1 -1
  78. package/dist/esm/version.mjs +1 -1
  79. package/package.json +1 -1
  80. package/dist/cjs/api/resources/organizations/resources/placements/types/BatchActivationSlot.d.ts +0 -11
  81. package/dist/esm/api/resources/organizations/resources/placements/types/BatchActivationSlot.d.mts +0 -11
  82. /package/dist/cjs/api/resources/organizations/resources/placements/types/{BatchActivationSlot.js → BatchActivationPlacementRelationships.js} +0 -0
  83. /package/dist/esm/api/resources/organizations/resources/placements/types/{BatchActivationSlot.mjs → BatchActivationPlacementRelationships.mjs} +0 -0
@@ -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": "24.1.0",
47
- "User-Agent": "@kard-financial/sdk/24.1.0",
46
+ "X-Fern-SDK-Version": "25.0.0",
47
+ "User-Agent": "@kard-financial/sdk/25.0.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);
@@ -3,6 +3,6 @@
3
3
  * {}
4
4
  */
5
5
  export interface GetPlacementRequest {
6
- /** CSV list of related resources to embed in the `included` array (allowed value is `contentStrategy`). */
6
+ /** CSV list of related resources to embed in the `included` array. Supported paths: `contentStrategy` (the direct content strategy of a non-batch placement), `slots` (the slot resources of a batch-activation placement), `slots.placement` (and the placement each slot references), and `slots.placement.contentStrategy` (and the content strategy of each referenced placement). Dotted paths implicitly include all intermediate resources. */
7
7
  include?: string;
8
8
  }
@@ -10,7 +10,7 @@ export interface ListPlacementsRequest {
10
10
  "filter[name]"?: string;
11
11
  /** Filter by the ID of the content strategy linked to the placement */
12
12
  "filter[contentStrategyId]"?: string;
13
- /** CSV list of related resources to embed in the `included` array (allowed value is `contentStrategy`). */
13
+ /** CSV list of related resources to embed in the `included` array. Supported paths: `contentStrategy` (the direct content strategy of a non-batch placement), `slots` (the slot resources of a batch-activation placement), `slots.placement` (and the placement each slot references), and `slots.placement.contentStrategy` (and the content strategy of each referenced placement). Dotted paths implicitly include all intermediate resources. */
14
14
  include?: string;
15
15
  /** Cursor value for the next page of results */
16
16
  "page[after]"?: string;
@@ -1,6 +1,5 @@
1
- import type * as KardApi from "../../../../../index.js";
2
1
  /**
3
- * Attributes for a batch-activation placement
2
+ * Attributes for a batch-activation placement. Slot detail is exposed via `relationships.slots` (resource identifiers) and the `batchActivationSlot` entries in `included`; request `?include=slots` (or a deeper path) to get the slot details.
4
3
  */
5
4
  export interface BatchActivationPlacementAttributes {
6
5
  /** Name of the placement */
@@ -9,6 +8,4 @@ export interface BatchActivationPlacementAttributes {
9
8
  organizationId: string;
10
9
  /** ISO-8601 duration that controls how often the activation cohort refreshes (e.g. "P7D" for weekly). */
11
10
  refreshInterval: string;
12
- /** Slots that make up the activation cohort */
13
- slots: KardApi.organizations.BatchActivationSlot[];
14
11
  }
@@ -6,4 +6,6 @@ export interface BatchActivationPlacementData {
6
6
  /** Unique identifier of the placement (UUID v7) */
7
7
  id: string;
8
8
  attributes: KardApi.organizations.BatchActivationPlacementAttributes;
9
+ /** JSON:API relationships for the placement. Always present on a batch-activation placement; the `slots` to-many relationship lists the slot resource identifiers. */
10
+ relationships: KardApi.organizations.BatchActivationPlacementRelationships;
9
11
  }
@@ -0,0 +1,8 @@
1
+ import type * as KardApi from "../../../../../index.js";
2
+ /**
3
+ * Relationship block for a batch-activation placement.
4
+ */
5
+ export interface BatchActivationPlacementRelationships {
6
+ /** Resource identifiers for the slots that make up the activation cohort. Each entry corresponds to a `batchActivationSlot` resource that appears in `included` when the request asks for `slots` (or any deeper path that implies it). */
7
+ slots: KardApi.organizations.ToManyRelationship;
8
+ }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Attributes block for a `batchActivationSlot` resource.
3
+ */
4
+ export interface BatchActivationSlotAttributes {
5
+ /** Customer-defined alias for the slot, unique within the placement. */
6
+ alias: string;
7
+ /** Optional short description of the slot, limited to 50 characters. */
8
+ shortDescription?: string | undefined;
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,9 @@
1
+ import type * as KardApi from "../../../../../index.js";
2
+ /**
3
+ * Slot resource as it appears in the `included` array.
4
+ */
5
+ export interface BatchActivationSlotInclusion {
6
+ id: string;
7
+ attributes: KardApi.organizations.BatchActivationSlotAttributes;
8
+ relationships: KardApi.organizations.BatchActivationSlotRelationships;
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,8 @@
1
+ import type * as KardApi from "../../../../../index.js";
2
+ /**
3
+ * Relationship block for a `batchActivationSlot` resource.
4
+ */
5
+ export interface BatchActivationSlotRelationships {
6
+ /** Reference to the placement that fills this slot. The referenced placement provides the slot's content strategy and offer-count cap; request `?include=slots.placement` to embed it in `included`. */
7
+ placement: KardApi.organizations.ToOneRelationship;
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,8 @@
1
+ import type * as KardApi from "../../../../../index.js";
2
+ /**
3
+ * Content strategy as it appears in the `included` array.
4
+ */
5
+ export interface ContentStrategyInclusion {
6
+ id: string;
7
+ attributes: KardApi.organizations.ContentStrategyAttributes;
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 });
@@ -7,8 +7,9 @@ import type * as KardApi from "../../../../../index.js";
7
7
  * name: "Weekly Cohort",
8
8
  * refreshInterval: "P7D",
9
9
  * slots: [{
10
- * contentStrategyId: "01961e5a-f26f-7e44-ce5f-1ad7c9fb4e67",
11
- * alias: "primary"
10
+ * placementId: "01961e5a-f26f-7e44-ce5f-1ad7c9fb4e67",
11
+ * alias: "primary",
12
+ * shortDescription: "Featured deals refreshed each week"
12
13
  * }]
13
14
  * }
14
15
  */
@@ -2,8 +2,10 @@
2
2
  * A slot in a batch-activation placement at creation time
3
3
  */
4
4
  export interface CreateBatchActivationSlot {
5
- /** ID of the content strategy that fills this slot */
6
- contentStrategyId: string;
5
+ /** ID of another placement that fills this slot. The referenced placement provides both the content strategy and the limit on the number of offers available to the slot. */
6
+ placementId: string;
7
7
  /** Customer-defined alias for the slot, unique within the placement */
8
8
  alias: string;
9
+ /** Optional short description of the slot, limited to 50 characters */
10
+ shortDescription?: string | undefined;
9
11
  }
@@ -0,0 +1,19 @@
1
+ import type * as KardApi from "../../../../../index.js";
2
+ /**
3
+ * Discriminated union of every resource type that can appear in the `included` array. The shape of each branch matches the corresponding primary-data resource (same attributes and relationships), keyed on the JSON:API `type` discriminant.
4
+ */
5
+ export type IncludedResource = KardApi.organizations.IncludedResource.ContentStrategy | KardApi.organizations.IncludedResource.BatchActivationSlot | KardApi.organizations.IncludedResource.PlacementMainPage | KardApi.organizations.IncludedResource.PlacementPushNotification;
6
+ export declare namespace IncludedResource {
7
+ interface ContentStrategy extends KardApi.organizations.ContentStrategyInclusion {
8
+ type: "contentStrategy";
9
+ }
10
+ interface BatchActivationSlot extends KardApi.organizations.BatchActivationSlotInclusion {
11
+ type: "batchActivationSlot";
12
+ }
13
+ interface PlacementMainPage extends KardApi.organizations.MainPagePlacementData {
14
+ type: "placementMainPage";
15
+ }
16
+ interface PlacementPushNotification extends KardApi.organizations.PushNotificationPlacementData {
17
+ type: "placementPushNotification";
18
+ }
19
+ }
@@ -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 });
@@ -8,6 +8,6 @@ export interface MainPagePlacementAttributes {
8
8
  organizationId: string;
9
9
  /** Number of available slots */
10
10
  availableSlots: number;
11
- /** ID of the content strategy linked to this placement, if any */
11
+ /** ID of the content strategy linked to this placement, if any. Retained alongside `relationships.contentStrategy` for backward compatibility. */
12
12
  contentStrategyId?: string | undefined;
13
13
  }
@@ -6,4 +6,6 @@ export interface MainPagePlacementData {
6
6
  /** Unique identifier of the placement (UUID v7) */
7
7
  id: string;
8
8
  attributes: KardApi.organizations.MainPagePlacementAttributes;
9
+ /** JSON:API relationships for the placement. Omitted entirely when the placement has no linked resources. */
10
+ relationships?: KardApi.organizations.PlacementRelationships | undefined;
9
11
  }
@@ -34,12 +34,15 @@ import type * as KardApi from "../../../../../index.js";
34
34
  * attributes: {
35
35
  * name: "Weekly Cohort",
36
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
- * }]
37
+ * refreshInterval: "P7D"
38
+ * },
39
+ * relationships: {
40
+ * slots: {
41
+ * data: [{
42
+ * type: "batchActivationSlot",
43
+ * id: "01961e5a-e15f-7d33-bd4f-09c6b8fa3d56"
44
+ * }]
45
+ * }
43
46
  * }
44
47
  * }
45
48
  */
@@ -5,8 +5,8 @@ import type * as KardApi from "../../../../../index.js";
5
5
  export interface PlacementListResponse {
6
6
  /** Array of placement resources */
7
7
  data: KardApi.organizations.PlacementFormatUnion[];
8
- /** Related resources requested via the `include` query parameter. Only populated when `include=contentStrategy` is supplied and at least one placement in `data` is linked to a content strategy. */
9
- included?: KardApi.organizations.ContentStrategyResponse[] | undefined;
8
+ /** Related resources requested via the `include` query parameter. Each entry is keyed by its `type` discriminant (`contentStrategy`, `batchActivationSlot`, `placementMainPage`, `placementPushNotification`). */
9
+ included?: KardApi.organizations.IncludedResource[] | undefined;
10
10
  links?: KardApi.Links | undefined;
11
11
  /** Pagination metadata */
12
12
  meta?: KardApi.OrganizationPaginationMetadata | undefined;
@@ -0,0 +1,8 @@
1
+ import type * as KardApi from "../../../../../index.js";
2
+ /**
3
+ * Relationship block for non-batch placements. Mirrors the `contentStrategyId` attribute so JSON:API clients can walk the graph.
4
+ */
5
+ export interface PlacementRelationships {
6
+ /** Relationship to the content strategy that powers this placement. Present whenever the placement has been linked to a content strategy (`data.id` will be set). Omitted entirely when no content strategy is linked. */
7
+ contentStrategy?: KardApi.organizations.ToOneRelationship | undefined;
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 });
@@ -5,6 +5,6 @@ import type * as KardApi from "../../../../../index.js";
5
5
  export interface PlacementResource {
6
6
  /** Placement resource */
7
7
  data: KardApi.organizations.PlacementFormatUnion;
8
- /** Related resources requested via the `include` query parameter. Only populated when `include=contentStrategy` is supplied and the placement is linked to a content strategy. */
9
- included?: KardApi.organizations.ContentStrategyResponse[] | undefined;
8
+ /** Related resources requested via the `include` query parameter. Each entry is keyed by its `type` discriminant (`contentStrategy`, `batchActivationSlot`, `placementMainPage`, `placementPushNotification`). */
9
+ included?: KardApi.organizations.IncludedResource[] | undefined;
10
10
  }
@@ -9,6 +9,6 @@ export interface PushNotificationPlacementAttributes {
9
9
  organizationId: string;
10
10
  /** Delivery cadence for the notification */
11
11
  cadence: KardApi.organizations.Cadence;
12
- /** ID of the content strategy linked to this placement, if any */
12
+ /** ID of the content strategy linked to this placement, if any. Retained alongside `relationships.contentStrategy` for backward compatibility. */
13
13
  contentStrategyId?: string | undefined;
14
14
  }
@@ -6,4 +6,6 @@ export interface PushNotificationPlacementData {
6
6
  /** Unique identifier of the placement (UUID v7) */
7
7
  id: string;
8
8
  attributes: KardApi.organizations.PushNotificationPlacementAttributes;
9
+ /** JSON:API relationships for the placement. Omitted entirely when the placement has no linked resources. */
10
+ relationships?: KardApi.organizations.PlacementRelationships | undefined;
9
11
  }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * A reference to another resource by type and id.
3
+ */
4
+ export interface ResourceIdentifier {
5
+ /** Discriminant of the referenced resource (e.g. `contentStrategy`). */
6
+ type: string;
7
+ /** Identifier of the referenced resource. */
8
+ id: 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 });
@@ -0,0 +1,8 @@
1
+ import type * as KardApi from "../../../../../index.js";
2
+ /**
3
+ * A JSON:API to-many relationship payload.
4
+ */
5
+ export interface ToManyRelationship {
6
+ /** The linked resource identifiers. */
7
+ data: KardApi.organizations.ResourceIdentifier[];
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,8 @@
1
+ import type * as KardApi from "../../../../../index.js";
2
+ /**
3
+ * A JSON:API to-one relationship payload.
4
+ */
5
+ export interface ToOneRelationship {
6
+ /** The linked resource identifier, or null when the relationship is present but unlinked. */
7
+ data?: KardApi.organizations.ResourceIdentifier | undefined;
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 });
@@ -8,8 +8,9 @@ import type * as KardApi from "../../../../../index.js";
8
8
  * refreshInterval: "P14D",
9
9
  * slots: [{
10
10
  * slotId: "01961e5a-e15f-7d33-bd4f-09c6b8fa3d56",
11
- * contentStrategyId: "01961e5a-f26f-7e44-ce5f-1ad7c9fb4e67",
12
- * alias: "primary"
11
+ * placementId: "01961e5a-f26f-7e44-ce5f-1ad7c9fb4e67",
12
+ * alias: "primary",
13
+ * shortDescription: "Featured deals refreshed each week"
13
14
  * }]
14
15
  * }
15
16
  */
@@ -2,10 +2,12 @@
2
2
  * A slot in a batch-activation placement at update time
3
3
  */
4
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. */
5
+ /** Existing slot identifier. Echo the value from a prior GET to keep the slot stable; omit to mint a fresh slot. If the placementId changes, the slotId is regenerated regardless of what was echoed. */
6
6
  slotId?: string | undefined;
7
- /** ID of the content strategy that fills this slot */
8
- contentStrategyId: string;
7
+ /** ID of another placement that fills this slot. The referenced placement provides both the content strategy and the limit on the number of offers available to the slot. */
8
+ placementId: string;
9
9
  /** Customer-defined alias for the slot, unique within the placement */
10
10
  alias: string;
11
+ /** Optional short description of the slot, limited to 50 characters */
12
+ shortDescription?: string | undefined;
11
13
  }
@@ -1,8 +1,12 @@
1
1
  export * from "./BatchActivationPlacementAttributes.js";
2
2
  export * from "./BatchActivationPlacementData.js";
3
- export * from "./BatchActivationSlot.js";
3
+ export * from "./BatchActivationPlacementRelationships.js";
4
+ export * from "./BatchActivationSlotAttributes.js";
5
+ export * from "./BatchActivationSlotInclusion.js";
6
+ export * from "./BatchActivationSlotRelationships.js";
4
7
  export * from "./Cadence.js";
5
8
  export * from "./CadenceFrequency.js";
9
+ export * from "./ContentStrategyInclusion.js";
6
10
  export * from "./CreateBatchActivationAttributes.js";
7
11
  export * from "./CreateBatchActivationPlacementData.js";
8
12
  export * from "./CreateBatchActivationSlot.js";
@@ -13,14 +17,19 @@ export * from "./CreatePlacementRequestBody.js";
13
17
  export * from "./CreatePushNotificationAttributes.js";
14
18
  export * from "./CreatePushNotificationPlacementData.js";
15
19
  export * from "./DayOfWeek.js";
20
+ export * from "./IncludedResource.js";
16
21
  export * from "./MainPagePlacementAttributes.js";
17
22
  export * from "./MainPagePlacementData.js";
18
23
  export * from "./PlacementFormatUnion.js";
19
24
  export * from "./PlacementListResponse.js";
25
+ export * from "./PlacementRelationships.js";
20
26
  export * from "./PlacementResource.js";
21
27
  export * from "./PlacementTypeFilter.js";
22
28
  export * from "./PushNotificationPlacementAttributes.js";
23
29
  export * from "./PushNotificationPlacementData.js";
30
+ export * from "./ResourceIdentifier.js";
31
+ export * from "./ToManyRelationship.js";
32
+ export * from "./ToOneRelationship.js";
24
33
  export * from "./UpdateBatchActivationAttributes.js";
25
34
  export * from "./UpdateBatchActivationPlacementData.js";
26
35
  export * from "./UpdateBatchActivationSlot.js";
@@ -16,9 +16,13 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./BatchActivationPlacementAttributes.js"), exports);
18
18
  __exportStar(require("./BatchActivationPlacementData.js"), exports);
19
- __exportStar(require("./BatchActivationSlot.js"), exports);
19
+ __exportStar(require("./BatchActivationPlacementRelationships.js"), exports);
20
+ __exportStar(require("./BatchActivationSlotAttributes.js"), exports);
21
+ __exportStar(require("./BatchActivationSlotInclusion.js"), exports);
22
+ __exportStar(require("./BatchActivationSlotRelationships.js"), exports);
20
23
  __exportStar(require("./Cadence.js"), exports);
21
24
  __exportStar(require("./CadenceFrequency.js"), exports);
25
+ __exportStar(require("./ContentStrategyInclusion.js"), exports);
22
26
  __exportStar(require("./CreateBatchActivationAttributes.js"), exports);
23
27
  __exportStar(require("./CreateBatchActivationPlacementData.js"), exports);
24
28
  __exportStar(require("./CreateBatchActivationSlot.js"), exports);
@@ -29,14 +33,19 @@ __exportStar(require("./CreatePlacementRequestBody.js"), exports);
29
33
  __exportStar(require("./CreatePushNotificationAttributes.js"), exports);
30
34
  __exportStar(require("./CreatePushNotificationPlacementData.js"), exports);
31
35
  __exportStar(require("./DayOfWeek.js"), exports);
36
+ __exportStar(require("./IncludedResource.js"), exports);
32
37
  __exportStar(require("./MainPagePlacementAttributes.js"), exports);
33
38
  __exportStar(require("./MainPagePlacementData.js"), exports);
34
39
  __exportStar(require("./PlacementFormatUnion.js"), exports);
35
40
  __exportStar(require("./PlacementListResponse.js"), exports);
41
+ __exportStar(require("./PlacementRelationships.js"), exports);
36
42
  __exportStar(require("./PlacementResource.js"), exports);
37
43
  __exportStar(require("./PlacementTypeFilter.js"), exports);
38
44
  __exportStar(require("./PushNotificationPlacementAttributes.js"), exports);
39
45
  __exportStar(require("./PushNotificationPlacementData.js"), exports);
46
+ __exportStar(require("./ResourceIdentifier.js"), exports);
47
+ __exportStar(require("./ToManyRelationship.js"), exports);
48
+ __exportStar(require("./ToOneRelationship.js"), exports);
40
49
  __exportStar(require("./UpdateBatchActivationAttributes.js"), exports);
41
50
  __exportStar(require("./UpdateBatchActivationPlacementData.js"), exports);
42
51
  __exportStar(require("./UpdateBatchActivationSlot.js"), exports);
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "24.1.0";
1
+ export declare const SDK_VERSION = "25.0.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 = "24.1.0";
4
+ exports.SDK_VERSION = "25.0.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": "24.1.0",
10
- "User-Agent": "@kard-financial/sdk/24.1.0",
9
+ "X-Fern-SDK-Version": "25.0.0",
10
+ "User-Agent": "@kard-financial/sdk/25.0.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);
@@ -3,6 +3,6 @@
3
3
  * {}
4
4
  */
5
5
  export interface GetPlacementRequest {
6
- /** CSV list of related resources to embed in the `included` array (allowed value is `contentStrategy`). */
6
+ /** CSV list of related resources to embed in the `included` array. Supported paths: `contentStrategy` (the direct content strategy of a non-batch placement), `slots` (the slot resources of a batch-activation placement), `slots.placement` (and the placement each slot references), and `slots.placement.contentStrategy` (and the content strategy of each referenced placement). Dotted paths implicitly include all intermediate resources. */
7
7
  include?: string;
8
8
  }
@@ -10,7 +10,7 @@ export interface ListPlacementsRequest {
10
10
  "filter[name]"?: string;
11
11
  /** Filter by the ID of the content strategy linked to the placement */
12
12
  "filter[contentStrategyId]"?: string;
13
- /** CSV list of related resources to embed in the `included` array (allowed value is `contentStrategy`). */
13
+ /** CSV list of related resources to embed in the `included` array. Supported paths: `contentStrategy` (the direct content strategy of a non-batch placement), `slots` (the slot resources of a batch-activation placement), `slots.placement` (and the placement each slot references), and `slots.placement.contentStrategy` (and the content strategy of each referenced placement). Dotted paths implicitly include all intermediate resources. */
14
14
  include?: string;
15
15
  /** Cursor value for the next page of results */
16
16
  "page[after]"?: string;
@@ -1,6 +1,5 @@
1
- import type * as KardApi from "../../../../../index.mjs";
2
1
  /**
3
- * Attributes for a batch-activation placement
2
+ * Attributes for a batch-activation placement. Slot detail is exposed via `relationships.slots` (resource identifiers) and the `batchActivationSlot` entries in `included`; request `?include=slots` (or a deeper path) to get the slot details.
4
3
  */
5
4
  export interface BatchActivationPlacementAttributes {
6
5
  /** Name of the placement */
@@ -9,6 +8,4 @@ export interface BatchActivationPlacementAttributes {
9
8
  organizationId: string;
10
9
  /** ISO-8601 duration that controls how often the activation cohort refreshes (e.g. "P7D" for weekly). */
11
10
  refreshInterval: string;
12
- /** Slots that make up the activation cohort */
13
- slots: KardApi.organizations.BatchActivationSlot[];
14
11
  }
@@ -6,4 +6,6 @@ export interface BatchActivationPlacementData {
6
6
  /** Unique identifier of the placement (UUID v7) */
7
7
  id: string;
8
8
  attributes: KardApi.organizations.BatchActivationPlacementAttributes;
9
+ /** JSON:API relationships for the placement. Always present on a batch-activation placement; the `slots` to-many relationship lists the slot resource identifiers. */
10
+ relationships: KardApi.organizations.BatchActivationPlacementRelationships;
9
11
  }
@@ -0,0 +1,8 @@
1
+ import type * as KardApi from "../../../../../index.mjs";
2
+ /**
3
+ * Relationship block for a batch-activation placement.
4
+ */
5
+ export interface BatchActivationPlacementRelationships {
6
+ /** Resource identifiers for the slots that make up the activation cohort. Each entry corresponds to a `batchActivationSlot` resource that appears in `included` when the request asks for `slots` (or any deeper path that implies it). */
7
+ slots: KardApi.organizations.ToManyRelationship;
8
+ }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Attributes block for a `batchActivationSlot` resource.
3
+ */
4
+ export interface BatchActivationSlotAttributes {
5
+ /** Customer-defined alias for the slot, unique within the placement. */
6
+ alias: string;
7
+ /** Optional short description of the slot, limited to 50 characters. */
8
+ shortDescription?: string | undefined;
9
+ }
@@ -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
+ * Slot resource as it appears in the `included` array.
4
+ */
5
+ export interface BatchActivationSlotInclusion {
6
+ id: string;
7
+ attributes: KardApi.organizations.BatchActivationSlotAttributes;
8
+ relationships: KardApi.organizations.BatchActivationSlotRelationships;
9
+ }
@@ -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
+ * Relationship block for a `batchActivationSlot` resource.
4
+ */
5
+ export interface BatchActivationSlotRelationships {
6
+ /** Reference to the placement that fills this slot. The referenced placement provides the slot's content strategy and offer-count cap; request `?include=slots.placement` to embed it in `included`. */
7
+ placement: KardApi.organizations.ToOneRelationship;
8
+ }
@@ -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
+ * Content strategy as it appears in the `included` array.
4
+ */
5
+ export interface ContentStrategyInclusion {
6
+ id: string;
7
+ attributes: KardApi.organizations.ContentStrategyAttributes;
8
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -7,8 +7,9 @@ import type * as KardApi from "../../../../../index.mjs";
7
7
  * name: "Weekly Cohort",
8
8
  * refreshInterval: "P7D",
9
9
  * slots: [{
10
- * contentStrategyId: "01961e5a-f26f-7e44-ce5f-1ad7c9fb4e67",
11
- * alias: "primary"
10
+ * placementId: "01961e5a-f26f-7e44-ce5f-1ad7c9fb4e67",
11
+ * alias: "primary",
12
+ * shortDescription: "Featured deals refreshed each week"
12
13
  * }]
13
14
  * }
14
15
  */
@@ -2,8 +2,10 @@
2
2
  * A slot in a batch-activation placement at creation time
3
3
  */
4
4
  export interface CreateBatchActivationSlot {
5
- /** ID of the content strategy that fills this slot */
6
- contentStrategyId: string;
5
+ /** ID of another placement that fills this slot. The referenced placement provides both the content strategy and the limit on the number of offers available to the slot. */
6
+ placementId: string;
7
7
  /** Customer-defined alias for the slot, unique within the placement */
8
8
  alias: string;
9
+ /** Optional short description of the slot, limited to 50 characters */
10
+ shortDescription?: string | undefined;
9
11
  }
@@ -0,0 +1,19 @@
1
+ import type * as KardApi from "../../../../../index.mjs";
2
+ /**
3
+ * Discriminated union of every resource type that can appear in the `included` array. The shape of each branch matches the corresponding primary-data resource (same attributes and relationships), keyed on the JSON:API `type` discriminant.
4
+ */
5
+ export type IncludedResource = KardApi.organizations.IncludedResource.ContentStrategy | KardApi.organizations.IncludedResource.BatchActivationSlot | KardApi.organizations.IncludedResource.PlacementMainPage | KardApi.organizations.IncludedResource.PlacementPushNotification;
6
+ export declare namespace IncludedResource {
7
+ interface ContentStrategy extends KardApi.organizations.ContentStrategyInclusion {
8
+ type: "contentStrategy";
9
+ }
10
+ interface BatchActivationSlot extends KardApi.organizations.BatchActivationSlotInclusion {
11
+ type: "batchActivationSlot";
12
+ }
13
+ interface PlacementMainPage extends KardApi.organizations.MainPagePlacementData {
14
+ type: "placementMainPage";
15
+ }
16
+ interface PlacementPushNotification extends KardApi.organizations.PushNotificationPlacementData {
17
+ type: "placementPushNotification";
18
+ }
19
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -8,6 +8,6 @@ export interface MainPagePlacementAttributes {
8
8
  organizationId: string;
9
9
  /** Number of available slots */
10
10
  availableSlots: number;
11
- /** ID of the content strategy linked to this placement, if any */
11
+ /** ID of the content strategy linked to this placement, if any. Retained alongside `relationships.contentStrategy` for backward compatibility. */
12
12
  contentStrategyId?: string | undefined;
13
13
  }
@@ -6,4 +6,6 @@ export interface MainPagePlacementData {
6
6
  /** Unique identifier of the placement (UUID v7) */
7
7
  id: string;
8
8
  attributes: KardApi.organizations.MainPagePlacementAttributes;
9
+ /** JSON:API relationships for the placement. Omitted entirely when the placement has no linked resources. */
10
+ relationships?: KardApi.organizations.PlacementRelationships | undefined;
9
11
  }
@@ -34,12 +34,15 @@ import type * as KardApi from "../../../../../index.mjs";
34
34
  * attributes: {
35
35
  * name: "Weekly Cohort",
36
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
- * }]
37
+ * refreshInterval: "P7D"
38
+ * },
39
+ * relationships: {
40
+ * slots: {
41
+ * data: [{
42
+ * type: "batchActivationSlot",
43
+ * id: "01961e5a-e15f-7d33-bd4f-09c6b8fa3d56"
44
+ * }]
45
+ * }
43
46
  * }
44
47
  * }
45
48
  */
@@ -5,8 +5,8 @@ import type * as KardApi from "../../../../../index.mjs";
5
5
  export interface PlacementListResponse {
6
6
  /** Array of placement resources */
7
7
  data: KardApi.organizations.PlacementFormatUnion[];
8
- /** Related resources requested via the `include` query parameter. Only populated when `include=contentStrategy` is supplied and at least one placement in `data` is linked to a content strategy. */
9
- included?: KardApi.organizations.ContentStrategyResponse[] | undefined;
8
+ /** Related resources requested via the `include` query parameter. Each entry is keyed by its `type` discriminant (`contentStrategy`, `batchActivationSlot`, `placementMainPage`, `placementPushNotification`). */
9
+ included?: KardApi.organizations.IncludedResource[] | undefined;
10
10
  links?: KardApi.Links | undefined;
11
11
  /** Pagination metadata */
12
12
  meta?: KardApi.OrganizationPaginationMetadata | undefined;
@@ -0,0 +1,8 @@
1
+ import type * as KardApi from "../../../../../index.mjs";
2
+ /**
3
+ * Relationship block for non-batch placements. Mirrors the `contentStrategyId` attribute so JSON:API clients can walk the graph.
4
+ */
5
+ export interface PlacementRelationships {
6
+ /** Relationship to the content strategy that powers this placement. Present whenever the placement has been linked to a content strategy (`data.id` will be set). Omitted entirely when no content strategy is linked. */
7
+ contentStrategy?: KardApi.organizations.ToOneRelationship | undefined;
8
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -5,6 +5,6 @@ import type * as KardApi from "../../../../../index.mjs";
5
5
  export interface PlacementResource {
6
6
  /** Placement resource */
7
7
  data: KardApi.organizations.PlacementFormatUnion;
8
- /** Related resources requested via the `include` query parameter. Only populated when `include=contentStrategy` is supplied and the placement is linked to a content strategy. */
9
- included?: KardApi.organizations.ContentStrategyResponse[] | undefined;
8
+ /** Related resources requested via the `include` query parameter. Each entry is keyed by its `type` discriminant (`contentStrategy`, `batchActivationSlot`, `placementMainPage`, `placementPushNotification`). */
9
+ included?: KardApi.organizations.IncludedResource[] | undefined;
10
10
  }
@@ -9,6 +9,6 @@ export interface PushNotificationPlacementAttributes {
9
9
  organizationId: string;
10
10
  /** Delivery cadence for the notification */
11
11
  cadence: KardApi.organizations.Cadence;
12
- /** ID of the content strategy linked to this placement, if any */
12
+ /** ID of the content strategy linked to this placement, if any. Retained alongside `relationships.contentStrategy` for backward compatibility. */
13
13
  contentStrategyId?: string | undefined;
14
14
  }
@@ -6,4 +6,6 @@ export interface PushNotificationPlacementData {
6
6
  /** Unique identifier of the placement (UUID v7) */
7
7
  id: string;
8
8
  attributes: KardApi.organizations.PushNotificationPlacementAttributes;
9
+ /** JSON:API relationships for the placement. Omitted entirely when the placement has no linked resources. */
10
+ relationships?: KardApi.organizations.PlacementRelationships | undefined;
9
11
  }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * A reference to another resource by type and id.
3
+ */
4
+ export interface ResourceIdentifier {
5
+ /** Discriminant of the referenced resource (e.g. `contentStrategy`). */
6
+ type: string;
7
+ /** Identifier of the referenced resource. */
8
+ id: string;
9
+ }
@@ -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
+ * A JSON:API to-many relationship payload.
4
+ */
5
+ export interface ToManyRelationship {
6
+ /** The linked resource identifiers. */
7
+ data: KardApi.organizations.ResourceIdentifier[];
8
+ }
@@ -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
+ * A JSON:API to-one relationship payload.
4
+ */
5
+ export interface ToOneRelationship {
6
+ /** The linked resource identifier, or null when the relationship is present but unlinked. */
7
+ data?: KardApi.organizations.ResourceIdentifier | undefined;
8
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -8,8 +8,9 @@ import type * as KardApi from "../../../../../index.mjs";
8
8
  * refreshInterval: "P14D",
9
9
  * slots: [{
10
10
  * slotId: "01961e5a-e15f-7d33-bd4f-09c6b8fa3d56",
11
- * contentStrategyId: "01961e5a-f26f-7e44-ce5f-1ad7c9fb4e67",
12
- * alias: "primary"
11
+ * placementId: "01961e5a-f26f-7e44-ce5f-1ad7c9fb4e67",
12
+ * alias: "primary",
13
+ * shortDescription: "Featured deals refreshed each week"
13
14
  * }]
14
15
  * }
15
16
  */
@@ -2,10 +2,12 @@
2
2
  * A slot in a batch-activation placement at update time
3
3
  */
4
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. */
5
+ /** Existing slot identifier. Echo the value from a prior GET to keep the slot stable; omit to mint a fresh slot. If the placementId changes, the slotId is regenerated regardless of what was echoed. */
6
6
  slotId?: string | undefined;
7
- /** ID of the content strategy that fills this slot */
8
- contentStrategyId: string;
7
+ /** ID of another placement that fills this slot. The referenced placement provides both the content strategy and the limit on the number of offers available to the slot. */
8
+ placementId: string;
9
9
  /** Customer-defined alias for the slot, unique within the placement */
10
10
  alias: string;
11
+ /** Optional short description of the slot, limited to 50 characters */
12
+ shortDescription?: string | undefined;
11
13
  }
@@ -1,8 +1,12 @@
1
1
  export * from "./BatchActivationPlacementAttributes.mjs";
2
2
  export * from "./BatchActivationPlacementData.mjs";
3
- export * from "./BatchActivationSlot.mjs";
3
+ export * from "./BatchActivationPlacementRelationships.mjs";
4
+ export * from "./BatchActivationSlotAttributes.mjs";
5
+ export * from "./BatchActivationSlotInclusion.mjs";
6
+ export * from "./BatchActivationSlotRelationships.mjs";
4
7
  export * from "./Cadence.mjs";
5
8
  export * from "./CadenceFrequency.mjs";
9
+ export * from "./ContentStrategyInclusion.mjs";
6
10
  export * from "./CreateBatchActivationAttributes.mjs";
7
11
  export * from "./CreateBatchActivationPlacementData.mjs";
8
12
  export * from "./CreateBatchActivationSlot.mjs";
@@ -13,14 +17,19 @@ export * from "./CreatePlacementRequestBody.mjs";
13
17
  export * from "./CreatePushNotificationAttributes.mjs";
14
18
  export * from "./CreatePushNotificationPlacementData.mjs";
15
19
  export * from "./DayOfWeek.mjs";
20
+ export * from "./IncludedResource.mjs";
16
21
  export * from "./MainPagePlacementAttributes.mjs";
17
22
  export * from "./MainPagePlacementData.mjs";
18
23
  export * from "./PlacementFormatUnion.mjs";
19
24
  export * from "./PlacementListResponse.mjs";
25
+ export * from "./PlacementRelationships.mjs";
20
26
  export * from "./PlacementResource.mjs";
21
27
  export * from "./PlacementTypeFilter.mjs";
22
28
  export * from "./PushNotificationPlacementAttributes.mjs";
23
29
  export * from "./PushNotificationPlacementData.mjs";
30
+ export * from "./ResourceIdentifier.mjs";
31
+ export * from "./ToManyRelationship.mjs";
32
+ export * from "./ToOneRelationship.mjs";
24
33
  export * from "./UpdateBatchActivationAttributes.mjs";
25
34
  export * from "./UpdateBatchActivationPlacementData.mjs";
26
35
  export * from "./UpdateBatchActivationSlot.mjs";
@@ -1,8 +1,12 @@
1
1
  export * from "./BatchActivationPlacementAttributes.mjs";
2
2
  export * from "./BatchActivationPlacementData.mjs";
3
- export * from "./BatchActivationSlot.mjs";
3
+ export * from "./BatchActivationPlacementRelationships.mjs";
4
+ export * from "./BatchActivationSlotAttributes.mjs";
5
+ export * from "./BatchActivationSlotInclusion.mjs";
6
+ export * from "./BatchActivationSlotRelationships.mjs";
4
7
  export * from "./Cadence.mjs";
5
8
  export * from "./CadenceFrequency.mjs";
9
+ export * from "./ContentStrategyInclusion.mjs";
6
10
  export * from "./CreateBatchActivationAttributes.mjs";
7
11
  export * from "./CreateBatchActivationPlacementData.mjs";
8
12
  export * from "./CreateBatchActivationSlot.mjs";
@@ -13,14 +17,19 @@ export * from "./CreatePlacementRequestBody.mjs";
13
17
  export * from "./CreatePushNotificationAttributes.mjs";
14
18
  export * from "./CreatePushNotificationPlacementData.mjs";
15
19
  export * from "./DayOfWeek.mjs";
20
+ export * from "./IncludedResource.mjs";
16
21
  export * from "./MainPagePlacementAttributes.mjs";
17
22
  export * from "./MainPagePlacementData.mjs";
18
23
  export * from "./PlacementFormatUnion.mjs";
19
24
  export * from "./PlacementListResponse.mjs";
25
+ export * from "./PlacementRelationships.mjs";
20
26
  export * from "./PlacementResource.mjs";
21
27
  export * from "./PlacementTypeFilter.mjs";
22
28
  export * from "./PushNotificationPlacementAttributes.mjs";
23
29
  export * from "./PushNotificationPlacementData.mjs";
30
+ export * from "./ResourceIdentifier.mjs";
31
+ export * from "./ToManyRelationship.mjs";
32
+ export * from "./ToOneRelationship.mjs";
24
33
  export * from "./UpdateBatchActivationAttributes.mjs";
25
34
  export * from "./UpdateBatchActivationPlacementData.mjs";
26
35
  export * from "./UpdateBatchActivationSlot.mjs";
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "24.1.0";
1
+ export declare const SDK_VERSION = "25.0.0";
@@ -1 +1 @@
1
- export const SDK_VERSION = "24.1.0";
1
+ export const SDK_VERSION = "25.0.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kard-financial/sdk",
3
- "version": "24.1.0",
3
+ "version": "25.0.0",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
@@ -1,11 +0,0 @@
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
- }
@@ -1,11 +0,0 @@
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
- }