@knowledge-stack/ksapi 1.159.0 → 1.159.1
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/README.md +2 -2
- package/dist/esm/models/UploadConstraints.d.ts +12 -0
- package/dist/esm/models/UploadConstraints.js +8 -0
- package/dist/models/UploadConstraints.d.ts +12 -0
- package/dist/models/UploadConstraints.js +8 -0
- package/docs/UploadConstraints.md +4 -0
- package/package.json +1 -1
- package/src/models/UploadConstraints.ts +18 -0
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @knowledge-stack/ksapi@1.159.
|
|
1
|
+
# @knowledge-stack/ksapi@1.159.1
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the localhost API.
|
|
4
4
|
|
|
@@ -709,7 +709,7 @@ and is automatically generated by the
|
|
|
709
709
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
710
710
|
|
|
711
711
|
- API version: `0.1.0`
|
|
712
|
-
- Package version: `1.159.
|
|
712
|
+
- Package version: `1.159.1`
|
|
713
713
|
- Generator version: `7.21.0`
|
|
714
714
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
715
715
|
|
|
@@ -46,6 +46,18 @@ export interface UploadConstraints {
|
|
|
46
46
|
* @memberof UploadConstraints
|
|
47
47
|
*/
|
|
48
48
|
maxVideoBytes: number;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {number}
|
|
52
|
+
* @memberof UploadConstraints
|
|
53
|
+
*/
|
|
54
|
+
maxMediaDurationMs: number;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {number}
|
|
58
|
+
* @memberof UploadConstraints
|
|
59
|
+
*/
|
|
60
|
+
resumablePartSize: number;
|
|
49
61
|
}
|
|
50
62
|
export declare const UploadConstraintsPropertyValidationAttributesMap: {
|
|
51
63
|
[property: string]: {
|
|
@@ -27,6 +27,10 @@ export function instanceOfUploadConstraints(value) {
|
|
|
27
27
|
return false;
|
|
28
28
|
if (!('maxVideoBytes' in value) || value['maxVideoBytes'] === undefined)
|
|
29
29
|
return false;
|
|
30
|
+
if (!('maxMediaDurationMs' in value) || value['maxMediaDurationMs'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('resumablePartSize' in value) || value['resumablePartSize'] === undefined)
|
|
33
|
+
return false;
|
|
30
34
|
return true;
|
|
31
35
|
}
|
|
32
36
|
export function UploadConstraintsFromJSON(json) {
|
|
@@ -42,6 +46,8 @@ export function UploadConstraintsFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
42
46
|
'maxImageBytes': json['max_image_bytes'],
|
|
43
47
|
'maxMediaBytes': json['max_media_bytes'],
|
|
44
48
|
'maxVideoBytes': json['max_video_bytes'],
|
|
49
|
+
'maxMediaDurationMs': json['max_media_duration_ms'],
|
|
50
|
+
'resumablePartSize': json['resumable_part_size'],
|
|
45
51
|
};
|
|
46
52
|
}
|
|
47
53
|
export function UploadConstraintsToJSON(json) {
|
|
@@ -57,5 +63,7 @@ export function UploadConstraintsToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
57
63
|
'max_image_bytes': value['maxImageBytes'],
|
|
58
64
|
'max_media_bytes': value['maxMediaBytes'],
|
|
59
65
|
'max_video_bytes': value['maxVideoBytes'],
|
|
66
|
+
'max_media_duration_ms': value['maxMediaDurationMs'],
|
|
67
|
+
'resumable_part_size': value['resumablePartSize'],
|
|
60
68
|
};
|
|
61
69
|
}
|
|
@@ -46,6 +46,18 @@ export interface UploadConstraints {
|
|
|
46
46
|
* @memberof UploadConstraints
|
|
47
47
|
*/
|
|
48
48
|
maxVideoBytes: number;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {number}
|
|
52
|
+
* @memberof UploadConstraints
|
|
53
|
+
*/
|
|
54
|
+
maxMediaDurationMs: number;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {number}
|
|
58
|
+
* @memberof UploadConstraints
|
|
59
|
+
*/
|
|
60
|
+
resumablePartSize: number;
|
|
49
61
|
}
|
|
50
62
|
export declare const UploadConstraintsPropertyValidationAttributesMap: {
|
|
51
63
|
[property: string]: {
|
|
@@ -35,6 +35,10 @@ function instanceOfUploadConstraints(value) {
|
|
|
35
35
|
return false;
|
|
36
36
|
if (!('maxVideoBytes' in value) || value['maxVideoBytes'] === undefined)
|
|
37
37
|
return false;
|
|
38
|
+
if (!('maxMediaDurationMs' in value) || value['maxMediaDurationMs'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('resumablePartSize' in value) || value['resumablePartSize'] === undefined)
|
|
41
|
+
return false;
|
|
38
42
|
return true;
|
|
39
43
|
}
|
|
40
44
|
function UploadConstraintsFromJSON(json) {
|
|
@@ -50,6 +54,8 @@ function UploadConstraintsFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
50
54
|
'maxImageBytes': json['max_image_bytes'],
|
|
51
55
|
'maxMediaBytes': json['max_media_bytes'],
|
|
52
56
|
'maxVideoBytes': json['max_video_bytes'],
|
|
57
|
+
'maxMediaDurationMs': json['max_media_duration_ms'],
|
|
58
|
+
'resumablePartSize': json['resumable_part_size'],
|
|
53
59
|
};
|
|
54
60
|
}
|
|
55
61
|
function UploadConstraintsToJSON(json) {
|
|
@@ -65,5 +71,7 @@ function UploadConstraintsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
65
71
|
'max_image_bytes': value['maxImageBytes'],
|
|
66
72
|
'max_media_bytes': value['maxMediaBytes'],
|
|
67
73
|
'max_video_bytes': value['maxVideoBytes'],
|
|
74
|
+
'max_media_duration_ms': value['maxMediaDurationMs'],
|
|
75
|
+
'resumable_part_size': value['resumablePartSize'],
|
|
68
76
|
};
|
|
69
77
|
}
|
|
@@ -11,6 +11,8 @@ Name | Type
|
|
|
11
11
|
`maxImageBytes` | number
|
|
12
12
|
`maxMediaBytes` | number
|
|
13
13
|
`maxVideoBytes` | number
|
|
14
|
+
`maxMediaDurationMs` | number
|
|
15
|
+
`resumablePartSize` | number
|
|
14
16
|
|
|
15
17
|
## Example
|
|
16
18
|
|
|
@@ -24,6 +26,8 @@ const example = {
|
|
|
24
26
|
"maxImageBytes": null,
|
|
25
27
|
"maxMediaBytes": null,
|
|
26
28
|
"maxVideoBytes": null,
|
|
29
|
+
"maxMediaDurationMs": null,
|
|
30
|
+
"resumablePartSize": null,
|
|
27
31
|
} satisfies UploadConstraints
|
|
28
32
|
|
|
29
33
|
console.log(example)
|
package/package.json
CHANGED
|
@@ -57,6 +57,18 @@ export interface UploadConstraints {
|
|
|
57
57
|
* @memberof UploadConstraints
|
|
58
58
|
*/
|
|
59
59
|
maxVideoBytes: number;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {number}
|
|
63
|
+
* @memberof UploadConstraints
|
|
64
|
+
*/
|
|
65
|
+
maxMediaDurationMs: number;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {number}
|
|
69
|
+
* @memberof UploadConstraints
|
|
70
|
+
*/
|
|
71
|
+
resumablePartSize: number;
|
|
60
72
|
}
|
|
61
73
|
export const UploadConstraintsPropertyValidationAttributesMap: {
|
|
62
74
|
[property: string]: {
|
|
@@ -85,6 +97,8 @@ export function instanceOfUploadConstraints(value: object): value is UploadConst
|
|
|
85
97
|
if (!('maxImageBytes' in value) || value['maxImageBytes'] === undefined) return false;
|
|
86
98
|
if (!('maxMediaBytes' in value) || value['maxMediaBytes'] === undefined) return false;
|
|
87
99
|
if (!('maxVideoBytes' in value) || value['maxVideoBytes'] === undefined) return false;
|
|
100
|
+
if (!('maxMediaDurationMs' in value) || value['maxMediaDurationMs'] === undefined) return false;
|
|
101
|
+
if (!('resumablePartSize' in value) || value['resumablePartSize'] === undefined) return false;
|
|
88
102
|
return true;
|
|
89
103
|
}
|
|
90
104
|
|
|
@@ -103,6 +117,8 @@ export function UploadConstraintsFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
103
117
|
'maxImageBytes': json['max_image_bytes'],
|
|
104
118
|
'maxMediaBytes': json['max_media_bytes'],
|
|
105
119
|
'maxVideoBytes': json['max_video_bytes'],
|
|
120
|
+
'maxMediaDurationMs': json['max_media_duration_ms'],
|
|
121
|
+
'resumablePartSize': json['resumable_part_size'],
|
|
106
122
|
};
|
|
107
123
|
}
|
|
108
124
|
|
|
@@ -122,6 +138,8 @@ export function UploadConstraintsToJSONTyped(value?: UploadConstraints | null, i
|
|
|
122
138
|
'max_image_bytes': value['maxImageBytes'],
|
|
123
139
|
'max_media_bytes': value['maxMediaBytes'],
|
|
124
140
|
'max_video_bytes': value['maxVideoBytes'],
|
|
141
|
+
'max_media_duration_ms': value['maxMediaDurationMs'],
|
|
142
|
+
'resumable_part_size': value['resumablePartSize'],
|
|
125
143
|
};
|
|
126
144
|
}
|
|
127
145
|
|