At this level
at.happyproto.admin ยท 19- at.happyproto.admin.addCustomer procedure Make an account a customer: add it to the customers space with read access. Adding an existing member succeeds and changes nothing. Staff only.
- at.happyproto.admin.cancelHostRequest procedure Cancel a host request and remove its server and volume. confirm must be the request's host name. Staff only.
- at.happyproto.admin.createInvites procedure Invite customers: mint one single-use customers-space invite per address, each expiring after expiresInDays, and record which address each went to, so a redeemed invite pairs the address with the account. Redeemed with actor.acceptInvite. Staff only.
- at.happyproto.admin.createSpaces procedure Create HappyProto's admin and customers spaces, member-only, keeping either that already exists, and add each of staff to the admin space with write access, skipping existing members. Each space is looked up at the uri its script variable (HAPPYPROTO_ADMIN_SPACE, HAPPYPROTO_CUSTOMERS_SPACE) names, or, unset, under HAPPYPROTO_DID. A space created here has a DID of its own, and the uri answered is the one to set its variable to. Idempotent once the variables are set: a second call creates nothing
- at.happyproto.admin.defs defs The autoscaler's settings and what it is waiting on.
- at.happyproto.admin.getAutoscale query The autoscaler: on or paused, how many hosts it may add, what it is waiting on, and free capacity against its thresholds. Staff only.
- at.happyproto.admin.getEncryptionKey query Where an instance's encryption key is in its rotation, and whether a rotation can start now. Staff only.
- at.happyproto.admin.getFleet query Every host, and every tenant with its host, plan, owner and latest metered hour, for the staff fleet view. Staff only.
- at.happyproto.admin.getHostRequest query One host request with its timeline, oldest event first. Staff only.
- at.happyproto.admin.listCustomers query The members of the customers space: everyone the customer endpoints admit. Staff only.
- at.happyproto.admin.listHostRequests query The autoscaler's host requests, newest first, without their timelines. Staff only.
- at.happyproto.admin.listHosts query Every host, with what its tenants hold. Staff only.
- at.happyproto.admin.listInstances query Every instance, whoever owns it, with its placement. Staff only.
- at.happyproto.admin.listInvites query Every customer invite, newest first: the address it went to, whether it is pending, expired or redeemed, and by which account. Staff only.
- at.happyproto.admin.listJobs query Background jobs across every user, newest first. Staff only.
- at.happyproto.admin.removeCustomer procedure Stop an account being a customer: remove it from the customers space. Removing a non-member succeeds. Staff only.
- at.happyproto.admin.retryHostRequest procedure Start a failed host request again. The workflow skips what already exists, so a retry never orders a second server. Staff only.
- at.happyproto.admin.rotateEncryptionKey procedure Give an instance a new encryption key. The old key stays beside it while HappyView re-seals what it sealed, and is then retired on its own. Staff only.
- at.happyproto.admin.setAutoscalePaused procedure Pause or resume the autoscaler. Pausing stops new host requests; one under way carries on. Staff only.