cocina-models 0.67.1 → 0.68.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (38) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +6 -0
  3. data/README.md +5 -0
  4. data/lib/cocina/generator/generator.rb +1 -6
  5. data/lib/cocina/generator/vocab.rb +36 -39
  6. data/lib/cocina/models/access.rb +3 -3
  7. data/lib/cocina/models/admin_policy.rb +1 -1
  8. data/lib/cocina/models/{admin_policy_default_access.rb → admin_policy_access_template.rb} +4 -4
  9. data/lib/cocina/models/admin_policy_administrative.rb +1 -1
  10. data/lib/cocina/models/administrative.rb +0 -3
  11. data/lib/cocina/models/citation_only_access.rb +3 -3
  12. data/lib/cocina/models/collection.rb +5 -5
  13. data/lib/cocina/models/collection_access.rb +1 -1
  14. data/lib/cocina/models/controlled_digital_lending_access.rb +3 -3
  15. data/lib/cocina/models/dark_access.rb +3 -3
  16. data/lib/cocina/models/dro.rb +15 -15
  17. data/lib/cocina/models/dro_access.rb +4 -4
  18. data/lib/cocina/models/embargo.rb +3 -3
  19. data/lib/cocina/models/file.rb +1 -1
  20. data/lib/cocina/models/file_access.rb +3 -3
  21. data/lib/cocina/models/file_set.rb +16 -16
  22. data/lib/cocina/models/file_set_type.rb +72 -0
  23. data/lib/cocina/models/location_based_access.rb +3 -3
  24. data/lib/cocina/models/location_based_download_access.rb +3 -3
  25. data/lib/cocina/models/object_type.rb +96 -0
  26. data/lib/cocina/models/request_admin_policy.rb +1 -1
  27. data/lib/cocina/models/request_administrative.rb +14 -0
  28. data/lib/cocina/models/request_collection.rb +6 -6
  29. data/lib/cocina/models/request_dro.rb +16 -16
  30. data/lib/cocina/models/request_file.rb +1 -1
  31. data/lib/cocina/models/request_file_set.rb +16 -16
  32. data/lib/cocina/models/stanford_access.rb +3 -3
  33. data/lib/cocina/models/version.rb +1 -1
  34. data/lib/cocina/models/world_access.rb +3 -3
  35. data/lib/cocina/models.rb +14 -7
  36. data/openapi.yml +132 -124
  37. metadata +6 -4
  38. data/lib/cocina/models/vocab.rb +0 -162
data/openapi.yml CHANGED
@@ -174,11 +174,6 @@ components:
174
174
  type: array
175
175
  items:
176
176
  $ref: '#/components/schemas/ReleaseTag'
177
- partOfProject:
178
- description: Administrative or Internal project this resource is a part of
179
- example: Google Books
180
- type: string
181
- nullable: true
182
177
  required:
183
178
  - hasAdminPolicy
184
179
  AdminPolicy:
@@ -190,7 +185,7 @@ components:
190
185
  type:
191
186
  type: string
192
187
  enum:
193
- - 'http://cocina.sul.stanford.edu/models/admin_policy.jsonld'
188
+ - 'https://cocina.sul.stanford.edu/models/admin_policy'
194
189
  externalIdentifier:
195
190
  $ref: '#/components/schemas/Druid'
196
191
  label:
@@ -213,8 +208,8 @@ components:
213
208
  type: object
214
209
  additionalProperties: false
215
210
  properties:
216
- defaultAccess:
217
- $ref: '#/components/schemas/AdminPolicyDefaultAccess'
211
+ accessTemplate:
212
+ $ref: '#/components/schemas/AdminPolicyAccessTemplate'
218
213
  registrationWorkflow:
219
214
  description: When you register an item with this admin policy, these are the workflows that are available.
220
215
  type: array
@@ -241,13 +236,13 @@ components:
241
236
  required:
242
237
  - hasAdminPolicy
243
238
  - hasAgreement
244
- - defaultAccess
245
- AdminPolicyDefaultAccess:
246
- description: 'Provides the default access settings for an AdminPolicy. This is almost the same as DROAccess, but it provides no defaults and has no embargo.'
239
+ - accessTemplate
240
+ AdminPolicyAccessTemplate:
241
+ description: 'Provides the template of access settings that is copied to the items goverend by an AdminPolicy. This is almost the same as DROAccess, but it provides no defaults and has no embargo.'
247
242
  type: object
248
243
  additionalProperties: false
249
244
  properties:
250
- access:
245
+ view:
251
246
  type: string
252
247
  enum:
253
248
  - 'world'
@@ -275,11 +270,12 @@ components:
275
270
  - 'stanford'
276
271
  - 'location-based'
277
272
  - 'none'
278
- readLocation:
273
+ location:
279
274
  description: >
280
- If access is "location-based", which location should have access.
281
- This is used in the transition from Fedora as a way to set a default
282
- readLocation at registration that is copied down to all the files.
275
+ If access or download is "location-based", this indicates which
276
+ location should have access. This is used in the transition from
277
+ Fedora as a way to set a default location at registration that is
278
+ copied down to all the files.
283
279
 
284
280
  type: string
285
281
  nullable: true
@@ -349,7 +345,7 @@ components:
349
345
  CitationOnlyAccess:
350
346
  type: object
351
347
  properties:
352
- access:
348
+ view:
353
349
  description: Access level.
354
350
  type: string
355
351
  enum:
@@ -359,8 +355,8 @@ components:
359
355
  type: string
360
356
  enum:
361
357
  - 'none'
362
- readLocation:
363
- description: If access is "location-based", which location should have access.
358
+ location:
359
+ description: Not used for this access type, must be null.
364
360
  type: string
365
361
  nullable: true
366
362
  enum:
@@ -371,7 +367,7 @@ components:
371
367
  enum:
372
368
  - false
373
369
  required:
374
- - access
370
+ - view
375
371
  - download
376
372
  CocinaVersion:
377
373
  description: The version of Cocina with which this object conforms.
@@ -389,11 +385,11 @@ components:
389
385
  description: The content type of the Collection. Selected from an established set of values.
390
386
  type: string
391
387
  enum:
392
- - 'http://cocina.sul.stanford.edu/models/collection.jsonld'
393
- - 'http://cocina.sul.stanford.edu/models/curated-collection.jsonld'
394
- - 'http://cocina.sul.stanford.edu/models/user-collection.jsonld'
395
- - 'http://cocina.sul.stanford.edu/models/exhibit.jsonld'
396
- - 'http://cocina.sul.stanford.edu/models/series.jsonld'
388
+ - 'https://cocina.sul.stanford.edu/models/collection'
389
+ - 'https://cocina.sul.stanford.edu/models/curated-collection'
390
+ - 'https://cocina.sul.stanford.edu/models/user-collection'
391
+ - 'https://cocina.sul.stanford.edu/models/exhibit'
392
+ - 'https://cocina.sul.stanford.edu/models/series'
397
393
  externalIdentifier:
398
394
  $ref: '#/components/schemas/Druid'
399
395
  label:
@@ -423,7 +419,7 @@ components:
423
419
  type: object
424
420
  additionalProperties: false
425
421
  properties:
426
- access:
422
+ view:
427
423
  description: Access level
428
424
  type: string
429
425
  enum:
@@ -499,7 +495,7 @@ components:
499
495
  ControlledDigitalLendingAccess:
500
496
  type: object
501
497
  properties:
502
- access:
498
+ view:
503
499
  description: Access level.
504
500
  type: string
505
501
  enum:
@@ -509,8 +505,8 @@ components:
509
505
  type: string
510
506
  enum:
511
507
  - none
512
- readLocation:
513
- description: If access is "location-based", which location should have access.
508
+ location:
509
+ description: Not used for this access type, must be null.
514
510
  type: string
515
511
  nullable: true
516
512
  enum:
@@ -520,13 +516,13 @@ components:
520
516
  type: boolean
521
517
  default: false
522
518
  required:
523
- - access
519
+ - view
524
520
  - download
525
521
  - controlledDigitalLending
526
522
  DarkAccess:
527
523
  type: object
528
524
  properties:
529
- access:
525
+ view:
530
526
  description: Access level.
531
527
  type: string
532
528
  default: 'dark'
@@ -538,8 +534,8 @@ components:
538
534
  default: 'none'
539
535
  enum:
540
536
  - 'none'
541
- readLocation:
542
- description: If access is "location-based", which location should have access.
537
+ location:
538
+ description: Not used for this access type, must be null.
543
539
  type: string
544
540
  nullable: true
545
541
  default: null
@@ -854,21 +850,21 @@ components:
854
850
  description: The content type of the DRO. Selected from an established set of values.
855
851
  type: string
856
852
  enum:
857
- - 'http://cocina.sul.stanford.edu/models/object.jsonld'
858
- - 'http://cocina.sul.stanford.edu/models/3d.jsonld'
859
- - 'http://cocina.sul.stanford.edu/models/agreement.jsonld'
860
- - 'http://cocina.sul.stanford.edu/models/book.jsonld'
861
- - 'http://cocina.sul.stanford.edu/models/document.jsonld'
862
- - 'http://cocina.sul.stanford.edu/models/geo.jsonld'
863
- - 'http://cocina.sul.stanford.edu/models/image.jsonld'
864
- - 'http://cocina.sul.stanford.edu/models/page.jsonld'
865
- - 'http://cocina.sul.stanford.edu/models/photograph.jsonld'
866
- - 'http://cocina.sul.stanford.edu/models/manuscript.jsonld'
867
- - 'http://cocina.sul.stanford.edu/models/map.jsonld'
868
- - 'http://cocina.sul.stanford.edu/models/media.jsonld'
869
- - 'http://cocina.sul.stanford.edu/models/track.jsonld'
870
- - 'http://cocina.sul.stanford.edu/models/webarchive-binary.jsonld'
871
- - 'http://cocina.sul.stanford.edu/models/webarchive-seed.jsonld'
853
+ - 'https://cocina.sul.stanford.edu/models/object'
854
+ - 'https://cocina.sul.stanford.edu/models/3d'
855
+ - 'https://cocina.sul.stanford.edu/models/agreement'
856
+ - 'https://cocina.sul.stanford.edu/models/book'
857
+ - 'https://cocina.sul.stanford.edu/models/document'
858
+ - 'https://cocina.sul.stanford.edu/models/geo'
859
+ - 'https://cocina.sul.stanford.edu/models/image'
860
+ - 'https://cocina.sul.stanford.edu/models/page'
861
+ - 'https://cocina.sul.stanford.edu/models/photograph'
862
+ - 'https://cocina.sul.stanford.edu/models/manuscript'
863
+ - 'https://cocina.sul.stanford.edu/models/map'
864
+ - 'https://cocina.sul.stanford.edu/models/media'
865
+ - 'https://cocina.sul.stanford.edu/models/track'
866
+ - 'https://cocina.sul.stanford.edu/models/webarchive-binary'
867
+ - 'https://cocina.sul.stanford.edu/models/webarchive-seed'
872
868
  externalIdentifier:
873
869
  $ref: '#/components/schemas/Druid'
874
870
  label:
@@ -951,7 +947,7 @@ components:
951
947
  - 'https://creativecommons.org/licenses/by-nc/3.0/legalcode'
952
948
  - 'https://creativecommons.org/licenses/by-nc-sa/3.0/legalcode'
953
949
  - 'https://creativecommons.org/licenses/by-nc-nd/3.0/legalcode'
954
- - 'http://cocina.sul.stanford.edu/licenses/none' # Only used in some legacy ETDs and not actually permitted per the Project Chimera docs.
950
+ - 'https://cocina.sul.stanford.edu/licenses/none' # Only used in some legacy ETDs and not actually permitted per the Project Chimera docs.
955
951
  DROStructural:
956
952
  description: Structural metadata
957
953
  type: object
@@ -1052,7 +1048,7 @@ components:
1052
1048
  description: The content type of the File.
1053
1049
  type: string
1054
1050
  enum:
1055
- - 'http://cocina.sul.stanford.edu/models/file.jsonld'
1051
+ - 'https://cocina.sul.stanford.edu/models/file'
1056
1052
  externalIdentifier:
1057
1053
  description: Identifier for the resource within the SDR architecture but outside of the repository. UUID. Constant across resource versions. What clients will use calling the repository.
1058
1054
  type: string
@@ -1131,22 +1127,22 @@ components:
1131
1127
  description: The content type of the Fileset.
1132
1128
  type: string
1133
1129
  enum:
1134
- - 'http://cocina.sul.stanford.edu/models/resources/audio.jsonld'
1135
- - 'http://cocina.sul.stanford.edu/models/resources/attachment.jsonld'
1136
- - 'http://cocina.sul.stanford.edu/models/resources/document.jsonld'
1137
- - 'http://cocina.sul.stanford.edu/models/resources/file.jsonld'
1138
- - 'http://cocina.sul.stanford.edu/models/resources/image.jsonld'
1139
- - 'http://cocina.sul.stanford.edu/models/resources/main-augmented.jsonld'
1140
- - 'http://cocina.sul.stanford.edu/models/resources/main-original.jsonld'
1141
- - 'http://cocina.sul.stanford.edu/models/resources/media.jsonld'
1142
- - 'http://cocina.sul.stanford.edu/models/resources/object.jsonld'
1143
- - 'http://cocina.sul.stanford.edu/models/resources/page.jsonld'
1144
- - 'http://cocina.sul.stanford.edu/models/resources/permissions.jsonld'
1145
- - 'http://cocina.sul.stanford.edu/models/resources/preview.jsonld'
1146
- - 'http://cocina.sul.stanford.edu/models/resources/supplement.jsonld'
1147
- - 'http://cocina.sul.stanford.edu/models/resources/3d.jsonld'
1148
- - 'http://cocina.sul.stanford.edu/models/resources/thumb.jsonld'
1149
- - 'http://cocina.sul.stanford.edu/models/resources/video.jsonld'
1130
+ - 'https://cocina.sul.stanford.edu/models/resources/audio'
1131
+ - 'https://cocina.sul.stanford.edu/models/resources/attachment'
1132
+ - 'https://cocina.sul.stanford.edu/models/resources/document'
1133
+ - 'https://cocina.sul.stanford.edu/models/resources/file'
1134
+ - 'https://cocina.sul.stanford.edu/models/resources/image'
1135
+ - 'https://cocina.sul.stanford.edu/models/resources/main-augmented'
1136
+ - 'https://cocina.sul.stanford.edu/models/resources/main-original'
1137
+ - 'https://cocina.sul.stanford.edu/models/resources/media'
1138
+ - 'https://cocina.sul.stanford.edu/models/resources/object'
1139
+ - 'https://cocina.sul.stanford.edu/models/resources/page'
1140
+ - 'https://cocina.sul.stanford.edu/models/resources/permissions'
1141
+ - 'https://cocina.sul.stanford.edu/models/resources/preview'
1142
+ - 'https://cocina.sul.stanford.edu/models/resources/supplement'
1143
+ - 'https://cocina.sul.stanford.edu/models/resources/3d'
1144
+ - 'https://cocina.sul.stanford.edu/models/resources/thumb'
1145
+ - 'https://cocina.sul.stanford.edu/models/resources/video'
1150
1146
  externalIdentifier:
1151
1147
  type: string
1152
1148
  label:
@@ -1267,7 +1263,7 @@ components:
1267
1263
  LocationBasedAccess:
1268
1264
  type: object
1269
1265
  properties:
1270
- access:
1266
+ view:
1271
1267
  description: Access level.
1272
1268
  type: string
1273
1269
  enum:
@@ -1278,8 +1274,8 @@ components:
1278
1274
  enum:
1279
1275
  - location-based
1280
1276
  - none
1281
- readLocation:
1282
- description: If access is "location-based", which location should have access.
1277
+ location:
1278
+ description: If access or download is "location-based", which location should have access.
1283
1279
  type: string
1284
1280
  enum:
1285
1281
  - 'spec'
@@ -1294,13 +1290,13 @@ components:
1294
1290
  enum:
1295
1291
  - false
1296
1292
  required:
1297
- - access
1293
+ - view
1298
1294
  - download
1299
- - readLocation
1295
+ - location
1300
1296
  LocationBasedDownloadAccess:
1301
1297
  type: object
1302
1298
  properties:
1303
- access:
1299
+ view:
1304
1300
  description: Access level.
1305
1301
  type: string
1306
1302
  enum:
@@ -1311,8 +1307,8 @@ components:
1311
1307
  type: string
1312
1308
  enum:
1313
1309
  - location-based
1314
- readLocation:
1315
- description: If access is "location-based", which location should have access.
1310
+ location:
1311
+ description: Which location should have download access.
1316
1312
  type: string
1317
1313
  enum:
1318
1314
  - 'spec'
@@ -1327,9 +1323,9 @@ components:
1327
1323
  enum:
1328
1324
  - false
1329
1325
  required:
1330
- - access
1326
+ - view
1331
1327
  - download
1332
- - readLocation
1328
+ - location
1333
1329
  MessageDigest:
1334
1330
  description: The output of the message digest algorithm.
1335
1331
  type: object
@@ -1469,6 +1465,18 @@ components:
1469
1465
  example: Searchworks
1470
1466
  release:
1471
1467
  type: boolean
1468
+ RequestAdministrative:
1469
+ type: object
1470
+ additionalProperties: false
1471
+ allOf:
1472
+ - $ref: "#/components/schemas/Administrative"
1473
+ - type: object
1474
+ additionalProperties: false
1475
+ properties:
1476
+ partOfProject:
1477
+ description: Internal project this resource is a part of. This governs routing of messages about this object.
1478
+ example: Google Books
1479
+ type: string
1472
1480
  RequestAdminPolicy:
1473
1481
  description: Same as an AdminPolicy, but doesn't have an externalIdentifier as one will be created
1474
1482
  type: object
@@ -1479,7 +1487,7 @@ components:
1479
1487
  type:
1480
1488
  type: string
1481
1489
  enum:
1482
- - 'http://cocina.sul.stanford.edu/models/admin_policy.jsonld'
1490
+ - 'https://cocina.sul.stanford.edu/models/admin_policy'
1483
1491
  label:
1484
1492
  type: string
1485
1493
  version:
@@ -1507,11 +1515,11 @@ components:
1507
1515
  type:
1508
1516
  type: string
1509
1517
  enum:
1510
- - 'http://cocina.sul.stanford.edu/models/collection.jsonld'
1511
- - 'http://cocina.sul.stanford.edu/models/curated-collection.jsonld'
1512
- - 'http://cocina.sul.stanford.edu/models/user-collection.jsonld'
1513
- - 'http://cocina.sul.stanford.edu/models/exhibit.jsonld'
1514
- - 'http://cocina.sul.stanford.edu/models/series.jsonld'
1518
+ - 'https://cocina.sul.stanford.edu/models/collection'
1519
+ - 'https://cocina.sul.stanford.edu/models/curated-collection'
1520
+ - 'https://cocina.sul.stanford.edu/models/user-collection'
1521
+ - 'https://cocina.sul.stanford.edu/models/exhibit'
1522
+ - 'https://cocina.sul.stanford.edu/models/series'
1515
1523
  label:
1516
1524
  type: string
1517
1525
  version:
@@ -1522,7 +1530,7 @@ components:
1522
1530
  access:
1523
1531
  $ref: '#/components/schemas/CollectionAccess'
1524
1532
  administrative:
1525
- $ref: '#/components/schemas/Administrative'
1533
+ $ref: '#/components/schemas/RequestAdministrative'
1526
1534
  description:
1527
1535
  $ref: '#/components/schemas/RequestDescription'
1528
1536
  identification:
@@ -1617,21 +1625,21 @@ components:
1617
1625
  type:
1618
1626
  type: string
1619
1627
  enum:
1620
- - 'http://cocina.sul.stanford.edu/models/object.jsonld'
1621
- - 'http://cocina.sul.stanford.edu/models/3d.jsonld'
1622
- - 'http://cocina.sul.stanford.edu/models/agreement.jsonld'
1623
- - 'http://cocina.sul.stanford.edu/models/book.jsonld'
1624
- - 'http://cocina.sul.stanford.edu/models/document.jsonld'
1625
- - 'http://cocina.sul.stanford.edu/models/geo.jsonld'
1626
- - 'http://cocina.sul.stanford.edu/models/image.jsonld'
1627
- - 'http://cocina.sul.stanford.edu/models/page.jsonld'
1628
- - 'http://cocina.sul.stanford.edu/models/photograph.jsonld'
1629
- - 'http://cocina.sul.stanford.edu/models/manuscript.jsonld'
1630
- - 'http://cocina.sul.stanford.edu/models/map.jsonld'
1631
- - 'http://cocina.sul.stanford.edu/models/media.jsonld'
1632
- - 'http://cocina.sul.stanford.edu/models/track.jsonld'
1633
- - 'http://cocina.sul.stanford.edu/models/webarchive-binary.jsonld'
1634
- - 'http://cocina.sul.stanford.edu/models/webarchive-seed.jsonld'
1628
+ - 'https://cocina.sul.stanford.edu/models/object'
1629
+ - 'https://cocina.sul.stanford.edu/models/3d'
1630
+ - 'https://cocina.sul.stanford.edu/models/agreement'
1631
+ - 'https://cocina.sul.stanford.edu/models/book'
1632
+ - 'https://cocina.sul.stanford.edu/models/document'
1633
+ - 'https://cocina.sul.stanford.edu/models/geo'
1634
+ - 'https://cocina.sul.stanford.edu/models/image'
1635
+ - 'https://cocina.sul.stanford.edu/models/page'
1636
+ - 'https://cocina.sul.stanford.edu/models/photograph'
1637
+ - 'https://cocina.sul.stanford.edu/models/manuscript'
1638
+ - 'https://cocina.sul.stanford.edu/models/map'
1639
+ - 'https://cocina.sul.stanford.edu/models/media'
1640
+ - 'https://cocina.sul.stanford.edu/models/track'
1641
+ - 'https://cocina.sul.stanford.edu/models/webarchive-binary'
1642
+ - 'https://cocina.sul.stanford.edu/models/webarchive-seed'
1635
1643
  label:
1636
1644
  type: string
1637
1645
  version:
@@ -1642,7 +1650,7 @@ components:
1642
1650
  access:
1643
1651
  $ref: '#/components/schemas/DROAccess'
1644
1652
  administrative:
1645
- $ref: '#/components/schemas/Administrative'
1653
+ $ref: '#/components/schemas/RequestAdministrative'
1646
1654
  description:
1647
1655
  $ref: '#/components/schemas/RequestDescription'
1648
1656
  identification:
@@ -1683,7 +1691,7 @@ components:
1683
1691
  type:
1684
1692
  type: string
1685
1693
  enum:
1686
- - 'http://cocina.sul.stanford.edu/models/file.jsonld'
1694
+ - 'https://cocina.sul.stanford.edu/models/file'
1687
1695
  label:
1688
1696
  type: string
1689
1697
  filename:
@@ -1723,22 +1731,22 @@ components:
1723
1731
  type:
1724
1732
  type: string
1725
1733
  enum:
1726
- - 'http://cocina.sul.stanford.edu/models/resources/audio.jsonld'
1727
- - 'http://cocina.sul.stanford.edu/models/resources/attachment.jsonld'
1728
- - 'http://cocina.sul.stanford.edu/models/resources/document.jsonld'
1729
- - 'http://cocina.sul.stanford.edu/models/resources/file.jsonld'
1730
- - 'http://cocina.sul.stanford.edu/models/resources/image.jsonld'
1731
- - 'http://cocina.sul.stanford.edu/models/resources/main-augmented.jsonld'
1732
- - 'http://cocina.sul.stanford.edu/models/resources/main-original.jsonld'
1733
- - 'http://cocina.sul.stanford.edu/models/resources/media.jsonld'
1734
- - 'http://cocina.sul.stanford.edu/models/resources/object.jsonld'
1735
- - 'http://cocina.sul.stanford.edu/models/resources/page.jsonld'
1736
- - 'http://cocina.sul.stanford.edu/models/resources/permissions.jsonld'
1737
- - 'http://cocina.sul.stanford.edu/models/resources/preview.jsonld'
1738
- - 'http://cocina.sul.stanford.edu/models/resources/supplement.jsonld'
1739
- - 'http://cocina.sul.stanford.edu/models/resources/3d.jsonld'
1740
- - 'http://cocina.sul.stanford.edu/models/resources/thumb.jsonld'
1741
- - 'http://cocina.sul.stanford.edu/models/resources/video.jsonld'
1734
+ - 'https://cocina.sul.stanford.edu/models/resources/audio'
1735
+ - 'https://cocina.sul.stanford.edu/models/resources/attachment'
1736
+ - 'https://cocina.sul.stanford.edu/models/resources/document'
1737
+ - 'https://cocina.sul.stanford.edu/models/resources/file'
1738
+ - 'https://cocina.sul.stanford.edu/models/resources/image'
1739
+ - 'https://cocina.sul.stanford.edu/models/resources/main-augmented'
1740
+ - 'https://cocina.sul.stanford.edu/models/resources/main-original'
1741
+ - 'https://cocina.sul.stanford.edu/models/resources/media'
1742
+ - 'https://cocina.sul.stanford.edu/models/resources/object'
1743
+ - 'https://cocina.sul.stanford.edu/models/resources/page'
1744
+ - 'https://cocina.sul.stanford.edu/models/resources/permissions'
1745
+ - 'https://cocina.sul.stanford.edu/models/resources/preview'
1746
+ - 'https://cocina.sul.stanford.edu/models/resources/supplement'
1747
+ - 'https://cocina.sul.stanford.edu/models/resources/3d'
1748
+ - 'https://cocina.sul.stanford.edu/models/resources/thumb'
1749
+ - 'https://cocina.sul.stanford.edu/models/resources/video'
1742
1750
  label:
1743
1751
  type: string
1744
1752
  version:
@@ -1883,7 +1891,7 @@ components:
1883
1891
  StanfordAccess:
1884
1892
  type: object
1885
1893
  properties:
1886
- access:
1894
+ view:
1887
1895
  description: Access level.
1888
1896
  type: string
1889
1897
  enum:
@@ -1893,8 +1901,8 @@ components:
1893
1901
  type: string
1894
1902
  enum:
1895
1903
  - stanford
1896
- readLocation:
1897
- description: If access is "location-based", which location should have access.
1904
+ location:
1905
+ description: Not used for this access type, must be null.
1898
1906
  type: string
1899
1907
  nullable: true
1900
1908
  enum:
@@ -1905,12 +1913,12 @@ components:
1905
1913
  enum:
1906
1914
  - false
1907
1915
  required:
1908
- - access
1916
+ - view
1909
1917
  - download
1910
1918
  WorldAccess:
1911
1919
  type: object
1912
1920
  properties:
1913
- access:
1921
+ view:
1914
1922
  description: Access level.
1915
1923
  type: string
1916
1924
  enum:
@@ -1922,8 +1930,8 @@ components:
1922
1930
  - none
1923
1931
  - stanford
1924
1932
  - world
1925
- readLocation:
1926
- description: If access is "location-based", which location should have access.
1933
+ location:
1934
+ description: Not used for this access type, must be null.
1927
1935
  type: string
1928
1936
  nullable: true
1929
1937
  enum:
@@ -1934,5 +1942,5 @@ components:
1934
1942
  enum:
1935
1943
  - false
1936
1944
  required:
1937
- - access
1945
+ - view
1938
1946
  - download
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocina-models
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.67.1
4
+ version: 0.68.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Coyne
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-03-03 00:00:00.000000000 Z
11
+ date: 2022-03-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -277,8 +277,8 @@ files:
277
277
  - lib/cocina/models/access_role.rb
278
278
  - lib/cocina/models/access_role_member.rb
279
279
  - lib/cocina/models/admin_policy.rb
280
+ - lib/cocina/models/admin_policy_access_template.rb
280
281
  - lib/cocina/models/admin_policy_administrative.rb
281
- - lib/cocina/models/admin_policy_default_access.rb
282
282
  - lib/cocina/models/administrative.rb
283
283
  - lib/cocina/models/applies_to.rb
284
284
  - lib/cocina/models/business_barcode.rb
@@ -317,6 +317,7 @@ files:
317
317
  - lib/cocina/models/file_administrative.rb
318
318
  - lib/cocina/models/file_set.rb
319
319
  - lib/cocina/models/file_set_structural.rb
320
+ - lib/cocina/models/file_set_type.rb
320
321
  - lib/cocina/models/geographic.rb
321
322
  - lib/cocina/models/identification.rb
322
323
  - lib/cocina/models/lane_medical_barcode.rb
@@ -324,11 +325,13 @@ files:
324
325
  - lib/cocina/models/location_based_access.rb
325
326
  - lib/cocina/models/location_based_download_access.rb
326
327
  - lib/cocina/models/message_digest.rb
328
+ - lib/cocina/models/object_type.rb
327
329
  - lib/cocina/models/presentation.rb
328
330
  - lib/cocina/models/purl.rb
329
331
  - lib/cocina/models/related_resource.rb
330
332
  - lib/cocina/models/release_tag.rb
331
333
  - lib/cocina/models/request_admin_policy.rb
334
+ - lib/cocina/models/request_administrative.rb
332
335
  - lib/cocina/models/request_collection.rb
333
336
  - lib/cocina/models/request_description.rb
334
337
  - lib/cocina/models/request_dro.rb
@@ -347,7 +350,6 @@ files:
347
350
  - lib/cocina/models/validatable.rb
348
351
  - lib/cocina/models/validator.rb
349
352
  - lib/cocina/models/version.rb
350
- - lib/cocina/models/vocab.rb
351
353
  - lib/cocina/models/world_access.rb
352
354
  - openapi.yml
353
355
  homepage: https://github.com/sul-dlss/cocina-models