games.atmosphere.define
Schema Diff
+4 -4
Compatibility Analysis
Breaking Changes Detected
1 breaking change, 0 non-breaking changes.
Breaking Changes (1)
- ConstraintTightened ConstraintTightened { vertex_id: "games.atmosphere.define#recordUse.role", sort: "knownValues", old_value: "[\"perk\",\"character\",\"cosmetic\",\"bonus\",\"interoperability\",\"stats\",\"activity\",\"leaderboard\",\"save\",\"replay\",\"session\",\"profile\",\"inventory\",\"grant\",\"validation\",\"label\",\"other\"]", new_value: "[\"character\",\"perk\",\"cosmetic\",\"bonus\",\"interop\",\"stats\",\"activity\",\"leaderboard\",\"save\",\"replay\",\"session\",\"profile\",\"inventory\",\"grant\",\"validation\",\"label\",\"other\"]" }
Migration Guidance
Constraint Changes
- ConstraintTightened ConstraintTightened { vertex_id: "games.atmosphere.define#recordUse.role", sort: "knownValues", old_value: "[\"perk\",\"character\",\"cosmetic\",\"bonus\",\"interoperability\",\"stats\",\"activity\",\"leaderboard\",\"save\",\"replay\",\"session\",\"profile\",\"inventory\",\"grant\",\"validation\",\"label\",\"other\"]", new_value: "[\"character\",\"perk\",\"cosmetic\",\"bonus\",\"interop\",\"stats\",\"activity\",\"leaderboard\",\"save\",\"replay\",\"session\",\"profile\",\"inventory\",\"grant\",\"validation\",\"label\",\"other\"]" }
1
1
{
2
2
"id": "games.atmosphere.define",
3
3
"defs": {
4
4
"all": {
5
5
"type": "object",
6
6
"required": [
7
7
"check",
8
8
"rules"
9
9
],
10
10
"properties": {
11
11
"check": {
12
12
"type": "string",
13
13
"const": "all"
14
14
},
15
15
"label": {
16
16
"type": "string",
17
17
"maxLength": 120
18
18
},
19
19
"rules": {
20
20
"type": "array",
21
21
"items": {
22
22
"ref": "#rule",
23
23
"type": "ref"
24
24
},
25
25
"maxLength": 16,
26
26
"minLength": 1
27
27
},
28
28
"acquire": {
29
29
"type": "string",
30
30
"format": "uri"
31
31
}
32
32
},
33
33
"description": "Logical AND. Passes only when every sub-rule passes."
34
34
},
35
35
"any": {
36
36
"type": "object",
37
37
"required": [
38
38
"check",
39
39
"rules"
40
40
],
41
41
"properties": {
42
42
"check": {
43
43
"type": "string",
44
44
"const": "any"
45
45
},
46
46
"label": {
47
47
"type": "string",
48
48
"maxLength": 120
49
49
},
50
50
"rules": {
51
51
"type": "array",
52
52
"items": {
53
53
"ref": "#rule",
54
54
"type": "ref"
55
55
},
56
56
"maxLength": 16,
57
57
"minLength": 1
58
58
},
59
59
"acquire": {
60
60
"type": "string",
61
61
"format": "uri"
62
62
}
63
63
},
64
64
"description": "Logical OR. Passes when at least one sub-rule passes, e.g. 'holds a sheet in any of these systems'."
65
65
},
66
66
"not": {
67
67
"type": "object",
68
68
"required": [
69
69
"check",
70
70
"rule"
71
71
],
72
72
"properties": {
73
73
"rule": {
74
74
"ref": "#rule",
75
75
"type": "ref"
76
76
},
77
77
"check": {
78
78
"type": "string",
79
79
"const": "not"
80
80
},
81
81
"label": {
82
82
"type": "string",
83
83
"maxLength": 120
84
84
}
85
85
},
86
86
"description": "Logical NOT. Passes only when the sub-rule fails. Use for exclusion gates: 'has not already claimed this reward'."
87
87
},
88
88
"main": {
89
89
"key": "any",
90
90
"type": "record",
91
91
"record": {
92
92
"type": "object",
93
93
"required": [
94
94
"name",
95
95
"url",
96
96
"publisher",
97
97
"category",
98
98
"createdAt"
99
99
],
100
100
"properties": {
101
101
"url": {
102
102
"type": "string",
103
103
"format": "uri",
104
104
"description": "URL at which the game is played, downloaded, or accessed. This is a launch location, not the record's identity."
105
105
},
106
106
"icon": {
107
107
"type": "blob",
108
108
"accept": [
109
109
"image/png",
110
110
"image/webp"
111
111
],
112
112
"maxSize": 512000,
113
113
"description": "Square icon for compact display contexts. Recommended 256x256 px."
114
114
},
115
115
"name": {
116
116
"type": "string",
117
117
"maxLength": 100,
118
118
"description": "Display name of the experience as shown in portal listings."
119
119
},
120
120
"tags": {
121
121
"type": "array",
122
122
"items": {
123
123
"type": "string",
124
124
"maxLength": 32
125
125
},
126
126
"maxLength": 12,
127
127
"description": "Freeform tags for search and discovery (e.g. 'arcade', 'pixel art', 'multiplayer')."
128
128
},
129
129
"uses": {
130
130
"type": "array",
131
131
"items": {
132
132
"ref": "#recordUse",
133
133
"type": "ref"
134
134
},
135
135
"maxLength": 32,
136
136
"description": "Non-required records this game uses, understands, produces, validates, or wants portals to read. Use requires[] only for hard gates. Use uses[] for everything else: optional gameplay perks, character imports, cosmetics, bonuses, interoperability, stats, saves, activity, sessions, replays, leaderboards, labels, grants, validation, inventory, or profile context. The role and purpose fields explain whether the use is a player-facing benefit, a game-authored record, or a portal-readable display surface."
137
137
},
138
138
"cover": {
139
139
"type": "blob",
140
140
"accept": [
141
141
"image/png",
142
142
"image/jpeg",
143
143
"image/webp"
144
144
],
145
145
"maxSize": 4000000,
146
146
"description": "Primary cover image. Portals display this as the card thumbnail. Recommended ratio 16:9."
147
147
},
148
148
"media": {
149
149
"type": "array",
150
150
"items": {
151
151
"ref": "#mediaItem",
152
152
"type": "ref"
153
153
},
154
154
"maxLength": 24,
155
155
"description": "Extended media gallery, screenshots, banners, key art, and posters a portal can show on a detail page. 'cover' and 'icon' above stay the primary card images; this is the deeper set, mirroring the rich galleries dedicated game catalogs keep."
156
156
},
157
157
"status": {
158
158
"type": "string",
159
159
"description": "Current availability. Known values: 'live', 'beta', 'coming' (announced but not yet playable), 'archived' (no longer available). Open set; portals may badge or filter on these.",
160
160
"knownValues": [
161
161
"live",
162
162
"beta",
163
163
"coming",
164
164
"archived"
165
165
]
166
166
},
167
167
"catalog": {
168
168
"type": "array",
169
169
"items": {
170
170
"ref": "#catalogRef",
171
171
"type": "ref"
172
172
},
173
173
"maxLength": 8,
174
174
"description": "Optional links to records in other game catalogs that describe this same title, most often a Pentaract (games.gamesgamesgamesgames.game) entry. This is how a definition borrows rich metadata a dedicated catalog already maintains, genres, platforms, screenshots, release dates, ratings, instead of duplicating it here. Purely supplementary: evaluation never reads these, and the experience is complete without them. Cooperate, don't re-enter."
175
175
},
176
176
"tagline": {
177
177
"type": "string",
178
178
"maxLength": 200,
179
179
"description": "One-line summary shown beneath the title in card views."
180
180
},
181
181
"category": {
182
182
"type": "string",
183
183
"maxLength": 30,
184
184
"description": "Broad type of experience, used for portal filtering and display. Known values: 'browser' (plays in a web browser), 'download' (downloaded and run locally), 'physical' (tabletop or in-person), 'other'. This is an open set, portals should tolerate values they do not recognise.",
185
185
"knownValues": [
186
186
"browser",
187
187
"download",
188
188
"physical",
189
189
"other"
190
190
]
191
191
},
192
192
"requires": {
193
193
"type": "array",
194
194
"items": {
195
195
"ref": "#rule",
196
196
"type": "ref"
197
197
},
198
198
"maxLength": 16,
199
199
"description": "Hard playability requirements. Every rule must pass before the game can be played as declared. Do not put recommendations, bonuses, or merely supported records here. Portals surface failures as actionable prompts using each rule's 'acquire' link."
200
200
},
201
201
"trailers": {
202
202
"type": "array",
203
203
"items": {
204
204
"ref": "#video",
205
205
"type": "ref"
206
206
},
207
207
"maxLength": 8,
208
208
"description": "Video trailers and gameplay clips. Hosted externally (YouTube, Vimeo, Twitch) or linked directly so portals can embed or link them."
209
209
},
210
210
"createdAt": {
211
211
"type": "string",
212
212
"format": "datetime"
213
213
},
214
214
"developer": {
215
215
"ref": "#party",
216
216
"type": "ref",
217
217
"description": "The studio or individual who built the experience. Prefer a DID when available so the developer is verifiable on the network."
218
218
},
219
219
"legacyIds": {
220
220
"type": "array",
221
221
"items": {
222
222
"type": "string",
223
223
"maxLength": 80
224
224
},
225
225
"maxLength": 12,
226
226
"description": "Stable identifiers used by older catalogues, score readers, or inventory integrations for this same game. These are compatibility aliases, not canonical identity."
227
227
},
228
228
"publisher": {
229
229
"type": "string",
230
230
"format": "at-uri",
231
231
"description": "Stable AT-URI identifying the account that publishes and maintains this definition, normally at:// followed by the publishing DID. It must name the same repository that contains this record; portals should reject a mismatch."
232
232
},
233
233
"updatedAt": {
234
234
"type": "string",
235
235
"format": "datetime"
236
236
},
237
237
"releasedAt": {
238
238
"type": "string",
239
239
"format": "datetime",
240
240
"description": "When this experience became publicly available."
241
241
},
242
242
"description": {
243
243
"type": "string",
244
244
"maxLength": 2000,
245
245
"description": "Full description of the experience. Plain text; portals may render line breaks."
246
246
},
247
247
"statNamespace": {
248
248
"type": "string",
249
249
"maxLength": 80,
250
250
"description": "Deprecated compatibility hint. Use uses[] with role 'activity' or 'stats' to describe player activity records and display metrics."
251
251
}
252
252
}
253
253
},
254
254
"description": "Published to the publisher's own repository, one record per game. Use a stable, readable record key and update that same record in place. The record's at:// URI is its canonical identity; 'url' is an access location and may change. A portal must not merge definitions solely because their URLs match."
255
255
},
256
256
"rule": {
257
257
"type": "object",
258
258
"required": [
259
259
"check"
260
260
],
261
261
"properties": {
262
262
"op": {
263
263
"type": "string",
264
264
"description": "For field: comparison operator.",
265
265
"knownValues": [
266
266
"exists",
267
267
"notExists",
268
268
"isPlayer",
269
269
"eq",
270
270
"neq",
271
271
"gt",
272
272
"gte",
273
273
"lt",
274
274
"lte"
275
275
]
276
276
},
277
277
"nsid": {
278
278
"type": "string",
279
279
"format": "nsid",
280
280
"description": "Collection read by record, field, matches, or vouch."
281
281
},
282
282
"rkey": {
283
283
"type": "string",
284
284
"maxLength": 50,
285
285
"description": "For field: record key, default 'self'; 'any' scans the collection."
286
286
},
287
287
"rule": {
288
288
"ref": "#rule",
289
289
"type": "ref",
290
290
"description": "For not: nested rule to negate."
291
291
},
292
292
"check": {
293
293
"type": "string",
294
294
"description": "Rule discriminator. Known values are open for forward compatibility; an unknown value must not pass.",
295
295
"knownValues": [
296
296
"record",
297
297
"field",
298
298
"matches",
299
299
"vouch",
300
300
"all",
301
301
"any",
302
302
"not"
303
303
]
304
304
},
305
305
"field": {
306
306
"type": "string",
307
307
"maxLength": 200,
308
308
"description": "For field: dot-path to test."
309
309
},
310
310
"label": {
311
311
"type": "string",
312
312
"maxLength": 120,
313
313
"description": "Human-readable requirement."
314
314
},
315
315
"rules": {
316
316
"type": "array",
317
317
"items": {
318
318
"ref": "#rule",
319
319
"type": "ref"
320
320
},
321
321
"maxLength": 16,
322
322
"minLength": 1,
323
323
"description": "For all or any: nested rules."
324
324
},
325
325
"value": {
326
326
"type": "unknown",
327
327
"description": "Comparison value for value-taking operators."
328
328
},
329
329
"acquire": {
330
330
"type": "string",
331
331
"format": "uri",
332
332
"description": "URL where a player can fulfil this requirement."
333
333
},
334
334
"filters": {
335
335
"type": "array",
336
336
"items": {
337
337
"ref": "#filter",
338
338
"type": "ref"
339
339
},
340
340
"maxLength": 8,
341
341
"minLength": 1,
342
342
"description": "For matches or vouch: conditions that must hold on one record."
343
343
},
344
344
"authority": {
345
345
"type": "string",
346
346
"format": "did",
347
347
"description": "For vouch: stable DID of the record issuer."
348
348
}
349
349
},
350
350
"description": "One recursive playability rule, discriminated by 'check'. Lexicon does not permit a union as a top-level definition, so this object carries the fields used by all seven variants. Evaluators enforce each variant's required fields: record(check,nsid); field(check,nsid,field,op); matches(check,nsid,filters); vouch(check,authority,nsid); all/any(check,rules); not(check,rule). Unknown check values evaluate as unknown, never as pass."
351
351
},
352
352
"field": {
353
353
"type": "object",
354
354
"required": [
355
355
"check",
356
356
"nsid",
357
357
"field",
358
358
"op"
359
359
],
360
360
"properties": {
361
361
"op": {
362
362
"type": "string",
363
363
"description": "How to test the field. exists/notExists check presence; eq/neq/gt/gte/lt/lte compare to value; isPlayer matches the signed-in player by their account ID (DID) and takes no value.",
364
364
"knownValues": [
365
365
"exists",
366
366
"notExists",
367
367
"isPlayer",
368
368
"eq",
369
369
"neq",
370
370
"gt",
371
371
"gte",
372
372
"lt",
373
373
"lte"
374
374
]
375
375
},
376
376
"nsid": {
377
377
"type": "string",
378
378
"format": "nsid"
379
379
},
380
380
"rkey": {
381
381
"type": "string",
382
382
"maxLength": 50,
383
383
"description": "Record key. Defaults to 'self'. Use 'any' to pass if any record in the collection satisfies the condition."
384
384
},
385
385
"check": {
386
386
"type": "string",
387
387
"const": "field"
388
388
},
389
389
"field": {
390
390
"type": "string",
391
391
"maxLength": 200,
392
392
"description": "Dot-path to the property to evaluate (e.g. 'score.total', 'level'). Array traversal is not supported."
393
393
},
394
394
"label": {
395
395
"type": "string",
396
396
"maxLength": 120
397
397
},
398
398
"value": {
399
399
"type": "unknown",
400
400
"description": "Comparison value for value-taking operators. Strings, numbers, and booleans are accepted; numeric operators coerce values to numbers."
401
401
},
402
402
"acquire": {
403
403
"type": "string",
404
404
"format": "uri"
405
405
}
406
406
},
407
407
"description": "Fetches a record from the player's repository and tests one field. Covers required fields, score thresholds, flags, and enum matches."
408
408
},
409
409
"party": {
410
410
"type": "object",
411
411
"required": [
412
412
"name"
413
413
],
414
414
"properties": {
415
415
"did": {
416
416
"type": "string",
417
417
"format": "did",
418
418
"description": "AT Protocol DID of this entity's account, if they have one. On an atmosphere.games-managed provisional definition, this is also the DID expected to publish the canonical developer-owned definition."
419
419
},
420
420
"url": {
421
421
"type": "string",
422
422
"format": "uri",
423
423
"description": "Website for this entity."
424
424
},
425
425
"name": {
426
426
"type": "string",
427
427
"maxLength": 100,
428
428
"description": "Display name of the entity."
429
429
}
430
430
},
431
431
"description": "A named entity (developer, publisher, studio) associated with the experience."
432
432
},
433
433
"video": {
434
434
"type": "object",
435
435
"required": [
436
436
"title"
437
437
],
438
438
"properties": {
439
439
"url": {
440
440
"type": "string",
441
441
"format": "uri",
442
442
"description": "Full URL to the video, used when no platform/videoId is given."
443
443
},
444
444
"title": {
445
445
"type": "string",
446
446
"maxLength": 120,
447
447
"description": "Label for the clip (e.g. 'Launch Trailer')."
448
448
},
449
449
"videoId": {
450
450
"type": "string",
451
451
"maxLength": 120,
452
452
"description": "Platform video id (e.g. a YouTube id). Combined with 'platform' to build an embed."
453
453
},
454
454
"platform": {
455
455
"type": "string",
456
456
"description": "Where the video lives. 'direct' means the url points straight at a video file or page.",
457
457
"knownValues": [
458
458
"youtube",
459
459
"vimeo",
460
460
"twitch",
461
461
"direct"
462
462
]
463
463
},
464
464
"thumbnail": {
465
465
"type": "blob",
466
466
"accept": [
467
467
"image/png",
468
468
"image/jpeg",
469
469
"image/webp"
470
470
],
471
471
"maxSize": 2000000,
472
472
"description": "Optional still frame shown before the video plays."
473
473
}
474
474
},
475
475
"description": "A trailer or gameplay clip. Provide a platform + videoId (preferred, so portals embed natively) or a direct url."
476
476
},
477
477
"vouch": {
478
478
"type": "object",
479
479
"required": [
480
480
"check",
481
481
"authority",
482
482
"nsid"
483
483
],
484
484
"properties": {
485
485
"nsid": {
486
486
"type": "string",
487
487
"format": "nsid",
488
488
"description": "The kind of record to look for in that account's repo (e.g. equipment.rpg.give)."
489
489
},
490
490
"check": {
491
491
"type": "string",
492
492
"const": "vouch"
493
493
},
494
494
"label": {
495
495
"type": "string",
496
496
"maxLength": 120
497
497
},
498
498
"acquire": {
499
499
"type": "string",
500
500
"format": "uri"
501
501
},
502
502
"filters": {
503
503
"type": "array",
504
504
"items": {
505
505
"ref": "#filter",
506
506
"type": "ref"
507
507
},
508
508
"maxLength": 8,
509
509
"description": "Conditions the record must meet, written exactly like a matches rule. Put the 'isPlayer' operator on the field that names the player (e.g. recipient) to require the record reference the signed-in player; add value conditions (e.g. item equals jet_pack) to pin a specific grant. With no filters, any record of this kind on the authority's repo passes."
510
510
},
511
511
"authority": {
512
512
"type": "string",
513
513
"format": "did",
514
514
"description": "Stable DID of the account that issues the record (for example an item provider, guild, or tournament organiser). Handles are not accepted because they are mutable. A player can never be their own authority."
515
515
}
516
516
},
517
517
"description": "Passes when a trusted account's repo holds a record that meets the given conditions, optionally one that references the signed-in player. Because the record lives on the issuer's repo, not the player's, it cannot be forged. Use it for item grants, awards, memberships, approvals, licences, or any record one account publishes about another. Example: 'games.protoimsg.app has an equipment.rpg.give whose recipient is this player and whose item is jet_pack.'"
518
518
},
519
519
"filter": {
520
520
"type": "object",
521
521
"required": [
522
522
"field",
523
523
"op"
524
524
],
525
525
"properties": {
526
526
"op": {
527
527
"type": "string",
528
528
"description": "How to test the field. exists/notExists check presence; eq/neq/gt/gte/lt/lte compare to value; isPlayer matches the signed-in player by their account ID (DID) and takes no value.",
529
529
"knownValues": [
530
530
"exists",
531
531
"notExists",
532
532
"isPlayer",
533
533
"eq",
534
534
"neq",
535
535
"gt",
536
536
"gte",
537
537
"lt",
538
538
"lte"
539
539
]
540
540
},
541
541
"field": {
542
542
"type": "string",
543
543
"maxLength": 200,
544
544
"description": "Dot-path to the field."
545
545
},
546
546
"value": {
547
547
"type": "unknown",
548
548
"description": "Comparison value for value-taking operators. Strings, numbers, and booleans are accepted; numeric operators coerce values to numbers."
549
549
}
550
550
},
551
551
"description": "A single condition on a record's contents, used by matches and vouch. Most operators compare the field to a value. The special 'isPlayer' operator takes no value and passes when the field identifies the signed-in player by their account ID (DID). It accepts the DID directly or an at:// URI whose repo is the player, and never matches on a handle, since handles can change. This is how a static definition points at whoever is reading it."
552
552
},
553
553
"record": {
554
554
"type": "object",
555
555
"required": [
556
556
"check",
557
557
"nsid"
558
558
],
559
559
"properties": {
560
560
"nsid": {
561
561
"type": "string",
562
562
"format": "nsid",
563
563
"description": "Collection to check on the player's PDS (e.g. 'actor.rpg.sprite')."
564
564
},
565
565
"check": {
566
566
"type": "string",
567
567
"const": "record"
568
568
},
569
569
"label": {
570
570
"type": "string",
571
571
"maxLength": 120,
572
572
"description": "Human-readable requirement shown when gated (e.g. 'An rpg.actor sprite')."
573
573
},
574
574
"acquire": {
575
575
"type": "string",
576
576
"format": "uri",
577
577
"description": "URL to send players who fail, so they can fulfil the requirement."
578
578
}
579
579
},
580
580
"description": "Passes if the player's PDS holds at least one record in the given collection. The simplest gate: 'does this person participate in this lexicon at all?'"
581
581
},
582
582
"matches": {
583
583
"type": "object",
584
584
"required": [
585
585
"check",
586
586
"nsid",
587
587
"filters"
588
588
],
589
589
"properties": {
590
590
"nsid": {
591
591
"type": "string",
592
592
"format": "nsid"
593
593
},
594
594
"check": {
595
595
"type": "string",
596
596
"const": "matches"
597
597
},
598
598
"label": {
599
599
"type": "string",
600
600
"maxLength": 120
601
601
},
602
602
"acquire": {
603
603
"type": "string",
604
604
"format": "uri"
605
605
},
606
606
"filters": {
607
607
"type": "array",
608
608
"items": {
609
609
"ref": "#filter",
610
610
"type": "ref"
611
611
},
612
612
"maxLength": 8,
613
613
"minLength": 1,
614
614
"description": "All filters must match on the same record (AND semantics within one record)."
615
615
}
616
616
},
617
617
"description": "Scans the player's collection and passes if any single record satisfies all filters simultaneously. Use to find a record by content rather than by key, e.g. 'holds item X', 'has membership tier Y'."
618
618
},
619
619
"mediaItem": {
620
620
"type": "object",
621
621
"required": [
622
622
"image"
623
623
],
624
624
"properties": {
625
625
"alt": {
626
626
"type": "string",
627
627
"maxLength": 300,
628
628
"description": "Accessibility caption describing the image."
629
629
},
630
630
"type": {
631
631
"type": "string",
632
632
"description": "What kind of image this is, so portals can place it (e.g. 'banner' across the top, 'screenshot' in a gallery).",
633
633
"knownValues": [
634
634
"screenshot",
635
635
"banner",
636
636
"artwork",
637
637
"poster",
638
638
"background",
639
639
"logo",
640
640
"thumbnail"
641
641
]
642
642
},
643
643
"image": {
644
644
"type": "blob",
645
645
"accept": [
646
646
"image/png",
647
647
"image/jpeg",
648
648
"image/webp",
649
649
"image/gif"
650
650
],
651
651
"maxSize": 8000000,
652
652
"description": "The image blob, stored on the developer's PDS."
653
653
},
654
654
"width": {
655
655
"type": "integer",
656
656
"description": "Pixel width, if known, lets portals reserve layout space before the blob loads."
657
657
},
658
658
"height": {
659
659
"type": "integer",
660
660
"description": "Pixel height, if known."
661
661
}
662
662
},
663
663
"description": "One image in the experience's media gallery."
664
664
},
665
665
"recordUse": {
666
666
"type": "object",
667
667
"required": [
668
668
"role",
669
669
"nsid"
670
670
],
671
671
"properties": {
672
672
"nsid": {
673
673
"type": "string",
674
674
"format": "nsid",
675
675
"description": "Collection to read or use."
676
676
},
677
677
"path": {
678
678
"type": "string",
679
679
"maxLength": 200,
680
680
"description": "Optional dot-path to the relevant payload within the record, e.g. 'data' inside actor.rpg.stats/clunscannon."
681
681
},
682
682
"rkey": {
683
683
"type": "string",
684
684
"maxLength": 50,
685
685
"description": "Record key to read from a player's repo. Defaults to 'self'; use 'any' when a portal should scan the collection."
686
686
},
687
687
"role": {
688
688
"type": "string",
689
-
"description": "How this record is used. Player-benefit roles such as perk, character, cosmetic, bonus, and interoperability describe optional game behavior. Data roles such as stats, activity, leaderboard, save, replay, session, profile, inventory, grant, validation, and label describe records portals/tools may read or display.",
689
+
"description": "How this record is used. Optional gameplay roles such as character, perk, cosmetic, bonus, and interop are shown as Optional Records in player-facing directories. Data roles such as stats, activity, leaderboard, save, replay, session, profile, inventory, grant, validation, and label describe records portals/tools may read, summarize, or verify without presenting them as optional perks.",
690
690
"knownValues": [
691
+
"character",
691
692
"perk",
692
-
"character",
693
693
"cosmetic",
694
694
"bonus",
695
-
"interoperability",
695
+
"interop",
696
696
"stats",
697
697
"activity",
698
698
"leaderboard",
699
699
"save",
700
700
"replay",
701
701
"session",
702
702
"profile",
703
703
"inventory",
704
704
"grant",
705
705
"validation",
706
706
"label",
707
707
"other"
708
708
]
709
709
},
710
710
"label": {
711
711
"type": "string",
712
712
"maxLength": 120,
713
713
"description": "Human label for this use."
714
714
},
715
715
"verify": {
716
716
"ref": "#rule",
717
717
"type": "ref",
718
718
"description": "Optional rule that detects, authenticates, or validates this use. For player-benefit roles, it badges whether the benefit is available. For data roles, it badges whether the referenced record is trusted."
719
719
},
720
720
"acquire": {
721
721
"type": "string",
722
722
"format": "uri",
723
723
"description": "Optional URL where a player can create, obtain, or manage this record."
724
724
},
725
725
"filters": {
726
726
"type": "array",
727
727
"items": {
728
728
"ref": "#filter",
729
729
"type": "ref"
730
730
},
731
731
"maxLength": 8,
732
732
"description": "Optional filters used when rkey is 'any' or authority is set. Conditions must match on one record."
733
733
},
734
734
"purpose": {
735
735
"type": "string",
736
736
"maxLength": 300,
737
737
"description": "Plain-language reason this record matters. This should say whether it unlocks a benefit, imports player data, stores progress, validates a score, or powers portal display."
738
738
},
739
739
"authority": {
740
740
"type": "string",
741
741
"format": "did",
742
742
"description": "When the referenced record lives in a trusted authority repo instead of the player's repo, this DID names that repo."
743
743
}
744
744
},
745
-
"description": "One non-required AT Protocol record relationship for this game. This single shape covers optional gameplay benefits and portal-readable data. Examples: role 'perk' for a Jetpack item that changes play; role 'character' for a sprite the game can import; role 'stats' for a score record portals can display; role 'validation' for an authority record that confirms a stat. Hard gates still belong in requires[]."
745
+
"description": "One non-required AT Protocol record relationship for this game. This single shape covers optional gameplay records and portal-readable data. Use role 'character' when a record identifies or renders the player in-game, role 'perk' when it grants an optional benefit, role 'stats' for progress/score records, role 'activity' for participation records, and role 'profile' for profile/context records. Hard gates still belong in requires[]."
746
746
},
747
747
"catalogRef": {
748
748
"type": "object",
749
749
"required": [
750
750
"uri"
751
751
],
752
752
"properties": {
753
753
"uri": {
754
754
"type": "string",
755
755
"format": "at-uri",
756
756
"description": "AT-URI of the external catalog record (e.g. at://did:web:gamesgamesgamesgames.games/games.gamesgamesgamesgames.game/3mgjih2bzdp2l)."
757
757
},
758
758
"name": {
759
759
"type": "string",
760
760
"maxLength": 100,
761
761
"description": "Display name of the referenced entry, so portals can show it without resolving the record."
762
762
},
763
763
"borrow": {
764
764
"type": "array",
765
765
"items": {
766
766
"type": "string",
767
767
"knownValues": [
768
768
"media",
769
769
"trailers",
770
770
"genres",
771
771
"platforms",
772
772
"releases",
773
773
"ratings",
774
774
"description",
775
775
"summary"
776
776
]
777
777
},
778
778
"maxLength": 8,
779
779
"description": "Advisory hints naming which parts of the referenced record a portal may display alongside this experience (e.g. pull screenshots and genres from Pentaract rather than duplicating them here). Display guidance only, never affects eligibility."
780
780
},
781
781
"source": {
782
782
"type": "string",
783
783
"maxLength": 60,
784
784
"description": "Short label for the catalog this points at (e.g. 'pentaract')."
785
785
}
786
786
},
787
787
"description": "A pointer to a record in another catalog that already describes this title in depth, most usefully a games.gamesgamesgamesgames.game record on The Pentaract, which carries genres, platforms, release dates, age ratings, and a full media gallery. The definition stays self-contained (eligibility never depends on it); the reference simply lets a portal fetch that richer metadata and show it alongside, so we build on existing game databases instead of re-entering everything."
788
788
}
789
789
},
790
790
"$type": "com.atproto.lexicon.schema",
791
791
"lexicon": 1,
792
792
"description": "An AT Protocol game definition: a publisher's self-contained declaration of a playable experience, its presentation, the records a player must hold to play, and records the game can optionally use. Evaluators resolve requirements through AT Protocol repository reads; no game server or central eligibility database is required."
793
793
}