party.whey.writeproxy.defs
Shared shapes for the write delegation proxy control plane. The NSID authority is a placeholder.
Details · defs
| Kind | defs |
|---|---|
| Authority | writeproxy.whey.party |
| Commit rev | 3n3mi6k7lhs2w |
| Indexed |
Showing version bafyreign3iqagao5uiengf5i7ivhvzd632ktw375xxayx2y3sp36k4ucv4. Show the latest
Checks
Validunlimited-stringdefs.auditEntry.properties.roleNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.auditEntry.properties.viaNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.blocklistEntry.properties.kindNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.callerDelegation.properties.actions.itemsNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.callerRegistration.properties.modeNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.callerRequest.properties.statusNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.credentialHealth.properties.modeNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.credentialHealth.properties.refreshStateNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.credentialStatus.properties.modeNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.credentialStatus.properties.refreshStateNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.delegation.properties.actions.itemsNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.delegation.properties.statusNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.delegatorOnboarding.properties.modeNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.limitsView.properties.scopeNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.oauthClientMetadata.properties.modeNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.registration.properties.roleNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.registration.properties.statusNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.writeAudit.properties.actionNo maxLength, maxGraphemes or format limits this string.
{
"$type": "com.atproto.lexicon.schema",
"defs": {
"auditEntry": {
"properties": {
"actor": {
"format": "did",
"type": "string"
},
"caller": {
"format": "did",
"type": "string"
},
"delegation": {
"maxLength": 128,
"type": "string"
},
"error": {
"maxLength": 128,
"type": "string"
},
"event": {
"maxLength": 64,
"type": "string"
},
"id": {
"minimum": 0,
"type": "integer"
},
"reason": {
"maxLength": 256,
"type": "string"
},
"role": {
"enum": [
"delegator",
"caller",
"operator",
"system",
"legacy"
],
"type": "string"
},
"space": {
"format": "space-ref",
"type": "string"
},
"status": {
"maximum": 599,
"minimum": 100,
"type": "integer"
},
"ts": {
"format": "datetime",
"type": "string"
},
"via": {
"enum": [
"xrpc",
"rest"
],
"type": "string"
}
},
"required": [
"id",
"ts",
"actor",
"role",
"event",
"status"
],
"type": "object"
},
"blobPolicy": {
"description": "The delegation's blob upload policy.",
"properties": {
"accept": {
"description": "Allowed MIME types or globs. Omit to use the profile/service default.",
"items": {
"maxLength": 255,
"type": "string"
},
"maxLength": 20,
"type": "array"
},
"allowed": {
"type": "boolean"
},
"maxBytes": {
"description": "Maximum bytes per blob for this delegation.",
"minimum": 1,
"type": "integer"
}
},
"required": [
"allowed"
],
"type": "object"
},
"blocklistEntry": {
"properties": {
"createdAt": {
"format": "datetime",
"type": "string"
},
"createdBy": {
"format": "did",
"type": "string"
},
"expiresAt": {
"format": "datetime",
"type": "string"
},
"kind": {
"enum": [
"did",
"pds",
"ip",
"cidr",
"asn",
"domain",
"nsid"
],
"type": "string"
},
"reason": {
"maxLength": 256,
"type": "string"
},
"value": {
"maxLength": 512,
"type": "string"
}
},
"required": [
"kind",
"value",
"createdAt"
],
"type": "object"
},
"callerDelegation": {
"description": "A delegation as seen by an authorized caller, with effective limits.",
"properties": {
"actions": {
"items": {
"enum": [
"create",
"update",
"delete"
],
"type": "string"
},
"minLength": 1,
"type": "array"
},
"blob": {
"ref": "#blobPolicy",
"type": "ref"
},
"collections": {
"items": {
"format": "nsid",
"type": "string"
},
"minLength": 1,
"type": "array"
},
"delegation": {
"maxLength": 128,
"type": "string"
},
"limits": {
"ref": "#limits",
"type": "ref"
},
"remaining": {
"ref": "#remaining",
"type": "ref"
},
"repoDID": {
"format": "did",
"type": "string"
},
"resetAt": {
"format": "datetime",
"type": "string"
},
"space": {
"format": "space-ref",
"type": "string"
},
"usage": {
"ref": "#usage",
"type": "ref"
}
},
"required": [
"delegation",
"space",
"repoDID",
"collections",
"actions"
],
"type": "object"
},
"callerRegistration": {
"properties": {
"allowlistCount": {
"minimum": 0,
"type": "integer"
},
"mode": {
"enum": [
"none",
"open",
"approval",
"allowlist",
"closed"
],
"type": "string"
}
},
"required": [
"mode"
],
"type": "object"
},
"callerRequest": {
"properties": {
"caller": {
"format": "did",
"type": "string"
},
"createdAt": {
"format": "datetime",
"type": "string"
},
"delegation": {
"maxLength": 128,
"type": "string"
},
"id": {
"maxLength": 128,
"type": "string"
},
"message": {
"maxLength": 1000,
"type": "string"
},
"resolvedAt": {
"format": "datetime",
"type": "string"
},
"resolvedBy": {
"format": "did",
"type": "string"
},
"status": {
"enum": [
"pending",
"approved",
"rejected"
],
"type": "string"
}
},
"required": [
"id",
"delegation",
"caller",
"status",
"createdAt"
],
"type": "object"
},
"counts": {
"properties": {
"activeDelegations": {
"minimum": 0,
"type": "integer"
},
"blocked": {
"minimum": 0,
"type": "integer"
},
"callers": {
"minimum": 0,
"type": "integer"
},
"delegations": {
"minimum": 0,
"type": "integer"
},
"pendingRequests": {
"minimum": 0,
"type": "integer"
},
"registrations": {
"minimum": 0,
"type": "integer"
}
},
"type": "object"
},
"credentialHealth": {
"properties": {
"delegation": {
"maxLength": 128,
"type": "string"
},
"expiresAt": {
"format": "datetime",
"type": "string"
},
"lastError": {
"maxLength": 256,
"type": "string"
},
"lastRefreshAt": {
"format": "datetime",
"type": "string"
},
"mode": {
"enum": [
"oauth"
],
"type": "string"
},
"pdsUrl": {
"format": "uri",
"type": "string"
},
"refreshState": {
"enum": [
"pending",
"ok",
"refreshing",
"failed"
],
"type": "string"
},
"repoDID": {
"format": "did",
"type": "string"
},
"space": {
"format": "space-ref",
"type": "string"
}
},
"required": [
"delegation",
"repoDID",
"refreshState"
],
"type": "object"
},
"credentialStatus": {
"description": "Credential health for a delegation. Never contains tokens or DPoP keys.",
"properties": {
"expiresAt": {
"format": "datetime",
"type": "string"
},
"lastError": {
"maxLength": 256,
"type": "string"
},
"lastRefreshAt": {
"format": "datetime",
"type": "string"
},
"mode": {
"enum": [
"oauth"
],
"type": "string"
},
"pdsUrl": {
"format": "uri",
"type": "string"
},
"refreshState": {
"enum": [
"pending",
"ok",
"refreshing",
"failed"
],
"type": "string"
}
},
"required": [
"mode",
"refreshState"
],
"type": "object"
},
"delegation": {
"description": "One write delegation. It binds exactly one (space, repo) pair and has an immutable scope.",
"properties": {
"actions": {
"items": {
"enum": [
"create",
"update",
"delete"
],
"type": "string"
},
"maxLength": 3,
"minLength": 1,
"type": "array"
},
"activatedAt": {
"format": "datetime",
"type": "string"
},
"blob": {
"ref": "#blobPolicy",
"type": "ref"
},
"callerCount": {
"minimum": 0,
"type": "integer"
},
"callerRevision": {
"description": "Compare-and-swap token for the caller allowlist.",
"minimum": 0,
"type": "integer"
},
"collections": {
"items": {
"format": "nsid",
"type": "string"
},
"maxLength": 100,
"minLength": 1,
"type": "array"
},
"createdAt": {
"format": "datetime",
"type": "string"
},
"id": {
"maxLength": 128,
"type": "string"
},
"label": {
"maxLength": 128,
"type": "string"
},
"repoDID": {
"description": "The repo owner and OAuth subject. Equal to the delegator DID.",
"format": "did",
"type": "string"
},
"returnTo": {
"format": "uri",
"maxLength": 2048,
"type": "string"
},
"revision": {
"description": "Compare-and-swap token for delegation metadata.",
"minimum": 0,
"type": "integer"
},
"revokedAt": {
"format": "datetime",
"type": "string"
},
"skey": {
"format": "record-key",
"type": "string"
},
"space": {
"format": "space-ref",
"type": "string"
},
"spaceAuthority": {
"format": "did",
"type": "string"
},
"spaceType": {
"format": "nsid",
"type": "string"
},
"status": {
"enum": [
"pending",
"active",
"degraded",
"suspended",
"revoked",
"expired"
],
"type": "string"
},
"updatedAt": {
"format": "datetime",
"type": "string"
}
},
"required": [
"id",
"status",
"space",
"spaceAuthority",
"spaceType",
"skey",
"repoDID",
"collections",
"actions",
"callerCount",
"callerRevision",
"revision",
"createdAt",
"updatedAt"
],
"type": "object"
},
"delegatorOnboarding": {
"properties": {
"allowlistCount": {
"minimum": 0,
"type": "integer"
},
"mode": {
"enum": [
"open",
"approval",
"allowlist",
"closed",
"disabled"
],
"type": "string"
}
},
"required": [
"mode"
],
"type": "object"
},
"limits": {
"description": "Effective limits for a service, caller, or delegation scope. Values are integers; units are in the property name or description.",
"properties": {
"auditRetentionDays": {
"minimum": 0,
"type": "integer"
},
"controlPerMinute": {
"minimum": 0,
"type": "integer"
},
"idempotencyTtlSeconds": {
"minimum": 0,
"type": "integer"
},
"maxBatchWrites": {
"minimum": 1,
"type": "integer"
},
"maxBlobBytes": {
"minimum": 1,
"type": "integer"
},
"maxBlobUploadsPerDay": {
"minimum": 0,
"type": "integer"
},
"maxBodyBytes": {
"minimum": 1,
"type": "integer"
},
"maxCallersPerDelegation": {
"minimum": 0,
"type": "integer"
},
"maxDelegationsPerRepo": {
"minimum": 0,
"type": "integer"
},
"maxRecordBytes": {
"minimum": 1,
"type": "integer"
},
"oauthStartsPerHour": {
"minimum": 0,
"type": "integer"
},
"rateLimitWindowSeconds": {
"minimum": 1,
"type": "integer"
},
"writesPerDay": {
"minimum": 0,
"type": "integer"
},
"writesPerMinute": {
"minimum": 0,
"type": "integer"
}
},
"type": "object"
},
"limitsView": {
"properties": {
"limits": {
"ref": "#limits",
"type": "ref"
},
"remaining": {
"ref": "#remaining",
"type": "ref"
},
"resetAt": {
"format": "datetime",
"type": "string"
},
"scope": {
"enum": [
"service",
"caller",
"delegation"
],
"type": "string"
},
"usage": {
"ref": "#usage",
"type": "ref"
}
},
"required": [
"scope",
"limits"
],
"type": "object"
},
"oauthClientMetadata": {
"properties": {
"baseUrl": {
"format": "uri",
"type": "string"
},
"jwksUrl": {
"format": "uri",
"type": "string"
},
"mode": {
"description": "v0 MUST use per-delegation. shared is reserved for a post-v0 revision.",
"enum": [
"per-delegation",
"shared"
],
"type": "string"
},
"sharedClientId": {
"description": "Only for mode=shared; not used in v0.",
"format": "uri",
"type": "string"
},
"template": {
"description": "Template for the per-delegation client metadata URL. The {delegation} placeholder is replaced with the delegation ID.",
"maxLength": 512,
"type": "string"
}
},
"required": [
"mode"
],
"type": "object"
},
"queue": {
"properties": {
"pending": {
"minimum": 0,
"type": "integer"
},
"spaces": {
"minimum": 0,
"type": "integer"
}
},
"type": "object"
},
"quotas": {
"properties": {
"blobsPerDay": {
"minimum": 0,
"type": "integer"
},
"bytesPerDay": {
"minimum": 0,
"type": "integer"
},
"concurrent": {
"minimum": 0,
"type": "integer"
},
"writesPerDay": {
"minimum": 0,
"type": "integer"
}
},
"type": "object"
},
"registration": {
"properties": {
"approvedAt": {
"format": "datetime",
"type": "string"
},
"approvedBy": {
"format": "did",
"type": "string"
},
"createdAt": {
"format": "datetime",
"type": "string"
},
"did": {
"format": "did",
"type": "string"
},
"handle": {
"maxLength": 253,
"type": "string"
},
"pdsUrl": {
"format": "uri",
"type": "string"
},
"quotas": {
"ref": "#quotas",
"type": "ref"
},
"reason": {
"maxLength": 256,
"type": "string"
},
"role": {
"enum": [
"delegator",
"caller"
],
"type": "string"
},
"status": {
"enum": [
"pending",
"approved",
"rejected",
"suspended"
],
"type": "string"
},
"trustLevel": {
"maxLength": 64,
"type": "string"
}
},
"required": [
"did",
"role",
"status",
"createdAt"
],
"type": "object"
},
"remaining": {
"description": "Remaining counters for a caller or delegation in the current window.",
"properties": {
"blobsToday": {
"minimum": 0,
"type": "integer"
},
"bytesToday": {
"minimum": 0,
"type": "integer"
},
"writesThisMinute": {
"minimum": 0,
"type": "integer"
},
"writesToday": {
"minimum": 0,
"type": "integer"
}
},
"type": "object"
},
"serviceMode": {
"properties": {
"callerRegistration": {
"ref": "#callerRegistration",
"type": "ref"
},
"delegatorOnboarding": {
"ref": "#delegatorOnboarding",
"type": "ref"
},
"writesEnabled": {
"type": "boolean"
}
},
"required": [
"delegatorOnboarding",
"callerRegistration",
"writesEnabled"
],
"type": "object"
},
"serviceStatus": {
"properties": {
"callerRegistration": {
"ref": "#callerRegistration",
"type": "ref"
},
"counts": {
"ref": "#counts",
"type": "ref"
},
"delegatorOnboarding": {
"ref": "#delegatorOnboarding",
"type": "ref"
},
"did": {
"format": "did",
"type": "string"
},
"endpoint": {
"format": "uri",
"type": "string"
},
"limits": {
"ref": "#limits",
"type": "ref"
},
"queue": {
"ref": "#queue",
"type": "ref"
},
"service": {
"maxLength": 128,
"type": "string"
},
"updatedAt": {
"format": "datetime",
"type": "string"
},
"uptimeMs": {
"minimum": 0,
"type": "integer"
},
"version": {
"maxLength": 64,
"type": "string"
},
"writesEnabled": {
"type": "boolean"
}
},
"required": [
"service",
"version",
"did",
"endpoint",
"uptimeMs",
"delegatorOnboarding",
"callerRegistration",
"counts",
"limits",
"updatedAt"
],
"type": "object"
},
"usage": {
"description": "Usage counters for a caller or delegation in the current window.",
"properties": {
"blobsToday": {
"minimum": 0,
"type": "integer"
},
"bytesToday": {
"minimum": 0,
"type": "integer"
},
"writesThisMinute": {
"minimum": 0,
"type": "integer"
},
"writesToday": {
"minimum": 0,
"type": "integer"
}
},
"type": "object"
},
"writeAudit": {
"properties": {
"action": {
"enum": [
"create",
"update",
"delete"
],
"type": "string"
},
"caller": {
"format": "did",
"type": "string"
},
"cid": {
"maxLength": 128,
"type": "string"
},
"collection": {
"format": "nsid",
"type": "string"
},
"error": {
"maxLength": 128,
"type": "string"
},
"id": {
"minimum": 0,
"type": "integer"
},
"latencyMs": {
"minimum": 0,
"type": "integer"
},
"rkey": {
"format": "record-key",
"type": "string"
},
"size": {
"minimum": 0,
"type": "integer"
},
"status": {
"maximum": 599,
"minimum": 100,
"type": "integer"
},
"ts": {
"format": "datetime",
"type": "string"
}
},
"required": [
"id",
"ts",
"caller",
"action",
"status"
],
"type": "object"
}
},
"description": "Shared shapes for the write delegation proxy control plane. The NSID authority is a placeholder.",
"id": "party.whey.writeproxy.defs",
"lexicon": 1
}