@kard-financial/sdk 24.1.0 → 26.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 (97) 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/BatchActivationSlotInclusion.d.ts +9 -0
  9. package/dist/cjs/api/resources/organizations/resources/placements/types/BatchActivationSlotInclusion.js +3 -0
  10. package/dist/cjs/api/resources/organizations/resources/placements/types/BatchActivationSlotRelationships.d.ts +8 -0
  11. package/dist/cjs/api/resources/organizations/resources/placements/types/BatchActivationSlotRelationships.js +3 -0
  12. package/dist/cjs/api/resources/organizations/resources/placements/types/ContentStrategyInclusion.d.ts +8 -0
  13. package/dist/cjs/api/resources/organizations/resources/placements/types/ContentStrategyInclusion.js +3 -0
  14. package/dist/cjs/api/resources/organizations/resources/placements/types/CreateBatchActivationAttributes.d.ts +3 -2
  15. package/dist/cjs/api/resources/organizations/resources/placements/types/CreateBatchActivationSlot.d.ts +4 -2
  16. package/dist/cjs/api/resources/organizations/resources/placements/types/IncludedResource.d.ts +19 -0
  17. package/dist/cjs/api/resources/organizations/resources/placements/types/IncludedResource.js +3 -0
  18. package/dist/cjs/api/resources/organizations/resources/placements/types/MainPagePlacementAttributes.d.ts +1 -1
  19. package/dist/cjs/api/resources/organizations/resources/placements/types/MainPagePlacementData.d.ts +2 -0
  20. package/dist/cjs/api/resources/organizations/resources/placements/types/PlacementFormatUnion.d.ts +9 -6
  21. package/dist/cjs/api/resources/organizations/resources/placements/types/PlacementListResponse.d.ts +2 -2
  22. package/dist/cjs/api/resources/organizations/resources/placements/types/PlacementRelationships.d.ts +8 -0
  23. package/dist/cjs/api/resources/organizations/resources/placements/types/PlacementRelationships.js +3 -0
  24. package/dist/cjs/api/resources/organizations/resources/placements/types/PlacementResource.d.ts +2 -2
  25. package/dist/cjs/api/resources/organizations/resources/placements/types/PushNotificationPlacementAttributes.d.ts +1 -1
  26. package/dist/cjs/api/resources/organizations/resources/placements/types/PushNotificationPlacementData.d.ts +2 -0
  27. package/dist/cjs/api/resources/organizations/resources/placements/types/ResourceIdentifier.d.ts +9 -0
  28. package/dist/cjs/api/resources/organizations/resources/placements/types/ResourceIdentifier.js +3 -0
  29. package/dist/cjs/api/resources/organizations/resources/placements/types/ToManyRelationship.d.ts +8 -0
  30. package/dist/cjs/api/resources/organizations/resources/placements/types/ToManyRelationship.js +3 -0
  31. package/dist/cjs/api/resources/organizations/resources/placements/types/ToOneRelationship.d.ts +8 -0
  32. package/dist/cjs/api/resources/organizations/resources/placements/types/ToOneRelationship.js +3 -0
  33. package/dist/cjs/api/resources/organizations/resources/placements/types/UpdateBatchActivationAttributes.d.ts +3 -2
  34. package/dist/cjs/api/resources/organizations/resources/placements/types/UpdateBatchActivationSlot.d.ts +5 -3
  35. package/dist/cjs/api/resources/organizations/resources/placements/types/index.d.ts +10 -1
  36. package/dist/cjs/api/resources/organizations/resources/placements/types/index.js +10 -1
  37. package/dist/cjs/api/resources/users/resources/rewards/types/BatchesResponseObject.d.ts +1 -1
  38. package/dist/cjs/api/resources/users/resources/rewards/types/{BatchSlotData.d.ts → PlacementBatchAttributes.d.ts} +4 -6
  39. package/dist/cjs/api/resources/users/resources/rewards/types/PlacementBatchAttributes.js +3 -0
  40. package/dist/cjs/api/resources/users/resources/rewards/types/PlacementBatchData.d.ts +10 -0
  41. package/dist/cjs/api/resources/users/resources/rewards/types/PlacementBatchData.js +3 -0
  42. package/dist/cjs/api/resources/users/resources/rewards/types/index.d.ts +2 -1
  43. package/dist/cjs/api/resources/users/resources/rewards/types/index.js +2 -1
  44. package/dist/cjs/version.d.ts +1 -1
  45. package/dist/cjs/version.js +1 -1
  46. package/dist/esm/BaseClient.mjs +2 -2
  47. package/dist/esm/api/resources/organizations/resources/placements/client/requests/GetPlacementRequest.d.mts +1 -1
  48. package/dist/esm/api/resources/organizations/resources/placements/client/requests/ListPlacementsRequest.d.mts +1 -1
  49. package/dist/esm/api/resources/organizations/resources/placements/types/BatchActivationPlacementAttributes.d.mts +1 -4
  50. package/dist/esm/api/resources/organizations/resources/placements/types/BatchActivationPlacementData.d.mts +2 -0
  51. package/dist/esm/api/resources/organizations/resources/placements/types/BatchActivationPlacementRelationships.d.mts +8 -0
  52. package/dist/esm/api/resources/organizations/resources/placements/types/BatchActivationSlotAttributes.d.mts +9 -0
  53. package/dist/esm/api/resources/organizations/resources/placements/types/BatchActivationSlotInclusion.d.mts +9 -0
  54. package/dist/esm/api/resources/organizations/resources/placements/types/BatchActivationSlotInclusion.mjs +2 -0
  55. package/dist/esm/api/resources/organizations/resources/placements/types/BatchActivationSlotRelationships.d.mts +8 -0
  56. package/dist/esm/api/resources/organizations/resources/placements/types/BatchActivationSlotRelationships.mjs +2 -0
  57. package/dist/esm/api/resources/organizations/resources/placements/types/ContentStrategyInclusion.d.mts +8 -0
  58. package/dist/esm/api/resources/organizations/resources/placements/types/ContentStrategyInclusion.mjs +2 -0
  59. package/dist/esm/api/resources/organizations/resources/placements/types/CreateBatchActivationAttributes.d.mts +3 -2
  60. package/dist/esm/api/resources/organizations/resources/placements/types/CreateBatchActivationSlot.d.mts +4 -2
  61. package/dist/esm/api/resources/organizations/resources/placements/types/IncludedResource.d.mts +19 -0
  62. package/dist/esm/api/resources/organizations/resources/placements/types/IncludedResource.mjs +2 -0
  63. package/dist/esm/api/resources/organizations/resources/placements/types/MainPagePlacementAttributes.d.mts +1 -1
  64. package/dist/esm/api/resources/organizations/resources/placements/types/MainPagePlacementData.d.mts +2 -0
  65. package/dist/esm/api/resources/organizations/resources/placements/types/PlacementFormatUnion.d.mts +9 -6
  66. package/dist/esm/api/resources/organizations/resources/placements/types/PlacementListResponse.d.mts +2 -2
  67. package/dist/esm/api/resources/organizations/resources/placements/types/PlacementRelationships.d.mts +8 -0
  68. package/dist/esm/api/resources/organizations/resources/placements/types/PlacementRelationships.mjs +2 -0
  69. package/dist/esm/api/resources/organizations/resources/placements/types/PlacementResource.d.mts +2 -2
  70. package/dist/esm/api/resources/organizations/resources/placements/types/PushNotificationPlacementAttributes.d.mts +1 -1
  71. package/dist/esm/api/resources/organizations/resources/placements/types/PushNotificationPlacementData.d.mts +2 -0
  72. package/dist/esm/api/resources/organizations/resources/placements/types/ResourceIdentifier.d.mts +9 -0
  73. package/dist/esm/api/resources/organizations/resources/placements/types/ResourceIdentifier.mjs +2 -0
  74. package/dist/esm/api/resources/organizations/resources/placements/types/ToManyRelationship.d.mts +8 -0
  75. package/dist/esm/api/resources/organizations/resources/placements/types/ToManyRelationship.mjs +2 -0
  76. package/dist/esm/api/resources/organizations/resources/placements/types/ToOneRelationship.d.mts +8 -0
  77. package/dist/esm/api/resources/organizations/resources/placements/types/ToOneRelationship.mjs +2 -0
  78. package/dist/esm/api/resources/organizations/resources/placements/types/UpdateBatchActivationAttributes.d.mts +3 -2
  79. package/dist/esm/api/resources/organizations/resources/placements/types/UpdateBatchActivationSlot.d.mts +5 -3
  80. package/dist/esm/api/resources/organizations/resources/placements/types/index.d.mts +10 -1
  81. package/dist/esm/api/resources/organizations/resources/placements/types/index.mjs +10 -1
  82. package/dist/esm/api/resources/users/resources/rewards/types/BatchesResponseObject.d.mts +1 -1
  83. package/dist/esm/api/resources/users/resources/rewards/types/{BatchSlotData.d.mts → PlacementBatchAttributes.d.mts} +4 -6
  84. package/dist/esm/api/resources/users/resources/rewards/types/PlacementBatchAttributes.mjs +2 -0
  85. package/dist/esm/api/resources/users/resources/rewards/types/PlacementBatchData.d.mts +10 -0
  86. package/dist/esm/api/resources/users/resources/rewards/types/PlacementBatchData.mjs +2 -0
  87. package/dist/esm/api/resources/users/resources/rewards/types/index.d.mts +2 -1
  88. package/dist/esm/api/resources/users/resources/rewards/types/index.mjs +2 -1
  89. package/dist/esm/version.d.mts +1 -1
  90. package/dist/esm/version.mjs +1 -1
  91. package/package.json +1 -1
  92. package/dist/cjs/api/resources/organizations/resources/placements/types/BatchActivationSlot.d.ts +0 -11
  93. package/dist/esm/api/resources/organizations/resources/placements/types/BatchActivationSlot.d.mts +0 -11
  94. /package/dist/cjs/api/resources/organizations/resources/placements/types/{BatchActivationSlot.js → BatchActivationPlacementRelationships.js} +0 -0
  95. /package/dist/cjs/api/resources/{users/resources/rewards/types/BatchSlotData.js → organizations/resources/placements/types/BatchActivationSlotAttributes.js} +0 -0
  96. /package/dist/esm/api/resources/organizations/resources/placements/types/{BatchActivationSlot.mjs → BatchActivationPlacementRelationships.mjs} +0 -0
  97. /package/dist/esm/api/resources/{users/resources/rewards/types/BatchSlotData.mjs → organizations/resources/placements/types/BatchActivationSlotAttributes.mjs} +0 -0
@@ -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";
@@ -3,5 +3,5 @@ import type * as KardApi from "../../../../../index.mjs";
3
3
  * Ordered list of slots for a batch-activation placement, with freshness fields and per-slot offer sets.
4
4
  */
5
5
  export interface BatchesResponseObject {
6
- data: KardApi.users.BatchSlotData[];
6
+ data: KardApi.users.PlacementBatchData[];
7
7
  }
@@ -1,12 +1,10 @@
1
1
  import type * as KardApi from "../../../../../index.mjs";
2
2
  /**
3
- * One slot in a batch-activation placement, with freshness fields and the offers that resolve under the slot's content strategy.
3
+ * Attributes of a placement batch slot.
4
4
  */
5
- export interface BatchSlotData {
6
- /** Stable identifier for the slot within the placement */
7
- slotId: string;
8
- /** Customer-defined alias for the slot, unique within the placement */
9
- alias: string;
5
+ export interface PlacementBatchAttributes {
6
+ /** Display name for the slot. Falls back to the slot's customer-defined alias, or — when the alias is absent — the name of the placement referenced by the slot. */
7
+ name: string;
10
8
  /** Whether the slot is still considered "fresh" for the user. Set to false only when the slot's `expiresAt` is in the past AND the slot resolves to a non-empty offer set; an empty offer set keeps the slot active so partner UIs do not promote "tap to refresh" with nothing to show. */
11
9
  isActive: boolean;
12
10
  /** Timestamp of the most recent placementSlotAttribution ACTIVATE event for this (user, placement, slot). Absent for cold slots that have never been activated. */
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,10 @@
1
+ import type * as KardApi from "../../../../../index.mjs";
2
+ /**
3
+ * One slot in a batch-activation placement, with freshness fields and the offers that resolve under the slot's content strategy.
4
+ */
5
+ export interface PlacementBatchData {
6
+ /** Stable identifier for the slot within the placement */
7
+ id: string;
8
+ type: "placementBatch";
9
+ attributes: KardApi.users.PlacementBatchAttributes;
10
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -2,7 +2,6 @@ export * from "./Amount.mjs";
2
2
  export * from "./AmountType.mjs";
3
3
  export * from "./Asset.mjs";
4
4
  export * from "./BatchesResponseObject.mjs";
5
- export * from "./BatchSlotData.mjs";
6
5
  export * from "./ButtonStyle.mjs";
7
6
  export * from "./CategoryData.mjs";
8
7
  export * from "./CategoryFields.mjs";
@@ -40,6 +39,8 @@ export * from "./OffersResponseObject.mjs";
40
39
  export * from "./OperationHours.mjs";
41
40
  export * from "./OperationPeriod.mjs";
42
41
  export * from "./OperationTime.mjs";
42
+ export * from "./PlacementBatchAttributes.mjs";
43
+ export * from "./PlacementBatchData.mjs";
43
44
  export * from "./ProgressBar.mjs";
44
45
  export * from "./ProgressBarLabelPair.mjs";
45
46
  export * from "./ProgressBarLabels.mjs";
@@ -2,7 +2,6 @@ export * from "./Amount.mjs";
2
2
  export * from "./AmountType.mjs";
3
3
  export * from "./Asset.mjs";
4
4
  export * from "./BatchesResponseObject.mjs";
5
- export * from "./BatchSlotData.mjs";
6
5
  export * from "./ButtonStyle.mjs";
7
6
  export * from "./CategoryData.mjs";
8
7
  export * from "./CategoryFields.mjs";
@@ -40,6 +39,8 @@ export * from "./OffersResponseObject.mjs";
40
39
  export * from "./OperationHours.mjs";
41
40
  export * from "./OperationPeriod.mjs";
42
41
  export * from "./OperationTime.mjs";
42
+ export * from "./PlacementBatchAttributes.mjs";
43
+ export * from "./PlacementBatchData.mjs";
43
44
  export * from "./ProgressBar.mjs";
44
45
  export * from "./ProgressBarLabelPair.mjs";
45
46
  export * from "./ProgressBarLabels.mjs";
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "24.1.0";
1
+ export declare const SDK_VERSION = "26.0.0";
@@ -1 +1 @@
1
- export const SDK_VERSION = "24.1.0";
1
+ export const SDK_VERSION = "26.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": "26.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
- }