@abliteration/sdk 0.1.5 → 0.1.6
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 +12 -0
- package/README.md +8 -0
- package/dist/apis/ModelsApi.d.ts +109 -0
- package/dist/apis/ModelsApi.js +114 -1
- package/dist/esm/apis/ModelsApi.d.ts +109 -0
- package/dist/esm/apis/ModelsApi.js +113 -0
- package/dist/esm/models/DeletionSummary.d.ts +52 -0
- package/dist/esm/models/DeletionSummary.js +53 -0
- package/dist/esm/models/DeletionSummaryTimelineInner.d.ts +34 -0
- package/dist/esm/models/DeletionSummaryTimelineInner.js +43 -0
- package/dist/esm/models/DeletionSummaryTopByDownloadsInner.d.ts +42 -0
- package/dist/esm/models/DeletionSummaryTopByDownloadsInner.js +47 -0
- package/dist/esm/models/GetHistoricalDeletionSummary200Response.d.ts +67 -0
- package/dist/esm/models/GetHistoricalDeletionSummary200Response.js +79 -0
- package/dist/esm/models/HistoricalDeletion.d.ts +50 -0
- package/dist/esm/models/HistoricalDeletion.js +51 -0
- package/dist/esm/models/ListHistoricalDeletions200Response.d.ts +67 -0
- package/dist/esm/models/ListHistoricalDeletions200Response.js +79 -0
- package/dist/esm/models/index.d.ts +6 -0
- package/dist/esm/models/index.js +6 -0
- package/dist/models/DeletionSummary.d.ts +52 -0
- package/dist/models/DeletionSummary.js +60 -0
- package/dist/models/DeletionSummaryTimelineInner.d.ts +34 -0
- package/dist/models/DeletionSummaryTimelineInner.js +50 -0
- package/dist/models/DeletionSummaryTopByDownloadsInner.d.ts +42 -0
- package/dist/models/DeletionSummaryTopByDownloadsInner.js +54 -0
- package/dist/models/GetHistoricalDeletionSummary200Response.d.ts +67 -0
- package/dist/models/GetHistoricalDeletionSummary200Response.js +87 -0
- package/dist/models/HistoricalDeletion.d.ts +50 -0
- package/dist/models/HistoricalDeletion.js +58 -0
- package/dist/models/ListHistoricalDeletions200Response.d.ts +67 -0
- package/dist/models/ListHistoricalDeletions200Response.js +87 -0
- package/dist/models/index.d.ts +6 -0
- package/dist/models/index.js +6 -0
- package/docs/DeletionSummary.md +45 -0
- package/docs/DeletionSummaryTimelineInner.md +36 -0
- package/docs/DeletionSummaryTopByDownloadsInner.md +40 -0
- package/docs/GetHistoricalDeletionSummary200Response.md +48 -0
- package/docs/HistoricalDeletion.md +44 -0
- package/docs/ListHistoricalDeletions200Response.md +48 -0
- package/docs/ModelsApi.md +156 -0
- package/package.json +1 -1
- package/src/apis/ModelsApi.ts +210 -0
- package/src/models/DeletionSummary.ts +108 -0
- package/src/models/DeletionSummaryTimelineInner.ts +69 -0
- package/src/models/DeletionSummaryTopByDownloadsInner.ts +81 -0
- package/src/models/GetHistoricalDeletionSummary200Response.ts +132 -0
- package/src/models/HistoricalDeletion.ts +93 -0
- package/src/models/ListHistoricalDeletions200Response.ts +132 -0
- package/src/models/index.ts +6 -0
|
@@ -0,0 +1,81 @@
|
|
|
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
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface DeletionSummaryTopByDownloadsInner
|
|
20
|
+
*/
|
|
21
|
+
export interface DeletionSummaryTopByDownloadsInner {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
id?: string;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
*/
|
|
29
|
+
peak_downloads?: number;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
*/
|
|
33
|
+
last_seen_month?: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
*/
|
|
37
|
+
months_alive?: number;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Check if a given object implements the DeletionSummaryTopByDownloadsInner interface.
|
|
42
|
+
*/
|
|
43
|
+
export function instanceOfDeletionSummaryTopByDownloadsInner(value: object): value is DeletionSummaryTopByDownloadsInner {
|
|
44
|
+
return true;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function DeletionSummaryTopByDownloadsInnerFromJSON(json: any): DeletionSummaryTopByDownloadsInner {
|
|
48
|
+
return DeletionSummaryTopByDownloadsInnerFromJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function DeletionSummaryTopByDownloadsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeletionSummaryTopByDownloadsInner {
|
|
52
|
+
if (json == null) {
|
|
53
|
+
return json;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
|
|
57
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
58
|
+
'peak_downloads': json['peak_downloads'] == null ? undefined : json['peak_downloads'],
|
|
59
|
+
'last_seen_month': json['last_seen_month'] == null ? undefined : json['last_seen_month'],
|
|
60
|
+
'months_alive': json['months_alive'] == null ? undefined : json['months_alive'],
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function DeletionSummaryTopByDownloadsInnerToJSON(json: any): DeletionSummaryTopByDownloadsInner {
|
|
65
|
+
return DeletionSummaryTopByDownloadsInnerToJSONTyped(json, false);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function DeletionSummaryTopByDownloadsInnerToJSONTyped(value?: DeletionSummaryTopByDownloadsInner | null, ignoreDiscriminator: boolean = false): any {
|
|
69
|
+
if (value == null) {
|
|
70
|
+
return value;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
return {
|
|
74
|
+
|
|
75
|
+
'id': value['id'],
|
|
76
|
+
'peak_downloads': value['peak_downloads'],
|
|
77
|
+
'last_seen_month': value['last_seen_month'],
|
|
78
|
+
'months_alive': value['months_alive'],
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
|
|
@@ -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 { DeletionSummary } from './DeletionSummary';
|
|
17
|
+
import {
|
|
18
|
+
DeletionSummaryFromJSON,
|
|
19
|
+
DeletionSummaryFromJSONTyped,
|
|
20
|
+
DeletionSummaryToJSON,
|
|
21
|
+
DeletionSummaryToJSONTyped,
|
|
22
|
+
} from './DeletionSummary';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface GetHistoricalDeletionSummary200Response
|
|
28
|
+
*/
|
|
29
|
+
export interface GetHistoricalDeletionSummary200Response {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
*/
|
|
33
|
+
data: DeletionSummary;
|
|
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: GetHistoricalDeletionSummary200ResponseMeteringEnum;
|
|
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 GetHistoricalDeletionSummary200ResponseMeteringEnum = {
|
|
69
|
+
Preview: 'preview',
|
|
70
|
+
Billed: 'billed',
|
|
71
|
+
} as const;
|
|
72
|
+
export type GetHistoricalDeletionSummary200ResponseMeteringEnum = typeof GetHistoricalDeletionSummary200ResponseMeteringEnum[keyof typeof GetHistoricalDeletionSummary200ResponseMeteringEnum];
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Check if a given object implements the GetHistoricalDeletionSummary200Response interface.
|
|
77
|
+
*/
|
|
78
|
+
export function instanceOfGetHistoricalDeletionSummary200Response(value: object): value is GetHistoricalDeletionSummary200Response {
|
|
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 GetHistoricalDeletionSummary200ResponseFromJSON(json: any): GetHistoricalDeletionSummary200Response {
|
|
91
|
+
return GetHistoricalDeletionSummary200ResponseFromJSONTyped(json, false);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export function GetHistoricalDeletionSummary200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetHistoricalDeletionSummary200Response {
|
|
95
|
+
if (json == null) {
|
|
96
|
+
return json;
|
|
97
|
+
}
|
|
98
|
+
return {
|
|
99
|
+
|
|
100
|
+
'data': DeletionSummaryFromJSON(json['data']),
|
|
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 GetHistoricalDeletionSummary200ResponseToJSON(json: any): GetHistoricalDeletionSummary200Response {
|
|
112
|
+
return GetHistoricalDeletionSummary200ResponseToJSONTyped(json, false);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
export function GetHistoricalDeletionSummary200ResponseToJSONTyped(value?: GetHistoricalDeletionSummary200Response | null, ignoreDiscriminator: boolean = false): any {
|
|
116
|
+
if (value == null) {
|
|
117
|
+
return value;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
return {
|
|
121
|
+
|
|
122
|
+
'data': DeletionSummaryToJSON(value['data']),
|
|
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,93 @@
|
|
|
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
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface HistoricalDeletion
|
|
20
|
+
*/
|
|
21
|
+
export interface HistoricalDeletion {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
id?: string;
|
|
26
|
+
/**
|
|
27
|
+
* ISO YYYY-MM of the earliest snapshot the model appears in.
|
|
28
|
+
*/
|
|
29
|
+
first_seen_month?: string;
|
|
30
|
+
/**
|
|
31
|
+
* ISO YYYY-MM of the final snapshot before deletion.
|
|
32
|
+
*/
|
|
33
|
+
last_seen_month?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Whole months between first and last observation.
|
|
36
|
+
*/
|
|
37
|
+
total_months_alive?: number;
|
|
38
|
+
/**
|
|
39
|
+
* Highest downloads count observed during the model's lifetime.
|
|
40
|
+
*/
|
|
41
|
+
peak_downloads?: number;
|
|
42
|
+
/**
|
|
43
|
+
* ISO-8601 timestamp the model was originally created on HF (from the frozen snapshot).
|
|
44
|
+
*/
|
|
45
|
+
created_at?: string;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the HistoricalDeletion interface.
|
|
50
|
+
*/
|
|
51
|
+
export function instanceOfHistoricalDeletion(value: object): value is HistoricalDeletion {
|
|
52
|
+
return true;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function HistoricalDeletionFromJSON(json: any): HistoricalDeletion {
|
|
56
|
+
return HistoricalDeletionFromJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function HistoricalDeletionFromJSONTyped(json: any, ignoreDiscriminator: boolean): HistoricalDeletion {
|
|
60
|
+
if (json == null) {
|
|
61
|
+
return json;
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
|
|
65
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
66
|
+
'first_seen_month': json['first_seen_month'] == null ? undefined : json['first_seen_month'],
|
|
67
|
+
'last_seen_month': json['last_seen_month'] == null ? undefined : json['last_seen_month'],
|
|
68
|
+
'total_months_alive': json['total_months_alive'] == null ? undefined : json['total_months_alive'],
|
|
69
|
+
'peak_downloads': json['peak_downloads'] == null ? undefined : json['peak_downloads'],
|
|
70
|
+
'created_at': json['created_at'] == null ? undefined : json['created_at'],
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function HistoricalDeletionToJSON(json: any): HistoricalDeletion {
|
|
75
|
+
return HistoricalDeletionToJSONTyped(json, false);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function HistoricalDeletionToJSONTyped(value?: HistoricalDeletion | null, ignoreDiscriminator: boolean = false): any {
|
|
79
|
+
if (value == null) {
|
|
80
|
+
return value;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
return {
|
|
84
|
+
|
|
85
|
+
'id': value['id'],
|
|
86
|
+
'first_seen_month': value['first_seen_month'],
|
|
87
|
+
'last_seen_month': value['last_seen_month'],
|
|
88
|
+
'total_months_alive': value['total_months_alive'],
|
|
89
|
+
'peak_downloads': value['peak_downloads'],
|
|
90
|
+
'created_at': value['created_at'],
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
|
|
@@ -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 { HistoricalDeletion } from './HistoricalDeletion';
|
|
17
|
+
import {
|
|
18
|
+
HistoricalDeletionFromJSON,
|
|
19
|
+
HistoricalDeletionFromJSONTyped,
|
|
20
|
+
HistoricalDeletionToJSON,
|
|
21
|
+
HistoricalDeletionToJSONTyped,
|
|
22
|
+
} from './HistoricalDeletion';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface ListHistoricalDeletions200Response
|
|
28
|
+
*/
|
|
29
|
+
export interface ListHistoricalDeletions200Response {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
*/
|
|
33
|
+
data: Array<HistoricalDeletion>;
|
|
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: ListHistoricalDeletions200ResponseMeteringEnum;
|
|
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 ListHistoricalDeletions200ResponseMeteringEnum = {
|
|
69
|
+
Preview: 'preview',
|
|
70
|
+
Billed: 'billed',
|
|
71
|
+
} as const;
|
|
72
|
+
export type ListHistoricalDeletions200ResponseMeteringEnum = typeof ListHistoricalDeletions200ResponseMeteringEnum[keyof typeof ListHistoricalDeletions200ResponseMeteringEnum];
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Check if a given object implements the ListHistoricalDeletions200Response interface.
|
|
77
|
+
*/
|
|
78
|
+
export function instanceOfListHistoricalDeletions200Response(value: object): value is ListHistoricalDeletions200Response {
|
|
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 ListHistoricalDeletions200ResponseFromJSON(json: any): ListHistoricalDeletions200Response {
|
|
91
|
+
return ListHistoricalDeletions200ResponseFromJSONTyped(json, false);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export function ListHistoricalDeletions200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListHistoricalDeletions200Response {
|
|
95
|
+
if (json == null) {
|
|
96
|
+
return json;
|
|
97
|
+
}
|
|
98
|
+
return {
|
|
99
|
+
|
|
100
|
+
'data': ((json['data'] as Array<any>).map(HistoricalDeletionFromJSON)),
|
|
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 ListHistoricalDeletions200ResponseToJSON(json: any): ListHistoricalDeletions200Response {
|
|
112
|
+
return ListHistoricalDeletions200ResponseToJSONTyped(json, false);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
export function ListHistoricalDeletions200ResponseToJSONTyped(value?: ListHistoricalDeletions200Response | 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(HistoricalDeletionToJSON)),
|
|
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
|
@@ -5,18 +5,24 @@ export * from './AuthorDetail';
|
|
|
5
5
|
export * from './DaiPoint';
|
|
6
6
|
export * from './Dataset';
|
|
7
7
|
export * from './DatasetDetail';
|
|
8
|
+
export * from './DeletionSummary';
|
|
9
|
+
export * from './DeletionSummaryTimelineInner';
|
|
10
|
+
export * from './DeletionSummaryTopByDownloadsInner';
|
|
8
11
|
export * from './DelistedModel';
|
|
9
12
|
export * from './Envelope';
|
|
10
13
|
export * from './Event';
|
|
11
14
|
export * from './GetAuthor200Response';
|
|
12
15
|
export * from './GetDataset200Response';
|
|
16
|
+
export * from './GetHistoricalDeletionSummary200Response';
|
|
13
17
|
export * from './GetIndex200Response';
|
|
14
18
|
export * from './GetMethod200Response';
|
|
15
19
|
export * from './GetModel200Response';
|
|
20
|
+
export * from './HistoricalDeletion';
|
|
16
21
|
export * from './IndexDetail';
|
|
17
22
|
export * from './ListAuthors200Response';
|
|
18
23
|
export * from './ListDatasets200Response';
|
|
19
24
|
export * from './ListDelistedModels200Response';
|
|
25
|
+
export * from './ListHistoricalDeletions200Response';
|
|
20
26
|
export * from './ListIndices200Response';
|
|
21
27
|
export * from './ListMethods200Response';
|
|
22
28
|
export * from './ListModels200Response';
|