minikai 1.19.1 → 1.19.2

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 (89) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/api/resources/minis/client/Client.js +8 -1
  3. package/dist/cjs/api/resources/minis/client/requests/GetMiniVersionsRequest.d.ts +2 -1
  4. package/dist/cjs/api/resources/minis/client/requests/SearchMinisFullTextQuery.d.ts +4 -1
  5. package/dist/cjs/api/resources/records/client/Client.js +36 -5
  6. package/dist/cjs/api/resources/records/client/requests/GetRecordVersionsRequest.d.ts +2 -1
  7. package/dist/cjs/api/resources/records/client/requests/GetRecordsByExternalRequest.d.ts +3 -2
  8. package/dist/cjs/api/resources/records/client/requests/GetRecordsRequest.d.ts +3 -2
  9. package/dist/cjs/api/resources/records/client/requests/SearchRecordsFullTextQuery.d.ts +4 -1
  10. package/dist/cjs/api/types/BatchAttachmentResult.d.ts +6 -2
  11. package/dist/cjs/api/types/BatchUploadResult.d.ts +6 -2
  12. package/dist/cjs/api/types/BatchUpsertResult.d.ts +6 -2
  13. package/dist/cjs/api/types/CursorPaginatedListOfMiniVersionDto.d.ts +4 -1
  14. package/dist/cjs/api/types/CursorPaginatedListOfRecordDto.d.ts +4 -1
  15. package/dist/cjs/api/types/CursorPaginatedListOfRecordVersionDto.d.ts +4 -1
  16. package/dist/cjs/api/types/DuplicateUpsertItemOfBatchUploadRecordItemDto.d.ts +9 -2
  17. package/dist/cjs/api/types/DuplicateUpsertItemOfUpsertRecordDto.d.ts +9 -2
  18. package/dist/cjs/api/types/FailedAttachmentItem.d.ts +4 -1
  19. package/dist/cjs/api/types/FailedUploadItem.d.ts +4 -1
  20. package/dist/cjs/api/types/FailedUpsertItem.d.ts +4 -1
  21. package/dist/cjs/api/types/GetMiniVersionsRequestLimit.d.ts +1 -0
  22. package/dist/cjs/api/types/GetMiniVersionsRequestLimit.js +3 -0
  23. package/dist/cjs/api/types/GetRecordVersionsRequestLimit.d.ts +1 -0
  24. package/dist/cjs/api/types/GetRecordVersionsRequestLimit.js +3 -0
  25. package/dist/cjs/api/types/GetRecordsByExternalRequestPageNumber.d.ts +1 -0
  26. package/dist/cjs/api/types/GetRecordsByExternalRequestPageNumber.js +3 -0
  27. package/dist/cjs/api/types/GetRecordsByExternalRequestPageSize.d.ts +1 -0
  28. package/dist/cjs/api/types/GetRecordsByExternalRequestPageSize.js +3 -0
  29. package/dist/cjs/api/types/GetRecordsRequestLimitAfter.d.ts +1 -0
  30. package/dist/cjs/api/types/GetRecordsRequestLimitAfter.js +3 -0
  31. package/dist/cjs/api/types/GetRecordsRequestLimitBefore.d.ts +1 -0
  32. package/dist/cjs/api/types/GetRecordsRequestLimitBefore.js +3 -0
  33. package/dist/cjs/api/types/HttpValidationProblemDetails.d.ts +4 -1
  34. package/dist/cjs/api/types/PaginatedListOfRecordDto.d.ts +8 -3
  35. package/dist/cjs/api/types/RecordAttachmentDto.d.ts +4 -1
  36. package/dist/cjs/api/types/RecordDto.d.ts +4 -1
  37. package/dist/cjs/api/types/SearchResultOfMiniDto.d.ts +4 -1
  38. package/dist/cjs/api/types/SearchResultOfRecordDto.d.ts +4 -1
  39. package/dist/cjs/api/types/SkillAssetDto.d.ts +4 -1
  40. package/dist/cjs/api/types/StringSegment.d.ts +6 -2
  41. package/dist/cjs/api/types/index.d.ts +6 -0
  42. package/dist/cjs/api/types/index.js +6 -0
  43. package/dist/cjs/version.d.ts +1 -1
  44. package/dist/cjs/version.js +1 -1
  45. package/dist/esm/BaseClient.mjs +2 -2
  46. package/dist/esm/api/resources/minis/client/Client.mjs +8 -1
  47. package/dist/esm/api/resources/minis/client/requests/GetMiniVersionsRequest.d.mts +2 -1
  48. package/dist/esm/api/resources/minis/client/requests/SearchMinisFullTextQuery.d.mts +4 -1
  49. package/dist/esm/api/resources/records/client/Client.mjs +36 -5
  50. package/dist/esm/api/resources/records/client/requests/GetRecordVersionsRequest.d.mts +2 -1
  51. package/dist/esm/api/resources/records/client/requests/GetRecordsByExternalRequest.d.mts +3 -2
  52. package/dist/esm/api/resources/records/client/requests/GetRecordsRequest.d.mts +3 -2
  53. package/dist/esm/api/resources/records/client/requests/SearchRecordsFullTextQuery.d.mts +4 -1
  54. package/dist/esm/api/types/BatchAttachmentResult.d.mts +6 -2
  55. package/dist/esm/api/types/BatchUploadResult.d.mts +6 -2
  56. package/dist/esm/api/types/BatchUpsertResult.d.mts +6 -2
  57. package/dist/esm/api/types/CursorPaginatedListOfMiniVersionDto.d.mts +4 -1
  58. package/dist/esm/api/types/CursorPaginatedListOfRecordDto.d.mts +4 -1
  59. package/dist/esm/api/types/CursorPaginatedListOfRecordVersionDto.d.mts +4 -1
  60. package/dist/esm/api/types/DuplicateUpsertItemOfBatchUploadRecordItemDto.d.mts +9 -2
  61. package/dist/esm/api/types/DuplicateUpsertItemOfUpsertRecordDto.d.mts +9 -2
  62. package/dist/esm/api/types/FailedAttachmentItem.d.mts +4 -1
  63. package/dist/esm/api/types/FailedUploadItem.d.mts +4 -1
  64. package/dist/esm/api/types/FailedUpsertItem.d.mts +4 -1
  65. package/dist/esm/api/types/GetMiniVersionsRequestLimit.d.mts +1 -0
  66. package/dist/esm/api/types/GetMiniVersionsRequestLimit.mjs +2 -0
  67. package/dist/esm/api/types/GetRecordVersionsRequestLimit.d.mts +1 -0
  68. package/dist/esm/api/types/GetRecordVersionsRequestLimit.mjs +2 -0
  69. package/dist/esm/api/types/GetRecordsByExternalRequestPageNumber.d.mts +1 -0
  70. package/dist/esm/api/types/GetRecordsByExternalRequestPageNumber.mjs +2 -0
  71. package/dist/esm/api/types/GetRecordsByExternalRequestPageSize.d.mts +1 -0
  72. package/dist/esm/api/types/GetRecordsByExternalRequestPageSize.mjs +2 -0
  73. package/dist/esm/api/types/GetRecordsRequestLimitAfter.d.mts +1 -0
  74. package/dist/esm/api/types/GetRecordsRequestLimitAfter.mjs +2 -0
  75. package/dist/esm/api/types/GetRecordsRequestLimitBefore.d.mts +1 -0
  76. package/dist/esm/api/types/GetRecordsRequestLimitBefore.mjs +2 -0
  77. package/dist/esm/api/types/HttpValidationProblemDetails.d.mts +4 -1
  78. package/dist/esm/api/types/PaginatedListOfRecordDto.d.mts +8 -3
  79. package/dist/esm/api/types/RecordAttachmentDto.d.mts +4 -1
  80. package/dist/esm/api/types/RecordDto.d.mts +4 -1
  81. package/dist/esm/api/types/SearchResultOfMiniDto.d.mts +4 -1
  82. package/dist/esm/api/types/SearchResultOfRecordDto.d.mts +4 -1
  83. package/dist/esm/api/types/SkillAssetDto.d.mts +4 -1
  84. package/dist/esm/api/types/StringSegment.d.mts +6 -2
  85. package/dist/esm/api/types/index.d.mts +6 -0
  86. package/dist/esm/api/types/index.mjs +6 -0
  87. package/dist/esm/version.d.mts +1 -1
  88. package/dist/esm/version.mjs +1 -1
  89. package/package.json +1 -1
@@ -43,8 +43,8 @@ function normalizeClientOptions(options) {
43
43
  const headers = (0, headers_js_1.mergeHeaders)({
44
44
  "X-Fern-Language": "JavaScript",
45
45
  "X-Fern-SDK-Name": "minikai",
46
- "X-Fern-SDK-Version": "1.19.1",
47
- "User-Agent": "minikai/1.19.1",
46
+ "X-Fern-SDK-Version": "1.19.2",
47
+ "User-Agent": "minikai/1.19.2",
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);
@@ -47,6 +47,7 @@ exports.MinisClient = void 0;
47
47
  const BaseClient_js_1 = require("../../../../BaseClient.js");
48
48
  const headers_js_1 = require("../../../../core/headers.js");
49
49
  const core = __importStar(require("../../../../core/index.js"));
50
+ const json_js_1 = require("../../../../core/json.js");
50
51
  const environments = __importStar(require("../../../../environments.js"));
51
52
  const handleNonStatusCodeError_js_1 = require("../../../../errors/handleNonStatusCodeError.js");
52
53
  const errors = __importStar(require("../../../../errors/index.js"));
@@ -611,7 +612,13 @@ class MinisClient {
611
612
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
612
613
  const { limit, afterCursor } = request;
613
614
  const _queryParams = {
614
- limit,
615
+ limit: Array.isArray(limit)
616
+ ? limit.map((item) => (typeof item === "string" ? item : (0, json_js_1.toJson)(item)))
617
+ : limit != null
618
+ ? typeof limit === "string"
619
+ ? limit
620
+ : (0, json_js_1.toJson)(limit)
621
+ : undefined,
615
622
  afterCursor,
616
623
  };
617
624
  const _authRequest = yield this._options.authProvider.getAuthRequest();
@@ -1,8 +1,9 @@
1
+ import type * as Minikai from "../../../../index.js";
1
2
  /**
2
3
  * @example
3
4
  * {}
4
5
  */
5
6
  export interface GetMiniVersionsRequest {
6
- limit?: string;
7
+ limit?: Minikai.GetMiniVersionsRequestLimit;
7
8
  afterCursor?: string;
8
9
  }
@@ -8,6 +8,9 @@ export interface SearchMinisFullTextQuery {
8
8
  labels?: string[] | null;
9
9
  agentType?: Minikai.AgentType | null;
10
10
  cursor?: string | null;
11
- limit?: unknown;
11
+ limit?: SearchMinisFullTextQuery.Limit;
12
12
  sort?: Minikai.SearchSort;
13
13
  }
14
+ export declare namespace SearchMinisFullTextQuery {
15
+ type Limit = number | string;
16
+ }
@@ -47,6 +47,7 @@ exports.RecordsClient = void 0;
47
47
  const BaseClient_js_1 = require("../../../../BaseClient.js");
48
48
  const headers_js_1 = require("../../../../core/headers.js");
49
49
  const core = __importStar(require("../../../../core/index.js"));
50
+ const json_js_1 = require("../../../../core/json.js");
50
51
  const environments = __importStar(require("../../../../environments.js"));
51
52
  const handleNonStatusCodeError_js_1 = require("../../../../errors/handleNonStatusCodeError.js");
52
53
  const errors = __importStar(require("../../../../errors/index.js"));
@@ -80,8 +81,20 @@ class RecordsClient {
80
81
  recordId,
81
82
  beforeCursor,
82
83
  afterCursor,
83
- limitBefore,
84
- limitAfter,
84
+ limitBefore: Array.isArray(limitBefore)
85
+ ? limitBefore.map((item) => (typeof item === "string" ? item : (0, json_js_1.toJson)(item)))
86
+ : limitBefore != null
87
+ ? typeof limitBefore === "string"
88
+ ? limitBefore
89
+ : (0, json_js_1.toJson)(limitBefore)
90
+ : undefined,
91
+ limitAfter: Array.isArray(limitAfter)
92
+ ? limitAfter.map((item) => (typeof item === "string" ? item : (0, json_js_1.toJson)(item)))
93
+ : limitAfter != null
94
+ ? typeof limitAfter === "string"
95
+ ? limitAfter
96
+ : (0, json_js_1.toJson)(limitAfter)
97
+ : undefined,
85
98
  labels,
86
99
  states,
87
100
  startDate: startDate != null ? startDate : undefined,
@@ -365,7 +378,13 @@ class RecordsClient {
365
378
  const { miniId, limit, afterCursor } = request;
366
379
  const _queryParams = {
367
380
  miniId,
368
- limit,
381
+ limit: Array.isArray(limit)
382
+ ? limit.map((item) => (typeof item === "string" ? item : (0, json_js_1.toJson)(item)))
383
+ : limit != null
384
+ ? typeof limit === "string"
385
+ ? limit
386
+ : (0, json_js_1.toJson)(limit)
387
+ : undefined,
369
388
  afterCursor,
370
389
  };
371
390
  const _authRequest = yield this._options.authProvider.getAuthRequest();
@@ -1092,8 +1111,20 @@ class RecordsClient {
1092
1111
  const { miniId, pageNumber, pageSize, body: _body } = request;
1093
1112
  const _queryParams = {
1094
1113
  miniId,
1095
- pageNumber,
1096
- pageSize,
1114
+ pageNumber: Array.isArray(pageNumber)
1115
+ ? pageNumber.map((item) => (typeof item === "string" ? item : (0, json_js_1.toJson)(item)))
1116
+ : pageNumber != null
1117
+ ? typeof pageNumber === "string"
1118
+ ? pageNumber
1119
+ : (0, json_js_1.toJson)(pageNumber)
1120
+ : undefined,
1121
+ pageSize: Array.isArray(pageSize)
1122
+ ? pageSize.map((item) => (typeof item === "string" ? item : (0, json_js_1.toJson)(item)))
1123
+ : pageSize != null
1124
+ ? typeof pageSize === "string"
1125
+ ? pageSize
1126
+ : (0, json_js_1.toJson)(pageSize)
1127
+ : undefined,
1097
1128
  };
1098
1129
  const _authRequest = yield this._options.authProvider.getAuthRequest();
1099
1130
  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);
@@ -1,3 +1,4 @@
1
+ import type * as Minikai from "../../../../index.js";
1
2
  /**
2
3
  * @example
3
4
  * {
@@ -6,6 +7,6 @@
6
7
  */
7
8
  export interface GetRecordVersionsRequest {
8
9
  miniId: string;
9
- limit?: string;
10
+ limit?: Minikai.GetRecordVersionsRequestLimit;
10
11
  afterCursor?: string;
11
12
  }
@@ -1,3 +1,4 @@
1
+ import type * as Minikai from "../../../../index.js";
1
2
  /**
2
3
  * @example
3
4
  * {
@@ -7,7 +8,7 @@
7
8
  */
8
9
  export interface GetRecordsByExternalRequest {
9
10
  miniId: string;
10
- pageNumber?: string;
11
- pageSize?: string;
11
+ pageNumber?: Minikai.GetRecordsByExternalRequestPageNumber;
12
+ pageSize?: Minikai.GetRecordsByExternalRequestPageSize;
12
13
  body: string[];
13
14
  }
@@ -1,3 +1,4 @@
1
+ import type * as Minikai from "../../../../index.js";
1
2
  /**
2
3
  * @example
3
4
  * {
@@ -11,8 +12,8 @@ export interface GetRecordsRequest {
11
12
  recordId?: string;
12
13
  beforeCursor?: string;
13
14
  afterCursor?: string;
14
- limitBefore?: string;
15
- limitAfter?: string;
15
+ limitBefore?: Minikai.GetRecordsRequestLimitBefore;
16
+ limitAfter?: Minikai.GetRecordsRequestLimitAfter;
16
17
  labels?: string | string[];
17
18
  states?: string | string[];
18
19
  startDate?: string;
@@ -15,6 +15,9 @@ export interface SearchRecordsFullTextQuery {
15
15
  createdBy?: string[] | null;
16
16
  updatedBy?: string[] | null;
17
17
  cursor?: string | null;
18
- limit?: unknown;
18
+ limit?: SearchRecordsFullTextQuery.Limit;
19
19
  sort?: Minikai.SearchSort;
20
20
  }
21
+ export declare namespace SearchRecordsFullTextQuery {
22
+ type Limit = number | string;
23
+ }
@@ -2,6 +2,10 @@ import type * as Minikai from "../index.js";
2
2
  export interface BatchAttachmentResult {
3
3
  successfulIds?: Record<string, string> | undefined;
4
4
  failed?: Minikai.FailedAttachmentItem[] | undefined;
5
- successCount?: unknown | undefined;
6
- failureCount?: unknown | undefined;
5
+ successCount?: BatchAttachmentResult.SuccessCount | undefined;
6
+ failureCount?: BatchAttachmentResult.FailureCount | undefined;
7
+ }
8
+ export declare namespace BatchAttachmentResult {
9
+ type SuccessCount = number | string;
10
+ type FailureCount = number | string;
7
11
  }
@@ -3,6 +3,10 @@ export interface BatchUploadResult {
3
3
  successfulIds?: Record<string, string> | undefined;
4
4
  failed?: Minikai.FailedUploadItem[] | undefined;
5
5
  duplicates?: Minikai.DuplicateUpsertItemOfBatchUploadRecordItemDto[] | undefined;
6
- successCount?: unknown | undefined;
7
- failureCount?: unknown | undefined;
6
+ successCount?: BatchUploadResult.SuccessCount | undefined;
7
+ failureCount?: BatchUploadResult.FailureCount | undefined;
8
+ }
9
+ export declare namespace BatchUploadResult {
10
+ type SuccessCount = number | string;
11
+ type FailureCount = number | string;
8
12
  }
@@ -3,6 +3,10 @@ export interface BatchUpsertResult {
3
3
  successfulIds?: Record<string, string> | undefined;
4
4
  failed?: Minikai.FailedUpsertItem[] | undefined;
5
5
  duplicates?: Minikai.DuplicateUpsertItemOfUpsertRecordDto[] | undefined;
6
- successCount?: unknown | undefined;
7
- failureCount?: unknown | undefined;
6
+ successCount?: BatchUpsertResult.SuccessCount | undefined;
7
+ failureCount?: BatchUpsertResult.FailureCount | undefined;
8
+ }
9
+ export declare namespace BatchUpsertResult {
10
+ type SuccessCount = number | string;
11
+ type FailureCount = number | string;
8
12
  }
@@ -3,5 +3,8 @@ export interface CursorPaginatedListOfMiniVersionDto {
3
3
  items: Minikai.MiniVersionDto[];
4
4
  beforeCursor: string | null;
5
5
  afterCursor: string | null;
6
- totalCount?: unknown | undefined;
6
+ totalCount?: (CursorPaginatedListOfMiniVersionDto.TotalCount | null) | undefined;
7
+ }
8
+ export declare namespace CursorPaginatedListOfMiniVersionDto {
9
+ type TotalCount = number | string;
7
10
  }
@@ -3,5 +3,8 @@ export interface CursorPaginatedListOfRecordDto {
3
3
  items: Minikai.RecordDto[];
4
4
  beforeCursor: string | null;
5
5
  afterCursor: string | null;
6
- totalCount?: unknown | undefined;
6
+ totalCount?: (CursorPaginatedListOfRecordDto.TotalCount | null) | undefined;
7
+ }
8
+ export declare namespace CursorPaginatedListOfRecordDto {
9
+ type TotalCount = number | string;
7
10
  }
@@ -3,5 +3,8 @@ export interface CursorPaginatedListOfRecordVersionDto {
3
3
  items: Minikai.RecordVersionDto[];
4
4
  beforeCursor: string | null;
5
5
  afterCursor: string | null;
6
- totalCount?: unknown | undefined;
6
+ totalCount?: (CursorPaginatedListOfRecordVersionDto.TotalCount | null) | undefined;
7
+ }
8
+ export declare namespace CursorPaginatedListOfRecordVersionDto {
9
+ type TotalCount = number | string;
7
10
  }
@@ -1,7 +1,14 @@
1
1
  import type * as Minikai from "../index.js";
2
2
  export interface DuplicateUpsertItemOfBatchUploadRecordItemDto {
3
- index?: unknown | undefined;
3
+ index: DuplicateUpsertItemOfBatchUploadRecordItemDto.Index;
4
4
  item: Minikai.BatchUploadRecordItemDto | null;
5
5
  existingMatches?: Minikai.ExistingDuplicateRecordMatch[] | undefined;
6
- intraBatchDuplicateOf?: unknown[] | undefined;
6
+ intraBatchDuplicateOf?: DuplicateUpsertItemOfBatchUploadRecordItemDto.IntraBatchDuplicateOf.Item[] | undefined;
7
+ }
8
+ export declare namespace DuplicateUpsertItemOfBatchUploadRecordItemDto {
9
+ type Index = number | string;
10
+ type IntraBatchDuplicateOf = IntraBatchDuplicateOf.Item[];
11
+ namespace IntraBatchDuplicateOf {
12
+ type Item = number | string;
13
+ }
7
14
  }
@@ -1,7 +1,14 @@
1
1
  import type * as Minikai from "../index.js";
2
2
  export interface DuplicateUpsertItemOfUpsertRecordDto {
3
- index?: unknown | undefined;
3
+ index: DuplicateUpsertItemOfUpsertRecordDto.Index;
4
4
  item: Minikai.UpsertRecordDto | null;
5
5
  existingMatches?: Minikai.ExistingDuplicateRecordMatch[] | undefined;
6
- intraBatchDuplicateOf?: unknown[] | undefined;
6
+ intraBatchDuplicateOf?: DuplicateUpsertItemOfUpsertRecordDto.IntraBatchDuplicateOf.Item[] | undefined;
7
+ }
8
+ export declare namespace DuplicateUpsertItemOfUpsertRecordDto {
9
+ type Index = number | string;
10
+ type IntraBatchDuplicateOf = IntraBatchDuplicateOf.Item[];
11
+ namespace IntraBatchDuplicateOf {
12
+ type Item = number | string;
13
+ }
7
14
  }
@@ -1,6 +1,9 @@
1
1
  export interface FailedAttachmentItem {
2
- index?: unknown | undefined;
2
+ index: FailedAttachmentItem.Index;
3
3
  fileName: string;
4
4
  recordId: string;
5
5
  error: string;
6
6
  }
7
+ export declare namespace FailedAttachmentItem {
8
+ type Index = number | string;
9
+ }
@@ -1,7 +1,10 @@
1
1
  import type * as Minikai from "../index.js";
2
2
  export interface FailedUploadItem {
3
- index?: unknown | undefined;
3
+ index: FailedUploadItem.Index;
4
4
  fileName: string;
5
5
  error: string;
6
6
  item: Minikai.BatchUploadRecordItemDto;
7
7
  }
8
+ export declare namespace FailedUploadItem {
9
+ type Index = number | string;
10
+ }
@@ -1,6 +1,9 @@
1
1
  import type * as Minikai from "../index.js";
2
2
  export interface FailedUpsertItem {
3
- index?: unknown | undefined;
3
+ index: FailedUpsertItem.Index;
4
4
  item: Minikai.UpsertRecordDto;
5
5
  error: string;
6
6
  }
7
+ export declare namespace FailedUpsertItem {
8
+ type Index = number | string;
9
+ }
@@ -0,0 +1 @@
1
+ export type GetMiniVersionsRequestLimit = number | string;
@@ -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 @@
1
+ export type GetRecordVersionsRequestLimit = number | string;
@@ -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 @@
1
+ export type GetRecordsByExternalRequestPageNumber = number | string;
@@ -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 @@
1
+ export type GetRecordsByExternalRequestPageSize = number | string;
@@ -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 @@
1
+ export type GetRecordsRequestLimitAfter = number | string;
@@ -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 @@
1
+ export type GetRecordsRequestLimitBefore = number | string;
@@ -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 });
@@ -1,8 +1,11 @@
1
1
  export interface HttpValidationProblemDetails {
2
2
  type?: (string | null) | undefined;
3
3
  title?: (string | null) | undefined;
4
- status?: unknown | undefined;
4
+ status?: (HttpValidationProblemDetails.Status | null) | undefined;
5
5
  detail?: (string | null) | undefined;
6
6
  instance?: (string | null) | undefined;
7
7
  errors?: Record<string, string[]> | undefined;
8
8
  }
9
+ export declare namespace HttpValidationProblemDetails {
10
+ type Status = number | string;
11
+ }
@@ -1,9 +1,14 @@
1
1
  import type * as Minikai from "../index.js";
2
2
  export interface PaginatedListOfRecordDto {
3
3
  items: Minikai.RecordDto[];
4
- pageNumber?: unknown | undefined;
5
- totalPages?: unknown | undefined;
6
- totalCount?: unknown | undefined;
4
+ pageNumber: PaginatedListOfRecordDto.PageNumber;
5
+ totalPages?: PaginatedListOfRecordDto.TotalPages | undefined;
6
+ totalCount?: PaginatedListOfRecordDto.TotalCount | undefined;
7
7
  hasPreviousPage?: boolean | undefined;
8
8
  hasNextPage?: boolean | undefined;
9
9
  }
10
+ export declare namespace PaginatedListOfRecordDto {
11
+ type PageNumber = number | string;
12
+ type TotalPages = number | string;
13
+ type TotalCount = number | string;
14
+ }
@@ -2,7 +2,7 @@ export interface RecordAttachmentDto {
2
2
  id?: string | undefined;
3
3
  fileName?: string | undefined;
4
4
  contentType?: string | undefined;
5
- size?: unknown | undefined;
5
+ size?: RecordAttachmentDto.Size | undefined;
6
6
  checksum?: (string | null) | undefined;
7
7
  createdAt?: (string | null) | undefined;
8
8
  updatedAt?: (string | null) | undefined;
@@ -10,3 +10,6 @@ export interface RecordAttachmentDto {
10
10
  updatedBy?: (string | null) | undefined;
11
11
  metadata?: (Record<string, unknown> | null) | undefined;
12
12
  }
13
+ export declare namespace RecordAttachmentDto {
14
+ type Size = number | string;
15
+ }
@@ -9,7 +9,7 @@ export interface RecordDto {
9
9
  createdBy?: string | undefined;
10
10
  updatedBy?: (string | null) | undefined;
11
11
  state?: Minikai.RecordState | undefined;
12
- ttl?: unknown | undefined;
12
+ ttl?: (RecordDto.Ttl | null) | undefined;
13
13
  schema?: unknown | undefined;
14
14
  content?: unknown | undefined;
15
15
  attachments?: Minikai.RecordAttachmentDto[] | undefined;
@@ -20,3 +20,6 @@ export interface RecordDto {
20
20
  tags?: Record<string, unknown> | undefined;
21
21
  eTag?: (string | null) | undefined;
22
22
  }
23
+ export declare namespace RecordDto {
24
+ type Ttl = number | string;
25
+ }
@@ -1,6 +1,9 @@
1
1
  import type * as Minikai from "../index.js";
2
2
  export interface SearchResultOfMiniDto {
3
3
  items?: Minikai.SearchHitOfMiniDto[] | undefined;
4
- totalCount?: unknown | undefined;
4
+ totalCount?: SearchResultOfMiniDto.TotalCount | undefined;
5
5
  nextCursor?: (string | null) | undefined;
6
6
  }
7
+ export declare namespace SearchResultOfMiniDto {
8
+ type TotalCount = number | string;
9
+ }
@@ -1,6 +1,9 @@
1
1
  import type * as Minikai from "../index.js";
2
2
  export interface SearchResultOfRecordDto {
3
3
  items?: Minikai.SearchHitOfRecordDto[] | undefined;
4
- totalCount?: unknown | undefined;
4
+ totalCount?: SearchResultOfRecordDto.TotalCount | undefined;
5
5
  nextCursor?: (string | null) | undefined;
6
6
  }
7
+ export declare namespace SearchResultOfRecordDto {
8
+ type TotalCount = number | string;
9
+ }
@@ -3,6 +3,9 @@ export interface SkillAssetDto {
3
3
  id?: string | undefined;
4
4
  name?: string | undefined;
5
5
  type?: Minikai.SkillAssetType | undefined;
6
- size?: unknown | undefined;
6
+ size?: SkillAssetDto.Size | undefined;
7
7
  url?: string | undefined;
8
8
  }
9
+ export declare namespace SkillAssetDto {
10
+ type Size = number | string;
11
+ }
@@ -1,7 +1,11 @@
1
1
  export interface StringSegment {
2
2
  buffer?: (string | null) | undefined;
3
- offset?: unknown | undefined;
4
- length?: unknown | undefined;
3
+ offset?: StringSegment.Offset | undefined;
4
+ length?: StringSegment.Length | undefined;
5
5
  value?: (string | null) | undefined;
6
6
  hasValue?: boolean | undefined;
7
7
  }
8
+ export declare namespace StringSegment {
9
+ type Offset = number | string;
10
+ type Length = number | string;
11
+ }
@@ -12,6 +12,12 @@ export * from "./ExistingDuplicateRecordMatch.js";
12
12
  export * from "./FailedAttachmentItem.js";
13
13
  export * from "./FailedUploadItem.js";
14
14
  export * from "./FailedUpsertItem.js";
15
+ export * from "./GetMiniVersionsRequestLimit.js";
16
+ export * from "./GetRecordsByExternalRequestPageNumber.js";
17
+ export * from "./GetRecordsByExternalRequestPageSize.js";
18
+ export * from "./GetRecordsRequestLimitAfter.js";
19
+ export * from "./GetRecordsRequestLimitBefore.js";
20
+ export * from "./GetRecordVersionsRequestLimit.js";
15
21
  export * from "./HttpValidationProblemDetails.js";
16
22
  export * from "./Identity.js";
17
23
  export * from "./IdentityKind.js";
@@ -28,6 +28,12 @@ __exportStar(require("./ExistingDuplicateRecordMatch.js"), exports);
28
28
  __exportStar(require("./FailedAttachmentItem.js"), exports);
29
29
  __exportStar(require("./FailedUploadItem.js"), exports);
30
30
  __exportStar(require("./FailedUpsertItem.js"), exports);
31
+ __exportStar(require("./GetMiniVersionsRequestLimit.js"), exports);
32
+ __exportStar(require("./GetRecordsByExternalRequestPageNumber.js"), exports);
33
+ __exportStar(require("./GetRecordsByExternalRequestPageSize.js"), exports);
34
+ __exportStar(require("./GetRecordsRequestLimitAfter.js"), exports);
35
+ __exportStar(require("./GetRecordsRequestLimitBefore.js"), exports);
36
+ __exportStar(require("./GetRecordVersionsRequestLimit.js"), exports);
31
37
  __exportStar(require("./HttpValidationProblemDetails.js"), exports);
32
38
  __exportStar(require("./Identity.js"), exports);
33
39
  __exportStar(require("./IdentityKind.js"), exports);
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.19.1";
1
+ export declare const SDK_VERSION = "1.19.2";
@@ -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 = "1.19.1";
4
+ exports.SDK_VERSION = "1.19.2";
@@ -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": "minikai",
9
- "X-Fern-SDK-Version": "1.19.1",
10
- "User-Agent": "minikai/1.19.1",
9
+ "X-Fern-SDK-Version": "1.19.2",
10
+ "User-Agent": "minikai/1.19.2",
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);
@@ -11,6 +11,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
11
11
  import { normalizeClientOptionsWithAuth } from "../../../../BaseClient.mjs";
12
12
  import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../core/headers.mjs";
13
13
  import * as core from "../../../../core/index.mjs";
14
+ import { toJson } from "../../../../core/json.mjs";
14
15
  import * as environments from "../../../../environments.mjs";
15
16
  import { handleNonStatusCodeError } from "../../../../errors/handleNonStatusCodeError.mjs";
16
17
  import * as errors from "../../../../errors/index.mjs";
@@ -575,7 +576,13 @@ export class MinisClient {
575
576
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
576
577
  const { limit, afterCursor } = request;
577
578
  const _queryParams = {
578
- limit,
579
+ limit: Array.isArray(limit)
580
+ ? limit.map((item) => (typeof item === "string" ? item : toJson(item)))
581
+ : limit != null
582
+ ? typeof limit === "string"
583
+ ? limit
584
+ : toJson(limit)
585
+ : undefined,
579
586
  afterCursor,
580
587
  };
581
588
  const _authRequest = yield this._options.authProvider.getAuthRequest();
@@ -1,8 +1,9 @@
1
+ import type * as Minikai from "../../../../index.mjs";
1
2
  /**
2
3
  * @example
3
4
  * {}
4
5
  */
5
6
  export interface GetMiniVersionsRequest {
6
- limit?: string;
7
+ limit?: Minikai.GetMiniVersionsRequestLimit;
7
8
  afterCursor?: string;
8
9
  }
@@ -8,6 +8,9 @@ export interface SearchMinisFullTextQuery {
8
8
  labels?: string[] | null;
9
9
  agentType?: Minikai.AgentType | null;
10
10
  cursor?: string | null;
11
- limit?: unknown;
11
+ limit?: SearchMinisFullTextQuery.Limit;
12
12
  sort?: Minikai.SearchSort;
13
13
  }
14
+ export declare namespace SearchMinisFullTextQuery {
15
+ type Limit = number | string;
16
+ }
@@ -11,6 +11,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
11
11
  import { normalizeClientOptionsWithAuth } from "../../../../BaseClient.mjs";
12
12
  import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../core/headers.mjs";
13
13
  import * as core from "../../../../core/index.mjs";
14
+ import { toJson } from "../../../../core/json.mjs";
14
15
  import * as environments from "../../../../environments.mjs";
15
16
  import { handleNonStatusCodeError } from "../../../../errors/handleNonStatusCodeError.mjs";
16
17
  import * as errors from "../../../../errors/index.mjs";
@@ -44,8 +45,20 @@ export class RecordsClient {
44
45
  recordId,
45
46
  beforeCursor,
46
47
  afterCursor,
47
- limitBefore,
48
- limitAfter,
48
+ limitBefore: Array.isArray(limitBefore)
49
+ ? limitBefore.map((item) => (typeof item === "string" ? item : toJson(item)))
50
+ : limitBefore != null
51
+ ? typeof limitBefore === "string"
52
+ ? limitBefore
53
+ : toJson(limitBefore)
54
+ : undefined,
55
+ limitAfter: Array.isArray(limitAfter)
56
+ ? limitAfter.map((item) => (typeof item === "string" ? item : toJson(item)))
57
+ : limitAfter != null
58
+ ? typeof limitAfter === "string"
59
+ ? limitAfter
60
+ : toJson(limitAfter)
61
+ : undefined,
49
62
  labels,
50
63
  states,
51
64
  startDate: startDate != null ? startDate : undefined,
@@ -329,7 +342,13 @@ export class RecordsClient {
329
342
  const { miniId, limit, afterCursor } = request;
330
343
  const _queryParams = {
331
344
  miniId,
332
- limit,
345
+ limit: Array.isArray(limit)
346
+ ? limit.map((item) => (typeof item === "string" ? item : toJson(item)))
347
+ : limit != null
348
+ ? typeof limit === "string"
349
+ ? limit
350
+ : toJson(limit)
351
+ : undefined,
333
352
  afterCursor,
334
353
  };
335
354
  const _authRequest = yield this._options.authProvider.getAuthRequest();
@@ -1056,8 +1075,20 @@ export class RecordsClient {
1056
1075
  const { miniId, pageNumber, pageSize, body: _body } = request;
1057
1076
  const _queryParams = {
1058
1077
  miniId,
1059
- pageNumber,
1060
- pageSize,
1078
+ pageNumber: Array.isArray(pageNumber)
1079
+ ? pageNumber.map((item) => (typeof item === "string" ? item : toJson(item)))
1080
+ : pageNumber != null
1081
+ ? typeof pageNumber === "string"
1082
+ ? pageNumber
1083
+ : toJson(pageNumber)
1084
+ : undefined,
1085
+ pageSize: Array.isArray(pageSize)
1086
+ ? pageSize.map((item) => (typeof item === "string" ? item : toJson(item)))
1087
+ : pageSize != null
1088
+ ? typeof pageSize === "string"
1089
+ ? pageSize
1090
+ : toJson(pageSize)
1091
+ : undefined,
1061
1092
  };
1062
1093
  const _authRequest = yield this._options.authProvider.getAuthRequest();
1063
1094
  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);
@@ -1,3 +1,4 @@
1
+ import type * as Minikai from "../../../../index.mjs";
1
2
  /**
2
3
  * @example
3
4
  * {
@@ -6,6 +7,6 @@
6
7
  */
7
8
  export interface GetRecordVersionsRequest {
8
9
  miniId: string;
9
- limit?: string;
10
+ limit?: Minikai.GetRecordVersionsRequestLimit;
10
11
  afterCursor?: string;
11
12
  }
@@ -1,3 +1,4 @@
1
+ import type * as Minikai from "../../../../index.mjs";
1
2
  /**
2
3
  * @example
3
4
  * {
@@ -7,7 +8,7 @@
7
8
  */
8
9
  export interface GetRecordsByExternalRequest {
9
10
  miniId: string;
10
- pageNumber?: string;
11
- pageSize?: string;
11
+ pageNumber?: Minikai.GetRecordsByExternalRequestPageNumber;
12
+ pageSize?: Minikai.GetRecordsByExternalRequestPageSize;
12
13
  body: string[];
13
14
  }
@@ -1,3 +1,4 @@
1
+ import type * as Minikai from "../../../../index.mjs";
1
2
  /**
2
3
  * @example
3
4
  * {
@@ -11,8 +12,8 @@ export interface GetRecordsRequest {
11
12
  recordId?: string;
12
13
  beforeCursor?: string;
13
14
  afterCursor?: string;
14
- limitBefore?: string;
15
- limitAfter?: string;
15
+ limitBefore?: Minikai.GetRecordsRequestLimitBefore;
16
+ limitAfter?: Minikai.GetRecordsRequestLimitAfter;
16
17
  labels?: string | string[];
17
18
  states?: string | string[];
18
19
  startDate?: string;
@@ -15,6 +15,9 @@ export interface SearchRecordsFullTextQuery {
15
15
  createdBy?: string[] | null;
16
16
  updatedBy?: string[] | null;
17
17
  cursor?: string | null;
18
- limit?: unknown;
18
+ limit?: SearchRecordsFullTextQuery.Limit;
19
19
  sort?: Minikai.SearchSort;
20
20
  }
21
+ export declare namespace SearchRecordsFullTextQuery {
22
+ type Limit = number | string;
23
+ }
@@ -2,6 +2,10 @@ import type * as Minikai from "../index.mjs";
2
2
  export interface BatchAttachmentResult {
3
3
  successfulIds?: Record<string, string> | undefined;
4
4
  failed?: Minikai.FailedAttachmentItem[] | undefined;
5
- successCount?: unknown | undefined;
6
- failureCount?: unknown | undefined;
5
+ successCount?: BatchAttachmentResult.SuccessCount | undefined;
6
+ failureCount?: BatchAttachmentResult.FailureCount | undefined;
7
+ }
8
+ export declare namespace BatchAttachmentResult {
9
+ type SuccessCount = number | string;
10
+ type FailureCount = number | string;
7
11
  }
@@ -3,6 +3,10 @@ export interface BatchUploadResult {
3
3
  successfulIds?: Record<string, string> | undefined;
4
4
  failed?: Minikai.FailedUploadItem[] | undefined;
5
5
  duplicates?: Minikai.DuplicateUpsertItemOfBatchUploadRecordItemDto[] | undefined;
6
- successCount?: unknown | undefined;
7
- failureCount?: unknown | undefined;
6
+ successCount?: BatchUploadResult.SuccessCount | undefined;
7
+ failureCount?: BatchUploadResult.FailureCount | undefined;
8
+ }
9
+ export declare namespace BatchUploadResult {
10
+ type SuccessCount = number | string;
11
+ type FailureCount = number | string;
8
12
  }
@@ -3,6 +3,10 @@ export interface BatchUpsertResult {
3
3
  successfulIds?: Record<string, string> | undefined;
4
4
  failed?: Minikai.FailedUpsertItem[] | undefined;
5
5
  duplicates?: Minikai.DuplicateUpsertItemOfUpsertRecordDto[] | undefined;
6
- successCount?: unknown | undefined;
7
- failureCount?: unknown | undefined;
6
+ successCount?: BatchUpsertResult.SuccessCount | undefined;
7
+ failureCount?: BatchUpsertResult.FailureCount | undefined;
8
+ }
9
+ export declare namespace BatchUpsertResult {
10
+ type SuccessCount = number | string;
11
+ type FailureCount = number | string;
8
12
  }
@@ -3,5 +3,8 @@ export interface CursorPaginatedListOfMiniVersionDto {
3
3
  items: Minikai.MiniVersionDto[];
4
4
  beforeCursor: string | null;
5
5
  afterCursor: string | null;
6
- totalCount?: unknown | undefined;
6
+ totalCount?: (CursorPaginatedListOfMiniVersionDto.TotalCount | null) | undefined;
7
+ }
8
+ export declare namespace CursorPaginatedListOfMiniVersionDto {
9
+ type TotalCount = number | string;
7
10
  }
@@ -3,5 +3,8 @@ export interface CursorPaginatedListOfRecordDto {
3
3
  items: Minikai.RecordDto[];
4
4
  beforeCursor: string | null;
5
5
  afterCursor: string | null;
6
- totalCount?: unknown | undefined;
6
+ totalCount?: (CursorPaginatedListOfRecordDto.TotalCount | null) | undefined;
7
+ }
8
+ export declare namespace CursorPaginatedListOfRecordDto {
9
+ type TotalCount = number | string;
7
10
  }
@@ -3,5 +3,8 @@ export interface CursorPaginatedListOfRecordVersionDto {
3
3
  items: Minikai.RecordVersionDto[];
4
4
  beforeCursor: string | null;
5
5
  afterCursor: string | null;
6
- totalCount?: unknown | undefined;
6
+ totalCount?: (CursorPaginatedListOfRecordVersionDto.TotalCount | null) | undefined;
7
+ }
8
+ export declare namespace CursorPaginatedListOfRecordVersionDto {
9
+ type TotalCount = number | string;
7
10
  }
@@ -1,7 +1,14 @@
1
1
  import type * as Minikai from "../index.mjs";
2
2
  export interface DuplicateUpsertItemOfBatchUploadRecordItemDto {
3
- index?: unknown | undefined;
3
+ index: DuplicateUpsertItemOfBatchUploadRecordItemDto.Index;
4
4
  item: Minikai.BatchUploadRecordItemDto | null;
5
5
  existingMatches?: Minikai.ExistingDuplicateRecordMatch[] | undefined;
6
- intraBatchDuplicateOf?: unknown[] | undefined;
6
+ intraBatchDuplicateOf?: DuplicateUpsertItemOfBatchUploadRecordItemDto.IntraBatchDuplicateOf.Item[] | undefined;
7
+ }
8
+ export declare namespace DuplicateUpsertItemOfBatchUploadRecordItemDto {
9
+ type Index = number | string;
10
+ type IntraBatchDuplicateOf = IntraBatchDuplicateOf.Item[];
11
+ namespace IntraBatchDuplicateOf {
12
+ type Item = number | string;
13
+ }
7
14
  }
@@ -1,7 +1,14 @@
1
1
  import type * as Minikai from "../index.mjs";
2
2
  export interface DuplicateUpsertItemOfUpsertRecordDto {
3
- index?: unknown | undefined;
3
+ index: DuplicateUpsertItemOfUpsertRecordDto.Index;
4
4
  item: Minikai.UpsertRecordDto | null;
5
5
  existingMatches?: Minikai.ExistingDuplicateRecordMatch[] | undefined;
6
- intraBatchDuplicateOf?: unknown[] | undefined;
6
+ intraBatchDuplicateOf?: DuplicateUpsertItemOfUpsertRecordDto.IntraBatchDuplicateOf.Item[] | undefined;
7
+ }
8
+ export declare namespace DuplicateUpsertItemOfUpsertRecordDto {
9
+ type Index = number | string;
10
+ type IntraBatchDuplicateOf = IntraBatchDuplicateOf.Item[];
11
+ namespace IntraBatchDuplicateOf {
12
+ type Item = number | string;
13
+ }
7
14
  }
@@ -1,6 +1,9 @@
1
1
  export interface FailedAttachmentItem {
2
- index?: unknown | undefined;
2
+ index: FailedAttachmentItem.Index;
3
3
  fileName: string;
4
4
  recordId: string;
5
5
  error: string;
6
6
  }
7
+ export declare namespace FailedAttachmentItem {
8
+ type Index = number | string;
9
+ }
@@ -1,7 +1,10 @@
1
1
  import type * as Minikai from "../index.mjs";
2
2
  export interface FailedUploadItem {
3
- index?: unknown | undefined;
3
+ index: FailedUploadItem.Index;
4
4
  fileName: string;
5
5
  error: string;
6
6
  item: Minikai.BatchUploadRecordItemDto;
7
7
  }
8
+ export declare namespace FailedUploadItem {
9
+ type Index = number | string;
10
+ }
@@ -1,6 +1,9 @@
1
1
  import type * as Minikai from "../index.mjs";
2
2
  export interface FailedUpsertItem {
3
- index?: unknown | undefined;
3
+ index: FailedUpsertItem.Index;
4
4
  item: Minikai.UpsertRecordDto;
5
5
  error: string;
6
6
  }
7
+ export declare namespace FailedUpsertItem {
8
+ type Index = number | string;
9
+ }
@@ -0,0 +1 @@
1
+ export type GetMiniVersionsRequestLimit = number | string;
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1 @@
1
+ export type GetRecordVersionsRequestLimit = number | string;
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1 @@
1
+ export type GetRecordsByExternalRequestPageNumber = number | string;
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1 @@
1
+ export type GetRecordsByExternalRequestPageSize = number | string;
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1 @@
1
+ export type GetRecordsRequestLimitAfter = number | string;
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1 @@
1
+ export type GetRecordsRequestLimitBefore = number | string;
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -1,8 +1,11 @@
1
1
  export interface HttpValidationProblemDetails {
2
2
  type?: (string | null) | undefined;
3
3
  title?: (string | null) | undefined;
4
- status?: unknown | undefined;
4
+ status?: (HttpValidationProblemDetails.Status | null) | undefined;
5
5
  detail?: (string | null) | undefined;
6
6
  instance?: (string | null) | undefined;
7
7
  errors?: Record<string, string[]> | undefined;
8
8
  }
9
+ export declare namespace HttpValidationProblemDetails {
10
+ type Status = number | string;
11
+ }
@@ -1,9 +1,14 @@
1
1
  import type * as Minikai from "../index.mjs";
2
2
  export interface PaginatedListOfRecordDto {
3
3
  items: Minikai.RecordDto[];
4
- pageNumber?: unknown | undefined;
5
- totalPages?: unknown | undefined;
6
- totalCount?: unknown | undefined;
4
+ pageNumber: PaginatedListOfRecordDto.PageNumber;
5
+ totalPages?: PaginatedListOfRecordDto.TotalPages | undefined;
6
+ totalCount?: PaginatedListOfRecordDto.TotalCount | undefined;
7
7
  hasPreviousPage?: boolean | undefined;
8
8
  hasNextPage?: boolean | undefined;
9
9
  }
10
+ export declare namespace PaginatedListOfRecordDto {
11
+ type PageNumber = number | string;
12
+ type TotalPages = number | string;
13
+ type TotalCount = number | string;
14
+ }
@@ -2,7 +2,7 @@ export interface RecordAttachmentDto {
2
2
  id?: string | undefined;
3
3
  fileName?: string | undefined;
4
4
  contentType?: string | undefined;
5
- size?: unknown | undefined;
5
+ size?: RecordAttachmentDto.Size | undefined;
6
6
  checksum?: (string | null) | undefined;
7
7
  createdAt?: (string | null) | undefined;
8
8
  updatedAt?: (string | null) | undefined;
@@ -10,3 +10,6 @@ export interface RecordAttachmentDto {
10
10
  updatedBy?: (string | null) | undefined;
11
11
  metadata?: (Record<string, unknown> | null) | undefined;
12
12
  }
13
+ export declare namespace RecordAttachmentDto {
14
+ type Size = number | string;
15
+ }
@@ -9,7 +9,7 @@ export interface RecordDto {
9
9
  createdBy?: string | undefined;
10
10
  updatedBy?: (string | null) | undefined;
11
11
  state?: Minikai.RecordState | undefined;
12
- ttl?: unknown | undefined;
12
+ ttl?: (RecordDto.Ttl | null) | undefined;
13
13
  schema?: unknown | undefined;
14
14
  content?: unknown | undefined;
15
15
  attachments?: Minikai.RecordAttachmentDto[] | undefined;
@@ -20,3 +20,6 @@ export interface RecordDto {
20
20
  tags?: Record<string, unknown> | undefined;
21
21
  eTag?: (string | null) | undefined;
22
22
  }
23
+ export declare namespace RecordDto {
24
+ type Ttl = number | string;
25
+ }
@@ -1,6 +1,9 @@
1
1
  import type * as Minikai from "../index.mjs";
2
2
  export interface SearchResultOfMiniDto {
3
3
  items?: Minikai.SearchHitOfMiniDto[] | undefined;
4
- totalCount?: unknown | undefined;
4
+ totalCount?: SearchResultOfMiniDto.TotalCount | undefined;
5
5
  nextCursor?: (string | null) | undefined;
6
6
  }
7
+ export declare namespace SearchResultOfMiniDto {
8
+ type TotalCount = number | string;
9
+ }
@@ -1,6 +1,9 @@
1
1
  import type * as Minikai from "../index.mjs";
2
2
  export interface SearchResultOfRecordDto {
3
3
  items?: Minikai.SearchHitOfRecordDto[] | undefined;
4
- totalCount?: unknown | undefined;
4
+ totalCount?: SearchResultOfRecordDto.TotalCount | undefined;
5
5
  nextCursor?: (string | null) | undefined;
6
6
  }
7
+ export declare namespace SearchResultOfRecordDto {
8
+ type TotalCount = number | string;
9
+ }
@@ -3,6 +3,9 @@ export interface SkillAssetDto {
3
3
  id?: string | undefined;
4
4
  name?: string | undefined;
5
5
  type?: Minikai.SkillAssetType | undefined;
6
- size?: unknown | undefined;
6
+ size?: SkillAssetDto.Size | undefined;
7
7
  url?: string | undefined;
8
8
  }
9
+ export declare namespace SkillAssetDto {
10
+ type Size = number | string;
11
+ }
@@ -1,7 +1,11 @@
1
1
  export interface StringSegment {
2
2
  buffer?: (string | null) | undefined;
3
- offset?: unknown | undefined;
4
- length?: unknown | undefined;
3
+ offset?: StringSegment.Offset | undefined;
4
+ length?: StringSegment.Length | undefined;
5
5
  value?: (string | null) | undefined;
6
6
  hasValue?: boolean | undefined;
7
7
  }
8
+ export declare namespace StringSegment {
9
+ type Offset = number | string;
10
+ type Length = number | string;
11
+ }
@@ -12,6 +12,12 @@ export * from "./ExistingDuplicateRecordMatch.mjs";
12
12
  export * from "./FailedAttachmentItem.mjs";
13
13
  export * from "./FailedUploadItem.mjs";
14
14
  export * from "./FailedUpsertItem.mjs";
15
+ export * from "./GetMiniVersionsRequestLimit.mjs";
16
+ export * from "./GetRecordsByExternalRequestPageNumber.mjs";
17
+ export * from "./GetRecordsByExternalRequestPageSize.mjs";
18
+ export * from "./GetRecordsRequestLimitAfter.mjs";
19
+ export * from "./GetRecordsRequestLimitBefore.mjs";
20
+ export * from "./GetRecordVersionsRequestLimit.mjs";
15
21
  export * from "./HttpValidationProblemDetails.mjs";
16
22
  export * from "./Identity.mjs";
17
23
  export * from "./IdentityKind.mjs";
@@ -12,6 +12,12 @@ export * from "./ExistingDuplicateRecordMatch.mjs";
12
12
  export * from "./FailedAttachmentItem.mjs";
13
13
  export * from "./FailedUploadItem.mjs";
14
14
  export * from "./FailedUpsertItem.mjs";
15
+ export * from "./GetMiniVersionsRequestLimit.mjs";
16
+ export * from "./GetRecordsByExternalRequestPageNumber.mjs";
17
+ export * from "./GetRecordsByExternalRequestPageSize.mjs";
18
+ export * from "./GetRecordsRequestLimitAfter.mjs";
19
+ export * from "./GetRecordsRequestLimitBefore.mjs";
20
+ export * from "./GetRecordVersionsRequestLimit.mjs";
15
21
  export * from "./HttpValidationProblemDetails.mjs";
16
22
  export * from "./Identity.mjs";
17
23
  export * from "./IdentityKind.mjs";
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.19.1";
1
+ export declare const SDK_VERSION = "1.19.2";
@@ -1 +1 @@
1
- export const SDK_VERSION = "1.19.1";
1
+ export const SDK_VERSION = "1.19.2";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "minikai",
3
- "version": "1.19.1",
3
+ "version": "1.19.2",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",