minikai 1.19.0 → 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.
- package/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/api/resources/minis/client/Client.js +8 -1
- package/dist/cjs/api/resources/minis/client/requests/GetMiniVersionsRequest.d.ts +2 -1
- package/dist/cjs/api/resources/minis/client/requests/SearchMinisFullTextQuery.d.ts +4 -1
- package/dist/cjs/api/resources/records/client/Client.js +36 -5
- package/dist/cjs/api/resources/records/client/requests/GetRecordVersionsRequest.d.ts +2 -1
- package/dist/cjs/api/resources/records/client/requests/GetRecordsByExternalRequest.d.ts +3 -2
- package/dist/cjs/api/resources/records/client/requests/GetRecordsRequest.d.ts +3 -2
- package/dist/cjs/api/resources/records/client/requests/SearchRecordsFullTextQuery.d.ts +4 -1
- package/dist/cjs/api/types/BatchAttachmentResult.d.ts +6 -2
- package/dist/cjs/api/types/BatchUploadResult.d.ts +6 -2
- package/dist/cjs/api/types/BatchUpsertResult.d.ts +6 -2
- package/dist/cjs/api/types/CursorPaginatedListOfMiniVersionDto.d.ts +4 -1
- package/dist/cjs/api/types/CursorPaginatedListOfRecordDto.d.ts +4 -1
- package/dist/cjs/api/types/CursorPaginatedListOfRecordVersionDto.d.ts +4 -1
- package/dist/cjs/api/types/DuplicateUpsertItemOfBatchUploadRecordItemDto.d.ts +9 -2
- package/dist/cjs/api/types/DuplicateUpsertItemOfUpsertRecordDto.d.ts +9 -2
- package/dist/cjs/api/types/FailedAttachmentItem.d.ts +4 -1
- package/dist/cjs/api/types/FailedUploadItem.d.ts +4 -1
- package/dist/cjs/api/types/FailedUpsertItem.d.ts +4 -1
- package/dist/cjs/api/types/GetMiniVersionsRequestLimit.d.ts +1 -0
- package/dist/cjs/api/types/GetMiniVersionsRequestLimit.js +3 -0
- package/dist/cjs/api/types/GetRecordVersionsRequestLimit.d.ts +1 -0
- package/dist/cjs/api/types/GetRecordVersionsRequestLimit.js +3 -0
- package/dist/cjs/api/types/GetRecordsByExternalRequestPageNumber.d.ts +1 -0
- package/dist/cjs/api/types/GetRecordsByExternalRequestPageNumber.js +3 -0
- package/dist/cjs/api/types/GetRecordsByExternalRequestPageSize.d.ts +1 -0
- package/dist/cjs/api/types/GetRecordsByExternalRequestPageSize.js +3 -0
- package/dist/cjs/api/types/GetRecordsRequestLimitAfter.d.ts +1 -0
- package/dist/cjs/api/types/GetRecordsRequestLimitAfter.js +3 -0
- package/dist/cjs/api/types/GetRecordsRequestLimitBefore.d.ts +1 -0
- package/dist/cjs/api/types/GetRecordsRequestLimitBefore.js +3 -0
- package/dist/cjs/api/types/HttpValidationProblemDetails.d.ts +4 -1
- package/dist/cjs/api/types/PaginatedListOfRecordDto.d.ts +8 -3
- package/dist/cjs/api/types/RecordAttachmentDto.d.ts +4 -1
- package/dist/cjs/api/types/RecordDto.d.ts +4 -1
- package/dist/cjs/api/types/SearchResultOfMiniDto.d.ts +4 -1
- package/dist/cjs/api/types/SearchResultOfRecordDto.d.ts +4 -1
- package/dist/cjs/api/types/SkillAssetDto.d.ts +4 -1
- package/dist/cjs/api/types/StringSegment.d.ts +6 -2
- package/dist/cjs/api/types/index.d.ts +6 -0
- package/dist/cjs/api/types/index.js +6 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/api/resources/minis/client/Client.mjs +8 -1
- package/dist/esm/api/resources/minis/client/requests/GetMiniVersionsRequest.d.mts +2 -1
- package/dist/esm/api/resources/minis/client/requests/SearchMinisFullTextQuery.d.mts +4 -1
- package/dist/esm/api/resources/records/client/Client.mjs +36 -5
- package/dist/esm/api/resources/records/client/requests/GetRecordVersionsRequest.d.mts +2 -1
- package/dist/esm/api/resources/records/client/requests/GetRecordsByExternalRequest.d.mts +3 -2
- package/dist/esm/api/resources/records/client/requests/GetRecordsRequest.d.mts +3 -2
- package/dist/esm/api/resources/records/client/requests/SearchRecordsFullTextQuery.d.mts +4 -1
- package/dist/esm/api/types/BatchAttachmentResult.d.mts +6 -2
- package/dist/esm/api/types/BatchUploadResult.d.mts +6 -2
- package/dist/esm/api/types/BatchUpsertResult.d.mts +6 -2
- package/dist/esm/api/types/CursorPaginatedListOfMiniVersionDto.d.mts +4 -1
- package/dist/esm/api/types/CursorPaginatedListOfRecordDto.d.mts +4 -1
- package/dist/esm/api/types/CursorPaginatedListOfRecordVersionDto.d.mts +4 -1
- package/dist/esm/api/types/DuplicateUpsertItemOfBatchUploadRecordItemDto.d.mts +9 -2
- package/dist/esm/api/types/DuplicateUpsertItemOfUpsertRecordDto.d.mts +9 -2
- package/dist/esm/api/types/FailedAttachmentItem.d.mts +4 -1
- package/dist/esm/api/types/FailedUploadItem.d.mts +4 -1
- package/dist/esm/api/types/FailedUpsertItem.d.mts +4 -1
- package/dist/esm/api/types/GetMiniVersionsRequestLimit.d.mts +1 -0
- package/dist/esm/api/types/GetMiniVersionsRequestLimit.mjs +2 -0
- package/dist/esm/api/types/GetRecordVersionsRequestLimit.d.mts +1 -0
- package/dist/esm/api/types/GetRecordVersionsRequestLimit.mjs +2 -0
- package/dist/esm/api/types/GetRecordsByExternalRequestPageNumber.d.mts +1 -0
- package/dist/esm/api/types/GetRecordsByExternalRequestPageNumber.mjs +2 -0
- package/dist/esm/api/types/GetRecordsByExternalRequestPageSize.d.mts +1 -0
- package/dist/esm/api/types/GetRecordsByExternalRequestPageSize.mjs +2 -0
- package/dist/esm/api/types/GetRecordsRequestLimitAfter.d.mts +1 -0
- package/dist/esm/api/types/GetRecordsRequestLimitAfter.mjs +2 -0
- package/dist/esm/api/types/GetRecordsRequestLimitBefore.d.mts +1 -0
- package/dist/esm/api/types/GetRecordsRequestLimitBefore.mjs +2 -0
- package/dist/esm/api/types/HttpValidationProblemDetails.d.mts +4 -1
- package/dist/esm/api/types/PaginatedListOfRecordDto.d.mts +8 -3
- package/dist/esm/api/types/RecordAttachmentDto.d.mts +4 -1
- package/dist/esm/api/types/RecordDto.d.mts +4 -1
- package/dist/esm/api/types/SearchResultOfMiniDto.d.mts +4 -1
- package/dist/esm/api/types/SearchResultOfRecordDto.d.mts +4 -1
- package/dist/esm/api/types/SkillAssetDto.d.mts +4 -1
- package/dist/esm/api/types/StringSegment.d.mts +6 -2
- package/dist/esm/api/types/index.d.mts +6 -0
- package/dist/esm/api/types/index.mjs +6 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
package/dist/cjs/BaseClient.js
CHANGED
|
@@ -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.
|
|
47
|
-
"User-Agent": "minikai/1.19.
|
|
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();
|
|
@@ -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?:
|
|
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
|
-
|
|
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
|
-
|
|
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?:
|
|
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?:
|
|
11
|
-
pageSize?:
|
|
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?:
|
|
15
|
-
limitAfter?:
|
|
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?:
|
|
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?:
|
|
6
|
-
failureCount?:
|
|
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?:
|
|
7
|
-
failureCount?:
|
|
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?:
|
|
7
|
-
failureCount?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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
|
|
3
|
+
index: DuplicateUpsertItemOfBatchUploadRecordItemDto.Index;
|
|
4
4
|
item: Minikai.BatchUploadRecordItemDto | null;
|
|
5
5
|
existingMatches?: Minikai.ExistingDuplicateRecordMatch[] | undefined;
|
|
6
|
-
intraBatchDuplicateOf?:
|
|
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
|
|
3
|
+
index: DuplicateUpsertItemOfUpsertRecordDto.Index;
|
|
4
4
|
item: Minikai.UpsertRecordDto | null;
|
|
5
5
|
existingMatches?: Minikai.ExistingDuplicateRecordMatch[] | undefined;
|
|
6
|
-
intraBatchDuplicateOf?:
|
|
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,7 +1,10 @@
|
|
|
1
1
|
import type * as Minikai from "../index.js";
|
|
2
2
|
export interface FailedUploadItem {
|
|
3
|
-
index
|
|
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
|
|
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 @@
|
|
|
1
|
+
export type GetRecordVersionsRequestLimit = number | string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type GetRecordsByExternalRequestPageNumber = number | string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type GetRecordsByExternalRequestPageSize = number | string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type GetRecordsRequestLimitAfter = number | string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type GetRecordsRequestLimitBefore = number | string;
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
export interface HttpValidationProblemDetails {
|
|
2
2
|
type?: (string | null) | undefined;
|
|
3
3
|
title?: (string | null) | undefined;
|
|
4
|
-
status?:
|
|
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
|
|
5
|
-
totalPages?:
|
|
6
|
-
totalCount?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
4
|
-
length?:
|
|
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);
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.19.
|
|
1
|
+
export declare const SDK_VERSION = "1.19.2";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/BaseClient.mjs
CHANGED
|
@@ -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.
|
|
10
|
-
"User-Agent": "minikai/1.19.
|
|
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();
|
|
@@ -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?:
|
|
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
|
-
|
|
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
|
-
|
|
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?:
|
|
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?:
|
|
11
|
-
pageSize?:
|
|
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?:
|
|
15
|
-
limitAfter?:
|
|
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?:
|
|
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?:
|
|
6
|
-
failureCount?:
|
|
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?:
|
|
7
|
-
failureCount?:
|
|
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?:
|
|
7
|
-
failureCount?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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
|
|
3
|
+
index: DuplicateUpsertItemOfBatchUploadRecordItemDto.Index;
|
|
4
4
|
item: Minikai.BatchUploadRecordItemDto | null;
|
|
5
5
|
existingMatches?: Minikai.ExistingDuplicateRecordMatch[] | undefined;
|
|
6
|
-
intraBatchDuplicateOf?:
|
|
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
|
|
3
|
+
index: DuplicateUpsertItemOfUpsertRecordDto.Index;
|
|
4
4
|
item: Minikai.UpsertRecordDto | null;
|
|
5
5
|
existingMatches?: Minikai.ExistingDuplicateRecordMatch[] | undefined;
|
|
6
|
-
intraBatchDuplicateOf?:
|
|
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,7 +1,10 @@
|
|
|
1
1
|
import type * as Minikai from "../index.mjs";
|
|
2
2
|
export interface FailedUploadItem {
|
|
3
|
-
index
|
|
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
|
|
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 @@
|
|
|
1
|
+
export type GetRecordVersionsRequestLimit = number | string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type GetRecordsByExternalRequestPageNumber = number | string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type GetRecordsByExternalRequestPageSize = number | string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type GetRecordsRequestLimitAfter = number | string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type GetRecordsRequestLimitBefore = number | string;
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
export interface HttpValidationProblemDetails {
|
|
2
2
|
type?: (string | null) | undefined;
|
|
3
3
|
title?: (string | null) | undefined;
|
|
4
|
-
status?:
|
|
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
|
|
5
|
-
totalPages?:
|
|
6
|
-
totalCount?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
4
|
-
length?:
|
|
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";
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.19.
|
|
1
|
+
export declare const SDK_VERSION = "1.19.2";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "1.19.
|
|
1
|
+
export const SDK_VERSION = "1.19.2";
|