-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathschemas.ts
348 lines (347 loc) · 15.3 KB
/
schemas.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
/**
* This file was auto-generated by openapi-typescript.
* Do not make direct changes to the file.
*/
export type paths = Record<string, never>;
export type webhooks = Record<string, never>;
export interface components {
schemas: {
Collection: {
admin_email: string | null;
api_link: string;
api_model: string;
/** Format: date-time */
create_date: string;
description: string | null;
featured: boolean;
/** Format: uri */
finding_aid_url: string | null;
/** Format: uuuid */
id: string;
/** Format: uri */
iiif_collection: string | null;
/** Format: date-time */
indexed_at: string | null;
keywords: string[];
/** Format: date-time */
modified_date: string;
published: boolean;
representative_image: components["schemas"]["CollectionRepresentativeImage"];
/** Format: uri */
thumbnail: string;
title: string;
visibility: components["schemas"]["Visibility"];
};
CollectionRepresentativeImage: {
/** Format: uuid */
work_id: string | null;
/** Format: uri */
url: string;
} | null;
ControlledTerm: {
id: string;
facet: string;
label: string;
variants: string[];
};
ControlledTermWithRole: {
id: string;
facet: string;
label: string;
label_with_role: string;
role: string;
variants: string[];
};
FileSetBase: {
/** Format: uuid */
id: string;
accession_number: string;
description: string | null;
download_url: string | null;
duration: number | null;
height: number | null;
label: string;
mime_type: string | null;
original_filename: string | null;
poster_offset: number | null;
rank: number;
/** Format: uri */
representative_image_url: string | null;
role: components["schemas"]["FileSetRole"];
/** Format: uri */
streaming_url: string | null;
/** Format: uri */
webvtt: string | null;
width: number | null;
};
FileSet: components["schemas"]["FileSetBase"] & {
api_link: string;
api_model: string;
/** Format: date-time */
create_date: string;
digests: {
[key: string]: string;
} | null;
extracted_metadata: Record<string, never>;
indexed_at: string | null;
/** Format: date-time */
modified_date: string;
published: boolean;
visibility: components["schemas"]["Visibility"];
/** Format: uuid */
work_id: string | null;
};
/**
* @description Role of the file set
* @enum {string|null}
*/
FileSetRole: "Access" | "Auxiliary" | "Preservation" | "Supplemental" | null;
GenericIdLabel: {
id: string;
label: string;
} | null;
/** @description Additional Information */
Info: {
description: string;
/** Format: date-time */
link_expiration?: string | null;
name: string;
version: string;
};
/**
* @description NUL Library Unit
* @enum {string|null}
*/
LibraryUnit: "Special Collections" | "Faculty Collections" | "Government and Geographic Information Collection" | "Herskovits Library" | "Music Library" | "Transportation Library" | "University Archives" | "University Main Library" | null;
/**
* @description The type of the note
* @enum {string}
*/
NoteType: "Awards" | "Bibliographical/Historical Note" | "Creation/Production Credits" | "General Note" | "Lanugage Note" | "Local Note" | "Performers" | "Statement of Responsibility" | "Venue/Event Date";
/** @description Pagination info for the current response. */
PaginationInfo: {
/** @description Full URL to the next page of results */
next_url?: string;
/** @description Full URL to the previous page of results */
prev_url?: string;
/** @description Base URL to repeat this query for a given page */
query_url?: string;
/** @description Tokenized query to use in subsequent GET requests */
search_token?: string;
/** @description Index of current page of results */
current_page?: number;
/** @description Number of results per page */
limit?: number;
/** @description Starting index of first result on the current page */
offset?: number;
/** @description Total number of results */
total_hits?: number;
/** @description Total number of result pages */
total_pages?: number;
};
/**
* @description The preservation workflow applied to the resource
* @enum {string|null}
*/
PreservationLevel: "Level 1" | "Level 2" | "Level 3" | null;
/**
* @description Type of related resource
* @enum {string|null}
*/
RelatedUrlLabel: "Finding Aid" | "Hathi Trust" | "Related Information" | "Resource Guide" | null;
/** @description Information about the representative image for the resource */
RepresentativeFileSet: {
aspect_ratio: number;
/** Format: uuid */
id?: string | null;
/** Format: uri */
url: string;
} | null;
/**
* @description Preservation status of the resource
* @enum {string|null}
*/
Status: "Not Started" | "In Progress" | "Done" | null;
/**
* @description The access level of the resource
* @enum {string|null}
*/
Visibility: "Private" | "Institution" | "Public" | null;
/**
* @description The media type of the resource
* @enum {string|null}
*/
WorkType: "Audio" | "Image" | "Video" | null;
/** @description A single work response */
Work: {
/** @description A summary of the resource */
abstract: string[];
/** @description Accession number for the work. Serves as basis for the filename. */
accession_number: string;
alternate_title: string[];
/** @description DC API url */
api_link: string | null;
/** @description Type of resource. (Work, FileSet, Collection) */
api_model: string | null;
/** @description Archival Resource Key (ARK) */
ark: string;
/** @description Associated batch update operations */
batch_ids: string[];
/** @description Physical box name. Sometimes used with Distinctive Collections materials. */
box_name: string[];
/** @description Physical box number. Sometimes used with Distinctive Collections materials. */
box_number: string[];
/** @description The caption for a resource. */
caption: string[];
/** @description Alma bibliographic ID. */
catalog_key: string[];
/** @description The parent collection of the resource */
collection: {
/** @description UUID of the collection */
id: string;
/** @description Description of the collection */
description?: string | null;
/** @description Title of the collection */
title: string;
} | null;
/** @description An entity responsible for making contributions to the resource */
contributor: components["schemas"]["ControlledTermWithRole"][];
/**
* Format: date-time
* @description The creation date of the record in the repository.
*/
create_date: string;
/** @description An entity primarily responsible for making the resource */
creator: components["schemas"]["ControlledTerm"][];
/** @description Associated csv metadata update operations */
csv_metadata_update_jobs: string[];
/** @description The cultural context of the resource. */
cultural_context: string[];
/** @description A point or a period of time associatied with an event in the lifecycle of the resource. */
date_created: string[];
/** @description An account of the resource. */
description: string[];
/** @description Vector representation of the resource's location in the repository's semantic space. */
embedding: number[];
/** @description The name of the inference model used to generate the `embedding` from the resource's content. */
embedding_model: string;
/** @description The length of the embedding text in bytes. */
embedding_text_length: string;
/** @description File sets associated with the resource. */
file_sets: components["schemas"]["FileSetBase"][];
/** @description Name of the containing folder. */
folder_name: string[];
/** @description Number of the containing folder. */
folder_number: string[];
/** @description Describes what the original object is, not what it is about. */
genre: components["schemas"]["ControlledTerm"][];
/**
* Format: uuid
* @description UUID for the work record in the repository.
*/
id: string;
/** @description Identifiers for the object */
identifier: string[];
/** Format: uri */
iiif_manifest: string | null;
/** Format: date-time */
indexed_at: string | null;
/** @description Associated ingest project */
ingest_project: {
/** Format: uuid */
id: string;
title: string;
} | null;
/** @description Associated ingest sheet */
ingest_sheet: {
/** Format: uuid */
id: string;
title: string;
} | null;
/** @description Keywords or tags used to describe this content. */
keywords: string[];
/** @description A language of the resource. */
language: components["schemas"]["ControlledTerm"][];
/** @description PIDs from previous repository. */
legacy_identifier: string[];
library_unit: components["schemas"]["LibraryUnit"];
/** @description Creative Commons licenses */
license: components["schemas"]["GenericIdLabel"];
/** @description Place of publication. */
location: components["schemas"]["ControlledTerm"][];
/**
* Format: date-time
* @description Date resource last modified in repository
*/
modified_date: string;
notes: {
note: string;
type: components["schemas"]["NoteType"];
}[];
/** @description The material or physical carrier of the resource. */
physical_description_material: string[];
/** @description The size or duration of the resource. */
physical_description_size: string[];
preservation_level: components["schemas"]["PreservationLevel"];
/** @description Project related information */
project: {
desc: string | null;
cycle: string | null;
manager: string | null;
name: string | null;
proposer: string | null;
task_number: string | null;
} | null;
/** @description Location of Physical Object // will also include messy dates. Information about the provenance, such as origin, ownership and custodial history (chain of custody), of a resource. */
provenance: string[];
/** @description Resource is available on Digital Collections. */
published: boolean;
/** @description An entity responsible for making the resource available. */
publisher: string[];
/** @description URL of a related resource. */
related_url: {
/** Format: uri */
url: string;
label: components["schemas"]["RelatedUrlLabel"];
}[];
representative_file_set: components["schemas"]["RepresentativeFileSet"];
/** @description A person or organization owning or managing rights over the resource. */
rights_holder: string[];
/** @description Expresses the copyright status of the resource. */
rights_statement: components["schemas"]["GenericIdLabel"];
/** @description Sometimes used with Distincitive Collections materials */
scope_and_contents: string[];
/** @description Sometimes used with Distincitive Collections materials. Used for archival series and subseries information. */
series: string[];
/** @description A related resource from which the described resource is derived. Source of digital object - book, journal, etc. Follow Chicago Manual of Style for citation. */
source: string[];
status: components["schemas"]["Status"];
/** @description A defined style, historical period, group, school, dynasty, movement, etc. whose characteristics are represented in the work. */
style_period: components["schemas"]["ControlledTerm"][];
/** @description A defined style, historical period, group, school, dynasty, movement, etc. whose characteristics are represented in the work. */
subject: components["schemas"]["ControlledTermWithRole"][];
/** @description Used to provide the titles of separate works or parts of a resource. Information provided may also contain statements of responsibility or other sequential designations. */
table_of_contents: string[];
/** @description A defined style, historical period, group, school, dynasty, movement, etc. whose characteristics are represented in the work. */
technique: components["schemas"]["ControlledTerm"][];
/** @description Terms of use of resource. */
terms_of_use: string | null;
/**
* Format: uri
* @description Url of thumbnail image.
*/
thumbnail: string | null;
/** @description A name given to the resource */
title: string | null;
visibility: components["schemas"]["Visibility"];
work_type: components["schemas"]["WorkType"];
};
};
responses: never;
parameters: never;
requestBodies: never;
headers: never;
pathItems: never;
}
export type $defs = Record<string, never>;
export type operations = Record<string, never>;