Skip to content

Commit b8fa9b4

Browse files
authored
Update lexicons fetched from 33aa0c7 committed 2024-09-11T23:25:05Z (#398)
1 parent 9668e5f commit b8fa9b4

File tree

2 files changed

+53
-0
lines changed

2 files changed

+53
-0
lines changed

lexicons/app.bsky.actor.defs.json

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -419,6 +419,15 @@
419419
"type": "array",
420420
"maxLength": 1000,
421421
"items": { "type": "string", "maxLength": 100 }
422+
},
423+
"nuxs": {
424+
"description": "Storage for NUXs the user has encountered.",
425+
"type": "array",
426+
"maxLength": 100,
427+
"items": {
428+
"type": "ref",
429+
"ref": "app.bsky.actor.defs#nux"
430+
}
422431
}
423432
}
424433
},
@@ -429,6 +438,32 @@
429438
"properties": {
430439
"guide": { "type": "string", "maxLength": 100 }
431440
}
441+
},
442+
"nux": {
443+
"type": "object",
444+
"description": "A new user experiences (NUX) storage object",
445+
"required": ["id", "completed"],
446+
"properties": {
447+
"id": {
448+
"type": "string",
449+
"maxLength": 100
450+
},
451+
"completed": {
452+
"type": "boolean",
453+
"default": false
454+
},
455+
"data": {
456+
"description": "Arbitrary data for the NUX. The structure is defined by the NUX itself. Limited to 300 characters.",
457+
"type": "string",
458+
"maxLength": 3000,
459+
"maxGraphemes": 300
460+
},
461+
"expiresAt": {
462+
"type": "string",
463+
"format": "datetime",
464+
"description": "The date and time at which the NUX will expire and should be considered completed."
465+
}
466+
}
432467
}
433468
}
434469
}

packages/atproto_client/models/app/bsky/actor/defs.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,9 @@ class BskyAppStatePref(base.ModelBase):
326326
"""Definition model for :obj:`app.bsky.actor.defs`. A grab bag of state that's specific to the bsky.app program. Third-party apps shouldn't use this."""
327327

328328
active_progress_guide: t.Optional['models.AppBskyActorDefs.BskyAppProgressGuide'] = None #: Active progress guide.
329+
nuxs: t.Optional[t.List['models.AppBskyActorDefs.Nux']] = Field(
330+
default=None, max_length=100
331+
) #: Storage for NUXs the user has encountered.
329332
queued_nudges: t.Optional[t.List[str]] = Field(
330333
default=None, max_length=1000
331334
) #: An array of tokens which identify nudges (modals, popups, tours, highlight dots) that should be shown to the user.
@@ -343,3 +346,18 @@ class BskyAppProgressGuide(base.ModelBase):
343346
py_type: t.Literal['app.bsky.actor.defs#bskyAppProgressGuide'] = Field(
344347
default='app.bsky.actor.defs#bskyAppProgressGuide', alias='$type', frozen=True
345348
)
349+
350+
351+
class Nux(base.ModelBase):
352+
"""Definition model for :obj:`app.bsky.actor.defs`. A new user experiences (NUX) storage object."""
353+
354+
completed: bool = False #: Completed.
355+
id: str = Field(max_length=100) #: Id.
356+
data: t.Optional[str] = Field(
357+
default=None, max_length=3000
358+
) #: Arbitrary data for the NUX. The structure is defined by the NUX itself. Limited to 300 characters.
359+
expires_at: t.Optional[
360+
str
361+
] = None #: The date and time at which the NUX will expire and should be considered completed.
362+
363+
py_type: t.Literal['app.bsky.actor.defs#nux'] = Field(default='app.bsky.actor.defs#nux', alias='$type', frozen=True)

0 commit comments

Comments
 (0)