Urbit Developers
  • Hoon

    • Overview
    • Cheat Sheet
    • Irregular forms
    • Hoon Errors
    • Hoon Style Guide
    • Basic Types
    • Advanced Types
    • Auras
    • Standard Library

      • 1a: Basic Arithmetic
      • 1b: Tree Addressing
      • 1c: Molds and Mold-Builders
      • 2a: Unit Logic
      • 2b: List Logic
      • 2c: Bit Arithmetic
      • 2d: Bit Logic
      • 2e: Insecure Hashing
      • 2f: Noun Ordering
      • 2g: Unsigned Powers
      • 2h: Set Logic
      • 2i: Map Logic
      • 2j: Jar and Jug Logic
      • 2k: Queue Logic
      • 2l: Container from Container
      • 2m: Container from Noun
      • 2n: Functional Hacks
      • 2o: Normalizing Containers
      • 2p: Serialization
      • 2q: Molds and Mold-Builders
      • 3a: Modular and Signed Ints
      • 3b: Floating Point
      • 3c: Urbit Time
      • 3d: SHA Hash Family
      • 3e: AES encryption (Removed)
      • 3f: Scrambling
      • 3g: Molds and Mold-Builders
      • 4a: Exotic Bases
      • 4b: Text Processing
      • 4c: Tank Printer
      • 4d: Parsing (Tracing)
      • 4e: Parsing (Combinators)
      • 4f: Parsing (Rule-Builders)
      • 4g: Parsing (Outside Caller)
      • 4h: Parsing (ASCII Glyphs)
      • 4i: Parsing (Useful Idioms)
      • 4j: Parsing (Bases and Base Digits)
      • 4k: Atom Printing
      • 4l: Atom Parsing
      • 4m: Formatting Functions
      • 4n: Virtualization
      • 4o: Molds
      • 5a: Compiler Utilities
      • 5b: Macro Expansion
      • 5c: Compiler Backend & Prettyprinter
      • 5d: Parser
      • 5e: Molds and mold builders
      • 5f: Profiling support
      • Runes

        • Atoms and strings
        • Nock . ('dot')
        • Wild ! ('zap')
        • Change Subject = ('tis')
        • Conditionals ? ('wut')
        • Cores | ('bar')
        • Arms + ('lus')
        • Cells : ('col')
        • Calls % ('cen')
        • Casts ^ ('ket')
        • Structures $ ('buc')
        • Make ; ('mic')
        • Hints ~ ('sig')
        • Imports / ('fas')
        • Terminators -- and ==
        • Limbs and wings

          • Limbs
          • Wings
          • Zuse

            • Table of Contents
            • 2d(1-5): To JSON, Wains
            • 2d(6): From JSON
            • 2d(7): From JSON (unit)
            • 2e(2-3): Print & Parse JSON
          • Arvo

            • Overview
            • Ames

              • Overview
              • Cryptography
              • API Reference
              • Scry Reference
              • Data Types
              • Behn

                • Overview
                • API Reference
                • Scry Reference
                • Examples
                • Clay

                  • Overview
                  • Architecture
                  • Using Clay
                  • Data Types
                  • Scry Reference
                  • API Reference
                  • Examples
                  • Marks

                    • Overview
                    • Writing Marks
                    • Using Marks
                    • Examples
                  • Dill

                    • Overview
                    • API Reference
                    • Scry Reference
                    • Data Types
                    • Eyre

                      • Overview
                      • External API Reference
                      • Internal API Reference
                      • Scry Reference
                      • Data Types
                      • Guide
                      • Gall

                        • Overview
                        • API Reference
                        • Data Types
                        • Threads Reference
                        • Iris

                          • Overview
                          • API Reference
                          • Data Types
                          • Example
                          • Jael

                            • Overview
                            • API Reference
                            • Scry Reference
                            • Data Types
                            • Examples
                            • Threads

                              • Overview
                              • HTTP API
                              • Reference
                              • Gall

                                • Start Thread
                                • Take Result
                                • Take Facts
                                • Stop Thread
                                • Poke Thread
                                • Examples

                                  • Fetch JSON
                                  • Child Thread
                                  • Main-loop
                                  • Poke Agent
                                  • Scry
                                  • Take Fact
                                • Concepts

                                  • Scries
                                  • Subscriptions
                                  • Tutorials

                                    • Move Trace
                                    • Reference

                                      • Cryptography
                                      • Filesystem Hierarchy
                                    • Nock

                                      • Nock Definition
                                      • Explanation
                                      • Example
                                      • Implementations
                                      • Vere

                                        • C Runtime System
                                        • Land of Nouns
                                        • API overview by prefix
                                        • C in Urbit
                                        • Writing Jets
                                        • Cryptography
                                        • Azimuth

                                          • Overview
                                          • Urbit HD Wallet
                                          • Azimuth Data Flow
                                          • Azimuth.eth
                                          • Ecliptic.eth
                                          • Advanced Azimuth Tools
                                          • Life and Rift
                                          • Layer 2

                                            • Layer 2 Overview
                                            • Layer 2 Actions
                                            • Transaction Format
                                            • Rollers
                                            • Roller HTTP RPC-API
                                            • Custom Roller Tutorial
                                          • Glossary

                                            • Agent
                                            • Ames
                                            • API
                                            • Aqua
                                            • Arm
                                            • Arvo
                                            • Atom
                                            • Aura
                                            • Aural ASCII
                                            • Azimuth
                                            • Battery
                                            • Behn
                                            • Bowl
                                            • Bridge
                                            • Bunt
                                            • Card
                                            • Case
                                            • Cask
                                            • Cell
                                            • Censures
                                            • Claims
                                            • Clay
                                            • Cold atom
                                            • Comet
                                            • Commit
                                            • Cons
                                            • Context
                                            • Cord
                                            • Core
                                            • Delegated Sending
                                            • Desk
                                            • Dill
                                            • Document Proposal
                                            • Dojo
                                            • Door
                                            • Double-boot
                                            • Dry Gate
                                            • Duct
                                            • Ecliptic
                                            • Entropy
                                            • Event Log
                                            • Eyre
                                            • Face
                                            • Fact
                                            • Foo Bar Baz
                                            • Galaxy
                                            • Gall
                                            • Garden
                                            • Gate
                                            • Generator
                                            • Gift
                                            • Glob
                                            • HD Wallet
                                            • Helm
                                            • Hood
                                            • Hoon
                                            • Invite Tree
                                            • Iris
                                            • Jael
                                            • Jet
                                            • Kelvin versioning
                                            • Kelvin versioning
                                            • Keyfile
                                            • Keywords
                                            • Khan
                                            • Kiln
                                            • Landscape
                                            • Leg
                                            • List
                                            • Loobean
                                            • Lull
                                            • Mark
                                            • Metals
                                            • Mold
                                            • Monad
                                            • Moon
                                            • Move
                                            • Nock
                                            • Noun
                                            • ~
                                            • OTA Updates
                                            • Path Prefix
                                            • Path
                                            • @p
                                            • Payload
                                            • Peek
                                            • pH
                                            • Pier
                                            • Pill
                                            • Planet
                                            • Poke
                                            • Proxies
                                            • Replay
                                            • Factory Reset
                                            • Roller
                                            • Naive rollups
                                            • Rune
                                            • Runtime
                                            • Sail
                                            • Sample
                                            • Scry
                                            • Senate
                                            • Ship
                                            • Slam
                                            • Spider
                                            • Star
                                            • String
                                            • Subject Oriented Programming
                                            • Subject
                                            • Subscription
                                            • Tape
                                            • Thread
                                            • Trap
                                            • Udon
                                            • Upgrade Proposal
                                            • Userspace
                                            • Vane
                                            • Vere
                                            • Voting
                                            • Warm atom
                                            • Wet Gate
                                            • Wing
                                            • Wire
                                            • Wrapper
                                            • ~zod
                                            • Zuse
                                            • Additional

                                              • Cryptography
                                              • Software Distribution

                                                • Overview
                                                • Docket File
                                                • Glob
                                                • Beacon

                                                  • Overview
                                                  • Subscriptions
                                                  • Scry Paths
                                                  • Types
                                                Urbit Developers
                                                • Hoon

                                                  • Overview
                                                  • Cheat Sheet
                                                  • Irregular forms
                                                  • Hoon Errors
                                                  • Hoon Style Guide
                                                  • Basic Types
                                                  • Advanced Types
                                                  • Auras
                                                  • Standard Library

                                                    • 1a: Basic Arithmetic
                                                    • 1b: Tree Addressing
                                                    • 1c: Molds and Mold-Builders
                                                    • 2a: Unit Logic
                                                    • 2b: List Logic
                                                    • 2c: Bit Arithmetic
                                                    • 2d: Bit Logic
                                                    • 2e: Insecure Hashing
                                                    • 2f: Noun Ordering
                                                    • 2g: Unsigned Powers
                                                    • 2h: Set Logic
                                                    • 2i: Map Logic
                                                    • 2j: Jar and Jug Logic
                                                    • 2k: Queue Logic
                                                    • 2l: Container from Container
                                                    • 2m: Container from Noun
                                                    • 2n: Functional Hacks
                                                    • 2o: Normalizing Containers
                                                    • 2p: Serialization
                                                    • 2q: Molds and Mold-Builders
                                                    • 3a: Modular and Signed Ints
                                                    • 3b: Floating Point
                                                    • 3c: Urbit Time
                                                    • 3d: SHA Hash Family
                                                    • 3e: AES encryption (Removed)
                                                    • 3f: Scrambling
                                                    • 3g: Molds and Mold-Builders
                                                    • 4a: Exotic Bases
                                                    • 4b: Text Processing
                                                    • 4c: Tank Printer
                                                    • 4d: Parsing (Tracing)
                                                    • 4e: Parsing (Combinators)
                                                    • 4f: Parsing (Rule-Builders)
                                                    • 4g: Parsing (Outside Caller)
                                                    • 4h: Parsing (ASCII Glyphs)
                                                    • 4i: Parsing (Useful Idioms)
                                                    • 4j: Parsing (Bases and Base Digits)
                                                    • 4k: Atom Printing
                                                    • 4l: Atom Parsing
                                                    • 4m: Formatting Functions
                                                    • 4n: Virtualization
                                                    • 4o: Molds
                                                    • 5a: Compiler Utilities
                                                    • 5b: Macro Expansion
                                                    • 5c: Compiler Backend & Prettyprinter
                                                    • 5d: Parser
                                                    • 5e: Molds and mold builders
                                                    • 5f: Profiling support
                                                    • Runes

                                                      • Atoms and strings
                                                      • Nock . ('dot')
                                                      • Wild ! ('zap')
                                                      • Change Subject = ('tis')
                                                      • Conditionals ? ('wut')
                                                      • Cores | ('bar')
                                                      • Arms + ('lus')
                                                      • Cells : ('col')
                                                      • Calls % ('cen')
                                                      • Casts ^ ('ket')
                                                      • Structures $ ('buc')
                                                      • Make ; ('mic')
                                                      • Hints ~ ('sig')
                                                      • Imports / ('fas')
                                                      • Terminators -- and ==
                                                      • Limbs and wings

                                                        • Limbs
                                                        • Wings
                                                        • Zuse

                                                          • Table of Contents
                                                          • 2d(1-5): To JSON, Wains
                                                          • 2d(6): From JSON
                                                          • 2d(7): From JSON (unit)
                                                          • 2e(2-3): Print & Parse JSON
                                                        • Arvo

                                                          • Overview
                                                          • Ames

                                                            • Overview
                                                            • Cryptography
                                                            • API Reference
                                                            • Scry Reference
                                                            • Data Types
                                                            • Behn

                                                              • Overview
                                                              • API Reference
                                                              • Scry Reference
                                                              • Examples
                                                              • Clay

                                                                • Overview
                                                                • Architecture
                                                                • Using Clay
                                                                • Data Types
                                                                • Scry Reference
                                                                • API Reference
                                                                • Examples
                                                                • Marks

                                                                  • Overview
                                                                  • Writing Marks
                                                                  • Using Marks
                                                                  • Examples
                                                                • Dill

                                                                  • Overview
                                                                  • API Reference
                                                                  • Scry Reference
                                                                  • Data Types
                                                                  • Eyre

                                                                    • Overview
                                                                    • External API Reference
                                                                    • Internal API Reference
                                                                    • Scry Reference
                                                                    • Data Types
                                                                    • Guide
                                                                    • Gall

                                                                      • Overview
                                                                      • API Reference
                                                                      • Data Types
                                                                      • Threads Reference
                                                                      • Iris

                                                                        • Overview
                                                                        • API Reference
                                                                        • Data Types
                                                                        • Example
                                                                        • Jael

                                                                          • Overview
                                                                          • API Reference
                                                                          • Scry Reference
                                                                          • Data Types
                                                                          • Examples
                                                                          • Threads

                                                                            • Overview
                                                                            • HTTP API
                                                                            • Reference
                                                                            • Gall

                                                                              • Start Thread
                                                                              • Take Result
                                                                              • Take Facts
                                                                              • Stop Thread
                                                                              • Poke Thread
                                                                              • Examples

                                                                                • Fetch JSON
                                                                                • Child Thread
                                                                                • Main-loop
                                                                                • Poke Agent
                                                                                • Scry
                                                                                • Take Fact
                                                                              • Concepts

                                                                                • Scries
                                                                                • Subscriptions
                                                                                • Tutorials

                                                                                  • Move Trace
                                                                                  • Reference

                                                                                    • Cryptography
                                                                                    • Filesystem Hierarchy
                                                                                  • Nock

                                                                                    • Nock Definition
                                                                                    • Explanation
                                                                                    • Example
                                                                                    • Implementations
                                                                                    • Vere

                                                                                      • C Runtime System
                                                                                      • Land of Nouns
                                                                                      • API overview by prefix
                                                                                      • C in Urbit
                                                                                      • Writing Jets
                                                                                      • Cryptography
                                                                                      • Azimuth

                                                                                        • Overview
                                                                                        • Urbit HD Wallet
                                                                                        • Azimuth Data Flow
                                                                                        • Azimuth.eth
                                                                                        • Ecliptic.eth
                                                                                        • Advanced Azimuth Tools
                                                                                        • Life and Rift
                                                                                        • Layer 2

                                                                                          • Layer 2 Overview
                                                                                          • Layer 2 Actions
                                                                                          • Transaction Format
                                                                                          • Rollers
                                                                                          • Roller HTTP RPC-API
                                                                                          • Custom Roller Tutorial
                                                                                        • Glossary

                                                                                          • Agent
                                                                                          • Ames
                                                                                          • API
                                                                                          • Aqua
                                                                                          • Arm
                                                                                          • Arvo
                                                                                          • Atom
                                                                                          • Aura
                                                                                          • Aural ASCII
                                                                                          • Azimuth
                                                                                          • Battery
                                                                                          • Behn
                                                                                          • Bowl
                                                                                          • Bridge
                                                                                          • Bunt
                                                                                          • Card
                                                                                          • Case
                                                                                          • Cask
                                                                                          • Cell
                                                                                          • Censures
                                                                                          • Claims
                                                                                          • Clay
                                                                                          • Cold atom
                                                                                          • Comet
                                                                                          • Commit
                                                                                          • Cons
                                                                                          • Context
                                                                                          • Cord
                                                                                          • Core
                                                                                          • Delegated Sending
                                                                                          • Desk
                                                                                          • Dill
                                                                                          • Document Proposal
                                                                                          • Dojo
                                                                                          • Door
                                                                                          • Double-boot
                                                                                          • Dry Gate
                                                                                          • Duct
                                                                                          • Ecliptic
                                                                                          • Entropy
                                                                                          • Event Log
                                                                                          • Eyre
                                                                                          • Face
                                                                                          • Fact
                                                                                          • Foo Bar Baz
                                                                                          • Galaxy
                                                                                          • Gall
                                                                                          • Garden
                                                                                          • Gate
                                                                                          • Generator
                                                                                          • Gift
                                                                                          • Glob
                                                                                          • HD Wallet
                                                                                          • Helm
                                                                                          • Hood
                                                                                          • Hoon
                                                                                          • Invite Tree
                                                                                          • Iris
                                                                                          • Jael
                                                                                          • Jet
                                                                                          • Kelvin versioning
                                                                                          • Kelvin versioning
                                                                                          • Keyfile
                                                                                          • Keywords
                                                                                          • Khan
                                                                                          • Kiln
                                                                                          • Landscape
                                                                                          • Leg
                                                                                          • List
                                                                                          • Loobean
                                                                                          • Lull
                                                                                          • Mark
                                                                                          • Metals
                                                                                          • Mold
                                                                                          • Monad
                                                                                          • Moon
                                                                                          • Move
                                                                                          • Nock
                                                                                          • Noun
                                                                                          • ~
                                                                                          • OTA Updates
                                                                                          • Path Prefix
                                                                                          • Path
                                                                                          • @p
                                                                                          • Payload
                                                                                          • Peek
                                                                                          • pH
                                                                                          • Pier
                                                                                          • Pill
                                                                                          • Planet
                                                                                          • Poke
                                                                                          • Proxies
                                                                                          • Replay
                                                                                          • Factory Reset
                                                                                          • Roller
                                                                                          • Naive rollups
                                                                                          • Rune
                                                                                          • Runtime
                                                                                          • Sail
                                                                                          • Sample
                                                                                          • Scry
                                                                                          • Senate
                                                                                          • Ship
                                                                                          • Slam
                                                                                          • Spider
                                                                                          • Star
                                                                                          • String
                                                                                          • Subject Oriented Programming
                                                                                          • Subject
                                                                                          • Subscription
                                                                                          • Tape
                                                                                          • Thread
                                                                                          • Trap
                                                                                          • Udon
                                                                                          • Upgrade Proposal
                                                                                          • Userspace
                                                                                          • Vane
                                                                                          • Vere
                                                                                          • Voting
                                                                                          • Warm atom
                                                                                          • Wet Gate
                                                                                          • Wing
                                                                                          • Wire
                                                                                          • Wrapper
                                                                                          • ~zod
                                                                                          • Zuse
                                                                                          • Additional

                                                                                            • Cryptography
                                                                                            • Software Distribution

                                                                                              • Overview
                                                                                              • Docket File
                                                                                              • Glob
                                                                                              • Beacon

                                                                                                • Overview
                                                                                                • Subscriptions
                                                                                                • Scry Paths
                                                                                                • Types
                                                                                              Reference/Additional/Beacon

                                                                                              Types

                                                                                              logs

                                                                                              A list of requests, their stamps (IDs), and their current results. These are given in the various initialization updates.

                                                                                              Example

                                                                                              [
                                                                                              {
                                                                                              "stamp": 1666795723664000000,
                                                                                              "request": {
                                                                                              "ship": "zod",
                                                                                              "turf": "localhost",
                                                                                              "user": "foobar123",
                                                                                              "code": 123456,
                                                                                              "msg": "blah blah blah",
                                                                                              "expire": 1666882123664,
                                                                                              },
                                                                                              "result": "yes"
                                                                                              },
                                                                                              {
                                                                                              "stamp": 1666799618474000000,
                                                                                              "request": {
                                                                                              "ship": "zod",
                                                                                              "turf": "localhost",
                                                                                              "user": "xyz",
                                                                                              "code": 123456,
                                                                                              "msg": null,
                                                                                              "expire": 1666886018474,
                                                                                              },
                                                                                              "result": "yes"
                                                                                              },
                                                                                              {
                                                                                              "stamp": 1666799624841000000,
                                                                                              "request": {
                                                                                              "ship": "zod",
                                                                                              "turf": "localhost",
                                                                                              "user": null,
                                                                                              "code": null,
                                                                                              "msg": "blah blah blah",
                                                                                              "expire": 1666886024841,
                                                                                              },
                                                                                              "result": "no"
                                                                                              }
                                                                                              ]

                                                                                              manifest

                                                                                              An array of proofs. This is published at <domain>/.well-known/appspecific/org.urbit.beacon.json, and then Sentinel uses it to validate requests.

                                                                                              Example

                                                                                              [
                                                                                              {
                                                                                              "turf": "example.com",
                                                                                              "life": 1,
                                                                                              "ship": "zod",
                                                                                              "sign": "jtvkTK0JMizoY12Kw51R11OSKzmtCt2WHB3ev32R+k32O+Y6rJ7jHtrRizm0/0aKwJIO8X5PbDHwdti296XLCQ=="
                                                                                              }
                                                                                              ]

                                                                                              proof

                                                                                              An attestation that a ship is an agent of a site. An array of such proofs are published at <domain>/.well-known/appspecific/org.urbit.beacon.json in a manifest, and then Sentinel uses them to validate requests.

                                                                                              Example

                                                                                              {
                                                                                              "turf": "example.com",
                                                                                              "life": 1,
                                                                                              "ship": "zod",
                                                                                              "sign": "jtvkTK0JMizoY12Kw51R11OSKzmtCt2WHB3ev32R+k32O+Y6rJ7jHtrRizm0/0aKwJIO8X5PbDHwdti296XLCQ=="
                                                                                              }

                                                                                              request

                                                                                              An authorization request. The user, code and msg fields are all optional and may be null if not used. The expire field is the date-time that the request should expire, as milliseconds since the Unix Epoch.

                                                                                              Examples

                                                                                              {
                                                                                              "ship": "zod",
                                                                                              "turf": "example.com",
                                                                                              "user": "foo123",
                                                                                              "code": 1234,
                                                                                              "msg": "blah blah blah",
                                                                                              "expire": 1666955338448
                                                                                              }
                                                                                              {
                                                                                              "ship": "zod",
                                                                                              "turf": "example.com",
                                                                                              "user": null,
                                                                                              "code": null,
                                                                                              "msg": null,
                                                                                              "expire": 1666955338448
                                                                                              }

                                                                                              result

                                                                                              The status of an authorization request. It may be one of:

                                                                                              • "yes" - The request was approved.
                                                                                              • "no" - The request was denied.
                                                                                              • "expire" - The request expired without the user approving or denying it.
                                                                                              • "got" - The user's ship received the request, but they have not yet approved or denied it.
                                                                                              • "sent" - Beacon has sent the request; the user's ship has not yet received it.
                                                                                              • "abort" - You have given beacon a cancel action, so the request has been cancelled.
                                                                                              • "error" - The request failed. This will occur if the user's ship rejected the request (nack'd the poke) or Beacon was unable to subscribe to their ship for the result. This should not normally occur.

                                                                                              The typical flow is "sent" -> "got" -> "yes" or "no". At any point in that flow, it may expire in which case you'll get "expire" and nothing further. The transitional states are therefore "sent" and "got", with the remaining being terminal.


                                                                                              ship

                                                                                              An Urbit ship. The ship is a string and does not include the leading ~.

                                                                                              Examples

                                                                                              "zod"
                                                                                              "sampel-palnet"
                                                                                              "livbes-minwyn-sicmev-halner--soplyt-nimfyl-widnyd-difwyx"

                                                                                              sign

                                                                                              Ed25519 signature of the domain name with the ship's keys, encoded in a string as Base64.

                                                                                              This is used in a proof to attest that a particular ship is an agent of a particular site.

                                                                                              Example

                                                                                              "jtvkTK0JMizoY12Kw51R11OSKzmtCt2WHB3ev32R+k32O+Y6rJ7jHtrRizm0/0aKwJIO8X5PbDHwdti296XLCQ=="

                                                                                              stamp

                                                                                              A request ID. This is a date-time as the number of nanoseconds since the Unix Epoch. Each request must have a unique stamp, and requests are ordered by this stamp. You would typically use the date-time when the request occurred.

                                                                                              Nanoseconds are used rather than milliseconds to make collisions less likely if two requests occur at roughly the same time. If you don't need or don't have this much precision you can just multiply the Unix millisecond time by a million or just fudge the less significant digits. The important thing is that it's unique for each request.

                                                                                              Example

                                                                                              1666953051302000000

                                                                                              turf

                                                                                              A domain. This must be just the domain like localhost, example.com, foo.bar.baz, etc, without any protocol, forward slashes, port, paths, etc.


                                                                                              Actions

                                                                                              Ask Beacon to either initiate a new authorization request, or cancel an existing one. These are given to Beacon as pokes.

                                                                                              new

                                                                                              Initiate a new authorization request. The new action contains a request structure and a stamp (request ID).

                                                                                              Example

                                                                                              {
                                                                                              "new": {
                                                                                              "stamp": 1666795723664000000,
                                                                                              "request": {
                                                                                              "ship": "zod",
                                                                                              "turf": "localhost",
                                                                                              "user": "foobar123",
                                                                                              "code": 123456,
                                                                                              "msg": "blah blah blah",
                                                                                              "expire": 1666882123664
                                                                                              }
                                                                                              }
                                                                                              }

                                                                                              cancel

                                                                                              Cancel an existing request. The stamp in the ID of the request you want to cancel.

                                                                                              Example

                                                                                              {"cancel": {"stamp": 1666795723664000000}}

                                                                                              Updates

                                                                                              The types of event/update that beacon can send back to you.

                                                                                              entry

                                                                                              This will be sent back to you whenever you make a new request with a new action. It contains the stamp (request ID), request and initial result. The initial result will typically be sent, unless you specified an expiration time before the current time, in which case it'll be expire.

                                                                                              Example

                                                                                              {
                                                                                              "entry": {
                                                                                              "stamp": 1667212978424000000,
                                                                                              "request": {
                                                                                              "expire": 1667213278424,
                                                                                              "code": 123456,
                                                                                              "turf": "localhost",
                                                                                              "ship": "zod",
                                                                                              "msg": "blah blah blah",
                                                                                              "user": "@user123"
                                                                                              },
                                                                                              "result": "sent"
                                                                                              }
                                                                                              }

                                                                                              status

                                                                                              A status update will be sent back whenever the status of a request changes, for example if the user receives the request, the user approves or denies the request, the request expires, etc. It contains a stamp (request ID) and a result.

                                                                                              Examples

                                                                                              {
                                                                                              "status": {
                                                                                              "stamp": 1667213952904000000,
                                                                                              "result": "yes"
                                                                                              }
                                                                                              }
                                                                                              {
                                                                                              "status": {
                                                                                              "stamp": 1667213954564000000,
                                                                                              "result": "got"
                                                                                              }
                                                                                              }

                                                                                              initAll

                                                                                              This is sent as the inital update when you first subscribe to one of the /init/all/... paths. It's also returned by some of the scry paths. It contains existing entries, possibly limited to entries before or after a specific stamp.

                                                                                              It contains a logs field with the entries themselves, and also before and after fields which will either contain stamps or else be null if no such limits were specified.

                                                                                              Example

                                                                                              {
                                                                                              "initAll": {
                                                                                              "since": null,
                                                                                              "before": null,
                                                                                              "logs": [
                                                                                              {
                                                                                              "stamp": 1666795723664000000,
                                                                                              "request": {
                                                                                              "expire": 1666882123664,
                                                                                              "code": 123456,
                                                                                              "turf": "localhost",
                                                                                              "ship": "zod",
                                                                                              "msg": "blah blah",
                                                                                              "user": "foobar123"
                                                                                              },
                                                                                              "result": "yes"
                                                                                              },
                                                                                              {
                                                                                              "stamp": 1666799618474000000,
                                                                                              "request": {
                                                                                              "expire": 1666886018474,
                                                                                              "code": 123456,
                                                                                              "turf": "localhost",
                                                                                              "ship": "zod",
                                                                                              "msg": "foo bar baz",
                                                                                              "user": null
                                                                                              },
                                                                                              "result": "no"
                                                                                              },
                                                                                              ]
                                                                                              }
                                                                                              }

                                                                                              initTurf

                                                                                              This is sent as the inital update when you first subscribe to one of the /init/turf/... paths. It's also returned by some of the scry paths. It contains existing entries for a specific turf (domain), possibly limited to entries before or after a specific stamp.

                                                                                              It contains a turf field showing which domain it's for, a logs field with the entries themselves, and also before and after fields which will either contain stamps or else be null if no such limits were specified.

                                                                                              Example

                                                                                              {
                                                                                              "initTurf": {
                                                                                              "turf": "localhost",
                                                                                              "since": null,
                                                                                              "before": null,
                                                                                              "logs": [
                                                                                              {
                                                                                              "stamp": 1666795723664000000,
                                                                                              "request": {
                                                                                              "expire": 1666882123664,
                                                                                              "code": 123456,
                                                                                              "turf": "localhost",
                                                                                              "ship": "zod",
                                                                                              "msg": "blah blah",
                                                                                              "user": "foobar123"
                                                                                              },
                                                                                              "result": "yes"
                                                                                              },
                                                                                              {
                                                                                              "stamp": 1666799618474000000,
                                                                                              "request": {
                                                                                              "expire": 1666886018474,
                                                                                              "code": 123456,
                                                                                              "turf": "localhost",
                                                                                              "ship": "zod",
                                                                                              "msg": "foo bar baz",
                                                                                              "user": null
                                                                                              },
                                                                                              "result": "no"
                                                                                              },
                                                                                              ]
                                                                                              }
                                                                                              }

                                                                                              initShip

                                                                                              This is sent as the inital update when you first subscribe to one of the /init/ship/... paths. It's also returned by some of the scry paths. It contains existing entries for a specific ship, possibly limited to entries before or after a specific stamp.

                                                                                              It contains a ship field showing which ship it's for, a logs field with the entries themselves, and also before and after fields which will either contain stamps or else be null if no such limits were specified.

                                                                                              Example

                                                                                              {
                                                                                              "initShip": {
                                                                                              "ship": "zod",
                                                                                              "since": null,
                                                                                              "before": null,
                                                                                              "logs": [
                                                                                              {
                                                                                              "stamp": 1666795723664000000,
                                                                                              "request": {
                                                                                              "expire": 1666882123664,
                                                                                              "code": 123456,
                                                                                              "turf": "localhost",
                                                                                              "ship": "zod",
                                                                                              "msg": "blah blah",
                                                                                              "user": "foobar123"
                                                                                              },
                                                                                              "result": "yes"
                                                                                              },
                                                                                              {
                                                                                              "stamp": 1666799618474000000,
                                                                                              "request": {
                                                                                              "expire": 1666886018474,
                                                                                              "code": 123456,
                                                                                              "turf": "localhost",
                                                                                              "ship": "zod",
                                                                                              "msg": "foo bar baz",
                                                                                              "user": null
                                                                                              },
                                                                                              "result": "no"
                                                                                              },
                                                                                              ]
                                                                                              }
                                                                                              }

                                                                                              <-

                                                                                              Scry Paths

                                                                                              Edit this page on GitHub

                                                                                              Last modified October 31, 2022