@kard-financial/sdk 19.0.0 → 21.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 (40) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/api/resources/organizations/resources/contentStrategies/types/ContentStrategyAttributes.d.ts +0 -4
  3. package/dist/cjs/api/resources/organizations/resources/contentStrategies/types/ContentStrategyResponse.d.ts +1 -3
  4. package/dist/cjs/api/resources/organizations/resources/placements/client/Client.d.ts +2 -1
  5. package/dist/cjs/api/resources/organizations/resources/placements/client/Client.js +12 -6
  6. package/dist/cjs/api/resources/organizations/resources/placements/client/requests/GetPlacementRequest.d.ts +8 -0
  7. package/dist/cjs/api/resources/organizations/resources/placements/client/requests/GetPlacementRequest.js +3 -0
  8. package/dist/cjs/api/resources/organizations/resources/placements/client/requests/ListPlacementsRequest.d.ts +2 -0
  9. package/dist/cjs/api/resources/organizations/resources/placements/client/requests/index.d.ts +1 -0
  10. package/dist/cjs/api/resources/organizations/resources/placements/types/MainPagePlacementAttributes.d.ts +0 -4
  11. package/dist/cjs/api/resources/organizations/resources/placements/types/PlacementFormatUnion.d.ts +2 -6
  12. package/dist/cjs/api/resources/organizations/resources/placements/types/PlacementListResponse.d.ts +2 -0
  13. package/dist/cjs/api/resources/organizations/resources/placements/types/PlacementResource.d.ts +10 -0
  14. package/dist/cjs/api/resources/organizations/resources/placements/types/PlacementResource.js +3 -0
  15. package/dist/cjs/api/resources/organizations/resources/placements/types/PushNotificationPlacementAttributes.d.ts +0 -4
  16. package/dist/cjs/api/resources/organizations/resources/placements/types/index.d.ts +1 -0
  17. package/dist/cjs/api/resources/organizations/resources/placements/types/index.js +1 -0
  18. package/dist/cjs/version.d.ts +1 -1
  19. package/dist/cjs/version.js +1 -1
  20. package/dist/esm/BaseClient.mjs +2 -2
  21. package/dist/esm/api/resources/organizations/resources/contentStrategies/types/ContentStrategyAttributes.d.mts +0 -4
  22. package/dist/esm/api/resources/organizations/resources/contentStrategies/types/ContentStrategyResponse.d.mts +1 -3
  23. package/dist/esm/api/resources/organizations/resources/placements/client/Client.d.mts +2 -1
  24. package/dist/esm/api/resources/organizations/resources/placements/client/Client.mjs +12 -6
  25. package/dist/esm/api/resources/organizations/resources/placements/client/requests/GetPlacementRequest.d.mts +8 -0
  26. package/dist/esm/api/resources/organizations/resources/placements/client/requests/GetPlacementRequest.mjs +2 -0
  27. package/dist/esm/api/resources/organizations/resources/placements/client/requests/ListPlacementsRequest.d.mts +2 -0
  28. package/dist/esm/api/resources/organizations/resources/placements/client/requests/index.d.mts +1 -0
  29. package/dist/esm/api/resources/organizations/resources/placements/types/MainPagePlacementAttributes.d.mts +0 -4
  30. package/dist/esm/api/resources/organizations/resources/placements/types/PlacementFormatUnion.d.mts +2 -6
  31. package/dist/esm/api/resources/organizations/resources/placements/types/PlacementListResponse.d.mts +2 -0
  32. package/dist/esm/api/resources/organizations/resources/placements/types/PlacementResource.d.mts +10 -0
  33. package/dist/esm/api/resources/organizations/resources/placements/types/PlacementResource.mjs +2 -0
  34. package/dist/esm/api/resources/organizations/resources/placements/types/PushNotificationPlacementAttributes.d.mts +0 -4
  35. package/dist/esm/api/resources/organizations/resources/placements/types/index.d.mts +1 -0
  36. package/dist/esm/api/resources/organizations/resources/placements/types/index.mjs +1 -0
  37. package/dist/esm/version.d.mts +1 -1
  38. package/dist/esm/version.mjs +1 -1
  39. package/package.json +1 -1
  40. package/reference.md +9 -1
@@ -43,8 +43,8 @@ function normalizeClientOptions(options) {
43
43
  const headers = (0, headers_js_1.mergeHeaders)({
44
44
  "X-Fern-Language": "JavaScript",
45
45
  "X-Fern-SDK-Name": "@kard-financial/sdk",
46
- "X-Fern-SDK-Version": "19.0.0",
47
- "User-Agent": "@kard-financial/sdk/19.0.0",
46
+ "X-Fern-SDK-Version": "21.0.0",
47
+ "User-Agent": "@kard-financial/sdk/21.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);
@@ -15,8 +15,4 @@ export interface ContentStrategyAttributes {
15
15
  categoryExclusions: KardApi.CategoryOption[];
16
16
  /** Merchant IDs to exclude */
17
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
18
  }
@@ -12,9 +12,7 @@ import type * as KardApi from "../../../../../index.js";
12
12
  * filter: KardApi.organizations.ContentStrategyFilter.HighestCashback,
13
13
  * categories: [KardApi.CategoryOption.Travel],
14
14
  * categoryExclusions: [KardApi.CategoryOption.Gas],
15
- * merchantExclusions: ["merchant-abc"],
16
- * createdAt: "2026-04-15T12:00:00Z",
17
- * lastModified: "2026-04-15T12:00:00Z"
15
+ * merchantExclusions: ["merchant-abc"]
18
16
  * }
19
17
  * }
20
18
  */
@@ -73,6 +73,7 @@ export declare class PlacementsClient {
73
73
  *
74
74
  * @param {string} organizationId - Unique identifier of the organization
75
75
  * @param {string} placementId - Unique identifier of the placement (UUID v7)
76
+ * @param {KardApi.organizations.GetPlacementRequest} request
76
77
  * @param {PlacementsClient.RequestOptions} requestOptions - Request-specific configuration.
77
78
  *
78
79
  * @throws {@link KardApi.UnauthorizedError}
@@ -83,7 +84,7 @@ export declare class PlacementsClient {
83
84
  * @example
84
85
  * await client.organizations.placements.get("organizationId", "placementId")
85
86
  */
86
- get(organizationId: string, placementId: string, requestOptions?: PlacementsClient.RequestOptions): core.HttpResponsePromise<KardApi.organizations.PlacementFormatUnion>;
87
+ get(organizationId: string, placementId: string, request?: KardApi.organizations.GetPlacementRequest, requestOptions?: PlacementsClient.RequestOptions): core.HttpResponsePromise<KardApi.organizations.PlacementResource>;
87
88
  private __get;
88
89
  /**
89
90
  * Replace a placement. All fields must be provided. Use type "placementMainPage" or "placementPushNotification" to set the placement kind. If the type is "placementPushNotification", availableSlots is automatically set to 1.
@@ -166,11 +166,12 @@ 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, "filter[contentStrategyId]": filterContentStrategyId, "page[after]": pageAfter, "page[size]": pageSize, } = request;
169
+ const { "filter[type]": filterType, "filter[name]": filterName, "filter[contentStrategyId]": filterContentStrategyId, include, "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
173
  "filter[contentStrategyId]": filterContentStrategyId,
174
+ include,
174
175
  "page[after]": pageAfter,
175
176
  "page[size]": pageSize,
176
177
  };
@@ -221,6 +222,7 @@ class PlacementsClient {
221
222
  *
222
223
  * @param {string} organizationId - Unique identifier of the organization
223
224
  * @param {string} placementId - Unique identifier of the placement (UUID v7)
225
+ * @param {KardApi.organizations.GetPlacementRequest} request
224
226
  * @param {PlacementsClient.RequestOptions} requestOptions - Request-specific configuration.
225
227
  *
226
228
  * @throws {@link KardApi.UnauthorizedError}
@@ -231,19 +233,23 @@ class PlacementsClient {
231
233
  * @example
232
234
  * await client.organizations.placements.get("organizationId", "placementId")
233
235
  */
234
- get(organizationId, placementId, requestOptions) {
235
- return core.HttpResponsePromise.fromPromise(this.__get(organizationId, placementId, requestOptions));
236
+ get(organizationId, placementId, request = {}, requestOptions) {
237
+ return core.HttpResponsePromise.fromPromise(this.__get(organizationId, placementId, request, requestOptions));
236
238
  }
237
- __get(organizationId, placementId, requestOptions) {
238
- return __awaiter(this, void 0, void 0, function* () {
239
+ __get(organizationId_1, placementId_1) {
240
+ return __awaiter(this, arguments, void 0, function* (organizationId, placementId, request = {}, requestOptions) {
239
241
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
242
+ const { include } = request;
243
+ const _queryParams = {
244
+ include,
245
+ };
240
246
  const _authRequest = yield this._options.authProvider.getAuthRequest();
241
247
  const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
242
248
  const _response = yield core.fetcher({
243
249
  url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.KardApiEnvironment.Production, `v2/issuers/${core.url.encodePathParam(organizationId)}/placements/${core.url.encodePathParam(placementId)}`),
244
250
  method: "GET",
245
251
  headers: _headers,
246
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
252
+ queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
247
253
  timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
248
254
  maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
249
255
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @example
3
+ * {}
4
+ */
5
+ export interface GetPlacementRequest {
6
+ /** CSV list of related resources to embed in the `included` array (allowed value is `contentStrategy`). */
7
+ include?: string;
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 });
@@ -10,6 +10,8 @@ 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`). */
14
+ include?: string;
13
15
  /** Cursor value for the next page of results */
14
16
  "page[after]"?: string;
15
17
  /** Maximum number of records to return [1 - 200] (default = 200) */
@@ -1 +1,2 @@
1
+ export type { GetPlacementRequest } from "./GetPlacementRequest.js";
1
2
  export type { ListPlacementsRequest } from "./ListPlacementsRequest.js";
@@ -10,8 +10,4 @@ export interface MainPagePlacementAttributes {
10
10
  availableSlots: number;
11
11
  /** ID of the content strategy linked to this placement, if any */
12
12
  contentStrategyId?: string | undefined;
13
- /** When the placement was created (ISO 8601 UTC) */
14
- createdAt: string;
15
- /** When the placement was last modified (ISO 8601 UTC) */
16
- lastModified: string;
17
13
  }
@@ -9,9 +9,7 @@ import type * as KardApi from "../../../../../index.js";
9
9
  * attributes: {
10
10
  * name: "Homepage Banner",
11
11
  * organizationId: "org-123",
12
- * availableSlots: 5,
13
- * createdAt: "2026-04-15T12:00:00Z",
14
- * lastModified: "2026-04-15T12:00:00Z"
12
+ * availableSlots: 5
15
13
  * }
16
14
  * }
17
15
  *
@@ -25,9 +23,7 @@ import type * as KardApi from "../../../../../index.js";
25
23
  * cadence: {
26
24
  * frequency: KardApi.organizations.CadenceFrequency.Daily,
27
25
  * timeOfDay: "09:00"
28
- * },
29
- * createdAt: "2026-04-15T12:00:00Z",
30
- * lastModified: "2026-04-15T12:00:00Z"
26
+ * }
31
27
  * }
32
28
  * }
33
29
  */
@@ -5,6 +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
10
  links?: KardApi.Links | undefined;
9
11
  /** Pagination metadata */
10
12
  meta?: KardApi.OrganizationPaginationMetadata | undefined;
@@ -0,0 +1,10 @@
1
+ import type * as KardApi from "../../../../../index.js";
2
+ /**
3
+ * Single placement document, optionally with embedded related resources
4
+ */
5
+ export interface PlacementResource {
6
+ /** Placement resource */
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;
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 });
@@ -11,8 +11,4 @@ export interface PushNotificationPlacementAttributes {
11
11
  cadence: KardApi.organizations.Cadence;
12
12
  /** ID of the content strategy linked to this placement, if any */
13
13
  contentStrategyId?: string | undefined;
14
- /** When the placement was created (ISO 8601 UTC) */
15
- createdAt: string;
16
- /** When the placement was last modified (ISO 8601 UTC) */
17
- lastModified: string;
18
14
  }
@@ -11,6 +11,7 @@ export * from "./MainPagePlacementAttributes.js";
11
11
  export * from "./MainPagePlacementData.js";
12
12
  export * from "./PlacementFormatUnion.js";
13
13
  export * from "./PlacementListResponse.js";
14
+ export * from "./PlacementResource.js";
14
15
  export * from "./PlacementTypeFilter.js";
15
16
  export * from "./PushNotificationPlacementAttributes.js";
16
17
  export * from "./PushNotificationPlacementData.js";
@@ -27,6 +27,7 @@ __exportStar(require("./MainPagePlacementAttributes.js"), exports);
27
27
  __exportStar(require("./MainPagePlacementData.js"), exports);
28
28
  __exportStar(require("./PlacementFormatUnion.js"), exports);
29
29
  __exportStar(require("./PlacementListResponse.js"), exports);
30
+ __exportStar(require("./PlacementResource.js"), exports);
30
31
  __exportStar(require("./PlacementTypeFilter.js"), exports);
31
32
  __exportStar(require("./PushNotificationPlacementAttributes.js"), exports);
32
33
  __exportStar(require("./PushNotificationPlacementData.js"), exports);
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "19.0.0";
1
+ export declare const SDK_VERSION = "21.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 = "19.0.0";
4
+ exports.SDK_VERSION = "21.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": "19.0.0",
10
- "User-Agent": "@kard-financial/sdk/19.0.0",
9
+ "X-Fern-SDK-Version": "21.0.0",
10
+ "User-Agent": "@kard-financial/sdk/21.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);
@@ -15,8 +15,4 @@ export interface ContentStrategyAttributes {
15
15
  categoryExclusions: KardApi.CategoryOption[];
16
16
  /** Merchant IDs to exclude */
17
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
18
  }
@@ -12,9 +12,7 @@ import type * as KardApi from "../../../../../index.mjs";
12
12
  * filter: KardApi.organizations.ContentStrategyFilter.HighestCashback,
13
13
  * categories: [KardApi.CategoryOption.Travel],
14
14
  * categoryExclusions: [KardApi.CategoryOption.Gas],
15
- * merchantExclusions: ["merchant-abc"],
16
- * createdAt: "2026-04-15T12:00:00Z",
17
- * lastModified: "2026-04-15T12:00:00Z"
15
+ * merchantExclusions: ["merchant-abc"]
18
16
  * }
19
17
  * }
20
18
  */
@@ -73,6 +73,7 @@ export declare class PlacementsClient {
73
73
  *
74
74
  * @param {string} organizationId - Unique identifier of the organization
75
75
  * @param {string} placementId - Unique identifier of the placement (UUID v7)
76
+ * @param {KardApi.organizations.GetPlacementRequest} request
76
77
  * @param {PlacementsClient.RequestOptions} requestOptions - Request-specific configuration.
77
78
  *
78
79
  * @throws {@link KardApi.UnauthorizedError}
@@ -83,7 +84,7 @@ export declare class PlacementsClient {
83
84
  * @example
84
85
  * await client.organizations.placements.get("organizationId", "placementId")
85
86
  */
86
- get(organizationId: string, placementId: string, requestOptions?: PlacementsClient.RequestOptions): core.HttpResponsePromise<KardApi.organizations.PlacementFormatUnion>;
87
+ get(organizationId: string, placementId: string, request?: KardApi.organizations.GetPlacementRequest, requestOptions?: PlacementsClient.RequestOptions): core.HttpResponsePromise<KardApi.organizations.PlacementResource>;
87
88
  private __get;
88
89
  /**
89
90
  * Replace a placement. All fields must be provided. Use type "placementMainPage" or "placementPushNotification" to set the placement kind. If the type is "placementPushNotification", availableSlots is automatically set to 1.
@@ -130,11 +130,12 @@ export class PlacementsClient {
130
130
  __list(organizationId_1) {
131
131
  return __awaiter(this, arguments, void 0, function* (organizationId, request = {}, requestOptions) {
132
132
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
133
- const { "filter[type]": filterType, "filter[name]": filterName, "filter[contentStrategyId]": filterContentStrategyId, "page[after]": pageAfter, "page[size]": pageSize, } = request;
133
+ const { "filter[type]": filterType, "filter[name]": filterName, "filter[contentStrategyId]": filterContentStrategyId, include, "page[after]": pageAfter, "page[size]": pageSize, } = request;
134
134
  const _queryParams = {
135
135
  "filter[type]": filterType != null ? filterType : undefined,
136
136
  "filter[name]": filterName,
137
137
  "filter[contentStrategyId]": filterContentStrategyId,
138
+ include,
138
139
  "page[after]": pageAfter,
139
140
  "page[size]": pageSize,
140
141
  };
@@ -185,6 +186,7 @@ export class PlacementsClient {
185
186
  *
186
187
  * @param {string} organizationId - Unique identifier of the organization
187
188
  * @param {string} placementId - Unique identifier of the placement (UUID v7)
189
+ * @param {KardApi.organizations.GetPlacementRequest} request
188
190
  * @param {PlacementsClient.RequestOptions} requestOptions - Request-specific configuration.
189
191
  *
190
192
  * @throws {@link KardApi.UnauthorizedError}
@@ -195,19 +197,23 @@ export class PlacementsClient {
195
197
  * @example
196
198
  * await client.organizations.placements.get("organizationId", "placementId")
197
199
  */
198
- get(organizationId, placementId, requestOptions) {
199
- return core.HttpResponsePromise.fromPromise(this.__get(organizationId, placementId, requestOptions));
200
+ get(organizationId, placementId, request = {}, requestOptions) {
201
+ return core.HttpResponsePromise.fromPromise(this.__get(organizationId, placementId, request, requestOptions));
200
202
  }
201
- __get(organizationId, placementId, requestOptions) {
202
- return __awaiter(this, void 0, void 0, function* () {
203
+ __get(organizationId_1, placementId_1) {
204
+ return __awaiter(this, arguments, void 0, function* (organizationId, placementId, request = {}, requestOptions) {
203
205
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
206
+ const { include } = request;
207
+ const _queryParams = {
208
+ include,
209
+ };
204
210
  const _authRequest = yield this._options.authProvider.getAuthRequest();
205
211
  const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
206
212
  const _response = yield core.fetcher({
207
213
  url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.KardApiEnvironment.Production, `v2/issuers/${core.url.encodePathParam(organizationId)}/placements/${core.url.encodePathParam(placementId)}`),
208
214
  method: "GET",
209
215
  headers: _headers,
210
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
216
+ queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
211
217
  timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
212
218
  maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
213
219
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @example
3
+ * {}
4
+ */
5
+ export interface GetPlacementRequest {
6
+ /** CSV list of related resources to embed in the `included` array (allowed value is `contentStrategy`). */
7
+ include?: string;
8
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -10,6 +10,8 @@ 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`). */
14
+ include?: string;
13
15
  /** Cursor value for the next page of results */
14
16
  "page[after]"?: string;
15
17
  /** Maximum number of records to return [1 - 200] (default = 200) */
@@ -1 +1,2 @@
1
+ export type { GetPlacementRequest } from "./GetPlacementRequest.mjs";
1
2
  export type { ListPlacementsRequest } from "./ListPlacementsRequest.mjs";
@@ -10,8 +10,4 @@ export interface MainPagePlacementAttributes {
10
10
  availableSlots: number;
11
11
  /** ID of the content strategy linked to this placement, if any */
12
12
  contentStrategyId?: string | undefined;
13
- /** When the placement was created (ISO 8601 UTC) */
14
- createdAt: string;
15
- /** When the placement was last modified (ISO 8601 UTC) */
16
- lastModified: string;
17
13
  }
@@ -9,9 +9,7 @@ import type * as KardApi from "../../../../../index.mjs";
9
9
  * attributes: {
10
10
  * name: "Homepage Banner",
11
11
  * organizationId: "org-123",
12
- * availableSlots: 5,
13
- * createdAt: "2026-04-15T12:00:00Z",
14
- * lastModified: "2026-04-15T12:00:00Z"
12
+ * availableSlots: 5
15
13
  * }
16
14
  * }
17
15
  *
@@ -25,9 +23,7 @@ import type * as KardApi from "../../../../../index.mjs";
25
23
  * cadence: {
26
24
  * frequency: KardApi.organizations.CadenceFrequency.Daily,
27
25
  * timeOfDay: "09:00"
28
- * },
29
- * createdAt: "2026-04-15T12:00:00Z",
30
- * lastModified: "2026-04-15T12:00:00Z"
26
+ * }
31
27
  * }
32
28
  * }
33
29
  */
@@ -5,6 +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
10
  links?: KardApi.Links | undefined;
9
11
  /** Pagination metadata */
10
12
  meta?: KardApi.OrganizationPaginationMetadata | undefined;
@@ -0,0 +1,10 @@
1
+ import type * as KardApi from "../../../../../index.mjs";
2
+ /**
3
+ * Single placement document, optionally with embedded related resources
4
+ */
5
+ export interface PlacementResource {
6
+ /** Placement resource */
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;
10
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -11,8 +11,4 @@ export interface PushNotificationPlacementAttributes {
11
11
  cadence: KardApi.organizations.Cadence;
12
12
  /** ID of the content strategy linked to this placement, if any */
13
13
  contentStrategyId?: string | undefined;
14
- /** When the placement was created (ISO 8601 UTC) */
15
- createdAt: string;
16
- /** When the placement was last modified (ISO 8601 UTC) */
17
- lastModified: string;
18
14
  }
@@ -11,6 +11,7 @@ export * from "./MainPagePlacementAttributes.mjs";
11
11
  export * from "./MainPagePlacementData.mjs";
12
12
  export * from "./PlacementFormatUnion.mjs";
13
13
  export * from "./PlacementListResponse.mjs";
14
+ export * from "./PlacementResource.mjs";
14
15
  export * from "./PlacementTypeFilter.mjs";
15
16
  export * from "./PushNotificationPlacementAttributes.mjs";
16
17
  export * from "./PushNotificationPlacementData.mjs";
@@ -11,6 +11,7 @@ export * from "./MainPagePlacementAttributes.mjs";
11
11
  export * from "./MainPagePlacementData.mjs";
12
12
  export * from "./PlacementFormatUnion.mjs";
13
13
  export * from "./PlacementListResponse.mjs";
14
+ export * from "./PlacementResource.mjs";
14
15
  export * from "./PlacementTypeFilter.mjs";
15
16
  export * from "./PushNotificationPlacementAttributes.mjs";
16
17
  export * from "./PushNotificationPlacementData.mjs";
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "19.0.0";
1
+ export declare const SDK_VERSION = "21.0.0";
@@ -1 +1 @@
1
- export const SDK_VERSION = "19.0.0";
1
+ export const SDK_VERSION = "21.0.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kard-financial/sdk",
3
- "version": "19.0.0",
3
+ "version": "21.0.0",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
package/reference.md CHANGED
@@ -1344,7 +1344,7 @@ await client.organizations.placements.list("organizationId");
1344
1344
  </dl>
1345
1345
  </details>
1346
1346
 
1347
- <details><summary><code>client.organizations.placements.<a href="/src/api/resources/organizations/resources/placements/client/Client.ts">get</a>(organizationId, placementId) -> KardApi.PlacementFormatUnion</code></summary>
1347
+ <details><summary><code>client.organizations.placements.<a href="/src/api/resources/organizations/resources/placements/client/Client.ts">get</a>(organizationId, placementId, { ...params }) -> KardApi.PlacementResource</code></summary>
1348
1348
  <dl>
1349
1349
  <dd>
1350
1350
 
@@ -1403,6 +1403,14 @@ await client.organizations.placements.get("organizationId", "placementId");
1403
1403
  <dl>
1404
1404
  <dd>
1405
1405
 
1406
+ **request:** `KardApi.organizations.GetPlacementRequest`
1407
+
1408
+ </dd>
1409
+ </dl>
1410
+
1411
+ <dl>
1412
+ <dd>
1413
+
1406
1414
  **requestOptions:** `PlacementsClient.RequestOptions`
1407
1415
 
1408
1416
  </dd>