@kard-financial/sdk 18.0.0 → 18.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 (100) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/api/resources/organizations/client/Client.d.ts +3 -0
  3. package/dist/cjs/api/resources/organizations/client/Client.js +7 -2
  4. package/dist/cjs/api/resources/organizations/resources/contentStrategies/client/Client.d.ts +127 -0
  5. package/dist/cjs/api/resources/organizations/resources/contentStrategies/client/Client.js +414 -0
  6. package/dist/cjs/api/resources/organizations/resources/contentStrategies/client/index.d.ts +1 -0
  7. package/dist/cjs/api/resources/organizations/resources/contentStrategies/client/index.js +17 -0
  8. package/dist/cjs/api/resources/organizations/resources/contentStrategies/client/requests/ListContentStrategiesRequest.d.ts +12 -0
  9. package/dist/cjs/api/resources/organizations/resources/contentStrategies/client/requests/ListContentStrategiesRequest.js +3 -0
  10. package/dist/cjs/api/resources/organizations/resources/contentStrategies/client/requests/index.d.ts +1 -0
  11. package/dist/cjs/api/resources/organizations/resources/contentStrategies/client/requests/index.js +2 -0
  12. package/dist/cjs/api/resources/organizations/resources/contentStrategies/exports.d.ts +2 -0
  13. package/dist/cjs/api/resources/organizations/resources/contentStrategies/exports.js +21 -0
  14. package/dist/cjs/api/resources/organizations/resources/contentStrategies/index.d.ts +2 -0
  15. package/dist/cjs/api/resources/organizations/resources/contentStrategies/index.js +18 -0
  16. package/dist/cjs/api/resources/organizations/resources/contentStrategies/types/ContentStrategyAttributes.d.ts +22 -0
  17. package/dist/cjs/api/resources/organizations/resources/contentStrategies/types/ContentStrategyAttributes.js +3 -0
  18. package/dist/cjs/api/resources/organizations/resources/contentStrategies/types/ContentStrategyFilter.d.ts +8 -0
  19. package/dist/cjs/api/resources/organizations/resources/contentStrategies/types/ContentStrategyFilter.js +11 -0
  20. package/dist/cjs/api/resources/organizations/resources/contentStrategies/types/ContentStrategyListResponse.d.ts +11 -0
  21. package/dist/cjs/api/resources/organizations/resources/contentStrategies/types/ContentStrategyListResponse.js +3 -0
  22. package/dist/cjs/api/resources/organizations/resources/contentStrategies/types/ContentStrategyResponse.d.ts +26 -0
  23. package/dist/cjs/api/resources/organizations/resources/contentStrategies/types/ContentStrategyResponse.js +3 -0
  24. package/dist/cjs/api/resources/organizations/resources/contentStrategies/types/CreateContentStrategyAttributes.d.ts +25 -0
  25. package/dist/cjs/api/resources/organizations/resources/contentStrategies/types/CreateContentStrategyAttributes.js +3 -0
  26. package/dist/cjs/api/resources/organizations/resources/contentStrategies/types/CreateContentStrategyRequestBody.d.ts +22 -0
  27. package/dist/cjs/api/resources/organizations/resources/contentStrategies/types/CreateContentStrategyRequestBody.js +3 -0
  28. package/dist/cjs/api/resources/organizations/resources/contentStrategies/types/CreateContentStrategyRequestData.d.ts +10 -0
  29. package/dist/cjs/api/resources/organizations/resources/contentStrategies/types/CreateContentStrategyRequestData.js +3 -0
  30. package/dist/cjs/api/resources/organizations/resources/contentStrategies/types/UpdateContentStrategyAttributes.d.ts +25 -0
  31. package/dist/cjs/api/resources/organizations/resources/contentStrategies/types/UpdateContentStrategyAttributes.js +3 -0
  32. package/dist/cjs/api/resources/organizations/resources/contentStrategies/types/UpdateContentStrategyRequestBody.d.ts +8 -0
  33. package/dist/cjs/api/resources/organizations/resources/contentStrategies/types/UpdateContentStrategyRequestBody.js +3 -0
  34. package/dist/cjs/api/resources/organizations/resources/contentStrategies/types/UpdateContentStrategyRequestData.d.ts +10 -0
  35. package/dist/cjs/api/resources/organizations/resources/contentStrategies/types/UpdateContentStrategyRequestData.js +3 -0
  36. package/dist/cjs/api/resources/organizations/resources/contentStrategies/types/index.d.ts +10 -0
  37. package/dist/cjs/api/resources/organizations/resources/contentStrategies/types/index.js +26 -0
  38. package/dist/cjs/api/resources/organizations/resources/index.d.ts +3 -0
  39. package/dist/cjs/api/resources/organizations/resources/index.js +4 -1
  40. package/dist/cjs/api/resources/organizations/resources/placements/client/Client.js +2 -1
  41. package/dist/cjs/api/resources/organizations/resources/placements/client/requests/ListPlacementsRequest.d.ts +2 -0
  42. package/dist/cjs/api/resources/organizations/resources/placements/types/CreateMainPageAttributes.d.ts +2 -0
  43. package/dist/cjs/api/resources/organizations/resources/placements/types/CreatePushNotificationAttributes.d.ts +2 -0
  44. package/dist/cjs/api/resources/organizations/resources/placements/types/MainPagePlacementAttributes.d.ts +2 -0
  45. package/dist/cjs/api/resources/organizations/resources/placements/types/PushNotificationPlacementAttributes.d.ts +2 -0
  46. package/dist/cjs/api/resources/organizations/resources/placements/types/UpdateMainPageAttributes.d.ts +2 -0
  47. package/dist/cjs/api/resources/organizations/resources/placements/types/UpdatePushNotificationAttributes.d.ts +2 -0
  48. package/dist/cjs/version.d.ts +1 -1
  49. package/dist/cjs/version.js +1 -1
  50. package/dist/esm/BaseClient.mjs +2 -2
  51. package/dist/esm/api/resources/organizations/client/Client.d.mts +3 -0
  52. package/dist/esm/api/resources/organizations/client/Client.mjs +5 -0
  53. package/dist/esm/api/resources/organizations/resources/contentStrategies/client/Client.d.mts +127 -0
  54. package/dist/esm/api/resources/organizations/resources/contentStrategies/client/Client.mjs +377 -0
  55. package/dist/esm/api/resources/organizations/resources/contentStrategies/client/index.d.mts +1 -0
  56. package/dist/esm/api/resources/organizations/resources/contentStrategies/client/index.mjs +1 -0
  57. package/dist/esm/api/resources/organizations/resources/contentStrategies/client/requests/ListContentStrategiesRequest.d.mts +12 -0
  58. package/dist/esm/api/resources/organizations/resources/contentStrategies/client/requests/ListContentStrategiesRequest.mjs +2 -0
  59. package/dist/esm/api/resources/organizations/resources/contentStrategies/client/requests/index.d.mts +1 -0
  60. package/dist/esm/api/resources/organizations/resources/contentStrategies/client/requests/index.mjs +1 -0
  61. package/dist/esm/api/resources/organizations/resources/contentStrategies/exports.d.mts +2 -0
  62. package/dist/esm/api/resources/organizations/resources/contentStrategies/exports.mjs +3 -0
  63. package/dist/esm/api/resources/organizations/resources/contentStrategies/index.d.mts +2 -0
  64. package/dist/esm/api/resources/organizations/resources/contentStrategies/index.mjs +2 -0
  65. package/dist/esm/api/resources/organizations/resources/contentStrategies/types/ContentStrategyAttributes.d.mts +22 -0
  66. package/dist/esm/api/resources/organizations/resources/contentStrategies/types/ContentStrategyAttributes.mjs +2 -0
  67. package/dist/esm/api/resources/organizations/resources/contentStrategies/types/ContentStrategyFilter.d.mts +8 -0
  68. package/dist/esm/api/resources/organizations/resources/contentStrategies/types/ContentStrategyFilter.mjs +8 -0
  69. package/dist/esm/api/resources/organizations/resources/contentStrategies/types/ContentStrategyListResponse.d.mts +11 -0
  70. package/dist/esm/api/resources/organizations/resources/contentStrategies/types/ContentStrategyListResponse.mjs +2 -0
  71. package/dist/esm/api/resources/organizations/resources/contentStrategies/types/ContentStrategyResponse.d.mts +26 -0
  72. package/dist/esm/api/resources/organizations/resources/contentStrategies/types/ContentStrategyResponse.mjs +2 -0
  73. package/dist/esm/api/resources/organizations/resources/contentStrategies/types/CreateContentStrategyAttributes.d.mts +25 -0
  74. package/dist/esm/api/resources/organizations/resources/contentStrategies/types/CreateContentStrategyAttributes.mjs +2 -0
  75. package/dist/esm/api/resources/organizations/resources/contentStrategies/types/CreateContentStrategyRequestBody.d.mts +22 -0
  76. package/dist/esm/api/resources/organizations/resources/contentStrategies/types/CreateContentStrategyRequestBody.mjs +2 -0
  77. package/dist/esm/api/resources/organizations/resources/contentStrategies/types/CreateContentStrategyRequestData.d.mts +10 -0
  78. package/dist/esm/api/resources/organizations/resources/contentStrategies/types/CreateContentStrategyRequestData.mjs +2 -0
  79. package/dist/esm/api/resources/organizations/resources/contentStrategies/types/UpdateContentStrategyAttributes.d.mts +25 -0
  80. package/dist/esm/api/resources/organizations/resources/contentStrategies/types/UpdateContentStrategyAttributes.mjs +2 -0
  81. package/dist/esm/api/resources/organizations/resources/contentStrategies/types/UpdateContentStrategyRequestBody.d.mts +8 -0
  82. package/dist/esm/api/resources/organizations/resources/contentStrategies/types/UpdateContentStrategyRequestBody.mjs +2 -0
  83. package/dist/esm/api/resources/organizations/resources/contentStrategies/types/UpdateContentStrategyRequestData.d.mts +10 -0
  84. package/dist/esm/api/resources/organizations/resources/contentStrategies/types/UpdateContentStrategyRequestData.mjs +2 -0
  85. package/dist/esm/api/resources/organizations/resources/contentStrategies/types/index.d.mts +10 -0
  86. package/dist/esm/api/resources/organizations/resources/contentStrategies/types/index.mjs +10 -0
  87. package/dist/esm/api/resources/organizations/resources/index.d.mts +3 -0
  88. package/dist/esm/api/resources/organizations/resources/index.mjs +3 -0
  89. package/dist/esm/api/resources/organizations/resources/placements/client/Client.mjs +2 -1
  90. package/dist/esm/api/resources/organizations/resources/placements/client/requests/ListPlacementsRequest.d.mts +2 -0
  91. package/dist/esm/api/resources/organizations/resources/placements/types/CreateMainPageAttributes.d.mts +2 -0
  92. package/dist/esm/api/resources/organizations/resources/placements/types/CreatePushNotificationAttributes.d.mts +2 -0
  93. package/dist/esm/api/resources/organizations/resources/placements/types/MainPagePlacementAttributes.d.mts +2 -0
  94. package/dist/esm/api/resources/organizations/resources/placements/types/PushNotificationPlacementAttributes.d.mts +2 -0
  95. package/dist/esm/api/resources/organizations/resources/placements/types/UpdateMainPageAttributes.d.mts +2 -0
  96. package/dist/esm/api/resources/organizations/resources/placements/types/UpdatePushNotificationAttributes.d.mts +2 -0
  97. package/dist/esm/version.d.mts +1 -1
  98. package/dist/esm/version.mjs +1 -1
  99. package/package.json +12 -1
  100. package/reference.md +386 -0
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
16
+ };
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.ContentStrategiesClient = void 0;
19
+ var Client_js_1 = require("./client/Client.js");
20
+ Object.defineProperty(exports, "ContentStrategiesClient", { enumerable: true, get: function () { return Client_js_1.ContentStrategiesClient; } });
21
+ __exportStar(require("./client/index.js"), exports);
@@ -0,0 +1,2 @@
1
+ export * from "./client/index.js";
2
+ export * from "./types/index.js";
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./client/index.js"), exports);
18
+ __exportStar(require("./types/index.js"), exports);
@@ -0,0 +1,22 @@
1
+ import type * as KardApi from "../../../../../index.js";
2
+ /**
3
+ * Attributes for a content strategy
4
+ */
5
+ export interface ContentStrategyAttributes {
6
+ /** Name of the content strategy (unique within an organization) */
7
+ name: string;
8
+ /** ID of the organization this content strategy belongs to */
9
+ organizationId: string;
10
+ /** Filters applied when selecting offers for the strategy */
11
+ filters: KardApi.organizations.ContentStrategyFilter[];
12
+ /** Merchant categories to include */
13
+ categories: KardApi.CategoryOption[];
14
+ /** Merchant categories to exclude */
15
+ categoryExclusions: KardApi.CategoryOption[];
16
+ /** Merchant IDs to exclude */
17
+ merchantExclusions: string[];
18
+ /** When the content strategy was created (ISO 8601 UTC) */
19
+ createdAt: string;
20
+ /** When the content strategy was last modified (ISO 8601 UTC) */
21
+ lastModified: string;
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
+ /** Filter applied to the offers selected by a content strategy. The v1 starter set covers newly-live, expiring-soon, highest-cashback, and personalized selections. */
2
+ export declare const ContentStrategyFilter: {
3
+ readonly NewlyLive: "NEWLY_LIVE";
4
+ readonly ExpiringSoon: "EXPIRING_SOON";
5
+ readonly HighestCashback: "HIGHEST_CASHBACK";
6
+ readonly Personalized: "PERSONALIZED";
7
+ };
8
+ export type ContentStrategyFilter = (typeof ContentStrategyFilter)[keyof typeof ContentStrategyFilter];
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.ContentStrategyFilter = void 0;
5
+ /** Filter applied to the offers selected by a content strategy. The v1 starter set covers newly-live, expiring-soon, highest-cashback, and personalized selections. */
6
+ exports.ContentStrategyFilter = {
7
+ NewlyLive: "NEWLY_LIVE",
8
+ ExpiringSoon: "EXPIRING_SOON",
9
+ HighestCashback: "HIGHEST_CASHBACK",
10
+ Personalized: "PERSONALIZED",
11
+ };
@@ -0,0 +1,11 @@
1
+ import type * as KardApi from "../../../../../index.js";
2
+ /**
3
+ * Paginated list of content strategies
4
+ */
5
+ export interface ContentStrategyListResponse {
6
+ /** Array of content strategy resources */
7
+ data: KardApi.organizations.ContentStrategyResponse[];
8
+ links?: KardApi.Links | undefined;
9
+ /** Pagination metadata */
10
+ meta?: KardApi.OrganizationPaginationMetadata | undefined;
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,26 @@
1
+ import type * as KardApi from "../../../../../index.js";
2
+ /**
3
+ * Content strategy resource response
4
+ *
5
+ * @example
6
+ * {
7
+ * type: "contentStrategy",
8
+ * id: "01961e5a-b74c-7d42-8456-d3a1f2c90e71",
9
+ * attributes: {
10
+ * name: "Featured Travel",
11
+ * organizationId: "org-123",
12
+ * filters: [KardApi.organizations.ContentStrategyFilter.HighestCashback, KardApi.organizations.ContentStrategyFilter.NewlyLive],
13
+ * categories: [KardApi.CategoryOption.Travel],
14
+ * categoryExclusions: [KardApi.CategoryOption.Gas],
15
+ * merchantExclusions: ["merchant-abc"],
16
+ * createdAt: "2026-04-15T12:00:00Z",
17
+ * lastModified: "2026-04-15T12:00:00Z"
18
+ * }
19
+ * }
20
+ */
21
+ export interface ContentStrategyResponse {
22
+ type: "contentStrategy";
23
+ /** Unique identifier of the content strategy (UUID v7) */
24
+ id: string;
25
+ attributes: KardApi.organizations.ContentStrategyAttributes;
26
+ }
@@ -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,25 @@
1
+ import type * as KardApi from "../../../../../index.js";
2
+ /**
3
+ * Attributes for creating a content strategy
4
+ *
5
+ * @example
6
+ * {
7
+ * name: "Featured Travel",
8
+ * filters: [KardApi.organizations.ContentStrategyFilter.HighestCashback, KardApi.organizations.ContentStrategyFilter.NewlyLive],
9
+ * categories: [KardApi.CategoryOption.Travel],
10
+ * categoryExclusions: [KardApi.CategoryOption.Gas],
11
+ * merchantExclusions: ["merchant-abc"]
12
+ * }
13
+ */
14
+ export interface CreateContentStrategyAttributes {
15
+ /** Name of the content strategy (unique within an organization) */
16
+ name: string;
17
+ /** Filters applied when selecting offers for the strategy */
18
+ filters: KardApi.organizations.ContentStrategyFilter[];
19
+ /** Merchant categories to include */
20
+ categories: KardApi.CategoryOption[];
21
+ /** Merchant categories to exclude */
22
+ categoryExclusions: KardApi.CategoryOption[];
23
+ /** Merchant IDs to exclude */
24
+ merchantExclusions: string[];
25
+ }
@@ -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
+ * Request body for creating a content strategy
4
+ *
5
+ * @example
6
+ * {
7
+ * data: {
8
+ * type: "contentStrategy",
9
+ * attributes: {
10
+ * name: "Featured Travel",
11
+ * filters: [KardApi.organizations.ContentStrategyFilter.HighestCashback, KardApi.organizations.ContentStrategyFilter.NewlyLive],
12
+ * categories: [KardApi.CategoryOption.Travel],
13
+ * categoryExclusions: [KardApi.CategoryOption.Gas],
14
+ * merchantExclusions: ["merchant-abc"]
15
+ * }
16
+ * }
17
+ * }
18
+ */
19
+ export interface CreateContentStrategyRequestBody {
20
+ /** Content strategy data for creation */
21
+ data: KardApi.organizations.CreateContentStrategyRequestData;
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,10 @@
1
+ import type * as KardApi from "../../../../../index.js";
2
+ /**
3
+ * Content strategy data structure for creation
4
+ */
5
+ export interface CreateContentStrategyRequestData {
6
+ /** Resource type identifier */
7
+ type: "contentStrategy";
8
+ /** Content strategy attributes for creation */
9
+ attributes: KardApi.organizations.CreateContentStrategyAttributes;
10
+ }
@@ -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,25 @@
1
+ import type * as KardApi from "../../../../../index.js";
2
+ /**
3
+ * Attributes for updating a content strategy. All fields are required.
4
+ *
5
+ * @example
6
+ * {
7
+ * name: "Updated Travel Strategy",
8
+ * filters: [KardApi.organizations.ContentStrategyFilter.ExpiringSoon, KardApi.organizations.ContentStrategyFilter.Personalized],
9
+ * categories: [KardApi.CategoryOption.Travel, KardApi.CategoryOption.FoodBeverage],
10
+ * categoryExclusions: [],
11
+ * merchantExclusions: ["merchant-xyz"]
12
+ * }
13
+ */
14
+ export interface UpdateContentStrategyAttributes {
15
+ /** Name of the content strategy (unique within an organization) */
16
+ name: string;
17
+ /** Filters applied when selecting offers for the strategy */
18
+ filters: KardApi.organizations.ContentStrategyFilter[];
19
+ /** Merchant categories to include */
20
+ categories: KardApi.CategoryOption[];
21
+ /** Merchant categories to exclude */
22
+ categoryExclusions: KardApi.CategoryOption[];
23
+ /** Merchant IDs to exclude */
24
+ merchantExclusions: string[];
25
+ }
@@ -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
+ * Request body for updating a content strategy
4
+ */
5
+ export interface UpdateContentStrategyRequestBody {
6
+ /** Content strategy data for update */
7
+ data: KardApi.organizations.UpdateContentStrategyRequestData;
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,10 @@
1
+ import type * as KardApi from "../../../../../index.js";
2
+ /**
3
+ * Content strategy data structure for update
4
+ */
5
+ export interface UpdateContentStrategyRequestData {
6
+ /** Resource type identifier */
7
+ type: "contentStrategy";
8
+ /** Content strategy attributes for update */
9
+ attributes: KardApi.organizations.UpdateContentStrategyAttributes;
10
+ }
@@ -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,10 @@
1
+ export * from "./ContentStrategyAttributes.js";
2
+ export * from "./ContentStrategyFilter.js";
3
+ export * from "./ContentStrategyListResponse.js";
4
+ export * from "./ContentStrategyResponse.js";
5
+ export * from "./CreateContentStrategyAttributes.js";
6
+ export * from "./CreateContentStrategyRequestBody.js";
7
+ export * from "./CreateContentStrategyRequestData.js";
8
+ export * from "./UpdateContentStrategyAttributes.js";
9
+ export * from "./UpdateContentStrategyRequestBody.js";
10
+ export * from "./UpdateContentStrategyRequestData.js";
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./ContentStrategyAttributes.js"), exports);
18
+ __exportStar(require("./ContentStrategyFilter.js"), exports);
19
+ __exportStar(require("./ContentStrategyListResponse.js"), exports);
20
+ __exportStar(require("./ContentStrategyResponse.js"), exports);
21
+ __exportStar(require("./CreateContentStrategyAttributes.js"), exports);
22
+ __exportStar(require("./CreateContentStrategyRequestBody.js"), exports);
23
+ __exportStar(require("./CreateContentStrategyRequestData.js"), exports);
24
+ __exportStar(require("./UpdateContentStrategyAttributes.js"), exports);
25
+ __exportStar(require("./UpdateContentStrategyRequestBody.js"), exports);
26
+ __exportStar(require("./UpdateContentStrategyRequestData.js"), exports);
@@ -1,6 +1,9 @@
1
1
  export * from "./children/client/requests/index.js";
2
2
  export * as children from "./children/index.js";
3
3
  export * from "./children/types/index.js";
4
+ export * from "./contentStrategies/client/requests/index.js";
5
+ export * as contentStrategies from "./contentStrategies/index.js";
6
+ export * from "./contentStrategies/types/index.js";
4
7
  export * from "./placements/client/requests/index.js";
5
8
  export * as placements from "./placements/index.js";
6
9
  export * from "./placements/types/index.js";
@@ -36,10 +36,13 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  };
37
37
  })();
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.placements = exports.children = void 0;
39
+ exports.placements = exports.contentStrategies = exports.children = void 0;
40
40
  __exportStar(require("./children/client/requests/index.js"), exports);
41
41
  exports.children = __importStar(require("./children/index.js"));
42
42
  __exportStar(require("./children/types/index.js"), exports);
43
+ __exportStar(require("./contentStrategies/client/requests/index.js"), exports);
44
+ exports.contentStrategies = __importStar(require("./contentStrategies/index.js"));
45
+ __exportStar(require("./contentStrategies/types/index.js"), exports);
43
46
  __exportStar(require("./placements/client/requests/index.js"), exports);
44
47
  exports.placements = __importStar(require("./placements/index.js"));
45
48
  __exportStar(require("./placements/types/index.js"), exports);
@@ -166,10 +166,11 @@ class PlacementsClient {
166
166
  __list(organizationId_1) {
167
167
  return __awaiter(this, arguments, void 0, function* (organizationId, request = {}, requestOptions) {
168
168
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
169
- const { "filter[type]": filterType, "filter[name]": filterName, "page[after]": pageAfter, "page[size]": pageSize, } = request;
169
+ const { "filter[type]": filterType, "filter[name]": filterName, "filter[contentStrategyId]": filterContentStrategyId, "page[after]": pageAfter, "page[size]": pageSize, } = request;
170
170
  const _queryParams = {
171
171
  "filter[type]": filterType != null ? filterType : undefined,
172
172
  "filter[name]": filterName,
173
+ "filter[contentStrategyId]": filterContentStrategyId,
173
174
  "page[after]": pageAfter,
174
175
  "page[size]": pageSize,
175
176
  };
@@ -8,6 +8,8 @@ export interface ListPlacementsRequest {
8
8
  "filter[type]"?: KardApi.organizations.PlacementTypeFilter;
9
9
  /** Filter by exact placement name (unique within an organization per type) */
10
10
  "filter[name]"?: string;
11
+ /** Filter by the ID of the content strategy linked to the placement */
12
+ "filter[contentStrategyId]"?: string;
11
13
  /** Cursor value for the next page of results */
12
14
  "page[after]"?: string;
13
15
  /** Maximum number of records to return [1 - 200] (default = 200) */
@@ -12,4 +12,6 @@ export interface CreateMainPageAttributes {
12
12
  name: string;
13
13
  /** Number of available slots (minimum 1) */
14
14
  availableSlots: number;
15
+ /** ID of the content strategy to link this placement to */
16
+ contentStrategyId?: string | undefined;
15
17
  }
@@ -16,4 +16,6 @@ export interface CreatePushNotificationAttributes {
16
16
  name: string;
17
17
  /** Delivery cadence for the notification */
18
18
  cadence: KardApi.organizations.Cadence;
19
+ /** ID of the content strategy to link this placement to */
20
+ contentStrategyId?: string | undefined;
19
21
  }
@@ -8,6 +8,8 @@ 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 */
12
+ contentStrategyId?: string | undefined;
11
13
  /** When the placement was created (ISO 8601 UTC) */
12
14
  createdAt: string;
13
15
  /** When the placement was last modified (ISO 8601 UTC) */
@@ -9,6 +9,8 @@ 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 */
13
+ contentStrategyId?: string | undefined;
12
14
  /** When the placement was created (ISO 8601 UTC) */
13
15
  createdAt: string;
14
16
  /** When the placement was last modified (ISO 8601 UTC) */
@@ -12,4 +12,6 @@ export interface UpdateMainPageAttributes {
12
12
  name: string;
13
13
  /** Number of available slots (minimum 1) */
14
14
  availableSlots: number;
15
+ /** ID of the content strategy to link this placement to. Omit to clear any existing link (PUT requires the full attribute set, so a missing value unlinks the placement). */
16
+ contentStrategyId?: string | undefined;
15
17
  }
@@ -17,4 +17,6 @@ export interface UpdatePushNotificationAttributes {
17
17
  name: string;
18
18
  /** Delivery cadence for the notification */
19
19
  cadence: KardApi.organizations.Cadence;
20
+ /** ID of the content strategy to link this placement to. Omit to clear any existing link (PUT requires the full attribute set, so a missing value unlinks the placement). */
21
+ contentStrategyId?: string | undefined;
20
22
  }
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "18.0.0";
1
+ export declare const SDK_VERSION = "18.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 = "18.0.0";
4
+ exports.SDK_VERSION = "18.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": "18.0.0",
10
- "User-Agent": "@kard-financial/sdk/18.0.0",
9
+ "X-Fern-SDK-Version": "18.2.0",
10
+ "User-Agent": "@kard-financial/sdk/18.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);
@@ -3,6 +3,7 @@ import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.mjs
3
3
  import * as core from "../../../../core/index.mjs";
4
4
  import * as KardApi from "../../../index.mjs";
5
5
  import { ChildrenClient } from "../resources/children/client/Client.mjs";
6
+ import { ContentStrategiesClient } from "../resources/contentStrategies/client/Client.mjs";
6
7
  import { PlacementsClient } from "../resources/placements/client/Client.mjs";
7
8
  export declare namespace OrganizationsClient {
8
9
  type Options = BaseClientOptions;
@@ -12,9 +13,11 @@ export declare namespace OrganizationsClient {
12
13
  export declare class OrganizationsClient {
13
14
  protected readonly _options: NormalizedClientOptionsWithAuth<OrganizationsClient.Options>;
14
15
  protected _children: ChildrenClient | undefined;
16
+ protected _contentStrategies: ContentStrategiesClient | undefined;
15
17
  protected _placements: PlacementsClient | undefined;
16
18
  constructor(options?: OrganizationsClient.Options);
17
19
  get children(): ChildrenClient;
20
+ get contentStrategies(): ContentStrategiesClient;
18
21
  get placements(): PlacementsClient;
19
22
  /**
20
23
  * Retrieve organization details for the authenticated issuer
@@ -16,6 +16,7 @@ import { handleNonStatusCodeError } from "../../../../errors/handleNonStatusCode
16
16
  import * as errors from "../../../../errors/index.mjs";
17
17
  import * as KardApi from "../../../index.mjs";
18
18
  import { ChildrenClient } from "../resources/children/client/Client.mjs";
19
+ import { ContentStrategiesClient } from "../resources/contentStrategies/client/Client.mjs";
19
20
  import { PlacementsClient } from "../resources/placements/client/Client.mjs";
20
21
  export class OrganizationsClient {
21
22
  constructor(options = {}) {
@@ -25,6 +26,10 @@ export class OrganizationsClient {
25
26
  var _a;
26
27
  return ((_a = this._children) !== null && _a !== void 0 ? _a : (this._children = new ChildrenClient(this._options)));
27
28
  }
29
+ get contentStrategies() {
30
+ var _a;
31
+ return ((_a = this._contentStrategies) !== null && _a !== void 0 ? _a : (this._contentStrategies = new ContentStrategiesClient(this._options)));
32
+ }
28
33
  get placements() {
29
34
  var _a;
30
35
  return ((_a = this._placements) !== null && _a !== void 0 ? _a : (this._placements = new PlacementsClient(this._options)));
@@ -0,0 +1,127 @@
1
+ import type { BaseClientOptions, BaseRequestOptions } from "../../../../../../BaseClient.mjs";
2
+ import { type NormalizedClientOptionsWithAuth } from "../../../../../../BaseClient.mjs";
3
+ import * as core from "../../../../../../core/index.mjs";
4
+ import * as KardApi from "../../../../../index.mjs";
5
+ export declare namespace ContentStrategiesClient {
6
+ type Options = BaseClientOptions;
7
+ interface RequestOptions extends BaseRequestOptions {
8
+ }
9
+ }
10
+ export declare class ContentStrategiesClient {
11
+ protected readonly _options: NormalizedClientOptionsWithAuth<ContentStrategiesClient.Options>;
12
+ constructor(options?: ContentStrategiesClient.Options);
13
+ /**
14
+ * Create a content strategy for the organization. The strategy name must be unique within the organization.
15
+ *
16
+ * @param {string} organizationId - Unique identifier of the organization
17
+ * @param {KardApi.organizations.CreateContentStrategyRequestBody} request
18
+ * @param {ContentStrategiesClient.RequestOptions} requestOptions - Request-specific configuration.
19
+ *
20
+ * @throws {@link KardApi.UnauthorizedError}
21
+ * @throws {@link KardApi.ForbiddenError}
22
+ * @throws {@link KardApi.InvalidRequest}
23
+ * @throws {@link KardApi.ConflictError}
24
+ * @throws {@link KardApi.DoesNotExistError}
25
+ * @throws {@link KardApi.InternalServerError}
26
+ *
27
+ * @example
28
+ * await client.organizations.contentStrategies.create("org-123", {
29
+ * data: {
30
+ * type: "contentStrategy",
31
+ * attributes: {
32
+ * name: "Featured Travel",
33
+ * filters: ["HIGHEST_CASHBACK", "NEWLY_LIVE"],
34
+ * categories: ["Travel"],
35
+ * categoryExclusions: ["Gas"],
36
+ * merchantExclusions: ["merchant-abc"]
37
+ * }
38
+ * }
39
+ * })
40
+ */
41
+ create(organizationId: string, request: KardApi.organizations.CreateContentStrategyRequestBody, requestOptions?: ContentStrategiesClient.RequestOptions): core.HttpResponsePromise<KardApi.organizations.ContentStrategyResponse>;
42
+ private __create;
43
+ /**
44
+ * List content strategies belonging to the authenticated organization
45
+ *
46
+ * @param {string} organizationId - Unique identifier of the organization
47
+ * @param {KardApi.organizations.ListContentStrategiesRequest} request
48
+ * @param {ContentStrategiesClient.RequestOptions} requestOptions - Request-specific configuration.
49
+ *
50
+ * @throws {@link KardApi.UnauthorizedError}
51
+ * @throws {@link KardApi.ForbiddenError}
52
+ * @throws {@link KardApi.InvalidRequest}
53
+ * @throws {@link KardApi.DoesNotExistError}
54
+ * @throws {@link KardApi.InternalServerError}
55
+ *
56
+ * @example
57
+ * await client.organizations.contentStrategies.list("organizationId")
58
+ */
59
+ list(organizationId: string, request?: KardApi.organizations.ListContentStrategiesRequest, requestOptions?: ContentStrategiesClient.RequestOptions): core.HttpResponsePromise<KardApi.organizations.ContentStrategyListResponse>;
60
+ private __list;
61
+ /**
62
+ * Retrieve a specific content strategy
63
+ *
64
+ * @param {string} organizationId - Unique identifier of the organization
65
+ * @param {string} contentStrategyId - Unique identifier of the content strategy (UUID v7)
66
+ * @param {ContentStrategiesClient.RequestOptions} requestOptions - Request-specific configuration.
67
+ *
68
+ * @throws {@link KardApi.UnauthorizedError}
69
+ * @throws {@link KardApi.ForbiddenError}
70
+ * @throws {@link KardApi.DoesNotExistError}
71
+ * @throws {@link KardApi.InternalServerError}
72
+ *
73
+ * @example
74
+ * await client.organizations.contentStrategies.get("organizationId", "contentStrategyId")
75
+ */
76
+ get(organizationId: string, contentStrategyId: string, requestOptions?: ContentStrategiesClient.RequestOptions): core.HttpResponsePromise<KardApi.organizations.ContentStrategyResponse>;
77
+ private __get;
78
+ /**
79
+ * Replace a content strategy. All fields must be provided; any omitted attribute is treated as cleared.
80
+ *
81
+ * @param {string} organizationId - Unique identifier of the organization
82
+ * @param {string} contentStrategyId - Unique identifier of the content strategy (UUID v7)
83
+ * @param {KardApi.organizations.UpdateContentStrategyRequestBody} request
84
+ * @param {ContentStrategiesClient.RequestOptions} requestOptions - Request-specific configuration.
85
+ *
86
+ * @throws {@link KardApi.UnauthorizedError}
87
+ * @throws {@link KardApi.ForbiddenError}
88
+ * @throws {@link KardApi.InvalidRequest}
89
+ * @throws {@link KardApi.ConflictError}
90
+ * @throws {@link KardApi.DoesNotExistError}
91
+ * @throws {@link KardApi.InternalServerError}
92
+ *
93
+ * @example
94
+ * await client.organizations.contentStrategies.update("organizationId", "contentStrategyId", {
95
+ * data: {
96
+ * type: "contentStrategy",
97
+ * attributes: {
98
+ * name: "name",
99
+ * filters: ["NEWLY_LIVE", "NEWLY_LIVE"],
100
+ * categories: ["Arts & Entertainment", "Arts & Entertainment"],
101
+ * categoryExclusions: ["Arts & Entertainment", "Arts & Entertainment"],
102
+ * merchantExclusions: ["merchantExclusions", "merchantExclusions"]
103
+ * }
104
+ * }
105
+ * })
106
+ */
107
+ update(organizationId: string, contentStrategyId: string, request: KardApi.organizations.UpdateContentStrategyRequestBody, requestOptions?: ContentStrategiesClient.RequestOptions): core.HttpResponsePromise<KardApi.organizations.ContentStrategyResponse>;
108
+ private __update;
109
+ /**
110
+ * Delete a content strategy. Returns 409 if the strategy is still referenced by another resource.
111
+ *
112
+ * @param {string} organizationId - Unique identifier of the organization
113
+ * @param {string} contentStrategyId - Unique identifier of the content strategy (UUID v7)
114
+ * @param {ContentStrategiesClient.RequestOptions} requestOptions - Request-specific configuration.
115
+ *
116
+ * @throws {@link KardApi.UnauthorizedError}
117
+ * @throws {@link KardApi.ForbiddenError}
118
+ * @throws {@link KardApi.ConflictError}
119
+ * @throws {@link KardApi.DoesNotExistError}
120
+ * @throws {@link KardApi.InternalServerError}
121
+ *
122
+ * @example
123
+ * await client.organizations.contentStrategies.delete("organizationId", "contentStrategyId")
124
+ */
125
+ delete(organizationId: string, contentStrategyId: string, requestOptions?: ContentStrategiesClient.RequestOptions): core.HttpResponsePromise<KardApi.DeleteResourceResponse>;
126
+ private __delete;
127
+ }