@abliteration/sdk 0.1.0 → 0.1.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.
Files changed (102) hide show
  1. package/.openapi-generator/FILES +76 -0
  2. package/.openapi-generator/VERSION +1 -0
  3. package/.openapi-generator-ignore +23 -0
  4. package/README.md +140 -49
  5. package/dist/apis/AuthorsApi.d.ts +11 -3
  6. package/dist/apis/AuthorsApi.js +8 -0
  7. package/dist/apis/DatasetsApi.d.ts +9 -3
  8. package/dist/apis/DatasetsApi.js +6 -0
  9. package/dist/apis/IndicesApi.d.ts +9 -3
  10. package/dist/apis/IndicesApi.js +6 -0
  11. package/dist/apis/ModelsApi.d.ts +9 -3
  12. package/dist/apis/ModelsApi.js +6 -0
  13. package/dist/esm/apis/AuthorsApi.d.ts +11 -3
  14. package/dist/esm/apis/AuthorsApi.js +8 -0
  15. package/dist/esm/apis/DatasetsApi.d.ts +9 -3
  16. package/dist/esm/apis/DatasetsApi.js +6 -0
  17. package/dist/esm/apis/IndicesApi.d.ts +9 -3
  18. package/dist/esm/apis/IndicesApi.js +6 -0
  19. package/dist/esm/apis/ModelsApi.d.ts +9 -3
  20. package/dist/esm/apis/ModelsApi.js +6 -0
  21. package/dist/esm/models/Author.d.ts +4 -0
  22. package/dist/esm/models/Author.js +2 -0
  23. package/dist/esm/models/AuthorDetail.d.ts +4 -0
  24. package/dist/esm/models/AuthorDetail.js +2 -0
  25. package/dist/models/Author.d.ts +4 -0
  26. package/dist/models/Author.js +2 -0
  27. package/dist/models/AuthorDetail.d.ts +4 -0
  28. package/dist/models/AuthorDetail.js +2 -0
  29. package/docs/Author.md +44 -0
  30. package/docs/AuthorDetail.md +46 -0
  31. package/docs/AuthorsApi.md +167 -0
  32. package/docs/DaiPoint.md +38 -0
  33. package/docs/Dataset.md +54 -0
  34. package/docs/DatasetDetail.md +39 -0
  35. package/docs/DatasetsApi.md +176 -0
  36. package/docs/Envelope.md +48 -0
  37. package/docs/Event.md +46 -0
  38. package/docs/GetAuthor200Response.md +48 -0
  39. package/docs/GetDataset200Response.md +48 -0
  40. package/docs/GetIndex200Response.md +48 -0
  41. package/docs/GetMethod200Response.md +48 -0
  42. package/docs/GetModel200Response.md +48 -0
  43. package/docs/IndexDetail.md +54 -0
  44. package/docs/IndicesApi.md +153 -0
  45. package/docs/ListAuthors200Response.md +48 -0
  46. package/docs/ListDatasets200Response.md +48 -0
  47. package/docs/ListIndices200Response.md +48 -0
  48. package/docs/ListMethods200Response.md +48 -0
  49. package/docs/ListModels200Response.md +48 -0
  50. package/docs/ListTimeline200Response.md +48 -0
  51. package/docs/Method.md +44 -0
  52. package/docs/MethodDetail.md +50 -0
  53. package/docs/MethodDetailAllOfTopAuthors.md +36 -0
  54. package/docs/MethodsApi.md +153 -0
  55. package/docs/ModelDetail.md +45 -0
  56. package/docs/ModelError.md +42 -0
  57. package/docs/ModelIndex.md +52 -0
  58. package/docs/ModelSummary.md +58 -0
  59. package/docs/ModelsApi.md +191 -0
  60. package/docs/Passport.md +38 -0
  61. package/docs/TimelineApi.md +93 -0
  62. package/openapi-generator-config.json +10 -0
  63. package/package.json +14 -16
  64. package/src/apis/AuthorsApi.ts +248 -0
  65. package/src/apis/DatasetsApi.ts +278 -0
  66. package/src/apis/IndicesApi.ts +213 -0
  67. package/src/apis/MethodsApi.ts +214 -0
  68. package/src/apis/ModelsApi.ts +328 -0
  69. package/src/apis/TimelineApi.ts +148 -0
  70. package/src/apis/index.ts +8 -0
  71. package/src/index.ts +5 -0
  72. package/src/models/Author.ts +93 -0
  73. package/src/models/AuthorDetail.ts +107 -0
  74. package/src/models/DaiPoint.ts +75 -0
  75. package/src/models/Dataset.ts +123 -0
  76. package/src/models/DatasetDetail.ts +86 -0
  77. package/src/models/Envelope.ts +124 -0
  78. package/src/models/Event.ts +99 -0
  79. package/src/models/GetAuthor200Response.ts +132 -0
  80. package/src/models/GetDataset200Response.ts +132 -0
  81. package/src/models/GetIndex200Response.ts +132 -0
  82. package/src/models/GetMethod200Response.ts +132 -0
  83. package/src/models/GetModel200Response.ts +132 -0
  84. package/src/models/IndexDetail.ts +153 -0
  85. package/src/models/ListAuthors200Response.ts +132 -0
  86. package/src/models/ListDatasets200Response.ts +132 -0
  87. package/src/models/ListIndices200Response.ts +132 -0
  88. package/src/models/ListMethods200Response.ts +132 -0
  89. package/src/models/ListModels200Response.ts +132 -0
  90. package/src/models/ListTimeline200Response.ts +132 -0
  91. package/src/models/Method.ts +106 -0
  92. package/src/models/MethodDetail.ts +139 -0
  93. package/src/models/MethodDetailAllOfTopAuthors.ts +69 -0
  94. package/src/models/ModelDetail.ts +104 -0
  95. package/src/models/ModelError.ts +89 -0
  96. package/src/models/ModelIndex.ts +147 -0
  97. package/src/models/ModelSummary.ts +135 -0
  98. package/src/models/Passport.ts +75 -0
  99. package/src/models/index.ts +29 -0
  100. package/src/runtime.ts +505 -0
  101. package/tsconfig.esm.json +7 -0
  102. package/tsconfig.json +16 -0
@@ -0,0 +1,176 @@
1
+ # DatasetsApi
2
+
3
+ All URIs are relative to *https://abliteration.org*
4
+
5
+ | Method | HTTP request | Description |
6
+ |------------- | ------------- | -------------|
7
+ | [**getDataset**](DatasetsApi.md#getdataset) | **GET** /api/v1/datasets/{id} | Get one dataset |
8
+ | [**listDatasets**](DatasetsApi.md#listdatasets) | **GET** /api/v1/datasets | List datasets |
9
+
10
+
11
+
12
+ ## getDataset
13
+
14
+ > GetDataset200Response getDataset(id)
15
+
16
+ Get one dataset
17
+
18
+ Cost: 1 credit. The passport is null for datasets that do not have one yet.
19
+
20
+ ### Example
21
+
22
+ ```ts
23
+ import {
24
+ Configuration,
25
+ DatasetsApi,
26
+ } from '@abliteration/sdk';
27
+ import type { GetDatasetRequest } from '@abliteration/sdk';
28
+
29
+ async function example() {
30
+ console.log("🚀 Testing @abliteration/sdk SDK...");
31
+ const config = new Configuration({
32
+ // Configure HTTP bearer authorization: bearerAuth
33
+ accessToken: "YOUR BEARER TOKEN",
34
+ });
35
+ const api = new DatasetsApi(config);
36
+
37
+ const body = {
38
+ // string
39
+ id: mlabonne/orpo-dpo-mix-40k,
40
+ } satisfies GetDatasetRequest;
41
+
42
+ try {
43
+ const data = await api.getDataset(body);
44
+ console.log(data);
45
+ } catch (error) {
46
+ console.error(error);
47
+ }
48
+ }
49
+
50
+ // Run the test
51
+ example().catch(console.error);
52
+ ```
53
+
54
+ ### Parameters
55
+
56
+
57
+ | Name | Type | Description | Notes |
58
+ |------------- | ------------- | ------------- | -------------|
59
+ | **id** | `string` | | [Defaults to `undefined`] |
60
+
61
+ ### Return type
62
+
63
+ [**GetDataset200Response**](GetDataset200Response.md)
64
+
65
+ ### Authorization
66
+
67
+ [bearerAuth](../README.md#bearerAuth)
68
+
69
+ ### HTTP request headers
70
+
71
+ - **Content-Type**: Not defined
72
+ - **Accept**: `application/json`
73
+
74
+
75
+ ### HTTP response details
76
+ | Status code | Description | Response headers |
77
+ |-------------|-------------|------------------|
78
+ | **200** | Dataset with files and passport. | - |
79
+ | **401** | Missing, unknown or revoked key. | - |
80
+ | **402** | Not enough credits. Only possible while metering is enabled. | - |
81
+ | **404** | No such entity. | - |
82
+ | **429** | Per-key rate limit exceeded. Retry-After header is set. | - |
83
+ | **503** | Catalog temporarily unreadable. Nothing was charged. | - |
84
+
85
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
86
+
87
+
88
+ ## listDatasets
89
+
90
+ > ListDatasets200Response listDatasets(category, author, license, sort, limit, offset)
91
+
92
+ List datasets
93
+
94
+ Cost: 5-15 credits, by rows returned.
95
+
96
+ ### Example
97
+
98
+ ```ts
99
+ import {
100
+ Configuration,
101
+ DatasetsApi,
102
+ } from '@abliteration/sdk';
103
+ import type { ListDatasetsRequest } from '@abliteration/sdk';
104
+
105
+ async function example() {
106
+ console.log("🚀 Testing @abliteration/sdk SDK...");
107
+ const config = new Configuration({
108
+ // Configure HTTP bearer authorization: bearerAuth
109
+ accessToken: "YOUR BEARER TOKEN",
110
+ });
111
+ const api = new DatasetsApi(config);
112
+
113
+ const body = {
114
+ // string | Workflow stage, for example heal or extract. (optional)
115
+ category: category_example,
116
+ // string | Publisher handle, case-insensitive. (optional)
117
+ author: author_example,
118
+ // string | License string as published. (optional)
119
+ license: license_example,
120
+ // 'downloads' | '-downloads' | 'likes' | '-likes' | 'created' | '-created' | 'created_at' | '-created_at' | 'first_seen' | '-first_seen' | 'first_seen_at' | '-first_seen_at' | Bare key is the natural direction (downloads/likes = most first, dates = newest first). A leading `-` flips it. `created` and `first_seen` are aliases for the full column names. (optional)
121
+ sort: sort_example,
122
+ // number | Rows to return, 1 to 1000. Values outside the range are clamped, not rejected. (optional)
123
+ limit: 56,
124
+ // number | Rows to skip. Negative and non-numeric values are treated as 0. (optional)
125
+ offset: 56,
126
+ } satisfies ListDatasetsRequest;
127
+
128
+ try {
129
+ const data = await api.listDatasets(body);
130
+ console.log(data);
131
+ } catch (error) {
132
+ console.error(error);
133
+ }
134
+ }
135
+
136
+ // Run the test
137
+ example().catch(console.error);
138
+ ```
139
+
140
+ ### Parameters
141
+
142
+
143
+ | Name | Type | Description | Notes |
144
+ |------------- | ------------- | ------------- | -------------|
145
+ | **category** | `string` | Workflow stage, for example heal or extract. | [Optional] [Defaults to `undefined`] |
146
+ | **author** | `string` | Publisher handle, case-insensitive. | [Optional] [Defaults to `undefined`] |
147
+ | **license** | `string` | License string as published. | [Optional] [Defaults to `undefined`] |
148
+ | **sort** | `downloads`, `-downloads`, `likes`, `-likes`, `created`, `-created`, `created_at`, `-created_at`, `first_seen`, `-first_seen`, `first_seen_at`, `-first_seen_at` | Bare key is the natural direction (downloads/likes = most first, dates = newest first). A leading `-` flips it. `created` and `first_seen` are aliases for the full column names. | [Optional] [Defaults to `'downloads'`] [Enum: downloads, -downloads, likes, -likes, created, -created, created_at, -created_at, first_seen, -first_seen, first_seen_at, -first_seen_at] |
149
+ | **limit** | `number` | Rows to return, 1 to 1000. Values outside the range are clamped, not rejected. | [Optional] [Defaults to `50`] |
150
+ | **offset** | `number` | Rows to skip. Negative and non-numeric values are treated as 0. | [Optional] [Defaults to `0`] |
151
+
152
+ ### Return type
153
+
154
+ [**ListDatasets200Response**](ListDatasets200Response.md)
155
+
156
+ ### Authorization
157
+
158
+ [bearerAuth](../README.md#bearerAuth)
159
+
160
+ ### HTTP request headers
161
+
162
+ - **Content-Type**: Not defined
163
+ - **Accept**: `application/json`
164
+
165
+
166
+ ### HTTP response details
167
+ | Status code | Description | Response headers |
168
+ |-------------|-------------|------------------|
169
+ | **200** | Matching datasets. | - |
170
+ | **401** | Missing, unknown or revoked key. | - |
171
+ | **402** | Not enough credits. Only possible while metering is enabled. | - |
172
+ | **429** | Per-key rate limit exceeded. Retry-After header is set. | - |
173
+ | **503** | Catalog temporarily unreadable. Nothing was charged. | - |
174
+
175
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
176
+
@@ -0,0 +1,48 @@
1
+
2
+ # Envelope
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `data` | any
10
+ `cost` | number
11
+ `credits_remaining` | number
12
+ `rate_limit_limit` | number
13
+ `rate_limit_remaining` | number
14
+ `rate_limit_reset` | number
15
+ `metering` | string
16
+ `request_id` | string
17
+
18
+ ## Example
19
+
20
+ ```typescript
21
+ import type { Envelope } from '@abliteration/sdk'
22
+
23
+ // TODO: Update the object below with actual values
24
+ const example = {
25
+ "data": null,
26
+ "cost": null,
27
+ "credits_remaining": null,
28
+ "rate_limit_limit": null,
29
+ "rate_limit_remaining": null,
30
+ "rate_limit_reset": null,
31
+ "metering": null,
32
+ "request_id": null,
33
+ } satisfies Envelope
34
+
35
+ console.log(example)
36
+
37
+ // Convert the instance to a JSON string
38
+ const exampleJSON: string = JSON.stringify(example)
39
+ console.log(exampleJSON)
40
+
41
+ // Parse the JSON string back to an object
42
+ const exampleParsed = JSON.parse(exampleJSON) as Envelope
43
+ console.log(exampleParsed)
44
+ ```
45
+
46
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
47
+
48
+
package/docs/Event.md ADDED
@@ -0,0 +1,46 @@
1
+
2
+ # Event
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `id` | string
10
+ `date` | string
11
+ `date_precision` | string
12
+ `type` | string
13
+ `title` | string
14
+ `description` | string
15
+ `primary_source_url` | string
16
+
17
+ ## Example
18
+
19
+ ```typescript
20
+ import type { Event } from '@abliteration/sdk'
21
+
22
+ // TODO: Update the object below with actual values
23
+ const example = {
24
+ "id": null,
25
+ "date": null,
26
+ "date_precision": null,
27
+ "type": null,
28
+ "title": null,
29
+ "description": null,
30
+ "primary_source_url": null,
31
+ } satisfies Event
32
+
33
+ console.log(example)
34
+
35
+ // Convert the instance to a JSON string
36
+ const exampleJSON: string = JSON.stringify(example)
37
+ console.log(exampleJSON)
38
+
39
+ // Parse the JSON string back to an object
40
+ const exampleParsed = JSON.parse(exampleJSON) as Event
41
+ console.log(exampleParsed)
42
+ ```
43
+
44
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
45
+
46
+
@@ -0,0 +1,48 @@
1
+
2
+ # GetAuthor200Response
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `data` | [AuthorDetail](AuthorDetail.md)
10
+ `cost` | number
11
+ `credits_remaining` | number
12
+ `rate_limit_limit` | number
13
+ `rate_limit_remaining` | number
14
+ `rate_limit_reset` | number
15
+ `metering` | string
16
+ `request_id` | string
17
+
18
+ ## Example
19
+
20
+ ```typescript
21
+ import type { GetAuthor200Response } from '@abliteration/sdk'
22
+
23
+ // TODO: Update the object below with actual values
24
+ const example = {
25
+ "data": null,
26
+ "cost": null,
27
+ "credits_remaining": null,
28
+ "rate_limit_limit": null,
29
+ "rate_limit_remaining": null,
30
+ "rate_limit_reset": null,
31
+ "metering": null,
32
+ "request_id": null,
33
+ } satisfies GetAuthor200Response
34
+
35
+ console.log(example)
36
+
37
+ // Convert the instance to a JSON string
38
+ const exampleJSON: string = JSON.stringify(example)
39
+ console.log(exampleJSON)
40
+
41
+ // Parse the JSON string back to an object
42
+ const exampleParsed = JSON.parse(exampleJSON) as GetAuthor200Response
43
+ console.log(exampleParsed)
44
+ ```
45
+
46
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
47
+
48
+
@@ -0,0 +1,48 @@
1
+
2
+ # GetDataset200Response
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `data` | [DatasetDetail](DatasetDetail.md)
10
+ `cost` | number
11
+ `credits_remaining` | number
12
+ `rate_limit_limit` | number
13
+ `rate_limit_remaining` | number
14
+ `rate_limit_reset` | number
15
+ `metering` | string
16
+ `request_id` | string
17
+
18
+ ## Example
19
+
20
+ ```typescript
21
+ import type { GetDataset200Response } from '@abliteration/sdk'
22
+
23
+ // TODO: Update the object below with actual values
24
+ const example = {
25
+ "data": null,
26
+ "cost": null,
27
+ "credits_remaining": null,
28
+ "rate_limit_limit": null,
29
+ "rate_limit_remaining": null,
30
+ "rate_limit_reset": null,
31
+ "metering": null,
32
+ "request_id": null,
33
+ } satisfies GetDataset200Response
34
+
35
+ console.log(example)
36
+
37
+ // Convert the instance to a JSON string
38
+ const exampleJSON: string = JSON.stringify(example)
39
+ console.log(exampleJSON)
40
+
41
+ // Parse the JSON string back to an object
42
+ const exampleParsed = JSON.parse(exampleJSON) as GetDataset200Response
43
+ console.log(exampleParsed)
44
+ ```
45
+
46
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
47
+
48
+
@@ -0,0 +1,48 @@
1
+
2
+ # GetIndex200Response
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `data` | [IndexDetail](IndexDetail.md)
10
+ `cost` | number
11
+ `credits_remaining` | number
12
+ `rate_limit_limit` | number
13
+ `rate_limit_remaining` | number
14
+ `rate_limit_reset` | number
15
+ `metering` | string
16
+ `request_id` | string
17
+
18
+ ## Example
19
+
20
+ ```typescript
21
+ import type { GetIndex200Response } from '@abliteration/sdk'
22
+
23
+ // TODO: Update the object below with actual values
24
+ const example = {
25
+ "data": null,
26
+ "cost": null,
27
+ "credits_remaining": null,
28
+ "rate_limit_limit": null,
29
+ "rate_limit_remaining": null,
30
+ "rate_limit_reset": null,
31
+ "metering": null,
32
+ "request_id": null,
33
+ } satisfies GetIndex200Response
34
+
35
+ console.log(example)
36
+
37
+ // Convert the instance to a JSON string
38
+ const exampleJSON: string = JSON.stringify(example)
39
+ console.log(exampleJSON)
40
+
41
+ // Parse the JSON string back to an object
42
+ const exampleParsed = JSON.parse(exampleJSON) as GetIndex200Response
43
+ console.log(exampleParsed)
44
+ ```
45
+
46
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
47
+
48
+
@@ -0,0 +1,48 @@
1
+
2
+ # GetMethod200Response
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `data` | [MethodDetail](MethodDetail.md)
10
+ `cost` | number
11
+ `credits_remaining` | number
12
+ `rate_limit_limit` | number
13
+ `rate_limit_remaining` | number
14
+ `rate_limit_reset` | number
15
+ `metering` | string
16
+ `request_id` | string
17
+
18
+ ## Example
19
+
20
+ ```typescript
21
+ import type { GetMethod200Response } from '@abliteration/sdk'
22
+
23
+ // TODO: Update the object below with actual values
24
+ const example = {
25
+ "data": null,
26
+ "cost": null,
27
+ "credits_remaining": null,
28
+ "rate_limit_limit": null,
29
+ "rate_limit_remaining": null,
30
+ "rate_limit_reset": null,
31
+ "metering": null,
32
+ "request_id": null,
33
+ } satisfies GetMethod200Response
34
+
35
+ console.log(example)
36
+
37
+ // Convert the instance to a JSON string
38
+ const exampleJSON: string = JSON.stringify(example)
39
+ console.log(exampleJSON)
40
+
41
+ // Parse the JSON string back to an object
42
+ const exampleParsed = JSON.parse(exampleJSON) as GetMethod200Response
43
+ console.log(exampleParsed)
44
+ ```
45
+
46
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
47
+
48
+
@@ -0,0 +1,48 @@
1
+
2
+ # GetModel200Response
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `data` | [ModelDetail](ModelDetail.md)
10
+ `cost` | number
11
+ `credits_remaining` | number
12
+ `rate_limit_limit` | number
13
+ `rate_limit_remaining` | number
14
+ `rate_limit_reset` | number
15
+ `metering` | string
16
+ `request_id` | string
17
+
18
+ ## Example
19
+
20
+ ```typescript
21
+ import type { GetModel200Response } from '@abliteration/sdk'
22
+
23
+ // TODO: Update the object below with actual values
24
+ const example = {
25
+ "data": null,
26
+ "cost": null,
27
+ "credits_remaining": null,
28
+ "rate_limit_limit": null,
29
+ "rate_limit_remaining": null,
30
+ "rate_limit_reset": null,
31
+ "metering": null,
32
+ "request_id": null,
33
+ } satisfies GetModel200Response
34
+
35
+ console.log(example)
36
+
37
+ // Convert the instance to a JSON string
38
+ const exampleJSON: string = JSON.stringify(example)
39
+ console.log(exampleJSON)
40
+
41
+ // Parse the JSON string back to an object
42
+ const exampleParsed = JSON.parse(exampleJSON) as GetModel200Response
43
+ console.log(exampleParsed)
44
+ ```
45
+
46
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
47
+
48
+
@@ -0,0 +1,54 @@
1
+
2
+ # IndexDetail
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `id` | string
10
+ `name` | string
11
+ `value` | number
12
+ `unit` | string
13
+ `measured` | boolean
14
+ `source` | string
15
+ `history_available` | boolean
16
+ `as_of` | string
17
+ `note` | string
18
+ `recent_history` | [Array<DaiPoint>](DaiPoint.md)
19
+ `history` | [Array<DaiPoint>](DaiPoint.md)
20
+
21
+ ## Example
22
+
23
+ ```typescript
24
+ import type { IndexDetail } from '@abliteration/sdk'
25
+
26
+ // TODO: Update the object below with actual values
27
+ const example = {
28
+ "id": null,
29
+ "name": null,
30
+ "value": null,
31
+ "unit": null,
32
+ "measured": null,
33
+ "source": null,
34
+ "history_available": null,
35
+ "as_of": null,
36
+ "note": null,
37
+ "recent_history": null,
38
+ "history": null,
39
+ } satisfies IndexDetail
40
+
41
+ console.log(example)
42
+
43
+ // Convert the instance to a JSON string
44
+ const exampleJSON: string = JSON.stringify(example)
45
+ console.log(exampleJSON)
46
+
47
+ // Parse the JSON string back to an object
48
+ const exampleParsed = JSON.parse(exampleJSON) as IndexDetail
49
+ console.log(exampleParsed)
50
+ ```
51
+
52
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
53
+
54
+