@abliteration/sdk 0.1.7 → 0.1.8
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/.openapi-generator/FILES +8 -0
- package/README.md +6 -0
- package/dist/apis/ModelsApi.d.ts +122 -0
- package/dist/apis/ModelsApi.js +120 -1
- package/dist/esm/apis/ModelsApi.d.ts +122 -0
- package/dist/esm/apis/ModelsApi.js +119 -0
- package/dist/esm/models/DownloadAnomaly.d.ts +66 -0
- package/dist/esm/models/DownloadAnomaly.js +62 -0
- package/dist/esm/models/DownloadPoint.d.ts +34 -0
- package/dist/esm/models/DownloadPoint.js +43 -0
- package/dist/esm/models/GetModelDownloadHistory200Response.d.ts +67 -0
- package/dist/esm/models/GetModelDownloadHistory200Response.js +79 -0
- package/dist/esm/models/ListAnomalies200Response.d.ts +67 -0
- package/dist/esm/models/ListAnomalies200Response.js +79 -0
- package/dist/esm/models/index.d.ts +4 -0
- package/dist/esm/models/index.js +4 -0
- package/dist/models/DownloadAnomaly.d.ts +66 -0
- package/dist/models/DownloadAnomaly.js +70 -0
- package/dist/models/DownloadPoint.d.ts +34 -0
- package/dist/models/DownloadPoint.js +50 -0
- package/dist/models/GetModelDownloadHistory200Response.d.ts +67 -0
- package/dist/models/GetModelDownloadHistory200Response.js +87 -0
- package/dist/models/ListAnomalies200Response.d.ts +67 -0
- package/dist/models/ListAnomalies200Response.js +87 -0
- package/dist/models/index.d.ts +4 -0
- package/dist/models/index.js +4 -0
- package/docs/DownloadAnomaly.md +49 -0
- package/docs/DownloadPoint.md +37 -0
- package/docs/GetModelDownloadHistory200Response.md +48 -0
- package/docs/ListAnomalies200Response.md +48 -0
- package/docs/ModelsApi.md +167 -0
- package/package.json +1 -1
- package/src/apis/ModelsApi.ts +236 -0
- package/src/models/DownloadAnomaly.ts +116 -0
- package/src/models/DownloadPoint.ts +69 -0
- package/src/models/GetModelDownloadHistory200Response.ts +132 -0
- package/src/models/ListAnomalies200Response.ts +132 -0
- package/src/models/index.ts +4 -0
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* abliteration.org Public API
|
|
5
|
+
* Read access to the abliteration.org catalog: models and their method classification, alignment datasets and their passports, the M-code taxonomy, the four flagship indices and the curated field timeline. Every call is authenticated with a bearer key and metered in credits against the same wallet the Research Agent spends from. There is no free tier for machine traffic and no separate billing. Responses report `cost` and `credits_remaining` on every success. While `metering` reads `preview`, the cost shown is what the call will bill once metering is enabled and nothing is actually deducted; when it reads `billed`, it was.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
* One model whose downloads-per-window crossed a threshold.
|
|
18
|
+
* @export
|
|
19
|
+
* @interface DownloadAnomaly
|
|
20
|
+
*/
|
|
21
|
+
export interface DownloadAnomaly {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
model_id?: string;
|
|
26
|
+
/**
|
|
27
|
+
* ISO-8601 timestamp of the current snapshot.
|
|
28
|
+
*/
|
|
29
|
+
current_at?: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
*/
|
|
33
|
+
current_downloads?: number;
|
|
34
|
+
/**
|
|
35
|
+
* ISO-8601 timestamp of the baseline snapshot the delta is computed against.
|
|
36
|
+
*/
|
|
37
|
+
baseline_at?: string;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
*/
|
|
41
|
+
baseline_downloads?: number;
|
|
42
|
+
/**
|
|
43
|
+
* current_downloads / baseline_downloads.
|
|
44
|
+
*/
|
|
45
|
+
ratio?: number;
|
|
46
|
+
/**
|
|
47
|
+
* current_downloads - baseline_downloads (signed).
|
|
48
|
+
*/
|
|
49
|
+
delta?: number;
|
|
50
|
+
/**
|
|
51
|
+
* `spike` when ratio >= 2, `drop` when ratio <= 0.5.
|
|
52
|
+
*/
|
|
53
|
+
kind?: DownloadAnomalyKindEnum;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* @export
|
|
59
|
+
*/
|
|
60
|
+
export const DownloadAnomalyKindEnum = {
|
|
61
|
+
Spike: 'spike',
|
|
62
|
+
Drop: 'drop',
|
|
63
|
+
} as const;
|
|
64
|
+
export type DownloadAnomalyKindEnum = typeof DownloadAnomalyKindEnum[keyof typeof DownloadAnomalyKindEnum];
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Check if a given object implements the DownloadAnomaly interface.
|
|
69
|
+
*/
|
|
70
|
+
export function instanceOfDownloadAnomaly(value: object): value is DownloadAnomaly {
|
|
71
|
+
return true;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function DownloadAnomalyFromJSON(json: any): DownloadAnomaly {
|
|
75
|
+
return DownloadAnomalyFromJSONTyped(json, false);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function DownloadAnomalyFromJSONTyped(json: any, ignoreDiscriminator: boolean): DownloadAnomaly {
|
|
79
|
+
if (json == null) {
|
|
80
|
+
return json;
|
|
81
|
+
}
|
|
82
|
+
return {
|
|
83
|
+
|
|
84
|
+
'model_id': json['model_id'] == null ? undefined : json['model_id'],
|
|
85
|
+
'current_at': json['current_at'] == null ? undefined : json['current_at'],
|
|
86
|
+
'current_downloads': json['current_downloads'] == null ? undefined : json['current_downloads'],
|
|
87
|
+
'baseline_at': json['baseline_at'] == null ? undefined : json['baseline_at'],
|
|
88
|
+
'baseline_downloads': json['baseline_downloads'] == null ? undefined : json['baseline_downloads'],
|
|
89
|
+
'ratio': json['ratio'] == null ? undefined : json['ratio'],
|
|
90
|
+
'delta': json['delta'] == null ? undefined : json['delta'],
|
|
91
|
+
'kind': json['kind'] == null ? undefined : json['kind'],
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export function DownloadAnomalyToJSON(json: any): DownloadAnomaly {
|
|
96
|
+
return DownloadAnomalyToJSONTyped(json, false);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export function DownloadAnomalyToJSONTyped(value?: DownloadAnomaly | null, ignoreDiscriminator: boolean = false): any {
|
|
100
|
+
if (value == null) {
|
|
101
|
+
return value;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
return {
|
|
105
|
+
|
|
106
|
+
'model_id': value['model_id'],
|
|
107
|
+
'current_at': value['current_at'],
|
|
108
|
+
'current_downloads': value['current_downloads'],
|
|
109
|
+
'baseline_at': value['baseline_at'],
|
|
110
|
+
'baseline_downloads': value['baseline_downloads'],
|
|
111
|
+
'ratio': value['ratio'],
|
|
112
|
+
'delta': value['delta'],
|
|
113
|
+
'kind': value['kind'],
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* abliteration.org Public API
|
|
5
|
+
* Read access to the abliteration.org catalog: models and their method classification, alignment datasets and their passports, the M-code taxonomy, the four flagship indices and the curated field timeline. Every call is authenticated with a bearer key and metered in credits against the same wallet the Research Agent spends from. There is no free tier for machine traffic and no separate billing. Responses report `cost` and `credits_remaining` on every success. While `metering` reads `preview`, the cost shown is what the call will bill once metering is enabled and nothing is actually deducted; when it reads `billed`, it was.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
* One snapshot in a per-model download timeline.
|
|
18
|
+
* @export
|
|
19
|
+
* @interface DownloadPoint
|
|
20
|
+
*/
|
|
21
|
+
export interface DownloadPoint {
|
|
22
|
+
/**
|
|
23
|
+
* ISO-8601 timestamp of the observation.
|
|
24
|
+
*/
|
|
25
|
+
date?: string;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
*/
|
|
29
|
+
downloads?: number;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the DownloadPoint interface.
|
|
34
|
+
*/
|
|
35
|
+
export function instanceOfDownloadPoint(value: object): value is DownloadPoint {
|
|
36
|
+
return true;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export function DownloadPointFromJSON(json: any): DownloadPoint {
|
|
40
|
+
return DownloadPointFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function DownloadPointFromJSONTyped(json: any, ignoreDiscriminator: boolean): DownloadPoint {
|
|
44
|
+
if (json == null) {
|
|
45
|
+
return json;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
|
|
49
|
+
'date': json['date'] == null ? undefined : json['date'],
|
|
50
|
+
'downloads': json['downloads'] == null ? undefined : json['downloads'],
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function DownloadPointToJSON(json: any): DownloadPoint {
|
|
55
|
+
return DownloadPointToJSONTyped(json, false);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function DownloadPointToJSONTyped(value?: DownloadPoint | null, ignoreDiscriminator: boolean = false): any {
|
|
59
|
+
if (value == null) {
|
|
60
|
+
return value;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
return {
|
|
64
|
+
|
|
65
|
+
'date': value['date'],
|
|
66
|
+
'downloads': value['downloads'],
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* abliteration.org Public API
|
|
5
|
+
* Read access to the abliteration.org catalog: models and their method classification, alignment datasets and their passports, the M-code taxonomy, the four flagship indices and the curated field timeline. Every call is authenticated with a bearer key and metered in credits against the same wallet the Research Agent spends from. There is no free tier for machine traffic and no separate billing. Responses report `cost` and `credits_remaining` on every success. While `metering` reads `preview`, the cost shown is what the call will bill once metering is enabled and nothing is actually deducted; when it reads `billed`, it was.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { DownloadPoint } from './DownloadPoint';
|
|
17
|
+
import {
|
|
18
|
+
DownloadPointFromJSON,
|
|
19
|
+
DownloadPointFromJSONTyped,
|
|
20
|
+
DownloadPointToJSON,
|
|
21
|
+
DownloadPointToJSONTyped,
|
|
22
|
+
} from './DownloadPoint';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface GetModelDownloadHistory200Response
|
|
28
|
+
*/
|
|
29
|
+
export interface GetModelDownloadHistory200Response {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
*/
|
|
33
|
+
data: Array<DownloadPoint>;
|
|
34
|
+
/**
|
|
35
|
+
* Credits this call costs.
|
|
36
|
+
*/
|
|
37
|
+
cost: number;
|
|
38
|
+
/**
|
|
39
|
+
* Wallet balance after the call. Unchanged while metering is preview.
|
|
40
|
+
*/
|
|
41
|
+
credits_remaining: number;
|
|
42
|
+
/**
|
|
43
|
+
* Ceiling for the current window. Also returned as X-RateLimit-Limit.
|
|
44
|
+
*/
|
|
45
|
+
rate_limit_limit: number;
|
|
46
|
+
/**
|
|
47
|
+
* Calls left in the current window for this key. Also returned as X-RateLimit-Remaining.
|
|
48
|
+
*/
|
|
49
|
+
rate_limit_remaining: number;
|
|
50
|
+
/**
|
|
51
|
+
* Unix seconds at which the window resets to full ceiling. Also returned as X-RateLimit-Reset.
|
|
52
|
+
*/
|
|
53
|
+
rate_limit_reset: number;
|
|
54
|
+
/**
|
|
55
|
+
* Whether cost was actually deducted.
|
|
56
|
+
*/
|
|
57
|
+
metering: GetModelDownloadHistory200ResponseMeteringEnum;
|
|
58
|
+
/**
|
|
59
|
+
* Also returned in the x-request-id header.
|
|
60
|
+
*/
|
|
61
|
+
request_id: string;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* @export
|
|
67
|
+
*/
|
|
68
|
+
export const GetModelDownloadHistory200ResponseMeteringEnum = {
|
|
69
|
+
Preview: 'preview',
|
|
70
|
+
Billed: 'billed',
|
|
71
|
+
} as const;
|
|
72
|
+
export type GetModelDownloadHistory200ResponseMeteringEnum = typeof GetModelDownloadHistory200ResponseMeteringEnum[keyof typeof GetModelDownloadHistory200ResponseMeteringEnum];
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Check if a given object implements the GetModelDownloadHistory200Response interface.
|
|
77
|
+
*/
|
|
78
|
+
export function instanceOfGetModelDownloadHistory200Response(value: object): value is GetModelDownloadHistory200Response {
|
|
79
|
+
if (!('data' in value) || value['data'] === undefined) return false;
|
|
80
|
+
if (!('cost' in value) || value['cost'] === undefined) return false;
|
|
81
|
+
if (!('credits_remaining' in value) || value['credits_remaining'] === undefined) return false;
|
|
82
|
+
if (!('rate_limit_limit' in value) || value['rate_limit_limit'] === undefined) return false;
|
|
83
|
+
if (!('rate_limit_remaining' in value) || value['rate_limit_remaining'] === undefined) return false;
|
|
84
|
+
if (!('rate_limit_reset' in value) || value['rate_limit_reset'] === undefined) return false;
|
|
85
|
+
if (!('metering' in value) || value['metering'] === undefined) return false;
|
|
86
|
+
if (!('request_id' in value) || value['request_id'] === undefined) return false;
|
|
87
|
+
return true;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export function GetModelDownloadHistory200ResponseFromJSON(json: any): GetModelDownloadHistory200Response {
|
|
91
|
+
return GetModelDownloadHistory200ResponseFromJSONTyped(json, false);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export function GetModelDownloadHistory200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetModelDownloadHistory200Response {
|
|
95
|
+
if (json == null) {
|
|
96
|
+
return json;
|
|
97
|
+
}
|
|
98
|
+
return {
|
|
99
|
+
|
|
100
|
+
'data': ((json['data'] as Array<any>).map(DownloadPointFromJSON)),
|
|
101
|
+
'cost': json['cost'],
|
|
102
|
+
'credits_remaining': json['credits_remaining'],
|
|
103
|
+
'rate_limit_limit': json['rate_limit_limit'],
|
|
104
|
+
'rate_limit_remaining': json['rate_limit_remaining'],
|
|
105
|
+
'rate_limit_reset': json['rate_limit_reset'],
|
|
106
|
+
'metering': json['metering'],
|
|
107
|
+
'request_id': json['request_id'],
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export function GetModelDownloadHistory200ResponseToJSON(json: any): GetModelDownloadHistory200Response {
|
|
112
|
+
return GetModelDownloadHistory200ResponseToJSONTyped(json, false);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
export function GetModelDownloadHistory200ResponseToJSONTyped(value?: GetModelDownloadHistory200Response | null, ignoreDiscriminator: boolean = false): any {
|
|
116
|
+
if (value == null) {
|
|
117
|
+
return value;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
return {
|
|
121
|
+
|
|
122
|
+
'data': ((value['data'] as Array<any>).map(DownloadPointToJSON)),
|
|
123
|
+
'cost': value['cost'],
|
|
124
|
+
'credits_remaining': value['credits_remaining'],
|
|
125
|
+
'rate_limit_limit': value['rate_limit_limit'],
|
|
126
|
+
'rate_limit_remaining': value['rate_limit_remaining'],
|
|
127
|
+
'rate_limit_reset': value['rate_limit_reset'],
|
|
128
|
+
'metering': value['metering'],
|
|
129
|
+
'request_id': value['request_id'],
|
|
130
|
+
};
|
|
131
|
+
}
|
|
132
|
+
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* abliteration.org Public API
|
|
5
|
+
* Read access to the abliteration.org catalog: models and their method classification, alignment datasets and their passports, the M-code taxonomy, the four flagship indices and the curated field timeline. Every call is authenticated with a bearer key and metered in credits against the same wallet the Research Agent spends from. There is no free tier for machine traffic and no separate billing. Responses report `cost` and `credits_remaining` on every success. While `metering` reads `preview`, the cost shown is what the call will bill once metering is enabled and nothing is actually deducted; when it reads `billed`, it was.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { DownloadAnomaly } from './DownloadAnomaly';
|
|
17
|
+
import {
|
|
18
|
+
DownloadAnomalyFromJSON,
|
|
19
|
+
DownloadAnomalyFromJSONTyped,
|
|
20
|
+
DownloadAnomalyToJSON,
|
|
21
|
+
DownloadAnomalyToJSONTyped,
|
|
22
|
+
} from './DownloadAnomaly';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface ListAnomalies200Response
|
|
28
|
+
*/
|
|
29
|
+
export interface ListAnomalies200Response {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
*/
|
|
33
|
+
data: Array<DownloadAnomaly>;
|
|
34
|
+
/**
|
|
35
|
+
* Credits this call costs.
|
|
36
|
+
*/
|
|
37
|
+
cost: number;
|
|
38
|
+
/**
|
|
39
|
+
* Wallet balance after the call. Unchanged while metering is preview.
|
|
40
|
+
*/
|
|
41
|
+
credits_remaining: number;
|
|
42
|
+
/**
|
|
43
|
+
* Ceiling for the current window. Also returned as X-RateLimit-Limit.
|
|
44
|
+
*/
|
|
45
|
+
rate_limit_limit: number;
|
|
46
|
+
/**
|
|
47
|
+
* Calls left in the current window for this key. Also returned as X-RateLimit-Remaining.
|
|
48
|
+
*/
|
|
49
|
+
rate_limit_remaining: number;
|
|
50
|
+
/**
|
|
51
|
+
* Unix seconds at which the window resets to full ceiling. Also returned as X-RateLimit-Reset.
|
|
52
|
+
*/
|
|
53
|
+
rate_limit_reset: number;
|
|
54
|
+
/**
|
|
55
|
+
* Whether cost was actually deducted.
|
|
56
|
+
*/
|
|
57
|
+
metering: ListAnomalies200ResponseMeteringEnum;
|
|
58
|
+
/**
|
|
59
|
+
* Also returned in the x-request-id header.
|
|
60
|
+
*/
|
|
61
|
+
request_id: string;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* @export
|
|
67
|
+
*/
|
|
68
|
+
export const ListAnomalies200ResponseMeteringEnum = {
|
|
69
|
+
Preview: 'preview',
|
|
70
|
+
Billed: 'billed',
|
|
71
|
+
} as const;
|
|
72
|
+
export type ListAnomalies200ResponseMeteringEnum = typeof ListAnomalies200ResponseMeteringEnum[keyof typeof ListAnomalies200ResponseMeteringEnum];
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Check if a given object implements the ListAnomalies200Response interface.
|
|
77
|
+
*/
|
|
78
|
+
export function instanceOfListAnomalies200Response(value: object): value is ListAnomalies200Response {
|
|
79
|
+
if (!('data' in value) || value['data'] === undefined) return false;
|
|
80
|
+
if (!('cost' in value) || value['cost'] === undefined) return false;
|
|
81
|
+
if (!('credits_remaining' in value) || value['credits_remaining'] === undefined) return false;
|
|
82
|
+
if (!('rate_limit_limit' in value) || value['rate_limit_limit'] === undefined) return false;
|
|
83
|
+
if (!('rate_limit_remaining' in value) || value['rate_limit_remaining'] === undefined) return false;
|
|
84
|
+
if (!('rate_limit_reset' in value) || value['rate_limit_reset'] === undefined) return false;
|
|
85
|
+
if (!('metering' in value) || value['metering'] === undefined) return false;
|
|
86
|
+
if (!('request_id' in value) || value['request_id'] === undefined) return false;
|
|
87
|
+
return true;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export function ListAnomalies200ResponseFromJSON(json: any): ListAnomalies200Response {
|
|
91
|
+
return ListAnomalies200ResponseFromJSONTyped(json, false);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export function ListAnomalies200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListAnomalies200Response {
|
|
95
|
+
if (json == null) {
|
|
96
|
+
return json;
|
|
97
|
+
}
|
|
98
|
+
return {
|
|
99
|
+
|
|
100
|
+
'data': ((json['data'] as Array<any>).map(DownloadAnomalyFromJSON)),
|
|
101
|
+
'cost': json['cost'],
|
|
102
|
+
'credits_remaining': json['credits_remaining'],
|
|
103
|
+
'rate_limit_limit': json['rate_limit_limit'],
|
|
104
|
+
'rate_limit_remaining': json['rate_limit_remaining'],
|
|
105
|
+
'rate_limit_reset': json['rate_limit_reset'],
|
|
106
|
+
'metering': json['metering'],
|
|
107
|
+
'request_id': json['request_id'],
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export function ListAnomalies200ResponseToJSON(json: any): ListAnomalies200Response {
|
|
112
|
+
return ListAnomalies200ResponseToJSONTyped(json, false);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
export function ListAnomalies200ResponseToJSONTyped(value?: ListAnomalies200Response | null, ignoreDiscriminator: boolean = false): any {
|
|
116
|
+
if (value == null) {
|
|
117
|
+
return value;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
return {
|
|
121
|
+
|
|
122
|
+
'data': ((value['data'] as Array<any>).map(DownloadAnomalyToJSON)),
|
|
123
|
+
'cost': value['cost'],
|
|
124
|
+
'credits_remaining': value['credits_remaining'],
|
|
125
|
+
'rate_limit_limit': value['rate_limit_limit'],
|
|
126
|
+
'rate_limit_remaining': value['rate_limit_remaining'],
|
|
127
|
+
'rate_limit_reset': value['rate_limit_reset'],
|
|
128
|
+
'metering': value['metering'],
|
|
129
|
+
'request_id': value['request_id'],
|
|
130
|
+
};
|
|
131
|
+
}
|
|
132
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -9,6 +9,8 @@ export * from './DeletionSummary';
|
|
|
9
9
|
export * from './DeletionSummaryTimelineInner';
|
|
10
10
|
export * from './DeletionSummaryTopByDownloadsInner';
|
|
11
11
|
export * from './DelistedModel';
|
|
12
|
+
export * from './DownloadAnomaly';
|
|
13
|
+
export * from './DownloadPoint';
|
|
12
14
|
export * from './Envelope';
|
|
13
15
|
export * from './Event';
|
|
14
16
|
export * from './GetAuthor200Response';
|
|
@@ -17,9 +19,11 @@ export * from './GetHistoricalDeletionSummary200Response';
|
|
|
17
19
|
export * from './GetIndex200Response';
|
|
18
20
|
export * from './GetMethod200Response';
|
|
19
21
|
export * from './GetModel200Response';
|
|
22
|
+
export * from './GetModelDownloadHistory200Response';
|
|
20
23
|
export * from './GetModelReadmeAt200Response';
|
|
21
24
|
export * from './HistoricalDeletion';
|
|
22
25
|
export * from './IndexDetail';
|
|
26
|
+
export * from './ListAnomalies200Response';
|
|
23
27
|
export * from './ListAuthors200Response';
|
|
24
28
|
export * from './ListDatasets200Response';
|
|
25
29
|
export * from './ListDelistedModels200Response';
|